Questions tagged as 'opencv'

0
answers

OpenCV 4 in Visual Studio 2018

I'm trying to use the OpenCV library in Visual Studio, however I get the following error message:    LINK: fatal error LNK1104: Can not open file   'opencv_calib3d400.lib' The lib is in the C: \ opencv4 \ build \ lib \ Release location an...
asked by 21.12.2018 / 05:44
1
answer

How to eliminate noise in an image?

In relation to the image presented, I want to leave only the main trunk and branches (secondary) of the plant (tomato) very visible. Asaresultofmyattempts,whatseemstometobethemostencouragingresultsisthereductionoftheimagearea,followedbytheCa...
asked by 06.12.2018 / 01:46
1
answer

Peak value of a histogram

My code reads an image and transforms the RGB color model into HSV, and then makes a frequency histogram of each channel (H, S, and V), where H varies from 0-179 and the others 0-255. By plotting the histogram, it is possible to check peaks in H...
asked by 01.11.2018 / 18:18
0
answers

Floating point exception (core dumped) when running OpenCV trainhog.cpp

Hello, I'm developing a solution for detecting objects in an image using HOG + SVM. Until then I just set up my database of positive and negative samples. I was using the OpenCV sample code trainghog.cpp, I just inserted my parameters as belo...
asked by 23.09.2018 / 22:30
0
answers

Problem loading color detected by arduino

I have a problem loading information into Arduino via pyserial. I'm using a python and opencv script to do color detection via webcam. For each detected color, I want to inform the Arduino so he can make a decision. But I can not send the dat...
asked by 17.09.2018 / 14:35
1
answer

IndexError: list index out of range Python

I'm getting the following error: IndexError: list index out of range My code: conts = conts[0] if imutils.is_cv2() else conts[1] How can I fix this error? Full Code     
asked by 12.09.2018 / 20:02
0
answers

Adapt code to return mouse position

I have the following code that shows me the values of the X and Y coordinates when I click twice with the left mouse button. #include <opencv2/opencv.hpp> #include <iostream> using namespace std; using namespace cv; void mouse_ca...
asked by 04.09.2018 / 20:38
0
answers

usb camera settings on opencv

Good morning. I have a Dragon board using Linaro. I'm using a python and opencv program for facial detection. But I do not know why the camera does not focus anymore and the resolution is super bad. For my python cod I tried to force a higher...
asked by 07.09.2018 / 15:25
0
answers

error: (-215) scn == 3 || scn == 4 in function cvtColor

I'm totally lazy with raspberry and I'm trying to use opencv version 3.4.2 with python 3.5.2 on raspberry pi 3 using the camera itself for raspberry to run an example facial recognition code using the camera. In linux mint, the same code runs su...
asked by 02.09.2018 / 05:58
1
answer

Histogram Python Opencv

Hello, I would like to define a histogram of a function that I created to detect an image region. The function is this. def points (imagem, pontosFaciais): p68 =[[47, 35, False], [35, 12, False], [12, 13, False], [13, 14,...
asked by 11.09.2018 / 07:34