Why i can not get texture by API "Frame.CameraImage.Texture"? #330
Comments
Hi, this is expected behaviour, that's an external texture and cannot be used for that. To do CPU image access you have to use Frame.CameraImage. AcquireCameraImageBytes or use the TextureReaderApi. I would suggest that you take a look a the ComputerVision example. Let me know if this solves your question. |
We can only get the separated data like just Y data or U data as the code below. It is not convenient for me.
I use screenshot insteaded.
|
@pablisho hi, why I cannot get CameraImageBytes on Mi8 device?
|
Hi, @dvlee1024 CameraImageBytes comes in YUV format and we don't provide conversions because there are many libraries already doing that. |
@pablisho Any update of the Mi8 issue? |
Sorry for the delayed reply. Most Xiaomi devices have a known issue where the CPU image access does not reliably work. If you want to support these devices, you will need to copy the GPU image to CPU using the TextureReader code in the ComputerVision sample. |
We've updated the ARCore support devices page to indicate which devices do not currently support CPU image access. |
I want to save texture from rear camera into sdcard. But when i get texture by the API "Frame.CameraImage.Texture" on my phone , i can only get a 0:0 size texture?
The text was updated successfully, but these errors were encountered: