java - Single Frame image from Camera Preview Android -


i want able take snapshot of preview camera screen being displayed on surfaceview. know has onpreviewframe() method , returns byte array in yuv format have no idea how call onpreviewframe() method on it's own.

i have used in conjunction camera.setpreviewcallback() continuous thing keeps generating image, need once on onclick(), pretty take photo without making preview window stop. ideas?

for else similar problem solved using setoneshotpreviewcallback() method on camera object give me byte[] information image. can used create yuv , compressed bitmap or whatever need.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -