edd-ie / ComputerVision_bot

A simple computer vision game bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple python image matching application

Table of Contents

  1. Getting started
  2. Usage
  3. Contributors
  4. Licenses
  5. Resources

Cloning

Clone the project files to your local repository:

  • HTTPS => https://github.com/ComputerVision_bot.git
  • SSH => git@github.com: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:

pip install -r requirements.txt

Navigate to the 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 :

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:

python Test.py

This project was created by : Edd.ie

The project is licensed under the BSD 3-Clause "New" or "Revised" License, thus redistribution and use in source and binary forms are permitted provided that the conditions are met

This application uses knowledge applied from OpenCV Object detection in games YouTube playlist

OpenCV - Computer vision library

About

A simple computer vision game bot


Languages

Language:Python 100.0%