A method and system for handling damaged books in a library

By identifying and analyzing the damage status and location of books, and selecting appropriate handling and placement methods and locations, the problem of secondary damage to books caused by automated equipment is solved, achieving more efficient book management and preservation.

CN123170303APending Publication Date: 2026-11-27SOUTH CHINA AGRICULTURAL UNIVERSITY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611083999.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing library automation equipment fails to effectively identify and avoid book damage when retrieving and placing books. In particular, the clamping method may cause cover folds, cover cracks, or further damage to the spine, and there is a lack of adaptive adjustment strategies for retrieval and placement.

Method used

By acquiring the damage status and location of books, including surface and inner page damage, edge detection and morphological feature analysis are used to identify the damage type and location, and appropriate handling methods and locations are selected, such as clamping or adsorption, to avoid secondary damage.

Benefits of technology

Refined management of book damage reduces the probability of secondary damage, extends the lifespan of books, and improves management efficiency and preservation quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123170303A_ABST
    Figure CN123170303A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of library management, and discloses a library damaged book taking and placing method and system, comprising: obtaining a book damage state and a book damage position; the book damage state comprises at least one of a book surface damage state and a book inner page damage state; the book damage position comprises at least one of a book surface damage position and a book spine damage position; and a book taking and placing mode and a taking and placing position acting on the book are selected according to the book damage state and the book damage position. The damage of the book is subdivided into various types, and the specific position of the damage on the book is determined, so that the damage information is more detailed and complete, and the management of the book is more detailed and in place. Meanwhile, the taking and placing mode and position are selected according to the damage state and the damage position, so that the probability of secondary damage is greatly reduced, the service life of the book is effectively prolonged, and the overall management efficiency and the book preservation quality are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of library management technology, and in particular to a method and system for retrieving and placing damaged books in a library. Background Technology

[0002] With the development of library management technology, intelligent and automated library management technologies have emerged. Library management systems, utilizing technologies such as the Internet of Things and databases, organize and store information such as book classification, book descriptions, reader borrowing and returning information, and administrator management data in a database, greatly facilitating both readers and librarians.

[0003] However, with the explosion of information, libraries have increasingly higher demands for book storage. Due to the variety of book types, sizes, height requirements, and the risk of damage during handling, manual book handling becomes very labor-intensive. Furthermore, the difficulty of climbing to heights and the small volume of books retrieved at a time reduce efficiency.

[0004] Currently, automated methods for picking and placing books using robots and AGVs (Automated Guided Vehicles) have emerged. However, none of these methods currently assess book damage. Furthermore, existing picking and placing devices (such as CN114524212A) generally employ a single clamping method during book handling. The clamping mechanism may apply pressure to damaged areas during the gripping process, causing further aggravation of cover folds, expansion of cover cracks, or further damage to the spine. Especially when the damaged area of ​​the book happens to be located at the clamping position, the clamping operation itself may cause secondary damage. However, existing technologies do not correlate the type and location of damage with the selection of the picking and placing method, lacking the ability to adaptively adjust the picking and placing strategy based on the damage situation. Summary of the Invention

[0005] The purpose of this invention is to provide a method and system for retrieving and placing damaged books in a library, which can identify and record the damage to books and select the appropriate retrieval and placement method based on the damage condition.

[0006] To achieve the above objectives, the present invention provides a method for retrieving and placing damaged books in a library, comprising: The damage status and location of the book are obtained; the damage status includes at least one of the damage status of the book surface and the damage status of the book inner pages; the damage location includes at least one of the damage location of the book surface and the damage location of the book spine. The method of picking up and placing the book and the position of picking up and placing the book are selected based on the state of damage to the book and the location of the damage.

[0007] As a preferred embodiment, the damage to the book surface includes folded cover, torn cover, cracked cover, and damaged spine. The damage conditions of the book's inner pages include folded pages, missing pages, and torn pages.

[0008] As a preferred embodiment, obtaining the book damage status and book damage location includes: Acquire images of the book cover and spine, wherein the book cover image includes a front cover image and a back cover image; Edge detection is performed on the book cover image and the spine image to extract the first edge information; First morphological features and edge intensity features are extracted based on the first edge information. Damage status is determined based on the first morphological features and the edge intensity features. Based on the location of the damaged area, the damage status of the book surface is obtained. As a preferred embodiment, the step of determining the damage state based on the first morphological feature and the edge intensity feature, and obtaining the damage state of the book surface based on the location of the damaged area, includes: For a spine image, if the first morphological feature is that there are multiple breaks or shape distortions, and the edge intensity feature of the breaks or shape distortions is greater than or equal to a first threshold, then it is determined to be a spine damage. For the book cover image, if the first morphological feature is an obvious break or irregular gap in the edge contour, and the edge intensity feature of the break or irregular gap is greater than or equal to a first threshold, it is determined to be a damaged cover; if the first morphological feature is a linear discontinuity mark in the edge contour, and the edge intensity feature of the linear discontinuity mark is less than a first threshold but greater than a second threshold, it is determined to be a cracked cover; if the first morphological feature is a continuous arc-shaped bend in the edge contour, and the edge intensity feature of the continuous arc-shaped bend is less than or equal to a second threshold, it is determined to be a folded cover.

[0009] As a preferred embodiment, obtaining the book damage status and book damage location includes: The book is flattened based on the width of the spine. Obtain a side image of the book after it has been flattened; The side image is preprocessed to obtain a grayscale image; Extract grayscale features based on the grayscale image; Adaptive grayscale thresholding is performed on the grayscale image to separate the inner page region from the background, resulting in a binarized image. Perform morphological operations on the binarized image to obtain the inner page outline; Extract the second morphological features based on the inner page outline; The damage state is determined based on the grayscale feature and the second morphological feature, thus obtaining the damage state of the book's inner pages.

[0010] As a preferred embodiment, the step of determining the damage state based on the grayscale feature and the second morphological feature to obtain the damage state of the book's inner pages includes: If the grayscale feature is that there is a dark gap area in the grayscale image with a grayscale value less than the third threshold, and the second morphological feature of the dark gap area is that the pixel width exceeds the corresponding pixel value of 2mm and the pixel length exceeds the corresponding pixel value of 5mm, it is determined to be an inner page missing. If the grayscale feature is that there is a light-colored gap region in the grayscale image with a grayscale value greater than the fourth threshold, and the second morphological feature of the light-colored gap region is that the pixel width exceeds the corresponding pixel value of 2mm and the pixel length exceeds the corresponding pixel value of 5mm, it is determined to be an inner page fold.

[0011] As a preferred embodiment, the step of determining the damage state based on the grayscale feature and the second morphological feature to obtain the damage state of the book's inner pages includes: Edge detection is performed on the inner page outline to obtain second edge information; Tracing consecutive pixels along the second edge information, calculating the concavity and convexity of the consecutive pixels, and obtaining the second morphological feature; If the second morphological feature is that the concave-convex amplitude is greater than a preset amplitude threshold, then it is determined that the inner page is damaged.

[0012] As a preferred embodiment, the step of selecting the book handling method and the handling position applied to the book based on the book's damage state and location includes: If the location of the book damage includes the location of the book spine damage, the book shall be handled by clamping. If the damage to the book does not include the damage to the spine, the book is divided into three parts along its height. If at least one of the three parts is undamaged, the undamaged part is used as the pick-up and put-down position, and the book is picked up and put down by clamping. If all three parts are damaged, the book is picked up and put down by adsorption, and the pick-up and put-down position is the spine.

[0013] The present invention also provides a library damaged book retrieval system, comprising: The loss detection module is used to acquire the book damage status and the book damage location; the book damage status includes at least one of the book surface damage status and the book inner page damage status; the book damage location includes at least one of the book surface damage location and the book spine damage location. The book handling control module selects the book handling method and the handling position on the book based on the book's damage status and location.

[0014] As a preferred option, it also includes: The picking and placing mechanism is used to perform picking and placing operations on the books according to the selection of the picking and placing control module.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention categorizes book damage into various types and identifies the specific location of the damage on the book. Compared to existing technologies that only record the overall condition, this invention provides more detailed and complete damage information, enabling more precise and effective book management. For example, books can be categorized based on damage information, and severely damaged books can be prioritized for handling. Furthermore, this invention selects the handling method and location based on the damage state and location, significantly reducing the probability of secondary damage, effectively extending the lifespan of books, and improving overall management efficiency and book preservation quality. Attached Figure Description

[0016] Figure 1 A schematic diagram illustrating the application environment of the library damaged book retrieval and placement method according to an embodiment of the present invention; Figure 2 A flowchart of a library damaged book retrieval and placement method according to an embodiment of the present invention; Figure 3 A flowchart of the second embodiment of the present invention for obtaining the damage status and location of books; Figure 4 A flowchart of the third embodiment of the present invention for obtaining the damage status and location of books; Figure 5 This is a schematic diagram of the first structure of the picking and placing mechanism according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the second structure of the picking and placing mechanism according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the third structure of the picking and placing mechanism according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the fourth structure of the picking and placing mechanism according to an embodiment of the present invention; Figure 9 This is a schematic diagram of the fifth structure of the picking and placing mechanism according to an embodiment of the present invention; In the diagram, 101-terminal; 102-server; 501-guide rail; 502-clamping component; 503-suction cup component; 504-moving component. Detailed Implementation

[0017] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are for illustrative purposes only and are not intended to limit the scope of the invention.

[0018] In the description of this invention, it should be noted that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0019] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; 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; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0020] Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means two or more.

[0021] Example 1 Library damaged book management methods can be applied to, for example... Figure 1 In the application environment shown, terminal 101 communicates with server 102 via a network. A data storage system can store the data that server 102 needs to process. The data storage system can be integrated onto server 102 or located in the cloud or on other network servers. Terminal 101 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 102 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0022] like Figure 2 As shown in the preferred embodiment of the present invention, a method for retrieving and placing damaged books in a library includes: S201. Obtain the book damage status and book damage location; the book damage status includes at least one of the book surface damage status and the book inner page damage status; the book damage location includes at least one of the book surface damage location and the book spine damage location. S202. Select the method of picking up and placing the book and the position of picking up and placing the book on the book according to the state of damage and the location of the damage.

[0023] This embodiment categorizes book damage into various types and determines the specific location of the damage on the book. Compared to existing technologies that only record the overall state, the damage information is more detailed and complete, resulting in more precise and effective book management. For example, books can be categorized and managed based on damage information, and severely damaged books can be prioritized for handling. Furthermore, this embodiment selects the handling method and location based on the damage state and location, greatly reducing the probability of secondary damage, effectively extending the lifespan of books, and improving overall management efficiency and book preservation quality.

[0024] The damage to the book's surface includes folded cover, torn cover, cracked cover, and damaged spine; the damage to the book's inner pages includes folded inner pages, missing inner pages, and torn inner pages.

[0025] Specifically, the method of handling and placing books is selected based on the condition and location of the damage. For example, when the book's surface damage is a torn or cracked cover, using an insertable book-retrieving tool to grasp the cover and back of the book may cause secondary damage to the damaged area, leading to an increase in the damaged area and severity of the damage. Therefore, a second assessment of the book's damage location is necessary. If the damage is located at the bottom of the book, the damaged area can be avoided, and the book can be retrieved by grasping the top part. When the book's surface damage is severe, meaning that there is damage in various parts of the cover or back of the book, a suction cup can be used to adhere the book to the spine, allowing for the spine to be removed without damage; thus avoiding secondary damage to the book during the handling and placement process.

[0026] This embodiment analyzes the damage status and location of books, providing detailed and reliable data for a library damaged book management system. The system can classify and manage books based on damage information, such as prioritizing severely damaged books. Furthermore, during book handling, the system plans operations based on damage location information, significantly reducing the probability of secondary damage, effectively extending the lifespan of books, and improving overall management efficiency and book preservation quality.

[0027] Example 2 The difference between this embodiment and Embodiment 1 is that, based on Embodiment 1, this embodiment further explains how to obtain the damage status and location of the book.

[0028] like Figure 3 As shown in this embodiment, obtaining the book damage status and book damage location includes: S301. Obtain the book cover image and spine image of the book, where the book cover image includes the cover image and the back image; S302. Perform edge detection on the book cover image and the spine image, and extract the first edge information; S303. Extract the first morphological features and edge intensity features based on the first edge information, determine the damage state based on the first morphological features and edge intensity features, and obtain the damage state of the book surface based on the location of the damage area.

[0029] Specifically, the damage state is determined based on the first morphological feature and the edge intensity feature, and the damage state of the book surface is obtained based on the location of the damaged area, including: For a book spine image, if the first morphological feature is that there are multiple breaks or shape distortions, and the edge intensity feature of the break or shape distortion is greater than or equal to the first threshold, then it is determined to be a book spine damage. For book cover images, if the first morphological feature is an obvious break or irregular gap in the edge contour, and the edge intensity feature of the break or irregular gap is greater than or equal to the first threshold, it is determined to be a damaged cover; if the first morphological feature is a linear discontinuity in the edge contour, and the edge intensity feature of the linear discontinuity is less than the first threshold but greater than the second threshold, it is determined to be a cracked cover; if the first morphological feature is a continuous arc-shaped bend in the edge contour, and the edge intensity feature of the continuous arc-shaped bend is less than or equal to the second threshold, it is determined to be a folded cover.

[0030] This embodiment obtains the book damage status by: acquiring a book cover image, a book back image, and a book spine image; using edge detection to extract the edge intensity of the book cover image, book back image, and book spine image; and determining the book damage status based on a preset first threshold, a second threshold, and the edge intensity.

[0031] Extracting a first morphological feature based on the first edge information specifically includes: performing polygon approximation on the extracted edge contour point set to fit an approximate contour composed of several straight line segments; if the number of straight line segments obtained after polygon approximation exceeds a set value, and the turning directions between each straight line segment are consistent, then the morphological feature is that the edge contour has continuous arc curvature; if, after polygon approximation, there are straight line segments with a length greater than a set threshold, but there are non-closed breakpoints between adjacent straight line segments, and the contour concavity at the breakpoint exceeds a set threshold, then the morphological feature is that the edge contour has obvious breaks or irregular gaps; if the ratio of the total length of the straight line segments obtained after polygon approximation to the total perimeter of the edge contour point set is greater than a set threshold, and the directions of each straight line segment are basically consistent, then the morphological feature is that the edge contour has linear discontinuities; if the edge contour point set is divided into multiple unconnected sub-contours, or the ratio of the number of straight line segments after polygon approximation to the perimeter of the edge contour exceeds a set threshold, then the morphological feature is that the continuity of the edge contour has multiple breaks or shape distortions.

[0032] The damage state is determined based on the first morphological feature and edge intensity feature, and the damage state of the book surface is obtained based on the location of the damaged area, including: For a book spine image, if the first morphological feature is that there are multiple breaks or shape distortions, and the edge intensity feature of the break or shape distortion is greater than or equal to the first threshold, then it is determined to be a book spine damage. For book cover images, if the first morphological feature is an obvious break or irregular gap in the edge contour, and the edge intensity feature of the break or irregular gap is greater than or equal to the first threshold, it is determined to be a damaged cover; if the first morphological feature is a linear discontinuity in the edge contour, and the edge intensity feature of the linear discontinuity is less than the first threshold but greater than the second threshold, it is determined to be a cracked cover; if the first morphological feature is a continuous arc-shaped bend in the edge contour, and the edge intensity feature of the continuous arc-shaped bend is less than or equal to the second threshold, it is determined to be a folded cover.

[0033] For example, images of the cover, back, and spine of returned books are captured to obtain cover, back, and spine images. The Canny edge detection algorithm is used to process these images, with a first threshold and a second threshold set. When a continuous arc-shaped bend is detected in the edge contour, and the edge intensity of the bend is lower than the second threshold, it is determined to be a folded cover. When an obvious break or irregular gap appears in the edge contour, and the edge intensity at the gap is higher than the first threshold, it is determined to be a damaged cover. When the edge contour shows linear discontinuities, and the edge intensity is between the first and second thresholds, it is determined to be a cracked cover. By detecting the continuity of the spine edge contour, if multiple breaks or shape distortions occur, and the edge intensity of the distorted area is higher than the first threshold, it is determined to be spine damage.

[0034] Edge strength features include at least one of average gradient magnitude, maximum gradient magnitude, and gradient magnitude variance, used to characterize the drastic change in pixel grayscale values ​​at the edge. In this embodiment, the average gradient magnitude is used as the edge strength feature. Edge strength features characterize the drastic change in pixel grayscale values ​​at the edge; at the tear in the cover, due to the damage, the grayscale value abruptly changes from the cover color to the background color, causing the edge strength to exceed the first threshold; while a folded cover is merely a paper bend, with a smooth transition in grayscale values ​​at the edge, causing the edge strength to be below the second threshold.

[0035] In some embodiments, determining the book damage state based on a preset first threshold and a second threshold includes: if the edge strength is higher than the first threshold, determining the book damage state as cover damage and spine crack; if the edge strength is between the first threshold and the second threshold, determining the book damage state as cover crack; and if the edge strength is lower than the second threshold, determining the book damage state as cover fold.

[0036] The first threshold is a high threshold, and the second threshold is a low threshold. The selectable first threshold values ​​are 150 and the second threshold value is 50.

[0037] Specifically, the Canny edge detection algorithm is used to process the image, with dual thresholds set at 150 for the first threshold and 50 for the second threshold. Here, the edge contour parameter refers to the edge intensity. When detecting damage to the book cover, if the edge intensity is higher than 150, gaps are identified in the contour. If the image pixel width of the gap exceeds 5mm and the height exceeds 3mm, it is determined to be a cover tear. If the edge intensity is between 50 and 150, linear discontinuous marks are identified. If the image pixel length of the mark exceeds 10mm and the width is less than 2mm, it is determined to be a cover crack. If the edge intensity is lower than 50, the radius of curvature of the curved area is calculated. If the radius of curvature is between 5mm and 20mm, it is determined to be a folded cover.

[0038] The corresponding pixel value is the number of pixels in the image converted from the actual size.

[0039] Optionally, during spine image processing, if the edge strength is higher than 150 and there are two or more break points, or if the pixel area of ​​the shape distortion deviates from the standard spine rectangle outline by more than 10%, it is judged as spine damage.

[0040] In this embodiment, algorithms such as Canny edge detection are used to perform detailed analysis of the book cover and spine, which can accurately identify various types of damage such as minor creases on the cover, extremely fine cracks on the spine, and tiny missing corners on the inner pages, providing an accurate basis for subsequent processing.

[0041] The other steps in this embodiment are the same as in Embodiment 1, and will not be repeated here.

[0042] Example 3 The difference between this embodiment and embodiment two is that, based on embodiment two, this embodiment further explains how to obtain the damage status and location of the book.

[0043] like Figure 4 The method for obtaining the damage status and location of books also includes: S401. Flatten the book based on the width of the spine; S402. Obtain the side image of the book after it has been flattened; S403. Preprocess the side image to obtain a grayscale image; S404. Extract grayscale features based on grayscale images; S405. Perform adaptive grayscale threshold segmentation on the grayscale image to separate the inner page region from the background and obtain a binarized image. S406. Perform morphological operations on the binarized image to obtain the inner page outline; S407. Extracting second morphological features based on the inner page outline; S408. Based on grayscale features and second morphological features, determine the damage status and obtain the damage status of the inner pages of the book.

[0044] Specifically, the damage state is determined based on grayscale features and second morphological features to obtain the damage state of the book's inner pages, including: If the grayscale feature is that there are dark gap areas in the grayscale image with grayscale values ​​less than the third threshold, and the second morphological feature of the dark gap areas is that the pixel width exceeds the corresponding pixel value of 2mm and the pixel length exceeds the corresponding pixel value of 5mm, it is determined to be an inner page missing; the pixel width exceeding 2mm refers to the number of pixels corresponding to a pixel width greater than 2mm, and the pixel length exceeding 5mm refers to the number of pixels corresponding to a pixel length greater than 5mm. If the grayscale feature is that there is a light-colored gap area in the grayscale image with a grayscale value greater than the fourth threshold, and the second morphological feature of the light-colored gap area is that the pixel width exceeds the corresponding pixel value of 2mm and the pixel length exceeds the corresponding pixel value of 5mm, it is determined to be an inner page fold.

[0045] Furthermore, based on grayscale features and second morphological features, the damage state of the book's inner pages is determined, including: Edge detection is performed on the inner page outline to obtain the second edge information; Tracing consecutive pixels along the second edge information, calculating the concavity and convexity of consecutive pixels, and obtaining the second morphological feature; If the second morphological feature is that the concavity or convexity is greater than the preset amplitude threshold, it is determined to be an inner page damage.

[0046] When a normal page is illuminated by a parallel light source, the paper fibers on the side will form a uniform diffuse reflection, resulting in a relatively consistent grayscale value. However, when an inner page is torn, the edges of the torn paper are rough and may curl up, which will block some light and form an irregular area of ​​light and dark variation that is darker than that of a normal page. This is significantly different from the uniform grayscale of a normal page, and thus, this difference in grayscale can be used to distinguish between torn and normal pages.

[0047] Therefore, in some embodiments, obtaining the book damage status includes: flattening the book based on the spine width; obtaining a side image of the flattened book; performing grayscale threshold segmentation on the side image of the book and calculating the average grayscale value of the side image of the book; determining the book damage status as missing inner pages when the grayscale value in the side image of the book is lower than a third threshold; and determining the book damage status as folded inner pages when the grayscale value in the side image of the book is higher than a fourth threshold.

[0048] The process involves flattening the book based on the spine width; that is, pressing the book cover and back to make the overall thickness of the book consistent with the spine width, avoiding excessive or insufficient pressing that could cause the inner pages to deform or become too loose, resulting in the final image being unable to accurately identify the book's damage status.

[0049] Specifically, the first step is to preprocess the acquired book side images. These images include first and second side images located on either side of the spine, and a third side image opposite the spine. Preprocessing includes denoising and grayscale conversion. Median filtering is used to eliminate random noise during shooting, and grayscale conversion transforms the color images into single-channel grayscale images to highlight the differences in brightness on the book's sides. Further, image segmentation is performed using an adaptive thresholding algorithm. This algorithm automatically adjusts the threshold based on the grayscale distribution of different regions on the inner page side, separating the inner page area from the background to obtain a binarized image. Then, morphological operations are performed on the binarized image. Erosion removes small interference areas, and dilation connects broken inner page edges, making the inner page outline clearer. The contours of the book's side images are analyzed, and the continuity and grayscale value changes of each inner page edge are calculated. For missing pages, interrupted regions in the contours of the first and second side images are detected, and the pixel width and length at the interruption points are calculated to determine whether an inner page is missing. For damaged inner pages, linear regions with abrupt changes in grayscale values ​​are detected on the book's side images, and their pixel length and width features are analyzed. Finally, the extracted features are compared with preset damage judgment conditions to determine whether the book's inner pages have folded pages, missing pages, or damage.

[0050] In this embodiment, the second morphological feature extraction based on the inner page contour is performed by analyzing the continuity of the inner page contour of the first side image and the second image to detect whether there is an interrupted region. For the position corresponding to the interrupted region in the grayscale image, the existence of a gap region with a grayscale value lower than a third threshold is detected to obtain the second morphological feature. The pixel width and pixel length of the gap region are calculated to obtain the grayscale feature. When both the pixel width and pixel length are greater than their respective preset thresholds, it is determined that the inner page is missing or folded. Furthermore, continuous pixels are traced along the inner page contour, and the concavity / convexity amplitude of the continuous pixels is calculated. If the concavity / convexity amplitude is greater than a preset amplitude threshold, a suspected damaged area is determined to exist, obtaining the second morphological feature. In the grayscale image, the position corresponding to the suspected damaged area is located, and the existence of a linear region with a sudden change in grayscale value at that position is detected. If a linear region with a sudden change in grayscale value exists, the pixel length and pixel width of the linear region are calculated to obtain the grayscale feature. When both the pixel length and pixel width are greater than their respective preset thresholds, it is determined that the inner page is damaged.

[0051] For example, after converting the side image of a book to grayscale, the average grayscale value of the normal inner page side is calculated. Using a grayscale thresholding algorithm, when a dark gap region with a grayscale value lower than the third threshold is detected in the image, and the pixel width of this region exceeds the corresponding pixel value of 2mm and the pixel length exceeds the corresponding pixel value of 5mm, it is determined to be an inner page missing. When a light-colored gap region with a grayscale value higher than the fourth threshold is detected in the image, and the pixel width of this region exceeds the corresponding pixel value of 2mm and the pixel length exceeds the corresponding pixel value of 5mm, it is determined to be an inner page fold.

[0052] In this embodiment, by processing the side images of book pages through denoising, grayscale conversion, adaptive threshold segmentation, and morphological operations, missing pages and cracks can be accurately detected, avoiding omissions caused by stacked pages during manual inspection. By combining the correspondence between the height of the side image of the inner page and the total number of pages, the range of page numbers where damage occurs can be located, providing clear location guidance for staff to repair the inner pages, reducing the time cost of searching for pages, and avoiding secondary damage to other intact pages during repair, further improving the precision of book management.

[0053] In some embodiments, after performing grayscale threshold segmentation on the side image of the book and calculating the average grayscale value of the side image of the book, the method includes: performing edge detection on the side image of the book; if there are consecutive pixels with a concavity / convexity greater than 0.5 mm in the edge detection, it is determined that the inner page is damaged.

[0054] Specifically, by using grayscale thresholding, areas with grayscale values ​​60%-80% lower than normal inner pages are identified as missing pages. At the same time, if linear traces of sudden grayscale changes are detected on the inner page, and the trace pixel length exceeds the corresponding pixel value of 10mm and the width is between the corresponding pixel values ​​of 0.5mm-2mm, it is identified as an inner page damage.

[0055] The other steps in this embodiment are the same as in Embodiment 2, and will not be repeated here.

[0056] Example 4 The difference between this embodiment and embodiment three is that, based on embodiment three, this embodiment further explains the selection of the book handling method and the handling position applied to the book according to the book's damage status and location.

[0057] In this embodiment, the method of picking up and placing books and the position of picking up and placing books on the books are selected according to the state and location of the damage, including: If the damage to the book includes the damage to the spine, the book should be handled by clamping. If the damage to the book does not include the damage to the spine, the book is divided into three parts along its height. If at least one of the three parts is undamaged, the undamaged part is used as the pick-up and put-down position, and the book is picked up and put down by clamping. If all three parts are damaged, the book is picked up and put down by suction, and the pick-up and put-down position is the spine.

[0058] In some embodiments, selecting a book handling method based on the book's damage status and location includes: obtaining the book's damage location; the book's damage location includes the book's surface damage location and the book spine damage location, and the book's surface damage location includes a first part, a second part, and a third part; when at least one of the first part, the second part, and the third part is not damaged, the undamaged part is used as the gripping area. When damage exists in the first, second, and third parts, the spine should be the absorption area.

[0059] The location of the book damage is determined by taking the intersection of the bottom and spine of the book as the origin of the coordinate system, i.e., the bottom left corner of the book as the origin of the coordinate system; the positive X-axis direction is horizontal to the right, and the positive Y-axis direction is vertical upward.

[0060] Specifically, for cover damage, when cover folds, cover tears, cover cracks, and spine damage are detected, the coordinates of the vertices of the smallest bounding rectangle of the damaged area's edge contour are recorded, and the location of the damage center (X) is calculated using these coordinates. f ,Y f ), and according to X f The value determines the left or right position, based on Y. f The value determines the vertical position. For spine damage, the X-axis range of the spine region in the overall image is located. When spine damage is detected, the Y-axis coordinate range of the damaged area is recorded (Y). s1 Y s2 The vertical position of the spine is determined based on the range of the Y-axis.

[0061] For example, to facilitate unified management and avoid the complexity of automatic data access caused by using a separate coordinate for each book, all books are divided into three parts along the Y-axis, with the bottom of the book as the reference. Since the typical height of a book is around 2 cm, the first part is set to 0-5 cm, the second part to 5-15 cm, and the third part to 15 cm or more.

[0062] Taking the book damage state as a cover crack and the damaged area as the first part as an example, the second and third parts of the book cover are intact. The clamping device can be clamped on both sides of the second and third parts of the book to pull out or insert the book, so as to ensure that the damaged area will not be damaged again.

[0063] Taking a book with a cracked cover as an example, where the covers of the first, second, and third parts of the book are all damaged, the book spine is picked up by a suction cup, and the book is pulled out or inserted by suction to ensure that the damaged area is not damaged again.

[0064] Furthermore, for inner page damage, the lower left corner of the inner page side image is taken as the origin of the inner page coordinate system (0, 0), and the vertical upward direction is the positive Z-axis. When an inner page is missing or cracked, the coordinate range of the damaged area in the Z-axis direction is recorded (Z... i1 Z i2 By mapping the Z-axis range to the page number range of the book's inner pages, the specific page number location of the damaged inner page can be determined.

[0065] In this embodiment, by constructing an image coordinate system, the damaged location is accurately divided, thus avoiding secondary damage during the process of picking up books.

[0066] The library damaged book retrieval method of this embodiment includes: S1. Obtain the book cover image, the book back image, and the book spine image.

[0067] S2. Edge detection is used to extract the edge contour parameters of the book cover image, the book back image, and the book spine image.

[0068] S3. If the edge contour parameter is higher than the first threshold, the book damage status is determined to be cover damage and spine crack.

[0069] S4. If the edge contour parameters are between the first threshold and the second threshold, the book damage status is determined to be a cover crack.

[0070] S5. If the edge contour parameter is lower than the second threshold, the book damage status is determined to be a folded cover.

[0071] S6. Flatten the book based on the spine width.

[0072] S7. Obtain the side image of the book after flattening.

[0073] S8. Perform grayscale thresholding on the side image of the book and calculate the average grayscale value of the side image of the book.

[0074] S9. Perform edge detection on the first side image, the second side image, and the third side image of the book.

[0075] S10. If the concave-convex amplitude of consecutive pixels is greater than 0.5 mm during edge detection, it is determined that the inner page is damaged.

[0076] S11. If the grayscale value in the side image of the book is lower than the third threshold, the book damage status is determined to be missing inner pages.

[0077] S12. If the grayscale value in the side image of the book is higher than the third threshold, the book damage status is determined to be an inner page fold.

[0078] S13. Obtain the location of book damage; the location of book damage includes the location of damage on the book surface and the location of damage on the spine. The location of damage on the book surface includes the first location, the second location, and the third location.

[0079] S14. When at least one of the first, second, and third positions is not damaged, the undamaged position shall be the gripping area.

[0080] S15. When damage exists in the first, second, and third positions, the spine should be the absorption area.

[0081] The other steps in this embodiment are the same as in Embodiment 3, and will not be repeated here.

[0082] Example 5 A preferred embodiment of the present invention provides a library damaged book retrieval system, comprising: The loss detection module is used to acquire the book damage status and the book damage location; the book damage status includes at least one of the book surface damage status and the book inner page damage status; the book damage location includes at least one of the book surface damage location and the book spine damage location. The book handling control module selects the book handling method and the handling position on the book based on the book's damage status and location.

[0083] The library's damaged book retrieval system also includes: The picking and placing mechanism is used to perform picking and placing operations on the books according to the selection of the picking and placing control module.

[0084] Furthermore, the library's damaged book retrieval system also includes: A flat structure used for pressing book covers and backs; The image acquisition module is used to acquire images of the book cover, back of the book, spine of the book, and side of the book.

[0085] Specifically, the flattening structure consists of a pair of parallel clamps that can move closer or further apart. The clamps are larger than the book. When the book needs to be flattened, the clamps cover the cover and back of the book respectively, squeezing the entire book to the same size as the spine width.

[0086] The image acquisition module includes a supplementary lighting structure to provide light parallel to the book cover and back. This parallel light ensures uniform diffuse reflection from the paper fibers on the book's sides, resulting in consistent grayscale values. When the inner pages are damaged, the rough edges of the torn paper may curl, blocking some light and creating irregular areas of darker light and shadow than normal pages, thus facilitating the acquisition of clear images of the book's sides.

[0087] Furthermore, such as Figures 5 to 9 As shown, the pick-and-place mechanism includes a guide rail 501, a clamping member 502, and a suction cup member 503. The clamping member 502 is used to clamp the book cover and back; the suction cup member 503 is used to adhere to the spine. The clamping member 502 includes two clamping plates that can move closer or further apart, and the suction cup member 503 is located between the two clamping plates. The clamping member 502 and the suction cup member 503 are mounted on a moving member 504, which is slidably connected to the guide rail 501. The guide rail 501 is used to transport the clamping member 502 and the suction cup member 503 to the location of the book for easy pick-and-place. Simultaneously, the clamping member 502 and the suction cup member 503 can also be placed at corresponding positions in the first, second, and third parts of the book to facilitate pick-and-place of the book based on its damage condition and location.

[0088] In summary, this invention provides a method and system for handling damaged books in a library. By categorizing book damage into various types and determining the specific location of the damage, it provides more detailed and complete damage information compared to existing technologies that only record the overall condition. This allows for more precise and effective book management, such as classifying books based on damage information and prioritizing severely damaged books. Furthermore, by selecting the handling method and location based on the damage condition and location, this invention significantly reduces the probability of secondary damage, effectively extends the lifespan of books, and improves overall management efficiency and book preservation quality.

[0089] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be considered within the scope of protection of the present invention.

Claims

1. A method for handling damaged books in a library, characterized in that, include: The damage status and location of the book are obtained; the damage status includes at least one of the damage status of the book surface and the damage status of the book inner pages; the damage location includes at least one of the damage location of the book surface and the damage location of the book spine. The method of picking up and placing the book and the position of picking up and placing the book are selected based on the state of damage to the book and the location of the damage.

2. The method according to claim 1, characterized in that, The damage to the book surface includes folded covers, torn covers, cracked covers, and damaged spines; The damage conditions of the book's inner pages include folded pages, missing pages, and torn pages.

3. The method for retrieving and placing damaged books in a library according to claim 2, characterized in that, The acquisition of the book damage status and book damage location includes: Acquire images of the book cover and spine, wherein the book cover image includes a front cover image and a back cover image; Edge detection is performed on the book cover image and the spine image to extract the first edge information; First morphological features and edge intensity features are extracted based on the first edge information. Damage status is determined based on the first morphological features and the edge intensity features. Based on the location of the damaged area, the damage status of the book surface is obtained.

4. The method for retrieving and placing damaged books in a library according to claim 3, characterized in that, The step of determining the damage state based on the first morphological feature and the edge intensity feature, and obtaining the damage state of the book surface based on the location of the damaged area, includes: For a spine image, if the first morphological feature is that there are multiple breaks or shape distortions, and the edge intensity feature of the breaks or shape distortions is greater than or equal to a first threshold, then it is determined to be a spine damage. For the book cover image, if the first morphological feature is an obvious break or irregular gap in the edge contour, and the edge intensity feature of the break or irregular gap is greater than or equal to a first threshold, it is determined to be a damaged cover; if the first morphological feature is a linear discontinuity mark in the edge contour, and the edge intensity feature of the linear discontinuity mark is less than a first threshold but greater than a second threshold, it is determined to be a cracked cover; if the first morphological feature is a continuous arc-shaped bend in the edge contour, and the edge intensity feature of the continuous arc-shaped bend is less than or equal to a second threshold, it is determined to be a folded cover.

5. The method for handling damaged books in a library according to claim 2, characterized in that, The acquisition of the book damage status and book damage location includes: The book is flattened based on the width of the spine. Obtain a side image of the book after it has been flattened; The side image is preprocessed to obtain a grayscale image; Extract grayscale features based on the grayscale image; Adaptive grayscale thresholding is performed on the grayscale image to separate the inner page region from the background, resulting in a binarized image. Perform morphological operations on the binarized image to obtain the inner page outline; Extract the second morphological features based on the inner page outline; The damage state is determined based on the grayscale feature and the second morphological feature, thus obtaining the damage state of the book's inner pages.

6. The method for retrieving and placing damaged books in a library according to claim 5, characterized in that, The step of determining the damage state based on the grayscale feature and the second morphological feature to obtain the damage state of the book's inner pages includes: If the grayscale feature is that there is a dark gap area in the grayscale image with a grayscale value less than the third threshold, and the second morphological feature of the dark gap area is that the pixel width exceeds the corresponding pixel value of 2mm and the pixel length exceeds the corresponding pixel value of 5mm, it is determined to be an inner page missing. If the grayscale feature is that there is a light-colored gap region in the grayscale image with a grayscale value greater than the fourth threshold, and the second morphological feature of the light-colored gap region is that the pixel width exceeds the corresponding pixel value of 2mm and the pixel length exceeds the corresponding pixel value of 5mm, it is determined to be an inner page fold.

7. The method for retrieving and placing damaged books in a library according to claim 5, characterized in that, The step of determining the damage state based on the grayscale feature and the second morphological feature to obtain the damage state of the book's inner pages includes: Edge detection is performed on the inner page outline to obtain second edge information; Tracing consecutive pixels along the second edge information, calculating the concavity and convexity of the consecutive pixels, and obtaining the second morphological feature; If the second morphological feature is that the concave-convex amplitude is greater than a preset amplitude threshold, then it is determined that the inner page is damaged.

8. The method for handling damaged books in a library according to claim 5, characterized in that, The step of selecting the book handling method and the handling position on the book based on the book's damage state and location includes: If the location of the book damage includes the location of the book spine damage, the book shall be handled by clamping. If the damage to the book does not include the damage to the spine, the book is divided into three parts along its height. If at least one of the three parts is undamaged, the undamaged part is used as the pick-up and put-down position, and the book is picked up and put down by clamping. If all three parts are damaged, the book is picked up and put down by adsorption, and the pick-up and put-down position is the spine.

9. A library damaged book retrieval and placement system, characterized in that, include: The loss detection module is used to acquire the book damage status and the book damage location; the book damage status includes at least one of the book surface damage status and the book inner page damage status; the book damage location includes at least one of the book surface damage location and the book spine damage location. The book handling control module selects the book handling method and the handling position on the book based on the book's damage status and location.

10. The library damaged book retrieval system according to claim 9, characterized in that, Also includes: The picking and placing mechanism is used to perform picking and placing operations on the books according to the selection of the picking and placing control module.

Citation Information

Patent Citations

  • Intelligent library-oriented book intelligent racking system and working method thereof

    CN114524212A