@@ -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": {
0 commit comments