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 2828#include < opencv2/gapi/imgproc.hpp>
2929#include < opencv2/gapi/infer.hpp>
3030#include < opencv2/gapi/infer/ie.hpp>
31+ #include < opencv2/gapi/infer/ov.hpp>
3132#include < opencv2/gapi/own/assert.hpp>
3233#include < opencv2/gapi/streaming/source.hpp>
3334#include < opencv2/gapi/util/optional.hpp>
@@ -147,13 +148,13 @@ int main(int argc, char* argv[]) {
147148 auto config = ConfigFactory::getUserConfig (FLAGS_d, FLAGS_nireq, FLAGS_nstreams, FLAGS_nthreads);
148149 // clang-format off
149150 const auto net =
150- cv::gapi::ie ::Params<cv::gapi::Generic>{
151+ cv::gapi::ov ::Params<cv::gapi::Generic>{
151152 model->getName (),
152153 FLAGS_m, // path to topology IR
153154 fileNameNoExt (FLAGS_m) + " .bin" , // path to weights
154155 FLAGS_d // device specifier
155156 }.cfgNumRequests (config.maxAsyncRequests )
156- .pluginConfig (config.getLegacyConfig ());
157+ .cfgPluginConfig (config.getLegacyConfig ());
157158 // clang-format on
158159
159160 slog::info << " The background matting model " << FLAGS_m << " is loaded to " << FLAGS_d << " device."
Original file line number Diff line number Diff line change 2626#include < opencv2/gapi/gstreaming.hpp>
2727#include < opencv2/gapi/infer.hpp>
2828#include < opencv2/gapi/infer/ie.hpp>
29+ #include < opencv2/gapi/infer/ov.hpp>
2930#include < opencv2/gapi/streaming/source.hpp>
3031#include < opencv2/highgui.hpp>
3132#include < opencv2/imgproc.hpp>
@@ -135,7 +136,7 @@ int main(int argc, char* argv[]) {
135136 /* * Configure networks **/
136137 // clang-format off
137138 auto person_detection =
138- cv::gapi::ie ::Params<nets::PersonDetection>{
139+ cv::gapi::ov ::Params<nets::PersonDetection>{
139140 FLAGS_m_d, // path to model
140141 fileNameNoExt (FLAGS_m_d) + " .bin" , // path to weights
141142 FLAGS_d_d // device to use
@@ -148,7 +149,7 @@ int main(int argc, char* argv[]) {
148149
149150 // clang-format off
150151 auto action_recognition =
151- cv::gapi::ie ::Params<nets::ActionRecognition>{
152+ cv::gapi::ov ::Params<nets::ActionRecognition>{
152153 FLAGS_m_a, // path to model
153154 fileNameNoExt (FLAGS_m_a) + " .bin" , // path to weights
154155 FLAGS_d_a // device to use
You can’t perform that action at this time.
0 commit comments