Skip to main content

Generate randomly colored images from Label Studio annotations

Project description

json2img

A Python script for generating randomly colored images from Label Studio annotations

Installation

% pip install json2img

Usage

Command line

% python -m json2img brick_annotation.json bricks.png
% python -m json2img hand_annotation.json sign.jpg -v

Module

>>> from json2img import *
>>> save_image('brick_annotation.json', 'bricks.png')
>>> save_image('hand_annotation.json', 'sign.jpg', view=True)

Dependencies

  • CPython >= 3.7
  • pygame >= 2.0.0

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

json2img-0.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

json2img-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file json2img-0.1.2.tar.gz.

File metadata

  • Download URL: json2img-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for json2img-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ecb4cb03010457d7f74ebb332f067e719b851d6b3d87ed22aa77d1588da2663f
MD5 7f2f1ee7dfa5d9e06f99c517e42cdc57
BLAKE2b-256 749ec3d8d1e1fd9f941ce08f7566b58f71c8aabceba01f527cfeef7273ee1f40

See more details on using hashes here.

File details

Details for the file json2img-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: json2img-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for json2img-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3266a2877fb0995835673f41bb1faaefaf3f6afd4938b87f028d096291fc803c
MD5 e6bc3b2041402662dfebb3a31c5b438e
BLAKE2b-256 7adf80cfe21940dc4d22edde9a2f348316c355bd3807e9648b906555c49f3754

See more details on using hashes here.

Supported by

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