4
4
5
5
// /////////////////////////////////////////////////////////////////////////////////////////////////
6
6
#pragma once
7
+ #include < iostream>
7
8
8
- #include " gflags/gflags.h"
9
- #include " utils/default_flags.hpp"
9
+ #include < gflags/gflags.h>
10
+
11
+ #include < utils/default_flags.hpp>
10
12
11
13
DEFINE_INPUT_FLAGS
12
14
DEFINE_OUTPUT_FLAGS
13
15
14
16
static const char help_message[] = " Print a usage message." ;
15
- static const char person_vehicle_bike_detection_model_message[] = " Required. Path to the Person/Vehicle/Bike Detection Crossroad model (.xml) file." ;
16
- static const char person_attribs_model_message[] = " Optional. Path to the Person Attributes Recognition Crossroad model (.xml) file." ;
17
- static const char person_reid_model_message[] = " Optional. Path to the Person Reidentification Retail model (.xml) file." ;
18
- static const char target_device_message[] = " Optional. Specify the target device for Person/Vehicle/Bike Detection. "
19
- " The list of available devices is shown below. Default value is CPU. "
20
- " Use \" -d HETERO:<comma-separated_devices_list>\" format to specify HETERO plugin. "
21
- " The application looks for a suitable plugin for the specified device." ;
22
- static const char target_device_message_person_attribs[] = " Optional. Specify the target device for Person Attributes Recognition. "
23
- " The list of available devices is shown below. Default value is CPU. "
24
- " Use \" -d HETERO:<comma-separated_devices_list>\" format to specify HETERO plugin. "
25
- " The application looks for a suitable plugin for the specified device." ;
26
- static const char target_device_message_person_reid[] = " Optional. Specify the target device for Person Reidentification Retail. "
27
- " The list of available devices is shown below. Default value is CPU. "
28
- " Use \" -d HETERO:<comma-separated_devices_list>\" format to specify HETERO plugin. "
29
- " The application looks for a suitable plugin for the specified device." ;
30
- static const char threshold_output_message[] = " Optional. Probability threshold for person/vehicle/bike crossroad detections." ;
31
- static const char threshold_output_message_person_reid[] = " Optional. Cosine similarity threshold between two vectors for person reidentification." ;
17
+ static const char person_vehicle_bike_detection_model_message[] =
18
+ " Required. Path to the Person/Vehicle/Bike Detection Crossroad model (.xml) file." ;
19
+ static const char person_attribs_model_message[] =
20
+ " Optional. Path to the Person Attributes Recognition Crossroad model (.xml) file." ;
21
+ static const char person_reid_model_message[] =
22
+ " Optional. Path to the Person Reidentification Retail model (.xml) file." ;
23
+ static const char target_device_message[] =
24
+ " Optional. Specify the target device for Person/Vehicle/Bike Detection. "
25
+ " The list of available devices is shown below. Default value is CPU. "
26
+ " Use \" -d HETERO:<comma-separated_devices_list>\" format to specify HETERO plugin. "
27
+ " The application looks for a suitable plugin for the specified device." ;
28
+ static const char target_device_message_person_attribs[] =
29
+ " Optional. Specify the target device for Person Attributes Recognition. "
30
+ " The list of available devices is shown below. Default value is CPU. "
31
+ " Use \" -d HETERO:<comma-separated_devices_list>\" format to specify HETERO plugin. "
32
+ " The application looks for a suitable plugin for the specified device." ;
33
+ static const char target_device_message_person_reid[] =
34
+ " Optional. Specify the target device for Person Reidentification Retail. "
35
+ " The list of available devices is shown below. Default value is CPU. "
36
+ " Use \" -d HETERO:<comma-separated_devices_list>\" format to specify HETERO plugin. "
37
+ " The application looks for a suitable plugin for the specified device." ;
38
+ static const char threshold_output_message[] =
39
+ " Optional. Probability threshold for person/vehicle/bike crossroad detections." ;
40
+ static const char threshold_output_message_person_reid[] =
41
+ " Optional. Cosine similarity threshold between two vectors for person reidentification." ;
32
42
static const char raw_output_message[] = " Optional. Output Inference results as raw values." ;
33
43
static const char no_show_message[] = " Optional. Don't show output." ;
34
- static const char input_resizable_message[] = " Optional. Enables resizable input with support of ROI crop & auto resize." ;
44
+ static const char input_resizable_message[] =
45
+ " Optional. Enables resizable input with support of ROI crop & auto resize." ;
35
46
static const char utilization_monitors_message[] = " Optional. List of monitors to show initially." ;
36
- static const char person_label_message[] = " Optional. The integer index of the objects' category corresponding to persons "
37
- " (as it is returned from the detection network, may vary from one network to another). "
38
- " The default value is 1. " ;
39
-
47
+ static const char person_label_message[] =
48
+ " Optional. The integer index of the objects' category corresponding to persons "
49
+ " (as it is returned from the detection network, may vary from one network to another). "
50
+ " The default value is 1. " ;
40
51
41
52
DEFINE_bool (h, false , help_message);
42
53
DEFINE_string (m, " " , person_vehicle_bike_detection_model_message);
@@ -53,10 +64,9 @@ DEFINE_bool(auto_resize, false, input_resizable_message);
53
64
DEFINE_string (u, " " , utilization_monitors_message);
54
65
DEFINE_int32 (person_label, 1 , person_label_message);
55
66
56
-
57
67
/* *
58
- * @brief This function show a help message
59
- */
68
+ * @brief This function show a help message
69
+ */
60
70
static void showUsage () {
61
71
std::cout << std::endl;
62
72
std::cout << " crossroad_camera_demo [OPTION]" << std::endl;
@@ -67,7 +77,7 @@ static void showUsage() {
67
77
std::cout << " -loop " << loop_message << std::endl;
68
78
std::cout << " -o \" <path>\" " << output_message << std::endl;
69
79
std::cout << " -limit \" <num>\" " << limit_message << std::endl;
70
- std::cout << " -m \" <path>\" " << person_vehicle_bike_detection_model_message<< std::endl;
80
+ std::cout << " -m \" <path>\" " << person_vehicle_bike_detection_model_message << std::endl;
71
81
std::cout << " -m_pa \" <path>\" " << person_attribs_model_message << std::endl;
72
82
std::cout << " -m_reid \" <path>\" " << person_reid_model_message << std::endl;
73
83
std::cout << " -d \" <device>\" " << target_device_message << std::endl;
0 commit comments