Closed sstadtl closed 4 years ago
Hi @sstadtl, You may use native_screenshot plugin by @ivanjpg for that.
this work beautiful. ty
That package will take a screenshot of the entire screen including any other widgets, app bars etc. Is there any way to grab the video frame from the ARKitSceneView
? I would also like to just take the UI.Image
data so I can allow my user to choose if they want to save it. I have tried RepaintBoundary
technique but as pointed out, it doesn't seem to want to paint a video frame.
@olexale I'd like to reopen this ... that alternative is not ideal. Surely we can grab a frame from the video?
ARSession
has a currentFrame
getter that returns an ARFrame
. This class has a capturedImage
property which is a CVPixelBuffer
... it would take a bit of work, but it should be possible to allow access to the ARSession
and then convert that CVPixelBuffer
into a ByteArray
so we can create an image of it.
Not clear if ARFrame
contains the augmented content as well, or just the raw video data.
the snapshot
method of ARSceneView
works and I have added it to the package as a snapshot
method of ARKitController
. I'll submit a pull request.
is there any way to capture the AR scene from code? This https://pub.dev/packages/screenshot could not handle it.