Go to the source code of this file.
Macros | |
Session Settings | |
The session settings do not affect the object tracker (MatrixScan). | |
#define SC_DUPLICATE_FILTER_OFF (0) | |
#define SC_DUPLICATE_FILTER_INFINITE (-1) | |
Typedefs | |
typedef int32_t ScBarcodeScannerSettingsPresetFlags | |
typedef struct ScOpaqueBarcodeScannerSettings ScBarcodeScannerSettings | |
Enumerations | |
enum ScBarcodeScannerSettingsPreset { SC_PRESET_NONE = 0x00, SC_PRESET_HIGH_EFFORT = 0x02, SC_PRESET_SINGLE_CODE_HAND_HELD = 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) | |
Custom Properties | |
ScPropertyCollection const * sc_barcode_scanner_settings_get_properties_const (ScBarcodeScannerSettings const *settings) | |
ScPropertyCollection * sc_barcode_scanner_settings_get_properties (ScBarcodeScannerSettings *settings) | |
Code Location | |
#define SC_CIRCLE_RADIUS_INFINITE -1.0f | |
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.
Macro Definition Documentation
#define SC_CIRCLE_RADIUS_INFINITE -1.0f |
Value to indicate a circle with "infinite radius".
Pass this value as the radius to sc_barcode_scanner_settings_set_circle_of_interest() to indicate that the circle of interest acts as a hint to the scanner where to focus the attention of recognition. Unlike with a radius of >= 0, results from the whole image are returned.
Enumeration Type Documentation
List of barcode scanner settings presets.
Presets allow you to configure the barcode scanner for specific use-cases. The settings can be further refined trough the settings API.
The settings preset can not be combined. The preset with the lowest value is used if multiple bits are set.
Enumerator | |
---|---|
SC_PRESET_NONE |
No (default) preset. This preset is the default behavior. It offers a balance speed to accuracy performance on frame sequences for single and multi-scan use-cases. The recommended input resolution is FullHD (1080p).
|
SC_PRESET_HIGH_EFFORT |
High effort preset. This preset tries to achieve the best accuracy by spending more time per frame than the default preset. It is optimized for high power devices or non real-time requirements. It supports single or multi-code scanning and is recommended for single image or cloud processing use-cases. The recommended input resolution is FullHD (1080p) or 4KUHD (2160p).
|
SC_PRESET_SINGLE_CODE_HAND_HELD |
Preset for hand held devices that need to scan one code at a time. This profile is intended for devices that are hand-held and a single code needs to be scanned in a static scene. Smart scan intention is active, which prevents scans in the background or during fast movement. The recommended input resolution is FullHD (1080p) or 4KUHD (2160p) for extra range. Setting the maximum codes per frame sc_barcode_scanner_settings_set_max_number_of_codes_per_frame has no impact on codes returned.
|
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
ScPropertyCollection const* sc_barcode_scanner_settings_get_properties_const | ( | ScBarcodeScannerSettings const * | settings | ) |
Retrieves the barcode scanner settings read-only properties handle.
- Parameters
-
settings the barcode scanner settings object. Must not be null
- Returns
- the collection handle. The handle object is owned by the barcode scanner settings object and must not be used once the scanner settings are released.
- Since
- 7.0.0
ScPropertyCollection* sc_barcode_scanner_settings_get_properties | ( | ScBarcodeScannerSettings * | settings | ) |
Retrieves the barcode scanner settings properties handle.
- Parameters
-
settings the barcode scanner settings object. Must not be null
- Returns
- the collection handle. The handle object is owned by the barcode scanner settings object and must not be used once the scanner settings are released.
- Since
- 7.0.0
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.
Use this API to define a circle that results must touch in order to be returned or to give a hint to the barcode scanner where to focus most of the effort for the recognition on.
If the radius is >= 0, only locations and barcode results that are touching the circle of interest are returned. The selection is limited by the maximum number of codes. Results that are closer to the center of the circle are preferred.
Since 6.24: If the radius is SC_CIRCLE_RADIUS_INFINITE or negative, then center is used as hint for the barcode scanner where to focus the attention of recognition. Results continue to be returned in the full image.
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 6.24 negative values are allowed.
- 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