WO2022011905A1 - 一种通知信息的推送方法、智能终端及存储介质 - Google Patents
一种通知信息的推送方法、智能终端及存储介质 Download PDFInfo
- Publication number
- WO2022011905A1 WO2022011905A1 PCT/CN2020/129101 CN2020129101W WO2022011905A1 WO 2022011905 A1 WO2022011905 A1 WO 2022011905A1 CN 2020129101 W CN2020129101 W CN 2020129101W WO 2022011905 A1 WO2022011905 A1 WO 2022011905A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- content
- notification information
- area
- target
- interface image
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present disclosure relates to the technical field of information push, and in particular, to a method for pushing notification information, an intelligent terminal and a storage medium.
- the push services of these messages are carried out irregularly, and are generally pushed in the form of pop-up windows. Therefore, when the user is using an application, the message push will affect the user's use. For example, a message pushed by a user while watching a video will block the video screen, causing the user to miss certain content and affecting the user's use.
- the technical problem to be solved by the present disclosure is to provide a method for pushing notification information, an intelligent terminal and a storage medium, aiming at solving the problem in the prior art that when a user is using a certain application program, Pushing messages will affect user usage issues.
- an embodiment of the present disclosure provides a method for pushing notification information, wherein the method includes:
- the notification information is controlled to be displayed in the target area.
- acquiring the interface image of the terminal screen includes:
- the running interface of the application in the foreground running state is obtained, and the running interface is used as the interface image of the terminal screen, and the running interface is the application The interface that the program displays on the terminal desktop.
- the judging whether there is the notification information to be pushed in the terminal system task includes:
- the running interface of the application running in the foreground is acquired, and the running interface of the application running in the foreground is used as the interface image of the terminal screen.
- the acquiring the target content in the interface image and determining the target area occupied by the target content in the interface image includes:
- the area occupied by the target content in the interface image is acquired, and the area is used as the target area.
- the performing content recognition on each area in the interface image, and determining the type label corresponding to the content in each area and the area data of the content include:
- Outline data of the content in the respective regions is acquired, and area data of the content is determined based on the outline data.
- the determining the target content according to the type label and the area data includes;
- the target content to be selected is determined, wherein the target content to be selected is the content whose category is a preset target category;
- the target content is determined from the target content to be selected.
- the determining the target content from the target content to be selected according to the area data includes:
- the area data from the target content to be selected, determine the content whose area data is less than or equal to the area of the display area, and use the content whose area data is less than or equal to the area of the display area as the target content .
- the determining the target content from the target content to be selected according to the area data includes:
- controlling the display of the notification information in the target area includes:
- the display frame is displayed in the target area, so as to realize the push of the notification information.
- the acquiring the text content in the notification information, and constructing a display frame of the notification information according to the text content includes:
- the display frame of the notification information is constructed according to the display form.
- the method includes:
- the color of the target area is acquired, and the transparency of the display frame is set according to the color of the target area.
- controlling the display of the notification information in the target area further includes:
- the text content is converted into voice information, and the voice information is played to realize the push of the notification information.
- an embodiment of the present disclosure further provides an apparatus for pushing notification information, wherein the apparatus includes:
- an interface image acquiring unit configured to acquire an interface image of the terminal screen after receiving the notification information to be pushed;
- a target area determination unit configured to acquire the target content in the interface image, and determine the target area occupied by the target content in the interface image
- a notification information display unit configured to control the notification information to be displayed in the target area.
- implementations of the present disclosure also provide an intelligent terminal, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors.
- the one or more programs include a push method for executing notification information as described in any one of the above.
- the embodiments of the present disclosure further provide a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute any of the above The push method of the notification information described above.
- the interface image of the terminal screen is acquired, and the target content in the interface image and the target content are determined by analyzing the interface image.
- the target area occupied in the interface image, the target area is the display area of the notification information. Since the interface image is the image being displayed on the screen of the terminal, by analyzing the interface image and determining the target area in the interface image, you can know the area in the interface image that can be used to display the notification information . Therefore, after the target area is determined, this embodiment controls the notification information to be displayed in the target area.
- this embodiment can control to analyze the interface image of the terminal screen when the notification information is pushed, and control the notification information to be displayed in the target position in the interface image, so as to realize the intelligent control of the push of the notification information, So that the notification information is displayed in the target area in the interface image without blocking other areas in the interface image, it can prevent the notification information from blocking the user's interest in the interface image when displayed. content to provide convenience to users.
- FIG. 1 is a schematic diagram of an application scenario of a method for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 2 is a schematic flowchart of a method for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 3 is a schematic flowchart of acquiring an interface image in a method for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 4 is a schematic flowchart of determining a target area in a method for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 5 is a schematic flowchart of displaying notification information in a method for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 6 is a schematic diagram of performing content identification and determining a target area in a method for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 7 is a schematic diagram of a display frame for determining notification information in a method for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 8 is a schematic diagram of pushing a display frame of notification information in an interface image in a method for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 9 is a schematic block diagram of a device for pushing notification information provided by an embodiment of the present disclosure.
- FIG. 10 is a schematic block diagram of an internal structure of an intelligent terminal provided by an embodiment of the present disclosure.
- this embodiment provides a method for pushing notification information.
- the method for pushing notification information in this 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 as to realize intelligent control of the push of the notification information, so that the notification information is displayed in the target area in the interface image without blocking Other areas in the interface image can prevent the notification information from covering the content of the user's interest in the interface image when displayed, thereby providing convenience to the user.
- an interface image of the terminal screen is acquired, and by analyzing the interface image, it is determined that the target content in the interface image and the target content in the The target area occupied in the interface image, the target area is the display area of the notification information. Since the interface image is the image being displayed on the screen of the terminal, by analyzing the interface image and determining the target area in the interface image, you can know the area in the interface image that can be used to display the notification information . Therefore, after the target area is determined, this embodiment controls the notification information to be displayed in the target area.
- the method for pushing notification information in this embodiment can be applied to the scenario shown in FIG. 1 , and the intelligent terminal in this embodiment can obtain the notification information from the server.
- the notification information may be notification information of "file download successful" sent by the server to the intelligent terminal after the intelligent terminal completes downloading the file from the server.
- the smart terminal After acquiring the notification information, the smart terminal starts to prepare to push the notification information.
- the intelligent terminal After acquiring the notification information, acquires an interface image of the terminal screen, and analyzes the interface image.
- the acquired interface image is a playback screen captured from a video playback application, indicating that a video is being played on the terminal screen of the smart terminal at this time.
- the playback screen can be analyzed to determine the target content of the playback screen and the target area occupied by the target content in the playback screen, and then the notification information of "file download is successful" can be controlled in the playback screen.
- the target area is displayed to realize the intelligent control of the push notification information. For example, if the target area is an area other than the person in the playback screen, the notification message of "file download is successful" is displayed in the area other than the person.
- the method for pushing notification information in this embodiment is not only applied to the scenario of interactive communication between a smart terminal and a server in FIG. 1 , but also can be applied to a smart terminal, and the notification information acquired by the smart terminal can be the smart terminal itself.
- the information pushed by the installed application such as the "Guangdong Mobile" APP installed in the smart terminal automatically pushes the "call bill” information.
- the smart terminal obtains the notification information (that is, the "call bill” information), it starts to prepare to push the notification information.
- the interface image of the terminal screen is also obtained first, and the interface image is analyzed.
- the notification information ie the "call bill” information
- This embodiment provides a method for pushing notification information.
- the method is applied to an intelligent terminal, as shown in FIG. 2 , and the method includes:
- Step S100 After receiving the notification information to be pushed, acquire an interface image of the terminal screen.
- the interface image of the terminal screen needs to be acquired, so as to analyze the interface image to determine the target content in the interface image and the target content The target area occupied in the interface image.
- the interface image in this embodiment is the image displayed on the screen of the terminal. For example, if the smart terminal is playing a video, the interface image is the image of the video being played; if the smart terminal is running a game APP, the interface image is the game screen.
- the step of acquiring the interface image in this embodiment includes:
- Step S101 Start a preset task monitoring system, and according to the task monitoring program, determine whether there is the notification information to be pushed in the task of the terminal system;
- Step S102 If there is the notification information to be pushed in the terminal system task, obtain the notification information to be pushed;
- Step S103 After obtaining the notification information to be pushed, obtain the running interface of the application program in the foreground running state, and use the running interface as the interface image of the terminal screen, and the running interface is: The interface displayed by the application program on the terminal desktop.
- the notification information is generally generated by an application program in the smart terminal, and is pushed to the terminal screen of the smart terminal so as to be displayed on the terminal screen.
- the notification information of "call bill” is generated by a telecom operator's APP (such as Guangdong Mobile).
- the telecom operator's APP When the telecom operator's APP generates the notification information of "call bill", it may run in the background or in the foreground. . However, whether it is running in the background or in the foreground, the notification information of the "call bill” is a task sent by the APP of the telecom operator to the terminal system. After receiving the task, the smart terminal will execute the "call bill” notification. The task of notification information push, so as to complete the push of the notification information.
- the smart terminal may pre-configure the notification information.
- a task monitoring system is set up, and the task monitoring system is used to monitor the background tasks of the intelligent terminal.
- the task monitoring system can monitor the terminal system tasks of the intelligent terminal, and then acquire all system tasks to be executed. Since the task monitoring system monitors all system tasks in the intelligent terminal, the monitored system tasks to be executed must not only be tasks of notification information, but must also include other tasks, such as opening and Exit tasks, etc.
- the notification information can be acquired. In an implementation manner, in this embodiment, when judging whether the notification information exists in the system task to be executed, it is determined by acquiring the character identifier in each system task to be executed.
- the system task to be executed is a notification information task, which means that there is notification information to be pushed, so the notification information to be pushed can be obtained.
- the intelligent terminal obtains all the system tasks to be executed, and then obtains the character identifiers of these to-be-executed task systems one by one.
- the system task to be executed is the notification information to be pushed, and then the specific content of the notification information can be obtained. It can be seen that, in this embodiment, all the notification information to be pushed can be determined by acquiring the character identifiers of the task systems to be executed one by one, and then the determined notification information is acquired.
- the interface image refers to the image displayed on the terminal screen
- the image displayed on the terminal screen is the running interface of the application running in the foreground in the smart terminal on the terminal screen.
- the application running in the foreground in the smart terminal is a video player
- the running interface of the video player on the terminal screen is the image of the video played by the video player on the terminal screen.
- the running interface on the terminal screen is the interface image.
- this embodiment after acquiring the notification information to be pushed, it is necessary to acquire the running interface of the application program in the foreground running state.
- this embodiment first acquires all the installed application programs in the smart terminal, including the application programs installed by the user and the application programs that come with the smart terminal system. After all installed applications are obtained, the process information corresponding to each application is obtained.
- the process information in this embodiment includes the package name of the application and the running data of the application.
- the running data can reflect whether the application is running. Therefore, the running state can be determined according to the running data. application. That is, it can be determined which applications are running.
- this embodiment first obtains the running position corresponding to the application in the running state, determines the application running on the terminal desktop according to the determined running position, and determines the application running on the terminal desktop to determine the running position.
- An application running in the foreground It can be seen from this that in this embodiment, the running position of the application running in the running state is analyzed to determine the application running in the foreground, and then the running interface of the application running in the foreground is obtained.
- the running interface is the interface image on the terminal screen.
- the smart terminal first obtains all installed applications, such as "Guangdong Mobile”, “iQiyi”, “Honor of Kings”, “NetEase Cloud Music”, etc., and then obtains the process information of these applications. According to the process information, it is determined that the running applications are “iQiyi”, “Guangdong Mobile” and “NetEase Cloud Music”. Next, obtain the operating positions of "iQiyi”, “Guangdong Mobile” and “NetEase Cloud Music", and determine according to the operating positions that "iQiyi" is running on the terminal desktop, which means that the user is using "iQiyi" Watch the video.
- Step S200 Acquire target content in the interface image, and determine a target area occupied by the target content in the interface image.
- this embodiment analyzes 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, so as to control all
- the notification information is displayed in the target area.
- the notification information is pushed, the notification information is pushed to the terminal screen for display, and the display is basically displayed in a fixed form, which will affect some content in the interface image on the terminal screen. Occlusion, affecting the user's use. For example, when a user is watching a video, the interface image displayed on the terminal screen is the video screen, and the push notification information will block the video screen, causing the user to miss some content on the video screen and affecting the user's use.
- 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.
- the notification information can be controlled to be displayed only in the target area, and other areas outside the target area will not be blocked, so as to meet the user's usage needs.
- the mode of determining the target area in this embodiment comprises the following steps:
- Step S201 respectively performing content identification on each area in the interface image, and determining the type label corresponding to the content in each area and the area data of the content;
- Step S202 determining the target content according to the type label and the area data
- Step S203 Acquire an area occupied by the target content in the interface image, and use the area as the target area.
- the interface image is divided into regions, the interface image is divided into multiple regions, and the content of each region is identified to determine the content in each region.
- the type label corresponding to the content of each area and the area data of the content of each area are determined according to the content of each area, and the type label corresponding to the content of each area is determined It is to determine the type of content in each area.
- the target content is determined according to the determined type label and area data.
- what this embodiment needs to achieve is to control the notification information to be displayed only in the target area in the interface image, and not to block other areas outside the target area, so as to meet the needs of users, that is, not to block other areas outside the target area.
- Content that the user is interested in is blocked.
- the importance of the content may reflect the possibility that the user is interested in a certain content. When the importance of a certain content is higher, it indicates that the user is more likely to be interested in the content, and when the importance of a certain content is lower, it indicates that the user is interested in the content. lower.
- the degree of importance in this embodiment may be determined according to the weight of the content in the interface image. The higher the weight of a certain content, the higher the degree of importance.
- the content with the type label A has a high degree of importance
- the content with the type label B has a low degree of importance.
- the type label of a certain content identified is A
- the type label of a certain content identified is high
- the type label of a certain content identified is B
- the importance of the content is low
- the importance of the content can reflect the possibility that the user is interested in the content, so the importance of the content is low.
- the content is content that the user is not interested in.
- the content that the user is not interested in can be determined according to the importance of the content, and then the content in the interface image that the user is not interested in is determined. the target area.
- the notification information to be pushed is displayed in the target area, since the type label of the content in the target area is B, that is, the importance of the content is low, the content with low importance will not be blocked.
- the importance of the content can reflect the possibility that the user is interested in the content. When the importance of the content is low, the possibility of the user being interested in the content is low. Therefore, when the notification information to be pushed is displayed in the target area When inside, the content that the user is interested in will not be occluded.
- the corresponding relationship between the content and the type label can be preset in this embodiment.
- a mapping file is set, and the mapping file has the corresponding relationship between the content and the type label.
- this embodiment can identify contents from a large number of images in advance, and divide all the identified contents into two categories and set corresponding type labels.
- There are two types of content that are not of interest to the user and the content that the user is interested in is set to the corresponding type label A, and the content that the user is not interested in is set to the corresponding type label B, and finally a mapping file is formed.
- the mapping file includes the content and type labels.
- the content that the user is not interested in is grass and the sky; the content that the user is interested in is characters. Therefore, the type label corresponding to the character is A; the type label corresponding to the grass and the sky are both B.
- the type label corresponding to each content can be known, that is, the content that the user is interested in can be determined according to the importance of the content.
- the identified content is matched with the mapping file, and the type label corresponding to the content in each area can be determined, that is, the content in each area can be determined Whether the content is important or not, it is then determined whether the content is interesting to the user, and then the target content is determined.
- this embodiment may also use a neural network model to determine the type label corresponding to the content of each area.
- the adopted neural network model is obtained by training according to the corresponding relationship between the content and the type label. Therefore, the determined content of each area is input into the neural network model, and the corresponding type label can be quickly output. .
- the importance of the content with the type label B in this embodiment is low, that is, the content with the type label B is the content that the user is not interested in.
- the interface image is divided into regions in this embodiment, the content of each region is identified, so the importance of the content in each region is determined.
- the final target area to be determined in the present disclosure is the area composed of the content with low importance of the interface image. Therefore, in this embodiment, the preset target category is set as the content with a low degree of importance (that is, the content with the type label B in the above example), when the identified content meets the preset target category, that is, the identified content is important The content with a low degree is the target content to be selected.
- the identified content is matched with the mapping file to determine the type label corresponding to the content in each area, and the type label is filtered out according to the type label as
- the content of B that is, the content with a low degree of importance is filtered, that is, the content that meets the preset target category is determined, and these contents with a low degree of importance are the target content to be selected, and the target content to be selected is the type label of B. content.
- the target content and the target area occupied by the target content in the interface image are determined according to the determined target content to be selected. In a specific application, when there are multiple contents whose type label is B, any one of the contents whose type label is B (ie, the target content to be selected) is selected as the target content.
- this embodiment may also determine the area of the display area used to display the notification information to be pushed according to information such as the number of characters and the text size of the notification information to be pushed , and then determine the target content from the content whose importance is less than the threshold according to the area of the display area. Specifically, after the content in each area is identified in this embodiment, the type label of the content in each area is determined, and the content whose type label is B is determined. Next, the outline data of the content with the type label B is obtained, and the area data corresponding to the content with the type label B is determined according to the outline data.
- the outline data in this embodiment represents the size data of the outer boundary of the content, and the area data of the content whose type label is B can be determined according to the size data. Then, the target content is determined according to the area data of the content with the type label B and the area of the display area for displaying the notification information to be pushed. For example, this embodiment determines that the size of the display area is S according to the number of characters and the text size of the notification information to be pushed (that is, only the area with an area greater than or equal to S can completely display the text content of the notification information to be pushed).
- the content with the type label B in the interface image is grass, sky and mountain
- the target content to be selected is grass, sky and mountain.
- the area data of the grass, the sky and the mountain are all larger than the area S of the display area, you can choose one of the grass, the sky and the mountain as the target content. If the sum of the area data of the sky and the mountain is greater than the area S of the display area, the sky and the mountain are used as the target content, and then the target area of the target content in the interface image is determined.
- content with a high degree of importance in the interface image can also be determined first, and then content with a low degree of importance can be removed from the interface image, so that the content that the user is not interested in remains.
- the flock in the picture A in FIG. 6 is the content that the user is interested in, so first, the area where the flock in the picture A in FIG. 6 is located can be determined.
- Picture B in Figure 6 picture B in Figure 6 is to box out the sheep respectively, and then group all the sheep into the flock area in picture C in Figure 6. The rest of the content (such as grass and sky) is less important content.
- the content omission caused by the overlapping of multiple high-importance content is avoided, as shown in D in FIG. 6 .
- the flock in picture D is the content that the user is interested in. Since there are many sheep in the flock, in order to avoid the content omission, the sheep in this example can be selected in turn, so as to be more Accurately identify the content of high importance.
- the sheep in this example can be selected in turn, so as to be more Accurately identify the content of high importance.
- the importance of the content can reflect the possibility that the user is interested in the content. When the importance of the content is low, the possibility of the user being interested in the content is low, so the content that the user is not interested in can be accurately determined.
- the importance level of the content in each region may be different.
- the importance of the content in this embodiment may also be calculated and determined according to the weight. The higher the weight of the content, the higher the importance.
- the present embodiment may determine the content with the lowest importance level as the target content from the importance levels of the contents in all areas. For example, in an interface image, the grass, sky, and mountain scenery are all low-importance content. However, the importance of the sky is the lowest, so in this embodiment, the sky is used as the target content, and the area of the sky is further used as the target area.
- a threshold may also be set in this embodiment, and the target content is determined according to the threshold. For example, comparing the importance of the content in all regions with the threshold, filtering out the content whose importance is less than the threshold, and taking the content whose importance is less than the threshold as the target content, and then determining the target region.
- any one content may be selected as the target content from the plurality of contents whose importance degree is lower than the threshold.
- this embodiment may determine the area of the display area used to display the notification information to be pushed according to the number of characters and the size of the text to be pushed, and then The target content is determined from the content whose importance degree is smaller than the threshold according to the area of the display area. Specifically, after the content in each area is identified in this embodiment, the degree of importance of the content in each area is determined, and the content whose degree of importance is less than the threshold is determined. Then, the outline data of the content whose importance degree is less than the threshold is obtained, and the area data corresponding to the content whose importance degree is less than the threshold value is determined according to the outline data.
- the outline data in this embodiment represents the size data of the outer boundary of the content, and the area data of the less important content can be determined according to the size data. Then, the target content is determined according to the area data of the content whose importance is less than the threshold value and the area of the display area for displaying the notification information to be pushed. For example, this embodiment determines that the size of the display area is S according to the number of characters and the text size of the notification information to be pushed (that is, only when the area is greater than or equal to S, the text content of the notification information to be pushed can be completely displayed) .
- the content in the interface image whose importance level is less than the threshold value is grass, sky and mountain, that is, the content of the target to be selected is grass, sky and mountain.
- the area data of the grass, the sky and the mountain are all larger than the area S of the display area, you can choose one of the grass, the sky and the mountain as the target content. If the sum of the area data of the sky and the mountain is greater than the area S of the display area, the sky and the mountain are used as the target content, and then the target area of the target content in the interface image is determined.
- an interface image there may be content with an importance level less than the threshold separated by content with an importance level greater than the threshold (that is, there are content that the user is not interested in and content that the user is interested in).
- this embodiment first needs to obtain the area data of the content in each area, Then according to the area data to determine the target content.
- the target content is determined according to the content whose importance degree is less than the threshold, and the target content is determined on the basis of the largest area.
- area, the content contained in this area is the target content, and the area occupied by the target content in the interface image is the target area.
- Step S300 controlling the notification information to be displayed in the target area.
- this embodiment can display the notification information according to the target area.
- the notification information will not block the content that the user is interested in in the interface image, This will not affect the use of users.
- the interface image is the image of the video being played.
- the character is the content that the user is interested in
- the background behind the character is the content that the user is not interested in. Therefore, in this embodiment, the notification information can be controlled to be displayed in the background area behind the character. This will not obscure the characters.
- Step S301 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;
- Step S302 Display the display frame in the target area, so as to realize the push of the notification information.
- notification information needs to be pushed to the target area for display.
- the notification information is reconstructed to construct a display frame of the notification information.
- the text content in the notification information is acquired, and a display box (or a message bar) of the notification information is constructed according to the text content.
- the text content may be constructed according to the number of characters in the text content. A display frame that can store these text contents is generated, and the display frame is displayed in the target area.
- this embodiment first obtains the text content in the notification information, and determines the display form of the text content on the terminal screen according to the number of words and a preset rule, and the preset rule is the number of words and all The corresponding relationship of the display form is established, 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, this embodiment can determine the display position of the notification information on the screen terminal, the area of the text display area, and the display frame according to the preset rule according to the number of characters in the notification information. The degree of transparency, so that the display frame can be quickly constructed.
- the gray part in the interface image in FIG. 7 is the determined target area 10 (such as the grass in the flock image in FIG. 6 ), and the black rectangle in FIG. 6 is A display box 20 for displaying notification information.
- the present embodiment acquires the text content of the notification information, and constructs the size of the display frame 20 in combination with the number of texts.
- the display frame 20 is constructed according to preset rules. For example, when the number of texts in the notification information is less than or equal to 10, all text content can be displayed in one line, so a display box 20 that can display all text content in one line is constructed.
- the number of characters in the notification information is greater than 10 and less than or equal to 15, it is displayed in two lines.
- the font size of the displayed text can be set again, so the area of the text to be displayed can be determined.
- a display box 20 that can display all the text content in two lines can be constructed.
- the degree of transparency of the display frame 20 can be set according to the color of the target area 10 to better display the content of the notification information, and avoid too obtrusiveness between the display frame 20 and the target area 10 .
- the display frame 20 is displayed in the target area 10, that is, the notification information to be pushed is displayed in the target area 10 of the interface image.
- setting the degree of transparency of the display frame 20 can realize that when the notification information is displayed in the target area 10 , the display frame 20 will not completely obstruct the target area 10 visually, and the distance between the display frame 20 and the target area 10 can be ensured. It won't be too abrupt.
- the flock in FIG. 8 is the content of interest to the user, the area other than the flock is the target area 10 , the display frame 20 is displayed in the target area 10 , and the notification information displayed in the display frame 20 is displayed.
- the content is "Taobao: March “Goddess Festival” major promotion, over 200 get 200! Click here soon! http://T7zjs8p unsubscribe back to T.”
- the notification information to be pushed in FIG. 8 is displayed in the target area 10, and will not block other areas except the target area 10, so as to avoid blocking the highly important content when pushing the notification information In this case, the content that the user is interested in will not be blocked.
- the font color of the text in the display box in this embodiment and the degree of transparency of the display box can be set according to the target area. For example, if the target area is dark (such as black, brown, etc.), in order to make the text in the display frame clear, the font color of the text in the display frame can be set to white. Meanwhile, in order to prevent the display frame from being too obtrusive relative to the target area, in this embodiment, the transparency of the display frame may be set to a transparent state or a semi-transparent state, so as to make the overall picture harmonious. And if the target area is a light color (such as white), in order to make the text in the display frame clear, the font color of the text in the display frame can be set to black.
- the target area is a light color (such as white)
- the font color of the text in the display frame can be set to black.
- the transparency of the display frame is set to a non-transparent state.
- the font color of the text in the display box and the setting method of the degree of transparency of the display frame in addition to the above-mentioned setting methods, can also be other setting methods, for example, it can be set according to the actual needs of users. Settings, etc., will not be listed here.
- the notification information when pushing notification information, it will have different effects on different applications. For example, an application for video applications will block the video screen, while for an application of game applications, the user may not have time to take into account the displayed notification information. Therefore, in order to better push the notification information, in another embodiment, when the notification information is pushed in this embodiment, in addition to reconstructing the display frame of the notification information, the display frame is displayed in the target area In addition, the text content in the notification information can also be converted into voice information at the same time, and the voice information can be played, so as to realize the push of the notification information.
- the interface image displayed on the terminal screen is the game screen.
- the notification information is displayed on the game screen, the user may not have time to consider the displayed notification information. Therefore, in this embodiment, the text content in the notification information can be converted into voice information, and then when the user uses the game application to play the game, the voice information can be played, so that the user's use of the game application will not be affected. , which can let users know the notification information in time. Specifically, in this embodiment, the text content in the notification information is obtained first, and then the text content is converted into voice information.
- a preset text-to-speech module may be used to convert the text content into voice information, that is, a text-to-speech module is set in the smart terminal in advance, and the text-to-speech module is used to convert the notification
- the text content in the message is converted into a voice message.
- the voice information is played to realize the push of the notification information.
- the volume of the game application is reduced, so that the voice information can be more clear, so that the user can clearly hear the content of the notification information.
- the interface image of the terminal screen is obtained, and the target content in the interface image and the target content in the interface are determined by analyzing the interface image.
- the target area occupied in the image, the target area is the display area of the notification information. Since the interface image is the image being displayed on the screen of the terminal, by analyzing the interface image and determining the target area in the interface image, you can know the area in the interface image that can be used to display the notification information . Therefore, after the target area is determined, this embodiment controls the notification information to be displayed in the target area.
- this embodiment can control to analyze the interface image of the terminal screen when the notification information is pushed, and control the notification information to be displayed in the target position in the interface image, so as to realize the intelligent control of the push of the notification information, So that the notification information is displayed in the target area in the interface image without blocking other areas in the interface image, it can prevent the notification information from blocking the user's interest in the interface image when displayed. content to provide convenience to users.
- an embodiment of the present disclosure provides an apparatus for pushing notification information.
- the apparatus includes: an interface image acquisition unit 10 , a target area determination unit 20 , and a notification information display unit 30 .
- the interface image acquiring unit 10 is configured to acquire the interface image of the terminal screen after receiving the notification information to be pushed.
- the target area determining unit 20 is configured to acquire the target content in the interface image, and determine the 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. .
- the present disclosure also provides an intelligent terminal, the principle block diagram of which may be as shown in FIG. 10 .
- the intelligent terminal includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected through a system bus.
- the processor of the intelligent terminal is used to provide computing and control capabilities.
- the memory of the intelligent terminal includes a non-volatile storage medium and an internal memory.
- the nonvolatile storage medium stores an operating system and a computer program.
- the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
- the network interface of the intelligent terminal is used for communicating with external terminals through network connection. When the computer program is executed by the processor, a method for pushing notification information is implemented.
- the display screen of the smart terminal may be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the smart terminal is pre-set inside the smart terminal to detect the operating temperature of the internal equipment.
- FIG. 10 is only a block diagram of a partial structure related to the solution of the present disclosure, and does not constitute a limitation on the intelligent terminal to which the solution of the present disclosure is applied.
- the specific intelligent terminal More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
- an intelligent terminal 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 one or more processors
- One or more programs contain instructions to:
- the notification information is controlled to be displayed in the target area.
- Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory may include random access memory (RAM) or external cache memory.
- RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
- the present disclosure discloses a method for pushing notification information, an intelligent terminal and a storage medium.
- the method includes: after receiving notification information to be pushed, acquiring an interface image of a terminal screen; acquiring the interface image middle target content, determine the target area occupied by the target content in the interface image; control the notification information to be displayed in the target area.
- the interface image of the terminal screen can be analyzed, and the notification information can be controlled to be displayed in the target position in the interface image, so as to control the push of the notification information and avoid the notification
- the information blocks the area of interest to the user in the interface image.
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
本公开公开了一种通知信息的推送方法、智能终端及存储介质,所述方法包括:当接收到待推送的通知信息后,获取终端屏幕的界面图像;获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域;控制所述通知信息在所述目标区域中显示。本实施例可以控制在推送通知信息时,对终端屏幕的界面图像进行分析,控制所述通知信息在界面图像中的目标位置中显示,从而实现对通知信息的推送进行控制,以避免所述通知信息遮挡所述界面图像中用户感兴趣的区域。
Description
优先权
本公开要求申请日为2020年07月14日提交中国专利局、申请号为“202010676310.0”、申请名称为“一种通知信息的推送方法、智能终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
本公开涉及信息推送技术领域,尤其涉及的是一种通知信息的推送方法、智能终端及存储介质。
随着互联网技术和通信技术的发展,智能终端在现代人的生活中扮演了越来越重要的角色,为满足用户的各种需求,智能终端中安装了各种应用程序,丰富了人们生活。
由于各类应用程序后台均包括一些通知类的消息推送服务,这些消息的推送服务都是不定期进行的,并且一般都是以弹窗的形式来进行推送。因此当用户正在使用某个应用程序时,消息推送就会影响用户的使用。比如,用户在观看视频时推送的消息会遮挡视频画面,使得用户错过某些内容,影响用户使用。
因此,现有技术还有待改进和发展。
公开内容
本公开要解决的技术问题在于,针对现有技术的上述缺陷,提供一种通知信息的推送方法、智能终端及存储介质,旨在解决现有技术中在当用户正在使用某个应用程序时,消息推送就会影响用户使用的问题。
本公开解决问题所采用的技术方案如下:
第一方面,本公开实施例提供一种通知信息的推送方法,其中,所述方法包括:
当接收到待推送的通知信息后,获取终端屏幕的界面图像;
获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域;
控制所述通知信息在所述目标区域中显示。
在一种实现方式中,所述当接收到待推送的通知信息后,获取终端屏幕的界面图像, 包括:
判断终端系统任务中是否存在待推送的所述通知信息;
若所述终端系统任务中存在待推送的所述通知信息,则获取待推送的所述通知信息;
当获取到待推送的所述通知信息后,则获取处于前台运行状态的应用程序的运行界面,并将所述运行界面作为所述终端屏幕的所述界面图像,所述运行界面为所述应用程序在终端桌面上显示的界面。
在一种实现方式中,所述判断终端系统任务中是否存在待推送的所述通知信息,包括:
根据任务监测系统,获取每一个待执行系统任务中的字符标识;
若所述字符标识中存在预设字符时,则确定终端的系统任务中存在待推送的所述通知信息。
在一种实现方式中,所述当获取到待推送的所述通知信息后,则获取处于前台运行状态的应用程序的运行界面,并将所述运行界面作为所述终端屏幕的所述界面图像,包括:
获取智能终端中所有已安装的应用程序,并获取每一个应用程序对应的进程信息;
根据所述进程信息中的运行数据,确定处于运行状态的应用程序;
获取处于运行状态的应用程序所对应的运行位置,并根据所述运行位置,确定处于前台运行的应用程序;
获取处于前台运行的应用程序的运行界面,并将所述处于前台运行的应用程序的运行界面作为所述终端屏幕的所述界面图像。
在一种实现方式中,所述获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域,包括:
分别对所述界面图像中的各个区域进行内容识别,确定各个区域中的内容对应的类型标签以及所述内容的面积数据;
根据所述类型标签以及所述面积数据,确定所述目标内容;
获取所述目标内容在所述界面图像中所占的区域,并将所述区域作为所述目标区域。
在一种实现方式中,所述分别对所述界面图像中的各个区域进行内容识别,确定各个区域中的内容对应的类型标签以及所述内容的面积数据,包括:
对所述界面图像进行区域划分,分别对各个区域进行识别,确定所述各个区域中的内容;
根据所述各个区域中的所述内容,确定所述内容所对应的类型标签;
获取所述各个区域中的所述内容的轮廓数据,并基于所述轮廓数据确定所述内容的面积数据。
在一种实现方式中,所述根据所述类型标签以及所述面积数据,确定所述目标内容,包括;
根据所述类型标签,对所述内容进行分类,确定所述内容的类别;
根据所述内容的类别,确定待选目标内容,其中,所述待选目标内容为所述类别为预设目标类别的内容;
根据所述面积数据,从所述待选目标内容中,确定所述目标内容。
在一种实现方式中,所述根据所述面积数据,从所述待选目标内容中,确定所述目标内容,包括;
根据待推送的所述通知信息,确定用于显示所述通知信息的显示区域面积;
根据所述面积数据,从所述待选目标内容中,确定所述面积数据小于等于所述显示区域面积的内容,并将所述面积数据小于等于所述显示区域面积的内容作为所述目标内容。
在一种实现方式中,所述根据所述面积数据,从所述待选目标内容中,确定所述目标内容,包括:
若所述待选目标内容中,存在多个所述面积数据小于等于所述显示区域面积的内容,则从多个所述面积数据小于等于所述显示区域面积的内容中,任选一个内容作为所述目标内容。
在一种实现方式中,所述控制所述通知信息在所述目标区域中显示,包括:
获取所述通知信息中的文字内容,并根据所述文字内容构建所述通知信息的显示框,其中,所述显示框内存储有所述文字内容;
将所述显示框显示在所述目标区域,以实现所述通知信息的推送。
在一种实现方式中,所述获取所述通知信息中的文字内容,并根据所述文字内容构建所述通知信息的显示框,包括:
获取所述文字内容的字数;
根据所述字数与预设规则确定所述文字内容在终端屏幕中的显示形式,所述预设规则为所述字数与所述显示形式的对应关系;
根据所述显示形式构建所述通知信息的所述显示框。
在一种实现方式中,所述根据所述显示形式构建所述通知信息的所述显示框之后,包括:
获取所述目标区域的颜色,根据所述目标区域的颜色设置所述显示框的透明程度。
在一种实现方式中,所述控制所述通知信息在所述目标区域中显示,还包括:
将所述文字内容转化成语音信息,并对所述语音信息播放,以实现所述通知信息的推送。
第二方面,本公开实施例还提供一种通知信息的推送装置,其中,所述装置包括:
界面图像获取单元,用于当接收到待推送的通知信息后,获取终端屏幕的界面图像;
目标区域确定单元,用于获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域;
通知信息显示单元,用于控制所述通知信息在所述目标区域中显示。
第三方面,本公开实施还提供一种智能终端,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于执行如上述任意一项所述的通知信息的推送方法。
第四方面,本公开实施例还提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如上述中任意一项所述的通知信息的推送方法。
本公开的有益效果:本实施例当接收到待推送的通知信息后,获取终端屏幕的界面图像,通过对所述界面图像进行分析,并确定所述界面图像中的目标内容以及所述目标内容在所述界面图像中所占的目标区域,所述目标区域即为所述通知信息的显示区域。由于界面图像为所述终端屏幕上正在显示的图像,而对所述界面图像进行分析并确定出该界面图像中的目标区域,就可以知晓所述界面图像中可用于显示所述通知信息的区域。因此当确定出所述目标区域后,本实施例控制所述通知信息在所述目标区域内显示。可见,本实施例可以控制在推送通知信息时,对终端屏幕的界面图像进行分析,并控制所述通知信息在界面图像中的目标位置中显示,从而实现对通知信息的推送进行智能化控制,以使得所述通知信息在所述界面图像中的目标区域中显示,而不会遮挡所述界面图像中的其他区域,可以避免所述通知信息在显示的时候遮挡所述界面图像中用户感兴趣的内容,给用户的使用提供便利。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本公开实施例提供的通知信息的推送方法的应用场景示意图。
图2是本公开实施例提供的通知信息的推送方法的流程示意图。
图3是本公开实施例提供的通知信息的推送方法中获取界面图像的流程示意图。
图4是本公开实施例提供的通知信息的推送方法中确定目标区域的流程示意图。
图5是本公开实施例提供的通知信息的推送方法中显示通知信息的流程示意图。
图6是本公开实施例提供的通知信息的推送方法中进行内容识别和确定目标区域的示意图。
图7是本公开实施例提供的通知信息的推送方法中确定通知信息的显示框的示意图。
图8是本公开实施例提供的通知信息的推送方法中通知信息的显示框推送在界面图像中的示意图。
图9是本公开实施例提供的通知信息的推送装置的原理框图。
图10是本公开实施例提供的智能终端的内部结构原理框图。
为使本公开的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本公开进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。
需要说明,若本公开实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。
由于现有技术中的各类应用程序后台均包括一些通知类的消息推送服务,这些消息的推送服务都是不定期进行的,并且一般都是以弹窗的形式来进行推送。因此当用户正在使用某个应用程序时,推送的消息就会影响用户的使用。比如,用户在观看视频时推送的消息会遮挡视频画面,使得用户错过某些内容,影响用户使用。
为了解决现有技术中的问题,本实施例提供一种通知信息的推送方法,通过本实施 例中的通知信息的推送方法,可以控制在推送通知信息时,对终端屏幕的界面图像进行分析,并控制所述通知信息在界面图像中的目标位置中显示,从而实现对通知信息的推送进行智能化控制,以使得所述通知信息在所述界面图像中的目标区域中显示,而不会遮挡所述界面图像中的其他区域,可以避免所述通知信息在显示的时候遮挡所述界面图像中用户感兴趣的内容,给用户的使用提供便利。具体地,本实施例当接收到待推送的通知信息后,获取终端屏幕的界面图像,通过对所述界面图像进行分析,并确定所述界面图像中的目标内容以及所述目标内容在所述界面图像中所占的目标区域,所述目标区域即为所述通知信息的显示区域。由于界面图像为所述终端屏幕上正在显示的图像,而对所述界面图像进行分析并确定出该界面图像中的目标区域,就可以知晓所述界面图像中可用于显示所述通知信息的区域。因此当确定出所述目标区域后,本实施例控制所述通知信息在所述目标区域内显示。
具体应用时,本实施例中的通知信息的推送方法可应用于如图1所示的场景中,本实施例中的智能终端可从服务器中获取到所述通知信息。举例说明,所述通知信息可为所述智能终端从从服务器下载文件完成后,服务器向智能终端所发送的“文件下载成功”的通知信息。当智能终端获取到通知信息后,就开始准备对所述通知信息进行推送。智能终端在获取到所述通知信息后,获取终端屏幕的界面图像,并对该界面图像进行分析。比如,获取到的界面图像为从视频播放应用程序中截取到播放画面,说明此时智能终端的终端屏幕正在播放视频。此时可对该播放画面进行分析,确定出该播放画面的目标内容以及该目标内容在该播放画面中所占的目标区域,然后就可控制“文件下载成功”的通知信息在该播放画面中的目标区域进行显示,实现对通知信息的推送实现智能化控制。比如,若目标区域为播放画面中的除人物以外的区域,则就将“文件下载成功”的通知信息显示在除人物以外的区域中。
本实施例中通知信息的推送方法除了应用于在图1中的智能终端与服务器交互通信的场景之外,还可以应用于智能终端中,所述智能终端获取的通知信息可为该智能终端自身安装的应用程序所推送的信息,如智能终端中所安装的“广东移动”APP自动推送“话费账单”信息。当智能终端获取到所述通知信息(即“话费账单”信息)后,就开始准备对所述通知信息进行推送。在推送时同样是先获取终端屏幕的界面图像,并对该界面图像进行分析。然后确定所述界面图像中的目标内容以及所述目标内容在所述界面图像中所占的目标区域,当确定出所述目标区域后,就将该通知信息(即“话费账单”信息)在所述目标区域内显示,从而实现对通知信息的推送实现智能化控制。
示例性方法
本实施例中提供一种通知信息的推送方法,所述方法应用于智能终端中,具体如图2中所示,所述方法包括:
步骤S100、当接收到待推送的通知信息后,获取终端屏幕的界面图像。
由于本实施例所要实现的是在推送通知信息时,对通知信息的推送进行智能化控制,以使得所述通知信息在界面图像中显示时,可以显示在特定的区域,即显示在目标内容在界面图像中所占的目标区域,而不会对该界面图像中的其他区域进行遮挡。因此,本实施例在接收到待推送的通知信息后,就需要获取到终端屏幕的界面图像,以便对所述界面图像进行分析,以确定出所述界面图像中的目标内容以及所述目标内容在界面图像中所占的目标区域。本实施例中的所述界面图像即为所述终端屏幕上显示的图像。比如,若智能终端在播放视频时,界面图像即为正在播放的视频的图像;若智能终端正在运行游戏APP时,界面图像即为游戏画面。
在一种实现方式中,如图3中所示,本实施例中获取所述界面图像的步骤包括:
步骤S101、启动预设的任务监测系统,根据所述任务监测程序,判断终端系统任务中是否存在待推送的所述通知信息;
步骤S102、若所述终端系统任务中存在待推送的所述通知信息,则获取待推送的所述通知信息;
步骤S103、当获取到待推送的所述通知信息后,则获取处于前台运行状态的应用程序的运行界面,并将所述运行界面作为所述终端屏幕的所述界面图像,所述运行界面为所述应用程序在终端桌面上显示的界面。
随着智能终端的发展,智能终端所安装的应用程序也越来越多,包括用户自行安装的应用程序以及系统自带的应用程序。而这些应用程序基本都包括有通知信息的推送服务,这些推送服务一般都是不定期来对通知信息进行推送的。而智能终端在对某个应用程序所产生的通知信息进行推送时,会首先获取到该待推送的通知信息,以便对所述通知信息进行后续的推送操作。
具体实施时,由于所述通知信息一般都是在智能终端中的应用程序产生的,并向智能终端的终端屏幕进行推送,以在终端屏幕上显示。比如“话费账单”的通知信息是由电信运营商的APP(如广东移动)产生的,该电信运营商的APP在产生“话费账单”的通知信息时,可能在后台运行,也可能在前台运行。但是无论在后台运行还是在前台运行,该“话费账单”的通知信息均是属于电信运营商的APP向终端系统发出的任务,智能终端 在接收到该任务后,即执行对“话费账单”的通知信息推送的任务,以完成所述通知信息的推送。为了在智能终端中的应用程序在产生所述通知信息后能够及时获取到所述通知信息,以便在后续的推送步骤中更好地实现通知信息的推送,本实施例中可在智能终端中预设一个任务监测系统,该任务监测系统用来监测智能终端的后台任务。
具体地,本实施例在启动所述任务监测系统后,所述任务监测系统就可对智能终端的终端系统任务进行监测,然后获取到所有待执行系统任务。由于所述任务监测系统是对智能终端中的所有系统任务进行监测的,因此监测到的待执行系统任务必然不仅仅只是通知信息类的任务,必然还包括其他的任务,比如应用程序的开启与退出的任务等。本实施例在获取到所有的待执行系统任务后,需要判断待执行的所述系统任务中是否存在通知信息,如果存在通知信息,则就可以对所述通知信息进行获取。在一种实现方式中,本实施例在判断待执行的所述系统任务中是否存在所述通知信息时,是通过获取每一个待执行系统任务中的字符标识来确定,当获取到某个待执行系统任务中存在字符标识“notification”,则说明该待执行系统任务为通知信息类任务,也就说明存在待推送的通知信息,因此就可以对该待推送的通知信息进行获取。举例说明,智能终端在启动所述任务监测系统后,获取所有的待执行系统任务,然后一一获取这些待执行任务系统的字符标识,当获取到一个待执行系统任务中存在字符标识“notification”,则判定该待执行系统任务为待推送的通知信息,然后就可获取所述通知信息的具体内容。可见,本实施例中可通过一一获取这些待执行任务系统的字符标识的方式,确定出所有待推送的通知信息,然后再对确定出的通知信息进行获取。
本实施例所要实现的是在对通知信息进行推送时,控制所述通知信息在界面图像中的目标区域进行显示,换句话说,就是控制所述通知信息在界面图像的特定区域中显示,而不会对该界面图像中的其他区域进行遮挡。而界面图像指的是所述终端屏幕上显示的图像,而所述终端屏幕上显示的图像是智能终端中处于前台运行的应用程序在终端屏幕上的运行界面。比如,若智能终端中处于前台运行的应用程序为视频播放器,则此时视频播放器在终端屏幕上的运行界面就为该视频播放器在终端屏幕上播放视频的图像,因此视频播放器在终端屏幕上的运行界面即为所述界面图像。
因此,本实施例中在获取到待推送的所述通知信息后,则需要获取处于前台运行状态的应用程序的运行界面。具体实施时,本实施例首先获取智能终端中所有已安装的应用程序,包括用户自行安装的应用程序以及智能终端系统自带的应用程序。当获取到所有已安装的应用程序后,然后获取到每一个应用程序对应的进程信息。本实施例中的进 程信息中包括应用程序的包名以及应用程序的运行数据,所述运行数据可以反映出该应用程序是否正在运行中,因此根据所述运行数据即可确定出处于运行状态的应用程序。也就是说,可确定出正在运行的应用程序是哪些。由于处于运行状态的应用程序包括后台运行的应用程序以及前台运行的应用程序,而本实施例中需要确定的是处于前台运行的应用程序,而处于前台运行的应用程序的运行位置是在终端屏幕的桌面上的。为此,本实施例首先获取处于运行状态的应用程序所对应的运行位置,根据确定出的运行位置,确定出位于终端桌面运行的应用程序,确定出在终端桌面运行的应用程序即可确定处于前台运行的应用程序。由此可以看出,本实施例通过对处于运行状态的应用程序的运行位置进行分析,从而确定出所述处于前台运行的应用程序,然后再获取该处于前台运行的应用程序的运行界面,该运行界面即为所述终端屏幕上界面图像。
举例说明,智能终端首先获取到所有已安装的应用程序,比如“广东移动”、“爱奇艺”、“王者荣耀”、“网易云音乐”等,然后获取到这些应用程序的进程信息。根据进程信息,确定出处于运行状态的应用程序为“爱奇艺”、“广东移动”以及“网易云音乐”。接着获取“爱奇艺”、“广东移动”以及“网易云音乐”的运行位置,根据运行位置确定出,“爱奇艺”是在终端桌面运行的,即说明用户正在使用“爱奇艺”观看视频。而“广东移动”以及“网易云音乐”是在后台运行的,由此获取到了处于前台运行的应用程序为“爱奇艺”,因此就可以获取到“爱奇艺”的运行界面,该运行界面即为终端屏幕的界面图像。
步骤S200、获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域。
当获取到所述界面图像后,本实施例对所述界面图像进行分析,确定出所述界面图像中的目标内容以及所述目标内容在所述界面图像中所占的目标区域,以便控制所述通知信息在所述目标区域中进行显示。由于现有技术中在对通知信息进行推送时是将通知信息推送至终端屏幕上进行显示,而显示时基本都是采用固定的形式进行显示,这样会对终端屏幕上的界面图像中的一些内容进行遮挡,影响用户的使用。比如用户在观看视频时,终端屏幕上显示的界面图像就为视频画面,而推送的通知信息会遮挡视频画面,使得用户错过视频画面上的某些内容,影响用户使用。为此,本实施例在进行通知信息的推送之前,需要对界面图像进行分析,分析的目的在于确定出目标内容以及目标内容在界面图像中所占的目标区域。这样就可以控制通知信息只在目标区域中显示,不会对目标区域以外的其他区域进行遮挡,以满足用户的使用需求。
在一种实现方式中,如图4所示,本实施例确定目标区域的方式包括以下步骤:
步骤S201、分别对所述界面图像中的各个区域进行内容识别,确定各个区域中的内容对应的类型标签以及所述内容的面积数据;
步骤S202、根据所述类型标签以及所述面积数据,确定所述目标内容;
步骤S203、获取所述目标内容在所述界面图像中所占的区域,并将所述区域作为所述目标区域。
具体实施时,本实施例在获取到界面图像后,对界面图像进行区域划分,将所述界面图像划分为多个区域,再对每一个区域进行内容识别,从而确定出每一个区域中内容。当识别出每一个区域的内容后,然后再根据每一个区域的内容确定出每一个区域的内容所对应的类型标签以及每一个区域的内容的面积数据,确定每一个区域的内容对应的类型标签是为了确定出每一个区域的内容的类型。接着再根据确定出的类型标签以及面积数据来去确定出所述目标内容。
在一种实现方式中,本实施例所要实现的是控制通知信息只在界面图像中的目标区域中显示,不会对目标区域以外的其他区域进行遮挡,以满足用户的使用需求,也就是不会对用户感兴趣的内容进行遮挡。在本实施例中,内容的重要程度可以反映出用户对某一内容感兴趣的可能性。当某一内容的重要程度越高时,则说明用户对该内容感兴趣的可能性也就越大,而当某一内容的重要程度越低时,则说明用户对该内容感兴趣的可能性越低。本实施例中的重要程度可以根据内容在界面图像中所占的权重来确定,某一内容的权重越高,则重要程度越高。也可以根据内容的类型标签来确定,比如,预先设置类型标签为A的内容的重要程度高,类型标签为B的内容的重要程度低。当识别出的某一内容的类型标签为A时,则就说明该内容的重要程度高,就表示该内容为用户感兴趣的内容。反之,当识别出的某一内容的类型标签为B,则就说明该内容的重要程度低,而内容的重要程度可以反映出用户对内容感兴趣的可能性,因此内容的重要程度低就表示该内容为用户不感兴趣的内容。当确定出界面图像中各个区域的内容的重要程度后,就可以根据内容的重要程度确定出用户不感兴趣的内容,进而根据用户不感兴趣的内容在所述界面图像中的区域,即确定出所述目标区域。当将待推送的通知信息显示在所述目标区域内,由于所述目标区域内的内容的类型标签为B,即该内容的重要程度低,因此就不会对重要程度低的内容进行遮挡,而内容的重要程度可以反映出用户对内容感兴趣的可能性,当内容的重要程度低时,说明用户对内容感兴趣的可能性低,因此当将待推送的通知信息显示在所述目标区域内时,就不会对用户感兴趣的内容进行遮挡。因此为了确定出目标区域,本实施例中可预先设置内容与类型标签的对应关系,如,设置 一映射文件,该映射文件中具有内容与类型标签的对应关系,类型标签可以有两种,分别用来对应用户感兴趣的内容与用户不感兴趣的内容。
在具体应用时,本实施例可以预先从大量的图像中识别出内容,并对所有识别出的内容分成两类并设置对应的类型标签,具体地,将所有内容分成用户感兴趣的内容以及用户不感兴趣的内容两类,并将用户感兴趣的内容设置对应的类型标签A,用户不感兴趣的内容设置对应的类型标签B,最后形成一映射文件,该映射文件中包括有内容与类型标签的对应关系。比如,在该映射文件中,用户不感兴趣的内容有草地、天空;用户感兴趣的内容为人物。因此,人物对应的类型标签为A;草地和天空对应的类型标签均为B。通过设置这一映射文件,就可以知晓每一种内容所对应的类型标签,即就可根据内容的重要程度,进而确定出用户所感兴趣的内容是哪些。当识别出每个区域中的内容后,将识别出的内容与所述映射文件进行匹配,即可确定出每一个区域中的内容所对应的类型标签,也就是确定出每一个区域中的内容是否为重要的,进而确定该内容是否为用户所感兴趣的内容,进而确定出目标内容。当然,在另一种实现方式中,本实施例还可采用神经网络模型的方式来确定出每一个区域的内容所对应的类型标签。具体应用时,采用的神经网络模型是根据内容与类型标签的对应关系进行训练得到的,因此将确定出的每一个区域的内容输入至所述神经网络模型中,即可快速输出对应的类型标签。
在一种实现方式中,本实施例中类型标签为B的内容的重要程度低,即类型标签为B的内容为用户不感兴趣的内容。而由于本实施例对界面图像就进行区域划分,识别的是每个区域的内容,因此确定出的每个区域中的内容的重要程度。而本公开最终需要确定出的目标区域是所述界面图像的重要程度低的内容所组成的区域。因此本实施例设置预设目标类别为重要程度低的内容(也就是上述举例中,类型标签为B的内容),当识别出的内容满足所述预设目标类别,即识别出的内容为重要程度低的内容,该内容就为待选目标内容。因此,当识别出每个区域中的内容后,将识别出的内容与所述映射文件进行匹配,即可确定出每一个区域中的内容所对应的类型标签,根据类型标签筛选出类型标签为B的内容,即筛选出重要程度低的内容,即确定出满足预设目标类别的内容,这些重要程度低的内容就为待选目标内容,所述待选目标内容即为类型标签为B的内容。最后再根据确定出的待选目标内容确定出目标内容以及所述目标内容在界面图像中所占的目标区域。具体应用时,当类型标签为B的内容存在多个时,则类型标签为B的内容(即待选目标内容)中选择任意一个内容作为目标内容。
在一种实现方式中,当类型标签为B的内容存在多个时,本实施例还可以根据待推 送的通知信息的字数以及文字大小等信息确定用于显示待推送的通知信息的显示区域面积,然后根据显示区域面积从重要程度小于所述阈值的内容中确定目标内容。具体地,本实施例识别出各个区域中的内容后,然后确定各个区域中的内容的类型标签,并确定出类型标签为B的内容。接着获取类型标签为B的内容的轮廓数据,并根据轮廓数据确定出类型标签为B的内容所对应的面积数据。本实施例中的轮廓数据即表示的是内容的外边界的尺寸数据,根据这些尺寸数据就可以确定出类型标签为B的内容的面积数据。然后根据类型标签为B的内容的内容的面积数据和用于显示待推送的通知信息的显示区域面积,来确定出目标内容。比如,本实施例根据待推送的通知信息的字数以及文字大小确定出显示区域面积大小为S(也就是说,只有面积大于或等于S的区域才能完整显示待推送的通知信息的文字内容)。如,界面图像中类型标签为B的内容为草地、天空以及山体,待选目标内容为草地、天空以及山体。若草地、天空以及山体的面积数据均大于显示区域面积S,则可从草地、天空以及山体中任选一个作为目标内容。而若天空和山体的面积数据之和大于显示区域面积S,则就将天空和山体作为目标内容,进而再确定目标内容在界面图像中的目标区域。
当然,本实施例还可以首先确定出界面图像中重要程度高的内容,然后再在界面图像中除去重要程度低的内容后,即可剩下用户不感兴趣的内容。如图6中所示,图6中的A图中的羊群为用户感兴趣的内容,因此首先可确定出图6中的A图中的羊群所在的区域。如图6中的B图,图6中的B图就是将其中的羊分别框选出来,再将所有的羊组成图6中C图中的羊群区域。而剩下的内容(如草地和天空)则为重要程度低的内容。在另一种举例中,为了更加精确地确定出所述界面图像中的重要程度低的内容,避免因存在多个重要程度高的内容之间重合而导致的内容遗漏,如图6中的D图所示,D图中的羊群为用户感兴趣的内容,由于羊群中存在多只羊,为了避免内容遗漏,因此可将本例中的羊依次分别框选出来,这样就可以更为准确地确定出重要程度高的内容。在该界面图像中,除去重要程度高的内容外,剩下的就是重要程度低的内容,因此就可以准确地确定出的重要程度低的内容。而内容的重要程度可以反映出用户对内容感兴趣的可能性,当内容的重要程度低时,说明用户对内容感兴趣的可能性低,因此就可以准确地确定出用户不感兴趣的内容。
在一种实现方式中,由于本实施例对界面图像进行了区域划分,而每一个区域中的内容可能不相同,因此每一个区域中内容的重要程度可能不相同。本实施例中内容的重要程度还可以根据权重来计算确定,内容的权重越高,则重要程度也就越高。当确定出 每一个区域的重要程度后,本实施例可从所有区域的内容的重要程度中确定出重要程度最低的内容作为目标内容。比如在一张界面图像中,草地、天空、山景均为重要程度低的内容。但是,天空的重要程度为最低,因此本实施例就将天空作为目标内容,进而将天空的区域作为目标区域。在另一种实现方式中,本实施例中还可以设置一阈值,根据该阈值来确定出目标内容。比如,将所有区域的内容的重要程度与所述阈值进行比较,筛选出重要程度小于所述阈值的内容,并将重要程度小于所述阈值的内容作为目标内容,进而确定目标区域。当重要程度小于所述阈值的内容存在多个时,则可从多个重要程度小于所述阈值的内容中选择任意一个内容作为目标内容。
具体实施时,当重要程度小于所述阈值的内容存在多个时,本实施例可以根据待推送的通知信息的字数以及文字大小等信息确定用于显示待推送的通知信息的显示区域面积,然后根据显示区域面积从重要程度小于所述阈值的内容中确定目标内容。具体地,本实施例识别出各个区域中的内容后,然后确定各个区域中的内容的重要程度,并确定出重要程度小于所述阈值的内容。接着获取重要程度小于所述阈值的内容的轮廓数据,并根据轮廓数据确定出重要程度小于所述阈值的内容所对应的面积数据。本实施例中的轮廓数据即表示的是内容的外边界的尺寸数据,根据这些尺寸数据就可以确定出重要程度低的内容的面积数据。然后根据重要程度小于所述阈值的内容的面积数据和用于显示待推送的通知信息的显示区域面积,来确定出目标内容。比如,本实施例根据待推送的通知信息的字数以及文字大小确定出显示区域面积大小为S(也就是说,只有当面积大于或等于S的区域才能完整显示待推送的通知信息的文字内容)。如,界面图像中的重要程度小于所述阈值的内容为草地、天空以及山体,即待选目标内容为草地、天空以及山体。若草地、天空以及山体的面积数据均大于显示区域面积S,则可从草地、天空以及山体中任选一个作为目标内容。而若天空和山体的面积数据之和大于显示区域面积S,则就将天空和山体作为目标内容,进而再确定目标内容在界面图像中的目标区域。
在一种实现方式中,在一张界面图像中,可能存在重要程度小于所述阈值的内容被重要程度大于所述阈值的内容分隔开(即存在用户不感兴趣的内容与用户感兴趣的内容交替设置),而为了更好地使得通知信息能够在目标区域中显示,即目标区域要足够大才能更好地显示通知信息,因此本实施例首先需要获取每一个区域中的内容的面积数据,然后再根据面积数据来确定目标内容。本实施例根据重要程度小于所述阈值的内容来确定目标内容以面积最大为基准来确定的。本实施例首先从确定出的重要程度小于所述阈值的内容中确定哪些内容是连接在一起的,然后再确定连接在一起的用户不感兴趣的内 容的面积数据,确定处所能形成的面积最大的区域,该区域中所包含的内容即为目标内容,该目标内容在界面图像中所占区域即为目标区域。
步骤S300、控制所述通知信息在所述目标区域中显示。
当确定出目标区域后,本实施例即可根据所述目标区域来将所述通知信息进行显示。显示时,由于本实施例所确定出的目标区域是在界面图像中用户不感兴趣的内容所占的区域,因此,所述通知信息是不会对界面图像中用户感兴趣的内容进行遮挡的,这样就不会对用户的使用造成影响。比如,若智能终端在播放视频时,界面图像即为正在播放的视频的图像。在该图像中,人物为用户感兴趣的内容,人物后面的背景即为用户不感兴趣的内容,因此,本实施例就可将所述通知信息控制在所述人物后面的背景的区域进行显示,这样就不会遮挡人物。
在一种实现方式中,如图5所示,显示通知信息时包括以下步骤:
步骤S301、获取所述通知信息中的文字内容,并根据所述文字内容构建所述通知信息的显示框,其中,所述显示框内存储有所述文字内容;
步骤S302、将所述显示框显示在所述目标区域,以实现所述通知信息的推送。
具体实施时,当确定出所述界面图像中的目标区域后,本实施例需要将通知信息推送至所述目标区域内显示。具体实施时,为了使得推送的通知信息不会影响用户的使用,本实施例中对所述通知信息进行重构,构建出所述通知信息的显示框。具体地,本实施例获取所述通知信息中的文字内容,并根据所述文字内容构建所述通知信息的显示框(或者消息栏),具体实施时,可根据所述文字内容的字数来构建出一个可以存储有这些文字内容的显示框,将所述显示框在所述目标区域内显示。具体应用时,本实施例首先获取所述通知信息中的文字内容,根据所述字数与预设规则确定所述文字内容在终端屏幕中的显示形式,所述预设规则为所述字数与所述显示形式的对应关系,然后根据所述显示形式构建所述通知信息的所述显示框。本实施例中的显示形式包括所述通知信息在屏幕终端的显示位置、显示框的显示区域面积以及所述显示框的透明程度等。也就是说,本实施例可以根据所述通知信息中有多少个字,即就可以根据该预设规则确定出该通知信息在屏幕终端的显示位置、以及文字显示的区域面积以及所述显示框的透明程度,这样就可以快速构造出显示框。
具体实施时,如图7中所示,图7中的界面图像中灰色部分为确定出的目标区域10(比如图6中的羊群图像中的草地),图6中的黑色矩形框即为用于显示通知信息的显示框20。当需要推送所述通知信息后,本实施例获取通知信息的文字内容,结合文字的 数量构建显示框20的尺寸。本实施例中在构建所述显示框20时是根据预设的规则来构建的。比如,当通知信息中的文字的数量小于或等于10时,则可将所有的文字内容用一行显示,因此就构建出一个可以用一行显示出所有的文字内容的显示框20。又或者,当通知信息中的文字的数量大于10且小于或等于15时,则就用两行显示。再确定出所述文字显示的行数后,可再设置显示的文字的字号大小,因此就可以确定出文字显示的面积。基于上述信息就可构建出一个可以用两行行显示出所有的文字内容的显示框20。此外,本实施例还可以根据目标区域10的颜色设置显示框20的透明程度,以更好地对通知信息的内容进行显示,避免显示框20与目标区域10之间太过于突兀。基于上述内容,本实施例将所述显示框20显示在所述目标区域10内,也就是将待推送的通知信息显示在界面图像的目标区域10内。本实施例中设置显示框20的透明程度可以实现在目标区域10中显示通知信息时,使得显示框20在视觉上不会完全对目标区域10进行遮挡,并且使得显示框20与目标区域10之间不会太过于突兀。具体如图8所示,图8中羊群是用户感兴趣的内容,除羊群以外的区域为目标区域10,显示框20就显示在目标区域10内,显示框20中所显示的通知信息的内容为“淘宝:3月“女神节”重大促销,满200送200!还不快点击!http://T7zjs8p退订回T。”。可见,图8中待推送的通知信息是显示在目标区域10,并不会对除了目标区域10以外的其他区域有任何的遮挡,从而避免了在推送通知信息时对重要程度高的内容进行遮挡的情况,也就不会对用户感兴趣的内容进行遮挡。
在其他实现方式中,本实施例的显示框中的文字的字体颜色以及所述显示框的透明程度是可根据目标区域来设置的。比如,若目标区域为深色(比如黑色、棕色等)时,为了使得显示框中的文字清晰,可将显示框框中的文字的字体颜色设置成白色。同时,为了使得显示框相对于目标区域不会太过突兀,本实施例可将显示框的透明程度设置成透明状态或者半透明状态,以使得画面整体和谐。而若目标区域为浅色(比如白色)时,为了使得显示框中的文字清晰,可将显示框框中的文字的字体颜色设置成黑色。同时,为了使得显示框相对于目标区域不会太过突兀,本实施例将显示框的透明程度设置成非透明状态。需要说明的是,显示框中的文字的字体颜色以及所述显示框的透明程度的设置方式,除了上述提及的设置方式以外,还可以为其他的设置方式,例如可以根据用户的实际需求进行设置等,在此不再一一列举。
由于在推送通知信息时,对于不同的应用程序会有不同的影响。比如针对视频类应用的应用程序是会对视频画面遮挡,而对于游戏类应用的应用程序,用户可能无暇顾及 显示的通知信息。因此,为了更好地对所述通知信息进行推送,在另一种实施例中,本实施例在进行通知信息的推送时,除了重构通知信息的显示框,并将显示框显示在目标区域内以外,还可以同时将所述通知信息中的文字内容转化成语音信息,并对所述语音信息播放,以实现所述通知信息的推送。
举例说明,比如当用户在使用游戏类应用玩游戏时,此时终端屏幕显示的界面图像为游戏画面,当将通知信息显示在游戏画面上时,用户可能无暇顾及显示的通知信息。因此本实施例中可通过将通知信息中的文字内容转变为语音信息,然后当用户在使用游戏类应用玩游戏时,将该语音信息进行播放,这样既不会影响用户对于游戏类应用的使用,可以让用户及时知晓该通知信息。具体地,本实施例中首先获取所述通知信息中的文字内容,然后将所述文字内容转化成语音信息。在一种实施方式中,将所述文字内容转化成语音信息的方式可以采用预设的文字转语音模块,即预先在智能终端中设置一个文字转语音模块,利用该文字转语音模块来将通知信息中的文字内容转化成语音信息。接着,本实施例播放所述语音信息,以实现所述通知信息的推送。此外,本实施例在播放所述语音信息的同时,还将所述游戏类应用的音量降低,这样就可以保证所述语音信息更加清晰,使得用户听清楚通知信息的内容。
可见,本实施例当接收到待推送的通知信息后,获取终端屏幕的界面图像,通过对所述界面图像进行分析,并确定所述界面图像中的目标内容以及所述目标内容在所述界面图像中所占的目标区域,所述目标区域即为所述通知信息的显示区域。由于界面图像为所述终端屏幕上正在显示的图像,而对所述界面图像进行分析并确定出该界面图像中的目标区域,就可以知晓所述界面图像中可用于显示所述通知信息的区域。因此当确定出所述目标区域后,本实施例控制所述通知信息在所述目标区域内显示。可见,本实施例可以控制在推送通知信息时,对终端屏幕的界面图像进行分析,并控制所述通知信息在界面图像中的目标位置中显示,从而实现对通知信息的推送进行智能化控制,以使得所述通知信息在所述界面图像中的目标区域中显示,而不会遮挡所述界面图像中的其他区域,可以避免所述通知信息在显示的时候遮挡所述界面图像中用户感兴趣的内容,给用户的使用提供便利。
示例性设备
如图9中所示,本公开实施例提供一种通知信息的推送装置,该装置包括:界面图像获取单元10、目标区域确定单元20、通知信息显示单元30。具体地,所述界面图像获取单元10,用于当接收到待推送的通知信息后,获取终端屏幕的界面图像。所述目标区 域确定单元20,用于获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域。所述通知信息显示单元30,用于控制所述通知信息在所述目标区域中显示。。
基于上述实施例,本公开还提供了一种智能终端,其原理框图可以如图10所示。该智能终端包括通过系统总线连接的处理器、存储器、网络接口、显示屏、温度传感器。其中,该智能终端的处理器用于提供计算和控制能力。该智能终端的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该智能终端的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种通知信息的推送方法。该智能终端的显示屏可以是液晶显示屏或者电子墨水显示屏,该智能终端的温度传感器是预先在智能终端内部设置,用于检测内部设备的运行温度。
本领域技术人员可以理解,图10中示出的原理框图,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的智能终端的限定,具体的智能终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种智能终端,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
当接收到待推送的通知信息后,获取终端屏幕的界面图像;
获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域;
控制所述通知信息在所述目标区域中显示。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本公开所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、 同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
综上所述,本公开公开了一种通知信息的推送方法、智能终端及存储介质,所述方法包括:当接收到待推送的通知信息后,获取终端屏幕的界面图像;获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域;控制所述通知信息在所述目标区域中显示。本实施例可以控制在推送通知信息时,对终端屏幕的界面图像进行分析,控制所述通知信息在界面图像中的目标位置中显示,从而实现对通知信息的推送进行控制,以避免所述通知信息遮挡所述界面图像中用户感兴趣的区域。
应当理解的是,本公开的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本公开所附权利要求的保护范围。
Claims (15)
- 一种通知信息的推送方法,其中,所述方法包括:当接收到待推送的通知信息后,获取终端屏幕的界面图像;获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域;控制所述通知信息在所述目标区域中显示。
- 根据权利要求1所述的通知信息的推送方法,其中,所述当接收到待推送的通知信息后,获取终端屏幕的界面图像,包括:判断终端系统任务中是否存在待推送的所述通知信息;若所述终端系统任务中存在待推送的所述通知信息,则获取待推送的所述通知信息;当获取到待推送的所述通知信息后,则获取处于前台运行状态的应用程序的运行界面,并将所述运行界面作为所述终端屏幕的所述界面图像,所述运行界面为所述应用程序在终端桌面上显示的界面。
- 根据权利要求2所述的通知信息的推送方法,其中,所述判断终端系统任务中是否存在待推送的所述通知信息,包括:根据任务监测系统,获取每一个待执行系统任务中的字符标识;若所述字符标识中存在预设字符时,则确定终端的系统任务中存在待推送的所述通知信息。
- 根据权利要求2所述的通知信息的推送方法,其中,所述当获取到待推送的所述通知信息后,则获取处于前台运行状态的应用程序的运行界面,并将所述运行界面作为所述终端屏幕的所述界面图像,包括:获取智能终端中所有已安装的应用程序,并获取每一个应用程序对应的进程信息;根据所述进程信息中的运行数据,确定处于运行状态的应用程序;获取处于运行状态的应用程序所对应的运行位置,并根据所述运行位置,确定处于前台运行的应用程序;获取处于前台运行的应用程序的运行界面,并将所述处于前台运行的应用程序的运行界面作为所述终端屏幕的所述界面图像。
- 根据权利要求1所述的通知信息的推送方法,其中,所述获取所述界面图像中目标内容,确定所述目标内容在所述界面图像中所占的目标区域,包括:分别对所述界面图像中的各个区域进行内容识别,确定各个区域中的内容对应的类型标签以及所述内容的面积数据;根据所述类型标签以及所述面积数据,确定所述目标内容;获取所述目标内容在所述界面图像中所占的区域,并将所述区域作为所述目标区域。
- 根据权利要求5所述的通知信息的推送方法,其中,所述分别对所述界面图像中的各个区域进行内容识别,确定各个区域中的内容对应的类型标签以及所述内容的面积数据,包括:对所述界面图像进行区域划分,分别对各个区域进行识别,确定所述各个区域中的内容;根据所述各个区域中的所述内容,确定所述内容所对应的类型标签;获取所述各个区域中的所述内容的轮廓数据,并基于所述轮廓数据确定所述内容的面积数据。
- 根据权利要求6所述的通知信息的推送方法,其中,所述根据所述类型标签以及所述面积数据,确定所述目标内容,包括;根据所述类型标签,对所述内容进行分类,确定所述内容的类别;根据所述内容的类别,确定待选目标内容,其中,所述待选目标内容为所述类别为预设目标类别的内容;根据所述面积数据,从所述待选目标内容中,确定所述目标内容。
- 根据权利要求7所述的通知信息的推送方法,其中,所述根据所述面积数据,从所述待选目标内容中,确定所述目标内容,包括;根据待推送的所述通知信息,确定用于显示所述通知信息的显示区域面积;根据所述面积数据,从所述待选目标内容中,确定所述面积数据小于等于所述显示区域面积的内容,并将所述面积数据小于等于所述显示区域面积的内容作为所述目标内容。
- 根据权利要求7所述的通知信息的推送方法,其中,所述根据所述面积数据,从所述待选目标内容中,确定所述目标内容,包括:若所述待选目标内容中,存在多个所述面积数据小于等于所述显示区域面积的内容,则从多个所述面积数据小于等于所述显示区域面积的内容中,任选一个内容作为所述目标内容。
- 根据权利要求1所述的通知信息的推送方法,其中,所述控制所述通知信息在所述目标区域中显示,包括:获取所述通知信息中的文字内容,并根据所述文字内容构建所述通知信息的显示框, 其中,所述显示框内存储有所述文字内容;将所述显示框显示在所述目标区域,以实现所述通知信息的推送。
- 根据权利要求10所述的通知信息的推送方法,其中,所述获取所述通知信息中的文字内容,并根据所述文字内容构建所述通知信息的显示框,包括:获取所述文字内容的字数;根据所述字数与预设规则确定所述文字内容在终端屏幕中的显示形式,所述预设规则为所述字数与所述显示形式的对应关系;根据所述显示形式构建所述通知信息的所述显示框。
- 根据权利要求11所述的通知信息的推送方法,其中,所述根据所述显示形式构建所述通知信息的所述显示框之后,包括:获取所述目标区域的颜色,根据所述目标区域的颜色设置所述显示框的透明程度。
- 根据权利要求10所述的通知信息的推送方法,其中,所述控制所述通知信息在所述目标区域中显示,还包括:将所述文字内容转化成语音信息,并对所述语音信息播放,以实现所述通知信息的推送。
- 一种智能终端,其中,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于执行如权利要求1-13中任意一项所述的方法。
- 一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如权利要求1-13中任意一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010676310.0 | 2020-07-14 | ||
CN202010676310.0A CN113934481A (zh) | 2020-07-14 | 2020-07-14 | 一种通知信息的推送方法、智能终端及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022011905A1 true WO2022011905A1 (zh) | 2022-01-20 |
Family
ID=79273716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/129101 WO2022011905A1 (zh) | 2020-07-14 | 2020-11-16 | 一种通知信息的推送方法、智能终端及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113934481A (zh) |
WO (1) | WO2022011905A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114911396A (zh) * | 2022-06-07 | 2022-08-16 | 深圳市天趣星空科技有限公司 | 用于智能眼镜的信息处理方法和系统 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117097793B (zh) * | 2023-10-19 | 2023-12-15 | 荣耀终端有限公司 | 一种消息推送方法、终端及服务器 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150082212A1 (en) * | 2013-09-13 | 2015-03-19 | Visa International Service Association | Actionable Notifications Apparatuses, Methods and Systems |
CN108810275A (zh) * | 2018-06-08 | 2018-11-13 | 麒麟合盛网络技术股份有限公司 | 一种信息展示方法及装置 |
CN109634479A (zh) * | 2018-10-25 | 2019-04-16 | 深圳壹账通智能科技有限公司 | 全屏状态下的通知信息处理方法、设备、存储介质及装置 |
CN109656437A (zh) * | 2018-11-30 | 2019-04-19 | 维沃移动通信有限公司 | 一种信息显示方法及终端设备 |
CN109960557A (zh) * | 2019-03-28 | 2019-07-02 | 维沃移动通信有限公司 | 一种显示方法及终端设备 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108366169B (zh) * | 2018-01-30 | 2020-04-03 | 维沃移动通信有限公司 | 一种通知消息的处理方法及移动终端 |
CN108881606A (zh) * | 2018-04-24 | 2018-11-23 | 努比亚技术有限公司 | 终端的游戏界面显示方法、终端及计算机可读存储介质 |
-
2020
- 2020-07-14 CN CN202010676310.0A patent/CN113934481A/zh active Pending
- 2020-11-16 WO PCT/CN2020/129101 patent/WO2022011905A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150082212A1 (en) * | 2013-09-13 | 2015-03-19 | Visa International Service Association | Actionable Notifications Apparatuses, Methods and Systems |
CN108810275A (zh) * | 2018-06-08 | 2018-11-13 | 麒麟合盛网络技术股份有限公司 | 一种信息展示方法及装置 |
CN109634479A (zh) * | 2018-10-25 | 2019-04-16 | 深圳壹账通智能科技有限公司 | 全屏状态下的通知信息处理方法、设备、存储介质及装置 |
CN109656437A (zh) * | 2018-11-30 | 2019-04-19 | 维沃移动通信有限公司 | 一种信息显示方法及终端设备 |
CN109960557A (zh) * | 2019-03-28 | 2019-07-02 | 维沃移动通信有限公司 | 一种显示方法及终端设备 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114911396A (zh) * | 2022-06-07 | 2022-08-16 | 深圳市天趣星空科技有限公司 | 用于智能眼镜的信息处理方法和系统 |
Also Published As
Publication number | Publication date |
---|---|
CN113934481A (zh) | 2022-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965981B (zh) | 视频播放方法、装置、存储介质及电子设备 | |
CN107992604B (zh) | 一种任务条目的分发方法及相关装置 | |
CN107633541B (zh) | 一种图像特效的生成方法和装置 | |
WO2022011905A1 (zh) | 一种通知信息的推送方法、智能终端及存储介质 | |
US20210160553A1 (en) | Method and system of displaying a video | |
KR20140091555A (ko) | 웹 페이지 렌더링 시간 측정 기법 | |
CN112764871B (zh) | 数据处理方法、装置、计算机设备以及可读存储介质 | |
CN110177295B (zh) | 字幕越界的处理方法、装置和电子设备 | |
CN111866393B (zh) | 显示控制方法、装置及存储介质 | |
CN111428570A (zh) | 非活体人脸的检测方法、装置、计算机设备及存储介质 | |
CN111954022B (zh) | 视频播放方法、装置、电子设备和可读存储介质 | |
CN109271929B (zh) | 检测方法和装置 | |
CN110191356A (zh) | 视频审核方法、装置和电子设备 | |
US20230009336A1 (en) | Live video interaction method and apparatus, and computer device | |
CN113741773A (zh) | 一种信息展示方法、装置、设备及介质 | |
CN109685015B (zh) | 图像的处理方法、装置、电子设备和计算机存储介质 | |
CN113220179A (zh) | 侧边栏的显示方法、装置、终端及存储介质 | |
US20200312375A1 (en) | Information processing method and electronic device | |
CN112860941A (zh) | 一种封面推荐方法、装置、设备及介质 | |
CN112887615A (zh) | 拍摄的方法及装置 | |
WO2023169361A1 (zh) | 信息推荐方法、装置和电子设备 | |
CN112511890A (zh) | 视频图像处理方法、装置及电子设备 | |
CN112685269A (zh) | 数据的获取方法、装置、电子设备及存储介质 | |
US20220245920A1 (en) | Object display method and apparatus, electronic device, and computer readable storage medium | |
CN112114770A (zh) | 基于语音交互的界面引导方法、装置及设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20944858 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20944858 Country of ref document: EP Kind code of ref document: A1 |