Closed kkebo closed 5 years ago
@Pzixel's #103 was great work for Homebrew users like me, but it seems to be insufficient to build cv-rs.
I added the following modifications.
text
tesseract
cargo build --features "tesseract"
text.h
text.cc
build.rs
cargo build
opencv2/text/ocr.hpp
Also, I tested the following environment.
brew install opencv
CXXFLAGS=-I/usr/local/include/opencv4 cargo build
Cool! Merge after all checks pass.
@Pzixel's #103 was great work for Homebrew users like me, but it seems to be insufficient to build cv-rs.
I added the following modifications.
text
totesseract
feature's requirements becausetext
feature is required bytesseract
featurecargo build --features "tesseract"
, thentext
feature is automatically enabled.text.h
andtext.cc
totext
directory and modifybuild.rs
, so that they will be compiled only whentext
feature is enabledbuild.rs
,cargo build
always requiresopencv2/text/ocr.hpp
.Also, I tested the following environment.
brew install opencv
)CXXFLAGS=-I/usr/local/include/opencv4 cargo build