All Projects → Clarifai → Clarifai Apple Sdk

Clarifai / Clarifai Apple Sdk

Licence: other
Artificial Intelligence with a Vision

Projects that are alternatives of or similar to Clarifai Apple Sdk

Ultimatemrz Sdk
Machine-readable zone/travel document (MRZ / MRTD) detector and recognizer using deep learning
Stars: ✭ 66 (+43.48%)
Mutual labels:  artificial-intelligence, ai, sdk
Tenginekit
TengineKit - Free, Fast, Easy, Real-Time Face Detection & Face Landmarks & Face Attributes & Hand Detection & Hand Landmarks & Body Detection & Body Landmarks & Iris Landmarks & Yolov5 SDK On Mobile.
Stars: ✭ 2,103 (+4471.74%)
Mutual labels:  artificial-intelligence, ai, mobile
Practical Deep Learning Book
Official code repo for the O'Reilly Book - Practical Deep Learning for Cloud, Mobile & Edge
Stars: ✭ 441 (+858.7%)
Mutual labels:  artificial-intelligence, edge, mobile
Machine Learning Experiments
🤖 Interactive Machine Learning experiments: 🏋️models training + 🎨models demo
Stars: ✭ 841 (+1728.26%)
Mutual labels:  artificial-intelligence, ai
Riceteacatpanda
repo with challenge material for riceteacatpanda (2020)
Stars: ✭ 18 (-60.87%)
Mutual labels:  artificial-intelligence, ai
Tetrisai
The old school Tetris game in addition with an AI that learns evolutionary how to play this game
Stars: ✭ 22 (-52.17%)
Mutual labels:  artificial-intelligence, ai
Pygame Learning Environment
PyGame Learning Environment (PLE) -- Reinforcement Learning Environment in Python.
Stars: ✭ 828 (+1700%)
Mutual labels:  artificial-intelligence, ai
Awesome Unam
A curated list of awesome engineering ecosystem, including UNAM Projects
Stars: ✭ 10 (-78.26%)
Mutual labels:  artificial-intelligence, mobile
Autodl
Automated Deep Learning without ANY human intervention. 1'st Solution for AutoDL [email protected]
Stars: ✭ 854 (+1756.52%)
Mutual labels:  artificial-intelligence, ai
Voucherify Android Sdk
Android SDK for Voucherify - coupons, vouchers, promo codes
Stars: ✭ 13 (-71.74%)
Mutual labels:  sdk, mobile
Uphold Sdk Android
Uphold Android SDK
Stars: ✭ 32 (-30.43%)
Mutual labels:  sdk, mobile
Construct
JavaScript Digital Organisms simulator
Stars: ✭ 17 (-63.04%)
Mutual labels:  artificial-intelligence, ai
Awesome Ai Ml Dl
Awesome Artificial Intelligence, Machine Learning and Deep Learning as we learn it. Study notes and a curated list of awesome resources of such topics.
Stars: ✭ 831 (+1706.52%)
Mutual labels:  artificial-intelligence, ai
Sliding puzzle
Swift implementation of the Sliding Puzzle game with Iterative Deepening A* AI Solver.
Stars: ✭ 25 (-45.65%)
Mutual labels:  artificial-intelligence, ai
Redtail
Perception and AI components for autonomous mobile robotics.
Stars: ✭ 832 (+1708.7%)
Mutual labels:  artificial-intelligence, ai
Awesome Ai Books
Some awesome AI related books and pdfs for learning and downloading, also apply some playground models for learning
Stars: ✭ 855 (+1758.7%)
Mutual labels:  artificial-intelligence, ai
Ai Programmer
Using artificial intelligence and genetic algorithms to automatically write programs. Tutorial: http://www.primaryobjects.com/cms/article149
Stars: ✭ 948 (+1960.87%)
Mutual labels:  artificial-intelligence, ai
Letslearnai.github.io
Lets Learn AI
Stars: ✭ 33 (-28.26%)
Mutual labels:  artificial-intelligence, ai
Carrecognition
This is one of the best vehicle recognition applications. It can determine the car's license plate number, color, model, brand and year.
Stars: ✭ 34 (-26.09%)
Mutual labels:  artificial-intelligence, ai
Aoe
AoE (AI on Edge,终端智能,边缘计算) 是一个终端侧AI集成运行时环境 (IRE),帮助开发者提升效率。
Stars: ✭ 759 (+1550%)
Mutual labels:  ai, edge

Clarifai Apple SDK

Hello and welcome! This is the public repository of the Clarifai SDK for Apple platforms. We currently support iOS, but plans are in the works to expand.

Our vision at Clarifai is to answer every question. And with this SDK we can help you to bring power A.I. to mobile applications. Check our developer's site at https://developer.clarifai.com or contact us at [email protected] to learn more.

Getting started

Git LFS

Before we proceed with the installation, please make sure you have Git-LFS installed on your system. The binary contained in the framework is managed by GitHub using git-lfs.

If you don't have it installed yet, you can find details at: https://git-lfs.github.com. IF YOU DON'T HAVE GIT-LFS INSTALLED, THE SDK WILL NOT WORK.

Getting a developer account

Sign up for a free developer account at: https://developer.clarifai.com/signup/

The Clarifai-Apple-SDK is available via CocoaPods or can be installed manually. Follow the instructions below based on your preference.

CocoaPods

To integrate the SDK using CocoaPods, specify it in your Podfile:

target '<Your Target>' do
    platform :ios, '9.0'
    use_frameworks!

    pod 'Clarifai-Apple-SDK', '~> 3.0.0'
end

Install with:

# Use this option the first time you want to install the SDK in your project, but also every time you edit your Podfile to add, update or remove a pod.
pod install

or

# Use this option to find an updated version of the SDK. It will update the pod to the latest version possible, as long as it complies with restrictions in your Podfile
pod update

In the event an update is available, but not reflected in your project, you may try:

pod install --repo-update

iOS 9.0 is the minimum version supported by the Clarifai SDK.

Manual installation

The best way to stay up-to-date with the latest version of the SDK with a manual installation is to clone our GitHub repo.

git clone https://github.com/Clarifai/clarifai-apple-sdk.git
  1. In your project's root directory, $(PROJECT_DIR) [the same directory as the .xcodeproj file], create a directory named Clarifai and move the Clarifai-Apple-SDK.framework to that directory

    cd <project root directory>
    mkdir Clarifai
    cp -r <directory the SDK was cloned to>/Clarifai_Apple_SDK.framework <project root directory>/Clarifai
    
  2. Also, copy to the same Clarifai directory, the setup_framework.sh script.

    cp -r <directory the SDK was cloned to>/scripts/setup_framework.sh <project root directory>/Clarifai
    
  3. Add the Clarifai-Apple-SDK.framework to your project's Embedded Binaries.

    • From your Xcode project/workspace go to the project configurations, General tab, and click the + button under the Embedded Binaries section. Navigate to the directory where you cloned the repository and select the Clarifai-Apple-SDK.framework
  4. Include the following required dependencies to Linked Frameworks and Libraries:

    • Accelerate.framework
    • CoreGraphics.framework
    • Foundation.framework
    • libc++
    • libsqlite3
    • libz
    • UIKit.framework
  5. Create a new Run Script Build Phase (Xcode > Editor > Add Build Phase > Add Run Script Build Phase). In the execution line enter:

    "$PROJECT_DIR/Clarifai/setup_framework.sh"
    
  6. Make sure the position of the new Run Script is after Compile Sources and before Link Binary With Libraries. If needed drag and drop it to the right position.

You should be able to build your project and start using the SDK in your project.

Start the SDK

The Clarifai SDK is initialized by calling the startWithApiKey method. We recommend to start it when your app finishes launching, but that is not absolutely required. And don't worry about hogging the launching of your app. We offload the work to background threads; there should be little to no impact.

  • Swift

    import Clarifai_Apple_SDK
    
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        Clarifai.sharedInstance().start(apiKey:"<Your API Key>")
    
        return true
    }
    
  • Objective-C

    @import Clarifai_Apple_SDK;
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        [[Clarifai sharedInstance] startWithApiKey:@"<Your API Key>"];
    
        return YES;
    }
    

General model availability notifications

Clarifai's general model becomes available to the SDK on demand. After you start the SDK for the first time, with a valid API Key, the model will be made available and cached locally for future faster use.

You can be notified on the progress of the availability of the SDK by registering to listen to the following notifications:

Swift Objective-C Description
NSNotification.Name.CAIWillFetchModel CAIWillFetchModelNotification Broadcast right before the SDK begins fetching a model
NSNotification.Name.CAIDidFetchModel CAIDidFetchModelNotification Broadcast right after a model has been fetched
NSNotification.Name.CAIModelDidBecomeAvailable CAIModelDidBecomeAvailableNotification Broadcast when a model has become available to use

The first two notifications usually happen only once, when you first use the SDK. After becoming available a model remains cached locally. The last notification, on the other hand, is broadcast every time the SDK is started.

Each of the notifications above contain a payload (userInfo) with the id of the model. Retrieve it by using the CAIModelUniqueIdentifierKey key.

  • Swift

    func handleModelDidBecomeAvailable(notification: NSNotification) {
        if let userInfo = notification.userInfo {
            let modelId = userInfo[CAIModelDidBecomeAvailable] as? String
        }
    }
    
  • Objective-C

    - (void)handleModelDidBecomeAvailable:(NSNotification *)notification {
        NSDictionary *userInfo = [notification UserInfo];
        NSString *modelId = userInfo[CAIModelUniqueIdentifierKey];
    }
    

Learn and do more

Check out our documentation site to learn a lot more about how to bring A.I. to your app.

Support

Questions? Have an issue? Send us a message at [email protected].

License

The Clarifai-Apple-SDK is available under a commercial license. See the LICENSE file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].