A package used to segment an image
Project description
segment_image
Abstract
- A lib can be used to segment image https://pypi.org/project/segment-image/
- The first version just has k_means algorithm.
install
- python >= 3.6
- install
$ pip install segment-image
how to use
import segment_image
import cv2
img = cv2.imread("./sample_imgs/lena.png")
k = 2 # number of segments
k_means = segment_image.Kmeans(img, k)
iteration = 10
convergence_radius = 1e-6
k_means.run(iteration, convergence_radius)
example
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
segment_image-0.0.2.tar.gz
(2.9 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 segment_image-0.0.2.tar.gz.
File metadata
- Download URL: segment_image-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
056acd515b1dd9d9b95d19f29b6d60863295882ad35a82301dc8f328f6117d19
|
|
| MD5 |
9931929328ba4219f9702a036eb9daca
|
|
| BLAKE2b-256 |
a77c5aa9d0f44abac2fb585b388ade8eb9c8ed4e9c90b63ed513af12e16f4c3f
|
File details
Details for the file segment_image-0.0.2-py3-none-any.whl.
File metadata
- Download URL: segment_image-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
890f402494f767c93e7a5b1184d50462e0cf7f9914edc0c3cb845d816e0aa08e
|
|
| MD5 |
9305cb9ab66785874e96cf3139b0ff0c
|
|
| BLAKE2b-256 |
f229f18c947187c8863f021af9bde197ac2c4c598adde83be2cdd8103b70af57
|