Git Product home page Git Product logo

Comments (4)

dme-compunet avatar dme-compunet commented on August 16, 2024

Are you having problems with regular detection?
Can you please explain to me about rect=True and how I should adjust this repo?

from yolov8.

rkmore avatar rkmore commented on August 16, 2024

Hello. Thanks for the reply.

rect=True tells the system that when performing recognition on an image that is not square the source image should keep its original aspect ratio and should be "letterboxed" with black on the short dimension.

Image Processing with rect=True: When rect=True is set, images are resized to match the longer dimension set by imgsz, maintaining their aspect ratio. This means the shorter sides might not be exactly to imgsz, but will be scaled accordingly.

Padding and rect=True: If there's empty space after resizing due to aspect ratio differences, padding is applied to maintain uniformity in dimensionality across the dataset for batch processing. YOLO uses zero-padding (pads with zeros) to fill these areas without affecting the image content.

I feel like the required change would be in the ImageSelector but I am not sure.

Regards

RKM

from yolov8.

dme-compunet avatar dme-compunet commented on August 16, 2024

In the current state if KeepOriginalAspectRatio setted as false the image is stretched without keeping the original aspect ratio, to the input size of the model, if KeepOriginalAspectRatio setted as true then the image keeps in the original aspect ratio and black padding is added to the margins, is there anything else you are looking for?

from yolov8.

rkmore avatar rkmore commented on August 16, 2024

No. I am sorry, I did not understand its operation. In reading I thought it changed the results after inferencing, not the source image.

Thank you

from yolov8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.