【问题标题】:Get the bytes[] from a TotalCaptureResult从 TotalCaptureResult 中获取 bytes[]
【发布时间】:2015-06-26 09:10:11
【问题描述】:

我正在使用 Android 中的 Camera2 API 从相机获取 TotalCaptureResults 对象。我使用的是预览,而不是单个图像。有没有办法从 TotalCaptureResults 中获取 bytes[]?

谢谢。

【问题讨论】:

    标签: android android-camera


    【解决方案1】:

    简短回答:不。

    所有CaptureResults 对象仅包含有关帧捕获的元数据,没有实际的像素信息。相关的像素数据将发送到您在CaptureRequest.Builder 中指定为目标Surface 的任何位置。因此,您需要检查您设置的任何Surface,例如ImageReader,它可以让您访问相机的Image 输出,这将使您可以访问字节[]。

    【讨论】:

      猜你喜欢
      • 2021-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-03
      • 2019-09-09
      相关资源
      最近更新 更多