I am creating an application using ARCore to display some images on blank surface. I want to capture image of that surface where object is display. I have put a capture button on AR camera screen.
Is it possible to capture that view with objects in ARCore camera?
At the moment there's still no 3D Object Recognition API in ARCore 1.31. But... You can use ML Kit framework and Augmented Images API (ARCore 1.2+) for some tasks. According to Google documentation, you can use ARCore as input for Machine Learning models.
ARCore uses a computer vision algorithm to extract features from the grayscale information in each image, and stores a representation of these features in one or more Augmented Image databases. At runtime, ARCore searches for these features on flat surfaces in the user's environment.
If you simply need a screenshot of the ARCore view you can try using some Android functionality such as PixelCopy.request(view, bitmap, (copyResult)->{})
on the ArSceneView of the ARCore fragment.
Source: https://codelabs.developers.google.com/codelabs/sceneform-intro/index.html?index=..%2F..io2018#15
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With