We detect bean size, screen size distribution and variation between screens.
In order to detect screen sizes correctly, algorithms calculate the area of beans and analyze their shapes based on their detected outline, minimum and maximum axis lengths and solidity.