Skip to content

Instantly share code, notes, and snippets.

Avatar

PixLab | Symisc Systems symisc

View GitHub Profile
@symisc
symisc / faceio_integration_boilerplate.html
Last active Jul 30, 2022
Enroll & Authenticate (Recognize) your website users via Face Recognition. This HTML boilerplate should serve as a reference when implementing FACEIO on your website for the first time - Visit https://faceio.net/integration-guide for the official documentation
View faceio_integration_boilerplate.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FACEIO Integration Boilerplate</title>
<style>
.container {
text-align: center;
}
@symisc
symisc / scan_us_driver_license_id.php
Last active Jun 14, 2022
Scan a US Driving License image document from any of the U.S 50 states via the PixLab /docscan API endpoint. Crop the user's face and extract all fields - https://pixlab.io/cmd?id=docscan&type=usdl
View scan_us_driver_license_id.php
<?php
/*
* Usage sample of the US Driver's License card scanner, API endpoint from PixLab - https://pixlab.io/cmd?id=docscan.
*/
/*
* PixLab PHP Client which is just a single class PHP file without any dependency that you can get from Github
* https://github.com/symisc/pixlab-php
*/
require_once "pixlab.php";
# Given a submitted/uploaded, US Driver License image document from any of the 50 US state
@symisc
symisc / scan_us_driver_license_id.py
Last active Jun 14, 2022
Scan a US Driving License image document from any of the 50 U.S states via the PixLab /docscan API endpoint. Crop the user's face and extract all fields - https://pixlab.io/cmd?id=docscan&type=usdl
View scan_us_driver_license_id.py
import requests
import json
# Given a submitted/uploaded, US Driver License image document from any of the 50 US state
# crop the license holder face, and extract all document fields (see below) ready to be consumed by your application.
#
# PixLab recommend that you connect your AWS S3 bucket via the dashboard at https://pixlab.io/dashboard
# so that any extracted face is automatically stored on your S3 bucket rather than the PixLab one.
# This feature should give you full control over your analyzed media files.
#
@symisc
symisc / pixlab_scan_passport_local_image_upload.py
Last active May 4, 2022
Scan a government issued passport document via the PixLab /docscan API endpoint by uploading a local passport image using the POST method. Extract the user face and parse all MRZ fields - https://pixlab.io/cmd?id=docscan
View pixlab_scan_passport_local_image_upload.py
import requests
import json
# Given a Passport document, extract the passport holder face and convert/parse all Machine Readable Zone
# to textual content ready to be consumed by your application.
#
# PixLab recommend that you connect your AWS S3 bucket via the dashboard at https://pixlab.io/dashboard
# so that any extracted face or MRZ crop is automatically stored on your S3 bucket rather than the PixLab one.
# This feature should give you full control over your analyzed media files.
#
@symisc
symisc / delete_facial_id.py
Last active Jun 25, 2022
Programmtically delete (total purge) a Facial ID, its associated payload data, and biometrics hash from a given FACEIO application - https://faceio.net/facialid
View delete_facial_id.py
import requests
import json
# Programmtically delete (total purge) a Facial ID, its associated payload data,
# and biometric hash from a given FACEIO application - Refer to https://faceio.net/facialid for additional information
req = requests.get('https://api.faceio.net/deletefacialid',params={
"fid":"FACIAL_ID", # Target Facial ID to purge from this FACEIO application. Find out more information about the Facial ID on https://faceio.net/facialid
"key": "FACEIO_APP_API_KEY" # Your FACEIO Application API Key. Retrieve this key from the Application Manager on the console at: https://console.faceio.net
})
reply = req.json()
@symisc
symisc / uae_emirates_id_card_scan.py
Last active Oct 14, 2021
Scan an UAE (United Arab Emirates) ID card via the PixLab docscan API endpoint (Python code sample). Extract the holder's face and display all fields - https://pixlab.io/cmd?id=docscan
View uae_emirates_id_card_scan.py
import requests
import json
# Given a government issued ID card from the UAE (emirates). Extract the holder's face and d aisplay all scanned fields.
#
# PixLab recommend that you connect your AWS S3 bucket via your dashboard at https://console.pixlab.io/
# so that any cropped face or MRZ crop is stored automatically on your S3 bucket rather than the PixLab one.
# This feature should give you full control over your analyzed media files.
#
# https://pixlab.io/cmd?id=docscan&&country=uae for additional information.
@symisc
symisc / uae_emirates_id_card_scan.php
Last active Oct 14, 2021
Scan an UAE (United Arab Emirates) ID card via the PixLab docscan API endpoint (PHP code sample). Extract the holder's face and display all fields - https://pixlab.io/cmd?id=docscan
View uae_emirates_id_card_scan.php
<?php
/*
* Usage sample of the UAE ID card scanner API endpoint from PixLab - https://pixlab.io/cmd?id=docscan.
*/
/*
* PixLab PHP Client which is just a single class PHP file without any dependency that you can get from Github
* https://github.com/symisc/pixlab-php
*/
require_once "pixlab.php";
# Given a government issued ID card from the UAE (emirates). Extract the holder's face and display all scanned fields.
@symisc
symisc / pixlab_random_pixelgenerate.php
Last active Sep 21, 2021
Dynamically generates a set of random pixels of desired width & height using PixLab /pixelgenerate API endpoint - https://pixlab.io/cmd?id=pixelgenerate
View pixlab_random_pixelgenerate.php
<?php
/*
* PixLab PHP Client which is just a single class PHP file without any dependency that you can get from Github
* https://github.com/symisc/pixlab-php
*/
require_once "pixlab.php";
# Generates a set of random pixels of desired Width & Height.
# This endpoint is similar to the /newimage endpoint except that the image contents is filled with random pixels.
# This is very useful for generating background (negative) samples for feeding Machine Learning training algorithms.
@symisc
symisc / generate_meme.py
Last active Apr 14, 2022
Draw some funny text on top & button of the famous Michael Jordan crying face using the PixLab API - https://pixlab.io/cmd?id=drawtext
View generate_meme.py
import requests
import json
# Draw some funny text on TOP & BOTTOM of the famous Cool Cat public domain image.
# https://pixlab.io/cmd?id=drawtext is the target endpoint for drawing text on images
req = requests.get('https://api.pixlab.io/drawtext',params={
'img': 'https://pixlab.io/images/jdr.jpg',
'top': 'someone bumps the table',
'bottom':'right before you win',
'cap':True, # Capitalize text,
'strokecolor': 'black',
@symisc
symisc / generate_meme.php
Last active Aug 12, 2021
Draw some funny text on top & button of the famous Michael Jordan crying face using the PixLab API - https://pixlab.io/cmd?id=drawtext
View generate_meme.php
<?php
/*
* PixLab PHP Client which is just a single class PHP file without any dependency that you can get from Github
* https://github.com/symisc/pixlab-php
*/
require_once "pixlab.php";
# Draw some funny text on TOP & BOTTOM of the famous Michael Jordan crying face.
# https://pixlab.io/cmd?id=drawtext is the target endpoint for drawing text