How to Use Webcam In Google Colab for Images and Video (FACE DETECTION)

  Рет қаралды 115,740

The AI Guy

The AI Guy

Күн бұрын

Пікірлер: 112
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Hope you enjoy! Let me know what other functionality you would like to see in Google Colab.
@aymankasrawee1431
@aymankasrawee1431 4 жыл бұрын
Great video about Colab, can you make video for yolov4 API to return image with bounding Box and json details.
@jothegamechanger
@jothegamechanger 4 жыл бұрын
Thanks maybe next video gonna be good yolov4 on android device sir
@jesilk.b8920
@jesilk.b8920 3 жыл бұрын
That was a amazing video. What are the changes i need to make to connect a colour camera instead of webcam? Can you help me with that
@ghalibenayad5853
@ghalibenayad5853 3 жыл бұрын
Face recognition in real time please using the face recognition library or other techniques
@alloc7260
@alloc7260 3 жыл бұрын
Hey bro where did you get that video streaming js code?
@kunalgupta2960
@kunalgupta2960 4 жыл бұрын
I can't wait for the yolov4 version of this. It will really help in my project. You're a lifesaver dude
@MuhammadWaseem-nx2ln
@MuhammadWaseem-nx2ln 3 жыл бұрын
Did he uploaded it?
@maneshwarsingh8688
@maneshwarsingh8688 4 жыл бұрын
Need one for real-time face recognition in Colab too!
@farjadhaider4401
@farjadhaider4401 4 жыл бұрын
Hello. You are such a great helper. I solved a lot of problems by watching your useful videos. Great work!!!
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Thanks! Appreciate the support.
@denisusalev
@denisusalev 3 жыл бұрын
Thank you for the awesome video, very helpful and well explained! I do however think you should not endorse using the GPU as the 'default' behaviour unless you are doing any real model training, because Google's resources are not limitless, and someone else who might really need the GPU can be getting a limited quota because of that. The rule of thumb I think is that unless you are doing some heavy training, stick to the CPU, live and let live.
@catafest
@catafest 3 жыл бұрын
A good idea is to use this with detection of the user and cut the image when another person is in the area of the webcam. I don't have a webcam but I used often colab and is a great tool.
@JoelBautista
@JoelBautista 3 жыл бұрын
I can't believe that cuteness and nerdiness can come in one with AI guy. Thanks a lot for this! It helped me with my thesis! I subscribed right away. :) Keep it up :)
@sayanhazra5946
@sayanhazra5946 3 жыл бұрын
Bro that's the thing I was trying to find since last few eeks, u made my day, that was simple but tricky, great man, u are awesome, i just subscribed
@dieweltentdecker5878
@dieweltentdecker5878 4 жыл бұрын
OMG, that is the craziest video about Colab!
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Haha thanks! Appreciate the kind words. All the best.
@dieweltentdecker5878
@dieweltentdecker5878 4 жыл бұрын
@@TheAIGuy Does this method also works with Tensorflow?
@rodrigobakzan782
@rodrigobakzan782 4 жыл бұрын
Thanks for make this content, I'm from mexico and I learn about this topic for you. Greetings
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Thanks for kind words! Glad you enjoy
@aispectrum
@aispectrum 2 жыл бұрын
This was awesome! Easy to follow tutorial and the code ran smoothly like butter.
@levi-civita1360
@levi-civita1360 6 ай бұрын
Could you please provide me where you pass camera index, if i want to pass rtsp stream or another camera index . where I should modified the code ?
@shaunling4800
@shaunling4800 3 жыл бұрын
Is it possible to do full screen for webcam
@ashutoshdhanda
@ashutoshdhanda 3 жыл бұрын
Excelente!! Could the code be used for ip cameras (rtsp/ftp/http) ? if so, where to put the URL?
@trishalaahalpara918
@trishalaahalpara918 3 жыл бұрын
Thank you so much for this Video. I am trying to use webcam video for my trained model. And I am getting an error to create the transparent box as there is only two inputs that is getting passed on to the x,y,w,h...I mean thats what the error says. Can you also make a video to use webcam video for our own custom based trained model.
@viethoalam9958
@viethoalam9958 6 ай бұрын
dont know why i cant connect to camera - mac air M1 from colab, hope you can give me some suggestion.
@abdulrahmansabri4547
@abdulrahmansabri4547 Жыл бұрын
Thank you for your efforts. Do you know how to speed up the detection? Thank you in advance
@yinghaohu8784
@yinghaohu8784 10 ай бұрын
Does this support audio in the same time ?
@abdelghfarrefat6674
@abdelghfarrefat6674 3 жыл бұрын
please whey transparent overlay layer rate is slower than camera frame rate?
@TheAIGuy
@TheAIGuy 3 жыл бұрын
It will always be one frame behind as you are overlaying on the next frame in the sequence.
@liamsoccerpro3040
@liamsoccerpro3040 Жыл бұрын
can you stream the video to a socket to a bad end python server on another device with good fps
@adamyordan3301
@adamyordan3301 3 жыл бұрын
Hello sir, how can i configure if i have mask detection model and i want use this model with webcam on google colab? thanks sir
@anupamaranjapalli9999
@anupamaranjapalli9999 Жыл бұрын
in which programming language is used hear either java or python
@kalyantadala3630
@kalyantadala3630 2 жыл бұрын
Could you explain the 68 point facial landmarks detection using the Google colab
@sweetdiaries4936
@sweetdiaries4936 2 жыл бұрын
How we can handle mediapipe as we don't have to create a box but a set of landmarks, so how we can update bbox or some other variable to show real-time results with a webcam in colab.
@harshitrathore1744
@harshitrathore1744 2 жыл бұрын
If we have uploaded a video on colab and want to display that with cv2.imshow() how can we do that?
@FarukhKhalilov
@FarukhKhalilov 2 жыл бұрын
Thanks for the video tutorial. Is there anyway to split and save live video in small video chunks (< 5 seconds each)? Thank you.
@Alex-ud4tl
@Alex-ud4tl 2 жыл бұрын
Great video. I would like to integrate this face detection with the yolo4 deepsort that you have created. How can i detect faces for a video of people walking?
@ritwiklal2000
@ritwiklal2000 4 жыл бұрын
Could you make a video where a functionality to track eye movements can be added alongside face detection?
@umarsadique7166
@umarsadique7166 2 жыл бұрын
thank you sir good job. I want to do the same process but the camera I am using Hik Vision Camera. I don't about java so I am confused that where to put my camera link. Is it possible to access Hik vision camera in colab?
@jose3538
@jose3538 4 жыл бұрын
do you know if this works with plain jupyter notebook as well?
@shubhamvashisth9518
@shubhamvashisth9518 4 жыл бұрын
That's pretty direct, you don't need javascript for that, just use the regular OpenCV methods
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Yes for normal jupyter notebook you can just run regular OpenCV to open webcam. This is special for Google Colab notebooks.
@jose3538
@jose3538 4 жыл бұрын
​@@shubhamvashisth9518 even for jupyter server and not run locally?
@shykhabdull52
@shykhabdull52 10 ай бұрын
Can it work on Yolo V5?
@shaunling4800
@shaunling4800 3 жыл бұрын
@The AI Guy is it possible to have full screen or different window pop out?
@ashok9588
@ashok9588 2 жыл бұрын
How can i change the webcam. I am using an external webcam
@anilnaidutankala1683
@anilnaidutankala1683 2 жыл бұрын
hello great video but i need to detect hand (for sign language detection) can you please help me
@vishvambarpanth2888
@vishvambarpanth2888 3 жыл бұрын
Awesome! How to increase the number of frames being collected?
@hanujirahmatnagoro4518
@hanujirahmatnagoro4518 4 жыл бұрын
excuseme sir... is it possible if we use from youtube video ..? how ..?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Not sure i understand what you are asking? Can you try explaining again.
@hanujirahmatnagoro4518
@hanujirahmatnagoro4518 4 жыл бұрын
@@TheAIGuy : i mean, is tit possible to read/load video from youtube, especially livestream youtuve video n processing it with opencv using google colab..? Fyi: i have a problem when i try to "imshow" the procesesed video in google colab... and the output is something like "generates many picture" from video .. (as we know frame per second).. It will be a great content idea if u want to make the tutorial of it... #soryForMyBadEnglish
@mumtazprima2959
@mumtazprima2959 3 жыл бұрын
hey mr can u build it for yolov3? thanks!
@atheeralsaif7178
@atheeralsaif7178 Жыл бұрын
Greetings, How cv2.VideoCapture(0) works with u? is there any specific prerequisite?
@yasirahmad5014
@yasirahmad5014 3 жыл бұрын
Thanks a lot. Very helpful for me.
@shubhamvashisth9518
@shubhamvashisth9518 4 жыл бұрын
Can this work with YoloV4 ?
@TheAIGuy
@TheAIGuy 4 жыл бұрын
My next video will be using this for YoloV4. So yes it can work with Yolov4!
@Lucas-ri1im
@Lucas-ri1im 4 жыл бұрын
@@TheAIGuy That's great news! When will this video be uploaded? :)
@hilalyesilova8624
@hilalyesilova8624 4 жыл бұрын
@@TheAIGuy when to publish this YOLO version the forecast ? I'm working on a project, and this video is exactly what I need.Thank you for video
@savasboluk2766
@savasboluk2766 3 жыл бұрын
hello you did a great job, how can i use this with avatarify?
@TheAIGuy
@TheAIGuy 3 жыл бұрын
I'm not familiar with avatarify? Is it compatible with Google Colab?
@savasboluk2766
@savasboluk2766 3 жыл бұрын
@@TheAIGuy I have tried. avatarify does not work with google colab. so i did it with another app similar to avatarify, its name is avatars4all
@AzamAzam-ur8bl
@AzamAzam-ur8bl 3 жыл бұрын
masking in video by google colab
@rajpatel1279
@rajpatel1279 2 жыл бұрын
Thank you very much bro 👍👍🥳🥳
@SR258567
@SR258567 Жыл бұрын
It is a great video for noobs like myself to learn CV! really appriciate for taking time to make this informative video. while i was running your code in colab, the front webcam of my laptop was working for picture but for webcam the back webcam was activating. i wasnt able to solve this issue. it will be nice of you, if you could guide me on this matter! thank you in advance!
@oa5818
@oa5818 4 жыл бұрын
You should do face recognation
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Could definitely add this in in the future. Thanks for the suggestion!
@helloWorldPlus
@helloWorldPlus 3 жыл бұрын
Hello!! I want to be able to identify faces and count them once per each person while on streaming. How can be done? So far I see the model is constantly predicting for the same person and don't identify it as one entity.
@sheetalprajapat7760
@sheetalprajapat7760 4 жыл бұрын
Hi AI Guy...Hoping you are doing Fine...Can you help me out to connect a trained model(Emotion Detection) with this process....
@CharcoalProduction
@CharcoalProduction 4 жыл бұрын
Can you make a video about homemade LPR camera?
@poorneshs4222
@poorneshs4222 4 жыл бұрын
Pleases make a video of using webcam with yolo4 in colab ... your videos are awesome pls make this kind of videos
@damodarang2520
@damodarang2520 3 жыл бұрын
Thanks a lot. Helpful to me
@천슬라
@천슬라 3 жыл бұрын
I want to make eye tracking using colab
@foodhubforkids9767
@foodhubforkids9767 Жыл бұрын
Hey! By any chance could somebody help me with the same for an external camera... The code is working but it is showing a black screen instead... I have tried 5 cameras and it is showing the same for every single one of them. If somebody could help me then it would be great! Thanks!
@abdelghfarrefat6674
@abdelghfarrefat6674 3 жыл бұрын
how can flip image likes mirror ??
@siddharthtyagi1254
@siddharthtyagi1254 4 жыл бұрын
sir, please make one video on ssd
@TheAIGuy
@TheAIGuy 4 жыл бұрын
Will do! Thanks for the suggestion.
@mostafaezzat9386
@mostafaezzat9386 4 жыл бұрын
Can you make a video over action recognition? or video classification using 3D-CNN thank you so much for your videos
@jangam.raj02
@jangam.raj02 8 ай бұрын
Thanks mate.
@001_afshanmassarat9
@001_afshanmassarat9 3 жыл бұрын
thanks a lot ...it was helpful
@ilmanzidni8847
@ilmanzidni8847 2 жыл бұрын
Hello Sir, I already train my deep learning model in colab and want to deploy it to the webcam in colab, is there any tutorial to do that task?
@ahmedm2702
@ahmedm2702 Жыл бұрын
did you find any solution to this?
@ilmanzidni8847
@ilmanzidni8847 Жыл бұрын
@@ahmedm2702 well actually no, it kept getting error message, i did it by downloaded my model and deploy it on local
@ahmedm2702
@ahmedm2702 Жыл бұрын
what version did you use and what was your dataset size
@allstar2628
@allstar2628 Жыл бұрын
Thank you 😊
@rajashehryar2002
@rajashehryar2002 10 ай бұрын
Jazak'Allah bro
@keshav2136
@keshav2136 3 жыл бұрын
How to access webcam on DeepNote?
@saverahanif9139
@saverahanif9139 11 ай бұрын
my bounding box is not created
@thecsabel
@thecsabel 2 жыл бұрын
Nice video. Unfortunatelly I am struggling with exporting the bounding box coordinates from my own model and therefore I can't use this method. Well expalined though. I might be able to make my code work soon too. Let's hope..
@UZMAALFATMI
@UZMAALFATMI Жыл бұрын
Thanks!
@johanverm90
@johanverm90 3 жыл бұрын
Well done !!
@Dr.AhmedQusaySabri
@Dr.AhmedQusaySabri 3 жыл бұрын
great video thanks a lot
@siddhikhanvilkar9890
@siddhikhanvilkar9890 3 жыл бұрын
Hello Sir, I have learnt use of YOLO by watching your videos. Thank you for providing such videos. Sir can you please provide us video on how to distinguish between static and moving object using YOLO in google colab?
@vulamnguyen9453
@vulamnguyen9453 3 жыл бұрын
You have to track those objects first. Yolo is detection model. It detects objects every frames but it doesn't know the relationship between objects in current frame and previous frame. Tracking algorithm will solve this. It will give each object a specific ID. Based on their ID, you can find out which object moving. For example, in first frame, object ID 1 at position (x1,y1). In the next frame, object ID 1 at position (x2,y2). So that the distance it has moved is distance = sqrt( (x2 - x1)**2 + (y2 - y1)**2 ) pixels. When you find this distance, you set a threshold ( for example 10 pixels) if distance > 5 pixels => object ID 1 does move else it doesn't move at all. The threshold you need to try by yourself.
@태기_개인
@태기_개인 3 жыл бұрын
love this! =
@eng.mohammadshericmrp9251
@eng.mohammadshericmrp9251 Жыл бұрын
Thanks
@tada_code6370
@tada_code6370 3 жыл бұрын
thank you
@HughJackman-w3z
@HughJackman-w3z Жыл бұрын
anyone here to help in 2023
@Bigboibremmer
@Bigboibremmer 3 жыл бұрын
#LEGEND....
@bnproduction9298
@bnproduction9298 4 жыл бұрын
Why am I left with only 36GB of disk space without even running the cells ?
@billchen559
@billchen559 3 жыл бұрын
Nice
@rifqisyekhi
@rifqisyekhi 7 ай бұрын
thanks
@kadaliakshay6770
@kadaliakshay6770 3 жыл бұрын
Hi do you want dark theme in google colab
@雅雁許
@雅雁許 2 жыл бұрын
I'like it.
@c.m.gcontroller7512
@c.m.gcontroller7512 Жыл бұрын
Hello
@jacsonferneycardenastorres9029
@jacsonferneycardenastorres9029 3 жыл бұрын
crack!
@hitarthpaliwal4341
@hitarthpaliwal4341 Жыл бұрын
Love you man
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Face Detection in 2 Minutes using OpenCV and Python
6:22
Adarsh Menon
Рет қаралды 327 М.
Winning Google Kickstart Round A 2020 + Facecam
17:10
William Lin (tmwilliamlin168)
Рет қаралды 10 МЛН
We Built and Deployed 2 APPS from Scratch in 9 Minutes! | Bolt.new
9:09
Builders Central
Рет қаралды 67 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
2,000 People Fight For $5,000,000
24:45
MrBeast
Рет қаралды 78 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.