An error occurred during the contour-related code.
std::vector>::iterator itc = contours.begin(); // for all contours int cntCheck = 0; while (itc != contours.end()) { // verify contour size size_t contourSize = itc->size(); if ((contourSize...
View ArticlewarpPerspective undefined
Hi forum, I am unable to use the warpPerspective function due to this error #include "opencv2/nonfree/nonfree.hpp": No such file or directory. Can someone tell me the **easiest idiotproof** way to get...
View ArticleK means question
Hey everybody, I'm currently in the process of clustering a set of points into different sections. Though, the k means algorithm requires me to explicitly set the number of clusters to divide the set...
View ArticleIs there any reason not to use UMat?
I'm currently writing a piece of software that uses various different modules of OpenCV (some examples are edge detection via Canny, filtering operators, optical flow and I have some own algorithms...
View Articlehow do you measure the time delay of two consecutive frames in a live...
Hi guys, I am trying to determine the delay of two consecutive video frames from a webcam/videocam. the idea is, when a certain object passes by my camera, I need to determine how long the object stays...
View ArticleHow to use Gabor Filter using Opencv Java API
i want to use Gabor filter usin gopencv with java API. i referred to the docs, and it is as follows: getGaborKernel public static Mat getGaborKernel(Size ksize, double sigma, double theta, double...
View ArticleCamera-Projector calibration Issue
I'm trying to calibrate a Camera-Projector pair for 3D reconstruction. I'm using the software found at http://mesh.brown.edu/calibration/software.html. This software outputs the following : camera...
View Articlewhy TickMeter class only used in the gpu samples
double t = (double)getTickCount(); // code you want to measure the performance t = ((double)getTickCount() - t)/getTickFrequency(); cout << "times passed in seconds: " << t << endl;...
View Articlefacedetect.py: (x, y, w, h), n - what does "n" stand for ?
I am experimenting with the facedetect.py example code. I am aware that cv.HaarDetectObjects returns a list of objects (in this case rectangles around detected faces) in the format (x, y, w, h),n. I...
View ArticleProceedure for obtaining/updating camera pose for moving camera
I would like to determine the translation and rotation of a single monocular camera (android phone) mounted on a micro helicopter. The camera has been calibrated with the chess board, so the camera...
View ArticleHow to read / write xml file in Java
Has anyone written the calibration / distortion matrix from Java and have them read by a c++ code using xml?
View ArticleOpenCV4Android 3.0: VideoCapture doesn't open
Hi, I want to open the camera from the native code using the OpenCV SDK for android (native) version 3. I am trying using android Nexus 5 android 5.0.1 My android.mk file: LOCAL_PATH := $(call my-dir)...
View ArticleComparing KMeans centers for the best match
I'm working on implementing the VZ classifier (http://www.robots.ox.ac.uk/~vgg/research/texclass/with.html), and am having problems creating the models. The first stage is to cluster a large number of...
View ArticleHow to build OpenCV 3.0.0 with libjpeg turbo?
Hi, I'm trying to build OpenCV 3.0.0 with libjpeg turbo 1.4.1. The only relevant information I can find is a post from Stack Overflow :...
View Articlecomplement 16 bit mat and then convert it to 8 bit
I have 16 bit openCV Mat. I am looking to complement the MAT and then convert it into 8 bit openCV Mat. I have done it in MATLAB but don't know how to do it in openCV. My MATLAB code is: >...
View ArticleHow to set parameters for Orb in Java?
This [previous answer](http://answers.opencv.org/question/3167/java-how-to-set-parameters-to-orb-featuredetector/) seems clear, except the following code doesn't change the number of features...
View ArticleHow I do for open an image and show in my form with C++ ?
I am developing my code to open an image and show this image in my form using c++, but is with error in my application.  I need help! How I do to solve...
View ArticleOpenCV 3.0.0 compilation errors
Dear all, I have downloaded opencv 3.0.0 from the website. I am using Ubuntu 12.04 and ffmpeg and gphoto2-2.5.8 both compiled from source....
View Articleproblem with face detection on android
HI all. I'm a beginner in android so i have a little difficulty to use openCV here. For my studies i'm doing a face detection for opportunely image processing of that ROI. So i've the code in c++ that...
View ArticleopenMP imshow
Hi forum, I am having a problem trying to show multiple videos using openmp. Below is the code #include #include #include "opencv2/imgproc/imgproc.hpp" #include "omp.h" #include using namespace cv;...
View Article