## Semantic Segmentation Example

This tutorial shows you how to write an semantic segmentation example with OpenCV.js.
To try the example you should click the modelFile button(and configInput button if needed) to upload inference model. You can find the model URLs and parameters in the model info section. Then You should change the parameters in the first code snippet according to the uploaded model. Finally click Try it button to see the result. You can choose any other images.

canvasInput |
modelFile
configFile

### Help function

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

2.Main loop in which will read the image from canvas and do inference once.

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

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

5.The post-processing, including gengerate colors for different classes and argmax to get the classes for each pixel.

## Model Info: