YOLO Algorithm for Object Detection Implementation using Python

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • In this video, I've implemented the YOLO (You Only Look Once) algorithm which is used in object detection using Python.
    Object detection is a critical capability of autonomous vehicle technology. It’s an area of computer vision that’s exploding and working so much better than just a few years ago.
    YOLO is a clever convolutional neural network (CNN) for doing object detection in real-time. The algorithm applies a single neural network to the full image, and then divides the image into regions and predicts bounding boxes and probabilities for each region. These bounding boxes are weighted by the predicted probabilities.
    YOLO is popular because it achieves high accuracy while also being able to run in real-time. The algorithm “only looks once” at the image in the sense that it requires only one forward propagation pass through the neural network to make predictions.
    LinkedIn: / balaji2512
    Watch the theoretical understanding of the YOLO algorithm: • YOLO (You Only Look On...
    GitHub: github.com/bal...
    Download the files -
    coco.names : github.com/pjr...
    yolov3.cfg : github.com/pjr...
    yolov3.weights : pjreddie.com/m...
    Some research papers on YOLO for better understanding of the algorithm:
    pjreddie.com/m...
    pjreddie.com/m...
    pjreddie.com/m...
    #yolo #python #ObjectDetection #DataScience

Komentáře • 71

  • @rupareddy9243
    @rupareddy9243 Před 3 lety +1

    Precise and crisp explanation,expecting more live projects , thank you

  • @killersanjay2872
    @killersanjay2872 Před 3 lety +1

    Super bro. Nice explanation 👍👍🔥❤️👏🏻👏🏻

  • @muhammadhafizsulaiman7163
    @muhammadhafizsulaiman7163 Před 10 měsíci

    Thanks Mr Srinivasan. This really helpful

  • @techhypedtm2606
    @techhypedtm2606 Před 3 lety +2

    How to use camera as input?
    Help needed fast

  • @shaikameerun6665
    @shaikameerun6665 Před 2 měsíci

    Sir weights file is not opening in visual studio code

  • @srilalithabuddala6674
    @srilalithabuddala6674 Před 2 měsíci

    Sir yolov3 weight is doesn't able to open

  • @ExplorerOfTheGalaxy
    @ExplorerOfTheGalaxy Před 7 měsíci

    COCO is great .. but how do I use it in a macro system? (I want to analyze more words/dict and more objects).. Probably COCO is not enough for me.. :(

  • @yuvrajmangla
    @yuvrajmangla Před 2 lety +3

    Hi sir i am having a error called index error in line 69 please help

  • @user-ji3bi2cr4r
    @user-ji3bi2cr4r Před rokem +1

    Sir I can't install opencv version 3.4.2
    How can I install??

  • @Rahulkumar-vg5vc
    @Rahulkumar-vg5vc Před 3 lety +1

    I have seen and loved this video and I found it very simple way of explanation. So I have subscribed it. Can you please create 1 video for custom dataset for multiple object detection using yolo and also please share how can we get the location of each object in image.
    Thanks in advance !

  • @itachiuchiha8966
    @itachiuchiha8966 Před 3 lety

    Hi brother. I am really liking your videos and knowledge. Can you please tell more about your study/work experience background and how got here. Thanks in advance.

  • @anshumansingh3430
    @anshumansingh3430 Před 3 lety

    thanks bro......this video really helped me a lot

  • @meerabcollection837
    @meerabcollection837 Před rokem

    please share vedio about yolo installing please

  • @saikatroy3818
    @saikatroy3818 Před 3 lety +1

    Can we use yolov5 weight file like best.pt in opencv to extract the bbox and label??

  • @chuttyboycreation
    @chuttyboycreation Před 2 lety

    Thanks for uploading this video it very helpful for my studies . i have one doubt how to save particular object detected frames from video with timestamp

  • @tejabolla
    @tejabolla Před 3 lety +1

    usage: yolo.py [-h] -i IMAGE [-c CONFIDENCE] [-t THRESHOLD]
    yolo.py: error: the following arguments are required: -i/--image
    i am getting above . please help ji

  • @shashankhansi2333
    @shashankhansi2333 Před rokem

    Can i get to know which version of YOLO Algorith u are using

  • @RishavChatterjee
    @RishavChatterjee Před 3 lety

    Can you please explain how to create our own data set for this program?
    Like you are importing those data set files that you downloaded, how to create one of my own?

  • @skinderspike7564
    @skinderspike7564 Před rokem

    how to add new images. like for sign language.

  • @monishkumarr08
    @monishkumarr08 Před rokem

    How to detect number plate and colour of the vehicles from an video sir.

  • @AyazKhan-hu1so
    @AyazKhan-hu1so Před 3 lety

    i used the above code and run it showed the input image without boundingboxes

  • @nothingtoeverything77

    sir our yolo v3 algorithm also predict the Monique also a person?

  • @jayasri-ft8040
    @jayasri-ft8040 Před 3 lety

    So nice sir. Really i have impressed. I have doubt. In bunch of ants say 100. can we capture individual and fix the number for them as Aunt_001 upto Aunt_100. If some aunts are gone into nest (out of our frame). After some time some aunts came out those who were entered nest. Here. 1. Can we able to identify which aunts in terms of Aunt number gone into nest, as well as which all are came out from the nest. Is it possible sir. Can we fix permenent identification number for every aunt? I appreciate your reply and eagerly waiting for your answer. Thank you.

  • @pavantripathi1890
    @pavantripathi1890 Před 2 lety

    Thank you sir!

  • @aniketjaiin
    @aniketjaiin Před 3 lety +1

    Hello brother as you have made video on gender detection. Can you make a video on real time gender detection as well as age prediction?

  • @shashankjois5452
    @shashankjois5452 Před 3 lety +2

    sir,,,,,, Please make a video on how we can convert python code into an app !!!
    there is no such good vedio on it, in youtube.
    We will definitely support you.
    if anyone reading this comment, and knows, Please explain me,,,,,,,,,,:)

  • @gobinath4396
    @gobinath4396 Před rokem

    I couldn't download first two links

  • @GizyHack
    @GizyHack Před 3 lety +1

    bro reply fast bro where to download python file bro.

  • @bhavanishanker238
    @bhavanishanker238 Před 3 lety

    Sir upload continously..please sir

  • @G-loid
    @G-loid Před 3 lety +1

    Do you know any other languages another than python. If yes, pls make tutorial on them as well it would be very beneficial.😃

  • @aadhityaaaadhi9038
    @aadhityaaaadhi9038 Před 3 lety

    Bro kindly let me know how to increase accuracy of a model best way

  • @greenhill1964
    @greenhill1964 Před 3 lety

    Can you implement a model which can identify a car's company. by say identifying it's logo. There are not many resources for it. Detecting logo on an image is tough since it is small. You have any idea?

    • @ashu6539
      @ashu6539 Před 3 lety

      train your model with logos and corresponding features

  • @sudarshansudhi6963
    @sudarshansudhi6963 Před 2 lety

    Hello brother,
    Amazed with your explanation and trying the code which you have thought.
    Thanks for sharing the knowledge.
    I have encountered with one problem, it is with parse the argument.
    args = vars(ap.parse_args())
    Usage ; [-h] -i Image [-c CONFIDENCE] [-t THRESHOLD]
    error: the following arguments are required: -i/--image
    An exception has occurred, use %tb to see the full traceback
    I am using openCv of version 4.5.2 will it be any problem
    Please help me out about this error.

  • @shrinithas4240
    @shrinithas4240 Před 3 lety

    i got error in the 48th line

  • @multipurposevedant5874

    Weight files take too long time to download?

  • @ariharasudhanmuthusami2272

    Nice explanation and keep going.
    How can I reach you?

  • @konikaraj2734
    @konikaraj2734 Před 2 lety

    Can u please resolve my error it's showing argument is required!!!?

  • @rgshriram1173
    @rgshriram1173 Před rokem

    Hi Sir, i am getting the following errors
    Kindly help me out with this
    C:\Project>python yolo.py --image images/abc.jpg
    Traceback (most recent call last):
    File "C:\Project\yolo.py", line 67, in
    ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()]
    File "C:\Project\yolo.py", line 67, in
    ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()]
    IndexError: invalid index to scalar variable.
    Looking forward for assistance ( Urgent basis).
    Thanks in advance!!

    • @ratneshpndy7186
      @ratneshpndy7186 Před rokem +1

      Bro did you got the error resolved,
      Same issue
      If yes please help

  • @crazyduniya128
    @crazyduniya128 Před 3 lety +4

    1st 🙂 ❤

  • @siddardhanandan9497
    @siddardhanandan9497 Před 3 lety

    which python version you are using 3.7 or 3.8 plz reply

  • @bharathkannab6438
    @bharathkannab6438 Před 3 lety

    Super bro 🔥🔥🔥🔥 , But how to get object detection in a video file ,can you help me

    • @harsh4251
      @harsh4251 Před 3 lety

      you need to convert video into list of images & then you can process that image with yolo & again make video out of it

  • @praveenkispotta1999
    @praveenkispotta1999 Před 3 lety

    Opencv-python version 3.4.2 is not installing on my pc

    • @BalajiSrinivasan25
      @BalajiSrinivasan25  Před 3 lety

      Can you mention what command you used and what error are you facing?

    • @praveenkispotta1999
      @praveenkispotta1999 Před 3 lety

      @@BalajiSrinivasan25 : C:\Users\PRAVEEN>pip install opencv-python==3.4.2
      ERROR: Could not find a version that satisfies the requirement opencv-python==3.4.2 (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44)
      ERROR: No matching distribution found for opencv-python==3.4.2
      WARNING: You are using pip version 20.2.2; however, version 20.2.4 is available.
      You should consider upgrading via the 'c:\users\praveen\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.

    • @BalajiSrinivasan25
      @BalajiSrinivasan25  Před 3 lety

      @@praveenkispotta1999, please upgrade your pip by using the below command,
      c:\users\praveen\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip
      And then try to install opencv by using,
      pip install opencv-python==3.4.2.16

    • @praveenkispotta1999
      @praveenkispotta1999 Před 3 lety

      @@BalajiSrinivasan25 sir, not working on my pc.

    • @BalajiSrinivasan25
      @BalajiSrinivasan25  Před 3 lety

      Try pip install opencv-python==3.4.8.29
      This version should work for you

  • @parthasarathyk5476
    @parthasarathyk5476 Před 2 lety

    Hi, did anyone run it as per the procedure. I am getting the odd error thought the file and path are present. Traceback (most recent call last):
    File "yolo.py", line 48, in
    LABELS = open(labelsPath).read().strip().split("
    ")
    FileNotFoundError: [Errno 2] No such file or directory: 'yolo-coco\\coco.names'

  • @sivaramakrishnathota8068

    How to give video as input in yolo

  • @meghpatel2219
    @meghpatel2219 Před 3 lety

    it shows me error in line 64