Coder Social home page Coder Social logo

lltlien / cs117 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 53.25 MB

Source code for a web application developed as the final project for the Computational Thinking course (CS117) at the University of Information Technology (UIT)

Python 73.40% HTML 5.88% CSS 7.14% JavaScript 13.58%

cs117's Introduction

Virtual Hair Dye Try-on Web Application

In recent years, there has been a growing trend in the use of hair dye as a means of exploring various styles and transforming one's appearance. With the continuous advancement of technology, a new trend has emerged - virtual hair dye. The primary focus of this project is to introduce a solution for virtual hair dye, with emphasis on the key processes of hair segmentation and recoloring. The proposed solution leverages advanced algorithms and image processing techniques to identify and isolate the hair region in an image. This allows users to preview and apply different hair colors with ease, without the risk or commitment associated with traditional hair dyeing methods. The virtual hair dye technology enables individuals to discover their ideal hair color without any adverse effects.

Web App Demo
alt text

Installation

git clone https://github.com/lltlien/Virtual-Hair-Dye-Try-on-Web-Application.git
cd Virtual-Hair-Dye-Try-on-Web-Application

Requirements

Flask==2.2.2
numpy==1.24.3
opencv_contrib_python==4.5.5.62
Pillow==9.4.0
scikit_image==0.19.3
torch==2.0.1
torchvision==0.15.2

Ensure you have Node.js installed on your system.

Quick Usage

First cd into the frontend folder, install all dependicies and run frontend.

cd frontend
npm install
npm start

Create virtual environment:

py -m venv env
env\Scripts\activate
pip install -r requirements.txt

To run backend:

py app.py

Once both frontend and backend are running, open http://localhost:3000 in your browser to access the application.

cs117's People

Contributors

lltlien avatar

Watchers

 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.