ScBarcodeScannerSettings.h
Go to the documentation of this file.
113 SC_CODE_DIRECTION_HORIZONTAL = SC_CODE_DIRECTION_LEFT_TO_RIGHT | SC_CODE_DIRECTION_RIGHT_TO_LEFT
475ScBool sc_barcode_scanner_settings_get_multi_scan_enabled(ScBarcodeScannerSettings const *settings);
526ScRectangleF sc_barcode_scanner_settings_get_search_area(ScBarcodeScannerSettings const *settings);
680void sc_barcode_scanner_settings_get_circle_of_interest(ScBarcodeScannerSettings const *settings,
ArUco symbology dictionary interface.
Functions for retrieving barcode information.
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:27
ScBarcodeScannerSettingsPreset
List of barcode scanner settings presets.
Definition: ScBarcodeScannerSettings.h:31
@ SC_PRESET_SINGLE_CODE_HAND_HELD
Preset for hand held devices that need to scan one code at a time.
Definition: ScBarcodeScannerSettings.h:69
@ SC_PRESET_HIGH_EFFORT
High effort preset.
Definition: ScBarcodeScannerSettings.h:55
int32_t ScBarcodeScannerSettingsPresetFlags
A bit-field of ScBarcodeScannerSettingsPreset.
Definition: ScBarcodeScannerSettings.h:75
ScCodeDirection
Enum for different code directions.
Definition: ScBarcodeScannerSettings.h:82
@ SC_CODE_DIRECTION_TOP_TO_BOTTOM
Definition: ScBarcodeScannerSettings.h:98
@ SC_CODE_DIRECTION_LEFT_TO_RIGHT
Definition: ScBarcodeScannerSettings.h:90
@ SC_CODE_DIRECTION_BOTTOM_TO_TOP
Definition: ScBarcodeScannerSettings.h:102
@ SC_CODE_DIRECTION_HORIZONTAL
Definition: ScBarcodeScannerSettings.h:113
@ SC_CODE_DIRECTION_RIGHT_TO_LEFT
Definition: ScBarcodeScannerSettings.h:94
ScCodeLocationConstraint
Code location constraint.
Definition: ScBarcodeScannerSettings.h:124
@ SC_CODE_LOCATION_HINT
The area indicates the most likely code position.
Definition: ScBarcodeScannerSettings.h:136
@ SC_CODE_LOCATION_IGNORE
The area can be defined but will not be used by the barcode scanner.
Definition: ScBarcodeScannerSettings.h:140
@ SC_CODE_LOCATION_RESTRICT
Restrict decoding to the specified area.
Definition: ScBarcodeScannerSettings.h:130
Common functions and data structures.
Common definitions used throughout the ScanditSDK API.
Property collection manipulation.
Barcode symbology configuration.
ArUco Symbology Dictionary.
An opaque data structure holding configuration options for the barcode scanner.
void sc_barcode_scanner_settings_set_max_num_locations_to_process_per_frame(ScBarcodeScannerSettings *settings, uint32_t max_locations)
Set the maximum number of barcode locations to be processed in every frame.
ScCodeLocationConstraint sc_barcode_scanner_settings_get_code_location_constraint_1d(ScBarcodeScannerSettings const *settings)
Get 1d code location constraint.
ScCodeLocationConstraint sc_barcode_scanner_settings_get_code_location_constraint_2d(ScBarcodeScannerSettings const *settings)
Get 2d code location constraint.
ScBarcodeScannerSettings * sc_barcode_scanner_settings_new_from_json(char const *json_data, ScError *error)
Create a new barcode scanner settings object from a json description.
void sc_barcode_scanner_settings_get_circle_of_interest(ScBarcodeScannerSettings const *settings, ScPointF *relative_center, float *relative_radius)
Returns the circle of interest.
char * sc_barcode_scanner_settings_as_json(ScBarcodeScannerSettings const *settings)
Returns the settings contained in the object as json.
ScRectangleF sc_barcode_scanner_settings_get_search_area(ScBarcodeScannerSettings const *settings)
Get the area of the image in which barcodes are searched.
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....
void sc_barcode_scanner_settings_set_multi_scan_enabled(ScBarcodeScannerSettings *settings, ScBool enabled)
Set whether scanning multiple codes in a single frame is enabled.
void sc_barcode_scanner_settings_set_code_duplicate_filter(ScBarcodeScannerSettings *settings, int32_t filter)
Specifies the duplicate filter to use for the session.
ScPropertyCollection const * sc_barcode_scanner_settings_get_properties_const(ScBarcodeScannerSettings const *settings)
Retrieves the barcode scanner settings read-only properties handle.
void sc_barcode_scanner_settings_set_search_area(ScBarcodeScannerSettings *settings, ScRectangleF scan_area)
Set the area of the image in which barcodes are searched.
ScSymbologySettings * sc_barcode_scanner_settings_get_symbology_settings(ScBarcodeScannerSettings *settings, ScSymbology symbology)
Retrieve symbology-specific settings.
ScBarcodeScannerSettings * sc_barcode_scanner_settings_clone(ScBarcodeScannerSettings *settings)
Creates and returns a deep copy of the barcode scanner settings object.
void sc_barcode_scanner_settings_set_code_location_area_2d(ScBarcodeScannerSettings *settings, ScRectangleF rect)
Set code location area for 2d codes.
ScBool sc_barcode_scanner_settings_get_multi_scan_enabled(ScBarcodeScannerSettings const *settings)
Get whether scanning multiple codes in a single frame is enabled.
void sc_barcode_scanner_settings_retain(ScBarcodeScannerSettings const *settings)
Increase reference count of barcode scanner settings.
uint32_t sc_barcode_scanner_settings_get_max_num_locations_to_process_per_frame(ScBarcodeScannerSettings const *settings)
Get the maximum number of barcode locations to be processed in every frame.
ScCodeDirection sc_barcode_scanner_settings_get_code_direction_hint(ScBarcodeScannerSettings const *settings)
Get the code direction hint.
ScBarcodeScannerSettings * sc_barcode_scanner_settings_new_with_preset(ScBarcodeScannerSettingsPresetFlags preset)
Create a new barcode scanner settings object.
void sc_barcode_scanner_settings_set_code_direction_hint(ScBarcodeScannerSettings *settings, ScCodeDirection direction)
Set the code direction hint.
void sc_barcode_scanner_settings_set_circle_of_interest(ScBarcodeScannerSettings *settings, ScPointF relative_center, float relative_radius)
Sets the circle of interest.
void sc_barcode_scanner_settings_set_code_location_area_1d(ScBarcodeScannerSettings *settings, ScRectangleF rect)
Set code location area for 1d codes.
ScRectangleF sc_barcode_scanner_settings_get_code_location_area_1d(ScBarcodeScannerSettings const *settings)
Get 1d code location area.
void sc_barcode_scanner_settings_set_symbology_enabled(ScBarcodeScannerSettings *settings, ScSymbology symbology, ScBool enabled)
Enable/disable decoding of a certain symbology.
ScPropertyCollection * sc_barcode_scanner_settings_get_properties(ScBarcodeScannerSettings *settings)
Retrieves the barcode scanner settings properties handle.
void sc_barcode_scanner_settings_set_code_location_constraint_2d(ScBarcodeScannerSettings *settings, ScCodeLocationConstraint constraint)
Set the 2d code location constraint.
void sc_barcode_scanner_settings_set_code_location_constraint_1d(ScBarcodeScannerSettings *settings, ScCodeLocationConstraint constraint)
Set the 1d code location constraint.
int32_t sc_barcode_scanner_settings_get_code_duplicate_filter(ScBarcodeScannerSettings const *settings)
Get the code duplicate filter of the scan session.
ScRectangleF sc_barcode_scanner_settings_get_code_location_area_2d(ScBarcodeScannerSettings const *settings)
Get 2d code location area.
void sc_barcode_scanner_settings_release(ScBarcodeScannerSettings const *settings)
Decrease reference count of barcode scanner settings object by one.
ScBarcodeScannerSettings * sc_barcode_scanner_settings_new(void)
Create a new barcode scanner settings object.
Handle to a collection of properties.
Contains symbology-specific settings.