ROCm / MIVisionX

MIVisionX toolkit is a set of comprehensive computer vision and machine intelligence libraries, utilities, and applications bundled into a single toolkit. AMD MIVisionX also delivers a highly optimized open-source implementation of the Khronos OpenVX™ and OpenVX™ Extensions.
https://rocm.docs.amd.com/projects/MIVisionX/en/latest/
MIT License
185 stars 72 forks source link

rocAL - OpenCV 4.X Support #769

Closed kiritigowda closed 2 years ago

kiritigowda commented 2 years ago

rocAL does not support the latest OpenCV Release - V4.5.5

[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2447)[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2448)[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2449)[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2450)[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2451)[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2452)[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2453)[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2454)[](http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/PR-768/2/#step-421-log-2455)[ 86%] Building CXX object amd_openvx_extensions/amd_opencv/CMakeFiles/vx_opencv.dir/source/OpenCV_erode.cpp.o
../../../../rocAL/rocAL/source/open_cv_decoder.cpp: In member function 'virtual Decoder::Status CVDecoder::decode(unsigned char*, size_t, unsigned char*, size_t, size_t, size_t, size_t, size_t&, size_t&, Decoder::ColorFormat, DecoderConfig, bool)':
../../../../rocAL/rocAL/source/open_cv_decoder.cpp:64:82: error: 'CV_LOAD_IMAGE_COLOR' was not declared in this scope
   64 |         m_mat_orig = cv::imdecode(cv::Mat(1, input_size, CV_8UC1, input_buffer), CV_LOAD_IMAGE_COLOR);
      |                                                                                  ^~~~~~~~~~~~~~~~~~~
../../../../rocAL/rocAL/source/open_cv_decoder.cpp:66:82: error: 'CV_LOAD_IMAGE_GRAYSCALE' was not declared in this scope
   66 |         m_mat_orig = cv::imdecode(cv::Mat(1, input_size, CV_8UC1, input_buffer), CV_LOAD_IMAGE_GRAYSCALE);
      |                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [rocAL/rocAL/CMakeFiles/rali.dir/build.make:1194: rocAL/rocAL/CMakeFiles/rali.dir/source/open_cv_decoder.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
kiritigowda commented 2 years ago

PR #768 Fixes this issue

kiritigowda commented 2 years ago

770 fix Master