Hi, I trained a model with âRoboflow Trainâ. Then I used the referenced code (Using Your Webcam with Roboflow Models) there and changed the video source from webcam to RTSP stream. This is the console output of problem:
[rtsp @ 000001a6ebfe64c0] Received packet without a start chunk; dropping frame. cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:967: error: (-215:Assertion failed) size.width>0 && size.height>0 in function âcv::imshowâ
It still gives the same errors also it debugged " status: 404 data: bâ{âmessageâ:âNot Foundâ}â ". Also, the window which pops up for the camera stream doesnât show video.
You may also need to first install ffmpeg, then create the python environment or virtual environment and install the opencv package. From there, try running the code.
On the other hand, I also can not use my dataset over VideoCapture(0). When I try it, status: 404 data: bâ{âmessageâ:âNot Foundâ}â exit code disappears and python not responding.
Actually, this low fps problem shows up on the webcam. I couldnât test it with RTSP stream yet. Also, I have powerful CPU (i7-11800H) and GPU (RTX 3060). With this system, I canât give the meaning of 1-2 fps values