Skip to content

Instantly share code, notes, and snippets.

View symisc's full-sized avatar

PixLab | Symisc Systems symisc

View GitHub Profile
@symisc
symisc / generate_image_description.py
Created June 22, 2025 23:46
Generate a natural language description of an image content using the PixLab DESCRIBE API Endpoint - https://pixlab.io/endpoints/describe
import requests
import json
# Generate a natural language description of an image content
# Target Image: Change to any link or switch to POST if you want to upload your image directly, refer to the REST API code samples for more info.
img = 'https://s-media-cache-ak0.pinimg.com/originals/35/d0/f6/35d0f6ee0e40306c41cfd714c625f78e.jpg'
key = 'PIXLAB_API_KEY' # Get your API key from https://console.pixlab.io/
@symisc
symisc / age_gender_extract.py
Created June 21, 2025 13:41
Age verification and gender extraction using the FACEIO REST API - https://faceio.net/rest-api
# Age verification and gender extraction using the FACEIO REST API - https://faceio.net/rest-api
@symisc
symisc / face-compare-faceio-api.py
Created June 20, 2025 22:57
Check whether two given faces in different images belong to the same person or not using the FACEIO API - https://faceio.net/rest-api
# Determine if the provided faces represent the same individual
# using the FACEIO REST API - https://faceio.net/rest-api
@symisc
symisc / pixlab-docscan-passport-scan-ruby-example.rb
Last active March 10, 2025 23:55
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 / pixlab-docscan-passport-scan-js-example.js
Last active March 22, 2025 03:01
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 / faceio_change_pin_code.py
Last active November 18, 2023 03:10
Change the PIN Code of a given Facial ID on a FACEIO application - Refer to: https://faceio.net/rest-api#setfacialidpincode for additional information
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
})
@symisc
symisc / faceio_list_of_error_codes.js
Created November 10, 2023 02:01
List of error codes, and their respective explanation & code number for FACEIO, facial authentication framework - https://faceio.net/integration-guide#error-codes
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 */
@symisc
symisc / gaussian_blur_image.c
Last active July 24, 2023 03:45
Apply Gaussian Blur Filter to a given RGB image using the SOD Embedded Computer Vision Library - https://sod.pixlab.io
/*
* 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
*
@symisc
symisc / sod_sepia_filter.c
Created July 24, 2023 02:45
Apply Sepia Tone (filter) to a given RGB image using the SOD Embedded Computer Vision Library - https://sod.pixlab.io
/*
* 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
*
@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