Search Unity

Question How to implement photo capture into AR app

Discussion in 'AR' started by aleksandrkosmatkov, Oct 20, 2020.

Thread Status:
Not open for further replies.
  1. aleksandrkosmatkov

    aleksandrkosmatkov

    Joined:
    Oct 20, 2020
    Posts:
    7
    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.
     
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,142
  3. aleksandrkosmatkov

    aleksandrkosmatkov

    Joined:
    Oct 20, 2020
    Posts:
    7
  4. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,142
    No, this will return only the camera image, without UI or any other objects.
     
    aleksandrkosmatkov likes this.
  5. aleksandrkosmatkov

    aleksandrkosmatkov

    Joined:
    Oct 20, 2020
    Posts:
    7
    Is there any possibility to add augmentation or capture image with it?
     
  6. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,142
    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.
     
  7. aleksandrkosmatkov

    aleksandrkosmatkov

    Joined:
    Oct 20, 2020
    Posts:
    7
    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
     
  8. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,142
  9. aleksandrkosmatkov

    aleksandrkosmatkov

    Joined:
    Oct 20, 2020
    Posts:
    7
    I used Native Toolkit plugin
    I'll try it with render texture, hope that will work, thank you!
     
  10. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,142
  11. aleksandrkosmatkov

    aleksandrkosmatkov

    Joined:
    Oct 20, 2020
    Posts:
    7
  12. aleksandrkosmatkov

    aleksandrkosmatkov

    Joined:
    Oct 20, 2020
    Posts:
    7
    I'll try both and reply if it work as i look for
     
  13. Rebaken-Enterprises

    Rebaken-Enterprises

    Joined:
    Nov 17, 2014
    Posts:
    17
Thread Status:
Not open for further replies.