Returning cv::Mat from wrapped C++ function in Python
This question must have been asked a million times, yet somehow I do not seem to be able to find an answer more recent than 2014: github.com/spillai/numpy-opencv-converter I'm having some struggles...
View ArticleBest method to detect facial hair?
Hello everybody, I would like to detect if a person has beard in an image. I extract the face using the Haar Cascade and I have no idea on how to detect the beard. What is the best way to do that?...
View ArticleOpenCv with contrib
i followed a tutorial by ZHAJOR in building opencv with the extra modules i couldnt post the link so the tutorial is titled INSTALL OPENCV AND MAKE A TEST PROJECT WITH CLION i should also mention that...
View ArticleOpencv 3.1 capture from multiple cameras.
I'm using 2 Logitech C170 usb webcams connected to USB 3.0 ports on my front panel on Windows 10 Opencv 3.1 Visual Studio 2015. I have no problem getting image from one camera at a time either 0 or 1...
View Articlepass cv::MAT as pointer to a function in C++
I am new to OpenCV, cv::MAT is class including many components, not like an pure array which I could directly use the pointer to pass it to another function, modify it, and still keep the values after...
View ArticleFisheye distortion correction using Omnidir namespace - change of perspective
I have been able to correctly calibrate a 180 degrees FOV camera (fisheye), i.e. I have been able to extract the distortion and camera matrices using the omnidirectional model, so I used the...
View ArticleOpenCV ROI on Real time camera
I am trying to set ROI in real time camera and copy a picture in the ROI. However, I tried many methods from Internet but it is still unsuccessful. Part of my code is shown below:...
View ArticleHow to implement 3D SIFT
I could run SURF and SIFT on my PC ( C++, OpenCV 3.2). I am interested to apply this provided SIFT AND SURF to read my 3D dataset (.vtk format, polygonal). Do you have any idea which part should I edit...
View ArticledrawCountours with fixed points not working
Hello Forum, I need to create a simple mask for an arbitrarily shaped user defined region on interest. I thought using cv::drawContours should fit my purpose. However, I am unable to run my program....
View ArticleSimple usage of EM
I got a set of points (vector < cv::Point2f > ) and i want them to be a gauss kurve. Is it possible to use the opencv EM for that? Im looking for simple EM examlpes in C++. Thank you for helping!
View Articlecv::imwrite “undefined” when using OpenCV 3.2
I am using OpenCV 3.2.0 on Ubuntu 64-bit and have the written following code which I call WebImageIO.cpp #include #include #include #include #include "cv.h" #include "highgui.h" #include #include...
View Articlereal-time pupil center from video code cant work??
video download: (https://) drive.google.com/open?id=0ByiWjC8usraqZGVmWjlmeE9TVzQ #include #include using namespace cv; using namespace std; int main(int argc, char* argv[]) { VideoCapture...
View ArticleWhy both stereoRectify-workflows give different result?
I get different result in both workflows, which should be equal (in my opinion). 1. ***First workflow***: First i remove the distortion in the images, and then in the following functions in the...
View ArticleC++ OPENCV std::out_of_range error
Hello everyone, I've a project with OPENCV/C++ which is about rectangle detection and Wrap Transformation. So far, I had good results. But I have some problems efficiency. Firs of all I found contours...
View ArticleVideo Stabilization Output Length Change
I'm performing video stabilization in OpenCV 3.2.0 using code from the [videostab sample](https://github.com/opencv/opencv/blob/master/samples/cpp/videostab.cpp) reduced down to simply perform one pass...
View ArticleHow to draw lines(from LSD) with particular slope value?
My aim is to segment screws and to find whether it is good or not. Segmentation part is over. Now I am finding lines inside the screw are good or not. To prove it, I need to find whether lines are...
View Articlefilter2d BORDER_WRAP on certain texturefilter
I am running filter2d on an image with a filter that I was given. I have several filters, ranging from 3_3_5bit to 17_17_12bit. For some reason, whenever I run my software on a filter that has...
View ArticleHow to draw lines(from LSD) with particular slope value?
My aim is to segment screws and to find whether it is good or not. Segmentation part is over. Now I am finding lines inside the screw are good or not. To prove it, I need to find whether lines are...
View ArticlePicture overlap C++
Im searching for an method to detect two Pictures of the same motive and how they could overlap(and set them togeter to one big image). Is this possible with OpenCV?
View ArticleException Handling
I am using a function like this; Mat large = imread(path+name); Mat rgb; if (large.rows > 2500 || large.cols > 1250) { pyrDown(large, rgb); } else { rgb = large.clone(); } cv::Mat smallx;...
View Article