Skip to content

Instantly share code, notes, and snippets.

@kevin-george
kevin-george / test_pipeline.cpp
Created August 31, 2017 22:55
Extract Pose from LSD_SLAM library
// This file is part of SVO - Semi-direct Visual Odometry.
//
// Copyright (C) 2014 Christian Forster <forster at ifi dot uzh dot ch>
// (Robotics and Perception Group, University of Zurich, Switzerland).
//
// SVO is free software: you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the Free Software
// Foundation, either version 3 of the License, or any later version.
//
// SVO is distributed in the hope that it will be useful, but WITHOUT ANY
@kevin-george
kevin-george / install_tensorflow.sh
Last active June 29, 2018 05:01
Install TensorFlow from source on Ubuntu 16.04 with GPU support
#Ubuntu 16.04
#GPU - Nvidia GTX 750 Ti
#CUDA - 8.0, cuDNN - 5.1
#Prerequisite - Download cuDNN 5.1 tarball from https://developer.nvidia.com/rdp/cudnn-download to home directory
if [ ! -f "cudnn-8.0-linux-x64-v5.1.tgz" ]
then
echo "cudnn-8.0-linux-x64-v5.1.tgz not found"
exit 1
fi
@kevin-george
kevin-george / install_opencv.sh
Last active July 13, 2017 03:29
Install opencv 2.4 from source with python2.x exntensions on Ubuntu 16.04
# Install all the dependencies
sudo apt-get update
sudo apt-get -qq install libopencv-dev build-essential checkinstall cmake pkg-config yasm libjpeg-dev libpng-dev libtiff-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils
# Get latest opencv code
git clone https://github.com/opencv/opencv.git
cd opencv
git checkout 2.4
# Build opencv