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

Make text module optional #76

Open
blucia0a opened this issue May 21, 2018 · 3 comments
Open

Make text module optional #76

blucia0a opened this issue May 21, 2018 · 3 comments

Comments

@blucia0a
Copy link

The text module, contained within opencv_contrib should be an optional part of the build for cv-rs because the current homebrew opencv does not include opencv_contrib/text by default.

There is a workaround for the problem (with brew --version: Homebrew/homebrew-core (git revision 530af; last commit 2018-05-20))

The current homebrew install of OpenCV does not include the text module by default. To make cv-rs build, I had to brew edit opencv and on line 62 of the formula set -DBUILD_opencv_text=ON. Then, I had to brew install --build-from-source opencv. With the change, homebrew builds the non-default text module, which in turn enables cv-rs to build successfully.

Without this workaround, the cv-rs build fails part way through with an error that it cannot find opencv2/text/ocr.hpp (which is part of opencv_contrib/text).

@Pzixel
Copy link
Collaborator

Pzixel commented May 24, 2018

Hi @blucia0a

Do you have some vision of how it could be implemented? I'm affraid it leads to a big fragmentation, "mac edition"/"windows edition"/"fedora edition"/...

If you have some clear way to achieve that feel free to write it or even create a PR.

@kiruto
Copy link

kiruto commented Jun 6, 2018

@blucia0a Thanks! You saved me.

I really suggest that add this solution into README.md.

@vadixidav
Copy link

@Pzixel This issue seems to have already been dealt with and can be closed.

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