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) -> ImageAgeEstimationResult

    Parameters

    image

    UIImage used for estimation. Expected to not be cropped and contain a single face.

    useAntiSpoof

    True is anti-spoof measures should be used. Check the isSpoof() method of the resulting ImageAgeEstimationResult for spoof result.

    Return Value

    An ImageAgeEstimationResult with estimated age, make sure isValid() is true before using the result.

  • Declaration

    Swift

    public func estimateAge(images: [UIImage], useAntiSpoof: Bool = true) -> ImageAgeEstimationResult

    Parameters

    images

    A list of UIImage used for estimation. Expected to not be cropped and contain a single face.

    useAntiSpoof

    True is anti-spoof measures should be used. Check the isSpoof() method of the resulting ImageAgeEstimationResult for spoof result.

    Return Value

    An ImageAgeEstimationResult with estimated age, make sure isValid() is true before using the result.