ROS robotics for arduino installation and fun projects
• Face detection with OPENCV,ROS and ARDUINO...
• Xbox 360 1473 Kinect 3D view using ROS in ...
• OBSTACLE AVOIDANCE USING LASER SCANNER IN...
• Setting up Arduino lib in ROS & Arduino IDE
• Setup Firebase Tools in ubuntu
/ @robinroypeter__
How to Install OpenCV in Ubuntu 16.04 and linuxmint -19 and ubantu 18.04 LTS for C / C++ /python
http://www.codebind.com/cpp-tutorial/...
my environment variables i used are below which does not result in any hardlink soft link clach and also clash between dependency but installing tensorflow inside a virtual environment will be a good practice
export PATH="/usr/local/cuda-9.0/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda-9.0/lib64:LD_LIBRARY_PATH"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
export CPATH="/usr/include/hdf5/serial/"
so we have fixed it so no worryies till 2023 till the support for ubantu 18.04 or linuxmint -19 gets over so be happy then after year 2023
we will look for another open-cv compatible version with yolo darknet and compile it without error
if you want to say thanks say it to this guy Kota Yamaguchi who provided this tutorial knowing or unknowingly but opencv-3.4.0 works for yolo without any error so go to this site follow my instruction and install the opencv only for yolo enbling python and java and cuda is at your own risk of error if it does good then no problem please inform me i will also try it try to uninstall the opencv which does not work for yolo so uninstall with a shell script shown in the video
https://gist.github.com/lonehack/b3f7...
https://github.com/kyamagu/mexopencv/...
$ sudo apt-get install build-essential cmake pkg-config git
$ sudo apt-get install zlib1g-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libopenexr-dev
$ sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev
$ sudo apt-get install libv4l-dev libdc1394-22-dev libxine2-dev libgphoto2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
$ sudo apt-get install libgtk2.0-dev libtbb-dev libeigen3-dev libblas-dev liblapack-dev liblapacke-dev libatlas-base-dev
$ mkdir ~/cv && cd ~/cv
$ wget -O opencv-3.4.0.zip https://github.com/opencv/opencv/arch...
$ wget -O opencv_contrib-3.4.0.zip https://github.com/opencv/opencv_cont...
$ unzip opencv-3.4.0.zip
$ unzip opencv_contrib-3.4.0.zip
$ mkdir ~/cv/build && cd ~/cv/build
$ cmake -G "Unix Makefiles" \
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_JAVA=OFF \
-DWITH_CUDA=OFF \
-DWITH_CUBLAS:BOOL=OFF \
-DWITH_CUFFT:BOOL=OFF \
-DWITH_NVCUVID:BOOL=OFF \
-DWITH_MATLAB=OFF \
-DBUILD_opencv_cudaarithm:BOOL=OFF \
-DBUILD_opencv_cudabgsegm:BOOL=OFF \
-DBUILD_opencv_cudacodec:BOOL=OFF \
-DBUILD_opencv_cudafeatures2d:BOOL=OFF \
-DBUILD_opencv_cudafilters:BOOL=OFF \
-DBUILD_opencv_cudaimgproc:BOOL=OFF \
-DBUILD_opencv_cudalegacy:BOOL=OFF \
-DBUILD_opencv_cudaobjdetect:BOOL=OFF \
-DBUILD_opencv_cudaoptflow:BOOL=OFF \
-DBUILD_opencv_cudastereo:BOOL=OFF \
-DBUILD_opencv_cudawarping:BOOL=OFF \
-DBUILD_opencv_cudev:BOOL=OFF \
-DBUILD_opencv_java=OFF \
-DBUILD_opencv_js=OFF \
-DBUILD_opencv_python2=OFF \
-DBUILD_opencv_python3=OFF \
-DBUILD_opencv_ts=OFF \
-DBUILD_opencv_world=OFF \
-DBUILD_opencv_matlab=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DOPENCV_ENABLE_NONFREE=ON \
-DOPENCV_EXTRA_MODULES_PATH=~/cv/opencv_contrib-3.4.0/modules ~/cv/opencv-3.4.0
$ make
$ sudo make install
add CMAKE_INSTALL_PREFIX lib-dir to locations searched for shared libraries
$ sudo sh -c 'echo "/usr/local/lib" (put angle bracket here ) /etc/ld.so.conf.d/opencv3.conf'
update cache
$ sudo ldconfig
setup pkg-config search path
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ pkg-config --modversion opencv
$ pkg-config --cflags --libs opencv
if you guys have a problem in installing tensorflow in ubantu 18.04 bionic beaver and linux mint -19
follow this tutorial below where you can install tensorflow without error
is it easier to setup tensorflow on ubuntu compared to windows? i am getting so many errors, usually related to the path variables on windows.
/ setup-a-simple-environment-for-deep-learning
Cant make the YOLO when OPENCV=1 Ubuntu 17.10 #485
Error during make with Opencv=1 .. #502
https://github.com/pjreddie/darknet/i...
https://github.com/pjreddie/darknet/i...