Adding Classification Names
The Open Gateway can display class names instead of class IDs during recognition. When you download a Knowledge Pack from the Analytics Studio a model.json file is automatically generated for your model and saved to your Knowledge Pack directory that you can use for displaying class names in the Open Gateway.
Download Example File
From Test Mode
Switch to Test Mode
Click Upload Class Map JSON
Select the model.json file and click open
This will upload the model.json to your Open Gateway server and you will see the class names displayed instead of numbers.
You can also set the model.json file path as a command line parameter on start.
Start the Open Gateway with the
-mcommand to set the model.json file path.
# Run from source python app.py -m "<path-to-file>" # Run from installer .\open-gateway.exe -m "<path-to-file>" # Replace <path-to-file> with your model.json file path on your computer
(Optional) You can add multiple command parameters on start. See example below for how to use the
-icommand parameters together to set your model.json and image map file paths on start.
# Run from source python app.py -m "<path-to-model-json>" -i "<path-to-image-map>" # Run from installer .\open-gateway.exe -m "<path-to-model-json>" -i "<path-to-image-map>" # Replace <path-to-model-json> and <path-to-image-map> with your own file paths