Article renting method and related device
By obtaining the identity information and authorization-related information of the target object, and using wireless local communication connections to track the status of rental items, the problem of low rental efficiency of multi-tenants is solved, accurate detection of misborrowing items and timely alarms are achieved, and leasing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410207818.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2025-08-26
AI Technical Summary
During the item rental process, multiple tenants need to line up one by one when renting at the same time, resulting in low rental efficiency.
By obtaining the identity information of the target object and the target object information associated with authorization, the wireless local communication connection is used to track the status of the leased items, determine whether the misborrowing conditions are met and alarm information is generated, so as to avoid the leased party from renting them one by one.
It improves rental efficiency, reduces rental queues, ensures the accuracy of misboring items and the timeliness of alarms, and improves user experience.
Smart Images

Figure CN120544314A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology and provides an item leasing method and related devices. Background Art
[0002] At present, item rental has brought great convenience to daily life, and the application scenarios are becoming increasingly rich; for example, power bank rental (also known as shared power bank), bicycle rental (also known as shared bicycle), and baby stroller rental (also known as shared baby stroller).
[0003] Taking power bank rental as an example, the rental equipment has a QR code. When renting a power bank, the lessee usually scans the code and identifies his / her identity before the rental equipment is controlled to pop out the power bank.
[0004] In related technologies, in order to avoid accidental taking of rented items, only one lessee is supported to occupy the item rental equipment to rent items at the same time. When there are multiple lessees renting items, the lessees need to rent them one by one, which results in queuing and low rental efficiency. Summary of the Invention
[0005] The embodiments of the present application provide an item rental method and related devices to improve the efficiency of item rental.
[0006] In a first aspect, an embodiment of the present application provides an item rental method, comprising:
[0007] In response to identity information input by a target object, acquiring target object information associated with the identity information, wherein the target object information and the identity information are authorized to be associated with each other by the target object;
[0008] Sending the target object information to the item rental device, so that after allocating a target rental item to the target object, the item rental device transfers the target object information to the target rental item and returns an allocation result;
[0009] receiving communication status information periodically reported by the target rental item, wherein the communication status information is reported after the target rental item establishes a wireless local area communication connection with a terminal device associated with the target object information;
[0010] Based on the communication status information, when it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition, an alarm message is generated and pushed to the target object.
[0011] In a second aspect, an embodiment of the present application provides an item rental method, comprising:
[0012] In response to identity information input by a target object, acquiring target object information associated with the identity information, wherein the target object information and the identity information are authorized to be associated with each other by the target object;
[0013] Sending the target object information to the item rental device, so that after allocating a target rental item to the target object, the item rental device transfers the target object information to the target rental item and returns an allocation result;
[0014] receiving communication status information periodically reported by the target rental item, wherein the communication status information is reported after the target rental item establishes a wireless local area communication connection with a terminal device associated with the target object information;
[0015] Based on the communication status information, when it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition, an alarm message is generated and pushed to the target object.
[0016] In a third aspect, an embodiment of the present application provides an item rental device, comprising:
[0017] an information acquisition unit, configured to acquire, in response to identity information input by a target object, target object information associated with the identity information, wherein the target object information and the identity information are authorized to be associated with each other by the target object;
[0018] an information sending unit, configured to send the target object information to the item rental device, so that the item rental device transfers the target object information to the target rental item after allocating the target rental item to the target object, and returns an allocation result;
[0019] an information receiving unit, configured to receive communication status information periodically reported by the target rental item, wherein the communication status information is reported after the target rental item establishes a wireless local area communication connection with a terminal device associated with the target object information;
[0020] The alarm unit is configured to generate an alarm message based on the communication status information and push the alarm message to the target object when it is determined that the relative position between the target rental item and the target object meets a set item misborrowing condition.
[0021] As a possible implementation manner, when it is determined based on the communication status information that the relative position between the target rental item and the target object meets a set item misborrowing condition, the alarm unit is specifically configured to:
[0022] When it is determined based on the communication status information that the signal strength between the target rental item and the target object decreases, determining the relative position between the target rental item and the target object based on the communication status information;
[0023] Based on the relative position and in combination with a set distance threshold, it is determined that the relative position between the target rental item and the target object meets a set item misborrowing condition.
[0024] As a possible implementation, when the relative position between the target rental item and the target object is determined to meet a set misborrowing condition based on the relative position and a set distance threshold, the alarm unit is specifically configured to:
[0025] If the relative position exceeds a set distance threshold, it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition; or
[0026] If the relative position exceeds a set distance threshold, then when it is determined based on the target object's item usage information that the target object has not lent the target rental item to another object, it is determined that the relative position between the target rental item and the target object meets the set item mis-borrowing condition.
[0027] As a possible implementation manner, the information acquisition unit is further configured to acquire the identity information in the following manner:
[0028] In response to an item rental operation triggered by the target object, acquiring a collected video of the target object to be identified, where the video to be identified includes a plurality of video frames;
[0029] Based on at least one evaluation dimension, the to-be-identified video is screened, and a target video frame that meets a set image quality condition is selected from the plurality of video frames;
[0030] The target video frame is used as the identity information of the target object.
[0031] As a possible implementation manner, when acquiring the target object information associated with the identity information, the information acquiring unit is specifically configured to:
[0032] Extracting features from the identity information to obtain features of the identity to be identified;
[0033] Based on the feature similarity between each reference identity feature and the identity feature to be identified, selecting a reference identity feature that matches the identity feature to be identified from the reference identity features; wherein each reference identity feature is associated with an object information;
[0034] Based on the object information associated with the selected reference identity feature, target object information associated with the identity information is obtained.
[0035] As a possible implementation, when obtaining the target object information associated with the identity information based on the object information associated with the selected reference identity feature, the information acquisition unit is specifically configured to:
[0036] If the object information associated with the selected reference identity feature is an identifier that is allowed to be disclosed, the object information associated with the selected reference identity feature is directly used as the target object information;
[0037] If the object information associated with the selected reference identity feature is non-public information, an identifier that allows disclosure is generated, and the generated identifier is used as the target object information.
[0038] As a possible implementation, the alarm unit is also used to:
[0039] If it is determined based on the communication status information that the wireless local area communication connection between the target rental item and the target object is disconnected, generating an alarm message again;
[0040] The regenerated alarm information is pushed to the target object.
[0041] In a fourth aspect, an embodiment of the present application provides an item rental device, comprising:
[0042] a triggering unit, configured to respond to an item rental operation triggered by a target object and present an authorization interface when the target object uses the item rental service for the first time, wherein the authorization interface is used to authorize the relevant rights for item rental;
[0043] an authorization unit, configured to send an authorization notification to an identity recognition server in response to an authorization operation triggered by the target object in the authorization interface, so that the identity recognition server sends target object information of the target object to the item rental device;
[0044] a connection establishing unit, configured to establish a wireless local area communication connection with the target rental item upon receiving a wireless local area communication connection request sent by the item rental device for the target rental item allocated to the target object;
[0045] An alarm unit is configured to present the alarm information to a target object upon receiving the alarm information; wherein the alarm information is generated when it is determined based on communication status information periodically reported by the target rental item that the relative position between the target rental item and the target object meets a set item misborrowing condition.
[0046] As a possible implementation, upon receiving a wireless local area communication connection request sent by a target rental item assigned to the target object of the item rental device, the connection establishing unit establishes a wireless local area communication connection with the target rental item, and the connection establishing unit is specifically configured to:
[0047] When receiving the wireless local area communication connection request carrying the target object information of the target object, determining that the wireless local area communication connection request sent by the item rental device for the target rental item allocated to the target object is received;
[0048] A connection response is returned to the target rental item, and a data channel is established between the terminal device and the target rental item, where the data channel is used for wireless local area communication between the terminal device and the target rental item.
[0049] As a possible implementation manner, the connection establishing unit is further configured to:
[0050] Based on the public keys held by the terminal device and the target rental item, the identity of the terminal device and the target rental item is authenticated through public key encryption, and the data integrity of the terminal device and the target rental item is verified through digital signature;
[0051] After identity authentication and data integrity are successful, data transmission is performed using the data channel.
[0052] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any of the above methods.
[0053] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any of the above methods.
[0054] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium. The processor of an electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device performs the steps of the method of any one of the above aspects.
[0055] In an embodiment of the present application, after obtaining the identity information of the target object, the target object information authorized to be associated with the target object is obtained. By using the target object information, the association relationship between the target object and the target rental item can be accurately identified, thereby ensuring the accuracy of detecting the mistaken borrowing of items, thereby improving the accuracy of the alarm and enhancing the user experience.
[0056] After the target rental item is assigned to the target object, the target object information will be transmitted to the target rental item. In this way, the target rental item can establish a wireless local area communication connection with the target object's terminal device based on the target object information and periodically report communication status information. Since the target object and the target rental item communicate through the wireless local area communication connection, the communication status information can be used to determine whether an alarm is needed, thereby ensuring the accuracy of the judgment. In the event of an item being borrowed by mistake, the target object can be reminded in a timely and effective manner.
[0057] In addition, when multiple lessees are leasing, they do not need to lease one by one, thus avoiding leasing queues and improving leasing efficiency.
[0058] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present application. The purposes and other advantages of the present application can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0060] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0061] Figure 2 A schematic diagram of a system architecture provided in an embodiment of the present application;
[0062] Figure 3 A flowchart of an item leasing method provided in an embodiment of the present application;
[0063] Figure 4 A schematic diagram of an item rental device provided in an embodiment of the present application;
[0064] Figure 5 A logical diagram of an item rental process provided in an embodiment of the present application;
[0065] Figure 6A logical diagram of a target object information acquisition process provided in an embodiment of the present application;
[0066] Figure 7 This is a logic diagram of another item rental process provided in an embodiment of the present application;
[0067] Figure 8 A logical diagram of an alarm process provided in an embodiment of the present application;
[0068] Figure 9 A schematic diagram of a process between devices during a connection establishment process provided in an embodiment of the present application;
[0069] Figure 10 A flowchart of another item leasing method provided in an embodiment of the present application;
[0070] Figure 11 A schematic diagram of the interaction between various devices in an item rental process provided in an embodiment of the present application;
[0071] Figure 12 This is a schematic diagram of the structure of an item rental device provided in an embodiment of the present application;
[0072] Figure 13 This is a schematic diagram of the structure of another item rental device provided in an embodiment of the present application;
[0073] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solutions of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the technical solutions of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although a logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0075] It is understandable that in the following specific implementation methods of this application, user data may be involved, such as identity information, object information, etc. Therefore, when the various embodiments of this application are applied to specific products or technologies, relevant licenses or consents need to be obtained, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0076] To facilitate understanding of the technical solutions provided in the embodiments of the present application, some key terms used in the embodiments of the present application are explained here:
[0077] Palm swiping: Palm swiping is a technology that uses multimedia palm information to exchange for identity information. Palm swiping refers to the operation performed by a user to provide the information required for identity verification when a business requires identity verification and palm swiping is used for identity verification. This usually involves placing one's palm within the capture range of the palm swiping device. Generally speaking, a palm swiping device can include an image capture device to capture palm images for subsequent identity recognition. For example, it can include a 3D camera. A 3D camera is similar to a traditional camera, but it adds liveness-related hardware and software, including a depth camera and an infrared camera, to ensure information security.
[0078] Palm image: refers to an image taken for user identification, which can be a 2D image taken by a 2D camera or a 3D image taken by a 3D camera.
[0079] Palm features: refers to image features obtained by extracting features from a palm image, which can be the palm image itself, such as the numerical information of each color channel of the image or information such as the grayscale and brightness of the image; or, it can be features obtained by processing the palm image through image processing, such as binarization of the image; or, it can be image features obtained by extracting features from a palm image using an artificial neural network model learned through deep learning.
[0080] Identity recognition refers to the process of identifying the corresponding object information based on the target object's identity information. Identity information can include, but is not limited to, biometric features such as palm features, pupil features, and facial features. Object information is the information used to uniquely identify the object during the item rental process. In the embodiments of this application, identity recognition is primarily performed based on the acquisition of an image of the target object. This involves identifying the target object's biometric features from the captured image using image processing methods.
[0081] Target Object: In the embodiments of this application, the target object refers to the party that triggers the rental operation, i.e., the lessor. In real-world scenarios, when renting an item, it is often necessary to register the user on the rental platform, using the registered account and other object information to rent the item. This allows the rental platform to deduct fees from the target object after the rental process. Therefore, through the identity recognition process, the target object's object information on the rental platform can be identified based on biometric information.
[0082] Item Rental Status: This status indicates whether the target has successfully rented the item. Generally, the rental process involves unlocking the item and then retrieving it. Therefore, the item rental status can include the status of each stage, such as unlocking the item and retrieving it. Only when there are no abnormalities at each stage can the item rental status be considered normal, indicating that the item has been successfully rented.
[0083] In related technologies, in order to avoid accidental taking of rented items, only one lessee is supported to occupy the item rental equipment to rent items at the same time. When there are multiple lessees renting items, the lessees need to rent them one by one, which results in queuing and low rental efficiency.
[0084] In an embodiment of the present application, after obtaining the identity information of the target object, the target object information authorized to be associated with the target object is obtained. By using the target object information, the association relationship between the target object and the target rental item can be accurately identified, thereby ensuring the accuracy of detecting the mistaken borrowing of items, thereby improving the accuracy of the alarm and enhancing the user experience.
[0085] After the target rental item is assigned to the target object, the target object information will be transmitted to the target rental item. In this way, the target rental item can establish a wireless local area communication connection with the target object's terminal device based on the target object information and periodically report communication status information. Since the target object and the target rental item are connected via a wireless local area communication, the communication status information can be used to determine whether an alarm is needed, thereby ensuring the accuracy of the judgment, so that in the event of an item being borrowed by mistake, the target object can be reminded in time.
[0086] In addition, when multiple lessees are leasing, they do not need to lease one by one, avoiding leasing queues and thus improving leasing efficiency.
[0087] The following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios described below are only used to illustrate the embodiments of the present application and are not limiting. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0088] The solutions provided in the embodiments of this application can be applied to any scenario involving item rental, such as power bank rental, stroller rental, bicycle rental, or 3D glasses rental. Furthermore, the item rental involved in the embodiments of this application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.
[0089] See Figure 1, which is a schematic diagram of an application scenario provided by an embodiment of the present application, may include an item rental device 101 , an identity recognition server 102 and an item rental server 103 .
[0090] The item rental device 101 is a front-end device used to interact with the target object. It can include an identity recognition device 1011 and an item management device 1012. The identity recognition device 1011 is used to capture the image of the target object for identification, and the item management device 1012 is used to control the unlocking of the rental item.
[0091] It should be noted that the item rental device 101 includes an identity recognition device 1011, which may mean that the identity recognition device 1011 is a device contained in the item rental device 101 itself, or it may mean that the identity recognition device 1011 is a device external to the item rental device 101. In the case where the identity recognition device 1011 is a device external to the item rental device 101, the item rental device 101 and the identity recognition device 1011 are two independent devices, which can be connected through a certain communication connection method. At this time, the item rental device can also be directly regarded as the item management device 1012.
[0092] The identity recognition device 1011 may be a different device corresponding to the different identity recognition methods used. For example, when the palm recognition method is used, the identity recognition device 1011 may be a palm recognition device. Figure 1 This is specifically illustrated as an example; when face recognition is used, the identity recognition device 1011 can be a face recognition device; or, when iris recognition is used, the identity recognition device 1011 can be an iris recognition device. Of course, it can also be a device based on other identity recognition methods, which is not limited in the embodiments of this application.
[0093] Similarly, the item management device 1012 may be a different device depending on the rental item. For example, if the rental item is a power bank, the item management device 1012 may be a power bank rental device; or, if the rental item is 3D glasses, the item management device 1012 may be a glasses rental device; or, if the rental item is a baby stroller, the item management device 1012 may be a baby stroller rental device. Of course, the device may also be a device corresponding to any other possible rental item, and this embodiment of the present application is not limited thereto.
[0094] The item rental device 101 may be installed with an application (APP) for implementing item rental, such as an identity recognition application and an item rental application. The application involved in the embodiment of the present application may be a software client, or a client such as a web page or a mini-program, and the specific type of the client is not limited.
[0095] The identity recognition server 102 is the backend server for the identity recognition application. It is responsible for performing identity recognition based on images captured by the identity recognition device 1011 and returning the identified target object information to the item rental device 101. Furthermore, the identity recognition server 102 can also process rental fee payments for the target object and identify misplaced items based on the communication status information reported periodically by the target rental item, without limitation.
[0096] The item rental server 103 is a backend server corresponding to the item rental application, and is used to manage and maintain the rental items.
[0097] Among them, the identity recognition server 102 and the item rental server 103 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, i.e., content delivery networks (CDNs), as well as big data and artificial intelligence platforms, but are not limited to these.
[0098] In some implementations, the identity recognition server 102 and the item rental server 103 may be implemented using the same physical device, that is, the identity recognition server 102 and the item rental server 103 may be considered to be the same device.
[0099] For example, if the identity recognition device 1011 is a palm-scanning device and the item management device 1012 is a power bank rental device, when a target object needs to rent a power bank, the identity recognition device 1011 collects the target object's palm print image and then sends the collected palm print image to the identity recognition server 102. The identity recognition server 102 performs identity recognition based on the collected palm print image, obtains the target object information associated with the palm print image, and then sends the target object information to the item management device 1012. The item management device 1012 assigns a target power bank to the target object and then transmits the target object information to the target power bank, so that the target power bank establishes a wireless local area communication connection with the terminal device associated with the target object information. After the target power bank establishes a wireless local area communication connection with the terminal device associated with the target object information, it periodically reports communication status information to the identity recognition server 102.
[0100] In addition, the item management device 1012 sends the allocation result to the identity recognition server 102. In this way, the identity recognition server 102 can determine whether the target object has borrowed the power bank by mistake based on the communication status information reported periodically by the target rental item represented by the allocation result, and when it is determined that the power bank has been borrowed by mistake, it will promptly issue an alarm to remind the target object that the power bank has been borrowed by mistake, so that the target object can exchange it for the correct power bank.
[0101] It should also be noted that since the embodiments of this application involve the use of the identification device 1011 to capture an image of a target object, the identification device 1011 must be able to capture the target object. Specifically, during implementation, the acquisition orientation of the identification device 1011 may be configured as needed to meet the image acquisition requirements. Alternatively, an identification device 1011 capable of omnidirectional image acquisition may be selected, or other image acquisition devices connected to the identification device 1011 may be deployed at appropriate locations on the item rental device 101. This embodiment of the application does not limit this.
[0102] The item rental method in the embodiment of the present application may be executed by any one of the item rental device 101 , the identity recognition server 102 and the item rental server 103 alone, or may be executed by the above devices together.
[0103] As a possible implementation method, when the item rental method is executed separately by the item rental device 101, for example, the identity recognition device 1011 obtains the target object information associated with the identity information in response to the identity information input by the target object, and sends the target object information to the item management device 1012, so that after the item management device 1012 allocates the target rental item to the target object, it transfers the target object information to the target rental item and returns the allocation result to the identity recognition device 1011; the identity recognition device 1011 receives the communication status information reported periodically by the target rental item, and based on the communication status information, generates an alarm message when it determines that the relative position between the target rental item and the target object meets the set item misborrowing condition, and pushes the alarm message to the target object.
[0104] For another example, the identity recognition device 1011 obtains the target object information associated with the identity information in response to the identity information input by the target object, and sends the target object information to the item management device 1012, so that the item management device 1012 transmits the target object information to the target rental item after allocating the target rental item to the target object; the item management device 1012 receives the communication status information reported periodically by the target rental item, and based on the communication status information, generates an alarm message when it determines that the relative position between the target rental item and the target object meets the set item misborrowing condition, and pushes the alarm message to the target object.
[0105] As a possible implementation method, when the item rental method is executed separately by the identity recognition server 102 or the item rental server 103, the identity recognition server 102 or the item rental server 103 obtains the target object information associated with the identity information in response to the identity information input by the target object, and sends the target object information to the item management device 1012, so that after the item management device 1012 allocates the target rental item to the target object, it passes the target object information to the target rental item and returns the allocation result; then, it receives the communication status information reported periodically by the target rental item, and based on the communication status information, generates an alarm message when it determines that the relative position between the target rental item and the target object meets the set item misborrowing condition, and pushes the alarm message to the target object.
[0106] As a possible implementation method, when the item rental method is jointly executed by the item rental device 101 and the identity recognition server 102, the identity recognition device 1011 collects the video of the target object to be identified after the target object triggers the rental operation, extracts identity information based on the video to be identified, and sends the identity information to the identity recognition server 102. The identity recognition server 102 obtains the target object information associated with the identity information and sends the target object information to the item management device 1012, so that after the item management device 1012 allocates the target rental item to the target object, it transfers the target object information to the target rental item and returns the allocation result; then, it receives the communication status information reported periodically by the target rental item, and based on the communication status information, generates an alarm message when it determines that the relative position between the target rental item and the target object meets the set item misborrowing condition, and pushes the alarm message to the target object.
[0107] Of course, in actual application, specific configuration can be made according to the situation, and this application does not make any specific limitations here.
[0108] In the embodiment of the present application, the above-mentioned devices can be directly or indirectly connected to each other through one or more networks. The network can be a wired network or a wireless network. For example, the wireless network can be a mobile cellular network or a Wireless Fidelity (WIFI) network. Of course, it can also be other possible networks, and the embodiment of the present application does not limit this. It should be noted that Figure 1 The figures are only examples. In fact, the number of devices is not limited and is not specifically limited in the embodiments of this application.
[0109] See also Figure 2 The system architecture provided in the embodiment of the present application is shown in FIG. This architecture is illustrated using palm swipe recognition as an example of identity recognition. The architecture may include the following modules:
[0110] (1) Item rental front end
[0111] See also Figure 2 As shown, the item rental front-end includes a 3D camera and a palm-swiping application. The palm-swiping application can call the 3D camera to capture images when running, thus realizing the function of an identity recognition device. The palm-swiping application can include a palm-swiping recognition module, a mini-program module, and a network module.
[0112] The palm recognition module is used to capture the target subject's palm image and perform palm recognition-related processing. For example, it can use a 3D camera to collect palm streaming data (i.e., palm video) and optimize the streaming data. The optimal palm image is selected through a comprehensive evaluation of factors such as palm size, angle, image contrast, brightness, and clarity, and sent to the application backend service for processing. If the front-end equipment conditions of the item rental allow, this module can be used for image preprocessing and palm feature extraction of the palm image, and the specific configuration can be based on the actual situation.
[0113] The mini-program module is used to provide the mini-program running environment.
[0114] The network module is used to pass the identity information of the target object (such as OpenID) obtained from the application backend server to the item rental application (such as the item rental applet).
[0115] Generally speaking, the item rental front-end usually consists of two parts: the item rental application and the identity recognition application. The two can call each other at runtime to cooperate to realize the item rental function. In some scenarios, the item rental application can be integrated into the identity recognition application in the form of a lightweight application. For example, if the identity recognition application can support the mini-program environment, the item rental application can run in the mini-program environment in the form of a mini-program. Figure 2 Taking this as an example, the item rental front end can also be called the identity recognition front end.
[0116] (2) Application backend services
[0117] The application backend service is the backend service corresponding to the Shuazhang application. The application backend service includes rental service, identity recognition service, rental exception push service, and payment service, but is not limited to these.
[0118] The rental service includes a power bank rental status judgment service and a power bank rental account association service. The power bank rental status judgment service is used to judge the power bank rental status (i.e., whether there is a case of mis-borrowing of items) based on the communication status information reported periodically by the power bank assigned to the target object. Depending on the communication method, it can be specifically divided into Bluetooth information judgment service and WiFi information judgment service, but is not limited to this. The power bank-rental account association service is used to store the object's rental account (i.e., object information) and the association between the power bank identifier of the power bank assigned to it.
[0119] The rental exception push service is used to push warning information to the target object when an item is borrowed by mistake.
[0120] The identity recognition service is used to identify the target object's target object information based on the palm image sent by the front end. For example, feature extraction can be performed based on the palm image sent by the front end to obtain the corresponding palm features, and then the object information that matches the extracted palm features is used as the target object information.
[0121] The payment service is used to implement the payment process related to item rental. For example, after completing the item rental, you need to pay the corresponding fees to the item rental provider. The payment platform can deduct the corresponding fees from the corresponding account of the identified identity information.
[0122] (3) Terminal equipment
[0123] An instant messaging application is installed in the terminal device, and the instant messaging application includes an authorization module, an instant messaging module, a mini-program module and a Bluetooth module. The authorization module is used to implement authorization, and the permissions include but are not limited to wireless local area communication connection permissions (such as Bluetooth connection permissions) and message notification permissions. The instant messaging template is used for message notifications, such as presenting alarm information in the instant messaging application. The mini-program module contains an exception handling module, which is used for corresponding exception handling, such as providing item information and location information of the target rental item. The wireless local area communication connection module is used to establish a wireless local area communication connection with the power bank assigned to the target object. For example, the wireless local area communication connection module is used to establish a Bluetooth connection with the power bank assigned to the target object.
[0124] (4) Power bank rental equipment
[0125] The power bank rental device is used to manage each power bank. Each power bank contains a network module and a wireless local area communication connection module. The network module is used to realize data transmission between the item rental front end, application back-end service, and terminal device, for example, for receiving OpenID. The wireless local area communication connection module is used to establish a wireless local area communication connection with the terminal device of the target object, for example, for establishing a Bluetooth connection with the terminal device of the target object.
[0126] also, Figure 2 The framework shown may also include rental merchant services. Rental merchant services can be the backend services corresponding to the item rental application deployed in the frontend, including a rental management and control platform for scheduling, after-sales, and operations of rental items.
[0127] Below, in combination with the application scenarios and system architecture described above, the method provided by the exemplary embodiment of the present application is described with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation methods of the present application are not limited in this respect.
[0128] See also Figure 3 The figure below is a flow chart of a method for detecting the item rental status provided in an embodiment of the present application. This method can be executed by a computing device, which can be an identity recognition device or server associated with the item rental device. The following description will only be based on the application to an identity recognition server as an example. The specific implementation process of this method is as follows:
[0129] S301 : In response to identity information input by a target object, obtain target object information associated with the identity information, where the target object information and the identity information are authorized to be associated with each other by the target object.
[0130] In the embodiment of the present application, the target object refers to a user who has a need to rent an item. The identity information is information used to identify the target object, such as palm prints, face, iris, etc., but is not limited thereto.
[0131] Target object information is any information used to uniquely identify the target object. For example, target object information can include the target object's ID number, mobile phone number, or instant messaging account. To ensure user information security and reduce the time-consuming nature of mini-programs, OpenID is integrated to weaken the mini-program login state, using OpenID as the target object's associated target object information.
[0132] In some embodiments, when a target subject rents an item for the first time, an authorization association is performed between the target subject's information and identity information. Specifically, when the target subject triggers an item rental operation, a determination is made as to whether this is the target subject's first time using the item rental service. If this is the target subject's first time using the item rental service, then when the target subject grants the relevant permissions for authorizing the item rental, an authorization association is performed between the target subject's information and identity information.
[0133] The relevant permissions used to authorize the rental of items may also be referred to as item rental-related permissions, or simply as relevant permissions.
[0134] The relevant permissions include information collection and storage permissions, and may also include one or more permissions such as information push permissions, wireless LAN connection permissions, etc. In the embodiment of the present application, all permissions can be authorized in batches, or users can be reminded to authorize them one by one when using them, without limitation.
[0135] Item rental operations include, but are not limited to, identity recognition operations using image capture, such as palm swiping, face swiping, or iris recognition. For example, a target user triggering an item rental operation can place their palm within the image capture area of the palm swiping device.
[0136] Whether the target subject is using the item rental service for the first time can be determined by, but not limited to, the following methods: extracting features from the target subject's identity information to obtain the identity features to be identified, and identifying, from the reference identity features, a reference identity feature that matches the identity features to be identified based on the feature similarity between each reference identity feature and the identity features to be identified. If the identification result indicates that there are no reference identity features that match the identity features to be identified, then it is determined that the target subject is using the item rental service for the first time; otherwise, it is determined that the target subject is not using the item rental service for the first time. Obviously, the process of determining whether the target subject is using the item rental service for the first time can also be understood as the process of identifying the identity of the target subject.
[0137] In one possible implementation, the determination of whether the item rental service is used for the first time can be made by the identity recognition device, or by the identity recognition server. If the determination of whether the item rental service is used for the first time is made by the identity recognition device, then in response to a target object triggering an item rental operation, the identity recognition device obtains the collected identity information of the target object, then performs feature extraction on the target object's identity information to obtain the identity feature to be identified, and then selects a reference identity feature from the reference identity features that matches the identity feature to be identified based on the feature similarity between each reference identity feature and the identity feature to be identified.
[0138] If the identification server determines that the item rental service is used for the first time, the identification device responds to the target object triggering the item rental operation, obtains the collected identity information of the target object, and sends the identity information of the target object to the identity identification server. The identity identification server then extracts features from the identity information of the target object to obtain the identity features to be identified, and based on the feature similarity between each reference identity feature and the identity feature to be identified, selects a reference identity feature that matches the identity feature to be identified from each reference identity feature, and returns the identification result to the identity identification device for subsequent authorization through the identity identification device.
[0139] In one possible implementation, the target object's identity information can be obtained based on the video or image to be identified, captured by the identification device. That is, the data captured by the identification device can be either video or image. If the data captured by the identification device is video, the identification device can directly send the video to be identified to a computing device, which will then select the target video frame from the video to be identified as the target object's identity information. However, to reduce the amount of transmitted data and improve data transmission efficiency, the identification device can also select the target video frame from the captured video to be identified and send it as the target object's identity information to an identification server, which will then perform subsequent processing.
[0140] In one possible implementation, the selection of the target video frame can be achieved in the following manner: based on at least one evaluation dimension, the video to be identified is screened, and from a number of video frames, a target video frame that meets the set image quality conditions is selected. For example, when a palm print video is screened based on at least one evaluation dimension, a corresponding comprehensive evaluation value can be obtained for each of the several video frames based on at least one evaluation dimension and its corresponding evaluation weight. Then, based on the comprehensive evaluation values corresponding to the several video frames, the video frame with the highest comprehensive evaluation value is selected from the several video frames as the target video frame. The evaluation dimensions include, but are not limited to, any one or more of the size of the object to be identified (such as the size of the palm), the acquisition angle, the image contrast, the brightness of the image, the clarity of the image, and the like.
[0141] In one possible implementation, when the target object uses the item rental service for the first time, the identity recognition device presents a registration interface containing a QR code for authorization. After the target object uses a terminal device (such as a mobile phone) to scan the code, the terminal device displays an authorization interface in the operation interface. The authorization interface is used to authorize the relevant permissions for item rental. When the target object triggers the authorization operation in the authorization interface, the identity recognition server is notified to associate the target object information and identity information of the target object. In other words, when the target object authorizes, the target object information and identity information are associated and stored. It should be noted that in the embodiment of this application, only scanning the code is used as an example for explanation. In actual applications, other authorization registration methods can also be used.
[0142] Still taking palm recognition as an example, see Figure 4 , which is a schematic diagram of an item rental device provided in an embodiment of the present application. The item rental device includes an item management device on the left and a palm-swiping device on the right. The item management device manages several power banks, and the palm-swiping device includes a camera and a display. Furthermore, the item management device may also include a display that can be used to display prompts regarding the item rental process.
[0143] See Figure 5 As shown in FIG, it is a flow chart of an item rental process provided in an embodiment of the present application. When the target object places the palm of the hand in the image acquisition area of the camera of the palm-swiping device, the palm-swiping device collects the palm video of the target object, and then filters several video frames in the palm video to obtain the target video frame. For details, see Figure 6 As shown, the palm-swiping device can filter the collected palm video based on at least one evaluation dimension, select a target video frame that meets the set image quality conditions from several video frames in the palm video, and send the target video frame as the identity information of the target object to the identity recognition server.
[0144] Figure 5 In the process, the identity recognition server performs identity recognition on the received target video frame, obtains the matching result, and then returns the matching result to the palm-swiping device. Figure 6 As shown, the identity recognition server extracts features from the target video frame to obtain identity features to be recognized, which can also be called palm features to be recognized. Assume that the association between object information and identity information is stored in a database. In this association, reference palm feature 1 is associated with account A, reference palm feature 2 is associated with account B, and reference palm feature 3 is associated with account C. Reference palm feature 1, reference palm feature 2, reference palm feature 3, and other reference palm features are equivalent to the reference identity features mentioned above. Each reference palm feature represents an identity. The identity recognition server selects a reference identity feature that matches the palm feature to be recognized from reference palm feature 1, reference palm feature 2, reference palm feature 3, and other reference palm features based on the feature similarity between each reference palm feature and the palm feature to be recognized. When the target object uses the device for the first time, the database generally does not store the association between the target object's palm features and the account number. Therefore, there is no reference identity feature that matches the palm feature to be recognized.
[0145] The matching result indicates that there is no reference identity feature that matches the identity feature to be identified. The display of the palm-swiping device contains a QR code for authorization. After the target person scans the QR code with their mobile phone, the authorization interface appears on the phone. The authorization interface includes a "Confirm" button and a "I have read the relevant usage agreement" button. When the target person checks the "I have read the relevant usage agreement" button and clicks the "Confirm" button, the authorization operation is triggered.
[0146] After the target object triggers the authorization operation, the mobile phone can send an authorization notification to the identity recognition server to notify the identity recognition server that the target object has granted the target object information and identity information association permission. After receiving the authorization notification, the identity recognition server associates and stores the target object information and identity information of the target object, and then notifies the palm-swiping device of the successful association (i.e., successful registration). In addition, the identity recognition server can also send the target object information to the item management device so that the item management device can allocate a power bank to the target object.
[0147] After the palm-swiping device associates the target object information and identity information of the target object, a registration success prompt message is presented on the display screen. After the registration success prompt message is displayed for a certain period of time (it can also be closed by the target object, there is no restriction on this), the relevant information of the power bank assigned to the target object and a "Confirm Rental" button are presented, such as the power bank logo, the remaining power of the power bank, etc. After the target object clicks "Confirm Rental", the power bank is controlled to pop up through the item management device.
[0148] After the target object authorizes the request, if the identity recognition server determines that the granted permissions include information collection and storage permissions, it determines that the target object allows information collection and storage, i.e., it determines that the target object authorizes the association of the target object information and identity information. It then determines whether the target object's identity information is stored. If the target object's identity information is stored, the target object information and identity information can be directly associated. If the target object's identity information is not stored, the target object's identity information can be collected through the identity recognition device associated with the item rental equipment, and the association between the target object's identity information and the target object information can be stored.
[0149] In the embodiment of the present application, the association relationship between the identity information of the target object and the target object information can be stored locally on the computing device or in other devices, without limitation.
[0150] Exemplarily, when the target object triggers an authorization operation, the terminal device or the item rental device determines that the target object has authorized the associated target object information and identity information, and sends the target object's authorized permissions to the computing device. Upon receiving the target object's authorized permissions, if the authorized permissions include information collection and storage permissions, the computing device determines that the granted permissions include information collection and storage permissions.
[0151] Generally speaking, the item rental equipment has a QR code. After the target object uses the terminal device to scan the code, the terminal device presents an authorization interface. The authorization interface contains selection components for various permissions. When the target object triggers one or more selection components, the authorization operation is triggered for the corresponding permissions.
[0152] Taking the rental item as a power bank and the identity recognition method as palm swiping as an example, the power bank rental device usually has a QR code. When the target object scans the code, an authorization interface pops up on the target object's mobile phone. When the target object triggers the authorization operation for information collection and storage permissions in the authorization interface, the terminal device sends an authorization notification to the identity recognition server, and the authorization notification includes the authorized permissions.
[0153] In some embodiments, if the target object is not renting an item for the first time, that is, the target object has been registered, then the identity recognition server can directly obtain the target object information associated with the identity information based on the stored association relationship between the target object information and the identity information.
[0154] Specifically, when the identity recognition server receives the identity information from the identity recognition device, it determines the target object triggering the input operation, and then obtains the target object information associated with the identity information based on the association relationship between the stored object information and the identity information.
[0155] In one possible implementation, the identity information of the identity recognition device is obtained in the following manner: the identity recognition device responds to the item rental operation triggered by the target object, obtains a collected video of the target object to be identified, and the video to be identified includes several video frames. Then, based on at least one evaluation dimension, the video to be identified is screened, and from the several video frames, a target video frame that meets the set image quality conditions is selected, and the target video frame is used as the identity information of the target object.
[0156] Item rental includes identity verification operations using image capture, such as palm swiping, face swiping, or iris recognition. For example, palm swiping triggers verification by placing the target person's palm in the image capture area of the swiping device.
[0157] The evaluation dimension is used to evaluate the image quality of the video frame. Exemplarily, the evaluation dimension includes but is not limited to any one or more of the size of the object (such as palm size), acquisition angle, image contrast, image brightness, image clarity, etc.
[0158] Among them, when screening palmprint videos based on at least one evaluation dimension, a corresponding comprehensive evaluation value can be obtained for each video frame in a number of video frames based on at least one evaluation dimension and its corresponding evaluation weight. Then, according to the comprehensive evaluation values corresponding to the several video frames, the video frame with the highest comprehensive evaluation value is selected from the several video frames as the target video frame.
[0159] Using palm recognition as an example, the palm-swiping device uses a 3D camera to collect streaming data from the target person's palm. After acquiring the streaming data, the palm-swiping device selects the optimal palm image based on a comprehensive evaluation of dimensions such as palm size, angle, image contrast, brightness, and clarity. The selected palm image is then sent to the identity recognition server for identification.
[0160] In the above implementation, by selecting a target video frame from the video stream as identity information, the target video frame has the highest image quality among the multiple video frames in the video stream, thereby improving the accuracy of subsequent identity recognition. Furthermore, when the identity recognition device captures images and the identity recognition service performs identity recognition based on the captured images, transmitting the target video frame reduces the data transmission volume compared to transmitting the video stream, thereby improving identity recognition efficiency.
[0161] As a possible implementation, after receiving the identity information, the target object information associated with the identity information may be obtained in the following ways, but not limited to:
[0162] First, the identity recognition server extracts features from the received identity information to obtain the identity features to be recognized;
[0163] Next, the identity recognition server selects a reference identity feature that matches the identity feature to be recognized from the reference identity features based on the feature similarity between each reference identity feature and the identity feature to be recognized; wherein each reference identity feature is associated with an object information;
[0164] Finally, the identity recognition server obtains the target object information associated with the identity information based on the object information associated with the selected reference identity feature.
[0165] The reference identity features of the identity recognition server are the identity features of each object stored after the object is authorized. The reference identity features can be stored in a database, but are not limited to this. In addition, in the embodiment of the present application, the number of reference identity features is not limited.
[0166] In one possible implementation, if the object information associated with the selected reference identity feature is an identifier that is allowed to be disclosed, the object information associated with the selected reference identity feature is directly used as the target object information; if the object information associated with the selected reference identity feature is non-public information, an identifier that is allowed to be disclosed is generated, and the generated identifier is used as the target object information.
[0167] For example, the object information associated with the reference identity feature may be an instant messaging application account. After the identity recognition server selects the reference identity feature, it obtains the Openid associated with the instant messaging application account based on the instant messaging application account associated with the selected reference identity feature, and then uses the Openid associated with the instant messaging application account as the target object information of the target object.
[0168] Through the above implementation method, the non-public information of the target object can be protected from being leaked, thereby improving the information security during data transmission.
[0169] Reference identity features that match the identity feature to be identified include, but are not limited to, reference identity features among the reference identity features whose feature similarity with the identity feature to be identified exceeds a preset similarity threshold. If there is only one reference identity feature whose feature similarity exceeds the preset similarity threshold, then that reference identity feature can be directly used as the reference identity feature to match the identity feature to be identified. If there are multiple reference identity features whose feature similarity exceeds the preset similarity threshold, then the reference identity feature with the highest feature similarity among the multiple reference identity features can be used as the reference identity feature to match the identity feature to be identified.
[0170] In palm swipe recognition, identity features can also be called palm print features. In a palm swipe recognition scenario, feature extraction is performed on the palm image to obtain the target palm features of the target object. The target palm features are then matched with various reference palm features to determine the reference palm features that match the target palm features. If object information matching the target palm features exists, it indicates that the target object has been registered, and the identity information associated with the reference palm features can be determined as the target object information of the target object. If no object information matching the target palm features exists, it indicates that the target object has not been registered, and the target object can be prompted to register their identity information, and the registered identity information can be determined as the target object information of the target object.
[0171] See Figure 7 As shown, it is a flow chart of another item rental process provided in an embodiment of the present application.
[0172] When the target subject places their palm in the image acquisition area of the camera of the palm scanning device, the palm scanning device collects the target subject's palm video, and then filters the palm video based on at least one evaluation dimension. From the multiple video frames in the palm video, the target video frame that meets the set image quality conditions is selected and sent to the identity recognition server as the target subject's identity information. Figure 6As shown, the palm-swiping device can filter the collected palm video based on at least one evaluation dimension, select a target video frame that meets the set image quality conditions from several video frames in the palm video, and send the target video frame as the identity information of the target object to the identity recognition server.
[0173] The identity recognition server performs identity recognition on the received target video frame, that is, extracts the identity information of the target object to obtain the identity feature to be recognized, and selects the reference identity feature that matches the identity feature to be recognized from each reference identity feature based on the feature similarity between each reference identity feature and the identity feature to be recognized, obtains the matching result, and then returns the matching result to the palm scanning device. Figure 6 As shown, the identity recognition server extracts features from the target video frame to obtain the palm features to be recognized. The association between object information and identity information is stored in a database. In this association, reference palm feature 1 is associated with account A, reference palm feature 2 is associated with account B, and reference palm feature 3 is associated with account C. Assuming a preset similarity threshold of 95%, the reference palm features among reference palm feature 1, reference palm feature 2, and reference palm feature 3 have feature similarities exceeding 95% with the palm features to be recognized. Furthermore, the feature similarity between reference palm feature 1 and the palm features to be recognized is higher than the feature similarity between reference palm feature 2 and the palm features to be recognized. Then, based on the feature similarities between each reference palm feature and the palm features to be recognized, the identity recognition server selects reference palm feature 1 from reference palm feature 1, reference palm feature 2, and reference palm feature 3. At this time, the matching result indicates that the reference identity feature that matches the identity feature to be identified is the reference palm feature 1 , and the identity recognition server may use the account A associated with the reference palm feature 1 as the target object information.
[0174] In the above implementation, by matching the identity features to be identified with the reference palm features to determine the target identity information of the target object, the target object information can be determined quickly and accurately, thereby improving the efficiency of item rental.
[0175] In one possible implementation, the image optimization process can be performed by an identity recognition device, and the object information matching process can be performed by an identity recognition server. Specifically, the identity recognition device screens the collected video of the target object to be identified based on at least one evaluation dimension, selects a target video frame that meets the set image quality requirements from a number of video frames, and uses the target video frame as the target object's identity information. After receiving the identity information uploaded by the identity recognition device and performing feature extraction, the identity recognition server conducts a full database search to identify the target object's target object information (such as a WeChat account) and sends the target object information to the item management device.
[0176] Taking palm swiping as an example, after the palm swiping device sends the target video frame to the identity recognition device, the identity recognition device performs feature extraction on the palm image to obtain the target palm features of the target object. Based on the feature similarity between each reference palm identity feature in the database and the identity feature to be recognized, the device selects a reference identity feature whose feature similarity exceeds a preset similarity threshold from each reference identity feature. Then, based on the object information associated with the selected reference identity feature, the target object information associated with the identity information is obtained. The palm swiping device sends the target object's object information to the identity recognition server. The identity recognition server performs feature extraction on the identity information to obtain the palm print features to be recognized. Then, based on the feature similarity between each reference identity feature and the identity feature to be recognized, the device selects the target object information that matches the identity feature to be recognized from each reference identity feature.
[0177] As another possible implementation, both the image optimization process and the object information matching process can be implemented by an identity recognition device. That is, after obtaining the identity information of the target object from the captured video to be identified, the identity recognition device extracts features from the identity information and searches the entire database to identify the target object's information (such as a WeChat account).
[0178] In addition, the identity recognition device can also perform corresponding processing on the identity information of the target object obtained. For example, it can display the target object information through the mini-program interface or the display screen of the identity recognition device, and prompt the target object information for confirmation. After the target object confirms that the target object information is correct, the target object information of the target object is transmitted to the item management device, and the target rental item is assigned to the target object. For example, if the rental item is a power bank, the identity recognition device will transmit the target object information of the target object to the item management device after the target object confirms the identity, so that the item management device can assign the corresponding power bank to the target object and eject the power bank so that the target object can take it out.
[0179] It should be noted that, if conditions permit, the identity recognition process may also be performed by the item management device, but is not limited to this.
[0180] S302: Send the target object information to the item rental device, so that the item rental device transfers the target object information to the target rental item after allocating the target rental item to the target object, and returns the allocation result.
[0181] In an embodiment of the present application, the identity recognition server sends the target object information to the item rental device. In this way, the item rental device can send the target object information to the target rental item after allocating the target rental to the target object, thereby establishing a communication connection between the target rental item and the target object.
[0182] As a possible implementation, the allocation result may include the target rental item's item information. Item information is used to identify a rental item and may include, but is not limited to, an item ID, such as a power bank ID.
[0183] In one possible implementation, after the target object confirms the target object information, the item rental device may select a target rental item from the rental items associated with the item rental device to be assigned to the target object. For example, the item rental device may maintain the status of each rental item, such as its availability and item attribute status, and then assign a target rental item to the target object based on the status.
[0184] The idle state indicates whether the rental item has been rented, that is, whether it is currently idle. The item attribute state is used to indicate the availability of the rental item. The availability can be related to the type of item. When the item type is different, the corresponding availability parameters can be configured. For example, for a power bank, the item attribute state can be the remaining power of the power bank. When allocating, power banks with high remaining power can be given priority. Or for a bicycle, the item attribute state can be the status of each component. When allocating, bicycles with all components in good condition can be given priority. The parameter selection for the item attribute state is not listed here one by one, and can be configured according to the actual situation.
[0185] In one possible implementation, after the target object confirms the identity information, the item rental server can select the target rental item assigned to the target object this time from the rental items associated with the item rental device. The item rental device can synchronize the status of each rental item to the item rental server through the rental service provider applet, and the item rental server can then assign the target rental item to the target object based on the status. After the item rental server selects the target rental item assigned to the target object this time, it can send the item information of the target rental item (such as the power bank ID of the power bank) to the item rental device through the rental service provider applet. Furthermore, the item rental device can also transmit the item information of the target rental item to the palm-swiping device, so that the palm-swiping device knows that the target rental item has been assigned to the target object.
[0186] The item information sent by the item rental server may include the item ID. The item information transmitted by the item rental device to the palm-swiping device may include not only the item ID but also the location information of the target rental item, so as to prompt the target object with the location of the target rental item.
[0187] S303: Receive communication status information periodically reported by the target rental item, where the communication status information is reported after the target rental item and the terminal device associated with the target object information establish a wireless local area communication connection.
[0188] In the embodiments of the present application, the wireless local area communication connection may adopt, but is not limited to, Bluetooth, WiFi, or other wireless local area connection methods. For Bluetooth connections, the communication status information is the Bluetooth signal strength, and for WiFi connections, the communication status information is the WiFi signal strength. The reporting period of the communication status information can be set as needed and is not limited thereto.
[0189] The terminal device associated with the target object information refers to a device held by the target object that has a wireless local area communication connection function. The process of establishing a wireless local area communication connection between the target rental item and the terminal device associated with the target object information is described below and will not be repeated here.
[0190] Still taking the power bank as an example, after the target power bank establishes a wireless local area communication connection with the target object's mobile phone, it periodically reports the Bluetooth signal strength.
[0191] S304: Based on the communication status information, when it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition, an alarm message is generated and pushed to the target object.
[0192] After receiving the communication status information uploaded periodically by the target rental item, the identity recognition server can continuously detect the relative position between the target rental item and the target object based on the communication status information, and then issue an alarm when the relative position meets the set item misborrowing conditions.
[0193] In one possible implementation, the determination of mis-borrowing of items may be made using, but not limited to, the following methods:
[0194] When the identity recognition server determines based on the communication status information that the signal strength between the target rental item and the target object decreases, the identity recognition server determines the relative position between the target rental item and the target object based on the communication status information; based on the relative position, combined with the set distance threshold, it determines that the relative position between the target rental item and the target object meets the set item misborrowing condition.
[0195] If the relative position exceeds the set distance threshold, it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition.
[0196] That is, after establishing a wireless local area communication connection between the target rental item and the target object, if the signal strength drops, it indicates that the target rental item may be far away from the target object, and there is a possibility that the item has been mistakenly taken. Therefore, the relative position between the target rental item and the target object is further determined, and when the relative position exceeds the set distance threshold, it is determined that the item has been mistakenly borrowed. Compared to continuously detecting relative position, detecting relative position when signal strength drops can reduce computing resource consumption and reduce computing pressure. At the same time, combined with the distance threshold, it can quickly and more accurately determine whether there has been a mistaken loan, thereby improving the detection efficiency and effectiveness of mistaken loan detection. In this way, in the case of multiple people renting, even if the target object has mistakenly taken the item, the target object can be promptly reminded to exchange it for the correct rental item.
[0197] In one possible implementation, based on relative position and a set distance threshold, determining whether the relative position between the target rental item and the target object meets the set misborrowing condition includes but is not limited to the following two judgment methods:
[0198] Judgment method 1: If the relative position exceeds the set distance threshold, the relative position between the target rental item and the target object is determined to meet the set item misborrowing condition. For example, if the distance between the mobile phone and the power bank exceeds 5 meters, the relative position between the mobile phone and the power bank is determined to meet the set item misborrowing condition, indicating that the power bank has been misborrowed.
[0199] Judgment method 2: If the relative position exceeds the set distance threshold, then based on the target object's item usage information, when it is determined that the target object has not lent the target rental item to other objects, it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition.
[0200] Taking into account the situation where the target rental item is loaned, that is, after subject A rents a power bank, he transfers the power bank to subject B for charging, and finally subject B returns the item. In this case, if the distance between subject A and subject B is short, since a local area communication connection can be established normally between subject A's mobile phone and the power bank, no alarm will be issued. However, if the distance between subject A and subject B becomes farther, for example, subject B goes to the item rental equipment to return the power bank, the signal strength between subject A's mobile phone and the power bank will decrease, which may cause an alarm.
[0201] In order to avoid alarms when the target rental item is lent to another person, in an embodiment of the present application, when the relative position exceeds a set distance threshold, a judgment is further made in combination with the item usage information of the target object. In this way, if the target object does not lend the target rental item to another person, it is determined that there is a mistaken loan, and no alarm is issued when the target object lends the target rental item to another person, thereby reducing unnecessary alarms and avoiding affecting the target object's usage experience.
[0202] In the embodiments of the present application, the target object's item usage information may be status information indicating whether the target object has used the target rental device. The usage information may be reported by the terminal device or the target rental device. The target object's item usage information may also be the power level information of the target object's terminal device, but is not limited to this. Furthermore, the item usage information may also be composed of multiple pieces of information such as status information and power level information, and this is not limited to this.
[0203] For example, if the item usage information indicates that the target object has used a power bank, then an alarm will be issued when the distance between the mobile phone and the power bank exceeds 5 meters. If the item usage information indicates that the target object has not used a power bank, then no alarm will be issued when the distance between the mobile phone and the power bank exceeds 5 meters.
[0204] For another example, a power threshold is preset. If the item usage information represents the power level of a mobile phone, then if the distance between the mobile phone and the power bank exceeds 5 meters and the power level of the mobile phone exceeds the power threshold, no alarm will be issued. If the distance between the mobile phone and the power bank exceeds 5 meters and the power level of the mobile phone does not exceed the power threshold, an alarm will be issued.
[0205] In some embodiments, a decrease in signal strength between the target rental item and the target object may refer to: a gradual decrease in the signal strengths reported within a certain period of time; a certain signal strength among the signal strengths reported within a certain period of time being lower than a signal strength threshold; or, the signal strengths reported within a certain period of time being all lower than a signal strength threshold, but is not limited thereto.
[0206] It should be noted that, in the embodiment of the present application, the relative position between the target rental item and the target object refers to the distance between the target object and the target rental item.
[0207] Taking Bluetooth as an example, Bluetooth technology is a short-range wireless communication technology. When transmitting data, Bluetooth devices emit Bluetooth signals, and the strength of Bluetooth signals decreases with increasing distance. Therefore, the distance between the target rental item and the target object can be calculated by measuring the received Bluetooth signal strength, for example, by measuring the distance based on the received signal strength indicator (RSSI). For example, a correspondence between different RSSIs and distances can be pre-set. When determining the relative position, the relative position between the target rental item and the target object is determined based on the RSSI reported by the target rental item and the corresponding relationship.
[0208] See Figure 8 As shown, the target power bank periodically reports communication status information, which is the Bluetooth signal strength. The identity recognition server determines that when the Bluetooth signal strength continues to decline within 30 seconds based on the communication status information, it determines that the distance between the target power bank and the target object is 5 meters based on the latest reported Bluetooth signal strength and the correspondence between different Bluetooth signal strengths and distances. Assume that the distance threshold is set to 5 meters. At this time, the distance between the target power bank and the target object exceeds the set distance threshold. The identity recognition server determines that the relative position between the target power bank and the target object meets the set item misborrowing condition, and then generates an alarm message and pushes the alarm message to the target object. It should be noted that in the embodiment of the present application, the power bank can support wired charging or wireless charging, and this is not limited.
[0209] It should be noted that the embodiments of the present application only use signal strength as an example for illustration. In actual application, the communication status information may also be other information that can determine the relative position between the target rental item and the target object information. For example, the relative position may also adopt, but is not limited to, distance measurement based on channel sounding (CS), distance measurement based on emission angle and incident angle, and other ranging methods. Taking the CS-based distance measurement method as an example, the communication status information may be the signal phase difference between the target rental device and the terminal device. Taking the CS-based distance measurement method as an example, the communication status information may be the signal phase difference between the target rental device and the terminal device. Taking the distance measurement method based on emission angle and incident angle as an example, the communication status information may be the emission angle and incident angle of the signal during communication between the target rental device and the terminal device.
[0210] In some implementations, to avoid triggering an alarm only after the target object has already moved away from the target rental item, which could result in the target rental item being lost, the alarm can be issued in stages. For example, a first alarm is issued when the target object is slightly farther away from the target rental item, and a second alarm is issued when the distance between the target object and the target rental item is closer. This allows the target object to be promptly alerted that the rental item has been borrowed or taken by mistake, allowing the target object to exchange or retrieve the rental item before it is lost. Of course, this article only uses two alarms as an example. In actual applications, more alarm timings can be designed as needed.
[0211] Specifically, when the signal strength between the target rental item and the target object decreases and the relative position between the target rental item and the target object exceeds the set distance threshold, it can be regarded as the first alarm information push point, and the first alarm is issued at this time.
[0212] Furthermore, if the identity recognition server determines based on the communication status information that the wireless local area communication connection between the target rental item and the target object is disconnected, it generates an alarm message again; and then pushes the re-generated alarm message to the target object.
[0213] That is, when the connection between the target rental item and the target object is disconnected, it is regarded as the second alarm information push point, and a second alarm is issued at this time.
[0214] For example, if the identity recognition server determines, based on the communication status information, that the Bluetooth signal strength has continuously decreased over a 30-second period, it determines, based on the reported Bluetooth signal strength and the corresponding relationship between different Bluetooth signal strengths and distances, that the distance between the target power bank and the target object is 5 meters. Because the distance between the target power bank and the target object exceeds the set distance threshold of 5 meters, an alarm message is generated for the first time and pushed to the target object. If the identity recognition server determines, based on the communication status information, that the wireless local area communication connection between the target rental item and the target object is disconnected, an alarm message is generated again and pushed to the target object.
[0215] In the embodiment of the present application, the push of alarm information can be implemented by, but not limited to, the following message transmission methods:
[0216] Transmission method 1: Use a message queue. Store the alert information you want to push in the message queue. The rental exception push service then retrieves the alert information from the message queue and pushes it. This method enables asynchronous push, improving push efficiency and stability.
[0217] Transmission method 2: Use WebSocket. WebSocket is a full-duplex communication protocol based on the Transmission Control Protocol (TCP) that enables real-time communication between clients and servers. The rental exception push service can use WebSocket technology to implement real-time push messages.
[0218] Transmission method three uses long polling. Long polling is an implementation of the Hypertext Transfer Protocol (HTTP). After a client sends a request to a server, the server maintains the connection and waits until there is a message to push to the client before returning a response. This method can achieve real-time push, but compared to WebSocket technology, long polling is less efficient.
[0219] See Figure 9 As shown, it is a schematic diagram of the interaction between the target rental item and the terminal device during a wireless local area communication connection process provided in an embodiment of the present application.
[0220] S901: The target rental item broadcasts a wireless local area communication connection request, where the connection request includes target object information.
[0221] In the embodiment of the present application, after obtaining the target object information of the target object, the target rental item will establish a Bluetooth connection with the surrounding terminals (for example, within 10 meters), that is, broadcast a connection request containing the OpenID of the target object to the surrounding terminals.
[0222] S902: The target terminal device receives the connection request and returns a reception response.
[0223] When the target terminal device determines that the connection request is sent by the target rental item assigned to itself based on the OpenID included in the connection request, it returns a reception response.
[0224] Given that the connection process requires data exchange, to ensure secure communication between the two ends, authentication can be performed between the target rental item and the target terminal device, thereby ensuring the connection between the target terminal device and the target rental item. Furthermore, encryption keys are exchanged between the target rental item and the target terminal device to ensure the confidentiality of data transmission.
[0225] S903: Establishing a wireless local area communication connection between the target rental item and the target terminal device. The connection (ie, wireless local area communication connection) refers to establishing a data channel between the target rental item and the target terminal device, so that the target rental item and the target terminal device can exchange data with each other.
[0226] During the connection process, the target rental item and the target terminal device can negotiate connection parameters, such as transmission rate, data packet size, etc., to ensure the stability and efficiency of the connection.
[0227] In some implementations, to ensure communication security, after establishing a data channel between the target rental item and the target terminal device, one or more tests such as identity authentication and data integrity verification may be performed to ensure secure communication between the target rental item and the target terminal device.
[0228] In one possible implementation, based on the public keys held by the terminal device and the target rental item, the terminal device and the target rental item are authenticated through public key encryption, and the data integrity of the terminal device and the target rental item is verified through digital signature; after the identity authentication and data integrity are successful, data transmission is carried out using a data channel.
[0229] Identity authentication protects communication security by ensuring the legitimacy of both communicating parties. For example, the target rental item and the target terminal device can be authenticated through information exchange or the use of keys. Data integrity ensures that data has not been illegally tampered with or modified during transmission. Data integrity can be ensured through the use of technologies such as hash functions and digital signatures. Furthermore, encryption algorithms can be used to encrypt transmitted data during the data transmission process, preventing interception and protecting user privacy.
[0230] For example, after establishing a data channel between a power bank and a target user's phone, public key encryption and signature verification are first used to authenticate the user's identity and verify data integrity. Once successful, secure communication can begin between the power bank and the phone. During communication, every message sent by both the power bank and the target user is signed and encrypted to ensure data integrity and confidentiality. Once communication concludes, the connection is closed and the key is cleared to protect communication security.
[0231] In the above implementation method, after the target rental item establishes a Bluetooth connection with the surrounding terminal, it can identify the mobile phone with the same identity information as the one rented by swiping the palm from the surrounding terminal based on the target object information, that is, the user to whom the current power bank belongs, and then determine the Bluetooth signal relationship between the current mobile phone and the power bank.
[0232] As another possible implementation, taking Bluetooth connection as an example, when a connection is established between the target rental item and the target terminal device, a series of handshake and negotiation processes will be carried out between the target rental item and the target object to ensure the security and stability of the connection.
[0233] For example, before a Bluetooth device can establish a connection, it must first perform device discovery. Device discovery refers to devices searching for and discovering each other's existence. This process is typically achieved by broadcasting Bluetooth signals. For example, the target rental item sends a broadcast signal, and other devices (including the target terminal device) receive the signal and respond, thereby achieving device discovery.
[0234] After device discovery, pairing is required to ensure a secure connection. Pairing involves authentication and encryption between the target rental item and the target terminal device, ensuring only authorized devices can connect to each other. During the pairing process, the target rental item and the target terminal device exchange encryption keys to ensure confidentiality of data transmission.
[0235] After pairing is successful, a connection can be established between the target rental item and the target terminal device. This connection establishes a data channel between the target rental item and the target terminal device, allowing them to exchange data. During the connection process, the target rental item and the target terminal device will negotiate connection parameters, such as transmission rate and packet size, to ensure connection stability and efficiency.
[0236] After the connection is established, the target rental item and the target terminal device can also perform service discovery. Service discovery refers to the exchange of information between devices to understand the Bluetooth services and features supported by each other. This allows the devices to identify each other's capabilities and determine which services and features to use for data exchange.
[0237] In some implementations, the target rental item may not report communication status information. Instead, the target rental item may directly determine whether the relative position between the target rental item and the target object meets the set mis-borrowing conditions based on periodically detected communication status information. If the set mis-borrowing conditions are met, an alarm message may be generated and pushed to the target object.
[0238] See Figure 10 As shown, it is a flow chart of a method for renting items provided in an embodiment of the present application. The process is applied to a terminal device, and the specific process is as follows:
[0239] S1001. In response to an item rental operation triggered by a target object, when the target object uses the item rental service for the first time, an authorization interface is presented, where the authorization interface is used to authorize item rental-related permissions.
[0240] Item rental operations include, but are not limited to, identity recognition operations using image capture, such as palm swiping, face swiping, or iris recognition. For example, a target user triggering an item rental operation can place their palm within the image capture area of the palm swiping device.
[0241] After the target object triggers the item rental operation, the identity recognition device presents a registration interface, which contains a QR code for authorization. After the target object uses the terminal device to scan the code, the terminal device displays the authorization interface in the operation interface.
[0242] See Figure 5 As shown, when the target object places the palm in the image acquisition area of the camera of the palm-swiping device, the item rental operation is triggered. If the matching result indicates that there is no reference identity feature that matches the identity feature to be identified, that is, the target is the first time to use the item rental service. Then, a QR code is presented in the palm-swiping device. After the target object scans the QR code with a mobile phone, an authorization interface is presented on the mobile phone. The authorization interface includes a "Confirm" button and a "I have read the relevant usage agreement" button. When the target object checks the "I have read the relevant usage agreement" button and clicks the "Confirm" button, the authorization operation is triggered.
[0243] S1002: In response to the authorization operation triggered by the target object in the authorization interface, an authorization notification is sent to the identity recognition server, so that the identity recognition server sends the target object information of the target object to the item rental device.
[0244] In an embodiment of the present application, after the target object triggers the authorization operation, the mobile phone can send an authorization notification to the identity recognition server to notify the identity recognition server that the target object grants the target object information and identity information association permission. After receiving the authorization notification, the identity recognition server associates and stores the target object information and identity information of the target object, and then notifies the palm-swiping device that the association is successful (i.e., the registration is successful). In addition, the identity recognition server can also send the target object information to the item management device so that the item management device can allocate a power bank to the target object.
[0245] S1003: When receiving a wireless local area communication connection request sent by the target rental item allocated to the target object by the item rental device, establish a wireless local area communication connection with the target rental item.
[0246] In one possible implementation, when the terminal device receives a wireless local area communication connection request carrying the target object information of the target object, it determines that it has received a wireless local area communication connection request sent by the target rental item assigned to the target object by the item rental device, and then returns a connection response to the target rental item and establishes a data channel between the terminal device and the target rental item. The data channel is used for wireless local area communication between the terminal device and the target rental item. For details on establishing a wireless local area communication connection, see Figure 9 , I will not go into details here.
[0247] S1004. When an alarm message is received, the alarm message is presented to the target object; wherein the alarm message is generated based on the communication status information periodically reported by the target rental item and when it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition.
[0248] In the embodiments of the present application, upon receiving the alert information, the terminal device presents the alert information to the target object. Alert information presentation methods include, but are not limited to, SMS notifications, mini-program push notifications, and voice notifications. The alert information may originate from, but is not limited to, an identity recognition device, an identity recognition server, or the target rental item.
[0249] See Figure 11 As shown, it is a schematic diagram of the interaction process between various devices in an item rental process provided in an embodiment of the present application:
[0250] S1101. The palm scanning device collects a palm video of the target object in response to an item rental operation triggered by the target object.
[0251] S1102: The palm-swiping device screens several video frames in the palm video to obtain a target video frame. Specifically, the palm-swiping device selects the optimal palm image based on a comprehensive evaluation of factors such as palm size, angle, image contrast, image brightness, and clarity, and selects the optimal palm image as the target video frame.
[0252] S1103: The palm-swiping device sends the target video frame to the identity recognition server.
[0253] S1104: The identity recognition server uses the object information associated with the target video frame as target object information.
[0254] Extract the identity information of the target object to obtain the identity features to be identified, and select the reference identity features that match the identity features to be identified from the reference identity features based on the feature similarity between each reference identity feature and the identity features to be identified.
[0255] S1105: The identity recognition server sends the target object information to the item rental server.
[0256] S1106: After the item rental server determines the power bank assigned to the target object, it sends a power bank pop-up instruction to the power bank. The power bank pop-up instruction may carry target object information.
[0257] S1107: After receiving the power bank pop-up instruction, the power bank returns a power bank pop-up response to the item rental server.
[0258] S1108: The item rental server sends an allocation result to the identity recognition server, wherein the allocation result may include the power bank ID of the power bank allocated to the target object.
[0259] S1109: The item rental server sends the allocation result to the palm-swiping device. After the palm-swiping device learns that a power bank has been allocated to the target object, it can present relevant information of the allocated power bank to the target object, such as the power bank ID, power bank location, and remaining power of the power bank.
[0260] S1110: The power bank sends a wireless local area communication connection request to the mobile phone. The wireless local area communication connection request carries target object information.
[0261] S1111. The mobile phone returns a wireless local area communication connection response to establish a wireless local area communication connection between the target rental item and the target terminal device.
[0262] S1112. The power bank periodically detects the Bluetooth signal strength.
[0263] S1113. The power bank reports the detected Bluetooth signal strength to the identity recognition server.
[0264] S1114. When the identity recognition server determines based on the Bluetooth signal strength that the set item misborrowing conditions are met, it generates an alarm message.
[0265] S1115. The identity recognition server sends the alarm information to the mobile phone.
[0266] Based on the same inventive concept, the embodiment of the present application provides an item rental device. Figure 12 As shown, it is a schematic diagram of the structure of the item rental device 1200, which may include:
[0267] The information acquisition unit 1201 is configured to acquire target object information associated with the identity information in response to the identity information input by the target object, wherein the target object information and the identity information are authorized to be associated with each other by the target object;
[0268] The information sending unit 1202 is configured to send the target object information to the item rental device, so that the item rental device transfers the target object information to the target rental item after allocating the target rental item to the target object and returns the allocation result;
[0269] The information receiving unit 1203 is configured to receive communication status information periodically reported by the target rental item, wherein the communication status information is reported after the target rental item establishes a wireless local area communication connection with the terminal device associated with the target object information;
[0270] The alarm unit 1204 is configured to generate an alarm message based on the communication status information and push the alarm message to the target object when determining that the relative position between the target rental item and the target object meets a set item misborrowing condition.
[0271] As a possible implementation, when it is determined based on the communication status information that the relative position between the target rental item and the target object meets a set item misborrowing condition, the alarm unit 1204 is specifically configured to:
[0272] When it is determined based on the communication status information that the signal strength between the target rental item and the target object decreases, determining the relative position between the target rental item and the target object based on the communication status information;
[0273] Based on the relative position and in combination with a set distance threshold, it is determined that the relative position between the target rental item and the target object meets a set item misborrowing condition.
[0274] As a possible implementation, when it is determined based on the relative position and in combination with a set distance threshold that the relative position between the target rental item and the target object meets a set misborrowing condition, the alarm unit 1204 is specifically configured to:
[0275] If the relative position exceeds a set distance threshold, it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition; or
[0276] If the relative position exceeds a set distance threshold, then when it is determined based on the target object's item usage information that the target object has not lent the target rental item to another object, it is determined that the relative position between the target rental item and the target object meets the set item mis-borrowing condition.
[0277] As a possible implementation, the information acquisition unit 1201 is further configured to acquire the identity information in the following manner:
[0278] In response to an item rental operation triggered by the target object, acquiring a collected video of the target object to be identified, where the video to be identified includes a plurality of video frames;
[0279] Based on at least one evaluation dimension, the to-be-identified video is screened, and a target video frame that meets a set image quality condition is selected from the plurality of video frames;
[0280] The target video frame is used as the identity information of the target object.
[0281] As a possible implementation, when acquiring the target object information associated with the identity information, the information acquiring unit 1201 is specifically configured to:
[0282] Extracting features from the identity information to obtain features of the identity to be identified;
[0283] Based on the feature similarity between each reference identity feature and the identity feature to be identified, selecting a reference identity feature that matches the identity feature to be identified from the reference identity features; wherein each reference identity feature is associated with an object information;
[0284] Based on the object information associated with the selected reference identity feature, target object information associated with the identity information is obtained.
[0285] As a possible implementation, when obtaining the target object information associated with the identity information based on the object information associated with the selected reference identity feature, the information acquisition unit 1201 is specifically configured to:
[0286] If the object information associated with the selected reference identity feature is an identifier that is allowed to be disclosed, the object information associated with the selected reference identity feature is directly used as the target object information;
[0287] If the object information associated with the selected reference identity feature is non-public information, an identifier that allows disclosure is generated, and the generated identifier is used as the target object information.
[0288] As a possible implementation, the alarm unit 1204 is further configured to:
[0289] If it is determined based on the communication status information that the wireless local area communication connection between the target rental item and the target object is disconnected, generating an alarm message again;
[0290] The regenerated alarm information is pushed to the target object.
[0291] Based on the same inventive concept, the embodiment of the present application provides an item rental device. Figure 13 As shown, it is a schematic diagram of the structure of the item rental device 1300, which may include:
[0292] A triggering unit 1301 is configured to respond to an item rental operation triggered by a target object and present an authorization interface when the target object uses the item rental service for the first time, wherein the authorization interface is used to authorize the item rental-related permissions;
[0293] The authorization unit 1302 is configured to send an authorization notification to the identity recognition server in response to the authorization operation triggered by the target object in the authorization interface, so that the identity recognition server sends the target object information of the target object to the item rental device;
[0294] The connection establishing unit 1303 is configured to establish a wireless local area communication connection with the target rental item when receiving a wireless local area communication connection request sent by the item rental device for the target rental item allocated to the target object;
[0295] The alarm unit 1304 is configured to present the alarm information to the target object upon receiving the alarm information; wherein the alarm information is generated when it is determined based on the communication status information periodically reported by the target rental item that the relative position between the target rental item and the target object meets the set item misborrowing condition.
[0296] As a possible implementation, upon receiving a wireless local area communication connection request sent by a target rental item assigned to the target object of the item rental device, establishing a wireless local area communication connection with the target rental item, the connection establishing unit 1303 is specifically configured to:
[0297] When receiving the wireless local area communication connection request carrying the target object information of the target object, determining that the wireless local area communication connection request sent by the item rental device for the target rental item allocated to the target object is received;
[0298] A connection response is returned to the target rental item, and a data channel is established between the terminal device and the target rental item, where the data channel is used for wireless local area communication between the terminal device and the target rental item.
[0299] As a possible implementation manner, the connection establishing unit 1303 is further configured to:
[0300] Based on the public keys held by the terminal device and the target rental item, the identity of the terminal device and the target rental item is authenticated through public key encryption, and the data integrity of the terminal device and the target rental item is verified through digital signature;
[0301] After identity authentication and data integrity are successful, data transmission is performed using the data channel.
[0302] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
[0303] Regarding the apparatus in the above embodiment, the specific manner in which each unit executes the request has been described in detail in the embodiment of the method, and will not be elaborated on here.
[0304] Those skilled in the art will appreciate that various aspects of the present application can be implemented as systems, methods, or program products. Therefore, various aspects of the present application can be specifically implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation that combines hardware and software aspects, which may be collectively referred to herein as a "circuit," "module," or "system."
[0305] Based on the same inventive concept, an embodiment of the present application further provides an electronic device. In one embodiment, the electronic device may be a server or a terminal device. Figure 14 , which is a schematic structural diagram of a possible electronic device provided in an embodiment of the present application, Figure 14 In the embodiment, the electronic device 1400 includes a processor 1410 and a memory 1420 .
[0306] The memory 1420 stores a computer program that can be executed by the processor 1410 . The processor 1410 can execute the steps of the above-mentioned item rental method by executing the instructions stored in the memory 1420 .
[0307] Memory 1420 may be a volatile memory, such as random-access memory (RAM); a non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 1420 may also be a combination of the aforementioned memories.
[0308] The processor 1410 may include one or more central processing units (CPUs) or digital processing units, etc. The processor 1410 is configured to implement the above-mentioned item rental method when executing the computer program stored in the memory 1420 .
[0309] In some embodiments, the processor 1410 and the memory 1420 may be implemented on the same chip. In some embodiments, they may also be implemented on separate chips.
[0310] In the embodiment of the present application, the specific connection medium between the processor 1410 and the memory 1420 is not limited. In the embodiment of the present application, the processor 1410 and the memory 1420 are connected via a bus as an example. Figure 14 The connections between the other components are shown in bold lines for illustration only and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Figure 14 The diagram shows a single thick line, but this does not indicate that there is only one bus or one type of bus.
[0311] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to cause the electronic device to perform the steps of the above-mentioned item rental method. In some possible implementations, various aspects of the item rental method provided by the present application can also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to cause the electronic device to perform the steps of the above-mentioned item rental method. For example, the electronic device can perform the following steps: Figure 3 or Figure 10 Follow the steps shown in .
[0312] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, RAM, ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0313] The program product of the embodiments of the present application may be a CD-ROM and include a computer program, and may be run on an electronic device. However, the program product of the present application is not limited thereto. In this document, a readable storage medium may be any tangible medium that contains or stores a computer program that can be used by or in conjunction with a command execution system, apparatus, or device.
[0314] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a readable computer program. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a computer program for use by or in conjunction with a command execution system, apparatus, or device.
[0315] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0316] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A method for renting an item, characterized in that: include: In response to identity information input by a target object, acquiring target object information associated with the identity information, wherein the target object information and the identity information are authorized to be associated with each other by the target object; Sending the target object information to the item rental device, so that after allocating a target rental item to the target object, the item rental device transfers the target object information to the target rental item and returns an allocation result; receiving communication status information periodically reported by the target rental item, wherein the communication status information is reported after the target rental item establishes a wireless local area communication connection with a terminal device associated with the target object information; Based on the communication status information, when it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition, an alarm message is generated and pushed to the target object.
2. The method according to claim 1, wherein Determining, based on the communication state information, that the relative position between the target rental item and the target object satisfies a set item misborrowing condition includes: When it is determined based on the communication status information that the signal strength between the target rental item and the target object decreases, determining the relative position between the target rental item and the target object based on the communication status information; Based on the relative position and in combination with a set distance threshold, it is determined that the relative position between the target rental item and the target object meets a set item misborrowing condition.
3. The method according to claim 2, wherein The determining, based on the relative position and in combination with a set distance threshold, whether the relative position between the target rental item and the target object satisfies a set item misborrowing condition includes: If the relative position exceeds a set distance threshold, it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition; or If the relative position exceeds a set distance threshold, then when it is determined based on the target object's item usage information that the target object has not lent the target rental item to another object, it is determined that the relative position between the target rental item and the target object meets the set item mis-borrowing condition.
4. The method according to claim 1, 2 or 3, wherein: The identity information is obtained in the following ways: In response to an item rental operation triggered by the target object, acquiring a collected video of the target object to be identified, where the video to be identified includes a plurality of video frames; Based on at least one evaluation dimension, the to-be-identified video is screened, and a target video frame that meets a set image quality condition is selected from the plurality of video frames; The target video frame is used as the identity information of the target object.
5. The method according to claim 1, 2 or 3, wherein: The acquiring target object information associated with the identity information includes: Extracting features from the identity information to obtain features of the identity to be identified; Based on the feature similarity between each reference identity feature and the identity feature to be identified, selecting a reference identity feature that matches the identity feature to be identified from the reference identity features; wherein each reference identity feature is associated with an object information; Based on the object information associated with the selected reference identity feature, target object information associated with the identity information is obtained.
6. The method according to claim 5, wherein The step of obtaining target object information associated with the identity information based on the object information associated with the selected reference identity feature includes: If the object information associated with the selected reference identity feature belongs to an identifier that is allowed to be disclosed, the object information associated with the selected reference identity feature is directly used as the target object information; If the object information associated with the selected reference identity feature is non-public information, an identifier that allows disclosure is generated, and the generated identifier is used as the target object information.
7. The method according to claim 1, 2 or 3, wherein: Said, including: If it is determined based on the communication status information that the wireless local area communication connection between the target rental item and the target object is disconnected, generating an alarm message again; The regenerated alarm information is pushed to the target object.
8. A method for renting an item, characterized in that: Applied to terminal equipment, including: In response to the item rental operation triggered by the target object, when the target object uses the item rental service for the first time, an authorization interface is presented, wherein the authorization interface is used to authorize the item rental related permissions; In response to the authorization operation triggered by the target object in the authorization interface, sending an authorization notification to the identity recognition server, so that the identity recognition server sends the target object information of the target object to the item rental device; When receiving a wireless local area communication connection request sent by the item rental device for the target rental item assigned to the target object, establishing a wireless local area communication connection with the target rental item; When the alarm information is received, the alarm information is presented to the target object; wherein the alarm information is generated when it is determined that the relative position between the target rental item and the target object meets the set item misborrowing condition based on the communication status information reported periodically by the target rental item.
9. The method according to claim 8, wherein When receiving a wireless local area communication connection request sent by a target rental item assigned to the target object of the item rental device, establishing a wireless local area communication connection with the target rental item includes: When receiving the wireless local area communication connection request carrying the target object information of the target object, determining that the wireless local area communication connection request sent by the item rental device for the target rental item allocated to the target object is received; A connection response is returned to the target rental item, and a data channel is established between the terminal device and the target rental item, where the data channel is used for wireless local area communication between the terminal device and the target rental item.
10. The method according to claim 8, wherein After establishing a data channel between the terminal device and the target rental item, the method further includes: Based on the public keys held by the terminal device and the target rental item, the identity of the terminal device and the target rental item is authenticated through public key encryption, and the data integrity of the terminal device and the target rental item is verified through digital signature; After identity authentication and data integrity are successful, data transmission is performed using the data channel.
11. An item rental device, characterized in that: include: an information acquisition unit, configured to acquire, in response to identity information input by a target object, target object information associated with the identity information, wherein the target object information and the identity information are authorized to be associated with each other by the target object; an information sending unit, configured to send the target object information to the item rental device, so that the item rental device transfers the target object information to the target rental item after allocating the target rental item to the target object, and returns an allocation result; an information receiving unit, configured to receive communication status information periodically reported by the target rental item, wherein the communication status information is reported after the target rental item establishes a wireless local area communication connection with a terminal device associated with the target object information; The alarm unit is configured to generate an alarm message based on the communication status information and push the alarm message to the target object when it is determined that the relative position between the target rental item and the target object meets a set item misborrowing condition.
12. An item rental device, characterized in that: include: a rental triggering unit, configured to respond to an item rental operation triggered by a target object and present an authorization interface when the target object uses the item rental service for the first time, wherein the authorization interface is used to authorize the item rental-related permissions; an authorization unit, configured to send an authorization notification to an identity recognition server in response to an authorization operation triggered by the target object in the authorization interface, so that the identity recognition server sends target object information of the target object to the item rental device; a connection establishing unit, configured to establish a wireless local area communication connection with the target rental item upon receiving a wireless local area communication connection request sent by the item rental device for the target rental item allocated to the target object; An alarm unit is configured to present the alarm information to a target object upon receiving the alarm information; wherein the alarm information is generated when it is determined based on communication status information periodically reported by the target rental item that the relative position between the target rental item and the target object meets a set item misborrowing condition.
13. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods described in claims 1 to 7, or executes the steps of any one of the methods described in claims 8 to 10.
14. A computer-readable storage medium, characterized in that It includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 7, or execute the steps of any method described in claims 8 to 10.
15. A computer program product, characterized in that It includes a computer program, which is stored in a computer-readable storage medium. The processor of the electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device performs the steps of the method described in any one of claims 1 to 7, or performs the steps of the method described in any one of claims 8 to 10.
