Convert Android camera2 api YUV_420_888 to RGB

后端 未结 7 895
暗喜
暗喜 2020-12-14 02:56

I am writing an app that takes the camera feed, converts it to rgb, in order to do some processing.

It works fine on the old camera implementation which uses NV21 Y

7条回答
  •  被撕碎了的回忆
    2020-12-14 03:21

    Have you tried using this script? It's an answer posted by yydcdut on this question

    https://github.com/pinguo-yuyidong/Camera2/blob/master/camera2/src/main/rs/yuv2rgb.rs

提交回复
热议问题