in sample-apps/custom-model/code/application.py [0:0]
def interface(self):
"""Defines the application's configurable settings, input type, and output type."""
return {
"parameters":
(
("model", "model_name", "Name of the model in AWS Panorama", "custom-model"),
("float", "threshold", "Minimum confidence for display", 0.50),
("float", "person_index", "The index of the target class in the model's dataset", 180),
),
"inputs":
(
("media[]", "video_in", "Camera input stream"),
),
"outputs":
(
("media[video_in]", "video_out", "Video output stream"),
)
}