Artificial Intelligence Forum
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

markus_reich
Participant
0 Likes
2,573

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
Read only

Former Member
0 Likes
2,115

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

Read only

0 Likes
2,115

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,
Read only

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Likes
2,115

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