Questions tagged as 'opencv'

0
answers

Problems with Opencv in Qt creator

The program does not have any errors in the build, but when I run the code it has the following message:    libopencv_core.so.3.4: can not open shared object file: No such file or directory The .pro file looks like this: QT += c...
asked by 28.12.2017 / 17:03
0
answers

ImportError on OpenCV installation [closed]

Today I tried to reinstall the opencv library on my computer, I did this for script pip , which I downloaded the file .whl through the site: http://www.lfd.uci.edu/~gohlke/pythonlibs/ . After the library was successfully in...
asked by 04.01.2017 / 20:56
0
answers

Remove the background of an image - python [closed]

I am working on a code to remove the background of an image, I am trying to use the Canny border detector to elaborate a mask and try to remove a piece of pipe from the image: ThecodeI'mworkingonisthis:img=imread('Imagem.jpg')gray=cvtColor(i...
asked by 28.06.2016 / 16:28
0
answers

Recognize color patterns with OpenCV

I'm developing a computer vision algorithm for robot soccer. I started learning OpenCV recently. And I have a question in the following part: I would like to know how I can divide each player according to their color standards. I can recog...
asked by 04.05.2016 / 04:00
1
answer

Point-to-point operation in the image

I'm trying to perform a simple sum operation that adds 30 strokes to each channel, but the program just hangs without error output (probably some type error). I got into this answer // Codigos1.cpp : define o ponto de entrada para o aplic...
asked by 19.08.2018 / 00:10
1
answer

module 'cv2.cv2' has no attribute 'COLOR_BRG2GRAY'

I am resizing images from a folder and am encountering the following error: module 'cv2.cv2' has no attribute 'COLOR_BRG2GRAY' Code: pathC = './cityscape/' dirs = os.listdir(pathC) #Resize para o pathC np.array def resize(): path = pathC...
asked by 19.12.2018 / 12:13
1
answer

Doubt regarding Python syntax

Good evening, my question is about a piece of code I found in a book about Python and OpenCV. The author created the function that I will put below: @property def frame(self): if self._enteredFrame and self._frame is None: _, self....
asked by 14.10.2018 / 05:10
1
answer

Encodings do not work in a file with OpenCV in Python 3

I followed the face detection tutorial using OpenCV and wrote in Python 3. In this file, print is not used. I already know that Python 3 is international, is UTF-8 compatible and does not need encodings. But even so, no accent appeared on...
asked by 18.03.2018 / 15:51
2
answers

How to install Opencv

I would like to know how to install the latest version of Opencv 3.2 on Linux ubuntu 14.04. I was able to install and put to compile in codeblocks using C ++ following a tutorial. But my goal is to actually install the opencv library so that I u...
asked by 15.07.2017 / 22:16
1
answer

How to save images to a server folder via sockets using python and opencv?

Hello, I'm new to programming and would like to know how to save images, (captured by opencv) in a folder created by the code inside the server, I know how to do this with the sockets but I have no idea how. the code below captures the face creat...
asked by 07.04.2017 / 18:05