Hi Naveen,
Thanks for your reply.
I used TesseractWrapper.cs and error throwing from the line
wrapper.ExtractText(strInput);
string strfilepath = StrDrive[0] + "\\Test_Tesseract";
TesseractWrapper wrapper = new TesseractWrapper(strfilepath);
Int32 Counter = 0;
DirectoryInfo dirinfo = new DirectoryInfo(strfilepath +
"\\Scantiff\\" + Session["Location"] + "\\" +
DDLbatch.SelectedValue.ToString() + "\\");
strTxtFilePath = Server.MapPath("") + "\\Txtfiles";
FileInfo[] Files = dirinfo.GetFiles();
foreach (FileInfo fi in Files)
{
strInput = fi.DirectoryName.ToString() + "\\" +
fi.Name.ToString();
string strTxtFileName;
int intLastIndexOfSlash;
if (strInput.IndexOf(@"\") == 0)
strTxtFileName = strInput;
else
{
intLastIndexOfSlash = strInput.LastIndexOf(@"\");
strTxtFileName = strInput.Substring(intLastIndexOfSlash
+ 1);
}
string strOutPutTxtFileName =
System.IO.Path.GetFileNameWithoutExtension(strTxtFileName) + ".TXT";
wrapper.strTxtFileName = strOutPutTxtFileName;
wrapper.strTextFileSavePath = strTxtFilePath;
wrapper.ExtractText(strInput);
Counter += 1;
}
I have seperate folders in local drive for Image(bmp) files and Text files.
Depends on that I wrote code like this. Here text file is not generating. It
shows an error.
Could you plz help me how to fix this.
Raghu.
On Tue, Mar 24, 2009 at 10:20 AM, Naveen Kumar Narla
<[email protected]>wrote:
> hi Raghu,
> can u post the code u r using.
>
> naveen narla
>
>
> On Mon, Mar 23, 2009 at 4:43 PM, Rags2u <[email protected]> wrote:
>
>>
>> Hi All,
>>
>> I'm using Tesseract2.dll. When I want to convert .bmp file to .txt
>> file, it thrown an error message "Error:Only 1,2,4,5,6,8 bpp are
>> supported:32" .
>>
>>
>> Error discription in log file is as below:
>>
>>
>> Tesseract Open Source OCR Engine
>> check_legal_image_size:Error:Only 1,2,4,5,6,8 bpp are supported:32
>> Test blob assigned to row at (0,30) on pass 0
>> Test blob y=(0,30), row=(-9.250000,27.750000), overlap=27.750000
>> Test blob assigned to row at (-9.25,30) on pass 4
>> Test blob y=(0,30), row=(-11.718750,35.156250), overlap=30.000000
>> Test blob assigned to row at (-11.7188,35.1563) on pass 1
>> Flags = 24 = 030
>> W_SEGMENTED = FALSE
>> W_ITALIC = FALSE
>> W_BOL = TRUE
>> W_EOL = TRUE
>> W_NORMALIZED = FALSE
>> W_POLYGON = FALSE
>> W_LINEARC = FALSE
>> W_DONT_CHOP = FALSE
>> W_REP_CHAR = FALSE
>> W_FUZZY_SP = FALSE
>> W_FUZZY_NON = FALSE
>> Correct=
>> Rejected cblob count = 0
>>
>> Can anybody help me in this issue...
>>
>> Thanks in Advance.
>> Raghu
>>
>>
>>
>>
>
>
> --
> Regard's
> Naveen Narla
> 9930296309
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
-~----------~----~----~----~------~----~------~--~---