本文介绍了计算“白色斑点"数量的最佳方法在OpenCV 2.3.0中的阈值IplImage中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我需要计算阈值图像中白色斑点的数量.我在数记号笔上的小方块.但是由于网络摄像头的图像质量较差,这些正方形不会显示为正方形.这就是为什么我决定使用Blob检测的原因.这是用于增强现实应用程序的.我的决定正确吗?

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 far from the marker

推荐答案

cvFindContours函数呢?自从我使用它已经有一段时间了,但是我认为您可以在找到的轮廓的CvSeq中进行迭代,并以自己喜欢的方式使用它们.

What about the cvFindContours function? It's been a while since I've used it, but I think you can then iterate in the CvSeq of found contours and work with them the way you like.

我知道这是一个老话题,但也许可以帮到您!

I know it's an old thread but maybe it can help you!

这篇关于计算“白色斑点"数量的最佳方法在OpenCV 2.3.0中的阈值IplImage中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 07:35