No project description provided
Project description
图像识别工具-limcv
功能
- 用于自动化测试中,定位icon图片在手机中App截图中的位置,从而进一步针对位置进行点击、输入、滑动操作。
- 因为是基于图片做的控件定位,所以此工具适用于Android、iOS、小程序、H5自动化测试的应用。
- 支持多个目标的识别。
安装
pip3 install limcv
使用说明
- 使用代码
import limcv
res = limcv.find(im_source_path, im_search_path)
print(res)
- 输出
[{'result': (996, 584), 'rectangle': ((835, 408), (835, 760), (1158, 760), (1158, 408)), 'confidence': 1.0},
{'result': (998, 1654), 'rectangle': ((837, 1478), (837, 1830), (1160, 1830), (1160, 1478)), 'confidence': 1.0}]
| 参数 | 解释 |
|---|---|
result |
目标中间点 |
rectangle |
矩形位置四个点坐标,分别为左上、右上、右下、左下 |
confidence |
置信度 |
感谢
limcv是基于aircv改造,增加了对多分辨率识别的支持。
TODO
- 增加图片比对,用于兼容性测试中,检测App的显示效果是否符合预期。
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
limcv-1.2.tar.gz
(18.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
limcv-1.2-py3.7.egg
(51.0 kB
view details)
File details
Details for the file limcv-1.2.tar.gz.
File metadata
- Download URL: limcv-1.2.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1c242983d7724a753619478147809356afd21e438c143e11bb6f72c4b7b149b
|
|
| MD5 |
00adfb06ec6e95e12b524a05c58e03c0
|
|
| BLAKE2b-256 |
87b4463701a8d3f807e0230102c7f04ce35526a93f204d1539e2d882975bf444
|
File details
Details for the file limcv-1.2-py3.7.egg.
File metadata
- Download URL: limcv-1.2-py3.7.egg
- Upload date:
- Size: 51.0 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/18.5 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fd5889c59ee52918fb3d0822da5b55cd34246cf27bbf4aefb2d2fda77db013d
|
|
| MD5 |
934cd57153a6745890f283c8bfef6595
|
|
| BLAKE2b-256 |
0457385f4417fda8d6c1690b4bcd21197224e342422567352e37a78887caf785
|