摘要:
A method for image processing, including: obtaining an image including a writing board and a background external to the writing board; detecting a plurality of lines within the image; determining, based on the plurality of lines, a plurality of corners of the writing board within the image; and correcting a perspective of the writing board by applying a transformation to the image based on the plurality of corners.
摘要:
A method for image processing, including: obtaining an image including a writing board and a background external to the writing board; detecting a plurality of lines within the image; determining, based on the plurality of lines, a plurality of corners of the writing board within the image; and correcting a perspective of the writing board by applying a transformation to the image based on the plurality of corners.
摘要:
A vertical and horizontal line detection method for document images includes generating multiple binary images from the input grayscale document image based on multiple binarization thresholds, detecting horizontal and vertical lines in each of the multiple binary images independently, and merging the detection results from the multiple binary images. The line detection process for each binary image include applying an opening operation using a vertical or horizontal line as the structuring element, and removing connected components that are not vertical or horizontal lines based on a stroke width analysis. The boundaries of the detected lines are obtained using horizontal and vertical projections.
摘要:
A vertical and horizontal line detection method for document images includes generating multiple binary images from the input grayscale document image based on multiple binarization thresholds, detecting horizontal and vertical lines in each of the multiple binary images independently, and merging the detection results from the multiple binary images. The line detection process for each binary image include applying an opening operation using a vertical or horizontal line as the structuring element, and removing connected components that are not vertical or horizontal lines based on a stroke width analysis. The boundaries of the detected lines are obtained using horizontal and vertical projections.