/distance-detector

Primary LanguagePythonApache License 2.0Apache-2.0

Distance Detector

This app will display the distance between two hands in inches. This app uses a web camera as the video stream and uses reference object metrics to approximate distance between two objects in an image.

Requirements

Usage

Once the alwaysAI tools are installed on your development machine (or edge device if developing directly on it) you can install and run the app with the following CLI commands:

To perform initial configuration of the app:

aai app configure

To prepare the runtime environment and install app dependencies:

aai app install

To start the app:

aai app start

Configuration

The config.json file may be used to change the model that is used as well as define labels and metrics of objects of interest. The default set up uses hands as objects of interest, and sets the width and height of the hand in inches.

Support