unityaisolutions/vectorizer

Converts raster images to SVG vectors.

Public
1 run

Run unityaisolutions/vectorizer with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input raster image (PNG, JPG, etc.)
color_mode
None
color
Color processing mode
hierarchical
None
stacked
Hierarchical clustering mode
filter_speckle
integer
4

Max: 100

Remove speckles smaller than this size (0-100)
color_precision
integer
6

Min: 1

Max: 8

Color precision/number of colors (1-8, lower = fewer colors)
layer_difference
integer
16

Max: 100

Layer difference threshold (0-100, higher = fewer layers)
corner_threshold
integer
60

Max: 180

Corner detection threshold (0-180 degrees)
segment_length
number
10

Min: 3.5

Max: 50

Segment length for curve approximation
splice_threshold
integer
45

Max: 180

Splice threshold for curve simplification (0-180 degrees)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}