Тёмный

Real-time YOLOv4 Object Detection on Webcam in Google Colab | Images and Video 

The AI Guy
Подписаться 27 тыс.
Просмотров 99 тыс.
50% 1

Learn how to implement YOLOv4 Object Detection on your Webcam from within Google Colab! This tutorial uses scaled-YOLOv4, the most fast and accurate object detection system there currently is. Perform object detections in real-time on webcam images and video with high accuracy and speed. ALL WITH A FREE GPU!
#yolov4 #objectdetection #cloud
THE GOOGLE COLAB NOTEBOOK:
colab.research.google.com/dri...
In this video I cover:
1. Setting up Colab Notebook and Enabling GPU.
2. Cloning and Building Darknet for Running YOLOv4.
3. Downloading Scaled-YOLOv4 pre-trained model file, the best object detector there is.
4. Custom Functions to run YOLOv4 with Python in Google Colab.
5. JavaScript code to access local machine's webcam for images and video.
6. Running scaled-YOLOv4 object detections on webcam images and video in real-time.
-----------------------------Resources-----------------------------
Github Code Repository (yolov4-webcam notebook): github.com/theAIGuysCode/YOLO...
Tutorial for YOLOv4 Pre-trained Model, Running on Video, Formatting Output and Detections etc.: • YOLOv4 in the CLOUD: I...
Train Your Own YOLOv4 Custom Object Detector in the Cloud: • YOLOv4 in the CLOUD: B...
Official Scaled-YOLOv4 Paper: arxiv.org/abs/2011.08036
If you enjoyed the video, toss it a like! 👍
To Subscribe: / @theaiguy
Thanks so much for watching!
- The AI Guy

Наука

Опубликовано:

 

30 дек 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 324   
@TheAIGuy
@TheAIGuy 3 года назад
Let me know if you have any suggestions for future videos??? As always, comment down below if you run into any issues! Hope you enjoy :)
@shiffin_chippe
@shiffin_chippe 3 года назад
Yolov4 on Android
@dieweltentdecker5878
@dieweltentdecker5878 3 года назад
Can you make/know a tutorial on how to make an ai that can decide if an image is good or not? For example, I have two folders good/bad in these folders are good and bad images.
@TheAIGuy
@TheAIGuy 3 года назад
@@dieweltentdecker5878 what qualifies as a good or bad image? Like the quality of the image? If it’s blurry then its “bad”? Let me know!
@dieweltentdecker5878
@dieweltentdecker5878 3 года назад
@@TheAIGuy I scraped a lot of Instagram images. Some of these I think are bad (These are in the bad folder). The other images I think are cool Instagram images (These are in the good folder). I have so many pictures on my phone. I want to automate the whole choosing process.
@shiffin_chippe
@shiffin_chippe 3 года назад
@@dieweltentdecker5878 Mention the factors that makes an image bad or good
@nahinahmed8630
@nahinahmed8630 3 года назад
please make a separate/ extended video for using custom obj detection on this same colab using webcam
@chaitrakulkarni5034
@chaitrakulkarni5034 3 года назад
I must appreciate, this channel is so underrated. This is real gem. I have tried following your tutorial that's really working
@jasurabdullayevabdullayev
@jasurabdullayevabdullayev 8 месяцев назад
It was great I watched thousands of videos but still were facing errors but here everything is simple and understandable. Thankyou for the video and good luck !
@sanjanaprasad9093
@sanjanaprasad9093 2 года назад
The one and only useful video in the entire internet !!! Thank you sooooo muchhh for the entire working code !!!!
@chjayakrishnajk
@chjayakrishnajk 3 года назад
This is gonna be our new year gift
@mubinmodi7529
@mubinmodi7529 3 года назад
Hey man appreciate your help and all the effort that you put in these videos, thank you 😍♥️
@TheAIGuy
@TheAIGuy 3 года назад
Thanks for the kind words! Much appreciated!
@arunaggiripandian154
@arunaggiripandian154 3 года назад
Bruhhh !! U are rocking ⚡ Please continue the same and don't forget the COLAB dude ❕ ... Keep it coming ⚡
@taeefnajib
@taeefnajib 2 года назад
You are an awesome trainer. Your topics are also just what I need at the moment. Do you have any tutorial on Object Detection from Webcam using custom datasets?
@AswinRamadasindian
@AswinRamadasindian 3 года назад
Right time at right place. You are my hero ❤️
@TheAIGuy
@TheAIGuy 3 года назад
Appreciate it! Thanks for the kind words. Wishing you the best.
@keitakeita7890
@keitakeita7890 3 года назад
wonderfull ! it is long time i look for to know how to use webcam on collab !
@karthikshet6226
@karthikshet6226 3 года назад
good job.please make a separate/ extended video for using custom obj detection on this same colab using webcam
@adeeshbhargava8136
@adeeshbhargava8136 Год назад
Thanks Guys , works brilliantly !! Easy to customize too , really helpful
@yusufkenanturak2357
@yusufkenanturak2357 3 года назад
Thanks, we are waiting for that
@melontrophy7483
@melontrophy7483 2 года назад
Great video! Easy to understand and follow along the line video! For future video, would you be able to make a video about real-time people counting using this (webcam and collab if possible too)? That would be great and amazing!
@TheCodingBug
@TheCodingBug 3 года назад
This was of great utility! Thank you.
@TheAIGuy
@TheAIGuy 3 года назад
Glad it was helpful! Thanks for the feedback, much appreciated!
@nachiketshirgur4066
@nachiketshirgur4066 Год назад
Thank you for providing us this tutorial
@TheJason143
@TheJason143 3 года назад
You’re a genius
@shiffin_chippe
@shiffin_chippe 3 года назад
Don't know how, but you always save me at the right time ❤️...Please make a video on implementing yolov4 in android...Love you alot ❤️
@TheAIGuy
@TheAIGuy 3 года назад
This is definitely a video I am working on. So stay tuned! Thanks for the suggestion and feedback. I appreciate it a lot!
@osfree7612
@osfree7612 3 года назад
​@@TheAIGuy Can you make a video about how to run yolo as a web application using colab? Thanks for the videos.
@sirakisngamwongwan6259
@sirakisngamwongwan6259 3 года назад
Nice. I like your clip very much, it’s made me love coding.
@zilongli9070
@zilongli9070 3 года назад
It's my huge pity for me to find you so so late. l am learning Yolov3 right now. Sending my best wishes from China. Be safe, l have shared your video to my Deep Learning Friends.
@MegaMauricio120
@MegaMauricio120 2 года назад
This is exactly what I needed
@hansgabrieldaduya2565
@hansgabrieldaduya2565 3 года назад
Keep this up man. Good Job!
@TheAIGuy
@TheAIGuy 3 года назад
Thanks! Much appreciated and will definitely keep them coming :)
@nilakhidas257
@nilakhidas257 Год назад
Amazing project indeed!!
@cospace2113
@cospace2113 9 месяцев назад
crazy video!
@devavratpro7061
@devavratpro7061 3 года назад
@The AI Guy, thanks for your great video and support. I tried running this offline but couldn't run Webcam part due to dependencies on Google colab libraries which are not accessible offline. In this regard, kindly guide how can we use js_eval function and others offline on CPU. Or kindly provide other Webcam integration method. Thanks again.
@andree912
@andree912 3 года назад
love this video
@MrEri299
@MrEri299 2 года назад
excellent tutorial ... from Semarang Indonesia
@Huds-ux1xb
@Huds-ux1xb 7 месяцев назад
Bro ajarin
@ucanhvu274
@ucanhvu274 3 года назад
Good job, thanks
@easymatlab
@easymatlab Год назад
I wish you were my lecture you explained this concept flawlessly and I was following along with you ,eNkosi AI Guy (^◡^ )
@dbanuel3
@dbanuel3 3 года назад
great videos!
@user-pr3nl7lv3s
@user-pr3nl7lv3s 3 года назад
nice job. i have hard time makeing it.Thak you for teaching me makeing this.
@rohitjg
@rohitjg 3 года назад
I thought it is impossible to do it in cloud! Thanks For the video!:)
@TheAIGuy
@TheAIGuy 3 года назад
So did I for a while! Took some research and testing but finally got it to work. Thanks for the comment :)
@rohitjg
@rohitjg 3 года назад
@@TheAIGuy :) thank you for replying
@kivlankhairwijayanto5404
@kivlankhairwijayanto5404 Год назад
is there any way to give a minimum number of confidence on the bounding boxes? so its bbox appears when the 'confidence' value is above a certain number
@carloselilopeztellez7802
@carloselilopeztellez7802 3 года назад
Hello! I'm using your yolov4 tf repo for video detection. Can you do batch detections? I'm running multiple cameras and want to process one frame per camera all at once. I've tried shapes (5,416,416,3) but got some errors. Thanks!!
@braydonrainbow4909
@braydonrainbow4909 2 года назад
Hey mate, I'm trying to use this method but use the mixed reality capture of a Microsoft HoloLens instead of the webcam. I'm having issues using the URL of a streaming video through Colab. Any advice?
@OrionEx88
@OrionEx88 2 года назад
Thank man, for this awesome video. It's really helpful for machine learning community. Anyway, I have tested with your code and it work perfectly, except the video streaming part. Mine was streaming with main camera instead of front-facing camera. Do you know which part I should change?
@congluong463
@congluong463 3 года назад
thank you so much !
@dpredie
@dpredie 3 года назад
is there a way to access video stream ( webcam, OBS) and apply a pre-trained model without using colab to output a close to realtime output
@mariomasseiro9090
@mariomasseiro9090 3 года назад
im running the code in google colab, but when i run the box for test the image with the guy and the horse i can't see any labels, also can take pictures and show my webcam, but dont show any label, u know what could be the problem?
@osamaibrahim4360
@osamaibrahim4360 3 года назад
Bro how can I triggered an alarm on detection of any object for example when the fire is detect it generate a notification
@OmkarJoshiV
@OmkarJoshiV 3 года назад
very nice example mate. do you have javascript client which you have shown in the example ? working on multi camera setup web app which can send stream to backend app(TCP socket) which holds YOLO and can detect objects if that makes sense. The setup would be remote camera streamed by Yolo on server side and transformed frames will be received by web app(client side).
@MutenRoshiUI
@MutenRoshiUI 3 года назад
I have been trying to use my custom object detector using the webcam in colab but i am not able to detect anything, whereas i am able to run the custom detections on images and videos as shown in the previous videos. Can anyone help?
@aditinarendran
@aditinarendran 3 года назад
I was trying out this code but during the webcam video part my webcam capture/output is filled with too many bounding boxes that i can’t see the image itself. Can you pls help.
@TechInventorAman
@TechInventorAman 3 года назад
how do we train it for our own cutsom data
@user-ze6yf9hv9s
@user-ze6yf9hv9s 7 месяцев назад
thankss bro,,
@jihwanshin1233
@jihwanshin1233 2 года назад
How can I customize the detection function so that I can count people on the webcam and detect people only?
@Mlleshiin
@Mlleshiin 3 года назад
thanks for sharing these type of videos! they're so interesting, do you know how to change the input if we have more than one webcam?
@hadif6165
@hadif6165 2 года назад
Hi AI Guy! Do you have ideas on how do I need to add or make a change if I wanted to make a decision based on the detection. For example I want to display "It's Horse" on the bottom of the live camera when it detects the horse or any other object.
@_XY_
@_XY_ 2 года назад
Nice
@Ksyusha5
@Ksyusha5 2 года назад
Good afternoon. tell me, is it possible to make a cloudy blender render in eevee? And how in this case to connect the active monitor?
@kirbywithlegs98
@kirbywithlegs98 7 месяцев назад
would it be possible to use the info given by the video in a program? For example, if a person is in frame it starts recording, if a person leaves it stops.
@wwetop104u5
@wwetop104u5 3 года назад
Hi there this tutorial is very helpful for me Can you plz tell me what changes we have to done for external camera instead of webcam.
@FarukhKhalilov
@FarukhKhalilov 2 года назад
Hi. Thanks for sharing tutorial. Currently working on project and your tutorial helped me a lot. I have a question regarding selecting the cameras that are plugged in computer. As a default it runs my very first camera. How we can choose another camera? Thank you.
@arkadipbasu828
@arkadipbasu828 Год назад
super like
@Hitesh-Salgotra
@Hitesh-Salgotra 3 года назад
Wow this is amazing i was just wishing how i can train my model on webcam and there you are giving me gift for the new year..
@TheAIGuy
@TheAIGuy 3 года назад
haha perfect timing. Hope you enjoy.
@Hitesh-Salgotra
@Hitesh-Salgotra 3 года назад
@@TheAIGuy yeah i enjoyed a lot❤ can you make a video on scaled yolov4 using colab and tfod effecientdet on local machine as well as collab.. 😊
@xueyang112
@xueyang112 2 года назад
Thank you for your hard work. Can you give a tutorial about how to calculate mAP, precision and recall?
@gehankhalefa5526
@gehankhalefa5526 3 года назад
thank you very much
@dikapermanaputra9941
@dikapermanaputra9941 3 года назад
thank you it's work
@yoshithaab7290
@yoshithaab7290 3 месяца назад
Can you please help in providing the code, that does object detection. The present code helps in capturing picture, but it isn't able to do object detection. Please look into it!
@VASUDHARANIPATHEDAMIS
@VASUDHARANIPATHEDAMIS Год назад
thank you
@zaheerkhalid5551
@zaheerkhalid5551 2 года назад
How to change the camera port for this code? I want to use the different attached camera with my PC. I just don't know how to swap between cameras in the code.
@Deshwal.mahesh
@Deshwal.mahesh 3 года назад
How can you train your own Scaled Yolov4 if we're not using the pre trained weights?
@ash3844
@ash3844 3 года назад
HI, wonderful tutorials for beginners, but in this tutorial code can I increase few more testing objects, as it did not detect pen stand and batteries.
@thetienkaka
@thetienkaka 3 года назад
Thank for your sharing. I have a question. how many fps(frame per second) did you get when run on Colab using GPU? thanks.
@posetexe
@posetexe 3 года назад
great tutorial and content but i have questions. they tell yolo can perform 45+fps in videos but why is it so slow, like 15 fps?
@amitpaul4848
@amitpaul4848 2 года назад
I created a project on object detection by yolov5 and without darknet.....but I can't add my local device webcam on it via google colab.....help me to connect my webcam in this colab
@vaniazalianty3625
@vaniazalianty3625 2 года назад
Thank youuuu
@aashishmalhotra
@aashishmalhotra Год назад
I want to detect feature of faces like lips opened can we do that .
@user-nz3yd3eb3d
@user-nz3yd3eb3d 3 года назад
hey man! I don't understand English, so I didn't understand what you said in the video. I tried to run your code. I understand correctly that he uses a web camera to recognize objects first in a photograph, and then in a video online? It's all?
@shivaprasad1277
@shivaprasad1277 3 года назад
How to overlay the detected objects on to the video screen?
@diwakarraju2976
@diwakarraju2976 3 года назад
its a great content bro
@TheAIGuy
@TheAIGuy 3 года назад
Thanks! Much appreciated. Glad you enjoy :)
@rufamus7277
@rufamus7277 3 года назад
Amazing content! Is it possible to use a live video feed from a Blackmagic UltraStudio Recorder instead of your webcam?
@LL-hr3bm
@LL-hr3bm 2 года назад
Very nice :) How can you save the detected labels (only of a picture, not the video) in a dataframe? Thanks in advance!
@LordWildbeast
@LordWildbeast Год назад
how to save video file like you save the captured photo? thanks
@willcaster704
@willcaster704 2 года назад
These videos are amazing, as is your YOLO software. I know these are kinda old and don't know if you still monitor the comments, but I wanted to ask if it's possible to train the models to tag webcam images with specific people--like me, my family members, my dogs, etc. Thanks!
@SadatSafawi
@SadatSafawi 3 года назад
its giving error at the end of 100th iteration ): and gives this error : Saving weights to mydrive/yolov3/backup/yolov3_custom_last.weights Couldn't open file: mydrive/yolov3/backup/yolov3_custom_last.weights
@benjielloyddelgado3349
@benjielloyddelgado3349 2 года назад
Is the process the same when using "YOLOv5"? Something needs to enhance/modify?
@vikramreddy5631
@vikramreddy5631 3 года назад
How to get number of frames in the webcam it is taking in yolo v4
@openmindjustdoit1306
@openmindjustdoit1306 2 года назад
i have 400 employees they have many divaces like printer and computer and table manyhtinks they have so can i use this way to counters and save it in datset excel sheet or some thinks like that
@mamanghachi8086
@mamanghachi8086 3 года назад
This is quality content, keep up the good work :) also is it possible to show how much fps generated in real time object detection?
@alankarshukla4385
@alankarshukla4385 3 года назад
yes
@prashantgupta1908
@prashantgupta1908 Год назад
How can i use it to train it for a custom object detector using webcam, i already have have done custom obejct detection using image by watching your video, i have weights and config file , but still not clear how to turn this into a custom object detector using webcam. If you could tell exacly what to change in this, it would be really helpful
@diegonovoa5901
@diegonovoa5901 Год назад
Hey Unable to init server: Could not connect: Connection refused getting this error when uploading a picture
@EdwardLanceLorilla
@EdwardLanceLorilla 3 года назад
how to customize or train a model implementing deepsort
@juandanielvelezmunoz2667
@juandanielvelezmunoz2667 Год назад
hi , i have this error "NameError: name 'load_network' is not defined " in Darknet for Python
@anshumaanphukan4388
@anshumaanphukan4388 2 года назад
name 'Javascript' is not defined error shows up whenever I try to take a webcam screenshot
@rob26r
@rob26r 3 года назад
I’m a coin collector that would like to have a process that would identify a specific year or image in the coin. How would I go about that?
@HexyzRoyce
@HexyzRoyce 3 года назад
Hi, is there any possible way I can manipulate the object detection program so that it only detects specific classes? For example, I want my camera to detect only gadgets and computer paraphernalia. Would it be possible to just do some changes or do I have to start from scratch?
@HexyzRoyce
@HexyzRoyce 3 года назад
Oh nvm. I stumbled upon your how to train your own object detection model video. I hope watching this will answer my question.
@adarshsudarsan7503
@adarshsudarsan7503 2 года назад
how to detect persons from real time video source( security cameras) and focus to persons for that need to adjust camera (pan and tilt) after that zoom to the person and capture the zoomed image and store image
@xyzpatel8596
@xyzpatel8596 24 дня назад
@AIGuy please give solution for the problem in the object detection, it doesn't give error but also doesn't recognise the objects. Please help!!
@shwedhas7713
@shwedhas7713 3 года назад
My output is full of boxes, could you suggest me sm method
@debarghyakundu908
@debarghyakundu908 6 месяцев назад
sir i have train model=253 mb size i wnt a code that acess my camera with model to detect sign language
@krishnamote7647
@krishnamote7647 2 года назад
I am using this on my custom dataset. But I am getting an error: NameError: name 'load_net_custom' is not defined Would you please help me to resolve this error?
@user-yh5sl4dp8c
@user-yh5sl4dp8c 3 года назад
How can I detect just video not webcam video? I want to detect a five minute video, but I don't know how to do.
@001_afshanmassarat9
@001_afshanmassarat9 3 года назад
Hii Al Guy....I am getting an error on the following lines: model_filename = 'model_data/mars-small128.pb' encoder = gdet.create_box_encoder(model_filename, batch_size=1) The error is : NotFoundError: model_data/mars-small128.pb; No such file or directory Even after changing to the deep_sort directory(cd deep_sort), I get the same error. May u please help.
@Deshwal.mahesh
@Deshwal.mahesh 3 года назад
Is this Scaled Yolov4 or just V4? It uses Darknet and AlexyAb's repo. Just curious.
@nielswitlox3539
@nielswitlox3539 Год назад
Hi AI guy, thanks for this video, it is very helpful. I am looking into ways to track the position of fish in an aquarium for a school project. I was wondering if there is a way to add objects to the AI?
@dwiyantosuabstian170
@dwiyantosuabstian170 2 года назад
please tell me how to make a custom dataset using a webcam using colab
@siddharthrana512
@siddharthrana512 Год назад
camera 1 identifies two people, say Person A and Person B. Now, as these two people move from the coverage of camera 1 into the overlapping area of coverage of cam1 and cam2 and into the area where only cam2 covers, cam2 should be able to identify them as the same people A and B cam1 identified them as. i want help in that
@sushantakula7154
@sushantakula7154 3 года назад
hi i am sushant form india i want to caputure frame from ip camera than where i need to make changes
Далее
Аминка ❤️
00:16
Просмотров 1,1 млн
Yolo Object Detection in Google Colab [Full Tutorial]
10:54
YOLOv8: Real-Time Object Detection with Webcam
15:22
Просмотров 102 тыс.
Deep Drowsiness Detection using YOLO, Pytorch and Python
1:18:35
iPhone 16 - 20+ КРУТЫХ ИЗМЕНЕНИЙ
5:20