I am using a videocapture object to capture and process the frame of a video in opencv / javacv. I do not know how to get the frame rate I need a timer that runs in the background during live video capture. It should be stopped on face and should continue later. Due to the processing of hexascade file, process is taking a lot of time in each process. How to adjust the frame rate.
System.loadLibrary (Core.NATIVE_LIBRARY_NAME); Video capture camera = new video capture (0); You can extract different parameters from video capture with frame parameters, height of frame, width of width etc. . cv :: VideoCapture input_video; If (input_video.open (my_device)) {std :: cout & lt; & Lt; "Open video file" & lt; & Lt; Std :: endl; } Other {std :: cout & lt; & Lt; "Not able to open video file" & lt; & Lt; Std :: endl; } Int fps = input_video.get (CV_CAP_PROP_FPS); Int Frame Count = input_video.get (CV_CAP_PROP_FRAME_COUNT); Double fheight = input_video.get (CV_CAP_PROP_FRAME_HEIGHT); Double efheath = input_video.gate (cv_cap_prop_frame_width);
Comments
Post a Comment