-
Notifications
You must be signed in to change notification settings - Fork 741
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
x64 version of 3.0.0 does work #232
Comments
I am still getting this exception, how to resolve it. Can you please update nuget package? |
The x64 bit issue should now be resolved in vs 3.0.1 (sample are working as expected). Note that #231 is still an issue, though I cannot reliably reproduce it. |
I still have the problem with the last nuget package. |
V3.0.1 is still having same issue as v3.0.0
|
You might need to reinstall the library as sometimes nuget doesn't seem to replace the unmanaged dlls ( |
Thanks its working now.looks like it unresolved a new issue. I m getting
|
I just ran a test and am getting the correct coordinates for the words using the console sample: using (var engine = new TesseractEngine(@"./tessdata", "eng", EngineMode.Default))
{
using (var img = Pix.LoadFromFile(testImagePath))
{
using (var page = engine.Process(img))
{
var text = page.GetText();
Console.WriteLine("Mean confidence: {0}", page.GetMeanConfidence());
Console.WriteLine("Text (GetText): \r\n{0}", text);
Console.WriteLine("Text (iterator):");
using (var iter = page.GetIterator())
{
iter.Begin();
do
{
do
{
do
{
do
{
if (iter.IsAtBeginningOf(PageIteratorLevel.Block))
{
Console.WriteLine("<BLOCK>");
}
Console.Write(iter.GetText(PageIteratorLevel.Word));
Rect bounds;
if(iter.TryGetBoundingBox(PageIteratorLevel.Word, out bounds)) {
Console.Write(bounds);
}
Console.Write(" ");
if (iter.IsAtFinalOf(PageIteratorLevel.TextLine, PageIteratorLevel.Word))
{
Console.WriteLine();
}
} while (iter.Next(PageIteratorLevel.TextLine, PageIteratorLevel.Word));
if (iter.IsAtFinalOf(PageIteratorLevel.Para, PageIteratorLevel.TextLine))
{
Console.WriteLine();
}
} while (iter.Next(PageIteratorLevel.Para, PageIteratorLevel.TextLine));
} while (iter.Next(PageIteratorLevel.Block, PageIteratorLevel.Para));
} while (iter.Next(PageIteratorLevel.Block));
}
}
}
} |
Note that the bounds are measured in pixels relative to the top left corner of the source image. If your using a region of interest I think the coords will be relative to the region not the source image, though I haven't checked this... |
Let me recheck the code , I did not change the code since 3.0.0 I hope the
|
The x64 version of 3.0.0 doesn't work as it's currently throwing the following error:
This is because it appears that the x86 version of liblept171.dll has been packaged as the x64 version.
The text was updated successfully, but these errors were encountered: