ImageClassifier

public class ImageClassifier

Nudity detection is implemented in this class.

  • Class function to get the single instance of this class.

    Declaration

    Swift

    public class func sharedInstance() -> ImageClassifier

    Return Value

    The singleton instance of the class.

  • Detects nudity in an image.

    Declaration

    Swift

    public func containsNudity(image: UIImage) -> Bool

    Return Value

    true if the image contains nudity, false otherwise. *

  • Detects nudity in an image.

    Declaration

    Swift

    public func analyseImage(image: UIImage) -> [NudityClass : Float]

    Return Value

    A dictionary containing a score for some NudityClass values. The values contiained in the map sum to 1.