16 #import <CoreMedia/CoreMedia.h>
17 #import <AVFoundation/AVFoundation.h>
18 #import "BarcodeXpressIOS.h"
26 @interface BXRuntime : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate, UIAlertViewDelegate> {
50 NSMutableArray *m_threadQueues;
56 id __unsafe_unretained m_cameraReceiver;
63 id __unsafe_unretained m_recognitionReceiver;
69 id __unsafe_unretained m_processingReceiver;
142 @property (nonatomic, strong) AVCaptureSession *m_videoCaptureSession;
148 @property (nonatomic, assign)
long m_barcodeTypes;
154 @property (assign)
long m_numProcessedFrames;
160 @property (nonatomic, unsafe_unretained)
id m_cameraReceiver;
167 @property (nonatomic, unsafe_unretained)
id m_recognitionReceiver;
173 @property (nonatomic, unsafe_unretained)
id m_processingReceiver;
179 @property (nonatomic, assign)
SEL m_cameraCallback;
186 @property (nonatomic, assign)
SEL m_recognitionCallback;
192 @property (nonatomic, assign)
SEL m_processingCallback;
200 @property (nonatomic, assign) BOOL m_isPaused;
208 @property (nonatomic, assign) BOOL m_licenseAlertIsActive;
217 @property (nonatomic, assign) BOOL m_useBlurDetection;
223 @property (nonatomic, assign) BXiOSAPI* m_bxInterface;
229 @property (nonatomic, assign) CGSize cameraResolution;
240 @property (nonatomic, assign) BOOL m_terminateBackgroundImageSource;
258 -(id)initWithLicense :(
BXLicense*)inLicense;
264 -(void)StartCaptureSession;
270 -(void)StopCaptureSession;
277 -(void)StartRecognition;
284 -(void)StopRecognition;
291 -(void)PauseRecognition;
297 -(void)ResumeRecognition;
311 -(void)SetCameraCallback :(
id)receiver :(
SEL)callback;
328 -(void)SetRecognitionCallback :(
id)receiver :(
SEL)callback;
342 -(void)SetProcessingCallback :(
id)receiver :(
SEL)callback;
360 -(enum Status)RecognizeImage :(UIImage*)image result:(
BXResult **)result;
379 -(enum Status)RecognizeImage :(
void*)image width:(
size_t)width height:(
size_t)height stride:(
size_t)stride result:(
BXResult **)result;
396 -(enum Status)RecognizeImage :(UIImage*)image results:(NSMutableArray *)results maxBarcodes:(
int)maxBarcodes;
415 -(enum Status)RecognizeImage :(
void*)image width:(
size_t)width height:(
size_t)height stride:(
size_t)stride results:(NSMutableArray*)results maxBarcodes:(
int)maxBarcodes;
422 -(const
char *)ReportVersion;
431 -(long)SetBarcodeTypes :(
long)types;
439 -(AVCaptureSession*) GetCaptureSession;
SEL m_cameraCallback
Gets and sets the method that will be called to receive messages when a video frame has been captured...
Definition: BXRuntime.h:75
BOOL m_isPaused
Gets and sets a boolean indicating the running state of the app.
Definition: BXRuntime.h:96
SEL m_recognitionCallback
Gets and sets the method that will be called to receive messages when a barcode has been found...
Definition: BXRuntime.h:82
BOOL m_terminateBackgroundImageSource
Gets and sets a boolean indicating whether to terminate the background method that supplies image dat...
Definition: BXRuntime.h:136
BOOL m_licenseAlertIsActive
Gets and sets a boolean indicating the licensing state of the recognition library.
Definition: BXRuntime.h:104
Defines a class that holds information about an Accusoft license to use the Accusoft Barcode Xpress S...
Definition: BXLicense.h:21
CGSize cameraResolution
Gets and sets the camera resolution that is being used.
Definition: BXRuntime.h:125
SEL m_processingCallback
Gets and sets the method that will be called to receive messages when a thread begins the process of ...
Definition: BXRuntime.h:88
Defines a class that handles the interactions between camera hardware, BXInterface (called by user pr...
Definition: BXRuntime.h:26
BXiOSAPI * m_bxInterface
Gets and sets the object that is the iOS wrapper around Barcode Xpress native library.
Definition: BXRuntime.h:119
BOOL m_useBlurDetection
Gets and sets a boolean indicating if the recognition library should check if an image is blurry befo...
Definition: BXRuntime.h:113
Defines a barcode result returned by the iOS Barcode Xpress SDK.
Definition: BarcodeXpressIOS.h:148
long m_numProcessedFrames
The number of frames processed since the object was instantiated, or the most recent barcode recognit...
Definition: BXRuntime.h:33
AVCaptureSession * m_videoCaptureSession
Gets and sets the hardware manager for the camera interface.
Definition: BXRuntime.h:39
long m_barcodeTypes
Gets and sets the types of barcodes that Barcode Xpress should search for and decode.
Definition: BXRuntime.h:45