|
iDRS™ SDK 16
|
Interface for IBarcodeEngine wrapper. More...
Go to the source code of this file.
Typedefs | |
| typedef IDRS_PVOID | IDRS_BARCODE_SESSION_HANDLE |
| Barcode handle. | |
Functions | |
| IBarcodeEngine | IBarcodeEngine_Create (PtrGetBarcodeEngineUniqueIdentifierFn ptrGetBarcodeEngineUniqueIdentifierFn, PtrGetSupportedCapabilitiesFn ptrGetSupportedCapabilitiesFn, PtrGetSupportedBarcodeTypesFn ptrGetSupportedBarcodeTypesFn, PtrCreateSessionFn ptrCreateSessionFn, PtrCloseSessionFn ptrCloseSessionFn, PtrSessionEnableBarcodeTypeFn ptrSessionEnableBarcodeTypeFn, PtrSessionSetBarcodePropertiesFn ptrSessionSetBarcodePropertiesFn, PtrSessionSetParametersFn ptrSessionSetParametersFn, PtrProcessImageFn ptrProcessImageFn, idrs_exception *pargException) |
| Creates a new IBarcodeEngine object. | |
| void | IBarcodeEngine_Destroy (IBarcodeEngine argIBarcodeEngine, idrs_exception *pargException) |
| Destroys a IBarcodeEngine handle. | |
| enum BarcodeEngineIdentifier | IBarcodeEngine_GetBarcodeEngineUniqueIdentifier (const IBarcodeEngine argIBarcodeEngine, idrs_exception *pargException) |
| GetBarcodeEngineUniqueIdentifier retrieves barcode unique identifier. | |
| BarcodeCapabilityArray | IBarcodeEngine_GetSupportedCapabilities (const IBarcodeEngine argIBarcodeEngine, idrs_exception *pargException) |
| GetSupportedCapabilities retrieves the list of capabilities supported by the barcode engine. | |
| BarcodeTypeArray | IBarcodeEngine_GetSupportedBarcodeTypes (const IBarcodeEngine argIBarcodeEngine, idrs_exception *pargException) |
| GetSupportedBarcodeTypes retrieves the engine's supported barcode types. | |
| IDRS_BARCODE_SESSION_HANDLE | IBarcodeEngine_CreateSession (IBarcodeEngine argIBarcodeEngine, idrs_exception *pargException) |
| CreateSession creates a new session for recognition purposes. | |
| void | IBarcodeEngine_CloseSession (IBarcodeEngine argIBarcodeEngine, IDRS_BARCODE_SESSION_HANDLE hBarcodeSession, idrs_exception *pargException) |
| CloseSession closes an already opened session. | |
| IDRS_ERROR | IBarcodeEngine_SessionEnableBarcodeType (IBarcodeEngine argIBarcodeEngine, IDRS_BARCODE_SESSION_HANDLE hBarcodeHandle, enum BarcodeType const evBarcodeType, IDRS_BOOL const bEnable, idrs_exception *pargException) |
| SessionEnableBarcodeType enables a barcode type for the specified session. | |
| IDRS_ERROR | IBarcodeEngine_SessionSetBarcodeProperties (IBarcodeEngine argIBarcodeEngine, IDRS_BARCODE_SESSION_HANDLE hBarcodeHandle, enum BarcodeType const evBarcodeType, const BarcodeAdvancedParameters *stAdvancedParameters, idrs_exception *pargException) |
| SessionSetBarcodeProperties sets barcode type properties for the specified session. | |
| IDRS_ERROR | IBarcodeEngine_SessionSetParameters (IBarcodeEngine argIBarcodeEngine, IDRS_BARCODE_SESSION_HANDLE hBarcodeHandle, enum BarcodeSessionParameter const evParameter, IDRS_UINT const uiValue, idrs_exception *pargException) |
| SessionSetParameters sets a session parameter. | |
| IDRS_ERROR | IBarcodeEngine_ProcessImage (IBarcodeEngine argIBarcodeEngine, IDRS_BARCODE_SESSION_HANDLE hBarcodeEngineHandle, const CImage argInputImage, const CBarcodeContext argBarcodeContext, CBarcodeArray argBarcodeResults, idrs_exception *pargException) |
| ProcessImage runs barcode recognition on the supplied image. | |
Interface for IBarcodeEngine wrapper.
| void IBarcodeEngine_CloseSession | ( | IBarcodeEngine | argIBarcodeEngine, |
| IDRS_BARCODE_SESSION_HANDLE | hBarcodeSession, | ||
| idrs_exception * | pargException | ||
| ) |
CloseSession closes an already opened session.
| argIBarcodeEngine | IBarcodeEngine handle |
| hBarcodeSession | Barcode session |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IBarcodeEngine IBarcodeEngine_Create | ( | PtrGetBarcodeEngineUniqueIdentifierFn | ptrGetBarcodeEngineUniqueIdentifierFn, |
| PtrGetSupportedCapabilitiesFn | ptrGetSupportedCapabilitiesFn, | ||
| PtrGetSupportedBarcodeTypesFn | ptrGetSupportedBarcodeTypesFn, | ||
| PtrCreateSessionFn | ptrCreateSessionFn, | ||
| PtrCloseSessionFn | ptrCloseSessionFn, | ||
| PtrSessionEnableBarcodeTypeFn | ptrSessionEnableBarcodeTypeFn, | ||
| PtrSessionSetBarcodePropertiesFn | ptrSessionSetBarcodePropertiesFn, | ||
| PtrSessionSetParametersFn | ptrSessionSetParametersFn, | ||
| PtrProcessImageFn | ptrProcessImageFn, | ||
| idrs_exception * | pargException | ||
| ) |
Creates a new IBarcodeEngine object.
| ptrGetBarcodeEngineUniqueIdentifierFn | GetBarcodeEngineUniqueIdentifier function pointer |
| ptrGetSupportedCapabilitiesFn | GetSupportedCapabilities function pointer |
| ptrGetSupportedBarcodeTypesFn | GetSupportedBarcodeTypes function pointer |
| ptrCreateSessionFn | CreateSession function pointer |
| ptrCloseSessionFn | CloseSession function pointer |
| ptrSessionEnableBarcodeTypeFn | SessionEnableBarcodeType function pointer |
| ptrSessionSetBarcodePropertiesFn | SessionSetBarcodeProperties function pointer |
| ptrSessionSetParametersFn | SessionSetParameters function pointer |
| ptrProcessImageFn | ProcessImage function pointer |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_BARCODE_SESSION_HANDLE IBarcodeEngine_CreateSession | ( | IBarcodeEngine | argIBarcodeEngine, |
| idrs_exception * | pargException | ||
| ) |
CreateSession creates a new session for recognition purposes.
| argIBarcodeEngine | IBarcodeEngine handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void IBarcodeEngine_Destroy | ( | IBarcodeEngine | argIBarcodeEngine, |
| idrs_exception * | pargException | ||
| ) |
Destroys a IBarcodeEngine handle.
| argIBarcodeEngine | IBarcodeEngine handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum BarcodeEngineIdentifier IBarcodeEngine_GetBarcodeEngineUniqueIdentifier | ( | const IBarcodeEngine | argIBarcodeEngine, |
| idrs_exception * | pargException | ||
| ) |
GetBarcodeEngineUniqueIdentifier retrieves barcode unique identifier.
The value retrieved by this function will be used to reference this barcode engine when setting different properties as well as in results.
Please use values larger than 100 when creating new barcode engines registered with iDRS SDK. Currently iDRS SDK uses values 0 to 7, but future versions might include new engines.
| argIBarcodeEngine | IBarcodeEngine handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| BarcodeTypeArray IBarcodeEngine_GetSupportedBarcodeTypes | ( | const IBarcodeEngine | argIBarcodeEngine, |
| idrs_exception * | pargException | ||
| ) |
GetSupportedBarcodeTypes retrieves the engine's supported barcode types.
| argIBarcodeEngine | IBarcodeEngine handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| BarcodeCapabilityArray IBarcodeEngine_GetSupportedCapabilities | ( | const IBarcodeEngine | argIBarcodeEngine, |
| idrs_exception * | pargException | ||
| ) |
GetSupportedCapabilities retrieves the list of capabilities supported by the barcode engine.
| argIBarcodeEngine | IBarcodeEngine handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_ERROR IBarcodeEngine_ProcessImage | ( | IBarcodeEngine | argIBarcodeEngine, |
| IDRS_BARCODE_SESSION_HANDLE | hBarcodeEngineHandle, | ||
| const CImage | argInputImage, | ||
| const CBarcodeContext | argBarcodeContext, | ||
| CBarcodeArray | argBarcodeResults, | ||
| idrs_exception * | pargException | ||
| ) |
ProcessImage runs barcode recognition on the supplied image.
The image data is guaranteed to be valid until the function ends. If the engine does not change the input image, then it can safely reference the pixels from the provided image. In case the image needs to be modified, the engine should make a copy of the provided image.
The barcode results are expected to be added to argBarcodeResults as individual CBarcodeResult objects.
| argIBarcodeEngine | IBarcodeEngine handle |
| hBarcodeEngineHandle | Barcode session handle |
| argInputImage | Input image |
| argBarcodeContext | Barcode context |
| argBarcodeResults | Object where all barcode results are expected to be stored. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_ERROR IBarcodeEngine_SessionEnableBarcodeType | ( | IBarcodeEngine | argIBarcodeEngine, |
| IDRS_BARCODE_SESSION_HANDLE | hBarcodeHandle, | ||
| enum BarcodeType const | evBarcodeType, | ||
| IDRS_BOOL const | bEnable, | ||
| idrs_exception * | pargException | ||
| ) |
SessionEnableBarcodeType enables a barcode type for the specified session.
| argIBarcodeEngine | IBarcodeEngine handle |
| hBarcodeHandle | Barcode session handle |
| evBarcodeType | Barcode type |
| bEnable | Flag indicating whether the barcode type should be enabled or not. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_ERROR IBarcodeEngine_SessionSetBarcodeProperties | ( | IBarcodeEngine | argIBarcodeEngine, |
| IDRS_BARCODE_SESSION_HANDLE | hBarcodeHandle, | ||
| enum BarcodeType const | evBarcodeType, | ||
| const BarcodeAdvancedParameters * | stAdvancedParameters, | ||
| idrs_exception * | pargException | ||
| ) |
SessionSetBarcodeProperties sets barcode type properties for the specified session.
| argIBarcodeEngine | IBarcodeEngine handle |
| hBarcodeHandle | Barcode session handle |
| evBarcodeType | Barcode type |
| stAdvancedParameters | Structure containing the barcode type properties |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_ERROR IBarcodeEngine_SessionSetParameters | ( | IBarcodeEngine | argIBarcodeEngine, |
| IDRS_BARCODE_SESSION_HANDLE | hBarcodeHandle, | ||
| enum BarcodeSessionParameter const | evParameter, | ||
| IDRS_UINT const | uiValue, | ||
| idrs_exception * | pargException | ||
| ) |
SessionSetParameters sets a session parameter.
| argIBarcodeEngine | IBarcodeEngine handle |
| hBarcodeHandle | Barcode session handle |
| evParameter | Parameter identifier |
| uiValue | Parameter type |
| pargException | Pointer to exception structure that will be filled if an exception occurs |