Sceneform-android-sdk: How capture image of the rendering model and save to local as png or jpg.

Created on 26 Jun 2018  路  2Comments  路  Source: google-ar/sceneform-android-sdk

I want to capture the image of the model and save to local folder.
To achieve this I tried some code like arFragment.getArSceneView().getArFrame().acquireCameraImage()
this is giving Image class object, I thought from here I will get bitmap object but bitmap is always null.
Please update how to achieve this functionality.

Most helpful comment

You can use the PixelCopy API as described in the following codelabs:
https://codelabs.developers.google.com/codelabs/sceneform-intro/index.html?index=..%2F..%2Fio2018#14

All 2 comments

You can use the PixelCopy API as described in the following codelabs:
https://codelabs.developers.google.com/codelabs/sceneform-intro/index.html?index=..%2F..%2Fio2018#14

Thanks, its working fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JessHolle picture JessHolle  路  3Comments

tigran-babajanyan picture tigran-babajanyan  路  3Comments

khonakr picture khonakr  路  3Comments

dementia2029 picture dementia2029  路  3Comments

terezo picture terezo  路  3Comments