detect function

Future<List<Face>> detect(
  1. CameraImage image,
  2. HandleDetection handleDetection,
  3. int cameraLenIndex
)

Implementation

Future<List<Face>> detect(
  CameraImage image,
  HandleDetection handleDetection,
  int cameraLenIndex,
) async {
  final googleImage = GoogleVisionImage.fromBytes(
    _concatenatePlanes(image.planes),
    _buildMetaData(image, rotationIntToImageRotation(cameraLenIndex)),
  );
  return handleDetection(googleImage);
}