Merge pull request #15888 from OrestChura:facebeautification_gapi_sample
Introducing the sample of Face Beautification algorithm implemented via Graph-API * Introducing the sample of Face Beautification algorithm implemented via Graph-API - 'gapi/samples/face_beautification.cpp' added - FIXME added in 'gcpukernel.hpp' * INF_ENGINE fix - preprocessing clauses added not to run the sample without Inference Engine * INF_ENGINE fix 2 - warnings removed * Fixes - checking IE version cut as there is no dependency - some alignments fixed - the comment about preprocessing commands fixed * ie::backend() issue fix (according to dmatveev) - as the sample needs the cv::gapi::ie::backend() to be defined regardless of having IE or not, there is its throw-error definition in `giebackend.cpp` now (by dmatveev) - for the same reason, #includes in `giebackend.hpp` are fixed - HAVE_INF_ENGINE check is removed from the sample
This commit is contained in:
committed by
Alexander Alekhin
parent
fc41c18c6f
commit
af230ec133
@@ -145,6 +145,12 @@ template<typename U> struct get_in<cv::GArray<U> >
|
||||
{
|
||||
static const std::vector<U>& get(GCPUContext &ctx, int idx) { return ctx.inArg<VectorRef>(idx).rref<U>(); }
|
||||
};
|
||||
|
||||
//FIXME(dm): GArray<Mat>/GArray<GMat> conversion should be done more gracefully in the system
|
||||
template<> struct get_in<cv::GArray<cv::GMat> >: public get_in<cv::GArray<cv::Mat> >
|
||||
{
|
||||
};
|
||||
|
||||
template<class T> struct get_in
|
||||
{
|
||||
static T get(GCPUContext &ctx, int idx) { return ctx.inArg<T>(idx); }
|
||||
@@ -240,7 +246,6 @@ struct OCVCallHelper<Impl, std::tuple<Ins...>, std::tuple<Outs...> >
|
||||
//not using a std::forward on outs is deliberate in order to
|
||||
//cause compilation error, by trying to bind rvalue references to lvalue references
|
||||
Impl::run(std::forward<Inputs>(ins)..., outs...);
|
||||
|
||||
postprocess(outs...);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user