AirtestProject / AirtestProject/Airtest

def crop_image(img, rect): Remove one pixel

Open
#1,250 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.