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

def crop_image(img, rect): Remove one pixel #1250

Open
ThierryOyhanto opened this issue Sep 18, 2024 · 0 comments
Open

def crop_image(img, rect): Remove one pixel #1250

ThierryOyhanto opened this issue Sep 18, 2024 · 0 comments

Comments

@ThierryOyhanto
Copy link

When using crop_image, the returned image is one pixel smaller.

This is the line in aircv.py

x_max, y_max = min(width - 1, x_max), min(height - 1, y_max)
img_crop = img[y_min:y_max, x_min:x_max]

I don't understant why we remove one pixel
Sorry for my english

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant