YOLOv5 object detection on Raspberry pi 4

preview_player
Показать описание
Run YOLOv5 on raspberry pi 4 for live object detection, and fixing errors;
Need help? My Upwork account link:

Please support me on patreon for making more videos:

All the installation done in this video are given below:

1. Download yolov5 repository

2.Installing cv2
$ pip3 install opencv-python

$ sudo apt-get install libatlas-base-dev

4. To fix, no module name: tqdm
$ pip3 install tqdm

5. To fix, no module name: yaml
$ pip3 install pyyaml

6. To fix, no module name: matplotlib
$ pip3 install matplotlib

7. To fix no module name: pandas
$ pip3 install pandas

8. To fix no module name: seaborn
$ pip3 install seaborn

9. DistributionNotFound: The 'pycocotools ]=2.0' distribution was not found and is required by the application
$ pip3 install cython

10. DistributionNotFound: The 'thop' distribution was not found and is required by the application

$ pip3 install thop

Рекомендации по теме
Комментарии
Автор

Hi, first thank a lot fore your explanation. I just want to know for the raspberry pi does it make a difference in performance if I use 2, 4, or 8 GB RAM?

ameer-alahmadi
Автор

hi, How can we do it with custom data set? It is already a pre-trained, model. Is it possible to use our own dataset?

nasimreza
Автор

Thank you for the video. How do you pass the YouTube image through the yolo?

faceprofesor
Автор

Thanks, dude it's working. 5x slower than the MobileNet algorithm that I used. Needs some improvements.
Raspberrypi 4B
2GB RAM
Pi camera
armv7l

wajadadkarim
Автор

nice video BTW can we also use a raspberry pi 3 model B+ for the custom object detection ? and can you also record a video for this as well by using the raspberri pi?
Thanks

readystudygo
Автор

great work! how can we implement this using tiny version, i suppose it would be faster

zubaidahsabah
Автор

Did you install the 2.2 version of tension flow?

oxncjvq
Автор

thx for the video, can you use the sci camera with this 64bit version system? i have found many solutions, but no one is useful. I guess that's the reason why you use the usb web camera?

jarbozhang
Автор

How can i download yolov5 to raspberry pi 3b+ I couldn't find anywhere. Can you help me about this?

betulsahin
Автор

can we deploy in raspberry pi 3? does it support with pytorch? or any pytorch version? thank you

singgihbekti
Автор

How many Gb for a raspberry pi to run YOLOv5 like in this video?

himomhey
Автор

I am facing problem with installing opencv-python, it sys that object is not iterable, how can i fix it, if would you please

sdexnim
Автор

Is it the same way for the yolov3-tiny?

Supik.
Автор

I get a "Segmentation Fault" error when I run the inference. Any help?

nanakwamekankam
Автор

sir why do i get "Illegal instruction" when i run the file??

shahedobaid
Автор

We can't install torch, it gives the following error.. Do you have any idea on how to solve this? Thanks!

Could not find a version that satisfies the requirement torch>=1.0.0 (from thop) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)

f_bian
Автор

i need help! i keep getting this even running on python 3.7.3 on my rpi.

File "detect.py", line 73
stride, names = 64, [f'class{i}' for i in range(1000)] # assign defaults
^
SyntaxError: invalid syntax

asdftw
Автор

Hey in mine, it says no command pip3
pls help

kashishnaqvi
Автор

Hey amazing tutorial, can you help me out on how to provide audio output for the detected objects? which code to edit and how to edit? Thanks in advance!

kashishnaqvi
Автор

I can't install pytorch on raspberry pi 3 B+ ...!

smitpanchal