Exemple #1
0
int main()
{
	int nN;
	int nArray[MAX];
	int nResult;
	while(1==scanf("%d",&nN))
	{
		vInput(nArray,nN);
		nResult=nGetResult(nArray,nN);
		vOutput(nResult);
	}
	return 0;
}
Exemple #2
0
int main(int argc, char* argv[]){
  if(argc < 2){
    std::cerr << "usage: detfps filename"<<std::endl;
    exit(EXIT_FAILURE);
  }
  for(int i=1;i<=argc-1;i++){
    std::string filename(argv[i]);
    std::string vInput(filename);
    
    cv::VideoCapture capture(vInput);
    double fpsIn = capture.get(CV_CAP_PROP_FPS);

    int frameCount = capture.get(CV_CAP_PROP_FRAME_COUNT);
    std::cout << "INPUT: " << vInput << std::endl;
    std::cout << "* Number of frames: " << frameCount << std::endl;
    std::cout << "* Frames per second: " << fpsIn << std::endl;
  }
  return EXIT_SUCCESS;
}
Exemple #3
0
void FuncBase::input( double v )
{
	vInput( v );
}