Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed converting image to grayscale when image is not RGB #70

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

RaphaelVRossi
Copy link
Member

Fix:

OpenCV(4.5.5) 
/Users/xperience/actions-runner/_work/opencv-python/opencv-python/opencv/modules/imgproc/src/color.simd_helpers.hpp:92: 
error: (-2:Unspecified error) in function 'cv::impl::(anonymous namespace)::CvtHelper<cv::impl::(anonymous namespace)::Set<3, 4, -1>, cv::impl::(anonymous namespace)::Set<1, -1, -1>, cv::impl::(anonymous namespace)::Set<0, 2, 5>, cv::impl::(anonymous namespace)::NONE>::CvtHelper(cv::InputArray, cv::OutputArray, int) [VScn = cv::impl::(anonymous namespace)::Set<3, 4, -1>, VDcn = cv::impl::(anonymous namespace)::Set<1, -1, -1>, VDepth = cv::impl::(anonymous namespace)::Set<0, 2, 5>, sizePolicy = cv::impl::(anonymous namespace)::NONE]'
> Invalid number of channels in input image:
>     'VScn::contains(scn)'
> where
>     'scn' is 1

@RaphaelVRossi RaphaelVRossi force-pushed the fix-convert-to-grayscale branch 3 times, most recently from 1a61f7c to 4eb45e4 Compare January 2, 2023 18:50
@coveralls
Copy link

coveralls commented Jan 2, 2023

Pull Request Test Coverage Report for Build 3840784828

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 84.852%

Totals Coverage Status
Change from base Build 3800749551: 0.07%
Covered Lines: 414
Relevant Lines: 519

💛 - Coveralls

@marcelometal
Copy link
Member

Hi @RaphaelVRossi , please add some tests to this fix =)

@codeclimate
Copy link

codeclimate bot commented Jan 4, 2023

Code Climate has analyzed commit 4d8aae4 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Contributor

@devppjr devppjr left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@devppjr devppjr merged commit 6618fd6 into master Jan 10, 2023
@devppjr devppjr deleted the fix-convert-to-grayscale branch January 10, 2023 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants