MARKETPLACE
PLUGINS
ID DOCUMENT DETECTOR
ID Document Detector logo

ID Document Detector

Published July 2020
   •    Updated this month

Plugin details

Secure your business model by verifying whether your users have submitted an actual ID, such as Passport, ID Card, or Driving License, from a JPEG or PNG image file.
The plugin returns a boolean true if an ID has been detected, false otherwise.

For thorough checking, you can use our Liveness & Biometrics Check Plugin (https://bubble.io/plugin/liveness--biometrics-check-1595964274316x539788272695246850) to perform a liveness check of the user via a camera stream, comparing the ID picture with a live user face.

This plugin offers two ways to verify ID documents:
- FRONT-END DESKTOP & NATIVE MOBILE ELEMENT: For client-side processing with better performance and automatic image optimization
- BACK-END ACTION: For server-side processing with simple setup

AWS Rekognition credentials are required to use this plugin.

A script is provided to automatically configure your AWS account settings.

The demo application link: https://iddocumentdetector.bubbleapps.io/version-test

Editor Link: https://bubble.io/page?id=iddocumentdetector-editor&name=index


💡 𝗦𝘂𝗯𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝗽𝗿𝗼𝗿𝗮𝘁𝗲𝗱. 𝗜𝗳 𝘆𝗼𝘂 𝗶𝗻𝘀𝘁𝗮𝗹𝗹 𝗮𝗻𝗱 𝘂𝗻𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗯𝗲 𝘁𝗵𝗶𝘀 𝗽𝗹𝘂𝗴𝗶𝗻 𝗶𝗻 𝗼𝗻𝗲 𝗱𝗮𝘆 𝘁𝗼 𝘁𝗲𝘀𝘁 𝗶𝘁 𝗼𝘂𝘁, 𝘆𝗼𝘂'𝗹𝗹 𝗼𝗻𝗹𝘆 𝗯𝗲 𝗰𝗵𝗮𝗿𝗴𝗲𝗱 𝟭/𝟯𝟬𝘁𝗵 𝗼𝗳 𝘁𝗵𝗲 𝗺𝗼𝗻𝘁𝗵𝗹𝘆 𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻 𝗳𝗲𝗲.

📖 𝗦𝘁𝗲𝗽-𝗯𝘆-𝗦𝘁𝗲𝗽 𝗶𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻𝘀 𝗮𝗿𝗲 𝘁𝗵𝗲 "𝗜𝗻𝘀𝘁𝗿𝘂𝗰𝘁𝗶𝗼𝗻𝘀" 𝘀𝗲𝗰𝘁𝗶𝗼𝗻 𝗮𝗻𝗱 𝗗𝗲𝗺𝗼 𝗘𝗱𝗶𝘁𝗼𝗿 𝗶𝘀 𝗶𝗻 𝘁𝗵𝗲 "𝗟𝗶𝗻𝗸𝘀" 𝘀𝗲𝗰𝘁𝗶𝗼𝗻 𝗼𝗳 𝘁𝗵𝗲 𝗣𝗹𝘂𝗴𝗶𝗻 𝗣𝗮𝗴𝗲.

Contact us at [email protected] for any additional feature you would require or support question.

$99

One time  •  Or  $5/mo

stars   •   0 ratings
69 installs  
This plugin does not collect or track your personal data.

Platform

Web & Native mobile

Contributor details

wise:able logo
wise:able
Joined 2020   •   122 Plugins
View contributor profile

Instructions

1️⃣ ID DOCUMENT DETECTOR (FRONT-END DESKTOP & NATIVE MOBILE) ============================

📋 ELEMENT DESCRIPTION
--------------------------------
ID DOCUMENT DETECTOR (FRONT-END DESKTOP & NATIVE MOBILE) element provides client-side ID document detection. This element automatically optimizes and processes images to meet AWS requirements and performs detection directly from the user's browser, making it ideal for applications where user experience and performance are critical.

🔧 STEP-BY-STEP SETUP
--------------------------------
The steps from 0) to 1) can be automatically performed by using this deployment template:
 https://console.aws.amazon.com/cloudformation/home?#/stacks/create/review?stackName=BubbleRekognitionSyncOnly&templateURL=https://bubble-resources.s3.amazonaws.com/deployment-assets/CloudFormation-AWSRekognitionSyncOnly.yaml

 You will find the required parameters values used across the plugin in the "OUTPUT" tab of the created stack.

0) Sign-up for AWS REKOGNITION by following this link: https://console.aws.amazon.com/rekognition/home?p=rkn&cp=bn&ad=c

1) Create your AWS REKOGNITION ACCESS KEY & ACCESS KEY SECRET by following the instructions on this page with AWS REKOGNITION Read Only or Full Access Policy to DETECTLABELS at the minimum: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys

2) Register on plugins.wiseable.io. Create a new Credential which associates your BUBBLE APP URL, AWS REKOGNITION ACCESS KEY & ACCESS KEY SECRET.
The registration service will generate your PUBLIC ACCESS KEY. This key serves as a secure proxy for your real API key.

3) In the Plugin Settings, enter the following:
  - PUBLIC ACCESS KEY (generated from plugins.wiseable.io)
  - AWS SERVICE ENDPOINT REGION (if not provided, default endpoint is "us-east-1").

4) Add the ID DOCUMENT DETECTOR (FRONT-END DESKTOP & NATIVE MOBILE) element to your page.

5) Integrate the logic into your application using the following element's states and actions:

EVENTS:
- SUCCESS: Event triggered upon successful detection
- ERROR: Event triggered upon error

EXPOSED STATES:
- IS ID: Set to true if an ID document is detected, false otherwise
- ERROR MESSAGE: Contains error details when the ERROR event is triggered
- IS PROCESSING: Set to true when processing is in progress, false otherwise

ELEMENT ACTIONS:
- DETECT ID DOCUMENT (FRONT-END DESKTOP & NATIVE MOBILE): Detects from an image and returns a boolean which is true if an ID such as a Passport, ID Card, or Driving License has been detected, false otherwise.
 Input Fields:
   - IMAGE: Image from a Bubble.io uploader, or a Protocol-relative URL (//server/file.ext), a HTTPS file URL (https://server/file.ext) or an AWS S3 URI (s3://bucket/image.jpg).
   - MIN CONFIDENCE: Minimum confidence level for the labels to return (0-100). Default is 55.

2️⃣ DETECT ID DOCUMENT (BACK-END)
========================

📋 ACTION DESCRIPTION
--------------------------------
DETECT ID DOCUMENT detects from an image and returns a boolean which is true if an ID such as a Passport, ID Card, or Driving License has been detected, false otherwise.

🔧 STEP-BY-STEP SETUP
--------------------------------
The steps from 0) to 1) can be automatically performed using the deployment template mentioned above.

0) Sign-up for AWS REKOGNITION by following this link: https://console.aws.amazon.com/rekognition/home?p=rkn&cp=bn&ad=c

1) Create your AWS REKOGNITION ACCESS KEY & ACCESS KEY SECRET by following the instructions of this page with AWS REKOGNITION Read Only or Full Access Policy to DETECTLABELS at the minimum: https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys

2) Enter your AWS REKOGNITION ACCESS KEY & ACCESS KEY SECRET & AWS SERVICE ENDPOINT REGION (if not provided, the default endpoint is "us-east-1") in the Plugin Settings.

3) Use any elements (such as Picture Upload), returning a Protocol-relative URLs (//server/path/image.jpg), or a HTTPS image URL (https://server/image.jpg) of a JPEG or PNG image.

4) Set up the steps in the required workflow using the plugin action "DETECT ID DOCUMENT (BACK-END)".

  Input Fields:
   - IMAGE: JPEG or PNG image file from the Bubble.io picture uploader, or a Protocol-relative URL (//server/image.jpg), or a HTTPS image URL (https://server/image.jpg).
   - MIN CONFIDENCE: Specifies the minimum confidence level for the labels to return. Default value is 55 if not provided.
 
  Output Fields:
   - IS ID: Returns a boolean, true if an ID such as a Passport, ID Card, or Driving License has been detected, false otherwise.

🔍 IMPLEMENTATION EXAMPLE
======================
Feel free to browse the app editor in the Service URL for an implementation example.

ℹ️ ADDITIONAL INFORMATION
======================

> AWS REKOGNITION service limits: https://docs.aws.amazon.com/rekognition/latest/dg/limits.html
> AWS services availability per region: https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
> AWS Service endpoints list: https://docs.aws.amazon.com/general/latest/gr/rande.html

⚠️ TROUBLESHOOTING
================
Any plugin related error will be posted to the the Logs tab, "Server logs" section of your App Editor.
Make sure that "Plugin server side output" is selected in "Show Advanced".

For front-end actions, you can also open your browser's developer console (F12 or Ctrl+Shift+I in most browsers) to view detailed error messages and logs.

Always check the ERROR MESSAGE state of the element and implement error handling using the ERROR event to provide a better user experience.

> Server Logs Details: https://manual.bubble.io/core-resources/bubbles-interface/logs-tab#server-logs

⚡ PERFORMANCE CONSIDERATIONS
===========================

GENERAL
-------------
For back-end actions, the maximum processing duration is capped at 30 seconds as per Bubble.io design. This time limitation does not apply to front-end actions.

⏱️ BACK-END ACTION START DELAY
-----------------------------------------------
Each time a server-side action is called, Bubble initializes a small virtual machine to execute the action. If the same action is called shortly after, the caching mechanism kicks in, resulting in faster execution on subsequent calls.

A useful workaround is to fire a dummy execution at page load, which pre-warms the Bubble engine for the next few minutes, reducing the impact of cold starts for your users.

FRONT-END VS BACK-END PROCESSING
----------------------------------------------------
The front-end element is designed to support and optimize multiple image formats and will automatically compress images to adhere to AWS requirements. The back-end action doesn't perform this optimization, so be careful with file size and format when using it.

❓QUESTIONS?
===========
Contact us at [email protected] for any additional feature you would require or support question.

Types

This plugin can be found under the following types:
Background Services   •   Element   •   Event   •   Action

Categories

This plugin can be found under the following categories:
Compliance   •   Technical   •   Productivity   •   AI   •   Mobile   •   Visual Elements

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble