Created
July 16, 2011 02:49
-
-
Save mumrah/1085940 to your computer and use it in GitHub Desktop.
JavaCV: read FPS from a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static com.googlecode.javacv.cpp.opencv_highgui.*; | |
public class OpenCVFPSTest { | |
public static void main(String args[]) { | |
CvCapture capture = cvCreateFileCapture("big_buck_bunny_480p_surround-fix.avi"); | |
double fps = cvGetCaptureProperty(capture, CV_CAP_PROP_FPS); | |
System.out.println("FPS: " + fps); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment