Skip to main content

No project description provided

Project description

TilesetParser

find single tile image in folder full of tilesets. It's very common that many tilesets are unorganized and contains unrecognaizable names. With TileParser you can take one tile (for example screenshot from web) and find whitch tileset contains that tile. To parse large amount of files TilesetParser uses AI (openCV)


Instalation

pip install TilesetParser

How to use?

tilesetparser /path/to/source/image.bmp /path/to/folder_with_tilesets

After parsing every file, preview window will appear. You can browse tilesets that program found similar to the source tile.

Program takes a few arguments:

Algorithms

By default TilesetParser calculates historgrams for input tile and every tile in tileset. You can use SSIM algorithm, whitch gives far more accurate results, but takes a bit more time.

positional arguments:

  • source_image_path

    Path to single source tile you need to find

  • tiles_folder

    Path to tileset folder you want to parse

options:

  • -h, --help

    Show help message and exit

  • -s, --size

    Size of a tile (default: 32)

  • -q, --similarity

    Similarity level for openCV (default: 0.8)

  • -e, --extension

    Extension of the files (default: bmp)

  • -t, --tiles_per_tileset

    How many tiles are in single tileset (default: 12)

  • -d, --ssim_algorithm

    Use SSIM algorithm (default: false)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TilesetParser-1.0.5.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TilesetParser-1.0.5.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file TilesetParser-1.0.5.2.tar.gz.

File metadata

  • Download URL: TilesetParser-1.0.5.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.1

File hashes

Hashes for TilesetParser-1.0.5.2.tar.gz
Algorithm Hash digest
SHA256 e19b0ae8bca3071c38603ddaee99c4534218d7ee8c25cda5234bb8f72862d987
MD5 595f1aac555ec19c2f8c4d4dc0118456
BLAKE2b-256 a65d1a0ab3b7ad5d9b127feac6ee5e3ea1ec5f839058a6caff4703cffe55caae

See more details on using hashes here.

File details

Details for the file TilesetParser-1.0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for TilesetParser-1.0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 abb037d3e97fe8eee0e52d54f3f0a7398d74e8d19011d01c5cb3cf03e841ecac
MD5 35656a049311fcfcc99c6264c61004ec
BLAKE2b-256 9f4d4a982ce65d12f52068b3676d8b299ece24d7865624641c23161cd7b42287

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page