Peg base openvino image to 2021.4
Parameterize hard-coded values
Change-Id: I0c3d4866709b5ea98056699818fbac53da979af4
diff --git a/person_detection/app.py b/person_detection/app.py
index 2ef9b87..0c15bec 100644
--- a/person_detection/app.py
+++ b/person_detection/app.py
@@ -70,6 +70,18 @@
args.add_argument("--key",
help = "ROC api key",
type = str)
+ args.add_argument("--url",
+ help = "ROC url",
+ type = str)
+ args.add_argument("--keycloak",
+ help = "Keycloak url",
+ type = str)
+ args.add_argument("--enterprise",
+ help = "Enterprise ID",
+ type = str)
+ args.add_argument("--site",
+ help = "Site ID",
+ type = str)
args.add_argument("--user",
help = "ROC username",
type = str)
@@ -86,7 +98,6 @@
type=int)
args.add_argument("--devicegroup",
help="Camera device group",
- default="menlo-4g-cameras",
type=str)
return parser
@@ -106,7 +117,7 @@
key = args.key
if key is None:
if args.user is not None and args.password is not None:
- roc = Roc(config.url, args.user, args.password, config.enterprise, config.site)
+ roc = Roc(args.url, args.keycloak, args.user, args.password, args.enterprise, args.site)
key = roc.get_key()
else:
log.error("Either key or user/password required")