Notification message display method and device, electronic equipment and storage medium

By using image recognition and artificial intelligence to determine the location of the subject object in electronic devices and dynamically adjusting the display of notification messages, the problem of notification messages blocking wallpaper is solved, and the balance between aesthetics and information acquisition is achieved.

CN120335920APending Publication Date: 2025-07-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510453945.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, the notification message display method of electronic devices will block key elements of the wallpaper, affect the aesthetics and visual experience, lack of intelligence and adaptability, resulting in inflexible information display and inability to meet users' needs for personalization and aesthetics.

Method used

Through image recognition technology and artificial intelligence algorithms, determine the position of the subject object in the display interface, dynamically adjust the display position of the notification message so that it does not overlap with the subject object, and make reasonable layouts based on the importance and type of the notification message to ensure the original beauty and visual effect of the wallpaper.

Benefits of technology

It realizes the maximum preservation of the beauty and visual effects of the wallpaper when displaying notification messages, meets users' needs for personalization and beauty, and improves the efficiency and experience of information acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335920A_ABST
    Figure CN120335920A_ABST
Patent Text Reader

Abstract

The invention discloses a notification message display method and device, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method comprises the steps that the display position of a main body object in wallpaper displayed by a display interface in the display interface is determined, a received notification message is displayed based on the display position, and the display position of the notification message is not overlapped with the display position. According to the method, the notification message avoids or reduces the shielding of the main body object in the wallpaper, so that the original aesthetic feeling and visual effect of the wallpaper are reserved to the greatest extent, and the requirements of a user on individuation and attractiveness are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more particularly, to a method, apparatus, electronic device, and storage medium for displaying notification messages. Background Art

[0002] With the development of science and technology, electronic devices are used more and more widely and have more and more functions, and have become one of the necessities in people's daily lives. At present, electronic devices can receive and display notification messages. However, the display method of electronic devices for notification messages is fixed and does not meet the user's needs for personalization and aesthetics. Summary of the Invention

[0003] In view of the above problems, the present application provides a method, apparatus, electronic device, and storage medium for displaying notification messages to solve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a method for displaying a notification message. The method includes: determining a display position of a main object in a wallpaper displayed on a display interface in the display interface; and displaying the received notification message based on the display position, where the display position of the notification message does not overlap with the display position.

[0005] In a second aspect, an embodiment of the present application provides a device for displaying a notification message. The device includes: a display position determination module, configured to determine a display position of a main object in a wallpaper displayed on a display interface in the display interface; and a notification message display module, configured to display the received notification message based on the display position, where the display position of the notification message does not overlap with the display position.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor. The memory is coupled to the processor, and the memory stores instructions. When the instructions are executed by the processor, the processor executes the above method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the above method.

[0008] The method, apparatus, electronic device, and storage medium for displaying notification messages provided by the embodiments of the present application determine the display position of the main object in the wallpaper displayed on the display interface, and display the received notification message based on the display position. Wherein, the display position of the notification message does not overlap with the display position, so as to avoid or reduce the occlusion of the main object in the wallpaper by the notification message, and maximize the retention of the original beauty and visual effect of the wallpaper, meeting the user's needs for personalization and aesthetics. Brief Description of the Drawings

[0009] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0010] Figure 1 It shows a schematic flowchart of a method for displaying a notification message provided by an embodiment of the present application;

[0011] Figure 2 It shows a schematic flowchart of a method for displaying a notification message provided by an embodiment of the present application;

[0012] Figure 3 It shows Figure 2 A schematic flowchart of step S220 of the method for displaying the notification message shown;

[0013] Figure 4 It shows a first interface schematic diagram of an electronic device provided by an embodiment of the present application;

[0014] Figure 5 It shows a second interface schematic diagram of an electronic device provided by an embodiment of the present application;

[0015] Figure 6 It shows Figure 2 A schematic flowchart of step S230 of the method for displaying the notification message shown;

[0016] Figure 7 It shows a schematic flowchart of a method for displaying a notification message provided by an embodiment of the present application;

[0017] Figure 8 It shows a schematic flowchart of a method for displaying a notification message provided by an embodiment of the present application;

[0018] Figure 9 It shows a block diagram of a device for displaying a notification message provided by an embodiment of the present application;

[0019] Figure 10 It shows a block diagram of an electronic device for executing the method for displaying a notification message according to an embodiment of the present application;

[0020] Figure 11 It shows a storage unit for storing or carrying program codes for implementing the method for displaying a notification message according to an embodiment of the present application. Detailed Description of the Embodiments

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0022] Currently, in the display method of notification messages, when there is a new notification message, the electronic device will directly display it on the display interface according to a fixed layout and style. For example, it is usually displayed in the form of a banner, pop-up window or list in the upper, middle or lower area of the screen, occupying a certain screen space, and the content and main object of the wallpaper in the display interface will not be considered. For example, when an electronic device receives a text message notification, a rectangular box will pop up at the top of the display interface, and the sender of the text message notification and a partial content summary will be displayed in the rectangular box. When the rectangular box is displayed in the display interface, it may block the key part of the wallpaper, for example, blocking the face of the person, blocking the main structure of the building, etc.

[0023] After research, the inventor found that the above display method has at least the following disadvantages:

[0024] First, it affects the aesthetics and visual experience of wallpapers: the current display method of notification messages often covers the key elements of wallpapers, destroying the original beauty and integrity of wallpapers, and affecting users' appreciation of wallpapers and personalized display effects;

[0025] Second, it lacks intelligence and adaptability: it cannot dynamically adjust the notification layout according to the wallpaper content and main object, and cannot meet the user's dual needs for timely notification messages on the display interface while maintaining the beauty of the wallpaper;

[0026] Third, information display is not flexible: the display form of notification messages is single, and the display parameters of notification messages cannot be flexibly adjusted according to the main object of the wallpaper, which may cause important information to be blocked or incompletely displayed.

[0027] In view of the above problems, the inventors have discovered after long-term research and proposed the display method, device, electronic device and storage medium of the notification message provided in the embodiments of the present application, which can maximize the original beauty and visual effect of the wallpaper by avoiding or reducing the occlusion of the main object in the wallpaper by the notification message, and meet the user's needs for personalization and beauty. Among them, the specific display method of the notification message is described in detail in the subsequent embodiments.

[0028] See also Figure 1 , Figure 1The figure shows a schematic flowchart of a method for displaying a notification message provided by an embodiment of the present application. This method is used to avoid or reduce the occlusion of the main object in the wallpaper by the notification message, maximally retain the original beauty and visual effect of the wallpaper, and meet the user's needs for personalization and aesthetics. In a specific embodiment, the method for displaying the notification message is applied to a notification message display device 200 as shown in Figure 9 and an electronic device 100 configured with the notification message display device 200 ( Figure 10 ). It can be understood that the electronic device applied in this embodiment may include a smart phone, a tablet computer, a vehicle-mounted device, a wearable device, etc., which are not limited herein. The following will elaborate in detail on the Figure 1 shown process. The method for displaying the notification message may specifically include the following steps:

[0029] Step S110: Determine the display position of the main object in the wallpaper displayed on the display interface in the display interface.

[0030] Optionally, the electronic device may be in a lit state. At this time, the electronic device may have a display interface, and a wallpaper may be displayed in the display interface.

[0031] As a way, the display interface may include a lock screen interface. At this time, the wallpaper displayed on the display interface may include a lock screen wallpaper; the display interface may include a desktop. At this time, the wallpaper displayed on the display interface may include a desktop wallpaper; the display interface may include a screen-off display interface. At this time, the wallpaper displayed on the display interface may include a screen-off wallpaper, etc. Of course, the display interface may also include other more interfaces including wallpapers, which are not limited herein.

[0032] Among them, the electronic device may display the display interface. Optionally, if the display interface is a lock screen interface, the electronic device may enter and display the lock screen interface when receiving a notification message in the screen-off state, and may enter and display the lock screen interface when detecting a screen lighting operation on the electronic device in the screen-off state; if the display interface is a desktop, the electronic device may enter and display the desktop when detecting a desktop display instruction for the electronic device during the process of displaying an application page, and may enter and display the desktop when detecting a desktop display instruction for the electronic device in the lock screen state, etc., which are not limited herein.

[0033] In this embodiment, when the electronic device displays the display interface, it may determine the display position of the main object in the wallpaper displayed on the display interface in the display interface.

[0034] In some embodiments, when the display interface is activated, image recognition technology and artificial intelligence algorithms can be used to analyze the wallpaper displayed on the display interface, identify the main objects in the wallpaper, such as human faces, pets, main buildings, main landscapes, etc., and determine their display positions on the display interface.

[0035] As an implementable way, the display position of the main object in the wallpaper displayed on the display interface can be determined through the following steps:

[0036] First, when the display interface is activated, the wallpaper main object recognition module of the electronic device can start working to preprocess the wallpaper image displayed on the display interface, so as to improve the quality of the wallpaper image, enhance the features of the main object in the wallpaper image, and reduce image noise interference. Optionally, a filtering algorithm can be used to preprocess the wallpaper image to make the wallpaper image smoother and clearer, and prepare for subsequent feature extraction and analysis.

[0037] After that, using image recognition technology, feature information is extracted from the preprocessed wallpaper image. Among them, for different types of main objects, different feature extraction methods can be used to extract information. For example, taking the recognition of a human face in the wallpaper as an example, at this time, features such as the outlines and positional relationships of facial organs such as eyes, nose, and mouth can be extracted; taking the recognition of the main building as an example, at this time, features such as the outline shape, line trend, and landmark structure of the building can be extracted. It can be understood that the extracted feature information can be used as an important basis for identifying the main object. By analyzing the extracted feature information through artificial intelligence algorithms and comparing it with a pre-set template library or model, the specific main object can be determined.

[0038] Then, after feature analysis and identifying the main object in the wallpaper, its display position on the display interface can be further determined. Optionally, the coordinate range of the main object in the image coordinate system can be calculated through an algorithm to determine its display position on the display interface. For example, the central coordinates of the human face, the boundary coordinates of the facial contour, etc. These coordinate information precisely define the display position of the main object on the display interface, providing key data support for subsequent layout optimization of notifications, so that the notification management module and layout optimization module can reasonably arrange the display of notification messages according to the main object position, avoiding blocking the main object.

[0039] Step S120: Display the received notification message based on the display position, where the display position of the notification message does not overlap with the display position.

[0040] Optionally, the notification message can include various types. For example, it can include notification messages, it can include social media messages, it can include application push messages, etc., which are not limited here.

[0041] Among them, when the notification message is a notification-type message, the notification message may include a short message notification message and / or a phone call notification message. The short message notification message is one of the common communication methods of the electronic device user, such as various verification codes received, merchant promotion information, greetings from friends, etc.; the phone call notification message may be a call reminder, displaying information such as the incoming call number and the contact name, so that the user is aware of an incoming call.

[0042] Among them, when the notification message is a social media message, the notification message may include messages of social software such as WeChat and QQ, such as chat messages of friends, group chat messages, likes and comments in the circle of friends, etc., so that the user can keep in touch with others at any time and understand social dynamics.

[0043] Among them, when the notification message is an application push message, the notification message may include notifications sent by various application programs installed on the electronic device. For example, hot news pushed by news and information application programs, hot news pushed by shopping application programs, activity notifications pushed by game application programs, etc., so that the user can obtain important information in the application program in a timely manner, and improve the usage frequency and participation of the user in the application program.

[0044] Optionally, the notification message may be received by the electronic device during the process of displaying the display interface, or may be received by the electronic device before displaying the display interface and not processed (such as not clicked, not deleted, etc.), which is not limited here.

[0045] In this embodiment, in the case of determining the display position of the main object in the display interface, the received notification message may be displayed based on this display position. Among them, the display position of the notification message in the display interface does not overlap with the display position of the main object in the display interface, so as to ensure that the display of the notification message has no impact on the display of the main object in the wallpaper and ensure the overall display effect of the display interface during the process of displaying the notification message.

[0046] In some embodiments, in the case of determining the display position of the main object in the display interface, a position that does not overlap with this display position may be determined from the display interface as the display position, and the received notification message is displayed at this display position. Optionally, the display position may be located on the left side of the display position, may be located on the right side of the display position, may be located above the display position, may be located below the display position, may surround the display position, etc., which is not limited here.

[0047] The display method of notification messages provided by an embodiment of the present application, the display method, device, electronic device, and storage medium of notification messages provided by embodiments of the present application determine the display position of the main object in the wallpaper displayed on the display interface in the display interface, and display the received notification messages based on the display position, where the display position of the notification messages does not overlap with the display position, so as to avoid or reduce the occlusion of the main object in the wallpaper by the notification messages, maximize the preservation of the original beauty and visual effect of the wallpaper, and meet the user's needs for personalization and aesthetics.

[0048] Please refer to Figure 2 , Figure 2 which shows a schematic flowchart of the display method of notification messages provided by an embodiment of the present application. The following will elaborate in detail on the Figure 2 flow shown. The display method of the notification messages may specifically include the following steps:

[0049] Step S210: Determine the display position of the main object in the wallpaper displayed on the display interface in the display interface.

[0050] For the specific description of step S210, please refer to step S110 and will not be elaborated here.

[0051] Step S220: Determine the importance level of the received notification messages.

[0052] In this embodiment, the importance level of the received notification messages can be determined.

[0053] In some embodiments, the received notification messages can be analyzed to determine the importance level of the received notification messages.

[0054] As an implementable manner, the received notification messages can be analyzed to determine the message type of the received notification messages, and the importance level of the received notification messages is determined based on the message type of the received notification messages. Among them, the message type may include SMS type, phone type, social media type, application push type, etc., which are not limited here.

[0055] Optionally, the electronic device can be pre-set and store multiple importance levels. For example, the multiple importance levels can include low importance level, medium importance level, and high importance level. Based on this, the importance level of the received notification messages can be determined from the multiple importance levels. For example, the importance level of the received notification messages can be determined from the low importance level, medium importance level, and high importance level, such as determining that the importance level of the received notification messages is the low importance level.

[0056] Please refer to Figure 3 , Figure 3shows the Figure 2 schematic flowchart of step S220 of the method for displaying the shown notification message. The following will elaborate in detail on the Figure 3 shown process. The method may specifically include the following steps:

[0057] Step S221: Obtain the information source corresponding to the notification message.

[0058] In some embodiments, the information source corresponding to the notification message can be obtained. Optionally, the information source corresponding to the notification message may include social media, text messages, phone calls, application push notifications, etc., which are not limited herein.

[0059] As an implementable way, the information source corresponding to the notification message can be obtained through the following means:

[0060] First, when the notification message is determined, the metadata carried by the notification message can be parsed. Among them, the metadata carried by the notification message contains key clues about the source of the notification message. For example, the metadata of a text message notification may contain the phone number of the sender; the metadata of a social media message may contain the application identifier, the account identifier of the sender, etc. By parsing this data, the electronic device can determine the general category to which the notification message belongs. For example, it can be determined that the general category to which the notification message belongs is text message, phone call, social media, or application push notification.

[0061] After that, for the notification message identified through the above steps, the electronic device can perform a matching query in the database. Optionally, the electronic device can be pre-set and store a database, and detailed information of various information sources can be pre-stored in this database. For example, the operator corresponding to the phone number, the user name and avatar corresponding to the social media account, etc. Taking a text message notification as an example, the electronic device can search for the corresponding contact information in the database according to the parsed phone number. If the contact name corresponding to the phone number exists in the database, then it can be determined that the information source corresponding to the notification message is this contact; if the contact name corresponding to the phone number does not exist in the database, then it can be determined that the information source corresponding to the notification message is this phone number. Taking social media as an example, the electronic device can obtain the detailed information of the sender from the database according to the application identifier and the account identifier to determine the information source corresponding to the notification message.

[0062] Step S222: Determine the importance level of the notification message based on the information source.

[0063] In some embodiments, when the information source corresponding to the notification message is obtained, the importance level of the notification message can be determined based on this information source.

[0064] As an implementable manner, the electronic device may be pre-set and store a first mapping relationship, which may include multiple information sources, multiple importance levels, and the corresponding relationship between the multiple information sources and the multiple importance levels. Optionally, the corresponding relationship between the multiple information sources and the multiple importance levels may include one information source corresponding to one importance level or multiple information sources corresponding to one importance level, etc., which is not limited herein. Based on this, when the information source corresponding to the notification message is obtained, the importance level corresponding to the information source corresponding to the notification message may be found based on the first mapping relationship and determined as the importance level of the notification message.

[0065] As an example, if the information source is a known contact, the importance level of the notification message may be determined as a high importance level; if the information source is the phone number of an unknown contact, the importance level of the notification message may be determined as a low importance level.

[0066] In some implementation manners, when the information source corresponding to the notification message is obtained, the content of the notification message may be obtained, and the importance level of the notification message may be determined based on the information source of the notification message and the content of the notification message.

[0067] As an implementable manner, after the notification message is obtained, the notification management module of the electronic device may parse it to obtain the content of the notification message. For different types of notification messages, their corresponding data formats and structures are different. For example, for a text message notification, its data structure is relatively fixed, including fields such as the sender number, timestamp, and message content. The notification management module may extract the message content field according to the protocol format of the text message; for social media messages, such as WeChat and QQ messages, the data format is relatively complex, and may include encrypted information, multimedia content identifiers, etc. The notification management module may extract the text message content therefrom according to the interface specifications and data parsing rules of the corresponding social media applications.

[0068] As an implementable manner, the electronic device may be pre-set and store a second mapping relationship, which may include multiple information sources, multiple contents, multiple importance levels, and the corresponding relationship between the multiple information sources, the multiple contents, and the multiple importance levels. Optionally, the corresponding relationship between the multiple information sources, the multiple contents, and the multiple importance levels may include one information source and one content corresponding to one importance level, multiple information sources and one content corresponding to one importance level, one information source and multiple contents corresponding to one importance level, etc., which is not limited herein. Based on this, when the information source corresponding to the notification message and the content corresponding to the notification message are obtained, the importance level corresponding to the information source corresponding to the notification message and the content corresponding to the notification message may be found based on the second mapping relationship and determined as the importance level of the notification message.

[0069] As an example, if the information source is a certain known contact, and the content includes sensitive information such as time information, identity information, and money information, then it can be determined that the importance level of the notification message is high; if the information source is a certain known contact, and the content does not include sensitive information such as time information, identity information, and money information, then it can be determined that the importance level of the notification message is medium.

[0070] Step S230: Display the notification message based on the importance level and the display position, where the display position of the notification message does not overlap with the display position.

[0071] In this embodiment, when the display position of the main object in the display interface is determined and the importance level of the received notification message is determined, the received notification message can be displayed based on the importance level and the display position, where the display position of the notification message in the display interface does not overlap with the display position of the main object in the display interface.

[0072] In some embodiments, when the display position of the main object in the display interface is determined and the importance level of the received notification message is determined, a position that does not overlap with the display position and matches the importance level can be determined from the display interface as the display position, and the received notification message is displayed at the display position.

[0073] As an implementable way, the electronic device can be pre-set and store an importance level threshold, which is used as a judgment basis for the importance level of the notification message. Therefore, in this embodiment, when the importance level of the notification message is determined, the importance level of the notification message can be compared with the importance level threshold to judge whether the importance level of the notification message reaches the importance level threshold to obtain a judgment result, where the judgment result can include that the importance level reaches the importance level threshold, or the importance level does not reach the importance level threshold.

[0074] Optionally, if the importance level of the notification message reaches the importance level threshold, it can be considered that the notification message is relatively important and the complete display of the notification message needs to be ensured. At this time, the notification message can be displayed at the display position, that is, for the notification message whose importance level reaches the importance level threshold, on the basis of ensuring the complete display of the notification message, the notification message can be automatically avoided from the main object in the wallpaper, and the notification message is displayed in the information-free area of the display interface, such as the edge corners of the screen, etc.

[0075] Please refer to Figure 4 , Figure 4 shows the first interface schematic diagram of the electronic device provided by the embodiment of the present application. As Figure 4As shown, the display interface of the electronic device may include a wallpaper, and the main object in the wallpaper may be a human face. At this time, since the importance level of the notification message reaches the importance level threshold, the complete display of the notification message can be maintained, and the notification message can be displayed at the display position.

[0076] Optionally, if the importance level of the notification message does not reach the importance level threshold, it can be considered that the notification message is less important, and it is not necessary to ensure the complete display of the notification message but rather to try to ensure the display effect of the wallpaper. At this time, the notification message can be simplified and then displayed at the display position. That is, for a notification message whose importance level does not reach the importance level threshold, the notification message can be simplified and then displayed at the display position to reduce the occlusion of the wallpaper in the display interface.

[0077] As an implementable way, if the importance level of the notification message does not reach the importance level threshold, the display size of the notification message can be reduced and then displayed at the display position. It can be understood that at this time, the display position of the notification message does not overlap with the display position of the main object in the wallpaper, and there will be no display interference to the main object in the wallpaper. Moreover, since the notification message is displayed after reducing the display size, the display interference to the entire wallpaper will also be reduced accordingly, and the display effect of the wallpaper can be improved.

[0078] As another implementable way, if the importance level of the notification message does not reach the importance level threshold, the key information in the notification message can be extracted and the key information can be displayed at the display position. It can be understood that at this time, the display position of the notification message does not overlap with the display position of the main object in the wallpaper, and there will be no display interference to the main object in the wallpaper. Moreover, since the notification message is displayed with the key information, the display interference to the entire wallpaper will also be reduced accordingly, and the display effect of the wallpaper can be improved. Optionally, the key information in the notification message may include the sender of the notification message, the summary of the notification message, etc., which are not limited herein.

[0079] As yet another implementable way, if the importance level of the notification message does not reach the importance level threshold, the key information in the notification message can be extracted and the display size of the key information can be reduced and then displayed at the display position.

[0080] Please refer to Figure 5 , Figure 5 which shows the second interface schematic diagram of the electronic device provided by the embodiment of the present application. As Figure 5 shown, the display interface of the electronic device may include a wallpaper, and the main object in the wallpaper may be a human face. At this time, since the importance level of the notification message does not reach the importance level threshold, the notification message can be simplified (such as reducing the display size + extracting key information) and then displayed at the display position.

[0081] Please refer to Figure 6 , Figure 6 which shows the schematic flow chart of step S230 of the display method of the notification message shown in the present application. The following will elaborate in detail on the Figure 2 flow shown. The method may specifically include the following steps: Figure 6 flow shown. The method may specifically include the following steps:

[0082] Step S231: Determine the message type of the notification message.

[0083] In some embodiments, the message type of the received notification message may be determined.

[0084] In some embodiments, the received notification message may be analyzed to determine the message type of the received notification message.

[0085] As an implementable manner, the message type of the notification message may be determined in the following way:

[0086] First, in the case of determining the notification message, the metadata carried by the notification message may be extracted. The metadata contains key information for identifying the message type, and the metadata of different types of notification messages has specific identification features. For example, for a text message notification message, its metadata contains identification information such as the SMS service center number and the sender's phone number; the metadata of a social media message may carry the identification of the affiliated application. For example, a WeChat message may contain specific header information of the WeChat application and the WeChat ID of the message sender; the metadata of an application push message may contain the package name or identifier of the application. Therefore, by parsing the identification information in these metadata, the message type category to which the notification message belongs can be initially judged.

[0087] After that, based on the initial judgment, the parsed identification information may be matched with the database inside the electronic device. The database may pre-store detailed feature information of various notification messages, covering operator information corresponding to various SMS service center numbers, identification specifications of social media applications, package names of common applications and related features, etc. For example, when the parsed SMS service center number matches the SMS service center number of a certain operator in the database, it can be further confirmed that the notification is an SMS notification provided by that operator; if the application package name in the metadata is consistent with the package name of a shopping application recorded in the database, it can be determined that the notification is a push message of that shopping application. By this way of database matching, the accuracy of message type judgment is improved.

[0088] Step S232: Display the notification message based on the importance level, the message type, and the display position, where the display position of the notification message does not overlap with the display position.

[0089] In this embodiment, when determining the display position of the main object in the display interface and determining the importance level and message type of the received notification message, the received notification message can be displayed based on the importance level, message type, and display position, where the display position of the notification message in the display interface does not overlap with the display position of the main object in the display interface.

[0090] In some embodiments, when determining the display position of the main object in the display interface and determining the importance level and message type of the received notification message, a position that does not overlap with the display position and matches the importance level and message type can be determined from the display interface as the display position, and the received notification message is displayed at the display position.

[0091] As an example, for the first notification message and the second notification message, assuming that the importance levels of the first notification message and the second notification message are the same, the difference is that the message type of the first notification message is a text message notification, while the message type of the second notification message is an application push message. Then, when displaying the notification message at the display position in the display interface, the first notification message can be directly displayed at the display position, and the second notification message can be displayed at the display position after being simplified, which is not limited herein.

[0092] The display method of the notification message provided by an embodiment of the present application determines the display position of the main object in the wallpaper displayed on the display interface, determines the importance level of the received notification message, and displays the notification message based on the importance level and the display position, where the display position where the notification message is displayed does not overlap with the display position. Compared with Figure 1 the display method of the notification message shown, this embodiment also performs dynamic layout adjustment according to the wallpaper content and the importance of the notification message, making the display of the notification message more reasonable and user-friendly, and improving the efficiency and experience of the user obtaining information.

[0093] Please refer to Figure 7 , Figure 7 which shows a schematic flowchart of the display method of the notification message provided by an embodiment of the present application. The following will elaborate in detail on the Figure 7 process shown. The display method of the notification message may specifically include the following steps:

[0094] Step S310: Determine the interface type of the display interface.

[0095] In this embodiment, when the electronic device displays the display interface, the interface type of the display interface can be determined. Optionally, the interface type may include a lock screen interface type, a screen-off display interface type, a desktop type, etc., which are not limited herein.

[0096] In some embodiments, when the electronic device displays the display interface, it can detect the hardware parameters and software environment information of the display interface, and determine the interface type of the display interface based on the detected hardware parameters and software environment information. For example, by reading the system settings information of the electronic device, it is determined whether the display interface is a lock screen interface, and further, whether the interface type of the display interface is a lock screen interface type is determined. Among them, if the electronic device runs on the Android system or the iOS system, and the interface display mode in the current locked state conforms to the characteristics of the lock screen, such as having an unlocking operation area, displaying basic elements such as time and date, etc., then the display interface can be identified as a lock screen interface, and the interface type of the display interface is determined to be a lock screen interface type.

[0097] Of course, during the use of the electronic device, the type of the display interface may change. The electronic device can monitor the state change of the display interface in real time. For example, when the electronic device is connected to the vehicle system, the display interface of the electronic device may switch to the lock screen interface in the vehicle mode. At this time, the electronic device can re-determine the interface type of the display interface according to the characteristics of the vehicle system and the change of the display interface of the electronic device.

[0098] Step S320: If the interface type is the lock screen interface type, determine the display position of the main object in the wallpaper displayed on the display interface in the display interface.

[0099] In this embodiment, if it is determined that the interface type is the lock screen interface type, it can be considered that the original beauty and visual effect of the wallpaper should be retained to the greatest extent to meet the user's needs for personalization and beauty. Based on this, the display position of the main object in the wallpaper displayed on the display interface can be determined, so as to facilitate the subsequent display of the notification on the display interface to avoid this display position.

[0100] Step S330: Display the received notification message based on the display position, where the display position of the notification message does not overlap with the display position.

[0101] For the specific description of step S330, please refer to step S120, which will not be elaborated here.

[0102] The notification message display method provided by an embodiment of the present application determines the interface type of the display interface. If the interface type is the lock screen interface type, it determines the display position of the main object in the wallpaper displayed on the display interface, and displays the received notification message based on this display position, where the display position of the notification message does not overlap with the display position. Compared with Figure 1The display method of the notification message shown. In this embodiment, important notification messages can be timely understood in the locked screen state, and the appreciation of the wallpaper will not be affected by the display of the notification messages, achieving a balance between information acquisition and visual enjoyment.

[0103] Please refer to Figure 8 , Figure 8 which shows a schematic flow chart of the display method of the notification message provided by an embodiment of the present application. The following will elaborate in detail on the Figure 8 flow shown. The display method of the notification message may specifically include the following steps:

[0104] Step S410: Determine the display position of the main object in the wallpaper displayed on the display interface in the display interface.

[0105] For the specific description of step S410, please refer to step S110 and will not be elaborated here.

[0106] Step S420: Determine the object contour of the main object.

[0107] In this embodiment, when the main object is recognized from the wallpaper displayed on the display interface, the object contour of the main object can be determined.

[0108] In some embodiments, the object contour of the main object can be determined in the following ways:

[0109] First, when the main object is recognized from the wallpaper displayed on the display interface, the wallpaper image can be preprocessed. As a way, the wallpaper image can be converted from the common RGB color space to a color space more suitable for feature extraction, such as HSV. Algorithms such as Gaussian filtering and median filtering are used to remove the noise in the wallpaper image. For example, by performing weighted averaging on the neighborhood around each pixel in the image through Gaussian filtering, Gaussian noise can be effectively reduced, making the wallpaper image smoother, thus providing a better basis for subsequent edge detection and other operations. Methods such as histogram equalization are used to enhance the contrast of the wallpaper image, thereby highlighting the features of the main object and making the difference between the main object and the background more obvious, facilitating subsequent processing.

[0110] After that, edge detection is performed on the preprocessed wallpaper image. Among them, the edge detection operator can include Sobel operator, Canny operator, etc., which are not limited here. The selected edge detection operator is used to perform edge detection on the preprocessed wallpaper image to obtain the edge information of all objects in the wallpaper image. These edge information can be presented in the form of pixels, reflecting the regions with large brightness changes in the wallpaper image, that is, the boundaries of the objects.

[0111] Then, perform contour extraction on the wallpaper image after edge detection. Among them, the wallpaper image after edge detection can be binarized to convert the wallpaper image into an image with only two colors, black and white, thereby simplifying the image information and making the edges of the main object clearer. Then, use functions in image processing libraries such as OpenCV to find contours in the binary image, and use the functions to connect adjacent edge pixels according to the connectivity of the pixels to form a complete contour.

[0112] Finally, perform contour screening on the wallpaper image after contour extraction. Among them, according to the characteristics such as the area and perimeter of the extracted contours, the contours belonging to the main object are screened out. Generally speaking, the contour area of the main object is relatively large and the perimeter is relatively long.

[0113] Step S430: Determine the display contour of the received notification message based on the object contour.

[0114] In this embodiment, when the object contour of the main object is determined, the display contour of the received notification message can be determined based on this object contour, so that there is an association between the main object and the notification message in terms of features such as shape and boundary. Furthermore, when the notification message is displayed on the display interface, the displayed notification message can be adapted to the display of the main object, improving the display effect of the wallpaper.

[0115] In some embodiments, when the object contour of the main object is determined, the display shape and display boundary of the main object can be determined based on the object contour of the main object, and based on the display shape and display boundary of the main object, the display contour of the received notification message can be determined.

[0116] As an example, assume that the main object in the wallpaper displayed on the display interface is "the user's finger pointing upward", then the display contour of the received notification message determined based on the object contour can be "determine a display position above the user's finger to display the notification message"; assume that the main object in the wallpaper displayed on the display interface is "a hemispherical basketball", then the display contour of the received notification message determined based on the object contour can be "determine a display position on the other half of the basketball to display the notification message". Assume that the main object in the wallpaper displayed on the display interface is "a face looking to one side", then the display contour of the received notification message determined based on the object contour can be "determine a display position on the side of the face's eyes to display the notification message".

[0117] Step S440: Display the notification message at the display position according to the display contour, where the display position of the notification message does not overlap with the display position.

[0118] In this embodiment, when the display position and display outline of the notification message are determined, the notification message can be displayed at the display position according to the display outline. Among them, the display position of the notification message does not overlap with the display position of the main object, which can avoid the display interference of the notification message on the main object, and the display outline of the notification message matches the object outline of the main object, which can ensure the overall visual effect of the notification message and the main object when displayed, and improve the display effect of the display interface.

[0119] Of course, in this embodiment, the wallpaper in the display interface can change dynamically. Accordingly, the main object in the wallpaper will also change accordingly. Based on this, when it is detected that the wallpaper in the display interface changes, the updated display outline of the notification message can be determined based on the object outline of the main object in the changed wallpaper, and the notification message can be displayed at the display position according to the updated display outline.

[0120] A display method of a notification message provided by an embodiment of the present application determines the display position of the main object in the wallpaper displayed on the display interface in the display interface, determines the object outline of the main object, determines the display outline of the received notification message based on the object outline, and displays the notification message at the display position according to the display outline, where the display position of the notification message does not overlap with the display position. Compared with Figure 1 the display method of the notification message shown, in this embodiment, the display outline of the notification message is also dynamically changed according to the outline of the main object in the wallpaper, so that the display of the notification message is adapted to the main object, and the display effect of the notification message is improved.

[0121] Please refer to Figure 9 , Figure 9 which shows a block diagram of a display device for a notification message provided by an embodiment of the present application. The following will be described with respect to Figure 9 the block diagram shown. The display device 200 for the notification message may include: a display position determination module 210 and a notification message display module 220, where:

[0122] The display position determination module 210 is configured to determine the display position of the main object in the wallpaper displayed on the display interface in the display interface.

[0123] Further, the display position determination module 210 includes: an interface type determination sub-module and a display position determination sub-module, where:

[0124] The interface type determination sub-module is configured to determine the interface type of the display interface when the notification message is received.

[0125] A display position determination sub-module, configured to determine the display position of the main object in the wallpaper displayed on the display interface in the display interface if the interface type is a lock screen interface type.

[0126] A notification message display module 220, configured to display the received notification message based on the display position, wherein the display position of the notification message does not overlap with the display position.

[0127] Further, the notification message display module 220 includes: an importance level determination sub-module and a first notification message display sub-module, wherein:

[0128] An importance level determination sub-module, configured to determine the importance level of the notification message.

[0129] Further, the first importance level determination sub-module includes: an information source acquisition unit and an importance level determination unit, wherein:

[0130] An information source acquisition unit, configured to acquire the information source corresponding to the notification message.

[0131] An importance level determination unit, configured to determine the importance level of the notification message based on the information source.

[0132] Further, the importance level determination unit includes: a content acquisition sub-unit and an importance level determination sub-unit, wherein:

[0133] A content acquisition sub-unit, configured to acquire the content of the notification message.

[0134] An importance level determination sub-unit, configured to determine the importance level of the notification message based on the information source and the content.

[0135] A notification message display sub-module, configured to display the notification message based on the importance level and the display position.

[0136] Further, the notification message display sub-module includes: a first notification message display unit and a second notification message display unit, wherein:

[0137] A first notification message display unit, configured to display the notification message at the display position if the importance level reaches an importance level threshold.

[0138] A second notification message display unit, configured to simplify the notification message and then display it at the display position if the importance level does not reach the importance level threshold.

[0139] Further, the second notification message display unit includes: a reduced display sub-unit and a keyword display sub-unit, wherein:

[0140] The reduction display subunit is configured to reduce the display size of the notification message and then display it at the display position.

[0141] The keyword display subunit is configured to extract key information from the notification message and display the key information at the display position.

[0142] Furthermore, the first notification message display sub-module includes: a message type determination unit and a notification message display unit, where:

[0143] The message type determination unit is configured to determine the message type of the notification message.

[0144] The notification message display unit is configured to display the notification message based on the importance level, the message type, and the display position.

[0145] Furthermore, the notification message display module 220 includes: an object contour determination sub-module, a display contour determination sub-module, and a second notification message display sub-module, where:

[0146] The object contour determination sub-module is configured to determine the object contour of the main object.

[0147] The display contour determination sub-module is configured to determine the display contour of the notification message based on the object contour.

[0148] The second notification message display sub-module is configured to display the notification message at the display position according to the display contour.

[0149] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.

[0150] In several embodiments provided in the present application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0151] In addition, in each embodiment of the present application, each functional module can be integrated in a processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0152] Please refer to Figure 10, which shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 may be an electronic device such as a smart phone, a tablet computer, an e-book, etc. that can run application programs. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.

[0153] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts within the entire electronic device 100, and by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by calling data stored in the memory 120, it executes various functions of the electronic device 100 and processes data. Optionally, the processor 110 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 110 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed; the modem is used to process wireless communication. It can be understood that the above modem may not be integrated into the processor 110 and may be implemented separately through a communication chip.

[0154] The memory 120 may include random access memory (RAM), and may also include read-only memory. The memory 120 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for implementing functions (such as touch functions, sound playback functions, image playback functions, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created during the use of the electronic device 100 (such as phone books, audio and video data, chat record data, etc.).

[0155] In some embodiments, the electronic device 100 may further include a touch screen, where the touch screen is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces may be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the touch screen may be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited herein.

[0156] In some embodiments, the electronic device 100 may further include a camera for collecting the user's motion data. Optionally, the camera may include a front camera, a rear camera, a telescopic camera, a rotating camera, etc., which is not limited herein.

[0157] In some embodiments, the electronic device 100 may further include sensors. The sensors may include a light sensor, which can be used to turn off the display of the touch screen when an object approaches the touch screen, for example, when the main body of the electronic device is moved to the ear. The sensors may include a pressure sensor, which can be used to detect the pressure generated by pressing on the electronic device, that is, the pressure sensor can detect the pressure generated by the contact or pressing between the user and the electronic device, such as the pressure generated by the contact or pressing between the user's ear or finger and the electronic device. The sensors may include a gravity sensor for detecting the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometers, tapping), etc. In addition, the electronic device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, etc., which is not limited herein.

[0158] In some embodiments, the electronic device 100 may further include an artificial intelligence module, where the artificial intelligence module may be integrated in the processor 110 of the electronic device 100 to improve the intelligence level and performance of the electronic device.

[0159] Of course, the electronic device may further include many other components, which will not be elaborated herein.

[0160] Please refer to Figure 11 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 300, and the program code can be called by a processor to execute the method described in the above method embodiments.

[0161] The computer-readable storage medium 300 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has a storage space for program code 310 that executes any of the method steps in the above-described method. These program codes can be read out from or written into one or more computer program products. The program code 310 can be compressed in a suitable form, for example.

[0162] In some embodiments, an embodiment of the present application provides a computer program product, where the computer program product includes a computer program that, when executed by a processor, implements the function recommendation method in the embodiment of the present application.

[0163] In summary, the method, device, electronic device, and storage medium for displaying a notification message provided by the embodiment of the present application determine the display position of the main object in the wallpaper displayed on the display interface, and display the received notification message based on the display position, where the display position of the notification message does not overlap with the display position, so as to avoid or reduce the occlusion of the main object in the wallpaper by the notification message, maximally retain the original beauty and visual effect of the wallpaper, and meet the user's needs for personalization and aesthetics.

[0164] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for displaying a notification message, characterized in that, The method includes: Determining a display position of a main object in a wallpaper displayed on a display interface in the display interface; Displaying a received notification message based on the display position, where a display position of the notification message does not overlap with the display position.

2. The method according to claim 1, characterized in that, The displaying the received notification message based on the display position includes: Determining an importance level of the notification message; Displaying the notification message based on the importance level and the display position.

3. The method according to claim 2, wherein The displaying the notification message based on the importance level and the display position includes: If the importance level reaches an importance level threshold, displaying the notification message at the display position; or If the importance level does not reach the importance level threshold, simplifying the notification message and then displaying the simplified notification message at the display position.

4. The method according to claim 3, wherein The simplifying the notification message and then displaying the simplified notification message at the display position includes: Reducing a display size of the notification message and then displaying the reduced-size notification message at the display position; and / or Extracting key information in the notification message and displaying the key information at the display position.

5. The method according to claim 2, wherein The displaying the notification message based on the importance level and the display position includes: Determining a message type of the notification message; Displaying the notification message based on the importance level, the message type, and the display position.

6. The method according to claim 2, wherein The determining the importance level of the notification message includes: Obtaining an information source corresponding to the notification message; Determining the importance level of the notification message based on the information source.

7. The method according to claim 6, characterized in that, The determining the importance level of the notification message based on the information source includes: Obtaining content of the notification message; Determining the importance level of the notification message based on the information source and the content.

8. The method according to any one of claims 1-7, characterized in that, The determining a display position of a main object in a wallpaper displayed on a display interface in the display interface includes: Determining an interface type of the display interface; If the interface type is a lock screen interface type, determining the display position of the main object in the wallpaper displayed on the display interface in the display interface.

9. The method according to any one of claims 1-7, characterized in that, The displaying the received notification message based on the display position includes: Determining an object contour of the main object; Determining a display contour of the notification message based on the object contour; Displaying the notification message at the display position according to the display contour.

10. A display device for notification messages, characterized in that, The apparatus includes: A display position determining module, configured to determine a display position of a main object in a wallpaper displayed on a display interface in the display interface; A notification message displaying module, configured to display a received notification message based on the display position, where a display position of the notification message does not overlap with the display position.

11. An electronic device, characterized in that, Including a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, Program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the method according to any one of claims 1-9.

13. A computer program product, characterized in that, The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the method according to any one of claims 1-9.