Skip to content

Instantly share code, notes, and snippets.

@k3erg
k3erg / FaceGrab.py
Last active March 27, 2018 08:14 — forked from facepainter/FaceGrab.py
Batch extract known face from video/image sequence (CNN GPU with CUDA / HoG)
'''
Extract a known face from a video.
Uses a combination of a deep learning CNN model to batch detect faces
in video frames, or a sequence of images, in GPU with CUDA and HoG to compare
the detected faces with a computed reference set of face encodings.
'''
from os import path, listdir
from typing import NamedTuple