algorithm - How to find framerate of video using c++ opencv 2.4.10? -


actually,i trying detect , track vehicles video using c++ opencv 2.4.10.i did so.now,i want find frame rate of output video.i want know if there way find out.can suggest me blog or tutorial this?

thank you.

something may help.

#include <iostream> #include <opencv2/opencv.hpp> //for opencv3 #include <opencv/cv.hpp> //for opencv2  int main(int argc, const char * argv[]) {     cv::videocapture video("video.mp4");     double fps = video.get(cv::cap_prop_fps);     std::cout << "frames per second : " << fps << std::endl;     video.release();     return 0; } 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -