In this project, the user uploads an image and receives an NSFW/SFW status with a given likelihood. If the probability of NSFW is greater than 85%, the image is classified as NSFW.
For more information about the awesome Clarifai API, check out developer.clarifai.com!
Building and Running
To build this project, you need Xcode 7 and CocoaPods. To build and run:
- Install dependencies and generate workspace.
- Open the workspace in Xcode
open ClarifaiApiDemo.xcworkspace
-
Go to developer.clarifai.com/applications, click on your application, then copy the "Client ID" and "Client Secret" values (if you don't already have an account or application, you'll need to create them first).
Replace the values of
clarifaiClientIDandclarifaiClientSecretin Credentials.swift with the ones you copied. -
Press the "Play" button in the toolbar to build, install, and run the app.
