Comments (4)
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.
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.
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.
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)
- [discussion] optimize code logic to improve operational efficiency HOT 2
- Index was outside the bounds of the array. HOT 5
- Logic for resizing images to fit the size of the model input data. HOT 4
- Inference with Camera HOT 2
- It's not really using the GPU
- Getting lower confidence values HOT 2
- Load Image HOT 2
- Possible to select between fp16 and fp32? HOT 1
- Error Sequence contains no elements on image plotting HOT 3
- some pictures does not show transparent boxes HOT 1
- DetectObb is not showing any bounding boxes for object (car in my case) HOT 6
- Processing video files HOT 1
- can't set configuration for create a predictor HOT 4
- ProcessMask may throw Exception when box`s height is 0 HOT 4
- The given key 'author' was not present in the dictionary HOT 2
- How to change the 'line_width' parameter when I get a plotted image? HOT 1
- How to crop & save detection HOT 1
- The current .NET SDK does not support 'newer version' as a target.
- how to draw obb detection boxes, HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov8.