Skip to content

Instantly share code, notes, and snippets.

View symisc's full-sized avatar

PixLab | Symisc Systems symisc

View GitHub Profile
@symisc
symisc / pixlab-docscan-passport-scan-js-example.js
Last active November 28, 2024 22:49
Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint documented at: https://ekyc.pixlab.io/docscan
/*
* Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
* documented at: https://ekyc.pixlab.io/docscan
*
* In this example, 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://console.pixlab.io
* 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 / pixlab-docscan-passport-scan-ruby-example.rb
Created November 28, 2024 22:47
Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint documented at: https://ekyc.pixlab.io/docscan
=begin
* Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
* documented at: https://ekyc.pixlab.io/docscan
*
* In this example, 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://console.pixlab.io
* 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 / malaysia_mykad_id_scanner_api.php
Last active September 28, 2024 23:56
Scan Malaysia ID Card (MyKAD) using the PixLab DOCSCAN API - Extract Face, and all ID Fields - https://ekyc.pixlab.io/
<?php
/*
* Usage sample of the ID card scanner from PixLab. In this sample, we shall scan
* ID Card from Malaysia (MyKAD); therefore we will extract the user's face, date of birth,
* full name, address, and religion if available.
*/
/*
* 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
*/
@symisc
symisc / malaysia_mykad_id_scanner_api.py
Last active September 28, 2024 23:55
Python Code Sample for Scanning Malaysian ID Card (MyKAD) using the PixLab DOCSCAN API - Extract Face, and all ID Fields - https://ekyc.pixlab.io/
import requests
import json
# Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
# documented at: https://ekyc.pixlab.io/docscan
#
# In this example, 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://console.pixlab.io
@symisc
symisc / auto_blur_faces.php
Last active August 21, 2024 17:48
Apply a blur filter automatically for each detected face using the PixLab Rest API (PHP Sample)
<?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";
# Detect all human faces in a given image via `facedetect` and blur all of them via `mogrify`.
# https://pixlab.io/cmd?id=facedetect & https://pixlab.io/cmd?id=mogrify for additional information.
@symisc
symisc / scan_passport_local_image_upload.py
Last active July 3, 2024 02:10
Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint documented at: https://ekyc.pixlab.io/docscan
import requests
import json
# Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
# documented at: https://ekyc.pixlab.io/docscan
#
# In this example, 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://console.pixlab.io
@symisc
symisc / scan_us_driver_license_id.py
Last active July 3, 2024 01:49
Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint documented at: https://ekyc.pixlab.io/docscan
import requests
import json
# Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
# documented at: https://ekyc.pixlab.io/docscan
#
# In this example, given a IS Driver License extract the license 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://console.pixlab.io
@symisc
symisc / scan_us_driver_license_id.php
Last active June 28, 2024 00:11
Scan a US Driving License image document from any of the U.S 50 states via the PixLab DOCSCAN API endpoint: https://ekyc.pixlab.io/docscan
<?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";
@symisc
symisc / scan_passport_pixlab_api.py
Last active June 27, 2024 23:59
Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint documented at: https://ekyc.pixlab.io/docscan
import requests
import json
# Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
# documented at: https://ekyc.pixlab.io/docscan
#
# In this example, 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://console.pixlab.io
@symisc
symisc / passport_id_scan_ocr.py
Last active June 27, 2024 23:30
Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint documented at: https://ekyc.pixlab.io/docscan
import requests
import json
# Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
# documented at: https://ekyc.pixlab.io/docscan
#
# In this example, 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://console.pixlab.io