Terminal and bookshelf management method

The terminal recognizes bookshelf photos and generates electronic images to mark the locations of books, which solves the problem of difficulty in finding books on the bookshelf and simplifies and improves the efficiency of book management.

CN114494853BActive Publication Date: 2024-10-22HISENSE GRP HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111611875.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2024-10-22
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

When a large number of books are stored in a bookshelf, it is difficult for users to remember the location of each book, making the process of finding books complex and difficult.

Method used

Provides a terminal and bookshelf management method that simplifies the book search process by obtaining bookshelf photos for identification, generating electronic diagrams, marking the storage locations of target books.

Benefits of technology

Users can intuitively determine the storage location of books, reducing the difficulty of searching and improving the effect of book management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114494853B_ABST
    Figure CN114494853B_ABST
Patent Text Reader

Abstract

The present application discloses a terminal and a bookshelf management method, belonging to the field of electronic technology. The terminal includes a controller and a display screen; the controller is used to: obtain a photo of a bookshelf, the bookshelf includes multiple storage compartments; identify the multiple storage compartments according to the photo, and generate an electronic map of the bookshelf based on the identification result; wherein the electronic map includes multiple sub-grid areas corresponding to the multiple storage compartments; after receiving a query instruction for a target book in the bookshelf, determine the storage compartment where the target book is located based on the storage location information of the book in the bookshelf; control the display screen to display the electronic map of the bookshelf, and mark the sub-grid area corresponding to the storage compartment where the target book is located in the electronic map. The present application solves the problem of high difficulty in finding books in a bookshelf. The present application is used for book management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a terminal and a bookshelf management method. Background Art

[0002] With the development of electronic technology, various devices are becoming more and more intelligent, and people's requirements for the simplicity of implementing various events in life are also getting higher and higher.

[0003] At present, people use bookshelves to store books. When the bookshelf is large and contains many books, it is difficult for users to remember the location of each book. When users need a book, they usually need to search for it one by one among the many books in the bookshelf.

[0004] Therefore, it is currently difficult to search for books in the bookshelf. Summary of the invention

[0005] The present application provides a terminal and a bookshelf management method, which can solve the problem of high difficulty in finding books in a bookshelf. The technical solution is as follows:

[0006] In one aspect, a terminal is provided, the terminal comprising a controller and a display screen; the controller is used to:

[0007] Acquire a photo of a bookshelf, wherein the bookshelf includes a plurality of storage compartments;

[0008] Identify the plurality of storage compartments according to the photo, and generate an electronic diagram of the bookshelf based on the identification result; wherein the electronic diagram includes a plurality of sub-grid areas corresponding to the plurality of storage compartments one by one;

[0009] After receiving a query instruction for a target book in the bookshelf, determining the storage compartment where the target book is located based on the storage location information of the books in the bookshelf;

[0010] The display screen is controlled to display an electronic diagram of the bookshelf, and a sub-grid area corresponding to the storage grid where the target book is located is marked in the electronic diagram.

[0011] On the other hand, a bookshelf management method is provided for a terminal, the method comprising:

[0012] Acquire a photo of a bookshelf, wherein the bookshelf includes a plurality of storage compartments;

[0013] Identify the plurality of storage compartments according to the photo, and generate an electronic diagram of the bookshelf based on the identification result; wherein the electronic diagram includes a plurality of sub-grid areas corresponding to the plurality of storage compartments one by one;

[0014] After receiving a query instruction for a target book in the bookshelf, determining the storage compartment where the target book is located based on the storage location information of the books in the bookshelf;

[0015] An electronic diagram of the bookshelf is displayed, and a sub-grid area corresponding to the storage grid where the target book is located is marked in the electronic diagram.

[0016] The beneficial effects of the technical solution provided by this application include at least:

[0017] In the present application, the terminal can identify multiple storage compartments in the photo of the bookshelf to generate an electronic map of the bookshelf, and the electronic map can include multiple sub-grid areas corresponding to the actual multiple storage compartments in the bookshelf. The user can query the target book on the terminal so that the terminal marks the location of the target book in the electronic map of the bookshelf. In this way, the user can intuitively and conveniently determine the storage location of the target book, simplifying the search process for books in the bookshelf, reducing the difficulty of finding books, and improving the management effect of books in the bookshelf. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a structural schematic diagram of a bookshelf management system provided by an embodiment of the present application;

[0020] Figure 2 It is a structural block diagram of a terminal provided in an embodiment of the present application;

[0021] Figure 3 is a flow chart of a bookshelf management method provided in an embodiment of the present application;

[0022] Figure 4 is a flow chart of another bookshelf management method provided by an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of a display interface of a terminal provided in an embodiment of the present application;

[0024] Figure 6 is a schematic diagram of a display interface of another terminal provided in an embodiment of the present application;

[0025] Figure 7 is a schematic diagram of a display interface of another terminal provided in an embodiment of the present application;

[0026] Figure 8 is a schematic diagram of an image processing process provided by an embodiment of the present application;

[0027] Fig. 9 is a schematic diagram of another image processing process provided by an embodiment of the present application;

[0028] Fig.10 is a schematic diagram of an electronic diagram of a bookshelf provided in an embodiment of the present application;

[0029] Fig.11 is a schematic diagram of an electronic diagram of a bookshelf provided by an embodiment of the present application;

[0030] Fig.12 is a schematic diagram of a display interface of another terminal provided in an embodiment of the present application;

[0031] Fig.13 is a schematic diagram of a display interface of a terminal provided by another embodiment of the present application;

[0032] Fig.14 is a schematic diagram of a display interface of another terminal provided in another embodiment of the present application;

[0033] Fig.15 is a schematic diagram of a display interface of another terminal provided in another embodiment of the present application;

[0034] Fig.16 is a schematic diagram of a display interface of another terminal provided in another embodiment of the present application;

[0035] Fig.17 is a schematic diagram of a display interface of a terminal provided in yet another embodiment of the present application;

[0036] Fig.18 This is a schematic diagram of a display interface of another terminal provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0038] With the development of electronic technology, people have higher and higher requirements for the ease of handling various events in life. In family life, people use bookshelves to organize books. When the bookshelf is large and there are many books stored in the bookshelf, it is difficult for users to clearly remember the storage location of each book in the bookshelf, and it is also difficult to quickly find the book among many books. The process of users searching for books in the bookshelf is relatively complicated. The embodiment of the present application provides a terminal and a bookshelf management method, which can enable users to intuitively know the storage location of books in the bookshelf, easily find books in the bookshelf, and improve the management effect of books in the bookshelf.

[0039] Figure 1 Schematic diagram of a bookshelf management system provided by an embodiment of the present application. Figure 1 As shown, the bookshelf management system 10 may include: a bookshelf 101 and a terminal 102. Optionally, the bookshelf management system 10 may also include a server 103.

[0040] The bookshelf 101 in this application can be a common bookshelf, that is, a bookshelf with only a storage function. The bookshelf 101 can also be a smart bookshelf, that is, a bookshelf with other functions besides the storage function. Figure 1 Take the bookshelf 101 as an example of a smart bookshelf. Figure 1 As shown, the smart bookshelf is configured with a processing unit ( Figure 1 Not shown), communication unit ( Figure 1 The smart bookshelf may include a bookshelf having a plurality of units (not shown), a storage unit, a display unit 1011 and other units, so that the smart bookshelf has information processing function, communication function, storage function, display function and other functions. Optionally, the smart bookshelf may be a bookshelf based on radio frequency identification (RFID) technology, and in the embodiment of the present application, such a smart bookshelf is referred to as an RFID bookshelf.

[0041] The bookshelf 101 may include a plurality of storage compartments G. For an RFID bookshelf, an electronic tag may be provided on the books stored in the bookshelf, and the electronic tag is a radio frequency identification RFID tag. Each electronic tag may store the tag information of the electronic tag, and the tag information of the electronic tag at least includes the identification of the electronic tag. Optionally, the user may also enter other information into the electronic tag, and the tag information of the electronic tag may also include the other information, such as the other information may include the information of the book set by the electronic tag. At least one receiver may be provided in the bookshelf, and each receiver may correspond to at least one storage compartment in the bookshelf, and each receiver may detect the tag information sent by the electronic tag in the storage compartment corresponding to the electronic tag. The processing unit in the bookshelf may determine that the book corresponding to the tag information is stored in the storage compartment corresponding to the receiver based on the tag information received by each receiver. The processing unit may store the received tag information and the information of the corresponding relationship between each tag information and the storage compartment in the storage unit of the bookshelf. The processing unit may also control the communication unit to send the information stored in the storage unit or other instructions to other devices, and may also receive information sent by other devices through the communication unit.

[0042] The terminal 102 may be a device such as a smart phone, a tablet computer or a laptop computer, or may be other devices with display, storage, information processing and information interaction functions. The terminal 102 may manage the information of the bookshelf 101 so that the user can obtain the information of the books in the bookshelf 101 through the terminal 102. When the bookshelf 101 is a smart bookshelf, the terminal 102 may be connected to the bookshelf 101 in communication to interact with the bookshelf 101. The terminal 102 may also be connected to the server 103 in communication to support the information processing or storage of the terminal 102 through the server 103. The server 103 may be a local server or a cloud server. The terminal 102 and the smart bookshelf 101 and the terminal 102 and the server 103 may be connected through a wired network or a wireless network. Among them, the wired network may include but is not limited to: Universal Serial Bus (English: Universal Serial Bus; referred to as USB), and the wireless network may include but is not limited to: Wireless Fidelity (English: Wireless Fidelity; referred to as WIFI), Bluetooth, infrared, Zigbee (English: Zigbee), data network, etc.

[0043] Figure 2 is a structural block diagram of a terminal provided in an embodiment of the present application. Figure 2 As shown, the terminal 102 may include: a controller 1021, a display screen 1022, a memory 1023, a radio frequency (RF) circuit 1024, an audio circuit 1025, a wireless fidelity (Wi-Fi) module 1026, a Bluetooth module 1027, a power supply 1028, and a camera 1029. The RF circuit 1024, the Wi-Fi module 1026, and the Bluetooth module 1027 may all be communication units in the terminal.

[0044] Among them, the controller 1021 is the control center of the terminal 102, which uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions and processes data of the electronic device 10 by running or executing software programs stored in the memory 1023, and calling data stored in the memory 1023. In some embodiments, the controller 1021 may include one or more processing units; the controller 1021 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the baseband processor mainly processes wireless communication. It is understandable that the above-mentioned baseband processor may not be integrated into the controller 1021. In the present application, the controller 1021 can run an operating system and an application program, can control the user interface display, and can implement the information recording method provided in the embodiment of the present application. In addition, the controller 1021 is coupled to the input unit and the display screen 1022.

[0045] The display screen 1022 can be used to receive input digital or character information and generate signal input related to the user settings and function control of the terminal 102. Optionally, the display screen 1022 can be a touch screen. The touch screen can also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the terminal 102. The display screen can be configured in the form of a liquid crystal display, a light emitting diode, etc. The touch screen includes: a display panel and a touch panel arranged on the front of the terminal 102. The display panel can be used to display a preview image. The touch panel can collect touch operations of the user on or near it, such as clicking a button, dragging a scroll box, etc. Among them, the touch panel can be covered on the display panel, or the touch panel can be integrated with the display panel to realize the input and output functions of the terminal 102, and the integration can be referred to as a touch screen.

[0046] The memory 1023 can be used to store software programs and data. The controller 1021 executes various functions and data processing of the terminal 102 by running the software programs or data stored in the memory 1023. The memory 1023 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. The memory 1023 stores an operating system that enables the terminal 102 to run. In the present application, the memory 1023 can store an operating system and various application programs, and can also store code for executing the information recording method provided in the embodiment of the present application.

[0047] The RF circuit 1024 can be used to receive and send signals during the process of sending and receiving information or making calls. It can receive downlink data from the base station and hand it over to the controller 1021 for processing; it can send uplink data to the base station. Generally, the RF circuit includes but is not limited to antennas, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer and other devices.

[0048] The audio circuit 1025 may be connected to a speaker 102a and a microphone 102b to provide an audio interface between the user and the terminal 102. The audio circuit 1025 may transmit the electrical signal converted from the received audio data to the speaker 102a, which is converted into a sound signal for output. The terminal 102 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 102b converts the collected sound signal into an electrical signal, which is received by the audio circuit 1025 and converted into audio data, and then the audio data is output to the RF circuit 1024 to be sent to, for example, another terminal, or the audio data is output to the memory 1023 for further processing. In the present application, the microphone 102b can obtain the user's voice.

[0049] Wi-Fi is a short-range wireless transmission technology. The terminal 102 can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 1026, which provides users with wireless broadband Internet access.

[0050] The Bluetooth module 1027 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the terminal 102 can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 1027 to exchange data.

[0051] The terminal 102 also includes a power supply 1028 (such as a battery) for supplying power to various components. The power supply can be logically connected to the controller 1021 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption. The terminal 102 can also be configured with a power button for turning on and off the terminal, as well as locking the screen and other functions.

[0052] The camera 1029 can be used to capture still images or videos. The object is projected onto the photosensitive element through the lens to generate an optical image. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the controller 1021 for conversion into a digital image signal.

[0053] The terminal 102 may include at least one sensor 1110, such as a motion sensor 11101, a distance sensor 11102, a fingerprint sensor 11103, and a temperature sensor 11104. The electronic device 10 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.

[0054] Figure 3 is a flowchart of a bookshelf management method provided in an embodiment of the present application. The method can be used Figure 1 or Figure 2 The terminal 102 in the embodiment may be specifically used for the controller 1201 in the terminal 102. Figure 3 As shown, the method may include:

[0055] Step 301: Obtain a photo of a bookshelf, where the bookshelf includes a plurality of storage compartments.

[0056] The photo of the bookshelf may be a photo pre-stored in the terminal, or may be a photo taken by the terminal in real time, or may be a photo obtained by the terminal from other devices or the network. The photo is a front photo of the bookshelf.

[0057] Step 302: Identify the plurality of storage compartments according to the photo, and generate an electronic image of the bookshelf based on the identification result; wherein the electronic image includes a plurality of sub-grid areas corresponding one-to-one to the plurality of storage compartments.

[0058] For example, by identifying the multiple storage compartments in the photo, the compartment information of the multiple storage compartments in the bookshelf can be obtained, and the electronic map of the bookshelf can be used to represent the compartment information of the bookshelf.

[0059] Step 303: after receiving a query instruction for a target book in a bookshelf, determine the storage compartment where the target book is located based on the storage location information of the books in the bookshelf.

[0060] The storage location information of the books in the bookshelf is the information of the storage compartment where the books are located in the bookshelf, such as the information including the identification or location of the storage compartment. The storage location information of the books in the bookshelf can be input into the terminal by the user, or can also be directly obtained by the terminal from the smart bookshelf. After obtaining the storage location information of each book, the terminal can store the storage location information. The terminal can store the storage location information in the memory of the terminal, or can also store the storage location information in the server.

[0061] The user can perform a query operation for the target book on the terminal so that the terminal receives a query instruction for the target book. The terminal can determine the storage location of the target book based on the storage location information stored therein, that is, determine the information of the storage compartment where the target book is located.

[0062] Step 304: Control the display screen to display an electronic diagram of the bookshelf, and mark the sub-grid area corresponding to the storage compartment where the target book is located in the electronic diagram.

[0063] When the terminal determines the storage compartment where the target book queried by the user is located, it can display an electronic map of the bookshelf and mark the grid area corresponding to the storage compartment where the target book is located in the electronic map, so that the user can intuitively and clearly determine the location of the target book in the bookshelf based on the marking of the grid area.

[0064] In summary, in the bookshelf management method provided in the embodiment of the present application, the terminal can identify multiple storage compartments in the photo of the bookshelf to generate an electronic map of the bookshelf, and the electronic map can include multiple sub-grid areas corresponding to the actual multiple storage compartments in the bookshelf. The user can query the target book on the terminal so that the terminal marks the location of the target book in the electronic map of the bookshelf. In this way, the user can intuitively and conveniently determine the storage location of the target book, simplifying the search process for books in the bookshelf, reducing the difficulty of finding books, and improving the management effect of books in the bookshelf.

[0065] Figure 4 is a flowchart of another bookshelf management method provided by an embodiment of the present application, which can be used for Figure 1 or Figure 2 The terminal 102 in the embodiment of the present application can optionally be installed with a bookshelf management application. The terminal can obtain, organize and store information about the bookshelf and the books in the bookshelf based on the application, and display the required information to the user in an intuitive and clear manner to achieve intelligent management of the bookshelf. Figure 4 As shown, the method may include:

[0066] Step 401: Obtain the structural information of the bookshelf.

[0067] A bookshelf may include multiple storage compartments, which may be arranged in multiple layers from the bottom to the top of the bookshelf. For example, before managing the bookshelf, the terminal may first obtain the structural information of the bookshelf and the information of the books in the bookshelf. The structural information of the bookshelf may include the basic information of the bookshelf and the grid information of the bookshelf. The grid information of the bookshelf may include the number of layers of the storage compartments in the bookshelf, the maximum number of grids of each layer, the number, size, shape and position relationship of the storage compartments, etc. The basic information of the bookshelf may include the height and width of the bookshelf, the identification (ID) of the bookshelf, the name of the bookshelf, the category of the bookshelf (such as ordinary or intelligent), and the grid type of the bookshelf (such as regular grid or irregular grid). Optionally, if the grid division method of the bookshelf is irregular and the number of storage compartments at different positions is different, the number of storage compartments may refer to the maximum number of storage compartments in the bookshelf. The maximum number of grids of each layer is the number of storage compartments in the layer with the largest number of storage compartments.

[0068] Optionally, for a smart bookshelf, the bookshelf may include a communication unit. The terminal may also include a communication unit. For ease of description, the communication unit in the bookshelf is referred to as the first communication unit, and the communication unit in the terminal is referred to as the second communication unit. The first communication unit and the second communication unit may be communicatively connected to realize a communication connection between the bookshelf and the terminal. The memory of the smart bookshelf may store structural information of the bookshelf, and the terminal may directly obtain the structural information of the bookshelf from the smart bookshelf. The structural information stored in the smart bookshelf may be written into the memory by the staff when the smart bookshelf leaves the factory, or may be input into the memory by the user. Optionally, the smart bookshelf may store all the structural information that the terminal needs to obtain, or may only store part of the structural information that the terminal needs to obtain.

[0069] For example, after the terminal is connected to the smart bookshelf through communication, the terminal can send a request to obtain structural information to the smart bookshelf, and the smart bookshelf can send the structural information stored in the smart bookshelf to the second communication unit of the terminal through the first communication unit. For example, the smart bookshelf can send the number of layers of storage compartments and the maximum number of compartments on each layer to the second communication unit through the first communication unit. Optionally, the request to obtain structural information sent by the terminal can also carry an identifier of the information type to indicate the information required by the terminal. After receiving the acquisition request, the smart bookshelf can determine whether the information indicated by the identifier is stored based on the identifier, and then send the stored information indicated by the identifier to the terminal. For information required by the terminal but not stored in the smart bookshelf, the smart bookshelf ignores the information.

[0070] Optionally, for a smart bookshelf or a common bookshelf, the terminal may also instruct the user to input the structural information of the bookshelf. For example, after the terminal starts the bookshelf management application, the bookshelf adding page may be displayed. After the user triggers the terminal to add a bookshelf, the terminal may display the type of structural information to be obtained and instruct the user to input each type of structural information.

[0071] Optionally, for the smart bookshelf, the terminal may also obtain the structure information of the bookshelf by combining the method of obtaining from the smart bookshelf and the method of user input. For example, for the structure information that the terminal needs to obtain but is not stored in the smart bookshelf, the terminal may instruct the user to input the structure information.

[0072] For example, Figure 5 is a schematic diagram of a display interface of a terminal provided in an embodiment of the present application. Figure 5 As shown, when the terminal has not yet obtained the bookshelf information, if the bookshelf management application is started, the terminal can display a prompt message to prompt that the terminal has not yet obtained the bookshelf information. The terminal can also display an editing control K, and the user can click the editing control K to trigger the terminal to obtain the bookshelf information. For example, Figure 5 The prompt message is "The electronic picture of the bookshelf has not been created yet", and the editing control K is a control for editing the electronic picture of the bookshelf. Optionally, the information of the bookshelf in this application is used to generate the electronic picture of the bookshelf, so the user can be prompted by whether the electronic picture of the bookshelf has been created, and the control for editing the electronic picture of the bookshelf can be used to trigger the acquisition of the information of the bookshelf. The prompt message can also be "The information of the bookshelf has not been obtained yet", and the editing control can also be a control for obtaining the information of the bookshelf, which is not limited in the embodiment of this application.

[0073] Figure 6 is a schematic diagram of another terminal display interface provided in an embodiment of the present application. When a user clicks Figure 5 After editing the control K in the terminal, you can display Figure 6 The display interface is shown. Figure 6As shown, the terminal can display the type of structural information of the bookshelf to be obtained, and the input box corresponding to each type. The user can first select the category of the bookshelf as a normal bookshelf or a smart bookshelf. When the category of the bookshelf is a normal bookshelf, the terminal can display Figure 6 In the display interface S1, the terminal obtains the information entered by the user in each input box. When the category of the bookshelf is a smart bookshelf, the terminal can display Figure 6 In the display interface S2, the terminal may not obtain the grid type of the bookshelf, and prompt the user to control the terminal to establish a connection with the smart bookshelf before entering the structural information of the bookshelf. After the terminal establishes a connection with the smart bookshelf, the terminal can automatically fill in the corresponding information in the input box corresponding to each type based on the information obtained from the smart bookshelf. For information that the terminal needs to obtain but has not received from the smart bookshelf, the terminal can guide the user to enter it manually. After the structural information that the terminal needs to obtain is filled in, the user can click the "Next" control to trigger the terminal to perform subsequent operations. Optionally, the terminal can only perform subsequent operations after all types of structural information to be obtained have been obtained, or even if all types of structural information are not obtained, subsequent operations can be performed under the trigger of the user, which is not limited in the embodiments of the present application.

[0074] Step 402: Get a photo of the bookshelf.

[0075] The terminal may obtain a photo of the bookshelf to determine the edges of each storage compartment in the bookshelf based on the photo to generate an electronic map of the bookshelf. Figure 7 It is a schematic diagram of another display interface of a terminal provided by an embodiment of the present application. After determining the bookshelf template image, the terminal can display a photo control K3 and a local photo selection control K4. The user can click the photo control K3 to call the terminal's camera to take a photo of the bookshelf so that the terminal can obtain the photo of the bookshelf. The user can also click the selection control K4, and then the terminal can display the historical photos stored in the terminal. The user can select a photo of the bookshelf from these photos so that the terminal can obtain the photo of the bookshelf.

[0076] Step 403: Obtain a front view of the storage compartments in the bookshelf based on the photo of the bookshelf.

[0077] In an embodiment of the present application, the terminal can process the photo of the bookshelf to obtain a front view of the storage compartments in the bookshelf that is relatively regular. For example, the terminal can crop the acquired photo of the bookshelf to obtain an image of the area where all the storage compartments of the bookshelf in the photo are located. For example, the terminal can perform object recognition on the photo to identify the area where the storage compartments in the bookshelf are located and then crop the photo. After cropping the photo of the bookshelf to obtain an image of the area where the storage compartments in the photo are located, the image can be rotated to obtain a front view of the area where the storage compartments in the bookshelf are located. Optionally, according to the specific situation of the image, the image can also be stretched or shrunk to obtain the front view. The degree of the angle rotation, stretching or shrinking can be determined accordingly according to the specific situation of the image. Figure 8 It is a schematic diagram of an image processing process provided in an embodiment of the present application. Figure 8 The image a in the figure may be a photograph of a bookshelf, and the image b may be a front view of the storage compartments in the bookshelf obtained after processing the image a.

[0078] It should be noted that the photos of the bookshelf obtained by the terminal are likely to include images of other objects besides the bookshelf, and the images of the other objects are useless for the generation of the electronic map of the bookshelf. The terminal can crop the photo of the bookshelf to remove the images of other objects in the photo. Optionally, there may be some locations in the bookshelf where no storage compartments are set. The terminal can also remove the area in the photo where the storage compartments are not set, and only retain the image of the area where the storage compartments are located in the photo. In addition, due to the shooting angle and the image acquisition range of mid-to-high-end cameras, the storage compartments in the photo of the bookshelf may be tilted or deformed to a certain extent. The terminal can perform angle rotation, stretching or shrinking on the image to adjust the image to a more regular front view of the storage compartments.

[0079] Step 404: pre-process the front view of the storage compartments in the bookshelf.

[0080] The preprocessing includes at least one of filtering, thresholding and edge enhancement. For example, all three processes may be performed on the front view, or only one or two of the three processes may be performed. The image obtained by preprocessing the front view of the storage compartment in the bookshelf may be a grayscale image.

[0081] The filtering process is to suppress the noise information in the front view, which can improve the effectiveness and reliability of subsequent image processing and analysis. The edge enhancement process is used to highlight the edges where the brightness values ​​or hues of adjacent areas in the image are greatly different. The edge-enhanced image can more clearly show the boundaries of different objects or the traces of linear images, so as to facilitate the identification of different objects and the delineation of the distribution range of different areas.

[0082] Thresholding is used to divide the pixels in an image into two categories. The grayscale values ​​of pixels with grayscale values ​​greater than the threshold can be set to a specified grayscale value, and the grayscale values ​​of pixels with grayscale values ​​less than the threshold can be set to another specified grayscale value. Thresholding is intended to extract the target object in the image and distinguish the background from the noise. Thresholding can divide the pixels in the image into two colors. Thresholding can include binarization, and the image after binarization is a binary image.

[0083] Step 405: extract edges from the preprocessed image.

[0084] After the terminal processes the photo of the bookshelf to obtain the front view of the storage compartments in the bookshelf, it can use the edge detection algorithm to extract the edge of the front view. The image obtained after the edge extraction process can be a binary image. In the binary image, only two gray values ​​are used to represent the edge information and other area information outside the edge. For example, Fig. 9 It is a schematic diagram of another image processing process provided in an embodiment of the present application. Fig. 9 The image c in the figure is an image obtained by performing edge extraction on the preprocessed image, and the image c is a binary image. For example, the pixel points representing the edge in the binary image correspond to the first grayscale value, and the other pixel points correspond to the second grayscale value. The first grayscale value can be 255, and the second grayscale value can be 0. Optionally, the first grayscale value and the second grayscale value can also be other values ​​respectively, which is not limited in the embodiment of the present application. Optionally, the canny edge detection algorithm can be used to perform edge extraction processing on the front view.

[0085] Step 406: Filter the information other than the edge of each storage compartment in the edge extraction image to obtain an edge frame diagram of the bookshelf.

[0086] Among them, the edge frame diagram of the bookshelf may only include information about the edges of each storage compartment in the bookshelf. The photo of the bookshelf is likely to be a photo of the bookshelf taken after books or other items have been placed in the storage compartments of the bookshelf. After the terminal extracts the edge based on the photo, it will also extract information about the edge of the book or the edge of other items. The terminal can detect information that does not belong to the edge of the storage compartment in the image obtained by edge extraction, and then filter the information outside the edge of the storage compartment in the image obtained by edge extraction to retain only the information about the edge of the storage compartment. For example, filter the information about the edge of the book and the information about the edge of the other item. Since books or other items are placed in the storage compartment, the height of the book or the other item must be less than the height of the storage compartment, so the edge of the storage compartment and the edge of the book or other item can be distinguished by the difference in height.

[0087] For example, the terminal may first determine the number of pixels in the height direction of the area where the layer of storage grids in the image obtained by edge extraction is located for each layer of storage grids in the bookshelf. The terminal may determine the area where each layer of storage grids in the binary image obtained by edge extraction is located based on the height of the bookshelf and the grid information in the structural information of the bookshelf obtained in step 401. Optionally, the terminal may determine the position of the upper and lower dividing lines of the layer of storage grids in the overall bookshelf based on the height of each layer of storage grids and the height of the bookshelf. The terminal corresponds the dividing line to the binary image and determines the area between the two dividing lines as the area where a layer of storage grids is located. After determining the area where each layer of storage grids in the binary image is located, the terminal may determine the height of the area where each layer of storage grids is located, and the height may be characterized by the number of pixels in the height direction of the area. For example, the terminal may establish a rectangular coordinate system for the binary image with the vertex at the lower left as the origin and pixels as the unit in the binary image. The terminal may determine the vertical coordinate (ie, the ordinate) of each segmentation line in the binary image, and then determine the difference between the vertical coordinates of two segmentation lines as the number of pixels between the two segmentation lines.

[0088] Afterwards, for the area where each layer of the storage grid in the binary image is located, the terminal can filter the information of multiple pixel points whose number in the height direction is less than the number threshold and all correspond to the first grayscale value. The number threshold is less than or equal to the number of pixels in the height direction of the area where the layer of storage grids in the binary image is located, and the difference between the number of pixels in the area where the layer of storage grids is located and the number threshold can be less than the specified number. For example, the terminal can start from the pixel point in the lower left corner and traverse to the right in sequence for the area where the layer of storage grids is located, that is, start from the first pixel point on the dividing line located below the area and traverse each pixel point on the dividing line in sequence. For each pixel point in the traversal process, the number of pixel points that are continuous and all correspond to the first grayscale value among all the pixel points in the area with the same horizontal coordinate as the pixel point is determined. When the number of pixels is less than the number threshold, it is determined that the edge represented by the pixel point is an invalid edge, and the information of the edge can be filtered. Optionally, the terminal may change the grayscale values ​​corresponding to the multiple pixel points representing the invalid edge from the first grayscale value to the second grayscale value to filter the information of the multiple pixel points, that is, to filter the information of the edge.

[0089] It should be noted that when filtering, only the pixels in the area where the storage grid is located are filtered, and the edges of the area where the storage grid is located are not filtered, such as not filtering the information of the pixels on the dividing line corresponding to the area where the storage grid is located. If in the area where the storage grid is located, among all the pixels with the same horizontal coordinate as a pixel on the dividing line, there is a pixel corresponding to the first grayscale value, then the terminal also sets the grayscale value of the pixel to the second grayscale value. In this way, after traversing multiple adjacent pixels on the dividing line, it is also possible to filter the horizontal edges of the books placed in the storage grid, thereby ensuring the comprehensiveness of information filtering.

[0090] Please continue to refer to Fig. 9 , the image c obtained by edge extraction includes both the edges of each storage compartment and the edges of the books stored in the storage compartment. After the terminal performs data filtering on the image c obtained by edge extraction, an image d can be obtained. Image d only includes the edges of each storage compartment in the bookshelf, and no longer includes the edges of the books stored in the storage compartment.

[0091] It should be noted that the above steps 403 to 406 all belong to the process of identifying the photo of the bookshelf, and the edge frame diagram may be the recognition result obtained by identifying the photo of the bookshelf.

[0092] Step 407: Generate an electronic diagram of the bookshelf based on the edge frame diagram.

[0093] For example, the terminal may directly determine the edge frame image of the bookshelf obtained by recognizing the photo of the bookshelf as the electronic image of the bookshelf. Fig.10 is a schematic diagram of an electronic diagram of a bookshelf provided in an embodiment of the present application. Optionally, the terminal can generate an electronic diagram of the bookshelf with the front view of the storage compartments in the bookshelf obtained in step 403 as the background and the edge frame diagram as the foreground, as can be obtained Fig.10 Electronic drawing of the bookshelf shown.

[0094] It should be noted that due to the limitation of image recognition accuracy, the edge frame diagram of the bookshelf obtained by the terminal from the photo of the book may be different from the actual edge shape of the book. Optionally, if the user is not satisfied with the recognition result, he or she can also manually adjust the edge of the edge frame diagram obtained by recognition, or manually adjust the selected bookshelf template diagram, so as to generate an electronic diagram of the bookshelf based on the adjusted edge frame diagram. For example, Fig.11 is a schematic diagram of an electronic diagram of a bookshelf provided by an embodiment of the present application. The terminal can Fig.11 The following steps 4071 to 4075 generate an electronic diagram of the bookshelf.

[0095] Step 4071: After receiving the instruction for the electronic drawing of the custom bookshelf, determine the bookshelf template drawing, which includes multiple grid areas.

[0096] The terminal can display a control for customizing the electronic image of the bookshelf, and the user can trigger (such as clicking) the control to trigger the terminal to receive an instruction to customize the electronic image of the bookshelf. The user can customize the electronic image of the bookshelf based on the bookshelf template image. Optionally, the bookshelf template image can be obtained based on the recognition result of the photo of the bookshelf. For example, the edge frame image of the above-mentioned bookshelf can be directly used as the bookshelf template image. The terminal can also determine the bookshelf template image in other ways.

[0097] For example, the terminal can determine a bookshelf template diagram based on the structural information of the bookshelf, such as determining the bookshelf template diagram based on the number of layers of storage compartments in the bookshelf and the maximum number of compartments in each layer of storage compartments. The number of rows of grid areas in the bookshelf template diagram is the same as the number of layers of storage compartments in the bookshelf, and the maximum number of grid areas in each row of grid areas in the bookshelf template diagram is the maximum number of compartments in each layer of storage compartments in the bookshelf. The maximum number of grid areas in each row of grid areas is the number of grid areas in the row containing the most grid areas. For example, the bookshelf template diagram can be in a grid shape. The bookshelf includes four layers of storage compartments, and the most layer of the four layers of storage compartments includes four storage compartments. Then, the determined bookshelf template diagram may include four rows of grid areas, and each row may include four grid areas, that is, the bookshelf template diagram is in a grid shape of four rows and four columns. Alternatively, the number of grid areas in some rows of the bookshelf template diagram may be less than four.

[0098] Optionally, the terminal may also determine the bookshelf template map in other ways. In an optional way, a plurality of template maps to be selected may be pre-stored in the terminal, and the terminal may display a plurality of template maps to be selected. The user may select any template map to be selected from the plurality of template maps to be selected, so as to trigger the terminal to receive a selection instruction for the template map to be selected, and then the terminal may determine the selected template map to be selected as the bookshelf template map. In another optional way, the terminal may also determine a plurality of template maps to be selected by obtaining the basic information of the bookshelf. For example, in each template map to be selected determined based on the basic information of the bookshelf, the number of rows in the grid area is the same as the number of layers of the storage grid in the bookshelf, and the maximum number of grids in each row of the grid area is the same as the maximum number of storage grids in each layer of the bookshelf. The grid area division method of different template maps to be selected may be different. In another optional way, the user may directly draw the bookshelf template map by himself. For example, the terminal may directly display a photo of the acquired bookshelf, and then instruct the user to copy the photo to draw an electronic map of the bookshelf.

[0099] Optionally, the terminal may display the multiple template images to be selected at the same time, or the terminal may display the multiple template images to be selected in time division. For example, the terminal may display one template image to be selected at a time, and after receiving a replacement instruction for the template image to be selected, display another template image to be selected, until receiving a selection instruction for a template image to be selected. Fig.12 is a schematic diagram of a display interface of another terminal provided in an embodiment of the present application. Fig.12As shown, when the template image to be selected currently displayed on the display screen of the terminal is not the bookshelf template image that the user wants, the user can click the change control K1 on the left side of the template image or click the change control K2 on the right side of the template image to change the template image to be selected displayed on the display screen. Optionally, multiple template images to be selected can have a set order of precedence. When the change control K1 is clicked, the terminal can display the previous template image of the currently displayed template image; when the change control K2 is clicked, the terminal can display the next template image of the currently displayed template image. Optionally, when the terminal displays the template image to be selected that the user wants, the user can directly click the "Next" control to trigger the terminal to receive a selection instruction for the template image to be selected, and determine the template image to be selected as a bookshelf template image.

[0100] Step 4072: Display the bookshelf template image with the front view of the storage compartments in the bookshelf as the background, and the transparency of the bookshelf template image is greater than the transparency threshold.

[0101] The front view of the storage compartment in the bookshelf may be the front view determined in step 403. The display transparency of the bookshelf template image is greater than the transparency threshold, which can ensure that the user can see the image of the bookshelf in the background through the bookshelf template image.

[0102] Optionally, the terminal can adjust the overall size of the bookshelf template image to the same size as the front view of the storage compartment in the bookshelf, and then display the bookshelf template image above the front view of the storage compartment in the bookshelf. The edges of the bookshelf template image can be aligned with the edges of the front view. Optionally, the bookshelf template image is rectangular. If the front view is not rectangular, the bookshelf template image can cover the entire front view and ensure that the edges of the bookshelf template image are aligned with the edges of the front view as much as possible. Part of the bookshelf template image can cover the area outside the front view. For example, Fig.13 It is a schematic diagram of a display interface of a terminal provided in another embodiment of the present application. Fig.13 The four-row and four-column grid image surrounded by dotted lines is the template image of the bookshelf, and the image drawn by solid lines and including multiple irregularly arranged grids is the front view of the storage compartments in the bookshelf. Fig.13 It can be seen that when the bookshelf template image is displayed with the front view of the bookshelf storage compartment as the background, the edge of the bookshelf template image is aligned with the edge of the front view in the background, but there is a certain difference between the actual grid division of the bookshelf storage compartment and the grid division in the bookshelf template image. The user can adjust the grid division of the bookshelf template image to make the grid division of the bookshelf template image consistent with the actual grid division of the bookshelf storage compartment.

[0103] Step 4073: After receiving an adjustment instruction for any grid area in the bookshelf template diagram, adjust the grid area based on the adjustment instruction, and adjust the adjacent grid areas of the grid area.

[0104] There may be a difference between the grid division method of the bookshelf template image displayed by the terminal and the actual grid division method of the storage compartments in the bookshelf. The grid division method of the storage compartments in the bookshelf in this application can represent the frame structure of the bookshelf. The user can adjust the shape and size of each grid area in the bookshelf template image to make the grid division method of the bookshelf template image consistent with the actual grid division method of the storage compartments in the bookshelf. The adjusted bookshelf template image can represent the actual grid division method of the storage compartments in the bookshelf.

[0105] When the user adjusts any grid area, the terminal may be triggered to receive an adjustment instruction for the grid area. The adjustment instruction is triggered based on the difference between the grid method of the bookshelf template image and the grid method of the bookshelf in the front view, and the adjustment instruction is used to reduce the difference between the grid method of the adjusted bookshelf template image and the grid method of the bookshelf in the front view. The adjustment instruction may carry the information of the adjusted grid area, and the overall shape of the grid area and its adjacent grid areas remains unchanged before and after the adjustment. That is, if an adjustment is made to a certain grid area and the size of the grid area is enlarged, the size of the adjacent grid areas of the grid area is compressed to a certain extent. For example, if the right side line of the grid area moves 2 cm to the right, the left side line of the grid area adjacent to the right side of the grid area moves 2 cm to the right.

[0106] For example, please continue to refer to Fig.13 Based on the comparison between the bookshelf template image and the front view of the storage compartment in the bookshelf, it can be seen that the grid area in the first row and the first column in the bookshelf template image is different from the actual storage compartment size in the bookshelf. The grid area in the first row and the first column is referred to as the first grid area below. The user can click on the grid area that needs to be adjusted in the bookshelf template image (such as the first grid area), and then the terminal can know that the user wants to adjust the grid area. The clicked grid area can be filled with a specified color to mark the grid area as the grid area to be adjusted. After that, the user can directly adjust the grid area, such as the user can frame an area at the location of the grid area, and the framed area is the area where the adjusted grid area is located. After the user selects the grid area and frames the area, the terminal can receive an adjustment instruction for the grid area, and the adjustment instruction can carry information about the framed area, that is, information about the adjusted grid area.

[0107] Based on the adjustment instruction, the terminal may adjust the shape and size of the selected grid area to be consistent with the framed area. Fig.14 is a schematic diagram of another terminal display interface provided by another embodiment of the present application. After the terminal adjusts the first grid area in the bookshelf template diagram, the terminal can display Fig.14 The display interface is shown. Fig.14As shown, the first sub-grid area in the bookshelf template diagram has the same shape and size as the first storage compartment in the bookshelf. This adjustment is to expand the first sub-grid area to the right by a certain size, and accordingly the left side of the sub-grid area to the right of the first sub-grid area can be cut to the same size.

[0108] Optionally, the user can also click on multiple marking points in sequence around the selected grid area. After the selection is completed, the terminal can connect the multiple marking points in sequence to form a closed area, and then determine the closed area as the area after the grid area is adjusted. Optionally, the line segments used to divide the grid areas in the bookshelf template diagram can be moved, and the user can directly drag the border line of the grid area to be adjusted to adjust the size and shape of the grid area. The user can also adjust the grid areas in the bookshelf template diagram in other ways, which are not limited to the embodiments of the present application. Optionally, please continue to refer to Fig.13 and Fig.14 When the terminal displays the bookshelf template image, it can also display an adjustment control K5, such as the "reselect" control in the figure. After selecting the grid area to be adjusted, the user can click the adjustment control K5 to trigger the terminal to determine to adjust the grid area. After that, the user can enter the information of the adjusted area of ​​the grid area by selecting the area, clicking the mark point or dragging the border line of the grid area.

[0109] Optionally, the terminal can also add grid areas to the bookshelf template image under the trigger of the user, such as the terminal can split a certain grid area into two grid areas; or the terminal can also delete some grid areas in the bookshelf template image. In the embodiment of the present application, the grid areas in the bookshelf template image displayed with the photo of the bookshelf as the background are adjusted to adjust the grid method of the bookshelf template image to be consistent with the actual grid method of the storage compartments in the bookshelf. This is equivalent to copying the frame structure of the bookshelf according to the photo of the bookshelf to obtain a bookshelf template image representing the frame structure of the bookshelf.

[0110] Step 4074: Generate an electronic diagram of the bookshelf based on the adjusted bookshelf template diagram.

[0111] After the user completes the adjustment of the bookshelf template image, the terminal can generate an electronic image of the bookshelf based on the final adjusted bookshelf template image. Optionally, during the process of adjusting the bookshelf template image, the terminal can also display an adjustment completion control. After determining that the adjustment of the bookshelf template image is complete, the user can click the adjustment completion control, and the terminal can receive the adjustment completion instruction. Then, the terminal can generate an electronic image of the bookshelf based on the currently displayed bookshelf template image. For example, the electronic image of the bookshelf may only include the adjusted bookshelf template image. Alternatively, the electronic image of the bookshelf may also include a front view of the storage compartments in the bookshelf as a background, and the front view of the storage compartments in the bookshelf as the background can be called a bookshelf base map.

[0112] In an embodiment of the present application, the terminal can also obtain auxiliary information of the electronic diagram of the bookshelf, and bind the auxiliary information to the electronic diagram of the bookshelf for storage. The auxiliary information may include: the identification of the bookshelf, the identification of the bookshelf template diagram, the identification of the bookshelf base map, the size of the electronic diagram (in pixels) and the information of each grid area. The information of each grid area can be stored in the form of a list. The information of each grid area may include the identification of the grid area, the coordinate combination of the area where the grid area is located in the electronic diagram, the name of the grid area and the status of the grid area. Among them, the status of the grid area can be available or disabled, and the storage grid corresponding to the available grid area allows books to be placed, and the storage grid corresponding to the disabled grid area prohibits the placement of books.

[0113] Optionally, the user can set the information of each grid area during the process of adjusting the bookshelf template. Fig.13 and Fig.14 , the terminal can also display a name input box and a status selection box for the grid area, which can display an input box or selection box for auxiliary information (not shown in the figure). When the user selects a certain grid area, he can enter various information of the grid area in the information input box or selection box, and the terminal can store the information of the grid area. For example, the name of the grid area can be set according to the location of the grid area, such as the names of the grid areas are all a certain layer and a certain column. When the information entered in the status selection box corresponding to a certain grid area is available, the terminal can set the grid area to an available grid area to indicate that the storage compartment corresponding to the grid area allows books to be placed. When the information entered in the status selection box corresponding to a certain grid area is disabled, the terminal can set the grid area to a disabled grid area to indicate that the storage compartment corresponding to the grid area prohibits the placement of books. For example, the storage compartment corresponding to the disabled grid area may have been placed with objects other than books.

[0114] Step 408: Display the electronic image of the bookshelf.

[0115] After generating the electronic diagram of the bookshelf, the terminal can display the electronic diagram of the bookshelf for the user to confirm whether the generated electronic diagram is accurate. Optionally, the terminal can also display partial information of the bookshelf bound to the electronic diagram of the bookshelf, which can be the structural information of the bookshelf obtained in step 401, or it can be auxiliary information of the electronic diagram of the bookshelf obtained in the process of adjusting the bookshelf template diagram. When the user confirms that the electronic diagram of the bookshelf and various information displayed by the terminal are accurate, the terminal can be triggered to save the electronic diagram of the bookshelf and the information bound to it. Optionally, the terminal can store the electronic diagram of the bookshelf and the information bound to it in the memory of the terminal, or it can also send this information to the server for the server to store this information.

[0116] For example, Fig.15FIG. 1 is a schematic diagram of a display interface of another terminal provided in another embodiment of the present application. The terminal can be Fig.15 The display interface shown shows the generated electronic image of the bookshelf. Fig.15 As shown, the part of information displayed by the terminal includes the number of layers, grid type, total number of grids and number of available grids of the bookshelf. The terminal can also display its name in each grid area in the electronic diagram of the bookshelf. Optionally, if a disabled grid area is stored, the terminal can also mark the disabled grid area in the electronic diagram of the bookshelf, or mark the available grid area to distinguish between the disabled grid area and the available grid area. For example, the terminal can fill the disabled grid area or the available grid area with different colors respectively. When the user confirms that the electronic diagram of the bookshelf displayed by the terminal and each information are accurate, he can click the save button to trigger the terminal to save the electronic diagram of the bookshelf and the information bound to it. In an embodiment of the present application, the user can intuitively and clearly see the style of the bookshelf and the information of each storage grid through the electronic diagram of the bookshelf.

[0117] Step 409: After receiving the selection instruction for the target grid area in the electronic image of the bookshelf, receiving the information of at least one book and determining the storage location information of the at least one book.

[0118] In an embodiment of the present application, after generating an electronic diagram of a bookshelf, the terminal can obtain information about books stored in the bookshelf and determine the storage location information of each book. After receiving a selection instruction for a target grid area in the electronic diagram of the bookshelf, the terminal can receive information about at least one book. Based on the selection instruction and the information of the at least one book, the terminal can determine the storage location information of the at least one book, and the storage location information indicates that the at least one book is stored in a storage compartment corresponding to the target grid area in the bookshelf. The target grid area can be any available grid area in the electronic diagram of the bookshelf. Optionally, if a selection instruction for a disabled grid area is received, the terminal can display a prompt message to prompt the user that the storage compartment corresponding to the grid area is prohibited from storing books, and ask the user to select other available grid areas. If the terminal stores information about an object placed in the disabled grid area, the terminal can also display information about the object. Optionally, if a selection instruction for a disabled grid area is received, the terminal can also display information prompting the user whether to change the grid area to an available grid area. After the user changes the grid area to an available grid area, the information of the book is received again.

[0119] Fig.16 is a schematic diagram of a display interface of another terminal provided in another embodiment of the present application. Fig.16As shown, the user can select the target grid area (such as a grid area with one layer and one column) in the electronic diagram of the bookshelf to trigger the terminal to receive the selection instruction for the target grid area. The terminal can display the add control K6. The user can click the add control K6 after selecting the target grid area, and then input the information of the auxiliary book (that is, any book in the at least one book mentioned above) to the terminal. The terminal can determine that the information of the book received at this time corresponds to the target grid area, and determine that the auxiliary book is stored in the storage compartment corresponding to the target grid area, so that the storage location information of the auxiliary book is obtained. The terminal can store the information of the auxiliary book and bind the information of the target bookshelf to the target grid area. Optionally, the terminal may not display the add control, but can directly enter the information of the auxiliary book in the input box after selecting the target grid area. At this time, the terminal can also directly determine that the auxiliary book is stored in the storage compartment corresponding to the target grid area in the bookshelf. Optionally, when the user enters the information of the book for a certain grid area, the grid area can be changed at any time to enter the information of the book for the changed grid area.

[0120] Optionally, the terminal may also obtain information about the books stored in the bookshelf before generating the electronic image of the bookshelf. Figure 5 Before the electronic diagram of the bookshelf is generated, the terminal may also display a control for adding a new book. The user may directly click on the control, and then enter the information of the book and the information of the storage compartment where the book is located in the bookshelf (that is, the storage location information), and the terminal may store the information of the book and the corresponding storage location information. After the electronic diagram of the bookshelf is generated, the terminal may bind the information of the book to the sub-grid area corresponding to the storage compartment indicated by the storage location information in the electronic diagram based on the previously stored storage location information of the book.

[0121] Optionally, after receiving the selection instruction for the target sub-grid area, the terminal can query the information of the books corresponding to the target sub-grid area based on the stored book information and storage location information, that is, determine the information of the books stored in the storage compartment corresponding to the target sub-grid area. The terminal can then display the queried book information. Fig.16 The terminal determines that book A is stored in the storage compartment corresponding to the target grid area, and then the information of book A can be displayed. If the terminal does not query the information of the book corresponding to the target grid area, the information of the book will not be displayed; or the terminal can display a prompt message to prompt the user that the information of the book corresponding to the target grid area is not stored, or prompt that the storage compartment corresponding to the target grid area does not store the book. Optionally, when the target grid area corresponds to the information of multiple books, the terminal can display the information of the multiple books in the form of a list. The multiple books can be arranged in alphabetical order of the book title, or in order of publication date, or in order of author, and the information of books by the same author is displayed next to each other.

[0122] In an embodiment of the present application, the information of the book may include at least one of: name, logo, International Standard Book Number (ISBN), category, publisher information, and brief introduction information. The information of the book may also include other relevant information of the book, which is not limited in the embodiment of the present application. The storage location information of the book includes at least: the logo of the book and the logo of the storage compartment where the book is located. The storage location information may also include other information besides the logo of the book, such as the title and category. Optionally, a barcode or QR code identifying the book may be printed on the book, and the user may control the terminal to scan the barcode or QR code so that the terminal can obtain the information of the book. Alternatively, the user may also enter various information of the book by himself; or the user may also enter part of the information of the book, thereby triggering the terminal to search for other information of the book from the Internet, so as to enable the terminal to obtain the information of the book.

[0123] Optionally, each time a user takes out a book from a bookshelf or puts a book into a bookshelf, the user can operate on the terminal to update the information of the books stored in the terminal and the storage location information of the books. For example, each time a user takes out a book or deposits a book, the user can input to the terminal whether the operation on the book is to take out or deposit it, and can input the information of the book into the terminal. The way of inputting the information of the book here can refer to the way of inputting the information of the book after the user selects the target grid area, and the embodiment of the present application will not be repeated. When the user takes out the book, the terminal can delete the stored information of the book; or the information of the book can still be stored, and the status information is added to the book to indicate that the book has been taken out. Optionally, for a smart bookshelf, if the bookshelf can automatically determine whether the books stored therein are still in the bookshelf, then when the storage status of the book changes, the smart bookshelf can send the information of the changed books to the terminal. Alternatively, the smart bookshelf can also periodically send the information of the books stored therein and the storage location information of the books to the terminal.

[0124] It should be noted that, in the embodiment of the present application, after the terminal generates the electronic diagram of the bookshelf, the electronic diagram can also be edited at any time. Fig.16When the terminal obtains the information of the book, it can also display an editing control of the electronic diagram of the book. The user can click on the editing control to re-edit the electronic diagram of the bookshelf. The editing at this time can be adjusted based on the current electronic diagram. Optionally, the partitions of some bookshelves are movable, and the user may change the frame structure of the bookshelf during the use of the bookshelf. After the user changes the frame structure of the bookshelf, it can be adjusted based on the current electronic diagram to obtain an electronic diagram that matches the actual bookshelf structure without re-executing steps 401 to 407. In this way, the generation process of the electronic diagram can be simplified while ensuring the accuracy of the electronic diagram.

[0125] Step 410: After receiving a query instruction for a target book, mark the sub-grid area corresponding to the storage compartment where the target book is stored in the electronic map of the bookshelf.

[0126] For example, the terminal may display an input box and a query control. The user may enter information of the target book in the input box, such as the name, international standard book number, or other information of the target book, and then click the query control to trigger the terminal to receive a query instruction for the target book. Based on the information of the target book entered in the input box, the terminal may query the stored book information for books (i.e., target books) that match the entered information, and then display the information of the queried books, and may also display the storage location information of the target book.

[0127] Fig.17 is a schematic diagram of a display interface of a terminal provided in yet another embodiment of the present application, Fig.18 is a schematic diagram of a display interface of another terminal provided in yet another embodiment of the present application. Fig.17 As shown, the terminal can display the name, publisher information and brief introduction information of the target book. The terminal can also display the storage location information of the target book in the form of text, such as two layers and three columns. Optionally, the terminal can display a viewing control K7 for the storage location. The user can click the viewing control K7 to trigger the terminal to display Fig.18 The display interface is shown. Fig.18 As shown, the terminal can display an electronic map of the bookshelf, in which the sub-grid area corresponding to the storage compartment where the target book is stored is marked. For example, the sub-grid area is marked by a red border. Optionally, after querying the storage location information of the target book, the terminal can also directly display the electronic map of the book without displaying the viewing control.

[0128] Optionally, please continue to refer to Fig.17 and 18The terminal can also display the user's historical operation information on the target book. The historical operation information may include the collection time of the target book, and the historical reading time of the target book (that is, the reading experience in the figure). The reading time of the book can be determined based on the time when the book is taken out of the bookshelf, or it can also be added by the user. Optionally, the terminal can also display the classification information to which the target book belongs.

[0129] The bookshelf management method provided in the embodiment of the present application can be used in a home scene. In the related art, the terminal can display the book list information on the user interaction interface, and the user needs to select or enter different bookshelf numbers, labels or book titles and other screening conditions to realize book location and inquiry and other operations. When the bookshelf is large and the grid is more refined, resulting in more user-defined location tags, if the user wants to query the book list in a certain grid, it is necessary to select labels of various levels from many labels multiple times. This makes the query operation of books more cumbersome, and the query process is not intuitive enough, resulting in poor user experience. In the embodiment of the present application, the terminal can create an electronic map for a specific bookshelf. The user can click on any grid area in the electronic map to directly obtain the information of all books corresponding to the grid area. And when the user queries the book, the terminal can directly mark the location of the book in the electronic map of the bookshelf, so that the user can intuitively and conveniently know the location of the book. In the embodiment of the present application, the operation of bookshelf definition, book location and inquiry can be easily realized through the electronic map, and the operation is intuitive and convenient, which can greatly improve the user's interactive experience.

[0130] In summary, in the bookshelf management method provided in the embodiment of the present application, the terminal can identify multiple storage compartments in the photo of the bookshelf to generate an electronic map of the bookshelf, and the electronic map can include multiple sub-grid areas corresponding to the actual multiple storage compartments in the bookshelf. The user can query the target book on the terminal so that the terminal marks the location of the target book in the electronic map of the bookshelf. In this way, the user can intuitively and conveniently determine the storage location of the target book, simplifying the search process for books in the bookshelf, reducing the difficulty of finding books, and improving the management effect of books in the bookshelf.

[0131] The present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the bookshelf management method provided in the above embodiment, for example: Figure 3 or Figure 4 The method shown.

[0132] The present application also provides a computer program product including instructions. When the computer program product is run on a computer, the computer executes the bookshelf management method provided by the above method embodiment, for example: Figure 3 or Figure 4The method shown.

[0133] It should be noted that the method embodiments provided in the embodiments of the present application can be referenced with the corresponding device embodiments, and the embodiments of the present application are not limited thereto. The sequence of the steps of the method embodiments provided in the embodiments of the present application can be appropriately adjusted, and the steps can also be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of the changed methods within the technical scope disclosed in the present application, and they should be included in the protection scope of the present application, so they will not be repeated.

[0134] In the present application, the term "at least one of A and B" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, at least one of A and B may represent: A exists alone, A and B exist at the same time, and B exists alone. Similarly, "at least one of A, B, and C" means that seven relationships may exist, indicating: A exists alone, B exists alone, C exists alone, A and B exist at the same time, A and C exist at the same time, C and B exist at the same time, and A, B, and C exist at the same time. In the present application, "multiple" refers to "two or more". In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. "Including" mentioned in the present application is an open term, so it should be interpreted as "including but not limited to".

[0135] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A terminal, It is characterized in that The terminal includes a controller and a display screen; the controller is used to: Acquire a photo of a bookshelf, wherein the bookshelf includes a plurality of storage compartments; Identify the plurality of storage compartments according to the photo, and generate an edge frame diagram of the bookshelf based on the identification result; After receiving the instruction of the electronic diagram of the custom bookshelf, the edge frame diagram is used as a bookshelf template diagram, and the bookshelf template diagram includes a plurality of grid areas; After receiving an adjustment instruction for any grid area in the bookshelf template image, the any grid area is adjusted based on the adjustment instruction, and the adjacent grid areas of the any grid area are adjusted, wherein the adjustment instruction is used to reduce the difference between the grid mode of the adjusted bookshelf template image and the grid mode of the bookshelf in the front view, so that the grid mode of the bookshelf template image is consistent with the actual grid mode of the storage compartments in the bookshelf; wherein the adjustment instruction carries information of the adjusted any grid area, and the overall shapes of the any grid area and the adjacent grid area remain unchanged before and after the adjustment; the grid information of the bookshelf includes the adjusted bookshelf template image, and the front view is a front view of multiple storage compartments obtained based on the photo; Generate an electronic diagram of the bookshelf based on the adjusted bookshelf template diagram; wherein the electronic diagram includes a plurality of sub-grid areas corresponding one-to-one to the plurality of storage grids; After receiving a query instruction for a target book in the bookshelf, determining the storage compartment where the target book is located based on the storage location information of the books in the bookshelf; The display screen is controlled to display an electronic diagram of the bookshelf, and a sub-grid area corresponding to the storage grid where the target book is located is marked in the electronic diagram.

2. The terminal according to claim 1, It is characterized in that The controller is used to: Acquire a front view of the plurality of storage compartments based on the photograph; Perform edge extraction based on the front view; Information other than the edges of the plurality of storage compartments in the edge extraction image is filtered to obtain an edge frame diagram of the bookshelf, and the recognition result includes the edge frame diagram of the bookshelf.

3. The terminal according to claim 2, It is characterized in that The controller is used to: Cropping the photo to obtain an image of the area where the multiple storage compartments are located in the photo; The images of the areas where the multiple storage compartments are located are rotated to obtain front views of the multiple storage compartments.

4. The terminal according to claim 2, It is characterized in that The image obtained by edge extraction is a binary image, in which the pixel points representing the edge in the binary image correspond to the first grayscale value, and the other pixel points correspond to the second grayscale value; the controller is used to: Obtain the number of pixels in the height direction of the area where each layer of the storage grid is located in the binary image; For the region where each layer of the storage grid in the binary image is located, filtering information of a plurality of pixel points whose number in the height direction is less than a number threshold and which all correspond to the first grayscale value; The quantity threshold is less than or equal to the number of pixels in the height direction of the area where each layer of storage grids is located.

5. The terminal according to claim 4, It is characterized in that The controller is used to: The grayscale values ​​corresponding to the multiple pixel points are all set to the second grayscale value to filter the information of the multiple pixel points.

6. The terminal according to claim 4, It is characterized in that The controller is also used for: Based on the height of the bookshelf and the grid information, the area where the storage grids of each layer in the binary image are located is determined.

7. The terminal according to claim 2, It is characterized in that The controller is used to: Preprocessing the front view, wherein the preprocessing includes at least one of filtering, thresholding, and edge enhancement; Performing edge extraction on the image obtained by the preprocessing; and / or, An electronic diagram of the bookshelf is generated with the front view as the background and the edge frame diagram as the foreground.

8. A bookshelf management method, It is characterized in that For a terminal, the method comprises: Acquire a photo of a bookshelf, wherein the bookshelf includes a plurality of storage compartments; Identify the plurality of storage compartments according to the photo, and generate an edge frame diagram of the bookshelf based on the identification result; After receiving the instruction of the electronic diagram of the custom bookshelf, the edge frame diagram is used as a bookshelf template diagram, and the bookshelf template diagram includes a plurality of grid areas; After receiving an adjustment instruction for any grid area in the bookshelf template diagram, adjusting the any grid area based on the adjustment instruction, and adjusting the adjacent grid areas of the any grid area, the adjustment instruction is used to reduce the difference between the grid mode of the adjusted bookshelf template diagram and the grid mode of the bookshelf in the front view, so that the grid mode of the bookshelf template diagram is consistent with the actual grid mode of the storage compartments in the bookshelf; wherein the adjustment instruction carries information of the adjusted any grid area, and the overall shape of the any grid area and the adjacent grid area remains unchanged before and after the adjustment; the grid information of the bookshelf includes the adjusted bookshelf template diagram, and the front view is a front view of multiple storage compartments obtained based on the photo; Generate an electronic diagram of the bookshelf based on the adjusted bookshelf template diagram; wherein the electronic diagram includes a plurality of sub-grid areas corresponding one-to-one to the plurality of storage grids; After receiving a query instruction for a target book in the bookshelf, determining the storage compartment where the target book is located based on the storage location information of the books in the bookshelf; An electronic diagram of the bookshelf is displayed, and a sub-grid area corresponding to the storage grid where the target book is located is marked in the electronic diagram.