Rajatkalsotra / Face-Recognition-Flutter

Realtime face recognition with Flutter
MIT License
165 stars 85 forks source link

How to run on iOS #10

Closed dua8racer closed 3 years ago

dua8racer commented 3 years ago

Before that I thank you for inspiring. I've run this application, for android version it works normally but for ios version it can't work. I've changed the gpu delegate code

final gpuDelegate = GpuDelegate(
      options: GpuDelegateOptions(true, TFLGpuDelegateWaitType.active),
    );
var interpreterOptions = InterpreterOptions()..addDelegate(gpuDelegate);
final interpreter = await Interpreter.fromAsset('your_model.tflite',
    options: interpreterOptions);

but still it doesn't work, is there a solution for working on ios Thanks Before

Rajatkalsotra commented 3 years ago

@dua8racer Thanks for the big words . I've coded it for android only. Issue may be related to the output of camera format (android -> yuv and ios -> bgra) .Can you attach the error log?

dua8racer commented 3 years ago

Halo @Rajatkalsotra the error log is An empty result was returned from GMVDetector in VisionFaceDetector.