Contents ======== * `Contents <#contents>`__ * `Edge Video Analytics Microservice <#edge-video-analytics-microservice>`__ * `Build the Base Image <#build-the-base-image>`__ * `Run the Base Image <#run-the-base-image>`__ * `Run EVAM in Open EII Mode <#run-evam-in-open-eii-mode>`__ Edge Video Analytics Microservice --------------------------------- This repository contains the source code for Edge Video Analytics Microservice (EVAM) used for the `Video Analytics Use Case `_. For information on how to build the use case, refer to the `Get Started `_ guide. Build the Base Image ^^^^^^^^^^^^^^^^^^^^ Complete the following steps to build the base image: #. Run the following command: .. code-block:: sh `docker-compose -f docker-compose-build.yml build` #. If required, download the pre-built container image for Edge Video Analytics Microservice from `Docker Hub `_. Run the Base Image ^^^^^^^^^^^^^^^^^^ Complete the following steps to run the base image: #. Clone this `repo `_. #. Run the following command to make the following files executable: .. code-block:: sh chmod +x tools/model_downloader/model_downloader.sh docker/run.sh #. Download the required models. From the cloned repo, run the following command: .. code-block:: sh ./tools/model_downloader/model_downloader.sh --model-list #. After downloading the models, you will have the ``models`` directory in the base folder. Refer to the following: .. code-block:: json models/ ├── action_recognition ├── audio_detection ├── emotion_recognition ├── face_detection_retail ├── object_classification └── object_detection #. Add the following lines in the ``docker-compose.yml`` environment if you are behind a proxy. .. code-block:: sh - HTTP_PROXY=:/ - HTTPS_PROXY=:/ - NO_PROXY=localhost,127.0.0.1 #. Run the ``sudo docker-compose up`` command. .. note:: For more details, refer to `Run the Edge Video Analytics Microservice `_. Run EVAM in Open EII Mode ^^^^^^^^^^^^^^^^^^^^^^^^^ To run EVAM in the Open EII mode, refer to the `README `_.