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
Tag: opencv
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow
I am running the following code on Raspberry Pi with pi camera, I have the broadcom drivers for it and all, but I am getting an error. Perhaps something to do with the dimensions of the video feed, but I do not know how to set it on Linux. Code: Error: Answer Provide an id to VideoCapture. Also check the
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
Unable to route webcam video to virtual video device on Linux (via OpenCV)
I would like to put a video overlay onto an incoming webcam stream via OpenCV. As a first step I’m trying to stream the incoming video from a webcam at /dev/video0 to a virtual video device at /dev/video1 (v4l2loopback). Unfortunately I’m not able to forward the webcam stream to the v4l2loopback device. I found this thread: How to write/pipe to
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: Detecting cat with specific color. Trivial?
I have a problem with my cat being bullied by a nabouring cat to the extent that the cat enters our house in the summer and eat our cats food and sleeps in our furniture. My cat is gray and the problem cat is brown. I would like to make an alert system using a WiFi action cam and OpenCV
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