Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
billcary committed Jan 6, 2014
0 parents commit aa07130
Show file tree
Hide file tree
Showing 47 changed files with 1,835 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
215 changes: 215 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

#############
## Windows detritus
#############

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac crap
.DS_Store


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg
Binary file added 3923_01_Codes/._README.txt
Binary file not shown.
Binary file added 3923_01_Codes/._install_opencv_ubuntu.sh
Binary file not shown.
Empty file added 3923_01_Codes/3923_01
Empty file.
1 change: 1 addition & 0 deletions 3923_01_Codes/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The install_opencv_ubuntu.sh script and ports.tar.gz MacPorts repository are in this directory and are also available on my website: http://nummist.com/opencv/install_opencv_ubuntu.sh and http://nummist.com/opencv/ports.tar.gz.
Empty file added 3923_01_Codes/__MACOSX
Empty file.
112 changes: 112 additions & 0 deletions 3923_01_Codes/install_opencv_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
#!/bin/bash

arch=$(uname -m)
if [ "$arch" == "i686" -o "$arch" == "i386" -o "$arch" == "i486" -o "$arch" == "i586" ]; then
is_x86=1
else
is_x86=0
fi

echo "Preparing to install OpenNI 1.5.4.0 (unstable), SensorKinect 0.93, OpenCV 2.4.3 and dependencies"
mkdir opencv
cd opencv

echo "Installing dependencies of OpenNI"
sudo apt-get install libusb-1.0-0-dev freeglut3-dev

echo "Downloading OpenNI"
if [ $is_x86 -eq 1 ]; then
wget http://www.openni.org/wp-content/uploads/2012/12/OpenNI-Bin-Dev-Linux-x86-v1.5.4.0.tar.zip
unzip OpenNI-Bin-Dev-Linux-x86-v1.5.4.0.tar.zip
tar -xvf OpenNI-Bin-Dev-Linux-x86-v1.5.4.0.tar.bz2
cd OpenNI-Bin-Dev-Linux-x86-v1.5.4.0
else
wget http://www.openni.org/wp-content/uploads/2012/12/OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.zip
unzip OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.zip
tar -xvf OpenNI-Bin-Dev-Linux-x64-v1.5.4.0.tar.bz2
cd OpenNI-Bin-Dev-Linux-x64-v1.5.4.0
fi
echo "Installing OpenNI"
sudo chmod a+x install.sh
sudo ./install.sh
cd ..

echo "Downloading SensorKinect"
if [ $is_x86 -eq 1 ]; then
wget --no-check-certificate https://github.com/avin2/SensorKinect/blob/unstable/Bin/SensorKinect093-Bin-Linux-x86-v5.1.2.1.tar.bz2?raw=true
tar -xvf SensorKinect093-Bin-Linux-x86-v5.1.2.1.tar.bz2?raw=true
cd Sensor-Bin-Linux-x86-v5.1.2.1
else
wget --no-check-certificate https://github.com/avin2/SensorKinect/blob/unstable/Bin/SensorKinect093-Bin-Linux-x64-v5.1.2.1.tar.bz2?raw=true
tar -xvf SensorKinect093-Bin-Linux-x64-v5.1.2.1.tar.bz2?raw=true
cd Sensor-Bin-Linux-x64-v5.1.2.1
fi
echo "Installing SensorKinect"
sudo chmod a+x install.sh
sudo ./install.sh
cd ..

echo "Removing any pre-installed ffmpeg and x264"
sudo apt-get remove ffmpeg x264 libx264-dev

echo "Installing dependenices of OpenCV"
sudo apt-get install libopencv-dev
sudo apt-get install build-essential checkinstall cmake pkg-config yasm
sudo apt-get install libtiff4-dev libjpeg-dev libjasper-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev
sudo apt-get install python-dev python-numpy python-scipy
sudo apt-get install libtbb-dev
sudo apt-get install libqt4-dev libgtk2.0-dev

echo "Downloading x264"
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20120528-2245-stable.tar.bz2
tar -xvf x264-snapshot-20120528-2245-stable.tar.bz2
cd x264-snapshot-20120528-2245-stable/
echo "Installing x264"
if [ $is_x86 -eq 1 ]; then
./configure --enable-static
else
./configure --enable-shared --enable-pic
fi
make
sudo make install
cd ..

echo "Downloading ffmpeg"
wget http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.bz2
echo "Installing ffmpeg"
tar -xvf ffmpeg-0.11.1.tar.bz2
cd ffmpeg-0.11.1/
if [ $is_x86 -eq 1 ]; then
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
else
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-shared
fi
make
sudo make install
cd ..

echo "Downloading v4l"
wget http://www.linuxtv.org/downloads/v4l-utils/v4l-utils-0.8.8.tar.bz2
echo "Installing v4l"
tar -xvf v4l-utils-0.8.8.tar.bz2
cd v4l-utils-0.8.8/
make
sudo make install
cd ..

echo "Downloading OpenCV"
wget -O OpenCV-2.4.3.tar.bz2 http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.3/OpenCV-2.4.3.tar.bz2/download
echo "Installing OpenCV"
tar -xvf OpenCV-2.4.3.tar.bz2
cd OpenCV-2.4.3
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_OPENNI=ON ..
make
sudo make install
echo "OpenCV is installed to /usr/local/lib"
echo "Appending \"/usr/local/lib\" to /etc/ld.so.conf"
echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf
sudo ldconfig
echo "OpenCV ready to be used"
Binary file added 3923_01_Codes/ports.tar.gz
Binary file not shown.
Empty file added 3923_02_Codes/3923_02
Empty file.
3 changes: 3 additions & 0 deletions 3923_02_Codes/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Scripts and input files for the section "Basic I/O Scripts" are in the "miscellaneous" folder.

Scripts for the section "An Object-Oriented Design" are in the "cameo" folder.
Loading

0 comments on commit aa07130

Please sign in to comment.