Skip to content

Instantly share code, notes, and snippets.

View clarle's full-sized avatar

Clarence Leung clarle

  • Netflix
  • Los Gatos, CA
  • 16:26 (UTC -07:00)
  • X @clarler
View GitHub Profile
@clarle
clarle / align_images_masked.py
Created March 2, 2018 00:49 — forked from anonymous/align_images_masked.py
Patched alignment and merging scripts including the option for masking via the detected face points, seamless clone and erosion and blurring of the masks.
import argparse
import cv2
import dlib
import json
import numpy
import skimage
from pathlib import Path
from tqdm import tqdm
from umeyama import umeyama