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

identifier "CV_BGR2GRAY" is undefined #52

Open
ZAC12549 opened this issue May 7, 2019 · 8 comments
Open

identifier "CV_BGR2GRAY" is undefined #52

ZAC12549 opened this issue May 7, 2019 · 8 comments

Comments

@ZAC12549
Copy link

ZAC12549 commented May 7, 2019

20190507221559

@katyperry13
Copy link

have you solved this issue?I got the same error.

@panda-lab
Copy link
Contributor

Did you configure OpenCV?

@katyperry13
Copy link

Did you configure OpenCV?

Yes, I use opencv 4.1.0

@katyperry13
Copy link

Did you configure OpenCV?

Do I need other steps to configure opencv except includes and libs?

@panda-lab
Copy link
Contributor

try 2.4.13 or 3.4.3

@katyperry13
Copy link

try 2.4.13 or 3.4.3

Have you tried it already? Does it work?

@panda-lab
Copy link
Contributor

we use opencv 2.4.13, it's fine.

@peacherwu
Copy link

peacherwu commented Oct 3, 2019

@katyperry13 ,新版的opencv,要用COLOR_替代CV_打头的常量。像这样:
cv::cvtColor(src, grayImage, cv::COLOR_BGR2GRAY);
cv::cvtColor(src, grayImage, cv::COLOR_RGBA2GRAY);

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

No branches or pull requests

4 participants