cactusbento / goOpenCVTemplate

A starter repo for working with gocv cascade classifiers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goOpenCVTemplate

A starter repository for training a cascade classifier on game objects using gocv on X11.

Mainly created because I wanted to experiment on visual game object detection for game automation.


BotVision

Follow the OpenCV Cascade Classifier training article when using this repository, most things are automated here.

Note:

  • Training parameters should be adjusted to match the desired output
  • Adjust OpenCV application paths to match your system's OpenCV installation
  • uninput, xdotool, and X11 are the current requirements, so no Windows, Mac, or Wayland

Instructions:

  • Press v to take positive screenshots.
  • Press b to take negative screenshots.
  • ./annotate.sh to launch OpenCV's annotate program and start annotating positives.
  • ./samples.sh to create samples.
  • ./train.sh to train the models. Make sure to edit these scripts to match your OpenCV installation and preferences.

About

A starter repo for working with gocv cascade classifiers

License:GNU General Public License v3.0


Languages

Language:Go 90.1%Language:Shell 9.9%