When the rectangular regions are searched, the selection of the crossing rectangular regions is carried out by utilizing priority of the evaluation values which take the parameters such as the distance to the object terminals and the width of the rectangular regions into consideration.