net.gdface.cassdk.jna.THFI_FacePos Maven / Gradle / Ivy
package net.gdface.cassdk.jna;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* native declaration : include\THFaceImage_i.h:24
* 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 class THFI_FacePos extends Structure {
/**
* coordinate of face
* C type : RECT
*/
public tagRECT rcFace;
/**
* coordinate of left eye
* C type : POINT
*/
public tagPOINT ptLeftEye;
/**
* coordinate of right eye
* C type : POINT
*/
public tagPOINT ptRightEye;
/**
* coordinate of mouth
* C type : POINT
*/
public tagPOINT ptMouth;
/**
* coordinate of nose
* C type : POINT
*/
public tagPOINT ptNose;
/**
* value of face angle
* C type : FaceAngle
*/
public FaceAngle fAngle;
/** quality of face(from 0 to 100) */
public int nQuality;
/**
* facial data
* C type : BYTE[512]
*/
public byte[] pFacialData = new byte[512];
public THFI_FacePos() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("rcFace", "ptLeftEye", "ptRightEye", "ptMouth", "ptNose", "fAngle", "nQuality", "pFacialData");
}
/**
* @param rcFace coordinate of face
* C type : RECT
* @param ptLeftEye coordinate of left eye
* C type : POINT
* @param ptRightEye coordinate of right eye
* C type : POINT
* @param ptMouth coordinate of mouth
* C type : POINT
* @param ptNose coordinate of nose
* C type : POINT
* @param fAngle value of face angle
* C type : FaceAngle
* @param nQuality quality of face(from 0 to 100)
* @param pFacialData facial data
* C type : BYTE[512]
*/
public THFI_FacePos(tagRECT rcFace, tagPOINT ptLeftEye, tagPOINT ptRightEye, tagPOINT ptMouth, tagPOINT ptNose, FaceAngle fAngle, int nQuality, byte pFacialData[]) {
super();
this.rcFace = rcFace;
this.ptLeftEye = ptLeftEye;
this.ptRightEye = ptRightEye;
this.ptMouth = ptMouth;
this.ptNose = ptNose;
this.fAngle = fAngle;
this.nQuality = nQuality;
if ((pFacialData.length != this.pFacialData.length))
throw new IllegalArgumentException("Wrong array size !");
this.pFacialData = pFacialData;
}
public THFI_FacePos(Pointer peer) {
super(peer);
}
public static class ByReference extends THFI_FacePos implements Structure.ByReference {
};
public static class ByValue extends THFI_FacePos implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy