Hide camera preview but still receive preview callbacks

后端 未结 2 2008
轮回少年
轮回少年 2021-01-20 18:09

I want to show filtered camera preview in my application.

I\'m using Camera.setPreviewCallback() for this. I managed to process callback data and show filtered image

2条回答
  •  长发绾君心
    2021-01-20 18:34

    Create a simple View with a black background color. Position the view at the same position as the camera's SurfaceView. The camera's preview will be effectively hidden.

提交回复
热议问题