public class FaceImageInfo extends AbstractImageInfo
Modifier and Type | Class and Description |
---|---|
static class |
FaceImageInfo.Expression
Expression code based on Section 5.5.7 of ISO 19794-5.
|
static class |
FaceImageInfo.EyeColor
Eye color code based on Section 5.5.4 of ISO 19794-5.
|
static class |
FaceImageInfo.FaceImageType
Face image type code based on Section 5.7.1 of ISO 19794-5.
|
static class |
FaceImageInfo.FeaturePoint
Feature points as described in Section 5.6.3 of ISO/IEC FCD 19794-5.
|
static class |
FaceImageInfo.Features
Feature flags meaning based on Section 5.5.6 of ISO 19794-5.
|
static class |
FaceImageInfo.HairColor
Hair color code based on Section 5.5.5 of ISO 19794-5.
|
static class |
FaceImageInfo.ImageColorSpace
Color space code based on Section 5.7.4 of ISO 19794-5.
|
static class |
FaceImageInfo.ImageDataType
Image data type code based on Section 5.7.2 of ISO 19794-5.
|
static class |
FaceImageInfo.SourceType
Source type based on Section 5.7.6 of ISO 19794-5.
|
JPEG_MIME_TYPE, JPEG2000_MIME_TYPE, TYPE_FINGER, TYPE_IRIS, TYPE_PORTRAIT, TYPE_SIGNATURE_OR_MARK, WSQ_MIME_TYPE
Constructor and Description |
---|
FaceImageInfo(net.sf.scuba.data.Gender gender,
FaceImageInfo.EyeColor eyeColor,
int featureMask,
int hairColor,
int expression,
int[] poseAngle,
int[] poseAngleUncertainty,
int faceImageType,
int colorSpace,
int sourceType,
int deviceType,
int quality,
FaceImageInfo.FeaturePoint[] featurePoints,
int width,
int height,
InputStream imageInputStream,
int imageLength,
int imageDataType)
Constructs a new face information data structure instance.
|
FaceImageInfo(InputStream inputStream)
Constructs a new face information structure from binary encoding.
|
Modifier and Type | Method and Description |
---|---|
int |
getColorSpace()
Gets the image color space
(rgb, grayscale, etc).
|
int |
getDeviceType()
Gets the device type.
|
int |
getExpression()
Gets the expression
(neutral, smiling, eyebrow raised, etc).
|
FaceImageInfo.EyeColor |
getEyeColor()
Gets the eye color
(black, blue, brown, etc).
|
int |
getFaceImageType()
Gets the face image type
(full frontal, token frontal, etc).
|
int |
getFeatureMask()
Gets the feature mask.
|
FaceImageInfo.FeaturePoint[] |
getFeaturePoints()
Gets the available feature points of this face.
|
net.sf.scuba.data.Gender |
getGender()
Gets the gender
(male, female, etc).
|
int |
getHairColor()
Gets the hair color
(bald, black, blonde, etc).
|
int |
getImageDataType()
Gets the image data type.
|
int[] |
getPoseAngle()
Gets the pose angle as an integer array of length 3,
containing yaw, pitch, and roll angle in encoded form.
|
int[] |
getPoseAngleUncertainty()
Gets the pose angle uncertainty as an integer array of length 3,
containing yaw, pitch, and roll angle uncertainty.
|
int |
getQuality()
Gets the quality as unsigned integer.
|
long |
getRecordLength()
Gets the record length.
|
int |
getSourceType()
Gets the source type
(camera, scanner, etc).
|
protected void |
readObject(InputStream inputStream) |
String |
toString()
Generates a textual representation of this object.
|
void |
writeObject(OutputStream outputStream)
Writes this face image info to output stream.
|
equals, getEncoded, getHeight, getImageInputStream, getImageLength, getMimeType, getType, getWidth, hashCode, readImage, setHeight, setImageBytes, setMimeType, setType, setWidth, writeImage
public static final int EYE_COLOR_UNSPECIFIED
public static final int EYE_COLOR_BLACK
public static final int EYE_COLOR_BLUE
public static final int EYE_COLOR_BROWN
public static final int EYE_COLOR_GRAY
public static final int EYE_COLOR_GREEN
public static final int EYE_COLOR_MULTI_COLORED
public static final int EYE_COLOR_PINK
public static final int EYE_COLOR_UNKNOWN
public static final int HAIR_COLOR_UNSPECIFIED
public static final int HAIR_COLOR_BALD
public static final int HAIR_COLOR_BLACK
public static final int HAIR_COLOR_BLONDE
public static final int HAIR_COLOR_BROWN
public static final int HAIR_COLOR_GRAY
public static final int HAIR_COLOR_WHITE
public static final int HAIR_COLOR_RED
public static final int HAIR_COLOR_GREEN
public static final int HAIR_COLOR_BLUE
public static final int HAIR_COLOR_UNKNOWN
public static final short EXPRESSION_UNSPECIFIED
public static final short EXPRESSION_NEUTRAL
public static final short EXPRESSION_SMILE_CLOSED
public static final short EXPRESSION_SMILE_OPEN
public static final short EXPRESSION_RAISED_EYEBROWS
public static final short EXPRESSION_EYES_LOOKING_AWAY
public static final short EXPRESSION_SQUINTING
public static final short EXPRESSION_FROWNING
public static final int FACE_IMAGE_TYPE_BASIC
public static final int FACE_IMAGE_TYPE_FULL_FRONTAL
public static final int FACE_IMAGE_TYPE_TOKEN_FRONTAL
public static final int IMAGE_DATA_TYPE_JPEG
public static final int IMAGE_DATA_TYPE_JPEG2000
public static final int IMAGE_COLOR_SPACE_UNSPECIFIED
public static final int IMAGE_COLOR_SPACE_RGB24
public static final int IMAGE_COLOR_SPACE_YUV422
public static final int IMAGE_COLOR_SPACE_GRAY8
public static final int IMAGE_COLOR_SPACE_OTHER
public static final int SOURCE_TYPE_UNSPECIFIED
public static final int SOURCE_TYPE_STATIC_PHOTO_UNKNOWN_SOURCE
public static final int SOURCE_TYPE_STATIC_PHOTO_DIGITAL_CAM
public static final int SOURCE_TYPE_STATIC_PHOTO_SCANNER
public static final int SOURCE_TYPE_VIDEO_FRAME_UNKNOWN_SOURCE
public static final int SOURCE_TYPE_VIDEO_FRAME_ANALOG_CAM
public static final int SOURCE_TYPE_VIDEO_FRAME_DIGITAL_CAM
public static final int SOURCE_TYPE_UNKNOWN
public FaceImageInfo(net.sf.scuba.data.Gender gender, FaceImageInfo.EyeColor eyeColor, int featureMask, int hairColor, int expression, int[] poseAngle, int[] poseAngleUncertainty, int faceImageType, int colorSpace, int sourceType, int deviceType, int quality, FaceImageInfo.FeaturePoint[] featurePoints, int width, int height, InputStream imageInputStream, int imageLength, int imageDataType) throws IOException
gender
- gendereyeColor
- eye colorfeatureMask
- feature mask (least significant 3 bytes)hairColor
- hair colorexpression
- expressionposeAngle
- (encoded) pose angleposeAngleUncertainty
- pose angle uncertaintyfaceImageType
- face image typecolorSpace
- color spacesourceType
- source typedeviceType
- capture device type (unspecified is 0x00
)quality
- qualityfeaturePoints
- feature pointswidth
- widthheight
- heightimageInputStream
- encoded image bytesimageLength
- length of encoded imageimageDataType
- either IMAGE_DATA_TYPE_JPEG or IMAGE_DATA_TYPE_JPEG2000IOException
- on error reading inputpublic FaceImageInfo(InputStream inputStream) throws IOException
inputStream
- an input streamIOException
- if input cannot be readprotected void readObject(InputStream inputStream) throws IOException
readObject
in class AbstractImageInfo
IOException
public void writeObject(OutputStream outputStream) throws IOException
writeObject
in class AbstractImageInfo
outputStream
- an output streamIOException
- if writing failspublic long getRecordLength()
getRecordLength
in interface ImageInfo
getRecordLength
in class AbstractImageInfo
public FaceImageInfo.FeaturePoint[] getFeaturePoints()
public int getExpression()
public FaceImageInfo.EyeColor getEyeColor()
public net.sf.scuba.data.Gender getGender()
public int getHairColor()
public int getFaceImageType()
public int getFeatureMask()
public int getQuality()
public int getSourceType()
public int getImageDataType()
public int getColorSpace()
public int getDeviceType()
public int[] getPoseAngle()
public int[] getPoseAngleUncertainty()
public String toString()
toString
in class AbstractImageInfo
Object.toString()
Copyright © 2016. All rights reserved.