Sample Results
Installation
pip install
Usage
import cv2
from skinsegmenter import SkinDetection
from PIL import Image
# option #1
input_ = "path/to/img.png"
input_ = Image.open(input_)
# option #2
input_ = "path/to/img.png"
input_ = cv2.imread(input_)
# option #3
input_ = "path/to/img.png"
# Initialization
skinsegmenter = SkinDetection()
# Inference
res = skinsegmenter.segment(input_)
# Result
for index, mask in enumerate(res["instance_masks"]):
cv2.imwrite(f"instance_mask__{index}.png", mask)
cv2.imwrite("integrated_mask.png", res["integrated_mask"])
cv2.imwrite("visualized_image.png", res["visualized_image"])
Release files for skinsegmenter 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| skinsegmenter-1.2.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skinsegmenter-1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:6.7 kB
Release files / skinsegmenter-1.2.tar.gz
| Download URL | skinsegmenter-1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6a1d6e0237b9adcfdd7000b8b3385f3d5825b7a565742ad9e4a6df1600c08b5
|
|
BLAKE2b-256 checksum How to use checksums |
de20f48059f618792d8f2e319cdb0750e9014b0cc9f5897c0205cba8bdd129ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|
Release files / skinsegmenter-1.2-py3-none-any.whl
| Download URL | skinsegmenter-1.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd399cc5b3baf6016988d053ea1b662981069aa019990c69cdbd1a058d68f3fe
|
|
BLAKE2b-256 checksum How to use checksums |
8c4f1128c472996f10e95eaf415d42d3f616543788e8c8197dae32b285c44e5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.4
|