Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/williamfzc/fitch

[TOY PROJECT] Android UI automation based on opencv :rocket: fitch = fi(nd) & t(ou)ch
https://github.com/williamfzc/fitch

android opencv python uiautomation

Last synced: 17 days ago
JSON representation

[TOY PROJECT] Android UI automation based on opencv :rocket: fitch = fi(nd) & t(ou)ch

Awesome Lists containing this project

README

        

FITCH = Fi(nd) & T(ou)ch



基于 opencv 的 Android UI自动化解决方案

---

[![Maintainability](https://api.codeclimate.com/v1/badges/de3e2f35842f80a26ed3/maintainability)](https://codeclimate.com/github/williamfzc/fitch/maintainability)
[![PyPI version](https://badge.fury.io/py/fitch.svg)](https://badge.fury.io/py/fitch)
[![Documentation Status](https://readthedocs.org/projects/fitch/badge/?version=latest)](https://fitch.readthedocs.io/en/latest/?badge=latest)

---

## Fitch 是什么?

一个开源的、基于opencv的Android UI自动化框架!

从这里 [快速开始](https://williamfzc.github.io/fitch/#/) 吧!

## 如何运作

![structure](docs/pics/structure.svg)

得益于 [minitouch](https://github.com/openstf/minitouch) / [minicap](https://github.com/openstf/minicap) / [opencv](https://github.com/skvark/opencv-python) 的存在,让 fitch 能够维持高效地运转,即便它是用python写的。

- 获得手机屏幕截图([fastcap](https://github.com/williamfzc/fastcap))
- 在截图上寻找目标模板,并确定它的位置([findit](https://github.com/williamfzc/findit))
- 进行检查或操作([pyminitouch](https://github.com/williamfzc/pyminitouch) & [adbutils](https://github.com/openatx/adbutils))

## 安装

Python 3.6 +

### 从 pypi 安装

```shell
pip install fitch
```

### 从 github源码 安装

如果你希望获取一些还未release的新特性,你可以直接通过源码安装。

```shell
git clone https://github.com/williamfzc/fitch.git
cd fitch
pip install -e .
```

## 依赖库

- [pyminitouch](https://github.com/williamfzc/pyminitouch): ui操作
- [findit](https://github.com/williamfzc/findit): 目标检测
- [fastcap](https://github.com/williamfzc/fastcap): 快速获取截图
- [adbutils](https://github.com/openatx/adbutils): 非ui操作

## 协议

[MIT](LICENSE)