Comments (6)
Hi @pwna5aurus, what do you assign to the returnFaceAttributes
parameter. It should be a raw string in format of something like age,gender
from cognitive-face-python.
from cognitive-face-python.
Seems there is an extra space after the comma, do you mind to have a try without that? The parameter name should be attributes
.
from cognitive-face-python.
Tried it without the space:
result = CF.face.detect(fp,attributes='age,gender, headPose, smile, facialHair, glasses, emotion, hair, makeup, occlusion, accessories, blur, exposure, noise')
Here is the error:
File "test.py", line 11, in <module>
result = CF.face.detect(fp,attributes='age,gender, headPose, smile, facialHair, glasses, emotion, hair, makeup, occlusion, accessories, blur, exposure, noise')
File "C:\Python27\lib\site-packages\cognitive_face\face.py", line 41, in detect
'POST', url, headers=headers, params=params, json=json, data=data)
File "C:\Python27\lib\site-packages\cognitive_face\util.py", line 106, in request
error_msg.get('message'))
cognitive_face.util.CognitiveFaceException: Error when calling Cognitive Face API:
status_code: 400
code: BadArgument
message: Invalid argument returnFaceAttributes.
from cognitive-face-python.
@pwna5aurus , there should be no space after all the commas. For your example, it should be age,gender,headPose,smile,facialHair,glasses,emotion,hair,makeup,occlusion,accessories,blur,exposure,noise
from cognitive-face-python.
Closed as explained and no further response, please feel free to reopen it if there is any further questions.
from cognitive-face-python.
Related Issues (20)
- ModuleNotFoundError: No module named '------' HOT 4
- Minimum Working example without UI? HOT 2
- Disable the InsecureRequestWarning. HOT 1
- About the API HOT 3
- Microsoft Cognitive Services Face Identification HOT 4
- What's the relationship of this SDK and the azure-sdk-for-python? HOT 2
- exception at requirements.txt HOT 2
- SyntaxError: Invalid Syntax On Windows 10 Py3 HOT 3
- Outdated endpoint HOT 4
- Rate Limiting Is Difficult
- Length of faceId is not in Valid Range HOT 11
- Trouble finding code for verification HOT 1
- Error when using add_face HOT 2
- Can we scale up from Persongroup to LargePersongroup with existing data?
- Merging recognition_model
- Length of faceIds is not in valid range for IdentifyTask
- Error raise KeyError(key) from None KeyError: 'FACE_ENDPOINT' HOT 1
- The length of faceIds is not in a valid range. HOT 1
- about citation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cognitive-face-python.