foschmitz / yolo-python-rtsp

Object detection using deep learning with Yolo, OpenCV and Python via Real Time Streaming Protocol (RTSP)
MIT License
143 stars 42 forks source link

TypeError: an integer is required (got type Reader) #2

Closed meeftah closed 4 years ago

meeftah commented 4 years ago

Hi, I got an error: Traceback (most recent call last): File "yolo_opencv.py", line 184, in <module> processvideo(reader) File "yolo_opencv.py", line 131, in processvideo cap = cv2.VideoCapture(file) TypeError: an integer is required (got type Reader)

is there something that I should do?

foschmitz commented 4 years ago

Hi, thanks for the hint. Updated to imagio-ffmpeg and adjusted the readme. Also tested with rtsp, still working fine.