Status: early development (v0.1 in progress). Nothing here is usable yet.
Katachi is an open source tool for bonsai hobbyists. Upload a photo of your tree to see its species, sourced bonsai care practices, and which styles (Informal upright (Moyogi), Slanting (Shakan), Windswept (Fukinagashi)) suit it.
- Photo upload with built-in sample photos and friendly validation
- Automatic background removal (tree and pot)
- Tree Profile card: predicted species with confidence, care practices from sourced species files, suitable styles, and a rough structure estimate, with a manual species override
Requires Python 3.11+.
python -m venv .venv && source .venv/bin/activate
pip install -e ".[segment,dev]"
pytest && ruff check .
python -m katachi.pipeline --image path/to/tree.jpg # saves the isolated tree + potBackground removal downloads the U2-Net model (~170 MB) on first use.
Species data is the easiest place to help. Contribution guides are coming soon in
CONTRIBUTING.md and docs/.
Apache-2.0. See LICENSE. Third-party models and their licenses are listed in MODEL_LICENSES.md.