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

Clarifai Face Detection API model used to work but now it won't fetch and throws a 404

Here is the long story short. I am entering an image URL in a text input. The app will pop up the image and then I ask it to fetch Clarifai face-detection model to draw a box on the face. It used to work but now it throws a 404 as soon as I hit find…
0
votes
1 answer

How to integrate Clarifai Api in JS React Project?

I'm working on a Face Detection Project from Udemy Course (Zero to Mastery) with Clarifai API. Unfortunately, I get an error that I don't understand. Here is the code: App.js: import "./App.css"; import React, { Component } from "react"; import…
0
votes
1 answer

Is there a reason why my API response success block is not executing my function calls?

Relatively new to web development and I am currently taking a course which builds a face recognition application using React and Clarifai API. The application has a search box where the user pastes an image URL, which is then supplied to the…
Tom
  • 3
  • 1
0
votes
1 answer

Can't resolve module clarifai-nodejs-grpc in React JS

Error Module not found Can't resolve 'clarifai-nodejs-grpc' node module grps-js and proto-loader I tried config-overrides.js with react-app-rewired: module.exports = function override(config, env) { console.log("override"); let loaders =…
NePa
  • 13
  • 3
0
votes
1 answer

Error "Cannot read properties of undefined (reading '0')", before was working

About one month ago I deploy react app, frontend on github, backend and database on heroku ("smartbrain" project from udemy Zero to Mastery). All was working good till now. About six days ago I checked if stil is working and all was perfect. 10…
0
votes
3 answers

How can I get Clarifai API to respond on my request

I'm trying to use the Clarifai API to build a face detection app, but I'm getting no response from it. I'm new to this, and I've done just about everything to get it to work, but I'm getting no response. This is my code import React, { Component }…
0
votes
2 answers

Could not find a declaration file for module 'clarifai'

i have started facing this issue after i installed clarifai API for project face recognition and i tried everything but can't find the solution. It shows this message when hovering on import clarifai: Could not find a declaration file for module…
0
votes
2 answers

Getting Uncaught TypeError: boxes.map is not a function

not sure what i am doing wrong but when i am trying to detect a face in my app I am getting the below error message what am i doing wrong? see code below import React from 'react'; import './FaceRecognition.css'; const FaceRecognition = ({ imageUrl,…
Morris
  • 13
  • 4
0
votes
2 answers

having issues using face detection API from Clarifai API

I have added the face detection API from Clarifai APi to my project, however, whenever i copy an image to my project and click on detects, it actually shows the image but it is not detecting the face. see below App.js and FaceRecognition.js import…
Arye
  • 7
  • 3
0
votes
1 answer

Invalid Clarifai API key or pair?

On Clarifai community, I created a new project and generated a new API key with scope of all. When I try to input my key as an environmental variable, I'm unable to use it. I've posted the code, warning, and error below. Trying to utilize the…
Chelsea
  • 1
  • 1
0
votes
1 answer

Clarifai-node-js api import error while using it reactjs

and Hi. I attach 2 pictures. There I am having an issue while importing Clarifai-nodejs-grpc. Please check these pictures and help me with this. Thank you so much
0
votes
1 answer

Python Clarifai program stopped working inspite of no changes made

I have the following Python code to label images using Clarifai. It was a working code and had been usable for the past 6-8 months. However, for the last few days, I have been getting the error mentioned below. Note that I have not made any changes…
Eshaan Gupta
  • 614
  • 8
  • 25
0
votes
2 answers

Find JavaScript Code Integrate Clarifai Face Detection API

taking a course where we integrate Clarifai Face Detection API into our app and the course shows a section on Clarifai's documents where you can copy some JavaScript code under what looks like "Request" and it has app.models.predict(Model ID, Web…
parrtakenn
  • 37
  • 4
0
votes
1 answer

ReactJS - Same method, different results

I'm learning React and, while following a tutorial I wonder why the #1 method doesn't console.log anything, while the #2 one does. Can someone please explain why is that? calculateFaceLocation = (data) => { return…
0
votes
1 answer

Is there a way to specify a connection timeout for the client?

I'd imagine this should be a property of a channel but the channel doesn't have anything related to the connection configuration.