ScRecognitionContext.h
Go to the documentation of this file.
1 
10 #ifndef SC_RECOGNITION_CONTEXT_H_
11 #define SC_RECOGNITION_CONTEXT_H_
12 
13 #include <Scandit/ScConfig.h>
14 #include <Scandit/ScCommon.h>
15 #include "Scandit/ScByteArray.h"
17 
18 #if SC_PLATFORM_ANDROID
19 # include <jni.h>
20 #endif
21 
23 
39 typedef struct ScOpaqueRecognitionContext ScRecognitionContext;
42 
48 typedef enum {
230 
239 
241 
255 typedef struct {
259 
269 SC_EXPORT
271 
280 typedef struct {
282  uint32_t frame_id;
284 
294 SC_EXPORT
296 
297 #if SC_PLATFORM_ANDROID || (defined(SC_GENERATE_DOCS) && SC_GENERATE_DOCS)
298 
318 SC_EXPORT
319 ScRecognitionContext *sc_recognition_context_new(char const *license_key,
320  char const *writable_data_path,
321  JNIEnv *env,
322  jobject activity,
323  char const *device_name);
324 #endif
325 
326 #if SC_PLATFORM_GENERIC || (defined(SC_GENERATE_DOCS) && SC_GENERATE_DOCS)
327 
349 SC_EXPORT
350 ScRecognitionContext *sc_recognition_context_new(char const *license_key,
351  char const *writable_data_path,
352  char const *device_name);
353 #endif
354 
363 SC_EXPORT
365 
376 SC_EXPORT
378 
407 SC_EXPORT
409 
436 SC_EXPORT
438  ScRecognitionContext *context,
439  ScImageDescription const *image_description,
440  uint8_t const *image_data);
441 
453 SC_EXPORT
455 
463 typedef enum {
464  SC_CAMERA_FACING_DIRECTION_UNKNOWN = 0x00,
465  SC_CAMERA_FACING_DIRECTION_BACK = 0x01,
466  SC_CAMERA_FACING_DIRECTION_FRONT = 0x02
468 
475 typedef struct {
477  char const *identifier;
480 
492 SC_EXPORT
494  ScCameraProperties camera_properties);
495 
497 
498 #endif // SC_RECOGNITION_CONTEXT_H_
Functions to manage an array of bytes.
The Scandit SDK validation failed. The external id does not match with the license key...
Definition: ScRecognitionContext.h:175
Opaque recognition context data structure.
The context status is okay. No error occured.
Definition: ScRecognitionContext.h:56
The device activation failed. The number of allowed scans has exceeded.
Definition: ScRecognitionContext.h:161
Platform specific camera properties.
Definition: ScRecognitionContext.h:475
void sc_recognition_context_end_frame_sequence(ScRecognitionContext *context)
Signal that a batch of continuous frames ended.
Error code to indicate that sc_recognition_context_process_frame() was called without a prior call to...
Definition: ScRecognitionContext.h:66
ScByteArray message
Human readable error message.
Definition: ScRecognitionContext.h:257
The Scandit SDK validation failed. Your license key has expired. Please login to scandit.com and aquire a new one.
Definition: ScRecognitionContext.h:101
The license does not include the requested text recognizer.
Definition: ScRecognitionContext.h:209
Result status and frame id.
Definition: ScRecognitionContext.h:280
The provided image data has missing or inconsistent properties. This error code can for example indic...
Definition: ScRecognitionContext.h:77
Denotes the beginning of the enum range for unlicensed features.
Definition: ScRecognitionContext.h:229
void sc_recognition_context_set_camera_properties(ScRecognitionContext *context, ScCameraProperties camera_properties)
set the properties that define the camera that is to be used
ScContextStatusFlag
Context status of a frame.
Definition: ScRecognitionContext.h:48
void sc_recognition_context_start_new_frame_sequence(ScRecognitionContext *context)
Start processing a new batch of continuous frames.
Your license key's version is not compatible with this SDK version.
Definition: ScRecognitionContext.h:190
ScCameraFacingDirection
The direction of the camera. The default camera direction is SC_CAMERA_FACING_DIRECTION_UNKNOWN.
Definition: ScRecognitionContext.h:463
The registration of the device is mandatory and must be completed before the recognition context can ...
Definition: ScRecognitionContext.h:168
The context status is unknown.
Definition: ScRecognitionContext.h:52
Scandit SDK failed to get network access which is mandatory for certain license types. For example a test license.
Definition: ScRecognitionContext.h:84
#define SC_EXTERN_C_BEGIN
Start of external C code.
Definition: ScConfig.h:19
ScContextStatusFlag flag
Execution status flag.
Definition: ScRecognitionContext.h:256
Describes dimensions as well as internal memory layout of an image buffer.
char const * identifier
Default is NULL.
Definition: ScRecognitionContext.h:477
The device activation failed. The number of allowed days to use the SDK has exceeded.
Definition: ScRecognitionContext.h:154
ScProcessFrameResult sc_recognition_context_process_frame(ScRecognitionContext *context, ScImageDescription const *image_description, uint8_t const *image_data)
Process image frame with this recognition context.
The Scandit SDK validation failed. Your license key does not include support for this device...
Definition: ScRecognitionContext.h:125
The Scandit SDK validation failed. Your app ID does not match the license key's app ID...
Definition: ScRecognitionContext.h:117
The Scandit SDK license validation failed. Your license key does not include this platform...
Definition: ScRecognitionContext.h:109
void sc_recognition_context_retain(ScRecognitionContext const *context)
Increase reference count of recognition context by one.
#define SC_EXTERN_C_END
End of external C code.
Definition: ScConfig.h:28
Status information with error message details.
Definition: ScRecognitionContext.h:255
A missing resource made the scanning operation fail.
Definition: ScRecognitionContext.h:203
Denotes the end of the enum range for unlicensed features.
Definition: ScRecognitionContext.h:238
void sc_process_frame_result_free(ScProcessFrameResult result)
Free the resources associated with an ScProcessFrameResult.
ScCameraFacingDirection facing_direction
The direction of the camera.
Definition: ScRecognitionContext.h:476
Scandit SDK validation failed. Make sure your app key is valid and check your account for available d...
Definition: ScRecognitionContext.h:89
The Scandit SDK validation failed. Your license key does not include support for this SDK version...
Definition: ScRecognitionContext.h:133
uint32_t frame_id
frame identification number within the current frame sequence
Definition: ScRecognitionContext.h:282
The context encountered an internal error.
Definition: ScRecognitionContext.h:60
Common definitions used throughout the ScanditSDK API.
Common functions and data structures.
The provided Scandit SDK license license key is invalid. Please set a valid license key in your appli...
Definition: ScRecognitionContext.h:140
Your license does not include a symbology extension enabled by your barcode scanner settings...
Definition: ScRecognitionContext.h:197
An error has occurred in the OCR module.
Definition: ScRecognitionContext.h:215
void sc_recognition_context_release(ScRecognitionContext const *context)
Decrease reference count of recognition context by one.
Your license does not include a symbology enabled by your barcode scanner settings.
Definition: ScRecognitionContext.h:182
ScRecognitionContext * sc_recognition_context_new(char const *license_key, char const *writable_data_path, JNIEnv *env, jobject activity, char const *device_name)
Create a new recognition context (Android only).
The device activation failed. Please connect to the Internet and restart the application.
Definition: ScRecognitionContext.h:147
ScContextStatus status
Execution status with detailed error information.
Definition: ScRecognitionContext.h:281
Image description interface.
void sc_context_status_free(ScContextStatus status)
Free the resources associated with an ScContextStatus.
A null terminated array of bytes.
The provided image data is not supported by the recognition context.
Definition: ScRecognitionContext.h:70
No Scandit SDK license key was set. Please set a valid license key in your application.
Definition: ScRecognitionContext.h:94