Double conversion c++ opencv -


I'm having a hard time understanding my problem code is the following:

  video Capture cap (argv [1]); Double FPS = hat .get (CAP_PROP_FPS); Int fps_prime = (int) fps; Cout & lt; & Lt; "Fps =" & lt; & Lt; FPS & lt; & Lt; Endl; Cout & lt; & Lt; "FPS_prime =" & lt; & Lt; Fps_prime & lt; & Lt; Endl;  

I know that my input is 25 fps, but I get the following output:

  FPS = 2.60049e-07 FPS_prime = 0 height = 576  

how should I get the integer part of its FPS? I must precise that I am using opencv 3.0 and I have the following Preprocessor Directive:

  #ifdef __cplusplus #define __STDC_CONSTANT_MACROS #ifdef _STDINT_H #undef _STDINT_H #endif #include & lt; Stdint.h & gt; #andif  


Comments