Object Detection Example with Camera

This tutorial show you how to write an object detection example with camera.
To try the example you should click the modelInput button(and configInput button if needed) to upload inference model. Then You should change the parameters in the first code snippet according to the uploaded model. Finally click Start/Stop button to start or stop the camera capture.

videoInput

modelInput
configInput

Help function

1.The parameters for model inference which you can modify to investigate more models.

2.The function to capture video from camera, and the main loop in which will do inference once.

3.Load labels from txt file and process it into an array.

4.Get blob from image as input for net, and standardize it with mean and std.

5.Fetch model file and save to emscripten file system once click the input button.

6.The post-processing, including get boxes from output and draw boxes into the image.

Model Info: