AirtestProject / AirtestProject/Airtest

def crop_image(img, rect): Remove one pixel

オープン
#1,250 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。