iOS版Opencv库存在问题。使用cvHoughCircles
时,模拟器上的结果与iPhone不同。这是代码
模拟器上的CvSeq * circles = cvHoughCircles(灰色,//输入图像
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。这是图像
非常感谢任何帮助。