How to implement photo capture into AR app

Hi, is there any possibility to add photo capture feature to ar application(not a screenshot). Maybe there is some free or paid plugin for that or somebody have made such things before and have some example code or scene. Any help will apreciated.

AR Foundation has an API for accessing camera images on CPU:
https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/manual/cpu-camera-image.html

1 Like

Is it capture with augmentation?

No, this will return only the camera image, without UI or any other objects.

1 Like

Is there any possibility to add augmentation or capture image with it?

Yes, this API lets you capture the raw image data (a video frame).
But I didn’t quite understand the ‘augmentation’ part. You previously said that you don’t want to capture a screenshot, but I think this is the way to go if you want your camera image to be augmented. Here is an idea: you can disable unnecessary objects, take a screenshot, then enable your objects back. If you do it in one frame, the user will not notice anything.

By augmentation i ment ar object, not ui or somethig. The idea is to place some 3d object and make photo with it, like pokemon go or some face app, or they do screenshot to?
Tried to make screenshot disabling ui, it works, but screenshot has low quality

‘like pokemon go or some face app, or they do screenshot to?’
I think yes, they use some kind of screen capture method.

What method do you use to capture a screenshot? You can try a Render Texture approach. With it, you can select any resolution:

I used Native Toolkit plugin
I’ll try it with render texture, hope that will work, thank you!

Please also try this built-in method:

Omg, i guess this is it, thank you

I’ll try both and reply if it work as i look for

And? :smile:

2 Likes