gapi_tests_oak.cpp 709 B

1234567891011121314151617181920212223242526
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. //
  5. // Copyright (C) 2021 Intel Corporation
  6. #include "../test_precomp.hpp"
  7. #ifdef HAVE_OAK
  8. #include <opencv2/gapi/oak/oak.hpp>
  9. namespace opencv_test
  10. {
  11. // FIXME: consider a better solution
  12. TEST(OAK, Available)
  13. {
  14. cv::GFrame in;
  15. auto out = cv::gapi::oak::encode(in, {});
  16. auto args = cv::compile_args(cv::gapi::oak::ColorCameraParams{}, cv::gapi::oak::kernels());
  17. auto pipeline = cv::GComputation(cv::GIn(in), cv::GOut(out)).compileStreaming(std::move(args));
  18. }
  19. } // opencv_test
  20. #endif // HAVE_OAK