Thx for your reply Steve, I checked that also. But it is not working. I used
Tessnet2.dll

Regards,
Raghu


On Tue, Mar 24, 2009 at 8:55 PM, SteveP <[email protected]> wrote:

>
> I used to get that error about 32 bits per pixel too.  I remember at
> one point I installed libtiff and I also started using the tessnet2
> interface from Remi Thomas of this discussion group.  It works well
> with C# in a .Net environment and will handle the bmp files and doing
> what it takes to make tesseract happy.  I believe if you view his
> profile you will find mention of tessnet2.  (I am not sure whether it
> was libtiff or tessnet2 that made the difference, but in general
> tesseract is said not to directly support color files, such as 32 bits
> per pixel, but with libtiff and tessnet2 it seems to work for me.
> Hope it works for you too. :)
>
> On Mar 23, 11:57 pm, Raghu Babu <[email protected]> wrote:
> > Yes. I am using this in my c# web application.
> >
> > On Tue, Mar 24, 2009 at 12:21 PM, Naveen Kumar Narla
> > <[email protected]>wrote:
> >
> >
> >
> > > can we use an tesseract in web application
> >
> > > On Tue, Mar 24, 2009 at 12:09 PM, Raghu Babu <[email protected]>
> wrote:
> >
> > >> 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
> >
> > > --
> > > Regard's
> > > Naveen Narla
> > > 9930296309- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to