How to detect faces in given document?

Problem: How to detect faces in given document?
Driving License / Passport / ….etc

Extract all images
detect human faces
— check head gear / hats
— Check for eye glasses
— Image quality
— Detect age of the person
— Detect male/female
— Detect signatures
— save curated images and meta data in JSON separately

This helps to do fraud detection.

===================

https://www.geeksforgeeks.org/how-to-extract-images-from-pdf-in-python/

https://pypi.org/project/face-recognition

https://thepythoncode.com/article/extract-pdf-images-in-python

=============
Image quality
BRISQUE Method

https://pypi.org/project/image-quality

=============

Eye Glass detector

=================

NodeJS – OpenID Connection

https://entra.microsoft.com

https://learn.microsoft.com/en-us/azure/active-directory-b2c/overview

https://www.passportjs.org/packages/passport-openidconnect

Security Standards
https://openid.net/developers/specs/

OpenID Connect (OIDC) is an identity layer built on top of the OAuth 2.0 framework. It allows third-party applications to verify the identity of the end-user and to obtain basic user profile information. OIDC uses JSON web tokens (JWTs), which you can obtain using flows conforming to the OAuth 2.0 specifications.
https://auth0.com/docs/authenticate/protocols/openid-connect-protocol

Try OIDC Yourself:
https://demo.bindid-sandbox.io/

Azure Monitor for Java applications

Logging/Log analytics on Azure to monitor Java Applications
https://www.youtube.com/watch?v=Np_P1i3ovaU


Using Azure Monitor Application Insights with Spring Boot
https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-spring-boot

java -javaagent:”path/to/applicationinsights-agent-3.5.1.jar” -jar


Quickstart: Monitoring Azure Spring Apps apps with logs, metrics, and tracing
https://learn.microsoft.com/en-us/azure/spring-apps/basic-standard/quickstart-logs-metrics-tracing?tabs=Azure-CLI&pivots=programming-language-java


Distributed traces in Azure: https://learn.microsoft.com/en-us/azure/azure-monitor/app/distributed-trace-data

Apache Commons Logging (JCL)

Apache Commons Logging (JCL)
The Logging package is an ultra-thin bridge between different logging implementations. A library that uses the commons-logging API can be used with any logging implementation at runtime. Commons Logging comes with support for a number of popular logging implementations, and writing adapters for others is a reasonably simple task.
https://commons.apache.org/proper/commons-logging/index.html

Best read with examples
https://www.alibabacloud.com/blog/java-logging-frameworks-summary-and-best-practices_598223

Write messages to the Jakarta Commons Logging Log interface, and rely on Commons Logging to decide which concrete logging framework to use at runtime.
https://www.oreilly.com/library/view/jakarta-commons-cookbook/059600706X/ch07s11.html

Addressing the complexity of the Java logging ecosystem with capabilities
https://blog.gradle.org/addressing-logging-complexity-capabilities

-o-