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() -> ImageClassifierReturn Value
The singleton instance of the class.
-
Detects nudity in an image.
Declaration
Swift
public func containsNudity(image: UIImage) -> BoolReturn Value
trueif the image contains nudity,falseotherwise. * -
Detects nudity in an image.
Declaration
Swift
public func analyseImage(image: UIImage) -> [NudityClass : Float]Return Value
A dictionary containing a score for some
NudityClassvalues. The values contiained in the map sum to 1.
ImageClassifier Class Reference