T
- Type of DetectedFace
public static class FaceImageFeature.Extractor<T extends DetectedFace> extends Object implements FacialFeatureExtractor<FaceImageFeature,T>
FacialFeatureExtractor
for producing FaceImageFeature
s.Constructor and Description |
---|
Extractor()
Construct with a
ScalingAligner with its default resolution |
Extractor(FaceAligner<T> aligner)
Construct with an aligner
|
Modifier and Type | Method and Description |
---|---|
byte[] |
binaryHeader()
Header for binary input.
|
FaceImageFeature |
extractFeature(T face)
Extract features from an object and return them.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public Extractor()
ScalingAligner
with its default resolutionpublic Extractor(FaceAligner<T> aligner)
aligner
- the alignerpublic FaceImageFeature extractFeature(T face)
FeatureExtractor
extractFeature
in interface FeatureExtractor<FaceImageFeature,T extends DetectedFace>
face
- the object to extract frompublic void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to out