saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
2.99k stars 1.2k forks source link

Capture Still Image #509

Open akshayah3 opened 4 years ago

akshayah3 commented 4 years ago

I would like to capture a still image as a background service. But i am unable to capture a picture without a surface(preview). Is there any way to do this? Basically i don't want any preview or UI. Just want capture the picture periodically as a service.

gxshao commented 4 years ago
mUvcCamera.startPreview(new Surface(new SurfaceTexture(0)));
xuannt88 commented 1 year ago
mUvcCamera.startPreview(new Surface(new SurfaceTexture(0)));

Hi, so how can we take the image after that?