/albion-gathering-bot

Object detection using Yolov5

Primary LanguagePython


Logo

Object detection Yolov5

Bored to farm all day in albion only (I'm kidding). Learn about object detection and yolov5

prediction

Table of Contents
  1. 🧭 About The Project
  2. 📋 Getting Started
  3. 💾 Usage
  4. 🔗 Contributing
  5. 📰 License
  6. 📫 Contact
  7. ⛱️ Acknowledgments

🧭 About The Project

🏗️ Built With

List of technologies / frameworks used during the project.

  • Python 3.8
  • Pytorch
  • Yolov5
  • Albion Online
  • OpenCV
  • Numpy
  • Roboflow

⬆️

📋 Getting Started

I'd always wonder how to make a object detection model and how to use it in a real case scenario. I decided to use Yolov5 and make a scanner for Albion Online. The goal is to detect the resources on the screen and click on the coordinate, do this in loop.

🗺️ Prerequisites

Python 3.8 is required to run the project.

Albion Online is also required to run the project.

Create an account on Roboflow and download the dataset in Yolov5 format. At this url: https://universe.roboflow.com/albiononline-c8fxi/albiongathering

You could large the data set adding your own images.

Get the data set and put it in the yolov5 folder and run the train set (could use google collab to train data using GPU).

python train.py --img 640 --epochs 3 --data coco128.yaml --weights yolov5s.pt

Testing folder, is a folder that contains my test during development phase.

⬆️

💾 Usage

Before running the project, you need to install the requirements.

pip install -r requirements.txt

Start Albion Online and go to the resource you want to farm. Then you can run the project with the following command.

In the Application folder you can find the main.py file. Run it with the following command., With or without the debug flag in the AlbionDetection class.

python main.py

⬆️

🔗 Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

⬆️

📰 License

Distributed under the MIT License. See LICENSE.txt for more information.

⬆️

📫 Contact

Reach me at : gauron.dorian.pro@gmail.com.

Project Link: https://github.com/Michelprogram/magic-scanner.git

⬆️

⛱️ Acknowledgments

This space is a list to resources i found helpful and would like to give credit to.

⬆️

Template inspired by othneildrew