change default value
Browse files- app.py +2 -2
- demo_header.html +1 -1
app.py
CHANGED
|
@@ -153,7 +153,7 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
|
| 153 |
|
| 154 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 155 |
with gr.Row( equal_height=True):
|
| 156 |
-
draw_number = gr.Checkbox(label="draw Number")
|
| 157 |
|
| 158 |
font_scale = gr.Slider(
|
| 159 |
label="Font Scale",
|
|
@@ -191,7 +191,7 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
|
| 191 |
value=1)
|
| 192 |
with gr.Row( equal_height=True):
|
| 193 |
json_format = gr.Radio(choices=["raw","face-detection"],value="face-detection",label="json-output format")
|
| 194 |
-
draw_mesh = gr.Checkbox(label="draw mesh",info="draw mediapipe mesh")
|
| 195 |
|
| 196 |
with gr.Column():
|
| 197 |
image_out = gr.Image(label="Output", elem_id="output-img")
|
|
|
|
| 153 |
|
| 154 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 155 |
with gr.Row( equal_height=True):
|
| 156 |
+
draw_number = gr.Checkbox(label="draw Number",value=True)
|
| 157 |
|
| 158 |
font_scale = gr.Slider(
|
| 159 |
label="Font Scale",
|
|
|
|
| 191 |
value=1)
|
| 192 |
with gr.Row( equal_height=True):
|
| 193 |
json_format = gr.Radio(choices=["raw","face-detection"],value="face-detection",label="json-output format")
|
| 194 |
+
draw_mesh = gr.Checkbox(value=True,label="draw mesh",info="draw mediapipe mesh")
|
| 195 |
|
| 196 |
with gr.Column():
|
| 197 |
image_out = gr.Image(label="Output", elem_id="output-img")
|
demo_header.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
One of json format is from MIT licensed <a href="https://github.com/ageitgey/face_recognition">face_recognition</a><br>
|
| 11 |
I should clarify because it is confusing: I'm not using dlib's non-MIT licensed 68-point model at all.<br>
|
| 12 |
Contour points are not point-to-point mapping,because when face rotated some point move inside.<br>
|
| 13 |
-
|
| 14 |
</p>
|
| 15 |
</div>
|
| 16 |
|
|
|
|
| 10 |
One of json format is from MIT licensed <a href="https://github.com/ageitgey/face_recognition">face_recognition</a><br>
|
| 11 |
I should clarify because it is confusing: I'm not using dlib's non-MIT licensed 68-point model at all.<br>
|
| 12 |
Contour points are not point-to-point mapping,because when face rotated some point move inside.<br>
|
| 13 |
+
Most of points are always divided equal for balancing when face rotated<br>
|
| 14 |
</p>
|
| 15 |
</div>
|
| 16 |
|