net.gdface.cassdk.jna.THFaceImageLibrary Maven / Gradle / Ivy
package net.gdface.cassdk.jna;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.NativeLibrary;
import com.sun.jna.Pointer;
import com.sun.jna.PointerType;
import java.nio.ByteBuffer;
import net.gdface.cassdk.jna.tagPOINT.ByValue;
/**
* JNA Wrapper for library THFaceImage
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public interface THFaceImageLibrary extends Library {
public static final String JNA_LIBRARY_NAME = "THFaceImage";
public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(THFaceImageLibrary.JNA_LIBRARY_NAME);
public static final THFaceImageLibrary INSTANCE = (THFaceImageLibrary)Native.loadLibrary(THFaceImageLibrary.JNA_LIBRARY_NAME, THFaceImageLibrary.class);
/**
* API define//////
* Original signature : int THFI_Create(short, THFI_Param*)
* native declaration : include\THFaceImage_i.h:73
*/
int THFI_Create(short nChannelNum, THFI_Param pParam);
/**
* The THFI_Create function will initialize the algorithm engine module
* Parameters:
* nChannelNum[intput],algorithm channel num,for multi-thread mode,one thread uses one channel
* pParam[input],algorithm engine parameter.
* Return Values:
* If the function succeeds, the return value is valid channel number.
* If the function fails, the return value is zero or negative;
* error code:
* -99,invalid license.
* Remarks:
* This function only can be called one time at program initialization.
* Original signature : int THFI_DetectFace(short, BYTE*, int, int, int, THFI_FacePos[], int, int)
* native declaration : include\THFaceImage_i.h:89
*/
int THFI_DetectFace(short nChannelID, ByteBuffer pImage, int bpp, int nWidth, int nHeight, THFI_FacePos pfps[], int nMaxFaceNums, int nSampleSize);
/**
* The THFI_Create function will initialize the algorithm engine module
* Parameters:
* nChannelNum[intput],algorithm channel num,for multi-thread mode,one thread uses one channel
* pParam[input],algorithm engine parameter.
* Return Values:
* If the function succeeds, the return value is valid channel number.
* If the function fails, the return value is zero or negative;
* error code:
* -99,invalid license.
* Remarks:
* This function only can be called one time at program initialization.
* Original signature : int THFI_DetectFace(short, BYTE*, int, int, int, THFI_FacePos[], int, int)
* native declaration : include\THFaceImage_i.h:89
*/
int THFI_DetectFace(short nChannelID, Pointer pImage, int bpp, int nWidth, int nHeight, THFI_FacePos pfps[], int nMaxFaceNums, int nSampleSize);
/**
* The THFI_DetectFace function execute face detection only.
* Parameters:
* nChannelID[input],channel ID(from 0 to nChannelNum-1)
* pImage[input],image data buffer,RGB24 format.
* bpp[input],bits per pixel(24-RGB24 image),must be 24
* nWidth[input],image width.
* nHeight[input],image height.
* pfps[output],the facial position information.
* nMaxFaceNums[input],max face nums that you want
* nSampleSize[input],down sample size(image down sample) for detect image,if it is 0,will detect by original image.
* Return Values:
* If the function succeeds, the return value is face number.
* If the function fails, the return value is negative.
* error code:
* -99,invalid license.
* -1,nChannelID is invalid or SDK is not initialized
* -2,image data is invalid,please check function parameter:pImage,bpp,nWidth,nHeight
* -3,pfps or nMaxFaceNums is invalid.
* Remarks:
* 1.image data buffer(pImage) size must be nWidth*(bpp/8)*nHeight.
* 2.pfps must be allocated by caller,the memory size is nMaxFaceNums*sizeof(THFI_FacePos).
* 3.if image has face(s),face number less than or equal to nMaxFaceNums
* Original signature : int THFI_DetectFaceByEye(short, BYTE*, int, int, POINT, POINT, THFI_FacePos*)
* native declaration : include\THFaceImage_i.h:116
*/
int THFI_DetectFaceByEye(short nChannelID, ByteBuffer pImage, int nWidth, int nHeight, ByValue ptLeft, ByValue ptRight, THFI_FacePos pfps);
/**
* The THFI_DetectFaceByEye function detect facial data by eye position
* Parameters:
* pImage[input],image data buffer,rgb24 format,pImage data size must be nWidth*nHeight*3 bytes
* nWidth[input],image width.
* nHeight[input],image height.
* ptLeft[input],left eye position
* ptRight[input],right eye position
* pfps[output],the facial position information.
* Return Values:
* If the function succeeds, the return value is 1.
* If the function fails, the return value is negative.
* error code:
* -99,invalid license.
* -1,nChannelID is invalid or SDK is not initialize
* -2,image data is invalid,please check function parameter:pImage,bpp,nWidth,nHeight
* -3,pfps or nMaxFaceNums is invalid.
* Original signature : void THFI_Release()
* native declaration : include\THFaceImage_i.h:137
*/
void THFI_Release();
/**
* The THFI_Release function will release the algorithm engine module
* Parameters:
* No parameter.
* Return Values:
* No return value.
* Remarks:
* This function only can be called one time at program exit.
* Original signature : int THFI_Create_Ex(short, THFI_Param_Ex*)
* native declaration : include\THFaceImage_i.h:149
*/
int THFI_Create_Ex(short nChannelNum, THFI_Param_Ex pParam);
public static class DWORD_PTR extends PointerType {
public DWORD_PTR(Pointer address) {
super(address);
}
public DWORD_PTR() {
super();
}
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy