簡體   English   中英

從 CameraX ImageAnalysis 獲取 byte[] 或 ByteBuffer

[英]Getting byte[] or ByteBuffer from CameraX ImageAnalysis

有沒有辦法從 CameraX ImageAnalysis 用例中獲取 byte[] 或 ByteBuffer? 任何見解都值得贊賞。

CameraX 測試應用程序

byte[] bytes = new byte[image.getPlanes()[0].getBuffer().remaining()];
image.getPlanes()[0].getBuffer().get(bytes);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM