Skip to content
Advertisement

Tag: opencv

OpenCV 3.1.0 imshow in Linux does not work for webcam (Python)

I’m trying to use code from the official openCV tutorial for showing video from webcam using cv2.imshow() in Ubuntu/Python 3.6: And I get the following error for cv2.imshow(): The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script

libopencv_core.so.2.4: error adding symbols: DSO missing from command line

I have installed OpenCV 3.3.0 to Ubuntu 16.04. Just want to compile this code. g++ -o main gpu_thresh.cpp ‘pkg-config opencv –cflags –libs’ -lopencv_gpu -lopencv_core g++ -L/usr/local/lib -o main gpu_thresh.cpp ‘pkg-config opencv –cflags –libs’ -lopencv_gpu -lopencv_core I tried to compile it with these ways but still giving same warning and error. /usr/bin/ld: warning: libopencv_core.so.2.4, needed by /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libopencv_gpu.so, may conflict with libopencv_core.so.3.3

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 successfully move but when I run the $python import cv2 [this is what happen1 am still wondering if there

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 ‘nested’ try catch blocks, when I throw exception in inner_package_class

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” given in [http://dlib.net/compile.html][1] but I am unable to use the same command to

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 “OpenCV” is considered to be NOT FOUND. My CMakeLists.txt is as follows: The error happens on the

Advertisement