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

please help me to get your lib working on my machine #14

Open
thomas725 opened this issue Nov 20, 2022 · 1 comment
Open

please help me to get your lib working on my machine #14

thomas725 opened this issue Nov 20, 2022 · 1 comment

Comments

@thomas725
Copy link

Hi there!

I've successfully tried the sample from your README.md, but so far I've failed to get the sample loading images from files to work.

I've managed to setup a new rust project with the code from your examples/subimage-finder.rs and make it compile, but with both the default backend ("RuntimeDetectedSimd") and the "scalar" one it never finishes running or produces any output (passed ferris.png and ferris_eyes.png from your README.md in as parameters)

I've tried to also setup the opencv backend, but with that feature enabled, the rust compiler fails:

thread 'main' panicked at 'a `libclang` shared library is not loaded on this thread', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.4.0/src/lib.rs:1731:1
@thomas725
Copy link
Author

thomas725 commented Nov 20, 2022

Ah, I'm not 100% sure how I solved it, but now it works with opencv:

cargo run -- -backend opencv media/ferris.png media/ferris_eyes.png
   Compiling rust-ocr-playground v0.1.0 (/home/user/Development/rust-ocr-playground)
    Finished dev [unoptimized + debuginfo] target(s) in 4.17s
     Running `target/debug/rust-ocr-playground -backend opencv media/ferris.png media/ferris_eyes.png`
results: [(476, 377, 0.0)]
results_as_grayscale: [(476, 377, 0.0)]

But the other backends just completely lock one CPU core on 100% and never output anything:

cargo run -- media/ferris.png media/ferris_eyes.png
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/rust-ocr-playground media/ferris.png media/ferris_eyes.png`

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

1 participant