Skip to content

Hi Guys. Now we can take pictures. - #141

Open
eduardoGo wants to merge 2 commits into
giandifra:masterfrom
eduardoGo:master
Open

Hi Guys. Now we can take pictures. #141
eduardoGo wants to merge 2 commits into
giandifra:masterfrom
eduardoGo:master

Conversation

@eduardoGo

@eduardoGo eduardoGo commented Jun 5, 2021

Copy link
Copy Markdown

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

wiizarrrd commented Jun 13, 2021

Copy link
Copy Markdown
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.

Do you use an own thread to take the screenhsot?

@eduardoGo

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown

[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.

4 participants