This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 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] |