Coder Social home page Coder Social logo

acnhautocataloger's Introduction

ACNHAutoCataloger

Automatically records what's in your Animal Crossing: New Horizons catalog

Requirements

  • Elgato Cam Link / Cam Link 4k / something else that exposes an HDMI input as a webcam
    • Regular capture cards meant for streaming will probably not work out of the box, you may have to use screen capture
    • I also highly recommend having an HDMI splitter so you can see what is happening on your Switch via a different screen, since the catalog script will lock your Cam Link and OBS/other software will not be able to use it
  • A dev board with an ATMega16U2 (Arduino Uno R3 has one conveniently onboard for USB communication)
  • USB to UART adapter (another Arduino can be used by connecting RX -> TX and vice versa)

Usage

  1. Flash the provided Joystick.hex to your ATMega16U2 using DFU mode.
  2. Set up a virtualenv and install dependencies
    • python -m virtualenv venv
    • pip install -r requirements.txt
  3. Connect your Switch to your Cam Link
  4. Open up Nook Shopping (stay on the screen that says Welcome to Nook Shopping!)
  5. Press Home, then navigate to Controllers > Change Grip/Order
    • It is very important that you do this, otherwise Animal Crossing will not recognize accept input from the fake controller and the script will not work. In addition, the script assumes you are on this screen.
  6. Run the script: python main.py <serial port>

How does it work?

The ATMega16U2 emulates a USB controller that the auto cataloger can control via serial port. Using this, it's trivial to manipulate the game interface to get information on each item in your catalog.

The Cam Link lets us use OpenCV in order to capture image data from the Switch. We then use EAST to perform text detection to see if an item has any variants, and Tesseract OCR to turn everything into text. Finally, we use datamined information from the game in order to generate output for what items you have cataloged.

acnhautocataloger's People

Contributors

wchill avatar

Watchers

 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.