Q - Type of detected facepublic static class LtpDtFeature.Extractor<Q extends DetectedFace> extends Object implements FacialFeatureExtractor<LtpDtFeature,Q>
FacialFeatureExtractor for extracting LtpDtFeatures.| Modifier | Constructor and Description |
|---|---|
protected |
Extractor() |
|
Extractor(FaceAligner<Q> aligner,
LTPWeighting weighting)
Construct the extractor with the given face aligner and weighting scheme.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
LtpDtFeature |
extractFeature(Q detectedFace)
Extract features from an object and return them.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
String |
toString() |
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
protected Extractor()
public Extractor(FaceAligner<Q> aligner, LTPWeighting weighting)
aligner - the aligner.weighting - the weighting scheme.public LtpDtFeature extractFeature(Q detectedFace)
FeatureExtractorextractFeature in interface FeatureExtractor<LtpDtFeature,Q extends DetectedFace>detectedFace - 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