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 
643 #define SC_CIRCLE_RADIUS_INFINITE -1.0f
644 
654 SC_EXPORT
656  ScPointF *relative_center,
657  float *relative_radius);
658 
685 SC_EXPORT
687  ScPointF relative_center,
688  float relative_radius);
689 
706 SC_EXPORT
708  ScBarcodeScannerSettings const *settings);
709 
719 SC_EXPORT
721  ScCameraFocusMode focus_mode);
722 
740 SC_EXPORT
742  ScBarcodeScannerSettings const *settings);
743 
763 SC_EXPORT
765  ScCodeDirection direction);
766 
798 SC_EXPORT
800  ScBarcodeScannerSettings const *settings);
801 
816 SC_EXPORT
818  int32_t filter);
819 
837 SC_EXPORT
839  ScBarcodeScannerSettings const *settings);
840 
853 SC_EXPORT
855  int32_t duration);
856 
870 SC_EXPORT
872 
882 SC_EXPORT
884  ScArucoDictionary const *dictionary);
885 
886 #if (SC_PLATFORM_IOS && defined(__OBJC__) && __OBJC__) || \
887  (defined(SC_GENERATE_DOCS) && SC_GENERATE_DOCS)
888 
889 # include <UIKit/UIKit.h>
904 SC_EXPORT
906  UIImage *image);
907 
908 #endif
909 
910 #if defined(__cplusplus)
911 }
912 #endif
913 
914 #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