Skip to content

samr28/labelme-to-binary-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Labelme to Binary Image

This tool allows you to convert images from the web or desktop versions of labelme into binary images.

Usage

python toBinary.py [-h] [--nosave] [--preview] file/folder {png,jpg} labels [labels ...]

positional arguments:
  file/folder        path to input file/folder (json/xml/folder)
  {png,jpg}          output file type
  labels             labels to include in the image

optional arguments:
  -h, --help         show this help message and exit
  --savedir SAVEDIR  directory to save images in (default: masks)
  --nosave           dont save image
  --preview          show image preview
  --bgcolor COLOR    background color
  --fgcolor COLOR    foreground (label) color

Screenshots

Original Image from LabelMe:

Original Image

python toBinary.py Example/example.xml jpg line: Original Image

python toBinary.py Example/example.xml jpg barrel: Original Image

About

Convert xml/json from labelme to binary images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages