An AR-based intelligent reading method and system for library book introductions
Using AR technology to extract and identify library book request tags and display the introduction directly on the AR device solves the problem of readers needing to frequently remove books to read, improves efficiency and accuracy, and expands application scenarios.
Patent Information
- Application Number
- CN202410438194.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-04-12
AI Technical Summary
In libraries, readers need to frequently remove books to read introductions, resulting in a waste of time and inaccurate placement of books, affecting subsequent search efficiency.
Using the AR-based intelligent reading method of library book introductions, the head-mounted AR device captures images, extracts the book label boundaries, calculates the center point of the label search box, identifies the call number, and calls the book database to obtain the introduction, which is displayed in the image in real time , avoid removing books.
It realizes that you can read the introduction without removing the book, saves time, ensures that the book is returned to the correct position, improves the degree of intelligence and usability, and expands the application scenarios.
Smart Images

Figure CN118334673B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of AR-based intelligent reading scheme design of library book introductions, and in particular to an AR-based intelligent reading method and system for library book introductions. Background Art
[0002] Due to the large number of books in the library collection, most libraries use book call tags to improve retrieval efficiency. However, when readers are looking for books of interest, they need to take the books they want to read from the bookshelf one by one, and then put the books back on the bookshelf after reading the introduction or browsing roughly. This method is time-consuming, and when putting the books back on the bookshelf, the position may be inaccurate, which affects subsequent readers' search for related books. Therefore, the prior art continues to provide a library book introduction intelligent reading solution to solve the problems existing in the prior art.
[0003] Therefore, the prior art needs to be further developed. Summary of the invention
[0004] The purpose of the present invention is to overcome the above technical deficiencies and provide an AR-based intelligent reading method and system for library book introductions to solve the problems existing in the prior art.
[0005] To achieve the above technical objectives, according to a first aspect of the present invention, the present invention provides an AR-based intelligent reading method for library book introductions, the method comprising:
[0006] S100, obtaining a current frame image of a target area captured by an AR camera on a head-mounted AR device; processing the current frame image, extracting the boundaries of all book call tags in the current frame image, obtaining the pixel coordinates of the upper left corner and the lower right corner of each boundary, and establishing a tag search box for the book call tags of each book according to the pixel coordinates of the upper left corner and the lower right corner of each boundary;
[0007] S200, calculating the pixel coordinates of the center point of each tag search box, calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates, and recording the tag search box corresponding to the minimum value of the Euclidean distance as the target tag search box;
[0008] S300, identifying the call number in the target tag search box, obtaining the target call number corresponding to the target tag search box, calling the target book introduction corresponding to the call number in the book database according to the target call number, and writing the target book introduction to a preset position in the current frame image.
[0009] Specifically, the processing of the current frame image includes:
[0010] The current frame image is sequentially subjected to extraction of each RGB color channel, threshold segmentation based on color features, morphological processing, and height-based area screening to obtain a target image containing only the call label border area; the target image is edge processed, and the call label area is determined by boundary point judgment to obtain a call label image.
[0011] Specifically, the step of extracting the boundaries of all the book call tags of the books in the current frame image and establishing a tag search box of the book call tags of each book according to the boundaries of all the book call tags includes:
[0012] The minimum bounding rectangle of each book call tag in the book call tag image is acquired, and the minimum bounding rectangle corresponding to each book call tag is used as the boundary of each book call tag.
[0013] Specifically, the step of calculating the pixel coordinates of the center point of each tag search box includes:
[0014] The pixels corresponding to the upper left corner and the lower right corner of each boundary are connected in sequence to form line segments, the pixel coordinates of the midpoint of each line segment are calculated, and the pixel coordinates of the midpoint of each line segment are used as the pixel coordinates of the center point of each label search box.
[0015] Specifically, the step of identifying the call number in the target tag search box and obtaining the target call number corresponding to the target tag search box includes:
[0016] The CRNN network is used to recognize the text content in the target tag search box, and the content recognized by the CRNN network is used as the call number in the target tag search box.
[0017] Specifically, the use of the CRNN network to identify the text content in the target tag search box includes:
[0018] First, the convolutional layer is used to learn text features, and then the convolutional features are input into the bidirectional long short-term memory network to learn the sequence features of the text. Finally, the recognized text content is deduplicated through the transcription layer to output the final prediction result.
[0019] Specifically, the method further includes:
[0020] Output a voice interaction signal to the user regarding whether to lock the current book, obtain the user's interactive voice, and determine whether to stop calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates based on the user's interactive voice and write the target book introduction of the current video frame image into the subsequent frame image.
[0021] Specifically, the method further includes:
[0022] If the result of obtaining the user's interactive voice is "yes", stop calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates, and write the target book introduction of the current video frame image into the subsequent frame image;
[0023] If the result of obtaining the user's interactive voice is "No", calculate the Euclidean distance between the pixel coordinates of the center point of each label search box and the preset pixel coordinates, and record the label search box corresponding to the minimum value of the Euclidean distance as the target label search box; identify the call number in the target label search box, obtain the target call number corresponding to the target label search box, call the target book introduction corresponding to the call number in the book database according to the target call number, and write the target book introduction into the preset position in the current frame image.
[0024] According to a second aspect of the present invention, there is provided an AR-based intelligent reading system for library book introductions, comprising:
[0025] An acquisition module, including an AR camera on a head-mounted AR device, is used to capture a current frame image of a target area;
[0026] The control module is used to process the current frame image, extract the boundaries of the book call tags of all books in the current frame image, obtain the pixel coordinates of the upper left corner and the lower right corner of each boundary, and establish a label search box for the book call tags of each book according to the pixel coordinates of the upper left corner and the lower right corner of each boundary; or to calculate the pixel coordinates of the center point of each label search box, calculate the Euclidean distance between the pixel coordinates of the center point of each label search box and the preset pixel coordinates, and record the label search box corresponding to the minimum value in the Euclidean distance as the target label search box; or to identify the call number in the target label search box, obtain the target call number corresponding to the target label search box, call the target book introduction corresponding to the call number in the book database according to the target call number, and write the target book introduction into a preset position in the current frame image.
[0027] According to a third aspect of the present invention, there is provided an electronic device, comprising: a memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the above-mentioned AR-based intelligent reading method for library book introductions is implemented.
[0028] Beneficial effects:
[0029] The present invention realizes intelligent reading of library book introductions only through the AR camera on the head-mounted AR device. Readers do not need to take the books off the bookshelf to read the book introductions, and no complex algorithm modeling is required. This saves readers' time to a great extent and solves the problem that when readers put books back on the bookshelf, the position may be inaccurate, which affects subsequent readers' search for related books. This greatly improves the intelligence and usability of the present invention and greatly expands the application scenarios of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a flow chart of an AR-based intelligent reading method for library book introductions provided in a specific embodiment of the present invention;
[0031] Figure 2 It is a schematic diagram of the system composition of the AR-based library book introduction intelligent reading system provided in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making creative work should all fall within the scope of protection of this application. In addition, the directional words mentioned in the following embodiments, such as "up", "down", "left", "right", etc., are only reference to the directions of the accompanying drawings. Therefore, the directional words used are used to illustrate rather than limit the invention.
[0033] The present invention will be further described below in conjunction with the accompanying drawings and preferred embodiments.
[0034] See also Figure 1 The present invention provides an AR-based intelligent reading method for library book introductions, comprising:
[0035] S100, obtaining a current frame image of a target area captured by an AR camera on a head-mounted AR device; processing the current frame image, extracting boundaries of book call tags of all books in the current frame image, obtaining pixel coordinates of the upper left corner and the lower right corner of each boundary, and establishing a tag search box for the book call tags of each book according to the pixel coordinates of the upper left corner and the lower right corner of each boundary.
[0036] It should be noted that the steps before step S100 include:
[0037] A book database is established, wherein the book database includes a plurality of call numbers and text content of book introductions corresponding to each call number.
[0038] It should be noted that before step S100, the following steps are also included:
[0039] The preset pixel coordinates and the preset position are preset in the control module.
[0040] It can be understood that the preset pixel coordinates and preset positions can be specifically set according to the actual needs of the user of the present invention. The present invention does not limit the specific values of the preset pixel coordinates and the preset positions, as long as they are applicable to the AR-based library book introduction intelligent reading method proposed by the present invention.
[0041] Preferably, the present invention sets the preset pixel coordinates to the center point coordinates of the current frame image, and the present invention sets the preset position to the lower right corner of the target tag search box as the upper left corner coordinates of the text corresponding to the target book introduction, and inserts the text corresponding to the target book introduction. The above setting is obtained by the technicians of the present invention through a large number of experiments, and can only display one book introduction at the same time, and the displayed book introduction is the book introduction corresponding to the target tag search box closest to the center point coordinates of the current frame image, and the book introduction inserted in the current frame image will not block the target tag search box, which greatly optimizes the display effect, further improves the intelligence, reliability and usability of the present invention, and greatly optimizes the user experience.
[0042] Specifically, the processing of the current frame image includes:
[0043] The current frame image is sequentially subjected to extraction of each RGB color channel, threshold segmentation based on color features, morphological processing, and height-based area screening to obtain a target image containing only the call label border area; the target image is edge processed, and the call label area is determined by boundary point judgment to obtain a call label image.
[0044] It should be noted here that, based on the actual shooting situation, it is found that the collected book images usually have the following characteristics:
[0045] (1) In the collected videos or single images, the number of books is generally between 14 and 29, with 18 being the most common;
[0046] (2) The book call label consists of a white background and black text. In order to make the book call label more eye-catching on the spine, the book call label is usually surrounded by a border of a certain width and other colors. There is currently no unified standard for the specifications and color of the book call label border, and most of them are red borders.
[0047] (3) There are three ways to affix book call labels: on the heel of the book, close to the heel of the book, and on the spine of the book. Each method has its own advantages and disadvantages, and there is currently no unified standard.
[0048] According to the above characteristics of the book call tag, the present invention extracts the borders of the book call tags of all books based on the book call tags with red borders. The specific steps of obtaining the borders of the book call tags are as follows:
[0049] S110, obtaining a current frame image of the target area captured by an AR camera on the head-mounted AR device, and extracting red (R), green (G), and blue (B) components of the current frame image to obtain component images IR, IG, and IB.
[0050] S120. According to the color rendering principle, if an image is to appear red, the red component value is generally larger, and its value must be much larger than the values of the other two components, and there is a certain correlation between the three color components. After analyzing a series of images by the technicians of the present invention, it is finally determined that the value of the red component is at least half of the maximum gray value, that is, 127. Assuming that a certain pixel point in the image is displayed as red, the relationship between the components is as follows:
[0051]
[0052] Among them, m1 and m2 are the correlation coefficients of R, G and B components respectively, and IR(x,y), IG(x,y) and IB(x,y) are the grayscale values at position (x,y) in images IR, IG and IB respectively.
[0053] By analyzing the border colors of call labels in various situations, including intact and different aged states, we find that the distribution ranges of m1 and m2 are m1∈[2,6]; m2∈[2.19,5.44].
[0054] S130, judging the pixel points of each component image IR, IG, IB of the book image one by one, if the grayscale value of a pixel point in each channel image IR, IG, IB satisfies I R (x, y)>127,
[0055] If the pixel point is the border of the suspected book call label, the gray value of the pixel point is set to 1, otherwise its gray value is 0. That is, the pixel value of each point in the target image containing only the book call label border area is obtained as follows:
[0056]
[0057] Where m1min and m2min are the minimum values of m1 and m2 respectively, and (x, y) represents any pixel in the image.
[0058] S140 , performing region filling on the target image obtained in step S130 that only contains the border region of the book tag through morphological processing to remove the influence of the small error region caused by noise.
[0059] S150. Since there may be some red areas in the spine of the book, which are different from the stable height of the border of the book call label, the range of the red area is generally large, and the height is generally much greater than the height of the border of the book call label. Therefore, the area is screened based on the height. The number of pixels Hn corresponding to the border height of the book call label may vary at different shooting distances and shooting angles. After determining the shooting distance and shooting angle, the value is basically stable. The value can be tested and fixed in the first test image. In this experiment, the value of Hn is about 10 pixels.
[0060] Specifically, the steps for area screening based on height are as follows:
[0061] (1) According to the eight-connectivity criterion, the number of connected domains is determined and sorted;
[0062] (2) The connected domain is judged in sequence according to the sorting order. The judging steps are as follows: first, the height of the connected domain is obtained, and the connected domain is compared with the determined threshold value Hn. If the height of the connected domain is less than or equal to Hn, all pixel values in the connected domain remain unchanged; if the height of the connected domain is greater than Hn, all pixel values in the connected domain are set to 0;
[0063] (3) After all connected domains are determined, the boundary image of the book call tag is obtained.
[0064] (4) Perform edge processing on the boundary image of the book call label, and then determine the book call label area through boundary point judgment, so as to separate the book call label from the background and the spine, and obtain the book call label image. Finally, obtain the minimum circumscribed rectangle of the book call label image, and obtain the pixel coordinates of the upper left corner and the lower right corner of each book call label in the current frame image.
[0065] Specifically, the method for obtaining the book call label is as follows: perform edge extraction on the boundary image of the book call label, that is, retain the values of the boundary points, change the other grayscale values to 0, and obtain the edge image of the book call label border. In principle, a complete book call label will retain the upper and lower borders after the above steps. Each border has two upper and lower borders, and only the values at the boundary points are retained during the edge extraction process, that is, each column of the complete book call label area should have four non-zero values. Based on this, the book call label is extracted, and the specific steps are as follows:
[0066] First, create three one-dimensional arrays, named A0, Ab, and Ae respectively; detect the number of non-zero points in the edge image column by column, store the number of non-zero points in the column in A0, store the row coordinates of the first non-zero point in the column in Ab, and store the row coordinates of the last non-zero point in the column in Ae; then judge column by column, taking the j column as an example, if A0(j) = 4, change the grayscale values of all pixels between the first non-zero point and the last non-zero point in this column to 1, where A0(j) represents the number of non-zero points in the jth column, Ab(j) represents the row coordinates of the first non-zero point in the jth column, and Ae(j) represents the row coordinates of the last non-zero point in the jth column; if A0(j)≠4, set the non-zero boundary points in the column to zero; after completing the judgment of all columns, the boundary image of the book call label can be obtained.
[0067] Specifically, the step of extracting the boundaries of all the book call tags of the books in the current frame image and establishing a tag search box of the book call tags of each book according to the boundaries of all the book call tags includes:
[0068] The minimum bounding rectangle of each book call tag in the book call tag image is acquired, and the minimum bounding rectangle corresponding to each book call tag is used as the boundary of each book call tag.
[0069] S200, calculating the pixel coordinates of the center point of each tag search box, calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates, and recording the tag search box corresponding to the minimum value of the Euclidean distance as the target tag search box.
[0070] Specifically, the step of calculating the pixel coordinates of the center point of each tag search box includes:
[0071] The pixels corresponding to the upper left corner and the lower right corner of each boundary are connected in sequence to form line segments, the pixel coordinates of the midpoint of each line segment are calculated, and the pixel coordinates of the midpoint of each line segment are used as the pixel coordinates of the center point of each label search box.
[0072] S300, identifying the call number in the target tag search box, obtaining the target call number corresponding to the target tag search box, calling the target book introduction corresponding to the call number in the book database according to the target call number, and writing the target book introduction to a preset position in the current frame image.
[0073] Specifically, the step of identifying the call number in the target tag search box and obtaining the target call number corresponding to the target tag search box includes:
[0074] The CRNN network is used to recognize the text content in the target tag search box, and the content recognized by the CRNN network is used as the call number in the target tag search box.
[0075] Specifically, the use of the CRNN network to identify the text content in the target tag search box includes:
[0076] First, the convolutional layer is used to learn text features, and then the convolutional features are input into the bidirectional long short-term memory network to learn the sequence features of the text. Finally, the recognized text content is deduplicated through the transcription layer to output the final prediction result.
[0077] It should be noted here that the text content detected in the previous step is recognized using the CRNN network (Convolutional Recurrent Neural Network). This network is a convolutional recurrent neural network structure used to solve image-based sequence recognition problems, especially scene text recognition problems. The content recognized by the CRNN network is the call number. The method of this network is to first use the convolution layer to learn text features, and then input the convolution features into the bidirectional long short-term memory network to learn the sequence features of the text. The bidirectional long short-term memory network can make good use of the context information instead of predicting each character in isolation. Combining all the content of the context can more accurately recognize and predict the text content. Finally, through the transcription layer, the recognized text content is deduplicated and other processing is performed to output the final prediction result. The network recognizes the content detected in the previous step and outputs it as text information, including the call number of each book and the location information of the bookshelf.
[0078] It should be noted that the present invention uses the CRNN network to perform text recognition, but there are far more than one network for text recognition. Similar effects can be achieved using other text recognition networks, such as DTRN (Deep-text Recurrent Network), etc., but the essence is to recognize the detected content.
[0079] It is understandable that the extraction and identification of call numbers are both existing technologies, and the present invention will not elaborate on them in detail.
[0080] Specifically, the method further includes:
[0081] Output a voice interaction signal to the user regarding whether to lock the current book, obtain the user's interactive voice, and determine whether to stop calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates based on the user's interactive voice and write the target book introduction of the current video frame image into the subsequent frame image.
[0082] Specifically, the method further includes:
[0083] If the result of obtaining the user's interactive voice is "yes", stop calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates, and write the target book introduction of the current video frame image into the subsequent frame image;
[0084] If the result of obtaining the user's interactive voice is "No", calculate the Euclidean distance between the pixel coordinates of the center point of each label search box and the preset pixel coordinates, and record the label search box corresponding to the minimum value of the Euclidean distance as the target label search box; identify the call number in the target label search box, obtain the target call number corresponding to the target label search box, call the target book introduction corresponding to the call number in the book database according to the target call number, and write the target book introduction into the preset position in the current frame image.
[0085] It should be noted here that, through the above-mentioned distinguishing technical features, the present invention can realize the continuous display of the same target book introduction or the continuous updating of the target book introduction according to the left and right rotation of the AR glasses according to user needs, thereby further facilitating readers to read the book introduction and further improving the intelligence and usability of the present invention.
[0086] It can be understood that the present invention realizes the intelligent reading of library book introductions only through the AR camera on the head-mounted AR device. Readers do not need to take the books off the bookshelf to read the book introductions, and no complex algorithm modeling is required. This saves readers' time to a great extent and solves the problem that when readers put books back on the bookshelf, the position may be inaccurate, affecting subsequent readers' search for related books. This greatly improves the intelligence and usability of the present invention and greatly expands the application scenarios of the present invention.
[0087] See also Figure 2 The present invention provides another embodiment, which provides an AR-based intelligent reading system for library book introductions. The AR-based intelligent reading system for library book introductions includes:
[0088] The acquisition module 100 includes an AR camera on a head-mounted AR device, which is used to capture a current frame image of a target area;
[0089] The control module 200 is used to process the current frame image, extract the boundaries of the book call tags of all books in the current frame image, obtain the pixel coordinates of the upper left corner and the lower right corner of each boundary, and establish a label search box for the book call tags of each book according to the pixel coordinates of the upper left corner and the lower right corner of each boundary; or to calculate the pixel coordinates of the center point of each label search box, calculate the Euclidean distance between the pixel coordinates of the center point of each label search box and the preset pixel coordinates, and record the label search box corresponding to the minimum value in the Euclidean distance as the target label search box; or to identify the call number in the target label search box, obtain the target call number corresponding to the target label search box, call the target book introduction corresponding to the call number in the book database according to the target call number, and write the target book introduction into a preset position in the current frame image.
[0090] It should be noted here that the present invention realizes the intelligent reading of library book introductions only through the AR camera on the head-mounted AR device. Readers do not need to take the books off the bookshelf to read the book introductions, and no complex algorithm modeling is required. This saves readers' time to a great extent and solves the problem that when readers put books back on the bookshelf, the position may be inaccurate, affecting subsequent readers' search for related books. This greatly improves the intelligence and usability of the present invention and greatly expands the application scenarios of the present invention.
[0091] In a preferred embodiment, the present application further provides an electronic device, the electronic device comprising:
[0092] A memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method for intelligent reading of library book introductions based on AR is implemented. The computer device can be broadly a server, a terminal, or any other electronic device with necessary computing and / or processing capabilities. In one embodiment, the computer device may include a processor, a memory, a network interface, a communication interface, etc. connected via a system bus. The processor of the computer device can be used to provide necessary computing, processing and / or control capabilities. The memory of the computer device may include a non-volatile storage medium and an internal memory. An operating system, a computer program, etc. may be stored in or on the non-volatile storage medium. The internal memory may provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the computer device can be used to connect and communicate with external devices through a network. When the computer program is executed by the processor, the steps of the method of the present invention are performed.
[0093] The present invention may be implemented as a computer-readable storage medium having a computer program stored thereon, which causes the steps of the method of an embodiment of the present invention to be executed when executed by a processor. In one embodiment, the computer program is distributed on a plurality of computer devices or processors coupled to a network so that the computer program is stored, accessed and executed in a distributed manner by one or more computer devices or processors. A single method step / operation, or two or more method steps / operations, may be performed by a single computer device or processor or by two or more computer devices or processors. One or more method steps / operations may be performed by one or more computer devices or processors, and one or more other method steps / operations may be performed by one or more other computer devices or processors. One or more computer devices or processors may perform a single method step / operation, or perform two or more method steps / operations.
[0094] It will be appreciated by those skilled in the art that the method steps of the present invention may be performed by instructing related hardware such as a computer device or a processor through a computer program, and the computer program may be stored in a non-temporary computer-readable storage medium, which causes the steps of the present invention to be performed when the computer program is executed. Depending on the circumstances, any reference to memory, storage, database, or other media herein may include non-volatile and / or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.
[0095] It can be understood that the present invention realizes the intelligent reading of library book introductions only through the AR camera on the head-mounted AR device. Readers do not need to take the books off the bookshelf to read the book introductions, and no complex algorithm modeling is required. This saves readers' time to a great extent and solves the problem that when readers put books back on the bookshelf, the position may be inaccurate, affecting subsequent readers' search for related books. This greatly improves the intelligence and usability of the present invention and greatly expands the application scenarios of the present invention.
[0096] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0097] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. An AR-based intelligent reading method for library book introductions, characterized in that: The method comprises: S100, obtaining a current frame image of a target area captured by an AR camera on a head-mounted AR device; processing the current frame image, extracting the boundaries of all book call tags in the current frame image, obtaining the pixel coordinates of the upper left corner and the lower right corner of each boundary, and establishing a tag search box for the book call tags of each book according to the pixel coordinates of the upper left corner and the lower right corner of each boundary; S200, calculating the pixel coordinates of the center point of each tag search box, calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates, and recording the tag search box corresponding to the minimum value of the Euclidean distance as the target tag search box; S300, identifying the call number in the target tag search box, obtaining the target call number corresponding to the target tag search box, calling the target book introduction corresponding to the call number in the book database according to the target call number, and writing the target book introduction to a preset position in the current frame image.
2. The method for intelligent reading of library book introductions based on AR according to claim 1, characterized in that: The processing of the current frame image includes: The current frame image is sequentially subjected to extraction of each RGB color channel, threshold segmentation based on color features, morphological processing, and height-based area screening to obtain a target image containing only the call label border area; the target image is edge processed, and the call label area is determined by boundary point judgment to obtain a call label image.
3. The method for intelligent reading of library book introductions based on AR according to claim 2 is characterized in that: The step of extracting the boundaries of all the book call tags of the books in the current frame image and establishing a tag search box of the book call tags of each book according to the boundaries of all the book call tags includes: The minimum bounding rectangle of each book call tag in the book call tag image is acquired, and the minimum bounding rectangle corresponding to each book call tag is used as the boundary of each book call tag.
4. The method for intelligent reading of library book introductions based on AR according to claim 3 is characterized in that: The step of calculating the pixel coordinates of the center point of each tag search box includes: The pixels corresponding to the upper left corner and the lower right corner of each boundary are connected in sequence to form line segments, the pixel coordinates of the midpoint of each line segment are calculated, and the pixel coordinates of the midpoint of each line segment are used as the pixel coordinates of the center point of each label search box.
5. The method for intelligent reading of library book introductions based on AR according to claim 4 is characterized in that: The step of identifying the call number in the target tag search box and obtaining the target call number corresponding to the target tag search box includes: The CRNN network is used to recognize the text content in the target tag search box, and the content recognized by the CRNN network is used as the call number in the target tag search box.
6. The AR-based intelligent reading method for library book introductions according to claim 5 is characterized in that: The method of using the CRNN network to identify the text content in the target tag search box includes: First, the convolutional layer is used to learn text features, and then the convolutional features are input into the bidirectional long short-term memory network to learn the sequence features of the text. Finally, the recognized text content is deduplicated through the transcription layer to output the final prediction result.
7. The method for intelligent reading of library book introductions based on AR according to claim 6, characterized in that: The method further comprises: Output a voice interaction signal to the user regarding whether to lock the current book, obtain the user's interactive voice, and determine whether to stop calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates based on the user's interactive voice and write the target book introduction of the current video frame image into the subsequent frame image.
8. The method for intelligent reading of library book introductions based on AR according to claim 7, characterized in that: The method further comprises: If the result of obtaining the user's interactive voice is "yes", stop calculating the Euclidean distance between the pixel coordinates of the center point of each tag search box and the preset pixel coordinates, and write the target book introduction of the current video frame image into the subsequent frame image; If the result of acquiring the user's interactive voice is "No", calculate the Euclidean distance between the pixel coordinates of the center point of each label search box and the preset pixel coordinates, and record the label search box corresponding to the minimum value of the Euclidean distance as the target label search box; identify the call number in the target label search box, obtain the target call number corresponding to the target label search box, call the target book introduction corresponding to the call number in the book database according to the target call number, and write the target book introduction into the preset position in the current frame image.
9. An AR-based intelligent reading system for library book introductions, characterized in that: include: An acquisition module, including an AR camera on a head-mounted AR device, is used to capture a current frame image of a target area; A control module is used to process the current frame image, extract the boundaries of the book call tags of all books in the current frame image, obtain the pixel coordinates of the upper left corner and the lower right corner of each boundary, and establish a label search box of the book call tag of each book according to the pixel coordinates of the upper left corner and the lower right corner of each boundary; or to calculate the pixel coordinates of the center point of each label search box, calculate the Euclidean distance between the pixel coordinates of the center point of each label search box and the preset pixel coordinates, and record the label search box corresponding to the minimum value of the Euclidean distance as the target label search box; Or it is used to identify the call number in the target label search box, obtain the target call number corresponding to the target label search box, call the target book introduction corresponding to the call number in the book database according to the target call number, and write the target book introduction to a preset position in the current frame image.
10. An electronic device, characterized in that: include: Memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the AR-based intelligent reading method for library book introductions according to any one of claims 1 to 8 is implemented.
