This library is being deprecated in favor of the Clarifai Apple SDK.
Clarifai Objective-C Client
A client for iOS apps using the Clarifai V2 API.
- Sign up for a free developer account at: https://developer.clarifai.com/signup/
- Read the developer guide at: https://developer.clarifai.com/guide/
- Read the full Objective-C docs at: http://cocoadocs.org/docsets/Clarifai/
The Clarifai API client can be easily installed with CocoaPods. For more details on setting up CocoaPods, go here. To integrate Clarifai into your project, simply add the following to your Podfile:
Create a new XCode project, or use a current one.
Add Clarifai to your Podfile and generate workspace.
Import ClarifaiApp.h and any other classes you need.
Go to developer.clarifai.com/applications, click on your application, then copy your app's API Key (if you don't already have an account or application, you'll need to sign up first).
Create your Clarifai application in your project.
ClarifaiApp *app = [[ClarifaiApp alloc] initWithApiKey:@""];
That's it! Explore the API docs and guide.
NOTE- to use Clarifai in Swift, make sure to add use_frameworks! to your podfile and import into any swift file using:
The most recent docs can be found here on Cocoadocs.
Install dependencies and generate workspace from inside the Example folder.
Open the workspace in Xcode
Add your API Key to the
recognizeImagemethod in RecognitionViewController.m.
Press the "Play" button in the toolbar to build, install, and run the app.