Picture page edge removing method and terminal
A technology of margins and pictures, applied in the field of scanning devices, can solve the problems of occupying image size, affecting the efficiency of picture recognition, etc., and achieve the effect of ensuring accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] Please refer to figure 1 , Embodiment 1 of the present invention is:
[0070] A method for removing margins of pictures, including steps:
[0071] S1. Acquire the image of the book to be processed, and obtain the area where the book is located; in this embodiment, after determining the area where the book is located, it can be set that the area other than the book is black or other colors that are different from the color of the book.
[0072] S2. Determine whether there is a color value in the area where the book is located in the margin color range or the distance between two adjacent vertical lines is lower than the preset width threshold or the slope angle difference between the two sub-intervals exceeds the preset angle threshold. a range, if present, marks the first range as a margin;
[0073] S3. Remove page margins.
[0074] In this embodiment, step S2 is specifically:
[0075] Determine whether there is a first interval in the area where the book is located...
Embodiment 2
[0089] Please refer to figure 1 , the second embodiment of the present invention is:
[0090] A method for removing margins of a picture. On the basis of the above embodiments, step S2 further includes:
[0091] If there is no color value in the area where the book is located, the distance between two adjacent vertical lines is lower than the preset width threshold, and there is no second sub-interval whose slope angle difference exceeds the preset angle threshold. In the first interval, multiply the proportional values obtained by converting the above three actual values with the preset thresholds and the respective weight values to obtain the weight score value, and judge whether the weight score value is greater than the weight threshold value, and if so, consider the The area is the margin. Therefore, the accuracy of page edge removal can be further improved.
Embodiment 3
[0092] Please refer to figure 2 , Embodiment three of the present invention is:
[0093] A terminal 1 for removing margins from pictures, including a memory 3, a processor 2, and a computer program stored in the memory 3 and operable on the processor 2, and the processor executes the steps of the first embodiment above when executing the computer program .
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

