Hi,
Thanks for the reply, i just want to elaborate what i am actually doing
will give you a clean picture for a proper guidance!!!
I am using tesseract dll in windows and i am using the below code for
engine and page segment mode....
private static TesseractEngine _engine;
private static TesseractEngine Engine
{
get
{
if (_engine == null || _engine.IsDisposed)
{
try
{
_engine = new
TesseractEngine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
+ "\\tessdata", "eng", EngineMode.LstmOnly);
}
catch (Exception ex)
{
ex.Message.ToString();
}
}
return _engine;
}
}
then later i am initializing this engine for reading the text from image:
private string LiftText(Bitmap img)
{
string resultText = string.Empty;
try
{
TesseractEngine engine = new TesseractEngine("./tessdata",
"eng", EngineMode.LstmOnly);
Tesseract.Page mypage = engine.Process(img,
PageSegMode.SparseText);
resultText = mypage.GetText();
mypage.Dispose();
engine.Dispose();
}
catch (Exception ex)
{
Exceptioninfo("LiftText()", ex.StackTrace);
}
return resultText;
}
On Wednesday, April 3, 2019 at 7:58:14 PM UTC+5:30, Shobhit Kapil wrote:
>
> Hi Team,
>
> i am using Tesseract version 4 and using page segment mode is LSTM, so
> with that i am not able to lift text properly from the attached file,
> please let me know what extra things need to do for this sort of files.
> i have posted multiple concerns regarding Tesseract issues but none of
> them answered hoping to have some answers this time.
>
> Team please help!!!
>
> Thanks,
> Shobhit
>
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/29ac0d7e-5333-4f7d-83de-1adf917b4761%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.