ultralytics / yolo-flutter-app

A Flutter plugin for Ultralytics YOLO computer vision models
https://ultralytics.com
GNU Affero General Public License v3.0
63 stars 24 forks source link

How to crop image using DetectedObject rect values captured from camera? #48

Open imhafeez opened 1 month ago

imhafeez commented 1 month ago

I am facing issue on cropping.

I have capture an image from mobile camera then i want to detect the card using my owned custom trained model. I cannot crop the exact detected image as it always gives me wrong rect values in DetectedObject.

Please help. any example on how to do it.

Thank you

imhafeez commented 1 month ago

Thanks @pderrenger. But this is in python. I need to implement it in flutter. You you can help me to implement it in flutter would be great. As i am unable to normalise the coordinate space. The detected Rect which i am getting from model is too small when i cropped the image taken from camera.

imhafeez commented 3 weeks ago

why the comments has been removed?

glenn-jocher commented 3 weeks ago

Thank you for your question. Comments may be removed for various reasons, such as maintaining clarity or relevance. If you have specific concerns or need assistance, please let us know how we can help.

x2031 commented 5 days ago

Now the return value recognized by the image is automatically scaled to the screen size, you can take a look at my pull, I just submitted one that directly returns the raw data #56

glenn-jocher commented 5 days ago

Thank you for your contribution! We'll review your pull request and provide feedback soon.