Git Product home page Git Product logo

clarifai-ios's Introduction

DEPRECATION NOTICE

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.

Installation

CocoaPods

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:

pod 'Clarifai'

Getting Started

  1. Create a new XCode project, or use a current one.

  2. Add Clarifai to your Podfile and generate workspace.

    pod 'Clarifai'
    
    pod install
    
  3. Import ClarifaiApp.h and any other classes you need.

    #import ClarifaiApp.h
    
  4. 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).

  5. Create your Clarifai application in your project.

    ClarifaiApp *app = [[ClarifaiApp alloc] initWithApiKey:@""];
    
  6. 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: import Clarifai

Documentation

The most recent docs can be found here on Cocoadocs.

Example Project

There is a simple demo included in the repo to help you get started. To build this project, you need Xcode 8 and CocoaPods. To build and run:

  1. Install dependencies and generate workspace from inside the Example folder.

    pod install
    
  2. Open the workspace in Xcode

    open Clarifai.xcworkspace
    
  3. 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).

    Add your API Key to the recognizeImage method in RecognitionViewController.m.

  4. Press the "Play" button in the toolbar to build, install, and run the app.

clarifai-ios's People

Contributors

cassidoo avatar eddiezane avatar jackflips avatar joshbax avatar jpgsloan avatar keithito avatar zeiler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clarifai-ios's Issues

I'm getting a 404 on https://api.clarifai.com/v2/models/general-v1.3/output_info

I'm trying to call getModelById("general-v1.3") and I get a 404

What gives?

Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x61800003b620> { URL: https://api.clarifai.com/v2/models/general-v1.3/output_info } { status code: 404, headers {
    "Access-Control-Allow-Headers" = "x-requested-with, content-type, accept, origin, authorization, x-csrftoken, content-disposition, X-Clarifai-Application-Id, X-Clarifai-REST-API-Key, X-Clarifai-Session-Token, X-Clarifai-Client, X-Clarifai-Site";
    "Access-Control-Allow-Methods" = "GET, POST, PUT, PATCH, DELETE, OPTIONS";
    "Access-Control-Allow-Origin" = "*";
    Connection = "keep-alive";
    "Content-Length" = 144;
    "Content-Type" = "application/json; charset=UTF-8";
    Date = "Sat, 07 Jan 2017 12:57:25 GMT";
    Server = nginx;
} }, NSErrorFailingURLKey=https://api.clarifai.com/v2/models/general-v1.3/output_info

clarifai pod spec

It would be helpful to have a pod spec to ease updating clients are using the newest version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.