Skip to main content

자동화를 위한 패키지

Project description

PyAutoMaker

자동화를 위한 파이썬 패키지
개발중인 버전이며 내보낸 API는 언제든지 변경될 수 있습니다

설치방법

PyPI package에서 설치하는 방법

pip install PyAutoMaker

또는 저장소에서 클론하는 방법

git clone https://github.com/boa9448/PyAutoMaker
cd PyAutoMaker
python setup.py install

사용방법

스크린샷을 찍는 방법

import cv2

import PyAutoMaker as pam

img = pam.screenshotEx()
cv2.imshow("screenshot", img)
cv2.waitKey()
cv2.destroyAllWindows()

특정 이름을 가진 창의 스크린샷을 찍는 방법

import cv2

import PyAutoMaker as pam

img = pam.screenshotEx("MapleStory")
cv2.imshow("screenshot", img)
cv2.waitKey()
cv2.destroyAllWindows()

화면에서 이미지서치를 사용하는 방법

import cv2

import PyAutoMaker as pam

src = pam.screenshotEx()
temp = cv2.imread("temp.png")
result = pam.imageSearchEx(src, temp)

for left, top, right, bottom in result:
    cv2.rectangle(src, (left, top), (right, bottom), (0, 255, 0), 2)

cv2.imshow("view", src)
cv2.waitKey()
cv2.destroyAllWindows()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyAutoMaker-0.2.0.tar.gz (30.5 MB view hashes)

Uploaded Source

Built Distribution

PyAutoMaker-0.2.0-py3-none-any.whl (30.6 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page