2

i try camera picture use https://github.com/fernandoptrr/flutter-camera-practice, this work fine with XFile picture = await _cameraController.takePicture();

then try google ml kit example, https://github.com/bharat-biradar/Google-Ml-Kit-plugin . I try face detector and try screenshot with takePicture(). It give "Error occured while taking picture cannot use a surface that wasn't configured".

can someone give me example take picture camera with google ml kit?

anggadaz
  • 342
  • 3
  • 13
  • btw, i use android camera and ml kit can detect the face – anggadaz Jul 19 '22 at 04:08
  • https://github.com/bharat-biradar/Google-Ml-Kit-plugin is neither owned nor endorsed by Google or Google ML Kit. Please use their Issues page (https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues) to report. – Dong Chen Jul 22 '22 at 23:01

1 Answers1

1

Take a look this github project FaceRecognitionAuth

you can find full face recognition authentication in this project. also if you want to make your own then there need to be some config that you need to be follow. Like when you are set up your

tflite_flutter

package. you need to configure Initial setup

Alwayss Bijoy
  • 778
  • 9
  • 15