This file contains 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
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)): |