https://github.com/edd-ie/computervision_bot
A simple computer vision game bot
https://github.com/edd-ie/computervision_bot
computer-vision gamebot opencv python wingui
Last synced: 3 months ago
JSON representation
A simple computer vision game bot
- Host: GitHub
- URL: https://github.com/edd-ie/computervision_bot
- Owner: edd-ie
- Created: 2023-12-20T03:14:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-09T04:03:04.000Z (11 months ago)
- Last Synced: 2024-07-09T07:01:18.456Z (11 months ago)
- Topics: computer-vision, gamebot, opencv, python, wingui
- Language: Python
- Homepage:
- Size: 399 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [PyBot](https://github.com/edd-ie/ComputerVision_bot)
Simple python image matching application
## Table of Contents
1. [Getting started](#Getting-started)
2. [Usage](#Usage)
4. [Contributors](#contributors)
5. [Licenses](#license)
6. [Resources](#sources)## Getting started
### Cloning**Clone** the project files to your local repository:
- HTTPS => `https://github.com/ComputerVision_bot.git`
- SSH => `[email protected]:edd-ie/ComputerVision_bot.git`
- Git CLI => `gh repo clone edd-ie/ComputerVision_bot`Open the terminal and Navigate to the clone project folder:
Run:
```bash
pip install -r requirements.txt
```## Usage
Navigate to ```Test.py``` file
Comment out line 18 i.e
```shot.findPos('Images/hazard.jpg', "rectangle", 0.85, method='win') # pygui, pil, win```Run in the terminal :
```bash
python Test.py
```This will print the list of windows and their addresses currently open in your pc.
Copy the window name you want to observe and paste in line 17 ```shot.__int__('here')```
From the selected window take a screenshot of the thing you want to locate and save it in the Images folder of the project.
Uncomment out line 18
Paste the image name in ```shot.findPos('Images/here.jpg'...```
Run:
```bash
python Test.py
```## Contributors
This project was created by : [Edd.ie](https://github.com/edd-ie)
## Licenses
The project is licensed under the [BSD 3-Clause "New" or "Revised" License](https://github.com/highlightjs/highlight.js/blob/main/LICENSE), thus redistribution and use in source and binary forms are permitted provided that the conditions are met
## Resources
This application uses knowledge applied from [OpenCV Object detection in games](https://www.youtube.com/playlist?list=PL1m2M8LQlzfKtkKq2lK5xko4X-8EZzFPI) YouTube playlist
[OpenCV](https://docs.opencv.org/4.9.0/) - Computer vision library