Skip to content

Pr1ncePS2002/WWCD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frame (3)

[Winner Winner Chicken Dinner] 🎯

Basic Details

Team Name: Chaos

Team Members

  • Member 1: [Melwin T Joshy] - [Cochin University of Science & Technology]
  • Member 2: [Prince Parmar Singh] - [Cochin University of Science & Technology]

Project Description

[An interactive web application that uses facial emotion recognition to gamify the process of sharing a meal with friends. The app captures the excitement of up to four friends before they eat a grilled chicken dish called Alfahm.

Features : Emotion-Based Scoring: Users upload photos, which are then analyzed by an AI model to calculate an "excitement score" based on facial expressions like happiness and surprise. The two friends with the highest scores are crowned the winners. Their photos are transformed into a winner cards.

Shareable Output: The final winner cards, complete with animated headshots and fun titles, are downloadable and optimized for sharing on social media]

The Problem (that doesn't exist)

In the digital age, a simple Alfahm meal has become a complex social event. The age-old dilemma of who gets the prized chest pieces has turned into a source of friendly-yet-fierce debate. Traditional methods—rock-paper-scissors, a quick arm wrestle, or a dramatic "who's hungrier" contest—are often inconclusive, leading to awkward silences and passive-aggressive "I'm fine with the leg piece, really" comments. This is more than a food-related argument; it's a critical challenge to the harmony of friendship, one that requires an unbiased, high-tech solution.]

The Solution (that nobody asked for)

[Alfahm Chest Piece Decider is the definitive, AI-powered answer to this non-existent, yet universally-felt, problem. Our application uses state-of-the-art emotion recognition to objectively measure the pre-meal excitement of each friend. By analyzing facial expressions, we settle the debate with pure data, not emotional pleas. The result isn't just a decision; it's a celebration, immortalized in a dynamic, shareable winner card. We turn a simple meal into a legendary competition, ensuring that the true champions of Alfahm are recognized and their victory is digitally preserved forever.]

Technical Details

Technologies/Components Used

For Software:

  • [Python , Typescript]
  • [FastAPI,React,Next.js]
  • [DeepFace, rembg,PILLOW, OpenCV]
  • [Github,VS Code]

For Hardware:

  • [List main components]
  • [List specifications]
  • [List tools required]

Implementation

For Software:

Installation

[Frontend: Navigate to the frontend directory in your terminal and run:

  npm install

Backend: Navigate to the backend directory, create a virtual environment, activate it, and install the required Python packages:

  python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt

]

Run

[Frontend :

npm run dev

Backend:

uvicorn main:app --reload

]

Project Documentation

For Software: Winner Winner Chicken Dinner is a full-stack web application designed to add a fun, AI-powered twist to a social dining experience. The app leverages a modern tech stack to handle the entire user journey, from image upload to the final, shareable winner cards.

The frontend is built with Next.js and React, providing a responsive and dynamic user interface. It handles user interactions, image uploads via a clean and animated interface, and the display of the final results. The frontend communicates with the backend through a Next.js API route, which acts as a proxy, ensuring a smooth and secure data flow.

The backend is powered by FastAPI and is the core of the application's intelligence. It receives images from the frontend and uses a set of powerful Python libraries to perform complex tasks. It employs DeepFace for facial emotion recognition to calculate an excitement score for each user. It also uses Pillow and rembg to remove image backgrounds and composite the winners' animated headshots onto pre-designed football card templates. The backend's main function is to select the most excited players and generate the final winner cards, which are then served as static files to the frontend.

Screenshots (Add at least 3)

frame (3)

frame (3)

frame (3)

frame (3)

Project Demo

Video

https://github.com/Pr1ncePS2002/WWCD/blob/main/assets/Untitled%20video%20-%20Made%20with%20Clipchamp.mp4

Team Contributions

  • [Melwin T Joshy ]: [Deepface Implementation and Score generation function]
  • [Prince Parmar Singh]: [Frontend and Backend (UI and Endpoints )]

Made with ❤️ at TinkerHub Useless Projects

Static Badge Static Badge

About

A facial expression score calculator for assigning two winners for the chest piece of the chicken(made for a hackathon.The theme was useless project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 75.8%
  • Python 14.2%
  • CSS 8.1%
  • JavaScript 1.4%
  • Shell 0.5%