public static class FacePatchFeature.Extractor extends Object implements FacialFeatureExtractor<FacePatchFeature,KEDetectedFace>
FacialFeatureExtractor for producing FacialFeatures| Constructor and Description |
|---|
Extractor()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
FacePatchFeature |
extractFeature(KEDetectedFace 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()
public FacePatchFeature extractFeature(KEDetectedFace face)
FeatureExtractorextractFeature in interface FeatureExtractor<FacePatchFeature,KEDetectedFace>face - the object to extract frompublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to out