This project contains an Azure Function to process IMM 5744 consent forms for ATIP compliance. It extracts data from PDFs using Azure Document Intelligence, extracts signature images using PyMuPDF, and analyzes compliance using Azure OpenAI's GPT-4o model.
- Triggers on PDF uploads to an Azure Blob Storage container (
form-pdfs). - Uses a custom Document Intelligence model (
IMM5744E-ConsentForm-3v2) to extract form data. - Extracts signature images and analyzes ink color (must be blue) and compliance rules.
- Outputs extracted data to
form-jsonand compliance reports toform-reports.
- Azure Subscription
- Azure Storage Account with containers:
form-pdfs,form-json,form-reports - Azure Document Intelligence resource with a custom model named
IMM5744E-ConsentForm-3v2 - Azure OpenAI resource with the
gpt-4omodel enabled - Python 3.12
- Azure Functions Core Tools (
func)
- Clone the Repository:
git clone https://github.com/YOUR_USERNAME/atip-solution.git cd atip-solution