4/17/2017
video show and write keeping original fps
When the video write, we can set parameter in following function..
outVideo.open(".\\outVideo.avi", askFileTypeBox, capture.get(CV_CAP_PROP_FPS), S, Color);
And we can control play speed by waitKey.
double fps = capture.get(CV_CAP_PROP_FPS);
delay Per Second = 1/fps
in milliseconds = 1/fps * 1000
so we delay, waitKey( 1/fps * 1000 )
by the way, it is not exact fps. because it is delayed including other processing in the loop.
for example, data copy, sobel, imshow ...
< gist code >
< /gist code >
#tags
CV_CAP_PROP_FRAME_WIDTH, CV_CAP_PROP_FRAME_HEIGHT, VideoCapture, VideoWriter, waitKey
Labels:
CV_CAP_PROP_FRAME_HEIGHT,
CV_CAP_PROP_FRAME_WIDTH,
OpenCV,
Total,
VideoCapture,
VideoWriter,
waitKey
Subscribe to:
Post Comments (Atom)
-
EMD(earth mover distance) method is very good method to compare image similarity. But processing time is slow. For using the EMD compare, ...
-
If you meet this error studying juliaset in CUDA by example book capture 4. calling a __host__ function("cuComplex::cuComplex") ...
-
Refer to this page about official reference of ICF http://docs.opencv.org/3.0.0/d6/dc8/classcv_1_1xobjdetect_1_1ICFDetector.html Other pa...
-
This error is because of schedule{ step:0 learning_rate: 0.00019... } So just change whole optimizer block to latest models optimiz...
-
error message: remote: Resolving deltas: 100% (23/23), completed with 8 local objects. remote: error: Trace: 2ffe6017a58c483deb760c27365127...
-
Open powershell by admin and put this on terminal > net stop wuauserv #stop service update > net stop bits #stop bits > Remove-Ite...
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
I use MOG2 algorithm to background subtraction. The process is resize to small for more fast processing to blur for avoid noise affectio...
-
AMD GPU Programming Primer Threads · Waves · Memory · Tile Distribution · Vector Loads · MFMA ...
-
Google Coral USB Edge TPU Implementation Guide 1. Installation and Troubleshooting 1.1 Hardware Requirements Google Coral USB Accelerator ...
No comments:
Post a Comment