arcore_flutter_plugin icon indicating copy to clipboard operation
arcore_flutter_plugin copied to clipboard

Hi Guys. Now we can take pictures.

Open eduardoGo opened this issue 4 years ago • 5 comments

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.

eduardoGo avatar Jun 05 '21 15:06 eduardoGo

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?

wiizarrrd avatar Jun 13 '21 22:06 wiizarrrd

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?

eduardoGo avatar Jun 13 '21 22:06 eduardoGo

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

wiizarrrd avatar Jun 13 '21 23:06 wiizarrrd

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.

leeprobert avatar Jul 16 '21 16:07 leeprobert

[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

abdoshy97 avatar Dec 20 '21 13:12 abdoshy97