Skip to content
MYZATECHSOLUTIONS
CompletedBusiness Software

AttendX Smart Attendance

Android attendance system with on-device face recognition, blink liveness checks, and GPS geofencing, backed by a FastAPI service and a web admin panel.

Personal project

Overview

AttendX is an offline-first attendance system. Employees mark attendance on an Android device that verifies their face, checks that they are a live person, and confirms they are inside an approved location. Records sync to a backend and appear in a web admin panel.

The problem

Attendance systems are easy to fake by proxy: someone else signs in, a photo is held up to the camera, or attendance is marked away from the workplace.

The solution

Each attendance mark passes three checks on the device: a face match against the enrolled employee, a blink-based liveness check, and a GPS geofence check.

The app works offline and syncs in the background, so attendance can be recorded even with poor connectivity.

For privacy, the system stores 512-dimension face embeddings only, never photos.

Architecture and workflow

  1. Face enrollment on the Android device
  2. Blink liveness check
  3. Face match (FaceNet embeddings, 0.70 threshold)
  4. Geofence check
  5. Attendance stored locally (Room)
  6. Background sync via WorkManager
  7. FastAPI backend with PostgreSQL
  8. Next.js admin panel

Implementation details

  • Android app in Kotlin and Jetpack Compose, with Hilt for dependency injection, Room for offline storage, CameraX and ML Kit for the camera pipeline, and TensorFlow Lite running a FaceNet model.
  • WorkManager syncs every 15 minutes, when the app opens, and after each attendance mark.
  • FastAPI backend with SQLAlchemy and Pydantic on PostgreSQL, packaged with Docker; rate limiting with slowapi.
  • Two layers of authentication: JWT for administrators and a device API key for phones.
  • The employee creation endpoint is idempotent, so several devices can sync safely.
  • Next.js admin panel with employee management and a read-only attendance view.

Challenges and lessons learned

  • passlib breaks with bcrypt 4.1 and later, so the backend calls bcrypt directly.
  • psycopg v3 requires the postgresql+psycopg:// connection scheme in SQLAlchemy.
  • Background workers with Hilt need the @HiltWorker and @AssistedInject setup.
  • A geofence crash came from two location listeners both resuming on failure; fixed by tightening the listener lifecycle.
  • Free hosting tiers bring slow cold starts, which shaped how sync and retries were designed.

Results

  • End-to-end sync from device to admin panel in about 24 seconds, verified on a physical Android phone.

More work

  • Completed · Live

    Business Software

    Datalligence Website Redesign

    Rebuilt a company website from React/Vite into a Next.js App Router site with an AI chatbot, a filterable media gallery, and form workflows.

    • Next.js
    • React
    • Google Apps Script
    • Google Sheets
    • +2 more
  • Completed

    AI & Intelligent Applications

    Smart Callback Reminder

    Android app that detects missed calls, uses Gemini to suggest a callback reply by SMS, and reminds you at the time you promised to call back.

    • Kotlin
    • Jetpack Compose
    • Hilt
    • Google Gemini API
    • +1 more
  • Completed

    Business Software

    Training Assessment & Certificate Verification

    PIN-protected app for trainers to assess candidates and issue QR-coded certificates that anyone can verify online.

    • Next.js
    • Vercel
    • Google Forms
    • Google Sheets
    • +1 more

Need something similar?

Tell me about your project and let's explore whether this kind of solution fits.

Start a Conversation