Multipage barcode reading issue

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
jimg
Posts: 10
Joined: Sun Apr 26, 2009 6:39 pm

Multipage barcode reading issue

Post by jimg » Sat May 02, 2009 7:55 pm

Well, I've discovered a show stopper issue in my evaluation.

I am running against Kofax VRS ver 4.2 (latest) and Kofax TWAIN driver.

I am putting Code128 bar codes on to separator pages.

If I put a single bar code on page, GdPicture correctly gets the count, and can read the type and text of first code.

However, if I have multiple barcodes (even 2), the TwainBarCodeGetCount method correctly gives the count. But, when I iterate through them using a variable from 1 to count (say 1 to 2), each TwainBarCodeGetType gives me -1 and TwainBarCodeGetValue gives me an empty string.

I have verified with the Kofax VC Demo tool that both bar codes on my page can be read OK.


Here's my C# code: Again if 1 bard code, this works. If more than 1, it fails....


for (int i = 1; i <= _GdPictureImaging.TwainBarCodeGetCount(); i++)
{
_GdPictureImaging.TwainBarCodeGetType(i);
barCodeText = _GdPictureImaging.TwainBarCodeGetValue(i);

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Multipage barcode reading issue

Post by Loïc » Sat May 02, 2009 8:51 pm

Hi,

Could you tell me what is your scanner model ?

Also, could you attach a scan of the image including the unrecognised barcodes ?

Kind regards,

Loïc

jimg
Posts: 10
Joined: Sun Apr 26, 2009 6:39 pm

Re: Multipage barcode reading issue

Post by jimg » Sat May 02, 2009 11:02 pm

Sanner is Bowei Bell & Howell 8080D. It is plugged in to a Kofax Adrenealine 650i card. TWAIN source is Kofax VRS 4.2 Twain plugin.

Attached sheet has 3 code128 bar codes. First reads "KLINEDOC", next 2 are what the text above them says.

thanks
Attachments
sample_patch_sheet.tif
sample_patch_sheet.tif (6.36 KiB) Viewed 2829 times

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Multipage barcode reading issue

Post by Loïc » Sun May 03, 2009 10:50 am

Hi,

- Please download our last version of GdPicture.NET.twain.gdtwain.dll from this link: http://www.gdpicture.com/beta/GdPicture ... dtwain.dll
- Replace the GdPicture.NET.twain.gdtwain.dll file within your project by the downloaded one
- At the first line of your code add

Code: Select all

_GdPictureImaging.TwainLogStart("C:\\twainlog.txt");
- Before scanning add this line:

Code: Select all

_GdPictureImaging.TwainSetCapCurrentNumeric(TwainCapabilities.ICAP_BARCODEDETECTIONENABLED, _GdPictureImaging.TwainGetCapItemType(TwainCapabilities.ICAP_BARCODEDETECTIONENABLED), 1);
Now, tell me what is the result and give me le content of the log created in c:\twainlog.txt


Kind regards,

Loïc Carrère

jimg
Posts: 10
Joined: Sun Apr 26, 2009 6:39 pm

Re: Multipage barcode reading issue

Post by jimg » Thu May 07, 2009 10:27 pm

The link to the new DLL appears incorrect -- get not found on that.

But, in the meantime, I turned on logging. Below is all logging from time I open source until scanning is done. Just to reiterate, if there is 1 bar code I get count of 1 and the text. If there are multiple bar codes, I get correct count (say 4) but no text at all. Note, I was evaluating another product. That product gave me correct bar code count and only text for first code. So, I suspect this may be some issue with the Kofax VRS TWAIN driver.

Anyway, these are separator sheets I create from my application. So, for now, I can put all informatin I need into 1 line with tokens and then split the text apart. That's working and I'm good to go.

So, log follows in case it's useful. Also, remember the link is broken. Finally, from another post I made, you said that you would add encorser text in an upcoming release. Just to finalize my decision on using your tool, I want to give my client a rough idea of when this would be. Would you expect it to be weeks, months, or years?

Thanks


===================
LOG TEXT FOLLOWS
================


Code: Select all

#GdTwain Log Start. Version: 616

RC:   TWRC_ENDOFLIST
CC:   TWCC_SUCCESS
State: 3
-------------------
Start: OpenSource.
RC:   TWRC_ENDOFLIST
CC:   TWCC_SUCCESS
State: 3
-------------------
Start: SetAutoFeed.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_FAILURE CC: TWCC_BADVALUE
-------------------
CAP_AUTOFEED. Result for Set False.
RC:   TWRC_FAILURE
CC:   TWCC_BADVALUE
State: 4
-------------------
End: SetAutoFeed.
RC:   TWRC_FAILURE
CC:   TWCC_BADVALUE
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: OpenSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
End: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
End: LoadCapValuesN.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: Kofax Software VRS - TWAIN
Manufacturer: Kofax
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_ENABLEDS ->RC: TWRC_SUCCESS
-------------------
End: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_DSEVENT CC: TWCC_SUCCESS
-------------------
MessageHook: MSG_XFERREADY.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: DoOneTransfer.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: NativeXferHandler.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGENATIVEXFER - MSG: MSG_GET ->RC: TWRC_XFERDONE CC: TWCC_SUCCESS
-------------------
End: NativeXferHandler.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_EXTIMAGEINFO - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
Start: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_ENDXFER ->RC: TWRC_SUCCESS
-------------------
End: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: DoOneTransfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: ModalEventLoop.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
Start: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_DISABLEDS ->RC: TWRC_SUCCESS
-------------------
End: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: AcquireNative.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 4
-------------------
#GdTwain Log Stop.

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Multipage barcode reading issue

Post by Loïc » Thu May 07, 2009 10:40 pm

Hi,

Please could you try the latest today release ? http://www.gdpicture.com/softwares.php

We added better support for barcode reading. If the problem persists with the new release, report here the new log.


Kind regards,

Loïc

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Multipage barcode reading issue

Post by Loïc » Thu May 07, 2009 10:42 pm

PS: we are testing endorser feature, I think it should be available within 4 weeks max.

jimg
Posts: 10
Joined: Sun Apr 26, 2009 6:39 pm

Re: Multipage barcode reading issue

Post by jimg » Wed May 27, 2009 2:34 am

sorry for the delay, my testing was sidetracked with other work.

I downloaded the new May 17th version. After that, any attempt to access any twain function gives me
"Bad GdPicture.Net.TWAIN.DGTwain.DLL version"

So, I tried removing project reference from my project and re-adding reference. Same issue.

I thought maybe it was my test key. So, I went ahead and purchased the software and put in my new key. Same thing. Any attempt to access any TWAIN funtions gives the error above. Any suggestions?

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Multipage barcode reading issue

Post by Loïc » Wed May 27, 2009 8:35 pm

Hi,

Please download our latest edition from the website: http://www.gdpicture.com/download/downl ... urenet.php

Then, copy the GdPicture.Net.TWAIN.DGTwain.DLL from C:\Program Files\GdPicture.NET\Redist\ to your application directory.

kind regards,

Loïc

jimg
Posts: 10
Joined: Sun Apr 26, 2009 6:39 pm

Re: Multipage barcode reading issue

Post by jimg » Thu May 28, 2009 4:03 pm

OK, on the wrong version that was just stupid on my part, I had some prior DLLs in my app bin directory.

And, the new version works! Multiple bar codes are reported and each report the value.

So, this issue, in my opinion, is closed.

Thanks for your prompt support. I look forward to finishing up this project and turning it over to the client. You've got a nice, easy to use product, and your responsiveness to customer support needs is awesome!

Not related to this thread but, as soon as the endorser text is available I'll put that in as that's something my client is eager to have.

thanks again....

Jim Grau
Cumbre Data Systems

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Multipage barcode reading issue

Post by Loïc » Thu May 28, 2009 4:07 pm

Hi Jim,

Thank you very much for your feedback.

For the endorser feature we implemented it with success within our current development version. It should be available as public release within 1 week or 2.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest