bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ocrad] Re: OCRAD project: library is needed


From: Antonio Diaz Diaz
Subject: [Bug-ocrad] Re: OCRAD project: library is needed
Date: Thu, 15 Jul 2010 18:04:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Igor Filippov wrote:
Thank you, I implemented it along those lines and it works perfectly.
The string length actually seems be 2 for a single character but that's
probably due to null termination or a carriage return?

Yes, I forgot OCRAD_result_line adds a newline at the end.


I propose 0.20 release as soon as you can make it!

I have just released 0.20-rc2 where I have implemented (among others) the function OCRAD_result_chars_total. The resulting osra code with the new function could be like this:

  if( ocrdes && OCRAD_get_errno( ocrdes ) == OCRAD_ok &&
      OCRAD_set_image( ocrdes, opix, 0 ) == 0 &&
      ( height >= 10 || OCRAD_scale( ocrdes, 2 ) == 0 ) &&
      OCRAD_recognize( ocrdes, 0 ) == 0 &&
      OCRAD_result_chars_total( ocrdes ) == 1 )
    c2 = OCRAD_result_first_character( ocrdes );

http://download.savannah.gnu.org/releases-noredirect/ocrad/ocrad-0.20-rc2.tar.gz
http://download.savannah.gnu.org/releases-noredirect/ocrad/ocrad-0.20-rc2.tar.lz

If 0.20-rc2 solves all problems, I can release 0.20 in 24h.


Regards,
Antonio.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]