Issue with detecting combinations of squares
Hello, I am making a program that allows the user to put white square-shaped items (pieces of paper or blocks, whatever he has) on the table and get the pattern made of these blocks detected by the...
View Articleopencv exception in abs function
i want use abs function but every time i use it a type of exception occur !! once this exception : Exception thrown: read access violation. on below code in ocl.cpp line 4 : bool useOpenCL() {...
View Articleextended and upright flags in SURF opencv c++ function
what are the equivalent flags of SURF in opencv C++ to python SURF flags extended and upright ? - in python version upright flag decides whether to calculate orientation or not - And extended flag...
View ArticleNew to OpenCV, can't load an image
Hi! I am new to OpenCV and trying to follow the tutorial to load an image. However, Mat image, namedWindow, imshow, WINDOW_AUTOSIZE, and waitKey are not found in the cv namespace. I have #included...
View ArticleInconsistent return values on pixel access.
Hello Community. I've got that litte snipped here. As you can see, Im accessing the pixel value kind of block-wise and use the columns pixel values as bits for a unsigned int. Block number and...
View ArticleHow to calculate number of people counting inside/outside in shop?
Hello. How to calculate how many people are in the shop a lot ? Came out 7 people left 5 people in the shop left 2 people. Could you tell me how it can be implemented? #include #include #include...
View ArticleOpenCV Perspective corrention and cropping
I'm currently trying to correct the perspective of a random taken image showing a rectangle. The perspective correction is working fine, but i want to crop the image to the target, too. Si I've tried...
View ArticleHow to write a sequence as images as a avi video ?
Hi, I want to create a video using a sequence as images, I have greayscale images with resolution 640x480,I tried to make this simple application fallowing the next steps: 1) I read each images with...
View ArticleHow OpenMP multi-threading can be utilized to parallelize an OpenCV based...
Suppose I have to find the negative of a large dimension image, say 1000x1000. If I simply perform pixel value subtraction from 255, it needs to process 10,00,000 numbers of pixels one by one in...
View Articlecapture and save with 2 webcams C++
what do i need to add to my code in order to take the second picture as well ? right now it works only with one webcam, but i can see both on my screen. Thanks ! #include using namespace cv; int main()...
View ArticleIs there something missing in the chain code?
I am not able to read the image and how can i retrieve the xml file and save it? Can someone help.. #include "opencv2/imgproc.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc/imgproc_c.h"...
View Articlehow to use opencv in android studio in native c++ code ??
how can i use openCV in an android studio's project - but i need to use it in other native cpp files and not in java. all the guides and tutorials i found explain how to use openCV in java files...
View ArticleUnable to use edgePreservingFilter and stylization
Hello, I am trying to reuse a [C++ program](http://stackoverflow.com/questions/35479344/how-to-get-color-palette-from-image-using-opencv) and facing below compilation errors, please help me figuring...
View ArticleOpenCV2.2 with Visual Studio 2008
I am very new to OpenCV. I downloaded and installed Open CV according to the instructions in the link https://rangadabarera.wordpress.com/opencv-with-visual-studio/ . My requirement is to create a...
View Articlestd::vector corrupted when calling HOGDescriptor::compute
The length of both std::vectors passed to HOGDescriptor::compute are changing their size to a random value when passed in to openCV. Of course the actually amount of memory allocated doesn't change,...
View Articletranslate example into Java
I'm trying to translate this demo into Java http://docs.opencv.org/3.2.0/d5/dc4/tutorial_video_input_psnr_ssim.html but I'm stuck on the lines using overloading of `-=` on `Mat`. My understanding of...
View ArticleProblem compiling OpenCV 2.4.13 with Cmake and MinGW
I got this problem when trying to compile opencv using Cmake and mingw. for Cmake: sourcecode is located in "C:\CPP Libraries\OpenCV-2.4.13\opencv\sources" where the binaries are goint to be build is...
View ArticleMat.get equivalent for C++?
I'm trying to duplicate an example for line detection from java to native code. My Java code is as follows int[] linesArray = new int[lines.cols() * lines.rows() * lines.channels()];...
View ArticleCan I use OpenCV 3.2 installed from prebuilt binaries on Windows with Python...
I would like to program with OpenCV 3.2 with both C++ and Python 3.5, under Windows 10. Can I do it just installing OpenCV 3.2 from the pre-built binaries? Or must I build OpenCV from source? Thanks!
View ArticleChain code and xml
Hello, i am having a problem when saving the xml file.. Only a single row is being showed in the xml..but, i want to retrieve several rows with valid values to represent the images found in the...
View Article