YOLO Object Detection Using OpenCV And Python || Python Project

  Рет қаралды 55,342

simple learn

simple learn

Жыл бұрын

YOLO Object Detection Using OpenCV And Python Complete Project || YOLO Object Detection from Scratch || Computer Vision Projects.
🔥 For Project resources, Click The Link below :
bit.ly/3GLJkYs
In this lesson we will learn YOLO Object Detection Using OpenCV And Python Complete Project.
Real - Time Object Detection
In this project we are building real time object detection where we will detect the object in real time. In this course course we trained 20 different object those are 'person', 'car', 'chair', 'bottle', 'pottedplant', 'bird', 'dog', 'sofa', 'bicycle', 'horse', 'boat', 'motorbike', 'cat', 'tvmonitor', 'cow', 'sheep', 'aeroplane', 'train', 'diningtable' and 'bus'.
In order to achieve this we will follow the Data Science SDLC (Software Development Life Cycle). First we will start by gathering the data and requirements. After that based on the requirements we will create the pipeline to prepare the data.
Once our data is ready then we will train our YOLOv5 model in Google Collab GPU environment. Finally we will extract the detection from the model.
Welcome to this comprehensive tutorial on YOLO (You Only Look Once) Object Detection using OpenCV and Python. In this video, you will learn how to implement the state-of-the-art deep learning model YOLO to detect objects in images and videos.
Here's what you will learn in this tutorial:
Introduction to YOLO object detection
Installing OpenCV and other required libraries
Preparing the dataset and annotations for training
Training the YOLO model using Darknet
Fine-tuning the pre-trained YOLO model for better accuracy
Testing the trained model on images and videos
Visualizing the results and tuning the parameters for better performance
Whether you're a beginner or an advanced user, this tutorial will guide you through every step of the process, from setting up the environment to training the model and testing it on real-world data.
At the end of this video, you will have a deep understanding of how YOLO works and how you can apply it to solve real-world problems. So, if you're ready to take your computer vision skills to the next level, hit the play button and let's get started!
Don't forget to like, share, and subscribe to our channel for more tutorials on computer vision, machine learning, and deep learning.
Thank you for watching!

Пікірлер: 82
@user-hu9qt9rm6l
@user-hu9qt9rm6l 15 күн бұрын
Thank you Sir for this project Great Explanation
@AmanShah-qt9zz
@AmanShah-qt9zz Ай бұрын
Thank you sir for this project
@onlinestore911
@onlinestore911 Жыл бұрын
great work 👍
@nabinshrestha2095
@nabinshrestha2095 5 ай бұрын
Great❤❤❤ learning . Its super helpful
@SKNLOGISTICS
@SKNLOGISTICS 7 ай бұрын
Great Work
@emailnizmai-cu3kw
@emailnizmai-cu3kw Жыл бұрын
Great course❤
@AliyaMaqsood-pg2wl
@AliyaMaqsood-pg2wl 8 ай бұрын
Great course 👍
@kelixoderamirez
@kelixoderamirez 5 ай бұрын
permission to learn sir. thank you
@brentcos9370
@brentcos9370 3 ай бұрын
You mentioned that the images are available in the "resources". Where is that? I'd like to download all of them so I can follow along with your tutorial.
@geoscieducation8001
@geoscieducation8001 8 ай бұрын
Amazing Video, Thank you for sharing this video.
@dasa9639
@dasa9639 Ай бұрын
laura
@shwetabhat9981
@shwetabhat9981 Жыл бұрын
Amazing resource 👍 Thank you for this !! Looking forward to many more 🙂
@gyaneshwar7647
@gyaneshwar7647 Ай бұрын
can you share the resources with me? i can't images..please help me
@anjali7159
@anjali7159 6 ай бұрын
That's an amazing video sir...can we do the same in other IDEs like Vs code so that I can create user interface for the same model.
@urakondasaikumar1002
@urakondasaikumar1002 10 ай бұрын
Thank you sir! your explanation is simply amazing.....
@dasa9639
@dasa9639 Ай бұрын
laura
@PushkarPatel-404
@PushkarPatel-404 18 күн бұрын
Absolutely loved the video. I just had one question, how do i export this project and run it locally ?
@OpenSourceDesign
@OpenSourceDesign Жыл бұрын
This is great, can you share the project/github?
@user-wj8hx2mz4y
@user-wj8hx2mz4y Жыл бұрын
Thank you so much. Your video is great for beginers like me
@dasa9639
@dasa9639 Ай бұрын
laura
@ahmadshabaz2724
@ahmadshabaz2724 5 ай бұрын
Great tutorial thanks a lots. Much respect you sir.
@dasa9639
@dasa9639 Ай бұрын
laura
@thekidwithadream
@thekidwithadream Жыл бұрын
The google drive link is not working kindly look into it as I am not able to see the images you used
@ikbajpai8054
@ikbajpai8054 14 күн бұрын
same here
@leonidas1983
@leonidas1983 5 ай бұрын
Excellent work! Congrats
@dasa9639
@dasa9639 Ай бұрын
laura
@monstergamerz2343
@monstergamerz2343 7 ай бұрын
your video is very nice it is showing not responding on running cv2.imshow('yolo_prediction,image) what to do please help
@berozzzgaarengineer
@berozzzgaarengineer 25 күн бұрын
i got error when img_pred = yolo.prediction(img ) unsupport operand type(s) for :-
@abdulrasheedabdulmajeed5997
@abdulrasheedabdulmajeed5997 11 ай бұрын
Can't find the image file the google drive link is not working
@SuryaM-uj2gs
@SuryaM-uj2gs 9 ай бұрын
thanks for helping .. but resources is not opening in google drive .. data images .please can you share that
@uttarakhandpcsbaba2608
@uttarakhandpcsbaba2608 8 ай бұрын
Please make a video on yolov8
@alesyamoroz3357
@alesyamoroz3357 7 ай бұрын
Great!!! Thank you so much!!!
@yafisraza1210
@yafisraza1210 6 ай бұрын
Hi can u help me in this project...
@yafisraza1210
@yafisraza1210 6 ай бұрын
U have complete this project...
@monstergamerz2343
@monstergamerz2343 7 ай бұрын
it is showing not responding on running cv2.imshow('yolo_prediction,image) what to do
@muhammadsabrimas2016
@muhammadsabrimas2016 11 ай бұрын
how to printed total object count and fps on the image/video?
@nasrathrihana1608
@nasrathrihana1608 Жыл бұрын
Can you please tell me how to use this model for real time detection using webcam
@raghavuppal2512
@raghavuppal2512 6 ай бұрын
how can i integrate this code with a python program that shows traffic light system in which it turn the light to green once it detects the ambulance on the junction
@MuhammadAdnan-tq3fx
@MuhammadAdnan-tq3fx 10 ай бұрын
this GPU facilities only for one time ???
@paulpolizzi3421
@paulpolizzi3421 18 күн бұрын
can this be used in a soccer game for stats?
@nasrathrihana1608
@nasrathrihana1608 Жыл бұрын
I'm getting error while loading yolo model in onnx format in yolo_predictions.ipynb
@deeranify
@deeranify Жыл бұрын
Can u do a video about detectron2
@RahulSahu-hp1kz
@RahulSahu-hp1kz 7 ай бұрын
What changes i have to make in order to make it a real time object detector?????
@samarasinghesupunc
@samarasinghesupunc 11 ай бұрын
can we use the web cam also?
@ahmedsaliem7041
@ahmedsaliem7041 6 ай бұрын
If I had label = V457P08219 for a dataset of images, how to encode this label ???? Please, I need an answer. Thanks.
@asadullahyousaf1638
@asadullahyousaf1638 11 күн бұрын
can you please share the image data drive link, the given is not working
@faroozrimaaz7092
@faroozrimaaz7092 8 ай бұрын
Can you please provide the data images folder properly..in resources you have given it shows the page is not found
@jainchaitanya1511
@jainchaitanya1511 3 ай бұрын
did u find the data images folder?
@ahmedsaliem7041
@ahmedsaliem7041 6 ай бұрын
what's error in this when run the final part of video this error pop up= AttributeError: 'tuple' object has no attribute 'flatten' in line 80 pf python file ????
@user-fy4gs3ee3h
@user-fy4gs3ee3h 6 ай бұрын
Hey, Can you please provide the link to data-images. The one which you provided in the resources is not working. please, please... it will help a lot. Thank you so much
@gyaneshwar7647
@gyaneshwar7647 Ай бұрын
did you get the data images? please help me too
@alhashedi543
@alhashedi543 Жыл бұрын
thank you for your great effort. but unfortunately the data images URL you provide does not exist. please re sent the correct URL
@thekidwithadream
@thekidwithadream Жыл бұрын
True, so are you waiting for data folder or you just created your own?
@alhashedi543
@alhashedi543 Жыл бұрын
@@thekidwithadream waiting for data folder
@user-fy4gs3ee3h
@user-fy4gs3ee3h 6 ай бұрын
Hey did, you made your own ? Could you please share me.. Thank you in advance
@GauravSingh-zt4us
@GauravSingh-zt4us 10 ай бұрын
hello sir images folder doesnt exist message pop up please update the latest images folder
@ganeshprasadgs5456
@ganeshprasadgs5456 4 ай бұрын
Sir image resources link is not working
@sreebalaji362
@sreebalaji362 6 ай бұрын
How to check the accuracy of the model pls tell me sir
@asosalih257
@asosalih257 7 ай бұрын
there is no image resources, please give us its link
@schre6171
@schre6171 2 ай бұрын
i cant find the data images can you please give the links thanks you very much
@ngsteachingonline1181
@ngsteachingonline1181 7 ай бұрын
Google drive folder image page not found
@rahulsingha1542
@rahulsingha1542 11 ай бұрын
i am getting error in real time object detection saying attributte error saying 'tuple' object has no attribute 'flatten' can someone help
@Cronus67
@Cronus67 10 ай бұрын
Did you solve that i am also getting the same error
@ankushkumar-rk8hs
@ankushkumar-rk8hs 5 ай бұрын
from where we can get the code for this
@donjoseph5980
@donjoseph5980 5 ай бұрын
where to find the resources
@imtiazahmad4456
@imtiazahmad4456 5 ай бұрын
where is image data?
@user-bd2dr8fq6o
@user-bd2dr8fq6o 4 ай бұрын
can I get your dataset?
@ikbajpai8054
@ikbajpai8054 14 күн бұрын
I am not able to download images
@RahulSahu-hp1kz
@RahulSahu-hp1kz 7 ай бұрын
How i make real time object detector by webcam
@gyaneshwar7647
@gyaneshwar7647 Ай бұрын
I am unable to get data images, can anyone please help me?
@gunturugopikrishna1824
@gunturugopikrishna1824 Жыл бұрын
Hi can you pls send me labeled images
@yashkinha7386
@yashkinha7386 6 ай бұрын
Image_data is not avallable
@bennishben950
@bennishben950 8 ай бұрын
while doing label encoading # label encoding def label_encoding(x): labels = {'person':0, 'car':1, 'chair':2, 'bottle':3, 'pottedplant':4, 'bird':5, 'dog':6, 'sofa':7, 'bicycle':8, 'horse':9, 'boat':10, 'motorbike':11, 'cat':12, 'tvmonitor':13, 'cow':14, 'sheep':15, 'aeroplane':16, 'train':17, 'diningtable':18, 'bus':19} return labels[x] train_df['id'] = train_df['name'].apply(label_encoding) test_df['id'] = test_df['name'].apply(label_encoding) this error occurs --------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[30], line 1 ----> 1 train_df['id'] = train_df['name'].apply(label_encoding) 2 test_df['id'] = test_df['name'].apply(label_encoding) File E:\YoloV8\yolo_object_detection\Notes\yolo_venv\Lib\site-packages\pandas\core\series.py:4630, in Series.apply(self, func, convert_dtype, args, **kwargs) 4520 def apply( 4521 self, 4522 func: AggFuncType, (...) 4525 **kwargs, 4526 ) -> DataFrame | Series: 4527 """ 4528 Invoke function on values of Series. 4529 (...) 4628 dtype: float64 4629 """ -> 4630 return SeriesApply(self, func, convert_dtype, args, kwargs).apply() File E:\YoloV8\yolo_object_detection\Notes\yolo_venv\Lib\site-packages\pandas\core\apply.py:1025, in SeriesApply.apply(self) 1022 return self.apply_str() 1024 # self.f is Callable -> 1025 return self.apply_standard() File E:\YoloV8\yolo_object_detection\Notes\yolo_venv\Lib\site-packages\pandas\core\apply.py:1076, in SeriesApply.apply_standard(self) 1074 else: 1075 values = obj.astype(object)._values -> 1076 mapped = lib.map_infer( 1077 values, 1078 f, 1079 convert=self.convert_dtype, 1080 ) 1082 if len(mapped) and isinstance(mapped[0], ABCSeries): 1083 # GH#43986 Need to do list(mapped) in order to get treated as nested 1084 # See also GH#25959 regarding EA support 1085 return obj._constructor_expanddim(list(mapped), index=obj.index) File E:\YoloV8\yolo_object_detection\Notes\yolo_venv\Lib\site-packages\pandas\_libs\lib.pyx:2834, in pandas._libs.lib.map_infer() Cell In[26], line 6, in label_encoding(x) 2 def label_encoding(x): 3 labels = {'person':0, 'car':1, 'chair':2, 'bottle':3, 'pottedplant':4, 'bird':5, 'dog':6, 4 'sofa':7, 'bicycle':8, 'horse':9, 'boat':10, 'motorbike':11, 'cat':12, 'tvmonitor':13, 5 'cow':14, 'sheep':15, 'aeroplane':16, 'train':17, 'diningtable':18, 'bus':19} ----> 6 return labels[x] KeyError: 'Person' how to resolve this
@darthyrabecka1472
@darthyrabecka1472 8 ай бұрын
D:\UDEMY\TRAIN YOLO FOR OBJECT DETECTION\yolo_venv>Scripts\activate (yolo_venv) D:\UDEMY\TRAIN YOLO FOR OBJECT DETECTION\yolo_venv>pip install -r requirements.txt ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
@WolfofScience
@WolfofScience Ай бұрын
requirements.txt is your file's name. you need to use it requirements.txt.txt or just erase the ".txt" part from file name
@ben10_prvn
@ben10_prvn Жыл бұрын
This is the error getting. can you plz help me out error Traceback (most recent call last) in 1 # load YOLO model 2 ----> 3 yolo = cv2.dnn.readNetFromONNX("./Model/weights/best.onnx") 4 yolo.setPreferableBackend(cv2.dnn.DNN_BACKEND_OPENCV) 5 yolo.setPreferableBackend(cv2.dnn.DNN_TARGET_CPU) error: OpenCV(4.5.3) D:\bld\libopencv_1632857399304\work\modules\dnn\src\onnx\onnx_importer.cpp:2146: error: (-2:Unspecified error) in function 'cv::dnn::dnn4_v20210608::ONNXImporter::handleNode' > Node [Split]:(/model.24/Split_output_0) parse error: OpenCV(4.5.3) D:\bld\libopencv_1632857399304\work\modules\dnn\src\layers\slice_layer.cpp:187: error: (-215:Assertion failed) splits > 0 && inpShape[axis] % splits == 0 in function 'cv::dnn::SliceLayerImpl::getMemoryShapes' >
@mdarafatrahmankhan8602
@mdarafatrahmankhan8602 Жыл бұрын
This occurs when you are exporting the model in best.onnx format. Try using export your model by setting opset and image length and width and hope your problem will be solved.
@user-gr3vk5bt3w
@user-gr3vk5bt3w 22 күн бұрын
great work 👍
@ihebakermi943
@ihebakermi943 4 ай бұрын
where is image data?
YOLO (You Only Look Once) algorithm for Object Detection Explained!
30:21
Balaji Srinivasan
Рет қаралды 83 М.
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 35 МЛН
¡Puaj! No comas piruleta sucia, usa un gadget 😱 #herramienta
00:30
JOON Spanish
Рет қаралды 22 МЛН
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 91 МЛН
Когда на улице Маябрь 😈 #марьяна #шортс
00:17
RAG from the Ground Up with Python and Ollama
15:32
Decoder
Рет қаралды 20 М.
Rust Data Modelling Without Classes
11:25
No Boilerplate
Рет қаралды 158 М.
Build an Object Detector for Any Game Using YOLO
22:40
Moises de Paulo Dias
Рет қаралды 32 М.
AI Hardware w/ Jim Keller
33:29
Tenstorrent
Рет қаралды 26 М.
A Worlds First On This Top Tier Radio - TIDRadio H3
11:52
Tech Minds
Рет қаралды 8 М.
YOLO Object Detection Explained for Beginners
35:34
AI Sciences
Рет қаралды 22 М.
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 35 МЛН