AirtestProject / AirtestProject/Airtest
def crop_image(img, rect): Remove one pixel
未关闭
- 主要语言
- Python
- 星标
- 9.6k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。