1. A ruled line extracting apparatus, comprising: estimating means for estimating a size of a standard pattern included in an input image; and straight line extracting means for setting a threshold value based on information of the size of the standard pattern, and extracting information of one or more straight line patterns from the input image using the threshold value.