shaqian / flutter_tflite

Flutter plugin for TensorFlow Lite
https://pub.dartlang.org/packages/tflite
MIT License
633 stars 407 forks source link

I wanted to add mask detection, but the App crashed after opening the camera, and no error was reported #103

Open GanZhiXiong opened 4 years ago

GanZhiXiong commented 4 years ago

I found the model of mask detection here https://github.com/AIZOOTech/FaceMaskDetection

face_mask_detection.tflite.zip

Tflite.loadModel have two arguments, but labels corresponds to what's in the text and I don't know what to write.

labels.txt I tried to write everything possible, but after the App opened the camera, it crashed. crash in Tflite.runModelOnFrame

Looking forward to your reply. Thank you

XinyueZ commented 3 years ago

U can try this https://github.com/XinyueZ/flutter_face_mask_detecting