IMAGE
- The type of imagepublic class IdentityFaceDetector<IMAGE extends Image<?,IMAGE>> extends Object implements FaceDetector<DetectedFace,IMAGE>
DetectedFace
object.
This class is only likely to be useful for performing evaluations of techniques that use datasets where a face has already been extracted/cropped into an image.
Constructor and Description |
---|
IdentityFaceDetector() |
Modifier and Type | Method and Description |
---|---|
byte[] |
binaryHeader()
Header for binary input.
|
List<DetectedFace> |
detectFaces(IMAGE image)
Detect faces in the image and return a list of faces found.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
String |
toString() |
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public IdentityFaceDetector()
public 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 outpublic List<DetectedFace> detectFaces(IMAGE image)
FaceDetector
detectFaces
in interface FaceDetector<DetectedFace,IMAGE extends Image<?,IMAGE>>
image
- Image to search in