Discuss Architecture
CASE STUDY 01 · Native Android · Retail Automation & Computer Vision•90% Faster Checkout · 10m → 30s Billing

Anil Optixx — AI Optical Prescription Scanner & Cloud POS

An end-to-end native Android billing and CRM application built for optical clinics and eyewear retailers. Anil Optixx uses on-device document edge detection and OCR to scan physical eye prescriptions into editable digital tables, pairs them with custom lens specifications, enforces cloud-first PDF invoice archiving via Firebase, and delivers one-tap WhatsApp billing—cutting checkout time from 10 minutes down to 30 seconds.

Platforms: Native Android · ML Kit OCR · Cloud POS Billing · Lead Android Engineer & UI/UX Designer
LinkedInX (Twitter)
LIVE SYSTEM SHOWREEL · ANIL-OPTIXX90% Faster Checkout · 10m → 30s Billing
Core Tech Stack & Tooling

Production Engineering Stack

Architected with strict separation of concerns, deterministic state management, and low-latency execution.

KotlinJetpack ComposeMaterial Design 3MVVM & Clean ArchitectureFirebase FirestoreFirebase Cloud StorageGoogle AuthML Kit OCRDocument Scanner APIAndroid PdfDocument
System Highlights & Architectural Scope

AI-Powered Optical Prescription Scanner & Cloud POS Billing System

Optical retailers manage complex bilateral eye prescription matrices (Sphere, Cylinder, Axis, Distance/Near vision) alongside granular lens customizations (Coatings, Base Curve, Tint, Material). Relying on manual paper diaries and handwritten bills leads to transcription errors, slow customer checkout queues, and permanently lost prescription records.

The Engineering Solution

I designed and engineered Anil Optixx as a mobile-first Point-of-Sale (POS) and prescription management ecosystem. The app turns any Android device into an intelligent optical scanner and cloud billing terminal.

Technical Architecture & Pipeline

Key Features & Engineering Breakdown

90% Faster Checkout

Reduced prescription entry and invoice generation from ~10 minutes to under 30 seconds.

100% Cloud Backup Integrity

Enforced sync-before-share pipeline ensures zero missing customer records.

Adaptive M3 Interface

Responsive design supporting Light/Dark modes and multi-device screen dimensions.

MODULE 01

Smart Document Edge Detection & OCR Parsing

  • Integrated Google ML Kit Document Scanner with automatic corner detection, perspective correction, and cropping for both live Camera captures and Gallery imports.
  • Automated OCR extraction populates Right Eye (OD) and Left Eye (OS) optical parameters (Sph, Cyl, Axis, V/A for Distance and Near vision) into an interactive, editable verification grid.
MODULE 02

Enforced Cloud-First PDF Billing Pipeline

  • Custom native PDF invoice generator (PdfDocument) that renders branded optical invoices containing prescription tables, lens specifications (Lens Type, Coating, Size, Tint, Base Curve), and pricing breakdowns.
  • Built a strict state-machine workflow: local PDF downloads and one-tap WhatsApp sharing (FileProvider + Intent.ACTION_SEND) unlock only after the invoice PDF is verified as uploaded to Firebase Cloud Storage and indexed in Cloud Firestore, guaranteeing 100% database integrity.
MODULE 03

Material Design 3 (Material You) & Adaptive UI

  • Engineered with strict 48x48dp minimum touch targets, tonal elevation hierarchy (Levels 0–5), and responsive constraints (WindowSizeClass) for seamless operation across phones, foldables, and tablets.
  • Includes dynamic theme switching (Light, Dark, and System Default) alongside Google Sign-In and Guest/Anonymous evaluation modes.
MODULE 04

Real-Time CRM History & Multi-Mode Search

  • Live Firestore-backed invoice repository featuring inline PDF thumbnail previews, quick record editing, and confirmation-guarded deletions.
  • Dedicated search and filtering engine supporting instant lookups by customer name, preset time frames (Today, Yesterday), single dates, or custom date ranges.
MODULE 05

Network-Resilient State Management

  • Implemented proactive ConnectivityManager network checks prior to cloud reads/writes, preventing corrupted uploads and guiding store operators with clean feedback during offline states.
Distribute Architecture Brief

Share this Case Study

https://atharvajain.in/projects/anil-optixx

MORE PRODUCTION ARCHITECTURES

Explore Other Case Studies

View Full Portfolio Grid