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

clarifai2 java client. concept.name() results in Java NullPointerException but concept.value returns the confidence value

When the clarifai API is called on an image it returns List of ClarifaiOutput Concepts. But on accessing the concepts only values can be accessed. Accessing name of the concepts results in NullPointerException. concept.name() results in exception…
0
votes
0 answers

How to import and use Clarifai in Ionic framework & Angular 2+

Here is a quick link to the Clarifai api I am trying to use https://clarifai.com/developer/quick-start/ I have uninstalled the npm module npm install clarifai --save For some reason I am not able to import and use the api similar to the way it is in…
techbum
  • 61
  • 1
  • 7
0
votes
1 answer

Executing functions in Python consecutively

I'm trying to get several functions to run one-after-another, but my code keeps getting stuck in a loop. I've tried implementing multiprocessing, as someone in this thread recommended, but that didn't help. My function sends a photo to Clarifai to…
solo
  • 743
  • 2
  • 6
  • 17
0
votes
0 answers

Google cloud Vision and Clarifai doesn't Support tagging for 360 degree images and videos

I'm working on image processing. So far Google Cloud Vision and Clarifai are the best API's to detect objects from images and videos, but both API's doesn't support object detection from 360 degree images and videos. Is there any solution for this…
0
votes
1 answer

Clarifai API for Local Image

I'm trying to make a nodejs application that captures an image from the computer's webcam, and then uses Clarifai API to recognize what is in that picture. I haven't figured out how to do that for local images, however, as the method I'm using, the…
0
votes
0 answers

Convert curl command that attaches file to c - libcurl function

Here is the curl command: curl -X POST \ -H "Authorization: Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d @- https://api.clarifai.com/v2/models/aaa03c23b3724a16a56b629203edc62c/outputs << FILEIN { "inputs": [ { …
Ben Goz
  • 13
  • 4
0
votes
1 answer

Clarifai Exception: Maximum attempts reached of getting a default model

I'm getting this exception in my logs: "clarifai2.exception.ClarifaiException: Maximum attempts reached of getting a default model." which is being generated by a large number of my android app users, but I am unable to replicate the exception or…
John
  • 2,551
  • 3
  • 17
  • 29
0
votes
1 answer

Does either Google Video Intelligence or Clarifai Video allow custom labels and training?

I have a 10 second video (60fps) of a heart taken using m-mode ultrasound and I was hoping to train a prediction model on these with each video tagged with three custom labels. I am not interested in doing a classification on each individual frame…
0
votes
1 answer

Clarifai cURL image recognition intergration

I am trying to get tags from Clarifai image recognition using cURL and PHP. On their site there is this user guide: https://developer.clarifai.com/guide/#authentication QUESTION UPDATE I managed to get valid responce, and it looks like this: { …
0
votes
1 answer

Clarifai client asking for client secret and id

I'm setup my initial js file like so however on build I'm getting an error that the client now requires my client secret and client id .. What's weird is that when I first built my app all initial API requests went through with just the api key. I…
0
votes
0 answers

PHP post data to cUrl, clarifai

I've this cUrl curl -X POST \ -H "Authorization: Key {api-key}" \ -H "Content-Type: application/json" \ -d ' { "inputs": [ { "data": { "image": { "url": "https://samples.clarifai.com/metro-north.jpg" } } …
Daman
  • 473
  • 2
  • 7
  • 17
0
votes
1 answer

Clarifai Video returns Bad Request

I've successfully uploaded Images and wanted to see how Clarifai behaves with Videos. According to the DOC/Github, we only have to point to a movie file and change the parameter is_video=True model.predict_by_filename("/Users/xxx/Desktop/h264.mov",…
user1767754
  • 23,311
  • 18
  • 141
  • 164
0
votes
3 answers

npm module for clarifai not found when I start the node server

module.js:341 throw err; ^ Error: Cannot find module 'clarifai' at Function.Module._resolveFilename (module.js:339:15) at Function.Module._load (module.js:290:25) at Module.require (module.js:367:17) at require…
ShivaV
  • 21
  • 2
0
votes
2 answers

I am trying to use Clarifai api in my application, but getting an error saying that "cannot resolve symbol"

I am trying to use Clarifai API in my application, but getting an error saying that "cannot resolve symbol" final List> predictionResults = Clarifai.getDefaultModels() .generalModel() .predict() .withInputs( …
0
votes
1 answer

Can not import clarifai api in android

i'm trying to import clarifai api in my android project but it gives the following error : Error:(28, 13) Failed to resolve: com.clarifai.clarifai-api2:android:2.0.2 project.gradle: // Top-level build file where you can add configuration options…
Mehrdad
  • 180
  • 1
  • 13