Stinger, Thanks for the information. I am also trying to run- test and understand the concept of training. With regards, -sriranga(79yrs)
On Wed, Aug 22, 2012 at 7:40 PM, stinger <[email protected]> wrote: > English. I'm just trying to use the samples in the downloaded packages. > I'm not using my own images (yet) - I'd like to get the sample code running > correctly first before I try run the code over my own images. > > Han. > > > On Wednesday, August 22, 2012 8:50:09 AM UTC-5, 79yrsold wrote: > >> Stinger, >> May I know which language you are trying to train? >> With regards, >> sriranga(79yrs) >> >> On Wed, Aug 22, 2012 at 5:12 PM, stinger <[email protected]> wrote: >> >>> Running 64 bit Ubuntu 12.04. Python 2.7.2+. The images themselves are >>> from the hg repository - i.e. I followed the instructions, downloaded the >>> necessary packages, ran the build and then ran the run-test script without >>> any changes and I get the error. Again, thanks for your help. >>> >>> >>> On Tuesday, August 21, 2012 5:40:51 PM UTC-5, Tom wrote: >>>> >>>> What platform are you running this on? Are you running 32bit or 64bit? >>>> >>>> The maximum of the segmentation must be 0xffffff (white). If you get >>>> 0xff, there is something seriously wrong somewhere in image I/O. >>>> >>>> Tom >>>> >>>> On Tuesday, August 21, 2012 11:17:57 PM UTC+2, stinger wrote: >>>>> >>>>> I've run through the installation process, and am trying to run the >>>>> run-test script. I keep getting the error "expected a segmentation with >>>>> white background" when running ocropus-ngraphs (see output below) - it's >>>>> failing because the max of 255 is being checked against an expected value >>>>> of 0xffffff. However, if I modify the code, and change 0xffffff to 0xff >>>>> the run-test script works. Not sure if this is a bug? >>>>> >>>>> + true >>>>> + true language model application >>>>> + true >>>>> + ocropus-ngraphs 'temp/????/??????.lattice' >>>>> loading /usr/local/share/ocropus/en-**mi**xed-4.ngraphs >>>>> processing 92 files >>>>> temp/0001/010001.lattice =NGRAPHS= 21.29 BOOK REVIEIP >>>>> Traceback (most recent call last): >>>>> File "/usr/local/bin/ocropus-**ngraph**s", line 294, in <module> >>>>> rseg = ocrolib.read_line_**segmentation**(rname) >>>>> File "/usr/local/lib/python2.7/**dist**-packages/ocrolib/** >>>>> toplevel.py"**, line 194, in argument_checks >>>>> result = f(*args,**kw) >>>>> File "/usr/local/lib/python2.7/**dist**-packages/ocrolib/common.**py", >>>>> line 207, in read_line_segmentation >>>>> result = make_seg_black(image) >>>>> File "/usr/local/lib/python2.7/**dist**-packages/ocrolib/** >>>>> toplevel.py"**, line 190, in argument_checks >>>>> raise e >>>>> ocrolib.toplevel.CheckError: >>>>> CheckError for argument 'image' in call to function: '<function >>>>> make_seg_black at 0x3810aa0>' >>>>> <ndarray-13b67fd0 (60, 583) int32 [1,255]> of type <type >>>>> 'numpy.ndarray'>: expected a segmentation with white background >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Friday, August 17, 2012 9:31:35 PM UTC-5, Tom wrote: >>>>>> >>>>>> OCRopus 0.6pre1 has been released. It features much simpler >>>>>> installation, fewer dependencies, and improved recognition rates. This >>>>>> is >>>>>> the first all-Python release. Please follow the instructions on >>>>>> http://www.ocropus.org/ (installation is really just a couple of >>>>>> simple steps). >>>>>> >>>>>> There are three scripts you should run after installation: >>>>>> >>>>>> (1) "run-test" runs a simple recognition test >>>>>> (2) "run-box-training" (in fraktur-boxes) trains a Fraktur recognizer >>>>>> from Tesseract-style box files >>>>>> (3) "run-uw3-500" (in uw3-500) shows how training works on >>>>>> line-by-line transcribed data >>>>>> >>>>>> Tom >>>>>> >>>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "ocropus" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to ocropus+u...@** >>> googlegroups.com. >>> To view this discussion on the web visit https://groups.google.com/d/** >>> msg/ocropus/-/LxDnk_8ufsUJ<https://groups.google.com/d/msg/ocropus/-/LxDnk_8ufsUJ> >>> . >>> >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "ocropus" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msg/ocropus/-/6dVzn7S5iCEJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "ocropus" 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 https://groups.google.com/groups/opt_out.
