opencv4nodejs

How to disable Buffer in OpenCV Camera?

老子叫甜甜 提交于 2019-12-10 16:37:26
问题 I have this situation where I use OpenCV to detect faces in front of the camera and do some ML on those faces. The issue that I have is that once I do all the processing, and go to grab the next frame I get the past, not the present. Meaning, I'll read whats inside the buffer, and not what is actually in front of the camera. Since I don't care which faces came in front of the camera while processing, I care what is now in front of the camera. I did try to set the buffer size to 1 , and that