I have two programs
- extracts edges from a bunch of images in a loop at once
- extracts edge from a single image
The preprocessing steps of blurring the image and thresholding the Canny Edge are same.
The images used by the two programs are same haven't been altered or enhanced in any way.
For one of the images Program 1 giving less number of contours detected but when running the same image in the Program 2, I can see more contours visually as well as in the count of the edges detected.
In short Program 1 is giving less number of contours than Program 2
Any idea what is happening here?
All the parameters for extraction are same but the detection difference so much.