Skip to content

Commit 159df8e

Browse files
localai-botmudler
andauthored
feat(swagger): update swagger (#10365)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
1 parent de299ca commit 159df8e

3 files changed

Lines changed: 394 additions & 0 deletions

File tree

swagger/docs.go

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,6 +2142,33 @@ const docTemplate = `{
21422142
}
21432143
}
21442144
},
2145+
"/v1/depth": {
2146+
"post": {
2147+
"tags": [
2148+
"depth"
2149+
],
2150+
"summary": "Estimates per-pixel depth (and optionally pose/points) from an image.",
2151+
"parameters": [
2152+
{
2153+
"description": "query params",
2154+
"name": "request",
2155+
"in": "body",
2156+
"required": true,
2157+
"schema": {
2158+
"$ref": "#/definitions/schema.DepthRequest"
2159+
}
2160+
}
2161+
],
2162+
"responses": {
2163+
"200": {
2164+
"description": "Response",
2165+
"schema": {
2166+
"$ref": "#/definitions/schema.DepthResponse"
2167+
}
2168+
}
2169+
}
2170+
}
2171+
},
21452172
"/v1/detection": {
21462173
"post": {
21472174
"tags": [
@@ -3905,6 +3932,125 @@ const docTemplate = `{
39053932
}
39063933
}
39073934
},
3935+
"schema.DepthRequest": {
3936+
"type": "object",
3937+
"properties": {
3938+
"dst": {
3939+
"description": "optional output directory for exports (glb/colmap)",
3940+
"type": "string"
3941+
},
3942+
"exports": {
3943+
"description": "requested exports: \"glb\", \"colmap\"",
3944+
"type": "array",
3945+
"items": {
3946+
"type": "string"
3947+
}
3948+
},
3949+
"image": {
3950+
"description": "URL or base64-encoded image to analyze",
3951+
"type": "string"
3952+
},
3953+
"include_confidence": {
3954+
"description": "return the per-pixel confidence map (DualDPT)",
3955+
"type": "boolean"
3956+
},
3957+
"include_depth": {
3958+
"description": "return the per-pixel depth map",
3959+
"type": "boolean"
3960+
},
3961+
"include_points": {
3962+
"description": "back-project to a 3D point cloud (DualDPT)",
3963+
"type": "boolean"
3964+
},
3965+
"include_pose": {
3966+
"description": "return camera extrinsics/intrinsics (DualDPT)",
3967+
"type": "boolean"
3968+
},
3969+
"include_sky": {
3970+
"description": "return the per-pixel sky map (mono models)",
3971+
"type": "boolean"
3972+
},
3973+
"model": {
3974+
"type": "string"
3975+
},
3976+
"points_conf_thresh": {
3977+
"description": "keep points with confidence \u003e= this threshold",
3978+
"type": "number"
3979+
}
3980+
}
3981+
},
3982+
"schema.DepthResponse": {
3983+
"type": "object",
3984+
"properties": {
3985+
"confidence": {
3986+
"description": "width*height row-major confidence (DualDPT)",
3987+
"type": "array",
3988+
"items": {
3989+
"type": "number"
3990+
}
3991+
},
3992+
"depth": {
3993+
"description": "width*height row-major metric depth",
3994+
"type": "array",
3995+
"items": {
3996+
"type": "number"
3997+
}
3998+
},
3999+
"export_paths": {
4000+
"description": "paths written for the requested exports",
4001+
"type": "array",
4002+
"items": {
4003+
"type": "string"
4004+
}
4005+
},
4006+
"extrinsics": {
4007+
"description": "12 floats, 3x4 row-major (world-to-camera)",
4008+
"type": "array",
4009+
"items": {
4010+
"type": "number"
4011+
}
4012+
},
4013+
"height": {
4014+
"type": "integer"
4015+
},
4016+
"intrinsics": {
4017+
"description": "9 floats, 3x3 row-major",
4018+
"type": "array",
4019+
"items": {
4020+
"type": "number"
4021+
}
4022+
},
4023+
"is_metric": {
4024+
"description": "depth is in metric units",
4025+
"type": "boolean"
4026+
},
4027+
"num_points": {
4028+
"description": "number of 3D points",
4029+
"type": "integer"
4030+
},
4031+
"point_colors": {
4032+
"description": "base64-encoded num_points*3 uint8 rgb",
4033+
"type": "string"
4034+
},
4035+
"points": {
4036+
"description": "num_points*3 xyz, world space",
4037+
"type": "array",
4038+
"items": {
4039+
"type": "number"
4040+
}
4041+
},
4042+
"sky": {
4043+
"description": "width*height row-major sky map (mono)",
4044+
"type": "array",
4045+
"items": {
4046+
"type": "number"
4047+
}
4048+
},
4049+
"width": {
4050+
"type": "integer"
4051+
}
4052+
}
4053+
},
39084054
"schema.Detection": {
39094055
"type": "object",
39104056
"properties": {

swagger/swagger.json

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,6 +2139,33 @@
21392139
}
21402140
}
21412141
},
2142+
"/v1/depth": {
2143+
"post": {
2144+
"tags": [
2145+
"depth"
2146+
],
2147+
"summary": "Estimates per-pixel depth (and optionally pose/points) from an image.",
2148+
"parameters": [
2149+
{
2150+
"description": "query params",
2151+
"name": "request",
2152+
"in": "body",
2153+
"required": true,
2154+
"schema": {
2155+
"$ref": "#/definitions/schema.DepthRequest"
2156+
}
2157+
}
2158+
],
2159+
"responses": {
2160+
"200": {
2161+
"description": "Response",
2162+
"schema": {
2163+
"$ref": "#/definitions/schema.DepthResponse"
2164+
}
2165+
}
2166+
}
2167+
}
2168+
},
21422169
"/v1/detection": {
21432170
"post": {
21442171
"tags": [
@@ -3902,6 +3929,125 @@
39023929
}
39033930
}
39043931
},
3932+
"schema.DepthRequest": {
3933+
"type": "object",
3934+
"properties": {
3935+
"dst": {
3936+
"description": "optional output directory for exports (glb/colmap)",
3937+
"type": "string"
3938+
},
3939+
"exports": {
3940+
"description": "requested exports: \"glb\", \"colmap\"",
3941+
"type": "array",
3942+
"items": {
3943+
"type": "string"
3944+
}
3945+
},
3946+
"image": {
3947+
"description": "URL or base64-encoded image to analyze",
3948+
"type": "string"
3949+
},
3950+
"include_confidence": {
3951+
"description": "return the per-pixel confidence map (DualDPT)",
3952+
"type": "boolean"
3953+
},
3954+
"include_depth": {
3955+
"description": "return the per-pixel depth map",
3956+
"type": "boolean"
3957+
},
3958+
"include_points": {
3959+
"description": "back-project to a 3D point cloud (DualDPT)",
3960+
"type": "boolean"
3961+
},
3962+
"include_pose": {
3963+
"description": "return camera extrinsics/intrinsics (DualDPT)",
3964+
"type": "boolean"
3965+
},
3966+
"include_sky": {
3967+
"description": "return the per-pixel sky map (mono models)",
3968+
"type": "boolean"
3969+
},
3970+
"model": {
3971+
"type": "string"
3972+
},
3973+
"points_conf_thresh": {
3974+
"description": "keep points with confidence \u003e= this threshold",
3975+
"type": "number"
3976+
}
3977+
}
3978+
},
3979+
"schema.DepthResponse": {
3980+
"type": "object",
3981+
"properties": {
3982+
"confidence": {
3983+
"description": "width*height row-major confidence (DualDPT)",
3984+
"type": "array",
3985+
"items": {
3986+
"type": "number"
3987+
}
3988+
},
3989+
"depth": {
3990+
"description": "width*height row-major metric depth",
3991+
"type": "array",
3992+
"items": {
3993+
"type": "number"
3994+
}
3995+
},
3996+
"export_paths": {
3997+
"description": "paths written for the requested exports",
3998+
"type": "array",
3999+
"items": {
4000+
"type": "string"
4001+
}
4002+
},
4003+
"extrinsics": {
4004+
"description": "12 floats, 3x4 row-major (world-to-camera)",
4005+
"type": "array",
4006+
"items": {
4007+
"type": "number"
4008+
}
4009+
},
4010+
"height": {
4011+
"type": "integer"
4012+
},
4013+
"intrinsics": {
4014+
"description": "9 floats, 3x3 row-major",
4015+
"type": "array",
4016+
"items": {
4017+
"type": "number"
4018+
}
4019+
},
4020+
"is_metric": {
4021+
"description": "depth is in metric units",
4022+
"type": "boolean"
4023+
},
4024+
"num_points": {
4025+
"description": "number of 3D points",
4026+
"type": "integer"
4027+
},
4028+
"point_colors": {
4029+
"description": "base64-encoded num_points*3 uint8 rgb",
4030+
"type": "string"
4031+
},
4032+
"points": {
4033+
"description": "num_points*3 xyz, world space",
4034+
"type": "array",
4035+
"items": {
4036+
"type": "number"
4037+
}
4038+
},
4039+
"sky": {
4040+
"description": "width*height row-major sky map (mono)",
4041+
"type": "array",
4042+
"items": {
4043+
"type": "number"
4044+
}
4045+
},
4046+
"width": {
4047+
"type": "integer"
4048+
}
4049+
}
4050+
},
39054051
"schema.Detection": {
39064052
"type": "object",
39074053
"properties": {

0 commit comments

Comments
 (0)