How akblaster967-afk/akhilchaturvedi works
DrishtiAI is an AI-assisted identity-document screening prototype with a React interface and FastAPI backend. The user-facing flow is to submit a document for analysis, inspect the screening and identity evidence, and optionally retain results in a document vault; the README also highlights OCR, field extraction, consistency checks, and risk assessment. The graph includes those documented stages and the separate AI fake-document screening capability. Some frontend-to-analysis wiring and unsampled backend behavior are not visible in the excerpts, so those links are marked unverified or omitted.
Main entry points: main.py FastAPI routes · ai_fake_screener.py Fake-document screener · App.jsx React app routing · app.py Forensic screening UI
Components 25
User interface
- React app routing
src/App.jsx - Screening workspace
src/Pages/ForensicDeepDive.jsx - Analysis report
src/Pages/AnalysisResult.jsx - Audit logs
src/Pages/AuditLogs.jsx - User portal
src/Pages/UserPortal.jsx
API and persistence
- FastAPI routes
backend/app/main.py - AI screening routes
backend/app/ai_screening_routes.py - Application database
backend/app/database.py
Document analysis
- OCR processing
backend/app/services/ocr.py - Field extraction
backend/app/services/field_extractor.py - Document extraction
backend/app/services/document_specific_extractor.py - Aadhaar extraction
backend/app/services/aadhaar_extractor.py - Identity checks
backend/app/services/identity_checker.py - Document consistency
backend/app/services/document_consistency.py - Cross-document checks
backend/app/services/cross_document_consistency.py - Risk assessment
backend/app/services/risk_engine.py - Document verification
backend/app/services/document_verification_engine.py
Forensic screening
- Fake-document screener
backend/app/services/ai_fake_screener.py - C2PA credentials
backend/app/services/c2pa_checker.py - Image detector
backend/app/services/deep_learning_detector.py - EXIF analysis
backend/app/services/exif_checker.py - ELA analysis
backend/app/services/forensics_ela.py - OCR forensics
backend/app/services/ocr_forensics.py - Forensic screening UI
app.py
Other components
- User
Connections 28
- User → React app routing: uses
README.md - React app routing → Screening workspace: routes to
src/App.jsx - React app routing → Analysis report: routes to
src/App.jsx - React app routing → Audit logs: routes to
src/App.jsx - React app routing → User portal: routes to
src/App.jsx - Screening workspace → FastAPI routes: submits screening
- FastAPI routes → Application database: uses
backend/app/main.py - FastAPI routes → OCR processing: calls
backend/app/main.py - FastAPI routes → Field extraction: calls
backend/app/main.py - FastAPI routes → Identity checks: calls
backend/app/main.py - FastAPI routes → Document consistency: calls
backend/app/main.py - FastAPI routes → Cross-document checks: calls
backend/app/main.py - FastAPI routes → Risk assessment: calls
backend/app/main.py - FastAPI routes → Document verification: calls
backend/app/main.py - FastAPI routes → Document extraction: calls
backend/app/main.py - FastAPI routes → AI screening routes: registers router
backend/app/main.py - AI screening routes → Fake-document screener: runs
backend/app/ai_screening_routes.py - AI screening routes → ELA analysis: computes heatmap
backend/app/ai_screening_routes.py - Fake-document screener → C2PA credentials: checks
backend/app/services/ai_fake_screener.py - Fake-document screener → Image detector: checks
backend/app/services/ai_fake_screener.py - Fake-document screener → EXIF analysis: checks
backend/app/services/ai_fake_screener.py - Fake-document screener → ELA analysis: checks
backend/app/services/ai_fake_screener.py - Fake-document screener → OCR forensics: checks
backend/app/services/ai_fake_screener.py - Document extraction → Aadhaar extraction: delegates to
backend/app/services/document_specific_extractor.py - Analysis report → FastAPI routes: loads results
- Forensic screening UI → C2PA credentials: displays evidence
app.py - Forensic screening UI → EXIF analysis: displays evidence
app.py - Forensic screening UI → ELA analysis: displays evidence
app.py