패키지 내부 타입¶
사각형 영역¶
-
class
autowinpy.type.
Rect
(left=0, top=0, right=0, bottom=0)¶ 사각형 영역
- Property:
이름
타입
내용
left
int
왼쪽 값
right
int
오른쪽 값
top
int
위쪽 값
bottom
int
아래쪽 값
width
int
너비
height
int
높이
size
int, int
너비, 높이
start
int, int
시작점 좌표
end
int, int
끝점 좌표
-
Rect.
xyxy
(left: int, top: int, right: int, bottom: int)¶ 좌, 상, 우, 하 수치를 기준으로 재정의합니다.
-
Rect.
xywh
(left: int, top: int, width: int, height: int)¶ 시작 좌표와 너비, 높이로 재정의합니다.
이미지¶
-
class
autowinpy.type.
Image
¶ AutoWinPy의 이미지 클래스
NumPy의 ndarray를 상속합니다.
- Property:
이름
타입
내용
width
int
이미지 너비
height
int
이미지 높이
len_channels
int
이미지 채널 수
grayscale
type.Image
회색조 이미지
-
Image.
size
(width: int = None, height: int = None)¶ 너비, 높이 변경 및 출력
- 매개변수
width – 변경할 너비
height – 변경할 높이
- 반환값
Image
높이나 너비를 설정하면 비율은 유지한 채로 이미지의 크기를 변경. 둘 다 설정하면 사이즈를 변경한 복제 이미지를 출력.(int, int)
비어있는 경우 현재의 너비와 높이를 출력
-
Image.
channel
(n: int) → autowinpy.type.Image¶ 단일채널 이미지 출력
- 매개변수
n – 채널은 0부터 시작합니다. sRGB의 경우 투명도 채널은 3