package org.springblade.openinterface.nrtms.beans;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class FaceCompareInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer OriginW;
	private Integer OriginH;
	private List<SnapObj> Snap;

	@Data
	public static class SnapObj implements Serializable{
		private static final long serialVersionUID = 1L;
		private Integer Score;
		private TemperatureOfSnapObj Temperature;
		private Integer OpenType;
		private FaceInImgOfSnapObj FaceInImg;
		private String Time;
		private Integer Id;
		private String CardId;
		private EmaskOfSnapObj Emask;
		private Integer IsOpen;
		private MatchOfSnapObj Match;

	}

	@Data
	public static class TemperatureOfSnapObj implements Serializable{
		private static final long serialVersionUID = 1L;
		private Integer Type;
		private String Temp;
		private Integer Valid;
	}

	@Data
	public static class FaceInImgOfSnapObj implements Serializable{
		private static final long serialVersionUID = 1L;
		private RgnOfFaceInImg Rgn;
		private String imgName;
		private Integer[] Marks;
		private ImgSizeOfFaceInImg ImgSize;
	}

	@Data
	public static class RgnOfFaceInImg implements Serializable{
		private static final long serialVersionUID = 1L;
		private Integer w;
		private Integer x;
		private Integer h;
		private Integer y;
	}

	@Data
	public static class ImgSizeOfFaceInImg implements Serializable{
		private static final long serialVersionUID = 1L;
		private Integer w;
		private Integer h;
	}

	@Data
	public static class EmaskOfSnapObj implements Serializable{
		private static final long serialVersionUID = 1L;
		private Integer Type;
	}

	@Data
	public static class MatchOfSnapObj implements Serializable{
		private static final long serialVersionUID = 1L;
		private Integer Similarity;
		private String RegPic;
		private String Id;
		private String Feature;
		private String Name;
	}

}
