Skip to content

FastCV-based HAL for OpenCV acceleration 2ndpost-2#26619

Merged
asmorkalov merged 12 commits intoopencv:4.xfrom
CodeLinaro:adsha_2ndPost
Dec 19, 2024
Merged

FastCV-based HAL for OpenCV acceleration 2ndpost-2#26619
asmorkalov merged 12 commits intoopencv:4.xfrom
CodeLinaro:adsha_2ndPost

Conversation

@adsha-quic
Copy link
Copy Markdown
Contributor

Detailed description:

  • Add support for multiply 8u, 16s and 32f
  • Add support for cv_hal_pyrdown 8u
  • Add support for cv_hal_cvtBGRtoHSV and cv_hal_cvtBGRtoYUVApprox 8u

Requires binary from opencv/opencv_3rdparty#90
Depends on: opencv/opencv#26617

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • 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
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov asmorkalov added optimization platform: arm ARM boards related issues: RPi, NVIDIA TK/TX, etc category: 3rdparty labels Dec 13, 2024
@asmorkalov asmorkalov self-requested a review December 13, 2024 07:46
@asmorkalov asmorkalov self-assigned this Dec 13, 2024
@asmorkalov asmorkalov added this to the 4.11.0 milestone Dec 13, 2024
@asmorkalov
Copy link
Copy Markdown
Contributor

@adsha-quic I merged the first part. Please rebase and fix conflicts.

@adsha-quic
Copy link
Copy Markdown
Contributor Author

@adsha-quic I merged the first part. Please rebase and fix conflicts.

Hey
I have rebased the change, also enabled fastcv by default

@asmorkalov
Copy link
Copy Markdown
Contributor

I still see "This branch has conflicts that must be resolved" in PR status.

@adsha-quic
Copy link
Copy Markdown
Contributor Author

I still see "This branch has conflicts that must be resolved" in PR status.

Hey
rebased on 4.x

bool isFullRange,
bool isHSV)
{
if(width * height > 640 * 480)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure in sign? Does it work for small sizes only?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure in sign? Does it work for small sizes only?

Currently yes, we will add more resolutions later on.

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks a lot for the patch! Please revert the changes in root cmake file and I'll merge the patch.

@adsha-quic
Copy link
Copy Markdown
Contributor Author

👍 Thanks a lot for the patch! Please revert the changes in root cmake file and I'll merge the patch.

Hey Alex,
done.

@asmorkalov asmorkalov merged commit 59f762b into opencv:4.x Dec 19, 2024
asmorkalov pushed a commit that referenced this pull request Dec 19, 2024
FastCV-based HAL for OpenCV acceleration 2ndpost-3 #26621

### Detailed description:

- Add cv_hal_canny for Canny API

Requires binary from [opencv/opencv_3rdparty#90](opencv/opencv_3rdparty#90) 
Depends on: [#26617](#26617)
Depends on: [#26619](#26619) 

### 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
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
asmorkalov pushed a commit to opencv/opencv_contrib that referenced this pull request Dec 23, 2024
FastCV Extension code for OpenCV 2ndpost-2 #3845

### Description:
- Add support for cv::fastcv::calcHist

Depends on: [#3844](#3844)
Depends on: [opencv/opencv#26619](opencv/opencv#26619)
Requires binary from: [opencv/opencv_3rdparty#90](opencv/opencv_3rdparty#90)

### 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
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
@asmorkalov asmorkalov mentioned this pull request Jan 15, 2025
shyama7004 pushed a commit to shyama7004/opencv that referenced this pull request Jan 20, 2025
FastCV-based HAL for OpenCV acceleration 2ndpost-2 opencv#26619

### Detailed description:

- Add support for multiply 8u, 16s and 32f
- Add support for cv_hal_pyrdown 8u
- Add support for cv_hal_cvtBGRtoHSV and cv_hal_cvtBGRtoYUVApprox 8u

Requires binary from [opencv/opencv_3rdparty#90](opencv/opencv_3rdparty#90)
Depends on: [opencv#26617](opencv#26617)

### 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
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
shyama7004 pushed a commit to shyama7004/opencv that referenced this pull request Jan 20, 2025
FastCV-based HAL for OpenCV acceleration 2ndpost-3 opencv#26621

### Detailed description:

- Add cv_hal_canny for Canny API

Requires binary from [opencv/opencv_3rdparty#90](opencv/opencv_3rdparty#90) 
Depends on: [opencv#26617](opencv#26617)
Depends on: [opencv#26619](opencv#26619) 

### 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
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
NanQin555 pushed a commit to NanQin555/opencv that referenced this pull request Feb 24, 2025
FastCV-based HAL for OpenCV acceleration 2ndpost-2 opencv#26619

### Detailed description:

- Add support for multiply 8u, 16s and 32f
- Add support for cv_hal_pyrdown 8u
- Add support for cv_hal_cvtBGRtoHSV and cv_hal_cvtBGRtoYUVApprox 8u

Requires binary from [opencv/opencv_3rdparty#90](opencv/opencv_3rdparty#90)
Depends on: [opencv#26617](opencv#26617)

### 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
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
NanQin555 pushed a commit to NanQin555/opencv that referenced this pull request Feb 24, 2025
FastCV-based HAL for OpenCV acceleration 2ndpost-3 opencv#26621

### Detailed description:

- Add cv_hal_canny for Canny API

Requires binary from [opencv/opencv_3rdparty#90](opencv/opencv_3rdparty#90) 
Depends on: [opencv#26617](opencv#26617)
Depends on: [opencv#26619](opencv#26619) 

### 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
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: 3rdparty optimization platform: arm ARM boards related issues: RPi, NVIDIA TK/TX, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants