Skip to content

Tag: opencv

import cv2 on centos 64 bit

I already copy the cv2 and complete the procedure installing opencv and python and I also think the default python installation is usr/lib64/python2.7 and there is also usr/lib/python2.7 and I also move the cv2 using copy -r usr/lib/python2.7/site-packages/cv2.so to usr/lib64/python2.7/site-packages/ it succe…

java.lang.NullPointerException and return code

I’m running some java binary from bash like: run_me.sh but inside application I get java.lang.NullPointerException, howewer return code is 0, but I need some non zero exit code to understand from bash that application failed. What is the proper way to handle such cases? Update: Here is an exxample of &#…

compiling c++ projects with dlib library on linux

I want to use dlib library for my c++ projects in linux. I have installed it successfully and able to compile and run the .cpp samples files given under the dlib. I have compiled the sample files through the “g++ -std=c++11 -O3 -I.. ../dlib/all/source.cpp -lpthread -lX11 example_program_name.cpp” …

Saving a Video in OpenCV (Linux, Python)

There is an example that works on Windows (original): In Linux program provides: AttributeError: ‘module’ object has no attribute ‘VideoWriter_fourcc’ Help make it work in Linux. Answer I didn’t try but this should work :

OpenCV 3.1.0 won’t compile with CMake

I know there are many supposed duplicates for this matter, but since none of the answers worked for me I’d rather ask another question. My project won’t compile with CMake: Found package configuration file: /usr/share/OpenCV/OpenCVConfig.cmake but it set OpenCV_FOUND to FALSE so package “Ope…