can anyone reply how does this contourArea() function works ?is there any...
#include #include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include"math.h" #include int main(int argc, const char * argv[]) { cv::Mat...
View ArticleRead a named pipe in opencv
Hi, I'm following this video guide (I'm using the last option presented in the video): https://www.youtube.com/watch?v=sYGdge3T30o Essentially my raspberry send a video stream with netcat, then a...
View ArticleHow a dictionary is loaded in C++ OpenCV Program?
Suppose, I have a dictionary which is in dot mat file format. This can be loaded in a MATLAB program as show below. % load dictionary load('Dictionary/D_1024_0.15_5.mat'); Now, I would want to use the...
View ArticleError building opencv extra modules in CMake on Win10
I rarely ask questions, I like the puzzle of solving things myself, but this one has had me stumped for two weeks and I am going in circles! I'll put the short question first and give the detail of...
View ArticleHow to reduce the size of the trained SVM model in Opencv3.0?
I have three image classify problem, and feature dimension of LBP each problem are 6400, with number of samples 6000. Now I have trained the three SVM models. Each size of the model is bout 20M....
View ArticleI'm Trying to convert RGB video to Grayscale using OpenCV in C++, but i'm...
This is the code i used: #include "opencv2/highgui/highgui.hpp" #include #include using namespace cv; using namespace std; int main(int argc, char* argv[]) { VideoCapture...
View ArticlePlotting x y co-ordinates on histogram in opencv with c++
Hi, I am working on histogram creation and plotting in opencv with c++. I am able to create and plot the histogram but I am unable to show the x y coordinates (scaling numbers) on the graph. Is it...
View ArticleC++ opencv3 no ideas how to divide these thresholded image
After some image transform, I obtain these image.  After trsforming the video image I get this stain, which I would like to separate along the red...
View ArticleGPU Face Detection Error
I need help with an error in my simple GPU face detection program. The CPU version of this code runs fine with the same CascadeClassifier. This program is running on a NVIDIA TX2. Error: OpenCV Error:...
View ArticleuUbuntu 14 opencv3.0.0 Training your own detector | packtpub.com error ...
As a title, for first time in my life I try to use a cascade classifier ... first step: from mpg4 grab from camera, obtain 150 png image of my targhet ... well cropped, with my targhet oriented in...
View ArticleCUDA more slower than CPU
Hi, I have made my own package of opencv 3.2 with CUDA 8.0 and I run it with Microsoft Visual studio 2015 but when I tried with...
View ArticleHead detection from depth data. (not face)
Hi, I am looking for the procedure to detect the human head (not face) from the depth data only. I am using opencv library with c++. Cascade classifier will not work on depth data. can you suggest me...
View ArticleI found this error while running sample cpp example facedetect.cpp 'undefiend...
/tmp/ccbH13my.o: In function main': facedetect.cpp:(.text+0x10e): undefined reference tocv::VideoCapture::VideoCapture()' facedetect.cpp:(.text+0x14a): undefined reference to...
View ArticleHead pose estimation fails with specific image sizes
I want to find angles of rotation of the head using `opencv` and `dlib`. So, I tried to use this code from the tutorial: cv::Mat im = imread("img.jpg"); matrix dlibImage; assign_image(dlibImage,...
View ArticleOpenCV 3.2.0 and QT implementation errors
Hello guys, I was trying to utilize screen overlays when I got an error in the console: OpenCV Error: The function/feature is not implemented (The library is compiled without QT support) in...
View Articlefog removal C++ code
Hello Dear All, I am trying to run this simple fog removal which takes an input RGB image and removes fog from it. When i run the following code, it gives me the following exception. Exception at...
View ArticleBackground subtraction from depth data in opencv with c++.
Hi All, I am working on background subtraction from depth information. Can you please suggests method for the background subtraction? thank you.
View ArticleHow do i convert a Grayscale video to a Tensor?
I have written a code which converts a RGB video to Grayscale and **now I want to convert it to a tensor.** I just gave `cout< #include #include using namespace cv; using namespace std; int...
View ArticlescalarToRawData in Opencv 3.2
Hello, I can't find scalarToRawData function in OpenCV 3.2, has been changed the name or lib?
View ArticleStrange values for matrix camera and distortion values
I am trying to calibrate a fisheye camera. In order to do that I load a video take with that camera and takes frames where appears a cheesboard pattern. In order to find patterns I use: bool found =...
View Article