Cognex Mobile Barcode SDK SDK for supporting communication with Cognex Barcode Reader devices

BarcodeScanner.h
Go to the documentation of this file.
1
14#ifndef _BARCODESCANNER_H_
15#define _BARCODESCANNER_H_
16
17#ifdef __cplusplus
18 extern "C" {
19#endif
20
21#ifndef uint32_t
22 typedef unsigned int uint32_t;
23 typedef unsigned char uint8_t;
24#endif
25
33#define MWB_GRAYSCALE_LENX_MIN 25
34#define MWB_GRAYSCALE_LENX_MAX 5000
35#define MWB_GRAYSCALE_LENY_MIN 25
36#define MWB_GRAYSCALE_LENY_MAX 5000
43#define MWB_RT_OK 0
44#define MWB_RT_FAIL -1
45#define MWB_RT_NOT_SUPPORTED -2
46#define MWB_RT_BAD_PARAM -3
47#define MWB_RT_INVALID_SCANNING_RECTANGLE -4
54#define MWB_RTREG_OK 0
55#define MWB_RTREG_INVALID_KEY -1
56#define MWB_RTREG_INVALID_CHECKSUM -2
57#define MWB_RTREG_INVALID_APPLICATION -3
58#define MWB_RTREG_INVALID_SDK_VERSION -4
59#define MWB_RTREG_INVALID_KEY_VERSION -5
60#define MWB_RTREG_INVALID_PLATFORM -6
61#define MWB_RTREG_KEY_EXPIRED -7
62#define MWB_RTREG_AIMER_REQUIRED -8
63#define MWB_RTREG_AIMER_NOT_DETECTED -9
64
65//Warnings
66#define MWB_RTREG_CUSTOM_SIZE_EXCEEDED -100
67
68
69
79#define MWB_CFG_GLOBAL_HORIZONTAL_SHARPENING 0x01
80#define MWB_CFG_GLOBAL_VERTICAL_SHARPENING 0x02
81#define MWB_CFG_GLOBAL_SHARPENING 0x03
82
83
86#define MWB_CFG_GLOBAL_ROTATE90 0x04
87#define MWB_CFG_GLOBAL_ROTATE180 0x08
88
91#define MWB_CFG_GLOBAL_CALCULATE_1D_LOCATION 0x10
92
95#define MWB_CFG_GLOBAL_VERIFY_1D_LOCATION 0x20
96
100#define MWB_CFG_GLOBAL_USE_CENTRIC_SCANNING 0x40
101
104#define MWB_CFG_GLOBAL_DISABLE_PREPROCESSING 0x80
105
108#define MWB_CFG_GLOBAL_ENABLE_MULTI 0x100
109
112#define MWB_CFG_GLOBAL_SCANLINESx2 0x200
113#define MWB_CFG_GLOBAL_SCANLINESx4 0x400
114#define MWB_CFG_GLOBAL_SCANLINESx8 0x800
115
116
119#define MWB_CFG_CODE39_REQ_CHKSUM 0x2
120
121
124#define MWB_CFG_CODE39_DONT_REQUIRE_STOP 0x4
125
126
129#define MWB_CFG_CODE39_EXTENDED_MODE 0x8
130
131
134#define MWB_CFG_CODE39_CODE32_ENABLED 0x10
135
136
139#define MWB_CFG_CODE39_CODE32_PREFIX 0x20
140
141
142
145#define MWB_CFG_CODE93_EXTENDED_MODE 0x8
146
147
150#define MWB_CFG_EANUPC_DISABLE_ADDON 0x1
151
154#define MWB_CFG_EANUPC_DONT_EXPAND_UPCE 0x2
155
156
160#define MWB_CFG_CODE25_REQ_CHKSUM 0x01
161#define MWB_CFG_CODE25_REQ_CHKSUM_STANDARD 0x02
162#define MWB_CFG_CODE25_REQ_CHKSUM_INTERLEAVED 0x04
163#define MWB_CFG_CODE25_REQ_CHKSUM_IATA 0x08
164#define MWB_CFG_CODE25_REQ_CHKSUM_MATRIX 0x10
165#define MWB_CFG_CODE25_REQ_CHKSUM_COOP 0x20
166#define MWB_CFG_CODE25_REQ_CHKSUM_INVERTED 0x40
167
168
169
173#define MWB_CFG_CODE11_REQ_SINGLE_CHKSUM 0x1
174#define MWB_CFG_CODE11_REQ_DOUBLE_CHKSUM 0x2
175
176
180#define MWB_CFG_MSI_REQ_10_CHKSUM 0x01
181#define MWB_CFG_MSI_REQ_1010_CHKSUM 0x02
182#define MWB_CFG_MSI_REQ_11_IBM_CHKSUM 0x04
183#define MWB_CFG_MSI_REQ_11_NCR_CHKSUM 0x08
184#define MWB_CFG_MSI_REQ_1110_IBM_CHKSUM 0x10
185#define MWB_CFG_MSI_REQ_1110_NCR_CHKSUM 0x20
186
187
188
191#define MWB_CFG_CODABAR_INCLUDE_STARTSTOP 0x1
192
193
196#define MWB_CFG_DM_DPM_MODE 0x2
197
198
201#define MWB_CFG_TELEPEN_FORCE_NUMERIC 0x1
202
203
206#define MWB_PAR_ID_ECI_MODE 0x08
207#define MWB_PAR_ID_RESULT_PREFIX 0x10
208#define MWB_PAR_ID_VERIFY_LOCATION 0x20
209
210// working for Datamatrix currently
211#define MWB_PAR_ID_SCAN_COLOR 0x40
212
213//set safe zone scale factor for 1D barcode type in range 0 - 100%
214#define MWB_PAR_ID_SAFE_ZONE_SCALE 0x80
215
216
217
221#define MWB_PAR_VALUE_ECI_DISABLED 0x00 //default
222#define MWB_PAR_VALUE_ECI_ENABLED 0x01
223
224#define MWB_PAR_VALUE_RESULT_PREFIX_NEVER 0x00 // default
225#define MWB_PAR_VALUE_RESULT_PREFIX_ALWAYS 0x01
226#define MWB_PAR_VALUE_RESULT_PREFIX_DEFAULT 0x02
227
228#define MWB_PAR_VALUE_VERIFY_LOCATION_OFF 0x00
229#define MWB_PAR_VALUE_VERIFY_LOCATION_ON 0x01
230#define MWB_PAR_VALUE_VERIFY_LOCATION_STRICT 0x02
231
232#define MWB_PAR_VALUE_COLOR_NORMAL 0x01
233#define MWB_PAR_VALUE_COLOR_INVERTED 0x02
234#define MWB_PAR_VALUE_COLOR_BOTH 0x04 //default
235
236
237
238
244#define MWB_CODE_MASK_NONE 0x00000000u
245#define MWB_CODE_MASK_QR 0x00000001u
246#define MWB_CODE_MASK_DM 0x00000002u
247#define MWB_CODE_MASK_RSS 0x00000004u
248#define MWB_CODE_MASK_39 0x00000008u
249#define MWB_CODE_MASK_EANUPC 0x00000010u
250#define MWB_CODE_MASK_128 0x00000020u
251#define MWB_CODE_MASK_PDF 0x00000040u
252#define MWB_CODE_MASK_AZTEC 0x00000080u
253#define MWB_CODE_MASK_25 0x00000100u
254#define MWB_CODE_MASK_93 0x00000200u
255#define MWB_CODE_MASK_CODABAR 0x00000400u
256#define MWB_CODE_MASK_DOTCODE 0x00000800u
257#define MWB_CODE_MASK_11 0x00001000u
258#define MWB_CODE_MASK_MSI 0x00002000u
259#define MWB_CODE_MASK_MAXICODE 0x00004000u
260#define MWB_CODE_MASK_POSTAL 0x00008000u
261#define MWB_CODE_MASK_TELEPEN 0x00010000u
262#define MWB_CODE_MASK_ALL 0x00ffffffu
268#define MWB_SUBC_MASK_RSS_14 0x00000001u
269#define MWB_SUBC_MASK_RSS_14_STACK 0x00000002u
270#define MWB_SUBC_MASK_RSS_LIM 0x00000004u
271#define MWB_SUBC_MASK_RSS_EXP 0x00000008u
277#define MWB_SUBC_MASK_QR_STANDARD 0x00000001u
278#define MWB_SUBC_MASK_QR_MICRO 0x00000002u
284#define MWB_SUBC_MASK_PDF_STANDARD 0x00000001u
285#define MWB_SUBC_MASK_PDF_MICRO 0x00000002u
292#define MWB_SUBC_MASK_C25_INTERLEAVED 0x00000001u
293#define MWB_SUBC_MASK_C25_STANDARD 0x00000002u
294#define MWB_SUBC_MASK_C25_ITF14 0x00000004u
295#define MWB_SUBC_MASK_C25_IATA 0x00000008u
296#define MWB_SUBC_MASK_C25_MATRIX 0x00000010u
297#define MWB_SUBC_MASK_C25_COOP 0x00000020u
298#define MWB_SUBC_MASK_C25_INVERTED 0x00000040u
305#define MWB_SUBC_MASK_POSTAL_POSTNET 0x00000001u
306#define MWB_SUBC_MASK_POSTAL_PLANET 0x00000002u
307#define MWB_SUBC_MASK_POSTAL_IM 0x00000004u
308#define MWB_SUBC_MASK_POSTAL_ROYAL 0x00000008u
309#define MWB_SUBC_MASK_POSTAL_AUSTRALIAN 0x00000010u
310
316#define MWB_SUBC_MASK_EANUPC_EAN_13 0x00000001u
317#define MWB_SUBC_MASK_EANUPC_EAN_8 0x00000002u
318#define MWB_SUBC_MASK_EANUPC_UPC_A 0x00000004u
319#define MWB_SUBC_MASK_EANUPC_UPC_E 0x00000008u
320#define MWB_SUBC_MASK_EANUPC_UPC_E1 0x00000010u
327#define MWB_SCANDIRECTION_HORIZONTAL 0x00000001u
328#define MWB_SCANDIRECTION_VERTICAL 0x00000002u
329#define MWB_SCANDIRECTION_OMNI 0x00000004u
330#define MWB_SCANDIRECTION_AUTODETECT 0x00000008u
331#define MWB_SCANDIRECTION_CUSTOM 0x00000010u
332
339 enum res_types {
340 FOUND_NONE = 0,
341 FOUND_DM,
342 FOUND_39,
343 FOUND_RSS_14,
344 FOUND_RSS_14_STACK,
345 FOUND_RSS_LIM,
346 FOUND_RSS_EXP,
347 FOUND_EAN_13,
348 FOUND_EAN_8,
349 FOUND_UPC_A,
350 FOUND_UPC_E,
351 FOUND_128,
352 FOUND_PDF,
353 FOUND_QR,
354 FOUND_AZTEC,
355 FOUND_25_INTERLEAVED,
356 FOUND_25_STANDARD,
357 FOUND_93,
358 FOUND_CODABAR,
359 FOUND_DOTCODE,
360 FOUND_128_GS1,
361 FOUND_ITF14,
362 FOUND_11,
363 FOUND_MSI,
364 FOUND_25_IATA,
365 FOUND_25_MATRIX,
366 FOUND_25_COOP,
367 FOUND_25_INVERTED,
368 FOUND_QR_MICRO,
369 FOUND_MAXICODE,
370 FOUND_POSTNET,
371 FOUND_PLANET,
372 FOUND_IMB,
373 FOUND_ROYALMAIL,
374 FOUND_MICRO_PDF,
375 FOUND_32,
376 FOUND_AUSTRALIAN,
377 FOUND_TELEPEN,
378
379};
392#define MWB_RESULT_TYPE_RAW 0x00000001u
393#define MWB_RESULT_TYPE_MW 0x00000002u
394//#define MWB_RESULT_TYPE_JSON 0x00000003u //not yet implemented
395
396
403#define MWB_RESULT_FT_BYTES 0x00000001u
404#define MWB_RESULT_FT_TEXT 0x00000002u
405#define MWB_RESULT_FT_TYPE 0x00000003u
406#define MWB_RESULT_FT_SUBTYPE 0x00000004u
407#define MWB_RESULT_FT_SUCCESS 0x00000005u
408#define MWB_RESULT_FT_ISGS1 0x00000006u
409#define MWB_RESULT_FT_LOCATION 0x00000007u
410#define MWB_RESULT_FT_IMAGE_WIDTH 0x00000008u
411#define MWB_RESULT_FT_IMAGE_HEIGHT 0x00000009u
412#define MWB_RESULT_FT_PARSER_BYTES 0x0000000Au
413
414#define MWB_RESULT_FT_MODULES_COUNT_X 0x0000000Bu
415#define MWB_RESULT_FT_MODULES_COUNT_Y 0x0000000Cu
416#define MWB_RESULT_FT_MODULE_SIZE_X 0x0000000Du
417#define MWB_RESULT_FT_MODULE_SIZE_Y 0x0000000Eu
418#define MWB_RESULT_FT_SKEW 0x0000000Fu
419#define MWB_RESULT_FT_KANJI 0x00000010u
420
421#define MWB_RESULT_FT_BARCODE_WIDTH 0x00000011u
422#define MWB_RESULT_FT_BARCODE_HEIGHT 0x00000012u
423
424#define MWB_RESULT_FT_TEXT_ENCODING 0x00000013u
425
426#define MWB_RESULT_FT_PDF_ROWS 0x00000020u
427#define MWB_RESULT_FT_PDF_COLUMNS 0x00000021u
428#define MWB_RESULT_FT_PDF_TRUNCATED 0x00000022u
429#define MWB_RESULT_FT_PDF_ECLEVEL 0x00000023u
430#define MWB_RESULT_FT_PDF_CODEWORDS 0x00000024u
431
437#define MWB_RESULT_FNAME_BYTES "Bytes"
438#define MWB_RESULT_FNAME_TEXT "Text"
439#define MWB_RESULT_FNAME_TYPE "Type"
440#define MWB_RESULT_FNAME_SUBTYPE "Subtype"
441#define MWB_RESULT_FNAME_SUCCESS "Success"
442#define MWB_RESULT_FNAME_ISGS1 "GS1 compliance"
443#define MWB_RESULT_FNAME_KANJI "Kanji encoding"
444#define MWB_RESULT_FNAME_TEXT_ENCODING "Text encoding"
445#define MWB_RESULT_FNAME_LOCATION "Location"
446#define MWB_RESULT_FNAME_IMAGE_WIDTH "Image Width"
447#define MWB_RESULT_FNAME_IMAGE_HEIGHT "Image Height"
448#define MWB_RESULT_FNAME_PARSER_BYTES "Parser Input"
449
450#define MWB_RESULT_FNAME_MODULES_COUNT_X "Modules Count X"
451#define MWB_RESULT_FNAME_MODULES_COUNT_Y "Modules Count Y"
452#define MWB_RESULT_FNAME_MODULE_SIZE_X "Module Size X"
453#define MWB_RESULT_FNAME_MODULE_SIZE_Y "Module Size Y"
454#define MWB_RESULT_FNAME_SKEW "Skew"
455
456#define MWB_RESULT_FNAME_BARCODE_WIDTH "Barcode Width"
457#define MWB_RESULT_FNAME_BARCODE_HEIGHT "Barcode Height"
458
459#define MWB_RESULT_FNAME_PDF_ROWS "PDF417 Rows Count"
460#define MWB_RESULT_FNAME_PDF_COLUMNS "PDF417 Columns Count"
461#define MWB_RESULT_FNAME_PDF_TRUNCATED "PDF417 is Truncated"
462#define MWB_RESULT_FNAME_PDF_ECLEVEL "PDF417 EC Level"
463#define MWB_RESULT_FNAME_PDF_CODEWORDS "PDF417 Codewords"
464
465
485 extern unsigned int MWB_getLibVersion(void);
486
487/*
488 * Returns textual version of Barcode Scanner Library.
489 *
490 * @retval char array with version string
491 */
492 extern char* MWB_getLibVersionText(void);
493
501 extern unsigned int MWB_getSupportedCodes(void);
502
521 extern int MWB_setScanningRect(const uint32_t codeMask, float left, float top, float width, float height);
522
523
541 extern int MWB_setTargetRect(float left, float top, float width, float height);
542
543
544
545
546
561 extern int MWB_getScanningRect(const uint32_t codeMask, float *left, float *top, float *width, float *height);
562
563
576 extern int MWB_getTargetRect(float *left, float *top, float *width, float *height);
577
578
579
580
590 extern int MWB_registerSDK(const char * key);
591
602 extern int MWB_registerSDKCustom(const char * key, const char* customData);
603
604
605
606
615 extern char* MWB_getDeviceID(void);
616
625 extern char* MWB_getLicenseString(void);
626
627
628
644 extern int MWB_setActiveCodes(const uint32_t codeMask);
645
646
647
653 extern int MWB_getActiveCodes(void);
654
655
667 extern int MWB_enableCode(const uint32_t codeMask);
668
669
680 extern int MWB_disableCode(const uint32_t codeMask);
681
682
683
684
696 extern int MWB_setActiveSubcodes(const uint32_t codeMask, const uint32_t subMask);
697
707 extern int MWB_getActiveSubcodes(const uint32_t codeMask);
708
709
721 extern int MWB_enableSubcode(const uint32_t codeMask, const uint32_t subMask);
722
733 extern int MWB_disableSubcode(const uint32_t codeMask, const uint32_t subMask);
734
735
736
750 extern int MWB_setCodePriority(const uint32_t codeMask, const uint8_t priority);
751
761 extern int MWB_cleanupLib(void);
762
770 int MWB_getLastType(void);
771
772
773
781 int MWB_isLastGS1(void);
782
783
801 extern int MWB_scanGrayscaleImage(uint8_t* pp_image, int lenX, int lenY, uint8_t **pp_data);
802
825 extern int MWB_scanGrayscaleRegions(uint8_t* pp_image, int lenX, int lenY, float* regionsData, int numberOfRegions, int maxThreads, uint8_t **pp_data);
826
827
839 extern int MWB_createRegionsFromTiles(int tilesX, int tilesY, int overlap, float *regionsData);
840
856 extern int MWB_setFlags(const uint32_t codeMask, const uint32_t flags);
857
872 extern int MWB_enableFlag(const uint32_t codeMask, const uint32_t flag);
873
874
889 extern int MWB_disableFlag(const uint32_t codeMask, const uint32_t flag);
890
898 extern int MWB_getFlags(const uint32_t codeMask);
899
914 extern int MWB_setLevel(const int level);
915
935 extern int MWB_setDirection(const uint32_t direction);
936
937
938
952 extern int MWB_setMinLength(const uint32_t codeMask, const uint32_t minLength);
953
965 extern int MWB_setParam(const uint32_t codeMask, const uint32_t paramId, const uint32_t paramValue);
966
967
978 extern int MWB_getParam(const uint32_t codeMask, const uint32_t paramId);
979
986 extern int MWB_getDirection(void);
987
997 extern int MWB_validateVIN(char *vin, int length);
998
1008 extern int MWB_getBarcodeLocation(float *points);
1009
1010
1011
1025 extern int MWB_setResultType(const uint32_t resultType);
1026
1027
1031 extern int MWB_getResultType(void);
1032
1033
1034
1035/*
1036 * Set time in seconds in which decoder will ignore same barcode detected
1037 */
1038 extern int MWB_setDuplicatesTimeout(uint32_t timeout);
1039
1040/*
1041 * Set code which would be check for a duplicate
1042 */
1043 extern void MWB_setDuplicate(uint8_t* barcode, int length);
1044
1048#ifdef __cplusplus
1049}
1050#endif
1051
1052#endif /* _BARCODESCANNER_H_ */
MWB_getTargetRect
int MWB_getTargetRect(float *left, float *top, float *width, float *height)
Get rectangular area for targeted barcode scanning Output values are in percentages of screeen width ...
MWB_setActiveSubcodes
int MWB_setActiveSubcodes(const uint32_t codeMask, const uint32_t subMask)
Set active subcodes for given code group flag.
MWB_getParam
int MWB_getParam(const uint32_t codeMask, const uint32_t paramId)
Get specified decoder param.
MWB_getLibVersion
unsigned int MWB_getLibVersion(void)
Returns version code of Barcode Scanner Library.
MWB_registerSDKCustom
int MWB_registerSDKCustom(const char *key, const char *customData)
Same as RegisterSDK with addition of custom string to be sent along with tracking info.
MWB_getLicenseString
char * MWB_getLicenseString(void)
Get license string for retrieving remaining devices It should be called after registering call,...
MWB_getActiveCodes
int MWB_getActiveCodes(void)
Get active decoder types.
MWB_setActiveCodes
int MWB_setActiveCodes(const uint32_t codeMask)
Sets active or inactive status of decoder types and updates decoder execution priority list.
MWB_setDirection
int MWB_setDirection(const uint32_t direction)
Configure scanning direction for 1D barcodes.
MWB_getDirection
int MWB_getDirection(void)
Get active scanning direction.
MWB_getBarcodeLocation
int MWB_getBarcodeLocation(float *points)
Barcode location points .
uint32_t
unsigned int uint32_t
Definition: BarcodeScanner.h:22
MWB_disableCode
int MWB_disableCode(const uint32_t codeMask)
Disable decoder type Remove barcode type from set of enabled types.
MWB_setTargetRect
int MWB_setTargetRect(float left, float top, float width, float height)
Sets rectangular area for targeted barcode scanning.
MWB_setMinLength
int MWB_setMinLength(const uint32_t codeMask, const uint32_t minLength)
Set minimum result length for single barcode type.
MWB_createRegionsFromTiles
int MWB_createRegionsFromTiles(int tilesX, int tilesY, int overlap, float *regionsData)
Create multiple regions based on number of tiles by X and Y axes.
MWB_getLastType
int MWB_getLastType(void)
Retrieves actual detected code type after successful MWB_scanGrayscaleImage call.
MWB_setFlags
int MWB_setFlags(const uint32_t codeMask, const uint32_t flags)
Configure options for single barcode type.
MWB_getLibVersionText
char * MWB_getLibVersionText(void)
MWB_scanGrayscaleImage
int MWB_scanGrayscaleImage(uint8_t *pp_image, int lenX, int lenY, uint8_t **pp_data)
Main scan function.
MWB_setCodePriority
int MWB_setCodePriority(const uint32_t codeMask, const uint8_t priority)
Sets code priority level for selected decoder group or groups.
MWB_getSupportedCodes
unsigned int MWB_getSupportedCodes(void)
Returns supported decoders in this library release.
res_types
res_types
Definition: BarcodeScanner.h:339
FOUND_CODABAR
@ FOUND_CODABAR
Definition: BarcodeScanner.h:358
FOUND_UPC_E
@ FOUND_UPC_E
Definition: BarcodeScanner.h:350
FOUND_RSS_EXP
@ FOUND_RSS_EXP
Definition: BarcodeScanner.h:346
FOUND_RSS_14_STACK
@ FOUND_RSS_14_STACK
Definition: BarcodeScanner.h:344
FOUND_ROYALMAIL
@ FOUND_ROYALMAIL
Definition: BarcodeScanner.h:373
FOUND_25_MATRIX
@ FOUND_25_MATRIX
Definition: BarcodeScanner.h:365
FOUND_39
@ FOUND_39
Definition: BarcodeScanner.h:342
FOUND_11
@ FOUND_11
Definition: BarcodeScanner.h:362
FOUND_32
@ FOUND_32
Definition: BarcodeScanner.h:375
FOUND_QR
@ FOUND_QR
Definition: BarcodeScanner.h:353
FOUND_25_COOP
@ FOUND_25_COOP
Definition: BarcodeScanner.h:366
FOUND_25_STANDARD
@ FOUND_25_STANDARD
Definition: BarcodeScanner.h:356
FOUND_ITF14
@ FOUND_ITF14
Definition: BarcodeScanner.h:361
FOUND_TELEPEN
@ FOUND_TELEPEN
Definition: BarcodeScanner.h:377
FOUND_EAN_13
@ FOUND_EAN_13
Definition: BarcodeScanner.h:347
FOUND_IMB
@ FOUND_IMB
Definition: BarcodeScanner.h:372
FOUND_NONE
@ FOUND_NONE
Definition: BarcodeScanner.h:340
FOUND_93
@ FOUND_93
Definition: BarcodeScanner.h:357
FOUND_EAN_8
@ FOUND_EAN_8
Definition: BarcodeScanner.h:348
FOUND_DOTCODE
@ FOUND_DOTCODE
Definition: BarcodeScanner.h:359
FOUND_QR_MICRO
@ FOUND_QR_MICRO
Definition: BarcodeScanner.h:368
FOUND_RSS_LIM
@ FOUND_RSS_LIM
Definition: BarcodeScanner.h:345
FOUND_PDF
@ FOUND_PDF
Definition: BarcodeScanner.h:352
FOUND_MAXICODE
@ FOUND_MAXICODE
Definition: BarcodeScanner.h:369
FOUND_MSI
@ FOUND_MSI
Definition: BarcodeScanner.h:363
FOUND_25_IATA
@ FOUND_25_IATA
Definition: BarcodeScanner.h:364
FOUND_UPC_A
@ FOUND_UPC_A
Definition: BarcodeScanner.h:349
FOUND_MICRO_PDF
@ FOUND_MICRO_PDF
Definition: BarcodeScanner.h:374
FOUND_25_INVERTED
@ FOUND_25_INVERTED
Definition: BarcodeScanner.h:367
FOUND_128
@ FOUND_128
Definition: BarcodeScanner.h:351
FOUND_AZTEC
@ FOUND_AZTEC
Definition: BarcodeScanner.h:354
FOUND_POSTNET
@ FOUND_POSTNET
Definition: BarcodeScanner.h:370
FOUND_DM
@ FOUND_DM
Definition: BarcodeScanner.h:341
FOUND_RSS_14
@ FOUND_RSS_14
Definition: BarcodeScanner.h:343
FOUND_PLANET
@ FOUND_PLANET
Definition: BarcodeScanner.h:371
FOUND_AUSTRALIAN
@ FOUND_AUSTRALIAN
Definition: BarcodeScanner.h:376
FOUND_128_GS1
@ FOUND_128_GS1
Definition: BarcodeScanner.h:360
FOUND_25_INTERLEAVED
@ FOUND_25_INTERLEAVED
Definition: BarcodeScanner.h:355
MWB_getFlags
int MWB_getFlags(const uint32_t codeMask)
Get active flags for single barcode type.
MWB_enableSubcode
int MWB_enableSubcode(const uint32_t codeMask, const uint32_t subMask)
enable subcode for given code group flag.
MWB_setResultType
int MWB_setResultType(const uint32_t resultType)
Set result type from MWB_scanGrayscaleImage.
MWB_enableCode
int MWB_enableCode(const uint32_t codeMask)
Enable decoder type Upon library load, all decoder types are inactive by default.
MWB_getDeviceID
char * MWB_getDeviceID(void)
Get device ID It should be called after registering call, and works only on iOS and Android.
MWB_validateVIN
int MWB_validateVIN(char *vin, int length)
VIN validator.
MWB_cleanupLib
int MWB_cleanupLib(void)
Free memory resources allocated by library.
MWB_isLastGS1
int MWB_isLastGS1(void)
Retrieves is result of GS1 type.
MWB_setLevel
int MWB_setLevel(const int level)
Configure global library effort level.
MWB_setScanningRect
int MWB_setScanningRect(const uint32_t codeMask, float left, float top, float width, float height)
Sets rectangular area for barcode scanning with selected single decoder type.
uint8_t
unsigned char uint8_t
Definition: BarcodeScanner.h:23
MWB_registerSDK
int MWB_registerSDK(const char *key)
Registers licensing information for all SDK functionality.
MWB_setDuplicate
void MWB_setDuplicate(uint8_t *barcode, int length)
MWB_getResultType
int MWB_getResultType(void)
Get currently active result type.
MWB_enableFlag
int MWB_enableFlag(const uint32_t codeMask, const uint32_t flag)
Enable option for single barcode type (or global one).
MWB_setDuplicatesTimeout
int MWB_setDuplicatesTimeout(uint32_t timeout)
MWB_getScanningRect
int MWB_getScanningRect(const uint32_t codeMask, float *left, float *top, float *width, float *height)
Get rectangular area for barcode scanning with selected single or multiple decoder type(s).
MWB_scanGrayscaleRegions
int MWB_scanGrayscaleRegions(uint8_t *pp_image, int lenX, int lenY, float *regionsData, int numberOfRegions, int maxThreads, uint8_t **pp_data)
Multi-regions scan function.
MWB_setParam
int MWB_setParam(const uint32_t codeMask, const uint32_t paramId, const uint32_t paramValue)
Set custom decoder param.
MWB_getActiveSubcodes
int MWB_getActiveSubcodes(const uint32_t codeMask)
Get active subcodes for given code group flag.
MWB_disableFlag
int MWB_disableFlag(const uint32_t codeMask, const uint32_t flag)
Disable option for single barcode type (or global one).
MWB_disableSubcode
int MWB_disableSubcode(const uint32_t codeMask, const uint32_t subMask)
Disable subcode for given code group flag.