44
55// /////////////////////////////////////////////////////////////////////////////////////////////////
66#pragma once
7+ #include < iostream>
78
8- #include " gflags/gflags.h"
9- #include " utils/default_flags.hpp"
9+ #include < gflags/gflags.h>
10+
11+ #include < utils/default_flags.hpp>
1012
1113DEFINE_INPUT_FLAGS
1214DEFINE_OUTPUT_FLAGS
1315
1416static 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." ;
3242static const char raw_output_message[] = " Optional. Output Inference results as raw values." ;
3343static 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." ;
3546static 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. " ;
4051
4152DEFINE_bool (h, false , help_message);
4253DEFINE_string (m, " " , person_vehicle_bike_detection_model_message);
@@ -53,10 +64,9 @@ DEFINE_bool(auto_resize, false, input_resizable_message);
5364DEFINE_string (u, " " , utilization_monitors_message);
5465DEFINE_int32 (person_label, 1 , person_label_message);
5566
56-
5767/* *
58- * @brief This function show a help message
59- */
68+ * @brief This function show a help message
69+ */
6070static void showUsage () {
6171 std::cout << std::endl;
6272 std::cout << " crossroad_camera_demo [OPTION]" << std::endl;
@@ -67,7 +77,7 @@ static void showUsage() {
6777 std::cout << " -loop " << loop_message << std::endl;
6878 std::cout << " -o \" <path>\" " << output_message << std::endl;
6979 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;
7181 std::cout << " -m_pa \" <path>\" " << person_attribs_model_message << std::endl;
7282 std::cout << " -m_reid \" <path>\" " << person_reid_model_message << std::endl;
7383 std::cout << " -d \" <device>\" " << target_device_message << std::endl;
0 commit comments