Re: [Quexf-discuss] Undefined offset in functions.ocr.php
Web based, Open Source alternative to Remark OMR or Teleform
Brought to you by:
azammitdcarf
|
From: Adam Z. <ada...@ac...> - 2013-09-04 05:31:15
|
Dear Tom,
Please add the following line:
if (!isset($s[$i])) continue;
To functions/functions.ocr.php around line 372, after you see:
for($i = 1; $i <= 12; $i++)
{
This will stop the notices from appearing.
It won't affect the quality of the character recognition though. The
character recognition isn't currently as accurate as it could be and
is being worked on - keep an eye out for future changes but at the
moment I wouldn't expect great results.
Regards,
Adam Zammit
On 3 September 2013 15:06, Thomas Pingel <tp...@ni...> wrote:
> I keep getting a series of Undefined offset errors whenever I train or
> import an ICR. Regardless of whether I train my own, or use the included
> KBs (for small letters, capital letters, and numbers) I wind up with
> (hundreds of?) errors like these:
>
> Notice: Undefined offset: 8 in
> C:\xampp\htdocs\quexf\functions\functions.ocr.php on line 372
>
> Notice: Undefined offset: 9 in
> C:\xampp\htdocs\quexf\functions\functions.ocr.php on line 372
>
> Notice: Undefined offset: 4 in
> C:\xampp\htdocs\quexf\functions\functions.ocr.php on line 372
>
> Notice: Undefined offset: 4 in
> C:\xampp\htdocs\quexf\functions\functions.ocr.php on line 372
>
> Notice: Undefined offset: 10 in
> C:\xampp\htdocs\quexf\functions\functions.ocr.php on line 372
>
> Notice: Undefined offset: 12 in
> C:\xampp\htdocs\quexf\functions\functions.ocr.php on line 372
>
> Notice: Undefined offset: 1 in
> C:\xampp\htdocs\quexf\functions\functions.ocr.php on line 372
>
>
> And then the OCR fails miserably on the next round of imported files.
>
> Any advice on where the error might be? This is a recently installed
> version of the queX Suite (4/12/2013).
>
> Best,
> Tom
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> Quexf-discuss mailing list
> Que...@li...
> https://lists.sourceforge.net/lists/listinfo/quexf-discuss
>
--
Adam Zammit
Research and Development Officer
Australian Consortium for Social and Political Research Inc.
+61 3 9013 9653
http://www.acspri.org.au/
|