ScBarcodeScannerSettings.h
Go to the documentation of this file.
1 
10 #ifndef SC_BARCODE_SCANNER_SETTINGS_H_
11 #define SC_BARCODE_SCANNER_SETTINGS_H_
12 
13 #include <Scandit/ScConfig.h>
14 #include <Scandit/ScCommon.h>
15 #include <Scandit/ScBarcode.h>
18 
19 #if defined(__cplusplus)
20 extern "C" {
21 #endif
22 
28 typedef enum {
61 
63 
68 
74 typedef enum {
95 
107 
116 typedef enum {
134 
251 typedef struct ScOpaqueBarcodeScannerSettings ScBarcodeScannerSettings;
254 
267 SC_EXPORT
269 
281 SC_EXPORT
283  ScBarcodeScannerSettingsPresetFlags preset);
284 
304 SC_EXPORT
306  ScError *error);
307 
316 SC_EXPORT
318 
329 SC_EXPORT
331 
344 SC_EXPORT
346 
370 SC_EXPORT
372  char const *key);
384 SC_EXPORT
386  char const *key,
387  int32_t value);
388 
423 SC_EXPORT
425  ScSymbology symbology,
426  ScBool enabled);
441 SC_EXPORT
443  ScBarcodeScannerSettings *settings, ScSymbology symbology);
444 
462 SC_EXPORT
464  ScBarcodeScannerSettings const *settings);
465 
476 SC_EXPORT
478  ScBarcodeScannerSettings *settings, uint32_t max_codes);
479 
501 SC_EXPORT
503 
516 SC_EXPORT
518  ScRectangleF scan_area);
519 
537 SC_EXPORT
539  ScBarcodeScannerSettings const *settings);
540 
551 SC_EXPORT
553  ScRectangleF rect);
554 
564 SC_EXPORT
566  ScBarcodeScannerSettings const *settings);
567 
577 SC_EXPORT
579  ScBarcodeScannerSettings *settings, ScCodeLocationConstraint constraint);
580 
591 SC_EXPORT
593  ScBarcodeScannerSettings const *settings);
594 
605 SC_EXPORT
607  ScRectangleF rect);
608 
618 SC_EXPORT
620  ScBarcodeScannerSettings const *settings);
621 
631 SC_EXPORT
633  ScBarcodeScannerSettings *settings, ScCodeLocationConstraint constraint);
634 
644 SC_EXPORT
646  ScPointF *relative_center,
647  float *relative_radius);
648 
667 SC_EXPORT
669  ScPointF relative_center,
670  float relative_radius);
671 
688 SC_EXPORT
690  ScBarcodeScannerSettings const *settings);
691 
701 SC_EXPORT
703  ScCameraFocusMode focus_mode);
704 
722 SC_EXPORT
724  ScBarcodeScannerSettings const *settings);
725 
745 SC_EXPORT
747  ScCodeDirection direction);
748 
780 SC_EXPORT
782  ScBarcodeScannerSettings const *settings);
783 
798 SC_EXPORT
800  int32_t filter);
801 
819 SC_EXPORT
821  ScBarcodeScannerSettings const *settings);
822 
835 SC_EXPORT
837  int32_t duration);
838 
852 SC_EXPORT
854 
864 SC_EXPORT
866  ScArucoDictionary const *dictionary);
867 
868 #if (SC_PLATFORM_IOS && defined(__OBJC__) && __OBJC__) || \
869  (defined(SC_GENERATE_DOCS) && SC_GENERATE_DOCS)
870 
871 # include <UIKit/UIKit.h>
886 SC_EXPORT
888  UIImage *image);
889 
890 #endif
891 
892 #if defined(__cplusplus)
893 }
894 #endif
895 
896 #endif // SC_BARCODE_SCANNER_SETTINGS_H_
Definition: ScBarcodeScannerSettings.h:94
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.
ArUco Symbology Dictionary.
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 area can be defined but will not be used by the barcode scanner.
Definition: ScBarcodeScannerSettings.h:132
Restrict decoding to the specified area.
Definition: ScBarcodeScannerSettings.h:122
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_circle_of_interest(ScBarcodeScannerSettings *settings, ScPointF relative_center, float relative_radius)
Sets the circle of interest.
Preset to enable decoding of all retail symbologies.
Definition: ScBarcodeScannerSettings.h:39
ScBarcodeScannerSettings * sc_barcode_scanner_settings_clone(ScBarcodeScannerSettings *settings)
Creates and returns a deep copy of the barcode scanner settings object.
ScCodeDirection
Enum for different code directions.
Definition: ScBarcodeScannerSettings.h:74
void sc_barcode_scanner_settings_set_code_caching_duration(ScBarcodeScannerSettings *settings, int32_t duration)
Determines how long codes are kept in the session.
void sc_barcode_scanner_settings_set_code_direction_hint(ScBarcodeScannerSettings *settings, ScCodeDirection direction)
Set the code direction hint.
void sc_barcode_scanner_settings_set_code_duplicate_filter(ScBarcodeScannerSettings *settings, int32_t filter)
Specifies the duplicate filter to use for the session.
void sc_barcode_scanner_settings_set_code_location_constraint_2d(ScBarcodeScannerSettings *settings, ScCodeLocationConstraint constraint)
Set the 2d code location constraint.
char * sc_barcode_scanner_settings_as_json(ScBarcodeScannerSettings const *settings)
Returns the settings contained in the object as json.
int32_t sc_barcode_scanner_settings_get_code_duplicate_filter(ScBarcodeScannerSettings const *settings)
Get the code duplicate filter of the scan session.
Definition: ScBarcodeScannerSettings.h:78
int32_t sc_barcode_scanner_settings_get_code_caching_duration(ScBarcodeScannerSettings const *settings)
Get the code caching duration of the scan session.
void sc_barcode_scanner_settings_set_focus_mode(ScBarcodeScannerSettings *settings, ScCameraFocusMode focus_mode)
Set the camera's focus type.
void sc_barcode_scanner_settings_set_code_location_area_1d(ScBarcodeScannerSettings *settings, ScRectangleF rect)
Set code location area for 1d codes.
void sc_barcode_scanner_settings_retain(ScBarcodeScannerSettings *settings)
Increase reference count of barcode scanner settings.
ScCodeLocationConstraint sc_barcode_scanner_settings_get_code_location_constraint_1d(ScBarcodeScannerSettings const *settings)
Get 1d code location constraint.
An opaque data structure holding configuration options for the barcode scanner.
void sc_barcode_scanner_settings_set_search_area(ScBarcodeScannerSettings *settings, ScRectangleF scan_area)
Set the area of the image in which barcodes are searched.
ScRectangleF sc_barcode_scanner_settings_get_code_location_area_2d(ScBarcodeScannerSettings const *settings)
Get 2d code location area.
Functions for retrieving barcode information.
ScBarcodeScannerSettingsPreset
List of barcode scanner settings presets.
Definition: ScBarcodeScannerSettings.h:28
void sc_barcode_scanner_settings_set_code_location_area_2d(ScBarcodeScannerSettings *settings, ScRectangleF rect)
Set code location area for 2d codes.
ScCameraFocusMode sc_barcode_scanner_settings_get_focus_mode(ScBarcodeScannerSettings const *settings)
Get the camera's focus type.
ScRectangleF sc_barcode_scanner_settings_get_code_location_area_1d(ScBarcodeScannerSettings const *settings)
Get 1d code location area.
void sc_barcode_scanner_settings_set_code_location_constraint_1d(ScBarcodeScannerSettings *settings, ScCodeLocationConstraint constraint)
Set the 1d code location constraint.
ScSymbology
Enumeration of all supported 1d and 2d barcode symbologies.
Definition: ScBarcode.h:29
Definition: ScBarcodeScannerSettings.h:100
Definition: ScBarcodeScannerSettings.h:90
Definition: ScBarcodeScannerSettings.h:82
ScBarcodeScannerSettings * sc_barcode_scanner_settings_new(void)
Create a new barcode scanner settings object.
uint32_t sc_barcode_scanner_settings_get_max_number_of_codes_per_frame(ScBarcodeScannerSettings const *settings)
Get the maximum number of barcode to be decoded every frame.
void sc_barcode_scanner_settings_release(ScBarcodeScannerSettings *settings)
Decrease reference count of barcode scanner settings object by one.
Preset to enable decoding SSCC18 codes.
Definition: ScBarcodeScannerSettings.h:51
Structure for holding error information.
Definition: ScCommon.h:264
ArUco symbology dictionary interface.
ScCodeLocationConstraint
Code location constraint.
Definition: ScBarcodeScannerSettings.h:116
int32_t ScBarcodeScannerSettingsPresetFlags
A bit-field of ScBarcodeScannerSettingsPreset.
Definition: ScBarcodeScannerSettings.h:67
Preset to enable decoding VIN codes.
Definition: ScBarcodeScannerSettings.h:45
Common definitions used throughout the ScanditSDK API.
ScSymbologySettings * sc_barcode_scanner_settings_get_symbology_settings(ScBarcodeScannerSettings *settings, ScSymbology symbology)
Retrieve symbology-specific settings.
Preset that switches the scanner from real-time video stream processing to a single frame mode...
Definition: ScBarcodeScannerSettings.h:60
Common functions and data structures.
ScCodeLocationConstraint sc_barcode_scanner_settings_get_code_location_constraint_2d(ScBarcodeScannerSettings const *settings)
Get 2d code location constraint.
Definition: ScBarcodeScannerSettings.h:105
ScRectangleF sc_barcode_scanner_settings_get_search_area(ScBarcodeScannerSettings const *settings)
Get the area of the image in which barcodes are searched.
A 2-dimensional rectangle with floating point precision.
Definition: ScCommon.h:158
The area indicates the most likely code position.
Definition: ScBarcodeScannerSettings.h:128
ScCameraFocusMode
Describes the focus mode of a camera.
Definition: ScCommon.h:242
Contains symbology-specific settings.
Barcode symbology configuration.
void sc_barcode_scanner_settings_set_symbology_enabled(ScBarcodeScannerSettings *settings, ScSymbology symbology, ScBool enabled)
Enable/disable decoding of a certain symbology.
int32_t sc_barcode_scanner_settings_get_property(ScBarcodeScannerSettings const *settings, char const *key)
Get custom properties.
void sc_barcode_scanner_settings_get_circle_of_interest(ScBarcodeScannerSettings const *settings, ScPointF *relative_center, float *relative_radius)
Returns the circle of interest.
Definition: ScBarcodeScannerSettings.h:86
void sc_barcode_scanner_settings_set_max_number_of_codes_per_frame(ScBarcodeScannerSettings *settings, uint32_t max_codes)
Set the maximum number of barcode to be decoded every frame.
void sc_barcode_scanner_settings_set_property(ScBarcodeScannerSettings *settings, char const *key, int32_t value)
Set custom properties.
Preset with all symbologies disabled.
Definition: ScBarcodeScannerSettings.h:32
void sc_barcode_scanner_settings_setup_for_ui_image(ScBarcodeScannerSettings *settings, UIImage *image)
Configure barcode scanner settings for recognizing barcodes in the provided UIImage.
A 2-dimensional point with floating point precision.
Definition: ScCommon.h:99
int32_t ScBool
Boolean value, can be SC_TRUE or SC_FALSE.
Definition: ScConfig.h:127