Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waicool20/cvauto
Computer Vision Automation
https://github.com/waicool20/cvauto
automation computer-vision testing
Last synced: about 7 hours ago
JSON representation
Computer Vision Automation
- Host: GitHub
- URL: https://github.com/waicool20/cvauto
- Owner: waicool20
- License: mit
- Created: 2019-11-04T10:17:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-02T03:31:27.000Z (6 months ago)
- Last Synced: 2024-11-01T11:42:49.360Z (16 days ago)
- Topics: automation, computer-vision, testing
- Language: Kotlin
- Homepage:
- Size: 1.39 MB
- Stars: 4
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CVAuto
This library provides computer vision aided automation to various platforms, such as:
- Android (through ADB)
- Desktop (through Robot)# Documentation
[Read the KDoc here on GitHub Pages](https://waicool20.github.io/CVAuto/)
# Example
Using the android device module we can automate actions on an emulator through ADB
In this example we get a device using the serial `127.0.0.1:5555`, then grab its screen,
we try to send a click action where the click will happen within a rectangular region
of `50, 50, 100, 100`All regions in CVAuto are defined by `x, y, width, height` where x and y are the top-left coordinate
of the rectangle and the width and height define the dimensions of the rectangle```kotlin
val device = ADB.getDevice("127.0.0.1:5555") ?: error("Device not found")
val screen = device.screens.first()
screen.subRegion(50, 50, 100, 100).click()
```# License
Licensed under MIT