CN109754329B - Electronic resource processing method, terminal, server and storage medium - Google Patents

Electronic resource processing method, terminal, server and storage medium Download PDF

Info

Publication number
CN109754329B
CN109754329B CN201910100368.8A CN201910100368A CN109754329B CN 109754329 B CN109754329 B CN 109754329B CN 201910100368 A CN201910100368 A CN 201910100368A CN 109754329 B CN109754329 B CN 109754329B
Authority
CN
China
Prior art keywords
image
resource
electronic
target image
electronic resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910100368.8A
Other languages
Chinese (zh)
Other versions
CN109754329A (en
Inventor
彭博斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910100368.8A priority Critical patent/CN109754329B/en
Publication of CN109754329A publication Critical patent/CN109754329A/en
Application granted granted Critical
Publication of CN109754329B publication Critical patent/CN109754329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a processing method of electronic resources, a terminal, a server and a storage medium, wherein the method comprises the following steps: acquiring a target image for resource sharing; generating a resource sharing request, wherein the resource sharing request carries the target image; sending the resource sharing request to a server so that the server outputs an electronic resource package in response to the resource sharing request and responds to a resource getting request generated by performing a resource getting operation on the electronic resource package; the electronic resource package comprises the target image and at least one similar image of the target image; the resource retrieval request includes indication information indicating any one image selected from the electronic resource package when the resource retrieval operation is performed. The method and the device can improve the social interaction of the electronic resource processing process.

Description

Electronic resource processing method, terminal, server and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method for processing electronic resources, a terminal, a server, and a computer storage medium.
Background
With the increasing popularity of terminals (such as mobile phones, tablets, smart wearable devices, etc.), various social software (such as instant messaging software WeChat, QQ, etc.) installed and running on the terminals also come into play, and these social software not only support conventional social interaction functions, such as: social sessions such as audio sessions, video sessions, etc.; and also supports the function of electronic resource sharing, such as common WeChat Red envelope and QQ Red envelope, which are essentially the processes of electronic resource sharing in WeChat conversation or QQ conversation. Here, the electronic resource refers to a resource existing in an electronic account (e.g., internet bank, internet payment account, etc.) and capable of circulating through the internet, and includes, but is not limited to, electronic money, electronic coupons, and the like. In practice, the problem that the current processing flow related to electronic resources is single and the social interaction is poor is found.
Disclosure of Invention
The technical problem to be solved in the embodiments of the present invention is to provide a method, a terminal, a server, and a storage medium for processing an electronic resource, which can improve social interaction in a processing process of the electronic resource.
In one aspect, an embodiment of the present invention provides a method for processing an electronic resource, which is applied to a first terminal, and the method includes:
acquiring a target image for resource sharing;
generating a resource sharing request, wherein the resource sharing request carries the target image;
sending the resource sharing request to a server so that the server outputs an electronic resource package in response to the resource sharing request and responds to a resource getting request generated by performing a resource getting operation on the electronic resource package; the electronic resource package comprises the target image and at least one similar image of the target image; the resource retrieval request includes indication information indicating any one image selected from the electronic resource package when the resource retrieval operation is performed.
On the other hand, the embodiment of the invention provides a processing method of electronic resources, which is applied to a server and comprises the following steps:
receiving a resource sharing request of a first terminal, wherein the resource sharing request carries a target image for resource sharing;
acquiring at least one similar image of the target image;
outputting the electronic resource package to a second terminal so that the second terminal executes resource obtaining operation on the electronic resource package and returns a resource obtaining request; the electronic resource package comprises the target image and the at least one similar image; the resource obtaining request comprises indication information used for indicating any image selected from the electronic resource package when the resource obtaining operation is executed;
and responding to the resource obtaining request returned by the second terminal.
In another aspect, an embodiment of the present invention provides a method for processing an electronic resource, where the method is applied to a second terminal, and the method includes:
outputting an electronic resource package sent by a server, wherein the electronic resource package comprises a target image and at least one similar image of the target image;
if the resource getting operation executed on the electronic resource package is detected, generating a resource getting request, wherein the resource getting request comprises indication information used for indicating any image selected from the electronic resource package when the resource getting operation is executed;
and sending the resource getting request to the server so that the server responds to the resource getting request.
In another aspect, an embodiment of the present invention provides an apparatus for processing an electronic resource, where the apparatus is applied to a first terminal, and the first terminal includes:
the acquisition module is used for acquiring a target image for resource sharing.
And the generating module is used for generating a resource sharing request, and the resource sharing request carries the target image.
A sending module, configured to send the resource sharing request to a server, so that the server outputs an electronic resource package in response to the resource sharing request, and responds to a resource pickup request generated by performing a resource pickup operation on the electronic resource package; the electronic resource package comprises the target image and at least one similar image of the target image; the resource retrieval request includes indication information indicating any one image selected from the electronic resource package when the resource retrieval operation is performed.
In another aspect, an embodiment of the present invention provides an apparatus for processing an electronic resource, which is applied to a server, where the server includes:
the receiving module is used for receiving a resource sharing request of the first terminal, wherein the resource sharing request carries a target image for resource sharing.
And the acquisition module is used for acquiring at least one similar image of the target image.
The output module is used for outputting the electronic resource package to a second terminal so that the second terminal executes resource getting operation on the electronic resource package and returns a resource getting request; the electronic resource package comprises the target image and the at least one similar image; the resource retrieval request includes indication information indicating any one image selected from the electronic resource package when the resource retrieval operation is performed.
In another aspect, an embodiment of the present invention provides an apparatus for processing an electronic resource, where the apparatus is applied to a second terminal, and the second terminal includes:
the output module is used for outputting an electronic resource package sent by a server, wherein the electronic resource package comprises a target image and at least one similar image of the target image.
A generating module, configured to generate a resource getting request if a resource getting operation performed on the electronic resource package is detected, where the resource getting request includes indication information used for indicating any image selected from the electronic resource package when the resource getting operation is performed.
And the sending module is used for sending the resource getting request to the server so as to enable the server to respond to the resource getting request.
In another aspect, an embodiment of the present invention provides a terminal, including an input device and an output device, further including:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more first instructions adapted to be loaded by the processor and to perform the steps of:
acquiring a target image for resource sharing;
generating a resource sharing request, wherein the resource sharing request carries the target image;
sending the resource sharing request to a server so that the server outputs an electronic resource package in response to the resource sharing request and responds to a resource getting request generated by performing a resource getting operation on the electronic resource package; the electronic resource package comprises the target image and at least one similar image of the target image; the resource pickup request includes indication information for indicating any image selected from the electronic resource package when the resource pickup operation is performed.
Alternatively, the computer storage medium stores one or more second instructions adapted to be loaded by the processor and to perform the steps of:
outputting an electronic resource package sent by a server, wherein the electronic resource package comprises a target image and at least one similar image of the target image;
if the resource getting operation executed on the electronic resource package is detected, generating a resource getting request, wherein the resource getting request comprises indication information used for indicating any image selected from the electronic resource package when the resource getting operation is executed;
and sending the resource getting request to the server so that the server responds to the resource getting request.
In another aspect, an embodiment of the present invention provides a server, including an input device and an output device, further including:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
receiving a resource sharing request of a first terminal, wherein the resource sharing request carries a target image for resource sharing;
acquiring at least one similar image of the target image;
outputting the electronic resource package to a second terminal so that the second terminal executes a resource getting operation on the electronic resource package and returns a resource getting request; the electronic resource package comprises the target image and the at least one similar image; the resource getting request comprises indication information used for indicating any image selected from the electronic resource package when the resource getting operation is executed;
and responding to the resource getting request returned by the second terminal.
In yet another aspect, an embodiment of the present invention provides a computer storage medium, where one or more instructions are stored, and the one or more instructions are adapted to be loaded by a processor and execute the processing method of the electronic resource.
In the embodiment of the invention, a resource sharing request sent by a first terminal to a server carries a target image; the server responds to the resource sharing request and outputs an electronic resource package, wherein the electronic resource package comprises the target image and at least one similar image of the target image; in this way, the retriever can select any image from the electronic resource package to execute the resource retrieving operation and initiate a resource retrieving request to the server for response processing; the resource retrieval request includes instruction information for instructing any one of the images selected from the electronic resource package when the resource retrieval operation is executed. In the processing process of the electronic resources, the image elements are added in the sharing request stage of the electronic resource package, and the operation content for selecting the image elements is added in the resource getting stage of the electronic resource package, so that the topicality and the interestingness of the processing process of the electronic resources are enriched, the operability of resource sharing and the operability of resource getting are improved, and the social interaction of all parties of resource sharing is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is an architecture diagram of a processing system for electronic resources provided by an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for processing an electronic resource according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating another method for processing electronic resources according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating a method for processing an electronic resource according to another embodiment of the present invention;
FIG. 5 is a schematic interface diagram of another electronic resource provided by an embodiment of the invention;
FIG. 6 is a schematic flow chart of acquiring a similar image of a target image according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a processing apparatus for electronic resources according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of another electronic resource processing apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a processing apparatus for processing an electronic resource according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Electronic resources refer to resources that exist in an electronic account, are subject to electronic commerce, and can circulate over the internet, including but not limited to electronic money, electronic coupons, and the like. Electronic accounts herein may include, but are not limited to: electronic bank cards, internet banking, internet payment accounts, and the like. An electronic resource package (also known as electronic Red Packet) is a special social message generated in the electronic resource processing process. The processing of electronic resources generally comprises three phases: (1) a sharing request stage of the electronic resource package; (2) an output stage of the electronic resource package; (3) And a stage of obtaining the electronic resources in the electronic resource package. The above stages will be described in detail with reference to fig. 1-2.
Please refer to the processing system of electronic resources shown in fig. 1, which may include a first terminal, a server and at least one second terminal (a second terminal is taken as an example in fig. 1 for illustration); wherein:
the first terminal and the second terminal are both user-oriented terminals, and the first terminal may be a terminal oriented to a user (called a sharer) performing the resource sharing operation, that is, the first terminal specifically refers to a terminal used by the sharer for performing the resource sharing operation. The second terminal may be a terminal facing a user (called a retriever) performing the resource retrieving operation, that is, the second terminal is specifically a terminal used by the retriever for performing the resource retrieving operation. The first terminal and the second terminal can be smart devices such as a smart phone, a tablet computer, a portable personal computer, a smart watch, a bracelet and a smart television. Various applications, such as instant messaging software, payment software, social software, or other software capable of red packet issuing or getting, may be installed on the first terminal and the second terminal.
The server may be an independent server, or a server cluster composed of several servers, or a cloud computing center. The server can provide the processing service of the electronic resource for the first terminal and the second terminal. In one implementation, the server may be a backend server of the application, such as: the server can be an instant messaging server, and the first terminal and the second terminal can interact with the server through the application program, so that the processing flow of the electronic resources is realized. In another implementation manner, the server may be a dedicated server with an electronic resource processing capability, and the first terminal and the second terminal may interact with the server in a wired or wireless manner, so as to implement a processing flow of the electronic resource.
Based on the system shown in fig. 1, the processing flow of the electronic resource shown in fig. 2 includes the following steps S1-S8:
s1, a first terminal obtains parameters for resource sharing.
S2, the first terminal generates a resource sharing request, and the resource sharing request carries the parameters.
And S3, the first terminal sends the resource sharing request to a server.
Steps S1-S3 belong to a sharing request phase of the electronic resource package. At this stage, if a user wants to share the electronic resource package with other users, the user may be referred to as a sharer, and the other users to be shared may be referred to as a retriever. In S1, the first terminal may output an interface for resource sharing operation in various user interfaces, where the user interfaces may include but are not limited to: a service page of an application, such as a session window interface of instant messaging software; or a web interface, such as a forum space, etc. The interface may be a key or an option, the sharer may invoke the parameter configuration interface by operating the interface (e.g., pressing the key or selecting the option), and set parameters for resource sharing in the parameter configuration interface, and the first terminal may obtain the parameters set by the sharer from the parameter configuration interface. This parameter typically includes: the sharing person identification, the retriever identification, the total amount of the electronic resources in the electronic resource package, the total times of the electronic resource package allowing the successful execution of the resource retrieving operation and the distribution mode of the electronic resources in the electronic resource package; the identity of the sharer is used for finding the electronic account of the sharer; the identifier of the retriever is used for searching the electronic account of the retriever; the identification may include user identification (e.g., a user account in instant messaging software, a registered user account in payment software, a user account in a general application, or a user account in a web page), device identification used by a user (e.g., a mobile phone number, a serial number of a mobile phone, etc.), or electronic account identification (e.g., an electronic bank card number, an internet banking account number, an internet payment account number, etc.). The total amount of the electronic resource in the electronic resource package refers to the total amount of the electronic resource that the server needs to deduct from the electronic account of the sharer in response to the resource sharing operation performed by the sharer with respect to the electronic resource package, for example: if the total amount of the electronic resources in the electronic resource package is 10 yuan, the server needs to deduct 10 yuan from the electronic account of the sharer. The total times of the electronic resource package allowed to be successfully executed with the resource extraction operation are used for indicating whether the electronic resource package is allowed to be split for extraction and the times of the electronic resource package allowed to be split for extraction; for example: setting the total times of the electronic resource package allowed to be successfully executed with the resource getting operation as 1, indicating that the shared electronic resource is not allowed to be split, and further indicating that the retriever can obtain all the electronic resources in the electronic resource package (namely obtaining the total amount of the electronic resources in the electronic resource package) if the retriever successfully executes the resource getting operation; the following steps are repeated: and setting the total number of times that the electronic resource package is allowed to be successfully subjected to the resource obtaining operation as 2, indicating that the electronic resource in the electronic resource package is allowed to be split into two times of obtaining, further indicating that the electronic resource in the electronic resource package is at least split into two obtaining persons to obtain, and the sum of the amount of the electronic resource obtained by the two obtaining persons successfully subjected to the resource obtaining operation is equal to the total amount of the shared electronic resource. The distribution mode of the electronic resources in the electronic resource package is a mode that the electronic resources in the electronic resource package are split and taken, and comprises random distribution or average distribution; the random allocation means that the total amount of the electronic resources in the electronic resource package is split and picked up in a random manner, so that the amount of the electronic resources picked up by a retriever is random, for example: if the total number of times that the electronic resource package allows the resource pickup operation to be successfully executed is 2, and the total amount of the electronic resources in the electronic resource package is 10-element electronic money, the total amount of the electronic resources in the electronic resource package is split according to a random distribution mode, and may be split into 1-element electronic money and 9-element electronic money, then the amount of the electronic resources picked up by the retriever may be 1-element electronic money or 9-element electronic money. The average allocation means that the total amount of the electronic resources in the electronic resource package is split and retrieved in an average manner, and then the amount of the electronic resources retrieved by the retriever is fixed, for example: if the total number of times that the electronic resource package allows the resource pickup operation to be successfully executed is 2, the total amount of the electronic resources in the electronic resource package is 10-element electronic money, the total amount of the electronic resources in the electronic resource package is split according to an average distribution mode, and the two split electronic money are 5-element electronic money, then the amount of the electronic resources picked up by the retriever may be 5-element electronic money. Optionally, the parameters set by the sharee may also include other content, such as text indicating a blessing (e.g., may you like to buy a good, good luck, etc.), etc. And S2-S3, after obtaining the parameters configured in the parameter configuration interface by the sharer, the first terminal generates a resource sharing request and sends the resource sharing request to the server, wherein the resource sharing request can carry the parameters.
And S4, the server receives a resource sharing request of the first terminal.
And S5, the server outputs the electronic resource package according to the resource sharing request.
Steps S4-S5 belong to the output phase of the electronic resource package. At this stage, the server in S5 performs a series of processes in response to the resource sharing request of the sharer, including: (1) Judging whether the resource sharing condition is met according to the resource sharing request specifically includes: judging whether the total amount of the electronic resources in the electronic resource package contained in the parameters is greater than a preset threshold, wherein the preset threshold can be the remaining total amount of the electronic resources in the electronic account of the sharer or the maximum amount of the electronic resources allowed to be shared in one resource sharing operation set by the server; if the resource sharing condition is not met, determining that the resource sharing condition is not met, and sending prompt information to the first terminal by the server, wherein the prompt information is used for prompting the first terminal to change parameters so as to reinitiate a resource sharing message; if not, determining that the resource sharing condition is met; then entering into (2) the server to deduct the electronic resource equivalent to the total amount of the electronic resource in the electronic resource package from the electronic account of the sharer according to the identifier of the sharer; and generating an electronic resource package; (3) And the server sends the electronic resource package to the first terminal and the second terminal. Then, the first terminal and the second terminal may each display the electronic resource package. The electronic resource package is a special social message, which has the feature of interactivity, and specifically means that the electronic resource package can be operated, for example, a retriever can click on the electronic resource package or the retriever can operate the electronic resource package by shaking the terminal, and the operation performed on the electronic resource package is generally called a resource retrieving operation, and the electronic resource package is allowed to be operated for multiple times. The resource getting operation triggers the terminal of the taker to send a resource getting request to the server, and requests the server to respond and allocate a corresponding line from the electronic resource total line shared by the sharer. In addition, the electronic resource package generally has an expiration date, for example, the expiration date is 24 hours, 10 hours, etc.; resource pickup operations can be performed within the validity period; and the resource obtaining operation cannot be executed outside the validity period, and the surplus limit which is not obtained in the shared electronic resources corresponding to the electronic resource package is returned to the electronic account of the sharer by the server when the validity period is reached. At this stage, the first terminal or the second terminal may display the electronic resource package in the user interface, and may display the parameter in the electronic resource package, so that the sharer or the retriever performs the resource retrieving operation on the electronic resource package.
S6, if the second terminal detects the resource getting operation performed on the electronic resource package, it generates a resource getting request, and it can be understood that the resource getting request may carry information such as an identifier of a retriever, an operation time when the resource getting operation is performed, and the like.
And S7, the second terminal sends the resource getting request to the server.
And S8, the server responds to the resource getting request.
Steps S6-S8 belong to the stage of getting electronic resources in the electronic resource package. In some scenarios, the sharer may also perform a resource obtaining operation on the electronic resource package, and therefore, when detecting the resource obtaining operation on the electronic resource package, the first terminal may also send a resource obtaining request to the server. The processing procedure of the response of the server to the resource getting request in S8 may include: according to the information in the resource getting request, judging whether the resource getting operation of the taker is successful or not by combining the remaining amount of the electronic resource in the electronic resource package and the number of times that the electronic resource package has been subjected to the resource getting operation, if the operation is successful, allocating a corresponding amount for the taker from the remaining amount of the electronic resource in the electronic resource package according to the allocation mode of the electronic resource in the electronic resource package, and transferring the allocated electronic resource with the corresponding amount to the electronic account of the taker; if the operation fails, the server feeds back prompt information to the retriever, wherein the prompt information carries the failure reason; reasons for failure here may include, but are not limited to: network reasons, no remaining balance of electronic resources in the electronic resource package, etc. Further, the server can also send the resource getting processing result of the electronic resource package to the first terminal and the second terminal; the resource extraction processing result includes but is not limited to: the amount of the electronic resource successfully acquired by each acquirer, the total amount of the electronic resource in the electronic resource package, the number of times that the electronic resource package successfully performs the resource acquisition operation, the time taken for the electronic resource package to be completely acquired, and the like. Optionally, the first terminal and the second terminal may display the resource pickup result in the electronic resource package.
The above S1 to S8 show the basic processing flow of the electronic resource. The system shown in FIG. 1 may be applied to a variety of Internet scenarios involving electronic resource processing, including but not limited to: one-to-one scenes, one-to-many scenes, etc. It is understood that the processing flow of the electronic resource in different internet scenarios can be changed correspondingly on the basis of fig. 2. Here, the one-to-one scenario refers to a scenario in which a sharer shares an electronic resource with a designated retriever, for example, the sharer performs a resource sharing operation in a social session window separate from the retriever, the number of the second terminals is 1, and after the electronic resource package is sent to the first terminal and the second terminal, the first terminal and the second terminal may display the electronic resource package in the social session window between the sharer and the retriever; under the scene, the sharer usually does not allow the resource obtaining operation to be executed on the electronic resource package, and the obtaining person can obtain the total amount of the electronic resources in the electronic resource package by successfully executing the resource obtaining operation once on the electronic resource package within the validity period of the electronic resource package.
The one-to-many scenario refers to a scenario in which a sharer shares electronic resources with a plurality of retrievers, for example, the sharer performs a resource sharing operation on all or part of members in a group session window, a plurality of designated members in the group are retrievers, the number of second terminals is greater than 1 at this time, an electronic resource package is sent to a first terminal and all second terminals, the first terminal and all second terminals can display the electronic resource package in the group session window, in this scenario, the sharer and the retriever are both allowed to perform the resource retrieving operation on the electronic resource package, and a server allocates electronic resource lines to the retrievers according to the time sequence of the resource retrieving operation performed on the electronic resource package by each retriever (including the sharer). The following steps are repeated: the sharer executes resource sharing operation in the forum (QQ space, microblog plaza and the like), all member users in the forum are retrievers, and the server distributes electronic resource lines for all the retrievers according to the time sequence of the resource retrieving operation executed by all the retrievers on the electronic resource packages.
In order to improve social interaction in the electronic resource processing process, an embodiment of the present invention provides a new electronic resource processing method, which improves the basic processing flows shown in S1 to S8 in the following ways: (1) And adding the image elements in the sharing request stage of the electronic resource package. (2) And adding processing flows such as image similarity matching, similarity screening and the like at the output stage of the electronic resource package. (3) And adding processing flows such as operation content of image selection, image verification and the like in the stage of acquiring the electronic resources in the electronic resource package. Through the improvement, the embodiment of the invention enriches the topicality and interest of the processing process of the electronic resource, improves the operability of resource sharing and the operability of resource acquisition, and simultaneously improves the social interaction of all parties of resource sharing.
Based on the above description, the processing method of electronic resources proposed by the embodiment of the present invention can refer to steps S101-S110 shown in fig. 3:
s101, the first terminal obtains a target image for resource sharing.
As described in step S1 shown in fig. 2, the sharer may set a parameter for resource sharing in the parameter configuration interface of the first terminal. In this embodiment, an image setting item may be added to the parameter configuration interface, and a sharer may set a target image for resource sharing through the setting item, where the parameter for resource sharing includes the target image; for example, the sharer calls the local image database of the first terminal through the image setting item, and selects any image from the local image database of the first terminal as the target image, or the sharer calls the imaging device of the first terminal through the image setting item to capture the target image. The target image can be a person image, such as an image containing the head portrait of the sharer or an image containing other people; the target image may also be a non-human image such as an animal image, a natural scene image or a building image, an appearance image of a product or an instant messaging avatar of a user, and the like. Optionally, a theme setting item may be further added in the parameter configuration interface, the sharer may input a theme for resource sharing through the theme setting item, at this time, the parameter may further include the theme, and the theme may be a default theme or a custom theme. The default theme refers to a theme which is generated by default in the theme setting item by the first terminal; the user-defined theme refers to a theme input by a sharer through a theme setting item. The subject may be related to the target image, for example: if the target image is an image containing the head portrait of the sharer, the topic may be "find My image"; the following steps are repeated: if the target image is an image including a dog, the subject may be "find an image including a dog". It is understood that the parameters for resource sharing may further include some information shown in step S1 shown in fig. 2, such as an identifier of the sharer, an identifier of the retriever, a total amount of the electronic resources in the electronic resource package, a total number of times that the electronic resource package is allowed to successfully perform the resource retrieving operation, and a distribution manner of the electronic resources in the electronic resource package.
S102, the first terminal generates a resource sharing request, and the resource sharing request carries the target image.
And S103, the first terminal sends the resource sharing request to a server.
In steps S102-S103, the first terminal may package a parameter (including a target image) for sharing to generate a resource sharing request, and send the resource sharing request to the server through each application program, for example, if a sharer executes a resource sharing operation in a session interface of the instant messaging software, the first terminal may send the resource sharing request to the server through the instant messaging software; the server may be a background server for the instant messaging software at this point. For another example, if the sharer performs the resource sharing operation through a web interface (e.g., forum home page, social space), the first terminal may send the resource sharing request to a server through a browser, where the server may be a background server of the browser.
S104, the server receives a resource sharing request of the first terminal.
S105, the server acquires at least one similar image of the target image.
In steps S104 to S105, the server may retrieve, from the local image database of the server, at least one image similar to the target image (hereinafter, simply referred to as at least one similar image of the target image) or retrieve, from the internet, at least one similar image of the target image, by using an image recognition technique, based on the target image in the resource sharing request. The number of the similar images can be set according to actual needs, for example, the preset number can be set by a user or a server system; for example, twenty similar images of the target image are retrieved by using an image recognition technology, the twenty similar images are sorted according to the sequence of similarity from high to low, and the images are selected from the sorting according to the set number as the similar images of the target image.
S106, the server outputs an electronic resource package to the second terminal, wherein the electronic resource package comprises the target image and the at least one similar image.
In one possible embodiment, the electronic resource package includes a target image and the at least one similar image; in this embodiment, the transmission of the electronic resource package involves the transmission of images, and occupies a large amount of bandwidth resources, so this embodiment is more suitable for scenes with rich bandwidth resources. In another possible embodiment, the electronic Resource package includes attribute information of a target image and attribute information of at least one similar image, where the attribute information may include an identifier, and the identifier may include a number (Identification, ID) of the image, a Uniform Resource Locator (URL) of the image, and the like. The attribute information may further include arrangement information indicating a position where the arrangement of the images is displayed. In this embodiment, the transmission of the electronic resource package involves the transmission of the attribute information, and the bandwidth resource occupied by the transmission of the image is less, so that the embodiment can effectively save the transmission resource. Optionally, if the parameters include a theme, the electronic resource package may further include a theme; specifically, the method comprises the following steps: the server may package the theme, along with the target image and the at least one similar image, into an electronic resource package.
S107, the second terminal outputs an electronic resource packet sent by the server, wherein the electronic resource packet comprises a target image and at least one similar image of the target image.
After receiving the electronic resource package sent by the server, the second terminal can display the electronic resource package, and display the target image and the at least one similar image in the electronic resource package. The electronic resource package may be displayed in a social session window, such as: in a one-to-one scenario, the electronic resource package may be displayed in separate session windows of the first terminal and the second terminal; in a one-to-many scenario, the electronic resource package may be displayed in a group session window where the first terminal and the second terminal are co-located. In one possible embodiment, if the electronic resource package includes a target image and at least one similar image; the second terminal may arrange and display the target image and the at least one similar image in the electronic resource package according to its preset policy, where the preset policy may include, but is not limited to: the preset policy may be different for different second terminals, such as a random arrangement manner, an arrangement manner set according to the size of the image, and the like. In another possible implementation manner, if the electronic resource package includes attribute information of the target image and attribute information of at least one similar image, the second terminal first acquires the target image and the at least one similar image according to the attribute information, and then arranges and displays the target image and the at least one similar image in the electronic resource package according to the attribute information. Optionally, if the electronic resource package contains a theme, the second terminal displays the theme in the electronic resource package, and at this time, the theme may be used to assist the retriever to select the correct image as soon as possible to successfully retrieve the electronic resource. In one embodiment, in order to enable the retriever to perform the resource retrieving operation in time, the second terminal may output prompt information while outputting the electronic resource package, wherein the prompt information may be presented by one or more of voice, vibration and flashing.
S108, if the second terminal detects the resource getting operation executed on the electronic resource package, generating a resource getting request, wherein the resource getting request carries the indication information of any image selected from the electronic resource package.
And S109, the second terminal sends the resource getting request to the server.
In steps S108 to S109, when the retriever wants to access the electronic resource, the retriever may perform a resource retrieving operation on the electronic resource package, where the resource retrieving operation may be a selecting operation performed on any image in the electronic resource package, the selecting operation may include, but is not limited to, a click operation or a slide operation, the second terminal generates a resource retrieving request according to the resource retrieving operation, the resource retrieving request carries indication information for indicating a selected image, and the indication information may include the selected image or attribute information of the selected image. Further, the second terminal sends the resource getting request to the server.
S110, the server responds to the resource obtaining request returned by the second terminal.
The response processing procedure of the server specifically includes: firstly, verifying whether a selected image is a target image according to indication information in a resource pickup request, if so, indicating that a second terminal side taker selects a correct image, then referring to a flow in a step S8 shown in FIG. 2, judging whether the resource pickup operation of the taker is successful according to the remaining amount of electronic resources in an electronic resource package and the number of times that the electronic resource package has been subjected to the resource pickup operation, if so, allocating a corresponding amount from the remaining amount of electronic resources in the electronic resource package to the second terminal side taker according to the allocation mode of the electronic resources in the electronic resource package, and transferring the allocated electronic resources of the corresponding amount to the electronic account to the second terminal side taker; otherwise, the server feeds back the failure reason to the second terminal; reasons for failure here may include, but are not limited to: network reasons, no surplus of electronic resources, etc. If the selected image is not the target image, the fact that the retriever on the side of the second terminal selects the image incorrectly is indicated, the fact that the current resource retrieving operation of the second terminal fails is indicated, the server feeds back prompt information to the second terminal, and the server prompts the second terminal to reselect the image to re-execute the resource retrieving operation. In one embodiment, the present embodiment allows the retriever to perform the resource retrieval operation multiple times within the validity period of the electronic resource package.
In the flow shown in fig. 3, the electronic resource package of the server is also sent to the first terminal, and the first terminal also outputs the electronic resource package, and displays the target image and at least one similar image in the electronic resource package. In some scenarios, for example, in a one-to-many scenario, the sharer may also be the retriever, so that the sharer may also select the image in the electronic resource package to perform the resource retrieving operation to send the resource retrieving request to the server, so that the server responds to the resource retrieving request of the sharer.
In the embodiment of the invention, a resource sharing request sent by a first terminal to a server carries a target image; the server responds to the resource sharing request and outputs an electronic resource package, wherein the electronic resource package comprises the target image and at least one similar image of the target image; in this way, the retriever can select any image from the electronic resource package to execute the resource retrieving operation and initiate a resource retrieving request to the server for response processing; the resource retrieval request includes instruction information for instructing any one of the images selected from the electronic resource package when the resource retrieval operation is executed. In the processing process of the electronic resources, the image elements are added in the sharing request stage of the electronic resource package, and the operation content for selecting the image elements is added in the resource obtaining stage of the electronic resource package, so that the topicality and interestingness of the processing process of the electronic resources are enriched, the operability of resource sharing and the operability of resource obtaining are improved, and the social interaction of all parties of resource sharing is improved.
The method for processing electronic resources according to the embodiment of the present invention will be described with reference to the example shown in fig. 4.
As shown in fig. 4, the sharer executes a resource sharing operation in a group session window of the "mountain-climbing friend group" displayed on the first terminal to call out a parameter configuration interface, where the parameter configuration interface includes an image setting item, a theme setting item, a quota setting item, a frequency setting item, and the like. And clicking a camera mark in the image setting item by the sharer to call a camera of the first terminal to carry out self-shooting and uploading a self-shooting image as a target image. The sharee enters a topic, which may be "find included my image," via the topic setting item. In addition, it is also possible to set the total amount of electronic resources in the electronic resource package to 100-dollar electronic money by the amount setting item, and set the total number of times that the electronic resource package is allowed to be successfully subjected to the resource pickup operation to 10 times by the number setting item. The first terminal obtains the parameters set by the sharer, generates a resource sharing request and sends the resource sharing request to the server.
The server searches at least one similar image of the target image according to the target image in the resource sharing request of the first terminal. As shown in fig. 4, after receiving the resource sharing request, the server retrieves 3 images similar to the target image from the network according to the target image. The server generates an electronic resource package and sends the electronic resource package to terminals of all member users (retrievers) in the mountain-climbing friend group, and the terminal of any member user is taken as a second terminal. The electronic resource package includes 3 similar images and a target image.
As shown in fig. 4, the second terminal displays an electronic resource package in the group session interface of the mountain-climbing friend group, and displays the target image and 3 similar images in the electronic resource package; here, the image displayed in the electronic resource package may be an original image or a thumbnail image (as shown in fig. 4). The color, shape and size of the electronic resource package may be default of the second terminal system, or may be adjusted by the user according to the preference. For example, as shown in fig. 4, the second terminal may display thumbnails of the target image and 3 similar images in a 2 × 2 image matrix arrangement in a random arrangement. The retriever can click and select any image to initiate the resource retrieving operation, such as: if the retriever selects the image (which can be marked as image 4) at the lower right corner in the image matrix, the second terminal generates a resource retrieving request, the resource retrieving request comprises the attribute information of the image 4, and the resource retrieving request is sent to the server.
And the server verifies whether the selected image in the resource getting request is the target image, and then performs response processing of resource getting according to the verification result to obtain a resource getting processing result. For example, as shown in fig. 4, the server determines whether the image 4 is the target image according to the attribute information of the image 4, where the attribute information of the image 4 is compared to determine whether the attribute information of the target image is the same, and if so, the selected image is determined to be the target image; otherwise, the selected image is determined not to be the target image. As shown in fig. 4, the image 4 is not a target image, and the retriever at the second terminal side fails in the resource retrieval operation this time, the server outputs a prompt message to the second terminal to prompt the second terminal to reselect the image to resend the resource retrieval request.
In the embodiment of the invention, a resource sharing request sent by a first terminal to a server carries a target image; the server responds to the resource sharing request and outputs an electronic resource package, wherein the electronic resource package comprises the target image and at least one similar image of the target image; in this way, the retriever can select any image from the electronic resource package to execute the resource retrieving operation, and initiate a resource retrieving request to the server for response processing; the resource retrieval request includes instruction information for instructing any one of the images selected from the electronic resource package when the resource retrieval operation is performed. In the processing process of the electronic resources, the image elements are added in the sharing request stage of the electronic resource package, and the operation content for selecting the image elements is added in the resource getting stage of the electronic resource package, so that the topicality and the interestingness of the processing process of the electronic resources are enriched, the operability of resource sharing and the operability of resource getting are improved, and the social interaction of all parties of resource sharing is improved.
Optionally, in the embodiment shown in fig. 3, before the step S102, the following steps S201 to S202 may be further included.
S201, the first terminal detects whether the target image is an effective image.
In order to avoid resources consumed by transmission and processing of an invalid image, after a first terminal acquires a target image for resource sharing, validity detection can be performed on the target image; if the target image is detected to be an invalid image, indicating that the server cannot acquire an image similar to the target image according to the target image, the process proceeds to step S202. If the target image is detected to be a valid image, it indicates that the server can acquire a similar image of the target image according to the target image, and the process proceeds to step S102 shown in fig. 3.
In one embodiment, S201 includes the following steps S11-S12.
And s11, the first terminal acquires the contour information of the target object in the target image.
And s12, if the contour information of the target object is matched with preset contour information, the first terminal confirms that the target image is an effective image.
In steps s11 to s12, the target object includes any one of: humans, animals, plants and buildings. The first terminal can acquire the contour information of a target object in the target image, compares the contour information of the target object with preset contour information, and if the contour information of the target object is matched with the preset contour information, the first terminal confirms that the target image is an effective image if the target image comprises a clear and/or complete target object; if the two images do not match, the target image is determined to be an invalid image if the definition and/or integrity of the target object included in the target image is low. For example, if the target image is a face image, the first terminal may obtain face contour information in the target image, and if the obtained face contour information matches with the face contour information stored in the server, determine that the target image is an effective image; if the acquired face contour information is not matched with the face contour information stored in the server, prompt information is output, and the prompt information can be 'no face is detected, please shoot the image again or select the image'.
S202, the first terminal outputs first prompt information, and the first prompt information is used for prompting to input the target image again.
If the invalid target image is uploaded to the server, transmission bandwidth resources are wasted, and time cost in the processing process of electronic resources is increased; therefore, in the embodiment, the first terminal performs validity detection on the target image when acquiring the target image, so that the waste of transmission bandwidth resources can be avoided; and when the target image is detected to be an invalid image, the first prompt information can be output so as to prompt the sharer to input the target image again, and therefore the success rate of the processing process of the electronic resource can be improved.
In one embodiment, step S105 shown in FIG. 3 may specifically include steps S21-S22 as follows.
And s21, the server inquires a plurality of candidate images similar to the target image in an image database.
And s22, the server selects at least one similar image from the alternative images according to the sequence of similarity from high to low.
In steps s21 to s22, in order to increase the interest of the resource retrieval operation and to mobilize the enthusiasm of the retriever, the server may query the image database for an image having a high similarity to the target image. Specifically, the image database may be a local image database of a server, or an image database of another device, or an image database in the internet, or the like. The server can inquire a plurality of candidate images similar to the target image from the image database, and select at least one similar image from the candidate images according to the sequence of similarity from high to low.
Taking the target image as the face image as an example, the process of the server searching for at least one similar image of the target image can be seen in fig. 6: after receiving the target image, the server acquires the characteristic information of the target image through a face recognition technology, and matches at least one similar image for the target image according to the characteristic information of the target image.
Specifically, (1) a target face image region in the target image is detected through a face detection algorithm, the target image may include at least one face image region, and the target face image region may refer to a face image region with the largest size in the at least one face image region. (2) The face registration algorithm based on deep learning registers the face in the target face image area to obtain the face feature point positions, such as the positions of the five sense organs of the face, wherein the five sense organs comprise the right eye center, the left eye center, the nose tip and two side mouth angles of a human, and the normalized face image is obtained from the target image according to the face feature point positions. (3) And extracting the human face characteristic points in the target image from the normalized human face image based on a depth network algorithm of the human face characteristic extraction. (4) And comparing the facial feature points in the target image with the facial feature points in the registered facial feature set in the image database to obtain a candidate similar image similar to the target image. The registered face feature set includes face feature points of each image obtained by performing face detection, face registration, feature extraction, and the like on registered face pictures included in the image database, and in order to improve the efficiency of image retrieval, the registered face feature set may be set in advance, and the registered face pictures may refer to images including faces in the image database. (5) And sequencing the alternative similar images according to the similarity from high to low, and selecting N human face images with the highest similarity as the similar images of the target image. The size of N may be set by the sharer or may be system default.
In another embodiment, the step S106 shown in fig. 3 may include the following steps S31 to S32.
And s31, the server packages the target image and the at least one similar image to generate an electronic resource package.
And s32, the server sends the electronic resource package to the second terminal for display and output.
In steps s31 to s32, if the bandwidth resource for data transmission between the server and the second terminal is rich, the server may package the target image and the at least one similar image according to a preset message format to generate an electronic resource package, where the preset message format may refer to a message format of an application program corresponding to a shared resource, for example, if a sharer shares the electronic resource with instant messaging software, the preset message format refers to a message format specified by the instant messaging software. And further, the electronic resource package is sent to a second terminal for display and output.
In this embodiment, step S107 shown in fig. 3 may specifically include the following steps S41 to S42.
And s41, the second terminal analyzes the electronic resource packet sent by the server to obtain a target image and at least one similar image.
And s42, the second terminal displays the electronic resource package, and displays the target image and at least one similar image in the electronic resource package.
In steps s41 to s42, the second terminal may perform parsing processing on the electronic resource packet sent by the server to obtain a target image and at least one similar image; the second terminal can display the electronic resource package, and display the target image and the at least one similar image in the electronic resource package according to the preset strategy arrangement of the second terminal. In this case, the preset policy may be different for different second terminals, and thus, the positions of the target image displayed in the electronic resources of different second terminals may be different, increasing the diversity and flexibility of the displayed image.
In another possible embodiment, step S106 shown in FIG. 3 may include steps S51-S53 as follows.
s51, the server obtains the attribute information of the target image and the attribute information of the at least one similar image.
And s52, the server packages the attribute information of the target image and the attribute information of the at least one similar image to generate an electronic resource package.
And s53, the server sends the electronic resource package to the second terminal.
In steps s51 to s53, in order to save bandwidth traffic and improve data transmission efficiency; the server can acquire the attribute information of the target image and the attribute information of at least one similar image, package the attribute information of the target image and the attribute information of at least one similar image according to a preset message format to generate an electronic resource package, and send the electronic resource package to the second terminal. In this case, after the electronic resource package is received by the second terminal, the target image and the at least one similar image are obtained according to the attribute information of the target image and the attribute information of the at least one similar image; and displaying the target image and the at least one similar image in the electronic resource package according to the attribute information of the target image and the attribute information of the at least one similar image. Here, the attribute information may include an identifier and may further include arrangement information indicating a display position of the image in the electronic resource pack.
In a specific implementation, if the attribute information includes the arrangement information, the step s51 may include the following steps s61 to s62.
s61, the server arranges the target image and the at least one similar image to obtain an image matrix.
And s62, the server acquires the position of the target image in the image matrix as the arrangement information of the target image, and acquires the position of the at least one similar image in the image matrix as the arrangement information of the at least one similar image.
In steps s61 to s62, in order to enable the second terminal to display the target image and the at least one similar image according to the specified arrangement mode, the server may arrange the target image and the at least one similar image according to a preset arrangement mode to obtain an image matrix; the preset arrangement mode may include a random arrangement mode, an arrangement mode set according to the kind of the target object in the target image, and an arrangement mode set according to the size of the image, and the random arrangement mode may mean that the positions of the target images in the image matrix are randomly set. Further, a position of the target image in the image matrix may be acquired as the arrangement information of the target image, and a position of the at least one similar image in the image matrix may be acquired as the arrangement information of the at least one similar image. For example, assuming that the at least one similar image includes 15 images, the server may arrange the target image and the 15 similar images into a 4 × 4 image matrix in a random arrangement; and acquiring arrangement information of the target image and the 15 similar images in an image matrix, wherein the arrangement information of each image comprises a row number and a column number of the image in the image matrix, and for example, the arrangement information of the target image can be represented as (1,2) if the target image is in a first row and a second column in the image matrix.
In this embodiment, step S107 shown in fig. 3 may include steps S71 to S73 as follows.
And s71, the second terminal analyzes the electronic resource packet sent by the server to obtain the attribute information of the target image and the attribute information of at least one similar image.
And s72, the second terminal acquires the target image according to the attribute information of the target image and acquires at least one similar image according to the attribute information of at least one similar image.
And s73, the second terminal displays the electronic resource package, and displays the target image and the at least one similar image according to the attribute information of the target image and the attribute information of the at least one similar image.
In steps s71 to s73, the second terminal may perform parsing processing on the electronic resource package sent by the server to obtain attribute information of the target image and attribute information of the at least one similar image, where the attribute information at least includes an identifier of the image. The second terminal can acquire the target image according to the identification of the target image and acquire at least one similar image according to the identification of the at least one similar image. Further, if the attribute information does not include the arrangement information of the images, the second terminal arranges and displays the target image and at least one similar image in the electronic resource package according to a preset strategy thereof; if the attribute information also comprises arrangement information of the images, the second terminal arranges and displays the target images and at least one similar image in the electronic resource package according to the arrangement information; specifically, if the attribute information includes the arrangement information, the step s73 includes the following steps s81 to s82.
And s81, arranging the target image and the at least one similar image to form an image matrix by the second terminal according to the arrangement information of the target image and the arrangement information of the at least one similar image.
And s82, the second terminal displays the electronic resource package and displays the image matrix in the electronic resource package.
In steps s81 to s82, if the attribute information includes the arrangement information, the arrangement information is sent by the server, that is, the second terminals may arrange and display the target image and the at least one similar image according to the arrangement mode set by the server, that is, each second terminal displays the target image and the at least one similar image in the same arrangement mode. Specifically, if the arrangement information indicates the position of each image in the image matrix, the second terminal may arrange the target image and the at least one similar image according to the arrangement information of the target image and the arrangement information of the at least one similar image to form the image matrix, display the electronic resource package, and display the image matrix in the electronic resource package. For example, the server arranges the target image and 15 similar images into a 4x4 image matrix, the second terminal arranges the target image and 15 similar images into a 4x4 image matrix according to the arrangement information, and the display position of each image in the image matrix of the server is the same as the display position of the corresponding image in the image matrix of the second terminal. And if the display position of the target image in the image matrix of the server is the first row and the second column, the second terminal displays the target image in the first row and the second column of the image matrix of the second terminal.
In still another embodiment, step S108 shown in FIG. 3 includes steps S91-S93 as follows.
And s91, the server judges whether the selected image is the target image according to the indication information of the selected image carried in the resource acquisition request.
And s92, if so, the server generates a resource picking processing result.
And s93, if not, the server sends second prompt information to the second terminal, wherein the second prompt information is used for instructing the second terminal to execute the resource obtaining operation again so as to send the resource obtaining request again.
In steps s91 to s93, the server determines whether the selected image is the target image, and if so, the server generates a resource obtaining processing result of the second terminal if the second terminal selects a correct image; if not, the second terminal is indicated to select the wrong image, and second prompt information can be sent to the second terminal. In one embodiment, if the indication information is a selected image, the server may compare the selected image with the target image, and if the similarity between the two images is greater than a preset similarity, determine that the selected image is the target image; and if the similarity of the two images is less than or equal to the preset similarity, determining that the selected image is not the target image, namely that the retriever selects the wrong image. In another embodiment, if the indication information is attribute information of the selected image, the server may compare the attribute information of the selected image with attribute information of the target image, and if the attribute information of the two images is the same, determine that the selected image is the target image; if the attribute information of the two images is different, the selected image is determined not to be the target image, namely the retriever selects the wrong image.
In a specific implementation, the server may return a resource pickup processing result to the first terminal and the second terminal, where the resource pickup processing result includes at least one of the following information: the electronic resource package performs the number of times of resource getting operation, the image selected when the resource getting operation is performed each time, the time for successfully performing the resource getting operation, and the electronic resource amount obtained by successfully performing the resource getting operation. And after the first terminal or/and the second terminal receive the resource receiving processing result, the resource receiving processing result can be displayed on the electronic resource receiving detail page. For example, as shown in fig. 5, the second terminal may display the resource pickup processing result on a resource pickup detail page, and the following information may be obtained from the detail page shown in fig. 5: if the identifier of the retriever corresponding to the second terminal is test123, the time for the retriever at the second terminal to successfully perform the resource retrieving operation on the electronic resource package is 22.
An embodiment of the present invention provides an apparatus for processing an electronic resource, where the apparatus may be a computer program in a first terminal, for example, an application program in the first terminal, such as instant messaging software, social contact software, browser software, and the like. Referring to fig. 7, the apparatus includes:
an obtaining module 701, configured to obtain a target image for resource sharing.
A generating module 702, configured to generate a resource sharing request, where the resource sharing request carries the target image.
A sending module 703, configured to send the resource sharing request to a server, so that the server outputs an electronic resource package in response to the resource sharing request, and responds to a resource pickup request generated by performing a resource pickup operation on the electronic resource package; the electronic resource package comprises the target image and at least one similar image of the target image; the resource pickup request includes indication information for indicating any image selected from the electronic resource package when the resource pickup operation is performed.
Optionally, the apparatus may further comprise:
a detecting module 704, configured to detect whether the target image is an effective image, if yes, execute the step of generating the resource sharing request, and if not, output first prompt information, where the first prompt information is used to prompt to re-input the target image.
Optionally, the detection module 704 is specifically configured to obtain contour information of a target object in the target image; and if the contour information of the target object is matched with the preset contour information, determining that the target image is an effective image.
Optionally, the indication information includes a selected image and/or attribute information of the selected image; the attribute information comprises identification and/or arrangement information; the arrangement information is used for indicating the display position of the image in the electronic resource package.
In the embodiment of the invention, a resource sharing request sent by a first terminal to a server carries a target image; the server responds to the resource sharing request and outputs an electronic resource package, wherein the electronic resource package comprises the target image and at least one similar image of the target image; in this way, the retriever can select any image from the electronic resource package to execute the resource retrieving operation and initiate a resource retrieving request to the server for response processing; the resource retrieval request includes instruction information for instructing any one of the images selected from the electronic resource package when the resource retrieval operation is performed. In the processing process of the electronic resources, the image elements are added in the sharing request stage of the electronic resource package, and the operation content for selecting the image elements is added in the resource getting stage of the electronic resource package, so that the topicality and the interestingness of the processing process of the electronic resources are enriched, the operability of resource sharing and the operability of resource getting are improved, and the social interaction of all parties of resource sharing is improved.
The embodiment of the present invention provides another electronic resource processing apparatus, which may be a computer program in a server, for example, a service program in the server for providing a service for instant messaging software in a terminal, or a service program in the server for providing a service for browser software in the terminal. Referring to fig. 8, the apparatus includes:
a receiving module 801, configured to receive a resource sharing request of a first terminal, where the resource sharing request carries a target image for resource sharing.
An obtaining module 802, configured to obtain at least one similar image of the target image.
An output module 803, configured to output the electronic resource package to a second terminal, so that the second terminal performs a resource getting operation on the electronic resource package to return a resource getting request; the electronic resource package comprises the target image and the at least one similar image; the resource retrieval request includes indication information indicating any one image selected from the electronic resource package when the resource retrieval operation is performed.
A processing module 804, configured to perform response processing on the resource getting request returned by the second terminal.
Optionally, the obtaining module 802 is specifically configured to query, in an image database, a plurality of candidate images similar to the target image; and selecting at least one similar image from the alternative images according to the sequence of similarity from high to low.
Optionally, the output module 803 is specifically configured to perform encapsulation processing on the target image and the at least one similar image to generate an electronic resource package; and sending the electronic resource package to a second terminal for display and output.
Optionally, the output module 803 is specifically configured to obtain attribute information of the target image and attribute information of the at least one similar image; packaging the attribute information of the target image and the attribute information of the at least one similar image to generate an electronic resource package; and sending the electronic resource package to a second terminal, enabling the second terminal to display the electronic resource package, and displaying the target image and the at least one similar image in the electronic resource package according to the attribute information of the target image and the attribute information of the at least one similar image.
Optionally, the indication information includes a selected image and/or attribute information of the selected image; the attribute information comprises identification and/or arrangement information; the arrangement information is used for indicating the display position of the image in the electronic resource package.
Optionally, if the attribute information includes arrangement information, the output module 803 is specifically configured to arrange the target image and the at least one similar image to obtain an image matrix; acquiring the position of the target image in the image matrix as the arrangement information of the target image, and acquiring the position of the at least one similar image in the image matrix as the arrangement information of the at least one similar image.
Optionally, the processing module 804 is specifically configured to determine whether the selected image is the target image according to the indication information in the resource obtaining request; if yes, generating a resource receiving processing result; and if not, sending second prompt information to the second terminal, wherein the second prompt information is used for indicating the second terminal to re-execute the resource getting operation so as to re-send the resource getting request.
Optionally, the output module 803 is specifically configured to return the resource obtaining processing result to the first terminal and the second terminal; the resource procurement processing result comprises at least one of the following information: the electronic resource package performs the number of times of resource getting operation, the image selected when the resource getting operation is performed each time, the time for successfully performing the resource getting operation, and the electronic resource amount obtained by successfully performing the resource getting operation.
An embodiment of the present invention provides another electronic resource processing apparatus, which may be a computer program in the second terminal, for example, an application program in the second terminal, such as instant messaging software, browser software, and the like. Referring to fig. 9, the apparatus includes:
an output module 901, configured to output an electronic resource package sent by a server, where the electronic resource package includes a target image and at least one similar image of the target image.
A generating module 902, configured to generate a resource obtaining request if a resource obtaining operation performed on the electronic resource package is detected, where the resource obtaining request includes indication information used for indicating any image selected from the electronic resource package when the resource obtaining operation is performed.
A sending module 903, configured to send the resource getting request to the server, so that the server performs response processing on the resource getting request.
Optionally, the indication information includes a selected image and/or attribute information of the selected image; the attribute information comprises identification and/or arrangement information; the arrangement information is used for indicating the display position of the image in the electronic resource package.
Optionally, the output module 901 is specifically configured to perform parsing processing on the electronic resource package sent by the server to obtain the target image and the at least one similar image; and displaying the electronic resource package, and displaying the target image and the at least one similar image in the electronic resource package.
Optionally, the output module 901 is specifically configured to perform parsing processing on the electronic resource package sent by the server to obtain attribute information of the target image and attribute information of the at least one similar image; acquiring the target image according to the attribute information of the target image, and acquiring the at least one similar image according to the attribute information of the at least one similar image; and displaying the electronic resource package, and displaying the target image and the at least one similar image according to the attribute information of the target image and the attribute information of the at least one similar image.
Optionally, if the attribute information includes arrangement information, the output module 901 is specifically configured to arrange the target image and the at least one similar image according to the arrangement information of the target image and the arrangement information of the at least one similar image to form an image matrix; displaying an electronic resource package and displaying the image matrix in the electronic resource package.
An embodiment of the present invention provides a terminal, which may be a first terminal or a second terminal shown in fig. 1. Referring to fig. 10, the terminal includes: the processor 151, the user interface 152, the network interface 154, and the storage device 155 are connected via a bus 153.
A user interface 152 for enabling human-computer interaction, which may include a display screen or a keyboard, among others. And a network interface 154 for communication connection with an external device. A storage device 155 is coupled to processor 151 for storing various software programs and/or sets of instructions. In particular implementations, storage 155 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices. The storage device 155 may store an operating system (hereinafter referred to simply as a system), such as an embedded operating system like ANDROID, IOS, WINDOWS, or LINUX. The storage 155 may also store a network communication program that may be used to communicate with one or more additional devices, one or more terminal devices, one or more network devices. The storage device 155 may further store a user interface program, which may vividly display the content of the application program through a graphical operation interface, and receive a user's control operation of the application program through input controls such as menus, dialog boxes, and buttons. Storage 155 may also store one or more application programs.
In one embodiment, the storage 155 may be configured to store one or more first instructions; the processor 151 may call the one or more first instructions to execute a processing method of the electronic resource, and specifically, the processor 151 calls the first instructions to execute the following steps:
acquiring a target image for resource sharing;
generating a resource sharing request, wherein the resource sharing request carries the target image;
sending the resource sharing request to a server so that the server outputs an electronic resource package in response to the resource sharing request and responds to a resource getting request generated by performing a resource getting operation on the electronic resource package; the electronic resource package comprises the target image and at least one similar image of the target image; the resource retrieval request includes indication information indicating any one image selected from the electronic resource package when the resource retrieval operation is performed.
Optionally, the processor invokes the first instruction to perform the following steps:
detecting whether the target image is a valid image; if yes, executing the step of generating the resource sharing request; and if not, outputting first prompt information, wherein the first prompt information is used for prompting to input the target image again.
Optionally, the processor invokes the first instruction to perform the following steps:
acquiring contour information of a target object in the target image; and if the contour information of the target object is matched with the preset contour information, determining that the target image is an effective image.
Optionally, the indication information includes a selected image and/or attribute information of the selected image; the attribute information comprises identification and/or arrangement information; the arrangement information is used for indicating the display position of the image in the electronic resource package.
In another embodiment, the storage 155 may be configured to store one or more second instructions; the processor 151 may invoke the one or more second instructions to execute a processing method of the electronic resource, and specifically, the processor 151 invokes the second instructions to execute the following steps:
outputting an electronic resource packet sent by a server, wherein the electronic resource packet comprises a target image and at least one similar image of the target image;
if the resource getting operation executed on the electronic resource package is detected, generating a resource getting request, wherein the resource getting request comprises indication information used for indicating any image selected from the electronic resource package when the resource getting operation is executed;
and sending the resource getting request to the server so that the server responds to the resource getting request.
Optionally, the indication information includes a selected image and/or attribute information of the selected image; the attribute information comprises identification and/or arrangement information; the arrangement information is used for indicating the display position of the image in the electronic resource package.
Optionally, the processor invokes a second instruction to perform the following steps:
analyzing the electronic resource packet sent by the server to obtain the target image and the at least one similar image; and displaying the electronic resource package, and displaying the target image and the at least one similar image in the electronic resource package.
Optionally, the processor invokes a second instruction to perform the following steps:
analyzing the electronic resource packet sent by the server to obtain attribute information of the target image and attribute information of the at least one similar image; acquiring the target image according to the attribute information of the target image, and acquiring the at least one similar image according to the attribute information of the at least one similar image; and displaying the electronic resource package, and displaying the target image and the at least one similar image according to the attribute information of the target image and the attribute information of the at least one similar image.
Optionally, if the attribute information includes arrangement information, the processor invokes a second instruction to perform the following steps:
arranging the target image and the at least one similar image to form an image matrix according to the arrangement information of the target image and the arrangement information of the at least one similar image; displaying an electronic resource package and displaying the image matrix in the electronic resource package.
An embodiment of the present invention provides a server, please refer to fig. 11, where the server includes: the processor 161, the network interface 164, and the storage device 163 are connected to each other via the bus 162.
A network interface 164, configured to perform communication connection with an external device, for example, perform communication connection with the first terminal and the second terminal, so as to receive the resource sharing request sent by the first terminal, and send the electronic resource package to the second terminal, and so on. The storage device 163 is coupled to the processor 161 for storing various software programs and/or sets of instructions. In particular implementations, storage 163 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The storage 163 may store an operating system (hereinafter referred to simply as a system), such as an embedded operating system like ANDROID, IOS, WINDOWS, or LINUX. The storage 163 may also store a network communication program that may be used to communicate with one or more additional devices, one or more terminal devices, and one or more network devices. The storage 163 may further include an image database including a plurality of images, from which the processor may retrieve at least one image similar to the target image.
In one embodiment, the storage 163 may also be used to store one or more program instructions; the processor 161 may be capable of executing a processing method of the electronic resource when the one or more program instructions are called, and specifically, the processor 161 is capable of executing a processing method of the electronic resource when the program instructions are called.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and the implementation and beneficial effects of the program for solving the problem may refer to the implementation and beneficial effects of the method for processing an electronic resource package described in fig. 3 and fig. 4, and repeated details are not repeated.
The above disclosure is intended to be illustrative of only some embodiments of the invention, and is not intended to limit the scope of the invention.

Claims (18)

1. A processing method of electronic resources is applied to a first terminal, and is characterized by comprising the following steps:
acquiring a target image for resource sharing;
generating a resource sharing request, wherein the resource sharing request carries the target image;
sending the resource sharing request to a server so that the server outputs an electronic resource package in response to the resource sharing request and responds to a resource getting request generated by performing a resource getting operation on the electronic resource package; the electronic resource package comprises the target image and at least one similar image of the target image; the resource getting request comprises indication information used for indicating any image selected from the electronic resource package when the resource getting operation is executed; if the selected image indicated by the indication information is the target image, allowing to obtain the electronic resource in the electronic resource package; and if the selected image indicated by the indication information is not the target image, the resource obtaining operation fails, and the electronic resource in the electronic resource package is not allowed to be obtained.
2. The method of claim 1, wherein the method further comprises:
detecting whether the target image is a valid image;
if yes, executing the step of generating the resource sharing request; and if not, outputting first prompt information, wherein the first prompt information is used for prompting to input the target image again.
3. The method of claim 2, wherein the detecting whether the target image is a valid image comprises:
acquiring contour information of a target object in the target image;
and if the contour information of the target object is matched with the preset contour information, determining that the target image is an effective image.
4. The method according to any one of claims 1 to 3, wherein the indication information includes a selection image or attribute information of the selection image;
the attribute information includes at least one of identification and arrangement information; the arrangement information is used for indicating the display position of the image in the electronic resource package.
5. A processing method of electronic resources is applied to a server, and is characterized by comprising the following steps:
receiving a resource sharing request of a first terminal, wherein the resource sharing request carries a target image for resource sharing;
acquiring at least one similar image of the target image;
outputting the electronic resource package to a second terminal so that the second terminal executes resource obtaining operation on the electronic resource package and returns a resource obtaining request; the electronic resource package comprises the target image and the at least one similar image; the resource getting request comprises indication information used for indicating any image selected from the electronic resource package when the resource getting operation is executed;
responding to the resource getting request returned by the second terminal;
if the selected image indicated by the indication information is the target image, allowing to obtain the electronic resource in the electronic resource package; and if the selected image indicated by the indication information is not the target image, the resource obtaining operation fails, and the electronic resource in the electronic resource package is not allowed to be obtained.
6. The method of claim 5, wherein said acquiring at least one similar image of said target image comprises:
querying a plurality of candidate images similar to the target image in an image database;
and selecting at least one similar image from the alternative images according to the sequence of similarity from high to low.
7. The method of claim 5, wherein outputting the electronic resource package to the second terminal comprises:
packaging the target image and the at least one similar image to generate an electronic resource package;
and sending the electronic resource package to a second terminal, enabling the second terminal to display the electronic resource package, and displaying the target image and the at least one similar image in the electronic resource package.
8. The method of claim 5, wherein outputting the electronic resource package to the second terminal comprises:
acquiring attribute information of the target image and attribute information of the at least one similar image;
packaging the attribute information of the target image and the attribute information of the at least one similar image to generate an electronic resource package;
and sending the electronic resource package to a second terminal, enabling the second terminal to display the electronic resource package, and displaying the target image and the at least one similar image in the electronic resource package according to the attribute information of the target image and the attribute information of the at least one similar image.
9. The method of claim 8, wherein if the attribute information includes arrangement information, the obtaining the attribute information of the target image and the attribute information of the at least one similar image comprises:
arranging the target image and the at least one similar image to obtain an image matrix;
acquiring the position of the target image in the image matrix as the arrangement information of the target image, and acquiring the position of the at least one similar image in the image matrix as the arrangement information of the at least one similar image.
10. The method according to any of claims 5-9, wherein said responding to the resource procurement request returned by the second terminal comprises:
judging whether the selected image is the target image or not according to the indication information in the resource getting request;
if yes, generating a resource receiving processing result;
and if not, sending second prompt information to the second terminal, wherein the second prompt information is used for indicating the second terminal to re-execute the resource getting operation so as to re-send the resource getting request.
11. The method of claim 10, wherein the method further comprises:
returning the resource getting processing result to the first terminal and the second terminal;
the resource procurement processing result comprises at least one of the following information: the electronic resource package performs the number of times of resource getting operation, the image selected when the resource getting operation is performed each time, the time for successfully performing the resource getting operation, and the electronic resource amount obtained by successfully performing the resource getting operation.
12. A processing method of electronic resources is applied to a second terminal, and is characterized in that the method comprises the following steps:
outputting an electronic resource package sent by a server, wherein the electronic resource package comprises a target image and at least one similar image of the target image;
if the resource getting operation executed on the electronic resource package is detected, generating a resource getting request, wherein the resource getting request comprises indication information used for indicating any image selected from the electronic resource package when the resource getting operation is executed;
sending the resource getting request to the server so that the server responds to the resource getting request;
if the selected image indicated by the indication information is the target image, allowing to obtain the electronic resource in the electronic resource package; and if the selected image indicated by the indication information is not the target image, the resource obtaining operation fails, and the electronic resources in the electronic resource package are not allowed to be obtained.
13. The method of claim 12, wherein outputting the electronic resource package sent by the server comprises:
analyzing the electronic resource packet sent by the server to obtain the target image and the at least one similar image;
and displaying the electronic resource package, and displaying the target image and the at least one similar image in the electronic resource package.
14. The method of claim 12, wherein outputting the electronic resource package sent by the server comprises:
analyzing the electronic resource packet sent by the server to obtain attribute information of the target image and attribute information of the at least one similar image;
acquiring the target image according to the attribute information of the target image, and acquiring the at least one similar image according to the attribute information of the at least one similar image;
and displaying the electronic resource package, and displaying the target image and the at least one similar image according to the attribute information of the target image and the attribute information of the at least one similar image.
15. The method of claim 14, wherein if the attribute information includes arrangement information, the displaying the target image and the at least one similar image according to the attribute information of the target image and the attribute information of the at least one similar image comprises:
arranging the target image and the at least one similar image to form an image matrix according to the arrangement information of the target image and the arrangement information of the at least one similar image;
displaying an electronic resource package and displaying the image matrix in the electronic resource package.
16. A terminal comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more first instructions adapted to be loaded by the processor and to perform a method of processing an electronic resource according to any one of claims 1-4; alternatively, the computer storage medium stores one or more second instructions adapted to be loaded by the processor and to perform the processing method of the electronic resource according to any of claims 12-15.
17. A server comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform a method of processing of an electronic resource according to any of claims 5-11.
18. A computer storage medium, characterized in that it stores one or more instructions adapted to be loaded by a processor and to perform a method of processing of an electronic resource according to any one of claims 1-15.
CN201910100368.8A 2019-01-31 2019-01-31 Electronic resource processing method, terminal, server and storage medium Active CN109754329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910100368.8A CN109754329B (en) 2019-01-31 2019-01-31 Electronic resource processing method, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910100368.8A CN109754329B (en) 2019-01-31 2019-01-31 Electronic resource processing method, terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN109754329A CN109754329A (en) 2019-05-14
CN109754329B true CN109754329B (en) 2022-12-20

Family

ID=66407364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910100368.8A Active CN109754329B (en) 2019-01-31 2019-01-31 Electronic resource processing method, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN109754329B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110555374A (en) * 2019-07-25 2019-12-10 深圳壹账通智能科技有限公司 resource sharing method and device, computer equipment and storage medium
CN110619513A (en) * 2019-09-11 2019-12-27 腾讯科技(深圳)有限公司 Electronic resource obtaining method, electronic resource distributing method and related equipment
CN112508617B (en) * 2020-12-14 2023-07-07 中国联合网络通信集团有限公司 User interaction processing method, device and system
CN115205718B (en) * 2022-09-19 2022-12-13 西安恒歌数码科技有限责任公司 Geographic information measuring system and measuring method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183410A (en) * 2015-08-13 2015-12-23 腾讯科技(北京)有限公司 Information presentation method, presentation server, social application client and system
CN105591885A (en) * 2016-01-21 2016-05-18 腾讯科技(深圳)有限公司 Resource sharing method and device
CN106204114A (en) * 2016-06-30 2016-12-07 刘永生 A kind of intelligent red packet distributing method based on recognition of face and device
JP2017158661A (en) * 2016-03-07 2017-09-14 株式会社ディ・ライト Game machine
CN108307102A (en) * 2017-06-16 2018-07-20 腾讯科技(深圳)有限公司 Method for information display, apparatus and system
CN108427868A (en) * 2017-02-15 2018-08-21 腾讯科技(深圳)有限公司 Verification method, system and the client of resource transmission object

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183410A (en) * 2015-08-13 2015-12-23 腾讯科技(北京)有限公司 Information presentation method, presentation server, social application client and system
CN105591885A (en) * 2016-01-21 2016-05-18 腾讯科技(深圳)有限公司 Resource sharing method and device
JP2017158661A (en) * 2016-03-07 2017-09-14 株式会社ディ・ライト Game machine
CN106204114A (en) * 2016-06-30 2016-12-07 刘永生 A kind of intelligent red packet distributing method based on recognition of face and device
CN108427868A (en) * 2017-02-15 2018-08-21 腾讯科技(深圳)有限公司 Verification method, system and the client of resource transmission object
CN108307102A (en) * 2017-06-16 2018-07-20 腾讯科技(深圳)有限公司 Method for information display, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络红包在广告传播中的应用研究;余晨薇;《中国优秀硕士学位论文全文数据库》;20180415(第4期);I141-206 *

Also Published As

Publication number Publication date
CN109754329A (en) 2019-05-14

Similar Documents

Publication Publication Date Title
CN109754329B (en) Electronic resource processing method, terminal, server and storage medium
TWI669634B (en) Method and device for assigning virtual objects based on augmented reality
US10065119B2 (en) Game accessing method and processing method, server, terminal, and system
CN111654473B (en) Virtual object distribution method and device based on augmented reality
CN109858215B (en) Resource obtaining, sharing and processing method, device, storage medium and equipment
CN108777806B (en) User identity recognition method, device and storage medium
CN111835531B (en) Session processing method, device, computer equipment and storage medium
CN106303599B (en) Information processing method, system and server
CN109428859B (en) Synchronous communication method, terminal and server
CN111160976A (en) Resource allocation method, device, electronic equipment and storage medium
CN110703913A (en) Object interaction method and device, storage medium and electronic device
CN113041611B (en) Virtual prop display method and device, electronic equipment and readable storage medium
WO2019210751A1 (en) Face retrieval method and apparatus, and server and storage medium
CN114071171B (en) Resource acquisition method, device, computer equipment and storage medium
CN113709022B (en) Message interaction method, device, equipment and storage medium
CN107172501A (en) Recommend methods of exhibiting and system in a kind of live room
CN111479119A (en) Method, device and system for collecting feedback information in live broadcast and storage medium
CN113996053A (en) Information synchronization method, device, computer equipment, storage medium and program product
CN112752153A (en) Video playing processing method, intelligent device and storage medium
CN112188223B (en) Live video playing method, device, equipment and medium
CN108958690B (en) Multi-screen interaction method and device, terminal equipment, server and storage medium
CN110619513A (en) Electronic resource obtaining method, electronic resource distributing method and related equipment
CN110232267A (en) Business card display methods, device, electronic equipment and storage medium
CN111182323B (en) Image processing method, device, client and medium
CN112333460B (en) Live broadcast management method, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant