Document verification system powered by:
- π§ AI Engine (Flask, OCR, fraud detection)
- π Blockchain (Hardhat, Solidity)
- π Node.js backend (Express, ethers.js)
- π» React frontend (Tailwind CSS)
zeoverify-3.0/ βββ frontend/ # React app βββ backend/ # Node.js backend API βββ ai-engine/ # Flask AI Engine (OCR + fraud) βββ blockchain/ # Hardhat smart contracts βββ README.md
---
## π How It Works (Flow)
1. User uploads document β frontend sends to backend
2. Backend:
- Calls AI Engine β get extracted text & fraud status
- Stores file hash on blockchain
3. Backend sends result to frontend
4. Frontend shows extracted text, fraud status & hash
---
## βοΈ Setup Guide
> Clone repo first:
<<<<<<< HEAD
=======
```bash
>>>>>>> 623d24562f9a3d178ba8c85174340944c954f0c4
git clone https://github.com/dipak0000812/zeoverify.git
cd zeoverify-3.0
π AI Engine
cd ai-engine
pip install -r requirements.txt
python app.py
Install Tesseract OCR & set path in ocr_engine.py:
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
π Blockchain (Hardhat)
cd blockchain
npm install
npx hardhat compile
npx hardhat node # start local blockchain (http://127.0.0.1:8545)
npx hardhat run scripts/deploy.js --network localhost
π Backend (Node.js)
cd backend
npm install
π Frontend (React)
cd frontend
npm install
npm start
π API Flow
Frontend β POST /api/verify β backend
Backend β AI Engine (POST /verify-document)
AI Engine β returns extracted text & fraud
Backend β stores hash on blockchain
<<<<<<< HEAD
Backend β sends final JSON:
=======
Backend β sends final JSON:
>>>>>>> 623d24562f9a3d178ba8c85174340944c954f0c4