TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

BarCode Seperation

Forums › TWAIN Classic › BarCode Seperation

  • This topic has 21 replies, 11 voices, and was last updated 5 years, 9 months ago by abbyleem3@yahoo.com.
Viewing 15 posts - 1 through 15 (of 22 total)
1 2 →
  • Author
    Posts
  • July 17, 2007 at 1:37 pm #22176 Reply
    rodricksin
    Participant
    • Topics - 4
    • Replies - 5
    • Total Posts - 9

    Dear Sir,

    I found these constants in TwainConstants.class file

    quote:
    ICAP_BARCODEDETECTIONENABLED Turns bar code detection on and off.

    ICAP_BARCODEMAXRETRIES Restricts the number of times a search will be retried if none are found on each page.

    ICAP_BARCODEMAXSEARCHPRIORITIES Determines how many bar code detection priorities can be set.

    ICAP_BARCODESEARCHMODE Restricts bar code searching to certain orientations, or prioritizes one orientation over the other.

    ICAP_BARCODESEARCHPRIORITIES A prioritized list of bar code types dictating the order in which bar codes will be sought.

    ICAP_BARCODETIMEOUT Restricts the total time spent on searching for a bar code on each page.

    Can this varialbles are useful for barcode seperation….

    How can i write a code so that my scanner should do barcode detection and document seperation…. pls solve the problem

    -Rodricks

    July 17, 2007 at 1:45 pm #23944 Reply
    TheCrow99
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    what program language do you want to write your application in?

    July 17, 2007 at 1:51 pm #23945 Reply
    rodricksin
    Participant
    • Topics - 4
    • Replies - 5
    • Total Posts - 9

    Sir.. i am using java language… i am still getting problem in barcode seperation…. I dont know how to start and where to start

    -Rodricks

    July 17, 2007 at 2:14 pm #23946 Reply
    TheCrow99
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    I am sorry can’t help you with JAVA 😕 I am writing all my TWAIN applications in C.

    July 17, 2007 at 2:18 pm #23947 Reply
    TheCrow99
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    but as a start I would load the twain_32.dll and initialize an application. just follow the steps in the specification 1.9 at page 41, this should be enough for the beginning.

    July 18, 2007 at 4:29 am #23948 Reply
    rodricksin
    Participant
    • Topics - 4
    • Replies - 5
    • Total Posts - 9

    Sir,

    How do you do a barcode and blank page recognisation and separation for documents in c program….

    Thanks with regs,

    Rodricks

    July 18, 2007 at 6:21 am #23949 Reply
    TheCrow99
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    barcode: no idea, haven’t done anything with barcode yet, I guess you will have to experiment with the commands you listed in your first post and I guess the specification might be useful too.

    blank page seperation: you mean you have a couple of pages and you put a blank page in between and then you put everything in the automatic document feeder and your scan programm makes too different files out of them. well….as far as I know this functin doesn’t exist like this in C. But I will have to tackle this problem too (in probably two weeks time) and my idea was to make a rough check of every scanned page if there is very little text on it and if so then make a histogram of it and somehow decide from the histogram if it is a blank page or just a page with a few words on.

    p.s: I think you can stop writing SIR we are not that formal here in this forum 😉

    July 18, 2007 at 8:09 am #23950 Reply
    rodricksin
    Participant
    • Topics - 4
    • Replies - 5
    • Total Posts - 9

    Hi…

    Yeah as u said the blank page sepearation is done like that only….

    In a set of pages if i keep a blank page in between it splits to two documents.

    Barcode is also of same type…. first we scan the barcode page and get that value…..

    If the barcode pages comes in between these pages then it separates to two documents.

    By the way if u mention u r name i wont say sir 😀

    -Rodricks

    July 18, 2007 at 8:43 am #23951 Reply
    TheCrow99
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    well the barcode separation sounds not that difficult to me, because it is much easier to detect a page with something specific on it than a page which is empty. the main problem I see with blank page separation is that you will never get a clear white page with a scan, you will always have some coloured pix in it. So the question is where you draw the line between this is a white page this is not a white page.

    my name is Christoph 🙂

    July 18, 2007 at 10:30 am #23952 Reply
    rodricksin
    Participant
    • Topics - 4
    • Replies - 5
    • Total Posts - 9

    Hi Chris….

    What u said is true….. Barcode may be scanner oriented attribute and blank page can also be done by checking the resolution of the page….. if the resolution is less than 300 or something the separation should happen… something like that….

    -Rodricks

    July 18, 2007 at 10:35 am #23953 Reply
    TheCrow99
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    hey rodricks,

    what do you mean with resolution? the resolution of the scanner? I don’t understand how the colour of the page changes the resolution of the scanner?

    how much time do you have to solve this problem?

    July 18, 2007 at 11:05 am #23954 Reply
    rodricksin
    Participant
    • Topics - 4
    • Replies - 5
    • Total Posts - 9

    Hi Chris,

    I am not talking aout the scanner resolution…. i am taking about Image resolution what u scan…. for eg see act4j.com and run the demo applet u will get some idea….. I have to solve the problem within this week end…

    -Rodricks

    July 18, 2007 at 11:23 am #23955 Reply
    TheCrow99
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    thanks for the link

    October 9, 2013 at 7:47 am #23956 Reply
    bigheartse
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    I also use barcode scanner. But I never consider about the resolution problem, for the barcode reading tool can read it clearly and easily. I use this barcode scanner to read barcodes. It supports various barcode types, including rich linear barcode types and 2D barcode types, like QR Code, etc. Maybe a good barcode reader can reduce many problems.

    October 16, 2013 at 8:52 am #23957 Reply
    cindy313
    Participant
    • Topics - 0
    • Replies - 7
    • Total Posts - 7

    @bigheartse wrote:

    I also use barcode scanner. But I never consider about the resolution problem, for the barcode reading tool can read it clearly and easily. I use this barcode scanner to read barcodes. It supports various barcode types, including rich linear barcode types and 2D barcode types, like QR Code, etc. Maybe a good barcode reader can reduce many problems.

    yeah, barcode reader can be found anywhere for its convenience!

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 22 total)
1 2 →
Reply To: BarCode Seperation
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.