Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
eduardkieser opened this issue Jun 19, 2019 · 4 comments
Closed

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

eduardkieser opened this issue Jun 19, 2019 · 4 comments
Labels
c: new feature Nothing broken; request for a new capability customer: crowd Affects or could affect many people, though not necessarily a specific customer. d: stackoverflow Good question for Stack Overflow p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels.

Comments

@eduardkieser
Copy link

eduardkieser commented Jun 19, 2019

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?

@palinda
Copy link

palinda commented Sep 24, 2019

+1

@BondarenkoStas BondarenkoStas added d: stackoverflow Good question for Stack Overflow c: new feature Nothing broken; request for a new capability p: camera The camera plugin plugin labels Oct 4, 2019
@TahaTesser TahaTesser added customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: first party labels Mar 19, 2020
@stuartmorgan stuartmorgan added the P3 Issues that are less important to the Flutter project label Jun 15, 2021
@mhilalsh
Copy link

Hello, did anyone find a solution yet? I still don't understand how to crop a cameraImage, the problem isn't with the format of the camera Image, I tried to change the format to JPEG but then what? how can I crop it?

@stuartmorgan
Copy link
Contributor

Closing, as post-processing images is out of scope for the camera plugin. This is something that would be best built as a separate package by the community.

@github-actions
Copy link

github-actions bot commented Apr 9, 2023

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2023
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability customer: crowd Affects or could affect many people, though not necessarily a specific customer. d: stackoverflow Good question for Stack Overflow p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels.
Projects
None yet
Development

No branches or pull requests

6 participants