If you are directly using the YAHBOOM version of the mirror and using a USB camera
you need to make a simple modification to uncomment line 292 in the datasets. py file of~/yolov5/utils. Add '#' to line 293.
Run the following command directly
cd ~/yolov5 && python3 detect.py --source 0
After waiting for a while, the CSI camera turned on
You can see that the screen will display the recognized object
Press Ctrl+c and turn off the camera screen to end the program And store the identified results in the yolov5/runs/detect/exp path (a video)
If the image you have built still experiences SPPF errors, you can refer to the tutorial https://blog.csdn.net/m0_50004939/article/details/126739291