Skip to content

Instantly share code, notes, and snippets.

View agfe2silver's full-sized avatar
🏠
Working from home

silver lee agfe2silver

🏠
Working from home
View GitHub Profile
@agfe2silver
agfe2silver / dewarp.py
Last active April 8, 2018 02:43 — forked from kscottz/dewarp.py
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)):
# A simple CMake script for building the application.
cmake_minimum_required(VERSION 2.8)
project(create-x509)
# Our only dependency is OpenSSL
find_package(OpenSSL REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})
add_executable(create-x509 create-x509.cpp)