Arxec Systems
Back to Archive
Case Study · 2024FeaturedLIVE

CML Kothamangalam

CML Kothamangalam

Registration, room allotment, live scoring, and automated ID card generator for the CML Diocesan Kalolsavam festival.

CML Kothamangalam

Event operations platform built with Next.js and Supabase for the Cherupushpa Mission League (CML) Diocese of Kothamangalam festival across 112 parish units and 8,000+ youth participants. Handles parish registrations, automated delegate ID card generation with Face-API.js portrait cropping, venue/room allocation, and live scoreboard tallies.

Problem Visual
The Problem

Manual registrations & badge prep across 112 parishes

Running a diocesan festival across 112 parishes involved manual registration sheets, cropping hundreds of participant photos by hand for ID badges, and manually tallying stage and literary competition points.

Solution Visual
The Solution

Automated Face-API ID studio & live scoreboard

Built a Next.js + Supabase platform with parish-level registration portals, an in-browser ID card studio using Face-API.js and HTML5 Canvas to auto-crop faces and batch-export print-ready PDF badges, and a live scoring engine that updates parish and regional (Mekhala) standings in real time.

Feature Visual
Implementation

In-Browser Face-API.js Badge Generator

Face-API.js
Canvas API
SVG-to-Image
Batch Processing

System Core · Dynamic ID Generation Engine

const generateID = async (participant) => {
  const canvas = document.createElement('canvas');
  const ctx = canvas.getContext('2d');
  const detections = await faceapi.detectSingleFace(img);
  
  if (detections) {
    const { x, y, width, height } = detections.box;
    ctx.drawImage(img, x, y, width, height, PHOTO.x, PHOTO.y, PHOTO.w, PHOTO.h);
  }

  const dataUrl = await toPng(idRef.current, {
    quality: 0.95,
    pixelRatio: 2,
    filter: (node) => node.tagName !== 'BUTTON'
  });
  
  return dataUrl;
};
typescript
Next Project

Next Case Study

Keyark