I have been detecting circles in frames from a video feed.
The script will capture a frame, detect any circle/s and then analyse them before taking another frame to repeat the process all over again.
Each time I ran this, the script would take the first frame, detect the circle/s and then once all circles had been analysed in that frame a breakpoint would occur with "Invalid address specified to RtlValidateHeap".
I commented out the entire script and slowly narrowed it down to where I was able to determine that it was the HoughCircles function that was causing the problem.
Has anyone else experienced this?
This is the function for what it is worth:
HoughCircles(
greyGB, // Mat input source
circles, // vector<vec3f> output vector that stores sets of 3 values: x_{c}, y_{c}, r for each detected circle.
CV_HOUGH_GRADIENT, // detection method
1, // The inverse ratio of resolution (size of image / int)
grey.rows / 8, // minimum distance between center of two circles
120, // Upper threshold for the internal Canny edge detector (should be 3x next number)
40, // Threshold for center detection (minimum number of votes) (lower this if no circles detected)
12, // Minimum radius to be detected. If unknown, put zero as default.
80 // Maximum radius to be detected. If unknown, put zero as default
);