-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Description
🐛 Bug
I connect 3 cameras IP to my computer.
I run the command : python detect.py --weights ./weights/best.pt --conf 0.3 --iou 0.5 --source 'streams.txt' --save-txt --view-img.
stream.txt :
rtsp://192.168.1.20:554/1/h264major
rtsp://192.168.1.19:554/1/h264major
rtsp://192.168.1.18:554/1/h264major
But after some time it exits with this error :
File "C:\Users\const\Documents\PFE\Code\yolov5\utils\datasets.py", line 795, in letterbox
shape = img.shape[:2] # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
[h264 @ 000001c6faedcd00] error while decoding MB 68 0, bytestream -11
To Reproduce (REQUIRED)
It cannot be reproduced unless you have multiple camera IP
I think it links with a drop of fps.
My question is how can I fix this bug in the code and where can I modify to have an impact ?
Thanks