Giter Club home page Giter Club logo

celeb-face-recognition's Introduction

Celebrity Face Recognition

This project is a web application that allows users to upload images and get predictions on the celebrity faces present in the image. The application uses various machine learning models to classify images of celebrities, achieving an accuracy of around 80%.

Table of Contents

Dataset

The project used two celebrities datasets to train the models:

The celebrities included in this project are Jerry Seinfeld, Ben Affleck, Maria Sharapova, Serena Williams, Virat Kohli, Roger Federer, Lionel Messi, Madonna, and Mindy Kaling.

Folder Structure

The project has the following folder structure:

  • UI: Contains the HTML, CSS, and JavaScript code for the website
  • model: Contains the Python notebook for model building and dataset
  • server: Python Flask server

Technologies Used

  • OpenCV for data cleaning
  • Sklearn for model building
  • HTML/CSS/JavaScript for UI
  • Python Flask for HTTP server
  • Amazon EC2 for cloud hosting

Website Interface

The website has a simple and intuitive interface that allows users to upload images and get predictions on the celebrity faces present in the image. The user can upload an image by dragging and dropping it onto the webpage, or by selecting the file using the browse button. After the image is uploaded, the application shows the predicted celebrity names and their corresponding confidence scores.

Old interface:

Website_old

Imporved interface:

Website_new

Improved Results

Some imporovments were made, for instance: the "if_2_eyes" function to return all the faces in the picture. A slight imporvment to the UI as well. In addition to that, several ML models haven been used including catboost.

Here are some sample testing results after the improvements made to the code:

result1 result2 result3 result4

Conclusion

This project successfully classified the faces of various celebrities with an accuracy of around 80%. The use of machine learning models and OpenCV for data cleaning and preparation allowed for effective image classification. The user interface also provided a seamless experience for users to upload and classify images.

celeb-face-recognition's People

Contributors

strikoder avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.