image-center
Project description
image-center
图像识别定位某个元素在当前屏幕中的坐标;
在自动化测试中获取到元素坐标之后,可以传入到键鼠工具,从而实现对目标元素的操作。
Documentation: https://funny-test.github.io/image-center
Source Code: https://github.com/funny-test/image-center
安装
pip install image-center
使用说明
截取目标元素图片,将图片保存到某个路径;
from image_center import ImageCenter
ImageCenter.find_image("~/Desktop/test.png")
返回 test.png
在当前屏幕中的位置。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
image_center-1.0.0.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for image_center-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baeab4225b80c3bf80e1c2977ae3c8f7c6197cdad0d4e0dc2e3e5386ecc84768 |
|
MD5 | 13481c06ea9136c7d400a5844065063c |
|
BLAKE2b-256 | 5b409904273cf5ffe23e24f4d4a59a45e7ab6ffe4ac184d737876b65e0282f85 |