Code Monkey home page Code Monkey logo

clarifai-javascript-ztm's Introduction

Clarifai logo

NOTE: For node.js users, this API Client is no longer supported.

Please use https://github.com/Clarifai/clarifai-nodejs-grpc instead which is more feature rich, faster and supported. We will be introducing a new web grpc client shortly as well to fully deprecate this javascript client. Stay tuned.

Clarifai API JavaScript Client

This is the official JavaScript client for interacting with our powerful recognition API. The Clarifai API offers image and video recognition as a service. Whether you have one image or billions, you are only steps away from using artificial intelligence to recognize your visual content.

Build Status npm version

Installation

Install the API client:

npm install clarifai

Basic Use

Firstly, generate your Clarifai API key on the API keys page. The client uses it for authentication.

Then, use the code below to create a Clarifai.App instance using which you interact with the client.

const Clarifai = require('clarifai');

const app = new Clarifai.App({
 apiKey: 'YOUR_API_KEY'
});

This will work in node.js and browsers via Browserify.

You can also use the SDK by adding this script to your HTML:

<script type="text/javascript" src="https://sdk.clarifai.com/js/clarifai-latest.js"></script>

Documentation

Dive right into code examples to get up and running as quickly as possible with our Quick Start.

Learn the basics โ€” predicting the contents of an image, searching across a collection and creating your own models with our Guide.

Check out the JSDoc for a deeper reference.

Looking for a different client? We have many languages available with lots of documentation Technical Reference

React Native

You'll most likely encounter the error process.nextTick is not a function while using this library with React Native.

To solve this, add process.nextTick = setImmediate; as close to the top of your entrypoint as you can. See #20 for more info.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

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.