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-mixed-4.ngraphs
>> processing 92 files
>> temp/0001/010001.lattice =NGRAPHS= 21.29    BOOK REVIEIP 
>> Traceback (most recent call last):
>>   File "/usr/local/bin/ocropus-ngraphs", 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 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/ocropus/-/LxDnk_8ufsUJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to