Best way to count number of “White Blobs” in a Thresholded IplImage in OpenCV 2.3.0
问题 I need to count the number of white blobs in a Thresholded image. I'm counting small squares on a marker. But due to the poor image quality of the webcam, these squares don't appear as squares. This is why I decided to use Blob detection. This is for an Augmented reality application. Is my decision right? Camera placed near the marker Camera placed far from the marker 回答1: What about the cvFindContours function? It's been a while since I use it but I think you can then iterate in the CvSeq of