How to get daytime of each frame when use cv2.VideoCapture("ip camera") python?

asked 2019-12-30 02:03:54 -0500

GW gravatar image

updated 2019-12-30 04:41:01 -0500

Daytime with red line

edit retag flag offensive close merge delete

Comments

Try cv2.CAP_PROP_POS_MSEC

supra56 gravatar imagesupra56 ( 2019-12-30 03:52:28 -0500 )edit

For IP camera using gstreamer:

$ v4l2src device=/dev/video1 do-timestamp=true ! video/x-h264, width=1280, height=720, framerate=15/1 ! v4l2h264dec ! v4l2video20convert ! appsink
supra56 gravatar imagesupra56 ( 2019-12-30 04:35:22 -0500 )edit