Ansel_FacesFace recognition class
$Horde: ansel/lib/Faces.php,v 1.18.2.7 2009/09/29 14:58:11 mrubinsk Exp $
Located in /lib/Faces.php (line 10)
| Class | Description |
|---|---|
Ansel_Faces_facedetect
|
Face_detect implementation |
Ansel_Faces_opencv
|
OpenCV implementation |
mixed
createView
(integer $face_id, &$image, integer $x1, integer $y1, integer $x2, integer $y2, integer $image)
binary
getSignatureMatches
(binary $signature, [ $face_id = 0], [integer $from = 0], [integer $count = 0])
array
saveCustomFace
(integer $face_id, integer $image, integer $x1, integer $y1, integer $x2, integer $y2, [string $name = ''])
static delete (line 879)
Delete faces from VFS and DB storage.
static getExtension (line 509)
Get filename extension
static getFaceTile (line 1090)
Output HTML for this face's tile
static getLink (line 941)
Get face link. Points to the image that this face is from.
static getVFSPath (line 499)
Get image path
allFaces (line 285)
Get all faces
Note: I removed the 'random' parameter since it won't work across different RDBMS and it's incredibly resource intensive as it causes the RDBMS to generate a rand() number for each row and THEN sort the table by those numbers.
autogenerate (line 62)
Tell if the driver can auto generate faces
countAllFaces (line 354)
Count all faces
countNamedFaces (line 362)
Get named faces
countOwnerFaces (line 341)
Get faces owned by owner
countSearchFaces (line 373)
Seach faces for a name
createView (line 724)
Create a face image from the given data.
factory (line 29)
Create instance
getFaceById (line 955)
Get face data
getFaceImageObject (line 436)
Get a Horde_Image object representing the requested face.
getFaces (line 91)
Get all the coordinates for faces in an image.
getFaceUrl (line 473)
Get a URL for a face image suitable for using as the src attribute in an image tag.
getFromGallery (line 841)
Get faces for all images in a gallery
getFromPicture (line 625)
Look for and save faces in a picture, and optionally create the face image.
getGalleryFaces (line 186)
Get existing faces data for an entire gallery.
getImageFacesData (line 140)
Get existing faces data from storage for the given image.
Used if we need to build the face image at some point after it is detected.
getSignatureFromFile (line 820)
Get an image signature from an arbitrary file. Currently used when searching for faces that appear in a user-supplied image.
getSignatureMatches (line 1020)
Get possible matches from sql index
namedFaces (line 297)
Get named faces
ownerFaces (line 310)
Get faces owned by user
saveCustomFace (line 532)
Associates a given rectangle with the given image and creates the face image. Used for setting a face range explicitly.
saveSignature (line 756)
Get get face signature from an existing face image.
searchFaces (line 330)
Seach faces for a name
setName (line 919)
Set face name
singleton (line 15)
Attempts to return a reference to a concrete Ansel_Faces instance.
viewExists (line 396)
Checks to see that a given face image exists in the VFS.
If $create is true, the image is created if it does not exist. Otherwise false is returned if the image does not exist. True is returned both if the image already existed OR if it did not exist, but was successfully created.
_countFaces (line 260)
Count faces
_fetchFaces (line 219)
Fetchs all faces from all galleries the current user has READ access to?
_getFaces (line 79)
Get faces
_getSignatureMatches (line 1081)
Compare faces by similarity.
Documentation generated on Sun, 30 Jan 2011 05:08:46 +0000 by phpDocumentor 1.4.3