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

Active Publication Date: 2019-12-03
FUJIAN JIEYU COMP TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For the digitalization of books, book information is usually recognized by taking images of books. At this time, there may be page margins in the book images. There is no book information in the page margins, but the image size is occupied, which affects the efficiency of image recognition.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Picture page edge removing method and terminal
  • Picture page edge removing method and terminal

Examples

Experimental program
Comparison scheme
Effect test

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 .

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a picture page edge removing method and terminal, and the method comprises the steps: obtaining a to-be-processed book image, and obtaining an area where a book is located; judging whether a first interval of which the color value is in a page edge color range or the distance between two adjacent vertical lines is lower than a preset width threshold value or the inclinationangle difference between two sub-intervals exceeds a preset angle threshold value exists in the area where the book is located or not, and if yes, marking the first interval as a page edge; page edgeremoval. Through the three judgment conditions, the phenomenon of the page edge is comprehensively considered, and the accuracy of removing the page edge is guaranteed.

Description

technical field [0001] The invention relates to the technical field of scanning devices, in particular to a method and a terminal for removing margins of pictures. Background technique [0002] With the development of science and technology, more and more knowledge and materials have been shared on the Internet, so it is necessary to change the traditional paper storage data to electronic storage data. [0003] Because the book will bend when it is spread out, page margins will appear on both sides of the book. As the number of pages and the thickness of the book increase, the page margins on both sides of the book will become wider and wider. For the digitalization of books, book information is usually recognized by taking images of books. At this time, there may be page margins in the book images. There is no book information in the page margins, but the image size is occupied, which affects the efficiency of image recognition. Contents of the invention [0004] The tec...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & AuthorityApplications(China)
IPC IPC(8): G06T7/11G06T7/136G06T7/90
CPCG06T7/11G06T7/136G06T7/90G06T2207/30176
Inventor陈大添黄招东
OwnerFUJIAN JIEYU COMP TECH