Update api_schemas.py
Browse files- api_schemas.py +11 -0
api_schemas.py
CHANGED
|
@@ -22,4 +22,15 @@ FACE_IMAGE_EMBEDDING = {
|
|
| 22 |
"multipart_fields": [
|
| 23 |
{"name": "image", "type": "file"}
|
| 24 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
|
|
|
| 22 |
"multipart_fields": [
|
| 23 |
{"name": "image", "type": "file"}
|
| 24 |
]
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
SCENES_EXTRACTION = {
|
| 28 |
+
"method": "POST",
|
| 29 |
+
"path": "/api/scenes_extraction",
|
| 30 |
+
"multipart_fields": [
|
| 31 |
+
{"name": "video_file", "type": "file"},
|
| 32 |
+
{"name": "threshold", "type": "float", "default": 30.0, "description": "Sensibilidad para identificar escenas diferentes"},
|
| 33 |
+
{"name": "offset_frames", "type": "int", "default": 10, "description": "En vez de te coja la primera imagen de la escena te la coja un poco avanzada en la escena" },
|
| 34 |
+
{"name": "crop_ratio", "type": "float", "default": 0.1, "description": "Recorte en los bordes de la imagen (para evitar marcas de agua)"}
|
| 35 |
+
]
|
| 36 |
}
|