Skip to content

This is a small script, to demonstrate the usecase of image recognition in automatization of video games for educational purposes.

License

Notifications You must be signed in to change notification settings

git-abra/OpenCV_Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV_Automation

Warning

This software isnt supported, maintained, tested or is deprecated since 2023.

Important

This software won't run on its own. All the referenced media template matching files in the source code are cleaned. This repository serves only educational purposes.

This is a small automation script, to demonstrate the usecase of image recognition in automatization of video games for educational purposes.

Warning

This version supports 2160p and 1080p screens in fullscreen or windowed-left-top-cornered mode (recommended). It does not support other resolutions or windowed positions because the coordinates for screen windows (in which template matching occurs) are not retrieved dynamically or by percent yet.

Files

Fisher.py is the main file, which contains the class Fisher. HoleFisher.py contains a semi-automated version, where the user can fish without the effort to play the minigame.

Install

Install all dependencies in your Python environment with pip from the root of the repository directory.

pip install .

Start

Run

python starter.py [-f] [-s] [-a]

-f : fullscreen mode

-s : semi-auto mode

-a : automatic mode

Use

Prerequisites

Make sure to fulfill the correct UI scaling option and resolution in its settings.

Bindings

  • Fishing on Hotkey 'j'.
  • Weapon Switch on Circumflex '^'.
  • Weapon Ability Bar Default Num Keys 1-5.

Automatic mode

  1. Dock your Window in the top left corner of your Windows Desktop.

Warning The docking ensures that every part of the screen is correctly matched in pixels. Without it, the automatic mode won't work.

  1. Place your character in front of the water.
  2. Check every few hours, there can be false positives for the exclamation mark check because of the handcrafted threshold value.

Semi Auto Mode

Follow the command line instructions after starting.

About

This is a small script, to demonstrate the usecase of image recognition in automatization of video games for educational purposes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages