ROC integration
Change-Id: Ica1d8b10e9c0318d89361ff85206aabfa5f58e7f
diff --git a/person_detection/app.py b/person_detection/app.py
index 87a2cd9..fc0b9c7 100644
--- a/person_detection/app.py
+++ b/person_detection/app.py
@@ -41,15 +41,41 @@
def build_argparser():
parser = ArgumentParser(add_help=False)
args = parser.add_argument_group('Options')
- args.add_argument('-h', '--help', action='help', default=SUPPRESS, help='Show this help message and exit.')
- args.add_argument("-m", "--model", help="Required. Path to an .xml file with a trained model.",
- required=True, type=str)
+ args.add_argument('-h', '--help',
+ action = 'help',
+ default = SUPPRESS,
+ help = 'Show this help message and exit.')
+ args.add_argument("-m", "--model",
+ help = "Required. Path to an .xml file with a trained model.",
+ required = True,
+ type = str)
args.add_argument("-i", "--input",
- help="Path to video file or image. 'cam' for capturing video stream from camera",
- default = "gstreamer", type=str)
- args.add_argument("-pt", "--prob_threshold", help="Optional. Probability threshold for detections filtering",
- default=0.0, type=float)
- args.add_argument("--idle", action='store_true', help="Idle if no clients connected")
+ help = "Path to video file or image. 'cam' for capturing video stream from camera",
+ default = "gstreamer",
+ type = str)
+ args.add_argument("-pt", "--prob_threshold",
+ help = "Optional. Probability threshold for detections filtering",
+ default = 0.75,
+ type = float)
+ args.add_argument("--idle",
+ action = 'store_true',
+ help = "Idle if no clients connected")
+ args.add_argument("--key",
+ help = "ROC api key",
+ required = True,
+ type = str)
+ args.add_argument("--mbrlow",
+ help = "Low range of MBR",
+ default = 5000000,
+ type = int)
+ args.add_argument("--mbrhigh",
+ help = "High range of MBR",
+ default = 10000000,
+ type = int)
+ args.add_argument("--devicegroup",
+ help = "Camera device group",
+ default = "menlo-4g-cameras",
+ type = str)
return parser