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