This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
# Change the PIN Code of a given Facial ID on a FACEIO application | |
# Refer to: https://faceio.net/rest-api#setfacialidpincode for the official documentation & expected parameters | |
req = requests.post('https://api.faceio.net/setfacialidpincode',json={ | |
"fid": "FACIAL_ID", # Target Facial ID to change the PIN code for | |
"pin": "1234", # New PIN Code for this user. Must be a numeric STRING! | |
"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 | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AllFaceioErrorCodes = { | |
PERMISSION_REFUSED: 1, /* Access to the Camera stream was denied by the end user */ | |
NO_FACES_DETECTED: 2, /* No faces were detected during the enroll or authentication process */ | |
UNRECOGNIZED_FACE: 3, /* Unrecognized face on this application's Facial Index */ | |
MANY_FACES: 4, /* Two or more faces were detected during the scan process */ | |
PAD_ATTACK: 5, /* Presentation (Spoof) Attack (PAD) detected during the scan process */ | |
FACE_MISMATCH: 6, /* Calculated Facial Vectors of the user being enrolled do not matches */ | |
NETWORK_IO: 7, /* Error while establishing network connection with the target FACEIO processing node */ | |
WRONG_PIN_CODE: 8, /* Wrong PIN code supplied by the user being authenticated */ | |
PROCESSING_ERR: 9, /* Server side error */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Programming introduction with the SOD Embedded Image Processing API. | |
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io | |
*/ | |
/* | |
* Compile this file together with the SOD embedded source code to generate | |
* the executable. For example: | |
* | |
* gcc sod.c gaussian_blur_image.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Programming introduction with the SOD Embedded Image Processing API. | |
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io | |
*/ | |
/* | |
* Compile this file together with the SOD embedded source code to generate | |
* the executable. For example: | |
* | |
* gcc sod.c sepia_filter.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Tiny Dream Integration Boilerplate. | |
* | |
* Compile this file together with the Tiny Dream header (tinydream.hpp) to generate | |
* the executable. Example of heavy optimized compilation under g++: | |
* | |
* g++ -o tinydream boileplate.cpp -funsafe-math-optimizations -Ofast -flto=auto -funroll-all-loops -pipe -march=native -std=c++17 -Wall -Wextra `pkg-config --cflags --libs ncnn` -lstdc++ -pthread -Wl -flto -fopt-info-vec-optimized | |
* | |
* To run the program simply type: | |
* |
NewerOlder