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
Post a Comment