Code refactor
Change-Id: Ice294178d7af9be94a8bb65c1d0a7c8064f0ce7e
diff --git a/person_detection/app.py b/person_detection/app.py
index 5cf454b..3605ea0 100644
--- a/person_detection/app.py
+++ b/person_detection/app.py
@@ -52,19 +52,10 @@
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="Required. Path to video file or image. 'cam' for capturing video stream from camera",
- required=True, type=str)
- args.add_argument("-l", "--cpu_extension",
- help="Optional. Required for CPU custom layers. Absolute path to a shared library with the "
- "kernels implementations.", type=str, default=None)
- args.add_argument("-pp", "--plugin_dir", help="Optional. Path to a plugin folder", type=str, default=None)
- args.add_argument("-d", "--device",
- help="Optional. Specify the target device to infer on; CPU, GPU, FPGA, HDDL or MYRIAD is "
- "acceptable. The demo will look for a suitable plugin for device specified. "
- "Default value is CPU", default="CPU", type=str)
- args.add_argument("--labels", help="Optional. Path to labels mapping file", default=None, type=str)
+ 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.5, type=float)
+ default=0.0, type=float)
args.add_argument("--idle", action='store_true', help="Idle if no clients connected")
return parser