mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
G-API: Introduced a Text Detection sample
This sample models the Text Detection demo from OMZ: https://github.com/openvinotoolkit/open_model_zoo/tree/2020.4/demos/text_detection_demo Also: renamed cv::gapi::size() to cv::gapi::streaming::size()
This commit is contained in:
@@ -388,14 +388,14 @@ GMat warpAffine(const GMat& src, const Mat& M, const Size& dsize, int flags,
|
||||
return core::GWarpAffine::on(src, M, dsize, flags, borderMode, borderValue);
|
||||
}
|
||||
|
||||
GOpaque<Size> size(const GMat& src)
|
||||
GOpaque<Size> streaming::size(const GMat& src)
|
||||
{
|
||||
return core::GSize::on(src);
|
||||
return streaming::GSize::on(src);
|
||||
}
|
||||
|
||||
GOpaque<Size> size(const GOpaque<Rect>& r)
|
||||
GOpaque<Size> streaming::size(const GOpaque<Rect>& r)
|
||||
{
|
||||
return core::GSizeR::on(r);
|
||||
return streaming::GSizeR::on(r);
|
||||
}
|
||||
|
||||
} //namespace gapi
|
||||
|
||||
@@ -625,7 +625,7 @@ GAPI_OCV_KERNEL(GCPUParseYolo, cv::gapi::nn::parsers::GParseYolo)
|
||||
}
|
||||
};
|
||||
|
||||
GAPI_OCV_KERNEL(GCPUSize, cv::gapi::core::GSize)
|
||||
GAPI_OCV_KERNEL(GCPUSize, cv::gapi::streaming::GSize)
|
||||
{
|
||||
static void run(const cv::Mat& in, cv::Size& out)
|
||||
{
|
||||
@@ -634,7 +634,7 @@ GAPI_OCV_KERNEL(GCPUSize, cv::gapi::core::GSize)
|
||||
}
|
||||
};
|
||||
|
||||
GAPI_OCV_KERNEL(GCPUSizeR, cv::gapi::core::GSizeR)
|
||||
GAPI_OCV_KERNEL(GCPUSizeR, cv::gapi::streaming::GSizeR)
|
||||
{
|
||||
static void run(const cv::Rect& in, cv::Size& out)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user