opencv_contrib
opencv_contrib copied to clipboard
Enable AscendC kernel operator
AscendC is an extended syntax for the C/C++ language that can be used to write operators that run on Ascend NPU.
This commit introduce an operator(threshold) written in AscendC. Others can refer to this to implement other operators.
AscendC can implement efficient fusion operators according to needs, in this case, threshold execution speed increased by nearly 4 times.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [X] I agree to contribute to the project under Apache 2 License.
- [X] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [X] The PR is proposed to the proper branch
- N/A There is a reference to the original bug report and related work
- [X] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name.
- [X] The feature is well documented and sample code can be built with the project CMake
This PR needs cann 7.0.0.alpha003 or above.
https://github.com/opencv-infrastructure/opencv-gha-dockerfile/pull/28
https://github.com/opencv/ci-gha-workflow/pull/132
@vpisarev Please help me add category: cann tag to run test cases, Thanks.