Skip to content

Instantly share code, notes, and snippets.

View pospospos2007's full-sized avatar
😀

Albert pospospos2007

😀
View GitHub Profile
@kscottz
kscottz / dewarp.py
Created August 11, 2013 20:03
Dewarping 360 degree video using python.
from SimpleCV import Camera, VideoStream, Color, Display, Image, VirtualCamera
import cv2
import numpy as np
import time
# build the mapping
def buildMap(Ws,Hs,Wd,Hd,R1,R2,Cx,Cy):
map_x = np.zeros((Hd,Wd),np.float32)
map_y = np.zeros((Hd,Wd),np.float32)
for y in range(0,int(Hd-1)):