It is the code to generate a GUI for Video Face Recognition based on Python and Face_recognition library. We generate a graphical interface to input a video, capture and output the human face in the video. It is based on article: opencv+face_recognition+tkinter: 实现简单的视频人脸识别工具.
- Python
- cv2
- face-recognition Github
- tkinter
The technical foundation of this paper is divided into three parts:
lib | usage |
---|---|
opencv | Video processing module |
face_recognition | Face recognition module |
tkinter | GUI design module |
Example:
python shizuo.py
Our window design is as follows:
GUI function:
-
For the vertical video, you need to flip it
-
For oversized videos, you need to downsize the display
-
For long videos, you can start reading from any frame
-
Supports saving output images between frames
Tips:
-
Click 'Select Video File' to select a video file
-
Set relevant parameters
-
Click 'Play'
-
Press Q to exit
An actual example is shown below. Video URL
https://www.cnblogs.com/mengd/p/7287119.html
Python Tkinter模块详解(后续持续补充)
【Python-opencv3.4】视频基本操作(帧率,总视频帧数、从第N帧开始播放、播放进度显示、按键控制视频)