Take picture of scene without Sceneform objects drawn on it #231
Unanswered
sarimmehdi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I want to take a picture without the sceneform objects drawn on it as I need the original image for further computer vision processing and the AR objects hide key features that are needed by my computer vision algorithm. Currently, I am doing the following:
The above code not only captures the image but also captures the AR items drawn on it. How do I get the original image without any of the AR objects on it? My alternative was to disable all nodes while the bitmap was being created and re-enable it when the process completes but that doesn't feel like an elegant solution.
EDIT:
As a workaround, I am taking the Image object I get from the Frame (Image image = frame.acquireCameraImage()) and converting that to a bitmap since that is just the raw image seen by ARCore. However, this is a 640 by 480 image and not 1920 by 1080 one which is the original image.
I would prefer not to increase the resolution of the image, seen by ARCore, to 1920 by 1080 as that can potentially slow down the app. Please, if anyone finds a way to get the original 1920 by 1080 image without any of the Sceneform stuff drawn on it, then do let me know.
Beta Was this translation helpful? Give feedback.
All reactions