Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/UniversalDataTool/udt-to-png

Convert UDT files into PNG images (with masks!)
https://github.com/UniversalDataTool/udt-to-png

Last synced: 3 months ago
JSON representation

Convert UDT files into PNG images (with masks!)

Awesome Lists containing this project

README

        



# 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]
```