Install OpenCV on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org


#1

To install OpenCV on Ubuntu 18.04 with python 2 bindings open up terminal and enter:


This is a companion discussion topic for the original entry at https://linuxconfig.org/install-opencv-on-ubuntu-18-04-bionic-beaver-linux

#2

Trường Hoàng

I;m a newbie. Please help me. I got a error like that:

raceback (most recent call last):
File “denoise.py”, line 6, in
b,g,r = cv2.split(img) # get b,g,r
ValueError: not enough values to unpack (expected 3, got 0)


#3

mikethescott -> Trường Hoàng

The image filename in denoise.py needs to be changed to a file that exists. I got the same error.


#4

Brendon McCool

Looks like the includes aren’t right for the C++ example. There are just three blank includes.

I used #include <opencv2 opencv.hpp=""> and it worked.


#5

Lubos Rendek Mod -> Brendon McCool

Fixed…!! thank you…


#6

Ajay Kumar G

Thanks for the nice tutorial, Its working well.