Android: how to display camera preview with callback?

前端 未结 6 1229
暖寄归人
暖寄归人 2020-12-03 00:18

What I need to do is quite simple, I want to manually display preview from camera using camera callback and I want to get at least 15fps on a real device. I don\'t even need

6条回答
  •  情深已故
    2020-12-03 00:36

    I believe I read in a blog that the grayscale data is in the first x*y bytes. Yuv should represent luminance, so the data is there, although it isn't a perfect grayscale. Its great for relative brightness, but not grayscale, as each color isn't as bright as each other in rgb. Green is usually given a stronger weight in luminosity conversions. Hope this helps!

提交回复
热议问题