nebgnahz / cv-rs

Rust wrapper for OpenCV (manual at this point)
https://nebgnahz.github.io/cv-rs/cv/
MIT License
203 stars 41 forks source link

Improve text feature #122

Closed kkebo closed 5 years ago

kkebo commented 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.

  1. Added text to tesseract feature's requirements because text feature is required by tesseract feature
    • If you run cargo build --features "tesseract", then text feature is automatically enabled.
  2. Move text.h and text.cc to text directory and modify build.rs, so that they will be compiled only when text feature is enabled
    • Without this modification of build.rs, cargo build always requires opencv2/text/ocr.hpp.

Also, I tested the following environment.

Pzixel commented 5 years ago

Cool! Merge after all checks pass.