Highlights:
- minimum mode: add min_true_black switch (default True = unchanged v1.6.1 behaviour).
True : true-black gate + CC denoise (best for black line work).
False : no gate, keeps colored regions, distance-transform thinning
(best for colorful posters).
- skeleton mode: replace hue-specific green-block smoothing with
saturation-based _color_zones; no hue or side-of-image assumptions.
- Move all comments, docstrings and messages to English.
- Remove built-in default paths; examples/demo.py now requires args.
- README: document both minimum variants, resolution guidance, parameters.
- tests: 18 cases covering I/O, both modes, both minimum variants.
61 lines
1.6 KiB
TOML
61 lines
1.6 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "lineartization"
|
|
version = "1.7.0"
|
|
description = "Convert color illustrations and posters into clean black-and-white line art."
|
|
readme = "README.md"
|
|
requires-python = ">=3.8"
|
|
license = { text = "MIT" }
|
|
authors = [
|
|
{ name = "DVS" },
|
|
]
|
|
keywords = [
|
|
"lineart", "line-art", "sketch", "skeleton", "thinning",
|
|
"image-processing", "opencv", "poster", "line-extraction",
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Multimedia :: Graphics",
|
|
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
|
|
]
|
|
|
|
dependencies = [
|
|
"numpy>=1.21",
|
|
"opencv-python>=4.5",
|
|
"opencv-contrib-python>=4.5",
|
|
"scikit-image>=0.19",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0",
|
|
"build>=1.0",
|
|
"twine>=4.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://git.dvscloud.net/dvs/lineartization"
|
|
Repository = "https://git.dvscloud.net/dvs/lineartization"
|
|
"Issue Tracker" = "https://git.dvscloud.net/dvs/lineartization/issues"
|
|
|
|
[project.scripts]
|
|
lineartization = "lineartization:main"
|
|
|
|
[tool.setuptools]
|
|
packages = ["lineartization"]
|
|
|
|
[tool.setuptools.package-data]
|
|
lineartization = ["py.typed"]
|