CN108958579B - Red packet sending and receiving method and red packet sending and receiving device - Google Patents

Red packet sending and receiving method and red packet sending and receiving device Download PDF

Info

Publication number
CN108958579B
CN108958579B CN201810671164.5A CN201810671164A CN108958579B CN 108958579 B CN108958579 B CN 108958579B CN 201810671164 A CN201810671164 A CN 201810671164A CN 108958579 B CN108958579 B CN 108958579B
Authority
CN
China
Prior art keywords
red packet
input
carrier
search
picture
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
CN201810671164.5A
Other languages
Chinese (zh)
Other versions
CN108958579A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810671164.5A priority Critical patent/CN108958579B/en
Publication of CN108958579A publication Critical patent/CN108958579A/en
Application granted granted Critical
Publication of CN108958579B publication Critical patent/CN108958579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a red packet sending method and device, is applied to a first terminal, and relates to the technical field of communication. Wherein the method comprises the following steps: receiving a first input of a user; determining a red envelope carrier in response to the first input; receiving a second input of the user to the red packet carrier; in response to the second input, determining an insertion position of a red packet in the red packet carrier; hiding the information of the red envelope in the red envelope carrier according to the inserting position; and sending a target red packet carrier to a second terminal, wherein the target red packet carrier is the red packet carrier containing the information of the red packet. In the embodiment of the invention, after the subsequent receiver receives the target red packet carrier, in the process of searching the red packet on the target red packet carrier, the red packet hidden in the position can be obtained only if the searching position is matched with the inserting position, so that the diversity of red packet receiving and sending modes is increased.

Description

Red packet sending and receiving method and red packet sending and receiving device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for sending and receiving red packets.
Background
At present, many applications have the functions of sending and receiving the red envelope, and the red envelope is sent to friends or a friend circle to rob the red envelope, so that the communication and interaction among the friends are enhanced.
In the prior art, a user directly inputs the money of the red envelope and the like in the red envelope sending and receiving processes, clicks to send, and a receiver of the red envelope directly clicks a card with the red envelope to obtain the red envelope with corresponding rewards.
The inventor finds in the research process that the prior art proposal has the following disadvantages: because the sender of the red envelope directly inputs the amount of the red envelope and the like to generate the red envelope, and then the receiver of the red envelope directly clicks the card of the red envelope, the red envelope is robbed, and the sending and receiving modes of the red envelope are single.
Disclosure of Invention
The embodiment of the invention provides a red packet sending and receiving method and device, aiming at solving the problem of single red packet receiving and sending mode.
In a first aspect, an embodiment of the present invention provides a red packet sending method, applied to a first terminal, including:
receiving a first input of a user;
determining a red envelope carrier in response to the first input;
receiving a second input of the user to the red packet carrier;
in response to the second input, determining an insertion position of a red packet in the red packet carrier;
hiding the information of the red envelope in the red envelope carrier according to the inserting position;
and sending a target red packet carrier to a second terminal, wherein the target red packet carrier is the red packet carrier containing the information of the red packet.
In a second aspect, an embodiment of the present invention further provides a method for receiving a red packet, which is applied to a second terminal, and includes:
receiving a target red packet carrier sent by a first terminal, wherein the target red packet carrier comprises red packet information, and the red packet information is hidden in an insertion position of the target red packet carrier;
receiving a fourth input of the target red packet carrier by the user;
in response to the fourth input, determining a search position corresponding to the fourth input;
and receiving the red packet in the target red packet carrier under the condition that the searched position is matched with the inserting position.
In a third aspect, an embodiment of the present invention further provides a red packet sending apparatus, applied to a first terminal, including:
the first input receiving module is used for receiving a first input of a user;
a red packet carrier determining module for determining a red packet carrier in response to the first input;
the second input receiving module is used for receiving a second input of the user to the red packet carrier;
an insertion position determining module, configured to determine, in response to the second input, an insertion position of the red packet in the red packet carrier;
the red envelope hiding module is used for hiding the information of the red envelope in the red envelope carrier according to the inserting position;
and the sending module is used for sending a target red packet carrier to a second terminal, wherein the target red packet carrier is the red packet carrier containing the information of the red packet.
In a fourth aspect, an embodiment of the present invention further provides a red packet receiving apparatus, which is applied to a second terminal, and includes:
the target red packet carrier receiving module is used for receiving a target red packet carrier sent by a first terminal, wherein the target red packet carrier comprises information of a red packet, and the information of the red packet is hidden in an insertion position of the target red packet carrier;
the fourth input receiving module is used for receiving fourth input of the target red packet carrier by a user;
the searching position determining module is used for responding to the fourth input and determining a searching position corresponding to the fourth input;
and the red packet receiving module is used for receiving the red packet in the target red packet carrier under the condition that the searched position is matched with the inserting position.
In a fifth aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the red packet sending and receiving method according to the present invention are implemented.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the red packet sending and receiving method according to the present invention are implemented.
In the embodiment of the invention, in response to a first input of a user, a red packet carrier is determined; in response to a second input of the user to the red packet carrier, determining an insertion position of the red packet in the red packet carrier; hiding the red envelope information in the red envelope carrier according to the inserting position; and sending the target red packet carrier containing the red packet information to a second terminal. After receiving the target red packet carrier, a subsequent receiver can obtain the red packet hidden at the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of red packet receiving and sending modes is increased.
Drawings
Fig. 1 is a flowchart illustrating a red envelope sending method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a red envelope hidden control provided in a first embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a first embodiment of the present invention for receiving a second input to a red packet carrier;
fig. 4 is a schematic diagram illustrating that when the red packet carrier is a picture, the enlarged picture is used as the red packet carrier according to the first embodiment of the present invention;
FIG. 5 is a schematic diagram of a target red envelope carrier provided in the first embodiment of the invention;
fig. 6 is a schematic diagram illustrating that a red packet identifier is arranged on a target red packet carrier according to a first embodiment of the present invention;
fig. 7 is a flowchart illustrating a red envelope sending method according to a second embodiment of the present invention;
fig. 8 is a flowchart illustrating a red packet collecting method according to a third embodiment of the present invention;
fig. 9 is a schematic diagram illustrating that in the case that the searched position matches the insertion position, the red packet in the target red packet carrier is received according to the third embodiment of the present invention;
fig. 10 is a flowchart illustrating a red packet pickup method according to a fourth embodiment of the present invention;
fig. 11 is a block diagram illustrating a red packet transmitting apparatus according to an embodiment of the present invention;
fig. 12 is a block diagram illustrating another red packet transmitting apparatus according to an embodiment of the present invention;
fig. 13 is a block diagram showing a construction of a red packet collecting apparatus according to a sixth embodiment of the present invention;
fig. 14 is a block diagram showing another red packet collecting apparatus according to a sixth embodiment of the present invention;
fig. 15 is a schematic hardware structure diagram of a mobile terminal in 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 some, not all, embodiments of the present invention. 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.
Example one
Referring to fig. 1, a flowchart of a red packet sending method according to a first embodiment of the present invention is shown, where the red packet sending method is applied to a first terminal.
In the embodiment of the present invention, the first terminal may be a terminal capable of sending a red packet, and the first terminal may be a terminal installed with an application capable of sending a red packet. For example, a terminal installed with a WeChat application, a terminal in compliance with a Payment treasure application, a terminal installed with a nailing application, a terminal installed with a QQ application, and the like. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the present invention, the red packet sending method may specifically include the following steps:
step 101, receiving a first input of a user.
In the embodiment of the present invention, the first input of the user may be operations such as touching, clicking, dragging, sliding, and the like, which is not particularly limited in the embodiment of the present invention.
In a specific application, the first input operation of the user may be a selection operation for a red packet carrier, and in the embodiment of the present invention, the selection operation for the red packet carrier may be preset. Such as touch, click, drag, slide, etc., of the red packet carrier. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the present invention, the red packet carrier may be a picture, a video, an audio, or the like. For example, the picture may be a picture that the first terminal wants to share to the second terminal of the red envelope recipient. In the embodiment of the present invention, this is not particularly limited.
Step 102, responding to the first input, determining a red packet carrier.
In the embodiment of the present invention, when the first terminal receives the first input of the user in the chat window or the friend circle editing window of the application, the red envelope selection operation of the user is received, and the first terminal receives the red envelope selection operation, that is, the first input is received. And when the first terminal receives the first input, namely the first terminal receives the red packet carrier selection operation, responding to the first input and further determining the red packet carrier.
In the embodiment of the invention, when the first terminal receives the preset selection operation of the red packet carrier, namely receives the preset first input, the red packet carrier is determined according to the first input. For example, if the first terminal receives a red packet carrier selection operation according to a preset red packet carrier selection operation in a chat window of the wechat application, and the red packet carrier selection operation is applied to a picture, the picture can be used as a red packet carrier.
In this embodiment of the present invention, optionally, when the red packet carrier is a picture, the first terminal may further receive a first scaling operation for the picture. I.e. the above-mentioned picture zooming in or out operation. In the embodiment of the present invention, this is not particularly limited.
And 103, receiving a second input of the user to the red packet carrier.
In the embodiment of the present invention, optionally, after receiving the selection operation of the red packet carrier, a mode entry manner for hiding the red packet in the red packet carrier may be preset. This is not particularly limited in the embodiments of the present invention.
For example, a red envelope hiding control may be displayed at a preset position of a display interface of a red envelope carrier, and when the first terminal receives a preset operation for the control, it is determined that a mode for hiding the red envelope in the red envelope carrier is entered. Referring to fig. 2, fig. 2 is a schematic diagram illustrating setting of a red envelope hiding control. The control 111 in fig. 2 may be a control for hiding the red packet, in fig. 2, the determined red packet carrier is the room picture, and when the first terminal receives a preset operation for the control 111, the first terminal enters a mode for hiding the red packet in the room picture of the red packet carrier. In the embodiment of the present invention, this is not particularly limited.
Optionally, in the embodiment of the present invention, the red envelope hiding control may be located in an edit bar of the red envelope carrier, and the edit bar of the red envelope carrier may further include edit operation controls for cutting, zooming, and the like of the red envelope carrier.
In the embodiment of the present invention, the second input to the red packet carrier by the user may be an insertion position selection operation of the red packet. In the embodiment of the present invention, a position selecting operation on the red packet carrier may be preset, for example, a click or a touch on the red packet carrier may be performed, and this is not particularly limited in the embodiment of the present invention.
And 104, responding to the second input, and determining the inserting position of the red packet in the red packet carrier.
In the embodiment of the invention, when a second input of the user to the red packet carrier is received, namely an insertion position selection operation of the red packet is received, the insertion position of the red packet in the red packet carrier is determined in response to the second input.
In a specific application, the inserting position of the red packet can be determined after the inserting position of the red packet is received on the red packet carrier. For example, referring to FIG. 3, FIG. 3 shows a schematic diagram of receiving a second input to a red packet carrier. In fig. 3, the red envelope carrier is a house picture, and when a preset red envelope insertion position selection operation is received at a 112 position mark on the red envelope carrier house picture, the 112 position mark on the red envelope carrier house picture can be determined as the insertion position of the red envelope. If the pixel coordinate corresponding to the 112 mark on the house picture of the red packet carrier is (20,50), the red packet insertion position is the pixel coordinate (20,50) on the house picture.
In this embodiment of the present invention, optionally, when the red packet carrier is a picture, the first terminal may receive a first scaling operation for the picture; when a first terminal receives a first zooming operation aiming at the picture, responding to the first zooming operation, and displaying the picture after the first zooming operation; the step of determining the insertion position of the red packet in the red packet carrier may include: determining an insertion position of a red packet on the picture subjected to the first scaling operation.
That is, in the embodiment of the present invention, when the red packet carrier is a picture, if the first terminal receives the first zoom operation for the picture, the first terminal displays the picture after the first zoom operation in response to the first zoom operation. And after receiving the position selection operation on the picture after the first zooming operation, receiving the second input, and determining the insertion position of the red packet on the picture after the first zooming operation. That is, the picture after the first scaling operation may be used as a red packet carrier again.
For example, referring to fig. 4, fig. 4 is a schematic diagram illustrating that when the red packet carrier is a picture, the enlarged picture is taken as the red packet carrier. In fig. 4, the determined red packet carrier house picture is enlarged and then used as the red packet carrier. When a second input, namely a preset red packet insertion position selection operation is received, is received at the 1121 position mark on the amplified red packet carrier house picture, the 1121 position on the red packet carrier house picture can be determined as the insertion position of the red packet.
For example, when the red packet carrier is a picture, the picture contains more pixels, and if the picture is directly used as the red packet carrier, after the position selection operation is received, the insertion position of the red packet is determined, which may be a picture region, for example, the pixel coordinate of the picture region may be (20,50) for the upper left corner and (50,40) for the lower right corner, that is, the last determined insertion position of the red packet is a region defined by (20,50) for the upper left corner and (50,40) for the lower right corner. And the second terminal which subsequently receives the red packet carrier can acquire the hidden red packet in the region of the picture by matching the searched position with the demarcated region.
After receiving the zoom-in operation for the picture, the determined insertion position on the picture after the zoom-in operation may be a single pixel coordinate on the picture after the position selection operation is received on the picture after the zoom-in operation. For example, for the above example, for the picture, after receiving the zoom-in operation, the determined insertion position on the picture after the zoom-in operation may be: pixel point with coordinates (30, 30). And a second terminal for subsequently receiving the red packet carrier can acquire the hidden red packet on the pixel point of the picture only if the searched position is matched with the pixel point coordinate. And further, the searching detail degree is increased, and the safety of red packet receiving and sending is improved. Meanwhile, only if the searched position is matched with the pixel point coordinate, the red packet hidden on the pixel point of the picture can be acquired, and diversity and interestingness of red packet receiving and sending are further improved.
Step 105, hiding the information of the red envelope in the red envelope carrier according to the inserting position.
In the embodiment of the invention, the red packet represents a carrier which can be used for sending virtual articles, the virtual articles can be cash, credits, vouchers or equipment in online games, and the like, and the virtual articles can be packaged in the red packet and then sent in the form of the red packet. The red envelope amount represents the size of the virtual item enclosed in the red envelope, and illustratively, when the virtual item enclosed in the red envelope is cash, the red envelope amount represents the specific amount of the cash, when the virtual item enclosed in the red envelope is credit, the red envelope amount represents the specific number of points of the credit, and when the virtual item enclosed in the red envelope is a voucher, the red envelope amount represents the specific denomination of the voucher. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the invention, the red packet insertion operation aiming at the red packet carrier can be preset, and after the preset insertion operation aiming at the red packet is received, the red packet information is hidden at the insertion position.
In a specific application, the inserting operation of the red packet may include setting a name, a size, a blessing word, and the like of the red packet. In the embodiment of the present invention, this is not particularly limited.
In specific application, the red packet information such as the name, the size, the blessing message, the inserting position of the red packet and the like can be written into a configuration file according to a preset rule, a callback function is set at the inserting position of the red packet, and the configuration file written with the red packet information is associated with the inserting position of the red packet carrier. In the embodiment of the present invention, this is not particularly limited.
For example, if the red packet carrier is a picture, the insertion position of the red packet a is: the pixel coordinate is (20,50), and the red packet information may include a red packet name a, a size, a blessing message, an insertion position pixel coordinate of the red packet is (20,50), and the like.
In the embodiment of the invention, when the header file or the configuration file of the red packet carrier can receive the editing and the display characteristic of the red packet carrier is not changed after the editing, the red packet information can be directly written into the header file or the configuration file of the red packet carrier.
For example, if the red packet carrier is a picture, and when the picture is a picture in PNG format, the header file of the picture in PNG format includes R, G, B, A four channels, and when the data of the picture itself is not written in the a channel of the picture in PNG format, the red packet information including the name, size, blessing, and inserting position of the red packet may be written in the a channel of the picture in PNG format according to a preset sequence, that is, for the picture in PNG format, the header file may be directly used as the configuration file of the red packet information. In the embodiment of the present invention, this is not particularly limited.
It should be noted that, if the red packet information is directly written into the header file or the configuration file of the red packet carrier, during the writing process, a corresponding relationship between the insertion position of the red packet and the red packet information, such as the name, size, and blessing, of the red packet inserted at the insertion position can be established. And further the specific information of the red packet inserted to the insertion position can be determined by the insertion position.
In the embodiment of the present invention, when the header file or the configuration file of the red packet carrier is edited, and the display characteristic of the header file or the configuration file is changed, the red packet configuration file may be generated according to a preset rule, the red packet information may be written into the red packet configuration file according to a preset manner, a callback function may be set at an insertion position of the red packet, and the red packet configuration file may be associated with the red packet carrier. In the embodiment of the present invention, this is not particularly limited
For example, if the display characteristics of the header file or the configuration file of the red packet carrier are changed after receiving and editing, the red packet configuration file may be generated according to a preset rule, the red packet information may be written into the red packet configuration file according to a preset manner, a callback function may be set at an insertion position of the red packet, and the red packet configuration file may be associated with the red packet carrier. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the invention, if more than one red packet is inserted into the same red packet carrier, the red packet information of each insertion position can be written into the same red packet configuration file, and in the red packet configuration file, the corresponding relation between the insertion position and the red packet information such as the name, the size, the blessing words and the like of the red packet can be established. And further the specific information of the red packet inserted to the insertion position can be determined by the insertion position. In the embodiment of the present invention, this is not particularly limited.
For example, if the red packet carrier is a picture, 5 red packets are inserted into the picture, and the red packet information of the 5 red packets is respectively: if the inserting position of the red packet A is: pixel coordinates (20,50) with 5 yuan, blessing words with happy birthday, and the inserting position of the red packet B if: the pixel coordinate is (20,10), the size is 2 yuan, the blessing words are happy everyday, and the inserting position of the red envelope C is as follows: the pixel coordinates are (10,25), the size is 3 yuan, the blessing words are happy birthday, and the inserting positions of the red packet D are as follows: the pixel coordinate is (20,30), the size is 4 yuan, the blessing words are happy birthday, and the inserting position of the red envelope E is as follows: the pixel coordinate is (25,25), the size is 10 yuan, and the blessing words are happy birthday.
For this example, if the picture display attribute is changed after the header file or the configuration file of the picture is changed, the red packet information may be written into the red packet configuration file. The red packet configuration file written with the red packet information according to the preset rule may be: inserting position pixel coordinates (20,50), wherein the size of the red packet A is 5 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (20,10), the size of the red packet B is 2 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (10,25), the size of the red packet C is 3 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (20,30), the size of the red packet D is 4 yuan, and the blessing words are happy birthday; the pixel coordinates of the inserted position are (25,25), the red envelope E is 10 yuan, and the blessing words are happy birthday.
For the example, the corresponding relationship between the insertion position and the red packet information such as the name, the size, the blessing words, etc. of the red packet is established, and then the red packet corresponding to the insertion position can be matched through the insertion position.
For example, for the above example, if the picture display attribute is changed after the header file or the configuration file of the picture is changed, the red packet data may be written into the red packet configuration file according to the preset rule as follows: inserting position pixel coordinates (20,50), wherein the size of the red packet A is 5 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (20,10), the size of the red packet B is 2 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (10,25), the size of the red packet C is 3 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (20,30), the size of the red packet D is 4 yuan, and the blessing words are happy birthday; the pixel coordinates of the inserted position are (25,25), the red envelope E is 10 yuan, and the blessing words are happy birthday. The display attribute of the red envelope carrier, i.e. the picture, is not changed, which is equivalent to hiding the red envelope information at the insertion position of the red envelope carrier.
In the embodiment of the invention, the red packet information is written into a header file or a configuration file of a red packet carrier, or the red packet information is written into a red packet configuration file, a callback function is set at the insertion position of the red packet on the red packet carrier, and after the operation, the display attribute and the like of the red packet carrier are not changed, so that the red packet information is hidden from the insertion position of the red packet carrier.
And 106, sending a target red packet carrier to a second terminal, wherein the target red packet carrier is the red packet carrier containing the information of the red packet.
In the embodiment of the present invention, the second terminal may be a terminal capable of receiving and collecting the red packet application, for example, a terminal for a WeChat application, a terminal for a Payment treasure application, a terminal for a nail application, a terminal for a QQ application, and the like. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the present invention, the second terminal corresponds to the first terminal, the first terminal may be a sender of the red packet, and the second terminal may be a receiver of the red packet. For example, if the terminal X in the wechat application sends the target red packet carrier with hidden red packet information to the terminal Y of the wechat application, here, the terminal X in the wechat application may be the first terminal, and the terminal Y of the wechat application may be the second terminal.
In the embodiment of the invention, the red packet information is written into a header file or a configuration file of a red packet carrier, or the red packet information is written into a red packet configuration file, a callback function is set at the insertion position of the red packet on the red packet carrier, and after the operation, the display attribute and the like of the red packet carrier are not changed, so that the red packet information is hidden from the insertion position of the red packet carrier. And sending the target red packet carrier containing or hiding the red packet information to the second terminal.
For example, for the above example, the display attribute of the red packet carrier into which the red packet a, the red packet B, the red packet C, the red packet D, and the red packet E are inserted is not changed, and the target red packet carrier into which the red packet a, the red packet B, the red packet C, the red packet D, and the red packet E are inserted is transmitted to the second terminal.
And after receiving the red packet carrier, the second terminal can search the hidden red packet on the red packet carrier, and when the searched position is matched with the inserted position of the hidden red packet on the red packet carrier, the second terminal can acquire the red packet hidden in the inserted position.
For example, for the above example, if the second terminal receives the red packet carrier, and the searched position is the pixel coordinate (20,50) and matches the insertion position of the hidden red packet a in the red packet carrier, the second terminal may receive the red packet a with the size of 5 yuan and the blessing words of happy day. The second terminal can acquire the insertion position and the hidden red packet only if the search position is matched with the insertion position in the process of searching the hidden red packet on the red packet carrier, so that the diversity and the safety of red packet receiving and transmitting modes are improved; meanwhile, in the process of finding the red envelope, the red envelope carrier is appreciated, and the interestingness of the red envelope receiving and sending process is increased.
In the embodiment of the invention, referring to fig. 5, fig. 5 shows a schematic diagram of a target red packet carrier. In fig. 5, the red envelope carrier is a picture of the house. The second terminal can acquire the insertion position and the hidden red packet only if the search position is matched with the insertion position in the process of searching the hidden red packet on the red packet carrier, so that the diversity and the safety of red packet receiving and transmitting modes are improved; meanwhile, in the process of searching the hidden red packet on the picture of the house, the picture of the house is appreciated, and the interestingness of red packet receiving and sending is increased.
In the embodiment of the present invention, optionally, if the position selection operation is directed to the picture after the first scaling operation, the scaling prompt may be displayed on the picture in which the red packet is hidden, and then the picture with the scaling prompt is sent to the second terminal as the target red packet carrier, so as to prompt that the second terminal can scale the picture of the red packet carrier in the process of finding the red packet, thereby increasing the speed of finding the red packet.
In the embodiment of the present invention, optionally, before the target red packet carrier containing the red packet information is sent to the second terminal, a red packet identifier may be generated at a preset position of the target red packet carrier, where the red packet identifier is used to indicate that the red packet carrier hides the red packet. And then the red packet carrier with the red packet identifier is sent to the second terminal, and after the second terminal receives the red packet carrier, whether the red packet carrier carries the red packet identifier or not can be judged quickly according to whether the red packet carrier hides the red packet. In the embodiment of the present invention, this is not particularly limited.
For example, referring to fig. 6, fig. 6 shows a schematic diagram of red packet identification arranged on a target red packet carrier. In fig. 6, the red-envelope carrier is the house picture, and the red envelope is marked by an oval area indicated by 113.
In the embodiment of the invention, in response to a first input of a user, a red packet carrier is determined; in response to a second input of the user to the red packet carrier, determining an insertion position of the red packet in the red packet carrier; hiding the red envelope information in the red envelope carrier according to the inserting position; and sending the target red packet carrier containing the red packet information to a second terminal. After receiving the target red packet carrier, a subsequent receiver can obtain the red packet hidden at the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of red packet receiving and sending modes is increased.
Example two
Referring to fig. 7, a flowchart of a red packet sending method provided in the second embodiment of the present invention is shown, and is applied to a first terminal, where the method specifically includes the following steps:
step 201, a first input of a user is received.
In response to the first input, a red envelope carrier is determined, step 202.
Step 203, receiving a second input of the user to the red packet carrier.
In the embodiment of the present invention, reference may be made to the detailed descriptions of steps 101 to 103 in the first embodiment of the present invention for steps 201 to 203, which are not specifically limited in the embodiment of the present invention.
Step 204, when the red packet carrier is a picture and the second input is a pixel coordinate selection input, responding to the second input, and determining a first pixel coordinate corresponding to the second input as an insertion position of the red packet in the picture.
In this embodiment of the present invention, optionally, the second input may be a red packet insertion position selecting operation, where the red packet insertion position selecting operation may include: at least one of a pixel coordinate selection input and a frame number selection input.
Frame number selection input in the embodiment of the present invention, when the red packet carrier is a picture, the determination of the insertion position of the red packet may refer to the related description in the first embodiment of the present invention, and it should be noted that, when the red packet carrier is a picture, the second input may be a pixel coordinate selection input. That is, when the red packet carrier is a picture, the inserting position selecting operation of the red packet is the pixel coordinate selecting input on the picture. The pixel coordinate selection input on the picture can be a pixel coordinate corresponding to clicking, touching and the like on the picture. In the embodiment of the present invention, this is not particularly limited.
For example, if the red packet carrier is the picture 11, the second input to the red packet carrier may be a pixel coordinate selection input to the picture 11, and if the first pixel coordinate corresponding to the pixel coordinate selection input to the picture 11 is (20,50), the determined pixel coordinate selection input is (20, 50). The first pixel coordinate corresponding to the second input is (20, 50).
In the embodiment of the present invention, when the red packet carrier is a picture, the pixel coordinates may be selected and input, and the first pixel coordinate selected on the picture is determined as the insertion position of the red packet in the picture. That is, the first pixel coordinate corresponding to the second input is determined as the insertion position of the red packet in the picture.
Specifically, for the above example, if the first pixel coordinate corresponding to the second input is (20,50), that is, the first pixel coordinate corresponding to the selected pixel coordinate on the picture 11 is (20,50), the determined second input is determined, and the corresponding first pixel coordinate is (20,50), and the first pixel coordinate (20,50) is determined as the insertion position of the red packet in the picture.
Step 205, when the red packet carrier is a video, and the second input is a pixel coordinate selection input and a frame number selection input, determining, in response to the second input, a first frame number and a second pixel coordinate corresponding to the second input as an insertion position of the red packet in the video.
In an embodiment of the present invention, when the red packet carrier is a video, the second input may be a pixel selection input and a frame number selection input. Specifically, the selection input may be first selected for a frame number, and then the selection input of the pixel coordinate is received on the frame image corresponding to the frame number.
In a specific application, the frame number selection input may also be a click or a touch, the frame number selection input may specifically be a click or a touch of a progress bar of the video, and a frame number corresponding to a position where the progress bar is clicked or touched may be used as a first frame number corresponding to a second input. In the embodiment of the present invention, this is not particularly limited.
For example, if the red packet carrier is the video 12, if the preset frame number selection input for the video is a click input on the progress bar of the video, and if the frame number selection input on the progress bar of the video 12 corresponds to the frame number of the 20 th frame, then here, the first frame number determined in the video 12 is the 20 th frame for the frame number selection input of the video. That is, the first frame number corresponding to the second input is the 20 th frame.
In the embodiment of the present invention, after the first frame number is determined, the frame image corresponding to the first frame number is determined, a pixel coordinate selection input is received on the frame image corresponding to the first frame number, and a second pixel coordinate selected by the pixel coordinate selection input is determined on the frame image corresponding to the first frame number.
In a specific application, for the above example, if the first frame number determined in the video 12 is the 20 th frame, the pixel coordinate selection input is received in the frame image corresponding to the 20 th frame, and further the second pixel coordinate selected by the pixel coordinate selection input is determined in the frame image corresponding to the 20 th frame, and if the second pixel coordinate selected by the pixel coordinate selection input in the frame image corresponding to the 20 th frame is (30,35), the second pixel coordinate corresponding to the second input is (30, 35).
In the embodiment of the present invention, the first frame number and the second pixel coordinate are determined as the insertion position of the red packet in the video.
For example, in the above example, if the first frame number specified in the video 12 is the 20 th frame, the second pixel coordinate selected in the frame image corresponding to the 20 th frame is (30,35), and the first frame number: frame 20, and a second pixel coordinate of (30,35) together as the second input, determines the red packet insertion location in the video.
In the embodiment of the invention, when the red packet carrier is a video, after the second pixel coordinate and the first frame number are determined, the insertion position of the red packet is uniquely determined in the video.
Step 206, when the red packet carrier is an audio and the second input is a frame number selection input, determining a second frame number corresponding to the second input as an insertion position of the red packet in the audio in response to the second input.
In the implementation of the present invention, when the red packet carrier is an audio, the second input may be a frame number selection input, and similarly, the frame number selection input may also be a click or a touch, and the frame number selection input may specifically be a progress bar that clicks or touches the audio, and a frame number corresponding to a position where the progress bar is clicked or touched may be used as a second frame number corresponding to the second input. In the embodiment of the present invention, this is not particularly limited.
For example, if the red packet carrier is the audio 13, if the preset frame number selection input for the audio is a click on the progress bar of the audio, and if the frame number selection input on the progress bar of the audio 13 corresponds to a frame number of the 30 th frame, then here, for the second input of the audio, the second frame number determined in the audio 13 is the 30 th frame. That is, the second frame number corresponding to the second input is the 30 th frame.
In this embodiment of the present invention, when the red packet carrier is an audio, the second frame number is determined as an insertion position of the red packet in the audio.
For example, for the above example, if the red packet carrier is audio 13, the second frame number determined in the audio 13 for the second input of the audio is frame 30. The second frame may be numbered as frame 30 as the insertion position of the red packet in the audio.
Step 207, hiding the information of the red envelope in the red envelope carrier according to the inserting position.
In the embodiment of the present invention, step 207 may refer to the description of step 105 in the first embodiment of the present invention, and is not described herein again.
Step 208, receiving a third input from the user.
In this embodiment of the present invention, a third input of the user may be received, where the third input may be a setting operation for the maximum search number of the red packet, and this is not particularly limited in this embodiment of the present invention.
Step 209, setting the maximum search times of the red packet in response to the third input, wherein the maximum search times are the maximum search times of the user of each second terminal for the red packet.
In this embodiment of the present invention, after receiving the third input, the maximum search times of the red packet is set, where the maximum search times are the maximum search times of the user of each second terminal for the red packet.
In a specific application, for example, if the first terminal receives a red packet a with a size of 5 yuan for an insertion position pixel coordinate (20,50), and the blessing word is a happy red packet, if the maximum search time is set to 6 times, the user Y11 of a single second terminal, and for the insertion position pixel coordinate (20,50), the red packet a with a size of 5 yuan and the blessing word is a happy red packet, the maximum search time is only 6 times, if the insertion position pixel coordinate (20,50) is not found after 6 times of search, the user Y11 of the second terminal cannot search the red packet a any more, and the blessing word is a happy red packet.
In a specific application, a corresponding search area may be set for the red packet hidden in each insertion position, and when a subsequent search operation of the user of the second terminal on the red packet carrier is performed in the search area of a certain red packet, the search may be regarded as one search operation for the red packet. In the embodiment of the present invention, similarly, the search area corresponding to each red packet may be written into a header file or a configuration file of the red packet carrier as red packet information, or the search area corresponding to each red packet may be written into a red packet configuration file as red packet information. In the embodiment of the present invention, this is not particularly limited.
For example, for the above example, if the corresponding search area set for red packet a is an area with a distance of 3 pixel coordinates around its insertion position, and if the pixel coordinates (20,50) of the insertion position of red packet a, the search area set for red packet a may be the first circular area with the pixel coordinates (20,50) as the center and the distance of 3 pixel coordinates as the radius. When the user search position of the second terminal falls within the first circular area and on the circumference, it can be considered that one search operation of the user of the second terminal on the red packet a is received. When the number of times of searching in the first circular area by the user of the second terminal exceeds the maximum number of times of searching for the red packet by the user of each second terminal set by the red packet a, the operation of searching for the red packet a by the user of the second terminal can be ignored.
For example, if the first terminal transmits a red packet with a size of 5 elements and a blessing word of happy day to a group in which pixel coordinates (20,50) of an insertion position are inserted, the user of each second terminal in the group can search for the red packet at most 6 times. That is, the user of each second terminal can search for the red packet a at most 6 times on the first circular area and the circumference with the pixel coordinate (20,50) as the center and the 3-pixel coordinate distance as the radius. If the search position does not match the insertion position of the red packet a in the first circular area and the 6 searches on the circumference, the user of the second terminal cannot acquire the red packet a with the insertion position as the pixel coordinate (20, 50).
In the embodiment of the invention, the number of times of searching the red packet by the user of each second terminal can be limited by receiving the operation of setting the maximum number of times of searching the red packet, and further, the user of each second terminal needs to search selectively in the process of searching the red packet, and can not search blindly and infinitely, thereby increasing the safety and diversity of red packet receiving and transmitting. Meanwhile, only if the searched position is matched with the pixel point coordinate, the red packet hidden on the pixel point of the picture can be obtained, and the interestingness of receiving and sending the red packet is also increased.
In this embodiment of the present invention, the maximum search times of the red packet may be written into a header file or a configuration file of the red packet carrier, or written into a red packet configuration file, together with red packet information such as an insertion position of the red packet, a name of the red packet, a size of the red packet, and a blessing word, which is not specifically limited in this embodiment of the present invention.
Step 210, sending a target red packet carrier to a second terminal, wherein the target red packet carrier is the red packet carrier containing the information of the red packet.
In the embodiment of the present invention, step 210 may refer to the related description of step 106 in the first embodiment of the present invention, and is not described herein again.
In the embodiment of the invention, in response to a first input of a user, a red packet carrier is determined; in response to a second input of the user to the red packet carrier, determining an insertion position of the red packet in the red packet carrier; hiding the red envelope information in the red envelope carrier according to the inserting position; and sending the target red packet carrier containing the red packet information to a second terminal. After receiving the target red packet carrier, a subsequent receiver can obtain the red packet hidden at the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of red packet receiving and sending modes is increased.
EXAMPLE III
Referring to fig. 8, a flowchart of a red packet receiving method provided in the third embodiment of the present invention is shown, where the red packet receiving method is applied to the second terminal.
In the embodiment of the present invention, the second terminal may be a terminal capable of collecting the red packet, and may be a terminal in which an application capable of collecting the red packet is installed, for example, a terminal for a WeChat application, a terminal for a Payment treasure application, a terminal for a nail application, a terminal for a QQ application, and the like. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the present invention, the method for collecting red packets may specifically include the following steps:
step 301, receiving a target red packet carrier sent by a first terminal, where the target red packet carrier includes information of a red packet, and the information of the red packet is hidden in an insertion position of the target red packet carrier.
In the embodiment of the present invention, the target red packet carrier may be a picture, a video, an audio, and the like. For example, the picture may be a picture that the first terminal wants to share to the second terminal of the red envelope recipient. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the invention, the target red packet carrier contains information of the red packet. The information of the red envelope is hidden in the inserting position of the target red envelope carrier. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the present invention, the second terminal may receive the target red envelope carrier sent by the first terminal in the chat window or the friend circle of the application. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the invention, the red packet represents a carrier which can be used for sending virtual articles, the virtual articles can be cash, credits, vouchers or equipment in online games, and the like, and the virtual articles can be packaged in the red packet and then sent in the form of the red packet. The red envelope amount represents the size of the virtual item enclosed in the red envelope, and illustratively, when the virtual item enclosed in the red envelope is cash, the red envelope amount represents the specific amount of the cash, when the virtual item enclosed in the red envelope is credit, the red envelope amount represents the specific number of points of the credit, and when the virtual item enclosed in the red envelope is a voucher, the red envelope amount represents the specific denomination of the voucher. In the embodiment of the present invention, this is not particularly limited.
In this embodiment of the present invention, optionally, if the first terminal is provided with a red packet identifier on the target red packet carrier, the second terminal may be prompted, and the target red packet carrier hides the red packet. As shown in fig. 6, the reference numeral 113 may be the red packet identifier.
Step 302, receiving a fourth input of the target red packet carrier from the user.
In the embodiment of the present invention, the fourth input may be a red packet search operation on the target red packet carrier, and in the present invention, the fourth input may be preset, for example, a click, a touch, and the like on the target red packet carrier. In the embodiment of the present invention, this is not particularly limited.
Step 303, in response to the fourth input, determining a search position corresponding to the fourth input.
In the embodiment of the present invention, after the second terminal receives the target red packet carrier, when the fourth input for the target red packet carrier is received, that is, after the red packet search operation for the target red packet carrier is received, the search position of the red packet may be determined. In the embodiment of the present invention, a click position, a touch position, and the like on the red packet carrier may be used as the search position and the like corresponding to the fourth input. In the embodiment of the present invention, this is not particularly limited.
In this embodiment of the present invention, optionally, when the target red packet carrier is a picture, before the receiving a fourth input of the target red packet carrier by the user, the method may further include: receiving a second zoom operation for the picture; and responding to the second zooming operation, and displaying the picture after the second zooming operation. The determining the search position corresponding to the fourth input may include: and determining the corresponding search position of the fourth input on the picture after the second zooming operation.
That is, in the embodiment of the present invention, when the target red packet carrier is a picture, after receiving the picture, the second terminal may perform a second scaling operation on the picture, that is, scale the picture. That is, subsequently, the red packet is searched for on the picture after the second scaling operation.
For example, when the target red packet carrier is a picture, if the search operation is directly performed on the picture, after receiving the fourth input, the search position corresponding to the fourth input is determined, which may be a picture region, for example, the pixel coordinate of the picture region may be (20,50) for the upper left corner, and (50,40) for the lower right corner, that is, the finally determined search position of the red packet is a region defined by (20,50) for the upper left corner, and (50,40) for the lower right corner. If the pixel coordinate of the target red packet carrier at the upper left corner is (20,50), the pixel coordinate of the lower right corner is (50,40) defined region, and the red packet is hidden, the second terminal can obtain the hidden red packet in the region of the picture.
After receiving the zoom-in operation for the picture, the determined search position on the picture after the zoom-in operation may be a single pixel coordinate on the picture after the zoom-in operation and the fourth input are received. For example, for the above example, after receiving the zoom-in operation, the determined search position on the picture after the zoom-in operation may be: pixel point with coordinates (30, 30). If the pixel point with the red packet carrier coordinate of (30,30) is hidden with the red packet, the second terminal can obtain the hidden red packet on the pixel coordinate of the picture.
Optionally, if the first terminal is provided with a red packet carrier zoom prompt on the target red packet carrier, the second terminal may quickly determine that the target red packet carrier, that is, the picture, needs to be zoomed, and then searches for the hidden red packet of the picture, so that the search speed is faster and more accurate.
And the second terminal of the receiving target receiving the red packet carrier can acquire the hidden red packet on the pixel point of the picture only if the searched position is matched with the pixel point coordinate corresponding to the inserting position of the red packet. And further, the searching detail degree is increased, and the diversity and the safety of red packet receiving and sending are increased. Meanwhile, only if the searched position is matched with the pixel point coordinate, the red packet hidden on the pixel point of the picture can be obtained, and the interestingness of receiving and sending the red packet is also increased.
And 304, receiving the red packet in the target red packet carrier under the condition that the searched position is matched with the inserting position.
In the embodiment of the present invention, when the searched position matches with the insertion position of the red packet, the second terminal may receive the red packet hidden in the insertion position of the target red packet carrier.
In a specific application, after the fourth input is received on the red packet carrier, the red packet information of the hidden red packet on the target red packet carrier can be acquired. The red packet information may include: the position of the red envelope, the name, size, and message of the red envelope. In the embodiment of the present invention, this is not particularly limited.
For example, if the red packet information is written in a header file or a configuration file of a target red packet carrier, the red packet information of the hidden red packet in the red packet carrier is obtained according to a preset rule from the header file or the configuration file of the target red packet carrier.
For example, if the target red packet carrier is a picture, and when the picture is a picture in PNG format, if red packet information of a hidden red packet is written in the channel a of the header file of the picture in PNG format, red packet information such as an insertion position, a red packet name, a size, and a blessing word of the hidden red packet of the picture can be read from the channel a of the header file of the picture in PNG format according to a preset rule.
For another example, if the red packet information is written in a red packet configuration file, the red packet information of the hidden red packet in the target red packet carrier is obtained from the red packet configuration file according to a preset rule. For example, if the red packet information is written in the red packet configuration file, the red packet information read from the red packet configuration file may be as follows: inserting position pixel coordinates (20,50), wherein the size of the red packet A is 5 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (20,10), the size of the red packet B is 2 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (10,25), the size of the red packet C is 3 yuan, and the blessing words are happy birthday; the pixel coordinates of the insertion position are (20,30), the size of the red packet D is 4 yuan, and the blessing words are happy birthday; the pixel coordinates of the inserted position are (25,25), the red envelope E is 10 yuan, and the blessing words are happy birthday.
For the example, if the second terminal receives the red packet carrier, and the searched position is the pixel coordinate (20,50) and matches with the insertion position of the hidden red packet a in the red packet carrier, the second terminal may receive the red packet a with the size of 5 yuan and the blessing words of happy day. And the second terminal can acquire the red packet hidden on the pixel point of the picture only if the searched position is matched with the pixel point coordinate in the process of searching the hidden red packet on the red packet carrier, so that the diversity and the safety of red packet receiving and transmitting are improved. Meanwhile, in the process of finding the red packet, the red packet carrier is appreciated, and the interestingness of receiving and sending the red packet is increased.
Referring to fig. 9, fig. 9 is a schematic diagram showing that in the case where the searched position matches the insertion position, the red envelope in the target red envelope carrier is collected. In fig. 9, if the 114 marked position is used as the insertion position, the red packet is hidden, and when the searched position of the second terminal matches the insertion position marked by 114, the insertion position 114 marked position can be highlighted on the target red packet carrier, and a red packet prompt box shown as 115 can be popped up to prompt the second terminal to receive the hidden red packet at the insertion position 114 marked position.
For the above example, if the second terminal receives the target red packet carrier, and the search position is the pixel coordinate (10,20) and is not matched with the insertion position of the hidden red packet information in the target red packet carrier, under such a condition, the second terminal cannot receive any hidden red packet in the target red packet carrier, and can acquire the insertion position and the hidden red packet only if the search position is matched with the insertion position in the process of searching the hidden red packet on the target red packet carrier, so that the diversity and the security of the red packet transceiving process are increased; meanwhile, in the process of finding the red envelope, the red envelope carrier is appreciated, and the interestingness of the red envelope receiving and sending process is increased.
In the embodiment of the present invention, optionally, when determining whether the search position of the red packet matches the insertion position, the search position matching the insertion position may be further set as an area with a first distance from the insertion position. For example, if the search position matching the insertion position is set to the area range having the first distance of 1 or less from the insertion position when determining whether the search position of the red packet matches the insertion position, then, if the pixel coordinates (20,50) of the insertion position of the red packet a, the search operation received within the second circular area and on the circumference of the circle with the pixel coordinates (20,50) of the insertion position of the red packet a as the center of the circle and with the distance of 1 pixel coordinate as the radius may be regarded as the insertion operation matching the insertion position.
That is, in the above example, if the pixel coordinate (20,50) of the insertion position of the red packet a is detected, and if the search operation is received within the second circular area with the pixel coordinate (20,50) of the insertion position of the red packet a as the center and the distance of 1 pixel coordinate as the radius and on the circumference of the circle, the second terminal can receive the red packet a of the pixel coordinate (20,50) of the insertion position.
In the embodiment of the invention, a target red packet carrier sent by a first terminal is received, wherein the target red packet carrier comprises red packet information, and the red packet information is hidden in an insertion position of the target red packet carrier; and receiving a fourth input of the target red packet carrier by the user, determining a searching position corresponding to the fourth input, and receiving the red packet in the target red packet carrier under the condition that the searching position is matched with the inserting position. And after receiving the target red packet carrier containing the red packet information, the second terminal of the receiver of the target red packet carrier can obtain the red packet hidden in the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of receiving and sending the red packet is increased.
Example four
Referring to fig. 10, a flowchart of a red packet receiving method provided in the fourth embodiment of the present invention is shown, where the red packet receiving method is applied to a second terminal.
Step 401, receiving a target red packet carrier sent by a first terminal, where the target red packet carrier includes information of a red packet, and the information of the red packet is hidden in an insertion position of the target red packet carrier.
Step 402, receiving a fourth input of the target red packet carrier from the user.
In the embodiment of the present invention, reference may be made to specific descriptions of steps 301 to 302 in the third embodiment of the present invention in steps 401 to 402, which are not specifically limited in the embodiment of the present invention.
Step 403, when the target red packet carrier is a picture and the fourth input is a pixel coordinate search input, determining a third pixel coordinate corresponding to the fourth input as a search position corresponding to the fourth input in response to the fourth input.
In an embodiment of the present invention, the fourth input comprises: at least one of a pixel coordinate lookup input and a frame number lookup input. In the embodiment of the present invention, this is not particularly limited.
In this embodiment of the present invention, when the target red packet carrier is a picture, the determination of the search position of the red packet may refer to the relevant description in the third embodiment of the present invention, and it should be noted that, when the target red packet carrier is a picture, the fourth input may be a pixel coordinate search input. That is, when the target red packet carrier is a picture, the fourth input is a pixel coordinate search input on the picture. The pixel coordinate search input on the picture can be the pixel coordinate corresponding to the clicking, touching and other operations on the picture. In the embodiment of the present invention, this is not particularly limited.
For example, if the target red packet carrier is the picture 31, the fourth input to the target red packet carrier may be a pixel coordinate search input to the picture 31, and if the third pixel coordinate corresponding to the pixel coordinate search input to the picture 31 is (20,50), the determined pixel coordinate search input is (20,50) the third pixel coordinate selected from the picture. That is, the search position corresponding to the fourth input is (20, 50).
In the embodiment of the present invention, when the target red packet carrier is a picture, the pixel coordinate may be searched and input, and the third pixel coordinate determined on the picture is determined as the search position.
Specifically, in the above example, if the third pixel coordinate corresponding to the pixel coordinate search input on the picture 31 is (20,50), the determined pixel coordinate search input is performed, and if the third pixel coordinate determined on the picture is (20,50), the third pixel coordinate (20,50) is determined as the search position.
Step 404, when the target red packet carrier is a video and the fourth input is a pixel coordinate search input and a frame number search input, determining a third frame number and a fourth pixel coordinate corresponding to the fourth input as a search position corresponding to the fourth input in response to the fourth input.
In this embodiment of the present invention, when the target red packet carrier is a video, the fourth input may be a pixel search input and a frame number search input. Specifically, the frame number may be searched for input, and then the pixel coordinate search input is received on the frame image corresponding to the frame number.
In a specific application, the frame number search input may also be a click or a touch, and the frame number search input may specifically be a click or a touch of a progress bar of the video, and a frame number corresponding to a position where the progress bar is clicked or touched may be used as a third frame number determined by the frame number search input. In the embodiment of the present invention, this is not particularly limited.
For example, if the target red packet carrier is the video 32, if the preset frame number search input for the video is a frame number corresponding to a click position on a progress bar of the video, and if the frame number search input on the progress bar of the video 32 is a frame number corresponding to the click position, then here, the frame number search input for the video is a frame number 20, and a third frame number determined in the video 32 is a frame number 20.
In the embodiment of the present invention, after the third frame number is determined, the frame image corresponding to the third frame number is determined, a pixel coordinate search input is received on the frame image corresponding to the third frame number, and a fourth pixel coordinate selected by the pixel coordinate search input is determined on the frame image corresponding to the third frame number.
In a specific application, for the above example, if the third frame number determined in the video 32 is the 20 th frame, the pixel coordinate search input is received in the frame image corresponding to the 20 th frame, and further, the fourth pixel coordinate selected by the pixel coordinate search input is determined in the frame image corresponding to the 20 th frame, and if the fourth pixel coordinate selected by the pixel coordinate search input in the frame image corresponding to the 20 th frame is (30,35), here, the fourth pixel coordinate selected by the pixel coordinate search input in the frame image corresponding to the third frame number is (30, 35).
In the embodiment of the present invention, optionally, when the red packet carrier is a video, in a process of playing the video, if a fourth pixel coordinate is selected in a playing picture according to a preset pixel coordinate search mode, the playing picture is a frame image corresponding to the third frame number. I.e. the fourth pixel coordinate may be determined first and then the third frame number. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the present invention, the search position corresponding to the fourth input is determined by using the third frame number and the fourth pixel coordinate.
For example, in the above example, if the fourth pixel coordinate specified in the video 32 is (30,35) and the fourth pixel coordinate is in the frame image corresponding to the frame number 20, the third frame number: and the 20 th frame and the fourth pixel coordinate (30,35) are used together as the search position corresponding to the fourth input.
In the embodiment of the invention, when the target red packet carrier is a video, after the fourth pixel coordinate and the third frame number are determined, the finding position is uniquely determined in the video.
Step 405, when the target red packet carrier is an audio and the fourth input is a frame number search input, determining a fourth frame number corresponding to the fourth input as a search position corresponding to the fourth input in response to the fourth input.
In the implementation of the present invention, when the target red packet carrier is an audio, the fourth input may be a frame number search input, and similarly, the frame number search input may also be a click or a touch, and the frame number search input may specifically be a progress bar that clicks or touches the audio, and a frame number corresponding to a position where the progress bar is clicked or touched may be used as the fourth frame number determined by the frame number search input. In the embodiment of the present invention, this is not particularly limited.
For example, if the target red packet carrier is the audio 33, if the preset frame number search input for the audio is a click on the progress bar of the audio, and if the frame number search input on the progress bar of the audio 33 has a frame number corresponding to a click position as the 30 th frame, here, the frame number search input for the audio has a determined fourth frame number as the 30 th frame. That is, the fourth frame number corresponding to the fourth input is the 30 th frame of the audio.
In this embodiment of the present invention, when the target red packet carrier is an audio, the fourth frame number is determined as the search position of the red packet.
For example, for the above example, if the target red packet carrier is audio 33, the frame number of the audio is looked up and the fourth frame number determined in the audio 33 is frame 30. The fourth frame may be numbered as frame 30 as the search location corresponding to the fourth input.
Optionally, in an embodiment of the present invention, the method further includes: the red packet is provided with the maximum searching times of the user of each second terminal on the red packet; and determining the number of searching operations aiming at the red packet at the current moment.
In the embodiment of the invention, the hidden red packet on the target red packet carrier is provided with the maximum search times of the user of each second terminal for the red packet. The number of times of the search operation for the hidden red packet at the current time for the insertion location can be determined.
In the embodiment of the present invention, a corresponding search area may be set for the red packet hidden in each insertion location, and when a subsequent search operation of the user of the second terminal on the red packet carrier is within a search area of a certain red packet, the search may be regarded as one search operation for the red packet.
For example, if the corresponding search area set by the red packet a is an area whose distance is 3 pixel coordinate distances around its insertion position, and if the pixel coordinate (20,50) of the insertion position of the red packet a, the search area set by the red packet a may be a first circular area whose center is the pixel coordinate (20,50) and whose radius is 3 pixel coordinate distances. When the user of the second terminal finds that the position falls within the first circular area and on the circumference, it can be considered that one search operation of the user of the second terminal on the red packet a is received. When the number of times of searching in the first circular area by the user of the second terminal exceeds the maximum number of times of searching for the red packet by the user of each second terminal set by the red packet a, the operation of searching for the red packet a by the user of the second terminal can be ignored.
For the red packet a, when the user search position of the second terminal falls within the first circular area or on the circumference, a search operation of the user of the second terminal on the red packet a may be recorded. And determining the number of times of searching the red packet hidden for the insertion position within the first circular area or on the circumference as the current time.
For example, if the pixel coordinate (20,50) of the inserted position of the red packet a is set, the set search area corresponding to the red packet a may be a first circular area with the pixel coordinate (20,50) as the center and the 3-pixel coordinate distance as the radius. If the current time is within the first circular area or on the circumference, the number of search operations for the insertion position that have been received is 7, and when the current time is determined, the number of search operations for the red packet a hidden in the insertion position is 7.
Step 406, receiving the red packet in the target red packet carrier when the searched position matches the insertion position.
In the embodiment of the present invention, the step 406 may refer to the step 104 in the third embodiment, and it should be noted that, optionally, in the case that the search position matches the insertion position, the method may further include comparing the number of search operations with the maximum number of search operations.
In the embodiment of the present invention, when the search position matches the insertion position of the red packet, for the red packet hidden in the insertion position, the current time, the number of search operations corresponding to the current time, and the maximum number of search operations of the red packet hidden in the insertion position may be compared.
In the embodiment of the present invention, it may refer to the specific description in the third example, and details thereof are not repeated herein.
In this embodiment of the present invention, optionally, when the number of times of the search operation is less than or equal to the maximum number of times of search, the red packet in the target carrier is received.
In the embodiment of the present invention, when the search position matches the insertion position, and at the current time, the number of search times for the insertion position hidden red packet is less than or equal to the maximum number of search times set for the red packet, and then the second terminal user receives the red packet hidden at the insertion position.
For example, if the pixel coordinates (20,50) of the insertion position of the first terminal are, the red packet a has a size of 5 yuan, and the blessing word is a happy red packet, the first terminal sends the red packet a to the cluster, the maximum number of times of searching for the user of each second terminal set by the red packet a is 6 times, when the search position of the second terminal 21 matches the insertion position of the red packet a at the current time, if the number of times of searching for the red packet a by the second terminal 21 is 7 times, the number of times of searching for the red packet a by the second terminal 21 is greater than the maximum number of times of searching for the user of each second terminal set by the red packet a, the fourth input is ignored, and the second terminal 21 cannot receive the red packet a.
For another example, if the first terminal sends a red packet a with a size of 5 yuan to the insertion position pixel coordinates (20,50) and the blessing language is happy red packet, the red packet a is set to be 6 times, when the search position of the second terminal 21 matches the insertion position of the red packet a and the current time is, if the search time of the second terminal 21 for the red packet a is 4 times, the search time of the second terminal 21 for the red packet a is smaller than the maximum search time of the user of each second terminal set by the red packet a, and the second terminal 21 receives the red packet a.
In the embodiment of the invention, the number of times of searching the red packet by the user of each second terminal can be limited by receiving the operation of setting the maximum number of times of searching the red packet, and further, the user of each second terminal needs to search selectively in the process of searching the red packet, and can not search blindly and infinitely, thereby increasing the diversity and the safety of red packet receiving and transmitting. Meanwhile, in the process of finding the red envelope, the red envelope carrier is appreciated, and the interestingness of the red envelope receiving and sending process is increased.
In the embodiment of the invention, a target red packet carrier sent by a first terminal is received, wherein the target red packet carrier comprises red packet information, and the red packet information is hidden in an insertion position of the target red packet carrier; and receiving a fourth input of the target red packet carrier by the user, determining a searching position corresponding to the fourth input, and receiving the red packet in the target red packet carrier under the condition that the searching position is matched with the inserting position. And after receiving the target red packet carrier containing the red packet information, the second terminal of the receiver of the target red packet carrier can obtain the red packet hidden in the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of receiving and sending the red packet is increased.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the embodiments of the application.
EXAMPLE five
Referring to fig. 11, which is a block diagram of a red packet sending apparatus 500 according to a fifth embodiment of the present invention, where the red packet sending apparatus 500 is applied to a first terminal, and specifically includes:
a first input receiving module 501, configured to receive a first input of a user;
a red envelope carrier determining module 502 for determining a red envelope carrier in response to the first input;
a second input receiving module 503, configured to receive a second input to the red packet carrier by the user;
an insertion position determining module 504, configured to determine, in response to the second input, an insertion position of the red packet in the red packet carrier;
a red envelope hiding module 505, configured to hide information of the red envelope in the red envelope carrier according to the insertion position;
a sending module 508, configured to send a target red packet carrier to a second terminal, where the target red packet carrier is the red packet carrier that includes the information of the red packet.
Optionally, referring to fig. 12, on the basis of fig. 11, the red packet carrier is a picture, and the apparatus may further include:
a first zooming operation receiving module, configured to receive a first zooming operation for the picture;
the first display module is used for responding to the first zooming operation and displaying the picture after the first zooming operation;
the insertion position determining module 504 may include:
a first insertion position determining unit, configured to determine an insertion position of a red packet on the picture after the first scaling operation. Optionally, the apparatus may further include:
a third input receiving module 506, configured to receive a third input of the user;
a maximum search time setting receiving module 507, configured to set a maximum search time for the red packet in response to the third input, where the maximum search time is a maximum search time for the red packet by a user of each second terminal.
Optionally, the insertion position determining module 504 includes:
a second insertion position determining unit 5041, configured to determine, when the red packet carrier is a picture and the second input is a pixel coordinate selection input, in response to the second input, a first pixel coordinate corresponding to the second input as an insertion position of the red packet in the picture; alternatively, the first and second electrodes may be,
a third insertion position determining unit 5042, configured to determine, in response to the second input when the red packet carrier is a video and the second input is a pixel coordinate selection input and a frame number selection input, a first frame number and a second pixel coordinate corresponding to the second input as insertion positions of the red packet in the video; alternatively, the first and second electrodes may be,
a fourth insertion position determination unit 5043, configured to determine, when the red packet carrier is audio and the second input is a frame number selection input, a second frame number corresponding to the second input as an insertion position of the red packet in the audio in response to the second input.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the red packet sending device in the method embodiments of fig. 1 to fig. 7, and is not described here again to avoid repetition.
Thus, in an embodiment of the present invention, in response to a first input by a user, a red packet carrier is determined; in response to a second input of the user to the red packet carrier, determining an insertion position of the red packet in the red packet carrier; hiding the red envelope information in the red envelope carrier according to the inserting position; and sending the target red packet carrier containing the red packet information to a second terminal. After receiving the target red packet carrier, a subsequent receiver can obtain the red packet hidden at the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of red packet receiving and sending modes is increased.
EXAMPLE six
Referring to fig. 13, which is a block diagram of a red packet receiving device 600 according to a sixth embodiment of the present invention, where the red packet receiving device 600 is applied to a second client, specifically, the red packet receiving device may include:
a target red packet carrier receiving module 601, configured to receive a target red packet carrier sent by a first terminal, where the target red packet carrier includes information of a red packet, and the information of the red packet is hidden in an insertion position of the target red packet carrier;
a fourth input receiving module 602, configured to receive a fourth input of the target red packet carrier from the user;
a search position determining module 603, configured to determine, in response to the fourth input, a search position corresponding to the fourth input;
a red packet receiving module 604, configured to receive a red packet from the target red packet carrier when the searched position matches the insertion position.
Optionally, referring to fig. 14, on the basis of fig. 13, the red packet carrier is a picture, and the apparatus may further include:
a second zoom operation receiving module, configured to receive a second zoom operation for the picture;
the second display module is used for responding to the second zooming operation and displaying the picture after the second zooming operation;
the lookup location determination module 603 may include:
and the first search position determining unit is used for determining a corresponding search position of the fourth input on the picture after the second zooming operation.
Optionally, the search position determining module 603 may include:
a second search position determining unit 6031, configured to, when the target red packet carrier is a picture and the fourth input is a pixel coordinate search input, determine, in response to the fourth input, a third pixel coordinate corresponding to the fourth input as a search position corresponding to the fourth input; alternatively, the first and second electrodes may be,
a third search position determination unit 6032, configured to, when the target red packet carrier is a video and the fourth input is a pixel coordinate search input and a frame number search input, determine, in response to the fourth input, a third frame number and a fourth pixel coordinate corresponding to the fourth input as a search position corresponding to the fourth input; alternatively, the first and second electrodes may be,
a fourth search position determining unit 6033, configured to, when the target red packet carrier is an audio and the fourth input is a frame number search input, determine, in response to the fourth input, a fourth frame number corresponding to the fourth input as a search position corresponding to the fourth input.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the red packet receiving device in the method embodiments of fig. 8 to fig. 10, and for avoiding repetition, details are not described here again.
Thus, in the embodiment of the present invention, a target red packet carrier sent by a first terminal is received, where the target red packet carrier includes information of a red packet, and the information of the red packet is hidden in an insertion position of the target red packet carrier; and receiving a fourth input of the target red packet carrier by the user, determining a searching position corresponding to the fourth input, and receiving the red packet in the target red packet carrier under the condition that the searching position is matched with the inserting position. And after receiving the target red packet carrier containing the red packet information, the second terminal of the receiver of the target red packet carrier can obtain the red packet hidden in the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of receiving and sending the red packet is increased. Figure 15 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, a sound output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 15 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 710 is configured to control the user input unit 707 to receive a first input of a user;
determining a red envelope carrier in response to the first input;
controlling the user input unit 707 to receive a second input of the red packet carrier by the user;
in response to the second input, determining an insertion position of a red packet in the red packet carrier;
hiding the information of the red envelope in the red envelope carrier according to the inserting position;
and sending a target red packet carrier to a second terminal, wherein the target red packet carrier is the red packet carrier containing the information of the red packet.
In the embodiment of the invention, in response to a first input of a user, a red packet carrier is determined; in response to a second input of the user to the red packet carrier, determining an insertion position of the red packet in the red packet carrier; hiding the red envelope information in the red envelope carrier according to the inserting position; and sending the target red packet carrier containing the red packet information to a second terminal. After receiving the target red packet carrier, a subsequent receiver can obtain the red packet hidden at the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of red packet receiving and sending modes is increased.
The processor 710 is further configured to control the user input unit 707 to receive a target red packet bearer sent by the first terminal, where the target red packet bearer includes information of a red packet, and the information of the red packet is hidden in an insertion position of the target red packet bearer;
controlling the user input unit 707 to receive a fourth input of the target red packet carrier by the user;
in response to the fourth input, determining a search position corresponding to the fourth input;
and receiving the red packet in the target red packet carrier under the condition that the searched position is matched with the inserting position.
Receiving a target red packet carrier sent by a first terminal, wherein the target red packet carrier comprises red packet information, and the red packet information is hidden in an insertion position of the target red packet carrier; and receiving a fourth input of the target red packet carrier by the user, determining a searching position corresponding to the fourth input, and receiving the red packet in the target red packet carrier under the condition that the searching position is matched with the inserting position. And after receiving the target red packet carrier containing the red packet information, the second terminal of the receiver of the target red packet carrier can obtain the red packet hidden in the position only if the searching position is matched with the inserting position in the process of searching the red packet on the target red packet carrier, so that the diversity of receiving and sending the red packet is increased.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The sound output unit 703 may convert sound data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into a sound signal and output as sound. Also, the sound output unit 703 may also provide sound output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The sound output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive a sound or video signal. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sound, and may be capable of processing such sound into sound data. The processed voice data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 7061 or a backlight when the mobile terminal 700 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 15 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, a sound input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as voice data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the red packet sending and receiving method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
Based on the hardware structure of the mobile terminal, the following detailed description will be made of embodiments of the present invention.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the red packet sending and receiving method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A red packet sending method is applied to a first terminal, and is characterized by comprising the following steps:
receiving a first input of a user;
determining a red envelope carrier in response to the first input;
receiving a second input of the user to the red packet carrier;
in response to the second input, determining an insertion position of a red packet in the red packet carrier;
hiding the information of the red envelope in the red envelope carrier according to the inserting position;
sending a target red packet carrier to a second terminal, wherein the target red packet carrier is the red packet carrier containing the information of the red packet;
before the sending the target red packet carrier to the second terminal, the method further comprises:
receiving a third input by the user;
and responding to the third input, and setting the maximum search times of the red packet, wherein the maximum search times are the maximum search times of the user of each second terminal on the red packet.
2. The method of claim 1, wherein the red packet carrier is a picture, and before receiving the second input of the user to the red packet carrier, the method further comprises:
receiving a first zoom operation for the picture;
responding to the first zooming operation, and displaying the picture after the first zooming operation;
the determining the insertion position of the red packet in the red packet carrier comprises:
determining an insertion position of a red packet on the picture subjected to the first scaling operation.
3. The method of claim 1, wherein said determining an insertion position of a red packet in said red packet carrier in response to said second input comprises:
when the red packet carrier is a picture and the second input is a pixel coordinate selection input, responding to the second input, and determining a first pixel coordinate corresponding to the second input as an insertion position of the red packet in the picture; alternatively, the first and second electrodes may be,
when the red packet carrier is a video, the second input is a pixel coordinate selection input and a frame number selection input, responding to the second input, and determining a first frame number and a second pixel coordinate corresponding to the second input as the insertion position of the red packet in the video; alternatively, the first and second electrodes may be,
when the red packet carrier is audio and the second input is a frame number selection input, responding to the second input, and determining a second frame number corresponding to the second input as an insertion position of the red packet in the audio.
4. A red packet receiving method is applied to a second terminal, and is characterized by comprising the following steps:
receiving a target red packet carrier sent by a first terminal, wherein the target red packet carrier comprises red packet information, and the red packet information is hidden in an insertion position of the target red packet carrier;
receiving a fourth input of the target red packet carrier by the user;
in response to the fourth input, determining a search position corresponding to the fourth input;
determining the current time and the number of searching operations aiming at a red packet at an insertion position, wherein the red packet is provided with the maximum number of searching operations of a user of each second terminal on the red packet;
and receiving the red packet in the target red packet carrier under the condition that the search position is matched with the insertion position and the search operation times are less than or equal to the maximum search times.
5. The method according to claim 4, wherein the target red packet carrier is a picture, and before receiving a fourth input from the user to the target red packet carrier, the method further comprises:
receiving a second zoom operation for the picture;
responding to the second zooming operation, and displaying the picture after the second zooming operation;
the determining the search position corresponding to the fourth input includes:
and determining the corresponding search position of the fourth input on the picture after the second zooming operation.
6. The method of claim 4, wherein determining, in response to the fourth input, a lookup location corresponding to the fourth input comprises:
when the target red packet carrier is a picture and the fourth input is a pixel coordinate search input, responding to the fourth input, and determining a third pixel coordinate corresponding to the fourth input as a search position corresponding to the fourth input; alternatively, the first and second electrodes may be,
when the target red packet carrier is a video and the fourth input is a pixel coordinate search input and a frame number search input, responding to the fourth input, and determining a third frame number and a fourth pixel coordinate corresponding to the fourth input as a search position corresponding to the fourth input; alternatively, the first and second electrodes may be,
when the target red packet carrier is audio and the fourth input is a frame number search input, determining a fourth frame number corresponding to the fourth input as a search position corresponding to the fourth input in response to the fourth input.
7. A red packet sending device applied to a first terminal, the device comprising:
the first input receiving module is used for receiving a first input of a user;
a red packet carrier determining module for determining a red packet carrier in response to the first input;
the second input receiving module is used for receiving a second input of the user to the red packet carrier;
an insertion position determining module, configured to determine, in response to the second input, an insertion position of the red packet in the red packet carrier;
the red envelope hiding module is used for hiding the information of the red envelope in the red envelope carrier according to the inserting position;
the sending module is used for sending a target red packet carrier to a second terminal, wherein the target red packet carrier is the red packet carrier containing the information of the red packet;
further comprising:
a third input receiving module, configured to receive a third input of the user;
and the maximum search time setting receiving module is used for responding to the third input and setting the maximum search time of the red packet, wherein the maximum search time is the maximum search time of the user of each second terminal for the red packet.
8. The apparatus of claim 7, wherein the red packet carrier is a picture, further comprising:
a first zooming operation receiving module, configured to receive a first zooming operation for the picture;
the first display module is used for responding to the first zooming operation and displaying the picture after the first zooming operation;
the insertion position determination module includes:
a first insertion position determining unit, configured to determine an insertion position of a red packet on the picture after the first scaling operation.
9. The apparatus of claim 7, wherein the insertion location determining module comprises:
a second insertion position determining unit, configured to determine, in response to a second input when the red packet carrier is a picture and the second input is a pixel coordinate selection input, a first pixel coordinate corresponding to the second input as an insertion position of the red packet in the picture; alternatively, the first and second electrodes may be,
a third insertion position determining unit, configured to, when the red packet carrier is a video, and the second input is a pixel coordinate selection input and a frame number selection input, determine, in response to the second input, a first frame number and a second pixel coordinate corresponding to the second input as insertion positions of the red packet in the video; alternatively, the first and second electrodes may be,
and the fourth insertion position determining unit is used for responding to the second input when the red packet carrier is an audio and the second input is a frame number selection input, and determining a second frame number corresponding to the second input as the insertion position of the red packet in the audio.
10. The utility model provides a red packet collection device is applied to second terminal, its characterized in that, the device includes:
the target red packet carrier receiving module is used for receiving a target red packet carrier sent by a first terminal, wherein the target red packet carrier comprises information of a red packet, and the information of the red packet is hidden in an insertion position of the target red packet carrier;
the fourth input receiving module is used for receiving fourth input of the target red packet carrier by a user;
the searching position determining module is used for responding to the fourth input and determining a searching position corresponding to the fourth input;
the red packet receiving module is used for determining the current time and the searching operation times of the red packet at the insertion position, wherein the red packet is provided with the maximum searching times of the user of each second terminal on the red packet; and receiving the red packet in the target red packet carrier under the condition that the search position is matched with the insertion position and the search operation times are less than or equal to the maximum search times.
11. The apparatus of claim 10, wherein the red packet carrier is a picture, further comprising:
a second zoom operation receiving module, configured to receive a second zoom operation for the picture;
the second display module is used for responding to the second zooming operation and displaying the picture after the second zooming operation;
the lookup location determination module includes:
and the first search position determining unit is used for determining a corresponding search position of the fourth input on the picture after the second zooming operation.
12. The apparatus of claim 10, wherein the lookup location determination module comprises:
a second search position determining unit, configured to, when the target red packet carrier is a picture and the fourth input is a pixel coordinate search input, determine, in response to the fourth input, a third pixel coordinate corresponding to the fourth input as a search position corresponding to the fourth input; alternatively, the first and second electrodes may be,
a third searching position determining unit, configured to determine, in response to a fourth input when the target red packet carrier is a video and the fourth input is a pixel coordinate searching input and a frame number searching input, a third frame number and a fourth pixel coordinate corresponding to the fourth input as a searching position corresponding to the fourth input; alternatively, the first and second electrodes may be,
and the fourth search position determining unit is used for responding to the fourth input when the target red packet carrier is an audio frequency and the fourth input is a frame number search input, and determining a fourth frame number corresponding to the fourth input as a search position corresponding to the fourth input.
CN201810671164.5A 2018-06-26 2018-06-26 Red packet sending and receiving method and red packet sending and receiving device Active CN108958579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810671164.5A CN108958579B (en) 2018-06-26 2018-06-26 Red packet sending and receiving method and red packet sending and receiving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810671164.5A CN108958579B (en) 2018-06-26 2018-06-26 Red packet sending and receiving method and red packet sending and receiving device

Publications (2)

Publication Number Publication Date
CN108958579A CN108958579A (en) 2018-12-07
CN108958579B true CN108958579B (en) 2020-09-25

Family

ID=64486889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810671164.5A Active CN108958579B (en) 2018-06-26 2018-06-26 Red packet sending and receiving method and red packet sending and receiving device

Country Status (1)

Country Link
CN (1) CN108958579B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602534B (en) * 2019-09-23 2022-02-11 咪咕文化科技有限公司 Information processing method and device and computer readable storage medium
CN113014989A (en) * 2021-02-26 2021-06-22 拉扎斯网络科技(上海)有限公司 Video interaction method, electronic device and computer-readable storage medium
CN113407093B (en) * 2021-06-21 2022-05-20 珠海格力电器股份有限公司 Electronic welfare issuing method, device, storage medium and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818459A (en) * 2017-10-30 2018-03-20 努比亚技术有限公司 Red packet sending method, terminal and storage medium based on augmented reality
CN107979525A (en) * 2017-10-11 2018-05-01 上海掌门科技有限公司 A kind of red packet distribution method, equipment and medium
CN108446153A (en) * 2018-02-11 2018-08-24 维沃移动通信有限公司 A kind of method and terminal of control e-sourcing

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981712B (en) * 2012-11-25 2016-07-13 上海量明科技发展有限公司 The control method of interaction frame and client in instant messaging interactive interface
CN104602029A (en) * 2014-08-27 2015-05-06 腾讯科技(北京)有限公司 Online video file generating method and device
EP3213224A1 (en) * 2014-10-27 2017-09-06 Identifor Inc. Identifying an individual's abilities, skills and interests through gaming data analytics
CN106484416B (en) * 2016-09-30 2021-02-05 腾讯科技(北京)有限公司 Information processing method and terminal
CN106603840A (en) * 2016-12-07 2017-04-26 北京奇虎科技有限公司 Audio data processing method and device based on mobile terminal
CN111899003A (en) * 2016-12-13 2020-11-06 创新先进技术有限公司 Virtual object distribution method and device based on augmented reality
CN108400925B (en) * 2017-02-08 2021-04-09 阿里巴巴集团控股有限公司 Instant messaging message reminding method and instant messaging client
CN106850411A (en) * 2017-02-17 2017-06-13 河源市行聊智能科技有限公司 A kind of implementation method of voice red packet and its realize system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107979525A (en) * 2017-10-11 2018-05-01 上海掌门科技有限公司 A kind of red packet distribution method, equipment and medium
CN107818459A (en) * 2017-10-30 2018-03-20 努比亚技术有限公司 Red packet sending method, terminal and storage medium based on augmented reality
CN108446153A (en) * 2018-02-11 2018-08-24 维沃移动通信有限公司 A kind of method and terminal of control e-sourcing

Also Published As

Publication number Publication date
CN108958579A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN108536365B (en) Image sharing method and terminal
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN108234289B (en) Message display method and device and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN107846352B (en) Information display method and mobile terminal
WO2019120192A1 (en) Method for editing text, and mobile device
CN109412932B (en) Screen capturing method and terminal
CN110674662A (en) Scanning method and terminal equipment
CN110618969B (en) Icon display method and electronic equipment
CN108984066B (en) Application icon display method and mobile terminal
CN108646960B (en) File processing method and flexible screen terminal
CN109753202B (en) Screen capturing method and mobile terminal
CN111064654A (en) Message display method and electronic equipment
CN108958579B (en) Red packet sending and receiving method and red packet sending and receiving device
CN109189303B (en) Text editing method and mobile terminal
CN111124223A (en) Application interface switching method and electronic equipment
CN108510267B (en) Account information acquisition method and mobile terminal
CN107728920B (en) Copying method and mobile terminal
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN110287719B (en) File encryption method and mobile terminal
CN109669656B (en) Information display method and terminal equipment
CN111061446A (en) Display method and electronic equipment
CN107908329B (en) Application icon management method and mobile terminal
CN108491143B (en) Object movement control method and mobile terminal

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