Skip to content

Instantly share code, notes, and snippets.

View yihu-dev's full-sized avatar

yihu-dev

View GitHub Profile
@yihu-dev
yihu-dev / facegood_bs_to_arkit.py
Created March 8, 2022 05:53
python script to convert FACEGOOD bs_value to ARKit format
### script to convert FACEGOOD bs values to ARKIT
import numpy as np
import pandas as pd
import argparse
mapping_one = {
'jawForward': 'jaw_thrust_c',
'jawLeft': 'jaw_sideways_l',
'jawRight': 'jaw_sideways_r',
'jawOpen': 'mouth_stretch_c',
@yihu-dev
yihu-dev / gist:7d68a61ba47fdbcd121a67ec3f2e5446
Last active April 7, 2020 12:07
process DNG raw data to create RAW-sRGB aligned pair, with RAW image unified to RGGB pattern
"""
Functions based on rawpy to process DNG data
"""
import numpy as np
import rawpy
def pack_raw(raw_img):
# numpy flat RAW RGGB
R = raw_img[0::2,0::2]