@Reference(type=Inproceedings, author={"Mark Everingham","Josef Sivic","Andrew Zisserman"}, title="Hello! My name is... Buffy - Automatic naming of characters in TV video", year="2006", booktitle="In BMVC") public class FKEFaceDetector extends Object implements FaceDetector<KEDetectedFace,FImage>
Implementation and data is based on Mark Everingham's Oxford VGG Baseline Face Processing Code
| Modifier and Type | Field and Description |
|---|---|
protected FaceDetector<? extends DetectedFace,FImage> |
faceDetector |
protected FacialKeypointExtractor |
facialKeypointExtractor |
| Constructor and Description |
|---|
FKEFaceDetector()
Default constructor.
|
FKEFaceDetector(FaceDetector<? extends DetectedFace,FImage> detector)
Construct with the given underlying (frontal) face detector.
|
FKEFaceDetector(FaceDetector<? extends DetectedFace,FImage> detector,
float patchScale)
Construct with the given underlying (frontal) face detector, and the
given scale-factor for extracting the face patch.
|
FKEFaceDetector(float patchScale)
Default constructor.
|
FKEFaceDetector(int size)
Construct with a standard
HaarCascadeDetector and the given
minimum search size. |
FKEFaceDetector(int size,
float patchScale)
Construct with a standard
HaarCascadeDetector and the given
minimum search size, and the given scale-factor for extracting the face
patch. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
List<KEDetectedFace> |
detectFaces(FImage image)
Detect faces in the image and return a list of faces found.
|
static FImage |
extractPatch(FImage image,
Jama.Matrix transform,
int size,
int border)
Extract a patch from the image based on the parameters.
|
int |
hashCode() |
static FImage |
pyramidResize(FImage image,
Jama.Matrix transform)
Resize the image using a pyramid.
|
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 FaceDetector<? extends DetectedFace,FImage> faceDetector
protected FacialKeypointExtractor facialKeypointExtractor
public FKEFaceDetector()
HaarCascadeDetector with a
minimum search size of 80 pixels.public FKEFaceDetector(int size)
HaarCascadeDetector and the given
minimum search size.size - minimum detection size.public FKEFaceDetector(float patchScale)
HaarCascadeDetector with a
minimum search size of 80 pixels, and the given scale-factor for
extracting the face patch.patchScale - the scale of the patch compared to the patch extracted by the
internal detector.public FKEFaceDetector(int size, float patchScale)
HaarCascadeDetector and the given
minimum search size, and the given scale-factor for extracting the face
patch.patchScale - the scale of the patch compared to the patch extracted by the
internal detector.size - minimum detection size.public FKEFaceDetector(FaceDetector<? extends DetectedFace,FImage> detector)
detector - the face detector.public FKEFaceDetector(FaceDetector<? extends DetectedFace,FImage> detector, float patchScale)
patchScale - the scale of the patch compared to the patch extracted by the
internal detector.detector - the face detector.public static FImage pyramidResize(FImage image, Jama.Matrix transform)
image - the imagetransform - the resize transformpublic static FImage extractPatch(FImage image, Jama.Matrix transform, int size, int border)
image - the imagetransform - the transformsize - the patch sizeborder - the size of the borderpublic List<KEDetectedFace> detectFaces(FImage image)
FaceDetectordetectFaces in interface FaceDetector<KEDetectedFace,FImage>image - Image to search inpublic 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