Giter Site home page Giter Site logo

face_derect_c-'s Introduction

Face_Derect_C-

简介


使用opencv ffmpeg对视频进行解码得到yuv格式图像帧(Decoder.h),再由face_detector对图像帧(从YUV转为RGB,再转成灰度图进行处理)进行人脸检测并保存人脸矩形信息。然后根据face_detector返回的值使用OpenGL进行滤镜渲染。(目前可以对视频的一帧进行检测、滤镜添加)

将进行的优化:

  1. 完整视频检测
  2. 内存优化
  3. 采用多线程提高效率

环境配置


opencv 3.4.1版本 下载链接:https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.4.1/opencv-3.4.1-vc14_vc15.exe/download

目录结构描述


│  Face_Detect.gitignore
│  README.md
│  tree.txt //目录结构
├─.github
├─.vs
└─Face_Detect_C
    │              
    ├─Face_Detect_C
    │  │  decoder.h  //视频解码器
    │  │  face_detector.h  //人脸检测器
    │  │  FilerAdder.h  //滤镜添加
    │  │  main.cpp  //主程序
    │  │  Saver.h  //视频保存
    │  │  shape_predictor_68_face_landmarks.dat  //人脸形状预测数据库
    │  │  
    │  └─x64
    │                  
    ├─packages
    │                          
    ├─video
    │      test.mp4
    │      
    └─x64

运行截图

result

face_derect_c-'s People

Contributors

hgl-pong 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.