File tree Expand file tree Collapse file tree 4 files changed +6
-14
lines changed
demos/crossroad_camera_demo/cpp Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 11
11
#include " detection_base.hpp"
12
12
#include " crossroad_camera_demo.hpp"
13
13
14
- using namespace ov ::preprocess;
15
-
16
14
struct PersonDetection : BaseDetection {
17
15
size_t maxProposalCount;
18
16
size_t objectSize;
@@ -90,7 +88,7 @@ struct PersonDetection : BaseDetection {
90
88
91
89
const ov::Layout tensor_layout{ " NHWC" };
92
90
93
- ov::preprocess::PrePostProcessor ppp = PrePostProcessor (model);
91
+ ov::preprocess::PrePostProcessor ppp = ov::preprocess:: PrePostProcessor (model);
94
92
95
93
if (FLAGS_auto_resize) {
96
94
ppp.input ().tensor ().
@@ -100,7 +98,7 @@ struct PersonDetection : BaseDetection {
100
98
ppp.input ().preprocess ().
101
99
convert_element_type (ov::element::f32 ).
102
100
convert_layout (" NCHW" ).
103
- resize (ResizeAlgorithm::RESIZE_LINEAR);
101
+ resize (ov::preprocess:: ResizeAlgorithm::RESIZE_LINEAR);
104
102
ppp.input ().model ().set_layout (" NCHW" );
105
103
ppp.output ().tensor ().set_element_type (ov::element::f32 );
106
104
} else {
Original file line number Diff line number Diff line change 10
10
#include " utils/slog.hpp"
11
11
#include " detection_base.hpp"
12
12
13
- using namespace ov ::preprocess;
14
-
15
13
struct PersonAttribsDetection : BaseDetection {
16
14
std::string outputNameForAttributes;
17
15
std::string outputNameForTopColorPoint;
@@ -143,7 +141,7 @@ struct PersonAttribsDetection : BaseDetection {
143
141
throw std::logic_error (" Person Attribs topology should have only one input" );
144
142
}
145
143
146
- ov::preprocess::PrePostProcessor ppp = PrePostProcessor (model);
144
+ ov::preprocess::PrePostProcessor ppp = ov::preprocess:: PrePostProcessor (model);
147
145
148
146
if (FLAGS_auto_resize) {
149
147
ppp.input ().tensor ().
@@ -153,7 +151,7 @@ struct PersonAttribsDetection : BaseDetection {
153
151
ppp.input ().preprocess ().
154
152
convert_element_type (ov::element::f32 ).
155
153
convert_layout (" NCHW" ).
156
- resize (ResizeAlgorithm::RESIZE_LINEAR);
154
+ resize (ov::preprocess:: ResizeAlgorithm::RESIZE_LINEAR);
157
155
ppp.input ().model ().set_layout (" NCHW" );
158
156
} else {
159
157
ppp.input ().tensor ().
Original file line number Diff line number Diff line change 10
10
#include " utils/slog.hpp"
11
11
#include " detection_base.hpp"
12
12
13
- using namespace ov ::preprocess;
14
-
15
13
struct PersonReIdentification : BaseDetection {
16
14
std::vector<std::vector<float >> globalReIdVec; // contains vectors characterising all detected persons
17
15
@@ -87,7 +85,7 @@ struct PersonReIdentification : BaseDetection {
87
85
throw std::logic_error (" Person Reidentification Retail should have 1 input" );
88
86
}
89
87
90
- ov::preprocess::PrePostProcessor ppp = PrePostProcessor (model);
88
+ ov::preprocess::PrePostProcessor ppp = ov::preprocess:: PrePostProcessor (model);
91
89
92
90
if (FLAGS_auto_resize) {
93
91
ppp.input ().tensor ().
@@ -97,7 +95,7 @@ struct PersonReIdentification : BaseDetection {
97
95
ppp.input ().preprocess ().
98
96
convert_element_type (ov::element::f32 ).
99
97
convert_layout (" NCHW" ).
100
- resize (ResizeAlgorithm::RESIZE_LINEAR);
98
+ resize (ov::preprocess:: ResizeAlgorithm::RESIZE_LINEAR);
101
99
ppp.input ().model ().set_layout (" NCHW" );
102
100
} else {
103
101
ppp.input ().tensor ().
Original file line number Diff line number Diff line change 26
26
#include " detection_person_reid.hpp"
27
27
#include " crossroad_camera_demo.hpp"
28
28
29
- using namespace ov ::preprocess;
30
-
31
29
bool ParseAndCheckCommandLine (int argc, char * argv[]) {
32
30
// Parsing and validation of input args
33
31
You can’t perform that action at this time.
0 commit comments