Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi Guys. Now we can take pictures. #141

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eduardoGo
Copy link

@eduardoGo eduardoGo commented Jun 5, 2021

Hi Guys,

Now, we can take pictures using arCoreController.snapshot().

The picture is saved on external storage of the device, on "MyApp" folder.

It work on two modes of the ArCoreView, the Normal view and the AugmentedMode.

I added floating buttons to take picture in some examples.

@wiizarrrd
Copy link
Contributor

wiizarrrd commented Jun 13, 2021

Hi @eduardoGo does your commit work? I tried to take a screenshot and send a result.success() within the PixelCopier with my own screenshot solution some days earlier. Then I got an error that the message can only be sent on the main thread.

Do you use an own thread to take the screenhsot?

@eduardoGo
Copy link
Author

Hi @eduardoGo does your commit work? I tried to take a screenshot and send a result.success() within the PixelCopier with my own screenshot solution some days earlier. Then I got an error that the message can only be sent on the main thread.

Yes, works fine... Do you check the permissions?

@wiizarrrd
Copy link
Contributor

Hi @eduardoGo does your commit work? I tried to take a screenshot and send a result.success() within the PixelCopier with my own screenshot solution some days earlier. Then I got an error that the message can only be sent on the main thread.

Yes, works fine... Do you check the permissions?

No I don't check the permission and the problem is at another place: Sending messages(result.success) from a Handlerthread instead of the MainThread

@leeprobert
Copy link

Does the method return a Future with an ImageProvider? I am building a cross-platform solution and need to store the snapshot image in a specific place like it would for iOS.

@abdoshy97
Copy link

[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: NoSuchMethodError: The method 'snapshot' was called on null.
E/flutter (27793): Receiver: null
E/flutter (27793): Tried calling: snapshot()
this error when i add pleas heeeeeeeellllllllppppppppp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants