144
questions
0
votes
0
answers
18
views
Clarifai - Getting 400 error when running face-detection
When I put in a URL and run the API call, I get a 400 error specifically pointing out the fetch() function. I am unsure what I am doing wrong or if my code is wrong. My current code:
import { useState ...
1
vote
1
answer
23
views
command on virtual env. pip install clarifai.work on windows Import "clarifai.rest"could not be resolvedPylancereportMissingImports (module) clarifai
i am working in clarifai. i installed clarifai on my windows as pip install clarifai.
when i wrote from clarifai.rest import ClarifaiApp it is showing error. chatgpt even failed to solve the issues. i ...
0
votes
1
answer
60
views
clarifai FACE_DETECT_MODEL deprecated in javascript?
Could not find a declaration file for module 'clarifai'. 'd:/jagan projects/face-detection/node_modules/clarifai/dist/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/clarifai if it ...
0
votes
0
answers
32
views
Clarifai custom model
I'm trained a custom model for image recognition and it works well along with response of the concept and value i tried to get the custom meta data which i added to the concepts but unable to get the ...
0
votes
1
answer
79
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 ...
0
votes
1
answer
62
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 ...
0
votes
1
answer
73
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 ...
0
votes
2
answers
107
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....
0
votes
1
answer
226
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 ...
1
vote
0
answers
66
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 ...
0
votes
1
answer
80
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 ...
0
votes
1
answer
163
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&...
0
votes
1
answer
125
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 ...
0
votes
1
answer
125
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) {
...
0
votes
1
answer
865
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 ...
-1
votes
2
answers
374
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
...
0
votes
3
answers
375
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 ...
0
votes
2
answers
292
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:
...
-2
votes
3
answers
778
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, ...
0
votes
2
answers
74
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 './...
-1
votes
2
answers
49
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 ...
2
votes
1
answer
691
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/...
0
votes
2
answers
560
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.
...
1
vote
1
answer
379
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 ...
0
votes
1
answer
250
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, ...
0
votes
1
answer
271
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
0
votes
1
answer
200
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 ...
0
votes
2
answers
1k
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 "...
0
votes
1
answer
74
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)...
1
vote
1
answer
244
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 ...
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 ...
2
votes
1
answer
479
views
Clarifai api referenceerror : process is not defined
I get such an error on npm start on clarifai api
[1]: https://i.sstatic.net/pHRNz.png
Open bootstrap:27:
// Execute the module function
try {
var execOptions = { id: moduleId, module: ...
0
votes
1
answer
57
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.
0
votes
1
answer
40
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:...
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?
-1
votes
1
answer
47
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 ...
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
###########################...
0
votes
1
answer
1k
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 ...
2
votes
2
answers
1k
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 ...
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:
&...
0
votes
1
answer
208
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 ...
-1
votes
1
answer
862
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 ...
1
vote
1
answer
43
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
1
vote
1
answer
2k
views
_InactiveRpcError while using workflow
Hi I tried to copy the clarifai doc to create a workflow
Below is my error code
---------------------------------------------------------------------------
_InactiveRpcError ...
0
votes
1
answer
137
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
...
1
vote
2
answers
130
views
Error when attempting to create new model
This is the error: Something went wrong. Your request was blocked. Missing feature flags: [TrainingDeepTraining].
-1
votes
1
answer
50
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 ...
0
votes
1
answer
272
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 ...
0
votes
1
answer
107
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 ...
-1
votes
1
answer
122
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. ...