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

Failed to install clarifai for "instapy"

Hey guys I'm trying to use the nstaPy bot written by python and I tried to install the requirements using pip but unfortunately I came across with an error that I'm unable to handle. the error is with installing "clarifai" library and I'm Getting…
IHosseini
  • 31
  • 4
0
votes
1 answer

Flask and Clarifai API not working when inputting a search term or image url

I just finished this short tutorial on YouTube on the Clarifai API and Flask, but my web application is not working when I try entering my search results in either input places on http://localhost:5000/ since nothing is displaying after entering…
user12951955
0
votes
2 answers

Invalid API key/application pair–Clarifai

I was reading the documentation and wanted try out the api in pycharm. So I copied the code and it told me that I had an "Invalid API key/application pair". I copied my Api key straight from my app I made on https://portal.clarifai.com/ and put it…
0
votes
1 answer

Clarifai Face Detect Model - 400 Bad Request error

I'm trying to use the Clarifai face detection model but I having some serious problems with the API. It used to work roughly 6/10 times a couple weeks ago (even if I used the same image without changing anything it only randomly worked sometimes)…
Big geez
  • 39
  • 8
0
votes
1 answer

How to print Clarifai API returned response?

help... I'm making a project that detects food ingredients using Clarifai API Food model. When the API scans the image, it returns the response via console.log. How do you get THAT output from the API (console.log) and print it in the webpage.…
Pacholoamit
  • 245
  • 6
  • 16
0
votes
1 answer

Is There a Search By Image Function in React-Native using Clarifai Api?

I am trying to search by image using clarifai api, and I am using react native. The python code to search by image is app.inputs.search_by_image(filename=''), but how would I make a function to do that command in react native? I am trying to…
0
votes
2 answers

Clarifai - FACE DETECT - Model does not exist

I'll be thankful if you can assist me on an issue with Clarifai API. I made a simple application of Face Detection using the API. I've followed the documentation and from my client I ran the following code snippet: app.models …
Eli Van Rock
  • 157
  • 1
  • 1
  • 15
0
votes
2 answers

I want to filter out the results i get from a response of an API server is an which contains an Array

I have an issue please, i will be so glad to get help on this, i sent a post request to an API server, i got the response back successfully and filtered out for the last element in the array using "array.last" The results for this is shown below, i…
Tony_Kara
  • 31
  • 8
0
votes
0 answers

Clarifai Custom Model in React Native

Can anyone help with integration of Clarifai Custom trained model in React Native? I found in docs that if you want to use custom instead of general model, you should pass object with model_id and model_version_id. As I created this custom model on…
0
votes
1 answer

Face_Detector_Model of Clarifai Api in react project

Can anybody help me, how to use face detect model of clarifai api to detect multiple faces. I have created App.js like this. const app = new Clarifai.App({ apiKey: 'my_api_key' }); class App extends React.Component { constructor(){ super(); …
0
votes
1 answer

Face Detection model bounding box

I'm using the claraifai API I've retrieved the regions for the face to form the bounding box but actually drawing the box gives me seriously off values as seen in the image. code: return { topRow: face.top_row * height, leftCol:…
Pat
  • 9
  • 1
0
votes
1 answer

The method withVersion(ModelVersion) in the type PredictRequest is not applicable for the arguments (String)

I'm new to the Clarifai. I'm trying sample demo code using java in Clarifai portal. Below is my code. I'm getting the errors. I don't have any idea. can someone please help me. package com.demo.clarifia; import java.util.List; import…
0
votes
1 answer

Clarifai - Returning regions for custom trained models

The documentation shows that only concepts are returned for custom trained models: { "status": { "code": 10000, "description": "Ok" }, "outputs": [ ..., "created_at": "2016-11-22T16:59:23Z", "model": { ... }, …
MNelmes
  • 124
  • 2
  • 19
0
votes
1 answer

Download CSV fom Clarifai

Was hoping that there was a simple, turnkey way to download the metadata that Clarifai generates as a .CSV file. Ideally I would then take that information, format it, and then upload into our DAM system to round out the metadata for images. Have…
Matt F
  • 1
0
votes
3 answers

How could i implement Demographic Clarify.ai model on project built on react.js?

I've tried to build a simple React app using basic Clarifai.FACE_DETECT_MODEL, but now I wanna change it to more advanced "Demographic", maybe somebody knows how to di it? I know that I have to change clarify model but idk exactly how to do it …
Nick
  • 3
  • 1