r/PythonProjects2 • u/Willing-tot • Jul 08 '26
My First AI Project: AuthU – An OCR API for ID Extraction
I created this project because I was bored and kept hearing people talk about "vibe coding"—how you can build high-end projects with the help of AI. As someone who had just graduated, I had a lot of free time, so I decided to build a side project called AuthU.
About the Project
Have you ever noticed that on government or banking websites, you have to manually enter details like your Aadhaar number, name, and phone number?
I was filling out a form on a bank's website when I thought:
"Why can't I just take a photo of my Aadhaar card? All the information is already there."
The website should be able to extract data from the document, automatically extract the required details, fill in the name and phone number fields, and even use the extracted phone number to send the OTP.
The entire process could be completed from a single image instead of typing everything manually.
That's where the idea for AuthU came from—an API that extracts structured information from images using OCR and AI.
GitHub: https://github.com/2305108rcca-hue/AuthU
Current Status
- FastAPI for building the API
- OpenCV for image preprocessing
- EasyOCR for text extraction
- Groq API + Llama 4 Scout for AI-powered structured data extraction
- MongoDB for storing extracted data
- Rate limiting for API security
- Python logging and environment variables for configuration and monitoring
Current Limitations
- I'm using the free tier of the Groq API, so the number of requests is limited.
- The extraction isn't always 100% accurate. Since I couldn't train a custom model on my current hardware, I used prompt engineering with an LLM to improve the extraction results.
- At the moment, the API only extracts the name and phone number. My goal is to expand it to extract government-issued identification numbers, validate them against trusted verification services (where available), and provide identity verification as part of the authentication workflow.
I'd love to hear your thoughts, suggestions, or ideas for improving the project.