Data retrieval analysis method for hospital library
Through intelligent mobile devices and data retrieval and analysis methods, the automated borrowing and return of books in hospital libraries is realized, and the time-consuming and labor-intensive process of borrowing and returning books for patients with mobility difficulties is solved, and service efficiency and user experience are improved.
Patent Information
- Application Number
- CN202510070050.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-04-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the hospital library, hospitalized patients with mobility difficulties need to go to the library in person when borrowing and returning books, which makes the process time-consuming and labor-intensive and affects recovery.
Using intelligent mobile devices and data retrieval and analysis methods, we realize the automated borrowing and return of books. Through user book appointment application and real-time positioning, smart mobile devices can automatically navigate to the user's location for book delivery, and evaluate the degree of book damage by detecting images when the user applies for return.
It improves the borrowing efficiency of hospital libraries, reduces user operation steps and time, and provides more convenient and efficient book services, especially for patients with mobility difficulties, which greatly reduces their burden.
Smart Images

Figure CN119879940A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to data retrieval technology, and in particular to a data retrieval and analysis method for hospital libraries. Background Art
[0002] With the continuous advancement of medical technology and the improvement of hospital management level, the service quality and efficiency of hospital libraries, as important places for hospital knowledge dissemination and academic research, are increasingly receiving attention.
[0003] In the prior art, books are often placed in corresponding positions first, and then a unique RFID tag is assigned to each book. The RFID tag is a wireless communication technology tag, which is usually attached to a page of a book, such as the inside cover or the spine, for uniquely identifying and tracking the book, and the RFID tag corresponding to each book can be bound to the placement position of the book, that is, the shelf number, shelf label and other information of the book are recorded. By associating the book number with the RFID tag of the book, when a user needs to borrow a book, the corresponding RFID tag can be obtained by the book number, and the location of the book can be quickly obtained through the RFID tag, and the location range of the book can be obtained. By providing path guidance for the location range of the book, people can be quickly brought to the location range of the required book. However, the above method ignores a key problem: a large proportion of the borrowing group of hospital libraries are inpatients with limited mobility. For these patients, although RFID technology can quickly locate the location of books, they still need to go to the library cashier counter in person to handle the borrowing procedures, and they also need to personally return the books to the library when returning them. This process is not only time-consuming and laborious, but may also bring unnecessary troubles and burdens to the patient's rehabilitation.
[0004] Therefore, how to provide more convenient and efficient book borrowing services to users in hospitals has become an urgent problem to be solved. Summary of the invention
[0005] The present invention provides a data retrieval and analysis method for a hospital library, which can provide more convenient and efficient book borrowing services for users in the hospital.
[0006] A first aspect of the present invention provides a data retrieval and analysis method for a hospital library, characterized by comprising: In response to a book reservation application from a first user terminal, determining a search term of the first user terminal, and searching a first mobile device corresponding to the search term according to a search system; Generate a real-time positioning node of the first user terminal, and update the real-time moving path of the first mobile device based on the real-time positioning node; receiving a target determination request of the first mobile device based on the real-time moving path, acquiring a set of images taken by the first mobile device, controlling the first mobile device to go to a target location according to the set of images, and determining book borrowing information corresponding to the first user terminal; In response to a book return application from a second user terminal based on a second mobile device, a borrowed book corresponding to the second user terminal is searched for according to a retrieval system, and book use information of the borrowed book is determined based on a detection image of the second mobile device.
[0007] Optionally, in a possible implementation manner of the first aspect, generating a real-time positioning node of the first user terminal, and updating a real-time moving path of the first mobile device based on the real-time positioning node includes: Acquire multiple historical positioning nodes, and arrange the historical positioning nodes in chronological order according to the reservation time of each historical positioning node to obtain a node sequence; Determine the ward location of the first user terminal, generate a real-time positioning node corresponding to the ward location, determine a historical positioning node corresponding to the real-time positioning node as a joint positioning node, and update the location sequence number of the first user terminal to the joint positioning node; If the joint positioning node does not exist, obtaining the ward distance between the real-time positioning node and the ward positions corresponding to each historical positioning node; Determine a historical positioning node whose ward spacing is less than a spacing threshold as a target positioning node, insert the real-time positioning node after the target positioning node in the node sequence, and if there is no target positioning node, insert the real-time positioning node to the end of the node sequence; The arrangement sequence number of each ward location is determined according to the node sequence, and a real-time moving path passing through each ward location in sequence is generated based on the arrangement sequence number.
[0008] Optionally, in a possible implementation manner of the first aspect, receiving a target determination request based on a real-time moving path by the first mobile device, acquiring an image set taken by the first mobile device, controlling the first mobile device to move to a target location according to the image set, and determining book borrowing information corresponding to the first user terminal includes: In response to a target determination request of the first mobile device for a corresponding real-time positioning node in the real-time moving path, obtaining a ward map photographed by the first mobile device from the front, and determining a position arrangement attribute corresponding to the ward map, wherein the position arrangement attribute includes a single arrangement attribute and a double arrangement attribute; Extract multiple nursing equipment contours in the ward map, determine the center point of each nursing equipment contour as a positioning point, generate a first positioning line that passes through each positioning point and is parallel to each other according to a single arrangement attribute, or connect the positioning points arranged oppositely according to a double arrangement attribute to obtain multiple second positioning lines; Determine a guide point located on the first positioning line or the second positioning line, connect each of the guide points to obtain a guide line, control the first mobile device to move to the nursing positions corresponding to each nursing device in sequence based on the guide line, and determine the nursing sequence number corresponding to each nursing position according to the equipment map taken at the nursing position, wherein the image set includes a ward map and an equipment map; Determine the care number corresponding to the position number of the first user terminal as the target number, determine the care position corresponding to the target number as the target position, stop the movement of the first mobile device when the first mobile device moves to the target position, and determine the book borrowing information corresponding to the first user terminal.
[0009] Optionally, in a possible implementation manner of the first aspect, a ward map photographed by the first mobile device from the front is obtained, and a position arrangement attribute corresponding to the ward map is determined, where the position arrangement attribute includes a single arrangement attribute and a double arrangement attribute, including: Taking the center point of each nursing equipment outline in the ward map as a reference point, determining the center points of other nursing equipment outlines within a preset range as matching points corresponding to the reference point; Connecting the reference point and each of the matching points to obtain a determination line, and when the number of the determination lines is equal to 1, determining that the ward map corresponds to the single arrangement attribute; When the number of the determination lines is greater than 1, the angle of each determination line is obtained. If the angle is greater than or equal to the preset angle, it is determined that the ward map corresponds to the double arrangement attribute, and the nursing equipment contours in the ward map with an angle less than the preset angle are determined to be the same equipment arrangement group.
[0010] Optionally, in a possible implementation of the first aspect, generating a first positioning line passing through each positioning point and being parallel to each other according to the single arrangement attribute, or connecting the positioning points arranged oppositely according to the double arrangement attribute to obtain a plurality of second positioning lines, includes: Connect the adjacent positioning points based on the single arrangement attribute to obtain an auxiliary line, and generate a first positioning line that is perpendicular to the auxiliary line and passes through the positioning points; or, Connecting the farthest positioning points in each device arrangement group according to the double arrangement attribute to obtain an arrangement direction, and numbering each positioning point based on the arrangement direction to obtain an arrangement sequence number of each positioning point; The positional relationship of the positioning points with the same arrangement number is determined to be an opposite arrangement, and the positioning points in the opposite arrangement are connected to obtain a second positioning line.
[0011] Optionally, in a possible implementation of the first aspect, determining a guide point located on the first positioning line or the second positioning line, connecting the guide points to obtain a guide line, controlling the first mobile device to move to a nursing position corresponding to each nursing device in sequence based on the guide line, and determining a nursing sequence number corresponding to each nursing position according to a device image taken at the nursing position, includes: Obtaining the intersection of each of the first positioning lines and the outer contour of the corresponding nursing device contour, determining a position point on the first positioning line at a preset distance from the outer contour intersection point as a guide point, wherein the guide point is not located at the nursing device contour, or determining the center point of each of the second positioning lines as a guide point; Connecting adjacent guiding points in sequence to obtain guiding lines, determining guiding distances between adjacent guiding points, and converting the guiding distances to obtain actual moving distances; Controlling the first mobile device to move the actual moving distance to the corresponding nursing position in sequence based on the guide line, and adjusting the shooting angle of the first mobile device based on a preset rotation direction and a preset rotation angle to obtain a device image shot by the first mobile device; Obtain the serial number identification in the equipment diagram, and determine that the number corresponding to the serial number identification is the nursing serial number corresponding to the nursing position.
[0012] Optionally, in a possible implementation manner of the first aspect, adjusting a shooting angle of the first mobile device based on a preset rotation direction and a preset rotation angle to obtain a device image shot by the first mobile device includes: The shooting angle of the first mobile device is adjusted in sequence according to the preset rotation direction and the preset rotation angle to obtain a device map, and the angle adjustment is suspended when a sequence number mark appears in the device map; If the nursing position corresponds to a single nursing device, completing the image capture of the first mobile device at the corresponding nursing position, and continuing to control the first mobile device to move to the next nursing position; If the nursing position corresponds to multiple nursing devices, continue to adjust the shooting angle of the first mobile device according to the preset rotation direction and the preset rotation angle, and count the number of numbers corresponding to the serial number identifier; When the number of numbers is equal to the number of devices corresponding to the corresponding nursing position, the image capture of the first mobile device at the corresponding nursing position is completed, and the first mobile device is continuously controlled to move to the next nursing position.
[0013] Optionally, in a possible implementation of the first aspect, responding to a book return application from a second user terminal based on a second mobile device, searching for a borrowed book corresponding to the second user terminal according to a retrieval system, and determining book usage information of the borrowed book based on a detection image of the second mobile device includes: Determine the total number of pages of the borrowed book, obtain the number of pages per unit interval according to the ratio of the total number of pages to the preset number of intervals, and divide the total number of pages based on the number of pages per unit interval to obtain a plurality of page number intervals; Randomly selecting a preset number of pages from each of the page number intervals as target pages, sending the target pages to the second user terminal, and obtaining a detection image of each target page taken by the second mobile device; Determine the page type of the target number of pages, the page type includes a text type and an image type, replace the page background corresponding to the detection image of the text type, and determine the first damage degree of the target number of pages according to the number of abnormal pixels in the detection image; Extract the current feature profile in the detection image of the image type, determine the second damage degree of the target page number based on the comparison result of the standard feature profile corresponding to the corresponding target page number and the current feature profile, and determine the book usage information of the borrowed book based on the first damage degree and / or the second damage degree.
[0014] Optionally, in a possible implementation manner of the first aspect, replacing the page background corresponding to the detection image of the text type, and determining the first damage degree of the target page number according to the number of abnormal pixels in the detection image, includes: Obtaining a text outline in a detection image of the text type, and replacing a pixel value of the text outline with a background pixel value; Pixel points whose pixel values are not within the background pixel value interval are determined to be abnormal pixels, the number of abnormalities of the abnormal pixels is counted, and a first damage degree is obtained according to a ratio of the number of abnormalities to a benchmark number of abnormalities.
[0015] Optionally, in a possible implementation manner of the first aspect, extracting a current feature profile in the detection image of the image type, and determining a second degree of damage of the target number of pages according to a comparison result of a standard feature profile corresponding to the corresponding target number of pages and the current feature profile, includes: A similarity comparison is performed between the standard feature profile and the current feature profile to obtain a profile similarity value, and a second damage degree is obtained according to a ratio of the reference similarity value to the profile similarity value.
[0016] A second aspect of the present invention provides a data retrieval and analysis system for a hospital library, comprising: A response module, used to respond to the book reservation application of the first user terminal, determine the search item of the first user terminal, and search for the first mobile device corresponding to the search item according to the search system; A generating module, configured to generate a real-time positioning node of the first user terminal, and update the real-time moving path of the first mobile device based on the real-time positioning node; A receiving module, configured to receive a target determination request from the first mobile device based on a real-time moving path, obtain a set of images taken by the first mobile device, control the first mobile device to go to a target location according to the set of images, and determine book borrowing information corresponding to the first user terminal; The search module is used to respond to the book return application of the second user terminal based on the second mobile device, search for the borrowed books corresponding to the second user terminal according to the retrieval system, and determine the book use information of the borrowed books based on the detection image of the second mobile device.
[0017] The beneficial effects of the present invention are as follows: 1. The present invention can realize the automatic borrowing of books in the hospital library through multiple smart mobile devices carrying different types of books, thereby improving the borrowing efficiency. Specifically, the corresponding smart mobile devices can be determined in combination with the needs of users in the hospital, and the books can be automatically delivered to the user's location through the corresponding smart mobile devices, thereby providing users in the hospital with efficient and convenient book borrowing services.
[0018] 2. When the present invention delivers borrowed books through the first mobile device, the real-time moving path of the first mobile device during the delivery process can be generated in combination with the ward location corresponding to each user, which can ensure that the first mobile device delivers books according to the optimal path and improve the delivery efficiency.
[0019] 3. The present invention can dynamically adjust the real-time moving path of the first mobile device according to the real-time location of the current user and the historical reservation information of other users to whom books have not been delivered, thereby reducing unnecessary round-trip time of the first mobile device, thereby ensuring that books can be efficiently and orderly delivered to various users.
[0020] 4. The present invention can control the first mobile device to capture a ward map corresponding to the corresponding ward location, and analyze the arrangement and specific locations of the beds therein, so as to more accurately determine the specific bed location of the user, thereby ensuring that the books can be delivered to the user accurately.
[0021] 5. When a user applies to return a borrowed book, the present invention can randomly select a target number of pages from the borrowed book for image capture to obtain a corresponding detection image, and judge the degree of damage of the book based on the captured detection image, thereby ensuring that image data is obtained from different parts of the book, thereby being able to more comprehensively evaluate the damage of the book and obtain more accurate book usage information.
[0022] 6. The present invention can perform different methods of damage assessment on the detected image according to the page type of the target page number. For text type pages, the degree of damage can be assessed by replacing the page background and counting the number of abnormal pixels. For image type pages, the degree of damage can be assessed by extracting the current feature profile and comparing it with the standard feature profile. Through different methods of damage assessment, the actual usage of books can be more accurately reflected. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of a flow chart of a data retrieval and analysis method for a hospital library provided by an embodiment of the present invention; Figure 2 A schematic diagram of a first positioning line corresponding to a ward map with a single arrangement attribute provided by an embodiment of the present invention; Figure 3 A schematic diagram of a second positioning line corresponding to a ward map with double arrangement attributes provided by an embodiment of the present invention; Figure 4 A schematic diagram of the structure of a data retrieval and analysis system for a hospital library provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.
[0025] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0026] See also Figure 1 , is a flow chart of a data retrieval and analysis method for a hospital library provided by an embodiment of the present invention, Figure 1The execution subject of the method shown may be a software and / or hardware device. The execution subject of the present application may include but is not limited to at least one of the following: user equipment, network equipment, etc. Among them, user equipment may include but is not limited to computers, smart phones, personal digital assistants (PDA) and the electronic devices mentioned above. Network equipment may include but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers. This embodiment does not limit this. It includes steps S1 to S4, as follows: S1, responding to a book reservation application from a first user terminal, determining a search term of the first user terminal, and searching a first mobile device corresponding to the search term according to a search system.
[0027] Among them, the first user terminal refers to the terminal held by the user who borrows books, for example, it can be a mobile phone held by an inpatient in the hospital. The search item refers to the information entered by the user on the first user terminal when borrowing books, for example, it can be the book name, author name, etc. entered by the user on the mobile phone. The retrieval system refers to a system that can search for books borrowed by users. The retrieval system stores detailed information on all books available for borrowing in the hospital library and the smart mobile devices corresponding to each book. The first mobile device refers to a smart mobile device that can automatically navigate to a specified location and carry multiple books, for example, it can be a smart delivery robot. Different first mobile devices correspond to different types of books.
[0028] In actual applications, when users want to borrow or return books, they often need to go to the library in person to borrow or return books. For libraries in hospitals, since most of the borrowers are inpatients, this may be inconvenient. This solution can introduce intelligent mobile devices, such as intelligent delivery robots, to achieve automated borrowing of books and improve borrowing efficiency. In addition, multiple intelligent mobile devices carrying different types of books can be introduced, and the corresponding intelligent mobile devices can be determined based on the user's needs. The books can be automatically delivered to the user's location through the corresponding intelligent mobile devices, thereby providing users with efficient and convenient book borrowing services.
[0029] Specifically, when a user, such as an inpatient in a hospital, wants to borrow a book, he or she can use his or her smart terminal, such as a smart phone, to enter the corresponding borrowing system of the hospital library, i.e., the retrieval system, and initiate a book reservation application in the retrieval system. In the book reservation application, the user needs to enter some identity information, including the user's name, the ward where the user is located, the bed number, etc., as well as the information of the book the user wants to borrow, i.e., the search item. For example, the user can enter the name of the book they are interested in, or the author of the book on the mobile phone so that the borrowing system can accurately identify the book the user wants to borrow.
[0030] Since different smart mobile devices may correspond to different book types, there may be multiple smart mobile devices. After the retrieval system receives the user's book reservation application, it can search for matching books in the database and determine the corresponding book type through the search terms entered by the user, so that the smart mobile device corresponding to the target book desired by the user can be quickly located according to the book type, that is, the first mobile device.
[0031] S2: Generate a real-time positioning node for the first user terminal, and update the real-time moving path of the first mobile device based on the real-time positioning node.
[0032] The real-time positioning node refers to a location point corresponding to the ward where the first user terminal is located, and the real-time moving path refers to a moving path of the first mobile device during the real-time delivery of books.
[0033] After determining the first mobile device, the corresponding first mobile device can be dispatched to the ward where the user is located to deliver the corresponding books. However, in actual applications, the first mobile device may be responsible for the delivery of books to more than one user. In order to deliver books to each user in an orderly manner, the real-time moving path corresponding to the first mobile device can be generated in combination with the ward location corresponding to each user. In the process of delivering books by the first mobile device, new users may borrow books of the corresponding book type. At this time, the real-time moving path of the first mobile device can be updated in real time according to the ward location of the new user to ensure that all users can receive timely book delivery services.
[0034] Specifically, the ward location corresponding to the first user terminal can be obtained based on the book reservation information input by the user through the first user terminal. After obtaining the ward location corresponding to the first user terminal, a real-time positioning node corresponding to the ward location can be generated. The real-time moving path of the first mobile device can be updated in real time based on the real-time positioning node, and the borrowed books can continue to be delivered based on the updated real-time moving path.
[0035] Based on the above embodiment, the specific implementation of step S2 may be: S21, obtaining a plurality of historical positioning nodes, and arranging the historical positioning nodes in chronological order according to the reservation time of each historical positioning node to obtain a node sequence.
[0036] Among them, the historical positioning node refers to the positioning node corresponding to the ward location of other users who borrowed books before the current first user terminal. The books borrowed by the users corresponding to the historical positioning nodes have not yet been delivered. The reservation time refers to the time corresponding to the time when the users of the historical positioning nodes borrowed books. The node sequence refers to the sequence obtained by arranging each historical positioning node in chronological order.
[0037] Specifically, the positioning nodes corresponding to the ward locations of other users who have applied for borrowing books but have not yet been delivered before the current first user terminal initiates the borrowing request can be obtained, that is, the historical positioning nodes. Each historical positioning node has a corresponding reservation time, which marks the time point when other users complete the book borrowing reservation. When delivering books, the books can be delivered to the users corresponding to each historical node in chronological order. Therefore, the reservation times corresponding to each historical positioning node can be combined, and each historical positioning node can be arranged in chronological order to obtain a corresponding node sequence. Subsequently, the books can be delivered in sequence in combination with the node sequence.
[0038] S22, determine the ward location of the first user terminal, generate a real-time positioning node corresponding to the ward location, determine a historical positioning node corresponding to the real-time positioning node as a joint positioning node, and update the location serial number of the first user terminal to the joint positioning node.
[0039] Among them, the ward location refers to the location corresponding to the ward where the first user terminal is located, the real-time positioning node refers to the positioning node corresponding to the ward location, the joint positioning node refers to the positioning node corresponding to the ward location where there are multiple users borrowing books, and the location serial number refers to the serial number corresponding to the specific bed where the first user terminal is located.
[0040] Specifically, the location information corresponding to the ward where the first user terminal is located, that is, the ward location, can be obtained, and a positioning node corresponding to the ward location of the first user terminal, that is, a real-time positioning node, can be generated, and the real-time positioning node is compared with each historical positioning node in the node sequence. If there is a historical positioning node corresponding to the real-time positioning node, that is, there is a historical positioning node consistent with the ward location corresponding to the first user terminal, it can be considered that other users have borrowed books at the ward location corresponding to the historical positioning node. At this time, the corresponding historical positioning node can be determined as a joint positioning node. It can be considered that at the joint positioning node, there are multiple users borrowing books, and the books borrowed by multiple users can be delivered together, thereby improving efficiency.
[0041] After the joint positioning node is determined, the serial number corresponding to the bed where the first user terminal is located, that is, the location serial number, can be updated to the joint positioning node. At this time, the joint positioning node may correspond to serial numbers of multiple beds.
[0042] S23: If the joint positioning node does not exist, obtain the ward distance between the real-time positioning node and the ward positions corresponding to each historical positioning node.
[0043] Specifically, if there is no joint positioning node, it can be considered that no other user has reserved books for the ward location where the current first user terminal is located. At this time, the ward location corresponding to the real-time positioning node and the interval distance between the ward locations corresponding to each historical positioning node, that is, the ward distance, can be obtained. According to the ward distance, it can be determined which ward locations are suitable for joint delivery. If the ward distance is small, it can be considered that the two ward locations are very close to each other. After completing the book delivery of one ward, the first mobile device can go to another ward on the way, thereby reducing unnecessary round trips, improving efficiency, and performing joint delivery on the corresponding ward locations.
[0044] Among them, the ward spacing refers to the interval distance between the ward location corresponding to the real-time positioning node and the ward location corresponding to the historical positioning node.
[0045] S24, determining a historical positioning node whose ward spacing is less than a spacing threshold as a target positioning node, inserting the real-time positioning node after the target positioning node in the node sequence; if the target positioning node does not exist, inserting the real-time positioning node to the end of the node sequence.
[0046] Specifically, if the distance between wards is less than the distance threshold, it can be considered that the distance between the corresponding two ward locations is too close, the corresponding historical positioning node can be determined as the target positioning node, and the real-time positioning node can be inserted after the target positioning node in the node sequence, so that the books corresponding to the target positioning node and the real-time positioning node can be delivered together. If there is no target positioning node, it can be considered that there is no ward with a close distance, and the real-time positioning node can be inserted to the end of the node sequence.
[0047] In actual applications, the estimated delivery time corresponding to the first mobile device can be pre-configured for each ward location, and the estimated delivery time of the book can be displayed to the user based on the estimated delivery time. When configuring the estimated delivery time, the estimated time corresponding to each ward location can be configured in combination with the ward distance. The larger the ward distance, the longer the estimated time corresponding to the ward location can be. Since the ward location corresponding to the first user terminal may be close to the ward location of other users who have applied for borrowing books but have not yet been delivered, in this case, in order to reduce unnecessary round trips of the first mobile device and improve delivery efficiency, the books corresponding to wards that are closer can be delivered together. In order to deliver books to nearby wards together without affecting the subsequent book delivery plans of other users, a pre-configured offset duration can be added to the estimated duration corresponding to each ward location to obtain the estimated delivery duration corresponding to each ward location, and the pre-configured offset duration will be greater than or equal to the estimated duration corresponding to the nearby ward location. This ensures that for nearby wards, when delivering books, the first mobile device can reasonably plan its moving path after completing the delivery of books to one ward, and go to another nearby ward along the way, without affecting the subsequent planned delivery plan.
[0048] Among them, the spacing threshold refers to the distance threshold that can be used to determine whether the positions of two wards are too close. If the distance between wards is less than the spacing threshold, it can be considered that the positions of the corresponding two wards are too close. If the distance between wards is greater than the spacing threshold, it can be considered that the distance between the corresponding two wards is not close. The target positioning node refers to the historical positioning node whose distance between wards is less than the spacing threshold.
[0049] S25, determining the arrangement sequence number of each ward location according to the node sequence, and generating a real-time moving path that passes through each ward location in sequence based on the arrangement sequence number.
[0050] Specifically, after the final node sequence is obtained, the arrangement number corresponding to each ward position can be determined according to the node sequence, and the corresponding real-time moving path can be obtained by passing through each ward position in sequence according to the arrangement number.
[0051] Through the above implementation, it can be ensured that books can be delivered to each user efficiently and orderly.
[0052] S3, receiving a target determination request from the first mobile device based on the real-time moving path, obtaining a set of images taken by the first mobile device, controlling the first mobile device to go to a target location according to the set of images, and determining book borrowing information corresponding to the first user terminal.
[0053] Among them, the target determination request refers to a request for the first mobile device to determine the corresponding first user terminal at the ward location, the image set refers to a set of multiple images obtained by the first mobile device taking images at the corresponding ward location, the target location refers to the specific location of the corresponding bed of the first user terminal in the corresponding ward, and the book borrowing information refers to the relevant information of the book that the user wants to borrow input by the first user terminal. The first mobile device corresponding to the borrowed book can be recorded in the book borrowing information to facilitate the subsequent classification and organization of the books.
[0054] After obtaining the real-time moving path, since there may be multiple users applying to borrow books on the real-time moving path, the ward location corresponding to each user may be different. When the first mobile device reaches the corresponding ward location along the real-time moving path, it is necessary to determine the first user terminal corresponding to the current ward location in order to accurately deliver the corresponding books to the corresponding user. Therefore, when the first mobile device arrives at the ward location, it can send information to determine the specific position of the user in the ward, that is, target determination information. After receiving the target determination information sent by the first mobile device, in order to accurately determine the specific bed position corresponding to the first user terminal in the corresponding ward, the corresponding shooting point can be pre-configured for each ward position, and the first mobile device can be controlled to perform image acquisition at the pre-configured shooting point to obtain image data corresponding to the ward position. According to the image data, the specific bed information corresponding to the first user terminal can be determined.
[0055] Specifically, when the first mobile device moves along the real-time moving path, the real-time position distance between the real-time position corresponding to the first mobile device and the positions of each ward in the real-time moving path can be obtained in real time. When the real-time position distance between the first mobile device and the ward position is less than the distance threshold, it can be considered that the first mobile device is very close to the corresponding ward at this time. At this time, the first mobile device can send a corresponding target determination request. After receiving the target determination request, the first mobile device can be controlled to capture images at the shooting point corresponding to the corresponding ward position to obtain a corresponding image set. By parsing each image in the image set, the specific bed position of the first user terminal in the corresponding ward can be determined, that is, the target position corresponding to the first user terminal can be determined, and the first mobile device can be controlled to go to the target position. In addition, the book borrowing information input by the user through the first user terminal can be determined, and the corresponding books can be delivered to the corresponding users.
[0056] In some embodiments, step S3 includes S31 to S34, which are specifically as follows: S31, in response to the target determination request of the first mobile device for the corresponding real-time positioning node in the real-time mobile path, obtain the ward map taken by the front of the first mobile device, and determine the position arrangement attributes corresponding to the ward map, wherein the position arrangement attributes include single arrangement attributes and double arrangement attributes.
[0057] Among them, the ward map refers to a panoramic image obtained by taking a frontal shot of the corresponding ward by the first mobile device at the ward position, the position arrangement attribute refers to the attribute corresponding to the arrangement method of the beds in the ward, the single arrangement attribute means that the beds in the ward are arranged in a single mode, for example, all the beds are arranged along one side of the ward, and the double arrangement attribute means that the beds are arranged in two rows, and there is a corresponding passage between the two rows of beds.
[0058] Specifically, when the first mobile device delivers books along the real-time moving path, when it arrives at the corresponding real-time positioning node, it can send a corresponding target determination request. After responding to the target determination request of the first mobile device, the first mobile device can be controlled to go to the shooting point corresponding to the ward position corresponding to the real-time positioning node, and take a frontal shot of the scene in the ward to obtain a corresponding panoramic image, i.e., the ward map. The layout of the beds in the ward can be determined through the ward map, and the corresponding position arrangement attribute can be determined according to the arrangement of the beds in the ward map. If all the beds in the ward map are arranged along one side of the ward, it can be determined that the corresponding position arrangement attribute is a single arrangement attribute. If the beds in the ward map are arranged in two rows, it can be considered that the corresponding position arrangement attribute is a double arrangement attribute.
[0059] In some embodiments, the step S31 of "obtaining a ward map photographed from the front of the first mobile device, and determining a position arrangement attribute corresponding to the ward map, wherein the position arrangement attribute includes a single arrangement attribute and a double arrangement attribute" includes the following steps: S311, taking the center point of each nursing equipment outline in the ward map as a reference point, determining the center points of other nursing equipment outlines within a preset range as matching points corresponding to the reference point.
[0060] Specifically, when determining the position arrangement attributes corresponding to the ward map, the center point of each nursing equipment outline in the ward map can be determined as a reference point, the corresponding preset range can be pre-configured, and the center points of other nursing equipment outlines can be traversed within the preset range around the reference point, and the center points of other nursing equipment outlines that have been traversed can be determined as matching points corresponding to the reference point.
[0061] The reference point refers to the center point of the contours of each nursing device in the ward map, and the matching point refers to the center point of the contours of other nursing devices within a preset range around the reference point.
[0062] S312, connecting the reference point and each of the matching points to obtain a determination line, and when the number of the determination lines is equal to 1, determining that the ward map corresponds to the single arrangement attribute.
[0063] Specifically, by connecting the reference point and each matching point, the corresponding determination line can be obtained. If the number of determination lines is 1, it can be considered that there is no nursing equipment arranged opposite to the nursing equipment contour corresponding to the reference point, and it can be determined that the position arrangement attribute corresponding to the ward map is a single arrangement attribute. The determination line refers to a line that can judge the position arrangement attribute of the ward map.
[0064] S313, when the number of the determination lines is greater than 1, obtain the angle of each of the determination lines, if the angle is greater than or equal to the preset angle, determine that the ward map corresponds to the double arrangement attribute, and determine that the nursing equipment contours in the ward map with an angle less than the preset angle are the same group of equipment arrangement groups.
[0065] Specifically, if the number of determination lines in the ward map is greater than 1, the angle between each determination line can be obtained. If there is an angle greater than a pre-configured preset angle, for example, 60°, it can be considered that the corresponding nursing equipment is arranged in two rows, and the position arrangement attribute corresponding to the ward map can be considered to be a double arrangement attribute. The nursing equipment contours with an angle less than the preset angle can be considered to be arranged in parallel, and the corresponding nursing equipment contours can be determined as the same equipment arrangement group.
[0066] S32, extract multiple nursing equipment contours in the ward map, determine the center point of each nursing equipment contour as a positioning point, generate a first positioning line that passes through each positioning point and is parallel to each other according to a single arrangement attribute, or connect the oppositely arranged positioning points according to a double arrangement attribute to obtain multiple second positioning lines.
[0067] Specifically, after obtaining the ward map, contour extraction technology such as edge detection algorithm can be used to extract multiple bed corresponding contours, that is, nursing equipment contours, from the ward map, and the center point of each nursing equipment contour is determined as the positioning point. If the position arrangement attribute corresponding to the ward map is a single arrangement attribute, then a first positioning line that passes through each positioning point and is parallel to each other can be generated. If the position arrangement attribute corresponding to the ward map is a double arrangement attribute, then the positioning points corresponding to two oppositely arranged nursing equipment contours can be connected to obtain multiple second positioning lines.
[0068] Among them, the nursing equipment outline refers to the outline corresponding to each bed in the ward map, the positioning point refers to the center point of the nursing equipment outline, the first positioning line refers to the line for locating the specific position of the bed with a single arrangement attribute, the opposite arrangement refers to the arrangement of two beds opposite to each other under the double arrangement attribute, and the second positioning line refers to the line that can be used to locate the specific position of the bed with a double arrangement attribute.
[0069] In some embodiments, the step S32 of "generating a first positioning line passing through each positioning point and being parallel to each other according to the single arrangement attribute, or connecting the positioning points arranged oppositely according to the double arrangement attribute to obtain a plurality of second positioning lines" includes the following steps: S321, connecting the adjacent positioning points based on the single arrangement attribute to obtain auxiliary lines, and generating a first positioning line that is perpendicular to the auxiliary lines and passes through the positioning points.
[0070] Specifically, if the position arrangement attribute corresponding to the ward map is a single arrangement attribute, adjacent positioning lines can be connected to obtain corresponding auxiliary lines, and a straight line perpendicular to the auxiliary lines and passing through the corresponding positioning points can be generated, and the straight line can be determined as the first positioning line.
[0071] See also Figure 2 , which is a schematic diagram of a first positioning line corresponding to a ward map with a single arrangement attribute provided by an embodiment of the present invention, such as Figure 2 As shown in , adjacent positioning points and positioning points can be connected to obtain multiple auxiliary lines, straight lines passing through each positioning point and perpendicular to the corresponding auxiliary lines can be generated, and the corresponding straight lines can be determined as the first positioning line.
[0072] The auxiliary line refers to a line segment that can be used to assist in generating the first positioning line.
[0073] S322, or, according to the dual arrangement attribute, connecting the farthest positioning points in each device arrangement group to obtain an arrangement direction, and numbering each positioning point based on the arrangement direction to obtain an arrangement sequence number of each positioning point.
[0074] Specifically, if the position arrangement attribute corresponding to the ward map is a double arrangement attribute, the two farthest positioning points in each equipment arrangement group can be obtained respectively, and one of the positioning points can be set as the starting point and the other positioning point can be set as the end point, and the direction from the starting point to the end point is determined as the arrangement direction. When determining the arrangement direction, in order to ensure that when the positioning points in the equipment arrangement group are numbered, they can be numbered in the same direction, so that the positioning points in relative positions in different equipment arrangement groups can be in an opposing positional relationship, it is necessary to make the positioning points closest to different equipment arrangement groups both the starting point and the end point at the same time. For example, see Figure 3 , which is a schematic diagram of a second positioning line corresponding to the ward map with double arrangement attributes provided by an embodiment of the present invention, such as Figure 3 As shown in the figure, the three nursing equipment outlines on the left constitute equipment arrangement group 1, and the three nursing equipment outlines on the right constitute equipment arrangement group 2. If the starting point of equipment arrangement group 1 is positioning point A, then the starting point in equipment arrangement group 2 should be positioning point A' which is closest to positioning point A. If the end point of equipment arrangement group 1 is positioning point B, then the end point in equipment arrangement group 2 should be positioning point B' which is closest to positioning point B.
[0075] After obtaining the arrangement direction, each positioning point can be numbered according to the arrangement direction to obtain the arrangement sequence number corresponding to each positioning point. The arrangement direction refers to the arrangement direction of each nursing equipment in the ward map, and the arrangement sequence number refers to the sequence number corresponding to each positioning point in the arrangement direction.
[0076] S323, determining that the positional relationship of the positioning points with the same arrangement number is an opposite arrangement, and connecting the oppositely arranged positioning points to obtain a second positioning line.
[0077] Specifically, it can be determined that the position relationship of the positioning points with the same arrangement number is an opposite arrangement, and the corresponding second positioning line can be obtained by connecting the two oppositely arranged positioning points, such as Figure 3 As shown in , by numbering each positioning point in the arrangement direction, the arrangement serial number corresponding to each positioning point can be obtained, and the positional relationship corresponding to the positioning points with the same arrangement serial number can be determined as an opposite arrangement. By connecting the two oppositely arranged positioning points in sequence, the corresponding second positioning line can be obtained.
[0078] S33, determine the guide points located on the first positioning line or the second positioning line, connect each of the guide points to obtain a guide line, control the first mobile device to move to the nursing positions corresponding to each nursing device in sequence based on the guide line, and determine the nursing sequence number corresponding to each nursing position according to the equipment map taken at the nursing position, and the image set includes a ward map and an equipment map.
[0079] Specifically, after obtaining the first positioning line or the second positioning line, a point that can guide the stopping position of the first mobile device, i.e., a guide point, can be determined on each first positioning line or the second positioning line. Each guide point has a corresponding nursing device. The corresponding guide line can be obtained by connecting each guide point. After obtaining the guide line, the first mobile device can be controlled to move along the guide line to the guide point corresponding to each nursing device in sequence, i.e., the nursing position. The first mobile device can be controlled to capture an image of each nursing device at the nursing position to obtain a corresponding equipment map. According to the equipment map, the serial number corresponding to each nursing device, i.e., the nursing serial number, can be determined.
[0080] Among them, the guide point refers to a point located on the first positioning line or the second positioning line, which can guide the first mobile device to the location of the corresponding nursing equipment. The guide line refers to the line obtained by connecting multiple guide points. The nursing equipment refers to each bed in the ward. The nursing position refers to the corresponding position of each nursing equipment in the ward. The equipment map refers to the image obtained by taking pictures of each nursing equipment. The nursing serial number refers to the serial number corresponding to each nursing equipment.
[0081] In some embodiments, the specific implementation of step S33 may be: S331, obtaining the intersection of each of the first positioning lines and the outer contour of the corresponding nursing device contour, determining the position point on the first positioning line at a preset distance from the outer contour intersection as a guide point, and the guide point is not located at the nursing device contour, or determining the center point of each of the second positioning lines as a guide point.
[0082] Specifically, when determining the guide point, for the guide point on the first positioning line, the intersection point between each first positioning line and the corresponding nursing device contour, that is, the outer contour intersection point, can be obtained. On each first positioning line, the position point at a preset distance from the corresponding outer contour intersection point can be determined, and the corresponding position point is determined as the corresponding guide point, and the determined guide point is not located on the nursing device contour. For the guide point on the second positioning line, the center point of each second positioning line can be determined as the guide point.
[0083] The outer contour intersection point refers to the intersection point of the first positioning line and the contour of the nursing device, and the preset distance refers to a pre-configured distance for determining the guide point.
[0084] S332, sequentially connecting adjacent guiding points to obtain guiding lines, determining guiding distances between adjacent guiding points, and converting the guiding distances to obtain actual moving distances.
[0085] Specifically, by connecting each guide point in sequence, a corresponding guide line can be obtained, and the interval distance between adjacent guide points, that is, the guide spacing, can be obtained. Since the guide spacing is the distance in the image, and the first mobile device needs to move in reality, the conversion ratio between the distance in the image and the actual distance can be obtained. In this solution, the shooting posture of the first mobile device can be determined, so the conversion ratio can also be obtained. According to the conversion ratio, the actual moving distance corresponding to each guide spacing can be obtained.
[0086] The guide spacing refers to the interval between adjacent guide points in the ward map, and the actual moving distance refers to the actual distance corresponding to the guide spacing.
[0087] S333, controlling the first mobile device to move the actual moving distance to the corresponding nursing position in sequence based on the guide line, and adjusting the shooting angle of the first mobile device based on the preset rotation direction and the preset rotation angle to obtain the device image taken by the first mobile device.
[0088] Specifically, the first mobile device is controlled to move along the guide line in sequence for the corresponding actual moving distance, so as to reach the corresponding nursing position. In order to obtain the nursing serial number of the corresponding nursing device at the nursing position, the corresponding rotation direction and the corresponding rotation angle can be pre-configured. For example, the preset rotation direction can be clockwise, and the preset rotation angle can be 90°. The shooting angle of the first mobile device at the corresponding nursing position is adjusted according to the preset rotation direction and the preset rotation angle. Each time the adjustment is made, the first mobile device is controlled to perform corresponding image capture, so as to obtain the corresponding equipment image, and the nursing serial number corresponding to the nursing device is extracted according to the captured equipment image.
[0089] Among them, the preset rotation direction refers to the preset direction in which the first mobile device needs to rotate, the preset rotation angle refers to the specific angle that the first mobile device needs to rotate under the corresponding preset rotation direction, for example, it can be 90°, and the shooting angle refers to the angle of the first mobile device when shooting the nursing device.
[0090] In some embodiments, the step S333 of “adjusting the shooting angle of the first mobile device based on the preset rotation direction and the preset rotation angle to obtain the device image shot by the first mobile device” includes the following steps: S3331, adjusting the shooting angle of the first mobile device in sequence according to a preset rotation direction and a preset rotation angle to obtain a device map, and suspending the angle adjustment when a serial number mark appears in the device map.
[0091] For example, when the preset rotation direction is clockwise and the preset rotation angle is 90°, the first mobile device is controlled to rotate 90° in a clockwise direction to obtain the current corresponding shooting angle. At the current shooting angle, the nursing device is imaged to obtain the corresponding device diagram. If there is a serial number mark in the device diagram, the adjustment of the shooting angle of the first mobile device can be temporarily stopped. If there is no serial number mark in the device diagram, at the current shooting angle, the device is rotated 90 degrees clockwise again to obtain the corresponding shooting angle. At the shooting angle, the nursing device is imaged to obtain the corresponding device diagram. It is then determined again whether there is a serial number mark in the device diagram. If so, the angle adjustment is temporarily stopped. If not, the shooting angle of the first mobile device continues to be adjusted accordingly according to the preset rotation direction and the preset rotation angle.
[0092] S3332: If the nursing position corresponds to a single nursing device, the image capture of the first mobile device at the corresponding nursing position is completed, and the first mobile device is continuously controlled to move to the next nursing position.
[0093] Specifically, if the nursing position corresponds to a nursing device, after the first mobile device completes image capture at the corresponding nursing position, if there is a corresponding serial number identifier in the acquired equipment image, the first mobile device can be controlled to continue along the guide line to the next nursing position for corresponding image capture.
[0094] S3333: If the nursing position corresponds to multiple nursing devices, continue to adjust the shooting angle of the first mobile device according to the preset rotation direction and the preset rotation angle, and count the number of numbers corresponding to the serial number identifier.
[0095] Specifically, if the nursing position corresponds to multiple nursing devices, then after the first mobile device completes an image capture at the corresponding nursing position, the shooting angle of the first mobile device is adjusted accordingly according to the preset rotation direction and the preset rotation angle, and then the image is captured, and the number of numbers corresponding to the serial number identification obtained from the equipment diagram, that is, the number of numbers, is counted in real time.
[0096] The number of numbers refers to the number of numbers corresponding to the serial number identifiers obtained from the device diagram.
[0097] S3334, when the number is equal to the number of devices corresponding to the corresponding nursing position, the image capture of the first mobile device at the corresponding nursing position is completed, and the first mobile device continues to be controlled to move to the next nursing position.
[0098] Specifically, when the number is equal to the number of nursing devices corresponding to the nursing position, it can be considered that the first mobile device has completed image capture at the corresponding nursing position. At this time, the first mobile device can continue to be controlled along the guide line to continue to the next nursing position for corresponding image capture.
[0099] S334, obtaining the serial number identification in the equipment diagram, and determining that the number corresponding to the serial number identification is the nursing serial number corresponding to the nursing position.
[0100] Specifically, after obtaining the equipment diagram, the identification corresponding to the nursing equipment in the equipment diagram is extracted to obtain the corresponding serial identification, and the number corresponding to the serial identification can be determined as the nursing serial number corresponding to the nursing position. The serial identification refers to an identification that can be used by the user to identify the nursing serial number, such as a round red sign with a number.
[0101] S34, determining the care number corresponding to the location number of the first user terminal as the target number, determining the care position corresponding to the target number as the target position, stopping the movement of the first mobile device when the first mobile device moves to the target position, and determining the book borrowing information corresponding to the first user terminal.
[0102] Specifically, after obtaining the nursing numbers corresponding to each nursing position, each nursing number can be compared with the location number corresponding to the bed where the first user terminal is located. When the nursing number corresponds to the location number, the corresponding nursing number can be determined as the target number, and the nursing position corresponding to the target number can be determined as the target position. When the first mobile device moves to the target position, the movement of the first mobile device can be stopped. At this time, the book borrowing information input by the user through the first user terminal can be determined. After determining the book borrowing information input by the first user terminal, the corresponding book can be delivered to the user.
[0103] Among them, the target serial number refers to the nursing serial number corresponding to the position serial number of the first user terminal, and the target position refers to the nursing position corresponding to the target serial number.
[0104] Through the above implementation, the specific bed location of the user can be accurately determined, thereby ensuring that the books can be delivered to the user accurately.
[0105] S4, responding to the book return application of the second user terminal based on the second mobile device, searching for the borrowed books corresponding to the second user terminal according to the retrieval system, and determining the book use information of the borrowed books based on the detection image of the second mobile device.
[0106] Among them, the second user terminal refers to the terminal held by the user who returns the book, the second mobile device refers to the smart mobile device that receives the book returned by the second user terminal, for example, it can be a smart mobile device that is closer to the second user terminal, the book return application refers to the user's application to return the book, the borrowed book refers to the book borrowed by the user, the detection image refers to the image obtained by the second mobile device through image capture of the borrowed book, and the book usage information refers to the information corresponding to the usage of the borrowed book.
[0107] When the user finishes reading and wants to return the book, a book return request, i.e., a book return application, can be submitted to the lending system through the second user terminal. In the book return application, the user can enter the ward information corresponding to the second user terminal, such as the ward location information, and the relevant information of the book to be returned, such as the name of the book. After receiving the book return application issued by the second user terminal, the book corresponding to the second user terminal, i.e., the borrowed book, can be searched in the retrieval system according to the relevant information of the book to be returned input by the user, and the location information corresponding to the second user terminal can be obtained according to the ward information input by the user. According to the location information corresponding to the second user terminal, the user is matched with a corresponding smart mobile device, i.e., the second mobile device, which can be, for example, a smart mobile device that is close to the user. When the second mobile device goes to the position corresponding to the second user terminal, the user can place the book to be returned at a designated position on the second mobile device, so that the second mobile device can take a corresponding image of the book to be returned by the user, and judge whether the book is damaged according to the captured image.
[0108] Specifically, after the second mobile device moves to the location of the user who wants to return the book, it can provide corresponding return instructions to the user, and the user can perform corresponding operations on the returned books according to the corresponding return instructions. For example, the second mobile device can instruct the user to open the book to a specified page. After the user opens the book to the specified page, the second mobile device can capture an image of the specified page to obtain a corresponding detection image, and judge the usage of the borrowed book based on the detection image to obtain corresponding book usage information and record it.
[0109] In actual applications, when a user applies to return a book, the second mobile device matched by the retrieval system for the user may be the closest smart mobile device. In this case, it may not be possible to ensure that the book type corresponding to the second mobile device is the same as the book type of the borrowed book that the user currently wants to return. Therefore, the books in each smart mobile device may not belong to the corresponding book type. In order to solve this problem, a fixed sorting time period can be set in advance, for example, from 23:00 to 24:00 every night. During this sorting time period, the retrieval system can generate a borrowing list containing all borrowed books. In the borrowing list, the corresponding smart mobile device when each borrowed book is borrowed is recorded in detail. Mobile device, as well as the smart mobile device received when returning. When the retrieval system detects that a borrowed book is returned to a smart mobile device of a non-corresponding book type, these borrowed books can be automatically marked in the borrowing list, and the marking information can clearly indicate the original corresponding smart mobile device of the borrowed book and the wrong smart mobile device where it is currently located. The marked borrowing list can be sent to relevant staff. The staff can quickly locate the wrongly returned books according to the marking information in the borrowing list and reclassify them to the correct smart mobile device, thereby ensuring that the books in each device match their corresponding book types to avoid book confusion.
[0110] Based on the above embodiment, the specific implementation of step S4 may be: S41, determining the total number of pages of the borrowed book, obtaining the number of pages per unit interval according to the ratio of the total number of pages to the preset number of intervals, and dividing the total number of pages based on the number of pages per unit interval to obtain a plurality of page intervals.
[0111] In order to quickly and accurately determine the degree of damage of borrowed books, pages can be randomly selected from the borrowed books for image capture to obtain corresponding detection images. The condition of the book pages can be intuitively observed based on the captured detection images, thereby more accurately judging the degree of damage of the borrowed books.
[0112] Specifically, the total number of pages corresponding to the borrowed books can be obtained, and the number of pages corresponding to each interval, that is, the unit interval page number, can be calculated based on the total number of pages and the preset number of intervals. For example, if the total number of pages is 240 pages and the preset number of intervals is 3, then the corresponding unit interval page number of each interval is approximately 80 pages. Based on the unit interval page number, the total number of pages can be divided into multiple page intervals. For example, the first interval may be 1-80 pages, the second interval is 81-160 pages, and the third interval is 161-240 pages.
[0113] Among them, the total number of pages refers to the number of all pages contained in the entire book, the preset number of intervals refers to the number of intervals into which the total number of pages is to be divided when dividing the book pages. For example, if the preset number of intervals is 3, then the total number of pages can be divided into 3 intervals that are as equal as possible. The number of pages per unit interval refers to the number of pages contained in each interval, and the page number interval refers to the specific interval range into which the total number of pages is divided according to the number of pages per unit interval.
[0114] S42, randomly selecting a preset number of pages from each of the page number intervals as target pages, sending the target pages to the second user terminal, and obtaining detection images of each target page taken by the second mobile device.
[0115] Specifically, the number of pages to be selected in each page number interval, i.e., the preset number, can be predetermined, and the preset number of pages can be randomly selected from each page number interval as the target number of pages. For example, if the preset number is 4, and the book is divided into 3 page number intervals, namely, pages 1-80, pages 81-160, and pages 161-240, then the 4 pages randomly selected from each interval are the target number of pages. For example, the target number of pages selected from the first interval may be pages 15, 37, 62, and 79, and the target number of pages selected from the second interval may be pages 15, 37, 62, and 79. 95 pages, 113 pages, 134 pages and 156 pages. The 4 target pages selected from the third interval may be 165 pages, 187 pages, 210 pages and 235 pages. The determined target pages are sent to the second user terminal. The user can turn the borrowed books to the corresponding target pages in turn, control the second mobile device to capture images of each target page, and obtain corresponding detection images. The usage of the borrowed books can be judged based on the detection images, which can ensure that image data is obtained from different parts of the books, so as to more comprehensively evaluate the damage of the books.
[0116] Among them, the preset number refers to the number of pages randomly selected from each page number range when conducting a book damage assessment, and the target number of pages refers to the specific number of pages randomly selected from each page number range based on the preset number.
[0117] S43, determining the page type of the target page number, the page type including text type and image type, replacing the page background corresponding to the detection image of the text type, and determining the first damage degree of the target page number according to the number of abnormal pixels in the detection image.
[0118] Specifically, in borrowed books, the page type may vary depending on the content of the books. Some books may have pages that are mainly text, such as novels and textbooks, and the page type of these pages can be determined as text type. Some books may have pages that are mainly images, such as comics and picture books, and the page type corresponding to these pages can be determined as image type. The corresponding page type can be determined by identifying the content corresponding to the target page. If the target page is a text type page, in order to more accurately assess its degree of damage, it may be necessary to replace its background. After replacing the background, image processing technology can be used to detect abnormal pixels in the image. Abnormal pixels may represent damage marks such as stains and scratches. By counting the number of abnormal pixels, the degree of damage corresponding to the target page, that is, the first degree of damage, can be assessed.
[0119] Among them, page type refers to the main content type corresponding to the target number of pages in the book, text type refers to the page type whose main content is mainly text, image type refers to the type of page whose main content is mainly image, page background refers to the part outside the page content, abnormal pixel points refer to pixels that are significantly different from other pixels in the detection image, these pixels may be caused by stains, scratches and other damage marks, and the first damage degree refers to the degree of damage corresponding to the detection image of the text type.
[0120] In some embodiments, the step S43 of "replacing the page background corresponding to the detection image of the text type, and determining the first damage degree of the target page number according to the number of abnormal pixels in the detection image" includes the following steps: S431, obtaining the character outline in the detection image of the character type, and replacing the pixel value of the character outline with the background pixel value.
[0121] Specifically, when the page type of the target page number is a text type, all text contours in the corresponding detection image can be obtained, and the pixel values corresponding to the text contours can be replaced with background pixel values. For example, the pixel values corresponding to the text contours may be black pixel values, and the background pixel values may be white pixel values. Then, all black pixel values corresponding to the text contours in the detection image can be replaced with white pixel values.
[0122] The text contour refers to the contour corresponding to the text in the detection image, and the background pixel value refers to the pixel value corresponding to the background other than the text in the detection image.
[0123] S432, determining pixel points whose pixel values are not within the background pixel value interval as abnormal pixel points, counting the number of abnormal pixels, and obtaining a first damage degree according to a ratio of the number of abnormal pixels to a benchmark number of abnormal pixels.
[0124] Specifically, if the pixel value of a pixel point is not within the background pixel value interval, it can be considered that the corresponding pixel point may be a pixel point corresponding to the stain, and the corresponding pixel point can be determined as an abnormal pixel point. The number of abnormal pixels can be counted to obtain the corresponding abnormal number, and the number of abnormal pixels corresponding to the detection image under normal circumstances can be obtained, that is, the baseline abnormal number. By calculating the ratio of the abnormal number to the baseline abnormal number, the corresponding first degree of damage can be obtained.
[0125] Among them, the background pixel value interval refers to the interval corresponding to the background pixel value, for example, it can be the pixel value interval corresponding to white, the abnormal number refers to the number of abnormal pixel points, and the benchmark abnormal number refers to the number of abnormal pixel points corresponding to the detection image under normal circumstances.
[0126] S44, extracting the current feature profile in the detection image of the image type, determining the second damage degree of the target page number based on the comparison result of the standard feature profile corresponding to the corresponding target page number and the current feature profile, and determining the book usage information of the borrowed book based on the first damage degree and / or the second damage degree.
[0127] Specifically, for a detection image of an image type, the image contour in the detection image, i.e., the current feature contour, can be extracted, and the electronic document corresponding to the borrowed book can be retrieved. The feature contour corresponding to the target number of pages, i.e., the standard feature contour, can be obtained from the electronic document. By comparing the standard feature contour with the current feature contour for contour similarity, a corresponding comparison result can be obtained. Based on the comparison result, the degree of damage of the page corresponding to the target number of pages can be determined, and the corresponding second degree of damage can be obtained. Based on the first degree of damage and the second degree of damage, the overall degree of damage of the borrowed book can be determined, and then the book usage information of the borrowed book can be determined.
[0128] Among them, the current contour feature refers to the portrait contour extracted from the detection image of the image type, the standard contour feature refers to the feature contour corresponding to the target number of pages obtained from the electronic document, and the second damage degree refers to the degree of damage corresponding to the detection image of the image type.
[0129] In some embodiments, the step S44 of "extracting the current feature profile in the detection image of the image type, and determining the second degree of damage of the target page number according to the comparison result of the standard feature profile corresponding to the corresponding target page number and the current feature profile" includes the following steps: S441, performing a similarity comparison between the standard feature profile and the current feature profile to obtain a profile similarity value, and obtaining a second damage degree according to a ratio of the reference similarity value to the profile similarity value.
[0130] Specifically, by comparing the similarity between the standard feature contour and the current feature contour, a corresponding contour similarity value can be obtained, and by calculating the ratio of the baseline similarity value to the contour similarity value, a second damage degree corresponding to the detection image of the image type can be obtained.
[0131] Among them, the contour similarity value refers to a value that can be used to describe the similarity between the standard feature contour and the current feature contour, and the benchmark similarity value refers to a reference value that can be used to compare with the contour similarity value, which usually indicates the similarity between the current feature contour and the standard feature contour corresponding to the detection image when it is intact or slightly damaged.
[0132] Through the above implementation, the damage of books can be evaluated more comprehensively, and the accuracy of the evaluation can be improved.
[0133] See also Figure 4 , is a structural diagram of a data retrieval and analysis system for a hospital library provided by an embodiment of the present invention. The data processing system based on the data retrieval and analysis system for a hospital library includes: A response module, used to respond to the book reservation application of the first user terminal, determine the search item of the first user terminal, and search for the first mobile device corresponding to the search item according to the search system; A generating module, configured to generate a real-time positioning node of the first user terminal, and update the real-time moving path of the first mobile device based on the real-time positioning node; A receiving module, configured to receive a target determination request from the first mobile device based on a real-time moving path, obtain a set of images taken by the first mobile device, control the first mobile device to go to a target location according to the set of images, and determine book borrowing information corresponding to the first user terminal; The search module is used to respond to the book return application of the second user terminal based on the second mobile device, search for the borrowed books corresponding to the second user terminal according to the retrieval system, and determine the book use information of the borrowed books based on the detection image of the second mobile device.
[0134] Figure 4 The apparatus of the embodiment shown can be used to perform Figure 1 The implementation principles and technical effects of the steps in the method embodiment shown are similar and will not be repeated here.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data retrieval and analysis method for a hospital library, characterized in that: include: In response to a book reservation application from a first user terminal, determining a search term of the first user terminal, and searching a first mobile device corresponding to the search term according to a search system; Generate a real-time positioning node of the first user terminal, and update the real-time moving path of the first mobile device based on the real-time positioning node; receiving a target determination request of the first mobile device based on the real-time moving path, acquiring a set of images taken by the first mobile device, controlling the first mobile device to go to a target location according to the set of images, and determining book borrowing information corresponding to the first user terminal; In response to a book return application from a second user terminal based on a second mobile device, a borrowed book corresponding to the second user terminal is searched according to a retrieval system, and book use information of the borrowed book is determined based on a detection image of the second mobile device.
2. The method according to claim 1, characterized in that: Generating a real-time positioning node of the first user terminal, and updating the real-time moving path of the first mobile device based on the real-time positioning node, including: Acquire multiple historical positioning nodes, and arrange the historical positioning nodes in chronological order according to the reservation time of each historical positioning node to obtain a node sequence; Determine the ward location of the first user terminal, generate a real-time positioning node corresponding to the ward location, determine a historical positioning node corresponding to the real-time positioning node as a joint positioning node, and update the location sequence number of the first user terminal to the joint positioning node; If the joint positioning node does not exist, obtaining the ward distance between the real-time positioning node and the ward positions corresponding to each historical positioning node; Determine a historical positioning node whose ward spacing is less than a spacing threshold as a target positioning node, insert the real-time positioning node after the target positioning node in the node sequence, and if there is no target positioning node, insert the real-time positioning node to the end of the node sequence; The arrangement sequence number of each ward location is determined according to the node sequence, and a real-time moving path passing through each ward location in sequence is generated based on the arrangement sequence number.
3. The method according to claim 1, characterized in that Receiving a target determination request from the first mobile device based on a real-time moving path, acquiring an image set taken by the first mobile device, controlling the first mobile device to move to a target location according to the image set, and determining book borrowing information corresponding to the first user terminal, including: In response to a target determination request of the first mobile device for a corresponding real-time positioning node in the real-time moving path, obtaining a ward map photographed by the first mobile device from the front, and determining a position arrangement attribute corresponding to the ward map, wherein the position arrangement attribute includes a single arrangement attribute and a double arrangement attribute; Extract multiple nursing equipment contours in the ward map, determine the center point of each nursing equipment contour as a positioning point, generate a first positioning line that passes through each positioning point and is parallel to each other according to a single arrangement attribute, or connect the positioning points arranged oppositely according to a double arrangement attribute to obtain multiple second positioning lines; Determine a guide point located on the first positioning line or the second positioning line, connect each of the guide points to obtain a guide line, control the first mobile device to move to the nursing positions corresponding to each nursing device in sequence based on the guide line, and determine the nursing sequence number corresponding to each nursing position according to the equipment map taken at the nursing position, wherein the image set includes a ward map and an equipment map; Determine the care number corresponding to the position number of the first user terminal as the target number, determine the care position corresponding to the target number as the target position, stop the movement of the first mobile device when the first mobile device moves to the target position, and determine the book borrowing information corresponding to the first user terminal.
4. The method according to claim 3, characterized in that: Acquire a ward map photographed by the first mobile device from the front, and determine a position arrangement attribute corresponding to the ward map, wherein the position arrangement attribute includes a single arrangement attribute and a double arrangement attribute, including: Taking the center point of each nursing equipment outline in the ward map as a reference point, determining the center points of other nursing equipment outlines within a preset range as matching points corresponding to the reference point; Connecting the reference point and each of the matching points to obtain a determination line, and when the number of the determination lines is equal to 1, determining that the ward map corresponds to the single arrangement attribute; When the number of the determination lines is greater than 1, the angle of each determination line is obtained. If the angle is greater than or equal to the preset angle, it is determined that the ward map corresponds to the double arrangement attribute, and the nursing equipment contours in the ward map with an angle less than the preset angle are determined to be the same equipment arrangement group.
5. The method according to claim 4, characterized in that Generating a first positioning line passing through each positioning point and being parallel to each other according to the single arrangement attribute, or connecting the positioning points arranged oppositely according to the double arrangement attribute to obtain a plurality of second positioning lines, including: Connect the adjacent positioning points based on the single arrangement attribute to obtain an auxiliary line, and generate a first positioning line that is perpendicular to the auxiliary line and passes through the positioning points; or, Connecting the farthest positioning points in each device arrangement group according to the double arrangement attribute to obtain an arrangement direction, and numbering each positioning point based on the arrangement direction to obtain an arrangement sequence number of each positioning point; The positional relationship of the positioning points with the same arrangement number is determined to be an opposite arrangement, and the positioning points in the opposite arrangement are connected to obtain a second positioning line.
6. The method according to claim 5, characterized in that Determine a guide point located on the first positioning line or the second positioning line, connect the guide points to obtain a guide line, control the first mobile device to move to the nursing positions corresponding to the nursing devices in sequence based on the guide line, and determine the nursing sequence number corresponding to each nursing position according to the equipment map taken at the nursing position, including: Obtaining the intersection of each of the first positioning lines and the outer contour of the corresponding nursing device contour, determining a position point on the first positioning line at a preset distance from the outer contour intersection point as a guide point, wherein the guide point is not located at the nursing device contour, or determining the center point of each of the second positioning lines as a guide point; Connecting adjacent guiding points in sequence to obtain guiding lines, determining guiding distances between adjacent guiding points, and converting the guiding distances to obtain actual moving distances; Controlling the first mobile device to move the actual moving distance to the corresponding nursing position in sequence based on the guide line, and adjusting the shooting angle of the first mobile device based on a preset rotation direction and a preset rotation angle to obtain a device image shot by the first mobile device; Obtain the serial number identification in the equipment diagram, and determine that the number corresponding to the serial number identification is the nursing serial number corresponding to the nursing position.
7. The method according to claim 6, characterized in that The shooting angle of the first mobile device is adjusted based on a preset rotation direction and a preset rotation angle to obtain a device image shot by the first mobile device, including: The shooting angle of the first mobile device is adjusted in sequence according to the preset rotation direction and the preset rotation angle to obtain a device map, and the angle adjustment is suspended when a sequence number mark appears in the device map; If the nursing position corresponds to a single nursing device, completing the image capture of the first mobile device at the corresponding nursing position, and continuing to control the first mobile device to move to the next nursing position; If the nursing position corresponds to multiple nursing devices, continue to adjust the shooting angle of the first mobile device according to the preset rotation direction and the preset rotation angle, and count the number of numbers corresponding to the serial number identifier; When the number of numbers is equal to the number of devices corresponding to the corresponding nursing position, the image capture of the first mobile device at the corresponding nursing position is completed, and the first mobile device is continuously controlled to move to the next nursing position.
8. The method according to claim 1, characterized in that: In response to a book return application from a second user terminal based on a second mobile device, searching for a borrowed book corresponding to the second user terminal according to a retrieval system, and determining book usage information of the borrowed book based on a detection image of the second mobile device, including: Determine the total number of pages of the borrowed book, obtain the number of pages per unit interval according to the ratio of the total number of pages to the preset number of intervals, and divide the total number of pages based on the number of pages per unit interval to obtain a plurality of page intervals; Randomly selecting a preset number of pages from each of the page number intervals as target pages, sending the target pages to the second user terminal, and obtaining a detection image of each target page taken by the second mobile device; Determine the page type of the target number of pages, the page type includes a text type and an image type, replace the page background corresponding to the detection image of the text type, and determine the first damage degree of the target number of pages according to the number of abnormal pixels in the detection image; Extract the current feature profile in the detection image of the image type, determine the second damage degree of the target page number based on the comparison result of the standard feature profile corresponding to the corresponding target page number and the current feature profile, and determine the book usage information of the borrowed book based on the first damage degree and / or the second damage degree.
9. The method according to claim 8, characterized in that Replacing the page background corresponding to the detection image of the text type, and determining the first damage degree of the target page number according to the number of abnormal pixels in the detection image, including: Obtaining a text outline in a detection image of the text type, and replacing a pixel value of the text outline with a background pixel value; Pixels whose pixel values are not within the background pixel value interval are determined to be abnormal pixels, the number of abnormal pixels is counted, and a first damage degree is obtained according to a ratio of the number of abnormal pixels to a benchmark number of abnormal pixels.
10. The method according to claim 8, characterized in that Extracting a current feature profile in the detection image of the image type, and determining a second degree of damage of the target page number according to a comparison result between a standard feature profile corresponding to the corresponding target page number and the current feature profile, including: A similarity comparison is performed between the standard feature profile and the current feature profile to obtain a profile similarity value, and a second damage degree is obtained according to a ratio of the reference similarity value to the profile similarity value.
Citation Information
Patent Citations
Book management robot system and management method
CN110053023A
Medical robot ward-round system and method based on environment natural navigation
CN115145269A
Intelligent book management system and method thereof
CN115294697A
Online outpatient service intelligent reservation method and reservation system
CN115577817A
Library navigation method and system based on big data
CN116429107A