Real time face detection in flutter app

2,756 views
Skip to first unread message

Ian Leshan

unread,
Jul 25, 2018, 4:21:56 PM7/25/18
to Flutter Dev
Hello,

I am currently developing an app that requires real time face detection. Right now I have the mlkit library in the app and I am using the firebase face detector. At the moment, it produces an error every time I try to detect a face from file: 
DynamiteModule(13840): Local module descriptor class for com.google.android.gms.vision.dynamite.face not found.

As for the real time part, I tried using the RepaintBoundary in flutter to get a screenshot of the camera widget (almost)every frame and convert it into a binary file for face detection. But for some reason, flutter crashed every time I tried to screenshot the camera widget. It worked for other widgets.

After coming across both of these problems and spending quite a while trying to solve them, I've been thinking about just doing the camera part of the app in android/iOS native code(I would do this with OpenCV so that I can have real time detection). Is there a way I could use platform channels to implement a camera view in kotlin and swift and import that to a flutter widget? Or is there another easier way to implement this?

Thanks,
Ian.

bmp...@google.com

unread,
Jul 26, 2018, 5:56:20 PM7/26/18
to Flutter Dev
Hi Ian,

I should be able to help with your first bug. Are you using the mlkit plugin or firebase_ml_vision plugin?

- Maurice

Tanvesh sarve

unread,
May 31, 2020, 8:05:44 AM5/31/20
to Flutter Development (flutter-dev)
Did any one find how to do this?

Souvik Dutta

unread,
Jun 1, 2020, 6:27:41 AM6/1/20
to Tanvesh sarve, Flutter Development (flutter-dev)

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/ab45812c-1b9f-410b-aad1-b4064673fb35%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages