since this depends on findContours, which expects white objects on black bg,
try to invert the image, like:
detector->detect(~im, keypoints);
since this depends on findContours, which expects white objects on black bg,
try to invert the image, like:
detector->detect(~im, keypoints);