Skip to content

Instantly share code, notes, and snippets.

View coxep's full-sized avatar

Eric Cox coxep

  • Booz Allen Hamilton
  • Lexington, KY
View GitHub Profile
@coxep
coxep / install-opencv-2.4.13.4-in-ubuntu.sh
Last active January 23, 2018 02:53 — forked from arthurbeggs/install_opencv2_ubuntu.sh
Install opencv-2.4.13.4 in Ubuntu
#!/bin/bash
# install dependencies
apt-get update
apt-get install -y build-essential
apt-get install -y cmake
apt-get install -y libgtk2.0-dev
apt-get install -y pkg-config
apt-get install -y python-numpy python-dev
apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
apt-get install -y libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev
@coxep
coxep / project_pixel_to_floor.py
Last active August 9, 2018 03:11
Simple python script for projecting a camera pixel into the ground plane. Require full camera calibration (intrinsic/extrinsic parameters)
#!/usr/bin/env python
"""project_pixel_to_floor.py project an image pixel into the ground plane"""
__author__ = "Eric Cox"
__maintainer__ = "Eric Cox"
__email__ = "[email protected]"
import numpy as np
from numpy.linalg import inv