CN110879733A - Detection method and device of electronic red packet, terminal and computer readable storage medium - Google Patents

Detection method and device of electronic red packet, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110879733A
CN110879733A CN201811040403.3A CN201811040403A CN110879733A CN 110879733 A CN110879733 A CN 110879733A CN 201811040403 A CN201811040403 A CN 201811040403A CN 110879733 A CN110879733 A CN 110879733A
Authority
CN
China
Prior art keywords
view
message
layout
control
matching
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
CN201811040403.3A
Other languages
Chinese (zh)
Other versions
CN110879733B (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 CN201811040403.3A priority Critical patent/CN110879733B/en
Publication of CN110879733A publication Critical patent/CN110879733A/en
Application granted granted Critical
Publication of CN110879733B publication Critical patent/CN110879733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application belongs to the technical field of communication, and particularly relates to a method, a device, a terminal and a computer readable storage medium for detecting an electronic red packet, wherein the method comprises the following steps: monitoring whether a preset application program receives a message or not; if the preset application program receives a message, acquiring layout characteristics of a first view for displaying the message; matching the layout characteristics of the first view with the layout characteristics of the second view, and if the matching is successful, determining that the message is an electronic red packet message; the method and the device realize the rapid detection of the electronic red packet message, so that the terminal can respond to the detected electronic red packet message at the highest speed, and the success rate of receiving the electronic red packet is favorably improved.

Description

Detection method and device of electronic red packet, terminal and computer readable storage medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a computer-readable storage medium for detecting an electronic red packet.
Background
At present, most social software has a group function, a user can send a plurality of electronic red packages in a group at the same time, and the users in the group can receive the red packages by clicking the message content of the electronic red package messages after receiving the electronic red package messages.
However, when the number of users in the group is greater than the number of red packets, some users will not receive the red packets because the speed of receiving the red packets is too slow.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a computer readable storage medium for detecting an electronic red packet, which can improve the success rate of getting the electronic red packet.
A first aspect of an embodiment of the present application provides a method for detecting an electronic red packet, including:
monitoring whether a preset application program receives a message or not;
if the preset application program receives a message, acquiring layout characteristics of a first view for displaying the message;
matching the layout characteristics of the first view with the layout characteristics of the second view, and if the matching is successful, determining that the message is an electronic red packet message; the second view is a view of a preset electronic red packet message.
A second aspect of the embodiments of the present application provides a device for detecting an electronic red packet, including:
the monitoring unit is used for monitoring whether the preset application program receives the message or not;
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring the layout characteristics of a first view for displaying a message if the preset application program receives the message;
the matching unit is used for matching the layout characteristics of the first view with the layout characteristics of the second view, and if the matching is successful, the message is confirmed to be an electronic red packet message; the second view is a view of a preset electronic red packet message.
A third aspect of the embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the above method.
In the embodiment of the application, when a preset application program receives a message, the layout characteristics of a first view for displaying the message are acquired, and then the layout characteristics of the first view are matched with the layout characteristics of a second view for displaying an electronic red packet message, so that when the layout characteristics of the first view are successfully matched with the layout characteristics of the second view for displaying the electronic red packet message, the message is determined to be the electronic red packet message, the electronic red packet message is quickly detected, the terminal can respond to the detected electronic red packet message at the highest speed, and the success rate of getting the electronic red packet is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for detecting an electronic red packet according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a specific implementation of step 102 of a method for detecting an electronic red packet according to an embodiment of the present application;
FIG. 3 is a schematic illustration of a first view provided by an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a specific implementation of step 103 of a method for detecting an electronic red packet according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus for detecting an electronic red packet according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In practical application, in order to improve the success rate of receiving the electronic red packet, whether the message is received by the preset application is monitored, and the received message is detected, so that whether the message is the electronic red packet message is judged, the electronic red packet message is responded to at the highest speed, and the success rate of receiving the electronic red packet is improved.
The method for detecting whether the message received by the preset application is the electronic red packet message includes monitoring a website accessed when the terminal receives the electronic red packet message, or monitoring a decoding process of the electronic red packet picture, and identifying a decoded characteristic value to judge whether the electronic red packet message is received, however, when the terminal receives the electronic red packet message, the website accessed is encrypted, or when the terminal only decodes the first received electronic red packet picture, the electronic red packet message may not be accurately and efficiently detected.
In the embodiment of the application, by acquiring the layout characteristics of the first view for displaying the message when the preset application program receives the message, then, matching the layout characteristics of the first view with the layout characteristics of the second view for displaying the electronic red envelope message, thereby confirming that the message is the electronic red packet message when the layout characteristics of the first view are successfully matched with the layout characteristics of the second view for displaying the electronic red packet message, realizing the rapid detection of the electronic red packet message, the terminal can respond to the detected electronic red packet message at the highest speed, thereby being beneficial to improving the success rate of receiving the electronic red packet and being not limited by the condition that the website accessed when the terminal receives the electronic red packet message is encrypted, or, when the terminal decodes only the first received electronic red packet picture, the terminal cannot accurately and efficiently detect the electronic red packet message.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Fig. 1 shows a schematic flow chart of an implementation of a method for detecting an electronic red packet according to an embodiment of the present application, where the method is applied to a terminal, and can be executed by a detection device of the electronic red packet configured on the terminal, and is suitable for a situation where a success rate of receiving the electronic red packet needs to be increased, and the method includes steps 101 to 103.
The terminal comprises terminal equipment such as a smart phone, a tablet personal computer and a learning machine, wherein the terminal equipment is provided with a detection device of the electronic red packet. The terminal device may be installed with a social application program or a payment application program such as WeChat or Paibao.
Step 101, monitoring whether a preset application program receives a message.
In this embodiment of the present application, monitoring whether a preset application receives a message includes: and monitoring whether the preset application program receives a message or not when the preset application program is detected to be started.
The preset application program may be an application program authorized by a user, or an application program default set in factory. For example, the preset application is a social application or a payment application such as WeChat or Paibao.
Optionally, the monitoring whether the preset application receives the message includes: and monitoring whether the network interaction interface of the preset application program receives a message.
The network interaction interface is a remote access interface between the preset application program and the server, and the preset application program realizes data interaction with the server by calling the network interface. The network interaction interface has the functions of uploading data initiated by the preset application program to a server and acquiring the data sent by the server to the preset application program. And when the preset application program is an application program with an electronic red packet receiving and sending function, the preset application program acquires the electronic red packet issued by the server through the network interaction interface.
Step 102, if the preset application program receives a message, obtaining a layout feature of a first view for displaying the message.
When the preset application program receives the message, if the message is the message which needs to be displayed to the user, different views need to be used for displaying according to different message types of the message, each view is composed of different types or numbers of controls, and specific layout characteristics exist among the controls.
For example, the view for displaying the text message may only need one text control corresponding to the data size of the text content, the view for displaying the picture message may only need one picture control corresponding to the size of the picture, and the view for displaying the electronic red packet message may need to be laid out by a plurality of layers of different types of controls for display.
In the embodiment of the application, when the preset application program is monitored to receive the message, the layout characteristic of the first view used for displaying the message by the terminal is acquired so as to determine whether the message is the electronic red packet message.
Optionally, in step 102, obtaining a layout feature of the first view for displaying the message includes: and acquiring one or more layout characteristics of the name of the control, the position of the control, the size of the control, the text content in the control, the picture content in the control and the filling color of the control of the first view.
That is to say, in the embodiment of the present application, the layout features of the first view may include: the layout features of the first view include only layout features of the control name and the control position, for example, the layout features of the first view include only layout features of the control name and the control position.
103, matching the layout characteristics of the first view with the layout characteristics of the second view, and if the matching is successful, determining that the message is an electronic red packet message; the second view is a view of a preset electronic red packet message.
Since the view for displaying the real electronic red packet message has a layout feature different from the view for displaying other messages, in this embodiment of the application, after the layout feature of the first view is obtained, the layout feature of the first view and the layout feature of the second view may be matched to determine whether the message received by the preset application is an electronic red packet message.
In the embodiment of the application, when a preset application program receives a message, the layout characteristics of a first view for displaying the message are acquired, and then the layout characteristics of the first view are matched with the layout characteristics of a second view for displaying an electronic red packet message, so that when the layout characteristics of the first view are successfully matched with the layout characteristics of the second view for displaying the electronic red packet message, the message is determined to be the electronic red packet message, the electronic red packet message is quickly detected, the terminal can quickly respond to the detected electronic red packet message, and the success rate of getting the electronic red packet is favorably improved.
As an embodiment of the present application, in the step 102, obtaining a layout feature of a first view for displaying the message further includes: judging whether a message received by a preset application program is a message required to be displayed to a user, and if the message received by the preset application program is the message required to be displayed to the user, acquiring the layout characteristics of a first view for displaying the message.
For example, if it is monitored that the preset application program receives information, whether data change exists in a list view control of a user interaction interface is monitored; and if the list view control of the user interaction interface is monitored to have data change, determining that the message is a message required to be displayed to the user.
Optionally, as an embodiment of the present application, as shown in fig. 2, in step 102, if the preset application receives a message, the obtaining a layout feature of a first view for displaying the message includes: step 201 to step 202.
Step 201, if the preset application program receives a message, determining whether the message is a message sent to a user group.
Step 202, if the message is a message sent to a user group, obtaining a layout feature of a first view for displaying the message.
In practical application, if the message is not a message sent to the user group, it indicates that the message does not need to be read by the user in the shortest time, and therefore, the layout feature of the first view for displaying the message does not need to be acquired, and the message is quickly detected. In this embodiment, when it is determined that the message is a message sent to a user group, the layout feature of the first view for displaying the message is acquired, and when it is determined that the message is not a message sent to the user group, the layout feature of the first view for displaying the message is not acquired, so that the data processing amount of the terminal is reduced.
Wherein, judging whether the message is sent to the user group comprises: and identifying the data packet format of the message or identifying the receiving address of the message, and judging whether the message is sent to the user group.
As an embodiment of the present application, the matching the layout features of the first view and the second view may include: and judging whether the relative position between each control in the first view is the same as the relative position between each control in the second view, and if so, determining that the control position of the first view is successfully matched with the control position of the first view.
For example, as shown in fig. 3, a schematic diagram of the above-mentioned first view provided in this embodiment of the present application is provided, where the first view includes a first-layer background color filling control 31, a red-envelope small-image control 32 located on the left of the background color filling control 31, a first text control 33 located on the upper right of the background color filling control 31, and a second text control 34 located on the lower right of the background color filling control 31. And determining whether the control position of the first view is successfully matched with the control position of the first view by judging whether the relative positions of the controls 31 to 34 in the first view are the same as the relative positions of each control in the second view.
Therefore, in the embodiment of the present application, in the process of determining whether the relative position between each control in the first view is the same as the relative position between each control in the second view, it is also determined whether the number of controls in the first view is the same as the number of controls in the second view.
As an embodiment of the present application, the matching the layout features of the first view and the second view may further include: and judging whether the aspect ratio of the control of the first view is the same as that of the control of the second view, and if so, determining that the control size of the first view is successfully matched with the control size of the first view.
For example, respectively determining whether the aspect ratio L/W of the first-layer background color filling control 31, the aspect ratio L/W of the red packet small image control 32, the aspect ratio L/W of the first text control 33, and the aspect ratio L/W of the second text control 34 are the same as the aspect ratio of the corresponding control in the second view, and if both are the same, determining that the control size of the first view and the control size of the first view are successfully matched.
As an embodiment of the present application, the matching the layout features of the first view and the second view may further include: and calculating the similarity between the color histogram of the picture content in the control of the first view and the color histogram of the picture content in the control of the second view, and if the similarity is greater than a preset threshold value, determining that the picture content in the control of the first view is successfully matched with the picture content in the control of the first view.
For example, the similarity between the color histogram of the picture content in the red-envelope small picture control 32 in the first view and the color histogram of the picture content in the red-envelope small picture control in the second view is calculated, and if the similarity is greater than a preset threshold, it is determined that the picture content in the control of the first view and the picture content in the control of the first view are successfully matched.
Optionally, the calculating the similarity between the color histogram of the picture content in the control of the first view and the color histogram of the picture content in the control of the second view includes: and converting the picture content in the control of the first view into an HSV color space from an RGB color space, acquiring a histogram of hue H in the HSV color space, and calculating the similarity between the histogram of hue H in the HSV color space of the first view and the histogram of hue H in the HSV color space of the second view.
The HSV color space is a color space created according to the visual characteristic of color, and is also called a hexagonal cone model, and the parameters of the color in the model are respectively as follows: hue (H), saturation (S), lightness (V). Because the similarity of the RGB color space is determined more complicated, in some embodiments of the present application, the picture content in the control of the first view may be converted from the RGB color space to the HSV color space, and then the picture content may be matched, so as to reduce the data processing amount for matching the picture content.
As shown in fig. 4, as an embodiment of the present application, the matching the layout features of the first view and the layout features of the second view in step 103 includes step 401: and sequentially matching the layout features of the first view with the corresponding layout features in the second view according to the priority order of the plurality of layout features of the first view.
For example, the layout features of the first view include a control name, a control position, a control size, text content in the control, picture content in the control, and a filling color of the control, and the layout features of the first view and the corresponding layout features in the second view may be sequentially matched according to a priority order in which the control name is a first priority, the control position is a second priority, the control size is a third priority, the text content in the control is a fourth priority, the picture content in the control is a fifth priority, and the filling color of the control is a sixth priority, until all the layout features in the first view are successfully matched with the layout features of the second view, the message is determined to be an electronic red packet message.
In some embodiments of the present application, the sequentially matching the layout features in the first view with the corresponding layout features in the second view according to the priority order of the plurality of layout features in the first view includes step 402: and in the process of sequentially matching the layout features in the first view with the corresponding layout features in the second view, if the layout features in the first view are unsuccessfully matched with the corresponding layout features in the second view, stopping matching the layout features in the first view with the corresponding layout features in the second view, and confirming that the message does not belong to the electronic red packet message.
That is, if the matching of the layout features of the current priority is successful, the matching of the layout features of the next priority is performed, and if the matching of the layout features of the current priority is unsuccessful, the matching of the layout features of the next priority is stopped, and the message is confirmed not to belong to the electronic red packet message, so that the calculation amount of the terminal for performing the matching of the layout features is reduced, and the efficiency of the matching of the layout features is improved.
For example, if the first priority layout feature matching is unsuccessful, the other layout features in the first view and the layout features in the second view are stopped from being matched, and the message is directly confirmed not to belong to the electronic red packet message, so that the calculation amount of the terminal for matching the other layout features is reduced, the matching of the layout features can be finished as soon as possible, and the efficiency of the layout feature matching is improved.
Optionally, as shown in fig. 4, as an embodiment of the present application, the sequentially matching the layout features of the first view with the corresponding layout features in the second view according to the priority order of the plurality of layout features of the first view includes step 403: acquiring the accumulated times of successful continuous matching of the layout features of the first view and the corresponding layout features in the second view; and searching a corresponding relation table of the accumulated times and the matching speed of the layout characteristics, acquiring the matching speed of the layout characteristics corresponding to the accumulated times, and increasing the matching speed of the layout characteristics to the matching speed corresponding to the accumulated times.
For example, by increasing the number of terminal processors, and/or improving the performance parameter of the processor, and/or closing an application process with a low priority, the plurality of layout features in the first view are simultaneously matched with the corresponding layout features in the second view, so as to improve the matching speed of the layout features to the matching speed corresponding to the accumulated number of times. Wherein the performance parameters include the core number and the operating frequency.
The searching of the corresponding relation table between the accumulated times and the matching speed of the layout features refers to the pre-stored matching speed of the layout features corresponding to each accumulated time.
Optionally, the matching speed may be increased in an equal manner according to an increase of the accumulated number of times, for example, the matching speed is doubled every time the accumulated number of times is increased, until the maximum processing speed of the terminal is reached; or when the accumulated times are greater than or equal to the threshold times, the matching speed can be increased to the maximum processing speed of the terminal, so that the efficiency of layout feature matching is further improved, and the success rate of electronic red packet picking is improved.
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.
Fig. 5 shows a schematic structural diagram of an apparatus 500 for detecting an electronic red packet according to an embodiment of the present application, which includes a monitoring unit 501, an obtaining unit 502, and a matching unit 503.
A monitoring unit 501, configured to monitor whether a preset application receives a message;
an obtaining unit 502, configured to obtain, if the preset application receives a message, a layout feature of a first view for displaying the message;
a matching unit 503, configured to match the layout features of the first view with the layout features of the second view, and if the matching is successful, determine that the message is an electronic red packet message; the second view is a view of a preset electronic red packet message.
In some embodiments of the present application, the obtaining unit 502 is specifically configured to obtain a name of the control, a position of the control, a size of the control, text content in the control, picture content in the control, and/or a filling color of the control in the first view.
In some embodiments of the present application, the matching unit 503 is specifically configured to determine whether a relative position between each control in the first view is the same as a relative position between each control in the second view, and if the relative positions are the same, determine that the matching between the control position of the first view and the control position of the first view is successful; and/or judging whether the aspect ratio of the control of the first view is the same as that of the control of the second view, and if so, determining that the control size of the first view is successfully matched with the control size of the first view; and/or calculating the similarity between the color histogram of the picture content in the control of the first view and the color histogram of the picture content in the control of the second view, and if the similarity is greater than a preset threshold value, determining that the picture content in the control of the first view is successfully matched with the picture content in the control of the first view.
Optionally, in some embodiments of the application, the matching unit 503 is specifically configured to sequentially match the layout features of the first view with the corresponding layout features in the second view according to a priority order of the plurality of layout features of the first view.
Optionally, in some embodiments of the present application, the matching unit 503 is further specifically configured to obtain a cumulative number of times that the layout features of the first view are successfully matched with the corresponding layout features of the second view; and searching a corresponding relation table of the accumulated times and the matching speed of the layout characteristics, acquiring the matching speed of the layout characteristics corresponding to the accumulated times, and increasing the matching speed of the layout characteristics to the matching speed corresponding to the accumulated times.
Optionally, in some embodiments of the application, the matching unit 503 is further specifically configured to, in a process of sequentially matching the layout features in the first view with the corresponding layout features in the second view, if the matching of the layout features in the first view with the corresponding layout features in the second view is unsuccessful, stop matching the layout features in the first view with the layout features in the second view, and confirm that the message does not belong to the electronic red packet message.
Optionally, in some embodiments of the present application, the obtaining unit 502 is further specifically configured to, if the preset application receives a message, determine whether the message is a message sent to a user group; and if the message is sent to the user group, acquiring the layout characteristics of the first view for displaying the message.
It should be noted that, for convenience and simplicity of description, the specific working process of the above-described electronic red packet detection apparatus 500 may refer to the corresponding process of the method described in fig. 1 to fig. 4, and is not described herein again.
As shown in fig. 6, the present application provides a terminal for implementing the method for detecting an electronic red packet, where the terminal may be a mobile terminal, and the mobile terminal may be a terminal such as a smart phone, a tablet computer, a Personal Computer (PC), a learning machine, and includes: one or more input devices 63 (only one shown in fig. 6) and one or more output devices 64 (only one shown in fig. 6). The processor 61, memory 62, input device 63 and output device 64 are connected by a bus 65.
It should be understood that, in the embodiment of the present Application, the Processor 61 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 63 may include a virtual keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 64 may include a display, a speaker, etc.
The memory 62 may include a read-only memory and a random access memory, and provides instructions and data to the processor 61. Some or all of the memory 62 may also include non-volatile random access memory. For example, the memory 62 may also store device type information.
The memory 62 stores a computer program that can be executed by the processor 61, and the computer program is, for example, a program of a method for detecting an electronic red packet. The processor 61 implements the steps of the method for detecting an electronic red packet, such as steps 101 to 103 shown in fig. 1, when executing the computer program. Alternatively, the processor 61 may implement the functions of the modules/units in the device embodiments, such as the functions of the units 501 to 503 shown in fig. 5, when executing the computer program.
The computer program may be divided into one or more modules/units, which are stored in the memory 62 and executed by the processor 61 to complete the present application. The one or more modules/units 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 in the terminal for detecting the electronic red packet. For example, the computer program may be divided into a listening unit, an obtaining unit and a matching unit, and each unit has the following specific functions: the monitoring unit is used for monitoring whether the preset application program receives the message or not; an obtaining unit, configured to obtain, if the preset application program receives a message, a layout feature of a first view for displaying the message; a matching unit, configured to match the layout features of the first view with the layout features of the second view, and if the matching is successful, determine that the message is an electronic red packet message; the second view is a preset view for displaying the electronic red packet message.
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 functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement 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 system 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 and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal are merely illustrative, and for example, the division of the above-described modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, 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 modules/units described above, if implemented in the form of software functional units and sold or used as separate products, 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 may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-described 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 signal, telecommunications signal, software distribution medium, and the like. It should be noted that the computer readable medium described above may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media that does not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above 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 detection method of an electronic red packet is characterized by comprising the following steps:
monitoring whether a preset application program receives a message or not;
if the preset application program receives a message, acquiring layout characteristics of a first view for displaying the message;
matching the layout characteristics of the first view with the layout characteristics of the second view, and if the matching is successful, determining that the message is an electronic red packet message; the second view is a view of a preset electronic red packet message.
2. The detection method of claim 1, wherein said obtaining layout characteristics for displaying a first view of the message comprises:
and acquiring one or more layout characteristics of the name of the control, the position of the control, the size of the control, the text content in the control, the picture content in the control and the filling color of the control of the first view.
3. The detection method of claim 1, wherein said matching layout features of the first view with layout features of the second view comprises:
judging whether the relative position between each control in the first view is the same as the relative position between each control in the second view, and if so, determining that the control position of the first view is successfully matched with the control position of the first view;
and/or judging whether the aspect ratio of the control of the first view is the same as the aspect ratio of the control of the second view, and if so, determining that the control size of the first view is successfully matched with the control size of the first view;
and/or calculating the similarity between the color histogram of the picture content in the control of the first view and the color histogram of the picture content in the control of the second view, and if the similarity is greater than a preset threshold value, determining that the picture content in the control of the first view is successfully matched with the picture content in the control of the first view.
4. The detection method according to any one of claims 1 to 3, wherein the matching the layout features of the first view with the layout features of the second view comprises:
and sequentially matching the layout features of the first view with the corresponding layout features in the second view according to the priority order of the plurality of layout features of the first view.
5. The detection method according to claim 4, wherein the sequentially matching the layout features of the first view with the corresponding layout features in the second view according to the priority order of the plurality of layout features of the first view comprises:
acquiring the accumulated times of successful continuous matching of the layout features of the first view and the corresponding layout features in the second view;
and searching a corresponding relation table of the accumulated times and the matching speed of the layout characteristics, acquiring the matching speed of the layout characteristics corresponding to the accumulated times, and increasing the matching speed of the layout characteristics to the matching speed corresponding to the accumulated times.
6. The method of detecting as claimed in claim 4, wherein said matching the layout features in the first view with the corresponding layout features in the second view in turn according to the priority order of the plurality of layout features in the first view comprises:
in the process of sequentially matching the layout features in the first view with the corresponding layout features in the second view, if the layout features in the first view are unsuccessfully matched with the corresponding layout features in the second view, stopping matching the layout features in the first view with the layout features in the second view, and confirming that the message does not belong to the electronic red packet message.
7. The method for detecting according to claim 1, wherein said obtaining a layout feature for displaying a first view of a message if the preset application receives the message comprises:
if the preset application program receives the message, judging whether the message is sent to a user group;
and if the message is sent to the user group, obtaining the layout characteristics of the first view for displaying the message.
8. An electronic red packet detection device, comprising:
the monitoring unit is used for monitoring whether the preset application program receives the message or not;
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring the layout characteristics of a first view for displaying a message if the preset application program receives the message;
the matching unit is used for matching the layout characteristics of the first view with the layout characteristics of the second view, and if the matching is successful, the message is confirmed to be an electronic red packet message; the second view is a view of a preset electronic red packet message.
9. A terminal 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.
CN201811040403.3A 2018-09-06 2018-09-06 Detection method, device, terminal and computer readable storage medium for electronic red envelope Active CN110879733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811040403.3A CN110879733B (en) 2018-09-06 2018-09-06 Detection method, device, terminal and computer readable storage medium for electronic red envelope

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811040403.3A CN110879733B (en) 2018-09-06 2018-09-06 Detection method, device, terminal and computer readable storage medium for electronic red envelope

Publications (2)

Publication Number Publication Date
CN110879733A true CN110879733A (en) 2020-03-13
CN110879733B CN110879733B (en) 2023-10-03

Family

ID=69727301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811040403.3A Active CN110879733B (en) 2018-09-06 2018-09-06 Detection method, device, terminal and computer readable storage medium for electronic red envelope

Country Status (1)

Country Link
CN (1) CN110879733B (en)

Cited By (1)

* 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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106326074A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Processor operation parameter adjusting method and mobile terminal
CN106326072A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Method for processing information and mobile terminal
CN106339862A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Information processing method and mobile terminal
WO2017125024A1 (en) * 2016-01-21 2017-07-27 腾讯科技(深圳)有限公司 Resource sharing method, terminal and storage medium
US20170329565A1 (en) * 2015-02-05 2017-11-16 Tencent Technology (Shenzhen) Company Limited Information processing method, client, server, and computer-readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170329565A1 (en) * 2015-02-05 2017-11-16 Tencent Technology (Shenzhen) Company Limited Information processing method, client, server, and computer-readable storage medium
WO2017125024A1 (en) * 2016-01-21 2017-07-27 腾讯科技(深圳)有限公司 Resource sharing method, terminal and storage medium
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106326074A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Processor operation parameter adjusting method and mobile terminal
CN106326072A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Method for processing information and mobile terminal
CN106339862A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Information processing method and mobile terminal
WO2018045874A1 (en) * 2016-09-12 2018-03-15 广东欧珀移动通信有限公司 Method for information processing and related product

Cited By (1)

* 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

Also Published As

Publication number Publication date
CN110879733B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
WO2019233212A1 (en) Text identification method and device, mobile terminal, and storage medium
CN107256707B (en) Voice recognition method, system and terminal equipment
JP6718978B2 (en) System language switching method and system language switching terminal device
KR102002024B1 (en) Method for processing labeling of object and object management server
CN109062715B (en) Method and device for determining memory clock frequency and terminal
CN104992096A (en) Data protection method and mobile terminal
CN108366052B (en) Processing method and system for verification short message
WO2018103402A1 (en) Wireless fidelity (wifi) scan method and related product
CN114726947A (en) Message display method and device, user terminal and readable storage medium
CN110188782B (en) Image similarity determining method and device, electronic equipment and readable storage medium
CN108062401B (en) Application recommendation method and device and storage medium
CN110879733B (en) Detection method, device, terminal and computer readable storage medium for electronic red envelope
CN116824609B (en) Document format detection method and device and electronic equipment
CN110912801B (en) Method, system and terminal device for detecting electronic red packet
CN109271543B (en) Thumbnail display method and device, terminal and computer-readable storage medium
CN114510305B (en) Model training method and device, storage medium and electronic equipment
CN113779559B (en) Method, device, electronic equipment and medium for identifying cheating website
CN113111200B (en) Method, device, electronic equipment and storage medium for auditing picture files
CN103914225A (en) Information processing method and information processing device
CN109583453B (en) Image identification method and device, data identification method and terminal
CN107360634B (en) Data transmission method and device and mobile terminal
CN109933969B (en) Verification code identification method and device, electronic equipment and readable storage medium
CN111476462A (en) Index data processing method, device, terminal and medium
CN115580682B (en) Method and device for determining connection and disconnection time of robot dialing
CN113674246B (en) Method, device, electronic equipment and storage medium for auditing picture files

Legal Events

Date Code Title Description
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