Android: Accessing hardware camera preview frame data without drawing them

后端 未结 2 933
忘掉有多难
忘掉有多难 2021-02-19 17:38

According to the android camera docs from the Java SDK side, the camera preview frames have to be supplied a (visible and active) surface to be drawn to in order to access the f

2条回答
  •  既然无缘
    2021-02-19 18:29

    There is no getting around having the SurfaceView for image preview. What you could do is delegate the responsibility of capturing the byte[] to the apps implementing your library which would allows them to use your library for not only images from the camera but allows images that have already been taken.

提交回复
热议问题