Skip to content

Lightweight Clarifai (clarifai.com) client library written in pure Swift

Notifications You must be signed in to change notification settings

Vyteniss/Clarifai-Swift-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Clarifai-Swift-iOS

Lightweight Clarifai (clarifai.com) client library written in pure Swift

Heavily based on the work of jodyheavener

Adopted to work with Clarifai API V2 and Swift 4. NOTE both Alamofire and SwiftyJSON are required for this service to work correctly so make sure you have them.

Currently supports only image prediction endpoints by either image URL or by sumbiting base64 encoded image in bytes.

How To Use:

  • Drag ClarifaiService.swift to your project
  • Find the required clarifai model
  • Construct service by providing your API key and modelID
  • Issue requests by calling predictFromUrl or predictFromBytes methods on the service class. You need to provide image source and callback methods to both of them
  • Calbacks are passed with response object. (Structure)[https://www.clarifai.com/developer/guide/predictions#predictions]

About

Lightweight Clarifai (clarifai.com) client library written in pure Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages