GithubHelp home page GithubHelp logo

computervisionfinalproject's Introduction

ComputerVisionFinalProject

TJU 计算机视觉课程 大作业

基于深度神经网络的实时人脸检测及表情分类系统

项目说明

可调用摄像头读取视频,实时检测人脸并识别人脸表情

  • 使用一个二分类模型(预训练的ResNet18)检测图像中有无人脸
  • 如果有,交给人脸定位模型(预训练的ResNet34)确定人脸位置
  • 将上一模型框选到的人脸送入表情分类模型(ResNet18 或 VGG19)
  • 根据模型分类得分,显示当前表情的emoji图像

文件结构说明

  • Detector:人脸定位模型(预测人脸位置)
  • ExpressionClassifier:表情分类模型(识别人脸表情)
  • FaceClassifer:人脸检测二分类模型(检测有无人脸)
  • FaceToEmoji:最终系统入口

运行说明

  • 进入不同的模块(人脸检测模型、人脸定位模型、表情分类模型)可训练得到相应模型文件
  • 进入FaceToEmoji,运行最终系统
  • 系统最终使用 ResNet18 在 FER2013 数据集上训练得到的模型作为表情分类模型
  • 详细的运行方式可参考每个模块下的README(若有)或 run.py / train.py / test.py

环境配置

  • Python 3.10
  • PyTorch 1.13.1
  • CUDA 11.7
  • h5py
  • sklearn
  • matplotlib

Demo

image-20230305201053547

computervisionfinalproject's People

Contributors

vmnk-run avatar

Watchers

 avatar

computervisionfinalproject's Issues

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.