Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1022 Bytes

README.md

File metadata and controls

47 lines (28 loc) · 1022 Bytes

nuricame-camera - Server

Make a contour by pictures, version with separated camera.

Prerequisites

  • Python 3
    • FastAPI

How to

Setup

python3 -m venv venv to create virtual environment.

source venv/bin/activate to activate the virtual environment.

pip install --upgrade pip && pip install -r requirements.txt to install dependencies.

Launch

uvicorn --host 0.0.0.0 --port 8000 --reload main:app to launch the server.

Then http://0.0.0.0:8000/ is the end point.

To see API document, access to http://0.0.0.0:8000/docs or http://0.0.0.0:8000/redoc.

Test

Using httpie

http --form POST http://0.0.0.0:8000/ file@samples/Airplane.jpg -o output.jpg

Misc

License

The software is distributed freely under GOOD DADDY LICENSE, see LICENSE.