# labelme-to-binary-imageC **Repository Path**: CSS365/labelme-to-binary-imageC ## Basic Information - **Project Name**: labelme-to-binary-imageC - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2020-06-20 - **Last Updated**: 2022-08-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Labelme to Binary Image This tool allows you to convert images from the [web](http://labelme.csail.mit.edu/) or [desktop](https://github.com/wkentaro/labelme) versions of labelme into binary images. ## Usage ```bash 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](Example/example.jpg) `python toBinary.py Example/example.xml jpg line`: ![Original Image](Example/example-line.jpg) `python toBinary.py Example/example.xml jpg barrel`: ![Original Image](Example/example-barrel.jpg)