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 {
1717 bool hasTopBottomColor;
1818
1919
20- PersonAttribsDetection () : BaseDetection(FLAGS_m_pa , " Person Attributes Recognition" ), hasTopBottomColor(false ) {}
20+ PersonAttribsDetection () : BaseDetection(FLAGS_mpa , " Person Attributes Recognition" ), hasTopBottomColor(false ) {}
2121
2222 struct AttributesAndColorPoints {
2323 std::vector<std::string> attributes_strings;
@@ -127,8 +127,8 @@ struct PersonAttribsDetection : BaseDetection {
127127
128128 std::shared_ptr<ov::Model> read (const ov::Core& core) override {
129129 // 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 );
132132 logBasicModelInfo (model);
133133
134134 // set batch size 1
Original file line number Diff line number Diff line change 1313struct PersonReIdentification : BaseDetection {
1414 std::vector<std::vector<float >> globalReIdVec; // contains vectors characterising all detected persons
1515
16- PersonReIdentification () : BaseDetection(FLAGS_m_reid , " Person Re-Identification Retail" ) {}
16+ PersonReIdentification () : BaseDetection(FLAGS_mpr , " Person Re-Identification Retail" ) {}
1717
1818 unsigned long int findMatchingPerson (const std::vector<float >& newReIdVec) {
1919 auto size = globalReIdVec.size ();
@@ -24,7 +24,7 @@ struct PersonReIdentification : BaseDetection {
2424 if (FLAGS_r) {
2525 slog::debug << " cosineSimilarity: " << cosSim << slog::endl;
2626 }
27- if (cosSim > FLAGS_t_reid ) {
27+ if (cosSim > FLAGS_tpr ) {
2828 // We substitute previous person's vector by a new one characterising
2929 // last person's position
3030 globalReIdVec[i] = newReIdVec;
@@ -70,8 +70,8 @@ struct PersonReIdentification : BaseDetection {
7070
7171 std::shared_ptr<ov::Model> read (const ov::Core& core) override {
7272 // 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 );
7575 logBasicModelInfo (model);
7676
7777 // set batch size 1
You can’t perform that action at this time.
0 commit comments