Real-time Object Detection on YoloV5 with Flask - Webcam/IP Camera

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 พ.ย. 2024

ความคิดเห็น • 60

  • @ManojKumar-wf5qs
    @ManojKumar-wf5qs ปีที่แล้ว +4

    Filenotfounderror: [winerror 2] The system cannot find the file specified

  • @golasa7646
    @golasa7646 ปีที่แล้ว +2

    I got an error FileNotFoundError: [WinError 2] The system cannot find the file specified

  • @adityanjsg99
    @adityanjsg99 19 วันที่ผ่านมา

    If you have to run a subprocess, why need a webapp? You have to embed the video inside the flask template

  • @kin_1997
    @kin_1997 2 ปีที่แล้ว +2

    how to make the camera through the webpage not a pop up ?

  • @muhammadnazeel463
    @muhammadnazeel463 2 ปีที่แล้ว +1

    How yolo series can be run on python 3.10 version

  • @soundup2461
    @soundup2461 ปีที่แล้ว +1

    This is working for pre-defined classes but I have my own custom Yolo model .so now how do I add that here or I mean where she I make changes

  • @TP-rn2gm
    @TP-rn2gm 2 ปีที่แล้ว +2

    i get this error when run the app on windows, do you know how to fix this: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

    • @robinsonzambranoortiz3265
      @robinsonzambranoortiz3265 2 ปีที่แล้ว

      Hi, I having the same error.
      Do you have a solution for this?

    • @TP-rn2gm
      @TP-rn2gm 2 ปีที่แล้ว

      @@robinsonzambranoortiz3265 change python3 to python in the code and you are good to go

    • @TP-rn2gm
      @TP-rn2gm 2 ปีที่แล้ว

      @@robinsonzambranoortiz3265 and also fix some code(you can check this in the yolov5 document on github)

  • @gypsygirlkigypsylife
    @gypsygirlkigypsylife 8 หลายเดือนก่อน

    hey our model is trained i have best.pt file and front end of the website, WE are creating a multiple fruit detecting website but the problem is we are getting the detected image in visual studio after clicking on predict but not getting the image of the detected image and txt file of bounding boxes ,how to get it in front end of website

  • @iggg7572
    @iggg7572 6 หลายเดือนก่อน

    hello! i'm having trouble with the GET method when clicking the video cam button on the web app. any help on this? thanks!

  • @kin_1997
    @kin_1997 2 ปีที่แล้ว

    Amazing brother ! been trying to figure this out for a while. Thank you :D !

  • @wardah_zakiyah
    @wardah_zakiyah 11 หลายเดือนก่อน

    Usage: flask run [OPTIONS]
    Try 'flask run --help' for help.
    Error: Could not import 'hello'.
    could you please me whats the reason behind it?

  • @maerin-5560dt
    @maerin-5560dt 9 หลายเดือนก่อน

    Thank you for your project. How do I replace my Yolov5 model with yours

  • @seinkoudiakite9546
    @seinkoudiakite9546 2 ปีที่แล้ว

    very good job, It will be better if the video window was embedded in the page, instead of launching it separately.👍

    • @MrFabe2009
      @MrFabe2009 2 ปีที่แล้ว

      do you have a solution for this case?

  • @SAITAMA-07-13
    @SAITAMA-07-13 9 หลายเดือนก่อน

    How can i do this on custom dataset like detecting cars names

  • @heshannammunige4070
    @heshannammunige4070 2 ปีที่แล้ว +2

    Brother great explanation, but I got an error. I followed the exact steps as u did but I got "FileNotFoundError: [WinError 2] The system cannot find the file specified" error. Can you help me with this

  • @abubakarsaleem5167
    @abubakarsaleem5167 2 ปีที่แล้ว

    Sir your way of explaining topic is amazing,sir i got some problem by running code that whenever i was downloading the image then it downloaded the annotated file as Html format could you please me whats the reason behind it?

  • @meet_218
    @meet_218 11 หลายเดือนก่อน

    How to put the window that is being generated on the same page?

  • @lofijedi
    @lofijedi 2 ปีที่แล้ว +1

    What version of yolov5 did you use in this video?

  • @lenin-stalin-ussr
    @lenin-stalin-ussr ปีที่แล้ว

    Thank you so much.
    Isn't it very different from the method of this video to link it with flask using yolov7?

  • @abangfikri1865
    @abangfikri1865 ปีที่แล้ว

    hello thank you for the tutorial, ive succeeded on running the program but however i get this error "'ls' is not recognized as an internal or external command," when i press download on flask, how can i fix this? and btw i have changed "shell = True " in all subprocess. ur reply in this matter will be really helpful. Thank u very much in advance

  • @ReyMaaan
    @ReyMaaan ปีที่แล้ว

    when i click download for image, why i received html file with "Failed - No File"

  • @sin9song209
    @sin9song209 ปีที่แล้ว +2

    Thank you so much,sir!
    I've already implemented the image recognition part according to your instructions.But when I tried to open the webcam to do the real time detection,I always get 'CUDA out of Memory,Tried to allocate 1.06 GiB (GPU 0; 1.96 GiB total capacity; 87.56 MiB already allocated; 1.06 GiB free; 368.00 MiB reserved in total by PyTorch)
    I've tried tons of methods on the internet,but none of them worked.
    I'm using Ubuntu22.04 and my GPU is Nvidia MX110(2GB dedicated memory), with cuda version 11.7 and PyTorch1.13.Any help will be appreciated,Thank you anyway.

    • @sin9song209
      @sin9song209 ปีที่แล้ว +2

      Finally Solved!!!
      Inside the **detect.py** file that comes from yolov5,the original image size is 640,which requires more memory than I have on my GPU,so I changed 640 to just 608 like the following,and it worked!!
      *** parser.add_argument('--imgsz', '--img', '--img-size', type=int, default=608, help='inference size (pixels)') ***
      Right now my GPU utilization is 88% and memory usage is 1170MB.And the real time detection works just fine.
      Anyway,thank you for your great work.

  • @TP-rn2gm
    @TP-rn2gm 2 ปีที่แล้ว +1

    Hello bro can you make a video how to call api to android

  • @techease207
    @techease207 ปีที่แล้ว

    how can I
    display the file in the same window?

  • @sps2528
    @sps2528 2 ปีที่แล้ว

    Your page is very helpful, Can you possibly do a object detection tutorial for video input using FastAPI?

    • @viasmit
      @viasmit  2 ปีที่แล้ว

      Hi Sps...sorry for late reply...
      As i am still a student... Maybe I will not be able to make another video with diffrent server...
      But it won't be very much difficult... You may try once by your own

  • @zenith0750
    @zenith0750 ปีที่แล้ว

    How do i deploy it to mobile device using flutter?

  • @rg1957
    @rg1957 ปีที่แล้ว

    Hi when flask run, and upload image, i get an error Error in app: Exception on detect/POST..What to do?Please help..

  • @RahulSahu-hp1kz
    @RahulSahu-hp1kz ปีที่แล้ว

    How can i change the frontend of it

  • @zarafshantariq2005
    @zarafshantariq2005 2 ปีที่แล้ว

    Could you explain the whole code plz how yolo model and flask code works together??

    • @viasmit
      @viasmit  2 ปีที่แล้ว +1

      Hi zarafshan... Sorry for late reply
      You may check out this video for explanation
      th-cam.com/video/3P0BMpX1vXM/w-d-xo.html

  • @Kishi1969
    @Kishi1969 2 ปีที่แล้ว +1

    My man this one of the best TH-cam about YOlov5 and it mind blowing but i'm not having problem even without creating Virtual ent but after uploading image server is just running without error but Download did not appear . Any solution?

    • @viasmit
      @viasmit  2 ปีที่แล้ว +1

      Hi Benya..Sorry for late reply....
      Download button appears late if you are on a low end pc or if you don't have dedicated graphic card , as it loads the weight and then predicts
      If it still didn't appears after 2-3 minutes..make sure you are following every steps correctly..there maybe some issue as i am running Linux and you will be on diffrent platforn

    • @Kishi1969
      @Kishi1969 2 ปีที่แล้ว

      @@viasmit yes i guess so but, i will fix it. Thanks

  • @abamau
    @abamau ปีที่แล้ว

    Hello, can i use my own Yolov5 model in this app ?

    • @itszeobec
      @itszeobec ปีที่แล้ว

      Do u already have the answer for this?

  • @heetikavaity8261
    @heetikavaity8261 2 ปีที่แล้ว +1

    getting errors for importing files like torch

    • @viasmit
      @viasmit  2 ปีที่แล้ว

      Hi Heeika... there may be issues if you are on a windows system, or using conda as python environment.. Please try to google the errors you will surely get the solutions over there.
      Sorry for inconvinience

  • @thulanideriv4542
    @thulanideriv4542 ปีที่แล้ว

    l need to send video results to the email how can l achievve this

  • @akhmadfuad8135
    @akhmadfuad8135 2 ปีที่แล้ว

    why my virtual venv always 'virtualenv' is not recognized as an internal or external command? what should i do?

    • @viasmit
      @viasmit  2 ปีที่แล้ว

      Most probably virtualenv is not installed in your system...make sure python and pip is installed on your system...then open command promit as administrator and do pip install virtualenv

    • @akhmadfuad8135
      @akhmadfuad8135 2 ปีที่แล้ว

      @@viasmit I'm sure I've checked my pyhton version 3.10. 5 & pip version 22.1.2. But after installed 'pip install virtualenv' and continued to proceed 'virtual venv' showed the result 'virtualenv' is not recognized as an internal or external command. Can u help me to fixed my error?

    • @viasmit
      @viasmit  2 ปีที่แล้ว

      @@akhmadfuad8135 can you send me the screenshot of your terminal... You can paste drive link here...
      The command is virtualenv venv
      Also please follow this tutorial once:
      packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/
      Let me know if this works

    • @akhmadfuad8135
      @akhmadfuad8135 2 ปีที่แล้ว

      @@viasmit drive.google.com/drive/folders/1esP6ai08_fXjVe7sf4yL6guZofu0WmeX?usp=sharing

    • @akhmadfuad8135
      @akhmadfuad8135 2 ปีที่แล้ว

      or maybe i can get ur contact to ask about this?

  • @samehhussien3412
    @samehhussien3412 ปีที่แล้ว

    can you help me how to use custom model best.pt ,please ?

    • @manishrai7480
      @manishrai7480 ปีที่แล้ว

      in your detect.py file, put the directory of your best.py file in weights argument.

    • @itszeobec
      @itszeobec ปีที่แล้ว

      Hi. I have tried to put the directory of my weight but still when i detect any images, the class appeared was not same as mine so i assume the deployment using my own model still no success right?

  • @cattnation6257
    @cattnation6257 10 หลายเดือนก่อน

    anyone one know how can i connect my ip camera to my project

  • @shrinathsmusic9143
    @shrinathsmusic9143 ปีที่แล้ว

    can be deploy it

  • @patricialaemedina3132
    @patricialaemedina3132 ปีที่แล้ว

    How do i use a custom dataset?