Skip to content

Sauroni/zoedepth-estimation-web-application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zoedepth-estimation-web-application

This web-application will let you get depth map from single image.

alt text

Usage

Through Docker

  1. Launch Docker.
  2. Run run.bat.
  3. After installation completes, open browser and paste localhost:5000/ in address bar (don't miss slash).
  4. Upload image you want (english filenames only).
  5. Wait (photo processing may take about one minute or more).
  6. Get the result.
  7. You can complete the work using the keyboard shortcut ctrl+c in the terminal.

P.s.: to restart, run run.bat again.

Without Docker

  1. Install dependencies: pip install -r src/requirements.txt
  2. Get the model: python ./src/getmodel.py
  3. Activate flask: python src/app.py
  4. Run flask: flask --app src/app.py run --host=0.0.0.0 --port=5000
  5. Use application through browser via dedicated url shown in terminal: http://127.0.0.1:5000/

REST API methods

  1. POST http://localhost:5000/
    • Uploads an inage to the server for depth estimation.
    • Image is transferred as binary in the body of the request.
    • Postman collection link: https://app.getpostman.com/join-team?invite_code=52bf2d60dfe63936e45f22319021a239.

На русском

Использование

  1. Запустить Docker.
  2. Запустить run.bat.
  3. После установки, открыть браузер и вбить в адресную строку: localhost:4000/ (не забудьте про слэш).
  4. Загрузите желаемое изображение (только английские названия файлов).
  5. Подождать (обработка фото может занять около одной минуты или больше).
  6. Получить результат.
  7. Завершить работу можно с помощью сочетания клавиш ctrl+c в терминале.

P.s.: для повторного запуска ещё раз запустите run.bat.

Without Docker

  1. Загрузите зависимости: pip install -r src/requirements.txt
  2. Загрузите модель: python ./src/getmodel.py
  3. Активируйте flask: python src/app.py
  4. Запустите flask: flask --app src/app.py run --host=0.0.0.0 --port=5000
  5. Используйте веб-приложение через браузер по выделенной ссылке, отображённой в терминале: http://127.0.0.1:5000/

Методы REST API

  1. POST http://localhost:5000/
    • Загружает изображение на сервер для обработки.
    • Изображение передаётся в бинарном виде в теле запроса.
    • Ссылка на коллекцию Postman: https://app.getpostman.com/join-team?invite_code=52bf2d60dfe63936e45f22319021a239.

About

Web-application for single-image depth estimation using ZoeDepth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 53.1%
  • Python 46.2%
  • Other 0.7%