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
}

요청

헤더

x-api-key
string
required
인증 및 접근 제어 목적으로 필수적인 API 키로, 인증에 필요합니다.

본문 매개변수

imageSet
object
required
비교할 두 이미지를 포함하는 객체입니다.
originalImage
string
required
비교할 첫 번째 이미지를 base 64 형식으로 제공합니다.
compareImage
string
required
원본 이미지와 비교할 이미지를 base 64 형식으로 제공합니다.

응답

성공 응답 (200)

originalHash
string
원본 이미지의 P Hash 값 (16진수)
compareHash
string
비교 이미지의 P Hash 값 (16진수)
hammingDistance
number
두 해시 값 간의 해밍 거리로, 이미지의 유사도를 나타냅니다. 값이 작을수록 이미지가 더 유사합니다.

오류 응답 (400)

message
string
오류에 대한 간략한 설명입니다.

요청 예시

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

응답 예시

{
  "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.