https://github.com/kernel-sqz/tilesetparser
FInd one tile in a large tileset group using AI
https://github.com/kernel-sqz/tilesetparser
ai cli cli-app gui opencv opencv-python parser python tiled-map-editor tilemap tilesets tkinter
Last synced: 23 days ago
JSON representation
FInd one tile in a large tileset group using AI
- Host: GitHub
- URL: https://github.com/kernel-sqz/tilesetparser
- Owner: kernel-sqz
- License: mit
- Created: 2024-02-14T15:29:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T20:54:05.000Z (over 2 years ago)
- Last Synced: 2025-10-13T19:35:01.928Z (8 months ago)
- Topics: ai, cli, cli-app, gui, opencv, opencv-python, parser, python, tiled-map-editor, tilemap, tilesets, tkinter
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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)