Find corner of papers

Take for reference my original code, which simply detects squares on an image. That means that in the main method of the application you would write something like the following pseudo-code to call find_squares(): Mat image = imread(“test.jpg”, 1); // Detect all regions in the image that are similar to a rectangle vector<vector<Point> > squares; … Read more

How to detect ellipses in image without using fitEllipse() in opencv?

As you already got, you don’t need ellipse fitting, but ellipse detection. You can find in my other answer two papers with C++ code available. I’ll report here for completeness: L. Libuda, I. Grothues, K.-F. Kraiss, Ellipse detection in digital image data using geometric features, in: J. Braz, A. Ranchordas, H. Arajo, J. Jorge (Eds.), … Read more

Displacement Map Filter in OpenCV

It’s been almost 2 years since I’ve asked this question and I think it’s time to answer it: the source code that implements this filter using OpenCV can be found in my GitHub repo. The implementation is based on the documentation of Adobe Flash DisplacementMapFilter. There’s another tutorial I recommend people to read: Psyark’s DisplacementMapFilter … Read more