Go to the source code of this file.
Typedefs | |
typedef int32_t | ScBarcodeScannerSettingsPresetFlags |
typedef struct ScOpaqueBarcodeScannerSettings | ScBarcodeScannerSettings |
Enumerations | |
enum | ScBarcodeScannerSettingsPreset { SC_PRESET_NONE = 0x00, SC_PRESET_ENABLE_RETAIL_SYMBOLOGIES = 0x01, SC_PRESET_ENABLE_VIN_DECODING = 0x02, SC_PRESET_ENABLE_SSCC_DECODING = 0x04, SC_PRESET_ENABLE_SINGLE_FRAME_MODE = 0x08 } |
enum | ScCodeDirection { SC_CODE_DIRECTION_NONE = 0x00, SC_CODE_DIRECTION_LEFT_TO_RIGHT = 0x01, SC_CODE_DIRECTION_RIGHT_TO_LEFT = 0x02, SC_CODE_DIRECTION_TOP_TO_BOTTOM = 0x04, SC_CODE_DIRECTION_BOTTOM_TO_TOP = 0x08, SC_CODE_DIRECTION_VERTICAL = SC_CODE_DIRECTION_TOP_TO_BOTTOM | SC_CODE_DIRECTION_BOTTOM_TO_TOP, SC_CODE_DIRECTION_HORIZONTAL = SC_CODE_DIRECTION_LEFT_TO_RIGHT | SC_CODE_DIRECTION_RIGHT_TO_LEFT } |
enum | ScCodeLocationConstraint { SC_CODE_LOCATION_RESTRICT = 0x01, SC_CODE_LOCATION_HINT = 0x02, SC_CODE_LOCATION_IGNORE = 0x03 } |
Functions | |
ScBool | sc_barcode_scanner_settings_set_aruco_dictionary (ScBarcodeScannerSettings *settings, ScArucoDictionary const *dictionary) |
Code Location | |
void | sc_barcode_scanner_settings_get_circle_of_interest (ScBarcodeScannerSettings const *settings, ScPointF *relative_center, float *relative_radius) |
void | sc_barcode_scanner_settings_set_circle_of_interest (ScBarcodeScannerSettings *settings, ScPointF relative_center, float relative_radius) |
Detailed Description
barcode scanner configuration
- Copyright
- Copyright (c) 2015 Scandit AG. All rights reserved.
Enumeration Type Documentation
List of barcode scanner settings presets.
- Since
- 4.6.0
enum ScCodeDirection |
Enum for different code directions.
- Since
- 4.6.0
Code location constraint.
The code location constraint influences how the 1d and 2d code location areas are interpreted.
- Since
- 4.6.0
Function Documentation
void sc_barcode_scanner_settings_get_circle_of_interest | ( | ScBarcodeScannerSettings const * | settings, |
ScPointF * | relative_center, | ||
float * | relative_radius | ||
) |
Returns the circle of interest.
- Parameters
-
settings The barcode scanner settings object. Must not be null. relative_center returns the position in relative coordinates. Must not be null. relative_radius returns the radius relative to the frame width. Must not be null.
- Since
- 5.25.0
void sc_barcode_scanner_settings_set_circle_of_interest | ( | ScBarcodeScannerSettings * | settings, |
ScPointF | relative_center, | ||
float | relative_radius | ||
) |
Sets the circle of interest.
Only locations and barcode results that are inside the circle of interest are returned. The selection is limited by the maximum number of codes. More likely locations are preferred.
If the radius is set to zero, all locations and barcode results that contain the center point are returned instead.
This function does not affect the code location areas. The circle of interest is disabled by default.
- Parameters
-
settings The barcode scanner settings object. Must not be null. relative_center position in relative coordinates. Use negative values to disable the feature. relative_radius radius relative to the frame width
- Since
- 5.25.0
ScBool sc_barcode_scanner_settings_set_aruco_dictionary | ( | ScBarcodeScannerSettings * | settings, |
ScArucoDictionary const * | dictionary | ||
) |
Replaces the ARUCO Dictionary in the scanner settings, or adds one if none is given in the settings. The default ARUCO dictionary in the settings is the preset from OpenCV, which consists of 1000 5x5-markers.
- Parameters
-
settings the settings object. Must not be null dictionary the dictionary object, it will be copied. Must not be null
- Returns
- true if a dictionary was added without error, otherwise false
- Since
- 5.30.0