Код: Выделить всё
vector contours;
// Use a clone to prevent memory issues if findContours modifies the source
Mat binaryCopy = binary.clone();
fflush(stdout);
vector hierarchy;
imshow("Binary Copy", binaryCopy);
findContours(binaryCopy, contours, hierarchy, RETR_EXTERNAL, CHAIN_APPROX_NONE, Point(0,0));
Подробнее здесь: https://stackoverflow.com/questions/798 ... rm64-linux
Мобильная версия