RealSenseID icon indicating copy to clipboard operation
RealSenseID copied to clipboard

"image.get_buffer" Show Old Images Error

Open zeynepkoyun opened this issue 3 years ago • 3 comments

Hi @gabime

When I try to get the image with image.get_buffer, it first takes the old data and then shows the new data. How can I clear the cache?

zeynepkoyun avatar Aug 03 '21 07:08 zeynepkoyun

Not sure I understand. Please provide a sample code to reproduce the problem.

gabime avatar Aug 03 '21 14:08 gabime

Hi @gabime When I want to ask for the Anti-Spoof answer on the image I got from the camera, it works asynchronously because it takes the images in order.

That is, while taking the 1st frame and looking for the anti-spoof response, the 2nd, 3rd and 4th frames should be taken. When I asked for the frame for the anti-spoof response again, it should have asked for the 4th frame, but first the 2nd, then the 3rd frame and then the 3rd frame. There is the latest 4thframe answer.

zeynepkoyun avatar Aug 03 '21 15:08 zeynepkoyun

You can cache some image, and find the nearest image by timestamp. the target timestamp is return from AuthenticationCallback::OnFaceDetected and all image have timestamp in metadata.

RealSenseSupport avatar Oct 27 '21 07:10 RealSenseSupport