Pikkart-AR SDK  3.5
Android SDK References
com.pikkart.ar.recognition.ARNativeWrapper Class Reference

Wraps native functions and generally stati functions that deal with the recognition system directly.

Static Public Member Functions

static native boolean InitRecognition (AssetManager assetManager, int localMarkerNotFoundEventMinIntervalMillisecs, String appDataDir, int process_width, int process_height, float screenInches, int camera_width, int camera_height, boolean load_markers)
 JNI InitRecognition.
 
static native void SetProjectionMatrix (float hfov, float vfov)
 JNI SetProjectionMatrix from horizontal and vertical FOV.
 
static native void SetProjectionMatrix2 (float fx, float fy, float cx, float cy)
 JNI SetProjectionMatrix from focals and camera plane center.
 
static synchronized void InitProjectionMatrix (float hfov, float vfov)
 InitProjectionMatrix, set projection matrix, and store in java (from horizontal and vertical FOV)
 
static synchronized void InitProjectionMatrix (float fx, float fy, float cx, float cy)
 InitProjectionMatrix, set projection matrix, and store in java (from focals and camera plane center)
 
static native void StartRecognition (boolean do_cloud_recognition, boolean do_effect)
 JNI StartRecognition.
 
static native void StopRecognition ()
 JNI StopRecognition.
 
static native void DisableRecognition ()
 JNI DisableRecognition.
 
static native void EnableRecognition ()
 JNI EnableRecognition.
 
static native void ChangeMode (boolean onlineRecognition)
 JNI ChangeMode.
 
static native void StartEffect ()
 JNI StartEffect.
 
static native void StopEffect ()
 JNI StopEffect.
 
static native void CopyNewFrame (ByteBuffer frameData, int offset)
 JNI CopyNewFrame.
 
static native boolean ImageProcessing ()
 JNI ImageProcessing.
 
static native void SyncMarkersWithFolder ()
 JNI SyncMarkersWithFolder.
 
static native boolean SaveLocalMarker (String marker_database_Id, String marker_descriptor)
 JNI SaveLocalMarker.
 
static native boolean DeleteLocalMarker (String marker_database_Id, boolean remove_file)
 JNI DeleteLocalMarker.
 
static native ByteBuffer GetServerBuffer ()
 JNI GetServerBuffer.
 
static native int UpdateServerBuffer ()
 JNI UpdateServerBuffer.
 
static native boolean ForceMarkerSearch (String marker_database_Id)
 JNI ForceMarkerSearch.
 
static native boolean ForceMarkerSearchInternalId (int marker_internal_Id)
 JNI ForceMarkerSearchInternalId.
 
static native void ForceInitCameraGL (int cameraWidth, int cameraHeight)
 JNI ForceInitCameraGL.
 
static native void RenderCameraGL (int viewportWidth, int viewportHeight, int angle)
 JNI RenderCameraGL.
 
static native void UpdateCameraTexture (ByteBuffer outputCameraBuffer)
 JNI UpdateCameraTexture.
 
static native int [] GetActiveMarkersInternalIDs ()
 JNI GetActiveMarkersInternalIDs.
 
static native boolean IsTrackingName (String marker_database_Id)
 JNI IsTrackingName.
 
static native boolean IsTrackingInternalID (int marker_internal_Id)
 JNI IsTrackingInternalID.
 
static native float GetMarkerWidthName (String marker_database_Id)
 JNI GetMarkerWidthName.
 
static native float GetMarkerWidthInternalID (int marker_internal_Id)
 JNI GetMarkerWidthInternalID.
 
static native float GetMarkerHeightName (String marker_database_Id)
 JNI GetMarkerHeightName.
 
static native float GetMarkerHeightInternalID (int marker_internal_Id)
 JNI GetMarkerHeightInternalID.
 
static native void GetMarkerPoseName (String marker_database_Id, float[] output)
 JNI GetMarkerPoseName.
 
static native void GetMarkerPoseInternalID (int marker_internal_Id, float[] output)
 JNI GetMarkerPoseInternalID.
 
static native void GetProjectionMatrix (float[] output)
 JNI GetProjectionMatrix.
 
static native void DecryptCalibParams (byte[] data, float[] params)
 JNI DecryptCalibParams.
 
static void SetRecognitionManager (RecognitionManager recognitionManager)
 Set the current recognition managerr.
 
static Marker GetMarkerByDatabaseId (String marker_database_id)
 get local marker data
 
static void LocalMarkerFound (int marker_internal_id, String marker_database_Id)
 callback from the JNI on marker recognition
 
static void LocalMarkerNotFound ()
 callback from the JNI when no local(loaded in RAM) marker has been found
 
static void MarkerTrackingLost (int marker_internal_id, String marker_database_Id)
 callback from the JNI when a marker has just lost tracking
 
static void MarkerEngineToUpdate (int marker_internal_id, String marker_database_Id)
 callback from the JNI when the SDK cannot load marker made with newer versions of the SDK
 
static void ARLogoFound (int marker_internal_id, String marker_database_Id, int code)
 callback from the JNI when an ARLogo has been found
 
static native boolean CheckLicense (AssetManager assetManager)
 JNI Security.
 
static native String CreateServerSignature (String method, String body, String date, String path)
 JNI support function, security, server signature for https reuqests.
 
static void UpdateModelViewMatrix ()
 update the pose matrix of the tracked marker. Currently only one marke rat a time is supported
 
static boolean IsTracking ()
 is the system tracking something
 
static Marker CurrentMarker ()
 get the current tracked marker
 
static float [] ProjectionMatrix ()
 get the current projection matrix
 
static float [] ModelViewMatrix ()
 get the current pose matrix
 

Static Protected Member Functions

static float [] eye4x4 ()
 support function, identity matrix
 

Static Protected Attributes

static final Object _marker_mutex = new Object()
 mutex object.
 
static float [] _projectionMatrix = eye4x4()
 the current projection matrix