A method, apparatus, computer device, and storage medium for configuring electronic resources
By sending electronic resource reconfiguration information to the target account and performing reconfiguration operations when the conditions are met, the problem of excessive storage and computing resource utilization is solved, and more efficient resource utilization is achieved.
Patent Information
- Application Number
- CN202110009435.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-05
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2041-01-05
AI Technical Summary
When promoting new methods of using electronic resources, various platforms need to frequently establish and update the association between accounts and promotion activities, resulting in excessive use of storage resources and computing resources.
Send electronic resource reconfiguration information to the target account, and in response to the account sharing operation, send reconfiguration information to other accounts, and perform electronic resource reconfiguration operations when the conditions are met. Only the account that triggers the operation is associated with the account, reducing unnecessary resource occupation.
By reducing unnecessary relationship establishment, the utilization of storage resources is reduced, and the calculation resource usage is reduced for whether each account meets the conditions, thereby improving resource utilization efficiency.
Smart Images

Figure CN114723453B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a method, device, computer device, and storage medium for configuring electronic resources. Background Art
[0002] Currently, the usage methods of electronic resources are very diverse. Taking the payment scenario as an example, payment methods include offline cash payment or online payment code payment, etc. With the continuous improvement of the accuracy of face recognition technology, more and more platforms have begun to provide online face payment methods, enabling users to complete payments without having to first take out their mobile phones and then retrieve the payment code from the mobile phones.
[0003] After a new usage method of electronic resources is introduced, it needs to be promoted for a period of time before it can be used by more accounts. To promote the new usage method of electronic resources, each platform can send promotion activities to all accounts. Then, each platform needs to establish and store the association between each account and the promotion activities. Each platform also needs to continuously determine whether each account participates in the promotion activities during the process of using electronic resources. When a certain account participates in the promotion activities, each platform also needs to update the association between the account and the promotion activities. It can be seen that during the promotion stage, each platform needs to occupy a large amount of storage resources and computing resources. Summary of the Invention
[0004] Embodiments of this application provide a method, device, computer device, and storage medium for configuring electronic resources, which are used to solve the problem of occupying a large amount of storage resources and computing resources during the process of using electronic resources.
[0005] In a first aspect, a method for configuring electronic resources is provided, including:
[0006] Sending electronic resource reconfiguration information to a target account, where the target account is determined based on the historical usage record of the target account's electronic resources, and the electronic resource reconfiguration information includes an electronic resource reconfiguration condition and an electronic resource reconfiguration strategy;
[0007] In response to a sharing operation triggered by the target account based on the electronic resource reconfiguration information, sending the electronic resource reconfiguration information to at least one other account indicated by the sharing operation;
[0008] Each time in response to a confirmation operation returned by one of the at least one other account for the electronic resource reconfiguration information, adding the one other account to the association relationship established for the electronic resource reconfiguration information and the target account;
[0009] If it is determined that the association relationship meets the electronic resource reallocation condition, then based on the electronic resource reallocation policy, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship.
[0010] Optionally, sending a face verification request to an account and obtaining a target face image returned by the account includes:
[0011] Sending a face verification request to an account and obtaining multiple candidate face images returned by the account;
[0012] Based on a preset image evaluation index, in the multiple candidate face images, determine a target face image whose image parameters meet the preset image evaluation index; wherein, the image parameters are used to characterize the image quality of the candidate face images.
[0013] Optionally, based on a preset image evaluation index, in the multiple candidate face images, determining a target face image whose image parameters meet the preset image evaluation index includes any one or any combination of the following operations:
[0014] Based on a preset image evaluation index, use the candidate face image with the largest proportion of the face area in the multiple candidate face images to the area of the candidate face image as the target face image;
[0015] Based on a preset image evaluation index, use the candidate face image with the smallest relative angle between the plane where the face is located and the plane where the face image acquisition end is located in the multiple candidate face images as the target face image.
[0016] Optionally, based on the reconfiguration identifier, perform corresponding electronic resource reconfiguration operations on the initial electronic resources to be used, including any one or any combination of the following operations:
[0017] If the reconfiguration identifier includes an electronic resource reduction amount, then based on the electronic resource reduction amount, use the difference between the initial electronic resources to be used and the electronic resource reduction amount as the final electronic resources to be used by the account;
[0018] If the reconfiguration identifier includes an electronic resource feedback amount, then after the account uses the initial electronic resources to be used, send the electronic resource feedback amount to the account.
[0019] In a second aspect, a method for configuring electronic resources is provided, including:
[0020] Receive the electronic resource reallocation information sent by the server for the target account, where the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reallocation information includes the electronic resource reallocation condition and the electronic resource reallocation strategy;
[0021] In response to the sharing operation triggered by the target account for the electronic resource reallocation information, forward the electronic resource reallocation information to at least one other account, so that each time the server responds to the confirmation operation returned by one of the at least one other accounts for the electronic resource reallocation information, add the one other account to the association relationship established for the electronic resource reallocation information and the target account, and if it is determined that the association relationship meets the electronic resource reallocation condition, perform the corresponding electronic resource reconfiguration operation on the accounts in the association relationship based on the electronic resource reallocation strategy.
[0022] Optionally, after forwarding the electronic resource reallocation information to at least one other account in response to the sharing operation triggered by the target account for the electronic resource reallocation information, it further includes:
[0023] Receive the face verification request sent by the server for the target account;
[0024] Based on the face verification request, collect the target face image and return the target face image to the server, so that the server performs feature extraction processing on the target face image to obtain the target feature vector of the target face image, and based on the target feature vector and the reference feature vectors of each pre-stored reference face image, determine the most similar feature vector with the largest similarity to the target feature vector among the reference feature vectors, obtain the most similar reference face image corresponding to the most similar feature vector, and based on the corresponding relationship between each pre-stored reference face image and the account, if it is determined that the account corresponding to the most similar reference face image is the target account, determine that the target account verification is successful.
[0025] In a third aspect, a method for configuring electronic resources is provided, including:
[0026] Receive the electronic resource reallocation information sent by the target account for one other account, where the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reallocation information includes the electronic resource reallocation condition and the electronic resource reallocation strategy;
[0027] In response to the confirmation operation triggered by the one other account for the electronic resource reallocation information, send the confirmation operation to the server, so that in response to the confirmation operation returned by the one other account, the server adds the one other account to the association relationship established between the electronic resource reallocation information and the target account, and if it is determined that the association relationship meets the electronic resource reallocation conditions, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship based on the electronic resource reallocation strategy.
[0028] Optionally, after sending the confirmation operation to the server in response to the confirmation operation triggered by the one other account for the electronic resource reallocation information, it further includes:
[0029] Receive a face verification request sent by the server for the one other account;
[0030] Based on the face verification request, collect a target face image and return the target face image to the server, so that the server performs feature extraction processing on the target face image to obtain the target feature vector of the target face image, and based on the target feature vector and the reference feature vectors of each pre-stored reference face image, determine the most similar feature vector with the maximum similarity to the target feature vector among the reference feature vectors, obtain the most similar reference face image corresponding to the most similar feature vector, and based on the corresponding relationship between each pre-stored reference face image and the account, if it is determined that the account corresponding to the most similar reference face image is the one other account, determine that the one other account is verified successfully.
[0031] In a fourth aspect, a device for configuring electronic resources is provided, including:
[0032] A transceiver module: used to send electronic resource reallocation information to a target account, where the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reallocation information includes electronic resource reallocation conditions and an electronic resource reallocation strategy;
[0033] The transceiver module is further used for: in response to a sharing operation triggered by the target account based on the electronic resource reallocation information, send the electronic resource reallocation information to at least one other account indicated by the sharing operation;
[0034] A processing module: used to add the one other account to the association relationship established between the electronic resource reallocation information and the target account every time in response to a confirmation operation returned by the one other account among the at least one other account for the electronic resource reallocation information;
[0035] The processing module is further configured to: if it is determined that the association relationship meets the electronic resource reallocation condition, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship based on the electronic resource reallocation policy.
[0036] Optionally, the processing module is further configured to:
[0037] Before sending the electronic resource reallocation information to the target account, determine the electronic resource usage statistical information corresponding to each basic account based on the historical electronic resource usage records of each basic account;
[0038] Determine the basic accounts whose electronic resource usage statistical information meets the preset account conditions as the target accounts.
[0039] Optionally, including any one or any combination of the following operations, the processing module is specifically configured to:
[0040] Based on the historical electronic resource usage records of each basic account, respectively determine the number of times each basic account uses the electronic resource in the target usage mode within a preset first time period;
[0041] Based on the historical electronic resource usage records of each basic account, respectively determine the amount of electronic resources that each basic account uses the electronic resource in the target usage mode within a preset second time period;
[0042] Based on the historical electronic resource usage records of each basic account, respectively determine the target historical usage records of each basic account using the electronic resource in the target usage mode within a preset time period.
[0043] Optionally, the processing module is specifically configured to:
[0044] If the electronic resource usage statistical information includes the number of times of use, based on the preset account conditions, determine the basic accounts with the number of times of use within the preset range of the number of times of use as the target accounts;
[0045] If the electronic resource usage statistical information includes the amount of electronic resources, based on the preset account conditions, determine the basic accounts with the amount of electronic resources within the preset range of the amount of electronic resources as the target accounts;
[0046] If the electronic resource usage statistical information includes the target historical usage records, based on the preset account conditions, determine the basic accounts whose target historical usage records represent using the electronic resource in the target usage mode as the target accounts.
[0047] Optionally, the processing module is specifically configured to:
[0048] Upon receiving a confirmation operation returned by one of the at least one other accounts for the electronic resource reassignment information, obtain an addition request of the one other account, where the addition request is used to request adding the one other account to the association relationship established between the electronic resource reassignment information and the target account;
[0049] Based on the association relationship and the electronic resource reassignment conditions, determine whether the association relationship meets the electronic resource reassignment conditions;
[0050] If the association relationship does not meet the electronic resource reassignment conditions, add the one other account to the association relationship established between the electronic resource reassignment information and the target account.
[0051] Optionally, the transceiver module is further configured to:
[0052] Before performing corresponding electronic resource reconfiguration operations on the accounts in the association relationship based on the electronic resource reassignment policy if it is determined that the association relationship meets the electronic resource reassignment conditions, perform the following operations for each account in the association relationship respectively:
[0053] Send a face verification request to an account and obtain a target face image returned by the account; where the account is the target account or the other account;
[0054] The processing module is further configured to:
[0055] Perform feature extraction processing on the target face image to obtain a target feature vector of the target face image;
[0056] Based on the target feature vector and the reference feature vectors of each pre-stored reference face image, determine the most similar feature vector with the largest similarity to the target feature vector among the reference feature vectors, and obtain the most similar reference face image corresponding to the most similar feature vector;
[0057] Based on the corresponding relationship between each pre-stored reference face image and the account, if it is determined that the account corresponding to the most similar reference face image is the account, determine that the account is successfully verified.
[0058] Optionally, the transceiver module is specifically configured to:
[0059] Send a face verification request to an account and obtain multiple candidate face images returned by the account;
[0060] The processing module is specifically configured to:
[0061] Based on a preset image evaluation index, determine a target face image among the multiple candidate face images, where the image parameters of the target face image meet the preset image evaluation index; wherein, the image parameters are used to characterize the image quality of the candidate face images.
[0062] Optionally, including any one or any combination of the following operations, the processing module is specifically configured to:
[0063] Based on a preset image evaluation index, use the candidate face image with the largest proportion of the face area to the area of the candidate face image among the multiple candidate face images as the target face image;
[0064] Based on a preset image evaluation index, use the candidate face image with the smallest relative angle between the plane where the face is located and the plane where the face image acquisition end is located among the multiple candidate face images as the target face image.
[0065] Optionally, the processing module is specifically configured to:
[0066] If it is determined that the association relationship meets the electronic resource reconfiguration condition, then based on the electronic resource reconfiguration policy, add a corresponding reconfiguration identifier to the account in the association relationship;
[0067] For each account in the association relationship, perform the following operations respectively:
[0068] In response to an operation triggered by an account for indicating the use of electronic resources, obtain the initial electronic resources to be used by the account;
[0069] If it is determined that the account has the reconfiguration identifier, then based on the reconfiguration identifier, perform a corresponding electronic resource reconfiguration operation on the initial electronic resources to be used.
[0070] Optionally, including any one or any combination of the following operations, the processing module is specifically configured to:
[0071] If the reconfiguration identifier includes an electronic resource reduction amount, then based on the electronic resource reduction amount, use the difference between the initial electronic resources to be used and the electronic resource reduction amount as the final electronic resources to be used by the account;
[0072] If the reconfiguration identifier includes an electronic resource feedback amount, then after the account uses the initial electronic resources to be used, send the electronic resource feedback amount to the account.
[0073] In a fifth aspect, a device for configuring electronic resources is provided, including:
[0074] Receiving module: It is used to receive the electronic resource reallocation information sent by the server. Among them, the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reallocation information includes the electronic resource reallocation conditions and the electronic resource reallocation strategy;
[0075] Sending module: It is used to, in response to a sharing operation triggered by the target account for the electronic resource reallocation information, forward the electronic resource reallocation information to at least one other account, so that every time the server responds to a confirmation operation returned by one of the at least one other accounts for the electronic resource reallocation information, add the one other account in the association relationship established corresponding to the electronic resource reallocation information and the target account, and if it is determined that the association relationship meets the electronic resource reallocation conditions, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship based on the electronic resource reallocation strategy.
[0076] Optionally, the receiving module is further used for:
[0077] After forwarding the electronic resource reallocation information to at least one other account in response to a sharing operation triggered by the target account for the electronic resource reallocation information, receive a face verification request sent by the server for the target account;
[0078] The device further includes a processing module, and the processing module is used for:
[0079] Based on the face verification request, collect a target face image and return the target face image to the server, so that the server performs feature extraction processing on the target face image to obtain the target feature vector of the target face image, and based on the target feature vector and the reference feature vectors of each pre-stored reference face image, determine the most similar feature vector with the maximum similarity to the target feature vector among the reference feature vectors to obtain the most similar reference face image corresponding to the most similar feature vector, and based on the corresponding relationship between each pre-stored reference face image and the account, if it is determined that the account corresponding to the most similar reference face image is the target account, determine that the target account verification is successful.
[0080] Optionally, the processing module is specifically used for:
[0081] Based on the face verification request, collect multiple candidate face images;
[0082] Based on a preset image evaluation index, determine a target face image whose image parameters meet the preset image evaluation index among the multiple candidate face images; wherein, the image parameters are used to characterize the image quality of the candidate face images.
[0083] Optionally, it includes any one or any combination of the following operations. Specifically, the processing module is configured to:
[0084] Based on a preset image evaluation index, among the multiple candidate face images, the candidate face image with the largest proportion of the face area to the candidate face image area is used as the target face image;
[0085] Based on a preset image evaluation index, among the multiple candidate face images, the candidate face image with the smallest relative angle between the plane where the face is located and the plane where the face image acquisition end is located is used as the target face image.
[0086] In a sixth aspect, a device for configuring electronic resources is provided, including:
[0087] A receiving module: configured to receive electronic resource reconfiguration information sent by a target account, where the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reconfiguration information includes electronic resource reconfiguration conditions and an electronic resource reconfiguration strategy;
[0088] A sending module: configured to, in response to a confirmation operation triggered by another account for the electronic resource reconfiguration information, send the confirmation operation to the server, so that in response to the confirmation operation returned by the server, the server adds the other account in the association relationship established corresponding to the electronic resource reconfiguration information and the target account, and if it is determined that the association relationship meets the electronic resource reconfiguration conditions, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship based on the electronic resource reconfiguration strategy.
[0089] Optionally, the receiving module is further configured to:
[0090] After sending the confirmation operation to the server in response to a confirmation operation triggered by another account for the electronic resource reconfiguration information, receive a face verification request sent by the server for the other account;
[0091] The device further includes a processing module, and the processing module is configured to:
[0092] Based on the face verification request, collect a target face image and return the target face image to the server, so that the server performs feature extraction processing on the target face image to obtain a target feature vector of the target face image, and, based on the target feature vector and the reference feature vectors of each pre-stored reference face image, determine, among the reference feature vectors, the most similar feature vector with the greatest similarity to the target feature vector, obtain the most similar reference face image corresponding to the most similar feature vector, and, based on the corresponding relationship between each pre-stored reference face image and an account, if it is determined that the account corresponding to the most similar reference face image is the other account, determine that the verification of the other account is successful.
[0093] In a seventh aspect, a system for configuring electronic resources is provided, including the device for configuring electronic resources as described in the fourth aspect, the device for configuring electronic resources as described in the fifth aspect, and the device for configuring electronic resources as described in the sixth aspect.
[0094] In a sixth aspect, a computer device is provided, including:
[0095] A memory for storing program instructions;
[0096] A processor for calling the program instructions stored in the memory and executing the method as described in the first aspect, the second aspect, or the third aspect according to the obtained program instructions.
[0097] In a seventh aspect, a storage medium is provided, where the storage medium stores computer-executable instructions for causing a computer to execute the method as described in the first aspect, the second aspect, or the third aspect.
[0098] In the embodiments of the present application, an association between an account that triggers an operation based on electronic resource reallocation information and the electronic resource reallocation information is established only, and it is not necessary to establish an association between each account and the electronic resource reallocation information, reducing the occupation of storage resources. Moreover, it is possible to determine only whether the association relationship meets the electronic resource reallocation conditions, and it is not necessary to continuously determine whether each account meets the electronic resource reallocation conditions during the use of electronic resources, reducing the occupation of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] Figure 1 is an application scenario of the method for configuring electronic resources provided by the embodiments of the present application;
[0100] Figure 2 is a flowchart of the method for configuring electronic resources provided by the embodiments of the present application Figure 1 ;
[0101] Figure 3A flowchart of the method for configuring electronic resources provided by an embodiment of the present application Figure 2 ;
[0102] Figure 4a A flowchart of the method for configuring electronic resources provided by an embodiment of the present application Figure 3 ;
[0103] Figure 4b An interface diagram of the method for configuring electronic resources provided by an embodiment of the present application Figure 1 ;
[0104] Figure 4c An interface diagram of the method for configuring electronic resources provided by an embodiment of the present application Figure 2 ;
[0105] Figure 5a A flowchart IV of the method for configuring electronic resources provided by an embodiment of the present application;
[0106] Figure 5b An interface diagram of the method for configuring electronic resources provided by an embodiment of the present application Figure 3 ;
[0107] Figure 6 A timing diagram of the method for configuring electronic resources provided by an embodiment of the present application;
[0108] Figure 7a A principle diagram of the method for configuring electronic resources provided by an embodiment of the present application;
[0109] Figure 7b An interface diagram IV of the method for configuring electronic resources provided by an embodiment of the present application;
[0110] Figure 8 A structural diagram of the device for configuring electronic resources provided by an embodiment of the present application Figure 1 ;
[0111] Figure 9 A structural diagram of the device for configuring electronic resources provided by an embodiment of the present application Figure 2 ;
[0112] Figure 10 A structural diagram of the device for configuring electronic resources provided by an embodiment of the present application Figure 3 ;
[0113] Figure 11 A structural diagram IV of the device for configuring electronic resources provided by an embodiment of the present application. Detailed implementation manners
[0114] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application.
[0115] The following explains some terms in the embodiments of this application to facilitate understanding by those skilled in the art.
[0116] (1) Feature extraction:
[0117] Feature extraction is a method of transforming a set of measured values of a certain pattern to highlight the representative features of the pattern. Feature extraction extracts the required features through image analysis and transformation. In the field of images, feature extraction can be used to extract characteristic information in images by a computer.
[0118] (2) Face recognition:
[0119] Face recognition is a biometric identification technology based on the facial feature information of a person. Face recognition can use a camera to collect images or video streams containing human faces, and based on artificial intelligence-related technologies, automatically detect and track human faces in the images, and then perform facial recognition on the detected human faces.
[0120] (3) Official account:
[0121] An official account is a public account registered by a third-party platform in a target platform. The third-party platform can send or receive information in the target platform through this public account. The information sent or received by the official account is not limited to text, links, images, videos, or voices, etc.
[0122] The embodiments of this application relate to artificial intelligence (AI) and machine learning technologies, and are designed based on computer vision technology (CV) and machine learning (ML) in artificial intelligence.
[0123] Artificial intelligence (AI) is a theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a way similar to human intelligence. Artificial intelligence also studies the design principles and implementation methods of various intelligent machines to enable the machines to have the functions of perception, reasoning, and decision-making.
[0124] Artificial intelligence technology is an interdisciplinary subject that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. The software technologies of artificial intelligence mainly include several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0125] Computer Vision Technology (CV) Computer vision is a science that studies how to enable machines to "see". More specifically, it refers to using cameras and computers to replace human eyes to perform machine vision such as object recognition, tracking, and measurement on targets, and further performing graphics processing to make the computer-processed images more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies and attempts to build artificial intelligence systems that can obtain information from images or multi-dimensional data. Computer vision technology usually includes technologies such as image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous localization and mapping, and also includes common biometric recognition technologies such as face recognition and fingerprint recognition.
[0126] Machine Learning (ML) is an interdisciplinary subject that involves multiple disciplines such as probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specifically studies how computers simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize the existing knowledge structure to continuously improve their own performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent, and its applications cover all fields of artificial intelligence. Machine learning and deep learning usually include technologies such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and rote learning.
[0127] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in multiple fields. For example, common ones include smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, driverless, autonomous driving, drones, robots, smart healthcare, smart customer service, etc. It is believed that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0128] The embodiments of this application also relate to servers, cloud technology, and cloud computing, etc.
[0129] The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides 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, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected through wired or wireless communication methods, and this application does not make any restrictions here.
[0130] Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to achieve data computing, storage, processing, and sharing. Cloud technology is the general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model, and can form a resource pool, which can be used on demand, flexibly and conveniently. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark and needs to be transmitted to the background system for logical processing. Data at different levels will be processed separately, and various types of industry data require a powerful system backup support, which can only be achieved through cloud computing.
[0131] Cloud computing is a computing model that distributes computing tasks across a resource pool composed of a large number of computing devices, enabling various application systems to obtain computing power, storage space, and information services as needed. The network that provides resources is called the "cloud". The resources in the "cloud" seem to be infinitely expandable to users, and can be obtained at any time, used on demand, expanded at any time, and paid according to usage.
[0132] As a basic capability provider of cloud computing, a cloud computing resource pool (abbreviated as a cloud platform, generally called an IaaS (Infrastructure as a Service) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose and use. The cloud computing resource pool mainly includes: computing devices (virtual machines, including operating systems), storage devices, and network devices.
[0133] According to the logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on top of the PaaS layer. Alternatively, the SaaS can be directly deployed on the IaaS. PaaS is the platform for software operation, such as databases, web containers, etc. SaaS is various business software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are the upper layers relative to IaaS.
[0134] The following briefly introduces the application fields of the method for configuring electronic resources provided by the embodiments of the present application.
[0135] Currently, the usage methods of electronic resources are very rich. Taking the payment scenario as an example, the payment methods include offline cash payment or online payment code payment. Among them, online payment includes password payment and payment code payment, etc. With the rapid development of artificial intelligence technology and the continuous improvement of the accuracy of face recognition, more and more platforms have started to provide the payment method of online face payment. On the one hand, users do not need to remember passwords and manually enter passwords during payment. On the other hand, users do not need to take out their mobile phones first and then call out the payment code from the mobile phones. Users only need to face the face collection device to complete the payment.
[0136] After a new usage method of electronic resources is launched, it needs to be promoted for a period of time before it can be used by more accounts. In order to promote the new usage method of electronic resources, each platform can send promotion activities to all accounts. Then each platform needs to establish and store the association between each account and the promotion activities. Each platform also needs to continuously determine whether each account participates in the promotion activities during the process of using electronic resources. When a certain account participates in the promotion activities, each platform also needs to update the association between the account and the promotion activities. It can be seen that during the promotion stage, each platform needs to occupy more storage resources and computing resources.
[0137] In order to solve the problem of excessive consumption of storage resources and computing resources during the use of electronic resources, the present application provides a method for configuring electronic resources. This method sends electronic resource reconfiguration information to a target account, and in response to a sharing operation triggered by the target account based on the electronic resource reconfiguration information, sends the electronic resource reconfiguration information to at least one other account indicated by the sharing operation. Each time in response to a confirmation operation returned by one of the at least one other accounts for the electronic resource reconfiguration information, the said one other account is added to the association relationship established between the corresponding electronic resource reconfiguration information and the target account. When it is determined that the association relationship meets the electronic resource reconfiguration conditions indicated by the electronic resource reconfiguration information, based on the electronic resource reconfiguration strategy indicated by the electronic resource reconfiguration information, corresponding electronic resource reconfiguration operations are performed on the accounts in the association relationship. In the embodiments of the present application, only the accounts that have triggered operations based on the electronic resource reconfiguration information are associated with the electronic resource reconfiguration information, without the need to establish an association between each account and the electronic resource reconfiguration information, reducing the consumption of storage resources. Moreover, it is only necessary to determine whether the association relationship meets the electronic resource reconfiguration conditions, without continuously determining whether each account meets the electronic resource reconfiguration conditions during the use of electronic resources, reducing the consumption of computing resources.
[0138] The following describes the application scenarios of the method for configuring electronic resources provided by the present application.
[0139] Please refer to Figure 1 , which is an application scenario of the method for configuring electronic resources. This application scenario includes a client 101, a server 102, and an image acquisition terminal 103. The client 101 includes a first client 1011, a second client 1012, and a third client 1013. The first client 1011, the second client 1012, and the third client 1013 can communicate with the server 102, the server 102 and the image acquisition terminal 103 can communicate, and the first client 1011, the second client 1012, and the third client 1013 can communicate with the image acquisition terminal 103. The communication method can be a wired communication method, such as communicating through a connected network cable or serial cable; it can also be a wireless communication method, such as communicating through technologies such as Bluetooth or wireless fidelity (WIFI), and specific limitations are not made.
[0140] The client 101 generally refers to a device that can log in to an account and trigger an operation. For example, it can be a terminal device, a third-party application installed in the terminal device, or a web page accessible by the terminal device, etc. The server 102 generally refers to a device that can respond to the operation triggered by the client 101 and perform an operation on the client 101. For example, it can be a terminal device or a server, etc. The server can be, for example, a cloud server or a local server, etc. The image acquisition end 103 generally refers to a device that can acquire images, such as a camera, etc. The client 101, the server 102, and the image acquisition end 103 can all adopt cloud computing to reduce the occupation of local computing resources.
[0141] As an embodiment, the client 101 and the server 102 can be the same device; or, the server 102 and the image acquisition end 103 can be the same device; or, the client 101 and the image acquisition end 103 can be the same device; or, the client 101, the server 102, and the image acquisition end 103 can be the same device, without specific restrictions. In the embodiments of the present application, the client 101, the server 102, and the image acquisition end 103 are taken as different devices respectively as an example for introduction.
[0142] Next, from the perspective of the server 102, the method for configuring electronic resources provided in the embodiments of the present application will be introduced.
[0143] Please refer to Figure 2 , which is a schematic flowchart of a method for configuring electronic resources provided in the embodiments of the present application.
[0144] S201, send electronic resource reconfiguration information to the target account.
[0145] Before the server 102 executes S201 to send the electronic resource reconfiguration information to the target account, the target account can be determined from each basic account first, so that the server 102 can only send the electronic resource reconfiguration information to the target account, without needing to send the electronic resource reconfiguration information to all basic accounts, reducing the amount of data that the server 102 needs to process. The basic account is an account that can be logged in through the client 101, and the target account can be an account among the basic accounts.
[0146] Please refer to Figure 3 , which is a schematic flowchart for determining the target account. Next, the process of determining the target account will be specifically introduced.
[0147] S301, respectively determine the electronic resource usage statistical information corresponding to each basic account based on the electronic resource historical usage records of each basic account.
[0148] Each basic account that can log in to the client 101 can correspond to an electronic resource historical usage record, which can be used to record whether the corresponding basic account has used electronic resources, or the amount of electronic resources used each time when using electronic resources, and the corresponding usage method each time when using electronic resources. For example, in the payment field, the electronic resource historical usage record can include whether the basic account has made a payment. If the basic account has made a payment, then the electronic resource historical usage record can also include the specific amount paid each time by the basic account, and the payment method adopted each time by the basic account, such as password payment, payment code payment or face payment, etc.
[0149] Based on the electronic resource historical usage records of each basic account, the electronic resource usage statistical information corresponding to each basic account can be determined respectively. The electronic resource usage statistical information is used to characterize the statistics of all the electronic resource historical usage records corresponding to the basic account. There can be various types of electronic resource usage statistical information, and three of them will be introduced as examples below.
[0150] Electronic resource usage statistical information one:
[0151] The number of times of using electronic resources in a preset first time period in a target usage manner.
[0152] The electronic resource usage statistical information can include the number of times of using electronic resources in a preset first time period in a target usage manner by the basic account. The server 102 can determine, with a preset third time period as the cycle, the number of times of using electronic resources in a preset first time period in a target usage manner in the electronic resource historical usage records corresponding to each basic account respectively. Or, the server 102 can determine, when its own computing resource occupancy rate is relatively low, the number of times of using electronic resources in a preset first time period in a target usage manner in the electronic resource historical usage records corresponding to each basic account respectively.
[0153] Or, the server 102 can perform statistics when each basic account generates an electronic resource historical usage record. In a preset first time period, each time a basic account generates an electronic resource historical usage record, the server 102 determines whether the electronic resource historical usage record is an electronic resource used in a target usage method. If it is an electronic resource used in a target usage method, then the number of times of use of the basic account in the preset first time period is incremented by 1 in the statistics.
[0154] As an embodiment, in the historical usage records of electronic resources, there may be records of using electronic resources in a target usage manner within multiple preset first time periods. If the number of times of using electronic resources in a target usage manner is different within multiple preset first time periods, then the maximum number of times is used as the number of times of using electronic resources in a target usage manner by the basic account within the preset first time period.
[0155] Statistics information of electronic resource usage II:
[0156] The amount of electronic resources used in a target usage manner within a preset second time period.
[0157] The statistics information of electronic resource usage may include the amount of electronic resources used in a target usage manner by the basic account within a preset second time period. The server 102 may determine, with a preset third time period as the cycle, the amount of electronic resources used in a target usage manner by each basic account within the preset second time period in the corresponding historical usage records of electronic resources. Alternatively, the server 102 may determine the amount of electronic resources used in a target usage manner by each basic account within the preset second time period in the corresponding historical usage records of electronic resources when the resource occupancy rate of the server itself is relatively low.
[0158] Alternatively, the server 102 may perform statistics when each basic account generates a historical usage record of electronic resources. When generating a historical usage record of each basic account within a preset second time period, the server 102 determines whether the historical usage record is of electronic resources used in a target usage method. If it is of electronic resources used in a target usage method, then the corresponding amount of the increased usage of electronic resources by the basic account within the preset second time period is statistically counted.
[0159] As an embodiment, in the historical usage records of electronic resources, there may be records of using electronic resources in a target usage manner within multiple preset second time periods. If the amounts of electronic resources used in a target usage manner are different within multiple preset first time periods, then the maximum amount of electronic resources is used as the amount of electronic resources used in a target usage manner by the basic account within the preset second time period.
[0160] Statistics information of electronic resource usage III:
[0161] Using electronic resources in a target usage manner within a preset time period.
[0162] The electronic resource usage statistical information may include the target historical usage records of the basic accounts using the electronic resources in a preset time period in a target usage manner. The target historical usage records may indicate whether the basic accounts have used the electronic resources in the target usage manner in the preset time period. The server 102 may, when its own computing resource occupancy rate is relatively low, determine the target historical usage records in the preset time period in the electronic resource historical usage records respectively corresponding to each basic account. Alternatively, the server 102 may, in the preset time period, determine whether there are newly generated electronic resource historical usage records for the basic accounts. If there are newly generated electronic resource historical usage records, then determine the corresponding target historical usage records.
[0163] S302, determine the basic accounts whose electronic resource usage statistical information meets the preset account conditions as target accounts.
[0164] After obtaining the electronic resource usage statistical information corresponding to each basic account, the server 102 may, based on the electronic resource usage statistical information corresponding to each basic account, determine the basic accounts whose electronic resource usage statistical information meets the preset account conditions as target accounts. Different electronic resource usage statistical information corresponds to different preset account conditions. The process of determining the target accounts will be introduced below for the above three types of electronic resource usage statistical information respectively.
[0165] Method 1 for determining target accounts:
[0166] Determine the basic accounts whose usage times are within the preset usage time range as target accounts.
[0167] If the electronic resource usage statistical information includes the usage times of each basic account using the electronic resources in a target usage manner within a preset first time period, then the preset account conditions may correspondingly include a preset usage time range. When the server 102 determines that the usage times of a basic account using the electronic resources in a target usage manner within the preset first time period are within the preset usage time range, it determines this basic account as a target account.
[0168] For example, in a payment scenario, where the target usage manner is face payment and the preset usage time range is 5 times, if a basic account has made payments in the face payment manner within the preset first time period and the number of payment times reaches the preset 5 times, then the server 102 may determine this basic account as a target account.
[0169] Method 2 for determining target accounts:
[0170] Determine the basic accounts whose electronic resource amounts are within the preset electronic resource amount range as target accounts.
[0171] If the electronic resource usage statistics include the amount of electronic resources used by each basic account in a preset second time period in a target usage mode, then the corresponding preset account condition can include a preset range of electronic resource amounts. When the server 102 determines that the amount of electronic resources used by a basic account in a preset second time period in a target usage mode is within the preset range of electronic resource amounts, the server 102 determines the basic account as a target account.
[0172] For example, taking the payment scenario where the target usage mode is face payment and the preset amount of electronic resources is 50 yuan as an example, if a basic account makes a payment in the face payment mode within a preset second time period and the total payment amount reaches the preset 50 yuan, then the server 102 can determine the basic account as a target account.
[0173] Method three for determining the target account:
[0174] Determine the basic account whose target historical usage record represents using electronic resources in the target usage mode as the target account.
[0175] If the electronic resource usage statistics include the target historical usage records of each basic account, then the corresponding preset account condition can include the target historical usage records representing using electronic resources in the target usage mode. After the server 102 determines that a basic account has used electronic resources, if it determines that the basic account uses electronic resources in the target usage method, then the server 102 determines the basic account as the target account.
[0176] For example, taking the payment scenario where the target usage mode is face payment as an example, if the server 102 determines that a basic account has made a payment and the basic account makes the payment in the face payment mode, then the server 102 can determine the basic account as the target account.
[0177] As an embodiment, if the electronic resource usage statistics include multiple of the above three types of electronic resource usage statistics, then the corresponding target accounts can be determined respectively according to each type of electronic resource usage statistics; or, each type of electronic resource usage statistics can have a priority. When the number of target accounts determined based on the electronic resource usage statistics with the highest priority does not reach the preset number of accounts, the target accounts can be further determined sequentially based on the electronic resource usage statistics with slightly lower priority until the number of determined target accounts reaches the preset number of accounts, etc., and no specific limitation is made.
[0178] In the embodiments of the present application, a basic account that has used the target usage method multiple times, or a basic account that has used a large amount of electronic resources using the target usage method, or a basic account that uses the target usage method, etc., which are high-activity basic accounts for the target usage method, are determined as target accounts. Thus, subsequently, there is no need to blindly send electronic resource reallocation information to all basic accounts, but instead, send electronic resource reallocation information to high-activity target accounts in a targeted manner, reducing the occupancy of computing resources when sending electronic resource reallocation information.
[0179] After the server 102 determines the target accounts, each determined target account can be stored. Thus, the server 102 can execute S201 for each stored target account to send electronic resource reallocation information to the target account. Or, after the server 102 determines each target account, it can execute S201 to send electronic resource reallocation information to the target account, etc., without specific limitations.
[0180] The electronic resource reallocation information may include a resource reallocation condition and an electronic resource reallocation strategy. The resource reallocation condition can be used to indicate the condition for performing the electronic resource reallocation operation based on the electronic resource reallocation strategy. For example, the resource reallocation condition can be the number of accounts associated with the same electronic resource reallocation information, or the activity of the accounts associated with the same electronic resource reallocation information, etc. The activity can be determined based on the above-mentioned electronic resource usage statistical information, which will not be elaborated here. The electronic resource reallocation information sent by the server 102 to different target accounts can be different electronic resource reallocation information, and the electronic resource reallocation information received by different other accounts forwarded by the same target account can be the same electronic resource reallocation information.
[0181] The electronic resource reallocation strategy can be used to indicate the electronic resource reallocation operation to be performed. For example, a certain amount of reduction of the electronic resource quantity, or feedback of a certain amount of electronic resource quantity to the corresponding account, etc., without specific limitations.
[0182] As an embodiment, the server 102 can send the electronic resource reallocation information to the target account in the form of a text message, or can adopt the form of using the account of a corresponding third-party platform to send the electronic resource reallocation information to the target account. For example, send the electronic resource reallocation information to the target account in the form of a public account message, or can send the electronic resource reallocation information to the target account in the form of a chat message, or can send the electronic resource reallocation information to the target account in the form of a pop-up window, etc. The specific way of carrying the electronic resource reallocation information is not limited.
[0183] S202, in response to the sharing operation triggered by the target account based on the electronic resource reallocation information, send the electronic resource reallocation information to at least one other account indicated by the sharing operation.
[0184] After sending the electronic resource reallocation information to the target account, the server 102 may generate a sharing request in response to a sharing operation triggered by the target account based on the electronic resource reallocation information. The sharing request may include at least one other account indicated by the target account and the electronic resource reallocation information sent to the at least one other account. The server 102 sends the electronic resource reallocation information to the at least one other account indicated by the sharing request.
[0185] As an embodiment, after the server 102 responds to a sharing operation triggered by the target account based on the electronic resource reallocation information, it may establish an association relationship between the target account and the electronic resource reallocation information. Thus, the server 102 may record the association relationship between the other account and the electronic resource reallocation information, as well as the association relationship between the other account and the target account, based on the confirmation operation returned by the other account for the electronic resource reallocation information.
[0186] The electronic resource reallocation information sent by the server 102 to each target account may have an information identifier for uniquely identifying each electronic resource reallocation information. Thus, the server 102 may establish the association relationship between the target account and the electronic resource reallocation information by associating the target account with the information identifier of the electronic resource reallocation information.
[0187] S203. Each time in response to a confirmation operation returned by one of the at least one other accounts for the electronic resource reallocation information, add one other account to the association relationship established between the corresponding electronic resource reallocation information and the target account.
[0188] After sending the electronic resource reallocation information to the at least one other account indicated by the sharing operation, the server 102 may obtain an addition request for one other account each time in response to a confirmation operation returned by one of the at least one other accounts for the electronic resource reallocation information. The addition request is used to add the one other account to the association relationship established between the corresponding electronic resource reallocation information and the target account.
[0189] As an embodiment, if the electronic resource reallocation condition includes an electronic resource reallocation restriction condition, for example, the same electronic resource reallocation information is associated with at most 5 accounts, or the total activity of the same electronic resource reallocation information cannot exceed 10, etc., there is no specific limitation. Then, when the server 102 obtains an addition request, it can determine whether the association relationship to be added in the addition request has met the electronic resource reallocation condition. If the association relationship has met the electronic resource reallocation condition, for example, the number of accounts associated with the association relationship has reached the upper limit, then the server 102 can, based on the addition request, return a notification message of addition failure to the other account. If the association relationship does not meet the electronic resource reallocation condition, the server 102 can, based on the addition request, add the other account to the association relationship. Thus, the target account, the other account, and the electronic resource reallocation information are associated.
[0190] S204, if it is determined that the association relationship meets the electronic resource reallocation condition, then based on the electronic resource reallocation policy, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship.
[0191] The server 102 can determine in real time whether each association relationship meets the electronic resource reallocation condition, or the server 102 can determine whether each association relationship meets the electronic resource reallocation condition at a preset fourth time period as a cycle, or the server 102 can determine whether each association relationship meets the electronic resource reallocation condition when its own computing resource occupancy rate is low, or the server 102 can determine whether the corresponding association relationship meets the electronic resource reallocation condition when obtaining an addition request from another account, etc., there is no specific limitation.
[0192] If the association relationship of the server 102 does not meet the electronic resource reallocation condition, then do not process the accounts in the association relationship, or a prompt message can be sent to the accounts in the association relationship to prompt each account in the association relationship of the gap between the current association relationship and the electronic resource reallocation condition, so that each account can forward the electronic resource reallocation information targeted, thereby more quickly promoting the association relationship to meet the electronic resource reallocation condition.
[0193] If the association relationship of the server 102 meets the electronic resource reallocation condition, then based on the electronic resource reallocation policy, perform corresponding electronic resource reconfiguration operations on each account in the association relationship. There can be various electronic resource reconfiguration operations, and the following introduces two of them as examples.
[0194] Electronic resource reconfiguration operation one:
[0195] Based on the electronic resource reduction amount, perform corresponding electronic resource reconfiguration operations.
[0196] If the electronic resource reallocation policy indicates an electronic resource reduction amount, then when the server 102 responds to an operation indicating the use of electronic resources triggered by an account in the association relationship, the server 102 obtains the initial electronic resources to be used by the account. The server 102 determines the difference between the initial electronic resources to be used and the electronic resource reduction amount based on the electronic resource reduction amount indicated by the electronic resource reallocation policy. The server 102 uses the difference between the initial electronic resources to be used and the electronic resource reduction amount as the final electronic resources to be used by the account. Thus, the account can use the corresponding electronic resources based on the final electronic resources to be used.
[0197] Electronic resource reconfiguration operation two:
[0198] Perform corresponding electronic resource reconfiguration operations based on the electronic resource feedback amount.
[0199] If the electronic resource reallocation policy indicates an electronic resource feedback amount, then when the server 102 responds to an operation indicating the use of electronic resources triggered by an account in the association relationship, the server 102 obtains the initial electronic resources to be used by the account. The server 102 sends the corresponding electronic resource feedback amount to the account in response to the account using the corresponding electronic resources based on the initial electronic resources to be used.
[0200] As an embodiment, when the server 102 determines that the association relationship meets the electronic resource reallocation condition, a reconfiguration identifier can be added to each account in the association relationship. Thus, when the server 102 responds to an operation indicating the use of electronic resources triggered by an account, the server 102 can determine whether the account has a reconfiguration identifier. If the account has a reconfiguration identifier, then the server 102 can perform corresponding reconfiguration operations on the account based on the electronic resource reallocation policy. If the account does not have a reconfiguration identifier, then the server 102 may not perform reconfiguration operations on the account, etc.
[0201] As an embodiment, in order to ensure that the account for which the server 102 performs the reconfiguration operation is used by the corresponding user of the account rather than misused by others, and to ensure the security of configuring electronic resources, the identity of the account user can be determined before performing the corresponding electronic resource reconfiguration operation on the account in the association relationship. For example, it can be determined whether the verification code entered by the account is consistent with the sent verification code by sending a verification text message to the mobile phone number associated with the account; or it can be determined whether the audio of the account user is consistent with the pre-stored reference audio by calling the mobile phone number associated with the account; or it can be determined whether the face image of the account user is consistent with the pre-stored reference face image by collecting the face image of the account user, etc., and there is no specific limitation.
[0202] The following specifically introduces the verification process of face recognition using artificial intelligence technology.
[0203] For each account in the association relationship, the server 102 can send a verification request to an account. The device that receives the verification request can be the client 101 that logs in to the one account, or it can be a third-party platform associated with the one account, such as the image acquisition terminal 103 associated with the one account, etc. After the client 101 or the image acquisition terminal 103 captures the target face image, the target face image can be fed back to the server 102.
[0204] After the server 102 receives the target face image fed back by the one account, it can perform feature extraction processing on the target face image to obtain the target feature vector of the target face image. The target feature vector is used to characterize the features of the target face image. After obtaining the target feature vector of the target face image, the target feature vector can be compared with the reference feature vectors of each pre-stored reference face image. Determine the most similar feature vector with the greatest similarity to the target feature vector among the pre-stored reference feature vectors. According to the most similar feature vector, determine the most similar reference face image corresponding to the most similar feature vector among the reference face images.
[0205] After the server 102 obtains the most similar reference face image, it can determine the account corresponding to the most similar reference face image according to the corresponding relationship between each pre-stored reference face image and each account. If the account corresponding to the most similar reference face image is the one account, it means that the user of the one account is the same as the pre-stored user of the one account, and there is no problem such as misusing the account. Then the server 102 determines that the one account is verified successfully, otherwise it determines that the one account is verified failed.
[0206] If the account is verified successfully, then the server 102 can perform corresponding electronic resource reconfiguration operations on the verified successful account. If the account is verified failed, then the server 102 does not perform corresponding electronic resource reconfiguration operations on the verified failed account. The server device 102 can also send a prompt message to the verified failed account, which is used to prompt that the face verification of the verified failed account fails, so that the verified failed account can resubmit face verification, or change to other verification methods for verification, etc.
[0207] As an embodiment, in order to improve the accuracy of face verification, the server 102 may receive multiple candidate face images returned by an account. After receiving the multiple candidate face images, the server 102 may, based on a preset image evaluation metric, determine a target face image among the multiple candidate face images whose image parameters meet the preset image evaluation metric. The image parameters are used to characterize the image quality of the candidate face images. The image parameters may include the area of the face region in the candidate face image, the proportion of the area of the face region to the area of the candidate face image, or may include the relative angle between the plane where the face is located in the candidate face image and the plane where the image acquisition terminal 103 or the client 101 is located, or may include the contrast, saturation, or brightness of the candidate face image, etc., without specific limitation.
[0208] According to the different information included in the image parameters, the preset image evaluation metrics are also different. When the image parameters include the proportion of the area of the face region to the area of the candidate face image, the preset image evaluation metric may be the candidate face image with the largest proportion of the area of the face region to the area of the candidate face image among the multiple candidate face images. When the image parameters include the relative angle between the plane where the face is located and the plane where the image acquisition terminal 103 or the client 101 is located, the preset image evaluation metric may be the candidate face image with the smallest relative angle between the plane where the face is located and the plane where the image acquisition terminal 103 or the client 101 is located. When the image parameters include the contrast, saturation, or brightness of the candidate face image, the preset image evaluation metric may be the candidate face image whose weighted sum of contrast, saturation, or brightness is closest to the preset value, etc., without specific limitation.
[0209] As an embodiment, in order to improve the accuracy of face recognition, the client 101 or the image acquisition terminal 103 may be a 3D camera, and the 3D camera includes one or more of a traditional RGB camera, a depth camera, or an infrared camera. A traditional face image can be obtained through the RGB camera. The front and back positions of each user in the face image can be obtained through the depth camera, so that face recognition can be performed only on the user closest to the camera, and it is impossible to misjudge a user farther away from the camera in the captured image as the user for current face recognition, reducing the situation of face verification failure caused by incorrect determination of the face region. An infrared face image in case of insufficient light can be obtained through the infrared camera, thereby reducing the situation that there are fewer face features included in the face image due to insufficient light and reducing the situation of face verification failure caused by insufficient acquisition of face features.
[0210] Next, from the perspective of the client 101, the method for configuring electronic resources provided in the embodiments of the present application will be introduced, taking the case where the client 101 is currently logged in to the target account as an example.
[0211] Please refer to Figure 4a , which is a schematic flowchart of a method for configuring electronic resources provided by an embodiment of the present application.
[0212] S401. Receive the electronic resource reconfiguration information sent by the server 102 for the target account.
[0213] The server 102 may send the electronic resource reconfiguration information to the target account, and the client 101 may receive the electronic resource reconfiguration information from the server 102. The form in which the client 101 receives the electronic resource reconfiguration information may be in the form of a text message, or a public account message, or a chat message, or a pop-up window, etc., without specific limitation.
[0214] The electronic resource reconfiguration information may include a resource reconfiguration condition and an electronic resource reconfiguration strategy. The resource reconfiguration condition may be used to indicate the condition for the server 102 to perform the electronic resource reconfiguration operation based on the electronic resource reconfiguration strategy. For example, the resource reconfiguration condition may be the number of accounts associated with the same electronic resource reconfiguration information, or the activity of the accounts associated with the same electronic resource reconfiguration information, etc. The activity may be determined based on the electronic resource usage statistical information introduced in S201, which will not be elaborated here. The electronic resource reconfiguration information sent by the server 102 received by different target accounts may be different electronic resource reconfiguration information, and the electronic resource reconfiguration information received by different other accounts forwarded from the same target account may be the same electronic resource reconfiguration information.
[0215] The electronic resource reconfiguration strategy may be used to indicate the electronic resource reconfiguration operation performed by the server 102. For example, a certain amount of reduction of the electronic resource quantity, or feedback of a certain amount of electronic resource quantity to the corresponding account, etc., without specific limitation.
[0216] Taking the form of a public account as an example, for example, please refer to Figure 4b , which is a schematic interface diagram for the client 101 to receive the electronic resource reconfiguration information.
[0217] The target account (account A) can receive messages from accounts (account B, account C, or account D) on platform A, and can also receive messages from public accounts (public account A or public account B), such as Figure 4b (1). Taking the example that account A receives a message from public account A in 4b(1), when account A views the electronic resource reconfiguration information sent by public account A, the interface may be displayed in the form of Figure 4b (2). The electronic resource reconfiguration information includes a resource reconfiguration condition and an electronic resource reconfiguration strategy.
[0218] S402. In response to the sharing operation triggered by the target account for the electronic resource reconfiguration information, forward the electronic resource reconfiguration information to at least one other account.
[0219] After the client 101 receives the electronic resource reallocation information, a sharing operation triggered by the electronic resource reallocation information can be performed. The sharing operation is used to forward the received electronic resource reallocation information to at least one other account. The accounts in the at least one other account can be accounts that have a friendship relationship with the target account, or can be accounts that do not have a friendship relationship with the target account. For example, the accounts in the at least one other account can be the accounts in the target account's friend list, or can be the accounts in the same group as the target account, or can be the accounts of other platforms different from the platform where the target account is located, and the accounts associated in the platform where the target account is located. For example, if the platform where the target account is located is Platform A, the target account can send the electronic resource reallocation information to Platform B, so that the platform accounts in Platform B can receive the electronic resource reallocation information shared by the target account according to the other accounts associated with the platform accounts in Platform A, etc.
[0220] Please continue to refer to Figure 4b that, after Account A triggers Figure 4b the sharing button in the upper right corner of the interface in (2), the interface can be displayed in the form of Figure 4b (3). Figure 4b (3) displays all shareable accounts, groups, or other platforms, etc. The accounts can be accounts that are friends with Account A, etc. The groups can be groups composed of multiple accounts including Account A, etc. The other platforms can be other platforms associated with Account A, and the accounts in the other platforms can also be associated with Platform A. Account A can select at least one other account in the interface displayed in, for example, Figure 4b (3) and forward the electronic resource reallocation information to the at least one other account.
[0221] Thus, after the sharing operation is triggered on the client 101, the server 102 can establish an association relationship between the target account and the electronic resource reallocation information. The server 102 can add one other account to the association relationship established between the corresponding electronic resource reallocation information and the target account each time it responds to a confirmation operation returned by one of the at least one other accounts for the electronic resource reallocation information. When the server 102 determines that the association relationship meets the electronic resource reallocation conditions, it can perform corresponding electronic resource reallocation operations on the accounts in the association relationship based on the electronic resource reallocation policy. Please refer to the introduction from the perspective of the server 102, which will not be elaborated here.
[0222] As an example, after forwarding the electronic resource reassignment information to at least one other account in response to a sharing operation triggered by the target account for the electronic resource reassignment information, the target account may receive a face verification request sent by the server 102 to verify whether the user currently using the target account is the user pre-stored in the server 102, so as to ensure the security of the electronic resources configured by the server 102.
[0223] The client 101 may collect a target face image based on the received face verification request; or, the client 101 may authorize the image acquisition terminal 103 associated with the client 101 to collect the target face image. After collecting the target face image, the collected target face image may be sent to the server 102, so that the server 102 may verify the target account based on the target face image. The verification process of face recognition introduced in S204 may be referred to, and details are not described herein again.
[0224] Taking the image acquisition terminal 103 collecting the target face image as an example, please refer to 4c, which is a schematic diagram of an interface for face verification. When the image acquisition terminal 103 needs to collect an image, it takes a picture of the current shooting screen; or, the image acquisition terminal 103 detects the face area in the current shooting screen and magnifies the face area, and then takes a picture after magnifying the face area, as Figure 4c (1). After the image acquisition terminal 103 takes a picture, a target face image may be obtained, as Figure 4c (2). After the server 102 verifies the target face image, the verification result may be returned to the image acquisition terminal 103. After the image acquisition terminal 103 receives the verification result returned by the server 102, the verification result may be displayed, as Figure 4c (3).
[0225] As an example, the client 101 or the image acquisition terminal 103 may obtain multiple candidate face images based on the face verification request. Based on the image parameters of the candidate face images, a target face image whose image parameters meet the preset image evaluation index is determined among the multiple candidate face images. The process of the client 101 or the image acquisition terminal 103 determining the target face image from the multiple candidate face images is the same as the process of the server 102 determining the target face image from the multiple candidate face images introduced in S204, and details are not described herein again. Or, after the client 101 or the image acquisition terminal 103 obtains multiple candidate face images based on the face verification request, the multiple candidate face images may be sent to the server 102, and the server 102 determines the target face image from the multiple candidate face images, and no specific limitation is made.
[0226] The following introduces the method for configuring electronic resources provided by the embodiments of the present application from the perspective of the client 101, taking the case where the client 101 is currently logged in to another account as an example.
[0227] Please refer to Figure 5a , which is a schematic flowchart of a method for configuring electronic resources provided by the embodiments of the present application.
[0228] S501, Receive the electronic resource reconfiguration information sent by the target account for another account.
[0229] The server 102 can send the electronic resource reconfiguration information to the target account, and the target account can receive the electronic resource reconfiguration information from the server 102. After the target account triggers a sharing operation for the electronic resource reconfiguration information, the target account can forward the electronic resource reconfiguration information to at least one other account, or the target account can forward the electronic resource reconfiguration information to at least one other account through the server 102. After the target account forwards the electronic resource reconfiguration information to at least one other account, the client 101 can receive the electronic resource reconfiguration information from the target account. The form of the electronic resource reconfiguration information can be in the form of a text message, or a chat message, or a pop-up window, etc., without specific limitation.
[0230] Taking the form of a chat message as an example, for example, please refer to Figure 5b , which is a schematic diagram of an interface for the client 101 to receive the electronic resource reconfiguration information.
[0231] Another account (Account B) can receive messages from accounts (Account A, Account C, or Account D) on Platform A, and can also receive messages from public accounts (Public Account A or Public Account B), such as Figure 5b (1). In 5b(1), taking the case where Account B receives a message from the target account (Account A) as an example, when Account B views the chat message sent by Account A, the interface can be displayed in the form of Figure 5b (2). When Account B views the electronic resource reconfiguration information sent by Account A, the interface can be displayed in the form of Figure 5b (3).
[0232] The electronic resource reallocation information may include resource reallocation conditions and an electronic resource reallocation policy. The resource reallocation conditions may be used to indicate the conditions under which the server 102 performs an electronic resource reconfiguration operation based on the electronic resource reallocation policy. For example, the resource reallocation conditions may be the number of accounts associated with the same electronic resource reallocation information, or the activity level of the accounts associated with the same electronic resource reallocation information, etc. The activity level may be determined based on the electronic resource usage statistical information introduced in S201, which will not be elaborated here. The electronic resource reallocation information received by different target accounts from the server 102 may be different electronic resource reallocation information, and the electronic resource reallocation information received by different other accounts forwarded by the same target account may be the same electronic resource reallocation information.
[0233] The electronic resource reallocation policy may be used to indicate the electronic resource reconfiguration operation performed by the server 102. For example, a certain amount of reduction of the electronic resource quantity, or feedback of a certain amount of electronic resource quantity to the corresponding account, etc., without specific limitation.
[0234] S502. In response to a confirmation operation triggered by one other account for the electronic resource reallocation information, send a confirmation operation to the server 102.
[0235] After the client 101 receives the electronic resource reallocation information sent by the target account for one other account, a confirmation operation may be triggered for the electronic resource reallocation information. In response to a confirmation operation triggered by one other account for the electronic resource reallocation information, the client 101 sends a confirmation operation to the server 102.
[0236] Please continue to refer to Figure 5b , when account B views the electronic resource reallocation information displayed in the interface in Figure 5b (3), the "Confirm Participation" button in the interface may be triggered to return a confirmation operation to the server 102.
[0237] Thus, when the server 102 responds to the confirmation operation returned by one other account among at least one other account for the electronic resource reallocation information each time, in the association relationship established between the corresponding electronic resource reallocation information and the target account, add one other account. The server 102 may also, when determining that the association relationship meets the resource reallocation conditions, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship, which may refer to the introduction from the perspective of the server 102 and will not be elaborated here.
[0238] As an embodiment, after sending a confirmation operation in response to a confirmation operation triggered by another account for the electronic resource reallocation information to the server 102, another account can receive a face verification request sent by the server 102 to verify whether the user currently used by another account is the user pre-stored in the server 102, so as to ensure the security of the electronic resource configured by the server 102.
[0239] The client 101 can collect a target face image based on the received face verification request; alternatively, the client 101 can authorize the image acquisition terminal 103 associated with the client 101 to collect a target face image. After collecting the target face image, the collected target face image can be sent to the server 102, so that the server 102 can verify another account based on the target face image. The verification process of face recognition introduced in S204 can be referred to, which will not be elaborated here.
[0240] As an embodiment, the client 101 or the image acquisition terminal 103 can obtain multiple candidate face images based on the face verification request. Based on the image parameters of the candidate face images, a target face image whose image parameters meet the preset image evaluation index is determined among the multiple candidate face images. The process of the client 101 or the image acquisition terminal 103 determining the target face image from the multiple candidate face images is the same as the process of the server 102 determining the target face image from the multiple candidate face images introduced in S204, which will not be elaborated here. Alternatively, after the client 101 or the image acquisition terminal 103 obtains multiple candidate face images based on the face verification request, the multiple candidate face images can be sent to the server 102, and the server 102 determines the target face image from the multiple candidate face images. There is no specific limitation, and the interface schematic diagram can continue to refer to Figure 4c , which will not be elaborated here.
[0241] Please refer to Figure 6 , which is a timing schematic diagram of the method for configuring electronic resources provided by the embodiment of the present application. Please refer to Figure 7a , which is a principle schematic diagram of the method for configuring electronic resources provided by the embodiment of the present application. Take the client 101 including the first client 1011, the second client 1012, and the third client 1013 as an example, where the first client 1011 is currently logged in to the target account, and the second client 1012 and the third client 1013 are currently logged in to an account in at least one other account.
[0242] S601, the target account determination module in the server 102 determines the target account based on the electronic resource historical usage records of each basic account.
[0243] S602. The target account determination module in the server 102 determines the electronic resource reallocation information to be sent to the target account, and sends the electronic resource reallocation information to the target account through the network module.
[0244] S603. The first client 1011 receives the electronic resource reallocation information from the server 102 through the network module, triggers a sharing operation for the electronic resource reallocation information, and forwards the electronic resource reallocation information to at least one other account through the network module.
[0245] S604. The electronic resource reallocation module in the server 102 establishes an association relationship between the target account and the information identifier of the electronic resource reallocation information.
[0246] S605. One other account logged in to the second client 1012 and the third client 1013 respectively receives the electronic resource reallocation information sent by the first client 1011 through the network module. The second client 1012 and the third client 1013 respectively respond to the confirmation operation of one other account for the electronic resource reallocation information, and send the confirmation operation to the server 102 through the network module.
[0247] S606. The electronic resource reallocation module in the server 102 receives each confirmation operation through the network module, and based on each confirmation operation, adds an account to the association relationship between the corresponding target account and the electronic resource reallocation information.
[0248] S607. When the electronic resource reallocation module in the server 102 determines that the association relationship meets the electronic resource matching condition, it configures a reconfiguration flag for each account in the association relationship. The reconfiguration flag indicates that when each account in the association relationship uses the electronic resource, the corresponding reconfiguration operation can be performed.
[0249] S608. Taking the account currently using the electronic resource as the target account, and the target account using the electronic resource in a face recognition manner as an example, the server 102 needs to first determine that the account currently using the electronic resource is the target account. The image acquisition terminal 103 acquires multiple candidate face images, and the image acquisition terminal 103 determines the target face image from the multiple candidate face images.
[0250] S609. The image acquisition terminal 103 sends the target face image to the face recognition module in the server 102 through the network module, and the face recognition module in the server 102 receives the target face image from the image acquisition terminal through the network module.
[0251] S610. The face recognition module in the server 102 determines the account corresponding to the target face image.
[0252] S611. If the electronic resource reconfiguration module in the server 102 determines that the reconfiguration flag is added to the account, then perform the corresponding reconfiguration operation on the initial electronic resources to be used by the account.
[0253] As an embodiment, the face recognition module in the server 102 can also perform face verification based on the target face image collected by the image acquisition terminal 103 before the electronic resource reconfiguration module adds the reconfiguration flag. Add the reconfiguration flag to the account with successful verification. If there is an account in the association relationship that fails to be verified successfully, then do not add the reconfiguration flag to the accounts in the association relationship.
[0254] Next, take the payment scenario as an example to illustrate the method for configuring electronic resources provided in the embodiments of the present application. Please refer to Figure 7b , which is a schematic diagram of an interface for the method of configuring electronic resources.
[0255] User A logs in to account A through the first client 1011, user B logs in to account B through the second client 1012, and user C logs in to account C through the third client 1013.
[0256] Account A in the first client 1011 receives the electronic resource reconfiguration information sent by the server 102. The server 102 records the information identifier of the electronic resource reconfiguration information as groundID. The electronic resource reconfiguration condition in the electronic resource reconfiguration information indicates that the target usage method is the face payment method, and the electronic resource reconfiguration condition also indicates that a group of 3 people is required. The electronic resource reconfiguration strategy in the electronic resource reconfiguration information indicates that the electronic resource reduction amount is 5 yuan, as Figure 7b (1).
[0257] Account A in the first client 1011 triggers a sharing operation for the electronic resource reconfiguration information, and forwards the received electronic resource reconfiguration information to account B of the second client 1012 and account C of the third client 1013.
[0258] The server 102 establishes an association relationship between account A and groundID.
[0259] Account B of the second client 1012 and account C of the third client 1013 respectively receive the electronic resource reconfiguration information sent by account A in the first client 1011, and trigger a confirmation operation for the electronic resource reconfiguration information, as Figure 7b (2).
[0260] The server 102 adds account B and account C to the association relationship between account A and groundID respectively, so that groundID is associated with account A, account B, and account C.
[0261] The server 102 determines that the association relationship between the ground ID and accounts A, B, and C meets the electronic resource reallocation condition, so the server 102 configures a reconfiguration identifier for accounts A, B, and C. The server 102 may send a prompt message to accounts A, B, and C to prompt that the electronic resource reallocation condition has been met, and a 5-yuan reduction can be applied when using the electronic resources.
[0262] When account A, B, or C purchases an item in the store, the initial electronic resources to be used, such as 10 yuan, are displayed on the image acquisition terminal 103 provided at the checkout counter. Taking account B as an example, account B selects to use face payment, such as Figure 7b (3), the image acquisition terminal 103 acquires the target face image of the user corresponding to account B and sends it to the server 102.
[0263] The server 102 determines that the target face image corresponds to account B and determines that account B has added a reconfiguration identifier. The server 102 feeds back the electronic resource reduction amount indicated by the reconfiguration identifier, such as 5 yuan, and the payment code of account B to the image acquisition terminal 103 provided at the checkout counter. The image acquisition terminal 103 determines the final electronic resources to be used by account B based on the initial electronic resources to be used by account B and the electronic resource reduction amount, such as the difference between the initial electronic resources to be used and the electronic resource reduction amount, 5 yuan. The image acquisition terminal 103 completes the 5-yuan payment based on the payment code of account B, such as Figure 7b (4).
[0264] As an embodiment, after account B has used the electronic resources, it is shown that the reconfiguration operation of the server 102 has been completed, and the reconfiguration identifier of account B can be cancelled.
[0265] Based on the same inventive concept, an embodiment of the present application provides a device for configuring electronic resources. This device is equivalent to the server 102 described above and can implement the functions corresponding to the foregoing method for configuring electronic resources. Please refer to Figure 8 , the device includes a transceiver module 801 and a processing module 802, where:
[0266] The transceiver module 801: is used to send electronic resource reconfiguration information to a target account, where the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reconfiguration information includes an electronic resource reconfiguration condition and an electronic resource reconfiguration strategy;
[0267] The transceiver module 801 is further used for: in response to a sharing operation triggered by the target account based on the electronic resource reconfiguration information, sending the electronic resource reconfiguration information to at least one other account indicated by the sharing operation;
[0268] Processing module 802: For each confirmation operation returned by another account among at least one other account for the electronic resource reallocation information, add another account to the association relationship established between the corresponding electronic resource reallocation information and the target account.
[0269] The processing module 802 is further configured to: If it is determined that the association relationship meets the electronic resource reallocation conditions, perform corresponding electronic resource reallocation operations on the accounts in the association relationship based on the electronic resource reallocation policy.
[0270] In a possible embodiment, the processing module 802 is further configured to:
[0271] Before sending the electronic resource reallocation information to the target account, respectively determine the electronic resource usage statistical information corresponding to each base account based on the electronic resource historical usage records of each base account;
[0272] Determine the base accounts whose electronic resource usage statistical information meets the preset account conditions as the target accounts.
[0273] In a possible embodiment, including any one or any combination of the following operations, the processing module 802 is specifically configured to:
[0274] Based on the electronic resource historical usage records of each base account, respectively determine the number of times each base account uses the electronic resource in the target usage mode within a preset first time period;
[0275] Based on the electronic resource historical usage records of each base account, respectively determine the amount of electronic resources used by each base account in the target usage mode within a preset second time period;
[0276] Based on the electronic resource historical usage records of each base account, respectively determine the target historical usage records of each base account using the electronic resource in the target usage mode within a preset time period.
[0277] In a possible embodiment, the processing module 802 is specifically configured to:
[0278] If the electronic resource usage statistical information includes the number of times of use, based on the preset account conditions, determine the base accounts with the number of times of use within the preset range of the number of times of use as the target accounts;
[0279] If the electronic resource usage statistical information includes the amount of electronic resources, based on the preset account conditions, determine the base accounts with the amount of electronic resources within the preset range of the amount of electronic resources as the target accounts;
[0280] If the electronic resource usage statistical information includes the target historical usage record, based on the preset account conditions, the basic account that uses the electronic resource in the target usage mode represented by the target historical usage record is determined as the target account.
[0281] In a possible embodiment, the processing module 802 is specifically configured to:
[0282] Each time in response to a confirmation operation returned by one of at least one other account for the electronic resource reallocation information, obtain an addition request of one other account, where the addition request is used to request to add one other account in the association relationship established between the corresponding electronic resource reallocation information and the target account;
[0283] Based on the association relationship and the electronic resource reallocation conditions, determine whether the association relationship meets the electronic resource reallocation conditions;
[0284] If the association relationship does not meet the electronic resource reallocation conditions, add one other account in the association relationship established between the corresponding electronic resource reallocation information and the target account.
[0285] In a possible embodiment, the transceiver module 801 is further configured to:
[0286] Before performing the corresponding electronic resource reconfiguration operation on the accounts in the association relationship based on the electronic resource reallocation policy if it is determined that the association relationship meets the electronic resource reallocation conditions, for each account in the association relationship, perform the following operations respectively:
[0287] Send a face verification request to one account and obtain the target face image returned by one account; where one account is the target account or other account;
[0288] The processing module 802 is further configured to:
[0289] Perform feature extraction processing on the target face image to obtain the target feature vector of the target face image;
[0290] Based on the target feature vector and the reference feature vectors of each pre-stored reference face image, determine the most similar feature vector with the maximum similarity to the target feature vector among the reference feature vectors, and obtain the most similar reference face image corresponding to the most similar feature vector;
[0291] Based on the corresponding relationship between each pre-stored reference face image and the account, if it is determined that the account corresponding to the most similar reference face image is one account, determine that one account is verified successfully.
[0292] In a possible embodiment, the transceiver module 801 is specifically configured to:
[0293] Send a face verification request to an account and obtain multiple candidate face images returned by an account;
[0294] The processing module 802 is specifically configured to:
[0295] Based on a preset image evaluation metric, determine a target face image among the multiple candidate face images whose image parameters meet the preset image evaluation metric; wherein, the image parameters are used to characterize the image quality of the candidate face images.
[0296] In a possible embodiment, including any one or any combination of the following operations, the processing module 802 is specifically configured to:
[0297] Based on a preset image evaluation metric, use the candidate face image with the largest proportion of the face area to the candidate face image area among the multiple candidate face images as the target face image;
[0298] Based on a preset image evaluation metric, use the candidate face image with the smallest relative angle between the plane where the face is located and the plane where the face image acquisition end is located among the multiple candidate face images as the target face image.
[0299] In a possible embodiment, the processing module 802 is specifically configured to:
[0300] If it is determined that the association relationship meets the electronic resource reconfiguration condition, then based on the electronic resource reconfiguration policy, add a corresponding reconfiguration identifier to the account in the association relationship;
[0301] For each account in the association relationship, respectively perform the following operations:
[0302] In response to an operation triggered by an account for indicating the use of electronic resources, obtain the initial electronic resources to be used by an account;
[0303] If it is determined that an account has a reconfiguration identifier, then based on the reconfiguration identifier, perform a corresponding electronic resource reconfiguration operation on the initial electronic resources to be used.
[0304] In a possible embodiment, including any one or any combination of the following operations, the processing module 802 is specifically configured to:
[0305] If the reconfiguration identifier includes an electronic resource reduction amount, then based on the electronic resource reduction amount, use the difference between the initial electronic resources to be used and the electronic resource reduction amount as the final electronic resources to be used by an account;
[0306] If the reconfiguration identifier includes an electronic resource feedback amount, then after an account uses the initial electronic resources to be used, send the electronic resource feedback amount to an account.
[0307] Based on the same inventive concept, an embodiment of the present application provides a device for configuring electronic resources. This device is equivalent to the client 101 discussed above and can implement the functions corresponding to the method for configuring electronic resources described above. Please refer to Figure 9 , the device includes a receiving module 901, a sending module 902, and a processing module 903, where:
[0308] The receiving module 901: is used to receive the electronic resource reconfiguration information sent by the server. Among them, the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reconfiguration information includes the electronic resource reconfiguration conditions and the electronic resource reconfiguration strategy;
[0309] The sending module 902: is used to, in response to a sharing operation triggered by the target account for the electronic resource reconfiguration information, forward the electronic resource reconfiguration information to at least one other account, so that for each confirmation operation returned by one of the at least one other accounts in response to the electronic resource reconfiguration information, the server adds one other account to the association relationship established between the corresponding electronic resource reconfiguration information and the target account, and if it is determined that the association relationship meets the electronic resource reconfiguration conditions, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship based on the electronic resource reconfiguration strategy.
[0310] In a possible embodiment, the receiving module 901 is further used for:
[0311] After forwarding the electronic resource reconfiguration information to at least one other account in response to a sharing operation triggered by the target account for the electronic resource reconfiguration information, receive a face verification request sent by the server for the target account;
[0312] The device further includes a processing module 903, and the processing module 903 is used for:
[0313] Based on the face verification request, collect a target face image and return the target face image to the server, so that the server performs feature extraction processing on the target face image to obtain the target feature vector of the target face image, and based on the target feature vector and the reference feature vectors of each pre-stored reference face image, determine the most similar feature vector with the maximum similarity to the target feature vector among the reference feature vectors, obtain the most similar reference face image corresponding to the most similar feature vector, and based on the correspondence between each pre-stored reference face image and the account, if it is determined that the account corresponding to the most similar reference face image is the target account, determine that the target account verification is successful.
[0314] In a possible embodiment, the processing module 903 is specifically used for:
[0315] Based on the face verification request, collect multiple candidate face images;
[0316] Based on a preset image evaluation index, among multiple candidate face images, determine a target face image whose image parameters meet the preset image evaluation index; wherein, the image parameters are used to characterize the image quality of the candidate face images.
[0317] In a possible embodiment, it includes any one or any combination of the following operations. Specifically, the processing module 903 is configured to:
[0318] Based on a preset image evaluation index, use the candidate face image with the largest proportion of the face area to the candidate face image area among multiple candidate face images as the target face image;
[0319] Based on a preset image evaluation index, use the candidate face image with the smallest relative angle between the plane where the face is located and the plane where the face image acquisition end is located among multiple candidate face images as the target face image.
[0320] Based on the same inventive concept, an embodiment of the present application provides a device for configuring electronic resources. This device is equivalent to the client 101 discussed above and can implement the functions corresponding to the method for configuring electronic resources described above. Please refer to Figure 10 This device includes a receiving module 1001, a sending module 1002, and a processing module 1003, where:
[0321] The receiving module 1001: is configured to receive the electronic resource reconfiguration information sent by the target account. Among them, the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reconfiguration information includes the electronic resource reconfiguration conditions and the electronic resource reconfiguration strategy;
[0322] The sending module 1002: is configured to, in response to a confirmation operation triggered by another account for the electronic resource reconfiguration information, send a confirmation operation to the server, so that the server, in response to the confirmation operation returned by another account, adds another account to the association relationship established between the corresponding electronic resource reconfiguration information and the target account, and, if it is determined that the association relationship meets the electronic resource reconfiguration conditions, perform corresponding electronic resource reconfiguration operations on the accounts in the association relationship based on the electronic resource reconfiguration strategy.
[0323] In a possible embodiment, the receiving module 1001 is further configured to:
[0324] After sending a confirmation operation to the server in response to a confirmation operation triggered by another account for the electronic resource reconfiguration information, receive a face verification request sent by the server for another account;
[0325] The device further includes a processing module 1003, and the processing module 1003 is configured to:
[0326] Based on a face verification request, a target face image is collected and returned to the server, so that the server performs feature extraction processing on the target face image to obtain a target feature vector of the target face image, and, based on the target feature vector and the reference feature vectors of each pre-stored reference face image, among the reference feature vectors, the most similar feature vector with the largest similarity to the target feature vector is determined, the most similar reference face image corresponding to the most similar feature vector is obtained, and, based on the corresponding relationship between each pre-stored reference face image and an account, if it is determined that the account corresponding to the most similar reference face image is an other account, it is determined that the verification of the other account is successful.
[0327] Based on the same inventive concept, an embodiment of the present application provides a system for configuring electronic resources, including a device for configuring electronic resources equivalent to the server 102 as discussed above, a device for configuring electronic resources equivalent to the first client 1011 as discussed above, and a device for configuring electronic resources equivalent to the second client 1012 or the third client 1013 as discussed above.
[0328] Based on the same inventive concept, an embodiment of the present application provides a computer device, and the computer device 1100 will be introduced below.
[0329] Please refer to Figure 11 , the above-mentioned device for configuring electronic resources can run on the computer device 1100, the current version and historical versions of the program for configuring electronic resources and the application software corresponding to the program for configuring electronic resources can be installed on the computer device 1100, and the computer device 1100 includes a display unit 1140, a processor 1180, and a memory 1120. Among them, the display unit 1140 includes a display panel 1141 for displaying a user interaction operation interface, etc.
[0330] In a possible embodiment, the display panel 1141 can be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED), etc.
[0331] The processor 1180 is used to read a computer program and then execute the method defined by the computer program. For example, the processor 1180 reads the program or file for configuring electronic resources, etc., so as to run the program for configuring electronic resources on the computer device 1100 and display the corresponding interface on the display unit 1140. The processor 1180 can include one or more general-purpose processors, and can also include one or more DSPs (Digital Signal Processors) for performing related operations to implement the technical solutions provided by the embodiments of the present application.
[0332] The memory 1120 generally includes internal memory and external memory. The internal memory may be a random access memory (RAM), a read-only memory (ROM), a cache, etc. The external memory may be a hard disk, an optical disc, a USB flash drive, a floppy disk, or a magnetic tape drive, etc. The memory 1120 is used to store computer programs and other data. The computer programs include application programs corresponding to each client, etc. The other data may include an operating system or data generated after the application programs are run. The data includes system data (such as configuration parameters of the operating system) and user data. In the embodiments of the present application, program instructions are stored in the memory 1120, and the processor 1180 executes the program instructions stored therein 1120 to implement any of the methods for configuring electronic resources described in the previous figures.
[0333] The above display unit 1140 is used to receive input digital information, character information, or contact touch operations / non-contact gestures, and generate signal inputs related to the user settings and function controls of the computer device 1100, etc. Specifically, in the embodiments of the present application, the display unit 1140 may include a display panel 1141. The display panel 1141, such as a touch screen, can collect touch operations of the user on or near it (such as the user using a finger, a stylus, or any suitable object or accessory to operate on the display panel 1141 or near the display panel 1141), and drive the corresponding connection device according to a preset program.
[0334] In a possible embodiment, the display panel 1141 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch position of the player and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 1180, and can receive and execute the commands sent by the processor 1180.
[0335] Among them, the display panel 1141 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the display unit 1140, the computer device 1100 may further include an input unit 1130. The input unit 1130 may include a graphic input device 1131 and other input devices 1132. The other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.
[0336] In addition to the above, the computer device 1100 may further include a power supply 1190 for powering other modules, an audio circuit 1160, a near field communication module 1170, and an RF circuit 1110. The computer device 1100 may further include one or more sensors 1150, such as an acceleration sensor, a light sensor, a pressure sensor, etc. The audio circuit 1160 specifically includes a speaker 1161 and a microphone 1162, etc. For example, the computer device 1100 may collect the user's voice through the microphone 1162 and perform corresponding operations, etc.
[0337] As an embodiment, the number of processors 1180 may be one or more. The processor 1180 and the memory 1120 may be coupled or relatively independent.
[0338] As an embodiment, Figure 11 the processor 1180 in Figure 8 may be used to implement the functions of the transceiver module 801 and the processing module 802 in Figure 9 or may be used to implement the functions of the receiving module 901, the transmitting module 902, and the processing module 903 in Figure 10 or may be used to implement the functions of the receiving module 1001, the transmitting module 1002, and the processing module 1003 in
[0339] As an embodiment, Figure 11 the processor 1180 in
[0340] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium includes: various media that can store program codes, such as a removable storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
[0341] Alternatively, if the above integrated unit of the present invention is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as removable storage devices, ROM, RAM, magnetic disks, or optical discs.
[0342] Obviously, those skilled in the art can 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 equivalent technologies, this application is also intended to include these changes and modifications.
Claims
1. A method for configuring electronic resources, characterized in that, The electronic resource is a kind of electronic funds, including: Sending electronic resource reallocation information for promoting a new usage method of the electronic resource to a target account, where the target account is determined based on the historical usage record of the electronic resource of the target account, and the electronic resource reallocation information for promoting the new usage method of the electronic resource includes an electronic resource reallocation condition and an electronic resource reallocation strategy; In response to a sharing operation triggered by the target account based on the electronic resource reallocation information for promoting the new usage method of the electronic resource, sending the electronic resource reallocation information to at least one other account indicated by the sharing operation; Each time in response to a confirmation operation returned by one of the at least one other account for the electronic resource reallocation information for promoting the new usage method of the electronic resource, adding the one other account to the association relationship established between the electronic resource reallocation information for promoting the new usage method of the electronic resource and the target account; If it is determined that the number of accounts in the association relationship meets the electronic resource reallocation condition, then based on the electronic resource reallocation strategy, reallocating the initial electronic resource amount to be used by the accounts in the association relationship to obtain the final electronic resource amount to be used.
2. The method according to claim 1, wherein Before sending the electronic resource reallocation information for promoting the new usage method of the electronic resource to the target account, it further includes: Based on the historical usage records of the electronic resources of each basic account, respectively determining the electronic resource usage statistical information corresponding to each basic account; Determining the basic accounts whose electronic resource usage statistical information meets the preset account conditions as target accounts.
3. The method according to claim 2, wherein Based on the historical usage records of the electronic resources of each basic account, respectively determining the electronic resource usage statistical information corresponding to each basic account includes any one or any combination of the following operations: Based on the historical usage records of the electronic resources of each basic account, respectively determining the number of times each basic account uses the electronic resource in a preset first time period in a target usage manner; Based on the historical usage records of the electronic resources of each basic account, respectively determining the electronic resource amount that each basic account uses the electronic resource in a target usage manner in a preset second time period; Based on the historical usage records of the electronic resources of each basic account, respectively determining the target historical usage records of each basic account using the electronic resource in a target usage manner in a preset time period.
4. The method according to claim 3, wherein Determining the basic accounts whose electronic resource usage statistical information meets the preset account conditions as target accounts includes: If the electronic resource usage statistical information includes the number of times, then based on the preset account conditions, determining the basic accounts with the number of times within the preset range of the number of times as target accounts; If the electronic resource usage statistical information includes the electronic resource amount, then based on the preset account conditions, determining the basic accounts with the electronic resource amount within the preset range of the electronic resource amount as target accounts; If the electronic resource usage statistical information includes the target historical usage record, based on the preset account conditions, the basic account that uses the electronic resource in the target usage mode represented by the target historical usage record is determined as the target account.
5. The method according to any one of claims 1 to 4, characterized in that, Each time in response to a confirmation operation returned by one of the at least one other account for the electronic resource reallocation information for the new usage method of the promoted electronic resource, adding the one other account to the association relationship established between the electronic resource reallocation information for the new usage method of the promoted electronic resource and the target account includes: Each time in response to a confirmation operation returned by one of the at least one other account for the electronic resource reallocation information, obtaining an addition request of the one other account, where the addition request is used to request adding the one other account to the association relationship established between the electronic resource reallocation information and the target account; Based on the association relationship and the electronic resource reallocation conditions, determining whether the association relationship meets the electronic resource reallocation conditions; If the number of accounts in the association relationship does not meet the electronic resource reallocation conditions, adding the one other account to the association relationship established between the electronic resource reallocation information and the target account.
6. The method according to any one of claims 1 to 4, characterized in that Before, if it is determined that the number of accounts in the association relationship meets the electronic resource reallocation conditions, based on the electronic resource reallocation strategy, reallocating the initial electronic resource amount to be used by the accounts in the association relationship to obtain the final electronic resource amount to be used, further includes: Performing the following operations for each account in the association relationship respectively: Sending a face verification request to an account and obtaining a target face image returned by the account; where the account is the target account or the other account; Performing feature extraction processing on the target face image to obtain a target feature vector of the target face image; Based on the target feature vector and the reference feature vectors of each pre-stored reference face image, determining, among the reference feature vectors, the most similar feature vector with the maximum similarity to the target feature vector, and obtaining the most similar reference face image corresponding to the most similar feature vector; Based on the correspondence relationship between each pre-stored reference face image and the account, if it is determined that the account corresponding to the most similar reference face image is the account, determining that the account is verified successfully.
7. The method according to any one of claims 1 to 4, characterized in that, If it is determined that the number of accounts in the association relationship meets the electronic resource reallocation conditions, based on the electronic resource reallocation strategy, reallocating the initial electronic resource amount to be used by the accounts in the association relationship to obtain the final electronic resource amount to be used, includes: If it is determined that the association relationship meets the electronic resource reallocation conditions, adding corresponding reconfiguration identifiers to the accounts in the association relationship; Performing the following operations for each account in the association relationship respectively: In response to an operation triggered by an account for indicating the use of electronic resources, obtaining the initial electronic resource amount to be used by the account; If it is determined that the reconfiguration identifier exists for the one account, based on the reconfiguration identifier, reconfigure the initial amount of electronic resources to be used by the one account to obtain the final amount of electronic resources to be used by the one account.
8. A method for configuring electronic resources, characterized in that, The electronic resources are a type of electronic funds, including: Receive the electronic resource reconfiguration information of the new usage method of the promotional electronic resources sent by the server for the target account, where the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reconfiguration information of the new usage method of the promotional electronic resources includes the electronic resource reconfiguration condition and the electronic resource reconfiguration strategy; In response to the sharing operation triggered by the target account for the electronic resource reconfiguration information of the new usage method of the promotional electronic resources, forward the electronic resource reconfiguration information of the new usage method of the promotional electronic resources to at least one other account, so that for each confirmation operation returned by one of the at least one other accounts for the electronic resource reconfiguration information of the new usage method of the promotional electronic resources, add the one other account to the association relationship established between the electronic resource reconfiguration information of the new usage method of the promotional electronic resources and the target account, and if it is determined that the number of accounts in the association relationship meets the electronic resource reconfiguration condition, based on the electronic resource reconfiguration strategy, reconfigure the initial amount of electronic resources to be used by the accounts in the association relationship to obtain the final amount of electronic resources to be used.
9. A method for configuring electronic resources, characterized in that, The electronic resources are a type of electronic funds, including: Receive the electronic resource reconfiguration information of the new usage method of the promotional electronic resources sent by the target account for one other account, where the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reconfiguration information of the new usage method of the promotional electronic resources includes the electronic resource reconfiguration condition and the electronic resource reconfiguration strategy; In response to the confirmation operation triggered by the one other account for the electronic resource reconfiguration information of the new usage method of the promotional electronic resources, send the confirmation operation to the server, so that the server, in response to the confirmation operation returned by the one other account, adds the one other account to the association relationship established between the electronic resource reconfiguration information of the new usage method of the promotional electronic resources and the target account, and if it is determined that the number of accounts in the association relationship meets the electronic resource reconfiguration condition, based on the electronic resource reconfiguration strategy, reconfigure the initial amount of electronic resources to be used by the accounts in the association relationship to obtain the final amount of electronic resources to be used.
10. An apparatus for configuring electronic resources, characterized in that, The electronic resources are a type of electronic funds, including: Transceiver module: used to send the electronic resource reconfiguration information of the new usage method of the promotional electronic resources to the target account, where the target account is determined based on the historical usage record of the electronic resources of the target account, and the electronic resource reconfiguration information of the new usage method of the promotional electronic resources includes the electronic resource reconfiguration condition and the electronic resource reconfiguration strategy; The transceiver module is further configured to: in response to a sharing operation triggered by the target account based on the electronic resource reallocation information of the new usage method of the promoted electronic resource, send the electronic resource reallocation information of the new usage method of the promoted electronic resource to at least one other account indicated by the sharing operation; The processing module is configured to: each time in response to a confirmation operation returned by one of the at least one other accounts for the electronic resource reallocation information of the new usage method of the promoted electronic resource, add the one other account to the association relationship established between the electronic resource reallocation information corresponding to the new usage method of the promoted electronic resource and the target account; The processing module is further configured to: if it is determined that the number of accounts in the association relationship satisfies the electronic resource reallocation condition, based on the electronic resource reallocation policy, reallocate the initial amount of electronic resources to be used by the accounts in the association relationship to obtain the final amount of electronic resources to be used.
11. An apparatus for configuring electronic resources, characterized in that, The electronic resource is a type of electronic funds, including: The receiving module is configured to receive the electronic resource reallocation information of the new usage method of the promoted electronic resource sent by the server, where the electronic resource reallocation information of the new usage method of the promoted electronic resource includes the electronic resource reallocation condition and the electronic resource reallocation policy; The sending module is configured to: in response to a sharing operation triggered by the target account for the electronic resource reallocation information of the new usage method of the promoted electronic resource, forward the electronic resource reallocation information of the new usage method of the promoted electronic resource to at least one other account, so that each time the server responds to a confirmation operation returned by one of the at least one other accounts for the electronic resource reallocation information of the new usage method of the promoted electronic resource, add the one other account to the association relationship established between the electronic resource reallocation information corresponding to the new usage method of the promoted electronic resource and the target account, and if it is determined that the number of accounts in the association relationship satisfies the electronic resource reallocation condition, based on the electronic resource reallocation policy, reallocate the initial amount of electronic resources to be used by the accounts in the association relationship to obtain the final amount of electronic resources to be used, and the target account is determined based on the electronic resource historical usage record of the target account.
12. An apparatus for configuring electronic resources, characterized in that, The electronic resource is a type of electronic funds, including: The receiving module is configured to receive the electronic resource reallocation information of the new usage method of the promoted electronic resource sent by the target account, where the target account is determined based on the electronic resource historical usage record of the target account, and the electronic resource reallocation information of the new usage method of the promoted electronic resource includes the electronic resource reallocation condition and the electronic resource reallocation policy; Sending module: configured to send the confirmation operation to the server in response to a confirmation operation triggered by electronic resource reallocation information for a new usage method of the promoted electronic resource by another account, so that the server, in response to the confirmation operation returned by the another account, adds the another account to the association relationship established between the electronic resource reallocation information corresponding to the new usage method of the promoted electronic resource and the target account, and, if it is determined that the number of accounts in the association relationship meets the electronic resource reallocation condition, reallocates the initial electronic resource amount to be used by the accounts in the association relationship based on the electronic resource reallocation policy to obtain the final electronic resource amount to be used.
13. A system for configuring electronic resources, characterized in that, It includes the device for configuring electronic resources according to claim 10, the device for configuring electronic resources according to claim 11, and the device for configuring electronic resources according to claim 12.
14. A computer device, characterized in that, It includes: A memory for storing program instructions; A processor for calling the program instructions stored in the memory and executing the method according to any one of claims 1 to 9 according to the obtained program instructions.
15. A storage medium, characterized in that, The storage medium stores computer-executable instructions for causing a computer to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Live broadcast recommendation method and device, server and storage medium
CN111866541A
Method and device for providing target information
WO2020238828A1