Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,20 @@ import gradio as gr
|
|
2 |
import vtracer
|
3 |
import os
|
4 |
|
5 |
-
def convert_to_vector(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
input_path = "temp_input.jpg"
|
7 |
output_path = "svg_output.svg"
|
8 |
|
|
|
2 |
import vtracer
|
3 |
import os
|
4 |
|
5 |
+
def convert_to_vector(
|
6 |
+
image_input,
|
7 |
+
colormode="color",
|
8 |
+
hierarchical="stacked",
|
9 |
+
mode="spline",
|
10 |
+
filter_speckle=4,
|
11 |
+
color_precision=6,
|
12 |
+
layer_difference=16,
|
13 |
+
corner_threshold=60,
|
14 |
+
length_threshold=4.0,
|
15 |
+
max_iterations=10,
|
16 |
+
splice_threshold=45,
|
17 |
+
path_precision=3
|
18 |
+
):
|
19 |
input_path = "temp_input.jpg"
|
20 |
output_path = "svg_output.svg"
|
21 |
|