1

I want to store the Camera Preview after every second. Problem is the frame rate cannot go below 20-24.

Currently it stores around 170 images in 5 sec. onPreviewFrame is being called ULTRA frequently which i want to slow down to 1 preview per second. I used Thread.sleep() but i guess its not a nice of doing it. I want to store 1 image in 1 sec. Any leads on this?

Thanks

gursahib.singh.sahni
  • 1,559
  • 3
  • 26
  • 51

1 Answers1

-1

Instead of setPreviewCallback go for setOneShotPreviewCallback: This callback gives you only one frame and the callback will get cleared. You can keep calling this at every one second interval or when you are done with storing previous frame.

Santhosh
  • 158
  • 2
  • 14