Code Monkey home page Code Monkey logo

wf-miner's Introduction

WF-miner

Radial line detection for mining in the game Warframe. This is not intended for cheating but as a fun application to develop.

Goal

To automate and improve mining accuracy in Warframe using computer vision. Mining in Warframe is explained well here. Holding the mouse down on a mining node will create a circular bar with up to two moving brackets on the progress bar that slowly fills up; releasing the mouse when the progress bar is in the center of a bracket (target) will yield a rarer gem or more minerals than if the mouse were released elsewhere.

Usage

Run live-target-multi.py using Python3 and go mining!

How it works

The Python script depends on MSS and OpenCV. The MSS library takes screenshots of the center of the gameplay screen and the resulting images are processed in OpenCV. Hough line detection is applied on the radial lines and lines passing through the center of the image are used in calculating the estimated center of the target. Comparisons are also made between the image and a template image to determine the current progress bar location. When the progress bar is close to the center of the target, a mouse up event is triggered to complete the mining.

Limitations

This script is only configured for a monitor with resolution 1600x900. Additionally, depending on computational resources, the script will release the mouse too early or too late. Progress is being made to make each iteration more efficient and strict to improve timing.

wf-miner's People

Contributors

marcusdeng22 avatar

Watchers

 avatar

Forkers

deuscaeli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.