ImageAgeDetector
public class ImageAgeDetector
Class managing the estimation of age using single or multiple images.
-
Undocumented
Declaration
Swift
public init() -
Declaration
Swift
public func estimateAge(image: UIImage, useAntiSpoof: Bool = true) -> ImageAgeEstimationResultParameters
imageUIImage used for estimation. Expected to not be cropped and contain a single face.
useAntiSpoofTrue is anti-spoof measures should be used. Check the
isSpoof()method of the resultingImageAgeEstimationResultfor spoof result.Return Value
An
ImageAgeEstimationResultwith estimated age, make sureisValid()istruebefore using the result. -
Declaration
Swift
public func estimateAge(images: [UIImage], useAntiSpoof: Bool = true) -> ImageAgeEstimationResultParameters
imagesA list of UIImage used for estimation. Expected to not be cropped and contain a single face.
useAntiSpoofTrue is anti-spoof measures should be used. Check the
isSpoof()method of the resultingImageAgeEstimationResultfor spoof result.Return Value
An
ImageAgeEstimationResultwith estimated age, make sureisValid()istruebefore using the result.
ImageAgeDetector Class Reference