I would like to know the Base64 encoding format for the Face Verify and Age Check REST API endpoint. Can I send a direct image link instead for verification?
Many Thanks!
Face Verify & Age Check BASE64 Encoding Format
Asked
Modified
Viewed
17604 times
✓ Accepted Solution
Hello,
Regarding your question about the FACEIO BASE64 Encoding format requests:
- Your Base64 encoding should begin with the pattern: data:{MIME_type};base64,{base64_data} to allow the FACEIO API to identify the image so just prepend: data:{MIME_type};base64, to your base64 encoded image.
- Alternatively, if the images are publicly accessible, you can provide their URLs instead of the base64 encoding, which will significantly speed up processing.
- Refer to the Gist example at: https://gist.github.com/symisc/86d33e975a2dc9cb6a81288180a2b3ab on how to do so.
- The documentation has been updated accordingly at: https://faceio.net/rest-api#faceverify
- For a comprehensive understanding of the FACEIO REST API format and Base64 encoding, please consult the insightful dev.to article available at: https://dev.to/unqlite_db/understanding-faceio-rest-api-face-verify-age-check-3k5h