{"id":15665102,"url":"https://github.com/cansik/midas-converter","last_synced_at":"2025-03-30T04:24:17.292Z","repository":{"id":79717901,"uuid":"308726986","full_name":"cansik/midas-converter","owner":"cansik","description":"Utility to convert RGB frames into depth frames by using MiDas.","archived":false,"fork":false,"pushed_at":"2020-10-30T21:57:26.000Z","size":165,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-05T06:43:31.787Z","etag":null,"topics":["depth-estimation","midas","openvino","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cansik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-30T19:36:40.000Z","updated_at":"2023-01-09T05:08:39.000Z","dependencies_parsed_at":"2023-05-15T11:45:40.646Z","dependency_job_id":null,"html_url":"https://github.com/cansik/midas-converter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmidas-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmidas-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmidas-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmidas-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cansik","download_url":"https://codeload.github.com/cansik/midas-converter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246275133,"owners_count":20751225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["depth-estimation","midas","openvino","python"],"created_at":"2024-10-03T13:45:00.516Z","updated_at":"2025-03-30T04:24:13.114Z","avatar_url":"https://github.com/cansik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MiDas Converter\nUtility to convert RGB frames into depth frames by using MiDas.\n\n![](images/office-demo.jpg)\n\n*Office demo image by [fauxels](https://www.pexels.com/@fauxels) from Pexels*\n\n### Installation\nIt is recommended to use a seperate Python envrionment ([virtualenv](https://virtualenv.pypa.io/en/latest/)) and Python `3.6.X` (Windows 10 \u0026 MacOS).\n\n1. Download and install the latest [OpenVINO framework](https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit.html) (`2021.1`).\n2. Run the following script to install the models, convert them and setup the environment:\n\n```bash\n# one-script setup of the full environment (grab a coffee ☕)\n\n# windows\nsetup.bat\n\n# unix\n./setup.sh\n```\n\n### Demo\n\nEither use a predefined batch script to run the examples or call the demo itself.\n\n```bash\n# demo\nrun.bat\n./run.sh\n\n# on your own image\npython monodepth_demo.py -m public\\midasnet\\FP32\\midasnet.xml -i yourimage.jpg\n```\n\nThere is also a live webcam-feed inference example.\n\n```bash\nrun_webcam.bat\n./run_webcam.sh\n```\n\n#### Batch Convert\n\nTo batch convert a lot of frames run the `monodepth_convert.py` script.\n\n```bash\npython monodepth_convert.py -m public\\midasnet\\FP32\\midasnet.xml -i frames\n```\n\n### OpenCV Demo\n\nIf you are interested in a OpenCV implementation (in Java) feel free to have a look at [the code here](https://github.com/cansik/deep-vision-processing/blob/master/src/main/java/ch/bildspur/vision/MidasNetwork.java#L37-L89).\n\n### About\n\nThe [MiDas network](https://github.com/intel-isl/MiDaS) and the pre-trained weights are part of the [Intel ISL](https://github.com/intel-isl). This repository just adds some scripts and utilties to work with it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcansik%2Fmidas-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcansik%2Fmidas-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcansik%2Fmidas-converter/lists"}