Re: [Jocr-devels] Bug - No contrast in image causes division by zero
Status: Alpha
Brought to you by:
joerg10
From: Joerg S. <Joe...@UR...> - 2009-03-30 21:09:43
|
If I interpret the output right, the static lib was build successfully (cd src;make libPgm2asc.a). The shared lib failed only. See http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 its complicated even to me and the reason to throw it away on 0.46. It works on my PC (x86 32bit gcc-4.0). You should try compiling everything using -fPIC and tell if it works, otherwise check all .o files if the code is Position-Independent. I dont know how. May be using file or nm like: file src/pgm2asc.o src/pgm2asc.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped ~~~~~~~~~~~ looks ok to me. What do you get? Regards, Jrg. On Mon, 30 Mar 2009, Igor Filippov [Contr] wrote: > Dear Joerg, > > I've tried building the libPgm2asc.a library in 0.47 (by the way - thank > you for adding it back), but no success so far. Attached is the output > of "make libs". Am I missing something obvious? > > Thank you, > Igor > > > > On Sun, 2009-03-29 at 17:48 +0200, Joerg Schulenburg wrote: >> thanks for the report. Will be fixed in 0.47 >> >> Joerg >> >> On Wed, 25 Feb 2009, Mark Hammond wrote: >> >>>> When an image with no contrast is processed, the thresholding function >>>> in otsu.c divides by zero: >>> >>> ... >>> >>>> Attached is a test image that causes the problem and a proposed patch >>>> to fix it. >>> >>> I can confirm this; the spambayes project is using gocr to try and detect >>> image spam, and the gocr process crashed attempting to scan the attachments >>> to this message - which is the first time I've seen happen :) >>> >>> Cheers, >>> >>> Mark >>> >>> >>> ------------------------------------------------------------------------------ >>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >>> -Strategies to boost innovation and cut costs with open source participation >>> -Receive a $600 discount off the registration fee with the source code: SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> Jocr-devels mailing list >>> Joc...@li... >>> https://lists.sourceforge.net/lists/listinfo/jocr-devels >>> >>> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Jocr-devels mailing list >> Joc...@li... >> https://lists.sourceforge.net/lists/listinfo/jocr-devels > |