Home › Forums › TWAIN Classic › BarCode Seperation
- This topic has 21 replies, 11 voices, and was last updated 8 years, 11 months ago by abbyleem3@yahoo.com.
- AuthorPosts
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
what program language do you want to write your application in?
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
I am sorry can’t help you with JAVA π I am writing all my TWAIN applications in C.
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.
Sir,
How do you do a barcode and blank page recognisation and separation for documents in c program….
Thanks with regs,
Rodricks
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 π
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
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 π
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
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?
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
thanks for the link
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.
@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.
ο½ο½ ο½ο½οΌγο½ο½ο½ο½ο½ο½ο½ γο½ο½ ο½ο½ο½ ο½γο½ο½ο½γο½ο½ γο½ο½ο½ο½ο½γο½ο½ο½ο½ο½ο½ ο½ο½ γο½ο½ο½γο½ο½ο½γο½ο½ο½ο½ο½ ο½ο½ο½ ο½ο½ο½ οΌ
- AuthorPosts