POST
/
v3
/
modules
/
match
/
image
두 이미지 비교
curl --request POST \
  --url https://api.argosidentity.com/v3/modules/match/image \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "imageSet": {
    "originalImage": "base64_encoded_image_1",
    "compareImage": "base64_encoded_image_2"
  }
}'
{
  "originalHash": "70",
  "compareHash": "71",
  "hammingDistance": 2
}

Request

Headers

x-api-key
string
required
API key essential for authentication and access control purposes, required for authorization.

Body Parameters

imageSet
object
required
Object containing the two images to compare.
originalImage
string
required
First image to compare in base 64 format.
compareImage
string
required
Image to be compared with the original image in base 64 format.

Response

Success Response (200)

originalHash
string
P Hash value of the original image (hexadecimal)
compareHash
string
P Hash value of the Compare image (hexadecimal)
hammingDistance
number
Hamming Distance between the two hash values, indicating the similarity of the images. A smaller value means the images are more similar.

Error Response (400)

message
string
Briefly describes the error.

Example Request

{
  "imageSet": {
    "originalImage": "base64_encoded_image_1",
    "compareImage": "base64_encoded_image_2"
  }
}

Example Response

{
  "originalHash": "70",
  "compareHash": "71",
  "hammingDistance": 2
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

모든 것이 예상대로 작동했습니다.

The response is of type object.