[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110875873B - Information monitoring method, information monitoring device and mobile terminal - Google Patents

Information monitoring method, information monitoring device and mobile terminal Download PDF

Info

Publication number
CN110875873B
CN110875873B CN201811020589.6A CN201811020589A CN110875873B CN 110875873 B CN110875873 B CN 110875873B CN 201811020589 A CN201811020589 A CN 201811020589A CN 110875873 B CN110875873 B CN 110875873B
Authority
CN
China
Prior art keywords
information
preset
bitmap
content
monitoring
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.)
Expired - Fee Related
Application number
CN201811020589.6A
Other languages
Chinese (zh)
Other versions
CN110875873A (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 CN201811020589.6A priority Critical patent/CN110875873B/en
Publication of CN110875873A publication Critical patent/CN110875873A/en
Application granted granted Critical
Publication of CN110875873B publication Critical patent/CN110875873B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • 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/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • 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/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
    • 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
    • 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/234Monitoring or handling of messages for tracking messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Finance (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application belongs to the technical field of mobile terminals, and provides an information monitoring method, an information monitoring device, a mobile terminal and a computer readable storage medium, which comprise: monitoring whether a preset application program receives information or not; if the preset application program is monitored to receive information, monitoring whether a list view control of a chat interface has data change; and if the data change of the ListView control of the chat interface is monitored, determining the information as the chat information in the preset application program. By the method and the device, the chat information in the application program can be monitored in time.

Description

Information monitoring method, information monitoring device and mobile terminal
Technical Field
The present application belongs to the technical field of mobile terminals, and in particular, to an information monitoring method, an information monitoring device, a mobile terminal, and a computer-readable storage medium.
Background
With the widespread popularization of mobile terminals such as smartphones and tablet computers, most of the mobile terminals are installed with a large number of social application programs, such as WeChat, Paibao, QQ and the like, and the application programs have some other additional functions, such as an electronic red envelope function, besides the functions of social interaction and payment. The electronic red envelope function is usually used in a friend chat interface or a chat group interface of an application program, and can enable people to communicate in the application program more interesting and have stronger interactivity.
Disclosure of Invention
In view of the above, the present application provides an information monitoring method, an information monitoring apparatus, a mobile terminal and a computer-readable storage medium, and chat information in an application program.
A first aspect of the present application provides an information monitoring method, including:
monitoring whether a preset application program receives information or not;
if the preset application program is monitored to receive information, monitoring whether a list view control of a chat interface has data change;
and if the data change of the ListView control of the chat interface is monitored, determining the information as the chat information in the preset application program.
A second aspect of the present application provides an information monitoring apparatus, including:
the information monitoring module is used for monitoring whether the preset application program receives information or not;
the data monitoring module is used for monitoring whether the list view control of the chat interface has data change or not if the preset application program is monitored to receive information;
and the information determining module is used for determining the information as the chat information in the preset application program if the data change of the ListView control of the chat interface is monitored.
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, the processor implementing the steps of the information monitoring method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of the information monitoring method according to the first aspect described above.
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 information monitoring method as described in the first aspect above.
Therefore, according to the scheme, whether a preset application program receives information is monitored, when the preset application program receives the information, whether the data change exists in the ListView control of the chat interface is monitored, and if the data change exists in the ListView control of the chat interface, the information is determined to be the chat information in the preset application program. According to the scheme, whether the information received by the preset application program is the chat information can be timely monitored by monitoring whether the data change exists in the ListView control of the chat interface, so that the information which is possibly the electronic red packet is screened out before the electronic red packet identification is carried out on the received information, and the identification efficiency of the electronic red packet 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 information monitoring method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of an information monitoring method according to a second embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of an information monitoring method according to a third embodiment of the present application;
fig. 4 is a schematic view of an information monitoring apparatus according to a fourth embodiment of the present application;
fig. 5 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application;
fig. 6 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 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 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 the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
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 information monitoring method provided in an embodiment of the present application, where the information monitoring method is applied to a mobile terminal, as shown in the figure, the information monitoring method may include the following steps:
step S101, monitoring whether a preset application receives information.
In this embodiment of the application, the preset application refers to an application of a certain type or having a certain function selected by a user from applications installed in the mobile terminal, for example, an application having an electronic mail grabbing/generating function, such as WeChat, Paibao, QQ, and the like. Optionally, the user may modify the selected application according to actual needs.
In this embodiment of the present application, when it is detected that a preset application is started (which may be running in the foreground or running in the background), whether the preset application receives information may be monitored in the background.
And S102, if the preset application program is monitored to receive information, monitoring whether the list view control of the chat interface has data change.
Where the ListView control can display items using four different views, the items can be grouped into columns with or without column headers, and accompanying icons and text are displayed. ListView controls can be used to organize the list entries of Listltem objects into one of four views, namely large icons, small icons, lists, reports, etc., the View property determines which View is used by the controls in the lists to display items, and the LabelWrap property can also be used to control whether the labels associated with the items in the lists can be displayed in a replaceable manner.
In the embodiment of the present application, since different ListView controls are used for different interfaces in a preset application (for example, the preset application is WeChat, and a chat interface in WeChat and a friend circle interface use different ListView controls), when it is monitored that the preset application receives information, it is possible to determine whether the information received by the preset application is chat information by monitoring whether data change exists in the ListView controls of the chat interface of the preset application.
In the embodiment of the application, a chat information monitoring function can be set in a preset application program, when the preset application program is detected to be started, whether the chat information monitoring function of the preset application program is started or not is detected, and if the chat information monitoring function of the preset application program is started, whether data change exists in a ListView control of a chat interface of the preset application program is monitored; if the chat information monitoring function of the preset application program is not started, whether a ListView control of a chat interface of the preset application program has data change or not is not monitored, namely whether the information received by the preset application program is chat information or not is not monitored. The chat information monitoring function of the preset application program is a function of monitoring whether the information received by the preset application program is chat information. The chat information may refer to information displayed on the chat interface, and includes, but is not limited to, information sent by a user on a friend chat interface, information sent by a friend of an account of the user, information sent by a group member on a chat group interface, and the like.
And step S103, if the data change of the ListView control of the chat interface is monitored, determining the information as the chat information in the preset application program.
In the embodiment of the application, if it is monitored that the data change exists in the ListView control of the chat interface of the preset application program, determining that the information is the chat information in the preset application program, that is, the information received by the preset application program may be electronic red packet information, because the electronic red packet information is usually displayed on the chat interface; if the ListView control of the chat interface of the preset application program is monitored to have no data change, the information is determined to be not the chat information in the preset application program or the electronic red packet information, namely the information which is not the electronic red packet information can be identified by monitoring whether the ListView control of the chat interface of the preset application program has the data change.
According to the embodiment of the application, whether the information received by the preset application program is the chat information or not can be timely monitored by monitoring whether the data of the ListView control of the chat interface is changed or not, so that the information which is possibly the electronic red packet is screened out before the electronic red packet identification is carried out on the information received by the preset application program, and the identification efficiency of the electronic red packet is improved.
Referring to fig. 2, it is a schematic diagram of an implementation flow of an information monitoring method provided in the second embodiment of the present application, where the information monitoring method is applied to a mobile terminal, and as shown in the figure, the information monitoring method may include the following steps:
step S201, monitoring whether the preset application receives 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 S202, if the preset application program is monitored to receive the information, whether the ListView control of the chat interface has data change is monitored.
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 S203, if the data change of the ListView control of the chat interface is monitored, determining the information as the chat information in the preset application program.
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.
And step S204, monitoring the content of a bitmap in the image view ImageView control.
In the embodiment of the application, the image View ImageView control is directly inherited from a View class, and the main function of the image View ImageView control is used for displaying pictures. Additionally, Drawable objects can also be displayed using the ImageView control. The ImageView control can be applied to any layout, and Android provides operations for scaling, rotating, coloring and the like.
Optionally, the content of the bitmap in the monitored image view ImageView control includes:
acquiring the height h and the width W of a view of the information and the width W of a view of a first interface, wherein the first interface is an interface for displaying the information;
calculating a ratio of a height h to a width w of a view of the information
Figure BDA0001787204650000071
And the ratio of the width W of the view of the information to the width W of the view of the first interface
Figure BDA0001787204650000072
If the ratio is
Figure BDA0001787204650000073
Within a first predetermined range and a ratio
Figure BDA0001787204650000074
And monitoring the content of bitmap in the ImageView control if the bitmap is located in a second preset range.
In the embodiment of the application, the monitoring is carried outBefore the content of bitmap in the ImageView control, the ratio of the height h to the width w of the view of the information can be determined
Figure BDA0001787204650000075
And the ratio of the width W of the view of the information to the width W of the view of the first interface
Figure BDA0001787204650000076
And preprocessing the information received by the preset application program, and screening out the information which is possibly the electronic red packet information. If the ratio is
Figure BDA0001787204650000077
Within a first predetermined range and a ratio
Figure BDA0001787204650000078
If the information is located in the second preset range, the information is determined to be possible electronic red packet information, and the content of a bitmap in the ImageView control can be monitored so as to further identify whether the information is the electronic red packet information; if the ratio is
Figure BDA0001787204650000081
Within a first predetermined range and a ratio
Figure BDA0001787204650000082
Not within a second predetermined range, or said ratio
Figure BDA0001787204650000083
Is not within the first predetermined range and has a ratio
Figure BDA0001787204650000084
Within a second predetermined range, or said ratio
Figure BDA0001787204650000085
Is not within the first predetermined range and has a ratio
Figure BDA0001787204650000086
And if the information is not located in the second preset range, determining that the information is not the electronic red packet information, and not monitoring the content of bitmap in the ImageView control. The first preset range and the second preset range are used for indicating whether the information received by the preset application program is possible to be electronic red packet information or not.
In this embodiment of the application, the heights and widths of the views of the electronic red packet information corresponding to different preset application programs may be different, and thus when setting the first preset range and the second preset range, different first preset ranges and different second preset ranges may be set for different preset application programs.
And S205, if the bitmap content in the ImageView control is a preset picture, determining that the information is electronic red packet information.
The preset picture may refer to identification information that is preset by a user and that can identify whether the information is electronic red packet information, including but not limited to an electronic red packet picture in the electronic red packet information. Optionally, the user may modify the selected preset picture according to actual needs.
In the embodiment of the application, different preset pictures can be preset for different preset application programs, the content of a bitmap in an ImageView control is obtained, the content of the bitmap in the ImageView control is compared with the preset picture corresponding to the preset application program, and if the content of the bitmap in the ImageView control is the preset picture, the information received by the preset application program is determined to be electronic red packet information; and if the content of the bitmap in the ImageView control is not the preset picture, determining that the information received by the preset application program is not the electronic red packet information.
Optionally, if the content of bitmap in the ImageView control is a preset picture, determining that the information is electronic red packet information includes:
if the content of the bitmap in the ImageView control is a preset picture, acquiring a color histogram of the content of the bitmap in the ImageView control;
calculating the similarity between the color histogram of the bitmap content in the ImageView control and a preset color histogram;
and if the similarity between the color histogram of the bitmap content in the ImageView control and the preset color histogram exceeds a preset threshold value, determining that the information is electronic red packet information.
In the embodiment of the application, in order to further improve the identification accuracy of the electronic red packet, when the content of the bitmap in the ImageView control is a preset picture, a color histogram of the content of the bitmap in the ImageView control can be acquired, and the information received by the preset application program is identified again according to the color histogram of the content of the bitmap in the ImageView control. The color histogram is used for describing the proportion of different colors.
In the embodiment of the application, the similarity between the color histogram of the content of the bitmap in the ImageView control and the preset color histogram is used for indicating the similarity between the color histogram of the content of the bitmap in the ImageView control and the preset color histogram, the Euclidean distance D between the color histogram of the content of the bitmap in the ImageView control and the preset color histogram can be calculated, and 1-D is used as the color histogram of the content of the bitmap in the ImageView control and the preset color histogram. The preset color histogram refers to a color histogram of an electronic red packet picture preset by a user.
In the embodiment of the application, in order to identify the electronic red packet information received by different preset application programs, corresponding preset color histograms may be set for the different preset application programs, that is, each preset application program has a corresponding preset color histogram. The calculating of the similarity between the color histogram of the bitmap content in the ImageView control and the preset color histogram may specifically be: and calculating the similarity between the color histogram of the bitmap content in the ImageView control and the preset color histogram corresponding to the preset application program in the step S201.
Optionally, the obtaining of the color histogram of the bitmap content in the ImageView control includes:
and converting the content of bitmap in the ImageView control from an RGB color space to an HSV color space, and acquiring a histogram of hue H in the HSV color space.
In the embodiment of the application, because the HSV color space can express the brightness, the tone and the vividness of colors very intuitively, and the colors are conveniently compared, when the color histogram of the content of the bitmap in the ImageView control is obtained, the content of the bitmap in the ImageView control can be converted into the HSV color space from the RGB color space, and the histogram of the tone H of the content of the bitmap in the ImageView control in the HSV color space is used as the color histogram of the content of the bitmap in the ImageView control.
Optionally, after determining that the information is electronic red packet information, the method further includes:
the processing performance of the mobile terminal is improved.
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. When the electronic red packet ending event of the information is monitored, in order to reduce the function of the mobile terminal, the processing performance of the mobile terminal can be restored to the state before the improvement.
According to the embodiment of the application, after the information received by the preset application program is determined to be the chat information, electronic red packet identification is carried out according to the content of the bitmap in the ImageView control, whether the received information is the electronic red packet information or not can be effectively identified, and a user can conveniently and quickly grab the electronic red packet.
Referring to fig. 3, which is a schematic view of an implementation flow of an information monitoring method provided in the third embodiment of the present application, where the information monitoring method is applied to a mobile terminal, as shown in the figure, the information monitoring method may include the following steps:
step S301, monitoring whether the preset application receives 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, if the preset application program is monitored to receive the information, whether the ListView control of the chat interface has data change is monitored.
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.
And step S303, if the data change of the ListView control of the chat interface is monitored, acquiring the View class name of the information.
And step S304, if the View class name of the information is a preset View class name, determining the information to be chat information in the preset application program.
In the embodiment of the application, because the View class name of the information displayed on the chat interface of the preset application program is different from the View class names of the information displayed on other interfaces of the preset application program, in order to further improve the identification accuracy of the chat information, when the data change of the ListView control of the chat interface of the preset application program is monitored, the View class name of the information received by the preset application program can be obtained, and if the View class name of the information is the preset View class name, the information is determined to be the chat information in the preset application program; and if the View class name of the information is not the preset View class name, determining that the information is not the chat information in the preset application program. The preset View class name refers to a View class name of chat information in a preset application program, and different preset View class names can be set for different preset application programs.
When the data change of the ListView control of the chat interface of the preset application program is monitored, whether the information is the chat information is further judged according to whether the View class name of the information received by the preset application program is the preset View class name, and the identification accuracy of the chat information can be improved.
Fig. 4 is a schematic view of an information monitoring apparatus provided in the fourth embodiment of the present application, and for convenience of description, only the relevant portions of the embodiment of the present application are shown.
The information monitoring device includes:
an information monitoring module 41, configured to monitor whether a preset application receives information;
the data monitoring module 42 is configured to monitor whether a list view control of the chat interface has data change if it is monitored that the preset application program receives the information;
and an information determining module 43, configured to determine that the information is chat information in the preset application program if it is monitored that the ListView control of the chat interface has data change.
Optionally, the information monitoring apparatus further includes:
the content monitoring module 44 is used for monitoring the content of a bitmap in the image view ImageView control;
and a red packet confirming module 45, configured to determine that the information is electronic red packet information if the content of the bitmap in the ImageView control is a preset picture.
Optionally, the red packet confirming module 45 includes:
the histogram acquisition unit is used for acquiring a color histogram of the content of the bitmap in the ImageView control if the content of the bitmap in the ImageView control is a preset picture;
the similarity calculation unit is used for calculating the similarity between the color histogram of the bitmap content in the ImageView control and a preset color histogram;
and the first determining unit is used for determining that the information is electronic red packet information if the similarity between the color histogram of the bitmap content in the ImageView control and the preset color histogram exceeds a preset threshold value.
Optionally, the histogram obtaining unit is specifically configured to:
and converting the content of bitmap in the ImageView control from an RGB color space to an HSV color space, and acquiring a histogram of hue H in the HSV color space.
Optionally, the content monitoring module 44 includes:
the width and height acquisition unit is used for acquiring the height h and the width W of a view of the information and the width W of a view of a first interface, wherein the first interface is an interface for displaying the information;
a ratio acquisition unit for calculating a ratio of a height h to a width w of a view of the information
Figure BDA0001787204650000121
And the ratio of the width W of the view of the information to the width W of the view of the first interface
Figure BDA0001787204650000122
A monitoring unit for determining the ratio
Figure BDA0001787204650000123
Within a first predetermined range and a ratio
Figure BDA0001787204650000124
And monitoring the content of bitmap in the ImageView control if the bitmap is located in a second preset range.
Optionally, the information monitoring apparatus further includes:
a performance enhancing module 46 for enhancing the processing performance of the mobile terminal.
Optionally, the information determining module 43 includes:
the class name acquisition unit is used for acquiring the View class name of the information if the data change of the ListView control of the chat interface is monitored;
and the second determining unit is used for determining the information as the chat information in the preset application program if the View class name of the information is a preset View class name.
The information monitoring 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. 5 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 501 (only one shown); one or more input devices 502 (only one shown), one or more output devices 503 (only one shown), and a memory 504. The processor 501, the input device 502, the output device 503, and the memory 504 are connected by a bus 505. The memory 504 is used for storing instructions and the processor 501 is used for executing the instructions stored by the memory 504. Wherein:
the processor 501 is configured to monitor whether a preset application program receives information; if the preset application program is monitored to receive information, monitoring whether a list view control of a chat interface has data change; and if the data change of the ListView control of the chat interface is monitored, determining the information as the chat information in the preset application program.
Optionally, the processor 501 is further configured to:
monitoring the content of a bitmap in an image view ImageView control;
and if the content of the bitmap in the ImageView control is a preset picture, determining that the information is electronic red packet information.
Optionally, the processor 501 is specifically configured to:
if the content of the bitmap in the ImageView control is a preset picture, acquiring a color histogram of the content of the bitmap in the ImageView control;
calculating the similarity between the color histogram of the bitmap content in the ImageView control and a preset color histogram;
and if the similarity between the color histogram of the bitmap content in the ImageView control and the preset color histogram exceeds a preset threshold value, determining that the information is electronic red packet information.
Optionally, the processor 501 is specifically configured to:
and converting the content of bitmap in the ImageView control from an RGB color space to an HSV color space, and acquiring a histogram of hue H in the HSV color space.
Optionally, the processor 501 is specifically configured to:
acquiring the height h and the width W of a view of the information and the width W of a view of a first interface, wherein the first interface is an interface for displaying the information;
calculating a ratio of a height h to a width w of a view of the information
Figure BDA0001787204650000141
And the ratio of the width W of the view of the information to the width W of the view of the first interface
Figure BDA0001787204650000142
If the ratio is
Figure BDA0001787204650000143
Within a first predetermined range and a ratio
Figure BDA0001787204650000144
And monitoring the content of bitmap in the ImageView control if the bitmap is located in a second preset range.
Optionally, the processor 501 is further configured to:
the processing performance of the mobile terminal is improved.
Optionally, the processor 501 is specifically configured to:
if the data change of the ListView control of the chat interface is monitored, acquiring the View class name of the information;
and if the View class name of the information is a preset View class name, determining the information to be chat information in the preset application program.
It should be understood that, in the embodiment of the present Application, the Processor 501 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose 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 502 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 device 503 may include a display (LCD, etc.), a speaker, a data transmission interface, and the like.
The memory 504 may include a read-only memory and a random access memory, and provides instructions and data to the processor 501. A portion of the memory 504 may also include non-volatile random access memory. For example, the memory 504 may also store device type information.
In a specific implementation, the processor 501, the input device 502, the output device 503, and the memory 504 described in this embodiment of the present application may execute the implementation described in the embodiment of the information monitoring method provided in this embodiment of the present application, or may execute the implementation described in the information monitoring apparatus described in the fourth embodiment of the present application, which is not described herein again.
Fig. 6 is a schematic diagram of a mobile terminal according to a sixth embodiment of the present application. As shown in fig. 6, the mobile terminal 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps in the various information monitoring method embodiments described above, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 41 to 46 shown in fig. 4.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 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 62 in the mobile terminal 6. For example, the computer program 62 may be divided into an information monitoring module, a data monitoring module, an information determining module, a content monitoring module, a red packet confirming module, and a performance improving module, each of which has the following specific functions:
the information monitoring module is used for monitoring whether the preset application program receives information or not;
the data monitoring module is used for monitoring whether the list view control of the chat interface has data change or not if the preset application program is monitored to receive information;
and the information determining module is used for determining the information as the chat information in the preset application program if the data change of the ListView control of the chat interface is monitored.
The content monitoring module is used for monitoring the content of a bitmap in the image view ImageView control;
and the red packet confirming module is used for confirming that the information is electronic red packet information if the content of the bitmap in the ImageView control is a preset picture.
Optionally, the red packet confirmation module includes:
the histogram acquisition unit is used for acquiring a color histogram of the content of the bitmap in the ImageView control if the content of the bitmap in the ImageView control is a preset picture;
the similarity calculation unit is used for calculating the similarity between the color histogram of the bitmap content in the ImageView control and a preset color histogram;
and the first determining unit is used for determining that the information is electronic red packet information if the similarity between the color histogram of the bitmap content in the ImageView control and the preset color histogram exceeds a preset threshold value.
Optionally, the histogram obtaining unit is specifically configured to:
and converting the content of bitmap in the ImageView control from an RGB color space to an HSV color space, and acquiring a histogram of hue H in the HSV color space.
Optionally, the content monitoring module includes:
the width and height acquisition unit is used for acquiring the height h and the width W of a view of the information and the width W of a view of a first interface, wherein the first interface is an interface for displaying the information;
a ratio acquisition unit for calculating a ratio of a height h to a width w of a view of the information
Figure BDA0001787204650000161
And the ratio of the width W of the view of the information to the width W of the view of the first interface
Figure BDA0001787204650000162
A monitoring unit for determining the ratio
Figure BDA0001787204650000163
Within a first predetermined range and a ratio
Figure BDA0001787204650000164
And monitoring the content of bitmap in the ImageView control if the bitmap is located in a second preset range.
And the performance improving module is used for improving the processing performance of the mobile terminal.
Optionally, the information determining module includes:
the class name acquisition unit is used for acquiring the View class name of the information if the data change of the ListView control of the chat interface is monitored;
and the second determining unit is used for determining the information as the chat information in the preset application program if the View class name of the information is a preset View class name.
The mobile terminal 6 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 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of a mobile terminal 6 and is not intended to limit the mobile terminal 6 and may include more or fewer components than those shown, or some 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 60 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 61 may be an internal storage unit of the mobile terminal 6, such as a hard disk or a memory of the mobile terminal 6. The memory 61 may also be an external storage device of the mobile terminal 6, 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 provided on the mobile terminal 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the mobile terminal 6. The memory 61 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 61 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 (8)

1. An information monitoring method, comprising:
monitoring whether a preset application program receives information or not;
if the preset application program is monitored to receive information, monitoring whether a list view control of a chat interface has data change;
if the data change of the ListView control of the chat interface is monitored, determining the information as the chat information in the preset application program, wherein the chat information comprises electronic red packet information;
after determining that the information is the chat information in the preset application program, the method further includes:
monitoring the content of a bitmap in an image view ImageView control, which comprises the following steps: acquiring the height h and the width W of a view of the information and the width W of a view of a first interface, wherein the first interface is an interface for displaying the information; calculating a ratio of a height h to a width w of a view of the information
Figure FDA0003380134030000011
And the ratio of the width W of the view of the information to the width W of the view of the first interface
Figure FDA0003380134030000012
If the ratio is
Figure FDA0003380134030000013
Within a first predetermined range and a ratio
Figure FDA0003380134030000014
Monitoring the content of bitmap in the ImageView control if the bitmap is located in a second preset range;
and if the content of the bitmap in the ImageView control is a preset picture, determining that the information is electronic red packet information.
2. The information monitoring method of claim 1, wherein if the content of the bitmap in the ImageView control is a preset picture, determining that the information is electronic red packet information comprises:
if the content of the bitmap in the ImageView control is a preset picture, acquiring a color histogram of the content of the bitmap in the ImageView control;
calculating the similarity between the color histogram of the bitmap content in the ImageView control and a preset color histogram;
and if the similarity between the color histogram of the bitmap content in the ImageView control and the preset color histogram exceeds a preset threshold value, determining that the information is electronic red packet information.
3. The information monitoring method of claim 2, wherein the obtaining the color histogram of the content of bitmaps in the ImageView control comprises:
and converting the content of bitmap in the ImageView control from an RGB color space to an HSV color space, and acquiring a histogram of hue H in the HSV color space.
4. The information monitoring method of claim 1, after determining that the information is electronic red envelope information, further comprising:
the processing performance of the mobile terminal is improved.
5. The information monitoring method according to any one of claims 1 to 4, wherein the determining that the information is the chat information in the preset application program if it is monitored that the data of the ListView control of the chat interface changes comprises:
if the data change of the ListView control of the chat interface is monitored, acquiring the View class name of the information;
and if the View class name of the information is a preset View class name, determining the information to be chat information in the preset application program.
6. An information monitoring device, comprising:
the information monitoring module is used for monitoring whether the preset application program receives information or not;
the data monitoring module is used for monitoring whether the list view control of the chat interface has data change or not if the preset application program is monitored to receive information;
the information determining module is used for determining the information as the chat information in the preset application program if the data change of the ListView control of the chat interface is monitored, wherein the chat information comprises electronic red packet information;
the information monitoring device further includes:
the content monitoring module is used for monitoring the content of a bitmap in the image view ImageView control;
the red packet confirming module is used for confirming that the information is electronic red packet information if the content of bitmap in the ImageView control is a preset picture;
the content monitoring module includes:
the width acquisition unit is used for acquiring the height h and the width W of the view of the information and the width W of the view of a first interface, wherein the first interface is an interface for displaying the information;
a ratio acquisition unit for calculating a ratio of a height h to a width w of a view of the information
Figure FDA0003380134030000031
And the ratio of the width W of the view of the information to the width W of the view of the first interface
Figure FDA0003380134030000032
A monitoring unit for determining the ratio
Figure FDA0003380134030000033
Within a first predetermined range and a ratio
Figure FDA0003380134030000034
And monitoring the content of bitmap in the ImageView control if the bitmap is located in a second preset range.
7. A mobile 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 information monitoring method according to any one of claims 1 to 5 when executing the computer program.
8. 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 information monitoring method according to any one of claims 1 to 5.
CN201811020589.6A 2018-09-03 2018-09-03 Information monitoring method, information monitoring device and mobile terminal Expired - Fee Related CN110875873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811020589.6A CN110875873B (en) 2018-09-03 2018-09-03 Information monitoring method, information monitoring device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811020589.6A CN110875873B (en) 2018-09-03 2018-09-03 Information monitoring method, information monitoring device and mobile terminal

Publications (2)

Publication Number Publication Date
CN110875873A CN110875873A (en) 2020-03-10
CN110875873B true CN110875873B (en) 2022-05-27

Family

ID=69716625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811020589.6A Expired - Fee Related CN110875873B (en) 2018-09-03 2018-09-03 Information monitoring method, information monitoring device and mobile terminal

Country Status (1)

Country Link
CN (1) CN110875873B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506410B (en) * 2014-12-03 2017-10-20 小米科技有限责任公司 The method and apparatus of instant messaging
CN105099877B (en) * 2015-06-26 2018-11-02 小米科技有限责任公司 Instant communication message treating method and apparatus
CN105975144A (en) * 2016-04-25 2016-09-28 维沃移动通信有限公司 Information processing method and apparatus
CN107491292A (en) * 2016-08-22 2017-12-19 深圳鼎智通讯股份有限公司 The automatic method for robbing red packet
CN106339862A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106793173B (en) * 2017-01-10 2019-08-23 Oppo广东移动通信有限公司 The method and mobile terminal of information processing
CN106982394B (en) * 2017-03-30 2020-12-01 腾讯科技(深圳)有限公司 Network live broadcast unread message prompting method and device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
CN107451244B (en) Folder naming method, mobile terminal and computer readable storage medium
CN106991179B (en) Data deleting method and device and mobile terminal
CN108400868B (en) Seed key storage method and device and mobile terminal
CN112102164A (en) Image processing method, device, terminal and storage medium
CN109359582B (en) Information searching method, information searching device and mobile terminal
CN108520063B (en) Event log processing method and device and terminal equipment
CN109848052B (en) Goods sorting method and terminal equipment
CN108521460B (en) Information pushing method and device, mobile terminal and computer readable storage medium
CN107679222B (en) Picture processing method, mobile terminal and computer readable storage medium
CN108133048B (en) File sorting method and device and mobile terminal
CN110618852A (en) View processing method, view processing device and terminal equipment
CN111597009A (en) Application program display method and device and terminal equipment
CN109492249B (en) Rapid generation method and device of design drawing and terminal equipment
CN109444905B (en) Dynamic object detection method and device based on laser and terminal equipment
CN111382831B (en) Accelerating convolutional nerves network model Forward reasoning method and device
CN110874729B (en) Switching method and switching device for electronic red packet identification strategy and mobile terminal
CN110875873B (en) Information monitoring method, information monitoring device and mobile terminal
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN110688035B (en) Photo album processing method, photo album processing device and mobile terminal
CN108595569B (en) File path copying method, file path copying device and mobile terminal
CN110895698B (en) Electronic red packet identification method, electronic red packet identification device and mobile terminal
CN115599484A (en) Screen capturing method, screen capturing device, screen capturing equipment and computer storage medium
CN110874723B (en) Electronic red envelope detection method, electronic red envelope detection device and mobile terminal

Legal Events

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

Granted publication date: 20220527