I encountered a bug today. I didn’t have a problem before, but I have a problem today
There is no problem with yolov4 target detection image. There is a problem with this test video or calling camera detection
Report the following error:
TypeError: Expected cv::UMat for argument ‘src’
src data type = 17 is not supported
Repeated installation of OpenCV and numpy versions keeps reporting this error
Later, I thought it might be because the dataset pictures were in Chinese, so I renamed the pictures and re labeled them. The labels were also in English, and then I trained. After training, I found that there were still problems.
Finally, it is found that the result of Yolo prediction code is not directly returned to the picture,
images = yolo.detect_ image(image)
r_ image = images.get(‘image’)
The picture is in the dictionary
When the video is called
frame = np.array(yolo.detect_image(frame))
It needs to be changed to
frame = yolo.detect_ image(frame)
frame = np.array(frame.get(‘image’))
Moreover, Chinese pictures and Chinese labels have no effect.
Read More:
- Edge detection: two methods
- Develop a Boolean equation for overflow detection
- Solution of error in CAD license detection
- Convex hull detection and convex hull vertex solution of PCL point cloud Library
- Reading and saving opencv Python video
- Installing opencv and Linux Makefile:160 : recipe for target ‘all’ failed problem resolution
- Remove video with video byte 0, uncaught (in promise) domexception: failed to load because no supported source was f
- Video JS can’t play the prompt( CODE:4 MEDIA_ ERR_ SRC_ NOT_ SUPPORTED) No compatible source was found for this video.
- Video prediction beyond mean square error
- Python learning notes (5) — cross entropy error runtimeerror: 1D target tensor expected, multi target not supported
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- Opencv perfect configuration strategy 2015 (win7 + opencv 2.4.9 + vs 2013)
- How to Solve Yolov5 Common Error (Three Errors)
- Wrong classification of Python — assertion cur_ Target is greater than or equal to 0 and cur_ Target is less than n_ classes failed
- [opencv + openvino] opencv-vino4.5.1 + opencv contrib installation
- Project files may be invalid appears when cmake compiles opencv3.1, and the debug additional dependency of the compiled opencv3.1 is at the end
- Error message for HLS Video Fusion for the second time when using mars3d
- Video download problem of blob type URL
- The video cannot be played because you have disabled the cookie
- Python implementation of bilibilibili (B station) video download