... | ... | @@ -11,56 +11,13 @@ Make sure you have: |
|
|
* pycharm
|
|
|
* nosetests
|
|
|
* pip
|
|
|
* openCV3 --with-python3 --with-contrib (see below for more information)
|
|
|
|
|
|
Install python packages using pip and conda:
|
|
|
* pip install pvl coverage
|
|
|
* conda install gdal
|
|
|
* conda install -c https://conda.binstar.org/menpo opencv3
|
|
|
|
|
|
Recommended reading:
|
|
|
* https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
|
|
|
* https://www.atlassian.com/software/sourcetree/overview/
|
|
|
* http://autocnet.readthedocs.org/en/latest/library/index.html (Our existing docs for autocnet) |
|
|
\ No newline at end of file |
|
|
|
|
|
**Install OpenCV3 for Fedora21 with anaconda python 3:**
|
|
|
|
|
|
(This reference is helpful, but not exactly what we need:
|
|
|
https://blog.kevin-brown.com/programming/2014/09/27/building-and-installing-opencv-3.html)
|
|
|
|
|
|
source activate autocnet
|
|
|
cd to /scratch or some other directory you can check out the opencv source to and build from
|
|
|
|
|
|
git clone https://github.com/Itseez/opencv.git
|
|
|
git clone https://github.com/Itseez/opencv_contrib.git
|
|
|
|
|
|
cd (the directory that opencv cloned into)
|
|
|
mkdir build && cd build
|
|
|
|
|
|
In the following, change the OPENCV_EXTRA_MODULES_PATH to the place you checked out opencv_contrib to, if not /scratch:
|
|
|
|
|
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_EXTRA_MODULES_PATH=/scratch/opencv_contrib/modules -D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") -D PYTHON_EXECUTABLE=$(which python3) ..
|
|
|
sudo make
|
|
|
sudo make install
|
|
|
|
|
|
**If you have trouble installing due to undefined references to the LIBTIFF_4.0 library run the following. Otherwise, skip this block of code:**
|
|
|
|
|
|
rm CMakeCache.txt
|
|
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_EXTRA_MODULES_PATH=/scratch/opencv_contrib/modules -D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") -D PYTHON_EXECUTABLE=$(which python3) -D BUILD_TIFF=ON ..
|
|
|
sudo make
|
|
|
sudo make install
|
|
|
|
|
|
|
|
|
Symlinks for hdf5:
|
|
|
|
|
|
cd (path to anaconda python)/envs/autocnet/lib/
|
|
|
ln -s libhdf5.so libhdf5.so.8
|
|
|
ln -s libhdf5_hl.so libhdf5_hl.so.8
|
|
|
|
|
|
|
|
|
to test:
|
|
|
|
|
|
python
|
|
|
>>> import cv2
|
|
|
>>> dir(cv2.xfeatures2d)
|
|
|
|
|
|
If there are no errors, you’re good! |