Here’s a step-by-step guide on how to call the ImageMatcher Pro API using a curl
command:
curl
Commandcurl
command provided:curl --request POST \
--url https://yetanotherapi-image-match-checker-pro.p.rapidapi.com/ \
--header 'X-RapidAPI-Host: yetanotherapi-image-match-checker-pro.p.rapidapi.com' \
--header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY_HERE' \
--header 'content-type: application/json' \
--data '{
"queryImage": "QUERY_IMAGE_URL_HERE",
"trainImage": "TRAIN_IMAGE_URL_HERE"
}'
YOUR_RAPIDAPI_KEY_HERE
with your actual RapidAPI Key.QUERY_IMAGE_URL_HERE
and TRAIN_IMAGE_URL_HERE
with the URLs of your query and training images, respectively.curl
command into your terminal and press Enter to execute it.{
"matchId": "unique_match_id",
"queryImageS3Key": "s3_key_for_query_image",
"trainImageS3Key": "s3_key_for_train_image",
"keypointData": {
"queryImageKeypoints": number_of_keypoints_in_query_image,
"trainImageKeypoints": number_of_keypoints_in_train_image
},
"goodMatches": number_of_good_matches_found,
"matchStatus": "Match" or "No Match",
"message": "Image matching process completed successfully."
}
matchId
is a unique identifier for your image comparison request.queryImageS3Key
and trainImageS3Key
are the locations where the images have been stored in the cloud for processing.keypointData
shows how many keypoints (interesting points) were detected in each image.goodMatches
indicates how many of those keypoints were considered a good match between the two images.matchStatus
tells you whether the images are considered a match based on the API’s analysis.With these steps, you should be able to successfully call the ImageMatcher Pro API using a curl
command and interpret the results to understand how similar two images are.