No project description provided
Project description
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"])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
skinsegmenter-1.2.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skinsegmenter-1.2.tar.gz.
File metadata
- Download URL: skinsegmenter-1.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6a1d6e0237b9adcfdd7000b8b3385f3d5825b7a565742ad9e4a6df1600c08b5
|
|
| MD5 |
bcdd694c57eeaf739a365ecc7186c7f6
|
|
| BLAKE2b-256 |
de20f48059f618792d8f2e319cdb0750e9014b0cc9f5897c0205cba8bdd129ef
|
File details
Details for the file skinsegmenter-1.2-py3-none-any.whl.
File metadata
- Download URL: skinsegmenter-1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd399cc5b3baf6016988d053ea1b662981069aa019990c69cdbd1a058d68f3fe
|
|
| MD5 |
0ebcc0c4fdf8c0e9bcf2289107744153
|
|
| BLAKE2b-256 |
8c4f1128c472996f10e95eaf415d42d3f616543788e8c8197dae32b285c44e5f
|