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)
-
Created Date : 2011.10 Language : C/C++ Tool : Microsoft Visual C++ 2008 Library & Utilized : OpenCV 2.3 Reference : SIFT referenc...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
The latent SVM tells the learning method used in this paper -> "Discriminatively trained deformable part models". The authors s...
-
As you can see in the following video, I created a class that stitching n cameras in real time. https://www.youtube.com/user/feelmare/sear...
-
CUDA_ARCH_BIN Table for gpu type Jetson Products GPU Compute Capability Jetson AGX Xavier 7.2 Jetson Nano 5.3 Jetson TX2 6.2 Jetson TX1 5.3 ...
-
1. sudo apt update sudo apt install cmake 2. pip install cmake 3. pip install dlib
-
I am wondering that two hog features can compare or not. There was a article about this question on this page -> http://stackoverflow...
-
When the video write, we can set parameter in following function.. outVideo.open(".\\outVideo.avi", askFileTypeBox, capture.get...
-
hmm......I have taken for about 5 hours for solve this problem.... error is like that: Traceback (most recent call last): File "...
-
TensorFlow install on ubuntu (This is referenced pip install tutorial on tensorflow.org -> https://www.tensorflow.org/versions/r0.7/get_...
No comments:
Post a Comment