Ask Your Question

Revision history [back]

 if(waitKey(30) == 27)

this waits 30 ms -> loads approximately 30 frames per second.

to load one frame per second you need

 if(waitKey(1000) == 27)

for one frame in four second

 if(waitKey(4000) == 27)