Checking for unnecessary cv::Mat::clone calls
In recognition.cpp
Mat clone = binary.clone();
void cv::findContours()
Finds contours in a binary image.
The function retrieves contours from the binary image using the algorithm [193] . The contours are a useful tool for shape analysis and object detection and recognition. See squares.cpp in the OpenCV sample directory.
Note Since opencv 3.2 source image is not modified by this function.