API for the SmartSight app
SmartSight is an Android app powered by a deep learning engine that provides information about any object scanned by the device’s camera.
Please refer to our 📚 Wiki documentation.
- Clone the repo and its submodule:
git clone --recursive https://github.com/smartsight/smartsight-api.git
- Install Python 3
- Install Python requirements:
pip install -r engine/requirements.txt
- Set your Python 3 path
- Duplicate the file
.env.sample
- Rename it
.env
- Change the
SM_PYTHON_PATH
value to your Python 3 interpreter (runwhich python3
in the command line to know it)
- Duplicate the file
- Install Node dependencies:
npm install
- Run the server:
npm start
- Listening on:
http://0.0.0.0:3000
Variable | Default | Description |
---|---|---|
SM_SERVER_HOST |
"0.0.0.0" | Address of the server |
SM_SERVER_PORT |
3000 | Port of the server |
SM_MODEL_DIR |
"/tmp/smartsight" | Directory to store the classification graph |
SM_PYTHON_PATH |
"" | Path to the Python 3 interpreter |
To change these environment variables, duplicate the file .env.sample
, rename it .env
and change the default values if necessary.
- Watch:
npm run dev
- Lint:
npm run lint
- Fix lint:
npm run lint:fix
- Test:
npm test
GPL © SmartSight