File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
demos/crossroad_camera_demo/cpp Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ struct PersonAttribsDetection : BaseDetection {
17
17
bool hasTopBottomColor;
18
18
19
19
20
- PersonAttribsDetection () : BaseDetection(FLAGS_m_pa , " Person Attributes Recognition" ), hasTopBottomColor(false ) {}
20
+ PersonAttribsDetection () : BaseDetection(FLAGS_mpa , " Person Attributes Recognition" ), hasTopBottomColor(false ) {}
21
21
22
22
struct AttributesAndColorPoints {
23
23
std::vector<std::string> attributes_strings;
@@ -127,8 +127,8 @@ struct PersonAttribsDetection : BaseDetection {
127
127
128
128
std::shared_ptr<ov::Model> read (const ov::Core& core) override {
129
129
// Read network model
130
- slog::info << " Reading model: " << FLAGS_m_pa << slog::endl;
131
- std::shared_ptr<ov::Model> model = core.read_model (FLAGS_m_pa );
130
+ slog::info << " Reading model: " << FLAGS_mpa << slog::endl;
131
+ std::shared_ptr<ov::Model> model = core.read_model (FLAGS_mpa );
132
132
logBasicModelInfo (model);
133
133
134
134
// set batch size 1
Original file line number Diff line number Diff line change 13
13
struct PersonReIdentification : BaseDetection {
14
14
std::vector<std::vector<float >> globalReIdVec; // contains vectors characterising all detected persons
15
15
16
- PersonReIdentification () : BaseDetection(FLAGS_m_reid , " Person Re-Identification Retail" ) {}
16
+ PersonReIdentification () : BaseDetection(FLAGS_mpr , " Person Re-Identification Retail" ) {}
17
17
18
18
unsigned long int findMatchingPerson (const std::vector<float >& newReIdVec) {
19
19
auto size = globalReIdVec.size ();
@@ -24,7 +24,7 @@ struct PersonReIdentification : BaseDetection {
24
24
if (FLAGS_r) {
25
25
slog::debug << " cosineSimilarity: " << cosSim << slog::endl;
26
26
}
27
- if (cosSim > FLAGS_t_reid ) {
27
+ if (cosSim > FLAGS_tpr ) {
28
28
// We substitute previous person's vector by a new one characterising
29
29
// last person's position
30
30
globalReIdVec[i] = newReIdVec;
@@ -70,8 +70,8 @@ struct PersonReIdentification : BaseDetection {
70
70
71
71
std::shared_ptr<ov::Model> read (const ov::Core& core) override {
72
72
// Read network model
73
- slog::info << " Reading model: " << FLAGS_m_reid << slog::endl;
74
- std::shared_ptr<ov::Model> model = core.read_model (FLAGS_m_reid );
73
+ slog::info << " Reading model: " << FLAGS_mpr << slog::endl;
74
+ std::shared_ptr<ov::Model> model = core.read_model (FLAGS_mpr );
75
75
logBasicModelInfo (model);
76
76
77
77
// set batch size 1
You can’t perform that action at this time.
0 commit comments