Artificial Intelligence and Machine Learning Discussions
Engage in AI and ML discussions. Collaborate on innovative solutions, explore SAP's AI innovations, and discuss use cases, challenges, and future possibilities.
cancel
Showing results for 
Search instead for 
Did you mean: 

Image Feature Extraction API Error with PostMan (400 Bad Request)

markus_reich
Participant
0 Kudos
698

Hi,

I try to test the ML Service for Image Feature Extraction

When I try with Postman, I get a 400 Bad Request Error 😕

{
    "_id": "6a02b7e0-b503-4c86-a4a4-3d1b1a2832a0",
    "error": "Invalid request",
    "error_description": "Service requires a list of (zipped) images.",
    "processed_time": "Fri, 14 Jul 2017 07:15:32 GMT",
    "request": {
        "files": null,
        "options": {},
        "tenantName": "imgclassif-tech-user",
        "texts": []
    },
    "status": "FAILED",
    "status_code": 400,
    "tenantName": "imgclassif-tech-user"
}

Here is the postman request

https://www.getpostman.com/collections/a418129154e81746548b

3 REPLIES 3

Former Member
0 Kudos
240

Hello Markus Reich

Did you resolve this? I faced a problem with the ML API as well and I'm looking for a resolution.

https://answers.sap.com/questions/307248/need-python-3-code-snippet-to-call-sap-leonardo-ml.html

Thank you

0 Kudos
240

Hi Markus Reich,

In help document of SAP, Image Feature Extraction is capable of extracting feature vectors for any given image which can be used for comparison, informational retrieval, clustering or further processing. When I try to run the API, I get a lot of feature_vector data, do you know how to use them to compare between different files?

Regards,

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos
240

Hi all,

To call the Image Feature Extraction API with Postman, simply do as below:
1.Only add APIKey to the headers. No other header needed.

2.In the body, select form-data, add a key named "files" as file type, and then choose your target images