Open karpfediem opened 7 months ago
Hello,
I'm looking into this, and will try and get the test added after a few modifications.
It's quite early here, so please forgive any mistakes.
The first hurdle is that pixScaleSmooth
(c source, rustdoc) takes a * mut
pointer. And leptess uses a reference count for pix. We cannot get exclusive access to it from the reference count, so I'll probably skip leptess
for reading and scaling.
I'll continue this later.
I'm struggling to understand how one is supposed to use the capi together with the leptess api.
Yeah, I don't think it was possible when you raised this issue. I had to make 2 changes in leptonica-plumbing and am making the following change here:
Yeah I was suspecting as much. Thank you!
Hi, this is both question and request for more documentation: How do I actually use leptonica to preprocess the image?
In none of the examples, and in none of the projects dependency-linked by GitHub did I manage to find any actual usage of leptonica / capi functions. The only leptonica function i found in use is the pix_read wrapper function.
I'm struggling to understand how one is supposed to use the capi together with the leptess api. This is mainly due to the different Pix types
Here is a simple example to demonstrate what I am confused about:
Running this simple example results in mismatched types error:
Please excuse me for any oversights on my part if there are any. Regardless, I think it would be valuable to add examples on how to use the capi properly.