Image processing apparatus, rectangle region detection method, and computer-readable, non-transitory medium
AssigneePfu Limited
InventorTomoaki Wada
Life of this patent
Estimating the term…
Abstract
An image processing apparatus includes an edge pixel extractor for extracting an edge pixel from an input image, an end pixel extractor for extracting an end pixel in the input image, an edge pixel addition module for adding the end pixel extracted by the end pixel extractor as an edge pixel based on a pixel value of a pixel located within a first range from the end pixel, a straight line extractor for extracting straight lines from the edge pixel extracted by the edge pixel extractor and the end pixel added as an edge pixel by the edge pixel addition module, and a rectangle region detector for detecting a rectangle region from the extracted straight lines.
Claims7
An image processing apparatus for detecting a rectangle region as an image region in an image comprising:
- an image memory for storing an input image;
- a processor for:
- extracting an edge pixel from an input image based on pixel values of pixels in the input image,
- extracting an end pixel of an end of an image reading area for imaging a document in the input image,
- determining a first range based on an error tolerance of a reading position of an image reading device,
- deleting an edge pixel which is located within a second range from the extracted end pixel and is closest to the end pixel, of the extracted edge pixel,
- adding the extracted end pixel as an edge pixel based on a pixel value of a pixel located within the first range from the end pixel,
- extracting straight lines from an edge pixel which is not deleted, of the extracted edge pixel and the end pixel added as an edge pixel,
- detecting a rectangle region from the extracted straight lines as the image region in the input image;
- and
- a display for displaying the rectangle region as the image region in the input image.
A method executed by an image processing apparatus for detecting a rectangle region as an image region in an image, the method comprising:
- extracting an edge pixel from an input image based on pixel values of pixels in the input image;
- extracting an end pixel of an end of an image reading area for imaging a document in the input image;
- determining a first range based on an error tolerance of a reading position of an image reading device;
- deleting an edge pixel which is located within a second range from the extracted end pixel and is closest to the end pixel, of the extracted edge pixel;
- adding the extracted end pixel as an edge pixel based on a pixel value of a pixel located within the first range from the end pixel;
- extracting straight lines from an edge pixel which is not deleted, of the extracted edge pixel and the end pixel added as an edge pixel;
- detecting a rectangle region from the extracted straight lines as the image region in the input image;
- and
- displaying the rectangle region as the image region in the input image on a display.
A computer-readable, non-transitory medium storing a computer program, wherein the computer program causes a computer to execute a process for detecting a rectangle region as an image region in an image, the process comprising:
- extracting an edge pixel from an input image based on pixel values of pixels in the input image;
- extracting an end pixel of an end of an image reading area for imaging a document in the input image;
- determining a first range based on an error tolerance of a reading position of an image reading device;
- deleting an edge pixel which is located within a second range from the extracted end pixel and is closest to the end pixel, of the extracted edge pixel;
- adding the extracted end pixel as an edge pixel based on a pixel value of a pixel located within the first range from the end pixel;
- extracting straight lines from an edge pixel which is not deleted, of the extracted edge pixel and the end pixel added as an edge pixel;
- detecting a rectangle region from the extracted straight lines as the image region in the input image;
- and
- displaying the rectangle region as the image region in the input image on a display.
Dependencies are inferred from the claim text.