| | |
| | | /*
|
| | | * FaceSDK Library Interface
|
| | | * Copyright (C) 2015 Luxand, Inc.
|
| | | */
|
| | |
|
| | | package com.luxand;
|
| | |
|
| | | public class FSDK
|
| | |
| | | System.loadLibrary("stlport_shared");
|
| | | System.loadLibrary("fsdk");
|
| | | }
|
| | | |
| | | |
| | | // Error codes
|
| | | |
| | |
|
| | | public static final int FSDKE_OK = 0;
|
| | | public static final int FSDKE_FAILED = -1;
|
| | | public static final int FSDKE_NOT_ACTIVATED = -2;
|
| | |
| | | public static final int FSDKE_UNSUPPORTED_TEMPLATE_VERSION = -26;
|
| | | public static final int FSDKE_CAMERA_INDEX_DOES_NOT_EXIST = -27;
|
| | |
|
| | | |
| | | |
| | | // Facial feature count
|
| | | |
| | |
|
| | | public static final int FSDK_FACIAL_FEATURE_COUNT = 66;
|
| | |
|
| | | |
| | | // Types
|
| | | |
| | |
|
| | | public static class FSDK_VIDEOCOMPRESSIONTYPE {
|
| | | public static final int FSDK_MJPEG = 0;
|
| | | public int type;
|
| | |
| | | public int mode;
|
| | | }
|
| | |
|
| | | public static class HImage { //to pass himage "by reference"
|
| | | public static class HImage {
|
| | | protected int himage;
|
| | | }
|
| | |
|
| | | public static class HCamera { //to pass hcamera "by reference"
|
| | | public static class HCamera {
|
| | | protected int hcamera;
|
| | | }
|
| | |
|
| | |
| | | public byte template[] = new byte[13324];
|
| | | }
|
| | |
|
| | | |
| | | // Facial features
|
| | |
|
| | | public static final int FSDKP_LEFT_EYE = 0;
|
| | | public static final int FSDKP_RIGHT_EYE = 1;
|
| | |
| | |
|
| | |
|
| | | public static native int ActivateLibrary(String LicenseKey);
|
| | | //public static native int GetHardware_ID(String HardwareID[]); //not implemented
|
| | | public static native int GetLicenseInfo(String LicenseInfo[]);
|
| | | public static native int SetNumThreads(int Num);
|
| | | public static native int GetNumThreads(int Num[]);
|