arcore-unity-extensions icon indicating copy to clipboard operation
arcore-unity-extensions copied to clipboard

Capture full resolution camera image

Open lancefi opened this issue 4 years ago • 2 comments

Any plans to let us capture a full resolution photo during an AR session (even paused)?

Can we or will we be able to use a shared camera session and the camera2 api?

I need to be able to use AR to guide the user in aligning the camera and then take a full resolution photo. Is this possible as of now? Or will it be possible at a later date?

lancefi avatar Apr 20 '20 12:04 lancefi

@lancefi It's been a while now and I'm wondering if you've been able to find a workaround for this issue.

ZiadJ avatar Apr 16 '22 17:04 ZiadJ

Do you mean to do the screen capture on ARCore app? If it is and you are using Unity, I just do this part recently. in button action: string fileName = "womoshot"+generate_event_id()+".png"; string filePath = Application.persistentDataPath + "/"; StartCoroutine(CaptureScreenshotWithCallback(filePath, fileName)); then put code on that. IEnumerator CaptureScreenshotWithCallback(string filePath, string fileName) { ScreenCapture.CaptureScreenshot(filePath+fileName); }

I hope this can answer your question.

chiangandy avatar Dec 07 '23 08:12 chiangandy

Hopefully the screenshot solution posted by @chiangandy meets your needs. ARCore does not offer an official way to do this, however, the camera image is a material on the background renderer and may be accessible that way.

mrichards avatar Dec 12 '23 19:12 mrichards