-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[camera] Access realtime image frames for pre-processing and effect overlays #18968
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
Comments
Sounds like https://github.com/flutter/plugins/tree/master/packages/camera can do that but I haven't tried myself yet. |
Thanks, but it will be better if you can obtain the byte array to work with instead of writing in memory and then retrieving the image for preprocessing. It can be costly in time and resources. I think it can be a really good feature to implement. Just think of the results, ML application, filters, AR/VR application, etc. Maybe includying a Opencv wrapper for flutter. If possible, it could be awesome! |
Have you found a workaround for this? I'm looking for a way to grab the camera frames to then process them with ML Kit. |
I'm also looking for a way to access real-time camera frame feed to do pre-processing and live-streaming. |
There is some work going on that looks related flutter/plugins#679 |
Thanks @zoechi, I'm working to get that PR into shape soon. It'll be a good solution for working with ML Kit. |
I need this also. The camera plugin can only take a camera shot into image file, which is really too much time consuming for many kinds of scenario. |
@arloan I made a prototype with sending live frames from the camera plugin
to another plugin. Would you mind taking a look, offering suggestions and
feedback?
flutter/plugins#688
…On Mon, Jul 30, 2018, 6:43 PM arloan ***@***.***> wrote:
I need this also. The camera plugin can only take a camera shot into image
file, which is really too much time consuming for many kinds of scenario.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#18968 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA6lu5FXIXsyYRL4r6XsJyJ5HjPCFTA2ks5uL7ZdgaJpZM4U-DJr>
.
|
Well, I'm afraid I don't have enough knowledge of Java or Android, that's why I chose flutter ... |
Maurice added the bytestream capability in the camera package |
Camera plugin adds startImageStream in CameraController sice 0.2.9. The image format returned is YUV420-888 which is pretty useful for ML Kit, but not to show on screen. |
@alejamp i'm working on custom model with ml_vision. Can you share the code to convert image? |
Here is the code |
@alejamp thanks for code. now i have a ios custom model working with firebase_ml_vision but it's too slow for a production app. I think the only solution is working with native image manipulation. any suggestions is appreciated about ios and android code.... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thank you @gimox. How is ML-kit able to recognize faces and text in near real-time? Is there a way to access the image-stream from that package? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Just googling a bit: https://github.com/shaqian/flutter_realtime_detection ... would that help? |
Hei, is there a proper way to process images(YUV420 (YCbCr)) which are captured by live-streaming to use for object recognition ? I have used https://pub.dev/documentation/google_ml_kit/latest/ for image detection, and I need to crop images from frames in camera live stream to process for image recognition. I have referred below docs https://medium.com/@hugand/capture-photos-from-camera-using-image-stream-with-flutter-e9af94bc2bee |
Is it possible to access the real-time camera frame feed to do pre-processing or to be used for ML implementations like face-recognition, Image overlays, filters, etc.?
The text was updated successfully, but these errors were encountered: