Skip to content

Instantly share code, notes, and snippets.

View patricksnape's full-sized avatar

Patrick Snape patricksnape

View GitHub Profile
@patricksnape
patricksnape / unwrapped_texture.py
Created January 30, 2021 09:00
Create unwrapped UV texture
import menpo
import menpo3d
import numpy as np
template = menpo3d.io.import_builtin_asset.james_obj()
o_c_unwrap = menpo3d.unwrap.optimal_cylindrical_unwrap(template)
unwrapped_template = o_c_unwrap.apply(template)
u_t_aspect_ratio = np.divide(*unwrapped_template.range()[:2])
@patricksnape
patricksnape / LabelsFromMeanBasel.ipynb
Last active January 8, 2020 21:15
Menpo SolvePNP to Rasterizer/OpenGL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.