To deal with such error just add "-D CUDA_GENERATION=Kepler " before '.' and run the cmake once again. ġ) While running the cmake command, I got "nvcc fatal : Unsupported gpu architecture 'compute_11' "Įrror. For people installing OpenCV without CUDA should not face any errors while installation. I will mention solution to some of the error I encountered. You might get different errors while installing OpenCV along with CUDA. The script to install OpenCV is given here. You can follow CUDA installation from this post(till step 15). This helps in using GPUs along with OpenCV. Although CUDA can be skipped but I will prefer everyone to install it along with CUDA.
This is a short blog on how to install OpenCV 2.4.11 along with CUDA 8.0. Installation of OpenCV 2.4.11 along with CUDA 8.0 (Ubuntu 14.04) nested-cascade="././data/haarcascades/haarcascade_eye.xml" cascade="././data/haarcascades/haarcascade_frontalface_alt.xml" The below will open up the web cam and apply face detector on your face. If your notebook has build in web camera. c-example-facedetect -cascade="././data/haarcascades/haarcascade_frontalface_alt.xml" -nested-cascade="././data/haarcascades/haarcascade_eye.xml" -scale=1.3 /home/peerajak/_Feature_/opencv-2.4.10/build/lena.jpg /modules/java/test/.build/res/drawable/lena.jpg. Libavcodec-dev libavformat-dev libswscale-dev default-jdk antĬmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON \ -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON \ -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON \ -D WITH_VTK=ON. Sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev Libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev libqt4-opengl-dev Libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev
Window = GUI::Window.new("grab da face!")ĭetector = CvHaarClassifierCascade::load('./haarcascade_frontalface_alt.xml')ĭtect_objects(image).Libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-devĬmake python-dev python-numpy python-tk libtbb-dev libeigen3-dev yasm My first try, obviously, is to use HAAR cascade classifier to look for faces.
Installing ri documentation for ruby-opencv-0.0.18ĭone installing documentation for ruby-opencv after 7 seconds Parsing documentation for ruby-opencv-0.0.18 Successfully installed ruby-opencv-0.0.18 with-opencv-include=/usr/local/Cellar/opencv/2.4.13.2/include/opencv2īuilding native extensions with: '-with-opencv-lib=/usr/local/Cellar/opencv/2.4.13.2/lib -with-opencv-include=/usr/local/Cellar/opencv/2.4.13.2/include/opencv -with-opencv-include=/usr/local/Cellar/opencv/2.4.13.2/include/opencv2' with-opencv-include=/usr/local/Cellar/opencv/2.4.13.2/include/opencv \ That said, now install ruby gem: $ gem install ruby-opencv -with-opencv-lib=/usr/local/Cellar/opencv/2.4.13.2/lib \ It was a weird experience lol.įirst, to install OpenCV, brew do the job: $ brew tap homebrew/scienceĪfter a while we see that instalation goes flawlessly:
I was writing some robotic code that will run on a mac mini, so I tryied on my macbook for the first time, ruby binding to opencv.