File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
background_subtraction_demo/cpp_gapi
gesture_recognition_demo/cpp_gapi Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 28
28
#include < opencv2/gapi/imgproc.hpp>
29
29
#include < opencv2/gapi/infer.hpp>
30
30
#include < opencv2/gapi/infer/ie.hpp>
31
+ #include < opencv2/gapi/infer/ov.hpp>
31
32
#include < opencv2/gapi/own/assert.hpp>
32
33
#include < opencv2/gapi/streaming/source.hpp>
33
34
#include < opencv2/gapi/util/optional.hpp>
@@ -147,13 +148,13 @@ int main(int argc, char* argv[]) {
147
148
auto config = ConfigFactory::getUserConfig (FLAGS_d, FLAGS_nireq, FLAGS_nstreams, FLAGS_nthreads);
148
149
// clang-format off
149
150
const auto net =
150
- cv::gapi::ie ::Params<cv::gapi::Generic>{
151
+ cv::gapi::ov ::Params<cv::gapi::Generic>{
151
152
model->getName (),
152
153
FLAGS_m, // path to topology IR
153
154
fileNameNoExt (FLAGS_m) + " .bin" , // path to weights
154
155
FLAGS_d // device specifier
155
156
}.cfgNumRequests (config.maxAsyncRequests )
156
- .pluginConfig (config.getLegacyConfig ());
157
+ .cfgPluginConfig (config.getLegacyConfig ());
157
158
// clang-format on
158
159
159
160
slog::info << " The background matting model " << FLAGS_m << " is loaded to " << FLAGS_d << " device."
Original file line number Diff line number Diff line change 26
26
#include < opencv2/gapi/gstreaming.hpp>
27
27
#include < opencv2/gapi/infer.hpp>
28
28
#include < opencv2/gapi/infer/ie.hpp>
29
+ #include < opencv2/gapi/infer/ov.hpp>
29
30
#include < opencv2/gapi/streaming/source.hpp>
30
31
#include < opencv2/highgui.hpp>
31
32
#include < opencv2/imgproc.hpp>
@@ -135,7 +136,7 @@ int main(int argc, char* argv[]) {
135
136
/* * Configure networks **/
136
137
// clang-format off
137
138
auto person_detection =
138
- cv::gapi::ie ::Params<nets::PersonDetection>{
139
+ cv::gapi::ov ::Params<nets::PersonDetection>{
139
140
FLAGS_m_d, // path to model
140
141
fileNameNoExt (FLAGS_m_d) + " .bin" , // path to weights
141
142
FLAGS_d_d // device to use
@@ -148,7 +149,7 @@ int main(int argc, char* argv[]) {
148
149
149
150
// clang-format off
150
151
auto action_recognition =
151
- cv::gapi::ie ::Params<nets::ActionRecognition>{
152
+ cv::gapi::ov ::Params<nets::ActionRecognition>{
152
153
FLAGS_m_a, // path to model
153
154
fileNameNoExt (FLAGS_m_a) + " .bin" , // path to weights
154
155
FLAGS_d_a // device to use
You can’t perform that action at this time.
0 commit comments