Questions tagged [clarifai]

Image & Video 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.

The API is built around a simple idea. You send inputs (an image or video) to the service and it returns predictions.

The type of prediction is based on what model you run the input through. For example, if you run your input through the 'food' model, the predictions it returns will contain concepts that the 'food' model knows about. If you run your input through the 'color' model, it will return predictions about the dominant colors in your image.

inputs outputs

Before you get started, if you haven't created an account and received your free API key, please do so before proceeding with this guide. You can begin making API calls for free, a credit card is not required.

Please note that your account will be limited to 100 API calls until you verify your email address. After verification, you will receive the full amount of API calls under your plan.

All API access is over HTTPS, and accessed via the https://api.clarifai.com domain. The relative path prefix /v2/ indicates that we are currently using version 2 of the API.

In the below examples, we use single brackets {variable} to indicate that this is a variable you should replace with a real value.

141 questions
0
votes
1 answer

How to clone clarifai-android-sdk using "git lfs"?

I want to create an object detection application using clarifai android library found in the following link: clarifai android The documentation is very clear but the problem is in cloning the clarifai-android-sdk using git-lfs and this what is…
Amr Ragab
  • 329
  • 1
  • 2
  • 14
0
votes
1 answer

[Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'clarifai.GENERAL.MODEL')]

This error shown when I capture image and there are didnt have any result provided by clarifai also any prediction answer. Is show error "[Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'clarifai.GENERAL.MODEL')]".…
0
votes
1 answer

Clarifai Predict API - Cannot return error response using res.json

I'm using Clarifai's Predict API within another API in a node/express environment, as in the code below. If Clarifai's API returns a successful response, I am able to res.json the data received in my API and view it in Postman. However, if there's…
mohitb
  • 151
  • 2
  • 11
0
votes
1 answer

How can I Set State of a Value that is inside some other Function

I am Trying to Create a React App That Detects Age of Pictures Using Clarifai API . I am Able to Console.Log Detected Age but I Want To Display The Age on My Webpage . Help me With Setting The AgeDectect State so I Can Use it on my Webpage …
M Umair
  • 187
  • 1
  • 1
  • 13
0
votes
1 answer

How to use clarifai to detect the position of an object in an image in xamarin?

I am building an android and ios applicaion using xamarin that should detects the object that I click on in an image . I have succeeded in detecting if a specific object is in the image or not using https://portal.clarifai.com , by training some…
maria nabil
  • 141
  • 3
  • 9
0
votes
1 answer

Post image object Clarifai rest api swift

I want to upload an image that captured in swift application so the image as object I need to do this thru http request First I tried to do that with curl but I got an error that the string is too long second I tried with the example code that…
0
votes
1 answer

Angular 7 Clarifai api "global is not defined at Object../node_modules/clarifai/dist/index.js"

i can't user clarifai in angular 7 give me this error index.js:8 Uncaught ReferenceError: global is not defined at Object../node_modules/clarifai/dist/index.js (index.js:8) at webpack_require (bootstrap:78) at…
0
votes
1 answer

How to get the Clarifai' Android SDK?

I want to build a simple application to where I use Clarifai's Image recognition feature without an internet connection. But according to Clarifai's documentation, Clarifai's Android SDK is still in a private beta version and we need to request…
cla92
  • 15
  • 1
  • 4
0
votes
1 answer

Clarifai object error when trying to call "model.predict" in Angular

I'm trying to call Clarifai's color API to receive the different colors in an image. However, I'm having some difficulty calling the API, as I'm always getting empty objects back. This is the code used to call the API: private app; obj: RootObject…
MyNameIsGuzse
  • 273
  • 1
  • 5
  • 23
0
votes
1 answer

How to search by keyword in Clarifai API

Is it possible to search images by keywords? I want to search by model genereted tags. In Docs there are only 2 options by concept and by image.
Peretz30
  • 1,264
  • 1
  • 11
  • 15
0
votes
0 answers

Chrome Extensions, scope the local variable in.in.inside a function (from backgound.js )and use it globally (or in popup.js).

Recently I want to start a project by piggyback someone's extension. I want to scope one of the image source (local variable, a base64 url) and then photo recognize it on the popup page. I keep getting error "imgb64.replace is not a function" or…
Kai Peng
  • 57
  • 2
  • 6
0
votes
1 answer

Clarifai search (curl) how to get more images per call

I am trying to get more than 20 images with the searches endpoint: $data = '{ "query": { "ands": [ { "output": { "input": { …
ljungi
  • 21
  • 1
  • 7
0
votes
2 answers

How to use Clarifai Java API in Android Studio

I was making an Android Studio app and I need help integrating Clarifai in it. I started by setting up the client as per the Quick Start-Up Guide on Clarifai website. My code looks something like this: public static void main(String[] arg) { …
0
votes
1 answer

JS Promise is stuck to my code

Its been 48 hours and still couldn't figured it out. I'm dealing with a promise using a Clarifai api for react native. Here is my code: function updater(){ return ClarifaiApp.models.predict("coiner app",…
Abrar A.
  • 113
  • 3
  • 11
0
votes
1 answer

How to setup Clarifai on Linux Alpine

I try to setup Clarifai on my Alpine distro (3.4). I've already installed some dependencies (like pip, gcc and etc..) but unfortunately I need i can't install Clarifai - it throw me bellow error during setup process. Maybe someone knows what's…
Armin Orlik
  • 195
  • 2
  • 14