Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
338 views
in Technique[技术] by (71.8m points)

python 3.x - VideoCapture can open a video but then after some second or minute cap.read?() keeps returning false

While accessing live-streaming IP camera. VideoCapture can open a video but then after some second or minute can't read it. cap.read?() keeps returning false and frame is none after some time. FPS rate of that camera is 180000. This is so high.

Python-> 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] on linux OS- Ubuntu (18.04 or 20.04) OpenCV - 4.4.0 opencv-contrib-python==4.4.0.46

question from:https://stackoverflow.com/questions/65843787/videocapture-can-open-a-video-but-then-after-some-second-or-minute-cap-read-k

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Look here, it seems like openCV has problems with non-USB cameras. Reported fps are likely to be a default value when opencv cannot read camera properties.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...