Skip to content

Instantly share code, notes, and snippets.

@facepainter
facepainter / FaceFetch.py
Created February 12, 2018 05:22
Fetch images of faces from google by persons name
'''
Fetch faces from the interwebs by name
Uses Google Image Search to get a bunch faces
based on the specified name
'''
from os import path, errno, makedirs
import urllib.request
import re
@facepainter
facepainter / FaceGrab.py
Last active January 4, 2024 07:12
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