๐ฌ Evaluate OMR answer sheets with Gemini vision AI and Google Sheets
โก 462 views ยท ๐ฌ Document Extraction & Analysis
Description
โ What problem does this workflow solve?
Manual checking of OMR (Optical Mark Recognition) answer sheets is time-consuming, error-prone, and difficult to scaleโespecially for schools, coaching institutes, and exam centers.
This workflow automates OMR evaluation end-to-end using AI, from reading a scanned answer sheet image to calculating scores and storing structured results in Google Sheets.
โ๏ธ What does this workflow do?
- Accepts a scanned OMR answer sheet image via webhook.
- Uses AI vision to extract only the marked answers from the sheet.
- Extracts basic student details (Name, Roll Number, Class).
- Compares extracted answers with a predefined answer key.
- Calculates:
- Total questions
- Correct answers
- Incorrect answers
- Score percentage
- Generates question-wise binary results (1 = correct, 0 = incorrect).
- Stores the complete result in Google Sheets.
- Returns a structured JSON response to the calling system.
๐ง How It Works โ Step by Step
1. ๐ฅ Webhook Trigger (Student OMR Upload)
- A client uploads the OMR image via a
POSTrequest. - Image is received as
form-data(key: file).
2. ๐๏ธ AI-Based OMR Image Analysis
- An AI vision model analyzes the image.
- Strict rules ensure:
- Only answer bubbles are considered
- Multiple markings โ darkest option is selected
- Unmarked questions are skipped
- No guessing or hallucination
- Output includes:
- Student details
- Questionโanswer pairs
3. ๐ Answer Formatting
- Raw AI output is converted into a clean, structured format:
1:A, 2:B, 3:C, ...
- Student metadata is preserved separately.
4. ๐งฎ Answer Key Setup
- Correct answers are defined inside the workflow (editable anytime).
- Supports any number of questions.
5. ๐ Result Calculation
- User answers are compared with the answer key.
- Generates:
- Correct / Incorrect counts
- Percentage score
- Detailed per-question result
- Binary output (
Q.1 = 1 / 0) for analytics
6. ๐ Google Sheets Logging
- Results are appended to a Google Sheet with columns such as:
- Student Name
- Roll No
- Class
- Correct
- Incorrect
- Score Percentage
- Q.1 โ Q.n (binary values)
7. ๐ค API Response
- Workflow responds with a JSON payload containing:
- Student details
- Full evaluation summary
- Per-question analysis
๐ Sample Google Sheet Output
| Student Name | Roll No | Class | Correct | Incorrect | Score % | Q.1 | Q.2 | Q.3 | โฆ |
|---|---|---|---|---|---|---|---|---|---|
| Rahul Shah | 1023 | 10-A | 16 | 4 | 80% | 1 | 0 | 1 | โฆ |
๐ Integrations Used
- ๐ค AI Vision Model โ for accurate OMR detection
- โ๏ธ n8n Webhook โ to accept image uploads
- ๐ง Custom Code Nodes โ for parsing and evaluation logic
- ๐ Google Sheets โ for persistent result storage
๐ค Who can use this?
This workflow is ideal for:
- ๐ซ Schools & Colleges
- ๐ Coaching Institutes
- ๐งช Online Exam Platforms
- ๐งโ๐ป EdTech Developers
- ๐ Mock Test Providers
If you need fast, reliable, and scalable OMR checking without expensive hardwareโthis workflow delivers.
๐ Benefits
- โฑ Saves hours of manual checking
- ๐ฏ Eliminates human error
- ๐ Produces analytics-ready data
- ๐ Easy to update answer keys
- ๐ API-ready for integration with any system
๐ฆ Ready to Deploy?
Just configure:
- โ AI model credentials
- โ Google Sheets access
- โ Your correct answer key
โฆand start evaluating OMR sheets automatically at scale.
๐ Nodes Used
Google Sheets, Webhook, Ollama
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File