Skip to content

Cropping YUV images I'm a quick way. #34743

@eduardkieser

Description

@eduardkieser

Hello, I would like to crop the images that are returned from the camera image stream without first converting to rgb image so that I can send the cropped frame to Tflite.

Something like this would be great

cameraController.startImageStream((CameraImage availableYUV)async{
      if (!_isDoneReadingImage) return;
      CameraImage croppedYUV = cropCameraImage(availableYUV, x0, x1, y0, y1)
      // send cropped image to Tflite
}

Does anyone know how to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.d: stackoverflowGood question for Stack Overflowp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions