Replies: 5 comments
-
|
I used some logic you had in a previous version, and now it takes a couple of seconds as opposed to minutes. But I also saw your note about PeekPixels() not being reliable, but the OCR process seems to be working well. In which situations PeekPixels() isn't reliable? |
Beta Was this translation helpful? Give feedback.
-
|
@malv007 thanks a lot for the issue and investigating. I need to have a look, and understand why my change caused slowness. Need to add benchmarks too Ill try to have a look over the weekend |
Beta Was this translation helpful? Give feedback.
-
|
@malv007 can you share the file where this change happened? |
Beta Was this translation helpful? Give feedback.
-
|
Definitely! It is your code after all :) Look for the method: |
Beta Was this translation helpful? Give feedback.
-
|
@malv007 thanks again for the help here. Issue is fixed and available in v1.0.1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for this library! It is great, but I find the performance to be slow, in my tests it is taking around 5 minutes to do just one page. Is it expected to be this slow? I remember trying this project a year ago, and I didn't think it was this slow.
This is the code I am using, I have tried changing a few of the settings but same performance result:
It looks like most of the time is spent here:
And if I drill down further, it seems like the bottleneck might be SkiaSharp. Does that align with what you are seeing?
This is one of the documents I am trying to OCR:

And the original document:
sample_doc.pdf
Is there anything I can do to speed this up?
Thanks so much!
Beta Was this translation helpful? Give feedback.
All reactions