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