Display methods, display devices, and electronic equipment
By generating a preset theme dataset and adjusting the theme scheme in real time, the problem of inconsistency between theme content and image data during video playback was solved, achieving clear display of theme content and improved user experience.
Patent Information
- Application Number
- CN202111130686.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2041-09-26
AI Technical Summary
When embedding video playback in a data visualization dashboard, the colors of the video and the main content interface are inconsistent, making it difficult for users to clearly see the main content.
A preset theme dataset is generated based on a preset time interval of image data. The corresponding theme scheme is selected by determining the current data image, and the background color and font color are adjusted according to the color gamut parameters. The theme scheme is switched in real time to match the playback content of the image data.
It achieves coordinated display of subject content and image data, improves the user viewing experience, and ensures that the subject content is clearly visible without affecting the viewing effect of the image data.
Smart Images

Figure CN113836349B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a display method, display device, and electronic device. Background Art
[0002] In data visualization dashboards, the main content interface is often a static display. When embedding videos, the video dynamically displays various colors and changes in brightness during playback. Generally, these video-embedded visualization dashboards use a transparent masking solution. During video playback, the background and font colors of the main content interface cannot change. Therefore, during video playback, the colors of the video and the main content interface (including font) can become inconsistent, potentially making it difficult for users to see the main content clearly. Summary of the Invention
[0003] In view of the above-mentioned problems existing in the prior art, this application provides a display method, a display device, and an electronic device. The technical solutions adopted in the embodiments of this application are as follows:
[0004] On one hand, embodiments of this application propose a display method, including:
[0005] The current data image is determined based on the image data at a preset time interval;
[0006] A corresponding theme scheme is selected from a preset theme dataset based on the data image; wherein, the preset theme dataset is generated from the image data based on the preset time interval;
[0007] Based on the selected theme scheme, determine whether the current theme scheme of the first displayed content needs to be switched;
[0008] If necessary, the current theme scheme of the first displayed content can be switched to the selected theme scheme.
[0009] In some embodiments, the generation method of the preset topic dataset includes:
[0010] The image data is sliced based on the preset time interval to obtain sliced images;
[0011] The preset topic dataset is generated based on the sliced image and the first display content.
[0012] In some embodiments, generating the preset topic dataset based on the sliced image and the first display content includes:
[0013] The sliced image is identified to obtain the corresponding color gamut parameters, and a theme scheme corresponding to the sliced image is generated based on the first display content according to the color gamut parameters.
[0014] The topic schemes are arranged in chronological order to generate the preset topic dataset.
[0015] In some embodiments, generating a theme scheme corresponding to the sliced image based on the first display content according to the color gamut parameters includes:
[0016] Based on the color gamut parameters, at least the background color and font color of the first displayed content are determined, so as to configure the theme scheme corresponding to the slice image according to the background color and font color.
[0017] In some embodiments, selecting a corresponding theme scheme from a preset theme dataset based on the data image includes:
[0018] The data image is obtained based on the time scale of the preset time interval;
[0019] Based on the time scale, a topic scheme is determined from the same time scale in the preset topic dataset, so as to select the corresponding topic scheme.
[0020] In some embodiments, determining whether the current theme scheme of the first displayed content needs to be switched based on the selected theme scheme includes:
[0021] Obtain the color parameters of the selected theme scheme;
[0022] The color parameters are compared with the color parameters of the current theme scheme. If the comparison result meets the switching conditions, the switching needs to be performed.
[0023] In some embodiments, switching the current theme scheme of the first displayed content to the selected theme scheme includes:
[0024] The selected theme scheme is used to transform the current theme scheme of the first displayed content through front-end control rendering, so that the color of the first displayed content matches the data image.
[0025] On the other hand, embodiments of this application propose a display device, including:
[0026] The determination module is used to determine the current data image based on image data at a preset time interval;
[0027] The selection module selects a corresponding theme scheme from a preset theme dataset based on the data image; wherein, the preset theme dataset is generated from the image data based on the preset time interval;
[0028] The judgment module is used to determine whether the current theme scheme of the first displayed content needs to be switched;
[0029] The switching module is used to switch the current theme scheme of the first displayed content to the selected theme scheme if necessary.
[0030] In some embodiments, the determining module includes:
[0031] The acquisition unit acquires the color parameters of the current theme scheme;
[0032] The comparison unit compares the color parameters with the color parameters of the historical theme scheme of the previous historical data image. If the comparison results are different, a switch needs to be performed.
[0033] On the other hand, embodiments of this application propose an electronic device, which includes at least a memory, a processor, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of the method proposed in any embodiment of this application.
[0034] Compared with the prior art, the beneficial effects of the embodiments of this application are as follows: In the display method provided by the embodiments of this application, the currently playing data image is determined based on the image data, and a corresponding theme scheme is selected from a preset theme dataset based on the data image. The preset theme dataset is generated by the image data based on the preset time interval, so the selected theme scheme corresponds to the data image. Then, it is determined whether the theme scheme currently displayed by the theme content needs to be switched based on the selected theme scheme. If a switch is needed, the currently displayed theme scheme of the theme content is replaced with the selected theme scheme so that the color displayed by the theme content is coordinated with the data image currently being played. The display method provided by the embodiments of this application is convenient and quick when switching themes, and interactive switching of theme schemes can be formed based on the data image played in real time according to the image data, so that the first display content is displayed in a coordinated manner on the data image played in real time, improving the user's viewing experience. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 A flowchart illustrating the display method provided in the embodiments of this application;
[0037] Figure 2 A schematic diagram illustrating a display method provided in another embodiment of this application;
[0038] Figure 3 A schematic diagram illustrating a display method provided in yet another embodiment of this application;
[0039] Figure 4 A schematic diagram illustrating a display method provided in yet another embodiment of this application;
[0040] Figure 5 These are effect diagrams of the display method provided based on the embodiments of this application;
[0041] Figure 6 A schematic diagram illustrating a display method provided in yet another embodiment of this application;
[0042] Figure 7 A block diagram of a display device provided in an embodiment of this application;
[0043] Figure 8 A schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the described embodiments of this application without creative effort are within the scope of protection of this application.
[0045] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0046] To keep the following description of the embodiments of this application clear and concise, detailed descriptions of known functions and known components are omitted.
[0047] Currently, large-screen visualization systems can display the content of image data and, through transparent masking, reveal the main theme of the image data at the front end. This allows users to understand the theme of the image data during playback. Since the theme schemes are usually pre-configured (one or more), the background color or font color of the theme content can be configured accordingly. However, during playback, the content often changes over time, potentially causing inconsistencies between the displayed image and the main theme, or making it difficult for users to read the text. The display method provided in this application determines the currently playing image based on the image data and selects a corresponding theme scheme from a preset theme dataset. This preset theme dataset is generated from the image data based on a preset time interval, ensuring the selected theme scheme corresponds to the image. Next, based on the selected theme scheme, it is determined whether the currently displayed theme scheme of the theme content needs to be switched. If a switch is required, the currently displayed theme scheme of the theme content is replaced with the selected theme scheme so that the way the theme content is displayed is consistent with the data image currently being played.
[0048] Figure 1 A flowchart illustrating the display method provided in an embodiment of this application. For example... Figure 1 As shown, the display method of this application embodiment includes the following steps S100-S400.
[0049] S100 determines the current data image based on image data at a preset time interval.
[0050] In this application, the image data can be dynamic images or video data, but is not limited to these. In this step, the time interval used to determine the data image can be appropriately selected based on the experience of the technician or actual needs, such as 1 minute or 2 minutes, to avoid the time being too short increasing the power consumption required for display, while too long the time may prevent the display method of this application from coordinating the display. This embodiment of the application does not specifically limit the time interval. Determining the current data image based on the preset time interval means that during the playback of image data such as dynamic images or video data, the current data image is determined based on the display screen of the currently playing image data, according to a set appropriate time interval. For example, during the playback of image data, the preset time interval can be 1 minute. Based on the 1-minute time interval, the content played at the 61st second can be determined as the current data image; correspondingly, after 1 minute, the content played at the 121st second is determined as the current data image; and so on, determining the current data image during the playback process according to the 1-minute time interval until the playback of the image data ends.
[0051] S200, Select a corresponding theme scheme from a preset theme dataset based on the data image; wherein, the preset theme dataset is generated based on the image data and the preset time interval.
[0052] This step aims to select a corresponding theme scheme from the preset theme dataset based on the current data image determined in step S200.
[0053] The preset theme dataset in this application is generated based on the playback content of the image data at preset time intervals, and the theme schemes included in the theme dataset correspond to the playback content at preset time intervals. In some embodiments, the preset theme dataset can be generated by the following steps:
[0054] S211, The image data is sliced based on the preset time interval to obtain sliced images;
[0055] S212, Generate the preset topic dataset based on the sliced image and the first display content.
[0056] This embodiment aims to obtain sliced images based on the image data, thereby generating the preset theme dataset based on the sliced images and the first display content. First, sliced images need to be obtained based on the image data at preset time intervals. For example, the image data can be analyzed to obtain the playback duration, and then all playback moments requiring slicing can be determined based on the playback duration and the preset time intervals. Then, the image data can be sliced based on all these playback moments to obtain sliced images corresponding to each playback moment. If the playback duration of the image data cannot be obtained, for example, for online real-time video streams where the playback duration cannot be determined, the next playback moment requiring slicing can be determined based on the current playback moment and the preset time intervals. Then, when the next playback moment arrives, the image data is sliced to obtain the corresponding sliced images, and this process continues until the image data playback ends, thereby obtaining all sliced images of the image data based on the preset time intervals. For example, Figure 2 This demonstrates that when the preset time interval can be set to 1 minute, image data is sliced every minute. Figure 1 Frames are used to obtain individual slice images.
[0057] After obtaining the sliced images, their color information can be acquired through recognition. Based on the display position of the first displayed content, the color information at corresponding positions within the sliced images can be specifically identified. This color information is then used to configure color parameters such as the background color and font color of the first displayed content, thereby generating a theme scheme corresponding to that sliced image. Similarly, based on the color information of all sliced images and the color parameters such as the background color and font color of the first displayed content, theme schemes corresponding to all sliced images can be generated. Finally, based on all the theme schemes, the preset theme dataset for this application can be generated.
[0058] In some embodiments, step S212 above can be implemented as follows:
[0059] S2121, The sliced image is identified to obtain the corresponding color gamut parameters, and a theme scheme corresponding to the sliced image is generated based on the first display content according to the color gamut parameters.
[0060] S2122, Arrange the topic schemes in chronological order to generate the preset topic dataset.
[0061] This embodiment aims to identify the sliced images, generate corresponding theme schemes, and generate the preset theme dataset based on the theme schemes corresponding to all sliced images. In this embodiment, the sliced images are first identified. In this application, considering the need to avoid obscuring the main playback screen of the image data as much as possible, the first display content is usually set in the four edges of the playback screen, or when subtitles are displayed at the bottom of the playback screen, the first display content can be set in the left, right, or top edges of the playback screen. For example, when the first display content is set in the left, right, or top edges of the playback screen, when identifying the sliced images, an area of corresponding width can be divided in the left, right, and top edges of the sliced images according to the size of the first display content as the identification area. Alternatively, based on the experience of those skilled in the art, an area with a width of 30 pixels can be drawn in the left, right, and top edges of the sliced images as the identification area. Then, the colors of the sliced images in this identification area are identified to obtain the corresponding color gamut parameters. Figure 3 and Figure 4 This is an example of an embodiment of this application. For example... Figure 3 As shown, regions 1, 2, and 3 are delineated at the top edge and left and right edges of the sliced image as recognition regions. Then, the colors of regions 1, 2, and 3 are identified to obtain the color gamut parameters corresponding to each region. The color gamut parameters of each region after recognition are as follows: Figure 4 As shown, the values are listed in RGB, where R represents Red, G represents Green, and B represents Blue. Different combinations of RGB values produce corresponding colors.
[0062] After identifying the color gamut parameters from the sliced images, the background color and font color of the first display content are determined based on these parameters. For example, the background color of the first display content is set to a suitable color gamut range based on the color gamut parameters, so that when the background color is displayed at the front of the image data, there will be a certain visual distinction, but it should not be too eye-catching or even glaring. Thus, based on the corresponding color gamut parameters and the first display content, all theme schemes corresponding to all sliced images can be generated accordingly.
[0063] The slice images are generated based on the playback time of the video data. Therefore, the thematic schemes corresponding to the slice images also have a chronological order. Arranging the thematic schemes according to the chronological order can generate the preset thematic dataset.
[0064] In some embodiments, generating a theme scheme corresponding to the sliced image based on the first display content according to the color gamut parameters includes:
[0065] Based on the color gamut parameters, at least the background color and font color of the first displayed content are determined, so as to configure the theme scheme corresponding to the slice image according to the background color and font color.
[0066] This embodiment aims to determine the background color and font color of the first display content based on the color gamut parameters of the sliced image, so as to configure the theme scheme corresponding to the sliced image. The color gamut parameters include at least the colors corresponding to the sliced image, and the background color and font color of the first display content are determined based on the corresponding colors. For example, the background color can be set by finding color combinations near the color gamut parameters through the color ring, so that the background color forms a complementary color effect with respect to the color gamut parameters. This makes the background color of the first display content appear to change relative to the image data, for example, it will be more reddish or more bluish, thus creating a background masking effect for the first display content in front of the image data. Correspondingly, the font color of the first display content is set by finding a color combination that contrasts significantly with the color gamut parameters on the opposite side of the color ring, so that the text part of the first display content can be clearly displayed for easy viewing by the user. The colors around each color gamut parameter can be determined according to the color ring to serve as the background color of regions 1, 2, and 3; the color combination opposite the color gamut parameter on the color ring can be determined to serve as the font color of regions 1, 2, and 3. Therefore, the background colors of areas 1, 2, and 3 are distinct from the image data, while the font colors have obvious contrast. This makes the first displayed content more visually coordinated with the image data, and the text is clearly visible, resulting in a better user experience.
[0067] In some embodiments, selecting a corresponding theme scheme from a preset theme dataset based on the data image can be implemented as follows:
[0068] S221, Obtain the time scale of the data image based on the preset time interval;
[0069] S222, Based on the time scale, determine the topic scheme from the same time scale in the preset topic dataset, so as to select the corresponding topic scheme.
[0070] This embodiment aims to select a corresponding theme scheme based on the real-time playback of image data. In this embodiment, after acquiring the data image, the data image is analyzed to determine the playback time scale of the data image within the image data. The data image is determined based on a preset time interval; therefore, the time scale of the data image is also based on a preset time interval.
[0071] The preset theme dataset corresponds to the sliced images, which are generated based on preset time intervals. This means the playback time of the sliced image is the same as the time scale of the data image, and therefore the theme scheme corresponding to the sliced image also corresponds to the data image. Thus, after determining the time scale of the data image, a theme scheme with the same time scale can be found in the preset theme dataset, thereby selecting the corresponding theme scheme for the data image.
[0072] S300 determines whether the current theme scheme of the first displayed content needs to be switched based on the selected theme scheme.
[0073] This step aims to determine whether it is necessary to switch the theme scheme currently used for the first displayed content. In this application, different data images can be acquired during the playback of the video data when the content being played is different. In order to maintain consistency between the display mode of the first displayed content and the different data images, after acquiring the current data image and the theme scheme corresponding to the current data image, this step determines whether the current theme scheme of the first displayed content needs to be switched by comparing the selected theme scheme with the current theme scheme of the first displayed content.
[0074] In some embodiments, step S300 above can be implemented as follows:
[0075] S310, Obtain the color parameters of the selected theme scheme;
[0076] S320, compare the color parameters with the color parameters of the current theme scheme. If the comparison result meets the switching conditions, then switching needs to be performed.
[0077] In this embodiment, the color parameters of the selected theme scheme are compared with the color parameters of the current theme scheme of the first displayed content to determine whether the current theme scheme of the first displayed content needs to be switched based on switching conditions. The color parameters include at least the background color and font color parameters of the first displayed content. The switching condition can be that the color parameters of the selected theme scheme are different from the color parameters of the current theme scheme of the first displayed content. In some specific implementations, the background color and font color of the selected theme scheme can be obtained first, and then the current background color or font color of the first displayed content can be compared with the background color or font color of the selected theme scheme. If the current background color or font color of the first displayed content is different from the background color or font color of the selected theme scheme, or if the color combination of the current background color of the first displayed content is different from the color combination of the background color of the selected theme scheme, or if the color combination of the current font color of the first displayed content is different from the color combination of the font color of the selected theme scheme, then the comparison result is considered to meet the switching condition, and the current theme scheme of the first displayed content needs to be switched.
[0078] S400, if necessary, switch the current theme scheme of the first displayed content to the selected theme scheme.
[0079] In this step, when it is determined that the current theme scheme of the first displayed content needs to be switched, the current theme scheme of the first displayed content is switched to the selected theme scheme so that the display mode of the first displayed content is consistent with the current data image.
[0080] For example, Figure 5 The following are renderings of some embodiments of this application, such as... Figure 5 As shown, through the display method of this application, during the playback of the image data, the theme scheme of the first displayed content can be switched as needed. This ensures that the background color of the first displayed content visually matches the playback image data, avoiding any jarring or glaring effect, while maintaining clear and readable text. Therefore, the display method provided by this application embodiment is convenient and quick for theme switching, and can interactively switch theme schemes based on the real-time playback data image, allowing the first displayed content to be displayed harmoniously on the real-time playback data image, thus enhancing the user's viewing experience.
[0081] In some embodiments, switching the current theme scheme of the first displayed content to the selected theme scheme includes:
[0082] The selected theme scheme is used to transform the current theme scheme of the first displayed content through front-end control rendering, so that the color of the first displayed content matches the data image.
[0083] In this embodiment, the front-end page can set execution events according to a preset time interval. Each time an event is executed, if a request to switch the theme scheme of the first display content is received, the color parameters in the selected theme scheme, such as RGB values, are used to replace the current color parameters in the CSS file. After rendering the front-end page, the color of the first display content matches the data image. Visually, the first display content is coordinated with the data image, and the text content is clearly presented without being eye-catching and affecting the viewing of the image data.
[0084] For example, Figure 6 A schematic diagram illustrating the front-end page rendering process implemented in this application is shown. For example... Figure 6 As shown, the preset time interval is set to 1 minute, or 60 seconds, and the front-end page also defines a 1-minute execution event. In some specific applications, during the front-end page rendering process, the first 55 seconds within one minute are used to execute events such as data modification during rendering, and the last 5 seconds are a pause period used to execute the rendering gradient process based on the updated data. For example, when the image data just starts playing, that is, from the 1st second, the first displayed content can be displayed using the color parameters of the default theme scheme. At the same time, the front-end page executes the 1-minute event starting from the 6th second. At this time, since the theme scheme of the first displayed content uses the default theme scheme, a corresponding theme scheme needs to be selected to switch the default theme scheme. The front-end page uses the color parameters of the selected theme scheme, such as RGB values, to replace the color parameters in the CSS file, and calls a new data package to render the front-end page from the 60th to the 65th second, so that the first displayed content gradually changes from the color of the default theme scheme to the color corresponding to the selected theme scheme within the 60th to the 65th second. After that, the front-end page executes the next 1-minute event starting from the 66th second, and so on, so that the color of the first displayed content matches the current data image.
[0085] During the first minute of event execution, there is a 5-second pause during each minute's event execution. No rendering operations are performed; instead, this pause is used to confirm if there is a request to switch the theme scheme. Upon confirming that a request to switch the theme scheme of the first displayed content has been received, the rendering process begins at the 6th second and continues until the 60th second, outputting a page successfully rendered according to the color parameters of the selected theme scheme. Then, the next event execution begins, and the rendering process is repeated sequentially. This allows the theme scheme of the first displayed content to be switched as needed during video playback, maintaining consistency with the current image data.
[0086] Based on the same inventive concept, this application also provides a display device. Figure 7 This is a block diagram of a display device according to an embodiment of this application. Figure 7 As shown, the display device includes:
[0087] The determination module 10 is used to determine the current data image based on the image data according to a preset time interval;
[0088] The selection module 20 selects a corresponding theme scheme from a preset theme dataset based on the data image; wherein, the preset theme dataset is generated from the image data based on the preset time interval;
[0089] The judgment module 30 is used to determine whether the current theme scheme of the first displayed content needs to be switched;
[0090] The switching module 40 is used to switch the current theme scheme of the first displayed content to the selected theme scheme if necessary.
[0091] The display device described in the embodiments of this application can implement the display method provided in any embodiment of this application through its configured functional modules.
[0092] In some embodiments, the determining module 30 includes:
[0093] The acquisition unit acquires the color parameters of the current theme scheme;
[0094] The comparison unit compares the color parameters with the color parameters of the historical theme scheme of the previous historical data image. If the comparison results are different, a switch needs to be performed.
[0095] This application also provides an electronic device, including at least a memory 901, a processor 902, and a bus (not shown), wherein the structural schematic diagram of the electronic device can be as follows: Figure 8As shown, the memory 901 stores machine-readable instructions that can be executed by the processor 902. When the electronic device is running, the processor 902 communicates with the memory 901 via a bus. When the machine-readable instructions are executed by the processor, the steps of the display method provided in any embodiment of this application are performed.
[0096] Since the electronic device described in this application embodiment is an electronic device equipped with a memory for implementing the display method disclosed in this application embodiment, those skilled in the art can understand the structure and variations of the electronic device described in this application embodiment based on the display method described in this application embodiment, and therefore will not be repeated here.
[0097] Furthermore, although exemplary embodiments have been described herein, their scope includes any and all embodiments based on this application that have equivalent elements, modifications, omissions, combinations (e.g., schemes involving intersections of various embodiments), adaptations, or alterations. Elements in the claims will be interpreted broadly based on the language used in the claims and are not limited to the examples described in this specification or during the implementation of this application, which will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered illustrative only, and the true scope and spirit are indicated by the full scope of the following claims and their equivalents.
[0098] The above description is intended to be illustrative and not restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. Other embodiments can be used by those skilled in the art when reading the above description. Furthermore, in the above detailed description, various features may be grouped together to simplify the application. This should not be construed as an intention that a disclosed feature not claimed is necessary for any claim. Rather, the subject matter of the application may be less than all the features of a particular disclosed embodiment. Thus, the following claims are incorporated herein by reference as examples or embodiments, wherein each claim is an independent, separate embodiment, and these embodiments are contemplated to be combined with each other in various combinations or arrangements. The scope of this application should be determined by reference to the appended claims and the full scope of their equivalents.
[0099] The foregoing has described in detail several embodiments of this application, but this application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications based on the concept of this application, and all such variations and modifications should fall within the scope of protection claimed in this application.
Claims
1. A display method, wherein, include: The current data image is determined based on the image data at a preset time interval; A corresponding theme scheme is selected from a preset theme dataset based on the data image; wherein, the preset theme dataset is generated from the image data based on the preset time interval; Based on the selected theme scheme, determine whether the current theme scheme of the first displayed content needs to be switched; If necessary, the current theme scheme of the first displayed content can be switched to the selected theme scheme; The step of selecting a corresponding theme scheme from a preset theme dataset based on the data image includes: The data image is obtained based on the time scale of the preset time interval; Based on the time scale, a topic scheme is determined from the same time scale in the preset topic dataset, so as to select the corresponding topic scheme; The generation methods of the preset topic dataset include: The image data is sliced based on the preset time interval to obtain sliced images; The preset topic dataset is generated based on the sliced image and the first displayed content; The step of generating the preset topic dataset based on the sliced image and the first display content includes: The sliced image is identified to obtain the corresponding color gamut parameters, and a theme scheme corresponding to the sliced image is generated based on the first display content according to the color gamut parameters; the first display content is set in the edge area of the playback screen; The topic schemes are arranged in chronological order to generate the preset topic dataset; The process of identifying the sliced image and obtaining the corresponding color gamut parameters includes: The colors of the sliced image within the recognition area are identified to obtain the corresponding color gamut parameters; the recognition area is divided according to the size of the first displayed content.
2. The method according to claim 1, wherein, The step of generating a theme scheme corresponding to the sliced image based on the color gamut parameters and the first display content includes: Based on the color gamut parameters, at least the background color and font color of the first displayed content are determined, so as to configure the theme scheme corresponding to the slice image according to the background color and font color.
3. The method according to any one of claims 1-2, wherein, The step of determining whether the current theme scheme of the first displayed content needs to be switched based on the selected theme scheme includes: Obtain the color parameters of the selected theme scheme; The color parameters are compared with the color parameters of the current theme scheme. If the comparison result meets the switching conditions, the switching needs to be performed.
4. The method according to any one of claims 1-2, wherein, Switching the current theme scheme of the first displayed content to the selected theme scheme includes: The selected theme scheme is used to transform the current theme scheme of the first displayed content through front-end control rendering, so that the color of the first displayed content matches the data image.
5. A display device, wherein, include: The determination module is used to determine the current data image based on image data at a preset time interval; The selection module selects a corresponding theme scheme from a preset theme dataset based on the data image; wherein, the preset theme dataset is generated from the image data based on the preset time interval; The judgment module is used to determine whether the current theme scheme of the first displayed content needs to be switched; The switching module is used to switch the current theme scheme of the first displayed content to the selected theme scheme if necessary. The step of selecting a corresponding theme scheme from a preset theme dataset based on the data image includes: The data image is obtained based on the time scale of the preset time interval; Based on the time scale, a topic scheme is determined from the same time scale in the preset topic dataset, so as to select the corresponding topic scheme; The generation methods of the preset topic dataset include: The image data is sliced based on the preset time interval to obtain sliced images; The preset topic dataset is generated based on the sliced image and the first displayed content; The step of generating the preset topic dataset based on the sliced image and the first display content includes: The sliced image is identified to obtain the corresponding color gamut parameters, and a theme scheme corresponding to the sliced image is generated based on the first display content according to the color gamut parameters; the first display content is set in the edge area of the playback screen; The topic schemes are arranged in chronological order to generate the preset topic dataset; The process of identifying the sliced image and obtaining the corresponding color gamut parameters includes: The colors of the sliced image within the recognition area are identified to obtain the corresponding color gamut parameters; the recognition area is divided according to the size of the first displayed content.
6. The apparatus according to claim 5, wherein, The judgment module includes: The acquisition unit acquires the color parameters of the current theme scheme; The comparison unit compares the color parameters with the color parameters of the historical theme scheme of the previous historical data image. If the comparison results are different, a switch needs to be performed.
7. An electronic device comprising at least a memory, a processor, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is in operation, the processor communicates with the memory via the bus, and the machine-readable instructions, when executed by the processor, perform the steps of the method as claimed in any one of claims 1 to 4.
Citation Information
Patent Citations
Smart television as well as method and device used for interface theme change thereof
CN106101810A