Registry / ai-ml / dghs-imgutils

dghs-imgutils

JSON →
library0.19.0pypypi✓ verified 85d ago

A convenient and user-friendly anime-style image data processing library that integrates various advanced anime-style image processing models. Current version: 0.19.0. Release cadence: frequent (several releases per year).

pip install dghs-imgutils
INSTALL
IMPORT
SIG · DGHS-IMGUTILS
D
dghs-imgutils
ai-mlpythonv0.19.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

imgutils
import imgutils
import dghs-imgutils
The package is imported as 'imgutils', not with the hyphenated name.
detect_faces
from imgutils.detect import detect_faces
from imgutils import detect_faces
detect_faces is in the submodule imgutils.detect.

Detect anime-style faces in an image.

import imgutils from imgutils.detect import detect_faces from PIL import Image img = Image.open('anime.jpg') faces = detect_faces(img) print(faces)
Debug
Known issues
gotchaDon't install as 'dghs-imgutils', pip uses hyphens but import uses underscores.
fix
Use 'import imgutils', not 'import dghs-imgutils'.
affects: all
gotchaModel download may fail due to network issues in some regions.
fix
Set environment variable IMGUTILS_MODEL_DIR to a local path or use proxy.
affects: all
deprecatedSome functions in 'imgutils.segment' were reorganized in v0.15.0.
fix
Use 'imgutils.seg' submodule instead.
affects: >=0.15.0
gotchaInput images must be in RGB mode; RGBA or other modes may cause errors.
fix
Convert image to RGB before processing: img = img.convert('RGB').
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'imgutils'
Installed wrong package or import name used.
fix
pip install dghs-imgutils and then use 'import imgutils'.
OSError: [Errno 110] Connection timed out when downloading model
Network restricted or model server unreachable.
fix
Use a proxy or pre-download models to IMGUTILS_MODEL_DIR.
ValueError: The image must be in RGB mode
Image with alpha channel or grayscale.
fix
Convert to RGB: img = img.convert('RGB').
AttributeError: module 'imgutils' has no attribute 'detect'
Older version or incomplete import.
fix
Update library: pip install -U dghs-imgutils.
Upgrade
Version history
0.19.0latest on PyPI · released Sep 10, 2025
Audit
Dependencies
torchrequiredDeep learning models require PyTorch.
opencv-pythonrequiredImage I/O and preprocessing.
pillowrequiredImage handling fallback.
Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
dghs-imgutils — pip install dghs-imgutils · libregistry