connected components in OpenCV June 14, 2023 by Tarik Starting from version 3.0, OpenCV has connectedComponents function.