CN113934481A - Notification information pushing method, intelligent terminal and storage medium - Google Patents

Notification information pushing method, intelligent terminal and storage medium Download PDF

Info

Publication number
CN113934481A
CN113934481A CN202010676310.0A CN202010676310A CN113934481A CN 113934481 A CN113934481 A CN 113934481A CN 202010676310 A CN202010676310 A CN 202010676310A CN 113934481 A CN113934481 A CN 113934481A
Authority
CN
China
Prior art keywords
content
notification information
target
interface image
area
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.)
Pending
Application number
CN202010676310.0A
Other languages
Chinese (zh)
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.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN202010676310.0A priority Critical patent/CN113934481A/en
Priority to PCT/CN2020/129101 priority patent/WO2022011905A1/en
Publication of CN113934481A publication Critical patent/CN113934481A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a notification information pushing method, an intelligent terminal and a storage medium, wherein the method comprises the following steps: acquiring an interface image of a terminal screen after receiving notification information to be pushed; acquiring target content in the interface image, and determining a target area occupied by the target content in the interface image; and controlling the notification information to be displayed in the target area. The embodiment can control the interface image of the terminal screen to be analyzed when the notification information is pushed, and control the notification information to be displayed in the target position in the interface image, so that the pushing of the notification information is controlled, and the notification information is prevented from blocking the area, which is interested by a user, in the interface image.

Description

Notification information pushing method, intelligent terminal and storage medium
Technical Field
The present invention relates to the field of information push technologies, and in particular, to a notification information push method, an intelligent terminal, and a storage medium.
Background
With the development of internet technology and communication technology, intelligent terminals play an increasingly important role in modern life, and in order to meet various requirements of users, various application programs are installed in the intelligent terminals, so that the life of people is enriched.
Since each application background comprises some notification-class message pushing services, the pushing of the messages is performed aperiodically and is generally performed in a popup mode. Therefore, when a user is using a certain application program, the message pushing can affect the use of the user. For example, when a user watches a video, a message pushed by the user may block a video frame, so that the user misses some content and the use of the user is affected.
Thus, there is still a need for improvement and development of the prior art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a notification information pushing method, an intelligent terminal and a storage medium for overcoming the above-mentioned drawbacks of the prior art, and to solve the problem in the prior art that when a user uses an application program, message pushing will affect the user.
The technical scheme adopted by the invention for solving the problems is as follows:
in a first aspect, an embodiment of the present invention provides a method for pushing notification information, where the method includes:
acquiring an interface image of a terminal screen after receiving notification information to be pushed;
acquiring target content in the interface image, and determining a target area occupied by the target content in the interface image;
and controlling the notification information to be displayed in the target area.
In one implementation manner, the acquiring an interface image of a terminal screen after receiving notification information to be pushed includes:
starting a preset task monitoring system, and judging whether the notification information to be pushed exists in the task of the terminal system according to the task monitoring program;
if the notification information to be pushed exists in the terminal system task, acquiring the notification information to be pushed;
and after the notification information to be pushed is acquired, acquiring an operation interface of the application program in a foreground operation state, and taking the operation interface as the interface image of the terminal screen, wherein the operation interface is an interface displayed by the application program on a terminal desktop.
In one implementation, the obtaining target content in the interface image and determining a target area occupied by the target content in the interface image includes:
respectively identifying the content of each area in the interface image, and determining a type label corresponding to the content in each area and area data of the content;
determining the target content according to the type label and the area data;
and acquiring the area occupied by the target content in the interface image, and taking the area as the target area.
In one implementation, the respectively identifying the content of each region in the interface image, and determining the type tag corresponding to the content in each region and the area data of the content includes:
dividing the interface image into areas, respectively identifying each area, and determining the content in each area;
determining a type label corresponding to the content according to the content in each region;
contour data of the content in the respective areas is acquired, and area data of the content is determined based on the contour data.
In one implementation, the determining the target content according to the type tag and the area data includes;
classifying the content according to the type label to determine the category of the content;
determining target content to be selected according to the category of the content, wherein the target content to be selected is the content of which the category is a preset target category;
and determining the target content from the target content to be selected according to the area data.
In one implementation, the controlling the notification information to be displayed in the target area includes:
acquiring the text content in the notification information, and constructing a display frame of the notification information according to the text content, wherein the text content is stored in the display frame;
and displaying the display frame in the target area to realize the pushing of the notification information.
In one implementation manner, the obtaining of the text content in the notification information and constructing the display frame of the notification information according to the text content includes:
acquiring the word number of the text content;
determining a display form of the text content in a terminal screen according to the word number and a preset rule, wherein the preset rule is a corresponding relation between the word number and the display form;
and constructing the display frame of the notification information according to the display form.
In one implementation, after the constructing the display frame of the notification information according to the display form, the method includes:
and acquiring the color of the target area, and setting the transparency degree of the display frame according to the color of the target area.
In one implementation, the controlling the notification information to be displayed in the target area further includes:
and converting the text content into voice information, and playing the voice information to realize the pushing of the notification information.
In a second aspect, an embodiment of the present invention further provides a device for pushing notification information, where the device includes:
the interface image acquisition unit is used for acquiring an interface image of a terminal screen after receiving the notification information to be pushed;
the target area determining unit is used for acquiring target content in the interface image and determining a target area occupied by the target content in the interface image;
and the notification information display unit is used for controlling the notification information to be displayed in the target area.
In a third aspect, the present invention also provides an intelligent terminal, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors, where the one or more programs include a push method for executing the notification information described in any one of the above.
In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a method for pushing notification information as described in any one of the above.
The invention has the beneficial effects that: in this embodiment, after receiving notification information to be pushed, an interface image of a terminal screen is acquired, and a target content in the interface image and a target area occupied by the target content in the interface image are determined by analyzing the interface image, where the target area is a display area of the notification information. Since the interface image is an image being displayed on the terminal screen, and the interface image is analyzed and the target area in the interface image is determined, the area in the interface image, which can be used for displaying the notification information, can be known. Therefore, after the target area is determined, the present embodiment controls the notification information to be displayed in the target area. Therefore, the embodiment can control the interface image of the terminal screen to be analyzed when the notification information is pushed, and control the notification information to be displayed in the target position in the interface image, so that the pushing of the notification information is intelligently controlled, the notification information is displayed in the target area in the interface image and does not block other areas in the interface image, the situation that the notification information blocks the content of interest of a user in the interface image when being displayed can be avoided, and convenience is provided for the user to use.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a notification information pushing method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart illustrating the process of acquiring an interface image in the notification information pushing method according to the embodiment of the present invention.
Fig. 3 is a schematic flowchart of determining a target area in a notification information pushing method according to an embodiment of the present invention.
Fig. 4 is a schematic flow chart illustrating displaying notification information in a method for pushing notification information according to an embodiment of the present invention.
Fig. 5 is a schematic diagram illustrating content identification and target area determination in a notification information pushing method according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a display frame for determining notification information in a method for pushing notification information according to an embodiment of the present invention.
Fig. 7 is a schematic diagram illustrating a display frame of notification information pushed in an interface image in the notification information pushing method provided by the embodiment of the present invention.
Fig. 8 is a schematic block diagram of a notification information pushing apparatus provided in an embodiment of the present invention.
Fig. 9 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
Since all kinds of application program backgrounds in the prior art include some notification-type message pushing services, the pushing services of these messages are all performed aperiodically and are generally performed in a popup mode. Thus, when a user is using an application, the pushed message affects the user's usage. For example, when a user watches a video, a message pushed by the user may block a video frame, so that the user misses some content and the use of the user is affected.
In order to solve the problems in the prior art, this embodiment provides a method for pushing notification information, and with the method for pushing notification information in this embodiment, when the notification information is pushed, an interface image of a terminal screen may be controlled to be analyzed, and the notification information is controlled to be displayed in a target position in the interface image, so that intelligent control over pushing of the notification information is achieved, so that the notification information is displayed in a target area in the interface image without blocking other areas in the interface image, and content of interest of a user in the interface image may be prevented from being blocked by the notification information when displayed, thereby providing convenience for the user. Specifically, in this embodiment, after receiving notification information to be pushed, an interface image of a terminal screen is obtained, and a target content in the interface image and a target area occupied by the target content in the interface image are determined by analyzing the interface image, where the target area is a display area of the notification information. Since the interface image is an image being displayed on the terminal screen, and the interface image is analyzed and the target area in the interface image is determined, the area in the interface image, which can be used for displaying the notification information, can be known. Therefore, after the target area is determined, the present embodiment controls the notification information to be displayed in the target area.
For example, after the intelligent terminal acquires the notification information (for example, the acquired notification information is the notification information of "telephone bill"), the intelligent terminal starts to prepare to push the notification information. And after the intelligent terminal acquires the notification information, acquiring an interface image of a terminal screen, and analyzing the interface image. For example, the obtained interface image is a playing picture captured from a video playing application program, which indicates that a terminal screen of the intelligent terminal is playing a video at the moment. At this time, the playing picture can be analyzed to determine the target content of the playing picture and the target area occupied by the target content in the playing picture, and then the notification information of the telephone bill can be controlled to be displayed in the target area in the playing picture, so that the pushing of the notification information is intelligently controlled. For example, if the target area is an area other than a person in the playback screen, the notification information of "telephone bill" is displayed in the area other than the person.
Exemplary method
In this embodiment, a method for pushing notification information is provided, where the method is applied to an intelligent terminal, and specifically as shown in fig. 1, the method includes:
and S100, acquiring an interface image of a terminal screen after receiving the notification information to be pushed.
The embodiment is to realize that when the notification information is pushed, pushing of the notification information is intelligently controlled, so that when the notification information is displayed in the interface image, the notification information can be displayed in a specific area, that is, a target area occupied by target content in the interface image is displayed, and other areas in the interface image are not shielded. Therefore, after receiving the notification information to be pushed, the embodiment needs to acquire the interface image of the terminal screen, so as to analyze the interface image to determine the target content in the interface image and the target area occupied by the target content in the interface image. The interface image in this embodiment is an image displayed on the terminal screen. For example, if the intelligent terminal plays a video, the interface image is an image of the video being played; and if the intelligent terminal is running the game APP, the interface image is the game picture.
In one implementation manner, as shown in fig. 2, the step of acquiring the interface image in this embodiment includes:
step S101, starting a preset task monitoring system, and judging whether the notification information to be pushed exists in a terminal system task according to a task monitoring program;
step S102, if the notification information to be pushed exists in the terminal system task, acquiring the notification information to be pushed;
step S103, after the notification information to be pushed is obtained, obtaining an operation interface of the application program in a foreground operation state, and taking the operation interface as the interface image of the terminal screen, wherein the operation interface is an interface displayed by the application program on a terminal desktop.
With the development of the intelligent terminal, more and more applications are installed on the intelligent terminal, including applications installed by a user and applications carried by the system. The applications basically include notification information push services, and the push services generally push notification information at irregular intervals. When pushing the notification information generated by a certain application program, the intelligent terminal firstly obtains the notification information to be pushed so as to perform subsequent pushing operation on the notification information.
In specific implementation, the notification information is generally generated by an application program in the intelligent terminal and is pushed to a terminal screen of the intelligent terminal so as to be displayed on the terminal screen. The notification message, such as "telephone bill", is generated by the APP (e.g., mobile cantonese) of the telecommunications carrier, which may or may not be running in the background when generating the notification message of "telephone bill". However, whether the notification information runs in the background or in the foreground, the notification information of the "telephone bill" is a task sent to the terminal system by the APP belonging to the telecommunication operator, and after receiving the task, the intelligent terminal executes the task of pushing the notification information of the "telephone bill" so as to complete the pushing of the notification information. In order to enable an application program in the intelligent terminal to obtain the notification information in time after generating the notification information, so as to better implement pushing of the notification information in a subsequent pushing step, in this embodiment, a task monitoring system may be preset in the intelligent terminal, and the task monitoring system is used for monitoring a background task of the intelligent terminal.
Specifically, in this embodiment, after the task monitoring system is started, the task monitoring system may monitor the terminal system tasks of the intelligent terminal, and then acquire all the system tasks to be executed. Because the task monitoring system monitors all system tasks in the intelligent terminal, the monitored system tasks to be executed are not only tasks of informing information, but also other tasks, such as tasks of starting and exiting an application program. After all system tasks to be executed are acquired, the present embodiment needs to determine whether notification information exists in the system tasks to be executed, and if notification information exists, the notification information may be acquired. In an implementation manner, in the embodiment, when determining whether the notification information exists in the system task to be executed, the determination is performed by obtaining a character identifier in each system task to be executed, and when obtaining that a character identifier "notification" exists in a certain system task to be executed, it indicates that the system task to be executed is a notification information type task, that is, it indicates that the notification information to be pushed exists, so that the notification information to be pushed can be obtained. For example, after the task monitoring system is started, the intelligent terminal acquires all the tasks of the system to be executed, then acquires the character identifiers of the systems of the tasks to be executed one by one, and when it is acquired that a character identifier "notification" exists in one task of the system to be executed, it is determined that the task of the system to be executed is notification information to be pushed, and then specific content of the notification information can be acquired. It can be seen that, in this embodiment, all notification information to be pushed may be determined in a manner of acquiring the character identifiers of the task systems to be executed one by one, and then the determined notification information is acquired.
What this embodiment will achieve is to control the notification information to be displayed in the target area in the interface image when the notification information is pushed, in other words, to control the notification information to be displayed in a specific area of the interface image without blocking other areas in the interface image. The interface image refers to an image displayed on the terminal screen, and the image displayed on the terminal screen is an operation interface of an application program in the intelligent terminal, which is in foreground operation, on the terminal screen. For example, if the application program in the foreground running in the intelligent terminal is a video player, the running interface of the video player on the terminal screen at this time is an image of the video played by the video player on the terminal screen, and thus the running interface of the video player on the terminal screen is the interface image.
Therefore, in this embodiment, after the notification information to be pushed is obtained, the running interface of the application program in the foreground running state needs to be obtained. In specific implementation, in this embodiment, all installed applications in the intelligent terminal are obtained first, including the application installed by the user and the application carried by the intelligent terminal system. And acquiring process information corresponding to each application program after acquiring all the installed application programs. The process information in this embodiment includes a package name of the application program and operation data of the application program, where the operation data may reflect whether the application program is in operation, and therefore the application program in the operation state may be determined according to the operation data. That is, it can be determined which applications are running. Since the application programs in the running state include the application program running in the background and the application program running in the foreground, what needs to be determined in this embodiment is the application program running in the foreground, and the running position of the application program running in the foreground is on the desktop of the terminal screen. Therefore, in this embodiment, the running position corresponding to the application program in the running state is first obtained, the application program running on the terminal desktop is determined according to the determined running position, and the application program running on the terminal desktop is determined, that is, the application program running in the foreground can be determined. Therefore, in the embodiment, the running position of the application program in the running state is analyzed, so that the application program running in the foreground is determined, and then the running interface of the application program running in the foreground is obtained, wherein the running interface is the interface image on the terminal screen.
For example, the smart terminal first acquires all installed applications, such as "guangdong move", "love art", "royal glory", "internet music", and the like, and then acquires process information of the applications. According to the process information, the application programs in the running state are determined to be 'love art', 'Guangdong mobile' and 'Internet-accessible cloud music'. And then, the running positions of the 'love and curiosity art', 'Guangdong mobile' and 'Internet Yiyun music' are obtained, and the 'love and curiosity art' is determined to run on the desktop of the terminal according to the running positions, namely, the fact that the user watches videos by using the 'love and curiosity art' is indicated. The Guangdong mobile and the Internet music are operated in the background, so that the acquired application program in the foreground is the 'love art', and therefore the operation interface of the 'love art' can be acquired, and the operation interface is the interface image of the terminal screen.
And S200, acquiring target content in the interface image, and determining a target area occupied by the target content in the interface image.
After the interface image is acquired, the interface image is analyzed to determine the target content in the interface image and the target area occupied by the target content in the interface image, so as to control the notification information to be displayed in the target area. In the prior art, when the notification information is pushed, the notification information is pushed to the terminal screen to be displayed, and the notification information is basically displayed in a fixed form, so that some contents in an interface image on the terminal screen are shielded, and the use of a user is influenced. For example, when a user watches a video, an interface image displayed on a terminal screen is a video picture, and the pushed notification information can block the video picture, so that the user misses some content on the video picture, and the use of the user is influenced. Therefore, in the embodiment, before the notification information is pushed, the interface image needs to be analyzed, and the purpose of the analysis is to determine the target content and the target area occupied by the target content in the interface image. Therefore, the notification information can be controlled to be displayed only in the target area, and other areas except the target area are not shielded, so that the use requirements of users are met.
In one implementation, as shown in fig. 3, the method for determining the target area according to the present embodiment includes the following steps:
step S201, respectively identifying the content of each area in the interface image, and determining a type label corresponding to the content in each area and area data of the content;
step S202, determining the target content according to the type label and the area data;
and step S203, acquiring the area occupied by the target content in the interface image, and taking the area as the target area.
In specific implementation, after the interface image is acquired, the interface image is divided into regions, the interface image is divided into a plurality of regions, and then each region is subjected to content identification, so that the content in each region is determined. After the content of each region is identified, determining a type tag corresponding to the content of each region and area data of the content of each region according to the content of each region, wherein the type tag corresponding to the content of each region is determined to determine the type of the content of each region. And then determining the target content according to the determined type label and the area data.
In one implementation manner, what is to be achieved by this embodiment is that the control notification information is only displayed in the target area in the interface image, and other areas outside the target area are not shielded, so as to meet the use requirement of the user, that is, the content that the user is interested in is not shielded. In this embodiment, the importance of the content may reflect the possibility that the user is interested in a certain content. When the importance degree of a certain content is higher, it indicates that the user has a higher possibility of being interested in the content, and when the importance degree of a certain content is lower, it indicates that the user has a lower possibility of being interested in the content. The importance degree in this embodiment may be determined according to the weight occupied by the content in the interface image, and the higher the weight of a certain content is, the higher the importance degree is. The importance level of the content with the type label a may be set to be higher, and the importance level of the content with the type label B may be set to be lower. When the type label of a certain content is identified as A, the importance degree of the content is high, and the content is the content which is interested by the user. On the contrary, when the type tag of a certain content is identified as B, it indicates that the importance level of the content is low, and the importance level of the content can reflect the possibility that the user is interested in the content, so that the low importance level of the content indicates that the content is not interested by the user. After the importance degree of the content of each area in the interface image is determined, the content which is not interested by the user can be determined according to the importance degree of the content, and the target area is determined according to the area of the content which is not interested by the user in the interface image. When the notification information to be pushed is displayed in the target area, because the type tag of the content in the target area is B, that is, the importance degree of the content is low, the content with low importance degree is not blocked, and the importance degree of the content can reflect the possibility that the user is interested in the content. Therefore, in order to determine the target area, the corresponding relationship between the content and the type tag may be preset in this embodiment, for example, a mapping file is set, the mapping file has the corresponding relationship between the content and the type tag, and there may be two types of type tags, which are respectively used to correspond to the content in which the user is interested and the content in which the user is not interested.
In a specific application, the embodiment may identify content from a large number of images in advance, divide all the identified content into two types and set corresponding type tags, specifically, divide all the content into two types, namely, content that a user is interested in and content that the user is not interested in, set corresponding type tag a for the content that the user is interested in and set corresponding type tag B for the content that the user is not interested in, and finally form a mapping file, where the mapping file includes a corresponding relationship between the content and the type tags. For example, in the mapping file, the contents that are not interesting to the user are grassland and sky; the content of interest to the user is a character. Therefore, the type label corresponding to the person is A; the type labels for grass and sky are both B. By setting the mapping file, the type tag corresponding to each content can be known, that is, the content which the user is interested in can be determined according to the importance degree of the content. After the content in each area is identified, the identified content is matched with the mapping file, so that the type tag corresponding to the content in each area can be determined, that is, whether the content in each area is important is determined, whether the content is the content which is interested by the user is determined, and the target content is determined. Of course, in another implementation manner, the present embodiment may also determine the type tag corresponding to the content of each area by using a neural network model. In specific application, the adopted neural network model is obtained by training according to the corresponding relation between the content and the type label, so that the determined content of each area is input into the neural network model, and the corresponding type label can be quickly output.
In one implementation manner, the content with the type tag B in this embodiment has a low importance level, that is, the content with the type tag B is a content that is not interested by the user. Since the interface image is divided into regions according to the present embodiment, the content of each region is identified, and thus the importance of the content in each region is determined. The target area which needs to be determined finally by the method is an area which is formed by the contents with low importance degree of the interface image. Therefore, the present embodiment sets the preset target category as the content with low importance (i.e. the content with the type tag B in the above example), and when the identified content meets the preset target category, i.e. the identified content is the content with low importance, the content is the target content to be selected. Therefore, after the content in each region is identified, the identified content is matched with the mapping file, so that the type tag corresponding to the content in each region can be determined, the content with the type tag of B is screened out according to the type tag, namely the content with low importance degree is screened out, namely the content meeting the preset target category is determined, the content with low importance degree is the target content to be selected, and the target content to be selected is the content with the type tag of B. And finally, determining target content and a target area occupied by the target content in the interface image according to the determined target content to be selected. In specific application, when a plurality of contents with type labels B exist, any one of the contents with type labels B (i.e., target contents to be selected) is selected as a target content.
In one implementation, when there are a plurality of content with type tag B, the present embodiment may further determine a display area for displaying the notification information to be pushed according to information such as the number of words and the size of the words of the notification information to be pushed, and then determine the target content from the content with the importance degree smaller than the threshold according to the display area. Specifically, after the content in each area is identified, the present embodiment determines the type tag of the content in each area, and determines the content with the type tag B. And then acquiring the outline data of the content with the type label B, and determining the area data corresponding to the content with the type label B according to the outline data. The outline data in this embodiment represents size data of the outer boundary of the content, and area data of the content with the type label B can be determined based on the size data. And then determining the target content according to the area data of the content with the type label B and the area of a display area for displaying the notification information to be pushed. For example, the present embodiment determines that the size of the display area is S according to the number of words and the size of the characters of the notification information to be pushed (that is, only the area greater than or equal to S can completely display the character content of the notification information to be pushed). For example, the content with the type label B in the interface image is grassland, sky, and mountain, and the target content to be selected is grassland, sky, and mountain. If the area data of the grassland, the sky and the mountain are all larger than the display area S, any one of the grassland, the sky and the mountain can be selected as the target content. And if the sum of the area data of the sky and the mountain is larger than the area S of the display area, taking the sky and the mountain as target content, and further determining a target area of the target content in the interface image.
Of course, in this embodiment, the content with the high importance level in the interface image may be determined first, and then the content with the low importance level may be removed from the interface image, so that the content that is not interested by the user may be left. As shown in fig. 5, the flocks in the a diagram in fig. 5 are contents in which the user is interested, and thus, first, the area where the flocks in the a diagram in fig. 5 are located may be determined. As shown in fig. 5B, the sheep in fig. 5 are selected from the frame B, and then all the sheep are grouped into the flock area in fig. 5C. While the rest of the content (e.g. grass and sky) is of low importance. In another example, in order to more accurately determine a content with a low importance degree in the interface image and avoid missing of the content due to overlapping of a plurality of contents with a high importance degree, as shown in a D diagram in fig. 5, a flock in the D diagram is a content in which a user is interested, and since a plurality of sheep exist in the flock, in order to avoid missing of the content, the sheep in this example can be sequentially and respectively selected, so that the contents with a high importance degree can be determined more accurately. In this interface image, since the content of low importance is left in addition to the content of high importance, the content of low importance can be accurately specified. The importance degree of the content can reflect the possibility that the user is interested in the content, and when the importance degree of the content is low, the possibility that the user is interested in the content is low, so that the content which is not interested by the user can be accurately determined.
In one implementation, since the interface image is divided into regions according to the present embodiment, and the content in each region may be different, the importance of the content in each region may be different. The importance degree of the content in this embodiment may also be determined by calculation according to the weight, and the higher the weight of the content is, the higher the importance degree is. After the importance level of each region is determined, the present embodiment may determine the content with the lowest importance level from the importance levels of the contents of all the regions as the target content. For example, in an interface image, grassland, sky, and mountain scenes are all low-importance contents. However, since the importance of the sky is the lowest, the sky is set as the target content and the region of the sky is set as the target region in the present embodiment. In another implementation manner, a threshold may also be set in this embodiment, and the target content is determined according to the threshold. For example, the importance degrees of the contents of all the regions are compared with the threshold, the contents with the importance degrees smaller than the threshold are screened out, and the contents with the importance degrees smaller than the threshold are used as target contents, so as to determine the target region. When there are a plurality of contents having importance degrees smaller than the threshold, any one of the contents having importance degrees smaller than the threshold may be selected as the target content.
In specific implementation, when there are a plurality of contents with importance degrees smaller than the threshold, the present embodiment may determine the area of the display area for displaying the notification information to be pushed according to the information such as the word number and the word size of the notification information to be pushed, and then determine the target content from the contents with importance degrees smaller than the threshold according to the area of the display area. Specifically, after the content in each region is identified, the present embodiment determines the importance degree of the content in each region, and determines the content with the importance degree smaller than the threshold. And then acquiring outline data of the content with the importance degree smaller than the threshold value, and determining area data corresponding to the content with the importance degree smaller than the threshold value according to the outline data. The outline data in this embodiment is size data indicating the outer boundary of the content, and area data of the content with a low degree of importance can be determined based on the size data. And then determining the target content according to the area data of the content with the importance degree smaller than the threshold and the area of a display area for displaying the notification information to be pushed. For example, the present embodiment determines that the size of the display area is S according to the number of words and the size of the characters of the notification information to be pushed (that is, only the area greater than or equal to S can completely display the character content of the notification information to be pushed). For example, the contents with the importance degree smaller than the threshold in the interface image are grassland, sky, and mountain, that is, the target contents to be selected are grassland, sky, and mountain. If the area data of the grassland, the sky and the mountain are all larger than the display area S, any one of the grassland, the sky and the mountain can be selected as the target content. And if the sum of the area data of the sky and the mountain is larger than the area S of the display area, taking the sky and the mountain as target content, and further determining a target area of the target content in the interface image.
In one implementation, in one interface image, there may be contents with importance degrees smaller than the threshold value separated by contents with importance degrees larger than the threshold value (i.e. there are contents that are not interested by the user and contents that are interested by the user are arranged alternately), and in order to better enable the notification information to be displayed in the target area, i.e. the target area needs to be large enough to better display the notification information, the embodiment first needs to obtain area data of the contents in each area, and then determines the target contents according to the area data. The present embodiment determines that the target content is determined with the area as the maximum reference, based on the content whose degree of importance is smaller than the threshold. In this embodiment, it is determined which contents are connected together from the determined contents whose importance degree is smaller than the threshold, and then area data of the connected contents that are not interested by the user is determined, and an area where the area can be formed is the largest is determined, the contents contained in the area are target contents, and the area occupied by the target contents in the interface image is a target area.
And step S300, controlling the notification information to be displayed in the target area.
After the target area is determined, the notification information may be displayed according to the target area. During displaying, because the target area determined by the embodiment is an area occupied by content which is not interested by the user in the interface image, the notification information does not block the content which is interested by the user in the interface image, so that the use of the user is not affected. For example, if the intelligent terminal plays a video, the interface image is an image of the video being played. In the image, the person is the content in which the user is interested, and the background behind the person is the content in which the user is not interested, so that the embodiment can control the notification information to be displayed in the area of the background behind the person, and thus the person is not blocked.
In one implementation, as shown in fig. 4, displaying the notification information includes the following steps:
step S301, obtaining the text content in the notification information, and constructing a display frame of the notification information according to the text content, wherein the text content is stored in the display frame;
step S302, displaying the display frame in the target area to realize the pushing of the notification information.
In specific implementation, after the target area in the interface image is determined, the notification information needs to be pushed to the target area for display in this embodiment. In specific implementation, in order to prevent the pushed notification information from affecting the use of the user, in this embodiment, the notification information is reconstructed, and a display frame of the notification information is constructed. Specifically, in this embodiment, the text content in the notification information is acquired, and the display frame (or the message bar) of the notification information is constructed according to the text content. In specific application, in this embodiment, first, the text content in the notification information is acquired, the display form of the text content in the terminal screen is determined according to the word count and a preset rule, where the preset rule is a correspondence between the word count and the display form, and then the display frame of the notification information is constructed according to the display form. The display form in this embodiment includes the display position of the notification information on the screen terminal, the display area of the display frame, the transparency of the display frame, and the like. That is to say, according to how many words are in the notification information, the display position of the notification information on the screen terminal, the area of the text display area, and the transparency of the display frame can be determined according to the preset rule, so that the display frame can be quickly constructed.
In specific implementation, as shown in fig. 6, a gray portion of the interface image in fig. 6 is the determined target area 10 (such as a grass in the sheep flock image in fig. 5), and a black rectangular frame in fig. 6 is a display frame 20 for displaying the notification information. When the notification information needs to be pushed, the present embodiment obtains the text content of the notification information, and combines the number of the text to construct the size of the display frame 20. In the present embodiment, the display frame 20 is constructed according to a preset rule. For example, when the number of characters in the notification information is less than or equal to 10, all the characters can be displayed in one line, and thus a display frame 20 that can display all the characters in one line is constructed. Alternatively, when the number of characters in the notification information is greater than 10 and less than or equal to 15, two lines are displayed. And after the line number of the character display is determined, the size of the character size of the displayed character can be set, so that the area of the character display can be determined. Based on the above information, a display frame 20 is constructed which can display all the text in two rows. In addition, the present embodiment may also set the transparency of the display frame 20 according to the color of the target area 10, so as to better display the content of the notification information, and avoid that the display frame 20 and the target area 10 are too obtrusive. Based on the above, the present embodiment displays the display frame 20 in the target area 10, that is, displays the notification information to be pushed in the target area 10 of the interface image. In this embodiment, the transparency of the display frame 20 is set to enable the display frame 20 not to completely visually block the target area 10 when the notification information is displayed in the target area 10, and to enable the display frame 20 and the target area 10 not to be too obtrusive. Specifically, as shown in fig. 7, the sheep flock in fig. 7 is a content of interest to the user, the area other than the sheep flock is the target area 10, the display frame 20 is displayed in the target area 10, and the content of the notification information displayed in the display frame 20 is "pan: 3 months "goddess" big promotion, 200 out! Not yet quick click! http:// T7zjs8p unsubscribes to T. ". It can be seen that the notification information to be pushed in fig. 7 is displayed in the target area 10, and there is no any shielding to other areas except the target area 10, so that a situation that the content with a high importance degree is shielded when the notification information is pushed is avoided, and the content in which the user is interested is not shielded.
In other implementation manners, the font color of the text in the display frame and the transparency degree of the display frame of the embodiment are settable according to the target area. For example, if the target area is dark (e.g., black, brown, etc.), the font color of the text in the display frame may be set to white in order to make the text in the display frame clear. Meanwhile, in order to make the display frame not too obtrusive relative to the target area, the present embodiment may set the transparency degree of the display frame to be in a transparent state or a semi-transparent state, so as to make the whole picture harmonious. If the target area is light color (e.g. white), the font color of the text in the display frame may be set to black in order to make the text in the display frame clear. Meanwhile, in order to make the display frame not too obtrusive relative to the target area, the present embodiment sets the transparency of the display frame to a non-transparent state. The setting modes of the font color of the characters in the display frame and the transparency of the display frame may be other than the above-mentioned setting modes, for example, the setting modes may be set according to the actual needs of the user, and are not listed here.
Since different applications may be affected differently when pushing notification information. For example, applications for video-type applications may obscure video images, while applications for game-type applications may leave the user with no time to consider the displayed notification information. Therefore, in order to better push the notification information, in another embodiment, when pushing the notification information, in addition to reconstructing the display frame of the notification information and displaying the display frame in the target area, the present embodiment may also convert the text content in the notification information into voice information and play the voice information, so as to push the notification information.
For example, when the user is playing a game using a game-like application, the interface image displayed on the terminal screen is a game screen, and when the notification information is displayed on the game screen, the user may have no time to consider the displayed notification information. Therefore, in the embodiment, the text content in the notification information is converted into the voice information, and then the voice information is played when the user plays the game by using the game application, so that the use of the game application by the user is not influenced, and the user can know the notification information in time. Specifically, in this embodiment, first, the text content in the notification information is obtained, and then the text content is converted into the voice information. In an implementation manner, the manner of converting the text content into the voice message may adopt a preset text-to-voice module, that is, a text-to-voice module is set in the intelligent terminal in advance, and the text-to-voice module is utilized to convert the text content in the notification message into the voice message. Then, the present embodiment plays the voice message to realize pushing of the notification information. In addition, in this embodiment, while the voice information is played, the volume of the game application is also reduced, so that the voice information can be ensured to be clearer, and a user can clearly listen to the content of the notification information.
As can be seen, in this embodiment, after receiving notification information to be pushed, an interface image of a terminal screen is obtained, and a target content in the interface image and a target area occupied by the target content in the interface image are determined by analyzing the interface image, where the target area is a display area of the notification information. Since the interface image is an image being displayed on the terminal screen, and the interface image is analyzed and the target area in the interface image is determined, the area in the interface image, which can be used for displaying the notification information, can be known. Therefore, after the target area is determined, the present embodiment controls the notification information to be displayed in the target area. Therefore, the embodiment can control the interface image of the terminal screen to be analyzed when the notification information is pushed, and control the notification information to be displayed in the target position in the interface image, so that the pushing of the notification information is intelligently controlled, the notification information is displayed in the target area in the interface image and does not block other areas in the interface image, the situation that the notification information blocks the content of interest of a user in the interface image when being displayed can be avoided, and convenience is provided for the user to use.
Exemplary device
As shown in fig. 8, an embodiment of the present invention provides a notification information pushing apparatus, including: an interface image acquisition unit 10, a target area determination unit 20, and a notification information display unit 30. Specifically, the interface image obtaining unit 10 is configured to obtain an interface image of a terminal screen after receiving notification information to be pushed. The target area determining unit 20 is configured to obtain target content in the interface image, and determine a target area occupied by the target content in the interface image. The notification information display unit 30 is configured to control the notification information to be displayed in the target area. .
Based on the above embodiment, the present invention further provides an intelligent terminal, and a schematic block diagram thereof may be as shown in fig. 9. The intelligent terminal comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a push method of notification information. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the intelligent terminal is arranged inside the intelligent terminal in advance and used for detecting the operating temperature of internal equipment.
It will be understood by those skilled in the art that the block diagram of fig. 9 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the intelligent terminal to which the solution of the present invention is applied, and a specific intelligent terminal may include more or less components than those shown in the figure, or combine some components, or have different arrangements of components.
In one embodiment, an intelligent terminal is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
acquiring an interface image of a terminal screen after receiving notification information to be pushed;
acquiring target content in the interface image, and determining a target area occupied by the target content in the interface image;
and controlling the notification information to be displayed in the target area.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a notification information pushing method, an intelligent terminal and a storage medium, wherein the method includes: acquiring an interface image of a terminal screen after receiving notification information to be pushed; acquiring target content in the interface image, and determining a target area occupied by the target content in the interface image; and controlling the notification information to be displayed in the target area. The embodiment can control the interface image of the terminal screen to be analyzed when the notification information is pushed, and control the notification information to be displayed in the target position in the interface image, so that the pushing of the notification information is controlled, and the notification information is prevented from blocking the area, which is interested by a user, in the interface image.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (11)

1. A method for pushing notification information, the method comprising:
acquiring an interface image of a terminal screen after receiving notification information to be pushed;
acquiring target content in the interface image, and determining a target area occupied by the target content in the interface image;
and controlling the notification information to be displayed in the target area.
2. The method for pushing notification information according to claim 1, wherein the obtaining an interface image of a terminal screen after receiving the notification information to be pushed comprises:
starting a preset task monitoring system, and judging whether the notification information to be pushed exists in the task of the terminal system according to the task monitoring program;
if the notification information to be pushed exists in the terminal system task, acquiring the notification information to be pushed;
and after the notification information to be pushed is acquired, acquiring an operation interface of the application program in a foreground operation state, and taking the operation interface as the interface image of the terminal screen, wherein the operation interface is an interface displayed by the application program on a terminal desktop.
3. The notification information pushing method according to claim 1 or 2, wherein the acquiring of the target content in the interface image and the determining of the target area occupied by the target content in the interface image include:
respectively identifying the content of each area in the interface image, and determining a type label corresponding to the content in each area and area data of the content;
determining the target content according to the type label and the area data;
and acquiring the area occupied by the target content in the interface image, and taking the area as the target area.
4. The method according to claim 3, wherein the identifying the content of each region in the interface image, and determining the type tag corresponding to the content in each region and the area data of the content comprises:
dividing the interface image into areas, respectively identifying each area, and determining the content in each area;
determining a type label corresponding to the content according to the content in each region;
contour data of the content in the respective areas is acquired, and area data of the content is determined based on the contour data.
5. The notification information pushing method according to claim 4, wherein said determining the target content according to the type tag and the area data includes;
classifying the content according to the type label to determine the category of the content;
determining target content to be selected according to the category of the content, wherein the target content to be selected is the content of which the category is a preset target category;
and determining the target content from the target content to be selected according to the area data.
6. The method for pushing notification information according to claim 1 or 5, wherein the controlling the notification information to be displayed in the target area includes:
acquiring the text content in the notification information, and constructing a display frame of the notification information according to the text content, wherein the text content is stored in the display frame;
and displaying the display frame in the target area to realize the pushing of the notification information.
7. The method for pushing notification information according to claim 6, wherein the obtaining text content in the notification information and constructing a display frame of the notification information according to the text content includes:
acquiring the word number of the text content;
determining a display form of the text content in a terminal screen according to the word number and a preset rule, wherein the preset rule is a corresponding relation between the word number and the display form;
and constructing the display frame of the notification information according to the display form.
8. The method for pushing notification information according to claim 7, wherein after the constructing the display frame of the notification information according to the display form, the method comprises:
and acquiring the color of the target area, and setting the transparency degree of the display frame according to the color of the target area.
9. The method according to claim 6, wherein the controlling the notification information to be displayed in the target area further comprises:
and converting the text content into voice information, and playing the voice information to realize the pushing of the notification information.
10. An intelligent terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs being configured to be executed by the one or more processors comprises instructions for performing the method of any of claims 1-9.
11. A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1-9.
CN202010676310.0A 2020-07-14 2020-07-14 Notification information pushing method, intelligent terminal and storage medium Pending CN113934481A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010676310.0A CN113934481A (en) 2020-07-14 2020-07-14 Notification information pushing method, intelligent terminal and storage medium
PCT/CN2020/129101 WO2022011905A1 (en) 2020-07-14 2020-11-16 Notification information pushing method, smart terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010676310.0A CN113934481A (en) 2020-07-14 2020-07-14 Notification information pushing method, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113934481A true CN113934481A (en) 2022-01-14

Family

ID=79273716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010676310.0A Pending CN113934481A (en) 2020-07-14 2020-07-14 Notification information pushing method, intelligent terminal and storage medium

Country Status (2)

Country Link
CN (1) CN113934481A (en)
WO (1) WO2022011905A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097793A (en) * 2023-10-19 2023-11-21 荣耀终端有限公司 Message pushing method, terminal and server

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114911396A (en) * 2022-06-07 2022-08-16 深圳市天趣星空科技有限公司 Information processing method and system for intelligent glasses

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366169A (en) * 2018-01-30 2018-08-03 维沃移动通信有限公司 A kind of processing method and mobile terminal of notification message
CN108810275A (en) * 2018-06-08 2018-11-13 麒麟合盛网络技术股份有限公司 A kind of information displaying method and device
CN108881606A (en) * 2018-04-24 2018-11-23 努比亚技术有限公司 Interface display methods, terminal and the computer readable storage medium of terminal
CN109656437A (en) * 2018-11-30 2019-04-19 维沃移动通信有限公司 A kind of information display method and terminal device
CN109960557A (en) * 2019-03-28 2019-07-02 维沃移动通信有限公司 A kind of display methods and terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9866645B2 (en) * 2013-09-13 2018-01-09 Visa International Service Association Actionable notifications apparatuses, methods and systems
CN109634479A (en) * 2018-10-25 2019-04-16 深圳壹账通智能科技有限公司 Notification information processing method, equipment, storage medium and device under full frame state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366169A (en) * 2018-01-30 2018-08-03 维沃移动通信有限公司 A kind of processing method and mobile terminal of notification message
CN108881606A (en) * 2018-04-24 2018-11-23 努比亚技术有限公司 Interface display methods, terminal and the computer readable storage medium of terminal
CN108810275A (en) * 2018-06-08 2018-11-13 麒麟合盛网络技术股份有限公司 A kind of information displaying method and device
CN109656437A (en) * 2018-11-30 2019-04-19 维沃移动通信有限公司 A kind of information display method and terminal device
CN109960557A (en) * 2019-03-28 2019-07-02 维沃移动通信有限公司 A kind of display methods and terminal device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097793A (en) * 2023-10-19 2023-11-21 荣耀终端有限公司 Message pushing method, terminal and server
CN117097793B (en) * 2023-10-19 2023-12-15 荣耀终端有限公司 Message pushing method, terminal and server

Also Published As

Publication number Publication date
WO2022011905A1 (en) 2022-01-20

Similar Documents

Publication Publication Date Title
CN107992604B (en) Task item distribution method and related device
CN109005283B (en) Method, device, terminal and storage medium for displaying notification message
CN111368562B (en) Method and device for translating characters in picture, electronic equipment and storage medium
CN113194349B (en) Video playing method, comment device, equipment and storage medium
CN109445884B (en) Function label display method and terminal equipment
CN114650430B (en) Service list display method and device, electronic equipment and storage medium
CN108721898A (en) The determination method and apparatus of frame per second, storage medium, electronic device
CN111641677B (en) Message reminding method, message reminding device and electronic equipment
CN112839223B (en) Image compression method, image compression device, storage medium and electronic equipment
CN112241327A (en) Shared information processing method and device, storage medium and electronic equipment
CN113934481A (en) Notification information pushing method, intelligent terminal and storage medium
CN110458646A (en) Page display method, device, computer equipment and storage medium
CN111124564A (en) Method and device for displaying user interface
CN113052619A (en) Advertisement making method and device
CN111223155A (en) Image data processing method, image data processing device, computer equipment and storage medium
CN113239302A (en) Page display method and device and electronic equipment
CN111914850B (en) Picture feature extraction method, device, server and medium
CN111428806A (en) Image tag determination method and device, electronic equipment and storage medium
CN115809889A (en) Intelligent passenger group screening method, system, medium and equipment based on marketing effect
CN112449230A (en) Character string display processing method, device, terminal and storage medium
CN112508284B (en) Display material pretreatment method, display material throwing system, display material throwing device and display material pretreatment equipment
CN111400534B (en) Cover determination method and device for image data and computer storage medium
CN114928603A (en) Client software upgrading method and device, electronic equipment and medium
CN111679863B (en) Test question display method, device, equipment and medium based on head-mounted display equipment
CN112287261A (en) Resource loading method and electronic 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