twistedfall

Results 193 comments of twistedfall

Well, the error message might already imply that the file exists, but doesn't contain the components for the legacy engine data so it might be some mismatch between installed Tesseract...

Can you maybe also try writing the same code in C++ to see if it works or produces the same error?

It might be, will you be able share the minimum example that crashes?

For this particular case I think you can use [`SIFT::create_def_1`](https://docs.rs/opencv/latest/opencv/features2d/struct.SIFT.html#method.create_def_1) (automatic naming sorry ^^”). The `*_def` functions are the variants of regular functions but without the arguments that have a...

This happens because of automatic renaming and the way how those functions are defined between those OpenCV versions. I'll try to fix this particular issue in the next create release.

After some tries it looks like it won't really work unfortunately. The most robust solution in your case is to have matching OpenCV versions between the environments.

You should use the [imdecode](https://docs.rs/opencv/latest/opencv/imgcodecs/fn.imdecode.html) function, but first convert the slice to `Vector` by calling `Vector::::from_slice(jpeg_buff)`. If you want to avoid copying the buffer and don't mind a little bit...

When you say it doesn't work what kind of error are you getting?

I'm going to close this for now with the hope that you made it work, but feel free to reopen and supply additional details if it's not the case.