Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I capture an image using ARCore Camera with objects?

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?

like image 220
Keval Shukla Avatar asked Dec 24 '18 12:12

Keval Shukla


People also ask

Does ARCore support object tracking?

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.

How does ARCore image recognition work?

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.


1 Answers

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

like image 57
silidragos Avatar answered Oct 18 '22 11:10

silidragos