Code Monkey home page Code Monkey logo

moodsync's Introduction

MoodSync: Emotion-Based YouTube Recommender

Resonate with your mood with MoodSync, an emotion-based YouTube video recommender.

Overview

MoodSync is a Python application that leverages Deepface and ThreadExecutorPool libraries to detect the user's emotion in real-time. It recommends YouTube videos based on the detected emotion, providing a personalized and engaging content experience.

Execution Flow

For a detailed execution flow, refer to the Execution Flow Diagram.

Execution Flow Diagram

Project Structure

├── src
│ ├── data
│ │ ├── models
│ │ │ ├── emotion.py
│ │ │ ├── video.py
│ │ ├── emotion_detector.py
│ │ ├── videos.py
│ │ ├── youtube.py
│ ├── domain
│ │ ├── video_service.py
│ ├── presenter
│ │ ├── init.py
│ │ ├── app.py
│ │ ├── home.py
│ │ ├── request_executor.py

Components

  • Emotion Detector: Runs on a separate thread to capture frames and detect the user's emotion using Deepface and ThreadExecutorPool.

  • Presenter Layer: Consists of a UI and a request executor. The UI passes emotion stats to the request executor, which maintains a queue for normalization and ensures smooth UI transitions.

  • Domain Layer - Video Service: Responsible for querying local SQLite databases for videos based on emotions. If videos are not present, it utilizes the YouTube Data API to fetch relevant content.

Data Classes

  1. Youtube Client: Makes calls to YouTube Data API v3, converting received videos into Python classes.
  2. SQLite3 Client: Performs CRUD operations on the local SQLite database.

Getting Started

  1. Clone the repository.
  2. Install the required dependencies using pip install -r requirements.txt.
  3. Run python src/app.py to launch MoodSync.

Screenshots

MoodSync Application

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

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.