GithubHelp home page GithubHelp logo

ehsankia / catalogscanner Goto Github PK

View Code? Open in Web Editor NEW
123.0 5.0 17.0 81.37 MB

Scans Animal Crossing: New Horizon catalog from video of user scrolling through.

Home Page: https://nook.lol

License: MIT License

Python 100.00%
animal-crossing animal-crossing-new-horizons computer-vision hacktoberfest

catalogscanner's People

Contributors

dependabot[bot] avatar ehsankia avatar ellefesta avatar linsvensson avatar rohm1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

catalogscanner's Issues

Support for video files without Twitter

The switch has a native function that will let you download video files from your switch directly to your phone.

image

With this method, you scan 1 QR code to connect to the Switch's internal Wifi card, and the second one which will take you to a page to download the file.

While this is slightly more tedious than posting to twitter, this is a quick and effective option for people who don't have/want or can't have a twitter account.

feature request: importing text lists to export

i was wondering if it would be possible to import a plain text catalog file into the scanner in order to convert it into a usuable format for other sites.

for example, i import a plain text list from catalogue.ac into catalog scanner and it parses the list into a link i can then export into other supported services, such as acnh.guide.

in short, i would like to transfer catalogs from one service to another, using catalogscanner as a middleman.

suggestion to make a reverse import list

hey there,

i see that there's a missing recipes button to show a list of missing recipes, but copying it just gives a list of missing things.
what if you could make an invert of a list? like, a list of what you don't have?

Twitter and CatalogScanner not working properly

I'm able to tweet video files of my catalog from my switch, but nothing else is happening.

I follow the directions closely each time and always double check im putting "@CatalogScanner" at the start of the post.

The post uploads to twitter and they function properly. However, there is nothing past that. Im no longer getting the url to entered in the ACNH unofficial guide. I'm having to manually update all catalog items.

Any suggestions?

This has been going on for at least 2 months.

Suggestions for new features?

I have no idea if you want these in two separate issues but i'll pool them together for now.

Having the scanner support Nook Mile achievements, Some people like tracking their achievements and ACNH Planner has a section for it to be tracked already!

The ability to find previous scans on the site, Maybe by caching or doing a lookup by user?? this isn't a big deal as you can just search for them on twitter.

There are 2 Items with the name "Tank", making them undistinguishable on import

There is the clothing item tank and also the furniture item tank, breaking the function to parse the list of item names to get its contents.
Adding an additonal api output, like e.g. unique IDs from the ACNH spreadsheet could solve this problem for non-variant items.

However, I currently have no idea how this issue could be solved.

Error in opencv, img_hash not found

Just cloned to my Mac (Catalina) and got an error in OpenCV I believe ...

(.env) ╭─[email protected] ~/work/Projects/CatalogScanner ‹master*›
╰─(.env) ➤  python scanner.py /Users/dad/Dropbox/Photos/Switch/2020/09/07/2020090708554401-02CB906EA538A35643C1E1484C4B947D.mp4
I0907 10:11:30.954331 4439834048 scanner.py:38] Detected scan mode: catalog
Traceback (most recent call last):
  File "scanner.py", line 102, in <module>
    app.run(main)
  File "/Users/dad/work/Projects/CatalogScanner/.env/lib/python3.8/site-packages/absl/app.py", line 299, in run
    _run_main(main, args)
  File "/Users/dad/work/Projects/CatalogScanner/.env/lib/python3.8/site-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
  File "scanner.py", line 89, in main
    result = scan_media(
  File "scanner.py", line 49, in scan_media
    return SCANNERS[mode].scan(filename, locale=locale, **kwargs)
  File "/Users/dad/work/Projects/CatalogScanner/catalog.py", line 57, in scan
    item_rows = parse_video(video_file, for_sale)
  File "/Users/dad/work/Projects/CatalogScanner/catalog.py", line 95, in parse_video
    all_rows = _dedupe_rows(all_rows)
  File "/Users/dad/work/Projects/CatalogScanner/catalog.py", line 218, in _dedupe_rows
    row_hash = str(cv2.img_hash.blockMeanHash(row, mode=1)[0])
AttributeError: module 'cv2.cv2' has no attribute 'img_hash'

pip ran without problems:

(.env) ╭─[email protected] ~/work/Projects/CatalogScanner ‹master*›
╰─(.env) ➤  pip install -r requirements.txt
Collecting absl-py==0.9.0 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/1a/53/9243c600e047bd4c3df9e69cfabc1e8004a82cac2e0c484580a78a94ba2a/absl-py-0.9.0.tar.gz (104kB)
     |████████████████████████████████| 112kB 2.1MB/s
Collecting imagehash==4.1.0 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/1a/5d/cc81830be3c4705a46cdbca74439b67f1017881383ba0127c41c4cecb7b3/ImageHash-4.1.0.tar.gz (291kB)
     |████████████████████████████████| 296kB 9.3MB/s
Collecting opencv-contrib-python==4.2.0.34 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/d1/29/0e9583011e535c23b92a0ec64ff449b9e05d86423a6e5a16385f569b04d6/opencv_contrib_python-4.2.0.34-cp38-cp38-macosx_10_9_x86_64.whl (60.3MB)
     |████████████████████████████████| 60.3MB 9.3MB/s
Collecting opencv-python==4.2.0.34 (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/f6/cd/0642144e580aa2fda0dc70276a432a48542351a620d26f0d1e3c5169ff49/opencv_python-4.2.0.34-cp38-cp38-macosx_10_9_x86_64.whl (49.1MB)
     |████████████████████████████████| 49.1MB 15.0MB/s
Collecting Pillow==7.1.2 (from -r requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/20/20/a0f9f20469aae7017a578fdc4c55ea18f7c8911d2d10668687f95748442b/Pillow-7.1.2-cp38-cp38-macosx_10_10_x86_64.whl
Collecting pytesseract==0.3.4 (from -r requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/1d/d8/521db389ff0aae32035bfda6ed39cb2c2e28521c47015f6431f07460c50a/pytesseract-0.3.4.tar.gz
Collecting six (from absl-py==0.9.0->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Collecting numpy (from imagehash==4.1.0->-r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/2f/c0/09c526b4167ed4dd3bcb6d6aa2103b4b50899e8eae89acde6455d43a37e4/numpy-1.19.1-cp38-cp38-macosx_10_9_x86_64.whl (15.3MB)
     |████████████████████████████████| 15.3MB 10.7MB/s
Collecting scipy (from imagehash==4.1.0->-r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/8a/84/568ec7727bc789a9b623ec2652043ad3311d7939f152e81cb5d699bfb9b1/scipy-1.5.2-cp38-cp38-macosx_10_9_x86_64.whl (28.9MB)
     |████████████████████████████████| 29.0MB 11.5MB/s
Collecting PyWavelets (from imagehash==4.1.0->-r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/77/fa/cd182609e276d8ea7315a084cf2acbd0f39751e56562555bd8e4a0131498/PyWavelets-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl (4.3MB)
     |████████████████████████████████| 4.4MB 16.0MB/s
Installing collected packages: six, absl-py, numpy, scipy, Pillow, PyWavelets, imagehash, opencv-contrib-python, opencv-python, pytesseract
  Running setup.py install for absl-py ... done
  Running setup.py install for imagehash ... done
  Running setup.py install for pytesseract ... done
Successfully installed Pillow-7.1.2 PyWavelets-1.1.1 absl-py-0.9.0 imagehash-4.1.0 numpy-1.19.1 opencv-contrib-python-4.2.0.34 opencv-python-4.2.0.34 pytesseract-0.3.4 scipy-1.5.2 six-1.15.0
WARNING: You are using pip version 19.2.3, however version 20.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Python is:

Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
[Clang 6.0 (clang-600.0.57)]

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.