find Roi automatically using Canny algorithm. Without using contours using histogram to calculate the concentration of pixels (pixels of variation).
Show the histogram for each image to show where they are probably the region of digits before being segmented.
Find the roi of each image.
Using opencv c + + visual studio, windows operating system.