CN110875876B - Electronic red packet identification method, electronic red packet identification device and mobile terminal - Google Patents

Electronic red packet identification method, electronic red packet identification device and mobile terminal Download PDF

Info

Publication number
CN110875876B
CN110875876B CN201811025621.XA CN201811025621A CN110875876B CN 110875876 B CN110875876 B CN 110875876B CN 201811025621 A CN201811025621 A CN 201811025621A CN 110875876 B CN110875876 B CN 110875876B
Authority
CN
China
Prior art keywords
information
electronic red
view layout
red packet
packet 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.)
Active
Application number
CN201811025621.XA
Other languages
Chinese (zh)
Other versions
CN110875876A (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 CN201811025621.XA priority Critical patent/CN110875876B/en
Publication of CN110875876A publication Critical patent/CN110875876A/en
Application granted granted Critical
Publication of CN110875876B publication Critical patent/CN110875876B/en
Active 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/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)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (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)

Abstract

The application belongs to the technical field of mobile terminals, and provides an electronic red packet identification method, an electronic red packet identification device, a mobile terminal and a computer readable storage medium, which comprise: when a preset application program receives information, acquiring a view layout of the information; acquiring a view layout template of the electronic red packet information of the preset application program; and matching the view layout of the information with a view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information. The method and the device can identify the electronic red packet information received by the application program in time, and improve the success rate of electronic red packet robbing.

Description

Electronic red packet identification method, electronic red packet identification device and mobile terminal
Technical Field
The application belongs to the technical field of mobile terminals, and particularly relates to an electronic red packet identification method, an electronic red packet identification device, a mobile terminal and a computer readable storage medium.
Background
With the wide popularization of mobile terminals such as smart phones and tablet computers, most mobile terminals are provided with a large number of social application programs, such as WeChat, QQ and the like, electronic red packet functions in the application programs are more common, and the mobile terminals can enable people to communicate in a social network more interesting and have stronger interactivity. In order to facilitate a user to quickly get to the electronic red envelope, the application program with the electronic red envelope function generally needs to perform electronic red envelope identification when receiving information.
Disclosure of Invention
In view of this, the present application provides an electronic red envelope identification method, an electronic red envelope identification device, a mobile terminal, and a computer-readable storage medium, and the method and the device can identify the electronic red envelope information received by an application program in time, so as to improve the success rate of electronic red envelope robbing.
A first aspect of the present application provides an electronic red envelope identification method, including:
when a preset application program receives information, acquiring a view layout of the information;
acquiring a view layout template of the electronic red packet information of the preset application program;
and matching the view layout of the information with a view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information.
A second aspect of the present application provides an electronic red envelope identification apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring the view layout of information when a preset application program receives the information;
the second acquisition module is used for acquiring a view layout template of the electronic red packet information of the preset application program;
and the processing module is used for matching the view layout of the information with the view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information.
A third aspect of the present application provides a mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the electronic red packet identification method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the electronic red packet identification method according to the first aspect.
A fifth aspect of the present application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the electronic red packet identification method according to the first aspect as described above.
It can be seen from the above that, according to the scheme of the application, when the preset application receives the information, the view layout of the information and the view layout template of the electronic red packet information of the preset application can be acquired, the view layout of the information and the view layout template of the electronic red packet information are matched, and when the view layout of the information and the view layout template of the electronic red packet information are matched, the information is determined to be the electronic red packet information. According to the scheme, whether the view layout of the information received by the preset application program is matched with the view layout template of the electronic red packet information or not is judged, whether the received information is the electronic red packet information or not can be effectively identified, the electronic red packet information received by the preset application program is timely identified, and the success rate of electronic red packet robbery is 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 flow chart illustrating an implementation of an electronic red packet identification method according to an embodiment of the present application;
FIG. 2 is an exemplary diagram of a WeChat electronic Red packet;
fig. 3 is a schematic flow chart illustrating an implementation of an electronic red packet identification method according to a second embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation of an electronic red packet identification method according to a third embodiment of the present application;
FIG. 5 is an exemplary diagram of a tree structure of a view layout of information;
FIG. 6 is a schematic diagram of electronic red packet identification provided in the fourth embodiment of the present application;
fig. 7 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application;
fig. 8 is a schematic diagram of a mobile terminal according to a sixth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
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 any and all possible combinations of one or more of the associated listed items and includes such combinations.
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 particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the 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 this embodiment.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic view of an implementation flow of an electronic red packet identification method provided in an embodiment of the present application, where the electronic red packet identification method is applied to a mobile terminal, as shown in the figure, the electronic red packet identification method may include the following steps:
step S101, when a preset application program receives information, obtaining the view layout of the information.
The preset application program refers to an application program of a certain type or having a certain function selected by a user from application programs installed in the mobile terminal, for example, an application program having an electronic packet capturing/generating function, such as WeChat, Paibao, QQ, and the like. Optionally, the user may modify the selected application according to actual needs.
In the embodiment of the application, when it is detected that a preset application program is started, whether the preset application program receives information or not can be detected in a background, and when it is detected that the preset application program receives the information, a view layout of the information is acquired; and when detecting that the preset application program does not receive the information, continuing to detect. Wherein a View of information refers to a View of information, typically consisting of a plurality of first views, such as "pick-up Red envelope", "WeChat Red envelope", "May you like to buy money, great Gui! "and red envelope small figures, etc. are all the first views of the electronic red envelope that constitutes the WeChat. The view layout of the information may refer to a layout of a plurality of first views constituting a view of the information, including but not limited to a position of the plurality of first views in the view of the information and a type of the plurality of first views, and the like.
And step S102, acquiring a view layout template of the electronic red packet information of the preset application program.
In this embodiment of the application, the number of the preset application programs may be one or more, and when the number of the preset application programs is multiple, because the view layouts of the electronic red packet information corresponding to different preset application programs (for example, WeChat and QQ) may be different, in order to be able to identify the electronic red packet information received by the different preset application programs, view layout templates of corresponding electronic red packet information may be set for the different preset application programs, that is, each preset application program has a view layout template of corresponding electronic red packet information. The view layout template of the electronic red packet information of the preset application program is a standard for identifying whether the information received by the preset application program is the electronic red packet information.
And step S103, matching the view layout of the information with the view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information.
In this embodiment of the application, matching the view layout of the information with the view layout template of the electronic red packet information may refer to matching positions of a plurality of first views in the view layout of the information with positions of a plurality of first views in the view layout of the electronic red packet information, and matching types of the plurality of first views in the view layout of the information with types of first views at the same positions in the view layout of the electronic red packet information, respectively, and if the positions of the plurality of first views in the view layout of the information are the same as the positions of the plurality of first views in the view layout of the electronic red packet information, and the types of the plurality of first views in the view layout of the information are the same as the types of first views at the same positions in the view layout of the electronic red packet information, determining that the view layout of the information matches with the view layout template of the electronic red packet information, and the information received by the preset application program is electronic red packet information.
In the embodiment of the application, after the information is determined to be the electronic red packet information, if the mobile terminal is in the preset state, the electronic red packet information can be directly displayed on the screen of the mobile terminal and corresponding voice prompt information is sent out, so that a user can quickly grab the electronic red packet. The preset state may refer to a state in which a user cannot constantly pay attention to a preset application program in the mobile terminal, and the preset state includes, but is not limited to, a screen-off state, a screen-locking state, a screen-on state, a background running of the preset application program, and the like. The voice prompt information is used for prompting the user that a red packet comes.
In the embodiment of the application, after the information is determined to be the electronic red packet information, the efficiency of robbing the electronic red packet can be improved by improving the processing performance of the mobile terminal, so that the time of robbing the electronic red packet is shortened, and the success rate of robbing the electronic red packet is improved. The improvement of the processing performance of the mobile terminal includes, but is not limited to, improving the operating frequency, the core number, and the like of a central processing unit of the mobile terminal.
According to the embodiment of the application, whether the view layout of the information received by the preset application program is matched with the view layout template of the electronic red packet information or not is judged, whether the received information is the electronic red packet information or not can be effectively identified, the electronic red packet information received by the preset application program is timely identified, and the success rate of electronic red packet robbery is improved.
Referring to fig. 3, which is a schematic view of an implementation flow of an electronic red packet identification method provided in the second embodiment of the present application, where the electronic red packet identification method is applied to a mobile terminal, as shown in the figure, the electronic red packet identification method may include the following steps:
step S301, when a preset application program receives information, acquiring a view layout of the information.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S302, the system type of the mobile terminal is obtained.
Step S303, acquiring a view layout template of the electronic red packet information of the preset application program according to the system type of the mobile terminal.
In the embodiment of the application, since the preset application program has different view layouts of the electronic red packet information received under different system types, different view layout templates of the electronic red packet information can be set for different system types. After the view layout of the information received by the preset application program is obtained, according to the current system type of the mobile terminal, a view layout template of the electronic red packet information of the preset application program corresponding to the system type is obtained, and whether the information received by the preset application program is the electronic red packet information is identified by using the view layout template of the electronic red packet information. The system type of the mobile terminal may refer to a type of an operating system of the mobile terminal, including but not limited to an Android system, an IOS system, a Symbian system, and the like.
Optionally, before obtaining the view layout template of the electronic red packet information of the preset application program according to the system type of the mobile terminal, the method further includes:
establishing corresponding relations between M different system types and N different view layout templates of the electronic red packet information of the preset application program, wherein N is an integer larger than zero, and M is an integer larger than or equal to N;
correspondingly, according to the system type of the mobile terminal, the obtaining of the view layout template of the electronic red packet information of the preset application program includes:
and searching the view layout template of the electronic red packet information corresponding to the system type of the mobile terminal from the corresponding relation between the M different system types and the N different view layout templates of the electronic red packet information of the preset application program.
Optionally, before the establishing of the correspondence between the M different system types and the N different view layout templates of the electronic red packet information of the preset application program, the method further includes:
acquiring electronic red packet information respectively received by the preset application program under M different system types;
and acquiring a view layout template of the electronic red packet information corresponding to each system type.
In this embodiment of the application, when obtaining the view layout templates of the electronic red packet information corresponding to different system types, the view layout templates of the electronic red packet information corresponding to each system type may be obtained first, where the electronic red packet information is received by a preset application program under M different system types, and then the view layout templates of the electronic red packet information received by the preset application program under each system type are obtained, where the view layout templates of the electronic red packet information are the view layout templates of the electronic red packet information corresponding to each system type. For example, the wechat receives the electronic red packet information respectively under the Android system, the IOS system and the Symbian system, the view layout of the electronic red packet information received by the wechat under the Android system is a view layout template of the electronic red packet information corresponding to the Android system, the view layout of the electronic red packet information received by the wechat under the IOS system is a view layout template of the electronic red packet information corresponding to the IOS system, and the view layout of the electronic red packet information received by the wechat under the Symbian system is a view layout template of the electronic red packet information corresponding to the Symbian system.
Step S304, matching the view layout of the information with the view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information.
The step is the same as step S103, and reference may be made to the related description of step S103, which is not described herein again.
According to the embodiment of the application, different view layout templates of the electronic red packet information are set for different system types, when the preset application installed on the mobile terminal receives the information, the view layout template of the electronic red packet information which is more matched with the current system type of the mobile terminal can be obtained, and therefore the identification accuracy of the electronic red packet is improved.
Referring to fig. 4, which is a schematic view of an implementation flow of an electronic red packet identification method provided in the third embodiment of the present application, where the electronic red packet identification method is applied to a mobile terminal, as shown in the figure, the electronic red packet identification method may include the following steps:
step S401, when the preset application program receives the information, acquiring the view layout of the information.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S402, converting the view layout of the information into a tree structure.
In the embodiment of the application, in order to improve the matching efficiency between the view layout of the information and the view layout template of the electronic red packet information, the view layout of the information may be converted into a tree structure, and the view layout template of the electronic red packet information is also of the tree structure, so that by comparing the tree structure of the view layout of the information with the tree structure of the view layout template of the electronic red packet information, whether the tree structure of the view layout of the information is matched with the tree structure of the view layout template of the electronic red packet information is rapidly judged. Fig. 5 is a diagram showing an example of a tree structure of a view layout of information. The view layout of the information may be converted into a tree structure according to a preset rule, where the preset rule may be a layout order of the plurality of first views when the views of the information are composed.
Step S403, acquiring a view layout template of the electronic red packet information of the preset application program.
The step is the same as step S102, and reference may be made to the related description of step S102, which is not repeated herein.
Step S404, if the number of layers of the tree structure of the view layout of the information is the same as the number of layers of the tree structure of the view layout template of the electronic red packet information, and the tree structure of the view layout of the information is the same as the type of the node at the same position in the same hierarchy level as the tree structure of the view layout template of the electronic red packet information, determining that the information is the electronic red packet information. Wherein one node indicates one view.
In the embodiment of the present application, the number of layers of the tree structure refers to the total number of layers of the tree structure, and the number of layers of the tree structure of the view layout of information shown in fig. 5 is five. The hierarchy is a hierarchy of a tree structure, such as the first level, the second level, etc. in fig. 5. A node refers to the first view contained in each level, and a level may include one or more first views.
Optionally, if the number of layers of the tree structure of the view layout of the information is the same as the number of layers of the tree structure of the view layout template of the electronic red packet information, and the tree structure of the view layout of the information is the same as the type of a node at the same position in the same hierarchy level as the tree structure of the view layout template of the electronic red packet information, determining that the information is the electronic red packet information includes:
traversing the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information respectively according to a preset traversal path to acquire the hierarchy of the traversed node in the tree structure of the view layout of the information and the type of the node, and the hierarchy of the traversed node in the tree structure of the view layout template of the electronic red packet information and the type of the node;
and if the levels of the nodes traversed in the tree structure of the view layout of the information are the same as the levels of the nodes traversed in the tree structure of the view layout template of the electronic red packet information, and the types of the nodes traversed in the same level of the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information are the same, determining that the information is the electronic red packet information.
In the embodiment of the present application, there exists a first view representing the electronic red packet in the view layout template of the electronic red packet, for example, "WeChat red packet" in fig. 2, and the preset traversal path may refer to a path identified to the first view representing the electronic red packet, such as a path within a dotted line in fig. 5. Traversing the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information through a preset traversal path, so that whether the tree structure of the view layout of the information is matched with the view layout template of the electronic red packet information can be quickly judged without traversing the whole tree structures of the view layout of the information and the view layout template of the electronic red packet information, and the matching efficiency of the view layout of the information and the view layout template of the electronic red packet information is improved.
The method and the device for recognizing the electronic red packet convert the view layout of the information received by the preset application program into the tree structure, and can quickly recognize the electronic red packet and improve the recognition efficiency of the electronic red packet by judging whether the tree structure of the view layout of the information is matched with the view layout template of the electronic red packet information.
Fig. 6 is a schematic view of an electronic red packet identification device provided in the fourth embodiment of the present application, and for convenience of description, only the relevant portions of the fourth embodiment of the present application are shown.
The electronic red packet identification device comprises:
a first obtaining module 61, configured to obtain a view layout of information when a preset application receives the information;
a second obtaining module 62, configured to obtain a view layout template of the electronic red packet information of the preset application program;
and the processing module 63 is configured to match the view layout of the information with the view layout template of the electronic red packet information, and determine that the information is the electronic red packet information if the view layout of the information is matched with the view layout template of the electronic red packet information.
Optionally, the electronic red packet identification apparatus further includes:
a third obtaining module 64, configured to obtain a system type of the mobile terminal;
the second obtaining module 62 is specifically configured to:
and acquiring a view layout template of the electronic red packet information of the preset application program according to the system type of the mobile terminal.
Optionally, the electronic red packet identification apparatus further includes:
a relationship establishing module 65, configured to establish a corresponding relationship between M different system types and N different view layout templates of the electronic red packet information of the preset application program, where N is an integer greater than zero, and M is an integer greater than or equal to N;
the second obtaining module 62 is specifically configured to:
and searching the view layout template of the electronic red packet information corresponding to the system type of the mobile terminal from the corresponding relation between the M different system types and the N different view layout templates of the electronic red packet information of the preset application program.
Optionally, the electronic red packet identification apparatus further includes:
a fourth obtaining module 66, configured to obtain electronic red packet information that is respectively received by the preset application program under M different system types;
a fifth obtaining module 67, configured to obtain a view layout template of the electronic red packet information corresponding to each system type.
Optionally, the electronic red packet identification apparatus further includes:
a structure conversion module 68, configured to convert the view layout of the information into a tree structure.
Optionally, the processing module 63 is specifically configured to:
and if the number of layers of the tree structure of the view layout of the information is the same as that of the tree structure of the view layout template of the electronic red packet information, and the types of nodes at the same positions in the same layer level of the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information are the same, determining that the information is the electronic red packet information, wherein one node indicates one view, and the view layout template of the electronic red packet information is of the tree structure.
Optionally, the processing module 63 includes:
the traversal unit is used for respectively traversing the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information according to a preset traversal path, and acquiring the hierarchy of a node traversed in the tree structure of the view layout of the information and the type of the node, and the hierarchy of the node traversed in the tree structure of the view layout template of the electronic red packet information and the type of the node;
the determining unit is configured to determine that the information is the electronic red envelope information if the levels of nodes traversed in the tree structure of the view layout of the information are the same as the levels of nodes traversed in the tree structure of the view layout template of the electronic red envelope information, and the types of the nodes traversed in the same level in the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red envelope information are the same.
The electronic red packet identification device provided in the embodiment of the present application can be applied to the first method embodiment, the second method embodiment and the third method embodiment, and for details, reference is made to the description of the first method embodiment, the second method embodiment and the third method embodiment, and details are not described herein again.
Fig. 7 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application. The mobile terminal as shown in the figure may include: one or more processors 701 (only one shown); one or more input devices 702 (only one shown), one or more output devices 703 (only one shown), and memory 704. The processor 701, the input device 702, the output device 703, and the memory 704 are connected by a bus 705. The memory 704 is used for storing instructions and the processor 701 is used for executing the instructions stored by the memory 704. Wherein:
the processor 701 is configured to, when a preset application receives information, obtain a view layout of the information; acquiring a view layout template of the electronic red packet information of the preset application program; and matching the view layout of the information with a view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information.
Optionally, the processor 701 is further configured to:
acquiring a system type of the mobile terminal;
and acquiring a view layout template of the electronic red packet information of the preset application program according to the system type of the mobile terminal.
Optionally, the processor 701 is further configured to:
establishing corresponding relations between M different system types and N different view layout templates of the electronic red packet information of the preset application program, wherein N is an integer larger than zero, and M is an integer larger than or equal to N;
and searching the view layout template of the electronic red packet information corresponding to the system type of the mobile terminal from the corresponding relation between the M different system types and the N different view layout templates of the electronic red packet information of the preset application program.
Optionally, the processor 701 is further configured to:
acquiring electronic red packet information respectively received by the preset application program under M different system types;
and acquiring a view layout template of the electronic red packet information corresponding to each system type.
Optionally, the processor 701 is further configured to:
and converting the view layout of the information into a tree structure.
Optionally, the processor 701 is specifically configured to:
and if the number of layers of the tree structure of the view layout of the information is the same as the number of layers of the tree structure of the view layout template of the electronic red packet information, and the types of nodes at the same positions in the same layer level of the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information are the same, determining that the information is the electronic red packet information, wherein one node indicates one view.
Optionally, the processor 701 is specifically configured to:
traversing the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information respectively according to a preset traversal path to acquire the hierarchy of the traversed node in the tree structure of the view layout of the information and the type of the node, and the hierarchy of the traversed node in the tree structure of the view layout template of the electronic red packet information and the type of the node;
and if the levels of the nodes traversed in the tree structure of the view layout of the information are the same as the levels of the nodes traversed in the tree structure of the view layout template of the electronic red packet information, and the types of the nodes traversed in the same level of the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information are the same, determining that the information is the electronic red packet information.
It should be understood that, in the embodiment of the present Application, the Processor 701 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 702 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. The output devices 703 may include a display (LCD, etc.), speakers, a data transmission interface, and so forth.
The memory 704 may include both read-only memory and random-access memory and provides instructions and data to the processor 701. A portion of the memory 704 may also include non-volatile random access memory. For example, the memory 704 may also store device type information.
In a specific implementation, the processor 701, the input device 702, the output device 703, and the memory 704 described in this embodiment may execute the implementation described in the embodiment of the electronic red packet identification method provided in this embodiment, or may execute the implementation described in the electronic red packet identification apparatus described in the fourth embodiment, which is not described herein again.
Fig. 8 is a schematic diagram of a mobile terminal according to a sixth embodiment of the present application. As shown in fig. 8, the mobile terminal 8 of this embodiment includes: a processor 80, a memory 81 and a computer program 82 stored in said memory 81 and executable on said processor 80. The processor 80, when executing the computer program 82, implements the steps in the above-described embodiments of the electronic red packet identification method, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 61 to 68 shown in fig. 6.
Illustratively, the computer program 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80 to accomplish 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 of the computer program 82 in the mobile terminal 8. For example, the computer program 82 may be divided into a first obtaining module, a second obtaining module, a processing module, a third obtaining module, a relationship establishing module, a fourth obtaining module, a fifth obtaining module, and a structure converting module, where the specific functions of the modules are as follows:
the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring the view layout of information when a preset application program receives the information;
the second acquisition module is used for acquiring a view layout template of the electronic red packet information of the preset application program;
and the processing module is used for matching the view layout of the information with the view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information.
Optionally, the third obtaining module is configured to obtain a system type of the mobile terminal;
the second obtaining module is specifically configured to:
and acquiring a view layout template of the electronic red packet information of the preset application program according to the system type of the mobile terminal.
Optionally, the relationship establishing module is configured to establish a correspondence between M different system types and N different view layout templates of the electronic red packet information of the preset application program, where N is an integer greater than zero, and M is an integer greater than or equal to N;
the second obtaining module is specifically configured to:
and searching the view layout template of the electronic red packet information corresponding to the system type of the mobile terminal from the corresponding relation between the M different system types and the N different view layout templates of the electronic red packet information of the preset application program.
Optionally, the fourth obtaining module is configured to obtain electronic red packet information that is respectively received by the preset application program under M different system types;
and the fifth acquisition module is used for acquiring the view layout template of the electronic red packet information corresponding to each system type.
Optionally, the structure conversion module is configured to convert the view layout of the information into a tree structure.
Optionally, the processing module is specifically configured to:
and if the number of layers of the tree structure of the view layout of the information is the same as that of the tree structure of the view layout template of the electronic red packet information, and the types of nodes at the same positions in the same layer level of the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information are the same, determining that the information is the electronic red packet information, wherein one node indicates one view, and the view layout template of the electronic red packet information is of the tree structure.
Optionally, the processing module includes:
the traversal unit is used for respectively traversing the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information according to a preset traversal path, and acquiring the hierarchy of a node traversed in the tree structure of the view layout of the information and the type of the node, and the hierarchy of the node traversed in the tree structure of the view layout template of the electronic red packet information and the type of the node;
the determining unit is configured to determine that the information is the electronic red envelope information if the levels of nodes traversed in the tree structure of the view layout of the information are the same as the levels of nodes traversed in the tree structure of the view layout template of the electronic red envelope information, and the types of the nodes traversed in the same level in the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red envelope information are the same.
The mobile terminal 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The mobile terminal may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a mobile terminal 8 and does not constitute a limitation of the mobile terminal 8 and may include more or less components than those shown, or some of the components may be combined, or different components, e.g., the mobile terminal may also include input-output devices, network access devices, buses, etc.
The processor 80 may be a central processing unit CPU, but may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, 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 81 may be an internal storage unit of the mobile terminal 8, such as a hard disk or a memory of the mobile terminal 8. The memory 81 may also be an external storage device of the mobile terminal 8, 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 mobile terminal 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the mobile terminal 8. The memory 81 is used for storing the computer programs and other programs and data required by the mobile terminal. The memory 81 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 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/mobile terminal and method may be implemented in other ways. For example, the above-described apparatus/mobile terminal embodiments 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, multiple 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, 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 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, and the like. It should be noted that the computer readable medium may contain 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 does not include electrical carrier signals and telecommunications signals as is required by 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. An electronic red envelope identification method, comprising:
when a preset application program receives information, acquiring a view layout of the information; the view layout of the information refers to the layout of a plurality of first views constituting the view of the information, including the positions of the plurality of first views in the view of the information;
acquiring a view layout template of the electronic red packet information of the preset application program;
and matching the view layout of the information with a view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information.
2. The electronic red envelope identification method according to claim 1, further comprising, before acquiring the view layout template of the electronic red envelope information of the preset application program:
acquiring a system type of the mobile terminal;
correspondingly, the obtaining of the view layout template of the electronic red packet information of the preset application program comprises:
and acquiring a view layout template of the electronic red packet information of the preset application program according to the system type of the mobile terminal.
3. The electronic red envelope identification method of claim 2, before obtaining the view layout template of the electronic red envelope information of the preset application program according to the system type of the mobile terminal, further comprising:
establishing corresponding relations between M different system types and N different view layout templates of the electronic red packet information of the preset application program, wherein N is an integer larger than zero, and M is an integer larger than or equal to N;
correspondingly, according to the system type of the mobile terminal, the obtaining of the view layout template of the electronic red packet information of the preset application program includes:
and searching the view layout template of the electronic red packet information corresponding to the system type of the mobile terminal from the corresponding relation between the M different system types and the N different view layout templates of the electronic red packet information of the preset application program.
4. The electronic red envelope identification method of claim 3, before establishing correspondence between M different system types and N different view layout templates of the electronic red envelope information of the preset application program, further comprising:
acquiring electronic red packet information respectively received by the preset application program under M different system types;
and acquiring a view layout template of the electronic red packet information corresponding to each system type.
5. The electronic red envelope identification method of claim 1, further comprising, after obtaining the view layout of the information:
and converting the view layout of the information into a tree structure.
6. The method according to claim 5, wherein the view layout template of the electronic red packet information is a tree structure, and the determining that the information is the electronic red packet information if the view layout of the information matches the view layout template of the electronic red packet information comprises:
and if the number of layers of the tree structure of the view layout of the information is the same as the number of layers of the tree structure of the view layout template of the electronic red packet information, and the types of nodes at the same positions in the same layer level of the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information are the same, determining that the information is the electronic red packet information, wherein one node indicates one view.
7. The method according to claim 6, wherein the determining that the information is the electronic red packet information if the number of layers of the tree structure of the view layout of the information is the same as the number of layers of the tree structure of the view layout template of the electronic red packet information, and the tree structure of the view layout of the information is the same as the type of the node at the same position in the same layer level as the tree structure of the view layout template of the electronic red packet information comprises:
traversing the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information respectively according to a preset traversal path to acquire the hierarchy of the traversed node in the tree structure of the view layout of the information and the type of the node, and the hierarchy of the traversed node in the tree structure of the view layout template of the electronic red packet information and the type of the node;
and if the levels of the nodes traversed in the tree structure of the view layout of the information are the same as the levels of the nodes traversed in the tree structure of the view layout template of the electronic red packet information, and the types of the nodes traversed in the same level of the tree structure of the view layout of the information and the tree structure of the view layout template of the electronic red packet information are the same, determining that the information is the electronic red packet information.
8. An electronic red envelope identification device, comprising:
the system comprises a first acquisition module, a second acquisition module and a display module, wherein the first acquisition module is used for acquiring the view layout of information when a preset application program receives the information; the view layout of the information refers to the layout of a plurality of first views constituting the view of the information, including the positions of the plurality of first views in the view of the information;
the second acquisition module is used for acquiring a view layout template of the electronic red packet information of the preset application program;
and the processing module is used for matching the view layout of the information with the view layout template of the electronic red packet information, and if the view layout of the information is matched with the view layout template of the electronic red packet information, determining that the information is the electronic red packet information.
9. A mobile terminal comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor, when executing said computer program, carries out the steps of the electronic red packet identification method according to any one of claims 1 to 7.
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 electronic red packet identification method according to any one of claims 1 to 7.
CN201811025621.XA 2018-09-04 2018-09-04 Electronic red packet identification method, electronic red packet identification device and mobile terminal Active CN110875876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811025621.XA CN110875876B (en) 2018-09-04 2018-09-04 Electronic red packet identification method, electronic red packet identification device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811025621.XA CN110875876B (en) 2018-09-04 2018-09-04 Electronic red packet identification method, electronic red packet identification device and mobile terminal

Publications (2)

Publication Number Publication Date
CN110875876A CN110875876A (en) 2020-03-10
CN110875876B true CN110875876B (en) 2022-05-27

Family

ID=69716026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811025621.XA Active CN110875876B (en) 2018-09-04 2018-09-04 Electronic red packet identification method, electronic red packet identification device and mobile terminal

Country Status (1)

Country Link
CN (1) CN110875876B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502831B1 (en) * 2008-03-10 2009-03-10 International Business Machines Corporation System and method of sending and receiving categorized messages in instant messaging environment
CN105518638A (en) * 2014-08-11 2016-04-20 华为技术有限公司 Method and device for loading view of application and electronic terminal
CN104199934B (en) * 2014-09-05 2017-07-04 北京奇虎科技有限公司 The method and device that advertisement for application program is intercepted
CN106156212A (en) * 2015-04-22 2016-11-23 阿里巴巴集团控股有限公司 A kind of collecting method and system and terminal thereof and server
CN106909544A (en) * 2015-12-22 2017-06-30 北京奇虎科技有限公司 A kind of data processing method and device
CN107665187A (en) * 2016-07-28 2018-02-06 百度在线网络技术(北京)有限公司 A kind of method and apparatus for judging mobile device application interface and whether changing
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106527892B (en) * 2016-11-04 2020-04-07 惠州Tcl移动通信有限公司 Screen capturing method and system of electronic equipment
CN107861655B (en) * 2017-11-01 2020-07-07 平安科技(深圳)有限公司 Control matching method and device, computer equipment and storage medium
CN108345485B (en) * 2018-01-30 2021-05-07 口碑(上海)信息技术有限公司 Identification method and device for interface view

Also Published As

Publication number Publication date
CN110875876A (en) 2020-03-10

Similar Documents

Publication Publication Date Title
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
CN110225104B (en) Data acquisition method and device and terminal equipment
CN107451244B (en) Folder naming method, mobile terminal and computer readable storage medium
CN106991179B (en) Data deleting method and device and mobile terminal
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
CN107317928B (en) Information processing method, mobile terminal and computer readable storage medium
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
US10359838B2 (en) Hand and finger line grid for hand based interactions
CN107679222B (en) Picture processing method, mobile terminal and computer readable storage medium
CN107783932B (en) Information processing method of calculator, mobile terminal and computer readable storage medium
CN110874729B (en) Switching method and switching device for electronic red packet identification strategy and mobile terminal
CN108521460B (en) Information pushing method and device, mobile terminal and computer readable storage medium
CN109492249B (en) Rapid generation method and device of design drawing and terminal equipment
CN112711955A (en) NFC information transmission method, NFC information transmission device and NFC terminal
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN108536512B (en) Interface switching method and device and terminal equipment
CN110875876B (en) Electronic red packet identification method, electronic red packet identification device and mobile terminal
CN106778296B (en) Access method, device and terminal for access object
CN111352357B (en) Robot control method and device and terminal equipment
CN110245016B (en) Data processing method, system, device and terminal equipment
CN110688035B (en) Photo album processing method, photo album processing device and mobile terminal
CN110874730B (en) Information processing method, information processing device and mobile terminal
CN110874723B (en) Electronic red envelope detection method, electronic red envelope detection device and mobile terminal
CN108985758B (en) Data processing method, data processing system and terminal equipment

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