2

我对 iOS 的 Opencv 库有疑问。在模拟器上使用cvHoughCircles结果与 iPhone 不同。这是代码

CvSeq *circles = cvHoughCircles( gray, //输入图像

                               storage, //Memory Storage
                               CV_HOUGH_GRADIENT, //Detection method
                               2, //Inverse ratio
                               gray->width/8, //Minimum distance between the centers of the detected circles
                               100, //Higher threshold for canny edge detector
                               20, //Threshold at the center detection stage
                               gray->height/6, //min radius
                               gray->height/2 //max radius
                               );

circles->total= 在模拟器上为 0,但在 iPhone 上为 1。这是图像在此处输入图像描述

任何帮助将不胜感激。

4

0 回答 0