CN110912801A - Method, system and terminal device for detecting electronic red packet - Google Patents

Method, system and terminal device for detecting electronic red packet Download PDF

Info

Publication number
CN110912801A
CN110912801A CN201811080635.1A CN201811080635A CN110912801A CN 110912801 A CN110912801 A CN 110912801A CN 201811080635 A CN201811080635 A CN 201811080635A CN 110912801 A CN110912801 A CN 110912801A
Authority
CN
China
Prior art keywords
picture
electronic red
red packet
detecting
information
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.)
Granted
Application number
CN201811080635.1A
Other languages
Chinese (zh)
Other versions
CN110912801B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811080635.1A priority Critical patent/CN110912801B/en
Publication of CN110912801A publication Critical patent/CN110912801A/en
Application granted granted Critical
Publication of CN110912801B publication Critical patent/CN110912801B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • 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
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Multimedia (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is suitable for the technical field of communication, and provides a method, a system and a terminal device for detecting an electronic red packet, wherein the method comprises the following steps: when a new instant communication message is received, detecting whether the instant communication message comprises a picture or not; when the instant communication message comprises a picture, obtaining picture information of the picture; sequentially detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture according to a preset priority order so as to judge whether the picture is the electronic red packet picture; and when the picture is the electronic red packet picture, prompting that the electronic red packet is detected. The embodiment of the application can quickly and effectively detect the new electronic red envelope and specially send the electronic red envelope prompt, and can effectively improve the red envelope grabbing speed of a user and the probability of the user finding the electronic red envelope message.

Description

Method, system and terminal device for detecting electronic red packet
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a method, a system, and a terminal device for detecting an electronic red packet.
Background
Terminal devices such as mobile phones, tablet computers, and personal digital assistants are popular among users because they have a variety of functions such as communication, multimedia data interaction, and games. The user can download and install other various functional software in the terminal equipment according to actual needs, for example, the software with the functions of instant messaging, electronic payment and electronic red packet, such as WeChat, Paibao, QQ, and the like, provides convenience for daily payment and fund exchange requirements of people.
However, the existing software with the electronic red packet function has the same mechanism for pushing the common message and the electronic red packet message, so that a user cannot get the electronic red packet in time and easily ignores the electronic red packet message.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, a system, and a terminal device for detecting an electronic red packet, so as to solve the problems that a user cannot timely grab an electronic red packet and easily ignores the electronic red packet message due to the fact that the existing software with an electronic red packet function pushes a common message and the electronic red packet message has the same pushing mechanism.
A first aspect of an embodiment of the present application provides a method for detecting an electronic red packet, including:
when a new instant communication message is received, detecting whether the instant communication message comprises a picture or not;
when the instant communication message comprises a picture, obtaining picture information of the picture;
sequentially detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture according to a preset priority order so as to judge whether the picture is the electronic red packet picture;
and when the picture is the electronic red packet picture, prompting that the electronic red packet is detected.
A second aspect of an embodiment of the present application provides a system for detecting an electronic red packet, including:
the image detection module is used for detecting whether the instant communication message comprises an image or not when a new instant communication message is received;
the acquisition module is used for acquiring the picture information of the picture when the instant communication message comprises the picture;
the judging module is used for sequentially detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture according to a preset priority order so as to judge whether the picture is the electronic red packet picture;
and the prompting module is used for prompting that the electronic red packet is detected when the picture is the electronic red packet picture.
A third aspect of the embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the above-described method.
The embodiment of the application detects whether the instant messaging message comprises a picture or not by receiving a new instant messaging message, acquires the picture information of the picture when the instant messaging message comprises the picture, and then detects the picture information of the picture and the picture information of the electronic red packet picture in sequence according to the preset priority order so as to judge whether the picture is the electronic red packet picture or not, and when the picture is the electronic red packet picture, the electronic red packet is detected by prompting, the new electronic red packet can be rapidly and effectively detected, the electronic red packet is specially sent out for prompting, the red packet robbing speed of a user can be effectively improved, and the probability that the user sees the electronic red packet message is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for detecting an electronic red packet according to an embodiment of the present application;
fig. 2 is a schematic operation flow diagram of an electronic red envelope application provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an electronic red envelope picture provided in an embodiment of the present application;
FIG. 4 is a schematic flowchart of a method for detecting an electronic red envelope according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an electronic red envelope prompt interface provided in an embodiment of the present application;
fig. 6 is a schematic flowchart of a method for detecting an electronic red packet according to a second embodiment of the present application;
fig. 7 is a schematic operation flow diagram of an electronic red envelope application provided in the second embodiment of the present application;
fig. 8 is a schematic structural diagram of a system for detecting an electronic red packet according to a third embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, product, or device that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, product, or device. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
Example one
The embodiment provides a method for detecting an electronic red packet, which is applied to mobile terminals such as mobile phones, tablet computers, personal digital assistants and the like, and also applied to computing devices such as desktop computers, notebooks, palm computers and the like which can run instant messaging software and receive instant messaging messages.
In a specific application, the instant messaging software is software for realizing online chat and communication by an instant messaging technology, for example, WeChat, QQ, Baidu HI, Skype, Gtalk, Xinlang UC, MSN, microblog, nailing, Paibao, and the like.
In one embodiment, the method for detecting the electronic red packet is applied to an Android (Android) terminal.
As shown in fig. 1, the method for detecting an electronic red packet provided by this embodiment includes:
step S101, when a new instant communication message is received, whether the instant communication message comprises a picture is detected.
In this embodiment, the instant messaging message refers to an instant messaging message received and sent by instant messaging software capable of receiving and generating an electronic red packet.
In a specific application, the instant messaging message usually includes various types of messages such as expressions, pictures, videos, audios, characters, electronic red packets, character pictures and the like, and when the electronic red packet message is generated, the electronic red packet picture is updated by the electronic red packet application carried by the instant messaging software, so that whether the instant messaging message is the electronic red packet message can be preliminarily judged by detecting whether the instant messaging message includes the picture.
In one embodiment, step S101 includes:
step S1011, when a new instant communication message is received, detecting a picture updating operation;
step S1012, when the picture updating operation is detected, determining that the instant messaging message includes a picture.
In one embodiment, step S1011 includes:
when a new instant communication message is received, detecting whether the imageview control is started to operate or not;
and when the imageview control starts to run, judging that the picture updating operation is detected.
In a specific application, typical instant messaging software such as WeChat, after an instant messaging message (WeChat message) received by an electronic red packet application of the instant messaging software is the electronic red packet message, a push process, activitythread, listview, imageview, bitmap, and an electronic red packet manager are sequentially started and executed to finally generate the electronic red packet. The push process is used for pushing messages; activitythread is the main thread (UI thread) of the android application; the listview (list view) is a commonly used control in the android system, and can display data in a list form and display elements contained in content to be displayed in the list form; the main function of imageview is to display pictures, can be adapted to any layout, enables setting of aspect ratio, maximum height, maximum width of the displayed pictures, and can provide scaling and shading operations; the Bitmap is one of the most important classes for image processing in the android system, can acquire information of an image file, performs operations such as image cutting, rotation and scaling, and can save the image file in a specified format; the electronic red envelope manager is used for generating the electronic red envelope message after the electronic red envelope picture is generated.
As shown in fig. 2, an exemplary operation flow diagram illustrating an electronic red packet application generating an electronic red packet is shown, where the operation flow is sequentially electronic red packet message (1. receive electronic red packet message) → push process (2.notifyrece, message push) → activitythread (3.activitythread, activitythread thread to red packet manager, and a detection window operation is performed between the electronic red packet message and the red packet manager, that is, a UI (user interface) thread) → listview (4. obtaiview, detection message update) → imageview (5. updatable view, update red packet thumbnail) → bitmap (6.CheckLM, check red packet thumbnail feature) → electronic red packet manager (electronic red packet acceleration).
In the specific application, the imageview control in the process of generating the electronic red packet by the electronic red packet application is monitored, whether the imageview control starts to operate or not is detected, and therefore the picture updating operation can be timely and effectively confirmed and detected when the situation that the imageview control starts to operate is detected.
Step S102, when the instant communication message comprises a picture, obtaining picture information of the picture.
In a specific application, the picture information refers to image characteristic attributes such as picture size, color, layout and the like.
In one embodiment, the picture information includes text information, a picture size, a color of a pixel, an RGB value of a pixel, a distribution region of different color pixels, and an area of the distribution region of different color pixels.
And S103, sequentially detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture according to a preset priority order so as to judge whether the picture is the electronic red packet picture.
In a specific application, the picture included in the electronic red packet message is specifically an electronic red packet picture, and usually, when the electronic red packet message is received, the electronic red packet picture in the electronic red packet picture is updated, so that whether the received instant messaging message is the electronic red packet message can be further judged by detecting whether the picture of the new instant messaging message is the electronic red packet picture.
In a specific application, the picture information of the electronic red packet picture displayed by the specific version of the instant messaging software and the specific model of the terminal is usually fixed, the picture information usually includes the picture size (the pixel value, the length and the width of the picture), the color of the pixel (for example, the color of the WeChat electronic red packet picture includes red, yellow and orange), the RGB value of the pixel (determined by the version of the instant messaging software and the model and the display parameters of the terminal), the distribution area of the different color pixels (for example, the area of the WeChat electronic red packet picture where the orange pixel is located and the area of the white pixel are located side by side, the area of the WeChat red packet picture where the yellow pixel is located is distributed in the center of the area of the red pixel, and the area of the yellow pixel is also distributed in the center of the area of the orange pixel) and the area of the distribution area of the different color pixels (for example, the area of an orange pixel region > the area of a white pixel distribution region > the area of a red pixel distribution region > the area of a yellow pixel region in the WeChat electronic red packet picture, and the area ratio and the area size of the four regions are fixed and unchanged), and further comprises text information (for example, the WeChat electronic red packet picture generally comprises text information such as 'Maotai, Dajidai', 'get red packet' and 'WeChat red packet', wherein 'Maotai, Dajidai' is a part which can be customized and modified by an electronic red packet sender, and 'get red packet' and 'WeChat red packet' are usually fixed and unchanged. ).
As shown in fig. 3, a schematic diagram of a WeChat electronic red packet picture is exemplarily shown; the area in the dashed line frame is an electronic red packet small image, the area 1 is a distribution area of orange pixels, the area 2 is a distribution area of red pixels, the area 3 is a distribution area of white pixels, the area 4 is a distribution area of yellow pixels, the length of the electronic red packet image is L, and the width of the electronic red packet image is D.
In specific application, the preset priority order may be set according to actual needs, and the priority order of text information, picture size, pixel color, RGB value of pixels, distribution area of pixels of different colors, and area of distribution area of pixels of different colors may be set according to any required order.
In one embodiment, the preset priority order of the picture information is: text information, picture size, color of pixel, RGB value of pixel, distribution region of different color pixel, area of distribution region of different color pixel.
In a specific application, only the picture included in the instant messaging message and the electronic red packet thumbnail can be matched, that is, only the picture information of the area where the electronic red packet thumbnail is located in the picture included in the instant messaging message is obtained, and then the picture information is compared with the picture information of the standard electronic red packet thumbnail.
As shown in fig. 4, in one embodiment, step S103 includes:
step S401, sequentially detecting whether the picture information of the preset number of the pictures is matched with the corresponding picture information of the electronic red packet picture according to a preset priority sequence;
step S402, when the preset number of picture information of the pictures is matched with the corresponding picture information of the electronic red packet picture, judging that the pictures are the electronic red packet pictures;
step S403, when any picture information of the pictures is detected not to be matched with the corresponding picture information of the electronic red packet picture, judging that the pictures are not the electronic red packet picture.
In one embodiment, the preset number of picture information includes at least two of text information, a picture size, a color of a pixel, an RGB value of a pixel, a distribution region of different color pixels, and an area of the distribution region of different color pixels.
In specific application, in order to improve the detection efficiency and ensure the accuracy of the detection result, more than two of text information, picture size, pixel color, RGB value of the pixel, distribution areas of pixels with different colors and areas of distribution areas of pixels with different colors of the picture can be properly selected according to actual needs, and are matched and compared with corresponding picture information of the electronic red packet picture according to a preset priority order. For example, the picture size and the pixel color of the picture may be compared with the picture size and the pixel color of the electronic red packet picture, the picture sizes of the picture and the pixel color are compared first, after the picture sizes are matched, the pixel colors of the picture and the pixel color are compared, and when the picture sizes of the picture and the pixel color are matched, the picture is determined to be the electronic red packet picture; similarly, the colors of the pixels of the two images can be matched and compared first, then the sizes of the images of the two images can be matched and compared, and other types of image information can be continuously compared, which is not described herein again.
In a specific application, whether the picture is the electronic red packet picture or not can be judged by detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture or not. Due to the diversity of the picture information of the electronic red packet picture, the multiple kinds of picture information of the picture can be compared with the corresponding picture information of the electronic red packet picture in sequence according to a certain priority order, so that the accuracy of the detection result is improved, and the more the kinds of the compared picture information are, the more the result is accurate.
And step S104, when the picture is the electronic red packet picture, prompting that the electronic red packet is detected.
In this embodiment, when the picture included in the instant messaging message is an electronic red packet picture, it may be determined that the received instant messaging message is an electronic red packet message, and a prompt may be sent at this time, so that the user may know in time that the electronic red packet is detected, and the user may prepare to perform an electronic red packet robbing operation before the electronic red packet message is displayed.
In specific application, the user can be prompted to detect the electronic red packet and distinguish the electronic red packet from a prompting mode of a common message in any feasible man-machine interaction mode, so that the probability of the user viewing the electronic red packet message is improved, the user is prevented from being ignored as the common message, for example, the user can be prompted by sending notification messages of characters, pictures, voice and the like, and the notification messages can be specifically a special short message, a special popup message, a special device prompting tone, a special ring tone and the like.
As shown in fig. 5, a schematic diagram of an electronic red envelope prompt interface is exemplarily shown; the schematic diagram exemplarily shows a special popup message displayed on a terminal interface for prompting detection of an electronic red packet, wherein the message prompting contents are as follows: a new red packet is received.
In specific application, specific prompt contents of the electronic red packet can be set in a user-defined mode according to actual needs of a user, and for special short messages and special popup messages, the user can control the terminal to enter a corresponding red packet robbing interface by clicking a short message display area or a popup area; for the special prompt tone or the special prompt ring, the user replies preset voice information to control the terminal to enter the corresponding red packet robbing interface.
In one embodiment, step S104 includes:
when the picture is an electronic red packet picture, detecting the electronic red packet type to which the instant communication message belongs;
when the instant communication message is a common red packet, prompting that the common red packet is detected;
and when the instant communication message is the hand-qi-piecing red packet, prompting that the hand-qi-piecing red packet is detected.
In the specific application, the money amounts of all the common red packets are equal, the money amounts of the hand-pieced gas red packets are random, the hand-pieced gas red packets are more interesting and entertaining compared with the common red packets, and the types of the electronic red packets can be known in advance by a user before the red packet-piecing operation through distinguishing and prompting the common red packets and the hand-pieced gas red packets, so that the red packets can be selectively received.
In one embodiment, step S104 includes:
when the picture is an electronic red packet picture, detecting a sending object or a group to which the instant messaging message belongs;
when the sending object of the instant communication message is a relative friend or the group to which the instant communication message belongs is a relative friend group, prompting that a relative friend red envelope is detected;
and when the sending object of the instant communication message is a non-relatives or the group to which the instant communication message belongs is a non-relatives group, prompting that a non-relatives red packet is detected.
In the specific application, the parent-friend red packet is sent by closely related parents, the non-parent-friend red packet is sent by a sparsely related common contact, some users tend to rob the parent-friend red packet, some users tend to rob the non-parent-friend red packet, and the users can know the sending correspondence or the group to which the electronic red packet belongs in advance before the parent-friend red packet and the non-parent-friend red packet are subjected to the distinguishing prompt, so that the red packet is selectively received.
In the embodiment, whether the instant messaging message comprises a picture or not is detected when a new instant messaging message is received, picture information of the picture is acquired when the instant messaging message comprises the picture, whether the picture information of the picture is matched with the picture information of the electronic red packet picture or not is sequentially detected according to the preset priority order so as to judge whether the picture is the electronic red packet picture or not, and when the picture is the electronic red packet picture, the electronic red packet is prompted to be detected, the new electronic red packet can be rapidly and effectively detected, an electronic red packet prompt is specially sent out, the red packet robbing speed of a user can be effectively increased, and the probability that the user sees the electronic red packet message is effectively improved.
Example two
As shown in fig. 6, in the present embodiment, step S101 in the first embodiment includes:
step S601, when a new instant communication message is received, detecting picture decoding operation;
step S602, when the picture decoding operation is detected, determining that the instant communication message includes a picture.
In a specific application, for some versions of instant messaging software (e.g., WeChat), a picture decoding operation is performed when a message including a picture is received. Therefore, by detecting the picture decoding operation when a new instant messaging message is received, whether the instant messaging message includes a picture can be judged.
In one embodiment, step S601 includes:
when a new instant messaging message is received, detecting whether a decodeStream method of a bitmap factory class is called or not;
and when a decodeStream method of the bitmap factory class is called, judging that the picture decoding operation is detected.
In a specific application, a decodes stream method of a bitmap factory class in an android system is used for realizing a picture decoding function, and when the method is called, it can be considered that a picture decoding operation is being performed.
As shown in fig. 7, an exemplary operation flow diagram illustrating an electronic red packet application generating an electronic red packet is shown, where the operation flow is sequentially electronic red packet message (1. receive electronic red packet message) → push process (2. notifyreiver, message push) → activitythread (3.activitythread, activitythread thread-to-red packet manager execution detection window operation, that is, execution UI (user interface) thread) → electronic red packet manager (electronic red packet acceleration) → bitmap factory.
In one embodiment, after step S601, the method includes:
step S603, when the picture decoding operation is not detected, detecting a picture updating operation;
step S604, when the picture updating operation is detected, determining that the instant messaging message includes a picture.
In a specific application, some versions of instant messaging software (e.g., WeChat) execute a picture decoding operation when receiving an electronic red packet message for the first time, then store the decoded picture in a non-local memory, and do not execute the picture decoding operation when receiving the electronic red packet message again next time.
In a specific application, the detection of the picture update operation may be implemented by detecting whether data of the listview control is updated, and specific operation steps are described in detail in embodiment one and are not described herein again.
The embodiment judges whether the instant messaging software comprises the picture by detecting the picture decoding operation, and further detects the picture updating operation to judge whether the instant messaging message comprises the picture when the picture decoding operation is not detected.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
The present embodiment provides an electronic red packet detecting system, configured to execute the method steps in the first embodiment or the second embodiment, where the system for detecting an electronic red packet may be a software program device in a mobile terminal such as a mobile phone, a tablet computer, a personal digital assistant, or a computing device such as a desktop computer, a notebook, a palmtop computer, which can run instant messaging software and receive an instant messaging message.
In one embodiment, the system for detecting the electronic red envelope is a software program device of an Android terminal.
As shown in fig. 8, the system 8 for detecting an electronic red packet provided in this embodiment includes:
a picture detection module 801, configured to detect whether an instant messaging message includes a picture when a new instant messaging message is received;
an obtaining module 802, configured to obtain picture information of a picture when the instant messaging message includes the picture;
a determining module 803, configured to sequentially detect whether the picture information of the picture is matched with the picture information of the electronic red packet picture according to a preset priority order, so as to determine whether the picture is an electronic red packet picture;
and the prompting module 804 is configured to prompt that the electronic red packet is detected when the picture is the electronic red packet picture.
In an embodiment, the picture detection module 801 is specifically configured to:
detecting picture decoding operation when a new instant communication message is received;
and when the picture decoding operation is detected, judging that the instant communication message comprises a picture.
In an embodiment, the picture detection module 801 is further specifically configured to:
when the picture decoding operation is not detected, detecting a picture updating operation;
and when the picture updating operation is detected, judging that the instant communication message comprises a picture.
In an embodiment, the picture detection module 801 is specifically configured to:
detecting picture updating operation when a new instant communication message is received;
and when the picture updating operation is detected, judging that the instant communication message comprises a picture.
In an embodiment, the picture detection module 801 is further specifically configured to:
when a new instant communication message is received, detecting whether the imageview control is started to operate or not;
and when the imageview control starts to run, judging that the picture updating operation is detected.
In an embodiment, the determining module 803 is specifically configured to:
sequentially detecting whether the picture information of the preset number of the pictures is matched with the corresponding picture information of the electronic red packet pictures according to a preset priority sequence;
when the preset number of picture information of the pictures is matched with the corresponding picture information of the electronic red packet picture, the pictures are judged to be the electronic red packet picture;
and when any picture information of the picture is detected to be not matched with the corresponding picture information of the electronic red packet picture, judging that the picture is not the electronic red packet picture.
In an embodiment, the prompt module 804 is specifically configured to:
when the picture is an electronic red packet picture, detecting the electronic red packet type to which the instant communication message belongs;
when the instant communication message is a common red packet, prompting that the common red packet is detected;
and when the instant communication message is the hand-qi-piecing red packet, prompting that the hand-qi-piecing red packet is detected.
In an embodiment, the prompt module 804 is specifically configured to:
when the picture is an electronic red packet picture, detecting a sending object or a group to which the instant messaging message belongs;
when the sending object of the instant communication message is a relative friend or the group to which the instant communication message belongs is a relative friend group, prompting that a relative friend red envelope is detected;
and when the sending object of the instant communication message is a non-relatives or the group to which the instant communication message belongs is a non-relatives group, prompting that a non-relatives red packet is detected.
In the embodiment, whether the instant messaging message comprises a picture or not is detected when a new instant messaging message is received, picture information of the picture is acquired when the instant messaging message comprises the picture, whether the picture information of the picture is matched with the picture information of the electronic red packet picture or not is sequentially detected according to the preset priority order so as to judge whether the picture is the electronic red packet picture or not, and when the picture is the electronic red packet picture, the electronic red packet is prompted to be detected, the new electronic red packet can be rapidly and effectively detected, an electronic red packet prompt is specially sent out, the red packet robbing speed of a user can be effectively increased, and the probability that the user sees the electronic red packet message is effectively improved.
Example four
As shown in fig. 9, the present embodiment provides a terminal device, which includes: a processor 90, a memory 91 and a computer program 92 stored in said memory 91 and executable on said processor 90, such as a program for detecting an electronic red packet. The processor 90, when executing the computer program 92, implements the steps in the various method embodiments for detecting electronic red packets described above, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 90, when executing the computer program 92, implements the functions of the modules in the above device embodiments, such as the functions of the modules 801 to 804 shown in fig. 8.
Illustratively, the computer program 92 may be partitioned into one or more modules that are stored in the memory 91 and executed by the processor 90 to accomplish the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 92 in the terminal device 9. For example, the computer program 92 may be divided into a slice detection module, an acquisition module, a judgment module, and a prompt module, and the specific functions of the modules are as follows:
the image detection module is used for detecting whether the instant communication message comprises an image or not when a new instant communication message is received;
the acquisition module is used for acquiring the picture information of the picture when the instant communication message comprises the picture;
the judging module is used for sequentially detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture according to a preset priority order so as to judge whether the picture is the electronic red packet picture;
and the prompting module is used for prompting that the electronic red packet is detected when the picture is the electronic red packet picture.
The terminal device 9 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 90, a memory 91. Those skilled in the art will appreciate that fig. 9 is only an example of a terminal device 9, and does not constitute a limitation to the terminal device 9, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device may also include an input-output device, a network access device, a bus, etc.
The Processor 90 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 91 may be an internal storage unit of the terminal device 9, such as a hard disk or a memory of the terminal device 9. The memory 91 may also be an external storage device of the terminal device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the terminal device 9. The memory 91 is used for storing the computer program and other programs and data required by the terminal device. The memory 91 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of detecting an electronic red envelope, comprising:
when a new instant communication message is received, detecting whether the instant communication message comprises a picture or not;
when the instant communication message comprises a picture, obtaining picture information of the picture;
sequentially detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture according to a preset priority order so as to judge whether the picture is the electronic red packet picture;
and when the picture is the electronic red packet picture, prompting that the electronic red packet is detected.
2. The method for detecting electronic red packet according to claim 1, wherein detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture in sequence according to a preset priority order to determine whether the picture is an electronic red packet picture comprises:
sequentially detecting whether the picture information of the preset number of the pictures is matched with the corresponding picture information of the electronic red packet pictures according to a preset priority sequence;
when the preset number of picture information of the pictures is matched with the corresponding picture information of the electronic red packet picture, the pictures are judged to be the electronic red packet picture;
and when any picture information of the picture is detected to be not matched with the corresponding picture information of the electronic red packet picture, judging that the picture is not the electronic red packet picture.
3. The method of detecting electronic red packs according to claim 2, wherein the preset number of picture information includes at least two of text information, picture size, color of pixel, RGB value of pixel, distribution region of different color pixels, and area of distribution region of different color pixels.
4. The method for detecting electronic red envelope according to any of claims 1-3, wherein detecting whether the instant messaging message includes a picture when a new instant messaging message is received comprises:
detecting picture decoding operation when a new instant communication message is received;
and when the picture decoding operation is detected, judging that the instant communication message comprises a picture.
5. The method of detecting electronic red envelope of claim 4, wherein detecting the picture decoding operation when a new instant messaging message is received comprises:
when the picture decoding operation is not detected, detecting a picture updating operation;
and when the picture updating operation is detected, judging that the instant communication message comprises a picture.
6. The method for detecting electronic red envelope according to any of claims 1-3, wherein detecting whether the instant messaging message includes a picture when a new instant messaging message is received comprises:
detecting picture updating operation when a new instant communication message is received;
and when the picture updating operation is detected, judging that the instant communication message comprises a picture.
7. The method of detecting electronic red envelope according to any of the claims 6, wherein detecting a picture update operation when a new instant messaging message is received comprises:
when a new instant communication message is received, detecting whether the imageview control is started to operate or not;
and when the imageview control starts to run, judging that the picture updating operation is detected.
8. A system for detecting electronic red envelope, comprising:
the image detection module is used for detecting whether the instant communication message comprises an image or not when a new instant communication message is received;
the acquisition module is used for acquiring the picture information of the picture when the instant communication message comprises the picture;
the judging module is used for sequentially detecting whether the picture information of the picture is matched with the picture information of the electronic red packet picture according to a preset priority order so as to judge whether the picture is the electronic red packet picture;
and the prompting module is used for prompting that the electronic red packet is detected when the picture is the electronic red packet picture.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201811080635.1A 2018-09-17 2018-09-17 Method, system and terminal device for detecting electronic red packet Expired - Fee Related CN110912801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811080635.1A CN110912801B (en) 2018-09-17 2018-09-17 Method, system and terminal device for detecting electronic red packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811080635.1A CN110912801B (en) 2018-09-17 2018-09-17 Method, system and terminal device for detecting electronic red packet

Publications (2)

Publication Number Publication Date
CN110912801A true CN110912801A (en) 2020-03-24
CN110912801B CN110912801B (en) 2022-05-24

Family

ID=69812516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811080635.1A Expired - Fee Related CN110912801B (en) 2018-09-17 2018-09-17 Method, system and terminal device for detecting electronic red packet

Country Status (1)

Country Link
CN (1) CN110912801B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810262A (en) * 2020-06-11 2021-12-17 腾讯科技(深圳)有限公司 Message reminding method and device, electronic equipment and readable storage medium
CN114972709A (en) * 2022-07-14 2022-08-30 彼图科技(青岛)有限公司 Image artificial intelligence algorithm based on block similarity

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099877A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Instant message processing method and device
CN105630453A (en) * 2016-01-29 2016-06-01 珠海市魅族科技有限公司 Display method and device of information notification
CN105827501A (en) * 2015-07-30 2016-08-03 维沃移动通信有限公司 Message reminding method and electronic equipment
CN105975144A (en) * 2016-04-25 2016-09-28 维沃移动通信有限公司 Information processing method and apparatus
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106445336A (en) * 2016-09-12 2017-02-22 广东欧珀移动通信有限公司 Fast acquisition method for electronic resource and mobile terminal
WO2017120921A1 (en) * 2016-01-15 2017-07-20 白宏伟 Method for pushing information when processing wechat red envelope, and mobile terminal
CN106980579A (en) * 2016-09-30 2017-07-25 阿里巴巴集团控股有限公司 A kind of picture loading method and device
US20170270551A1 (en) * 2016-03-17 2017-09-21 Joe Zheng Method and system for distributing targeted messages on social media
CN109102264A (en) * 2018-08-29 2018-12-28 Oppo广东移动通信有限公司 A kind of electronics red packet detection method, device and terminal device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099877A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Instant message processing method and device
CN105827501A (en) * 2015-07-30 2016-08-03 维沃移动通信有限公司 Message reminding method and electronic equipment
WO2017120921A1 (en) * 2016-01-15 2017-07-20 白宏伟 Method for pushing information when processing wechat red envelope, and mobile terminal
CN105630453A (en) * 2016-01-29 2016-06-01 珠海市魅族科技有限公司 Display method and device of information notification
US20170270551A1 (en) * 2016-03-17 2017-09-21 Joe Zheng Method and system for distributing targeted messages on social media
CN105975144A (en) * 2016-04-25 2016-09-28 维沃移动通信有限公司 Information processing method and apparatus
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106445336A (en) * 2016-09-12 2017-02-22 广东欧珀移动通信有限公司 Fast acquisition method for electronic resource and mobile terminal
CN106980579A (en) * 2016-09-30 2017-07-25 阿里巴巴集团控股有限公司 A kind of picture loading method and device
CN109102264A (en) * 2018-08-29 2018-12-28 Oppo广东移动通信有限公司 A kind of electronics red packet detection method, device and terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵启朋: "《Android典型技术模块开发详解》", 31 August 2010 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810262A (en) * 2020-06-11 2021-12-17 腾讯科技(深圳)有限公司 Message reminding method and device, electronic equipment and readable storage medium
CN113810262B (en) * 2020-06-11 2023-06-09 腾讯科技(深圳)有限公司 Message reminding method and device, electronic equipment and readable storage medium
CN114972709A (en) * 2022-07-14 2022-08-30 彼图科技(青岛)有限公司 Image artificial intelligence algorithm based on block similarity

Also Published As

Publication number Publication date
CN110912801B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
KR100949690B1 (en) System and method for using a visual password scheme
CN109102264B (en) Electronic red packet detection method and device and terminal equipment
US10795629B2 (en) Text and custom format information processing method, client, server, and computer-readable storage medium
US20180270180A1 (en) Method and device for displaying notification message and mobile terminal
CN108255555B (en) A kind of system language switching method and terminal device
WO2017054597A1 (en) Processing method and device for emoji string
CN112947807A (en) Display method and device and electronic equipment
CN112286887A (en) File sharing method and device and electronic equipment
CN114726947B (en) Message display method, device, user terminal and readable storage medium
CN110912801B (en) Method, system and terminal device for detecting electronic red packet
CN104484486A (en) Information recommending method and electronic device
CN103457825A (en) Method, device and system for achieving instant message communication
CN109766315B (en) File display method and terminal, computer storage medium and computer equipment
CN107295412B (en) Data processing method, device and system
CN105491223B (en) Information processing method, related equipment and system
US7702340B2 (en) Short message system for mobile devices
CN110881001B (en) Electronic red packet detection method, system and terminal equipment
CN116303888A (en) Rarely used word processing method and device, storage medium and electronic equipment
CN110875869B (en) Red packet identification method, system and terminal equipment
EP2624529A1 (en) Page flip and operation method thereof for reading mms on mobile phones
CN113824627A (en) Group chat message display method and device, electronic equipment and storage medium
CN110875870B (en) Electronic red packet monitoring method, system and terminal equipment
CN114690996A (en) Content display method and device and electronic equipment
CN110879733A (en) Detection method and device of electronic red packet, terminal and computer readable storage medium
CN114285814B (en) Chat parameter setting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220524