39#import <Foundation/Foundation.h>
41#include <TargetConditionals.h>
44#import <UIKit/UIKit.h>
45#import <ARKit/ARKit.h>
48#import <Metal/Metal.h>
49#import <CoreImage/CoreImage.h>
52typedef void(*ARSessionCompletionHandler)(ARSession * _Nullable session);
77 float _InitInlierRatio;
78 int _InitNumOfCorresp;
79 float _TrackingInlierRatio;
80 int _TrackingNumOfCorresp;
82 int _NumberOfPatternRecognitions;
83 int _NumberOfTemplates;
84 int _NumberOfTemplatesDynamic;
85 int _NumberOfTemplatesStatic;
86 int _NumberOfLineModels;
87 float _AutoInitSetupProgress;
88 int _TrackingImageWidth;
89 int _TrackingImageHeight;
97 NSString* _WorldMappingStatus;
103 NSArray<vlTrackingObjectState*>* objects;
104 NSArray<vlTrackingDeviceState*>* inputs;
147- (NSString * _Nullable)toString;
150FOUNDATION_EXPORT VL_SDK_API
@interface VLIssue:NSObject {
158FOUNDATION_EXPORT VL_SDK_API
@interface VLIssues:NSObject {
160 NSArray<VLIssue *> *issues;
163-(BOOL)hasCode:(
int)code;
174FOUNDATION_EXPORT VL_SDK_API
@protocol vlFrameListenerInterface <NSObject>
186-(NSMutableData * _Nonnull )onGetDebugImageBufferWithWidth:(
int)width andHeight:(
int)height andBytesPerPixel:(
int)bytesPerPixel;
196-(void)onRawDebugImageBuffer:(NSData * _Nonnull)data withWidth:(
int)width andHeight:(
int)height andBytesPerPixel:(
int)bytesPerPixel;
204-(void)onMetalDebugImageTexture:(_Nonnull
id<MTLTexture>)texture withRotationMatrix:(
float * _Nonnull)m;
212-(void)onCGDebugImageRef:(CGImageRef _Nonnull)texture withRotationMatrix:(
float * _Nonnull)m;
223-(NSMutableData * _Nonnull )onGetImageBufferWithWidth:(
int)width andHeight:(
int)height andBytesPerPixel:(
int)bytesPerPixel;
233-(void)onRawImageBuffer:(NSData * _Nonnull)data withWidth:(
int)width andHeight:(
int)height andBytesPerPixel:(
int)bytesPerPixel;
241-(void)onMetalImageTexture:(_Nonnull
id<MTLTexture>)texture withRotationMatrix:(
float * _Nonnull)m;
249-(void)onCGImageRef:(CGImageRef _Nonnull)texture withRotationMatrix:(
float * _Nonnull)m;
258-(void)onTrackerInitialized:(
bool)worked;
268-(void)onIssuesTriggered:(
VLIssues* _Nullable)warnings andErrors:(
VLIssues* _Nullable)errors;
275-(void)onExtrinsicData:(
float * _Nonnull)data isValid:(
bool)valid;
281-(void)onIntrinsicData:(
float * _Nonnull)data;
292-(void)onIntrinsicDataWithWidth:(
float)width height:(
float)height cx:(
float)cx cy:(
float)cy fx:(
float)fx fy:(
float)fy;
300-(void)onLog:(NSString * _Nonnull)logString;
306-(void)onTrackingPaused:(BOOL)worked;
311-(void)onSteppedFrame;
339-(void)onInitPose:(
float * _Nonnull)t andQ:(
float* _Nonnull)q;
344-(void)onInitPoseMatrix:(
float * _Nonnull)m;
350-(void)onResetTracking:(BOOL)hard;
359-(void) onCalibrationResults:(NSString * _Nullable)json;
367-(void) onGetAttribute:(NSString *_Nonnull)name withValue:(NSString *_Nonnull)value;
371-(void)onModelRemoved:(NSString * _Nullable)json withError:(NSString * _Nullable)errorJson;
372-(void)onRawModelAdded:(NSString * _Nullable)json withError:(NSString * _Nullable)errorJson;
380FOUNDATION_EXPORT VL_SDK_API
@interface vlSDK : NSObject {
384- (void)getARSession:(_Nonnull ARSessionCompletionHandler)callback;
393-(
id _Nonnull) initTrackerWithURI:(NSString* _Nonnull)uri andDelegate:(
id _Nullable)delegate __attribute((deprecated("Use functions that also set licensePath or licenseData")));
402-(
id _Nonnull) initTrackerWithURI:(NSString* _Nonnull)uri andLicensePath:(NSString* _Nonnull)licensePath andDelegate:(
id _Nullable)delegate;
411-(
id _Nonnull) initTrackerWithURI:(NSString* _Nonnull)uri andLicenseData:(NSString* _Nonnull)licenseData andDelegate:(
id _Nullable)delegate;
422-(
id _Nonnull) initTrackerWithURI:(NSString* _Nonnull)uri andDelegate:(_Nullable
id)delegate withOptions:(NSDictionary * _Nullable)options __attribute((deprecated("Use functions that also set licensePath or licenseData")));
434-(
id _Nonnull) initTrackerWithURI:(NSString* _Nonnull)uri andLicensePath:(NSString* _Nonnull)licensePath andDelegate:(_Nullable
id)delegate withOptions:(NSDictionary * _Nullable)options;
446-(
id _Nonnull) initTrackerWithURI:(NSString* _Nonnull)uri andLicenseData:(NSString* _Nonnull)licenseData andDelegate:(_Nullable
id)delegate withOptions:(NSDictionary * _Nullable)options;
479-(void) pause:(BOOL)enable;
497-(void) windowResized:(CGSize)size;
505-(void) setLogLevel:(
int)level;
511-(void) setFPS:(
unsigned int)fps;
519-(void) setNearPlane:(
float)near andFarPlane:(
float)far;
526-(void) setInitPose:(
float * _Nonnull)t andQ:(
float* _Nonnull)q;
532-(void) setInitPoseFromMatrix:(
float * _Nonnull)m;
540-(void) configureExtrinsicCameraInverted:(BOOL)invert;
564-(BOOL) getLastExtrinsic:(
float * _Nonnull)m;
572-(BOOL) enableDebugImage;
577-(BOOL) disableDebugImage;
584-(UIImage * _Nullable)getLastImage;
590-(NSImage * _Nullable) getLastImage;
600-(void)setAttributeCommand:(NSString * _Nonnull)attribute withFloatValue:(
float)value;
608-(void)setAttributeCommand:(NSString * _Nonnull)attribute withStringValue:(NSString * _Nonnull)value;
615-(void)getAttributeRequest:(NSString * _Nonnull)attribute;
623-(void)setCalibrationCommand:(NSString * _Nonnull)command;
630-(void)writeCalibrationDB:(NSString * _Nonnull)uri;
638-(NSString * _Nullable)getTrackerType;
646-(NSString * _Nullable)getDeviceType;
659-(void)writeInitData:(NSString *_Nonnull)uri;
671-(void)readInitData:(NSString *_Nonnull)uri;
682-(void)setModel:(NSString *_Nonnull)name property:(NSString *_Nonnull)property state:(
bool)enable;
689-(void)requestModelProperties;
694-(void)requestModelData:(NSString*_Nonnull)name withOptions:(NSString *_Nonnull)options;
700-(void)removeModel:(NSString*_Nonnull)nameURI;
738-(BOOL)addRawModelWithStruct:(NSString *_Nonnull)struc andData:(NSData*_Nonnull)data;
741-(void)pushJsonAndBinaryCommand:(NSString *_Nonnull)struc andData:(NSData*_Nonnull)data;
742-(void)pushJsonCommand:(NSString *_Nonnull)json;
743-(void)writeLineModelData:(NSString *_Nonnull)uri;
744-(void)readLineModelData:(NSString *_Nonnull)uri;
Definition vlSDK_Apple.h:150
Definition vlSDK_Apple.h:158
Properties of models managed by the visionlib. The model properties can be queried by calling request...
Definition vlSDK_Apple.h:115
NSString * modelHash
The model hash code for licensing of the model.
Definition vlSDK_Apple.h:122
NSString * name
The name which has either been automatically assigned, or is coming from the model definitions,...
Definition vlSDK_Apple.h:125
int subMeshCount
Stats of the model regarding the number of mehes.
Definition vlSDK_Apple.h:134
int triangleCount
Stats of the model regarding the number of triangles used.
Definition vlSDK_Apple.h:137
bool occluder
If the model will occlude other parts as an invisible part.
Definition vlSDK_Apple.h:131
NSString * uri
The URI of the object that has been referenced.
Definition vlSDK_Apple.h:128
bool enabled
If the model is expected to be shown.
Definition vlSDK_Apple.h:119
Convenient function for using the vlSDK in a simple manner. @discussion The vlSDK wrapper uses the C-...
Definition vlSDK_Apple.h:380
Definition vlSDK_Apple.h:94
Definition vlSDK_Apple.h:72
Definition vlSDK_Apple.h:101