You're looking at a specific version of this model. Jump to the model overview.
merahburam /vectorizer:00bfdd5d
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 PNG/JPG image to vectorize
|
|
| vectorizer |
None
|
vtracer
|
Vectorization method
|
| color_count |
integer
|
8
Min: 2 Max: 16 |
Maximum number of colors to extract
|
| threshold |
number
|
0.5
Max: 1 |
Threshold for bitmap conversion (Potrace only)
|
| min_area |
integer
|
50
Min: 10 Max: 1000 |
Minimum area for shapes (pixels)
|
| simplify_tolerance |
number
|
2
Min: 0.5 Max: 10 |
Path simplification tolerance
|
| optimize_svg |
boolean
|
True
|
Optimize SVG output (remove white backgrounds, simplify paths)
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}