{"named_endpoints":{"/analyze":{"parameters":[{"label":"1st","parameter_name":"image","parameter_has_default":false,"parameter_default":null,"type":{"type":"object","properties":{"path":{"type":"string"},"url":{"oneOf":[{"type":"null"},{"type":"string"}]},"size":{"oneOf":[{"type":"null"},{"type":"integer"}]},"orig_name":{"oneOf":[{"type":"null"},{"type":"string"}]},"mime_type":{"oneOf":[{"type":"null"},{"type":"string"}]},"is_stream":{"type":"boolean"},"meta":{"type":"object","properties":{"_type":{"const":"gradio.FileData"}},"required":["_type"]}},"required":["path","url","size","orig_name","mime_type","is_stream","meta"]},"python_type":{"type":"filepath","description":""},"component":"Api","example_input":"..."},{"label":"2nd","parameter_name":"ground_truth_dsm","parameter_has_default":true,"parameter_default":null,"type":{"oneOf":[{"type":"null"},{"type":"object","properties":{"path":{"type":"string"},"url":{"oneOf":[{"type":"null"},{"type":"string"}]},"size":{"oneOf":[{"type":"null"},{"type":"integer"}]},"orig_name":{"oneOf":[{"type":"null"},{"type":"string"}]},"mime_type":{"oneOf":[{"type":"null"},{"type":"string"}]},"is_stream":{"type":"boolean"},"meta":{"type":"object","properties":{"_type":{"const":"gradio.FileData"}},"required":["_type"]}},"required":["path","url","size","orig_name","mime_type","is_stream","meta"]}]},"python_type":{"type":"None | filepath","description":""},"component":"Api","example_input":"..."},{"label":"3rd","parameter_name":"reference_dem","parameter_has_default":true,"parameter_default":null,"type":{"oneOf":[{"type":"null"},{"type":"object","properties":{"path":{"type":"string"},"url":{"oneOf":[{"type":"null"},{"type":"string"}]},"size":{"oneOf":[{"type":"null"},{"type":"integer"}]},"orig_name":{"oneOf":[{"type":"null"},{"type":"string"}]},"mime_type":{"oneOf":[{"type":"null"},{"type":"string"}]},"is_stream":{"type":"boolean"},"meta":{"type":"object","properties":{"_type":{"const":"gradio.FileData"}},"required":["_type"]}},"required":["path","url","size","orig_name","mime_type","is_stream","meta"]}]},"python_type":{"type":"None | filepath","description":""},"component":"Api","example_input":"..."},{"label":"4th","parameter_name":"gcps","parameter_has_default":true,"parameter_default":null,"type":{"oneOf":[{"type":"null"},{"type":"object","properties":{"path":{"type":"string"},"url":{"oneOf":[{"type":"null"},{"type":"string"}]},"size":{"oneOf":[{"type":"null"},{"type":"integer"}]},"orig_name":{"oneOf":[{"type":"null"},{"type":"string"}]},"mime_type":{"oneOf":[{"type":"null"},{"type":"string"}]},"is_stream":{"type":"boolean"},"meta":{"type":"object","properties":{"_type":{"const":"gradio.FileData"}},"required":["_type"]}},"required":["path","url","size","orig_name","mime_type","is_stream","meta"]}]},"python_type":{"type":"None | filepath","description":""},"component":"Api","example_input":"..."},{"label":"5th","parameter_name":"quality_mode","parameter_has_default":true,"parameter_default":"fast","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Api","example_input":"fast"},{"label":"6th","parameter_name":"acquisition_time","parameter_has_default":true,"parameter_default":null,"type":{"oneOf":[{"type":"null"},{"type":"string"}]},"python_type":{"type":"None | str","description":""},"component":"Api","example_input":"..."}],"returns":[{"label":"1st","type":{},"python_type":{"type":"Any","description":""},"component":"Api"}],"api_visibility":"public","description":"Analyze an aerial image. Upload files first through the Gradio client; the call is queued and may request ZeroGPU.","code_snippets":{"python":"from gradio_client import Client\n\nclient = Client(\"MrT0nyStark/depthwizard-backend\")\nresult = client.predict(\n\timage=...,\n\tground_truth_dsm=None,\n\treference_dem=None,\n\tgcps=None,\n\tquality_mode=\"fast\",\n\tacquisition_time=None,\n\tapi_name=\"/analyze\",\n)\nprint(result)","javascript":"import { Client } from \"@gradio/client\";\n\nconst client = await Client.connect(\"MrT0nyStark/depthwizard-backend\");\nconst result = await client.predict(\"/analyze\", {\n\t\timage: ...,\n\t\tground_truth_dsm: null,\n\t\treference_dem: null,\n\t\tgcps: null,\n\t\tquality_mode: \"fast\",\n\t\tacquisition_time: null,\n});\n\nconsole.log(result.data);","bash":"curl -X POST http://0.0.0.0:7860/gradio_api/call/v2/analyze -s -H \"Content-Type: application/json\" \\\n  -d '{\"image\": ..., \"ground_truth_dsm\": null, \"reference_dem\": null, \"gcps\": null, \"quality_mode\": \"fast\", \"acquisition_time\": null}' \\\n  | awk -F'\"' '{ print $4}' \\\n  | read EVENT_ID; curl -N http://0.0.0.0:7860/gradio_api/call/analyze/$EVENT_ID","cli":"{command} predict MrT0nyStark/depthwizard-backend /analyze '{\n  \"image\": \"...\",\n  \"ground_truth_dsm\": \"...\",\n  \"reference_dem\": \"...\",\n  \"gcps\": \"...\",\n  \"quality_mode\": \"fast\",\n  \"acquisition_time\": \"...\"\n}'\n"}}},"unnamed_endpoints":{}}