mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #21504 from smirnov-alexey:as/oak_infer
[GAPI] Support basic inference in OAK backend * Combined commit which enables basic inference and other extra capabilities of OAK backend * Remove unnecessary target options from the cmakelist
This commit is contained in:
@@ -13,8 +13,6 @@ const std::string keys =
|
||||
"{ h help | | Print this help message }"
|
||||
"{ output | output.h265 | Path to the output .h265 video file }";
|
||||
|
||||
#ifdef HAVE_OAK
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
cv::CommandLineParser cmd(argc, argv, keys);
|
||||
if (cmd.has("help")) {
|
||||
@@ -60,11 +58,3 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
std::cout << "Pipeline finished: " << output_name << " file has been written." << std::endl;
|
||||
}
|
||||
#else // HAVE_OAK
|
||||
|
||||
int main() {
|
||||
GAPI_Assert(false && "Built without OAK support");
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif // HAVE_OAK
|
||||
|
||||
Reference in New Issue
Block a user