Skip to main content

A package to create labeling/segmentation information based on pixel values.

Project description

Labeling in Python

This package is intended to provide an easy way to store Labelings for image segmentation. The segmentation information is stored in a BSON file for fast I/O on demand, but can also be exported to JSON for human readability.

Usage

  1. Create a Labeling object with one of the static methods or just init normally.

  2. Add one or more images(iterate_over_images(), add_image(), or even patches of an image (add_segments()).

    Note: If you decide to add patches, make sure that no segment in a patch is overlapping the edge of the patch. Otherwise, the other parts of the segment will be considered an unique entity.

  3. (Optional) Add any kind of metadata you want to the Labeling as additional information supplied by you

  4. Get the Labeling for further use(get_result()) or save (save_result()) it to a specified path. Both methods return an image and a bson container.

Information

The project is open-source. If you find problems or have ideas for improvement, please create an issue on GitHub, or contribute yourself!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labeling-0.1.15.tar.gz (51.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labeling-0.1.15-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file labeling-0.1.15.tar.gz.

File metadata

  • Download URL: labeling-0.1.15.tar.gz
  • Upload date:
  • Size: 51.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.0

File hashes

Hashes for labeling-0.1.15.tar.gz
Algorithm Hash digest
SHA256 797389f825e88451feead379ec2c1327037daf2b64547882265652bcee3b113d
MD5 a29b04ac02f455cd4006bca460ed40ed
BLAKE2b-256 7640dfa6bd232e7afd1fc0867a27450a03e639b7ad1c98a7ae887e540e712f96

See more details on using hashes here.

File details

Details for the file labeling-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: labeling-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.0

File hashes

Hashes for labeling-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 36d8b0fa46c94053407b7b9d9b8566b820953631a1942b00cefdd35cbe01ee71
MD5 77c1a6e80dadbb38b9f0bb03510556fe
BLAKE2b-256 d5a216bacfd93787862fe33abcd63bc9f9ada01ccd7d882e468a36bb4a014217

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page