Home › Forums › TWAIN Classic › Patch Sheets with Kodak i840
- This topic has 1 reply, 2 voices, and was last updated 16 years, 10 months ago by Thierry.
- AuthorPosts
I’m trying to find out where in the TWAIN world I can retreive image header info that comes off the scanner at the start of each image-
Specifically, How is the Patch info passed back via TWAIN? We need to acquire certain data elements from the Image Header for images coming off the scanner, and need to know how receive this info-
Does Kodak use the TW_CUSTOMDATA container?
The really important data element is the Patch Type, as this will
let us know when we have a new document.After that, the remaining Image Address elements (Image Address, Sequential Counter, Print String, etc) could also be good to have.
Any help would be very much appreciated!
Pritch-
If you loop on the customs caps in the extra image header (using the driver custom capabilities defined in the kdscust.h file) … you will have most of what you need …
#define TWEI_HDR_PAGESIDE 0x8001 // 0-front 1-rear
#define TWEI_HDR_DOCUMENTCOUNT 0x8002 // Count of pages (seeded by user)
#define TWEI_HDR_LENGTH 0x8003 // Number of bytes of image data
#define TWEI_HDR_LEVEL 0x8004 // Image Address Level
#define TWEI_HDR_MODE 0x8005 // Gemini Mode (1-18)
#define TWEI_HDR_LINELENGTH 0x8006 // Width
#define TWEI_HDR_PAGELENGTH 0x8007 // Height
#define TWEI_HDR_COMPRESSION 0x8008 // ICAP_COMPRESSION TWCP_* value
#define TWEI_HDR_DATE 0x8009 // YY/MM/DD
#define TWEI_HDR_TIME 0x800A // HH/MM/00
#define TWEI_HDR_ROLL 0x800B // Imagelink 990 Film Roll Number
#define TWEI_HDR_RESOLUTION 0x800C // Dots Per Inch (DPI)
#define TWEI_HDR_BITORDER 0x800D // Bit order in a byte
#define TWEI_HDR_SKEW 0x800E // (obsolete)
#define TWEI_HDR_MOMENTARYFLAG 0x800F // Gemini Momentary
#define TWEI_HDR_LATCHEDFLAG 0x8010 // Gemini Latched
#define TWEI_HDR_BARCODE 0x8011 // Gemini Barcode(s)
#define TWEI_HDR_DESKEW 0x8012 // Deskew status
#define TWEI_HDR_DESKEWANGLE 0x8013 // Deskew angle
#define TWEI_HDR_POLARITY 0x8014 // ICAP_PIXELFLAVOR TWPF_* value
#define TWEI_HDR_PRINTERSTRING 0x8015 // Viper/Prism printed string
#define TWEI_HDR_PRINTERINDEX 0x8016 // Kinda like the document count
#define TWEI_HDR_IMAGENUMBER 0x8017 // Count images this session
#define TWEI_HDR_PAGENUMBER 0x8018 // Count sheets of paper this session
#define TWEI_HDR_PAGEIMAGENUMBER 0x8019 // Image count on a page (1 – 4)
#define TWEI_HDR_BOOKNAME_A 0x801A // Fixed field Gemini and Prism A
#define TWEI_HDR_BOOKNAME_B 0x801B // Fixed field Prism B
#define TWEI_HDR_BOOKNAME_C 0x801C // Fixed field Prism C
#define TWEI_HDR_BOOKNAME_D 0x801D // Fixed field Prism D
#define TWEI_HDR_IMAGEADDRESSSTRING 0x801E // Prism image address string
#define TWEI_HDR_XOFFSET 0x801F // Left cropping offset
#define TWEI_HDR_YOFFSET 0x8020 // Right cropping offset
#define TWEI_HDR_FEATUREPATCH 0x8021 // Feature patch (only image with patch: i200/i600)
#define TWEI_HDR_IMAGEADDRESSDEFS 0x8022 // Image Address field definitions
#define TWEI_HDR_PCARD_HEADER 0x8023 // Personality-Card Header
#define TWEI_HDR_PCARD_FOOTER 0x8024 // Personality-Card Footer
#define TWEI_HDR_TOKEN_COUNT 0x8025 // Alien token flag
#define TWEI_HDR_REGENERATION 0x8026 // Alien retry count
#define TWEI_HDR_IMAGESTATUS 0x8027 // Alien image status
#define TWEI_HDR_DITHER 0x8028 // Bitonal dithering algorithm used
#define TWEI_HDR_PATCHDETECTED 0x8029 // Patch was found on the document
#define TWEI_HDR_FOLDEDCORNERPERCENTAGE 0x802A // Phoenix folded corner percentage
#define TWEI_HDR_DESKEWCONFIDENCEFACTOR 0x802B // Phoenix deskew confidence factor
#define TWEI_HDR_BITONALCONTRASTPERCENTAGE 0x802C // Phoenix bitonal contrast percentage
#define TWEI_HDR_BITONALCONTRAST 0x802D // Phoenix bitonal contrast
#define TWEI_HDR_BITONALTHRESHOLD 0x802E // Phoenix bitonal threshold
#define TWEI_HDR_SUMHISTOGRAM 0x802F // Phoenix sum historgram
#define TWEI_HDR_DIFFERENCEHISTOGRAM 0x8030 // Phoenix difference histogram
#define TWEI_HDR_GAMMATABLE 0x8031 // Phoenix gamma table
#define TWEI_HDR_MULTIFEED 0x8032 // Multifeed detected
#define TWEI_HDR_DESKEWANGLEACTUAL 0x8033 // Signed deskew angle to scanner precision
#define TWEI_HDR_RAWIMAGEHEADER 0x8034 // Raw image header from scanner
#define TWEI_HDR_LONGPAPERSEGMENT 0x8035 // Long paper segment number
#define TWEI_HDR_LONGPAPERLASTSEGMENT 0x8036 // Long pager last segment
#define TWEI_HDR_AUTOCOLORDETECTED 0x8037 // Auto color detected
#define TWEI_HDR_AUTOCOLORAMOUNT 0x8038 // Auto color amount
#define TWEI_HDR_AUTOCOLORTHRESHOLD 0x8039 // Auto color threshold- AuthorPosts