开发者

Get picture on android

开发者 https://www.devze.com 2023-02-19 15:06 出处:网络
I want to create a simple game for android which is supposed to use a camera. The thing is that I don\'t really care about the resolution of the picture, what meters to me is speed. I need the picture

I want to create a simple game for android which is supposed to use a camera. The thing is that I don't really care about the resolution of the picture, what meters to me is speed. I need the picture to be taken the moment a key is pressed. Ideal solution would be to use a frame from camera preview. I need this picture as a table of data for analysis, I don't need a file.

Is this possible to get a single frame form camera/video camera preview? Or maybe it's easier to get a low resolution picture? Can you tell me which function would be useful here, and maybe give a short example? How can I get access to picture data usi开发者_如何学Gong such a function?

Thanks in advance! Bye


You may find the ZXing barcode scanner's source code helpful.

0

精彩评论

暂无评论...
验证码 换一张
取 消