After running through the Get Started instructions and initial setup, the camera should have 4 modules (containers) running:
- edgeAgent and edgeHub are two modules that make up the IoT Edge runtime
- AIVisionDevKitGetStartedModule is the default Vision AI model and recognizes 183 different objects
- WebStreamModule streams the video from AIVisionDevKitGetStartedModule to a web browser
Visit Azure portal to see and manage your IoT Hub.
Module Twin Update
Deploying a new module using module twin update sets the AIVisionDevKitGetStartedModule to use the Vision AI model from external location. That location can be any location that is publicly accessible. Module twin is a representation of the module’s metadata in IoT Hub such that changes to the metadata made in IoT Hub are applied to the module in IoT Edge device in seconds.
Note that this method requires AIVisionDevKitGetStartedModule to run in the device. This method updates not only the Vision AI model, but also the module itself. Using a module twin update to update an AI model is recommended during fast iterations of a Vision AI model such as those produced by customvision.ai for model training.
Updating module configuration in the camera happens via the deployment.json file that defines the set of modules and their characteristics per deployment. Modules are deployed from Azure Container Registry (ACR). The picture below is a simplified version of the deployment. Typically edgeAgent and edgeHub are deployed from Microsoft Container Registry (MCR) whereas additional modules are often located in the user’s personal ACR.
IoT Hub provides a graphical UI for defining the deployment.json. Tutorials using VS Code and Jupyter Notebook also use this method to deploy the modules and utilize a template for deployment.json.
More information about module deployment.