GithubHelp home page GithubHelp logo

datasetgenerator's Introduction

一键生成人脸的掩码以及表情au

示例

Donald.pngDonald_mask.png

图片集示例

输入

input_dir type

图1. 输入路径的规范

Input_class

图2. 输入路径下的类别

输出

imgs_fold output_dir

图3. 输出的目录下生成的各种文件夹

imgs_fold output_dir imgs subdir

图4. 输出的目录下生成的任意文件夹下组织方式如上

imgs_fold output_dir mask

图5. 在face文件夹生成的掩码

imgs_fold output_dir lines

图6. 输出的目录下生成的根据关键点绘制线图

imgs_fold output_dir

图7. 生成的AUs

准备数据:

视频,组织方式为:
input_dir\
	\class1
		\video1
		\video2
		...
	\class2
		\video1
		\video2
		
图片,组织方式为:
input_dir\
	\class1
		\img1
		\img2
		...
	\class2
		\img1
		\img2

输出

output_dir\
		\aus
			\class1
				\img1.csv
				\img2.csv
			\class2
			...
    	\face
    		\class1
    		...
    	\img
		\line
		\region

配置要求

Openface
dlib
face_alignment

使用

图片

运行文件:

python3 imgs_fold input_dir output_dir --image_size 224 --OpenFace your OpenFace build/bin/FaceLandmarksImg --scale 1.2

视频

运行文件

python3 video_frame.py input_dir output_dir --image_size 224 --OpenFace your OpenFace build/bin/FaceLandmarksImg --scale 1.2

datasetgenerator's People

Contributors

junleen 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.