WO2021036547A1 - Express query method, server, and terminal - Google Patents

Express query method, server, and terminal Download PDF

Info

Publication number
WO2021036547A1
WO2021036547A1 PCT/CN2020/101631 CN2020101631W WO2021036547A1 WO 2021036547 A1 WO2021036547 A1 WO 2021036547A1 CN 2020101631 W CN2020101631 W CN 2020101631W WO 2021036547 A1 WO2021036547 A1 WO 2021036547A1
Authority
WO
WIPO (PCT)
Prior art keywords
face
user
terminal
information
server
Prior art date
Application number
PCT/CN2020/101631
Other languages
French (fr)
Chinese (zh)
Inventor
王艺然
陈楷佳
李刚
李延存
张义保
Original Assignee
北京市商汤科技开发有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京市商汤科技开发有限公司 filed Critical 北京市商汤科技开发有限公司
Priority to JP2021538682A priority Critical patent/JP2022516280A/en
Priority to KR1020217020537A priority patent/KR20210095942A/en
Publication of WO2021036547A1 publication Critical patent/WO2021036547A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5854Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using shape and object relationship
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation

Definitions

  • the present disclosure relates to the field of express delivery technology, and in particular to an express inquiry method, a server, and a terminal.
  • the present disclosure provides an express query method, server and terminal.
  • an express query method includes: a first terminal obtains a user's face image; the first terminal obtains user express information based on the user's face image, wherein the user person The face image is used to determine whether there is matching registered face data in the face database corresponding to the first terminal, where the face database corresponding to the first terminal includes information about multiple user accounts associated with the first terminal.
  • a first terminal obtains a user's face image
  • the first terminal obtains user express information based on the user's face image, wherein the user person
  • the face image is used to determine whether there is matching registered face data in the face database corresponding to the first terminal, where the face database corresponding to the first terminal includes information about multiple user accounts associated with the first terminal.
  • acquiring the face image of the user by the first terminal includes: the first terminal acquires the face image of the user in response to receiving an express query instruction from the user;
  • the method further includes: the first terminal displays the user courier information.
  • the first terminal obtains user delivery information based on the user's face image, including: the first terminal searches a face database corresponding to the first terminal to be related to the user's face. The registered face data matched by the face image; the first terminal obtains the user express information based on the matched registered face data.
  • the first terminal inquiring in the face database corresponding to the first terminal the registered face data that matches the face image of the user includes: the first terminal responds to the user The feature extraction of the face image is performed to obtain the feature data of the user's face image; the first terminal determines that the feature data of the user's face image corresponds to the multiple registrations stored in the face database corresponding to the first terminal The degree of similarity between face data; the first terminal determines, based on the degree of similarity, whether there is registered face data matching the user's face image in the face database corresponding to the first terminal.
  • the first terminal obtaining user express information based on the matched registered face data includes: the first terminal determines the user account corresponding to the matched registered face data in the account database Information; the first terminal obtains user express information based on the user account information.
  • the first terminal obtaining user express information based on the user's face image includes: the first terminal sends an express inquiry request to the first server, wherein the express inquiry request includes an express inquiry request based on the The first user's face data obtained from the user's face image, where the first user's face data is used by the first server to determine whether there is matching registered face data in the face database corresponding to the first terminal.
  • the first terminal receives the express inquiry response fed back by the first server, the express inquiry response including the user express information.
  • the method further includes: in a case where the first terminal determines that the face query based on the user's face image fails, the first terminal obtains account information input by the user, wherein The binding face information corresponding to the account information in the account database is used to synchronize the face database corresponding to the first terminal, and the account database includes account information of multiple user accounts associated with multiple terminals and corresponding bindings Face information.
  • the method further includes: the first terminal sends the account information input by the user to the first server, wherein the account information is used by the first server to find the corresponding bound face And synchronize the face database corresponding to the first terminal based on the corresponding bound face information.
  • the method further includes: the first terminal queries the bound face information corresponding to the account information in the account database; the first terminal is based on the corresponding bound face information Information, update the face database corresponding to the first terminal.
  • the user courier information includes at least one of the following: information about waiting for pickup of the user account and information about waiting for pickup of at least one other account that authorizes the user account; and/or
  • the multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a second user account that is not registered at the first terminal but has made an express inquiry at the first terminal, wherein, the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information of the second user account registered in the second terminal.
  • the method further includes: the first terminal determines a target advertisement, wherein the target advertisement is based on at least one of the user's face image, user account information, and the user express information Obtained; the first terminal displays the target advertisement.
  • displaying the target advertisement on the first terminal includes: the first terminal displaying the target advertisement on a display interface of the user express information.
  • an express query method includes: a first server receives an express query request sent by a first terminal, the express query request includes the first user's face data obtained by the first terminal; The first server determines whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores the The registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases; the first server sends an express query response to the first terminal based on the result of the determination .
  • the first server determining whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal includes: the first server is based on the face data of the first user.
  • a face query request is sent to a second server, where the face query request is used to request the second server to query the face database corresponding to the first terminal with the first user Registered face data matching the face data; the first server receives the face query response returned by the second server, and the face query response indicates the result of the query.
  • the face query request includes terminal identification information of the first terminal and second user face data
  • the second user face data is obtained based on the first user face data
  • the face query response includes a second face identifier corresponding to the matched registered face data information.
  • the multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a first user account not registered at the first terminal but an express inquiry has been performed at the first terminal
  • the second user account wherein the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information registered by the second user account at the second terminal of.
  • the registered face data includes registered face images and/or characteristic data of the registered face images; and/or the first user face data includes the user face image and the user face At least one item of feature data of the image.
  • the first server determining whether there is registered facial data matching the facial data of the first user in the facial database corresponding to the first terminal includes: the first server determining the facial data The similarity between the face data of the first user and the multiple pieces of registered face data stored in the face database corresponding to the first terminal; the first server determines the first terminal based on the similarity Whether there is registered face data matching the face data of the first user in the corresponding face database.
  • the first server sending an express query response to the first terminal based on the result of the determination includes: responding to determining that the face database corresponding to the first terminal does not exist in the face database corresponding to the For the registered face data matching the face data of the first user, the first server sends an express query response to the first terminal, and the express query response indicates that the face query failed.
  • the method further includes: the first server obtains the account information input by the user from the first terminal; the first server determines the bound face information corresponding to the account information, wherein: The corresponding bound face information is used to synchronize the face database corresponding to the first terminal.
  • the first server determining the bound face information corresponding to the account information includes: the first server queries the account database for the bound face information corresponding to the account information, where: The account database stores account information of multiple user accounts associated with multiple terminals connected to the first server and corresponding bound face information.
  • the account information includes a mobile phone number.
  • the method further includes: the first server updates the face database corresponding to the first terminal based on the corresponding bound face information.
  • the method further includes: the first server sends a data synchronization request to the second server, the data synchronization request is used to request the second server to update based on the corresponding bound face information The face database corresponding to the first terminal; the first server receives a data synchronization response sent by the second server, and the data synchronization response includes the first synchronized face information of the corresponding bound face information The first face identification information corresponding to the face database corresponding to a terminal.
  • the method further includes: the first server acquiring the first face identification information corresponding to the corresponding bound face information in the face database corresponding to the first terminal after synchronization
  • the first server stores the correspondence between the account information and the first face identification information in the account database.
  • the first server sending an express query response to the first terminal based on the result of the determination includes: responding to determining that the face database corresponding to the first terminal exists in the face database corresponding to the first terminal. A registered face data matched by the user's face data, the first server queries the account database based on the second face identification information corresponding to the matched registered face data, and obtains the information corresponding to the second face identification information User account information.
  • the method further includes: the first server determining user delivery information based on the user account information.
  • the first server to determine user delivery information based on the user account information includes: the first server sends the user account information to the third server; the first server receives the information from the User courier information corresponding to the user account information of the third server.
  • the user courier information includes at least one of the following: information about waiting for pickup of the user account and information about waiting for pickup of at least one other account that authorizes the user account.
  • the method further includes: the first server determines a target advertisement based on a result of the determination; the first server sends a target instruction and/or a target advertisement to the first terminal; the The target instruction is used to instruct the first terminal to play the target advertisement.
  • the first server determining the target advertisement based on the result of the determination includes: the first server according to at least one historical express delivery of user account information corresponding to the first user's face data Information to determine the target advertisement.
  • an express query method includes: a second server receives a face query request sent by a first server, and the face query request includes terminal identification information of the first terminal and the second user person. Face data, wherein the face data of the second user is obtained based on the face data of the first user carried in the express inquiry request sent by the first terminal to the first server; The face database corresponding to the first terminal searches for registered face data matching the face data of the second user, wherein the face database corresponding to the first terminal stores multiple data associated with the first terminal The registered face data corresponding to the user account, and different terminals correspond to different face databases; the second server sends a face query response to the first server based on the result of the query.
  • the face database includes multiple pieces of registered face data and face identification information corresponding to the multiple pieces of registered face data.
  • the second server sends a face query response to the first server based on the result of the query, including: obtaining that the face database corresponding to the first terminal does not exist and does not exist in the face database corresponding to the first terminal in response to the query. For the registered face data matching the face data of the second user, the second server sends a face query response to the first server, and the face query response indicates that the face query failed.
  • the method further includes: the second server receives a data synchronization request sent by the first server, the data synchronization request includes binding face information; the second server is based on the binding Determine the face information, and update the face database corresponding to the first terminal.
  • the second server updating the face database corresponding to the first terminal based on the bound face information includes: the second server obtains the registration corresponding to the bound face information Face data and first face identification information; the second server stores the registered face data corresponding to the bound face information and the first face identification in the face database corresponding to the first terminal information.
  • the method further includes: the second server sending a data synchronization response to the first server, the data synchronization response including the first face identification information.
  • the second server sends a face query response to the first server based on the result of the query, including: obtaining, in response to the query, the presence and all of the faces in the face database corresponding to the first terminal. For the registered face data matching the face data of the second user, the second server sends a face query response to the first server, and the face query response includes the first face data corresponding to the matched registered face data. Two face identification information.
  • an express query method includes: a first device obtains user input information at a first terminal, the input information is used for express query; the first device is based on the input information , Determine the user's express information, wherein the input information includes the first user's face data, and the user's express information is based on the face data that matches the first user's face data and the user's registered face in the second terminal Obtained from information query, or, the input information includes account information, and the account information is used to look up the face information registered by the user at the second terminal, and synchronize the first terminal based on the registered face information
  • the corresponding face database wherein the first terminal and the second terminal correspond to different face databases.
  • the first device determining the user delivery information based on the input information includes: the first device determines the first The registered face data that matches the face data of the first user in the face database corresponding to the terminal; the first device obtains the user express information based on the matched registered face data.
  • the first device to obtain the user express information based on the matched registered face data includes: the first device determines that the account database corresponds to the matched registered face data User account information; the first device obtains the user express information based on the corresponding user account information.
  • the determining, by the first device, the registered face data that matches the face data of the first user in the face database corresponding to the first terminal includes: the first device sends the registered face data to the second device Sending a face query request, where the face query request is used to request the second device to query the face database corresponding to the first terminal for registered face data matching the face data of the first user
  • the first device receives the face query response returned by the second device, and the face query response indicates the matched registered face data that is queried.
  • the method when the input information includes account information, the method further includes: the first device determining bound face information corresponding to the account information in the account database, wherein the The account database stores account information and bound face information of multiple user accounts associated with multiple terminals connected to the first device; the first device updates the bound face information based on the corresponding bound face information The face database corresponding to the first terminal, or the second device is requested to update the face database corresponding to the first terminal based on the corresponding bound face information.
  • the method further includes: the first device acquiring first face identification information corresponding to the corresponding bound face information in the updated face database corresponding to the first terminal The first device stores the correspondence between the account information and the first face identification information in the account database.
  • the acquiring, by the first device, the input information of the user at the first terminal includes: the first device obtains the first user face data of the user through image collection; or the first device Receiving an express inquiry request sent by the first terminal, where the express inquiry request carries the input information.
  • a server in a fifth aspect, includes: a transceiver module and a determining module; wherein:
  • a transceiver module configured to receive an express inquiry request sent by a first terminal, where the express inquiry request includes the face data of the first user acquired by the first terminal;
  • the determining module is configured to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores The registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
  • the transceiver module is further configured to send an express query response to the first terminal based on the result of the determination.
  • a server including: a transceiver module and a query module; wherein:
  • the transceiver module is configured to receive a face query request sent by the first server.
  • the face query request includes the terminal identification information of the first terminal and the face data of the second user, wherein the face data of the second user is based on Obtained by the first user's face data carried in the express query request sent by the first terminal to the first server;
  • the query module is configured to query the registered face data matching the face data of the second user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores the Registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
  • the transceiver module is further configured to send a face query response to the first server based on the result of the query.
  • a terminal including: an obtaining module and an express information obtaining module; wherein:
  • the acquisition module is used to acquire a user's face image
  • the express information obtaining module is configured to obtain user express information based on the user face image, wherein the user face image is used to determine whether there is matching registered face data in the face database corresponding to the terminal
  • the face database corresponding to the terminal includes registered face data of multiple user accounts associated with the terminal, and different terminals correspond to different face databases.
  • a device including: an acquisition module and a determination module; wherein:
  • the obtaining module is used to obtain the input information of the user in the first terminal, and the input information is used for express inquiry;
  • the determining module is configured to determine the user express information based on the input information, wherein the input information includes the first user's face data, and the user express information is based on a match with the first user's face data.
  • the face information registered by the user at the second terminal is obtained by querying, or the input information includes account information, and the account information is used to search for the face information registered by the user at the second terminal, and based on the registration.
  • the face information of is synchronized with the face database corresponding to the first terminal, where the first terminal and the second terminal correspond to different face databases.
  • a device comprising: at least one processor and a memory storing machine-executable instructions; wherein, when the machine-executable instructions are called, the at least one processor is used to execute the foregoing The method described in any one of the first aspect to the fourth aspect.
  • a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute any of the above-mentioned aspects of the first to fourth aspects.
  • a computer program product containing instructions which when run on a computer, causes the computer to execute the method described in any one of the first to fourth aspects.
  • Figure 1 is a schematic diagram of an exemplary express query scenario
  • Fig. 2 is an exemplary structural diagram of an express query system related to the present disclosure
  • FIG. 3 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure.
  • FIG. 4 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure.
  • FIG. 5A is a schematic flowchart of an express query method provided by some embodiments of the present disclosure.
  • FIG. 5B is a schematic flowchart of an express query method provided by some embodiments of the present disclosure.
  • FIG. 6 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure.
  • FIG. 7 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure.
  • FIG. 8 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a server provided by some embodiments of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a server provided by some embodiments of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a terminal provided by some embodiments of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a device provided by some embodiments of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a device provided by some embodiments of the present disclosure.
  • a courier warehouse is generally set up in the area where the user is located, and the express warehouse is for users in the area to access the express.
  • Figure 1 is a schematic diagram of an exemplary express query scenario.
  • the user can pick up the shipment by entering the pickup code in the express terminal (hereinafter referred to as the "terminal"), where the express terminal can be set on the express warehouse or independently Set up in the express warehouse.
  • the express terminal hereinafter referred to as the "terminal”
  • the express terminal can be set on the express warehouse or independently Set up in the express warehouse.
  • the system includes one or more servers and express terminals, and is provided with a face database for face query.
  • the face database stores the user's face data, such as face images and/or face features or attribute information .
  • the face database corresponding to each terminal can store the registered face data of multiple user accounts associated with the terminal, such as registered face images or registered persons Face attribute information.
  • the multiple accounts associated with the first terminal include at least one account registered in the first terminal.
  • the multiple accounts associated with the first terminal further include at least one account that has been inquired about express delivery on the first terminal. account number. For example, for an account that has been registered in another terminal (such as a second terminal), in the process of express inquiry by the first terminal, the account information is synchronized to the first terminal through data synchronization.
  • the terminal collects the user’s face image.
  • the terminal receives an express inquiry instruction input by the user.
  • the user can input the instruction by clicking a button or interface control, or the terminal detects The approach or appearance of a person, or through a fixed time interval or other trigger conditions, initiates the collection of facial images.
  • the terminal may also send one or more prompt messages to the user. For example, please put your face in the face frame of the screen, please approach the screen, please watch Cameras, etc., and collect video streams or one or more facial images.
  • the terminal may also select frames for multiple collected face images, for example, based on one or more factors such as image quality, face quality, face angle, etc., from the multiple collected face images Select the user's face image.
  • the express query function based on the face can be set on the terminal side or on the server side.
  • the terminal may send an express query request to the server.
  • the express query request includes the user's face image obtained by the terminal and/or the face obtained based on the user's face image Attribute information; after receiving the express query request, the server can determine whether the user has ever activated (such as registered) or used the face query function on the terminal, for example, to determine whether the face database corresponding to the terminal exists with the above user
  • the registered face data matched by the face image can reduce the amount of matched data compared with the establishment of a unified face database for multiple terminals connected to the server, thereby improving the query efficiency.
  • the server may determine the user account based on the user's registered face data, And then make the express query and return the express query result.
  • the server can instruct the terminal to report the user's account information , And based on the received user’s account information, such as mobile phone number, email address or account name, etc., perform express query and confirm whether the user has registered a face on other terminals.
  • the system is also provided with an account database.
  • the account database stores user account information and bound face information corresponding to the account information.
  • one account database can be set for one server. It is used to store all the account information of multiple terminals connected to the server and the corresponding bound face information.
  • the bound face information may include registered face data, such as one or more registered face images and/or characteristic data of the registered face images, or may further include the registered face data corresponding to at least one terminal. The corresponding face identification information in the face database.
  • the server can search the account database based on the received user's account information to determine whether there is bound face information corresponding to the user's account information in the account database, and synchronize based on the searched bound face information
  • the face database of the terminal that is queried this time does not require the user to register again on the terminal that is queried this time, thereby improving user experience.
  • the data synchronization can be performed automatically without the user's perception, or the user can confirm whether the user agrees to the data synchronization before the data synchronization is performed, and perform the data synchronization after obtaining the user's consent, which is not limited in the embodiment of the present disclosure.
  • the user does not need to register the face data in each terminal, and the server can synchronize the registered face data in the face database corresponding to other terminals to the face database corresponding to the terminal, so that the user You only need to register a face once on a terminal, and you can obtain express delivery information through the face on any terminal connected to the server, which greatly facilitates users.
  • one or more servers may be set on the network side, for example, a server may be set, and the server may be used for face query, account query, and express query.
  • a server may be set, and the server may be used for face query, account query, and express query.
  • two servers can be set up, one server is used for face query and account query, the other server is used for express query, or one server is used for face query, and the other server is used for account query and express query ,and many more.
  • three servers may be set up for account query, face query, and express query, which are not limited in the embodiment of the present disclosure.
  • FIG. 2 is a schematic diagram of an exemplary structure of an express inquiry system related to the present disclosure, where the exemplary system includes multiple express terminals (for example, express all-in-one), a first server (for example, express all-in-one server), and a second A server (for example, a face query server), wherein FIG. 2 exemplarily shows terminal A and terminal B, but the embodiment of the present disclosure does not limit the number of terminals.
  • express terminals for example, express all-in-one
  • first server for example, express all-in-one server
  • a second A server for example, a face query server
  • Terminal A and Terminal B are used to interact with users, collect images, receive user instructions and display information, and so on.
  • Terminal A and terminal B are in communication connection with the first server.
  • the first server is used for account management and is provided with an account database, where the account database stores account information of multiple user accounts managed by the first server.
  • the binding relationship between the account information and the bound face information may also be stored in the account database, or stored in another separate database, which is not limited in the embodiment of the present disclosure.
  • the first server is in communication connection with the second server.
  • a face database corresponding to each terminal is set on the second server for face query and matching.
  • terminal A After terminal A obtains the user's face image, it sends an express query request containing the first user's face data to the first server, where the first user's face data may include the user's face image and/or the user's face image.
  • the feature data of the face image after receiving the express query request sent by the terminal A, the first server sends the second user’s face data and the terminal identification information of the terminal A to the second server, where the second user’s face data is the first A server obtains based on the face data of the first user.
  • the face data of the second user may be at least a part of the face data of the first user, for example, the face data of the first user and the face data of the second user.
  • the data are both the user's face image, or the first user's face data and the second user's face data are both feature data of the user's face image.
  • the first user’s face data is the user’s face image
  • the second user’s face data is the feature data of the user’s face image.
  • the first server may perform feature extraction on the first user’s face data. Through processing, the face data of the second user is obtained, but the embodiment of the present disclosure does not limit this.
  • the second server determines the face database to be searched based on the terminal identification information of the terminal A, and inquires the registered face data matching the face data of the second user in the face database.
  • the user performs face registration or activation on terminal A, and correspondingly, the second server stores the user’s registered face data in the face database corresponding to terminal A, and then it can find the person who is related to the second user.
  • the registered face data that matches the face data.
  • the face database corresponding to terminal A does not store the user’s registered face data
  • the second server cannot query the registered face data matching the face data of the second user in the face database corresponding to the terminal A.
  • the first server may receive the account information input by the user through the terminal A, and query the corresponding bound face information in the account database according to the account information. If the bound face information corresponding to the user's account information is found in the account database, the found bound face information can be synchronized to the face database corresponding to terminal A. Therefore, the user can query the express delivery through the user's face image on the terminal A next time.
  • the terminal A may display a prompt message to prompt the user to confirm whether to agree to the aforementioned facial information synchronization, wherein the prompt information may include a prompt and a description of the aforementioned facial information synchronization Information, or further includes face information to be synchronized, etc., which are not limited in the embodiment of the present disclosure.
  • the terminal A may perform the facial information synchronization after receiving the confirming consent instruction input by the user, or the terminal A may not perform the facial information synchronization after receiving the confirming disapproval instruction input by the user.
  • the face database corresponding to multiple terminals may also be set on the first server. Accordingly, the first server may query the face database corresponding to the terminal and the first user’s face data based on the express query request. Match the registered face data, and synchronize the above-mentioned registered face data.
  • the face database corresponding to each terminal can also be set locally in the terminal. Accordingly, after obtaining the user's face image, the terminal A can query its own face database to match the user's face image.
  • the registered face data to determine whether there is registered face data matching the user's face image in its own face database.
  • the account database it can be set on the first server.
  • the terminal A may send an express query request containing the information of the registered face data to the first server to query the user express information corresponding to the registered face data.
  • terminal A After terminal A determines that there is no matching registered face data in its face database, it sends the user's account information to the first server to request the first server to query the user's express delivery information based on the account information. , On the basis of the express query based on the account information, the first server can also query whether there is bound face information corresponding to the account information in the account database, and after finding the bound face information corresponding to the account information In the case of, terminal A may also receive the face information to be synchronized returned by the first server, and update its face database accordingly.
  • each terminal may also synchronously store part of the information of the account database set by the first server, that is, each terminal may be set locally with a reduced account database for storing, for example, information of multiple user accounts associated with the terminal.
  • terminal A after terminal A obtains the matching registered face data, it can search for the account information corresponding to the matched registered face data in the account database, and send the account information to the first server or the courier server. Courier inquiry request for information.
  • the account database on the first server may store all the information of the user account, and for the same user account, the related information of the user account stored in the reduced account database on the different terminal side may be different, for example, If the user account has a face registration in terminal B but has not been activated in terminal A or used a face-based express query, the reduced account database of terminal B can store the bound face information corresponding to the user account. However, the reduced account database of the terminal A may not include the bound face information corresponding to the user account.
  • terminal A determines that there is no matching registered face data in its face database, it can send the user's account information to the first server, so that the first server can query the binding person corresponding to the account information
  • the face information is returned, and accordingly, the terminal A can update its own face database and the reduced account database based on the information returned by the first server.
  • the information stored in the reduced account database on different terminal sides can be kept synchronized.
  • terminal B can send relevant facial information To the first server, the first server sends synchronization information to the terminal A to synchronize the information of the reduced account database and the face database on the terminal A side.
  • the terminal A determines that there is no matching registered face in its face database Data, it can be determined that the user has not performed face registration or activation, and prompts the user to perform face registration or activation, but the embodiments of the present disclosure are not limited to this.
  • the express query can be performed based on the user account information to obtain the express information.
  • the queried courier information can indicate whether the user has a courier to be picked up or whether there is an appointment to send or has been sent.
  • the queried courier information can also further include the information of the courier to be picked up, such as Store location information, courier number information, etc., and when there is an appointment or has been sent, the reservation information or courier number information can be displayed.
  • the queried courier information may only include the user’s own courier information, or in the case where the user is authorized by one or more other users, it may further include the courier information of the one or more other users. Information, the embodiment of the present disclosure does not limit this.
  • the express inquiry system may further include a third server for express inquiry.
  • the third server may be a third-party server.
  • the third server receives the user account information sent by the first server or the first terminal, searches for the courier information corresponding to the user account information, and returns the queried courier information, so that the first terminal displays ,
  • FIG. 3 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure.
  • the method may include the following steps:
  • the first terminal acquires a user's face image.
  • the first terminal can be an express delivery terminal in any region.
  • the express terminal scans the user's face and obtains the user's face image.
  • the first terminal sends an express query request to the first server, where the express query request includes the first user face data corresponding to the user face image.
  • the first user's face data is obtained based on the user's face image.
  • the first server receives the above-mentioned express inquiry request.
  • the first terminal After acquiring the user's face image, the first terminal sends an express query request to the first server, and the express query request is used to query user account information or user express information.
  • the first server determines whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores information associated with the first terminal.
  • the registered face data corresponding to multiple user accounts, and different terminals correspond to different face databases.
  • the first server or the second server is provided with face databases corresponding to multiple terminals, and different terminals correspond to different face databases.
  • One or more users have registered face data through the first terminal or synchronized the registered face data of other terminals to the face database corresponding to the first terminal.
  • Each user corresponds to at least one user account, then the person corresponding to the first terminal
  • the face database stores registered face data corresponding to multiple user accounts associated with the first terminal.
  • the user stores the registered face data corresponding to the user in the face database corresponding to other terminals, but the registered face data corresponding to the user is not stored in the face database corresponding to the first terminal.
  • the express inquiry request includes the first user's face data
  • the first user's face data includes the user's face image and/or the characteristic data of the user's face image.
  • the first server needs to verify the face data of the first user. Specifically, it needs to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  • the registered face data includes characteristic data of the registered face image.
  • the feature data of the user's face image can be compared with the facial feature data corresponding to multiple user accounts stored in the face database corresponding to the first terminal to determine whether the face database corresponding to the first terminal is in the similarity There is registered face data that matches the face data of the first user.
  • the result of the determination includes two types: one is that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  • the first server is provided with an account database, and the account database stores account information of multiple user accounts associated with multiple terminals and corresponding bound face information. Therefore, according to the registered face data that matches the first user's face data, the user account information corresponding to the registered face data can be obtained.
  • the other is that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  • the first server sends an express query response to the first terminal based on the result of the foregoing determination.
  • the first terminal receives the express query response.
  • the express query response indicates that the face query is successful, and the express query responds Including the user account information corresponding to the registered face data obtained above.
  • the first server may also obtain the user courier information from its own server or a third server according to the user account information, and the courier query response includes the user courier information. If there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, the express query response indicates that the face query failed.
  • the face data of the first user acquired by the first terminal is matched with the registered face data in the face database corresponding to the first terminal.
  • the corresponding face database determines whether there is registered face data matching the face data of the first user.
  • the face query is successful; otherwise, the face query fails. So that it is convenient for users to collect express delivery.
  • FIG. 4 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure.
  • the method may include the following steps:
  • the first terminal acquires a user's face image.
  • the first terminal sends a courier query request to the first server, where the courier query request includes the user's face image.
  • the first server receives the above-mentioned express inquiry request.
  • the first server sends a face query request to the second server based on the aforementioned express query request, where the face query request is used to request the second server to query the face database corresponding to the first terminal and the first user.
  • the registered face data that matches the face data.
  • the face query response includes second face identification information corresponding to the matched registered face data.
  • the face query request includes terminal identification information of the first terminal and face data of a second user, and the face data of the second user is obtained based on the face data of the first user.
  • the second server receives the aforementioned face query request.
  • the second server is provided with multiple face databases corresponding to multiple terminals, respectively.
  • the face database corresponding to each terminal stores registered face data corresponding to multiple accounts associated with the terminal.
  • the first server After receiving the express query request, the first server sends a face query request to the second server in order to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  • the face query request includes the terminal identification information of the first terminal and the face data of the second user.
  • the terminal identification information of the first terminal may be included in the aforementioned express inquiry request, and the first server may also determine the terminal that collects the user's face image based on the sender of the express inquiry request or scrambling.
  • the second server queries the face database corresponding to the first terminal for registered face data matching the face data of the first user, where the face database corresponding to the first terminal stores multiple users associated with the first terminal
  • the registered face data corresponding to the account, and different terminals correspond to different face databases.
  • the second server searches the face database corresponding to the first terminal for registered face data matching the face data of the first user.
  • the registered face data includes the registered face image and/or characteristic data of the registered face image.
  • the second server may obtain the feature data of the user's face image based on the first user's face data, and compare the feature data of the user's face image with the number of registered face images stored in the face database corresponding to the first terminal. The feature data is matched for similarity, and the query result is obtained.
  • the query results include two types: one is that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal; the other is that the face database corresponding to the first terminal does not exist with the first user’s face data.
  • the second server sends a face query response to the first server based on the result of the query.
  • the first server receives the face query response returned by the second server.
  • the second server sends a face query response to the first server based on the result of any of the foregoing queries, and the face query response indicates the result of the query.
  • the first server sends an express query response to the first terminal based on the result of the above query.
  • the first terminal receives the above-mentioned express query response.
  • the express query response indicates that the face query is successful, and the express query responds Including the user account information corresponding to the registered face data obtained above.
  • the first server may also obtain the user courier information from its own server or a third server according to the user account information, and the courier query response includes the user courier information. If there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, the express query response indicates that the face query failed.
  • the first server queries the second server whether the face database corresponding to the first terminal has registered face data that matches the face data of the first user, and according to the query result Feedback to the first terminal that the face query is successful or the face query fails, which is convenient for the user to collect the express.
  • a corresponding face database is set for each terminal in the server, and registered face data is stored in the face database corresponding to the terminal. This allows the user to submit the registration in the server through terminal A.
  • the registered face data is stored by terminal, when the user wants to pick up the document through face recognition at terminal B, if the face database corresponding to terminal B does not store the For the user's registered face data, the server cannot obtain the corresponding user account information, so the express terminal cannot complete the pickup.
  • FIG. 5 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure.
  • the method may include the following steps:
  • the first terminal acquires a user's face image.
  • the first terminal sends an express query request to the first server, where the express query request includes the first user face data corresponding to the user face image.
  • the first server receives the above-mentioned express inquiry request.
  • step S102 in the embodiment shown in FIG. 3 or step S202 in the embodiment shown in FIG. 4.
  • the first server sends a face query request to the second server based on the aforementioned express query request, where the face query request includes the terminal identification information of the first terminal and the face data of the second user, and the face query request uses To request the second server to query the face database corresponding to the first terminal for registered face data matching the face data of the first user.
  • the face data of the second user is obtained based on the face data of the first user.
  • the second server receives the aforementioned face query request.
  • the second server queries the face database corresponding to the first terminal for registered face data matching the face data of the first user, where the face database corresponding to the first terminal stores the first terminal association
  • the registered face data corresponding to multiple user accounts of, and different terminals correspond to different face databases.
  • the second server In response to the query obtaining that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, the second server sends a first face query response to the first server, and the first person The face query response includes the first face identification information corresponding to the registered face data.
  • the first server receives the first face query response.
  • the second server can query the face database corresponding to the first terminal to obtain the registered face data matching the face data of the first user.
  • the second server When storing the registered face data in the face database corresponding to the first terminal, the second server stores the first face identification information (faceid) corresponding to the registered face data.
  • the first face identification information is generated according to the bound face information provided by the first server. Therefore, the second server includes the first face identification information in the first face query response.
  • the first server obtains user account information based on the first face identification information corresponding to the matched registered face data.
  • the first server stores account information of multiple user accounts associated with multiple terminals connected to the first server and corresponding bound face information in the account database.
  • the registered face data corresponds to the first face identification information. Therefore, the first server can obtain the user account information based on the first face identification information corresponding to the matched registered face data.
  • the first server determines the delivery information of the user based on the foregoing user account information.
  • the user express information is stored in the first server, and the user express information may be obtained based on the user account information.
  • the user courier information includes at least one of the following: information about the items to be picked up of the user account and information about the items to be picked up of at least one other account authorizing the user account.
  • the user courier information is stored in the third server, and the first server can send the aforementioned user account information to the third server.
  • the third server queries and obtains the corresponding user courier information according to the user account information, and sends it to the first
  • the server sends the user's express information obtained by the query.
  • the first server receives the user courier information corresponding to the aforementioned user account information sent by the third server.
  • the first server sends a courier query response to the first terminal, where the courier query response includes the aforementioned user courier information.
  • the first terminal receives the aforementioned user courier information.
  • the courier can be collected on the first terminal.
  • the above-mentioned express query response may also include user account information, and the first terminal obtains the user express information from the third server based on the user account information.
  • the first terminal displays the above-mentioned user express information.
  • FIG. 5B is a schematic flowchart of an express query method provided by an embodiment of the present disclosure.
  • the method may include the following steps:
  • the first terminal obtains a user's face image.
  • the first terminal sends an express inquiry request to the first server, where the express inquiry request includes the first user's face data corresponding to the aforementioned user's face image.
  • the first server sends a face query request to the second server based on the aforementioned express query request, where the face query request includes the terminal identification information of the first terminal and the face data of the second user, and the face query request uses To request the second server to query the face database corresponding to the first terminal for registered face data matching the face data of the first user.
  • the face data of the second user is obtained based on the face data of the first user.
  • the second server queries the face database corresponding to the first terminal for registered face data matching the face data of the first user, where the face database corresponding to the first terminal stores the first terminal association
  • the registered face data corresponding to multiple user accounts of, and different terminals correspond to different face databases.
  • the second server In response to the query to find that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, the second server sends a second face query response to the first server.
  • the two face query response indicates that the face query failed.
  • the first server receives the second face query response.
  • the second server is in the first terminal.
  • the face database corresponding to the terminal cannot be queried to obtain the registered face data matching the face data of the first user.
  • the second server sends a second face query response to the first server, and the second face query response indicates that the face query failed.
  • the first server sends a courier query response to the first terminal, and the courier query response indicates that the face query failed.
  • the first terminal receives the express query response.
  • the first terminal prompts the user to input account information.
  • the first terminal receives the above-mentioned express query response, and can learn that the corresponding registered face data does not exist in the face database corresponding to the first terminal. Therefore, the first terminal prompts the user to input account information.
  • the first terminal sends the aforementioned account information input by the user to the first server, and the account information is used for synchronizing the face database of the first terminal and querying express delivery information.
  • the first server receives the aforementioned account information.
  • the first terminal After obtaining the account information input by the user, the first terminal sends the above account information to the first server, and the account information can be used to synchronize the face database of the first terminal and query express delivery information.
  • the first server queries the bound face information of the input account information, where the bound face information obtained by the query is used to synchronize the face database corresponding to the first terminal.
  • the account database of the first server stores the account information of multiple user accounts and the corresponding bound face information. Therefore, according to the above input account information, the bound face information corresponding to the account information can be queried.
  • the bound face information may include registered face data, such as one or more registered face images and/or characteristic data of the registered face images, or may further include the registered face data corresponding to at least one terminal.
  • the first server may update the face database corresponding to the first terminal based on the queried bound face information.
  • the first server sends a data synchronization request to the second server, where the data synchronization request is used to request the second server to update the face database corresponding to the first terminal based on the above-mentioned bound face information.
  • the second server receives the aforementioned data synchronization request.
  • the second server is provided with multiple face databases corresponding to multiple terminals respectively. According to the above-mentioned second face query response, it can be learned that the registered face image does not exist in the face database corresponding to the first terminal. Therefore, the first server sends a data synchronization request to the second server to request the second server based on the above-mentioned binding. Update the face database corresponding to the first terminal by determining the face information.
  • the second server obtains registered face data based on the above-mentioned bound face information, and generates second face identification information corresponding to the registered face data.
  • the second server may obtain the characteristic data of the registered face image based on the bound face information, that is, obtain the registered face data.
  • the second face identification information corresponding to the registered face data is generated, for example, it may be a face identifier (faceid).
  • faceid a face identifier
  • the aforementioned first face identification information is the face identification information that already exists in the face database corresponding to the first terminal, and the second face identification information refers to the face identification information newly added during the synchronization process.
  • the second server stores the correspondence between the second face identification information and the registered face data in the face database corresponding to the first terminal.
  • the face database corresponding to the first terminal generally stores the registered face data corresponding to the multiple user accounts associated with the first terminal. Therefore, after the second server obtains the registered face data corresponding to the account, according to the second person The face identification information stores the registered face data correspondingly.
  • the second server sends a data synchronization response to the first server.
  • the data synchronization response includes second face identification information corresponding to the synchronized face database of the first terminal after the registered face image is synchronized.
  • the first server receives the data synchronization response.
  • the second server After the second server synchronously stores the registered face data corresponding to the second face identification information in the face database corresponding to the first terminal, it feeds back to the first server that the data synchronization is successful, and sends the aforementioned second face identification information To the first server.
  • the first server stores the corresponding relationship between the user account information and the second face identification information.
  • the first server After the first server receives the second face identification information fed back by the second server, because the second face identification information corresponds to the registrant of the user's account associated with the first terminal in the face database corresponding to the first terminal Face data correspondence, therefore, the corresponding relationship between the user account information and the second face identification information is stored in the account database, so that next time the first terminal obtains the user’s face image, the second server corresponds to the first terminal
  • the face database in Query finds the registered face data that matches the face data of the first user
  • the first server can obtain the second face identification information corresponding to the registered face data, so that the second face identification information can be obtained according to the second face identification.
  • the first server determines the user's express delivery information based on the foregoing user account information.
  • the first server may determine the user's express delivery information. For specific implementation, refer to the above step S307a.
  • the first server sends the aforementioned user express delivery information to the first terminal.
  • the first terminal receives the user courier information.
  • step S308a For the specific implementation of this step, refer to the above step S308a.
  • the first terminal displays the above-mentioned user courier information.
  • user 1 registers face data through the first terminal A
  • the face database corresponding to the first terminal A stores the face identifier 1 of the first terminal A and the registered face data
  • the account database of the first server stores The corresponding relationship between user account information, bound face information, and face identifier 1.
  • the second terminal B obtains the face data of the user 1. Assuming that the registered face data of the user 1 is not stored in the face database corresponding to the second terminal B, the person corresponding to the second terminal B The face database cannot find the registered face data corresponding to the face data.
  • the second terminal B sends the user account information to the first server, and the first server can query the bound face information of the user account information in the account database according to the user account information, and send the bound face information To the second server, so that the second server obtains the registered face data of user 1 based on the bound face information, and uses the registered face data of user 1 to update the face database corresponding to the second terminal B.
  • the second server generates the face identifier 2 according to the registered face data, and correspondingly stores the face identifier 2 and the registered face data in the face database corresponding to the second terminal B.
  • the server can automatically synchronize the registered face data in the face database corresponding to other terminals to the face database corresponding to the terminal. Therefore, the user only needs to register the face image once in a terminal, and can obtain express delivery information through the face image on any terminal connected to the server, which greatly facilitates the user.
  • FIG. 6 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure.
  • the method may include the following steps:
  • the first terminal obtains a user's face image.
  • the first terminal sends an express query request to the first server, where the express query request includes the first user face data corresponding to the user face image.
  • the first user's face data includes the user's face image and/or the characteristic data of the user's face image.
  • the first server receives the above-mentioned express inquiry request.
  • step S102 in the embodiment shown in FIG. 3, step S202 in the embodiment shown in FIG. 4, step S302a in the embodiment shown in FIG. 5A, or step S302b in the embodiment shown in FIG. 5B.
  • the first server obtains the feature data of the user's face image based on the first user's face data.
  • multiple face databases corresponding to multiple terminals are set in the first server, and the face database corresponding to each terminal stores registered face data corresponding to multiple accounts associated with the terminal.
  • the first server After receiving the face data of the first user, the first server performs feature extraction processing on the face data of the first user to obtain the feature data of the face image of the user.
  • a facial image feature extraction algorithm can be used to extract the feature data of the aforementioned user's facial image.
  • the first server determines the similarity between the feature data of the user's face image and the facial feature data corresponding to multiple user accounts stored in the face database corresponding to the first terminal.
  • the face database corresponding to the first terminal stores registered face data corresponding to multiple user accounts associated with the first terminal.
  • the registered face data includes feature data of the registered face image.
  • the first server compares the extracted feature data of the user's face image with the feature data of the registered face images corresponding to the multiple user accounts associated with the first terminal, and obtains multiple similarities respectively.
  • the first server determines, based on the aforementioned similarity, whether there is registered face data matching the aforementioned first user's face data in the face database corresponding to the first terminal.
  • the first server sends an express query response to the first terminal based on the result of the foregoing determination.
  • the first terminal receives the express query response.
  • the first server queries whether there is registered face data matching the face data of the first user in the face database corresponding to the terminal stored in the first server, and then forwards the query to the first user according to the query result.
  • a terminal feedbacks that the face query is successful or the face query fails, which is convenient for the user to collect the express.
  • FIG. 7 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure.
  • the method may include the following steps:
  • the first terminal acquires a user's face image.
  • the first terminal sends a courier query request to the first server, where the courier query request includes the first user's face data corresponding to the user's facial image.
  • the first server receives the above-mentioned express inquiry request.
  • the first server determines that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  • the first server or the second server is provided with face databases corresponding to multiple terminals, and different terminals correspond to different face databases.
  • One or more users have registered face data through the first terminal or synchronized the registered face data of other terminals to the face database corresponding to the first terminal.
  • Each user corresponds to at least one user account, then the person corresponding to the first terminal
  • the face database stores registered face data corresponding to multiple user accounts associated with the first terminal.
  • the user stores the registered face data corresponding to the user in the face database corresponding to other terminals, but the registered face data corresponding to the user is not stored in the face database corresponding to the first terminal.
  • the express inquiry request includes the first user's face data corresponding to the user's face image
  • the first server needs to verify the first user's face data.
  • the first terminal needs to be determined Whether there is registered face data matching the face data of the first user in the corresponding face database.
  • the registered face data includes characteristic data of the registered face image.
  • the feature data of the user's face image can be compared with the feature data of the registered face images corresponding to multiple user accounts stored in the face database corresponding to the first terminal to determine the face corresponding to the first terminal. Whether there is registered face data matching the face data of the first user in the database.
  • the result of the determination is that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  • the first server sends a courier query response to the first terminal based on the determined result, where the courier query response indicates that the face query failed.
  • the first terminal receives the express query response.
  • the first server feeds back the first user's face data query failure to the first terminal.
  • S505 The first terminal prompts the user to input account information.
  • the first terminal After receiving the aforementioned express query response, the first terminal can determine that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal. Therefore, the first terminal prompts the user to input account information.
  • the account information can be the user's mobile phone number.
  • the first terminal sends the account information input by the user to the first server, where the account information is used to synchronize the face database of the first terminal.
  • the first terminal obtains the aforementioned account information for synchronization of the face database of the first terminal, that is, the registered face data in the face database of other terminals is synchronized to the face database of the first terminal.
  • the first server obtains the face information registered by the user at the second terminal based on the account information input by the user, where the face information registered by the second terminal is used to synchronize the face database corresponding to the first terminal.
  • the face database of the second terminal stores registered face data matching the face data of the first user, for example, the user initially registered the face image at the second terminal, or the second terminal synchronizes the registration of other terminals Face data, and the user account information and the corresponding bound face information are stored in the account database of the first server, then the first server can obtain the face registered by the user at the second terminal based on the account information input by the user. Information, the face information registered by the second terminal can be synchronized to the face database corresponding to the first terminal. Therefore, the next time the user scans the user's face image at the first terminal, the user can query the registered face data that matches the first user's face data, so that the face query is successful.
  • the server can automatically synchronize the registered face data in the face database corresponding to other terminals to the face database corresponding to the terminal. Therefore, the user only needs to register the face image once in a terminal, and can obtain express delivery information through the face image on any terminal connected to the server, which greatly facilitates the user.
  • FIG. 8 is a schematic flowchart of a method for querying express delivery according to an embodiment of the present disclosure.
  • the express inquiry method can be applied to the first terminal.
  • the method may include the following steps:
  • the first terminal obtains a face image of the user.
  • the first terminal obtains user delivery information based on the user's face image, where the user's face image is used to determine whether there is matching registered face data in the face database corresponding to the first terminal, where:
  • the face database corresponding to the first terminal includes registered face data of multiple user accounts associated with the first terminal, and different terminals correspond to different face databases.
  • acquiring the face image of the user by the first terminal includes: the first terminal acquires the face image of the user in response to receiving a courier query instruction from the user. In some embodiments, after the first terminal obtains the user courier information, the method further includes: the first terminal displays the user courier information.
  • the first terminal obtains user delivery information based on the user's face image, including: the first terminal searches a face database corresponding to the first terminal to be related to the user's face. The registered face data matched by the face image; the first terminal obtains the user express information based on the matched registered face data.
  • the first terminal inquiring in the face database corresponding to the first terminal the registered face data that matches the face image of the user includes: the first terminal responds to the user The feature extraction of the face image is performed to obtain the feature data of the user's face image; the first terminal determines that the feature data of the user's face image corresponds to the multiple registrations stored in the face database corresponding to the first terminal The degree of similarity between face data; the first terminal determines, based on the degree of similarity, whether there is registered face data matching the user's face image in the face database corresponding to the first terminal.
  • the first terminal obtaining user express information based on the matched registered face data includes: the first terminal determines the user account corresponding to the matched registered face data in the account database Information; the first terminal obtains user express information based on the user account information.
  • the first terminal obtaining user express information based on the user's face image includes: the first terminal sends an express inquiry request to the first server, wherein the express inquiry request includes an express inquiry request based on the The first user's face data obtained from the user's face image, where the first user's face data is used by the first server to determine whether there is matching registered face data in the face database corresponding to the first terminal.
  • the first terminal receives the express inquiry response fed back by the first server, the express inquiry response including the user express information.
  • the express query method further includes: in a case where the first terminal determines that the face query based on the user's face image fails, the first terminal obtains account information input by the user, wherein The bound face information corresponding to the account information in the account database is used to synchronize the face database corresponding to the first terminal, and the account database includes account information of multiple user accounts associated with multiple terminals and corresponding Bind face information.
  • the express query method further includes: the first terminal sends the account information input by the user to the first server, and the first server searches for the corresponding bound face information and based on the corresponding bound face information.
  • the face information is synchronized with the face database corresponding to the first terminal.
  • the express query method further includes: the first terminal queries the bound face information corresponding to the account information in the account database; the first terminal is based on the corresponding binding The face information updates the face database corresponding to the first terminal.
  • the user courier information includes at least one of the following: information about waiting for pickup of the user account and information about waiting for pickup of at least one other account that authorizes the user account.
  • the multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a first user account not registered at the first terminal but an express inquiry has been performed at the first terminal The second user account, wherein the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information registered by the second user account at the second terminal of.
  • the first terminal further determines a target advertisement and displays the target advertisement, wherein the target advertisement is obtained based on at least one of the user's face image, user account information, and the user express information .
  • the first terminal may display the target advertisement on the display interface of the user express information.
  • the express query method provided by the embodiments of the present disclosure further includes: the first server determines the target advertisement based on the determined result; the first server sends the target instruction and/or the target advertisement to the first terminal, The target instruction is used to instruct the first terminal to play the target advertisement.
  • the first server determining the target advertisement based on the result of the determination includes: the first server determining the target advertisement according to at least one historical express information of the user account information corresponding to the first user's face data Target advertising. In this way, the advertisement can be pushed to the user corresponding to the user's face image more accurately.
  • the embodiment of the present disclosure also provides a courier query method, which can be applied to a first device, and includes: the first device obtains user input information at the first terminal, and the input information is used to perform courier query; The first device determines user courier information based on the input information, where the input information includes first user face data, and the user courier information is based on a match with the first user’s face data.
  • the face information registered by the user at the second terminal is obtained by querying, or the input information includes account information, and the account information is used to search for the face information registered by the user at the second terminal, and based on the registration.
  • the face information of is synchronized with the face database corresponding to the first terminal, where the first terminal and the second terminal correspond to different face databases.
  • the first device may be the first terminal or the first server in the foregoing embodiment.
  • the first device determining the user express information based on the input information includes: the first device determines the Registered face data that matches the face data of the first user in the face database corresponding to the first terminal; the first device obtains the user express information based on the matched registered face data.
  • the first device to obtain the user express information based on the matched registered face data includes: the first device determines that the account database corresponds to the matched registered face data User account information; the first device obtains the user express information based on the corresponding user account information.
  • the determining, by the first device, the registered face data that matches the face data of the first user in the face database corresponding to the first terminal includes: the first device sends the registered face data to the second device Sending a face query request, where the face query request is used to request the second device to query the face database corresponding to the first terminal for registered face data matching the face data of the first user
  • the first device receives the face query response returned by the second device, and the face query response indicates the matched registered face data that is queried.
  • the second device may be the second server.
  • the express query method when the input information includes account information, the express query method further includes: the first device determines the bound face information corresponding to the account information in the account database, wherein, The account database stores account information and bound face information of multiple user accounts associated with multiple terminals connected to the first device; the first device updates all the user accounts based on the corresponding bound face information The face database corresponding to the first terminal, or request the second device to update the face database corresponding to the first terminal based on the corresponding bound face information.
  • the express query method further includes: the first device acquiring the corresponding bound face information corresponding to the first face identifier in the updated face database corresponding to the first terminal Information; the first device stores the corresponding relationship between the account information and the first face identification information in the account database.
  • the acquiring, by the first device, the input information of the user at the first terminal includes: the first device obtains the first user face data of the user through image collection; or the first device Receiving an express inquiry request sent by the first terminal, where the express inquiry request carries the input information.
  • an embodiment of the present disclosure also provides a schematic structural diagram of a server.
  • the server 1000 may be one of the express inquiry methods shown in the above-mentioned embodiments of FIGS. 3-7.
  • the server 1000 includes: a transceiver module 11 and a determination module 12.
  • the transceiver module 11 is configured to receive an express inquiry request sent by a first terminal, where the express inquiry request includes the face data of the first user acquired by the first terminal;
  • the determining module 12 is configured to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores Registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
  • the transceiver module 11 is further configured to send an express query response to the first terminal based on the result of the determination.
  • the determining module 12 is configured to send a face query request to a second server based on the express query request, wherein the face query request is used to request that the second server is in the
  • the face database corresponding to the first terminal searches for registered face data matching the face data of the first user; receives a face query response returned by the second server, and the face query response indicates that the query result.
  • the face query request includes terminal identification information of the first terminal and second user face data
  • the second user face data is obtained based on the first user face data
  • the face query response includes a second face identifier corresponding to the matched registered face data information.
  • the multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a first user account not registered at the first terminal but an express inquiry has been performed at the first terminal
  • the second user account wherein the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information registered by the second user account at the second terminal of.
  • the registered face data includes registered face images and/or characteristic data of the registered face images; and/or the first user face data includes the user face image and the user face At least one item of feature data of the image.
  • the determining module 12 is configured to determine the similarity between the face data of the first user and multiple copies of registered face data stored in the face database corresponding to the first terminal; The similarity determines whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  • the transceiver module 11 is configured to: in response to determining that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, send a message to the first user A terminal sends a courier query response, and the courier query response indicates that the face query failed.
  • the server further includes a bound face information query module, and the bound face information query module is configured to: obtain the account information input by the user from the first terminal; determine the user account information The corresponding bound face information, wherein the corresponding bound face information is used to synchronize the face database corresponding to the first terminal.
  • the bound face information query module is used to query the bound face information corresponding to the account information in an account database, where the account database stores multiple information connected to the server.
  • the account information of multiple user accounts associated with the terminal and the corresponding bound face information is used to query the bound face information corresponding to the account information in an account database, where the account database stores multiple information connected to the server.
  • the account information includes a mobile phone number.
  • the server further includes an update module configured to update the face database corresponding to the first terminal based on the corresponding bound face information.
  • the server further includes a data synchronization module configured to send a data synchronization request to a second server, and the data synchronization request is used to request the second server based on the corresponding Binding face information to update the face database corresponding to the first terminal; receiving a data synchronization response sent by the second server, where the data synchronization response includes the first data synchronization response of the bound face information after synchronization The first face identification information corresponding to the face database corresponding to the terminal.
  • a data synchronization module configured to send a data synchronization request to a second server, and the data synchronization request is used to request the second server based on the corresponding Binding face information to update the face database corresponding to the first terminal; receiving a data synchronization response sent by the second server, where the data synchronization response includes the first data synchronization response of the bound face information after synchronization The first face identification information corresponding to the face database corresponding to the terminal.
  • the server further includes a storage module, the storage module is configured to: obtain the corresponding bound face information in the synchronized face database corresponding to the first terminal. Face identification information; the corresponding relationship between the account information and the first face identification information is stored in the account database.
  • the transceiver module is configured to: in response to determining that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, based on the matching registration
  • the second face identification information corresponding to the face data queries the account database to obtain user account information corresponding to the second face identification information.
  • the server further includes a courier information determining module; the courier information determining module is configured to determine user courier information based on the user account information.
  • the express delivery information determining module is configured to: send the user account information to a third server; receive user express information corresponding to the user account information from the third server.
  • the user courier information includes at least one of the following: information about waiting for pickup of the user account and information about waiting for pickup of at least one other account that authorizes the user account.
  • the server further includes a target advertisement determination module; the target advertisement determination module is configured to: determine a target advertisement based on the result of the determination; send a target instruction and/or a target advertisement to the first terminal ; The target instruction is used to instruct the first terminal to play the target advertisement.
  • the target advertisement determining module is configured to determine the target advertisement according to at least one historical express information of the user account information corresponding to the first user's face data.
  • the server 1000 may further include other modules or units, and detailed descriptions of other modules or units can be obtained by referring to the relevant description of the first server in the express query method shown in the above-mentioned embodiments of FIGS. 3-7.
  • an embodiment of the present disclosure also provides a schematic structural diagram of a server.
  • the server 2000 may be the express inquiry method shown in the above-mentioned embodiments of FIGS. 4 and 5A-5B.
  • the server 2000 includes: a transceiver module 21 and a query module 22.
  • the transceiver module 21 is configured to receive a face query request sent by the first server.
  • the face query request includes the terminal identification information of the first terminal and the face data of the second user; wherein the face data of the second user is Obtained based on the face data of the first user sent by the first terminal to the first server;
  • the query module 22 is configured to query the registered face data matching the face data of the second user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores The registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
  • the transceiver module 21 is further configured to send a face query response to the first server based on the result of the query.
  • the transceiving module 21 is configured to: in response to the query to obtain that there is no registered face data matching the face data of the second user in the face database corresponding to the first terminal, send a message to the The first server sends a face query response, and the face query response indicates that the face query failed.
  • the server further includes an update module configured to: receive a data synchronization request sent by the first server, where the data synchronization request includes binding face information; based on the binding The face information updates the face database corresponding to the first terminal.
  • the update module is further configured to: obtain the registered face data and the first face identification information corresponding to the bound face information; and store all information in the face database corresponding to the first terminal.
  • the server further includes a data synchronization module configured to send a data synchronization response to the first server, the data synchronization response including the first face identification information.
  • the transceiver module 21 is further configured to: in response to the query to obtain that there is registered face data matching the face data of the second user in the face database corresponding to the first terminal, report to the The first server sends a face query response, where the face query response includes second face identification information corresponding to the matched registered face data.
  • the server 2000 may further include other modules or units, and detailed descriptions of other modules or units can be obtained by referring to the related description of the second server in the express inquiry method shown in the embodiments of FIGS. 4 and 5A-5B.
  • an embodiment of the present disclosure also provides a schematic structural diagram of a terminal.
  • the terminal 3000 may be one of the express inquiry methods shown in the above-mentioned embodiments of FIGS. 3-8.
  • the terminal 3000 includes: an obtaining module 31 and a courier information obtaining module 32.
  • the obtaining module 31 is used to obtain a user's face image
  • the express information obtaining module 32 is configured to obtain user express information based on the user face image, wherein the user face image is used to determine whether there is matching registered face data in the face database corresponding to the terminal, wherein, the face database corresponding to the terminal includes registered face data of multiple user accounts associated with the terminal, and different terminals correspond to different face databases.
  • the acquisition module 31 is configured to: in response to receiving an express query instruction from the user, acquire the user's face image; the terminal further includes a display module, and the display module is used to: After the express information, the user express information is displayed.
  • the express delivery information obtaining module 32 is configured to: query the registered face data matching the user's face image in the face database corresponding to the terminal; and based on the matched registered face data; Data, get user express information.
  • the express delivery information obtaining module 32 is configured to: perform feature extraction on the user's face image to obtain the feature data of the user's face image; determine the difference between the feature data of the user's face image and the The similarity between the multiple copies of registered face data stored in the face database corresponding to the terminal; based on the similarity, it is determined whether there is a registration matching the face image of the user in the face database corresponding to the terminal Face data.
  • the express delivery information obtaining module 32 is configured to: determine the user account information corresponding to the matched registered face data in the account database; and obtain the user express information based on the user account information.
  • the express delivery information obtaining module 32 is configured to send an express inquiry request to a first server, wherein the express inquiry request includes first user face data obtained based on the user's face image, wherein, The first user face data is used by the first server to determine whether there is matching registered face data in the face database corresponding to the terminal; to receive the express query response fed back by the first server, the express query The response includes the user courier information.
  • the terminal further includes an account information acquisition module; the account information acquisition module is configured to: in the case where it is determined that the face query based on the user's face image fails, acquire the account information input by the user, Wherein, the bound face information corresponding to the account information in the account database is used to synchronize the face database corresponding to the terminal, and the account database includes account information of multiple user accounts associated with multiple terminals and corresponding bindings. Set face information.
  • the terminal further includes an account information sending module; the account information sending module is configured to: send the account information input by the user to the first server, wherein the account information is used for the first server.
  • the server searches for the corresponding bound face information and synchronizes the face database corresponding to the terminal based on the corresponding bound face information.
  • the terminal further includes an update module; the update module is configured to: query the account information corresponding to the bound face information in the account database; based on the corresponding bound face information To update the face database corresponding to the terminal.
  • the user courier information includes at least one of the following: the pending information of the user account and the pending information of at least one other account that authorizes the user account; and/or the
  • the multiple user accounts associated with the terminal include a first user account registered on the terminal and a second user account that is not registered on the terminal but has made an express query on the terminal, wherein the face database corresponding to the terminal The registered face data of the second user account stored in is obtained based on the face information registered by the second user account in the second terminal.
  • the terminal further includes a target advertisement determining module; the target advertisement determining module is used to determine a target advertisement, wherein the target advertisement is based on the user's face image, user account information, and the Obtain at least one item in the user's express delivery information; display the target advertisement.
  • the target advertisement determining module is used to determine a target advertisement, wherein the target advertisement is based on the user's face image, user account information, and the Obtain at least one item in the user's express delivery information; display the target advertisement.
  • the target advertisement determining module is further configured to: display the target advertisement on a display interface of the user express information.
  • the terminal 3000 may further include other modules or units, and other detailed descriptions of the above-mentioned modules or units can be obtained by referring to the relevant description of the first terminal in the express inquiry method shown in the embodiments of FIGS. 3-8.
  • an embodiment of the present disclosure also provides a schematic structural diagram of a device.
  • the device 4000 may be one of the express inquiry methods shown in the above-mentioned embodiments of FIGS. 3-7.
  • the device 4000 includes: an obtaining module 41 and a determining module 42.
  • the obtaining module 41 is used to obtain the input information of the user in the first terminal, and the input information is used to make an express inquiry;
  • the determining module 42 is configured to determine user express information based on the input information, where the input information includes first user facial data, and the user express information is based on matching with the first user facial data ,
  • the face information registered by the user in the second terminal is obtained by querying, or the input information includes account information, and the account information is used to look up the face information registered by the user in the second terminal, and based on the information
  • the registered face information is synchronized with the face database corresponding to the first terminal, where the first terminal and the second terminal correspond to different face databases.
  • the determining module 42 is configured to: determine that the face database corresponding to the first terminal matches the face data of the first user. The registered face data matched by the face data; and the user express information is obtained based on the matched registered face data.
  • the determining module 42 is further configured to: determine the user account information corresponding to the matched registered face data in the account database; and obtain the user express information based on the corresponding user account information.
  • the determining module 42 is further configured to send a face query request to the second device, where the face query request is used to request the second device to be the person corresponding to the first terminal Query the registered face data matching the face data of the first user in the face database; receive a face query response returned by the second device, where the face query response indicates the matched registration that is queried Face data.
  • the device in a case where the input information includes account information, the device further includes an update module configured to determine the bound face information corresponding to the account information in the account database, wherein, the account database stores account information and bound face information of multiple user accounts associated with multiple terminals connected to the first device; and based on the corresponding bound face information, update in the The face database corresponding to the first terminal, or the second device is requested to update the face database corresponding to the first terminal based on the corresponding bound face information.
  • the device further includes a storage module configured to obtain the first corresponding bound face information in the updated face database corresponding to the first terminal. Face identification information; the corresponding relationship between the account information and the first face identification information is stored in the account database.
  • the obtaining module 41 is configured to: obtain the first user's face data of the user through image collection; or receive an express inquiry request sent by the first terminal, and the express inquiry request carries all the data. ⁇ input information.
  • the device 4000 may further include other modules or units.
  • modules or units please refer to the relevant description of the first server or the first terminal in the express inquiry method shown in the embodiments of FIGS. 3-8. get.
  • the embodiment of the present disclosure also provides a device, which is used to execute the above-mentioned express inquiry method.
  • a device which is used to execute the above-mentioned express inquiry method.
  • Part or all of the above methods can be implemented by hardware, and can also be implemented by software or firmware.
  • the device may be a chip or an integrated circuit during specific implementation.
  • the express inquiry method in the foregoing embodiment when part or all of the express inquiry method in the foregoing embodiment is implemented by software or firmware, it may be implemented by a device provided in FIG. 13. As shown in Figure 13, the device may include:
  • Input device, output device, memory, and processor the processor in the device may be one or more, and one processor is taken as an example in FIG. 13).
  • the input device, the output device, the memory, and the processor may be connected through a bus or in other ways, wherein the connection through a bus is taken as an example in FIG. 13.
  • the processor when the machine executable instructions stored in the memory are called, the processor is used to execute the method steps executed by the first server, the first terminal, or the second server in the above-mentioned embodiments of FIG. 3 to FIG. 8.
  • the program of the above express inquiry method may be stored in the memory.
  • the memory can be a physically independent unit, or it can be integrated with the processor. This memory can also be used to store data.
  • the device may also only include a processor.
  • the memory for storing the program is located outside the device, and the processor is connected to the memory through a circuit or wire for reading and executing the program stored in the memory.
  • the processor may be a central processing unit (CPU), a network processor (NP), or a WLAN (Wireless Local Area Network) device.
  • CPU central processing unit
  • NP network processor
  • WLAN Wireless Local Area Network
  • the processor may further include a hardware chip.
  • the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
  • the memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory) , Hard disk drive (HDD) or solid-state drive (solid-state drive, SSD); the memory may also include a combination of the above types of memory.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • flash memory flash memory
  • HDD Hard disk drive
  • SSD solid-state drive
  • the disclosed system, device, and method may be implemented in other ways.
  • the division of the unit is only a logical function division.
  • multiple units or components can be combined or integrated into another system, or some features can be ignored or not. carried out.
  • the displayed or discussed mutual coupling, or direct coupling, or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer instructions can be sent from one website, computer, server, or data center to another via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) A website, computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium can be read-only memory (ROM), random access memory (RAM), or magnetic media, such as floppy disks, hard disks, magnetic tapes, magnetic disks, or optical media, for example, Digital versatile disc (DVD), or semiconductor media, for example, solid state disk (SSD), etc.

Abstract

An express query method, a server, and a terminal. The terminal sends an express query request to the server, wherein the express query request comprises first user face data obtained by the terminal; the server determines whether registered face data matching the first user face data exists in a face database corresponding to the terminal, wherein registered face data corresponding to multiple user accounts associated with the terminal are stored in the face database corresponding to the terminal, and different terminals correspond to different face databases; an express query response is sent to the terminal on the basis of the determined result.

Description

快递查询方法及服务器、终端Express query method, server and terminal 技术领域Technical field
本公开涉及快递技术领域,尤其涉及一种快递查询方法及服务器、终端。The present disclosure relates to the field of express delivery technology, and in particular to an express inquiry method, a server, and a terminal.
背景技术Background technique
随着人脸识别技术的提高,用户在快递终端取快递时,可以基于快递员在录入快递件时生成的取件码进行取件,然而,由于取件码需要从手机或者其他终端上获取,且难于记忆,因此用户在取件时需要随身携带手机等终端,且每个快递对应一个取件码,如果用户有多个待收取快递,需要输入多个取件码,流程较为繁琐,用户体验较差。With the improvement of face recognition technology, when users pick up the courier at the express terminal, they can pick up the package based on the pickup code generated by the courier when entering the courier. However, because the pickup code needs to be obtained from a mobile phone or other terminal, And it is difficult to remember, so users need to carry mobile phones and other terminals when picking up, and each courier corresponds to a pickup code. If the user has multiple couriers to be collected, they need to enter multiple pickup codes. The process is cumbersome and the user experience Poor.
发明内容Summary of the invention
本公开提供一种快递查询方法及服务器、终端。The present disclosure provides an express query method, server and terminal.
第一方面,提供了一种快递查询方法,所述方法包括:第一终端获取用户人脸图像;所述第一终端基于所述用户人脸图像,得到用户快递信息,其中,所述用户人脸图像用于确定所述第一终端对应的人脸数据库中是否存在匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库包括所述第一终端关联的多个用户账号的注册人脸数据,不同终端对应不同的人脸数据库。In a first aspect, an express query method is provided, the method includes: a first terminal obtains a user's face image; the first terminal obtains user express information based on the user's face image, wherein the user person The face image is used to determine whether there is matching registered face data in the face database corresponding to the first terminal, where the face database corresponding to the first terminal includes information about multiple user accounts associated with the first terminal. When registering face data, different terminals correspond to different face databases.
在一些实施例中,所述第一终端获取用户人脸图像,包括:所述第一终端响应于接收到来自于用户的快递查询指令,获取用户人脸图像;In some embodiments, acquiring the face image of the user by the first terminal includes: the first terminal acquires the face image of the user in response to receiving an express query instruction from the user;
在所述第一终端得到用户快递信息之后,所述方法还包括:所述第一终端显示所述用户快递信息。After the first terminal obtains the user courier information, the method further includes: the first terminal displays the user courier information.
在一些实施例中,所述第一终端基于所述用户人脸图像,得到用户快递信息,包括:所述第一终端在所述第一终端对应的人脸数据库中查询到与所述用户人脸图像匹配的注册人脸数据;所述第一终端基于所述匹配的注册人脸数据,得到用户快递信息。In some embodiments, the first terminal obtains user delivery information based on the user's face image, including: the first terminal searches a face database corresponding to the first terminal to be related to the user's face. The registered face data matched by the face image; the first terminal obtains the user express information based on the matched registered face data.
在一些实施例中,所述第一终端在所述第一终端对应的人脸数据库中查询到与所述用户人脸图像匹配的注册人脸数据,包括:所述第一终端对所述用户人脸图像进行特征提取,得到所述用户人脸图像的特征数据;所述第一终端确定所述用户人脸图像的特征数据与所述第一终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;所述第一终端基于所述相似度,确定所述第一终端对应的人脸数据库中是否存在与所述用户人脸图像匹配的注册人脸数据。In some embodiments, the first terminal inquiring in the face database corresponding to the first terminal the registered face data that matches the face image of the user includes: the first terminal responds to the user The feature extraction of the face image is performed to obtain the feature data of the user's face image; the first terminal determines that the feature data of the user's face image corresponds to the multiple registrations stored in the face database corresponding to the first terminal The degree of similarity between face data; the first terminal determines, based on the degree of similarity, whether there is registered face data matching the user's face image in the face database corresponding to the first terminal.
在一些实施例中,所述第一终端基于所述匹配的注册人脸数据,得到用户快递信息,包括:所述第一终端确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;所述第一终端基于所述用户账号信息,得到用户快递信息。In some embodiments, the first terminal obtaining user express information based on the matched registered face data includes: the first terminal determines the user account corresponding to the matched registered face data in the account database Information; the first terminal obtains user express information based on the user account information.
在一些实施例中,所述第一终端基于所述用户人脸图像,得到用户快递信息,包括:所述第一终端向第一服务器发送快递查询请求,其中所述快递查询请求包括基于所述用户人脸图像得到的第一用户人脸数据,其中,所述第一用户人脸数据用于所述第一服务器确定所述第一终端对应的人脸数据库中是否存在匹配的注册人脸数据;所述第一终端接收所述第一服务器反馈的快递查询响应,所述快递查询响应包括所述用户快递信息。In some embodiments, the first terminal obtaining user express information based on the user's face image includes: the first terminal sends an express inquiry request to the first server, wherein the express inquiry request includes an express inquiry request based on the The first user's face data obtained from the user's face image, where the first user's face data is used by the first server to determine whether there is matching registered face data in the face database corresponding to the first terminal The first terminal receives the express inquiry response fed back by the first server, the express inquiry response including the user express information.
在一些实施例中,所述方法还包括:在所述第一终端确定基于所述用户人脸图像的人脸查询失败的情况下,所述第一终端获取用户输入的账号信息,其中,所述账号信息在账号数据库中对应的绑定人脸信息用于同步所述第一终端对应的人脸数据库,所述账号数据库包括多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。In some embodiments, the method further includes: in a case where the first terminal determines that the face query based on the user's face image fails, the first terminal obtains account information input by the user, wherein The binding face information corresponding to the account information in the account database is used to synchronize the face database corresponding to the first terminal, and the account database includes account information of multiple user accounts associated with multiple terminals and corresponding bindings Face information.
在一些实施例中,所述方法还包括:所述第一终端向第一服务器发送所述用户输入的账号信息,其中,所述账号信息用于所述第一服务器查找对应的绑定人脸信息并基于所述对应的绑定人脸信息同步所述第一终端对应的人脸数据库。In some embodiments, the method further includes: the first terminal sends the account information input by the user to the first server, wherein the account information is used by the first server to find the corresponding bound face And synchronize the face database corresponding to the first terminal based on the corresponding bound face information.
在一些实施例中,所述方法还包括:所述第一终端在所述账号数据库中查询所述账号信息对应的绑定人脸信息;所述第一终端基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库。In some embodiments, the method further includes: the first terminal queries the bound face information corresponding to the account information in the account database; the first terminal is based on the corresponding bound face information Information, update the face database corresponding to the first terminal.
在一些实施例中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息;和/或In some embodiments, the user courier information includes at least one of the following: information about waiting for pickup of the user account and information about waiting for pickup of at least one other account that authorizes the user account; and/or
所述第一终端关联的多个用户账号包括在所述第一终端注册的第一用户账号以及未在所述第一终端注册但在所述第一终端进行过快递查询的第二用户账号,其中,所述第一终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。The multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a second user account that is not registered at the first terminal but has made an express inquiry at the first terminal, Wherein, the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information of the second user account registered in the second terminal.
在一些实施例中,所述方法还包括:所述第一终端确定目标广告,其中,所述目标广告是基于所述用户人脸图像、用户账号信息和所述用户快递信息中的至少一项得到的;所述第一终端显示所述目标广告。In some embodiments, the method further includes: the first terminal determines a target advertisement, wherein the target advertisement is based on at least one of the user's face image, user account information, and the user express information Obtained; the first terminal displays the target advertisement.
在一些实施例中,所述第一终端显示所述目标广告,包括:所述第一终端在所述用户快递信息的显示界面显示所述目标广告。In some embodiments, displaying the target advertisement on the first terminal includes: the first terminal displaying the target advertisement on a display interface of the user express information.
第二方面,提供了一种快递查询方法,该方法包括:第一服务器接收第一终端发送的快递查询请求,所述快递查询请求包括所述第一终端获取的第一用户人脸数据;所述第一服务器确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;所述第一服务器基于所述确定的结果,向所述第一终端发送快递查询响应。In a second aspect, an express query method is provided, the method includes: a first server receives an express query request sent by a first terminal, the express query request includes the first user's face data obtained by the first terminal; The first server determines whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores the The registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases; the first server sends an express query response to the first terminal based on the result of the determination .
在一些实施例中,所述第一服务器确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,包括:所述第一服务器基于所述快递查询请求,向第二服务器发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二服务器在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;所述第一服务器接收所述第二服务器返回的人脸查询响应,所述人脸查询响应指示所述查询的结果。In some embodiments, the first server determining whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal includes: the first server is based on the face data of the first user. In the express query request, a face query request is sent to a second server, where the face query request is used to request the second server to query the face database corresponding to the first terminal with the first user Registered face data matching the face data; the first server receives the face query response returned by the second server, and the face query response indicates the result of the query.
在一些实施例中,所述人脸查询请求包括所述第一终端的终端标识信息和第二用户人脸数据,所述第二用户人脸数据是基于所述第一用户人脸数据得到的;和/或在所述查询得到与所述第一用户人脸数据匹配的注册人脸数据的情况下,所述人脸查询响应包括所述匹配的注册人脸数据对应的第二人脸标识信息。In some embodiments, the face query request includes terminal identification information of the first terminal and second user face data, and the second user face data is obtained based on the first user face data And/or in the case where the query obtains registered face data matching the face data of the first user, the face query response includes a second face identifier corresponding to the matched registered face data information.
在一些实施例中,所述第一终端关联的多个用户账号包括在所述第一终端注册的第一用户账号以及未在所述第一终端注册但在所述第一终端进行过快递查询的第二用户账号,其中,所述第一终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。In some embodiments, the multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a first user account not registered at the first terminal but an express inquiry has been performed at the first terminal The second user account, wherein the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information registered by the second user account at the second terminal of.
在一些实施例中,所述注册人脸数据包括注册人脸图像和/或注册人脸图像的特征数据;和/或所述第一用户人脸数据包括用户人脸图像和所述用户人脸图像的特征数据中的至少一项。In some embodiments, the registered face data includes registered face images and/or characteristic data of the registered face images; and/or the first user face data includes the user face image and the user face At least one item of feature data of the image.
在一些实施例中,所述第一服务器确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,包括:所述第一服务器确定所述第一用户人脸数据与所述第一终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;所述第一服务器基于所述相似度,确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据。In some embodiments, the first server determining whether there is registered facial data matching the facial data of the first user in the facial database corresponding to the first terminal includes: the first server determining the facial data The similarity between the face data of the first user and the multiple pieces of registered face data stored in the face database corresponding to the first terminal; the first server determines the first terminal based on the similarity Whether there is registered face data matching the face data of the first user in the corresponding face database.
在一些实施例中,所述第一服务器基于所述确定的结果,向所述第一终端发送快递查询响应,包括:响应于确定所述第一终端对应的人脸数据库中不存在与所述第一用户人脸数据匹配的注册人脸数据,所述第一服务器向所述第一终端发送快递查询响应,所述快递查询响应指示人脸查询失败。In some embodiments, the first server sending an express query response to the first terminal based on the result of the determination includes: responding to determining that the face database corresponding to the first terminal does not exist in the face database corresponding to the For the registered face data matching the face data of the first user, the first server sends an express query response to the first terminal, and the express query response indicates that the face query failed.
在一些实施例中,所述方法还包括:所述第一服务器从所述第一终端获取用户输入的账号信息;所述第一服务器确定所述账号信息对应的绑定人脸信息,其中,所述对应的绑定人脸信息用于同步所述第一终端对应的人脸数据库。In some embodiments, the method further includes: the first server obtains the account information input by the user from the first terminal; the first server determines the bound face information corresponding to the account information, wherein: The corresponding bound face information is used to synchronize the face database corresponding to the first terminal.
在一些实施例中,所述第一服务器确定所述账号信息对应的绑定人脸信息,包括:所述第一服务器在账号数据库中查询所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述第一服务器连接的多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。In some embodiments, the first server determining the bound face information corresponding to the account information includes: the first server queries the account database for the bound face information corresponding to the account information, where: The account database stores account information of multiple user accounts associated with multiple terminals connected to the first server and corresponding bound face information.
在一些实施例中,所述账号信息包括手机号。In some embodiments, the account information includes a mobile phone number.
在一些实施例中,所述方法还包括:所述第一服务器基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库。In some embodiments, the method further includes: the first server updates the face database corresponding to the first terminal based on the corresponding bound face information.
在一些实施例中,所述方法还包括:所述第一服务器向第二服务器发送数据同步请求,所述数据同步请求用于请求所述第二服务器基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库;所述第一服务器接收所述第二服务器发送的数据同步响应,所述数据同步响应包括所述对应的绑定人脸信息在同步后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息。In some embodiments, the method further includes: the first server sends a data synchronization request to the second server, the data synchronization request is used to request the second server to update based on the corresponding bound face information The face database corresponding to the first terminal; the first server receives a data synchronization response sent by the second server, and the data synchronization response includes the first synchronized face information of the corresponding bound face information The first face identification information corresponding to the face database corresponding to a terminal.
在一些实施例中,所述方法还包括:所述第一服务器获取所述对应的绑定人脸信息在同步后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;所述第一服务器在所述账号数据库中存储所述账号信息和所述第一人脸标识信息之间的对应关系。In some embodiments, the method further includes: the first server acquiring the first face identification information corresponding to the corresponding bound face information in the face database corresponding to the first terminal after synchronization The first server stores the correspondence between the account information and the first face identification information in the account database.
在一些实施例中,所述第一服务器基于所述确定的结果,向所述第一终端发送快递查询响应,包括:响应于确定所述第一终端对应的人脸数据库中存在与所述第一用户人脸数据匹配的注册人脸数据,所述第一服务器基于所述匹配的注册人脸数据对应的第二人脸标识信息查询账号数据库,得到与所述第二人脸标识信息对应的用户账号信息。In some embodiments, the first server sending an express query response to the first terminal based on the result of the determination includes: responding to determining that the face database corresponding to the first terminal exists in the face database corresponding to the first terminal. A registered face data matched by the user's face data, the first server queries the account database based on the second face identification information corresponding to the matched registered face data, and obtains the information corresponding to the second face identification information User account information.
在一些实施例中,所述方法还包括:所述第一服务器基于所述用户账号信息,确定用户快递信息。In some embodiments, the method further includes: the first server determining user delivery information based on the user account information.
在一些实施例中,所述第一服务器基于所述用户账号信息,确定用户快递信息,包括:所述第一服务器向第三服务器发送所述用户账号信息;所述第一服务器接收来自于所述第三服务器的所述用户账号信息对应的用户快递信息。In some embodiments, the first server to determine user delivery information based on the user account information includes: the first server sends the user account information to the third server; the first server receives the information from the User courier information corresponding to the user account information of the third server.
在一些实施例中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息。In some embodiments, the user courier information includes at least one of the following: information about waiting for pickup of the user account and information about waiting for pickup of at least one other account that authorizes the user account.
在一些实施例中,所述方法还包括:所述第一服务器基于所述确定的结果,确定目标广告;所述第一服务器向所述第一终端发送目标指令和/或目标广告;所述目标指令用于指示所述第一终端播放所述目标广告。In some embodiments, the method further includes: the first server determines a target advertisement based on a result of the determination; the first server sends a target instruction and/or a target advertisement to the first terminal; the The target instruction is used to instruct the first terminal to play the target advertisement.
在一些实施例中,所述第一服务器基于所述确定的结果,确定所述目标广告包括:所述第一服务器根据所述第一用户人脸数据对应的用户账号信息的至少一个历史快递的信息,确定所述目标广告。In some embodiments, the first server determining the target advertisement based on the result of the determination includes: the first server according to at least one historical express delivery of user account information corresponding to the first user's face data Information to determine the target advertisement.
第三方面,提供了一种快递查询方法,所述方法包括:第二服务器接收第一服务器发送的人脸查询请求,所述人脸查询请求包括第一终端的终端标识信息和第二用户人脸数据,其中,所述第二用户人脸数据是基于所述第一终端向所述第一服务器发送的快递查询请求中携带的第一用户人脸数据得到的;所述第二服务器在所述第一终端对应的人脸数据库中查询与所述第二用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;所述第二服务器基于所述查询的结果,向所述第一服务器发送人脸查询响应。在一些实施例中,所述人脸数据库包括多份注册人脸数据以及所述多份注册人脸数据对应的人脸标识信息。In a third aspect, an express query method is provided, the method includes: a second server receives a face query request sent by a first server, and the face query request includes terminal identification information of the first terminal and the second user person. Face data, wherein the face data of the second user is obtained based on the face data of the first user carried in the express inquiry request sent by the first terminal to the first server; The face database corresponding to the first terminal searches for registered face data matching the face data of the second user, wherein the face database corresponding to the first terminal stores multiple data associated with the first terminal The registered face data corresponding to the user account, and different terminals correspond to different face databases; the second server sends a face query response to the first server based on the result of the query. In some embodiments, the face database includes multiple pieces of registered face data and face identification information corresponding to the multiple pieces of registered face data.
在一些实施例中,所述第二服务器基于所述查询的结果,向所述第一服务器发送人脸查询响应,包括:响应于查询得到所述第一终端对应的人脸数据库中不存在与所述第二用户人脸数据匹配的注册人脸数据,所述第二服务器向所述第一服务器发送人脸查询响应,所述人脸查询响应指示人脸查询失败。In some embodiments, the second server sends a face query response to the first server based on the result of the query, including: obtaining that the face database corresponding to the first terminal does not exist and does not exist in the face database corresponding to the first terminal in response to the query. For the registered face data matching the face data of the second user, the second server sends a face query response to the first server, and the face query response indicates that the face query failed.
在一些实施例中,所述方法还包括:所述第二服务器接收所述第一服务器发送的数据同步请求,所述数据同步请求包括绑定人脸信息;所述第二服务器基于所述绑定人脸信息,更新所述第一终端对应的人脸数据库。In some embodiments, the method further includes: the second server receives a data synchronization request sent by the first server, the data synchronization request includes binding face information; the second server is based on the binding Determine the face information, and update the face database corresponding to the first terminal.
在一些实施例中,所述第二服务器基于所述绑定人脸信息,更新所述第一终端对应的人脸数据库,包括:所述第二服务器获得所述绑定人脸信息对应的注册人脸数据以及第一人脸标识信息;所述第二服务器在所述第一终端对应的人脸数据库中存储所述绑定人脸信息对应的注册人脸数据以及所述第一人脸标识信息。所述方法还包括:所述第二服务器向所述第一服务器发送数据同步响应,所述数据同步响应包括所述第一人脸标识信息。In some embodiments, the second server updating the face database corresponding to the first terminal based on the bound face information includes: the second server obtains the registration corresponding to the bound face information Face data and first face identification information; the second server stores the registered face data corresponding to the bound face information and the first face identification in the face database corresponding to the first terminal information. The method further includes: the second server sending a data synchronization response to the first server, the data synchronization response including the first face identification information.
在一些实施例中,所述第二服务器基于所述查询的结果,向所述第一服务器发送人脸查询响应,包括:响应于查询得到所述第一终端对应的人脸数据库中存在与所述第二用户人脸数据匹配的注册人脸数据,所述第二服务器向所述第一服务器发送人脸查询响应,所述人脸查询响应包括与所述匹配的注册人脸数据对应的第二人脸标识信息。In some embodiments, the second server sends a face query response to the first server based on the result of the query, including: obtaining, in response to the query, the presence and all of the faces in the face database corresponding to the first terminal. For the registered face data matching the face data of the second user, the second server sends a face query response to the first server, and the face query response includes the first face data corresponding to the matched registered face data. Two face identification information.
第四方面,提供了一种快递查询方法,所述方法包括:第一设备获取用户在第一终端的输入信息,所述输入信息用于进行快递查询;所述第一设备基于所述输入信息,确定用户快递信息,其中,所述输入信息包括第一用户人脸数据,所述用户快递信息是基于与所述第一用户人脸数据匹配的、所述用户在第二终端注册的人脸信息查询得到的,或者,所述输入信息包括账号信息,所述账号信息用于查找所述用户在第二终端注册的人脸信息,并基于所述注册的人脸信息同步所述第一终端对应的人脸数据库,其中,所述第一终端和所述第二终端对应不同的人脸数据库。In a fourth aspect, an express query method is provided, the method includes: a first device obtains user input information at a first terminal, the input information is used for express query; the first device is based on the input information , Determine the user's express information, wherein the input information includes the first user's face data, and the user's express information is based on the face data that matches the first user's face data and the user's registered face in the second terminal Obtained from information query, or, the input information includes account information, and the account information is used to look up the face information registered by the user at the second terminal, and synchronize the first terminal based on the registered face information The corresponding face database, wherein the first terminal and the second terminal correspond to different face databases.
在一些实施例中,在所述输入信息包括第一用户人脸数据的情况下,所述第一设备基于所述输入信息,确定用户快递信息,包括:所述第一设备确定所述第一终端对应的人脸数据库中与所述第一用户人脸数据匹配的注册人脸数据;所述第一设备基于所述匹配的注册人脸数据,得到所述用户快递信息。In some embodiments, in a case where the input information includes the face data of the first user, the first device determining the user delivery information based on the input information includes: the first device determines the first The registered face data that matches the face data of the first user in the face database corresponding to the terminal; the first device obtains the user express information based on the matched registered face data.
在一些实施例中,所述第一设备基于所述匹配的注册人脸数据,得到所述用户快递信息,包括:所述第一设备确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;所述第一设备基于所述对应的用户账号信息,得到所述用户快递信息。In some embodiments, the first device to obtain the user express information based on the matched registered face data includes: the first device determines that the account database corresponds to the matched registered face data User account information; the first device obtains the user express information based on the corresponding user account information.
在一些实施例中,所述第一设备确定所述第一终端对应的人脸数据库中与所述第一用户人脸数据匹配的注册人脸数据,包括:所述第一设备向第二设备发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二设备在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;所述第一设备接收所述第二设备返回的人脸查询响应,所述人脸查询响应指示所述查询到的所述匹配的注册人脸数据。In some embodiments, the determining, by the first device, the registered face data that matches the face data of the first user in the face database corresponding to the first terminal includes: the first device sends the registered face data to the second device Sending a face query request, where the face query request is used to request the second device to query the face database corresponding to the first terminal for registered face data matching the face data of the first user The first device receives the face query response returned by the second device, and the face query response indicates the matched registered face data that is queried.
在一些实施例中,在所述输入信息包括账号信息的情况下,所述方法还包括:所述第一设备确定账号数据库中与所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述第一设备连接的多个终端所关联的多个用户账号的账号信息和绑定人脸信息;所述第一设备基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库,或者,请求第二设备基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库。In some embodiments, when the input information includes account information, the method further includes: the first device determining bound face information corresponding to the account information in the account database, wherein the The account database stores account information and bound face information of multiple user accounts associated with multiple terminals connected to the first device; the first device updates the bound face information based on the corresponding bound face information The face database corresponding to the first terminal, or the second device is requested to update the face database corresponding to the first terminal based on the corresponding bound face information.
在一些实施例中,所述方法还包括:所述第一设备获取所述对应的绑定人脸信息在更新后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;所述第一设备在所述账号数据库存储所述账号信息和所述第一人脸标识信息之间的对应关系。In some embodiments, the method further includes: the first device acquiring first face identification information corresponding to the corresponding bound face information in the updated face database corresponding to the first terminal The first device stores the correspondence between the account information and the first face identification information in the account database.
在一些实施例中,所述第一设备获取用户在第一终端的输入信息,包括:所述第一设备通过图像采集,得到所述用户的第一用户人脸数据;或者所述第一设备接收所述第一终端发送的快递查询请求,所述快递查询请求携带所述输入信息。In some embodiments, the acquiring, by the first device, the input information of the user at the first terminal includes: the first device obtains the first user face data of the user through image collection; or the first device Receiving an express inquiry request sent by the first terminal, where the express inquiry request carries the input information.
第五方面,提供了一种服务器,该服务器包括:收发模块和确定模块;其中:In a fifth aspect, a server is provided, the server includes: a transceiver module and a determining module; wherein:
收发模块,用于接收第一终端发送的快递查询请求,所述快递查询请求包括所述第一终端获取的第一用户人脸数据;A transceiver module, configured to receive an express inquiry request sent by a first terminal, where the express inquiry request includes the face data of the first user acquired by the first terminal;
确定模块,用于确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;The determining module is configured to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores The registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
所述收发模块,还用于基于所述确定的结果,向所述第一终端发送快递查询响应。The transceiver module is further configured to send an express query response to the first terminal based on the result of the determination.
第六方面,提供了一种服务器,包括:收发模块和查询模块;其中:In a sixth aspect, a server is provided, including: a transceiver module and a query module; wherein:
收发模块,用于接收第一服务器发送的人脸查询请求,所述人脸查询请求包括第一终端的终端标识信息和第二 用户人脸数据,其中,所述第二用户人脸数据是基于所述第一终端向所述第一服务器发送的快递查询请求中携带的第一用户人脸数据得到的;The transceiver module is configured to receive a face query request sent by the first server. The face query request includes the terminal identification information of the first terminal and the face data of the second user, wherein the face data of the second user is based on Obtained by the first user's face data carried in the express query request sent by the first terminal to the first server;
查询模块,用于在所述第一终端对应的人脸数据库中查询与所述第二用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;The query module is configured to query the registered face data matching the face data of the second user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores the Registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
所述收发模块,还用于基于所述查询的结果,向所述第一服务器发送人脸查询响应。The transceiver module is further configured to send a face query response to the first server based on the result of the query.
第七方面,提供了一种终端,包括:获取模块和快递信息得到模块;其中:In a seventh aspect, a terminal is provided, including: an obtaining module and an express information obtaining module; wherein:
所述获取模块,用于获取用户人脸图像;The acquisition module is used to acquire a user's face image;
所述快递信息得到模块,用于基于所述用户人脸图像,得到用户快递信息,其中,所述用户人脸图像用于确定所述终端对应的人脸数据库中是否存在匹配的注册人脸数据,其中,所述终端对应的人脸数据库包括所述终端关联的多个用户账号的注册人脸数据,不同终端对应不同的人脸数据库。The express information obtaining module is configured to obtain user express information based on the user face image, wherein the user face image is used to determine whether there is matching registered face data in the face database corresponding to the terminal Wherein, the face database corresponding to the terminal includes registered face data of multiple user accounts associated with the terminal, and different terminals correspond to different face databases.
第八方面,提供了一种设备,包括:获取模块和确定模块;其中:In an eighth aspect, a device is provided, including: an acquisition module and a determination module; wherein:
获取模块,用于获取用户在第一终端的输入信息,所述输入信息用于进行快递查询;The obtaining module is used to obtain the input information of the user in the first terminal, and the input information is used for express inquiry;
确定模块,用于基于所述输入信息,确定用户快递信息,其中,所述输入信息包括第一用户人脸数据,所述用户快递信息是基于与所述第一用户人脸数据匹配的、所述用户在第二终端注册的人脸信息查询得到的,或者,所述输入信息包括账号信息,所述账号信息用于查找所述用户在第二终端注册的人脸信息,并基于所述注册的人脸信息同步所述第一终端对应的人脸数据库,其中,所述第一终端和所述第二终端对应不同的人脸数据库。The determining module is configured to determine the user express information based on the input information, wherein the input information includes the first user's face data, and the user express information is based on a match with the first user's face data. The face information registered by the user at the second terminal is obtained by querying, or the input information includes account information, and the account information is used to search for the face information registered by the user at the second terminal, and based on the registration. The face information of is synchronized with the face database corresponding to the first terminal, where the first terminal and the second terminal correspond to different face databases.
第九方面,提供了一种装置,所述装置包括:至少一个处理器和存储有机器可执行指令的存储器;其中,当调用所述机器可执行指令时,所述至少一个处理器用于执行上述第一方面至第四方面任一方面所述的方法。In a ninth aspect, a device is provided, the device comprising: at least one processor and a memory storing machine-executable instructions; wherein, when the machine-executable instructions are called, the at least one processor is used to execute the foregoing The method described in any one of the first aspect to the fourth aspect.
第十方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面至第四方面任一方面所述的方法。In a tenth aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute any of the above-mentioned aspects of the first to fourth aspects. Methods.
第十一方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面至第四方面任一方面所述的方法。In an eleventh aspect, a computer program product containing instructions is provided, which when run on a computer, causes the computer to execute the method described in any one of the first to fourth aspects.
附图说明Description of the drawings
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是示例的一种快递查询场景示意图;Figure 1 is a schematic diagram of an exemplary express query scenario;
图2是本公开涉及的一种快递查询系统的示例性的结构示意图;Fig. 2 is an exemplary structural diagram of an express query system related to the present disclosure;
图3是本公开一些实施例提供的一种快递查询方法的流程示意图;FIG. 3 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure;
图4是本公开一些实施例提供的一种快递查询方法的流程示意图;FIG. 4 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure;
图5A是本公开一些实施例提供的一种快递查询方法的流程示意图;FIG. 5A is a schematic flowchart of an express query method provided by some embodiments of the present disclosure;
图5B是本公开一些实施例提供的一种快递查询方法的流程示意图;FIG. 5B is a schematic flowchart of an express query method provided by some embodiments of the present disclosure;
图6是本公开一些实施例提供的一种快递查询方法的流程示意图;FIG. 6 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure;
图7是本公开一些实施例提供的一种快递查询方法的流程示意图;FIG. 7 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure;
图8是本公开一些实施例提供的一种快递查询方法的流程示意图;FIG. 8 is a schematic flowchart of an express query method provided by some embodiments of the present disclosure;
图9是本公开一些实施例提供的一种服务器的结构示意图;FIG. 9 is a schematic structural diagram of a server provided by some embodiments of the present disclosure;
图10是本公开一些实施例提供的一种服务器的结构示意图;FIG. 10 is a schematic structural diagram of a server provided by some embodiments of the present disclosure;
图11是本公开一些实施例提供的一种终端的结构示意图;FIG. 11 is a schematic structural diagram of a terminal provided by some embodiments of the present disclosure;
图12是本公开一些实施例提供的一种设备的结构示意图;FIG. 12 is a schematic structural diagram of a device provided by some embodiments of the present disclosure;
图13是本公开一些实施例提供的一种装置的结构示意图。FIG. 13 is a schematic structural diagram of a device provided by some embodiments of the present disclosure.
具体实施方式detailed description
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
为了方便人们收取快递,一般会在用户所在地的区域内设置存取快递的快递仓库,该快递仓库供该区域内的用户存取快递。如图1所示,图1是示例的一种快递查询场景示意图,用户可以通过在快递终端(以下简称“终端”)输入取件码取件,其中,快递终端可以设置于快递仓库上或者独立于快递仓库设置。然而,用户输入取件码取件,首先需要打开手机等手持终端获取取件码,然后再在快递终端手动输入取件码。取件过程相对繁琐,用户体验有待进一步提高。In order to facilitate people to collect express delivery, a courier warehouse is generally set up in the area where the user is located, and the express warehouse is for users in the area to access the express. As shown in Figure 1, Figure 1 is a schematic diagram of an exemplary express query scenario. The user can pick up the shipment by entering the pickup code in the express terminal (hereinafter referred to as the "terminal"), where the express terminal can be set on the express warehouse or independently Set up in the express warehouse. However, when a user enters a pickup code to pick up a shipment, he first needs to open a handheld terminal such as a mobile phone to obtain the pickup code, and then manually enter the pickup code at the express terminal. The pickup process is relatively cumbersome, and the user experience needs to be further improved.
本公开实施例提供快递查询和取件技术方案。在本公开实施例中,可以基于人脸进行快递查询和取件。具体地,系统包含一个或多个服务器以及快递终端,并且设置有用于人脸查询的人脸数据库,人脸数据库存储有用户的人脸数据,例如人脸图像和/或人脸特征或属性信息,其中,不同的终端可以对应不同的人脸数据库,相应地,每个终端对应的人脸数据库可以存储有该终端关联的多个用户账号的注册人脸数据,例如注册人脸图像或注册人脸属性信息。所述第一终端关联的多个账号包括在所述第一终端注册的至少一个账号,在一些实施例中,第一终端关联的多个账号还包括在第一终端进行过快递查询的至少一个账号。例如,对于已经在其他终端(如第二终端)注册的账号,在第一终端进行快递查询过程中,通过数据同步将账号信息同步到所述第一终端。The embodiments of the present disclosure provide technical solutions for express inquiry and pickup. In the embodiment of the present disclosure, express query and pickup can be performed based on the face. Specifically, the system includes one or more servers and express terminals, and is provided with a face database for face query. The face database stores the user's face data, such as face images and/or face features or attribute information , Where different terminals can correspond to different face databases, and correspondingly, the face database corresponding to each terminal can store the registered face data of multiple user accounts associated with the terminal, such as registered face images or registered persons Face attribute information. The multiple accounts associated with the first terminal include at least one account registered in the first terminal. In some embodiments, the multiple accounts associated with the first terminal further include at least one account that has been inquired about express delivery on the first terminal. account number. For example, for an account that has been registered in another terminal (such as a second terminal), in the process of express inquiry by the first terminal, the account information is synchronized to the first terminal through data synchronization.
在用户通过某个终端进行快递查询时,终端采集用户人脸图像,例如,终端接收到用户输入的快递查询指令,其中,用户可以通过点击按钮或界面控件进行指令的输入,或者,终端检测到人物的靠近或出现,或者通过固定时间间隔或其他触发条件,启动人脸图像的采集。在一些实施例中,在采集人脸图像的过程中,终端还可以向用户发出一种或多种提示信息,例如,请将脸部置于屏幕的人脸框内,请靠近屏幕,请注视摄像头等等,并采集视频流或者一个或多个人脸图像。在一些实施例中,终端还可以对采集到的多个人脸图像进行选帧,例如基于图像质量、人脸质量、人脸角度等一种或多种因素,从采集到的多个人脸图像中选择用户人脸图像。When a user makes an express inquiry through a terminal, the terminal collects the user’s face image. For example, the terminal receives an express inquiry instruction input by the user. The user can input the instruction by clicking a button or interface control, or the terminal detects The approach or appearance of a person, or through a fixed time interval or other trigger conditions, initiates the collection of facial images. In some embodiments, during the process of collecting the face image, the terminal may also send one or more prompt messages to the user. For example, please put your face in the face frame of the screen, please approach the screen, please watch Cameras, etc., and collect video streams or one or more facial images. In some embodiments, the terminal may also select frames for multiple collected face images, for example, based on one or more factors such as image quality, face quality, face angle, etc., from the multiple collected face images Select the user's face image.
在本公开实施例中,基于人脸的快递查询功能可以设置在终端侧,或者设置在服务器侧。以基于人脸的快递查询功能设置在服务器侧为例,该终端可以向服务器发送快递查询请求,该快递查询请求包括该终端获取的用户人脸图像和/或基于用户人脸图像得到的人脸属性信息;服务器在接收到快递查询请求后,可以确定用户是否曾经在该终端上激活(如注册)或者使用过人脸查询功能,例如,确定该终端对应的人脸数据库中是否存在与上述用户人脸图像匹配的注册人脸数据,这样,与针对服务器连接的多个终端建立统一的人脸数据库相比,能够降低匹配的数据量,从而提高查询效率。In the embodiment of the present disclosure, the express query function based on the face can be set on the terminal side or on the server side. Taking the face-based express query function set on the server side as an example, the terminal may send an express query request to the server. The express query request includes the user's face image obtained by the terminal and/or the face obtained based on the user's face image Attribute information; after receiving the express query request, the server can determine whether the user has ever activated (such as registered) or used the face query function on the terminal, for example, to determine whether the face database corresponding to the terminal exists with the above user The registered face data matched by the face image can reduce the amount of matched data compared with the establishment of a unified face database for multiple terminals connected to the server, thereby improving the query efficiency.
在一些实施例中,如果该终端对应的人脸数据库中存在与上述用户人脸图像匹配的注册人脸数据,即用户注册人脸数据,则服务器可以基于该用户注册人脸数据确定用户账号,进而进行快递的查询并返回快递查询结果。In some embodiments, if the face database corresponding to the terminal contains registered face data that matches the aforementioned user's face image, that is, the user's registered face data, the server may determine the user account based on the user's registered face data, And then make the express query and return the express query result.
在另一些实施例中,如果该终端对应的人脸数据库中不存在上述用户注册人脸数据,则表明用户未曾在该终端注册或使用过人脸查询功能,服务器可以指示终端上报用户的账号信息,并基于接收到的用户的账号信息,例如手机号、邮箱或者账号名等信息,进行快递查询,并且确认用户是否在其他终端注册过人脸。In other embodiments, if the aforementioned user-registered face data does not exist in the face database corresponding to the terminal, it indicates that the user has not registered with the terminal or used the face query function, and the server can instruct the terminal to report the user's account information , And based on the received user’s account information, such as mobile phone number, email address or account name, etc., perform express query and confirm whether the user has registered a face on other terminals.
在一些实施例中,该系统还设置有账号数据库,该账号数据库存储有用户的账号信息和与账号信息对应的绑定人脸信息,其中,可选地,针对一个服务器可以设置一个账号数据库,用于存储该服务器连接的多个终端的所有账号信息以及对应的绑定人脸信息。在一个示例中,绑定人脸信息可以包括注册人脸数据,例如一个或多个注册人脸图像和/或注册人脸图像的特征数据,或者还进一步包括注册人脸数据在至少一个终端对应的人脸数据库中对应的人脸标识信息。此时,服务器可以基于接收到的用户的账号信息,查找账号数据库,以确定账号数据库中是否存在与该用户的账号信息对应的绑定人脸信息,并基于查找到的绑定人脸信息同步本次查询的终端的人脸数据库,无需用户在本次查询的终端再次注册,从而提高用户体验。其中,该数据同步可以自动进行而用户无感知,或者在进行数据同步之前可以确认用户是否同意进行数据同步,并在得到用户的同意后进行数据同步,本公开实施例对此不做限定。In some embodiments, the system is also provided with an account database. The account database stores user account information and bound face information corresponding to the account information. Optionally, one account database can be set for one server. It is used to store all the account information of multiple terminals connected to the server and the corresponding bound face information. In an example, the bound face information may include registered face data, such as one or more registered face images and/or characteristic data of the registered face images, or may further include the registered face data corresponding to at least one terminal. The corresponding face identification information in the face database. At this time, the server can search the account database based on the received user's account information to determine whether there is bound face information corresponding to the user's account information in the account database, and synchronize based on the searched bound face information The face database of the terminal that is queried this time does not require the user to register again on the terminal that is queried this time, thereby improving user experience. The data synchronization can be performed automatically without the user's perception, or the user can confirm whether the user agrees to the data synchronization before the data synchronization is performed, and perform the data synchronization after obtaining the user's consent, which is not limited in the embodiment of the present disclosure.
采用本公开实施例的方案,可以使得用户无需在每个终端注册人脸数据,服务器可以将其它终端对应的人脸数据库中的注册人脸数据同步到该终端对应的人脸数据库中,从而用户只需在一个终端注册一次人脸,便可在服务器连接的任一终端通过人脸获取快递信息,极大地方便了用户。By adopting the solution of the embodiment of the present disclosure, the user does not need to register the face data in each terminal, and the server can synchronize the registered face data in the face database corresponding to other terminals to the face database corresponding to the terminal, so that the user You only need to register a face once on a terminal, and you can obtain express delivery information through the face on any terminal connected to the server, which greatly facilitates users.
在本公开一些实施例中,可以在网络侧设置一个或多个服务器,例如,可以设置一个服务器,该服务器用于进行人脸查询、账号查询和快递查询。再例如,可以设置两个服务器,其中一个服务器用于进行人脸查询和账号查询,另一个服务器进行快递查询,或者,其中一个服务器进行人脸查询,另一个服务器用于进行账号查询和快递查询,等等。再例如,可以设置三个服务器,分别用于进行账号查询、人脸查询和快递查询,本公开实施例对此不做限定。In some embodiments of the present disclosure, one or more servers may be set on the network side, for example, a server may be set, and the server may be used for face query, account query, and express query. For another example, two servers can be set up, one server is used for face query and account query, the other server is used for express query, or one server is used for face query, and the other server is used for account query and express query ,and many more. For another example, three servers may be set up for account query, face query, and express query, which are not limited in the embodiment of the present disclosure.
图2是本公开涉及的一种快递查询系统的示例性结构示意图,其中,该示例性的系统包含多个快递终端(例如快递一体机)、第一服务器(例如快递一体机服务器)和第二服务器(例如人脸查询服务器),其中,图2示例性地画出了终端A和终端B,但本公开实施例对终端的数量不做限定。2 is a schematic diagram of an exemplary structure of an express inquiry system related to the present disclosure, where the exemplary system includes multiple express terminals (for example, express all-in-one), a first server (for example, express all-in-one server), and a second A server (for example, a face query server), wherein FIG. 2 exemplarily shows terminal A and terminal B, but the embodiment of the present disclosure does not limit the number of terminals.
终端A和终端B用于与用户交互,进行图像采集、接收用户指令和信息显示等等。终端A和终端B与第一服务器通信连接。Terminal A and Terminal B are used to interact with users, collect images, receive user instructions and display information, and so on. Terminal A and terminal B are in communication connection with the first server.
在一些实施例中,第一服务器用于账号管理,并设置有账号数据库,其中,该账号数据库存储有第一服务器管理的多个用户账号的账号信息。其中,账号信息与绑定人脸信息之间的绑定关系可以也存储在账号数据库,或者存储在另一个单独的数据库,本公开实施例对此不做限定。In some embodiments, the first server is used for account management and is provided with an account database, where the account database stores account information of multiple user accounts managed by the first server. The binding relationship between the account information and the bound face information may also be stored in the account database, or stored in another separate database, which is not limited in the embodiment of the present disclosure.
第一服务器与第二服务器通信连接。其中,第二服务器上设置有各个终端对应的人脸数据库,用于进行人脸查询和匹配。例如,终端A在获取到用户人脸图像之后,向第一服务器发送包含第一用户人脸数据的快递查询请求,其中,该第一用户人脸数据可以包括用户人脸图像和/或用户人脸图像的特征数据;第一服务器在接收到终端A发送 的快递查询请求之后,向第二服务器发送第二用户人脸数据和终端A的终端标识信息,其中,第二用户人脸数据是第一服务器基于第一用户人脸数据得到的,作为一个例子,第二用户人脸数据可以为所述第一用户人脸数据的至少一部分,例如,第一用户人脸数据和第二用户人脸数据均为用户人脸图像,或者第一用户人脸数据和第二用户人脸数据均为用户人脸图像的特征数据。作为另一个例子,第一用户人脸数据为用户人脸图像,第二用户人脸数据为用户人脸图像的特征数据,此时,第一服务器可以通过对第一用户人脸数据进行特征提取处理,得到第二用户人脸数据,但本公开实施例对此不作限定。第二服务器基于终端A的终端标识信息,确定需要查找的人脸数据库,并在该人脸数据库中查询与第二用户人脸数据匹配的注册人脸数据。在一个例子中,用户在终端A进行了人脸注册或激活,相应地,第二服务器在终端A对应的人脸数据库存储了该用户的注册人脸数据,则能够查找到与第二用户人脸数据匹配的注册人脸数据。在另一个例子中,如果用户在终端B进行了人脸注册或激活,或者用户尚未在任何终端进行过人脸注册或激活,终端A对应的人脸数据库没有存储该用户的注册人脸数据,则第二服务器在终端A对应的人脸数据库中查询不到与第二用户人脸数据匹配的注册人脸数据。此时,第一服务器可以通过终端A接收用户输入的账号信息,并根据该账号信息在账号数据库查询对应的绑定人脸信息。如果在账号数据库中查找到用户的账号信息对应的绑定人脸信息,则可以将查找到的该绑定人脸信息同步到终端A对应的人脸数据库中。从而,下次用户可以在终端A通过用户人脸图像查询快递。在一些实施例中,在进行上述人脸信息同步之前,终端A可以显示提示信息,提示用户确认是否同意进行上述人脸信息同步,其中,该提示信息可以包括提示语、上述人脸同步的描述信息,或者进一步包含待同步的人脸信息,等等,本公开实施例对此不做限定。相应地,终端A在接收到用户输入的确认同意指令之后,可以进行上述人脸信息同步,或者,终端A在接收到用户输入的确认不同意指令之后,不进行上述人脸信息同步。The first server is in communication connection with the second server. Wherein, a face database corresponding to each terminal is set on the second server for face query and matching. For example, after terminal A obtains the user's face image, it sends an express query request containing the first user's face data to the first server, where the first user's face data may include the user's face image and/or the user's face image. The feature data of the face image; after receiving the express query request sent by the terminal A, the first server sends the second user’s face data and the terminal identification information of the terminal A to the second server, where the second user’s face data is the first A server obtains based on the face data of the first user. As an example, the face data of the second user may be at least a part of the face data of the first user, for example, the face data of the first user and the face data of the second user. The data are both the user's face image, or the first user's face data and the second user's face data are both feature data of the user's face image. As another example, the first user’s face data is the user’s face image, and the second user’s face data is the feature data of the user’s face image. At this time, the first server may perform feature extraction on the first user’s face data. Through processing, the face data of the second user is obtained, but the embodiment of the present disclosure does not limit this. The second server determines the face database to be searched based on the terminal identification information of the terminal A, and inquires the registered face data matching the face data of the second user in the face database. In an example, the user performs face registration or activation on terminal A, and correspondingly, the second server stores the user’s registered face data in the face database corresponding to terminal A, and then it can find the person who is related to the second user. The registered face data that matches the face data. In another example, if the user performs face registration or activation on terminal B, or the user has not performed face registration or activation on any terminal, the face database corresponding to terminal A does not store the user’s registered face data, Then, the second server cannot query the registered face data matching the face data of the second user in the face database corresponding to the terminal A. At this time, the first server may receive the account information input by the user through the terminal A, and query the corresponding bound face information in the account database according to the account information. If the bound face information corresponding to the user's account information is found in the account database, the found bound face information can be synchronized to the face database corresponding to terminal A. Therefore, the user can query the express delivery through the user's face image on the terminal A next time. In some embodiments, before the aforementioned facial information synchronization is performed, the terminal A may display a prompt message to prompt the user to confirm whether to agree to the aforementioned facial information synchronization, wherein the prompt information may include a prompt and a description of the aforementioned facial information synchronization Information, or further includes face information to be synchronized, etc., which are not limited in the embodiment of the present disclosure. Correspondingly, the terminal A may perform the facial information synchronization after receiving the confirming consent instruction input by the user, or the terminal A may not perform the facial information synchronization after receiving the confirming disapproval instruction input by the user.
在一些实施例中,多个终端对应的人脸数据库也可以设置在第一服务器,相应地,第一服务器可以基于快递查询请求,在终端对应的人脸数据库中查询与第一用户人脸数据匹配的注册人脸数据,以及进行上述注册人脸数据的同步。In some embodiments, the face database corresponding to multiple terminals may also be set on the first server. Accordingly, the first server may query the face database corresponding to the terminal and the first user’s face data based on the express query request. Match the registered face data, and synchronize the above-mentioned registered face data.
在一些实施例中,各个终端对应的人脸数据库也可以设置在终端本地,相应地,终端A可以在获取到用户人脸图像之后,可以在自身的人脸数据库中查询与用户人脸图像匹配的注册人脸数据,以确定自身的人脸数据库中是否存在与用户人脸图像匹配的注册人脸数据。对于账号数据库,可以设置在第一服务器上。作为一个例子,终端A在得到匹配的注册人脸数据之后,可以向第一服务器发送包含该注册人脸数据的信息的快递查询请求,以查询该注册人脸数据对应的用户快递信息。作为另一个例子,终端A在确定自身的人脸数据库中不存在匹配的注册人脸数据之后,向第一服务器发送用户的账号信息,以请求第一服务器基于账号信息查询用户快递信息,此时,第一服务器在基于账号信息进行快递查询的基础上,还可以查询账号数据库中是否存在与该账号信息对应的绑定人脸信息,并且在查找到与该账号信息对应的绑定人脸信息的情况下,终端A还可以接收第一服务器返回的待同步人脸信息,并据此进行自身的人脸数据库的更新。In some embodiments, the face database corresponding to each terminal can also be set locally in the terminal. Accordingly, after obtaining the user's face image, the terminal A can query its own face database to match the user's face image. The registered face data to determine whether there is registered face data matching the user's face image in its own face database. For the account database, it can be set on the first server. As an example, after obtaining the matched registered face data, the terminal A may send an express query request containing the information of the registered face data to the first server to query the user express information corresponding to the registered face data. As another example, after terminal A determines that there is no matching registered face data in its face database, it sends the user's account information to the first server to request the first server to query the user's express delivery information based on the account information. , On the basis of the express query based on the account information, the first server can also query whether there is bound face information corresponding to the account information in the account database, and after finding the bound face information corresponding to the account information In the case of, terminal A may also receive the face information to be synchronized returned by the first server, and update its face database accordingly.
或者,各个终端本地还可以同步地存储第一服务器设置的账号数据库的一部分信息,即各个终端可以在本地设置有缩减账号数据库,用于存储例如终端关联的多个用户账号的信息。此时,在一些实施例中,终端A在得到匹配的注册人脸数据之后,可以在账号数据库中查找匹配的注册人脸数据对应的账号信息,并向第一服务器或快递服务器发送包含该账号信息的快递查询请求。Alternatively, each terminal may also synchronously store part of the information of the account database set by the first server, that is, each terminal may be set locally with a reduced account database for storing, for example, information of multiple user accounts associated with the terminal. At this point, in some embodiments, after terminal A obtains the matching registered face data, it can search for the account information corresponding to the matched registered face data in the account database, and send the account information to the first server or the courier server. Courier inquiry request for information.
作为另一个例子,第一服务器上的账号数据库可以存储有用户账号的所有信息,而针对同一个用户账号,不同终端侧的缩减账号数据库中存储的该用户账号的相关信息可能会不同,例如,如果该用户账号在终端B进行了人脸注册而未在终端A激活或使用过基于人脸的快递查询,则终端B的缩减账号数据库中可以存储有该用户账号对应的绑定人脸信息,而终端A的缩减账号数据库中可以不包含有该用户账号对应的绑定人脸信息。此时,在终端A确定自身的人脸数据库中不存在匹配的注册人脸数据的情况下,可以向第一服务器发送用户的账号信息,以使得第一服务器查询该账号信息对应的绑定人脸信息并进行返回,相应地,终端A可以基于第一服务器返回的信息进行自身的人脸数据库和缩减账号数据库的更新。As another example, the account database on the first server may store all the information of the user account, and for the same user account, the related information of the user account stored in the reduced account database on the different terminal side may be different, for example, If the user account has a face registration in terminal B but has not been activated in terminal A or used a face-based express query, the reduced account database of terminal B can store the bound face information corresponding to the user account. However, the reduced account database of the terminal A may not include the bound face information corresponding to the user account. At this time, in the case that terminal A determines that there is no matching registered face data in its face database, it can send the user's account information to the first server, so that the first server can query the binding person corresponding to the account information The face information is returned, and accordingly, the terminal A can update its own face database and the reduced account database based on the information returned by the first server.
作为另一个例子,针对同一用户账号,不同终端侧的缩减账号数据库中存储的信息可以保持同步,例如,用户在终端B进行人脸注册或激活的过程中,终端B可以将相关人脸信息发送至第一服务器,第一服务器向终端A发送同步信息以进行终端A侧的缩减账号数据库和人脸数据库的信息同步,这样,如果终端A确定自身的人脸数据库中不存在匹配的注册人脸数据,则可以确定用户未进行过人脸注册或激活,并提示用户进行人脸注册或激活,但本公开实施例不限于此。As another example, for the same user account, the information stored in the reduced account database on different terminal sides can be kept synchronized. For example, when the user registers or activates the face of terminal B, terminal B can send relevant facial information To the first server, the first server sends synchronization information to the terminal A to synchronize the information of the reduced account database and the face database on the terminal A side. In this way, if the terminal A determines that there is no matching registered face in its face database Data, it can be determined that the user has not performed face registration or activation, and prompts the user to perform face registration or activation, but the embodiments of the present disclosure are not limited to this.
在本公开实施例中,在得到用户账号信息之后,可以基于用户账号信息进行快递查询,得到快递信息。其中,该查询到的快递信息可以指示用户有无待取快递或者有无预约寄件或已寄件,在有待取快递的情况下,还可以进一步包含待取快递的信息,例如待取快递的存放位置信息、快递单号信息等,而在有预约寄件或已寄件的情况下,可以显示预约信息或快递单号信息等。在一些实施例中,查询到的快递信息可以仅包含用户自身的快递信息,或者在用户被一个或多个其他用户授权代取的情况下,还可以进一步包含该一个或多个其他用户的快递信息,本公开实施例对此不做限定。In the embodiment of the present disclosure, after the user account information is obtained, the express query can be performed based on the user account information to obtain the express information. Among them, the queried courier information can indicate whether the user has a courier to be picked up or whether there is an appointment to send or has been sent. In the case of a courier to be picked up, it can also further include the information of the courier to be picked up, such as Store location information, courier number information, etc., and when there is an appointment or has been sent, the reservation information or courier number information can be displayed. In some embodiments, the queried courier information may only include the user’s own courier information, or in the case where the user is authorized by one or more other users, it may further include the courier information of the one or more other users. Information, the embodiment of the present disclosure does not limit this.
在一些实施例中,该快递查询系统还可以包括用于快递查询的第三服务器。其中,可选地,该第三服务器可以是第三方服务器。在一些实施例中,该第三服务器接收第一服务器或第一终端发送的用户账号信息,查找与该用户账号信息对应的快递信息,并返回查询到的快递信息,以使得第一终端进行显示,In some embodiments, the express inquiry system may further include a third server for express inquiry. Wherein, optionally, the third server may be a third-party server. In some embodiments, the third server receives the user account information sent by the first server or the first terminal, searches for the courier information corresponding to the user account information, and returns the queried courier information, so that the first terminal displays ,
具体地,请参阅图3,图3是本公开一实施例提供的一种快递查询方法的流程示意图,示例性地,该方法可以包括以下步骤:Specifically, please refer to FIG. 3, which is a schematic flowchart of an express query method provided by an embodiment of the present disclosure. Illustratively, the method may include the following steps:
S101、第一终端获取用户人脸图像。S101. The first terminal acquires a user's face image.
在取快递时,第一终端可以是任一区域的快递终端。快递终端扫描用户的人脸,获取用户人脸图像。When picking up express delivery, the first terminal can be an express delivery terminal in any region. The express terminal scans the user's face and obtains the user's face image.
S102、上述第一终端向第一服务器发送快递查询请求,该快递查询请求包括上述用户人脸图像对应的第一用户人脸数据。第一用户人脸数据是基于所述用户人脸图像得到的。S102. The first terminal sends an express query request to the first server, where the express query request includes the first user face data corresponding to the user face image. The first user's face data is obtained based on the user's face image.
相应地,第一服务器接收上述快递查询请求。Correspondingly, the first server receives the above-mentioned express inquiry request.
第一终端在获取用户人脸图像后,向第一服务器发送快递查询请求,该快递查询请求用于查询用户账号信息或用户快递信息。After acquiring the user's face image, the first terminal sends an express query request to the first server, and the express query request is used to query user account information or user express information.
S103、第一服务器确定第一终端对应的人脸数据库中是否存在与第一用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库。S103. The first server determines whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores information associated with the first terminal. The registered face data corresponding to multiple user accounts, and different terminals correspond to different face databases.
在第一服务器或第二服务器中设置有多个终端对应的人脸数据库,不同的终端对应不同的人脸数据库。一个或多个用户通过第一终端注册了人脸数据或者将其它终端的注册人脸数据同步到了第一终端对应的人脸数据库,每个用户对应至少一个用户账号,则第一终端对应的人脸数据库存储有第一终端关联的多个用户账号所对应的注册人脸数据。但也存在这种情况:用户在其它终端对应的人脸数据库中存储了该用户对应的注册人脸数据,而在第一终端对应的人脸数据库中未存储该用户对应的注册人脸数据。The first server or the second server is provided with face databases corresponding to multiple terminals, and different terminals correspond to different face databases. One or more users have registered face data through the first terminal or synchronized the registered face data of other terminals to the face database corresponding to the first terminal. Each user corresponds to at least one user account, then the person corresponding to the first terminal The face database stores registered face data corresponding to multiple user accounts associated with the first terminal. However, there is also this situation: the user stores the registered face data corresponding to the user in the face database corresponding to other terminals, but the registered face data corresponding to the user is not stored in the face database corresponding to the first terminal.
第一服务器接收到快递查询请求后,该快递查询请求包括第一用户人脸数据,所述第一用户人脸数据包括用户人脸图像和/或用户人脸图像的特征数据。第一服务器需要对第一用户人脸数据进行验证,具体地,需要确定第一终端对应的人脸数据库中是否存在与第一用户人脸数据匹配的注册人脸数据。该注册人脸数据包括注册人脸图像的特征数据。可以将用户人脸图像的特征数据与第一终端对应的人脸数据库中存储的多个用户账号对应的人脸特征数据之间进行相似度比较,从而确定第一终端对应的人脸数据库中是否存在与第一用户人脸数据匹配的注册人脸数据。After the first server receives the express inquiry request, the express inquiry request includes the first user's face data, and the first user's face data includes the user's face image and/or the characteristic data of the user's face image. The first server needs to verify the face data of the first user. Specifically, it needs to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal. The registered face data includes characteristic data of the registered face image. The feature data of the user's face image can be compared with the facial feature data corresponding to multiple user accounts stored in the face database corresponding to the first terminal to determine whether the face database corresponding to the first terminal is in the similarity There is registered face data that matches the face data of the first user.
确定的结果包括两种:一种是第一终端对应的人脸数据库中存在与第一用户人脸数据匹配的注册人脸数据。而第一服务器设置有账号数据库,该账号数据库中存储有多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。因此,根据与第一用户人脸数据匹配的注册人脸数据,可以获取注册人脸数据对应的用户账号信息。另一种是第一终端对应的人脸数据库中不存在与第一用户人脸数据匹配的注册人脸数据。The result of the determination includes two types: one is that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal. The first server is provided with an account database, and the account database stores account information of multiple user accounts associated with multiple terminals and corresponding bound face information. Therefore, according to the registered face data that matches the first user's face data, the user account information corresponding to the registered face data can be obtained. The other is that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal.
S104、第一服务器基于上述确定的结果,向第一终端发送快递查询响应。S104. The first server sends an express query response to the first terminal based on the result of the foregoing determination.
相应地,第一终端接收该快递查询响应。Correspondingly, the first terminal receives the express query response.
具体地,基于上述确定的结果,如果第一终端对应的人脸数据库中存在与第一用户人脸数据匹配的注册人脸数据,则该快递查询响应指示人脸查询成功,并且该快递查询响应包括上述获取得到的注册人脸数据对应的用户账号信息。或者,进一步地,第一服务器还可以根据用户账号信息从自身服务器或第三服务器获得用户快递信息,则该快递查询响应包括该用户快递信息。如果第一终端对应的人脸数据库中不存在与第一用户人脸数据匹配的注册人脸数据,则快递查询响应指示人脸查询失败。Specifically, based on the result of the above determination, if there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, the express query response indicates that the face query is successful, and the express query responds Including the user account information corresponding to the registered face data obtained above. Or, further, the first server may also obtain the user courier information from its own server or a third server according to the user account information, and the courier query response includes the user courier information. If there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, the express query response indicates that the face query failed.
根据本公开实施例提供的一种快递查询方法,通过将第一终端获取的第一用户人脸数据与该第一终端对应的人脸数据库中的注册人脸数据进行匹配,根据该第一终端对应的人脸数据库确定是否存在与第一用户人脸数据匹配的注册人脸数据,当存在与第一用户人脸数据匹配的注册人脸数据,人脸查询成功;否则,人脸查询失败,从而方便用户收取快递。According to an express query method provided by an embodiment of the present disclosure, the face data of the first user acquired by the first terminal is matched with the registered face data in the face database corresponding to the first terminal. The corresponding face database determines whether there is registered face data matching the face data of the first user. When there is registered face data matching the face data of the first user, the face query is successful; otherwise, the face query fails. So that it is convenient for users to collect express delivery.
再请参阅图4,图4是本公开一实施例提供的一种快递查询方法的流程示意图,示例性地,该方法可以包括以下步骤:Please refer to FIG. 4 again. FIG. 4 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure. Illustratively, the method may include the following steps:
S201、第一终端获取用户人脸图像。S201. The first terminal acquires a user's face image.
该步骤的实现可参考图3所示实施例的步骤S101。For the implementation of this step, refer to step S101 of the embodiment shown in FIG. 3.
S202、上述第一终端向第一服务器发送快递查询请求,该快递查询请求包括上述用户人脸图像。S202. The first terminal sends a courier query request to the first server, where the courier query request includes the user's face image.
相应地,第一服务器接收上述快递查询请求。Correspondingly, the first server receives the above-mentioned express inquiry request.
该步骤的实现可参考图3所示实施例的步骤S102。For the implementation of this step, reference may be made to step S102 of the embodiment shown in FIG. 3.
S203、第一服务器基于上述快递查询请求,向第二服务器发送人脸查询请求,其中,该人脸查询请求用于请求第二服务器在第一终端对应的人脸数据库中查询与上述第一用户人脸数据匹配的注册人脸数据。在所述查询得到与所述第一用户人脸数据匹配的注册人脸数据的情况下,所述人脸查询响应包括所述匹配的注册人脸数据对应的第二人脸标识信息。所述人脸查询请求包括所述第一终端的终端标识信息和第二用户人脸数据,所述第二用户人脸数据是基于所述第一用户人脸数据得到的。基于所述第一用户人脸数据得到所述第二用户人脸数据可以参考上面实施例中的相关内容,在此不再赘述。S203. The first server sends a face query request to the second server based on the aforementioned express query request, where the face query request is used to request the second server to query the face database corresponding to the first terminal and the first user. The registered face data that matches the face data. In the case that the query obtains registered face data matching the face data of the first user, the face query response includes second face identification information corresponding to the matched registered face data. The face query request includes terminal identification information of the first terminal and face data of a second user, and the face data of the second user is obtained based on the face data of the first user. For obtaining the face data of the second user based on the face data of the first user, reference may be made to the related content in the above embodiment, which will not be repeated here.
相应地,第二服务器接收上述人脸查询请求。Correspondingly, the second server receives the aforementioned face query request.
在本实施例中,第二服务器设置有多个终端分别对应的多个人脸数据库。每个终端对应的人脸数据库存储有与该终端关联的多个账户所对应的注册人脸数据。In this embodiment, the second server is provided with multiple face databases corresponding to multiple terminals, respectively. The face database corresponding to each terminal stores registered face data corresponding to multiple accounts associated with the terminal.
第一服务器接收到快递查询请求后,为确定第一终端对应的人脸数据库中是否存在与第一用户人脸数据匹配的注册人脸数据,第一服务器向第二服务器发送人脸查询请求。After receiving the express query request, the first server sends a face query request to the second server in order to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal.
该人脸查询请求中包括第一终端的终端标识信息和第二用户人脸数据。其中,第一终端的终端标识信息可以包括在上述快递查询请求中,第一服务器也可以基于快递查询请求的发送者或者加扰等手段确定采集用户人脸图像的终端。The face query request includes the terminal identification information of the first terminal and the face data of the second user. Wherein, the terminal identification information of the first terminal may be included in the aforementioned express inquiry request, and the first server may also determine the terminal that collects the user's face image based on the sender of the express inquiry request or scrambling.
S204、第二服务器在第一终端对应的人脸数据库中查询与第一用户人脸数据匹配的注册人脸数据,其中,第一终端对应的人脸数据库存储有第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库。S204. The second server queries the face database corresponding to the first terminal for registered face data matching the face data of the first user, where the face database corresponding to the first terminal stores multiple users associated with the first terminal The registered face data corresponding to the account, and different terminals correspond to different face databases.
第二服务器根据第一终端的终端标识信息,在第一终端对应的人脸数据库中查询与第一用户人脸数据匹配的注册人脸数据。该注册人脸数据包括注册人脸图像和/或注册人脸图像的特征数据。第二服务器可以基于所述第一用户人脸数据,得到用户人脸图像的特征数据,将用户人脸图像的特征数据与第一终端对应的人脸数据库中存储的多个注册人脸图像的特征数据进行相似度匹配,得到查询结果。According to the terminal identification information of the first terminal, the second server searches the face database corresponding to the first terminal for registered face data matching the face data of the first user. The registered face data includes the registered face image and/or characteristic data of the registered face image. The second server may obtain the feature data of the user's face image based on the first user's face data, and compare the feature data of the user's face image with the number of registered face images stored in the face database corresponding to the first terminal. The feature data is matched for similarity, and the query result is obtained.
查询结果包括两种:一种是第一终端对应的人脸数据库中存在与第一用户人脸数据匹配的注册人脸数据;另一种是第一终端对应的人脸数据库中不存在与第一用户人脸数据匹配的注册人脸数据。The query results include two types: one is that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal; the other is that the face database corresponding to the first terminal does not exist with the first user’s face data. A registered face data matched by the user's face data.
S205、第二服务器基于查询的结果,向第一服务器发送人脸查询响应。S205. The second server sends a face query response to the first server based on the result of the query.
相应地,第一服务器接收第二服务器返回的人脸查询响应。Correspondingly, the first server receives the face query response returned by the second server.
具体地,第二服务器基于上述任一种查询的结果,向第一服务器发送人脸查询响应,该人脸查询响应指示查询的结果。Specifically, the second server sends a face query response to the first server based on the result of any of the foregoing queries, and the face query response indicates the result of the query.
S206、第一服务器基于上述查询的结果,向所述第一终端发送快递查询响应。S206. The first server sends an express query response to the first terminal based on the result of the above query.
相应地,第一终端接收上述快递查询响应。Correspondingly, the first terminal receives the above-mentioned express query response.
具体地,基于上述查询的结果,如果第一终端对应的人脸数据库中存在与第一用户人脸数据匹配的注册人脸数据,则该快递查询响应指示人脸查询成功,并且该快递查询响应包括上述获取得到的注册人脸数据对应的用户账号信息。或者,进一步地,第一服务器还可以根据用户账号信息从自身服务器或第三服务器获得用户快递信息,则该快递查询响应包括该用户快递信息。如果第一终端对应的人脸数据库中不存在与第一用户人脸数据匹配的注册人脸数据,则快递查询响应指示人脸查询失败。Specifically, based on the result of the above query, if there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, the express query response indicates that the face query is successful, and the express query responds Including the user account information corresponding to the registered face data obtained above. Or, further, the first server may also obtain the user courier information from its own server or a third server according to the user account information, and the courier query response includes the user courier information. If there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, the express query response indicates that the face query failed.
根据本公开实施例提供的一种快递查询方法,第一服务器通过向第二服务器查询该第一终端对应的人脸数据库是否存在与第一用户人脸数据匹配的注册人脸数据,根据查询结果向第一终端反馈人脸查询成功或人脸查询失败,方便用户收取快递。According to an express query method provided by an embodiment of the present disclosure, the first server queries the second server whether the face database corresponding to the first terminal has registered face data that matches the face data of the first user, and according to the query result Feedback to the first terminal that the face query is successful or the face query fails, which is convenient for the user to collect the express.
为了提高人脸数据的匹配效率,在服务器中针对每一个终端设置有对应的人脸数据库,在该终端对应的人脸数据库中存储有注册人脸数据。这样使得用户通过终端A在服务器中提交了注册,然而由于注册人脸数据是按终端存放的,用户在终端B想通过人脸识别取件时,如果终端B对应的人脸数据库中没有存储该用户的注册人脸数据,服务器无法获取对应的用户账号信息,从而快递终端无法完成取件。In order to improve the matching efficiency of face data, a corresponding face database is set for each terminal in the server, and registered face data is stored in the face database corresponding to the terminal. This allows the user to submit the registration in the server through terminal A. However, because the registered face data is stored by terminal, when the user wants to pick up the document through face recognition at terminal B, if the face database corresponding to terminal B does not store the For the user's registered face data, the server cannot obtain the corresponding user account information, so the express terminal cannot complete the pickup.
再请参阅图5A,图5是本公开一实施例提供的一种快递查询方法的流程示意图,示例性地,该方法可以包括以下步骤:Please refer to FIG. 5A again. FIG. 5 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure. Illustratively, the method may include the following steps:
S301a、第一终端获取用户人脸图像。S301a. The first terminal acquires a user's face image.
该步骤的实现可参考图3所示实施例的步骤S101或图4所示实施例的步骤S201。The implementation of this step can refer to step S101 of the embodiment shown in FIG. 3 or step S201 of the embodiment shown in FIG. 4.
S302a、上述第一终端向第一服务器发送快递查询请求,该快递查询请求包括上述用户人脸图像对应的第一用户人脸数据。S302a. The first terminal sends an express query request to the first server, where the express query request includes the first user face data corresponding to the user face image.
相应地,第一服务器接收上述快递查询请求。Correspondingly, the first server receives the above-mentioned express inquiry request.
该步骤的实现可参考图3所示实施例的步骤S102或图4所示实施例的步骤S202。For the implementation of this step, reference may be made to step S102 in the embodiment shown in FIG. 3 or step S202 in the embodiment shown in FIG. 4.
S303a、第一服务器基于上述快递查询请求,向第二服务器发送人脸查询请求,其中,该人脸查询请求包括第一终端的终端标识信息和第二用户人脸数据,该人脸查询请求用于请求第二服务器在第一终端对应的人脸数据库中查询与上述第一用户人脸数据匹配的注册人脸数据。所述第二用户人脸数据是基于所述第一用户人脸数据得到的。S303a. The first server sends a face query request to the second server based on the aforementioned express query request, where the face query request includes the terminal identification information of the first terminal and the face data of the second user, and the face query request uses To request the second server to query the face database corresponding to the first terminal for registered face data matching the face data of the first user. The face data of the second user is obtained based on the face data of the first user.
相应地,第二服务器接收上述人脸查询请求。Correspondingly, the second server receives the aforementioned face query request.
该步骤的实现可参考图4所示实施例的步骤S203。For the implementation of this step, reference may be made to step S203 of the embodiment shown in FIG. 4.
S304a、第二服务器在第一终端对应的人脸数据库中查询与上述第一用户人脸数据匹配的注册人脸数据,其中,该第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库。S304a. The second server queries the face database corresponding to the first terminal for registered face data matching the face data of the first user, where the face database corresponding to the first terminal stores the first terminal association The registered face data corresponding to multiple user accounts of, and different terminals correspond to different face databases.
该步骤的实现可参考图4所示实施例的步骤S204。For the implementation of this step, reference may be made to step S204 of the embodiment shown in FIG. 4.
S305a、响应于查询得到上述第一终端对应的人脸数据库中存在与第一用户人脸数据匹配的注册人脸数据,第二 服务器向第一服务器发送第一人脸查询响应,该第一人脸查询响应包括与注册人脸数据对应的第一人脸标识信息。S305a. In response to the query obtaining that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, the second server sends a first face query response to the first server, and the first person The face query response includes the first face identification information corresponding to the registered face data.
相应地,第一服务器接收该第一人脸查询响应。Correspondingly, the first server receives the first face query response.
如果在第一终端注册时,在第一终端对应的人脸数据库中存储了注册人脸数据,或者将其它终端的该第一终端关联的账号对应的注册人脸数据同步到第一终端对应的人脸数据库,则第二服务器可以在第一终端对应的人脸数据库中查询得到与上述第一用户人脸数据匹配的注册人脸数据。If when registering at the first terminal, the registered face data is stored in the face database corresponding to the first terminal, or the registered face data corresponding to the account associated with the first terminal of other terminals is synchronized to the corresponding one of the first terminal The face database, the second server can query the face database corresponding to the first terminal to obtain the registered face data matching the face data of the first user.
第二服务器在第一终端对应的人脸数据库中存储注册人脸数据时,是将第一人脸标识信息(faceid)与注册人脸数据对应存储的。该第一人脸标识信息是根据第一服务器提供的绑定人脸信息生成的。因此,第二服务器在第一人脸查询响应中包括该第一人脸标识信息。When storing the registered face data in the face database corresponding to the first terminal, the second server stores the first face identification information (faceid) corresponding to the registered face data. The first face identification information is generated according to the bound face information provided by the first server. Therefore, the second server includes the first face identification information in the first face query response.
S306a、第一服务器基于上述匹配的注册人脸数据对应的第一人脸标识信息,得到用户账号信息。S306a: The first server obtains user account information based on the first face identification information corresponding to the matched registered face data.
第一服务器在账号数据库存储有第一服务器连接的多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。而注册人脸数据与第一人脸标识信息对应。因此,第一服务器基于匹配的注册人脸数据对应的第一人脸标识信息,可以得到用户账号信息。The first server stores account information of multiple user accounts associated with multiple terminals connected to the first server and corresponding bound face information in the account database. The registered face data corresponds to the first face identification information. Therefore, the first server can obtain the user account information based on the first face identification information corresponding to the matched registered face data.
S307a、第一服务器基于上述用户账号信息,确定用户快递信息。S307a: The first server determines the delivery information of the user based on the foregoing user account information.
在一些实施例中,第一服务器中存储了用户快递信息,该用户快递信息可以基于用户账号信息得到。用户快递信息包括下列中的至少一种:用户账号的待取件信息和授权该用户账号的至少一个其他账号的待取件信息。In some embodiments, the user express information is stored in the first server, and the user express information may be obtained based on the user account information. The user courier information includes at least one of the following: information about the items to be picked up of the user account and information about the items to be picked up of at least one other account authorizing the user account.
在一些实施例中,用户快递信息存储在第三服务器,则第一服务器可以向第三服务器发送上述用户账号信息,第三服务器根据用户账号信息,查询得到对应的用户快递信息,并向第一服务器发送查询得到的用户快递信息。第一服务器接收第三服务器发送的上述用户账号信息对应的用户快递信息。In some embodiments, the user courier information is stored in the third server, and the first server can send the aforementioned user account information to the third server. The third server queries and obtains the corresponding user courier information according to the user account information, and sends it to the first The server sends the user's express information obtained by the query. The first server receives the user courier information corresponding to the aforementioned user account information sent by the third server.
S308a、第一服务器向第一终端发送快递查询响应,该快递查询响应包括上述用户快递信息。S308a. The first server sends a courier query response to the first terminal, where the courier query response includes the aforementioned user courier information.
相应地,第一终端接收上述用户快递信息。Correspondingly, the first terminal receives the aforementioned user courier information.
第一终端接收到上述用户快递信息后,可以在第一终端上收取快递。After the first terminal receives the above-mentioned user courier information, the courier can be collected on the first terminal.
在另外的实施例中,上述快递查询响应也可以包括用户账号信息,第一终端基于该用户账号信息,从第三服务器获得用户快递信息。In another embodiment, the above-mentioned express query response may also include user account information, and the first terminal obtains the user express information from the third server based on the user account information.
S309a、第一终端显示上述用户快递信息。S309a. The first terminal displays the above-mentioned user express information.
再请参阅图5B,图5B是本公开一实施例提供的一种快递查询方法的流程示意图,示例性地,该方法可以包括以下步骤:Please refer to FIG. 5B again. FIG. 5B is a schematic flowchart of an express query method provided by an embodiment of the present disclosure. Illustratively, the method may include the following steps:
S301b、第一终端获取用户人脸图像。S301b. The first terminal obtains a user's face image.
S302b、第一终端向第一服务器发送快递查询请求,该快递查询请求包括上述用户人脸图像对应的第一用户人脸数据。S302b. The first terminal sends an express inquiry request to the first server, where the express inquiry request includes the first user's face data corresponding to the aforementioned user's face image.
S303b、第一服务器基于上述快递查询请求,向第二服务器发送人脸查询请求,其中,该人脸查询请求包括第一终端的终端标识信息和第二用户人脸数据,该人脸查询请求用于请求第二服务器在第一终端对应的人脸数据库中查询与上述第一用户人脸数据匹配的注册人脸数据。所述第二用户人脸数据是基于所述第一用户人脸数据得到的。S303b. The first server sends a face query request to the second server based on the aforementioned express query request, where the face query request includes the terminal identification information of the first terminal and the face data of the second user, and the face query request uses To request the second server to query the face database corresponding to the first terminal for registered face data matching the face data of the first user. The face data of the second user is obtained based on the face data of the first user.
S304b、第二服务器在第一终端对应的人脸数据库中查询与上述第一用户人脸数据匹配的注册人脸数据,其中,该第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库。S304b. The second server queries the face database corresponding to the first terminal for registered face data matching the face data of the first user, where the face database corresponding to the first terminal stores the first terminal association The registered face data corresponding to multiple user accounts of, and different terminals correspond to different face databases.
S305b、响应于查询得到上述第一终端对应的人脸数据库中不存在与上述第一用户人脸数据匹配的注册人脸数据,第二服务器向第一服务器发送第二人脸查询响应,该第二人脸查询响应指示人脸查询失败。S305b. In response to the query to find that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, the second server sends a second face query response to the first server. The two face query response indicates that the face query failed.
相应地,第一服务器接收该第二人脸查询响应。Correspondingly, the first server receives the second face query response.
如果用户不是通过第一终端注册的人脸信息,或者没有将其它终端的该第一终端关联的账号对应的注册人脸数据同步到第一终端对应的人脸数据库,则第二服务器在第一终端对应的人脸数据库中不能查询得到与上述第一用户人脸数据匹配的注册人脸数据。则第二服务器向第一服务器发送第二人脸查询响应,该第二人脸查询响应指示人脸查询失败。If the user is not the face information registered through the first terminal, or the registered face data corresponding to the account associated with the first terminal of other terminals is not synchronized to the face database corresponding to the first terminal, the second server is in the first terminal. The face database corresponding to the terminal cannot be queried to obtain the registered face data matching the face data of the first user. Then the second server sends a second face query response to the first server, and the second face query response indicates that the face query failed.
S306b、第一服务器向第一终端发送快递查询响应,该快递查询响应指示人脸查询失败。S306b. The first server sends a courier query response to the first terminal, and the courier query response indicates that the face query failed.
相应地,第一终端接收该快递查询响应。Correspondingly, the first terminal receives the express query response.
S307b、第一终端提示用户输入账号信息。S307b. The first terminal prompts the user to input account information.
第一终端接收上述快递查询响应,即可获知第一终端对应的人脸数据库不存在对应的注册人脸数据。因此,第一终端提示用户输入账号信息。The first terminal receives the above-mentioned express query response, and can learn that the corresponding registered face data does not exist in the face database corresponding to the first terminal. Therefore, the first terminal prompts the user to input account information.
S308b、第一终端向第一服务器发送用户输入的上述账号信息,该账号信息用于第一终端的人脸数据库的同步以及查询快递信息。S308b. The first terminal sends the aforementioned account information input by the user to the first server, and the account information is used for synchronizing the face database of the first terminal and querying express delivery information.
相应地,第一服务器接收上述账号信息。Correspondingly, the first server receives the aforementioned account information.
第一终端获取到用户输入到的账号信息后,向第一服务器发送上述账号信息,该账号信息可用于第一终端的人脸数据库的同步以及查询快递信息。After obtaining the account information input by the user, the first terminal sends the above account information to the first server, and the account information can be used to synchronize the face database of the first terminal and query express delivery information.
S309b、第一服务器查询上述输入的账号信息的绑定人脸信息,其中,该查询得到的绑定人脸信息用于同步第一终端对应的人脸数据库。S309b. The first server queries the bound face information of the input account information, where the bound face information obtained by the query is used to synchronize the face database corresponding to the first terminal.
第一服务器的账号数据库中存储了多个用户账号的账号信息和对应的绑定人脸信息,因此,根据上述输入的账号信息,可以查询到该账号信息对应的绑定人脸信息。在一示例中,绑定人脸信息可以包括注册人脸数据,例如一个或多个注册人脸图像和/或注册人脸图像的特征数据,或者还进一步包括注册人脸数据在至少一个终端对应的人脸数据库中对应的人脸标识信息。第一服务器可基于查询到的绑定人脸信息,更新第一终端对应的人脸数据库。The account database of the first server stores the account information of multiple user accounts and the corresponding bound face information. Therefore, according to the above input account information, the bound face information corresponding to the account information can be queried. In an example, the bound face information may include registered face data, such as one or more registered face images and/or characteristic data of the registered face images, or may further include the registered face data corresponding to at least one terminal. The corresponding face identification information in the face database. The first server may update the face database corresponding to the first terminal based on the queried bound face information.
S310b、第一服务器向第二服务器发送数据同步请求,该数据同步请求用于请求第二服务器基于上述绑定人脸信息更新第一终端对应的人脸数据库。S310b. The first server sends a data synchronization request to the second server, where the data synchronization request is used to request the second server to update the face database corresponding to the first terminal based on the above-mentioned bound face information.
相应地,第二服务器接收上述数据同步请求。Correspondingly, the second server receives the aforementioned data synchronization request.
第二服务器设置有多个终端分别对应的多个人脸数据库。根据上述第二人脸查询响应,可以获知第一终端对应的人脸数据库中不存在该注册人脸图像,因此,第一服务器向第二服务器发送数据同步请求,以请求第二服务器基于上述绑定人脸信息更新第一终端对应的人脸数据库。The second server is provided with multiple face databases corresponding to multiple terminals respectively. According to the above-mentioned second face query response, it can be learned that the registered face image does not exist in the face database corresponding to the first terminal. Therefore, the first server sends a data synchronization request to the second server to request the second server based on the above-mentioned binding. Update the face database corresponding to the first terminal by determining the face information.
S311b、第二服务器基于上述绑定人脸信息,获得注册人脸数据,并生成注册人脸数据对应的第二人脸标识信息。S311b. The second server obtains registered face data based on the above-mentioned bound face information, and generates second face identification information corresponding to the registered face data.
第二服务器接收到第一服务器发送的绑定人脸信息后,可以基于绑定人脸信息获取注册人脸图像的特征数据,即得到注册人脸数据。并且生成注册人脸数据对应的第二人脸标识信息,例如可以是人脸标识符(faceid)。每个注册人脸数据在不同的人脸数据库中对应的第二人脸标识信息可以不同。After receiving the bound face information sent by the first server, the second server may obtain the characteristic data of the registered face image based on the bound face information, that is, obtain the registered face data. And the second face identification information corresponding to the registered face data is generated, for example, it may be a face identifier (faceid). The second face identification information corresponding to each registered face data in different face databases may be different.
其中,上述第一人脸标识信息是原来第一终端对应的人脸数据库中已经存在的人脸标识信息,而第二人脸标识信息是指本次同步过程中新增加的人脸标识信息。Wherein, the aforementioned first face identification information is the face identification information that already exists in the face database corresponding to the first terminal, and the second face identification information refers to the face identification information newly added during the synchronization process.
S312b、第二服务器在上述第一终端对应的人脸数据库中存储上述第二人脸标识信息与上述注册人脸数据的对应关系。S312b. The second server stores the correspondence between the second face identification information and the registered face data in the face database corresponding to the first terminal.
第一终端对应的人脸数据库中一般存储有第一终端关联的多个用户账号所对应的注册人脸数据,因此,第二服务器在获得该账号对应的注册人脸数据后,根据第二人脸标识信息,对应存储注册人脸数据。The face database corresponding to the first terminal generally stores the registered face data corresponding to the multiple user accounts associated with the first terminal. Therefore, after the second server obtains the registered face data corresponding to the account, according to the second person The face identification information stores the registered face data correspondingly.
S313b、第二服务器向第一服务器发送数据同步响应,该数据同步响应包括上述注册人脸图像在同步后的第一终端对应的人脸数据库中对应的第二人脸标识信息。S313b. The second server sends a data synchronization response to the first server. The data synchronization response includes second face identification information corresponding to the synchronized face database of the first terminal after the registered face image is synchronized.
相应地,第一服务器接收该数据同步响应。Correspondingly, the first server receives the data synchronization response.
第二服务器在第一终端对应的人脸数据库中同步存储了与第二人脸标识信息对应的注册人脸数据后,向第一服务器反馈数据同步成功,并将上述第二人脸标识信息发送给第一服务器。After the second server synchronously stores the registered face data corresponding to the second face identification information in the face database corresponding to the first terminal, it feeds back to the first server that the data synchronization is successful, and sends the aforementioned second face identification information To the first server.
S314b、第一服务器存储上述用户账号信息和第二人脸标识信息之间的对应关系。S314b: The first server stores the corresponding relationship between the user account information and the second face identification information.
第一服务器在接收到第二服务器反馈的第二人脸标识信息后,由于该第二人脸标识信息与第一终端对应的人脸数据库中该第一终端关联的该用户的账号的注册人脸数据对应,因此,在账号数据库中存储用户账号信息和第二人脸标识信息之间的对应关系,从而下次第一终端获取到用户人脸图像后,第二服务器在该第一终端对应的人脸数据库查询到与第一用户人脸数据匹配的注册人脸数据后,第一服务器可以获得与该注册人脸数据对应的第二人脸标识信息,从而可以根据该第二人脸标识信息查询到对应的用户账号信息,无需用户再输入。After the first server receives the second face identification information fed back by the second server, because the second face identification information corresponds to the registrant of the user's account associated with the first terminal in the face database corresponding to the first terminal Face data correspondence, therefore, the corresponding relationship between the user account information and the second face identification information is stored in the account database, so that next time the first terminal obtains the user’s face image, the second server corresponds to the first terminal After the face database in Query finds the registered face data that matches the face data of the first user, the first server can obtain the second face identification information corresponding to the registered face data, so that the second face identification information can be obtained according to the second face identification. Information query to the corresponding user account information, no need for the user to input.
S315b、第一服务器基于上述用户账号信息,确定用户快递信息。S315b. The first server determines the user's express delivery information based on the foregoing user account information.
另外,第一服务器接收到上述用户输入的用户账号信息后,可以确定用户快递信息。具体的实现可参考上述步骤S307a。In addition, after receiving the user account information input by the user, the first server may determine the user's express delivery information. For specific implementation, refer to the above step S307a.
S316b、第一服务器向第一终端发送上述用户快递信息。S316b. The first server sends the aforementioned user express delivery information to the first terminal.
相应地,第一终端接收该用户快递信息。Correspondingly, the first terminal receives the user courier information.
该步骤的具体实现可参考上述步骤S308a。For the specific implementation of this step, refer to the above step S308a.
S317b、第一终端显示上述用户快递信息。S317b. The first terminal displays the above-mentioned user courier information.
下面通过一个具体的示例进一步描述本公开实施例提供的快递查询方法:The following uses a specific example to further describe the express query method provided by the embodiment of the present disclosure:
例如,用户1通过第一终端A注册了人脸数据,第一终端A对应的人脸数据库存储了第一终端A的人脸标识符1与注册人脸数据,第一服务器的账号数据库中存储了用户账号信息、绑定人脸信息与人脸标识符1的对应关系。在一实施例中,第二终端B获取到用户1的人脸数据,假设第二终端B对应的人脸数据库中没有存储该用户1的注册人脸数据,则在第二终端B对应的人脸数据库无法查询到与该人脸数据对应的注册人脸数据。则第二终端B向第一服务器发送用户账号信息,第一服务器根据该用户账号信息,在账号数据库中可以查询到该用户账号信息的绑定 人脸信息,并将该绑定人脸信息发送给第二服务器,以使第二服务器基于该绑定人脸信息获取用户1的注册人脸数据,并利用用户1的注册人脸数据更新第二终端B对应的人脸数据库。第二服务器根据注册人脸数据生成人脸标识符2,并在第二终端B对应的人脸数据库中对应存储人脸标识符2和注册人脸数据。For example, user 1 registers face data through the first terminal A, the face database corresponding to the first terminal A stores the face identifier 1 of the first terminal A and the registered face data, and the account database of the first server stores The corresponding relationship between user account information, bound face information, and face identifier 1. In an embodiment, the second terminal B obtains the face data of the user 1. Assuming that the registered face data of the user 1 is not stored in the face database corresponding to the second terminal B, the person corresponding to the second terminal B The face database cannot find the registered face data corresponding to the face data. Then the second terminal B sends the user account information to the first server, and the first server can query the bound face information of the user account information in the account database according to the user account information, and send the bound face information To the second server, so that the second server obtains the registered face data of user 1 based on the bound face information, and uses the registered face data of user 1 to update the face database corresponding to the second terminal B. The second server generates the face identifier 2 according to the registered face data, and correspondingly stores the face identifier 2 and the registered face data in the face database corresponding to the second terminal B.
则在第一服务器的账号数据库中存储的对应关系如下表1所示:Then the corresponding relationship stored in the account database of the first server is shown in Table 1 below:
表1Table 1
Figure PCTCN2020101631-appb-000001
Figure PCTCN2020101631-appb-000001
则在第一终端A对应的人脸数据库中存储的对应关系如下表2所示:Then the corresponding relationship stored in the face database corresponding to the first terminal A is shown in Table 2 below:
表2Table 2
用户1的人脸注册数据User 1's face registration data 人脸标识符1Face identifier 1
则在第二终端B对应的人脸数据库中存储的对应关系如下表3所示:Then the corresponding relationship stored in the face database corresponding to the second terminal B is shown in Table 3 below:
表3table 3
用户1的人脸注册数据User 1's face registration data 人脸标识符2Face identifier 2
根据本公开实施例提供的快递查询方法,可以无需在每个终端注册人脸数据,服务器可以自动将其它终端对应的人脸数据库中的注册人脸数据同步到该终端对应的人脸数据库中,从而用户只需在一个终端注册一次人脸图像,便可在服务器连接的任一终端通过人脸图像获取快递信息,极大地方便了用户。According to the express query method provided by the embodiment of the present disclosure, there is no need to register face data in each terminal, and the server can automatically synchronize the registered face data in the face database corresponding to other terminals to the face database corresponding to the terminal. Therefore, the user only needs to register the face image once in a terminal, and can obtain express delivery information through the face image on any terminal connected to the server, which greatly facilitates the user.
再请参阅图6,图6是本公开一实施例提供的一种快递查询方法的流程示意图,示例性地,该方法可以包括以下步骤:Please refer to FIG. 6 again. FIG. 6 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure. Illustratively, the method may include the following steps:
S401、第一终端获取用户人脸图像。S401. The first terminal obtains a user's face image.
该步骤的实现可参考图3所示实施例的步骤S101、图4所示实施例的步骤S201、图5A所示实施例的步骤S301a或图5B所示实施例的步骤S301b。The implementation of this step can refer to step S101 in the embodiment shown in FIG. 3, step S201 in the embodiment shown in FIG. 4, step S301a in the embodiment shown in FIG. 5A, or step S301b in the embodiment shown in FIG. 5B.
S402、上述第一终端向第一服务器发送快递查询请求,该快递查询请求包括上述用户人脸图像对应的第一用户人脸数据。第一用户人脸数据包括用户人脸图像和/或用户人脸图像的特征数据。S402. The first terminal sends an express query request to the first server, where the express query request includes the first user face data corresponding to the user face image. The first user's face data includes the user's face image and/or the characteristic data of the user's face image.
相应地,第一服务器接收上述快递查询请求。Correspondingly, the first server receives the above-mentioned express inquiry request.
该步骤的实现可参考图3所示实施例的步骤S102、图4所示实施例的步骤S202、图5A所示实施例的步骤S302a或图5B所示实施例的步骤S302b。The implementation of this step can refer to step S102 in the embodiment shown in FIG. 3, step S202 in the embodiment shown in FIG. 4, step S302a in the embodiment shown in FIG. 5A, or step S302b in the embodiment shown in FIG. 5B.
S403、第一服务器基于第一用户人脸数据,得到用户人脸图像的特征数据。S403: The first server obtains the feature data of the user's face image based on the first user's face data.
在本实施例中,第一服务器中设置多个终端分别对应的多个人脸数据库,每个终端对应的人脸数据库中存储终端关联的多个账户对应的注册人脸数据。In this embodiment, multiple face databases corresponding to multiple terminals are set in the first server, and the face database corresponding to each terminal stores registered face data corresponding to multiple accounts associated with the terminal.
第一服务器接收到上述第一用户人脸数据后,对上述第一用户人脸数据进行特征提取处理,得到用户人脸图像的特征数据。具体地,可采用人脸图像特征提取算法提取上述用户人脸图像的特征数据。After receiving the face data of the first user, the first server performs feature extraction processing on the face data of the first user to obtain the feature data of the face image of the user. Specifically, a facial image feature extraction algorithm can be used to extract the feature data of the aforementioned user's facial image.
S404、第一服务器确定用户人脸图像的特征数据与第一终端对应的人脸数据库中存储的多个用户账号对应的人脸特征数据之间的相似度。S404: The first server determines the similarity between the feature data of the user's face image and the facial feature data corresponding to multiple user accounts stored in the face database corresponding to the first terminal.
第一终端对应的人脸数据库中存储第一终端关联的多个用户账号对应的注册人脸数据。其中,注册人脸数据包括注册人脸图像的特征数据。第一服务器将提取的用户人脸图像的特征数据与上述第一终端关联的多个用户账号对应的注册人脸图像的特征数据进行相似度比较,分别获得多个相似度。The face database corresponding to the first terminal stores registered face data corresponding to multiple user accounts associated with the first terminal. Among them, the registered face data includes feature data of the registered face image. The first server compares the extracted feature data of the user's face image with the feature data of the registered face images corresponding to the multiple user accounts associated with the first terminal, and obtains multiple similarities respectively.
S405、第一服务器基于上述相似度,确定第一终端对应的人脸数据库中是否存在与上述第一用户人脸数据匹配的注册人脸数据。S405. The first server determines, based on the aforementioned similarity, whether there is registered face data matching the aforementioned first user's face data in the face database corresponding to the first terminal.
具体地,当第一服务器获得的多个相似度中存在一个相似度大于设定阈值的相似度,则确定该第一终端对应的人脸数据库中存在与上述第一用户人脸数据匹配的注册人脸数据;当第一服务器获得的多个相似度中不存在任一个相似度大于设定阈值的相似度,则确定该第一终端对应的人脸数据库中不存在与上述第一用户人脸数据匹配的注册人脸数据。与该用户人脸图像的特征数据的相似度大于设定阈值的注册人脸数据为与所述第一用户人脸数据匹配的注册人脸数据。Specifically, when there is a similarity with a similarity greater than a set threshold among the multiple similarities obtained by the first server, it is determined that there is a registration in the face database corresponding to the first terminal that matches the face data of the first user. Face data; when there is no similarity greater than the set threshold among the multiple similarities obtained by the first server, it is determined that the face database corresponding to the first terminal does not exist in the face database corresponding to the first user’s face. The registered face data whose data matches. The registered face data whose similarity with the feature data of the user's face image is greater than the set threshold is the registered face data that matches the first user's face data.
S406、第一服务器基于上述确定的结果,向第一终端发送快递查询响应。S406: The first server sends an express query response to the first terminal based on the result of the foregoing determination.
相应地,第一终端接收该快递查询响应。Correspondingly, the first terminal receives the express query response.
该步骤的实现可参考图3所示实施例的步骤S104。For the implementation of this step, reference may be made to step S104 of the embodiment shown in FIG. 3.
根据本公开实施例提供的一种快递查询方法,第一服务器通过在自身存储的终端对应的人脸数据库中查询是否存在与第一用户人脸数据匹配的注册人脸数据,根据查询结果向第一终端反馈人脸查询成功或人脸查询失败,方便用户收取快递。According to an express query method provided by an embodiment of the present disclosure, the first server queries whether there is registered face data matching the face data of the first user in the face database corresponding to the terminal stored in the first server, and then forwards the query to the first user according to the query result. A terminal feedbacks that the face query is successful or the face query fails, which is convenient for the user to collect the express.
再请参阅图7,图7是本公开一实施例提供的一种快递查询方法的流程示意图,示例性地,该方法可以包括以下步骤:Please refer to FIG. 7 again. FIG. 7 is a schematic flowchart of an express query method provided by an embodiment of the present disclosure. Illustratively, the method may include the following steps:
S501、第一终端获取用户人脸图像。S501. The first terminal acquires a user's face image.
该步骤的实现可参考图3所示实施例的步骤S101、图4所示实施例的步骤S201、图5A所示实施例的步骤S301a、图5B所示实施例的步骤S301b、或图6所示实施例的步骤S401。The implementation of this step can refer to step S101 of the embodiment shown in FIG. 3, step S201 of the embodiment shown in FIG. 4, step S301a of the embodiment shown in FIG. 5A, step S301b of the embodiment shown in FIG. 5B, or step S301b of the embodiment shown in FIG. Step S401 of the embodiment is shown.
S502、上述第一终端向第一服务器发送快递查询请求,该快递查询请求包括上述用户人脸图像对应的第一用户人脸数据。S502. The first terminal sends a courier query request to the first server, where the courier query request includes the first user's face data corresponding to the user's facial image.
相应地,第一服务器接收上述快递查询请求。Correspondingly, the first server receives the above-mentioned express inquiry request.
该步骤的实现可参考图3所示实施例的步骤S102、图4所示实施例的步骤S202、图5a所示实施例的步骤S302a、图5B所示实施例的步骤S302b、或图6所示实施例的步骤S402。The implementation of this step can refer to step S102 of the embodiment shown in FIG. 3, step S202 of the embodiment shown in FIG. 4, step S302a of the embodiment shown in FIG. 5a, step S302b of the embodiment shown in FIG. 5B, or step S302b of the embodiment shown in FIG. Step S402 of the embodiment is shown.
S503、第一服务器确定第一终端对应的人脸数据库中不存在与第一用户人脸数据匹配的注册人脸数据。S503: The first server determines that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal.
在第一服务器或第二服务器中设置有多个终端对应的人脸数据库,不同的终端对应不同的人脸数据库。一个或多个用户通过第一终端注册了人脸数据或者将其它终端的注册人脸数据同步到了第一终端对应的人脸数据库,每个用户对应至少一个用户账号,则第一终端对应的人脸数据库存储有第一终端关联的多个用户账号所对应的注册人脸数据。但也存在这种情况:用户在其它终端对应的人脸数据库中存储了该用户对应的注册人脸数据,而在第一终端对应的人脸数据库中未存储该用户对应的注册人脸数据。The first server or the second server is provided with face databases corresponding to multiple terminals, and different terminals correspond to different face databases. One or more users have registered face data through the first terminal or synchronized the registered face data of other terminals to the face database corresponding to the first terminal. Each user corresponds to at least one user account, then the person corresponding to the first terminal The face database stores registered face data corresponding to multiple user accounts associated with the first terminal. However, there is also this situation: the user stores the registered face data corresponding to the user in the face database corresponding to other terminals, but the registered face data corresponding to the user is not stored in the face database corresponding to the first terminal.
第一服务器接收到快递查询请求后,该快递查询请求包括用户人脸图像对应的第一用户人脸数据,第一服务器需要对第一用户人脸数据进行验证,具体地,需要确定第一终端对应的人脸数据库中是否存在与第一用户人脸数据匹配的注册人脸数据。该注册人脸数据包括注册人脸图像的特征数据。可以将用户人脸图像的特征数据与第一终端对应的人脸数据库中存储的多个用户账号对应的注册人脸图像的特征数据之间进行相似度比较,从而确定第一终端对应的人脸数据库中是否存在与第一用户人脸数据匹配的注册人脸数据。After the first server receives the express inquiry request, the express inquiry request includes the first user's face data corresponding to the user's face image, and the first server needs to verify the first user's face data. Specifically, the first terminal needs to be determined Whether there is registered face data matching the face data of the first user in the corresponding face database. The registered face data includes characteristic data of the registered face image. The feature data of the user's face image can be compared with the feature data of the registered face images corresponding to multiple user accounts stored in the face database corresponding to the first terminal to determine the face corresponding to the first terminal. Whether there is registered face data matching the face data of the first user in the database.
确定的结果是第一终端对应的人脸数据库中不存在与第一用户人脸数据匹配的注册人脸数据。The result of the determination is that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal.
S504、第一服务器基于所述确定的结果,向第一终端发送快递查询响应,所述快递查询响应指示人脸查询失败。S504. The first server sends a courier query response to the first terminal based on the determined result, where the courier query response indicates that the face query failed.
相应地,第一终端接收该快递查询响应。Correspondingly, the first terminal receives the express query response.
根据上述确定的结果是第一终端对应的人脸数据库中不存在与第一用户人脸数据匹配的注册人脸数据,因此,第一服务器向第一终端反馈第一用户人脸数据查询失败。According to the result of the above determination, there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal. Therefore, the first server feeds back the first user's face data query failure to the first terminal.
S505、第一终端提示用户输入账号信息。S505: The first terminal prompts the user to input account information.
第一终端接收到上述快递查询响应后,可以确定第一终端对应的人脸数据库中不存在与第一用户人脸数据匹配的注册人脸数据,因此,第一终端提示用户输入账号信息。该账号信息可以是用户的手机号。After receiving the aforementioned express query response, the first terminal can determine that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal. Therefore, the first terminal prompts the user to input account information. The account information can be the user's mobile phone number.
S506、第一终端向第一服务器发送用户输入的账号信息,该账号信息用于第一终端的人脸数据库的同步。S506: The first terminal sends the account information input by the user to the first server, where the account information is used to synchronize the face database of the first terminal.
第一终端获取上述账号信息,用于第一终端的人脸数据库的同步,即将其它终端的人脸数据库中的注册人脸数据同步到第一终端的人脸数据库中。The first terminal obtains the aforementioned account information for synchronization of the face database of the first terminal, that is, the registered face data in the face database of other terminals is synchronized to the face database of the first terminal.
S507、第一服务器基于上述用户输入的账号信息,得到用户在第二终端注册的人脸信息,其中,该第二终端注册的人脸信息用于同步第一终端对应的人脸数据库。S507. The first server obtains the face information registered by the user at the second terminal based on the account information input by the user, where the face information registered by the second terminal is used to synchronize the face database corresponding to the first terminal.
假设第二终端的人脸数据库中存储了与上述第一用户人脸数据匹配的注册人脸数据,例如用户初始是在第二终端注册的人脸图像,或者第二终端同步了其它终端的注册人脸数据,而在第一服务器的账号数据库中存储了用户账号信息和对应的绑定人脸信息,则第一服务器基于上述用户输入的账号信息,可以得到用户在第二终端注册的人脸信息,可以将第二终端注册的人脸信息同步到第一终端对应的人脸数据库。从而,用户下次在第一终端扫描用户人脸图像时,可以查询到与第一用户人脸数据匹配的注册人脸数据,从而人脸查询成功。Suppose that the face database of the second terminal stores registered face data matching the face data of the first user, for example, the user initially registered the face image at the second terminal, or the second terminal synchronizes the registration of other terminals Face data, and the user account information and the corresponding bound face information are stored in the account database of the first server, then the first server can obtain the face registered by the user at the second terminal based on the account information input by the user. Information, the face information registered by the second terminal can be synchronized to the face database corresponding to the first terminal. Therefore, the next time the user scans the user's face image at the first terminal, the user can query the registered face data that matches the first user's face data, so that the face query is successful.
根据本公开实施例提供的快递查询方法,可以无需在每个终端注册人脸数据,服务器可以自动将其它终端对应的人脸数据库中的注册人脸数据同步到该终端对应的人脸数据库中,从而用户只需在一个终端注册一次人脸图像,便可在服务器连接的任一终端通过人脸图像获取快递信息,极大地方便了用户。According to the express query method provided by the embodiment of the present disclosure, there is no need to register face data in each terminal, and the server can automatically synchronize the registered face data in the face database corresponding to other terminals to the face database corresponding to the terminal. Therefore, the user only needs to register the face image once in a terminal, and can obtain express delivery information through the face image on any terminal connected to the server, which greatly facilitates the user.
再请参阅图8,图8是本公开一实施例提供的一种快递查询方法的流程示意图。该快递查询方法可以应用在第一终端上。示例性地,该方法可以包括以下步骤:Please refer to FIG. 8 again. FIG. 8 is a schematic flowchart of a method for querying express delivery according to an embodiment of the present disclosure. The express inquiry method can be applied to the first terminal. Exemplarily, the method may include the following steps:
S610、第一终端获取用户人脸图像。S610. The first terminal obtains a face image of the user.
该步骤的实现可参考图3所示实施例的步骤S101、图4所示实施例的步骤S201、图5A所示实施例的步骤S301a、图5B所示实施例的步骤S301b、图6所示实施例的步骤S401或图7所示实施例的步骤S501。The implementation of this step can refer to step S101 of the embodiment shown in FIG. 3, step S201 of the embodiment shown in FIG. 4, step S301a of the embodiment shown in FIG. 5A, step S301b of the embodiment shown in FIG. 5B, and step S301b of the embodiment shown in FIG. Step S401 of the embodiment or step S501 of the embodiment shown in FIG. 7.
S620、第一终端基于所述用户人脸图像,得到用户快递信息,其中所述用户人脸图像用于确定所述第一终端对应的人脸数据库中是否存在匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库包括所述第一终端关联的多个用户账号的注册人脸数据,不同终端对应不同的人脸数据库。S620. The first terminal obtains user delivery information based on the user's face image, where the user's face image is used to determine whether there is matching registered face data in the face database corresponding to the first terminal, where: The face database corresponding to the first terminal includes registered face data of multiple user accounts associated with the first terminal, and different terminals correspond to different face databases.
在一些实施例中,所述第一终端获取用户人脸图像,包括:所述第一终端响应于接收到来自于用户的快递查询指令,获取用户人脸图像。在一些实施例中,在所述第一终端得到用户快递信息之后,所述方法还包括:所述第一终端显示所述用户快递信息。In some embodiments, acquiring the face image of the user by the first terminal includes: the first terminal acquires the face image of the user in response to receiving a courier query instruction from the user. In some embodiments, after the first terminal obtains the user courier information, the method further includes: the first terminal displays the user courier information.
在一些实施例中,所述第一终端基于所述用户人脸图像,得到用户快递信息,包括:所述第一终端在所述第一终端对应的人脸数据库中查询到与所述用户人脸图像匹配的注册人脸数据;所述第一终端基于所述匹配的注册人脸数据,得到用户快递信息。In some embodiments, the first terminal obtains user delivery information based on the user's face image, including: the first terminal searches a face database corresponding to the first terminal to be related to the user's face. The registered face data matched by the face image; the first terminal obtains the user express information based on the matched registered face data.
在一些实施例中,所述第一终端在所述第一终端对应的人脸数据库中查询到与所述用户人脸图像匹配的注册人脸数据,包括:所述第一终端对所述用户人脸图像进行特征提取,得到所述用户人脸图像的特征数据;所述第一终端确定所述用户人脸图像的特征数据与所述第一终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;所述第一终端基于所述相似度,确定所述第一终端对应的人脸数据库中是否存在与所述用户人脸图像匹配的注册人脸数据。In some embodiments, the first terminal inquiring in the face database corresponding to the first terminal the registered face data that matches the face image of the user includes: the first terminal responds to the user The feature extraction of the face image is performed to obtain the feature data of the user's face image; the first terminal determines that the feature data of the user's face image corresponds to the multiple registrations stored in the face database corresponding to the first terminal The degree of similarity between face data; the first terminal determines, based on the degree of similarity, whether there is registered face data matching the user's face image in the face database corresponding to the first terminal.
在一些实施例中,所述第一终端基于所述匹配的注册人脸数据,得到用户快递信息,包括:所述第一终端确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;所述第一终端基于所述用户账号信息,得到用户快递信息。In some embodiments, the first terminal obtaining user express information based on the matched registered face data includes: the first terminal determines the user account corresponding to the matched registered face data in the account database Information; the first terminal obtains user express information based on the user account information.
在一些实施例中,所述第一终端基于所述用户人脸图像,得到用户快递信息,包括:所述第一终端向第一服务器发送快递查询请求,其中所述快递查询请求包括基于所述用户人脸图像得到的第一用户人脸数据,其中,所述第一用户人脸数据用于所述第一服务器确定所述第一终端对应的人脸数据库中是否存在匹配的注册人脸数据;所述第一终端接收所述第一服务器反馈的快递查询响应,所述快递查询响应包括所述用户快递信息。In some embodiments, the first terminal obtaining user express information based on the user's face image includes: the first terminal sends an express inquiry request to the first server, wherein the express inquiry request includes an express inquiry request based on the The first user's face data obtained from the user's face image, where the first user's face data is used by the first server to determine whether there is matching registered face data in the face database corresponding to the first terminal The first terminal receives the express inquiry response fed back by the first server, the express inquiry response including the user express information.
在一些实施例中,所述快递查询方法还包括:在所述第一终端确定基于所述用户人脸图像的人脸查询失败的情况下,所述第一终端获取用户输入的账号信息,其中,所述账号信息在账号数据库中对应的绑定人脸信息用于同步所述第一终端对应的人脸数据库,所述账号数据库包括多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。In some embodiments, the express query method further includes: in a case where the first terminal determines that the face query based on the user's face image fails, the first terminal obtains account information input by the user, wherein The bound face information corresponding to the account information in the account database is used to synchronize the face database corresponding to the first terminal, and the account database includes account information of multiple user accounts associated with multiple terminals and corresponding Bind face information.
在一些实施例中,所述快递查询方法还包括:所述第一终端向第一服务器发送所述用户输入的账号信息,所述第一服务器查找对应的绑定人脸信息并基于对应的绑定人脸信息同步所述第一终端对应的人脸数据库。In some embodiments, the express query method further includes: the first terminal sends the account information input by the user to the first server, and the first server searches for the corresponding bound face information and based on the corresponding bound face information. The face information is synchronized with the face database corresponding to the first terminal.
在一些实施例中,所述快递查询方法还包括:所述第一终端在所述账号数据库中查询所述账号信息对应的绑定人脸信息;所述第一终端基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库。In some embodiments, the express query method further includes: the first terminal queries the bound face information corresponding to the account information in the account database; the first terminal is based on the corresponding binding The face information updates the face database corresponding to the first terminal.
在一些实施例中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息。在一些实施例中,所述第一终端关联的多个用户账号包括在所述第一终端注册的第一用户账号以及未在所述第一终端注册但在所述第一终端进行过快递查询的第二用户账号,其中,所述第一终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。In some embodiments, the user courier information includes at least one of the following: information about waiting for pickup of the user account and information about waiting for pickup of at least one other account that authorizes the user account. In some embodiments, the multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a first user account not registered at the first terminal but an express inquiry has been performed at the first terminal The second user account, wherein the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information registered by the second user account at the second terminal of.
在一些实施例中,第一终端进一步确定目标广告,并显示目标广告,其中,所述目标广告是基于所述用户人脸图像、用户账号信息和所述用户快递信息中的至少一项得到的。第一终端可在所述用户快递信息的显示界面显示所述目标广告。In some embodiments, the first terminal further determines a target advertisement and displays the target advertisement, wherein the target advertisement is obtained based on at least one of the user's face image, user account information, and the user express information . The first terminal may display the target advertisement on the display interface of the user express information.
结合图3-图7实施例,本公开实施例提供的快递查询方法,进一步包括:第一服务器基于确定的结果,确定目标广告;第一服务器向第一终端发送目标指令和/或目标广告,其中该目标指令用于指示第一终端播放该目标广告。在一实施例中,所述第一服务器基于所述确定的结果,确定所述目标广告包括:第一服务器根据第一用户人脸数据对应的用户账号信息的至少一个历史快递的信息,确定该目标广告。这样,可以更精准地向该用户人脸图像对应的用户推送广告。With reference to the embodiments of Figures 3-7, the express query method provided by the embodiments of the present disclosure further includes: the first server determines the target advertisement based on the determined result; the first server sends the target instruction and/or the target advertisement to the first terminal, The target instruction is used to instruct the first terminal to play the target advertisement. In an embodiment, the first server determining the target advertisement based on the result of the determination includes: the first server determining the target advertisement according to at least one historical express information of the user account information corresponding to the first user's face data Target advertising. In this way, the advertisement can be pushed to the user corresponding to the user's face image more accurately.
本公开实施例还提供了一种快递查询方法,该快递查询方法可应用于第一设备,并包括:第一设备获取用户在第一终端的输入信息,所述输入信息用于进行快递查询;所述第一设备基于所述输入信息,确定用户快递信息,其中,所述输入信息包括第一用户人脸数据,所述用户快递信息是基于与所述第一用户人脸数据匹配的、所述用户在第二终端注册的人脸信息查询得到的,或者,所述输入信息包括账号信息,所述账号信息用于查找所述用户在第二终端注册的人脸信息,并基于所述注册的人脸信息同步第一终端对应的人脸数据库,其中,所述第一终端和所述第二终端对应不同的人脸数据库。第一设备可以是上述实施例中的第一终端或第一服务器。The embodiment of the present disclosure also provides a courier query method, which can be applied to a first device, and includes: the first device obtains user input information at the first terminal, and the input information is used to perform courier query; The first device determines user courier information based on the input information, where the input information includes first user face data, and the user courier information is based on a match with the first user’s face data. The face information registered by the user at the second terminal is obtained by querying, or the input information includes account information, and the account information is used to search for the face information registered by the user at the second terminal, and based on the registration. The face information of is synchronized with the face database corresponding to the first terminal, where the first terminal and the second terminal correspond to different face databases. The first device may be the first terminal or the first server in the foregoing embodiment.
在一些实施例中,在所述输入信息包括所述第一用户人脸数据的情况下,所述第一设备基于所述输入信息,确定用户快递信息,包括:所述第一设备确定所述第一终端对应的人脸数据库中与所述第一用户人脸数据匹配的注册人脸数据;所述第一设备基于所述匹配的注册人脸数据,得到所述用户快递信息。In some embodiments, in a case where the input information includes the face data of the first user, the first device determining the user express information based on the input information includes: the first device determines the Registered face data that matches the face data of the first user in the face database corresponding to the first terminal; the first device obtains the user express information based on the matched registered face data.
在一些实施例中,所述第一设备基于所述匹配的注册人脸数据,得到所述用户快递信息,包括:所述第一设备确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;所述第一设备基于所述对应的用户账号信息,得到所述用户快递信息。In some embodiments, the first device to obtain the user express information based on the matched registered face data includes: the first device determines that the account database corresponds to the matched registered face data User account information; the first device obtains the user express information based on the corresponding user account information.
在一些实施例中,所述第一设备确定所述第一终端对应的人脸数据库中与所述第一用户人脸数据匹配的注册人脸数据,包括:所述第一设备向第二设备发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二设备在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;所述第一设备接收所述第二设备返回的人脸查询响应,所述人脸查询响应指示所述查询到的所述匹配的注册人脸数据。在第一设备是第一服务器的情况下,第二设备可以是第二服务器。In some embodiments, the determining, by the first device, the registered face data that matches the face data of the first user in the face database corresponding to the first terminal includes: the first device sends the registered face data to the second device Sending a face query request, where the face query request is used to request the second device to query the face database corresponding to the first terminal for registered face data matching the face data of the first user The first device receives the face query response returned by the second device, and the face query response indicates the matched registered face data that is queried. In the case where the first device is the first server, the second device may be the second server.
在一些实施例中,在所述输入信息包括账号信息的情况下,该快递查询方法还包括:所述第一设备确定账号数据库中与所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述第一设备连接的多个终端所关联的多个用户账号的账号信息和绑定人脸信息;所述第一设备基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库,或者,请求第二设备基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库。In some embodiments, when the input information includes account information, the express query method further includes: the first device determines the bound face information corresponding to the account information in the account database, wherein, The account database stores account information and bound face information of multiple user accounts associated with multiple terminals connected to the first device; the first device updates all the user accounts based on the corresponding bound face information The face database corresponding to the first terminal, or request the second device to update the face database corresponding to the first terminal based on the corresponding bound face information.
在一些实施例中,该快递查询方法还包括:所述第一设备获取所述对应的绑定人脸信息在更新后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;所述第一设备在所述账号数据库存储所述账号信息和所述第一人脸标识信息之间的对应关系。In some embodiments, the express query method further includes: the first device acquiring the corresponding bound face information corresponding to the first face identifier in the updated face database corresponding to the first terminal Information; the first device stores the corresponding relationship between the account information and the first face identification information in the account database.
在一些实施例中,所述第一设备获取用户在第一终端的输入信息,包括:所述第一设备通过图像采集,得到所述用户的第一用户人脸数据;或者所述第一设备接收所述第一终端发送的快递查询请求,所述快递查询请求携带所述输入信息。In some embodiments, the acquiring, by the first device, the input information of the user at the first terminal includes: the first device obtains the first user face data of the user through image collection; or the first device Receiving an express inquiry request sent by the first terminal, where the express inquiry request carries the input information.
上述描述了本公开实施例的方法,下面对本公开实施例的装置进行描述。The method of the embodiment of the present disclosure is described above, and the device of the embodiment of the present disclosure is described below.
基于上述快递查询方法的同一构思,如图9所示,本公开一实施例还提供一种服务器的结构示意图,该服务器1000可以是上述图3-图7实施例所示的快递查询方法中的第一服务器。该服务器1000包括:收发模块11和确定模块12。Based on the same concept of the above-mentioned express inquiry method, as shown in FIG. 9, an embodiment of the present disclosure also provides a schematic structural diagram of a server. The server 1000 may be one of the express inquiry methods shown in the above-mentioned embodiments of FIGS. 3-7. The first server. The server 1000 includes: a transceiver module 11 and a determination module 12.
收发模块11,用于接收第一终端发送的快递查询请求,所述快递查询请求包括所述第一终端获取的第一用户人脸数据;The transceiver module 11 is configured to receive an express inquiry request sent by a first terminal, where the express inquiry request includes the face data of the first user acquired by the first terminal;
确定模块12,用于确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;The determining module 12 is configured to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores Registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
所述收发模块11,还用于基于所述确定的结果,向所述第一终端发送快递查询响应。The transceiver module 11 is further configured to send an express query response to the first terminal based on the result of the determination.
在一些实施例中,所述确定模块12用于:基于所述快递查询请求,向第二服务器发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二服务器在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;接收所述第二服务器返回的人脸查询响应,所述人脸查询响应指示所述查询的结果。In some embodiments, the determining module 12 is configured to send a face query request to a second server based on the express query request, wherein the face query request is used to request that the second server is in the The face database corresponding to the first terminal searches for registered face data matching the face data of the first user; receives a face query response returned by the second server, and the face query response indicates that the query result.
在一些实施例中,所述人脸查询请求包括所述第一终端的终端标识信息和第二用户人脸数据,所述第二用户人脸数据是基于所述第一用户人脸数据得到的;和/或在所述查询得到与所述第一用户人脸数据匹配的注册人脸数据的情况下,所述人脸查询响应包括所述匹配的注册人脸数据对应的第二人脸标识信息。In some embodiments, the face query request includes terminal identification information of the first terminal and second user face data, and the second user face data is obtained based on the first user face data And/or in the case where the query obtains registered face data matching the face data of the first user, the face query response includes a second face identifier corresponding to the matched registered face data information.
在一些实施例中,所述第一终端关联的多个用户账号包括在所述第一终端注册的第一用户账号以及未在所述第一终端注册但在所述第一终端进行过快递查询的第二用户账号,其中,所述第一终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。In some embodiments, the multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a first user account not registered at the first terminal but an express inquiry has been performed at the first terminal The second user account, wherein the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information registered by the second user account at the second terminal of.
在一些实施例中,所述注册人脸数据包括注册人脸图像和/或注册人脸图像的特征数据;和/或所述第一用户人脸数据包括用户人脸图像和所述用户人脸图像的特征数据中的至少一项。In some embodiments, the registered face data includes registered face images and/or characteristic data of the registered face images; and/or the first user face data includes the user face image and the user face At least one item of feature data of the image.
在一些实施例中,所述确定模块12用于:确定所述第一用户人脸数据与所述第一终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;基于所述相似度,确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据。In some embodiments, the determining module 12 is configured to determine the similarity between the face data of the first user and multiple copies of registered face data stored in the face database corresponding to the first terminal; The similarity determines whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal.
在一些实施例中,所述收发模块11用于:响应于确定所述第一终端对应的人脸数据库中不存在与所述第一用户人脸数据匹配的注册人脸数据,向所述第一终端发送快递查询响应,所述快递查询响应指示人脸查询失败。In some embodiments, the transceiver module 11 is configured to: in response to determining that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, send a message to the first user A terminal sends a courier query response, and the courier query response indicates that the face query failed.
在一些实施例中,所述服务器还包括绑定人脸信息查询模块,所述绑定人脸信息查询模块用于:从所述第一终端获取用户输入的账号信息;确定所述用户账号信息对应的绑定人脸信息,其中,所述对应的绑定人脸信息用于同步所述第一终端对应的人脸数据库。In some embodiments, the server further includes a bound face information query module, and the bound face information query module is configured to: obtain the account information input by the user from the first terminal; determine the user account information The corresponding bound face information, wherein the corresponding bound face information is used to synchronize the face database corresponding to the first terminal.
在一些实施例中,所述绑定人脸信息查询模块用于:在账号数据库中查询所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述服务器连接的多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。In some embodiments, the bound face information query module is used to query the bound face information corresponding to the account information in an account database, where the account database stores multiple information connected to the server. The account information of multiple user accounts associated with the terminal and the corresponding bound face information.
在一些实施例中,所述账号信息包括手机号。In some embodiments, the account information includes a mobile phone number.
在一些实施例中,所述服务器还包括更新模块,所述更新模块用于:基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库。In some embodiments, the server further includes an update module configured to update the face database corresponding to the first terminal based on the corresponding bound face information.
在一些实施例中,所述服务器还包括数据同步模块,所述数据同步模块用于:向第二服务器发送数据同步请求,所述数据同步请求用于请求所述第二服务器基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库;接收所述第二服务器发送的数据同步响应,所述数据同步响应包括所述绑定人脸信息在同步后的所述第一终端对应的 人脸数据库中对应的第一人脸标识信息。In some embodiments, the server further includes a data synchronization module configured to send a data synchronization request to a second server, and the data synchronization request is used to request the second server based on the corresponding Binding face information to update the face database corresponding to the first terminal; receiving a data synchronization response sent by the second server, where the data synchronization response includes the first data synchronization response of the bound face information after synchronization The first face identification information corresponding to the face database corresponding to the terminal.
在一些实施例中,所述服务器还包括存储模块,所述存储模块用于:获取所述对应的绑定人脸信息在同步后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;在所述账号数据库中存储所述账号信息和所述第一人脸标识信息之间的对应关系。In some embodiments, the server further includes a storage module, the storage module is configured to: obtain the corresponding bound face information in the synchronized face database corresponding to the first terminal. Face identification information; the corresponding relationship between the account information and the first face identification information is stored in the account database.
在一些实施例中,所述收发模块用于:响应于确定所述第一终端对应的人脸数据库中存在与所述第一用户人脸数据匹配的注册人脸数据,基于所述匹配的注册人脸数据对应的第二人脸标识信息查询账号数据库,得到与所述第二人脸标识信息对应的用户账号信息。In some embodiments, the transceiver module is configured to: in response to determining that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, based on the matching registration The second face identification information corresponding to the face data queries the account database to obtain user account information corresponding to the second face identification information.
在一些实施例中,所述服务器还包括快递信息确定模块;所述快递信息确定模块用于:基于所述用户账号信息,确定用户快递信息。In some embodiments, the server further includes a courier information determining module; the courier information determining module is configured to determine user courier information based on the user account information.
在一些实施例中,所述快递信息确定模块用于:向第三服务器发送所述用户账号信息;接收来自于所述第三服务器的所述用户账号信息对应的用户快递信息。In some embodiments, the express delivery information determining module is configured to: send the user account information to a third server; receive user express information corresponding to the user account information from the third server.
在一些实施例中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息。In some embodiments, the user courier information includes at least one of the following: information about waiting for pickup of the user account and information about waiting for pickup of at least one other account that authorizes the user account.
在一些实施例中,所述服务器还包括目标广告确定模块;所述目标广告确定模块用于:基于所述确定的结果,确定目标广告;向所述第一终端发送目标指令和/或目标广告;所述目标指令用于指示所述第一终端播放所述目标广告。In some embodiments, the server further includes a target advertisement determination module; the target advertisement determination module is configured to: determine a target advertisement based on the result of the determination; send a target instruction and/or a target advertisement to the first terminal ; The target instruction is used to instruct the first terminal to play the target advertisement.
在一些实施例中,所述目标广告确定模块用于:根据所述第一用户人脸数据对应的用户账号信息的至少一个历史快递的信息,确定所述目标广告。In some embodiments, the target advertisement determining module is configured to determine the target advertisement according to at least one historical express information of the user account information corresponding to the first user's face data.
该服务器1000还可进一步包括其他模块或单元,其他模块或单元的详细描述可参考上述图3-图7实施例所示的快递查询方法中的第一服务器的相关描述得到。The server 1000 may further include other modules or units, and detailed descriptions of other modules or units can be obtained by referring to the relevant description of the first server in the express query method shown in the above-mentioned embodiments of FIGS. 3-7.
基于上述快递查询方法的同一构思,如图10所示,本公开一实施例还提供一种服务器的结构示意图,该服务器2000可以是上述图4、图5A-5B实施例所示的快递查询方法中的第二服务器。该服务器2000包括:收发模块21、查询模块22。Based on the same concept of the above-mentioned express inquiry method, as shown in FIG. 10, an embodiment of the present disclosure also provides a schematic structural diagram of a server. The server 2000 may be the express inquiry method shown in the above-mentioned embodiments of FIGS. 4 and 5A-5B. The second server in. The server 2000 includes: a transceiver module 21 and a query module 22.
收发模块21,用于接收第一服务器发送的人脸查询请求,所述人脸查询请求包括第一终端的终端标识信息和第二用户人脸数据;其中,所述第二用户人脸数据是基于所述第一终端发送至所述第一服务器的第一用户人脸数据得到的;The transceiver module 21 is configured to receive a face query request sent by the first server. The face query request includes the terminal identification information of the first terminal and the face data of the second user; wherein the face data of the second user is Obtained based on the face data of the first user sent by the first terminal to the first server;
查询模块22,用于在所述第一终端对应的人脸数据库中查询与所述第二用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;The query module 22 is configured to query the registered face data matching the face data of the second user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores The registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
所述收发模块21,还用于基于所述查询的结果,向所述第一服务器发送人脸查询响应。The transceiver module 21 is further configured to send a face query response to the first server based on the result of the query.
在一些实施例中,所述收发模块21用于:响应于查询得到所述第一终端对应的人脸数据库中不存在与所述第二用户人脸数据匹配的注册人脸数据,向所述第一服务器发送人脸查询响应,所述人脸查询响应指示人脸查询失败。In some embodiments, the transceiving module 21 is configured to: in response to the query to obtain that there is no registered face data matching the face data of the second user in the face database corresponding to the first terminal, send a message to the The first server sends a face query response, and the face query response indicates that the face query failed.
在一些实施例中,所述服务器还包括更新模块,所述更新模块用于:接收所述第一服务器发送的数据同步请求,所述数据同步请求包括绑定人脸信息;基于所述绑定人脸信息,更新所述第一终端对应的人脸数据库。In some embodiments, the server further includes an update module configured to: receive a data synchronization request sent by the first server, where the data synchronization request includes binding face information; based on the binding The face information updates the face database corresponding to the first terminal.
在一些实施例中,所述更新模块还用于:获得所述绑定人脸信息对应的注册人脸数据以及第一人脸标识信息;在所述第一终端对应的人脸数据库中存储所述绑定人脸信息对应的注册人脸数据以及所述第一人脸标识信息。所述服务器还包括数据同步模块,所述数据同步模块用于:向所述第一服务器发送数据同步响应,所述数据同步响应包括所述第一人脸标识信息。In some embodiments, the update module is further configured to: obtain the registered face data and the first face identification information corresponding to the bound face information; and store all information in the face database corresponding to the first terminal. The registered face data corresponding to the bound face information and the first face identification information. The server further includes a data synchronization module configured to send a data synchronization response to the first server, the data synchronization response including the first face identification information.
在一些实施例中,所述收发模块21还用于:响应于查询得到所述第一终端对应的人脸数据库中存在与所述第二用户人脸数据匹配的注册人脸数据,向所述第一服务器发送人脸查询响应,所述人脸查询响应包括与所述匹配的注册人脸数据对应的第二人脸标识信息。In some embodiments, the transceiver module 21 is further configured to: in response to the query to obtain that there is registered face data matching the face data of the second user in the face database corresponding to the first terminal, report to the The first server sends a face query response, where the face query response includes second face identification information corresponding to the matched registered face data.
该服务器2000还可进一步包括其他模块或单元,其他模块或单元的详细描述可参考上述图4、图5A-5B实施例所示的快递查询方法中的第二服务器的相关描述得到。The server 2000 may further include other modules or units, and detailed descriptions of other modules or units can be obtained by referring to the related description of the second server in the express inquiry method shown in the embodiments of FIGS. 4 and 5A-5B.
基于上述快递查询方法的同一构思,如图11所示,本公开一实施例还提供一种终端的结构示意图,该终端3000可以是上述图3-图8实施例所示的快递查询方法中的第一终端。该终端3000包括:获取模块31和快递信息得到模块32。Based on the same concept of the above-mentioned express inquiry method, as shown in FIG. 11, an embodiment of the present disclosure also provides a schematic structural diagram of a terminal. The terminal 3000 may be one of the express inquiry methods shown in the above-mentioned embodiments of FIGS. 3-8. The first terminal. The terminal 3000 includes: an obtaining module 31 and a courier information obtaining module 32.
获取模块31,用于获取用户人脸图像;The obtaining module 31 is used to obtain a user's face image;
快递信息得到模块32,用于基于所述用户人脸图像,得到用户快递信息,其中,所述用户人脸图像用于确定所述终端对应的人脸数据库中是否存在匹配的注册人脸数据,其中,所述终端对应的人脸数据库包括所述终端关联的多个用户账号的注册人脸数据,不同终端对应不同的人脸数据库。The express information obtaining module 32 is configured to obtain user express information based on the user face image, wherein the user face image is used to determine whether there is matching registered face data in the face database corresponding to the terminal, Wherein, the face database corresponding to the terminal includes registered face data of multiple user accounts associated with the terminal, and different terminals correspond to different face databases.
在一些实施例中,所述获取模块31用于:响应于接收到来自于用户的快递查询指令,获取用户人脸图像;所述 终端还包括显示模块,所述显示模块用于:在得到用户快递信息之后,显示所述用户快递信息。In some embodiments, the acquisition module 31 is configured to: in response to receiving an express query instruction from the user, acquire the user's face image; the terminal further includes a display module, and the display module is used to: After the express information, the user express information is displayed.
在一些实施例中,所述快递信息得到模块32用于:在所述终端对应的人脸数据库中查询到与所述用户人脸图像匹配的注册人脸数据;基于所述匹配的注册人脸数据,得到用户快递信息。In some embodiments, the express delivery information obtaining module 32 is configured to: query the registered face data matching the user's face image in the face database corresponding to the terminal; and based on the matched registered face data; Data, get user express information.
在一些实施例中,所述快递信息得到模块32用于:对所述用户人脸图像进行特征提取,得到所述用户人脸图像的特征数据;确定所述用户人脸图像的特征数据与所述终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;基于所述相似度,确定所述终端对应的人脸数据库中是否存在与所述用户人脸图像匹配的注册人脸数据。In some embodiments, the express delivery information obtaining module 32 is configured to: perform feature extraction on the user's face image to obtain the feature data of the user's face image; determine the difference between the feature data of the user's face image and the The similarity between the multiple copies of registered face data stored in the face database corresponding to the terminal; based on the similarity, it is determined whether there is a registration matching the face image of the user in the face database corresponding to the terminal Face data.
在一些实施例中,所述快递信息得到模块32用于:确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;基于所述用户账号信息,得到用户快递信息。In some embodiments, the express delivery information obtaining module 32 is configured to: determine the user account information corresponding to the matched registered face data in the account database; and obtain the user express information based on the user account information.
在一些实施例中,所述快递信息得到模块32用于:向第一服务器发送快递查询请求,其中所述快递查询请求包括基于所述用户人脸图像得到的第一用户人脸数据,其中,所述第一用户人脸数据用于所述第一服务器确定所述终端对应的人脸数据库中是否存在匹配的注册人脸数据;接收所述第一服务器反馈的快递查询响应,所述快递查询响应包括所述用户快递信息。In some embodiments, the express delivery information obtaining module 32 is configured to send an express inquiry request to a first server, wherein the express inquiry request includes first user face data obtained based on the user's face image, wherein, The first user face data is used by the first server to determine whether there is matching registered face data in the face database corresponding to the terminal; to receive the express query response fed back by the first server, the express query The response includes the user courier information.
在一些实施例中,所述终端还包括账号信息获取模块;所述账号信息获取模块用于:在确定基于所述用户人脸图像的人脸查询失败的情况下,获取用户输入的账号信息,其中,所述账号信息在账号数据库中对应的绑定人脸信息用于同步所述终端对应的人脸数据库,所述账号数据库包括多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。In some embodiments, the terminal further includes an account information acquisition module; the account information acquisition module is configured to: in the case where it is determined that the face query based on the user's face image fails, acquire the account information input by the user, Wherein, the bound face information corresponding to the account information in the account database is used to synchronize the face database corresponding to the terminal, and the account database includes account information of multiple user accounts associated with multiple terminals and corresponding bindings. Set face information.
在一些实施例中,所述终端还包括账号信息发送模块;所述账号信息发送模块用于:向第一服务器发送所述用户输入的账号信息,其中,所述账号信息用于所述第一服务器查找对应的绑定人脸信息并基于所述对应的绑定人脸信息同步所述终端对应的人脸数据库。In some embodiments, the terminal further includes an account information sending module; the account information sending module is configured to: send the account information input by the user to the first server, wherein the account information is used for the first server. The server searches for the corresponding bound face information and synchronizes the face database corresponding to the terminal based on the corresponding bound face information.
在一些实施例中,所述终端还包括更新模块;所述更新模块用于:在所述账号数据库中查询所述账号信息对应的绑定人脸信息;基于所述对应的绑定人脸信息,更新所述终端对应的人脸数据库。In some embodiments, the terminal further includes an update module; the update module is configured to: query the account information corresponding to the bound face information in the account database; based on the corresponding bound face information To update the face database corresponding to the terminal.
在一些实施例中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息;和/或所述终端关联的多个用户账号包括在所述终端注册的第一用户账号以及未在所述终端注册但在所述终端进行过快递查询的第二用户账号,其中,所述终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。In some embodiments, the user courier information includes at least one of the following: the pending information of the user account and the pending information of at least one other account that authorizes the user account; and/or the The multiple user accounts associated with the terminal include a first user account registered on the terminal and a second user account that is not registered on the terminal but has made an express query on the terminal, wherein the face database corresponding to the terminal The registered face data of the second user account stored in is obtained based on the face information registered by the second user account in the second terminal.
在一些实施例中,所述终端还包括目标广告确定模块;所述目标广告确定模块用于:确定目标广告,其中,所述目标广告是基于所述用户人脸图像、用户账号信息和所述用户快递信息中的至少一项得到的;显示所述目标广告。In some embodiments, the terminal further includes a target advertisement determining module; the target advertisement determining module is used to determine a target advertisement, wherein the target advertisement is based on the user's face image, user account information, and the Obtain at least one item in the user's express delivery information; display the target advertisement.
在一些实施例中,所述目标广告确定模块还用于:在所述用户快递信息的显示界面显示所述目标广告。In some embodiments, the target advertisement determining module is further configured to: display the target advertisement on a display interface of the user express information.
该终端3000还可进一步包括其他模块或单元,其他有关上述各模块或单元的详细描述可参考上述图3-图8实施例所示的快递查询方法中的第一终端的相关描述得到。The terminal 3000 may further include other modules or units, and other detailed descriptions of the above-mentioned modules or units can be obtained by referring to the relevant description of the first terminal in the express inquiry method shown in the embodiments of FIGS. 3-8.
基于上述快递查询方法的同一构思,如图12所示,本公开一实施例还提供一种设备的结构示意图,该设备4000可以是上述图3-图7实施例所示的快递查询方法中的第一服务器或第一终端。该设备4000包括:获取模块41和确定模块42。Based on the same concept of the above-mentioned express inquiry method, as shown in FIG. 12, an embodiment of the present disclosure also provides a schematic structural diagram of a device. The device 4000 may be one of the express inquiry methods shown in the above-mentioned embodiments of FIGS. 3-7. The first server or the first terminal. The device 4000 includes: an obtaining module 41 and a determining module 42.
所述获取模块41用于获取用户在第一终端的输入信息,所述输入信息用于进行快递查询;The obtaining module 41 is used to obtain the input information of the user in the first terminal, and the input information is used to make an express inquiry;
所述确定模块42用于基于所述输入信息,确定用户快递信息,其中,所述输入信息包括第一用户人脸数据,所述用户快递信息是基于与所述第一用户人脸数据匹配的、所述用户在第二终端注册的人脸信息查询得到的,或者,所述输入信息包括账号信息,所述账号信息用于查找所述用户在第二终端注册的人脸信息,并基于所述注册的人脸信息同步所述第一终端对应的人脸数据库,其中,所述第一终端和所述第二终端对应不同的人脸数据库。The determining module 42 is configured to determine user express information based on the input information, where the input information includes first user facial data, and the user express information is based on matching with the first user facial data , The face information registered by the user in the second terminal is obtained by querying, or the input information includes account information, and the account information is used to look up the face information registered by the user in the second terminal, and based on the information The registered face information is synchronized with the face database corresponding to the first terminal, where the first terminal and the second terminal correspond to different face databases.
在一些实施例中,在所述输入信息包括所述第一用户人脸数据的情况下,所述确定模块42用于:确定所述第一终端对应的人脸数据库中与所述第一用户人脸数据匹配的注册人脸数据;基于所述匹配的注册人脸数据,得到所述用户快递信息。In some embodiments, in a case where the input information includes the face data of the first user, the determining module 42 is configured to: determine that the face database corresponding to the first terminal matches the face data of the first user. The registered face data matched by the face data; and the user express information is obtained based on the matched registered face data.
在一些实施例中,所述确定模块42还用于:确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;基于所述对应的用户账号信息,得到所述用户快递信息。In some embodiments, the determining module 42 is further configured to: determine the user account information corresponding to the matched registered face data in the account database; and obtain the user express information based on the corresponding user account information.
在一些实施例中,所述确定模块42还用于:向第二设备发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二设备在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;接收所述第二设备返回的人脸查询响应,所述人脸查询响应指示所述查询到的所述匹配的注册人脸数据。In some embodiments, the determining module 42 is further configured to send a face query request to the second device, where the face query request is used to request the second device to be the person corresponding to the first terminal Query the registered face data matching the face data of the first user in the face database; receive a face query response returned by the second device, where the face query response indicates the matched registration that is queried Face data.
在一些实施例中,在所述输入信息包括账号信息的情况下,所述设备还包括更新模块,所述更新模块用于:确定账号数据库中与所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述第一设备连接的多个终端所关联的多个用户账号的账号信息和绑定人脸信息;基于所述对应的绑定人脸信息,更新在所述第一终端对应的人脸数据库,或者,请求第二设备基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库。In some embodiments, in a case where the input information includes account information, the device further includes an update module configured to determine the bound face information corresponding to the account information in the account database, Wherein, the account database stores account information and bound face information of multiple user accounts associated with multiple terminals connected to the first device; and based on the corresponding bound face information, update in the The face database corresponding to the first terminal, or the second device is requested to update the face database corresponding to the first terminal based on the corresponding bound face information.
在一些实施例中,所述设备还包括存储模块,所述存储模块用于:获取所述对应的绑定人脸信息在更新后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;在所述账号数据库存储所述账号信息和所述第一人脸标 识信息之间的对应关系。In some embodiments, the device further includes a storage module configured to obtain the first corresponding bound face information in the updated face database corresponding to the first terminal. Face identification information; the corresponding relationship between the account information and the first face identification information is stored in the account database.
在一些实施例中,所述获取模块41用于:通过图像采集,得到所述用户的第一用户人脸数据;或者接收所述第一终端发送的快递查询请求,所述快递查询请求携带所述输入信息。In some embodiments, the obtaining module 41 is configured to: obtain the first user's face data of the user through image collection; or receive an express inquiry request sent by the first terminal, and the express inquiry request carries all the data.述input information.
该设备4000还可进一步包括其他模块或单元,其他有关上述各模块或单元的详细描述可参考上述图3-图8实施例所示的快递查询方法中的第一服务器或第一终端的相关描述得到。The device 4000 may further include other modules or units. For other detailed descriptions of the above-mentioned modules or units, please refer to the relevant description of the first server or the first terminal in the express inquiry method shown in the embodiments of FIGS. 3-8. get.
本公开实施例还提供一种装置,该装置用于执行上述快递查询方法。上述方法中的部分或全部可以通过硬件来实现,也可以通过软件或固件来实现。The embodiment of the present disclosure also provides a device, which is used to execute the above-mentioned express inquiry method. Part or all of the above methods can be implemented by hardware, and can also be implemented by software or firmware.
可选的,装置在具体实现时可以是芯片或者集成电路。Optionally, the device may be a chip or an integrated circuit during specific implementation.
可选的,当上述实施例的快递查询方法中的部分或全部通过软件或固件来实现时,可以通过图13提供的一种装置来实现。如图13所示,该装置可包括:Optionally, when part or all of the express inquiry method in the foregoing embodiment is implemented by software or firmware, it may be implemented by a device provided in FIG. 13. As shown in Figure 13, the device may include:
输入装置、输出装置、存储器和处理器(装置中的处理器可以是一个或多个,图13中以一个处理器为例)。在本实施例中,输入装置、输出装置、存储器和处理器可通过总线或其它方式连接,其中,图13中以通过总线连接为例。Input device, output device, memory, and processor (the processor in the device may be one or more, and one processor is taken as an example in FIG. 13). In this embodiment, the input device, the output device, the memory, and the processor may be connected through a bus or in other ways, wherein the connection through a bus is taken as an example in FIG. 13.
其中,当调用存储器中存储的机器可执行指令时,处理器用于执行上述图3-图8实施例中第一服务器、第一终端或第二服务器所执行的方法步骤。Wherein, when the machine executable instructions stored in the memory are called, the processor is used to execute the method steps executed by the first server, the first terminal, or the second server in the above-mentioned embodiments of FIG. 3 to FIG. 8.
可选的,上述快递查询方法的程序可以存储在存储器中。该存储器可以是物理上独立的单元,也可以与处理器集成在一起。该存储器也可以用于存储数据。Optionally, the program of the above express inquiry method may be stored in the memory. The memory can be a physically independent unit, or it can be integrated with the processor. This memory can also be used to store data.
可选的,当上述实施例的快递查询方法中的部分或全部通过软件实现时,该装置也可以只包括处理器。用于存储程序的存储器位于装置之外,处理器通过电路或电线与存储器连接,用于读取并执行存储器中存储的程序。Optionally, when part or all of the express inquiry method in the foregoing embodiment is implemented by software, the device may also only include a processor. The memory for storing the program is located outside the device, and the processor is connected to the memory through a circuit or wire for reading and executing the program stored in the memory.
处理器可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP),或WLAN(Wireless Local Area Network)设备。The processor may be a central processing unit (CPU), a network processor (NP), or a WLAN (Wireless Local Area Network) device.
处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。The memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory) , Hard disk drive (HDD) or solid-state drive (solid-state drive, SSD); the memory may also include a combination of the above types of memory.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,该单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。所显示或讨论的相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the division of the unit is only a logical function division. In actual implementation, there can be other divisions. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not. carried out. The displayed or discussed mutual coupling, or direct coupling, or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本公开实施例的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者通过该计算机可读存储介质进行传输。该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是只读存储器(read-only memory,ROM),或随机存储存储器(random access memory,RAM),或磁性介质,例如,软盘、硬盘、磁带、磁碟、或光介质,例如,数字通用光盘(digital versatile disc,DVD)、或者半导体介质,例如,固态硬盘(solid state disk,SSD)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present disclosure are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be sent from one website, computer, server, or data center to another via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) A website, computer, server or data center for transmission. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The usable medium can be read-only memory (ROM), random access memory (RAM), or magnetic media, such as floppy disks, hard disks, magnetic tapes, magnetic disks, or optical media, for example, Digital versatile disc (DVD), or semiconductor media, for example, solid state disk (SSD), etc.

Claims (89)

  1. 一种快递查询方法,包括:An express inquiry method, including:
    第一终端获取用户人脸图像;The first terminal obtains the user's face image;
    所述第一终端基于所述用户人脸图像,得到用户快递信息,其中,The first terminal obtains the user's express delivery information based on the user's face image, where:
    所述用户人脸图像用于确定所述第一终端对应的人脸数据库中是否存在匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库包括所述第一终端关联的多个用户账号的注册人脸数据,不同终端对应不同的人脸数据库。The user face image is used to determine whether there is matching registered face data in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal includes a database associated with the first terminal. For the registered face data of a user account, different terminals correspond to different face databases.
  2. 根据权利要求1所述的方法,其中,所述第一终端获取用户人脸图像,包括:The method according to claim 1, wherein the first terminal acquiring the user's face image comprises:
    所述第一终端响应于接收到来自于用户的快递查询指令,获取用户人脸图像;The first terminal obtains the user's face image in response to receiving the express query instruction from the user;
    在所述第一终端得到用户快递信息之后,所述方法还包括:After the first terminal obtains the user's express delivery information, the method further includes:
    所述第一终端显示所述用户快递信息。The first terminal displays the user courier information.
  3. 根据权利要求1-2任一项所述的方法,其中,所述第一终端基于所述用户人脸图像,得到用户快递信息,包括:The method according to any one of claims 1-2, wherein said first terminal obtains user express information based on said user's face image, comprising:
    所述第一终端在所述第一终端对应的人脸数据库中查询到与所述用户人脸图像匹配的注册人脸数据;The first terminal searches the face database corresponding to the first terminal to find the registered face data matching the face image of the user;
    所述第一终端基于所述匹配的注册人脸数据,得到用户快递信息。The first terminal obtains the user express information based on the matched registered face data.
  4. 根据权利要求3所述的方法,其中,所述第一终端在所述第一终端对应的人脸数据库中查询到与所述用户人脸图像匹配的注册人脸数据,包括:The method according to claim 3, wherein the first terminal inquiring, in the face database corresponding to the first terminal, the registered face data matching the face image of the user comprises:
    所述第一终端对所述用户人脸图像进行特征提取,得到所述用户人脸图像的特征数据;Performing feature extraction on the face image of the user by the first terminal to obtain feature data of the face image of the user;
    所述第一终端确定所述用户人脸图像的特征数据与所述第一终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;Determining, by the first terminal, the similarity between the feature data of the user's face image and multiple pieces of registered face data stored in the face database corresponding to the first terminal;
    所述第一终端基于所述相似度,确定所述第一终端对应的人脸数据库中是否存在与所述用户人脸图像匹配的注册人脸数据。The first terminal determines, based on the similarity, whether there is registered face data matching the user's face image in the face database corresponding to the first terminal.
  5. 根据权利要求3或4所述的方法,其中,所述第一终端基于所述匹配的注册人脸数据,得到用户快递信息,包括:The method according to claim 3 or 4, wherein the first terminal obtains user courier information based on the matched registered face data, comprising:
    所述第一终端确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;Determining, by the first terminal, user account information corresponding to the matched registered face data in the account database;
    所述第一终端基于所述用户账号信息,得到用户快递信息。The first terminal obtains user express information based on the user account information.
  6. 根据权利要求1或2所述的方法,其中,所述第一终端基于所述用户人脸图像,得到用户快递信息,包括:The method according to claim 1 or 2, wherein the first terminal obtains the user express information based on the user's face image, comprising:
    所述第一终端向第一服务器发送快递查询请求,其中所述快递查询请求包括基于所述用户人脸图像得到的第一用户人脸数据,其中,所述第一用户人脸数据用于所述第一服务器确定所述第一终端对应的人脸数据库中是否存在匹配的注册人脸数据;The first terminal sends an express inquiry request to the first server, where the express inquiry request includes first user face data obtained based on the user's face image, wherein the first user face data is used for all The first server determines whether there is matching registered face data in the face database corresponding to the first terminal;
    所述第一终端接收所述第一服务器反馈的快递查询响应,所述快递查询响应包括所述用户快递信息。The first terminal receives a courier query response fed back by the first server, where the courier query response includes the user courier information.
  7. 根据权利要求1至6中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    在所述第一终端确定基于所述用户人脸图像的人脸查询失败的情况下,所述第一终端获取用户输入的账号信息,其中,所述账号信息在账号数据库中对应的绑定人脸信息用于同步所述第一终端对应的人脸数据库,所述账号数据库包括多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。In the case that the first terminal determines that the face query based on the user's face image fails, the first terminal obtains the account information input by the user, wherein the account information corresponds to the bound person in the account database The face information is used to synchronize a face database corresponding to the first terminal, and the account database includes account information of multiple user accounts associated with multiple terminals and corresponding bound face information.
  8. 根据权利要求7所述的方法,其中,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    所述第一终端向第一服务器发送所述用户输入的账号信息,其中,所述账号信息用于所述第一服务器查找对应的绑定人脸信息并基于所述对应的绑定人脸信息同步所述第一终端对应的人脸数据库。The first terminal sends the account information input by the user to the first server, where the account information is used by the first server to find corresponding bound face information based on the corresponding bound face information Synchronize the face database corresponding to the first terminal.
  9. 根据权利要求7所述的方法,其中,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    所述第一终端在所述账号数据库中查询所述账号信息对应的绑定人脸信息;The first terminal searches the account database for the bound face information corresponding to the account information;
    所述第一终端基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库。The first terminal updates the face database corresponding to the first terminal based on the corresponding bound face information.
  10. 根据权利要求1-9任一所述的方法,其中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息;和/或The method according to any one of claims 1-9, wherein the user courier information includes at least one of the following: pending pickup information of the user account and pending information of at least one other account that authorizes the user account Pickup information; and/or
    所述第一终端关联的多个用户账号包括在所述第一终端注册的第一用户账号以及未在所述第一终端注册但在所述第一终端进行过快递查询的第二用户账号,其中,所述第一终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。The multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a second user account that is not registered at the first terminal but has made an express inquiry at the first terminal, Wherein, the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information of the second user account registered in the second terminal.
  11. 根据权利要求1-10任一所述的方法,还包括:The method according to any one of claims 1-10, further comprising:
    所述第一终端确定目标广告,其中,所述目标广告是基于所述用户人脸图像、用户账号信息和所述用户快递信息中的至少一项得到的;The first terminal determines a target advertisement, where the target advertisement is obtained based on at least one of the user's face image, user account information, and the user express information;
    所述第一终端显示所述目标广告。The first terminal displays the target advertisement.
  12. 根据权利要求11所述的方法,其中,所述第一终端显示所述目标广告,包括:The method according to claim 11, wherein the displaying of the target advertisement by the first terminal comprises:
    所述第一终端在所述用户快递信息的显示界面显示所述目标广告。The first terminal displays the target advertisement on the display interface of the user express information.
  13. 一种快递查询方法,包括:An express inquiry method, including:
    第一服务器接收第一终端发送的快递查询请求,所述快递查询请求包括所述第一终端获取的第一用户人脸数据;The first server receives a courier query request sent by the first terminal, where the courier query request includes the first user's face data obtained by the first terminal;
    所述第一服务器确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;The first server determines whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores The registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
    所述第一服务器基于所述确定的结果,向所述第一终端发送快递查询响应。The first server sends an express query response to the first terminal based on the result of the determination.
  14. 根据权利要求13所述的方法,其中,所述第一服务器确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,包括:The method according to claim 13, wherein the first server determining whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal comprises:
    所述第一服务器基于所述快递查询请求,向第二服务器发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二服务器在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;The first server sends a face query request to a second server based on the express query request, where the face query request is used to request the second server to be in the face database corresponding to the first terminal Query the registered face data that matches the face data of the first user;
    所述第一服务器接收所述第二服务器返回的人脸查询响应,所述人脸查询响应指示所述查询的结果。The first server receives a face query response returned by the second server, and the face query response indicates the result of the query.
  15. 根据权利要求14所述的方法,其中,所述人脸查询请求包括所述第一终端的终端标识信息和第二用户人脸数据,所述第二用户人脸数据是基于所述第一用户人脸数据得到的;和/或The method according to claim 14, wherein the face query request includes terminal identification information of the first terminal and face data of a second user, and the face data of the second user is based on the face data of the first user From face data; and/or
    在所述查询得到与所述第一用户人脸数据匹配的注册人脸数据的情况下,所述人脸查询响应包括所述匹配的注册人脸数据对应的第二人脸标识信息。In the case that the query obtains registered face data matching the face data of the first user, the face query response includes second face identification information corresponding to the matched registered face data.
  16. 根据权利要求13至15中任一项所述的方法,其中,The method according to any one of claims 13 to 15, wherein:
    所述第一终端关联的多个用户账号包括在所述第一终端注册的第一用户账号以及未在所述第一终端注册但在所述第一终端进行过快递查询的第二用户账号,其中,所述第一终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。The multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a second user account that is not registered at the first terminal but has made an express inquiry at the first terminal, Wherein, the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information of the second user account registered in the second terminal.
  17. 根据权利要求13至16中任一项所述的方法,其中,所述注册人脸数据包括注册人脸图像和/或注册人脸图像的特征数据;和/或The method according to any one of claims 13 to 16, wherein the registered face data includes a registered face image and/or characteristic data of a registered face image; and/or
    所述第一用户人脸数据包括用户人脸图像和所述用户人脸图像的特征数据中的至少一项。The first user face data includes at least one of a user face image and feature data of the user face image.
  18. 根据权利要求13所述的方法,其中,所述第一服务器确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,包括:The method according to claim 13, wherein the first server determining whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal comprises:
    所述第一服务器确定所述第一用户人脸数据与所述第一终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;Determining, by the first server, the similarity between the face data of the first user and the multiple pieces of registered face data stored in the face database corresponding to the first terminal;
    所述第一服务器基于所述相似度,确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据。The first server determines, based on the similarity, whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  19. 根据权利要求13~18中任一项所述的方法,其中,所述第一服务器基于所述确定的结果,向所述第一终端发送快递查询响应,包括:The method according to any one of claims 13 to 18, wherein the sending, by the first server, the express query response to the first terminal based on the result of the determination, comprises:
    响应于确定所述第一终端对应的人脸数据库中不存在与所述第一用户人脸数据匹配的注册人脸数据,所述第一服务器向所述第一终端发送快递查询响应,所述快递查询响应指示人脸查询失败。In response to determining that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, the first server sends an express query response to the first terminal, and The express query response indicates that the face query failed.
  20. 根据权利要求19所述的方法,其中,所述方法还包括:The method of claim 19, wherein the method further comprises:
    所述第一服务器从所述第一终端获取用户输入的账号信息;The first server obtains the account information input by the user from the first terminal;
    所述第一服务器确定所述账号信息对应的绑定人脸信息,其中,所述对应的绑定人脸信息用于同步所述第一终端对应的人脸数据库。The first server determines the bound face information corresponding to the account information, where the corresponding bound face information is used to synchronize the face database corresponding to the first terminal.
  21. 根据权利要求20所述的方法,其中,所述第一服务器确定所述账号信息对应的绑定人脸信息,包括:The method according to claim 20, wherein the first server determining the bound face information corresponding to the account information comprises:
    所述第一服务器在账号数据库中查询所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述第一服务器连接的多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。The first server queries an account database for bound face information corresponding to the account information, where the account database stores account information of multiple user accounts associated with multiple terminals connected to the first server and The corresponding bound face information.
  22. 根据权利要求20或21所述的方法,其中,所述账号信息包括手机号。The method according to claim 20 or 21, wherein the account information includes a mobile phone number.
  23. 根据权利要求20~22中任一项所述的方法,所述方法还包括:The method according to any one of claims 20-22, further comprising:
    所述第一服务器基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库。The first server updates the face database corresponding to the first terminal based on the corresponding bound face information.
  24. 根据权利要求20~22中任一项所述的方法,还包括:The method according to any one of claims 20-22, further comprising:
    所述第一服务器向第二服务器发送数据同步请求,所述数据同步请求用于请求所述第二服务器基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库;Sending, by the first server, a data synchronization request to a second server, the data synchronization request being used to request the second server to update the face database corresponding to the first terminal based on the corresponding bound face information;
    所述第一服务器接收所述第二服务器发送的数据同步响应,所述数据同步响应包括所述对应的绑定人脸信息在同步后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息。The first server receives a data synchronization response sent by the second server, where the data synchronization response includes the first corresponding bound face information in the face database corresponding to the first terminal after synchronization. One face identification information.
  25. 根据权利要求20~24中任一项所述的方法,还包括:The method according to any one of claims 20-24, further comprising:
    所述第一服务器获取所述对应的绑定人脸信息在同步后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;Acquiring, by the first server, first face identification information corresponding to the corresponding bound face information in a face database corresponding to the first terminal after synchronization;
    所述第一服务器在所述账号数据库中存储所述账号信息和所述第一人脸标识信息之间的对应关系。The first server stores the correspondence between the account information and the first face identification information in the account database.
  26. 根据权利要求13~18中任一项所述的方法,其中,所述第一服务器基于所述确定的结果,向所述第一终端发送快递查询响应,包括:The method according to any one of claims 13 to 18, wherein the sending, by the first server, the express query response to the first terminal based on the result of the determination, comprises:
    响应于确定所述第一终端对应的人脸数据库中存在与所述第一用户人脸数据匹配的注册人脸数据,所述第一服务器基于所述匹配的注册人脸数据对应的第二人脸标识信息查询账号数据库,得到与所述第二人脸标识信息对应的用户账号信息。In response to determining that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, the first server is based on the second person corresponding to the matched registered face data The face identification information queries the account database to obtain user account information corresponding to the second face identification information.
  27. 根据权利要求20~26中任一项所述的方法,还包括:The method according to any one of claims 20 to 26, further comprising:
    所述第一服务器基于所述用户账号信息,确定用户快递信息。The first server determines user delivery information based on the user account information.
  28. 根据权利要求27所述的方法,其中,所述第一服务器基于所述用户账号信息,确定用户快递信息,包括:28. The method according to claim 27, wherein the first server determining the user express information based on the user account information comprises:
    所述第一服务器向第三服务器发送所述用户账号信息;Sending, by the first server, the user account information to a third server;
    所述第一服务器接收来自于所述第三服务器的所述用户账号信息对应的用户快递信息。The first server receives the user express information corresponding to the user account information from the third server.
  29. 根据权利要求27或28所述的方法,其中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息。The method according to claim 27 or 28, wherein the user courier information includes at least one of the following: waiting information of the user account and waiting information of at least one other account that authorizes the user account information.
  30. 根据权利要求13~29中任一项所述的方法,还包括:The method according to any one of claims 13-29, further comprising:
    所述第一服务器基于所述确定的结果,确定目标广告;The first server determines the target advertisement based on the result of the determination;
    所述第一服务器向所述第一终端发送目标指令和/或目标广告;所述目标指令用于指示所述第一终端播放所述目标广告。The first server sends a target instruction and/or a target advertisement to the first terminal; the target instruction is used to instruct the first terminal to play the target advertisement.
  31. 根据权利要求30所述的方法,其中,所述第一服务器基于所述确定的结果,确定所述目标广告包括:The method according to claim 30, wherein the first server determining the target advertisement based on the result of the determination comprises:
    所述第一服务器根据所述第一用户人脸数据对应的用户账号信息的至少一个历史快递的信息,确定所述目标广告。The first server determines the target advertisement according to at least one historical express information of the user account information corresponding to the first user's face data.
  32. 一种快递查询方法,包括:An express inquiry method, including:
    第二服务器接收第一服务器发送的人脸查询请求,所述人脸查询请求包括第一终端的终端标识信息和第二用户人脸数据,其中,所述第二用户人脸数据是基于所述第一终端向所述第一服务器发送的快递查询请求中携带的第一 用户人脸数据得到的;The second server receives the face query request sent by the first server. The face query request includes the terminal identification information of the first terminal and the face data of the second user, wherein the face data of the second user is based on the face data of the second user. Obtained from the face data of the first user carried in the express query request sent by the first terminal to the first server;
    所述第二服务器在所述第一终端对应的人脸数据库中查询与所述第二用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;The second server queries the face database corresponding to the first terminal for registered face data matching the face data of the second user, wherein the face database corresponding to the first terminal stores the Registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
    所述第二服务器基于所述查询的结果,向所述第一服务器发送人脸查询响应。The second server sends a face query response to the first server based on the result of the query.
  33. 根据权利要求32所述的方法,其中,所述第二服务器基于所述查询的结果,向所述第一服务器发送人脸查询响应,包括:The method according to claim 32, wherein the second server sending a face query response to the first server based on the result of the query comprises:
    响应于查询得到所述第一终端对应的人脸数据库中不存在与所述第二用户人脸数据匹配的注册人脸数据,所述第二服务器向所述第一服务器发送人脸查询响应,所述人脸查询响应指示人脸查询失败。In response to the query obtaining that there is no registered face data matching the face data of the second user in the face database corresponding to the first terminal, the second server sends a face query response to the first server, The face query response indicates that the face query failed.
  34. 根据权利要求32或33所述的方法,还包括:The method according to claim 32 or 33, further comprising:
    所述第二服务器接收所述第一服务器发送的数据同步请求,所述数据同步请求包括绑定人脸信息;Receiving, by the second server, a data synchronization request sent by the first server, where the data synchronization request includes binding face information;
    所述第二服务器基于所述绑定人脸信息,更新所述第一终端对应的人脸数据库。The second server updates the face database corresponding to the first terminal based on the bound face information.
  35. 根据权利要求34所述的方法,其中,所述第二服务器基于所述绑定人脸信息,更新所述第一终端对应的人脸数据库,包括:The method according to claim 34, wherein the second server updating the face database corresponding to the first terminal based on the bound face information comprises:
    所述第二服务器获得所述绑定人脸信息对应的注册人脸数据以及第一人脸标识信息;Obtaining, by the second server, registered face data and first face identification information corresponding to the bound face information;
    所述第二服务器在所述第一终端对应的人脸数据库中存储所述绑定人脸信息对应的注册人脸数据以及所述第一人脸标识信息;Storing, by the second server, the registered face data corresponding to the bound face information and the first face identification information in a face database corresponding to the first terminal;
    所述方法还包括:所述第二服务器向所述第一服务器发送数据同步响应,所述数据同步响应包括所述第一人脸标识信息。The method further includes: the second server sending a data synchronization response to the first server, the data synchronization response including the first face identification information.
  36. 根据权利要求32所述的方法,其中,所述第二服务器基于所述查询的结果,向所述第一服务器发送人脸查询响应,包括:The method according to claim 32, wherein the second server sending a face query response to the first server based on the result of the query comprises:
    响应于查询得到所述第一终端对应的人脸数据库中存在与所述第二用户人脸数据匹配的注册人脸数据,所述第二服务器向所述第一服务器发送人脸查询响应,所述人脸查询响应包括与所述匹配的注册人脸数据对应的第二人脸标识信息。In response to the query obtaining that there is registered face data matching the face data of the second user in the face database corresponding to the first terminal, the second server sends a face query response to the first server, so The face query response includes second face identification information corresponding to the matched registered face data.
  37. 一种快递查询方法,包括:An express inquiry method, including:
    第一设备获取用户在第一终端的输入信息,所述输入信息用于进行快递查询;The first device obtains the input information of the user in the first terminal, and the input information is used for express delivery inquiry;
    所述第一设备基于所述输入信息,确定用户快递信息,其中,The first device determines user courier information based on the input information, where:
    所述输入信息包括第一用户人脸数据,所述用户快递信息是基于与所述第一用户人脸数据匹配的、所述用户在第二终端注册的人脸信息查询得到的,或者,The input information includes the face data of the first user, and the user express information is obtained based on the face information query that matches the face data of the first user and that the user registers with the second terminal, or,
    所述输入信息包括账号信息,所述账号信息用于查找所述用户在第二终端注册的人脸信息,并基于所述注册的人脸信息同步所述第一终端对应的人脸数据库,其中,所述第一终端和所述第二终端对应不同的人脸数据库。The input information includes account information, and the account information is used to look up the face information registered by the user at the second terminal, and synchronize the face database corresponding to the first terminal based on the registered face information, where , The first terminal and the second terminal correspond to different face databases.
  38. 根据权利要求37所述的方法,其中,在所述输入信息包括第一用户人脸数据的情况下,所述第一设备基于所述输入信息,确定用户快递信息,包括:The method according to claim 37, wherein, in the case that the input information includes the face data of the first user, the first device determining the user express information based on the input information includes:
    所述第一设备确定所述第一终端对应的人脸数据库中与所述第一用户人脸数据匹配的注册人脸数据;Determining, by the first device, registered face data that matches the face data of the first user in the face database corresponding to the first terminal;
    所述第一设备基于所述匹配的注册人脸数据,得到所述用户快递信息。The first device obtains the user express information based on the matched registered face data.
  39. 根据权利要求38所述的方法,其中,所述第一设备基于所述匹配的注册人脸数据,得到所述用户快递信息,包括:The method according to claim 38, wherein said first device obtains said user courier information based on said matched registered face data, comprising:
    所述第一设备确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;Determining, by the first device, user account information corresponding to the matched registered face data in the account database;
    所述第一设备基于所述对应的用户账号信息,得到所述用户快递信息。The first device obtains the user express information based on the corresponding user account information.
  40. 根据权利要求38或39所述的方法,其中,所述第一设备确定所述第一终端对应的人脸数据库中与所述第一用户人脸数据匹配的注册人脸数据,包括:The method according to claim 38 or 39, wherein the determining, by the first device, the registered face data that matches the face data of the first user in the face database corresponding to the first terminal comprises:
    所述第一设备向第二设备发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二设备在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;The first device sends a face query request to a second device, where the face query request is used to request the second device to query the face database corresponding to the first terminal and the first user Registered face data matched by face data;
    所述第一设备接收所述第二设备返回的人脸查询响应,所述人脸查询响应指示所述查询到的所述匹配的注册人脸数据。The first device receives a face query response returned by the second device, where the face query response indicates the matched registered face data that is queried.
  41. 根据权利要求37所述的方法,其中,在所述输入信息包括账号信息的情况下,所述方法还包括:The method according to claim 37, wherein, when the input information includes account information, the method further comprises:
    所述第一设备确定账号数据库中与所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述第一设备连接的多个终端所关联的多个用户账号的账号信息和绑定人脸信息;The first device determines the bound face information corresponding to the account information in an account database, where the account database stores account information of multiple user accounts associated with multiple terminals connected to the first device And bind face information;
    所述第一设备基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库,或者,请求第二设备基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库。The first device updates the face database corresponding to the first terminal based on the corresponding bound face information, or requests the second device to update the first terminal based on the corresponding bound face information The corresponding face database.
  42. 根据权利要求41所述的方法,还包括:The method of claim 41, further comprising:
    所述第一设备获取所述对应的绑定人脸信息在更新后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;Acquiring, by the first device, first face identification information corresponding to the corresponding bound face information in the updated face database corresponding to the first terminal;
    所述第一设备在所述账号数据库存储所述账号信息和所述第一人脸标识信息之间的对应关系。The first device stores the correspondence between the account information and the first face identification information in the account database.
  43. 根据权利要求37至42中任一项所述的方法,其中,所述第一设备获取用户在第一终端的输入信息,包括:The method according to any one of claims 37 to 42, wherein the first device acquiring user input information at the first terminal comprises:
    所述第一设备通过图像采集,得到所述用户的第一用户人脸数据;或者The first device obtains the first user face data of the user through image collection; or
    所述第一设备接收所述第一终端发送的快递查询请求,所述快递查询请求携带所述输入信息。The first device receives the express inquiry request sent by the first terminal, and the express inquiry request carries the input information.
  44. 一种终端,包括:获取模块和快递信息得到模块;其中,A terminal includes: an obtaining module and an express information obtaining module; wherein,
    所述获取模块用于获取用户人脸图像;The acquisition module is used to acquire a user's face image;
    所述快递信息得到模块用于基于所述用户人脸图像,得到用户快递信息,其中,The express delivery information obtaining module is used to obtain the user express information based on the user's face image, where:
    所述用户人脸图像用于确定所述终端对应的人脸数据库中是否存在匹配的注册人脸数据,其中,所述终端对应的人脸数据库包括所述终端关联的多个用户账号的注册人脸数据,不同终端对应不同的人脸数据库。The user face image is used to determine whether there is matching registered face data in the face database corresponding to the terminal, wherein the face database corresponding to the terminal includes registrants of multiple user accounts associated with the terminal For face data, different terminals correspond to different face databases.
  45. 根据权利要求44所述的终端,其中,所述获取模块用于:The terminal according to claim 44, wherein the acquiring module is configured to:
    响应于接收到来自于用户的快递查询指令,获取用户人脸图像;In response to receiving the express query instruction from the user, obtain the user's face image;
    所述终端还包括显示模块,所述显示模块用于:在得到用户快递信息之后,显示所述用户快递信息。The terminal further includes a display module configured to display the user express information after obtaining the user express information.
  46. 根据权利要求44-45任一项所述的终端,其中,所述快递信息得到模块用于:The terminal according to any one of claims 44-45, wherein the express delivery information obtaining module is used for:
    在所述终端对应的人脸数据库中查询到与所述用户人脸图像匹配的注册人脸数据;Querying the registered face data matching the user's face image in the face database corresponding to the terminal;
    基于所述匹配的注册人脸数据,得到用户快递信息。Based on the matched registered face data, the user express information is obtained.
  47. 根据权利要求46所述的终端,其中,所述快递信息得到模块用于:The terminal according to claim 46, wherein the courier information obtaining module is used for:
    对所述用户人脸图像进行特征提取,得到所述用户人脸图像的特征数据;Performing feature extraction on the user's face image to obtain feature data of the user's face image;
    确定所述用户人脸图像的特征数据与所述终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;Determining the similarity between the feature data of the user's face image and multiple pieces of registered face data stored in the face database corresponding to the terminal;
    基于所述相似度,确定所述终端对应的人脸数据库中是否存在与所述用户人脸图像匹配的注册人脸数据。Based on the similarity, it is determined whether there is registered face data matching the user's face image in the face database corresponding to the terminal.
  48. 根据权利要求46或47所述的终端,其中,所述快递信息得到模块用于:The terminal according to claim 46 or 47, wherein the express delivery information obtaining module is used for:
    确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;Determining user account information corresponding to the matched registered face data in the account database;
    基于所述用户账号信息,得到用户快递信息。Based on the user account information, the user express information is obtained.
  49. 根据权利要求44或45所述的终端,其中,所述快递信息得到模块用于:The terminal according to claim 44 or 45, wherein the courier information obtaining module is used for:
    向第一服务器发送快递查询请求,其中所述快递查询请求包括基于所述用户人脸图像得到的第一用户人脸数据,其中,所述第一用户人脸数据用于所述第一服务器确定所述终端对应的人脸数据库中是否存在匹配的注册人脸数据;Send an express query request to a first server, where the express query request includes first user face data obtained based on the user's face image, wherein the first user face data is used for the first server to determine Whether there is matching registered face data in the face database corresponding to the terminal;
    接收所述第一服务器反馈的快递查询响应,所述快递查询响应包括所述用户快递信息。Receiving a courier query response fed back by the first server, where the courier query response includes the user courier information.
  50. 根据权利要求44至49中任一项所述的终端,其中,所述终端还包括账号信息获取模块;所述账号信息获取模块用于:The terminal according to any one of claims 44 to 49, wherein the terminal further comprises an account information obtaining module; the account information obtaining module is configured to:
    在确定基于所述用户人脸图像的人脸查询失败的情况下,获取用户输入的账号信息,其中,所述账号信息在账号数据库中对应的绑定人脸信息用于同步所述终端对应的人脸数据库,所述账号数据库包括多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。In the case where it is determined that the face query based on the user's face image fails, the account information input by the user is obtained, wherein the bound face information corresponding to the account information in the account database is used to synchronize the corresponding terminal The face database includes account information of multiple user accounts associated with multiple terminals and corresponding bound face information.
  51. 根据权利要求50所述的终端,其中,所述终端还包括账号信息发送模块;所述账号信息发送模块用于:The terminal according to claim 50, wherein the terminal further comprises an account information sending module; the account information sending module is configured to:
    向第一服务器发送所述用户输入的账号信息,其中,所述账号信息用于所述第一服务器查找对应的绑定人脸信息并基于所述对应的绑定人脸信息同步所述终端对应的人脸数据库。Send the account information input by the user to the first server, where the account information is used by the first server to find the corresponding bound face information and synchronize the terminal correspondence based on the corresponding bound face information Face database.
  52. 根据权利要求50所述的终端,其中,所述终端还包括更新模块;所述更新模块用于:The terminal according to claim 50, wherein the terminal further comprises an update module; the update module is configured to:
    在所述账号数据库中查询所述账号信息对应的绑定人脸信息;Query the bound face information corresponding to the account information in the account database;
    基于所述对应的绑定人脸信息,更新所述终端对应的人脸数据库。Based on the corresponding bound face information, the face database corresponding to the terminal is updated.
  53. 根据权利要求44-52任一所述的终端,其中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息;和/或The terminal according to any one of claims 44-52, wherein the user courier information includes at least one of the following: pending pickup information of the user account and pending information of at least one other account that authorizes the user account. Pickup information; and/or
    所述终端关联的多个用户账号包括在所述终端注册的第一用户账号以及未在所述终端注册但在所述终端进行过快递查询的第二用户账号,其中,所述终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。The multiple user accounts associated with the terminal include a first user account registered on the terminal and a second user account that is not registered on the terminal but has made an express query on the terminal, wherein the person corresponding to the terminal The registered face data of the second user account stored in the face database is obtained based on the face information of the second user account registered in the second terminal.
  54. 根据权利要求44-53任一所述的终端,其中,所述终端还包括目标广告确定模块;所述目标广告确定模块用于:The terminal according to any one of claims 44-53, wherein the terminal further comprises a target advertisement determining module; the target advertisement determining module is configured to:
    确定目标广告,其中,所述目标广告是基于所述用户人脸图像、用户账号信息和所述用户快递信息中的至少一项得到的;Determining a target advertisement, wherein the target advertisement is obtained based on at least one of the user's face image, user account information, and the user express information;
    显示所述目标广告。The target advertisement is displayed.
  55. 根据权利要求54所述的终端,其中,所述目标广告确定模块还用于:The terminal according to claim 54, wherein the target advertisement determining module is further configured to:
    在所述用户快递信息的显示界面显示所述目标广告。The target advertisement is displayed on the display interface of the user express information.
  56. 一种服务器,包括:收发模块和确定模块;其中:A server, including: a transceiver module and a determining module; wherein:
    所述收发模块,用于接收第一终端发送的快递查询请求,所述快递查询请求包括所述第一终端获取的第一用户人脸数据;The transceiver module is configured to receive an express inquiry request sent by a first terminal, where the express inquiry request includes the face data of the first user acquired by the first terminal;
    所述确定模块,用于确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;The determining module is configured to determine whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores There are registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
    所述收发模块,还用于基于所述确定的结果,向所述第一终端发送快递查询响应。The transceiver module is further configured to send an express query response to the first terminal based on the result of the determination.
  57. 根据权利要求56所述的服务器,其中,所述确定模块用于:The server according to claim 56, wherein the determining module is used for:
    基于所述快递查询请求,向第二服务器发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二服务器在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;Based on the express query request, a face query request is sent to a second server, where the face query request is used to request the second server to query the face database corresponding to the first terminal with the first terminal. One registered face data matched by the user's face data;
    接收所述第二服务器返回的人脸查询响应,所述人脸查询响应指示所述查询的结果。Receiving a face query response returned by the second server, where the face query response indicates the result of the query.
  58. 根据权利要求57所述的服务器,其中,所述人脸查询请求包括所述第一终端的终端标识信息和第二用户人脸数据,所述第二用户人脸数据是基于所述第一用户人脸数据得到的;和/或The server according to claim 57, wherein the face query request includes terminal identification information of the first terminal and face data of a second user, and the face data of the second user is based on the face data of the first user From face data; and/or
    在所述查询得到与所述第一用户人脸数据匹配的注册人脸数据的情况下,所述人脸查询响应包括所述匹配的注册人脸数据对应的第二人脸标识信息。In the case that the query obtains registered face data matching the face data of the first user, the face query response includes second face identification information corresponding to the matched registered face data.
  59. 根据权利要求56或58所述的服务器,其中,The server according to claim 56 or 58, wherein:
    所述第一终端关联的多个用户账号包括在所述第一终端注册的第一用户账号以及未在所述第一终端注册但在所述第一终端进行过快递查询的第二用户账号,其中,所述第一终端对应的人脸数据库中存储的所述第二用户账号的注册人脸数据是基于所述第二用户账号在第二终端注册的人脸信息得到的。The multiple user accounts associated with the first terminal include a first user account registered at the first terminal and a second user account that is not registered at the first terminal but has made an express inquiry at the first terminal, Wherein, the registered face data of the second user account stored in the face database corresponding to the first terminal is obtained based on the face information of the second user account registered in the second terminal.
  60. 根据权利要求56至59中任一项所述的服务器,其中,所述注册人脸数据包括注册人脸图像和/或注册人脸图像的特征数据;和/或The server according to any one of claims 56 to 59, wherein the registered face data includes a registered face image and/or characteristic data of a registered face image; and/or
    所述第一用户人脸数据包括用户人脸图像和所述用户人脸图像的特征数据中的至少一项。The first user face data includes at least one of a user face image and feature data of the user face image.
  61. 根据权利要求56所述的服务器,其中,所述确定模块用于:The server according to claim 56, wherein the determining module is used for:
    确定所述第一用户人脸数据与所述第一终端对应的人脸数据库中存储的多份注册人脸数据之间的相似度;Determining the similarity between the face data of the first user and the multiple pieces of registered face data stored in the face database corresponding to the first terminal;
    基于所述相似度,确定所述第一终端对应的人脸数据库中是否存在与所述第一用户人脸数据匹配的注册人脸数据。Based on the similarity, it is determined whether there is registered face data matching the face data of the first user in the face database corresponding to the first terminal.
  62. 根据权利要求56~61中任一项所述的服务器,其中,所述收发模块用于:The server according to any one of claims 56 to 61, wherein the transceiver module is configured to:
    响应于确定所述第一终端对应的人脸数据库中不存在与所述第一用户人脸数据匹配的注册人脸数据,向所述第一终端发送快递查询响应,所述快递查询响应指示人脸查询失败。In response to determining that there is no registered face data matching the face data of the first user in the face database corresponding to the first terminal, an express query response is sent to the first terminal, and the express query response indicates the person The face query failed.
  63. 根据权利要求62所述的服务器,其中,所述服务器还包括绑定人脸信息查询模块,所述绑定人脸信息查询模块用于:The server according to claim 62, wherein the server further comprises a bound face information query module, and the bound face information query module is configured to:
    从所述第一终端获取用户输入的账号信息;Acquiring account information input by the user from the first terminal;
    确定所述账号信息对应的绑定人脸信息,其中,所述对应的绑定人脸信息用于同步所述第一终端对应的人脸数据库。Determine the bound face information corresponding to the account information, where the corresponding bound face information is used to synchronize the face database corresponding to the first terminal.
  64. 根据权利要求63所述的服务器,其中,所述绑定人脸信息查询模块用于:The server according to claim 63, wherein the binding face information query module is used for:
    在账号数据库中查询所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述服务器连接的多个终端关联的多个用户账号的账号信息和对应的绑定人脸信息。Query the bound face information corresponding to the account information in the account database, where the account database stores account information of multiple user accounts associated with multiple terminals connected to the server and the corresponding bound face information .
  65. 根据权利要求63或64所述的服务器,其中,所述账号信息包括手机号。The server according to claim 63 or 64, wherein the account information includes a mobile phone number.
  66. 根据权利要求63~65中任一项所述的服务器,其中,所述服务器还包括更新模块,所述更新模块用于:The server according to any one of claims 63 to 65, wherein the server further comprises an update module, and the update module is configured to:
    基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库。Based on the corresponding bound face information, the face database corresponding to the first terminal is updated.
  67. 根据权利要求63~65中任一项所述的服务器,其中,所述服务器还包括数据同步模块,所述数据同步模块用于:The server according to any one of claims 63 to 65, wherein the server further comprises a data synchronization module, and the data synchronization module is configured to:
    向第二服务器发送数据同步请求,所述数据同步请求用于请求所述第二服务器基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库;Sending a data synchronization request to a second server, where the data synchronization request is used to request the second server to update the face database corresponding to the first terminal based on the corresponding bound face information;
    接收所述第二服务器发送的数据同步响应,所述数据同步响应包括所述绑定人脸信息在同步后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息。Receiving a data synchronization response sent by the second server, where the data synchronization response includes first face identification information corresponding to the synchronized face information of the bound face information in the face database corresponding to the first terminal.
  68. 根据权利要求63~67中任一项所述的服务器,其中,所述服务器还包括存储模块,所述存储模块用于:The server according to any one of claims 63 to 67, wherein the server further comprises a storage module, and the storage module is configured to:
    获取所述对应的绑定人脸信息在同步后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;Acquiring the first face identification information corresponding to the corresponding bound face information in the face database corresponding to the first terminal after synchronization;
    在所述账号数据库中存储所述账号信息和所述第一人脸标识信息之间的对应关系。The corresponding relationship between the account information and the first face identification information is stored in the account database.
  69. 根据权利要求56~61中任一项所述的服务器,其中,所述收发模块用于:The server according to any one of claims 56 to 61, wherein the transceiver module is configured to:
    响应于确定所述第一终端对应的人脸数据库中存在与所述第一用户人脸数据匹配的注册人脸数据,基于所述匹配的注册人脸数据对应的第二人脸标识信息查询账号数据库,得到与所述第二人脸标识信息对应的用户账号信息。In response to determining that there is registered face data matching the face data of the first user in the face database corresponding to the first terminal, query the account based on the second face identification information corresponding to the matched registered face data The database obtains user account information corresponding to the second face identification information.
  70. 根据权利要求63~69中任一项所述的服务器,其中,所述服务器还包括快递信息确定模块;所述快递信息确定模块用于:The server according to any one of claims 63 to 69, wherein the server further comprises a courier information determining module; the courier information determining module is configured to:
    基于所述用户账号信息,确定用户快递信息。Based on the user account information, the user's express delivery information is determined.
  71. 根据权利要求70所述的服务器,其中,所述快递信息确定模块用于:The server according to claim 70, wherein the express delivery information determining module is configured to:
    向第三服务器发送所述用户账号信息;Sending the user account information to a third server;
    接收来自于所述第三服务器的所述用户账号信息对应的用户快递信息。Receiving user courier information corresponding to the user account information from the third server.
  72. 根据权利要求70或71所述的服务器,其中,所述用户快递信息包括下列中的至少一种:所述用户账号的待取件信息和授权所述用户账号的至少一个其他账号的待取件信息。The server according to claim 70 or 71, wherein the user courier information includes at least one of the following: pending items information of the user account and pending items of at least one other account authorizing the user account information.
  73. 根据权利要求56~72中任一项所述的服务器,其中,所述服务器还包括目标广告确定模块;所述目标广告确定模块用于:The server according to any one of claims 56 to 72, wherein the server further comprises a target advertisement determining module; the target advertisement determining module is configured to:
    基于所述确定的结果,确定目标广告;Determine the target advertisement based on the result of the determination;
    向所述第一终端发送目标指令和/或目标广告;所述目标指令用于指示所述第一终端播放所述目标广告。Sending a target instruction and/or a target advertisement to the first terminal; the target instruction is used to instruct the first terminal to play the target advertisement.
  74. 根据权利要求73所述的服务器,其中,所述目标广告确定模块用于:The server according to claim 73, wherein the target advertisement determining module is configured to:
    根据所述第一用户人脸数据对应的用户账号信息的至少一个历史快递的信息,确定所述目标广告。The target advertisement is determined according to at least one historical express information of the user account information corresponding to the first user's face data.
  75. 一种服务器,包括:收发模块和查询模块;其中:A server, including: a transceiver module and a query module; among them:
    所述收发模块,用于接收第一服务器发送的人脸查询请求,所述人脸查询请求包括第一终端的终端标识信息和第二用户人脸数据,其中,所述第二用户人脸数据是基于所述第一终端向所述第一服务器发送的快递查询请求中携带的第一用户人脸数据得到的;The transceiver module is configured to receive a face query request sent by a first server. The face query request includes the terminal identification information of the first terminal and the face data of the second user, wherein the face data of the second user Is obtained based on the face data of the first user carried in the express query request sent by the first terminal to the first server;
    所述查询模块,用于在所述第一终端对应的人脸数据库中查询与所述第二用户人脸数据匹配的注册人脸数据,其中,所述第一终端对应的人脸数据库存储有所述第一终端关联的多个用户账号所对应的注册人脸数据,且不同的终端对应不同的人脸数据库;The query module is configured to query the registered face data matching the face data of the second user in the face database corresponding to the first terminal, wherein the face database corresponding to the first terminal stores Registered face data corresponding to multiple user accounts associated with the first terminal, and different terminals correspond to different face databases;
    所述收发模块,还用于基于所述查询的结果,向所述第一服务器发送人脸查询响应。The transceiver module is further configured to send a face query response to the first server based on the result of the query.
  76. 根据权利要求75所述的服务器,其中,所述收发模块用于:The server according to claim 75, wherein the transceiver module is used for:
    响应于查询得到所述第一终端对应的人脸数据库中不存在与所述第二用户人脸数据匹配的注册人脸数据,向所述第一服务器发送人脸查询响应,所述人脸查询响应指示人脸查询失败。In response to the query to find that there is no registered face data matching the face data of the second user in the face database corresponding to the first terminal, a face query response is sent to the first server, the face query The response indicates that the face query failed.
  77. 根据权利要求75或76所述的服务器,其中,所述服务器还包括更新模块,所述更新模块用于:The server according to claim 75 or 76, wherein the server further comprises an update module, and the update module is configured to:
    接收所述第一服务器发送的数据同步请求,所述数据同步请求包括绑定人脸信息;Receiving a data synchronization request sent by the first server, where the data synchronization request includes binding face information;
    基于所述绑定人脸信息,更新所述第一终端对应的人脸数据库。Based on the bound face information, the face database corresponding to the first terminal is updated.
  78. 根据权利要求77所述的服务器,其中,所述更新模块还用于:The server according to claim 77, wherein the update module is further used for:
    获得所述绑定人脸信息对应的注册人脸数据以及第一人脸标识信息;Obtaining registered face data and first face identification information corresponding to the bound face information;
    在所述第一终端对应的人脸数据库中存储所述绑定人脸信息对应的注册人脸数据以及所述第一人脸标识信息;Storing registered face data corresponding to the bound face information and the first face identification information in a face database corresponding to the first terminal;
    所述服务器还包括数据同步模块,所述数据同步模块用于:向所述第一服务器发送数据同步响应,所述数据同 步响应包括所述第一人脸标识信息。The server further includes a data synchronization module configured to send a data synchronization response to the first server, the data synchronization response including the first face identification information.
  79. 根据权利要求75所述的服务器,其中,所述收发模块还用于:The server according to claim 75, wherein the transceiver module is further used for:
    响应于查询得到所述第一终端对应的人脸数据库中存在与所述第二用户人脸数据匹配的注册人脸数据,向所述第一服务器发送人脸查询响应,所述人脸查询响应包括与所述匹配的注册人脸数据对应的第二人脸标识信息。In response to the query obtaining that there is registered face data matching the face data of the second user in the face database corresponding to the first terminal, sending a face query response to the first server, the face query response Including the second face identification information corresponding to the matched registered face data.
  80. 一种设备,包括获取模块和确定模块,其中:A device includes an acquisition module and a determination module, wherein:
    所述获取模块用于获取用户在第一终端的输入信息,所述输入信息用于进行快递查询;The obtaining module is used to obtain input information of the user in the first terminal, and the input information is used to perform express delivery inquiry;
    所述确定模块用于基于所述输入信息,确定用户快递信息,其中,The determining module is used to determine the user's express delivery information based on the input information, where:
    所述输入信息包括第一用户人脸数据,所述用户快递信息是基于与所述第一用户人脸数据匹配的、所述用户在第二终端注册的人脸信息查询得到的,或者,The input information includes the face data of the first user, and the user express information is obtained based on the face information query that matches the face data of the first user and that the user registers with the second terminal, or,
    所述输入信息包括账号信息,所述账号信息用于查找所述用户在第二终端注册的人脸信息,并基于所述注册的人脸信息同步所述第一终端对应的人脸数据库,其中,所述第一终端和所述第二终端对应不同的人脸数据库。The input information includes account information, and the account information is used to look up the face information registered by the user at the second terminal, and synchronize the face database corresponding to the first terminal based on the registered face information, where , The first terminal and the second terminal correspond to different face databases.
  81. 根据权利要求80所述的设备,其中,在所述输入信息包括第一用户人脸数据的情况下,所述确定模块用于:The device according to claim 80, wherein, in a case where the input information includes face data of the first user, the determining module is configured to:
    确定所述第一终端对应的人脸数据库中与所述第一用户人脸数据匹配的注册人脸数据;Determining the registered face data that matches the face data of the first user in the face database corresponding to the first terminal;
    基于所述匹配的注册人脸数据,得到所述用户快递信息。Based on the matched registered face data, the user express information is obtained.
  82. 根据权利要求81所述的设备,其中,所述确定模块还用于:The device according to claim 81, wherein the determining module is further configured to:
    确定账号数据库中与所述匹配的注册人脸数据对应的用户账号信息;Determining user account information corresponding to the matched registered face data in the account database;
    基于所述对应的用户账号信息,得到所述用户快递信息。Based on the corresponding user account information, the user express information is obtained.
  83. 根据权利要求81或82所述的设备,其中,所述确定模块还用于:The device according to claim 81 or 82, wherein the determining module is further configured to:
    向第二设备发送人脸查询请求,其中,所述人脸查询请求用于请求所述第二设备在所述第一终端对应的人脸数据库中查询与所述第一用户人脸数据匹配的注册人脸数据;Send a face query request to the second device, where the face query request is used to request the second device to query the face database corresponding to the first terminal for the face data that matches the face data of the first user Register face data;
    接收所述第二设备返回的人脸查询响应,所述人脸查询响应指示所述查询到的所述匹配的注册人脸数据。Receiving a face query response returned by the second device, where the face query response indicates the matched registered face data that is queried.
  84. 根据权利要求80所述的设备,其中,在所述输入信息包括账号信息的情况下,所述设备还包括更新模块,所述更新模块用于:The device according to claim 80, wherein, when the input information includes account information, the device further comprises an update module, the update module being configured to:
    确定账号数据库中与所述账号信息对应的绑定人脸信息,其中,所述账号数据库存储有所述第一设备连接的多个终端所关联的多个用户账号的账号信息和绑定人脸信息;Determine the bound face information corresponding to the account information in the account database, where the account database stores account information and bound faces of multiple user accounts associated with multiple terminals connected to the first device information;
    基于所述对应的绑定人脸信息,更新所述第一终端对应的人脸数据库,或者,请求第二设备基于所述对应的绑定人脸信息更新所述第一终端对应的人脸数据库。Based on the corresponding bound face information, update the face database corresponding to the first terminal, or request the second device to update the face database corresponding to the first terminal based on the corresponding bound face information .
  85. 根据权利要求84所述的设备,其中,所述设备还包括存储模块,所述存储模块用于:The device according to claim 84, wherein the device further comprises a storage module, and the storage module is configured to:
    获取所述对应的绑定人脸信息在更新后的所述第一终端对应的人脸数据库中对应的第一人脸标识信息;Acquiring the first face identification information corresponding to the corresponding bound face information in the updated face database corresponding to the first terminal;
    在所述账号数据库存储所述账号信息和所述第一人脸标识信息之间的对应关系。The corresponding relationship between the account information and the first face identification information is stored in the account database.
  86. 根据权利要求80至85中任一项所述的设备,其中,所述获取模块用于:The device according to any one of claims 80 to 85, wherein the acquisition module is configured to:
    通过图像采集,得到所述用户的第一用户人脸数据;或者Obtain the first user face data of the user through image collection; or
    接收所述第一终端发送的快递查询请求,所述快递查询请求携带所述输入信息。Receiving an express inquiry request sent by the first terminal, where the express inquiry request carries the input information.
  87. 一种装置,包括:A device including:
    至少一个处理器;和At least one processor; and
    存储有机器可执行指令的存储器;A memory storing machine executable instructions;
    其中,当调用所述机器可执行指令时,所述至少一个处理器用于执行权利要求1-43任一所述的快递查询方法。Wherein, when the machine executable instruction is invoked, the at least one processor is used to execute the express query method according to any one of claims 1-43.
  88. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行权利要求1-43任一所述的快递查询方法。A computer-readable storage medium having instructions stored in the computer-readable storage medium, which when run on a computer, causes the computer to execute the express inquiry method according to any one of claims 1-43.
  89. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行权利要求1-43任一所述的快递查询方法。A computer program product containing instructions, when it runs on a computer, causes the computer to execute the express query method described in any one of claims 1-43.
PCT/CN2020/101631 2019-08-23 2020-07-13 Express query method, server, and terminal WO2021036547A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021538682A JP2022516280A (en) 2019-08-23 2020-07-13 Express delivery inquiry method, server, and terminal
KR1020217020537A KR20210095942A (en) 2019-08-23 2020-07-13 Packet inquiry method, server and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910785719.3 2019-08-23
CN201910785719.3A CN110502653B (en) 2019-08-23 2019-08-23 Express delivery query method, server and terminal

Publications (1)

Publication Number Publication Date
WO2021036547A1 true WO2021036547A1 (en) 2021-03-04

Family

ID=68589340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/101631 WO2021036547A1 (en) 2019-08-23 2020-07-13 Express query method, server, and terminal

Country Status (5)

Country Link
JP (1) JP2022516280A (en)
KR (1) KR20210095942A (en)
CN (1) CN110502653B (en)
TW (1) TWI760802B (en)
WO (1) WO2021036547A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011339A (en) * 2021-03-19 2021-06-22 支付宝(杭州)信息技术有限公司 User identity verification method and device and electronic equipment
CN113192269A (en) * 2021-04-30 2021-07-30 武汉未远金易科技有限公司 Cabinet door opening method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502653B (en) * 2019-08-23 2022-08-02 北京市商汤科技开发有限公司 Express delivery query method, server and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106710017A (en) * 2015-11-17 2017-05-24 阿里巴巴集团控股有限公司 Identity authentication method used for logistics sign-off and device and system thereof
CN107609044A (en) * 2017-08-17 2018-01-19 平安科技(深圳)有限公司 A kind of information acquisition method and terminal device
CN108447190A (en) * 2018-03-06 2018-08-24 中国邮政集团公司广州市分公司 A kind of quick pickup intelligent cabinet of recognition of face
CN109102216A (en) * 2018-06-19 2018-12-28 链家网(北京)科技有限公司 A kind of company personnel efficiently takes the method and system of express delivery
CN109637040A (en) * 2018-12-28 2019-04-16 深圳市丰巢科技有限公司 A kind of express delivery cabinet pickup method, apparatus, express delivery cabinet and storage medium
CN110502653A (en) * 2019-08-23 2019-11-26 北京市商汤科技开发有限公司 Express delivery querying method and server, terminal

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8380630B2 (en) * 2000-07-06 2013-02-19 David Paul Felsher Information record infrastructure, system and method
JP2008287473A (en) * 2007-05-17 2008-11-27 Mitsubishi Electric Corp Fingerprint matching device
TWM410933U (en) * 2011-01-27 2011-09-01 Taiwan Colour And Imaging Technology Corp Human-face identification self-help service machine
CN104767790B (en) * 2015-02-14 2018-02-23 成都我来啦网格信息技术有限公司 A kind of management method based on Intelligent storage cabinet user behavior data
CN106156967A (en) * 2015-04-08 2016-11-23 阿里巴巴集团控股有限公司 Express delivery information association, the method and device of offer logistics content information
TWI629654B (en) * 2017-05-24 2018-07-11 中華電信股份有限公司 Wisdom door city welcome product recommendation system and method thereof
CN107507289A (en) * 2017-09-30 2017-12-22 四川长虹电器股份有限公司 A kind of mobile terminal human face identification work-attendance checking method and system
CN112687058A (en) * 2017-12-20 2021-04-20 创新先进技术有限公司 Storage terminal pickup method and device and electronic equipment
CN109543504A (en) * 2018-09-29 2019-03-29 杭州沃习睿科技合伙企业(有限合伙) Collaboration face identification system and method based on independent recognition of face terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106710017A (en) * 2015-11-17 2017-05-24 阿里巴巴集团控股有限公司 Identity authentication method used for logistics sign-off and device and system thereof
CN107609044A (en) * 2017-08-17 2018-01-19 平安科技(深圳)有限公司 A kind of information acquisition method and terminal device
CN108447190A (en) * 2018-03-06 2018-08-24 中国邮政集团公司广州市分公司 A kind of quick pickup intelligent cabinet of recognition of face
CN109102216A (en) * 2018-06-19 2018-12-28 链家网(北京)科技有限公司 A kind of company personnel efficiently takes the method and system of express delivery
CN109637040A (en) * 2018-12-28 2019-04-16 深圳市丰巢科技有限公司 A kind of express delivery cabinet pickup method, apparatus, express delivery cabinet and storage medium
CN110502653A (en) * 2019-08-23 2019-11-26 北京市商汤科技开发有限公司 Express delivery querying method and server, terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011339A (en) * 2021-03-19 2021-06-22 支付宝(杭州)信息技术有限公司 User identity verification method and device and electronic equipment
CN113192269A (en) * 2021-04-30 2021-07-30 武汉未远金易科技有限公司 Cabinet door opening method

Also Published As

Publication number Publication date
KR20210095942A (en) 2021-08-03
CN110502653A (en) 2019-11-26
TWI760802B (en) 2022-04-11
TW202109368A (en) 2021-03-01
JP2022516280A (en) 2022-02-25
CN110502653B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
WO2021036547A1 (en) Express query method, server, and terminal
US9628563B2 (en) Sharing and synchronizing data across users of cloud computing systems
CN107943841B (en) Streaming data processing method, system and computer readable storage medium
US20200107153A1 (en) Matching users in a location-based service
WO2018050004A1 (en) Pickup method, and logistics information processing method, device and system
US10701010B2 (en) Claiming conversations between users and non-users of a social networking system
US20150347630A1 (en) Method, apparatus, and system for processing call requests
US20140099930A1 (en) Contact information synchronization system and method
CN105022811A (en) Menu generating method and terminal
US20200021963A1 (en) Communication Identifier Binding Processing Method and Terminal
WO2017143930A1 (en) Method of sorting search results, and device for same
CN109669980B (en) Cross-database access method and device for data
EP2991280A1 (en) Content sharing method and social synchronizing apparatus
US11399077B2 (en) Systems and methods for acknowledgement in media processing
US20170272402A1 (en) Method and electronic device for searching for special contacts
CN107241446A (en) Document transmission method, device and the terminal device and storage medium of application program
US9020143B2 (en) Method and system for providing advanced address book functionality in a universal plug and play home network environment
CN111538672A (en) Test case layered test method, computer device and computer-readable storage medium
CN109842482B (en) Information synchronization method, system and terminal equipment
WO2020124619A1 (en) Data processing method and device, computer apparatus, and storage medium
US20170180511A1 (en) Method, system and apparatus for dynamic detection and propagation of data clusters
WO2015183900A1 (en) Method, apparatus, and system for processing call requests
US20220329673A1 (en) Systems and methods for acknowledgement in media processing
US11978109B1 (en) Integrating a wallet client with federated directory services
US20230336509A1 (en) Efficiently handling retained messages in a system with bridged message brokers

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20857340

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021538682

Country of ref document: JP

Kind code of ref document: A

Ref document number: 20217020537

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20857340

Country of ref document: EP

Kind code of ref document: A1