Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Hough circle transform error(opencv,openfxcv, opengui)

$
0
0

@dreamercleohope wrote:

vector circles;
HoughCircles(matCamEdge, circles, CV_HOUGH_GRADIENT, 2, 50, 30, 100, 30, 50);
for (int i = 0; i < circles.size(); i++) {
ofSetColor(255, 0, 0);
ofDrawCircle(circles[i][0], circles[i][1], circles[i][2]);
}

why when i add this to my code,
error occurs?

Error: Assertion failed (!_image.empty() && _image.type() == CV_8UC1 && (_image.isMat() || _image.isUMat())) in cv::HoughCircles

p.s.matCamEdge is born from this: setFromPixels(myVideoGrabber.getPixels())>>toCV>>cvtcolor to gray image>> canny

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles