Skip to content

Instantly share code, notes, and snippets.

View symisc's full-sized avatar

PixLab | Symisc Systems symisc

View GitHub Profile
@symisc
symisc / convert-pdf-to-image.js
Created July 18, 2025 18:03
Convert PDF Document to image format using the PixLab PDFTOIMG SDK-Free REST API Endpoint - https://pixlab.io/endpoints/pdftoimg
// Convert PDF Document to image format using the PixLab PDFTOIMG SDK-Free REST API Endpoint
fetch('https://api.pixlab.io/pdftoimg?src=https://www.getharvest.com/downloads/Invoice_Template.pdf&export=jpeg&key=PIXLAB_API_KEY')
.then(response => response.json())
.then(reply => {
if (reply.status !== 200) {
console.log(reply.error);
} else {
console.log("Link to the image output (Converted PDF page): " + reply.link);
}
})
@symisc
symisc / ondemand-pdf-generation-from-markdown.php
Created July 18, 2025 17:55
Programmatically Generate PDF documents from markdown or HTML input suing PixLab's PDFGEN API - https://pixlab.io/endpoints/pdfgen
<?php
# Programmatically Generate PDF document from markdown or HTML input
# Replace with your actual PixLab API key
$api_key = "YOUR_PIXLAB_API_KEY"; // Get yours from https://console.pixlab.io/
# Markdown formatted invoice
$markdown_text = <<<EOD
# Invoice
@symisc
symisc / image-query-pixlab-api.py
Created June 24, 2025 00:24
Get natural language responses to image-related queries using the PixLab query endpoint - https://pixlab.io/endpoints/query
import requests
import json
# Get natural language responses to image-related queries
# 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'
@symisc
symisc / age_gender_extract.py
Last active August 9, 2025 00:56
Age Verification & Gender Extraction using the FACEIO REST API - https://faceio.net/rest-api#age-check
# Age Verification & Gender Extraction using the FACEIO REST API - https://faceio.net/rest-api#age-check
#
# The age verification API endpoint allows you to verify customer age and gender
# by directly uploading a base64 encoded image of the person being verified.
# No prior face enrollment is required; Age verification operates directly on the uploaded images.
# This API endpoint expects a single face to be present in the source image being checked.
import requests
import json
import base64
@symisc
symisc / face-compare-faceio-api.py
Last active August 7, 2025 02:26
Check whether two given faces in different images belong to the same person or not using the FACEIO API - https://faceio.net/rest-api#faceverify
# Face Verification API - Programmatically Compare Two Faces in Different Images
#
# Documentation: - https://faceio.net/rest-api#faceverify
#
# The Face Verify API endpoint allow you to programmatically compare (check) whether two faces
# in different images belong to the same person. This API is ideal for programmatic face checks
# that don't require user interaction. Simply upload two images, each containing a single face,
# using your preferred programming language, and the algorithm determines if the faces belong to the same person.
import requests
@jlia0
jlia0 / agent loop
Last active August 9, 2025 16:38
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@symisc
symisc / pixlab-docscan-passport-scan-js-example.js
Last active July 11, 2025 17:42
Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint documented at: https://pixlab.io/id-scan-api/docscan
/*
* Scan over 11K ID Documents from over 197 countries using the PixLab DOCSCAN API Endpoint
* documented at: https://pixlab.io/id-scan-api/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 / 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 / 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