Skip to content

Commit cd75d98

Browse files
remove using ov::preprocess from headers
1 parent ccdd0fb commit cd75d98

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

demos/crossroad_camera_demo/cpp/detection_person.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include "detection_base.hpp"
1212
#include "crossroad_camera_demo.hpp"
1313

14-
using namespace ov::preprocess;
15-
1614
struct PersonDetection : BaseDetection {
1715
size_t maxProposalCount;
1816
size_t objectSize;
@@ -90,7 +88,7 @@ struct PersonDetection : BaseDetection {
9088

9189
const ov::Layout tensor_layout{ "NHWC" };
9290

93-
ov::preprocess::PrePostProcessor ppp = PrePostProcessor(model);
91+
ov::preprocess::PrePostProcessor ppp = ov::preprocess::PrePostProcessor(model);
9492

9593
if (FLAGS_auto_resize) {
9694
ppp.input().tensor().
@@ -100,7 +98,7 @@ struct PersonDetection : BaseDetection {
10098
ppp.input().preprocess().
10199
convert_element_type(ov::element::f32).
102100
convert_layout("NCHW").
103-
resize(ResizeAlgorithm::RESIZE_LINEAR);
101+
resize(ov::preprocess::ResizeAlgorithm::RESIZE_LINEAR);
104102
ppp.input().model().set_layout("NCHW");
105103
ppp.output().tensor().set_element_type(ov::element::f32);
106104
} else {

demos/crossroad_camera_demo/cpp/detection_person_attr.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include "utils/slog.hpp"
1111
#include "detection_base.hpp"
1212

13-
using namespace ov::preprocess;
14-
1513
struct PersonAttribsDetection : BaseDetection {
1614
std::string outputNameForAttributes;
1715
std::string outputNameForTopColorPoint;
@@ -143,7 +141,7 @@ struct PersonAttribsDetection : BaseDetection {
143141
throw std::logic_error("Person Attribs topology should have only one input");
144142
}
145143

146-
ov::preprocess::PrePostProcessor ppp = PrePostProcessor(model);
144+
ov::preprocess::PrePostProcessor ppp = ov::preprocess::PrePostProcessor(model);
147145

148146
if (FLAGS_auto_resize) {
149147
ppp.input().tensor().
@@ -153,7 +151,7 @@ struct PersonAttribsDetection : BaseDetection {
153151
ppp.input().preprocess().
154152
convert_element_type(ov::element::f32).
155153
convert_layout("NCHW").
156-
resize(ResizeAlgorithm::RESIZE_LINEAR);
154+
resize(ov::preprocess::ResizeAlgorithm::RESIZE_LINEAR);
157155
ppp.input().model().set_layout("NCHW");
158156
} else {
159157
ppp.input().tensor().

demos/crossroad_camera_demo/cpp/detection_person_reid.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include "utils/slog.hpp"
1111
#include "detection_base.hpp"
1212

13-
using namespace ov::preprocess;
14-
1513
struct PersonReIdentification : BaseDetection {
1614
std::vector<std::vector<float>> globalReIdVec; // contains vectors characterising all detected persons
1715

@@ -87,7 +85,7 @@ struct PersonReIdentification : BaseDetection {
8785
throw std::logic_error("Person Reidentification Retail should have 1 input");
8886
}
8987

90-
ov::preprocess::PrePostProcessor ppp = PrePostProcessor(model);
88+
ov::preprocess::PrePostProcessor ppp = ov::preprocess::PrePostProcessor(model);
9189

9290
if (FLAGS_auto_resize) {
9391
ppp.input().tensor().
@@ -97,7 +95,7 @@ struct PersonReIdentification : BaseDetection {
9795
ppp.input().preprocess().
9896
convert_element_type(ov::element::f32).
9997
convert_layout("NCHW").
100-
resize(ResizeAlgorithm::RESIZE_LINEAR);
98+
resize(ov::preprocess::ResizeAlgorithm::RESIZE_LINEAR);
10199
ppp.input().model().set_layout("NCHW");
102100
} else {
103101
ppp.input().tensor().

demos/crossroad_camera_demo/cpp/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
#include "detection_person_reid.hpp"
2727
#include "crossroad_camera_demo.hpp"
2828

29-
using namespace ov::preprocess;
30-
3129
bool ParseAndCheckCommandLine(int argc, char* argv[]) {
3230
// Parsing and validation of input args
3331

0 commit comments

Comments
 (0)