India Card Anti-fake
Detect the blurriness of the card, whether it is a printed card or a replayAttack card.
Code example:
Response for the input face is replayAttack
Response for the input face is not fake
Response for the input face is blur image
Response for the input face is print image in black and white
Response for recognition fail
Response for invalid request parameters
Response for invalid image format
Response for image size larger than 4M
Response for server error
HTTP request
POST https://api.ekycpro.com/v1/in_card/antifake
Request parameters
parameter | description |
---|---|
img | string , base64 encoded image. It is recommended that the image be less than 200KB, so it will be returned within 2 seconds, otherwise the return time will be longer. |
Response format
fields | description |
---|---|
isReplayAttack | yes is fake, no is not fake |
replayAttack score | this is the confidence level of the fake face, the range is [0, 100]. The default is greater than 60 points is fake face |
isBlur | yes is blur, no is not blur |
blur score | this is the confidence level of the blur face, the range is [0, 100]. The default is greater than 70 points is blur face |
isPrint | yes is print image in black and white, no is not print image |
print score | this is the confidence level of the print image, the range is [0, 100]. The default is greater than 70 points is print face |
Status code
status | description |
---|---|
OK | charge , success |
FAIL | charge , image recognition error, please check input image |
INVALID_REQUEST | free , invalid request parameters |
IMAGE_INVALID_FORMAT | free , invalid image format, image format should be one of jpeg/jpg/png/bmp |
IMAGE_INVALID_SIZE | free , invalid image size, should be less than 4M |
INNER_ERROR | free , server error |