Git Product home page Git Product logo

no-mans-sky-ship-repair-item-list-generator's Introduction

no-mans-sky-ship-repair-item-list-generator

Automatically produce a list of items you need to gather to repair your broken space ship in No Man's Sky with computer vision.

Description

Are you tired of spending time deciding whether or not you should repair a space ship you found, or just sell it as scrap? Me too.

This tool will automatically scan a screenshot of the inventory view, detect slots which need to be repaired, and spit out a list of raw materials that the repair will require.

Uses OpenCV to detect the inventory items, and uses basic histogram feature matching to match the detected inventory items with the known possible items in the images/ directory.

Example

Using the following screeshot as input:

The tool will produce this image:

and this output:

{'exploded_panel': 3, 'corroded_tanks': 1, 'scorched_plating': 2, 'melted_fuel_cell': 2, 'hull_fracture': 3, 'containment_failure': 1, 'hydraulics_damage': 2, 'burnt_out_compressor': 2, 'rusted_circuits': 1, 'radiation_leak': 1, 'damaged_gears': 1, 'shattered_bulwark': 1}

                    Amount
Material
activated_copper        75
antimatter               4
chlorine                10
chromatic_metal        660
dioxite                 80
gold                   270
magnetised_ferrite     150
metal_plating            6
oxygen                 100
paraffinium            150
phosphorus             150
platinum               100
pugneum                 60
pure_ferrite           375
pyrite                 120
wiring_loom              7

Inventory items which the tool thinks it has correctly recognized are shown in green, as well as the item's name in green. The number below is the tool's confidence level (from 0 to 1 with 0 being the best and values over 0.7 being terrible).

Running

Requires Python 3. If you're familiar with running python projects, install requirements.txt and change IMG_A in index.py to point at your screenshot.

  1. Download this repository
  2. Install Python 3
    • You may already have it installed. In a terminal window, type python3 --version or python --version or py --version
  3. Install required libraries
    • pip install -r requirements.txt or python3 -m pip install -r requirements.txt
  4. Copy your screenshot into some directory nearby
  5. Edit index.py and change the IMG_A path to point at that screenshot
  6. Run it with python3 index.py
  7. List of materials gets dumped into your terminal. You'll see a window popup with the detection image. If it's borked, open an issue and attach a screenshot of what it looks like, and the original image.

How does it work?

// todo, probably make a jupyter notebook or something

no-mans-sky-ship-repair-item-list-generator's People

Contributors

cxcorp avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.