Book-following optical disk detection method and device and book collecting and editing equipment

The presence of CDs in books is identified through X-ray imaging and edge detection algorithms, which solves the problem of CDs falling and being damaged in book collection and editing equipment, and enables the normal operation of automatic collection and editing.

CN118655162AInactive Publication Date: 2024-09-17SHANGHAI RFID SYST TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410912312.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In book collection and editing equipment, CDs accompanying books are easily dropped or damaged during the automatic collection and editing process, and require manual detection and sorting. There is a lack of effective detection methods to avoid these problems.

Method used

X-ray imaging is used to obtain detection imaging of books, and through grayscale processing and contrast improvement processing, combined with edge detection algorithms and arc recognition technology, it is possible to determine whether there is a CD in the book.

Benefits of technology

Effectively detect the presence of CD-ROMs in books to prevent CD-ROMs from falling or being damaged and ensuring the normal progress of automatic collection and editing work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655162A
    Figure CN118655162A
Patent Text Reader

Abstract

The invention relates to the technical field of book collecting and editing, and provides a book-following optical disk detection method and device and book collecting and editing equipment, and the method comprises the following steps: obtaining a detection image of a to-be-detected book when the to-be-detected book reaches a detection station of the book collecting and editing equipment; performing graying processing on the detection image to obtain a gray detection image of the to-be-detected book; according to the proportion of the number of pixels of which the gray values are in the middle gray range in the gray detection imaging, performing contrast improvement processing on the gray detection imaging; detecting an edge line in the processed gray level detection image through an edge detection algorithm; identifying an arc corresponding to the edge of the optical disc in the edge line; and if the circular arc corresponding to the edge of the optical disk is identified from the edge line, determining that the optical disk exists in the book to be detected. According to the invention, whether the optical disk exists in the book can be effectively detected, the optical disk is prevented from falling off or being damaged in book collecting and editing equipment, and the normal operation of automatic book collecting and editing work is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of book collection and editing, and in particular to a method and device for detecting a book-attached CD and book collection and editing equipment. Background Art

[0002] Book acquisition and editing is a basic work of the library. At present, in order to save manpower and improve the efficiency of book acquisition and editing, relevant technologies have developed automated book acquisition and editing equipment. This book acquisition and editing equipment can perform automated work such as information collection and labeling on books in the form of an assembly line.

[0003] Some books come with a CD attached, which is pasted on the inside of the back cover of the book or sandwiched between two inner pages of the book. When such books are automatically collected and edited by book collection and editing equipment, the CD may fall out of the book or even be damaged. For example, the above situation may occur in the process of turning pages and the process of picking books. In addition, book collection and editing also requires that the CD attached to the book be taken out and sorted before the book is put into storage. Therefore, it is necessary to detect whether there is a CD attached to the book before the book reaches these processes. If a CD is detected in the book, it is necessary to stop conveying it to the next station. For example, it can be removed from the assembly line and put into a unified container, and the CD can be taken out manually and sorted by the way. In view of this, how to effectively detect whether there is a CD in the book is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a method and device for detecting a CD in a book and a book editing device, which can effectively detect whether there is a CD in a book, prevent the CD from falling or being damaged in the book editing device, and ensure the normal automatic book editing work.

[0005] The technical solution adopted by the present invention is as follows: A method for detecting a CD with a book comprises the following steps: when a book to be detected arrives at a detection station of a book acquisition and editing device, obtaining a detection image of the book to be detected; graying the detection image to obtain a gray detection image of the book to be detected; performing contrast enhancement processing on the gray detection image according to the proportion of the number of pixels whose gray values ​​are in an intermediate gray range in the gray detection image; detecting edge lines in the processed gray detection image by an edge detection algorithm; identifying an arc in the edge line corresponding to an edge of a CD; and determining that an CD exists in the book to be detected if an arc corresponding to the edge of the CD is identified from the edge line.

[0006] The detection imaging is X-ray imaging.

[0007] The grayscale detection imaging is subjected to contrast enhancement processing by the following formula:

[0008] in, O x,y is the pixel point in the processed grayscale detection imaging ( x , y ), I x,y is the pixel point in the grayscale detection imaging before processing ( x , y ), p It is the ratio of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection imaging.

[0009] The intermediate grayscale range is [i, j], where 55≤i≤100 and 155≤j≤200.

[0010] Identify the arc in the edge line corresponding to the edge of the optical disc, specifically including: making an auxiliary circle with each edge point in the edge line as the center and the standard radius of the optical disc as the radius; determine whether there are three or more auxiliary circles intersecting at an intersection; if so, determine the intersection as the center of the arc, and form the arc with the centers of all auxiliary circles intersecting at the intersection.

[0011] A book-attached CD detection device comprises: an acquisition module, the acquisition module is used to acquire the detection image of the book to be detected when the book to be detected arrives at the detection station of the book acquisition and editing equipment; a first processing module, the first processing module is used to grayscale the detection image to obtain the grayscale detection image of the book to be detected; a second processing module, the second processing module is used to perform contrast enhancement processing on the grayscale detection image according to the proportion of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection image; a detection module, the detection module is used to detect the edge line in the processed grayscale detection image through an edge detection algorithm; a recognition module, the recognition module is used to recognize the circular arc corresponding to the edge of the CD in the edge line; and a determination module, the determination module is used to determine that there is a CD in the book to be detected when the recognition module recognizes the circular arc corresponding to the edge of the CD from the edge line.

[0012] The second processing module performs contrast enhancement processing on the grayscale detection imaging by the following formula:

[0013] in, O x,y is the pixel point in the processed grayscale detection imaging ( x , y ), I x,yis the pixel point in the grayscale detection imaging before processing ( x , y ), p It is the ratio of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection imaging.

[0014] The intermediate grayscale range is [i, j], where 55≤i≤100 and 155≤j≤200.

[0015] The recognition module is specifically used to: draw auxiliary circles with each edge point in the edge line as the center and the standard radius of the CD as the radius; determine whether there are three or more auxiliary circles intersecting at an intersection; if so, determine the intersection as the center of the arc, and form the arc with the centers of all auxiliary circles intersecting at the intersection.

[0016] A book collecting and editing device comprises the above-mentioned book-attached CD detection device.

[0017] Beneficial effects of the present invention: The present invention obtains the detection image of the book to be detected, performs grayscale processing and contrast enhancement processing, then detects the edge line, identifies the arc in the edge line corresponding to the edge of the optical disk, and finally makes a result judgment based on the identified arc. In this way, it can effectively detect whether there is an optical disk in the book, avoid the optical disk from falling or being damaged in the book acquisition and editing equipment, and ensure the normal progress of the automatic book acquisition and editing work. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flow chart of a method for detecting a CD-ROM accompanying a book according to an embodiment of the present invention; Figure 2 A schematic diagram of the arc recognition principle of an embodiment of the present invention; Figure 3 The figure is a block diagram of a CD-with-a-book detection device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] like Figure 1 As shown, the method for detecting a CD-ROM with a book according to an embodiment of the present invention is characterized by comprising the following steps: S1, when the book to be detected arrives at the detection station of the book acquisition and editing equipment, the detection image of the book to be detected is obtained.

[0021] In one embodiment of the present invention, the detection station can be arranged before the station including the page turning process, the book picking process, etc. which may cause the optical disc in the book to fall off or be damaged. Optionally, the detection station can be the first station after a single book is put on the assembly line.

[0022] In one embodiment of the present invention, the detection imaging may be X-ray imaging. When the books to be detected are placed flat on a conveyor belt of an assembly line and conveyed to directly below an X-ray device, X-ray imaging of the books to be detected may be collected.

[0023] S2, grayscale processing is performed on the detection image to obtain a grayscale detection image of the book to be detected.

[0024] S3, performing contrast enhancement processing on the grayscale detection imaging according to the proportion of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection imaging.

[0025] The material of the optical disc is mainly plastic. In X-ray imaging, the difference between the optical disc and the book is not particularly obvious. In other words, when performing visual detection and recognition of detection imaging, the grayscale difference in the grayscale detection imaging is not obvious. Therefore, the embodiment of the present invention improves the distinction between the optical disc area and the background in the detection imaging by performing contrast enhancement processing on the grayscale detection imaging.

[0026] In one embodiment of the present invention, the grayscale detection imaging can be processed to improve the contrast by the following formula:

[0027] in, O x,y is the pixel point in the processed grayscale detection imaging ( x , y ), I x,y is the pixel point in the grayscale detection imaging before processing ( x , y ), p It is the ratio of the number of pixels whose grayscale values ​​are in the middle grayscale range in grayscale detection imaging, that is, the ratio of the number of pixels whose grayscale values ​​are in the middle grayscale range to the total number of pixels in grayscale detection imaging.

[0028] In a specific embodiment of the present invention, the intermediate grayscale range is [i, j], where 55≤i≤100 and 155≤j≤200.

[0029] S4, detecting edge lines in the processed grayscale detection imaging using an edge detection algorithm.

[0030] In one embodiment of the present invention, edge lines can be detected by using algorithms such as the Canny edge detection algorithm. The edge line is a collection of edge points of an object in grayscale detection imaging, that is, a collection of edge pixel points of the object.

[0031] S5, identifying the arc in the edge line corresponding to the edge of the optical disc.

[0032] In addition to the CD, the edge lines of the book cover, inner page edges, and flaps will also be detected. Therefore, the edge of the CD cannot be obtained after edge detection, but the arc corresponding to the edge of the CD must also be identified.

[0033] In one embodiment of the present invention, referring to Figure 2 As shown in the schematic diagram, an auxiliary circle can be drawn with each edge point in the edge line as the center and the standard radius of the disc as the radius ( Figure 2 Only a part of the auxiliary circles is shown as an illustration, and the auxiliary circles are represented by dotted lines). Then, it is determined whether there are three or more auxiliary circles intersecting at an intersection. If so, the intersection is determined as the center of the arc, and the arc is formed by the centers of all the auxiliary circles intersecting at the intersection. At this time, the arc corresponding to the edge of the optical disc is identified from the edge line. If there are no three auxiliary circles intersecting at an intersection, it is considered that the arc corresponding to the edge of the optical disc is not identified from the edge line.

[0034] It should be understood that the 3 in the above “three or more” is a theoretical value. In fact, if there is a CD in the book to be detected, the number of auxiliary circles intersecting at one intersection is relatively large. The number of such auxiliary circles corresponding to a small arc (the number of pixels on the arc) can reach thousands, tens of thousands or more. Therefore, in some embodiments, it can be determined whether there are more than a preset number of auxiliary circles intersecting at one intersection. This preset number can be set to a number much larger than 3, for example, 1000.

[0035] In a specific embodiment of the present invention, the standard radius of the optical disc is 60 mm. If optical discs with multiple different standard radii are to be identified, the above identification process can be performed for each standard radius.

[0036] S6: If an arc corresponding to the edge of the optical disc is identified from the edge line, it is determined that there is an optical disc in the book to be detected.

[0037] When it is determined that there is an optical disc in the books to be detected, the books to be detected can be removed from the production line and put into a unified container to prevent them from entering the next station on the production line.

[0038] If no arc corresponding to the edge of the optical disc is identified from the edge line in step S5, it is determined that there is no optical disc in the book to be detected, and the book to be detected can be transferred to the next station.

[0039] According to the method for detecting a CD accompanying a book in an embodiment of the present invention, a detection image of the book to be detected is obtained, and grayscale processing and contrast enhancement processing are performed, and then the edge line is detected, and the arc in the edge line corresponding to the edge of the CD is identified, and finally the result is determined based on the identified arc. In this way, it is possible to effectively detect whether there is a CD in the book, avoid the CD from falling or being damaged in the book acquisition and editing equipment, and ensure the normal progress of the automatic book acquisition and editing work.

[0040] In order to implement the CD-with-a-book detection method of the above embodiment, the present invention further provides a CD-with-a-book detection device.

[0041] like Figure 3 As shown, the optical disc detection device with a book of the embodiment of the present invention comprises: an acquisition module 10, a first processing module 20, a second processing module 30, a detection module 40, a recognition module 50 and a determination module 60. Among them, the acquisition module 10 is used to acquire the detection imaging of the book to be detected when the book to be detected arrives at the detection station of the book acquisition and editing equipment; the first processing module 20 is used to grayscale the detection imaging to obtain the grayscale detection imaging of the book to be detected; the second processing module 30 is used to perform contrast enhancement processing on the grayscale detection imaging according to the proportion of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection imaging; the detection module 40 is used to detect the edge line in the processed grayscale detection imaging by an edge detection algorithm; the recognition module 50 is used to identify the circular arc corresponding to the edge of the optical disc in the edge line; the determination module 60 is used to determine that there is an optical disc in the book to be detected when the recognition module 50 identifies the circular arc corresponding to the edge of the optical disc from the edge line.

[0042] In one embodiment of the present invention, the detection station can be arranged before the station including the page turning process, the book picking process, etc. which may cause the optical disc in the book to fall off or be damaged. Optionally, the detection station can be the first station after a single book is put on the assembly line.

[0043] In one embodiment of the present invention, the detection imaging may be X-ray imaging, and the acquisition module 10 may include an X-ray device. When the book to be detected is placed flat on the conveyor belt of the assembly line and conveyed to the bottom of the X-ray device, the X-ray imaging of the book to be detected can be collected.

[0044] The material of the optical disc is mainly plastic. In X-ray imaging, the difference between the optical disc and the book is not particularly obvious. In other words, when performing visual detection and recognition of detection imaging, the grayscale difference in the grayscale detection imaging is not obvious. Therefore, the embodiment of the present invention improves the distinction between the optical disc area and the background in the detection imaging by performing contrast enhancement processing on the grayscale detection imaging.

[0045] In one embodiment of the present invention, the second processing module 30 can perform contrast enhancement processing on the grayscale detection imaging by the following formula:

[0046] in, O x,y is the pixel point in the processed grayscale detection imaging ( x , y ), I x,y is the pixel point in the grayscale detection imaging before processing ( x , y ), p It is the ratio of the number of pixels whose grayscale values ​​are in the middle grayscale range in grayscale detection imaging, that is, the ratio of the number of pixels whose grayscale values ​​are in the middle grayscale range to the total number of pixels in grayscale detection imaging.

[0047] In a specific embodiment of the present invention, the intermediate grayscale range is [i, j], where 55≤i≤100 and 155≤j≤200.

[0048] In one embodiment of the present invention, the detection module 40 can detect edge lines by using algorithms such as the Canny edge detection algorithm. The edge line is a collection of edge points of an object in grayscale detection imaging, that is, a collection of edge pixel points of the object.

[0049] In addition to the CD, the edge lines of the book cover, inner page edges, and flaps will also be detected. Therefore, the edge of the CD cannot be obtained after edge detection, but the arc corresponding to the edge of the CD must also be identified.

[0050] In one embodiment of the present invention, referring to Figure 2 As shown in the schematic diagram, the recognition module 50 can make an auxiliary circle with each edge point in the edge line as the center and the standard radius of the optical disc as the radius ( Figure 2 Only a part of the auxiliary circles is shown as an illustration, and the auxiliary circles are represented by dotted lines). Then, it is determined whether there are three or more auxiliary circles intersecting at an intersection. If so, the intersection is determined as the center of the arc, and the arc is formed by the centers of all the auxiliary circles intersecting at the intersection. At this time, the arc corresponding to the edge of the optical disc is identified from the edge line. If there are no three auxiliary circles intersecting at an intersection, it is considered that the arc corresponding to the edge of the optical disc is not identified from the edge line.

[0051] It should be understood that the 3 in the above “three or more” is a theoretical value. In fact, if there is a CD in the book to be detected, the number of auxiliary circles intersecting at one intersection is relatively large. The number of such auxiliary circles corresponding to a small arc (the number of pixels on the arc) can reach thousands, tens of thousands or more. Therefore, in some embodiments, the recognition module 50 can determine whether there are more than a preset number of auxiliary circles intersecting at one intersection. This preset number can be set to a number much larger than 3, for example, 1000.

[0052] In a specific embodiment of the present invention, the standard radius of the optical disc is 60 mm. If the identification module 50 is to identify optical discs with multiple different standard radii, the above identification process can be performed for each standard radius.

[0053] When the determination module 60 determines that there is an optical disc in the books to be detected, the books to be detected can be removed from the production line and put into a unified container to prevent them from entering the next station on the production line.

[0054] If the recognition module 50 does not recognize an arc corresponding to the edge of the optical disc from the edge line, the determination module 60 may determine that there is no optical disc in the book to be detected, and then the book to be detected may be transferred to the next station.

[0055] According to the book-attached CD detection device of the embodiment of the present invention, the detection image of the book to be detected is obtained, and grayscale processing and contrast enhancement processing are performed, and then the edge line is detected, and the arc corresponding to the edge of the CD in the edge line is identified, and finally the result is determined according to the identified arc. In this way, it is possible to effectively detect whether there is a CD in the book, avoid the CD from falling or being damaged in the book acquisition and editing equipment, and ensure the normal progress of the automatic book acquisition and editing work.

[0056] Based on the book-attached CD detection device of the above embodiment, the present invention further provides a book collecting and editing device.

[0057] The book collecting and editing device of the embodiment of the present invention includes the book-attached CD detection device of any of the above embodiments of the present invention. The specific implementation method thereof can refer to any of the above embodiments and will not be described in detail herein.

[0058] The book acquisition and editing device according to the embodiment of the present invention can effectively detect whether there is an optical disc in the book, prevent the optical disc from falling or being damaged in the book acquisition and editing device, and ensure the normal progress of automatic book acquisition and editing.

[0059] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.

[0060] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0061] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0062] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations 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 one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0063] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0064] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0065] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0066] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0067] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0068] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for detecting a CD-ROM with a book, characterized in that: The following steps are involved: When the book to be detected arrives at the detection station of the book acquisition and editing equipment, a detection image of the book to be detected is obtained; Performing grayscale processing on the detection image to obtain a grayscale detection image of the book to be detected; According to the proportion of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection imaging, contrast enhancement processing is performed on the grayscale detection imaging; Detect edge lines in the processed grayscale detection imaging using an edge detection algorithm; identifying an arc in the edge line corresponding to an edge of the optical disc; If an arc corresponding to the edge of the optical disc is identified from the edge line, it is determined that there is an optical disc in the book to be detected.

2. The CD-ROM detection method according to claim 1, characterized in that: The detection imaging is X-ray imaging.

3. The CD-ROM detection method according to claim 2, characterized in that: The grayscale detection imaging is subjected to contrast enhancement processing by the following formula: ; in, O x,y is the pixel point in the processed grayscale detection imaging ( x , y ), I x,y is the pixel point in the grayscale detection imaging before processing ( x , y ), p It is the ratio of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection imaging.

4. The CD-ROM detection method according to claim 3, characterized in that: The intermediate grayscale range is [i, j], where 55≤i≤100 and 155≤j≤200.

5. The CD-ROM detection method according to claim 1, characterized in that: Identifying the arc in the edge line corresponding to the edge of the optical disc specifically includes: Draw an auxiliary circle with each edge point in the edge line as the center and the standard radius of the optical disc as the radius; Determine whether there are three or more auxiliary circles intersecting at an intersection point; If yes, the intersection point is determined as the center of the arc, and the arc is formed by the centers of all auxiliary circles intersecting at the intersection point.

6. A CD-ROM detection device, characterized in that: include: An acquisition module, the acquisition module is used to acquire a detection image of the book to be detected when the book to be detected arrives at the detection station of the book acquisition and editing equipment; A first processing module, the first processing module is used to perform grayscale processing on the detection image to obtain a grayscale detection image of the book to be detected; A second processing module, the second processing module is used to perform contrast improvement processing on the grayscale detection imaging according to the proportion of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection imaging; A detection module, the detection module is used to detect edge lines in the processed grayscale detection imaging through an edge detection algorithm; An identification module, the identification module is used to identify the arc in the edge line corresponding to the edge of the optical disc; A determination module is used to determine that there is a CD in the book to be detected when the recognition module recognizes an arc corresponding to the edge of the CD from the edge line.

7. The CD-attached-book detection device according to claim 6, characterized in that: The second processing module performs contrast enhancement processing on the grayscale detection imaging by the following formula: ; in, O x,y is the pixel point in the processed grayscale detection imaging ( x , y ), I x,y is the pixel point in the grayscale detection imaging before processing ( x , y ), p It is the ratio of the number of pixels whose grayscale values ​​are in the middle grayscale range in the grayscale detection imaging.

8. The CD-attached-book detection device according to claim 7, characterized in that: The intermediate grayscale range is [i, j], where 55≤i≤100 and 155≤j≤200.

9. The CD-attached-book detection device according to claim 6, characterized in that: The identification module is specifically used for: An auxiliary circle is made with each edge point in the edge line as the center and the standard radius of the optical disc as the radius; Determine whether there are three or more auxiliary circles intersecting at an intersection point; If yes, the intersection point is determined as the center of the arc, and the arc is formed by the centers of all auxiliary circles intersecting at the intersection point.

10. A book collecting and editing device, characterized in that: The invention comprises a book-attached optical disc detection device according to any one of claims 6-9.

Citation Information

Patent Citations

  • Improved method for enhancing picture contrast based on histogram

    CN101527038A

  • Image contrast enhancement method and device, storage medium and electronic equipment

    CN112102175A

  • Chip defect detection method and system based on nuclear norm minimization and machine learning

    CN116228707A

  • Method for enhancing video image quality and electronic equipment

    CN116668773A