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 はまだ評価されていません。