Questions tagged [clarifai]

Image & Video Recognition API

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Clarifai Face Detection (React White Screen Of Death)

I've gone thru the Zero To Mastery course all the way thru building the facial detection app with Clarifai using JAVASCRIPT. I've completed all of the code, updated with every update that's actually ...
Tyrone Byers's user avatar
0 votes
1 answer
44 views

Using Clarifai to recognise family members

I currently use Clarifai Face Detection to highlight people in photos, but I cannot see a way to teach Clarifai the faces of family members. I would like to not only detect the faces, but also guess ...
Pete Harrison's user avatar
0 votes
1 answer
57 views

Testing ClarifAI and seeing "The type or namespace name 'Clarifai' could not be found" in the Unity console

I performed the following steps to test ClarifAI image recognition in a new project and am having issues. These are the steps I took: Created a new Unity 2020.3.8f1 project Created a test C# script ...
Lee's user avatar
  • 149
0 votes
2 answers
67 views

i am getting a 400 error when trying to use the clarifai api form the back end

i am getting a 404 and another error when i try to run my app, it is a face recognition api from clarifai TypeError: Cannot read properties of undefined (reading '0') at App.calculateFaceLocation (App....
deasy 21's user avatar
0 votes
1 answer
116 views

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 ...
zohoorparvaz's user avatar
1 vote
0 answers
53 views

Clarifai gRPC Java client throwing RuntimeException: An error occurred while executing doInBackground()

I am building an Android app to predict objects in an image. I am using the Clarifai gRPC Java client for the purpose. However, I am getting a RuntimeException: An error occurred while executing ...
Dinux's user avatar
  • 660
1 vote
1 answer
63 views

ClarifaiChannel.INSTANCE.getGrpcChannel() throwing IllegalStateException: Could not find TLS ALPN provider

I am trying to use Clarifai to predict images in an Android app. I am using the Clarifai gRPC Java client. However, I am getting an IllegalStateException saying 'Could not find TLS ALPN provider; no ...
Dinux's user avatar
  • 660
0 votes
1 answer
96 views

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&...
Łukasz R.'s user avatar
0 votes
1 answer
52 views

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 ...
Tom's user avatar
  • 3
0 votes
1 answer
94 views

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) { ...
NePa's user avatar
  • 13
0 votes
1 answer
482 views

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 ...
Grzesiek9002's user avatar
-1 votes
1 answer
205 views

clarifai- ValueError: too many values to unpack (expected 2)

I am trying to upload an food image and trying to detect the picture using clarifai food detection model which is in JSON format and display results in my html page I am taking sample code from here ...
Safee987's user avatar
0 votes
3 answers
283 views

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 ...
JoeMugabo's user avatar
0 votes
2 answers
234 views

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: ...
Rahmath Irshad's user avatar
-2 votes
3 answers
610 views

Im getting this error trying to use the clarifai api, how can i fix it?

im using the clarifai face recognition Api and getting an error on my console saying: "TypeError: axios.post is not a function". anyone knows how do I solve it? i dont use Axios in my code, ...
Ron Reuter's user avatar
0 votes
2 answers
53 views

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 './...
Morris's user avatar
  • 13
-1 votes
2 answers
43 views

When clicking on detect a face even witout entering url the numbers are still moving up

i am currenty using the Clarifai API to detect faces, i also created that whenever i detect a face the numbers are moving up see below imageurl image however, when i click on detect, even without ...
Tomas's user avatar
  • 1
2 votes
1 answer
542 views

ImportError: cannot import name 'Workflow' from 'clarifai.rest'

I'm running a .py file and this error shows up: ImportError: cannot import name 'Workflow' from 'clarifai.rest' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/...
avidlearner's user avatar
0 votes
2 answers
390 views

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. ...
Arye's user avatar
  • 7
1 vote
1 answer
310 views

Clarifai API not detecting the image URL in React.js

I am using Clarifai API face detection and it is unable to fetch the URL which is provided from the constructor, rather than a variable which Clarifai provides in the default code class App ...
Mirza Viraad Baig's user avatar
0 votes
1 answer
205 views

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, ...
Chelsea's user avatar
0 votes
1 answer
223 views

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
Sayedul Karim's user avatar
0 votes
1 answer
169 views

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 ...
Eshaan Gupta's user avatar
0 votes
2 answers
828 views

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 "...
parrtakenn's user avatar
0 votes
1 answer
56 views

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)...
program1's user avatar
1 vote
1 answer
173 views

405 POST method not allowed (clarifai)

am trying to use the clarify face detection api on my react app but i keep getting an error POST: 405 method not allowed i have tried going through some solutions here on stack overflow but it seems ...
Anongo Steve's user avatar
3 votes
2 answers
4k views

React & Clarifai: Uncaught ReferenceError: process is not defined

I am build a React app using the face detect model from the Clarifai API. When I import Clarifai from "clarifai", I'm prompted with this warning by VS Code: Could not find a declaration file ...
Edwin Grigonis's user avatar
2 votes
1 answer
456 views

Clarifai api referenceerror : process is not defined

I get such an error on npm start on clarifai api [1]: https://i.stack.imgur.com/pHRNz.png Open bootstrap:27: // Execute the module function try { var execOptions = { id: moduleId, ...
zanthez's user avatar
  • 45
0 votes
1 answer
51 views

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.
Peter Litvak's user avatar
0 votes
1 answer
36 views

How do I set MaxConcepts for when calling postModelOutputs in latest version of Java API?

Can anyone point me to the documentation or an example on the subject? I'm using one of the standard models so I assume there should be away to set this as a parameter. I've tried to set it as follows:...
Peter Litvak's user avatar
0 votes
1 answer
13 views

Is the listModels request limited to the number of returned records by default?

For the following call client.listModels(ListModelsRequest.newBuilder().build()); will all of the models be returned or just some subset?
Peter Litvak's user avatar
-1 votes
1 answer
41 views

How does one delete a concept using its ID (node gRCP client)

I using Clarifai to simplifai custom model training for a client. I want to expose the CRUD API for inputs, annotations and concepts. I am unable to find how to delete concepts using the gRCP node ...
eliastouil's user avatar
2 votes
2 answers
5k views

gRPC failed to connect to all addresses - Python

I am trying to connect to Clarifai's 'general' image classification model to label images using the following Python script: #python program to analyze an image and label it ###########################...
Eshaan Gupta's user avatar
0 votes
1 answer
849 views

Clarifai PHP/GRPC - Code 14: failed to connect to all addresses

So, I'm having this issue: response: null status: { code: 14 details: failed to connect to all addresses } I tried everything that I can think of, but nothing works and I'm out of ideas. Can ...
Eloísa C.'s user avatar
2 votes
2 answers
965 views

Clarifai returns handshake error when using GRPC Python Client

I tried using the clarify-python-grpc client and it worked great. Here I just wanted to try the demographics model for testing. It worked 2 weeks ago but I think there was an update to grpc which ...
Bernardo's user avatar
0 votes
1 answer
1k views

Empty or malformed authorisation header. Please provide an API key or session token. 400 bad request error

I am building a food detection application and I have literally tried everything to remove this error! I get a 400 bad request error when I paste a url. This is the status code which shows the error: &...
Gautham Yadav's user avatar
0 votes
1 answer
166 views

Clarifai Face detection response gives a 404 Error

I'm currently building a react app for face detection. I use the code below to implement the Clarifai Face Detection API but I get a 404 error instead of a response. Is my syntax wrong? const Clarifai ...
Trebs's user avatar
  • 3
-1 votes
1 answer
763 views

KeyError: 'type' Clarifai

I'm starting on a project using Clarifai. However, when I define the app, I'm getting a key error: from clarifai.rest import ClarifaiApp from clarifai.rest import Image as ClImage import os from glob ...
throw's user avatar
  • 1
1 vote
1 answer
41 views

Is it possible to put the trained model on other servers for use. Because accessing www.clarifai.com from our server has a serious delay

Is it possible to put the trained model on other servers for use. Because accessing www.clarifai.com from our server has a serious delay
huoyueyanshang's user avatar
1 vote
1 answer
1k views

_InactiveRpcError while using workflow

Hi I tried to copy the clarifai doc to create a workflow Below is my error code --------------------------------------------------------------------------- _InactiveRpcError ...
Gary Leung's user avatar
0 votes
1 answer
112 views

Clarifai creating a text recogniser from image

I am new to clarifai api and form some of the resources available online I have the following code, I actually want to extract the text from image using clarify api. I am using clarify with python ...
Lawliet's user avatar
  • 77
1 vote
2 answers
124 views

Error when attempting to create new model

This is the error: Something went wrong. Your request was blocked. Missing feature flags: [TrainingDeepTraining].
TobyIsAwesome's user avatar
-1 votes
1 answer
48 views

Features in Clarifai

Does Clarifai provides explainability (feature) for the model? I am researching on the best ML platform for images and videos hence I came through Clarifai but in my top features I want the platform ...
Behjat Huma's user avatar
0 votes
1 answer
256 views

Model does not exist, using Demographics in Clarifai

I'm trying to use Demographics Model https://www.clarifai.com/blog/socially-responsible-pixels-a-look-inside-clarifais-new-demographics-recognition-model. But I'm confused because is Demographics a ...
Caleb Taylor's user avatar
  • 2,710
0 votes
1 answer
93 views

Reading/understanding Clarifai query results

I'm having trouble reading/understanding Clarifai's API query results. Below is my curl query via php. Everything seems to work but the results I get (see example below) don't correspond with the ...
garrettlynchirl's user avatar
-1 votes
1 answer
115 views

How does one access the Clarifai API for local file uploads in React?

This is my first question in Stack Overflow in my developer journey. In my project, I have implemented a file upload system which on clicking the button would trigger the Clarifai API recognition. ...
Neellohit Senapati's user avatar
-1 votes
2 answers
610 views

Face detection not showing in correct position

my face Detection app doesnt work correctly even though I have added the correct math. The borders are shown in different areas. I'm using react as frontend and Clarifai as the API The Predict API ...
Jezon Fernando's user avatar
0 votes
1 answer
66 views

Documentation (not examples) of Clarifai Python gRPC interface

Anyone point me to where there is documentation (not examples) of the calls ? Such as service_pb2.PostInputsRequest() ? Parameter lists ?
Andrew Jeavons's user avatar
0 votes
3 answers
776 views

how to store req.body.state in nodejs

This is the backend section of the server in node js stub.PostWorkflowResults( { workflow_id: "Demographics", inputs: [ {data: {//need req.body.input here //}} ...
Tony's user avatar
  • 97
0 votes
1 answer
26 views

My App requires a model_id that is Alphanumeric 32 chars long and all I get its label are labels like "General"

I have an ESP32 app that submits a picture to clarifai and get some info about it in return. The sample App I got there is this line: // Generic model String model_id = "...
Paulo Borges's user avatar