\Ansel_Faces

Face recognition class

Copyright 2007-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
delete()
getVFSPath()
getExtension()
getLink()
getFaceTile()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

delete()

delete(\Ansel_Image  $image, integer  $face = null) 

Delete faces from VFS and DB storage.

Parameters

\Ansel_Image $image

Image object to delete faces for

integer $face

Face id. If empty, all faces for $image are removed

Throws

\Ansel_Exception

getVFSPath()

getVFSPath(integer  $image) 

Get image path

Parameters

integer $image

Image ID to get

getExtension()

getExtension() 

Get filename extension

getLink()

getLink(array  $face) : string

Get face link. Points to the image that this face is from.

Parameters

array $face

Face data

Returns

string —

The url for the image this face belongs to.

getFaceTile()

getFaceTile(integer  $face) : string

Generate HTML for a face's tile

Parameters

integer $face

The face id.

Returns

string —

The generated HTML