Spine label application method and apparatus
By acquiring the horizontal lines and detection boxes of content elements in the spine image of a book, the spine axis is determined, which solves the problems of large equipment size and low efficiency in the existing technology, and realizes accurate pasting of labels at the center position of the spine and optimization of equipment space.
Patent Information
- Application Number
- CN202410744536.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-06-11
AI Technical Summary
Existing automated book acquisition and editing equipment is bulky, occupies a lot of space, and is inefficient in the process of pasting spine labels, making it difficult to accurately paste labels to the center position in the thickness direction of the spine.
By acquiring the horizontal lines and content element detection boxes in the book spine image, the spine axis is determined, and the spine label is pasted on the spine based on the axis. A roller brush is used to brush the suspended part of the label onto the top and bottom covers of the book, simplifying the work station and component settings.
This approach reduces the space occupied by the equipment while improving the efficiency of book acquisition and editing, and ensures that the labels are accurately affixed to the center of the spine.
Smart Images

Figure CN118458079B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of book acquisition and editing technology, specifically to a method for pasting book spine labels and a device for pasting book spine labels. Background Technology
[0002] Libraries have a large collection of books. To facilitate the retrieval, storage, and borrowing of books, labels containing the library's access number and call number are usually affixed to the books during the acquisition and cataloging process.
[0003] To save manpower and improve the efficiency of book acquisition and editing, automated book acquisition and editing equipment has been developed. For example, the previously filed Chinese patent CN114524218B discloses an automated book acquisition and editing device that can affix labels to the spine, back cover, and title page according to the user's requirements. However, in practical applications, it has been found that the device requires many workstations and processes from affixing labels to the title page, during which the book is flipped multiple times. This results in a large device size, a large footprint, and a long processing time. Summary of the Invention
[0004] To solve the aforementioned technical problems, the inventors of this invention conceived a process that maintains the book's horizontal position when affixing labels to the spine, back, and title page. In this process, the book is held horizontally by a clamp during spine label affixing. Simultaneously, to meet the user's requirements for standardization and ensure successful and reliable affixing, the spine label needs to be affixed to the center position along the spine's thickness direction. That is, when the label is initially affixed to the spine, the upper and lower portions of the label should be the same size, or, after being brushed, the portions affixed to the top and bottom covers of the book should be the same size. This can be achieved by measuring the book's thickness. Based on the clamp's height and the book's thickness, the horizontal line of the upper surface of the lower half of the clamp, shifted upwards to half the book's thickness, becomes the spine's axis (centerline along the thickness direction). After obtaining the spine's axis position, aligning the spine label's horizontal centerline (centerline along the height direction) with the spine's axis achieves the desired result. However, in actual testing, it was found that in more than half of the books, the portion of the spine label on the top cover was larger than the portion on the bottom cover. Through comparison and on-site inspection, it was found that at the spine label pasting station, because a space was reserved for the roller brush (or a space reserved for pasting the cover part under the spine label), the spine had to extend beyond the clamp. This meant a predetermined distance had to be left between the end of the clamp and the spine of the book. This caused the spine of these books to sag due to gravity and their softer texture. Furthermore, measuring book thickness still required additional stations and components.
[0005] In view of this, the present invention proposes a method and apparatus for attaching spine labels to books, which can conveniently attach spine labels to horizontally placed books and better ensure that the spine labels are attached to the center position in the thickness direction of the spine. It does not require setting up many workstations and components, thereby reducing the footprint of the entire book acquisition and editing equipment and further improving the efficiency of book acquisition and editing.
[0006] The technical solution adopted in this invention is as follows: A method for affixing a spine label includes the following steps: when a book arrives at and remains at a labeling station, an image of the book's spine is captured, wherein at the labeling station, the book is held by a clamp and is in a horizontal position, and the end of the clamp is at a preset distance from the spine of the book; all horizontal lines in the spine image are acquired; if there are more than two horizontal lines, all content elements in the spine image are detected to obtain multiple detection boxes for the content elements; the center points of the multiple detection boxes are acquired, and a straight line is fitted to the center points of the multiple detection boxes to obtain at least one horizontal fitted straight line; the distance between each fitted straight line and each horizontal line is calculated; it is determined whether there is a fitted straight line with an equal distance to two horizontal lines, and if so, the fitted straight line is taken as the axis of the spine; the horizontal center line of the spine label is aligned with the axis of the spine, and the spine label is affixed to the spine; the portion of the spine label suspended on the upper and lower sides of the spine is brushed onto the upper and lower covers of the book using a roller brush.
[0007] If the number of horizontal lines is equal to two, then the horizontal line at the midpoint between the two horizontal lines is obtained, and the horizontal line at the midpoint between the two horizontal lines is used as the axis of the spine.
[0008] If no fitted straight line is equidistant from the two horizontal lines, the book is marked as a failure.
[0009] All horizontal lines in the spine image are obtained using edge detection and thinning algorithms.
[0010] The spine image of the book is acquired under natural light, and the content element is text. All content elements in the spine image are detected to obtain multiple detection boxes for each content element. Specifically, this includes: extracting features from the spine image to obtain a text feature map; upsampling the text feature map to enhance its features, resulting in an enhanced text feature map; performing super-resolution reconstruction on the enhanced text feature map using SRResNet to obtain a super-resolution text region; and inputting the super-resolution text region into R-CNN to obtain a detection box for each character.
[0011] A spine label pasting device includes: a data acquisition module for acquiring a spine image of a book when it arrives at and stops at a labeling station, wherein the book is held horizontally by a clamp at the labeling station, and the end of the clamp is at a preset distance from the spine of the book; an acquisition module for acquiring all horizontal lines in the spine image; a detection module for detecting all content elements in the spine image when there are more than two horizontal lines, obtaining multiple detection boxes for the content elements; and a fitting module for acquiring the center points of the multiple detection boxes. The system performs linear fitting on the center points of multiple detection frames to obtain at least one horizontal fitted line; a calculation module calculates the distance between each fitted line and each horizontal line; a judgment module determines whether there is a fitted line that is equidistant from two horizontal lines, and if so, uses that fitted line as the axis of the spine; an adhesive module aligns the horizontal center line of the spine label with the axis of the spine and adhesively attaches the spine label to the spine; and a roller brush module controls the roller brush to adhere the portion of the spine label suspended on the upper and lower sides of the spine to the upper and lower covers of the book.
[0012] The judgment module is also used to obtain the horizontal line at the middle position of the two horizontal lines when the number of horizontal lines is equal to two, and to use the horizontal line at the middle position of the two horizontal lines as the axis of the spine.
[0013] The judgment module is also used to mark the book as a failure when there is no fitted straight line that is equidistant from the two horizontal lines.
[0014] The acquisition module obtains all horizontal lines in the spine image through edge detection and thinning algorithms.
[0015] The acquisition module acquires the spine image of the book under natural light, and the content element is text. The detection module is specifically used to: extract features from the spine image to obtain a text feature map, and enhance the text feature map by upsampling to obtain an enhanced text feature map; perform super-resolution reconstruction on the enhanced text feature map using SRResNet to obtain a super-resolution text region; and input the super-resolution text region into R-CNN to obtain a detection box for each character.
[0016] The beneficial effects of this invention are: This invention determines the spine axis by acquiring the horizontal lines and detection boxes of content elements in the spine image. Then, the spine label is pasted onto the spine based on this axis. This makes it convenient to paste spine labels onto horizontally placed books and better ensures that the spine label is pasted in the center position in the thickness direction of the spine. It eliminates the need for many workstations and components, thereby reducing the footprint of the entire book acquisition and editing equipment and further improving the efficiency of book acquisition and editing. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the labeling station according to an embodiment of the present invention; Figure 2 This is a flowchart of a spine label pasting method according to an embodiment of the present invention; Figure 3 This is a block diagram of a spine label pasting device according to an embodiment of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] The spine label pasting method and apparatus of this invention are described in the following embodiments. Figure 1 The labeling station shown includes a clamp 1, a roller brush 2, and a labeling machine 3. At this station, the book 4 is held horizontally by the clamp 1, and a preset distance d exists between the end of the clamp 1 and the spine of the book 4. This preset distance d is greater than 0; it is designed to allow space for the roller brush to move, or in other words, to allow space for the label to be pasted onto the cover portion below the spine.
[0020] like Figure 2 As shown, the spine label pasting method of this invention includes the following steps: S1: When a book arrives at and stops at the labeling station, the spine image of the book is captured.
[0021] In one embodiment of the present invention, an image can be captured by a camera facing the spine of the book. The captured image is then segmented to remove the background, retaining only the book portion, which is the spine image. After obtaining the spine image, it can be grayscaled and binarized to obtain a grayscale image and a binary image, and then subsequent steps can be performed.
[0022] S2, retrieves all horizontal lines in the spine image.
[0023] In one embodiment of the present invention, all horizontal lines in the spine image can be obtained through edge detection algorithm and thinning algorithm.
[0024] In one embodiment of the invention, since background removal has been performed, all horizontal lines in the spine image originate from the book itself. The spine image will have at least two horizontal lines corresponding to the top and bottom edges of the spine. When the portion of the book extending beyond the clamp is not collapsed, the spine image generally contains two horizontal lines corresponding to the top and bottom edges of the spine. Occasionally, one or more additional lines may exist, such as creases or lines designed on the spine in addition to the top and bottom edges. When the portion of the book extending beyond the clamp collapses (i.e., the spine collapses), the spine image generally contains more than two horizontal lines. This is because, in addition to the aforementioned horizontal lines, there will inevitably be the top cover visible due to the spine collapse, and some may also have creases on the top cover near the spine.
[0025] In other words, the number of horizontal lines in the spine image obtained in this step is two or more.
[0026] In one embodiment of the present invention, if the number of horizontal lines is equal to two, then the two horizontal lines are determined to be the upper and lower sides of the spine. At this time, the horizontal line at the middle position of the two horizontal lines can be obtained, and the horizontal line at the middle position of the two horizontal lines can be used as the axis of the spine.
[0027] If there are more than two horizontal lines, it is impossible to determine which two lines are the top and bottom edges of the spine, and therefore the position of the spine axis cannot be obtained. In this case, the position of the spine axis can be obtained through the following steps S3 to S6.
[0028] S3. If there are more than two horizontal lines, then all content elements in the spine image are detected to obtain multiple detection boxes for content elements.
[0029] In one embodiment of the present invention, the content element may be text. On the spine, the text is generally arranged along the length of the spine, and all or most of the text on each spine is centered in the thickness direction. Through testing thousands of books, it was found that a small number of books have text on their spines that is not arranged along the length of the spine (but along the thickness direction), or have no text at all. However, these books are all very thick, or have very stiff covers, and as described above, they do not experience spine sagging when held by the clamps. The horizontal lines obtained in step S2 are all two in these cases. Moreover, books where spine sagging occurs are not very thick, generally not exceeding 2 cm, and the text on their spines is basically arranged along the length of the spine and is all or most of the text centered in the thickness direction. Therefore, embodiments of the present invention can determine the spine axis by detecting the text.
[0030] In one embodiment of the present invention, a detection box for text can be obtained based on deep learning object detection technology.
[0031] Given the characteristics of book cover material, many book covers and spines are prone to reflection. To prevent strong reflections from interfering with image acquisition and processing, embodiments of the present invention can acquire book spine images under natural light, i.e., without additional light sources such as LED lights. In this case, if the natural light is dim, the quality of the acquired spine image will be low. Therefore, in a preferred embodiment of the present invention, feature enhancement and super-resolution reconstruction are also performed on the text during the acquisition of the text detection box.
[0032] Specifically, features can first be extracted from the spine image to obtain a text feature map. Then, the text feature map is upsampled to enhance its features, resulting in an enhanced text feature map. The formula for feature enhancement is as follows:
[0033] in, F e For the enhanced text feature map, F This is the text feature image before enhancement. f GB () represents the Gaussian smoothing function. f u () indicates upsampling. p 1 and p 2 represents random pixels in the text feature map before enhancement. r The parameter is random.
[0034] Then, SRResNet is used to perform super-resolution reconstruction of the enhanced text feature map to obtain the super-resolution text region.
[0035] The enhanced text feature map is input into SRResNet for super-resolution reconstruction, and SRResNet outputs the super-resolution text region.
[0036] Finally, the super-resolution text regions are input into R-CNN to obtain the detection boxes for each character.
[0037] S4. Obtain the center points of multiple detection boxes and perform line fitting on the center points of multiple detection boxes to obtain at least one horizontal fitting line.
[0038] Here, "horizontal" refers to the direction that runs parallel to the length of the spine.
[0039] S5, calculate the distance between each fitted straight line and each horizontal line.
[0040] S6. Determine whether there exists a fitted straight line that is equidistant from the two horizontal lines. If so, use the fitted straight line as the axis of the spine.
[0041] The detection box is a rectangle, and its center point is also the center point of the text. If there is text centered in the thickness direction on the spine, then among the straight lines fitted according to the center point of the detection box, there will be a straight line that coincides with the spine axis.
[0042] If a straight line exists that coincides with the spine axis, then the distance from that line to both sides of the spine is equal. Therefore, when a fitted straight line is equidistant from two horizontal lines, that fitted straight line can be used as the spine axis.
[0043] It should be understood that in some embodiments, there may be minor horizontal line detection errors or straight line fitting errors. Therefore, the equality of distances here can be completely equal. In some embodiments, the case where the difference in distances is less than a preset threshold can also be regarded as the equality of distances.
[0044] In one embodiment of the present invention, if no fitted straight line is equidistant from the two horizontal lines, the book is marked as a failure. For failures, spine labels can be manually affixed after they are collected together.
[0045] S7. Align the horizontal center line of the spine label with the axis of the spine and attach the spine label to the spine.
[0046] Spine labels are mostly rectangular. Taking a rectangular label as an example, the horizontal center line of the spine label refers to the center line in the height direction, that is, the line that is equidistant from the top and bottom edges of the spine label.
[0047] S8, using a roller brush to apply the spine label, which is suspended on the upper and lower sides of the spine, to the upper and lower covers of the book.
[0048] It should be noted that the embodiments of the present invention only show the determination of the position of the spine label in the spine thickness direction. As for other work of the labeling station, such as the generation of the spine label, the removal of the spine label, and the determination of the position of the spine label in the spine length direction (if required by the user), please refer to the prior art. They are not related to the innovative content of the present invention, nor do they affect the implementation of the technical solution of the present invention. Therefore, they will not be described in detail here.
[0049] According to the spine label pasting method of the present invention, the spine axis is determined by acquiring the horizontal line in the spine image and the detection box of the content element in the spine image. Then, the spine label is pasted on the spine based on the axis. This makes it convenient to paste spine labels on horizontally placed books and can better ensure that the spine label is pasted in the center position in the thickness direction of the spine. It does not require setting up more workstations and components, thereby reducing the footprint of the entire book acquisition and editing equipment and further improving the efficiency of book acquisition and editing.
[0050] Corresponding to the spine label pasting method in the above embodiments, the present invention also proposes a spine label pasting device.
[0051] like Figure 3 As shown, the spine label pasting device of this invention includes a collection module 10, an acquisition module 20, a detection module 30, a fitting module 40, a calculation module 50, a judgment module 60, a pasting module 70, and a roller brush module 80. The system comprises the following modules: Acquisition module 10, which acquires the spine image of the book when it arrives at the labeling station; Acquisition module 20, which acquires all horizontal lines in the spine image; Detection module 30, which detects all content elements in the spine image when there are more than two horizontal lines, and obtains detection boxes for multiple content elements; Fitting module 40, which acquires the center points of multiple detection boxes and performs linear fitting on the center points of multiple detection boxes to obtain at least one horizontal fitted line; Calculation module 50, which calculates the distance between each fitted line and each horizontal line; Judgment module 60, which determines whether there is a fitted line with an equal distance to two horizontal lines, and if so, uses the fitted line as the axis of the spine; Pasting module 70, which aligns the horizontal center line of the spine label with the axis of the spine and pastes the spine label onto the spine; and Roller brush module 80, which controls the roller brush to brush the part of the spine label that is suspended on the upper and lower sides of the spine onto the upper and lower covers of the book.
[0052] Furthermore, the judgment module is also used to obtain the horizontal line at the middle position of the two horizontal lines when the number of horizontal lines is equal to two, and to use the horizontal line at the middle position of the two horizontal lines as the axis of the spine.
[0053] Furthermore, the judgment module is also used to mark a book as a failure when there is no fitted straight line that is equidistant from the two horizontal lines.
[0054] Furthermore, the acquisition module obtains all horizontal lines in the spine image through edge detection and thinning algorithms.
[0055] In one embodiment of the present invention, the acquisition module acquires images of the spine of a book under natural light. The content element is text. The detection module is specifically used to: extract features from the spine image to obtain a text feature map, and enhance the text feature map by upsampling to obtain an enhanced text feature map; perform super-resolution reconstruction on the enhanced text feature map using SRResNet to obtain a super-resolution text region; and input the super-resolution text region into R-CNN to obtain a detection box for each character.
[0056] More specific embodiments of the spine label pasting device of the present invention can be found in the relevant embodiments of the spine label pasting method described above, and will not be repeated here to avoid redundancy.
[0057] According to an embodiment of the present invention, the spine label pasting device determines the axis of the spine by acquiring the horizontal lines in the spine image and the detection boxes of the content elements in the spine image, and then pastes the spine label onto the spine based on the axis. Thus, it is convenient to paste the spine label onto horizontally placed books, and can better ensure that the spine label is pasted at the center position in the thickness direction of the spine. It does not require setting up more workstations and components, thereby reducing the footprint of the entire book acquisition and editing equipment and further improving the efficiency of book acquisition and editing.
[0058] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. "A plurality of" means two or more, unless otherwise explicitly specified.
[0059] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0060] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "over," and "on top" of the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.
[0061] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Furthermore, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0062] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0063] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0064] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0065] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0066] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0067] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for attaching spine labels, characterized in that, Includes the following steps: When a book arrives at and stops at the labeling station, an image of the book's spine is captured. At the labeling station, the book is held by a clamp and is in a horizontal position, with a preset distance between the end of the clamp and the spine of the book. Obtain all horizontal lines in the spine image; If there are more than two horizontal lines, then all content elements in the spine image are detected to obtain multiple detection boxes for the content elements. Obtain the center points of multiple detection boxes, and perform line fitting on the center points of multiple detection boxes to obtain at least one horizontal fitting line; Calculate the distance between each fitted straight line and each horizontal line; Determine whether there exists a fitted straight line that is equidistant from the two horizontal lines. If so, use the fitted straight line as the axis of the spine. Align the horizontal center line of the spine label with the axis of the spine, and then attach the spine label to the spine. The spine label is applied to the top and bottom covers of the book by brushing the portion of the spine that is suspended above and below the spine using a roller brush. If no fitted straight line is equidistant from the two horizontal lines, the book is marked as a failure.
2. The method for pasting spine labels according to claim 1, characterized in that, If the number of horizontal lines is equal to two, then the horizontal line at the midpoint between the two horizontal lines is obtained, and the horizontal line at the midpoint between the two horizontal lines is used as the axis of the spine.
3. The method for pasting spine labels according to claim 1, characterized in that, All horizontal lines in the spine image are obtained using edge detection and thinning algorithms.
4. The method for pasting spine labels according to claim 1, characterized in that, The spine image of the book is acquired under natural light. The content element is text. All content elements in the spine image are detected to obtain multiple detection boxes for the content elements, specifically including: Feature extraction is performed on the spine image to obtain a text feature map, and the text feature map is enhanced by upsampling to obtain an enhanced text feature map; Super-resolution text regions are obtained by super-reconstructing the enhanced text feature map using SRResNet. The super-resolution text region is input into R-CNN to obtain the detection box for each character.
5. A spine label pasting device, characterized in that, include: The acquisition module is used to acquire the spine image of the book when the book arrives at and stops at the labeling station, wherein the book is held by a clamp at the labeling station and is in a horizontal state, and there is a preset distance between the end of the clamp and the spine of the book. The acquisition module is used to acquire all horizontal lines in the spine image; The detection module is used to detect all content elements in the spine image when there are more than two horizontal lines, and obtain multiple detection boxes for the content elements. The fitting module is used to obtain the center points of multiple detection boxes and perform linear fitting on the center points of the multiple detection boxes to obtain at least one horizontal fitting line. The calculation module is used to calculate the distance between each fitted straight line and each horizontal line; The judgment module is used to determine whether there is a fitted straight line that is equidistant from the two horizontal lines. If so, the fitted straight line is taken as the axis of the spine. The adhesive module is used to align the horizontal center line of the spine label with the axis of the spine and adhesive the spine label onto the spine. The roller brush module is used to control the roller brush to affix the spine label to the upper and lower covers of the book, covering the portion of the spine that is suspended above and below the spine. The judgment module is also used to mark the book as a failure when there is no fitted straight line that is equidistant from the two horizontal lines.
6. The spine label pasting device according to claim 5, characterized in that, The judgment module is also used to obtain the horizontal line at the middle position of the two horizontal lines when the number of horizontal lines is equal to two, and to use the horizontal line at the middle position of the two horizontal lines as the axis of the spine.
7. The spine label pasting device according to claim 5, characterized in that, The acquisition module obtains all horizontal lines in the spine image through edge detection and thinning algorithms.
8. The spine label pasting device according to claim 5, characterized in that, The acquisition module acquires an image of the book's spine under natural light, where the content element is text. The detection module is specifically used for: Feature extraction is performed on the spine image to obtain a text feature map, and the text feature map is enhanced by upsampling to obtain an enhanced text feature map; Super-resolution text regions are obtained by super-reconstructing the enhanced text feature map using SRResNet. The super-resolution text region is input into R-CNN to obtain the detection box for each character.
Citation Information
Patent Citations
A method for book acquisition and cataloging in an intelligent three-dimensional library and a robotic system
CN114524218B
Label identification method and device, electronic equipment, storage medium and label
CN114549624A
Book spine marking device and working method thereof
CN115743819A
