UniversalDataTool / udt-to-png

Convert UDT files into PNG images (with masks!)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UDT to PNG

Currently, this is just for NodeJS, but porting it to the browser should be possible if there's a way to convert an SVG to a PNG in-browser. PRs welcome!

Converts UDT image files into PNGs, suitable for use in machine learning tasks.

Installation

npm install -g udt-to-png

Usage

Usage: udt-to-png path/to/dataset.udt.json -o output-masks-dir

Options:
  --help               Show help                                       [boolean]
  --version            Show version number                             [boolean]
  --use-sample-number  Use the number of the sample as the mask filename
                       (sample0001.mask.png, etc.)
  --output-dir, -o     Output directory for masks                     [required]

About

Convert UDT files into PNG images (with masks!)


Languages

Language:JavaScript 100.0%