Skip to main content
POST
Compare two images
Image Verifier allows users to input two images and analyze their similarity, providing a result that indicates the level of similarity. This functionality can be applied to various use cases, making it easy for users to adapt it to their specific needs.

Request

Headers

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

Body Parameters

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

Response

Success Response (200)

string
P Hash value of the original image (hexadecimal)
string
P Hash value of the Compare image (hexadecimal)
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)

string
Briefly describes the error.

Example Request

Example Response

Authorizations

x-api-key
string
header
required

Body

application/json
imageSet
object
required

Response

Everything worked as expected.

originalHash
string

P Hash value of the original image (hexadecimal)

Example:

"70"

compareHash
string

P Hash value of the Compare image (hexadecimal)

Example:

"71"

hammingDistance
number

Hamming Distance between the two hash values, indicating the similarity of the images. A smaller value means the images are more similar.

Example:

2