All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.gdface.sdk.NotFaceDetectedException Maven / Gradle / Ivy

/**   
 * @Title: NotFaceDetected.java 
 * @Package net.gdface.exception 
 * @Description: TODO 
 * @author guyadong   
 * @date 2014-10-8 下午7:29:01 
 * @version V1.0   
 */
package net.gdface.sdk;

import net.gdface.exception.BaseFaceException;
/**
 * 没有提取到人脸特征码,或检测到的人脸数目不合要求
 * 
 * @author guyadong
 *
 */
public class NotFaceDetectedException extends BaseFaceException {
	/**
	 * 检测到的人脸数目
	 */
	private int faceNum=0;
	/**
	 * 提取到特征码的人脸数目
	 */
	private int codeNum=0;
	/**
	 * @param faceNum 检测到的人脸数目
	 */
	public NotFaceDetectedException(int faceNum) {
		this.faceNum = faceNum;
	}

	/**
	 * @param faceNum 检测到的人脸数目
	 * @param codeNum 提取到特征码的人脸数目
	 */
	public NotFaceDetectedException(int faceNum, int codeNum) {
		this.faceNum = faceNum;
		this.codeNum = codeNum;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 6334094601598027586L;

	public NotFaceDetectedException(Throwable cause) {
		super(cause);
	}

	/**
	 * 
	 */
	public NotFaceDetectedException() {
	}

	/**
	 * @param s
	 */
	public NotFaceDetectedException(String s) {
		super(s);
	}

	/**
	 * @param s
	 * @param cause
	 */
	public NotFaceDetectedException(String s, Throwable cause) {
		super(s, cause);
	}

	/**
	 * @return faceNum
	 */
	public int getFaceNum() {
		return faceNum;
	}

	/**
	 * @param faceNum 要设置的 faceNum
	 */
	public void setFaceNum(int faceNum) {
		this.faceNum = faceNum;
	}

	/**
	 * @return codeNum
	 */
	public int getCodeNum() {
		return codeNum;
	}

	/**
	 * @param codeNum 要设置的 codeNum
	 */
	public void setCodeNum(int codeNum) {
		this.codeNum = codeNum;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy