From the documentation of Imgproc.findContours
:
CV_CHAIN_APPROX_SIMPLE
compresses horizontal, vertical, and diagonal segments and leaves only their end points. For example, an up-right rectangular contour is encoded with 4 points.
How does this work exactly? Does this use the Douglas-Peucker algorithm?