Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

reduce processing time of webcam capture

Hi, I work on real time application. My processing time of application is 25ms per frame with 9ms for the cap function of VideoCapture class.

Exemple of my code:

  • begin = clock();

  • Mat image2;

  • cap >>image2;
  • end = clock(); double
  • elapsed_ms1 = double(end - begin) /CLOCKS_PER_SEC;

I would like know if possible by VideoCapture init option or other way to reduce the processing time to get frame of webcam.

thank, CC

reduce processing time of webcam capture

Hi, I work on real time application. My processing time of application is 25ms per frame with 9ms for the cap function of VideoCapture class.

Exemple of my code:

  • begin = clock();

  • Mat image2;

  • cap >>image2;
  • end = clock(); double
  • elapsed_ms1 = double(end - begin) /CLOCKS_PER_SEC;

I would like to know if it's possible by VideoCapture init option of VideoCapture or other way to reduce the processing time to get frame of webcam.

thank, CC