This tool allows you to convert images from the web or desktop versions of labelme into binary images.
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
Original Image from LabelMe: