Display device and subtitle adjusting method

By acquiring the color space parameters of the subtitles and screen content in the display device, calculating the similarity and automatically adjusting the subtitle color, the problem of poor real-time performance of subtitle color adjustment is solved, improving the readability and viewing experience of the subtitles.

CN121985172APending Publication Date: 2026-05-05VIDAA (NETHERLANDS) INT HLDG LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
VIDAA (NETHERLANDS) INT HLDG LTD
Filing Date
2026-01-27
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

The real-time performance of subtitle color adjustment on display devices is poor, and manual operation by users is complicated, which affects the readability of subtitles and the viewing experience.

Method used

By acquiring the color space parameters of the subtitles and the screen content, the similarity is calculated, and the subtitle color is automatically adjusted based on a dual threshold mechanism, including target color switching and transition processing, to avoid visual flickering caused by frequent switching.

Benefits of technology

The system enables adaptive adjustment of subtitle colors, improving the distinction between subtitles and background, enhancing viewing smoothness and readability, reducing user intervention, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121985172A_ABST
    Figure CN121985172A_ABST
Patent Text Reader

Abstract

The invention provides a display device and a subtitle adjusting method, and the display device can obtain a first color space parameter of a picture content corresponding to a display area based on the display area of the subtitle content in a user interface, and obtain a second color space parameter of the subtitle content. Calculating a first similarity between the first color space parameter and the second color space parameter; if the first similarity is greater than or equal to a first threshold value, controlling the display to display the subtitle content according to a target color with higher distinction degree with the picture content; in response to the fact that the first similarity is smaller than a second threshold value, controlling the display to display the subtitle content according to a preset default color; otherwise, controlling the display to maintain the current color of the subtitle content. Wherein the second threshold value is smaller than the first threshold value. Through color space parameter comparison and double-threshold judgment, subtitle color self-adaptive adjustment is realized. The problem of insufficient subtitle and background discrimination is solved, visual flicker caused by frequent switching is avoided, and the subtitle watching experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display device technology, and in particular to a display device and a method for adjusting subtitles. Background Technology

[0002] Display devices refer to terminal devices capable of outputting specific display images, such as smart TVs, mobile terminals, smart advertising screens, and projectors. Taking smart TVs as an example, smart TVs are television products based on Internet application technologies, possessing open operating systems and chips, and having open application platforms. They enable two-way human-computer interaction and integrate multiple functions such as audio-visual, entertainment, and data to meet diverse and personalized user needs.

[0003] Display devices use fixed color configurations to display subtitles, such as white subtitles by default. Since the content on the display changes in real time, if the subtitles and the content are similarly colored, the readability of the subtitles will decrease. In this case, users can manually adjust the subtitle color through the system menu, switching it to a color that is more distinct from the content on the screen to ensure readability.

[0004] However, adjusting the subtitle color requires manual operation by the user. If the user cannot switch the subtitle color in time, it will affect the viewing experience of the subtitle and result in poor real-time performance. Furthermore, when the content of the screen changes in a complex manner, the user also needs to select the appropriate color one by one, which increases the complexity of subtitle color adjustment and thus affects the user experience. Summary of the Invention

[0005] This application provides a display device and a subtitle adjustment method to solve the problems of poor real-time performance and high complexity in subtitle color adjustment.

[0006] In a first aspect, this application provides a display device, comprising: The display is configured to display a user interface, the user interface including screen content and subtitle content displayed on top of the screen content; The controller is configured as follows: Based on the display area of ​​the subtitle content in the user interface, obtain the first color space parameter of the screen content corresponding to the display area, and obtain the second color space parameter of the subtitle content; Calculate the first similarity between the first color space parameters and the second color space parameters; In response to the first similarity being greater than or equal to a first threshold, the display is controlled to display the subtitle content according to a target color, wherein the target color is the color in the candidate color set whose color space parameters are least similar to the first color space parameters; In response to the first similarity being less than a second threshold, the display is controlled to show the subtitle content in a preset default color; the second threshold is less than the first threshold. In response to the first similarity being less than a first threshold and greater than or equal to a second threshold, the display is controlled to maintain the current color of the subtitle content.

[0007] The above technical solution has the following beneficial effects or advantages: By using a dual-threshold triggering mechanism with a first threshold and a second threshold, the subtitle color can be adaptively adjusted. This solves the problem of insufficient differentiation between subtitles and background in dynamic images and avoids visual flickering caused by frequent color switching. No manual intervention from the user is required, which can improve the viewing smoothness and readability of subtitle content, thereby improving the user experience.

[0008] In some embodiments of this application, the controller is specifically configured to acquire the first color space parameters of the screen content corresponding to the display area as follows: Based on the coordinates and line spacing information of the display line corresponding to the subtitle content, the line area of ​​the display line is determined in the display area; Extract the first RGB value of the image content corresponding to the row region; Convert the first RGB value into a first standard color value; Convert the first standard color value to the first LAB value; The weighted average of the first LAB values ​​is calculated to obtain the first color space parameters.

[0009] The above technical solution has the following beneficial effects or advantages: The line area is determined by the coordinates and line spacing of the display line corresponding to the subtitle content. By converting RGB values ​​and standard color values ​​to LAB values ​​and calculating weighted averages, the color characteristics of the background (screen content) corresponding to the subtitle content can be accurately represented, avoiding calculation errors of individual pixel colors.

[0010] In some embodiments of this application, the controller is characterized in that, specifically, the acquisition of the second color space parameters of the subtitle content is configured as follows: Extract the second RGB value of the subtitle content corresponding to the line region; Convert the second RGB value to the second standard color value; Convert the second standard color value to the second LAB value; The weighted average of the second LAB values ​​is calculated to obtain the second color space parameters.

[0011] The above technical solution has the following beneficial effects or advantages: By adopting color space conversion and weighted average logic consistent with the screen content, the second color space parameters of the subtitle color and the first color space parameters of the screen content are determined to be in the same dimension, making the similarity calculation results more accurate. Through the LAB color space, which is more in line with the uniformity of human visual perception, subsequent color switching can be more adapted to the user's visual experience.

[0012] In some embodiments of this application, the controller performs the calculation of a first similarity between the first color space parameters and the second color space parameters, specifically configured as follows: The similarity between the first color space parameter of the image content corresponding to the line region and the second color space parameter of the subtitle content corresponding to the line region is calculated to obtain the first similarity.

[0013] The above technical solution has the following beneficial effects or advantages: For each display line, the similarity between the corresponding subtitle and the screen content below the subtitle is calculated. This can adapt to situations where the screen content of different lines differs in multi-line subtitle scenarios, thereby improving the accuracy of similarity calculation.

[0014] In some embodiments of this application, the controller controls the display to show the subtitle content according to the target color, specifically configured as follows: Read the candidate color set, which includes at least two different candidate colors; Obtain the third color space parameters of the candidate colors, wherein the third color space parameters and the first color space parameters are determined based on the same color space; Calculate the second similarity between the third color space parameters and the first color space parameters; The candidate color with the lowest second similarity in the candidate color set is determined as the target color; Set the color parameters of the subtitle content according to the color space parameters of the target color; Control the display to show the subtitle content according to the color parameters.

[0015] The above technical solution has the following beneficial effects or advantages: By reading the candidate color set and calculating the similarity between each candidate color and the screen content, the target color with the highest distinguishability is selected to ensure that the switched subtitles and screen content form a highly distinguishable display effect, thereby improving the readability of the subtitles. At the same time, determining the target color through the candidate color set can improve calculation efficiency, save system resources, and thus achieve rapid switching of subtitle colors.

[0016] In some embodiments of this application, the controller is configured to control the display to show the subtitle content in a preset default color. Detect the current color of the subtitle content; In response to the current color not being the default color, the display time of the current color is detected; If the display time is less than a time threshold, when the display time of the current color reaches the time threshold, the display is controlled to display the subtitle content according to the default color.

[0017] The above technical solution has the following beneficial effects or advantages: By detecting the current color and its display time, a time threshold is set to delay the restoration of the default color, avoiding rapid color changes and ensuring visual continuity. After the time threshold is reached, the default color is restored to the user's preference, balancing adaptability and user habits.

[0018] In some embodiments of this application, after the controller controls the display to maintain the current color of the subtitle content in response to the first similarity being less than a first threshold and greater than or equal to a second threshold, it is further configured to: After a preset detection period, the first color space parameters of the screen content corresponding to the display area are reacquired, and the second color space parameters of the subtitle content are reacquired. The colors of the subtitle content are adjusted based on the similarity between the re-acquired first color space parameters and the second color space parameters.

[0019] The above technical solution has the following beneficial effects or advantages: After maintaining the current color, the color space parameter detection process is periodically re-executed through a preset detection time period to ensure timely response to changes in subsequent screen content and to switch the subtitle color, thereby improving the closed-loop logic of subtitle adaptive color adjustment.

[0020] In some embodiments of this application, when controlling the display to display subtitle content according to a target color or a default color, the controller is further configured to: Transition data is generated based on the current color of the subtitle content and the color to be switched, wherein the color to be switched is the target color or the default color; The display is controlled to show the subtitle content according to the transition data; The transition data includes the color space parameters of the color to be switched, and at least one color increment from the current color to the color to be switched.

[0021] The above technical solution has the following beneficial effects or advantages: By generating transition data that includes color increments, a gradual transition from the current color to the target color or the default color (the color to be switched) is achieved, avoiding visual breaks during color switching and thus improving the smoothness of the viewing experience.

[0022] In some embodiments of this application, the controller controls the display to show the subtitle content according to the transition data, specifically configured as follows: The color parameters of the subtitle content are gradually set based on the transition data; Control the display to show the subtitle content according to the color parameters; In response to the color parameter being the parameter corresponding to the color to be switched, the display is controlled to maintain the color to be switched; After a preset detection period, the first color space parameters of the screen content corresponding to the display area are reacquired, and the second color space parameters of the subtitle content are reacquired. The colors of the subtitle content are adjusted based on the similarity between the re-acquired first color space parameters and the second color space parameters.

[0023] The above technical solution has the following beneficial effects or advantages: The subtitle color parameters are updated gradually based on transition data to ensure the smoothness of the gradient transition. After the transition is completed, the target color is maintained and the color space parameter detection process is periodically re-executed to ensure that the subtitle color can be switched in a timely manner in response to changes in subsequent screen content, thereby improving the closed-loop logic of subtitle adaptive color adjustment.

[0024] Secondly, this application also provides a method for adjusting subtitles, including: Based on the display area of ​​the subtitle content in the user interface, the first color space parameter of the screen content corresponding to the display area is obtained, and the second color space parameter of the subtitle content is obtained. Calculate the first similarity between the first color space parameters and the second color space parameters; In response to the first similarity being greater than or equal to a first threshold, the display is controlled to display the subtitle content according to the target color, wherein the target color is the color in the candidate color set whose color space parameters are least similar to the first color space parameters; In response to the first similarity being less than a second threshold, the display is controlled to show the subtitle content in a preset default color; the second threshold is less than the first threshold. In response to the first similarity being less than a first threshold and greater than or equal to a second threshold, the display is controlled to maintain the current color of the subtitle content.

[0025] As can be seen from the above technical solutions, this application provides a display device and a subtitle adjustment method. Based on the display area of ​​the subtitle content in the user interface, it obtains a first color space parameter of the screen content corresponding to the display area, and a second color space parameter of the subtitle content. Then, it calculates a first similarity between the first and second color space parameters. If the first similarity is greater than or equal to a first threshold, the display is controlled to show the subtitle content in a target color with higher distinguishability from the screen content; if the first similarity is less than the second threshold, the display is controlled to show the subtitle content in a preset default color; otherwise, the display is controlled to maintain the current color of the subtitle content. The second threshold is less than the first threshold. This application achieves adaptive subtitle color adjustment through color space parameter comparison and dual threshold judgment. This solves the problem of insufficient distinguishability between subtitles and background, and avoids visual flicker caused by frequent switching, thus improving the subtitle viewing experience. Attached Figure Description

[0026] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram illustrating the operational scenario between the display device and the control device in an embodiment of this application; Figure 2 This is a hardware configuration block diagram of the display device in the embodiments of this application; Figure 3 This is a diagram showing the operating system configuration of the display device in the embodiments of this application; Figure 4a This is a schematic diagram illustrating the display effect of the screen content and subtitle content in the embodiments of this application; Figure 4b This is a schematic diagram illustrating the hierarchical relationship between the screen content and the subtitle content in the embodiments of this application; Figure 5 This is a flowchart illustrating a subtitle adjustment method according to an embodiment of this application; Figure 6 This is a flowchart illustrating the process of displaying subtitle content according to the target color in an embodiment of this application; Figure 7 This is a schematic diagram of the delay processing when restoring the default color in the embodiments of this application; Figure 8 This is a schematic diagram of the process of periodically performing subtitle color detection in an embodiment of this application; Figure 9 This is a schematic diagram of the subtitle color gradient processing in the embodiments of this application; Figure 10This is a timing diagram of a subtitle adjustment method according to an embodiment of this application. Detailed Implementation

[0028] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.

[0029] In this embodiment, the display device 200 generally refers to a device with screen display and data processing capabilities. For example, the display device 200 includes, but is not limited to, smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.

[0030] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application. For example... Figure 1 As shown, a user can operate the display device 200 via touch operation, a mobile terminal 300, and a control device 100. The control device 100 receives user input commands and converts them into control commands that the display device 200 can recognize and respond to. For example, the control device 100 can be a remote control, a stylus, a gamepad, etc.

[0031] The mobile terminal 300 can function as a control device for human-computer interaction between the user and the display device 200. It can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data. In some embodiments, the mobile terminal 300 can have software applications installed on it and communicate with the display device 200 via network communication protocols to achieve one-to-one control and data communication. Furthermore, it can transmit audio and video content displayed on the mobile terminal 300 to the display device 200 for synchronized display.

[0032] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application that controls the display device 200.

[0033] like Figure 1 The diagram also shows that the display device 200 communicates with the server 400 via various communication methods. This allows the display device 200 to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.

[0034] Display device 200 can provide broadcast television reception function, and can also be equipped with intelligent network television function that provides computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.

[0035] Figure 2 Provided for some embodiments of this application Figure 1 Hardware configuration block diagram of display device 200.

[0036] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface 280.

[0037] In some embodiments, detector 230 is used to acquire signals from the external environment or to interact with the outside world. For example, detector 230 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.

[0038] In some embodiments, the display 260 includes display function components for presenting images and driving components for driving image display. The display 260 is used to receive and display image signals output from the controller 250. For example, the display 260 can be used to display video content, image content, menu control interface components, and user control UI interfaces, etc.

[0039] In some embodiments, the communication device 220 is a component used to communicate with external devices or the server 400 according to various communication protocol types. The display device 200 may have multiple communication devices 220 depending on the supported communication methods. For example, when the display device 200 supports wireless network communication, it may have a communication device 220 with WiFi functionality. When the display device 200 supports Bluetooth connectivity, it needs to have a communication device 220 with Bluetooth functionality.

[0040] The communication device 220 enables the display device 200 to communicate with external devices or the server 400 via wireless or wired connections. Wired connections utilize data cables, interfaces, or other components to connect the display device 200 to external devices. Wireless connections utilize wireless signals or wireless networks. The display device 200 can directly establish a connection with external devices or indirectly through gateways, routers, or other connection devices.

[0041] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display device 200.

[0042] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0043] In some embodiments, a user can input user commands through a graphical user interface (GUI) displayed on a display 260, and the user input interface 280 receives the user input commands through the graphical user interface (GUI).

[0044] In some embodiments, the audio output device 270 can be a built-in speaker of the display device 200 or an external audio output device connected to the display device 200. For the external audio output device connected to the display device 200, the display device 200 may also be provided with an external audio output terminal, through which the audio output device can be connected to the display device 200 to output sound from the display device 200.

[0045] In some embodiments, the user input interface 280 can be used to receive instructions from user input.

[0046] To enable user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program used to manage and control the hardware and software resources of the display device 200. The operating system can control the display device to provide a user interface; for example, the operating system can directly control the display device to provide a user interface, or it can provide a user interface by running an application. The operating system also allows users to interact with the display device 200.

[0047] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system that is deeply customized based on a specific operating platform, or an independent operating system specifically developed for display devices.

[0048] An operating system can be divided into different modules or levels based on the functions it implements, for example... Figure 3As shown, in some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the System Library layer, and the Kernel layer.

[0049] In some embodiments, the application layer provides services and interfaces for applications, enabling the display device 200 to run applications and interact with the user based on the applications. The application layer may contain at least one application, which may be a built-in Windows program, system settings program, or clock program of the operating system; or it may be an application developed by a third-party developer. In specific implementations, the application packages in the application layer are not limited to the examples above.

[0050] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.

[0051] like Figure 3 As shown, Figure 3 The diagram below illustrates the software configuration of a display device according to some embodiments of this application. In some embodiments, the system of the display device 200 can be divided into three layers, from top to bottom: the application layer, the middleware layer, and the hardware layer.

[0052] The application layer mainly includes TV applications and application frameworks. The applications are mainly browser-based applications, such as HTML5 apps, and native apps. An application framework is a complete program model that has all the basic functions required by standard application software, such as file access, data exchange, and the user interface for these functions (toolbar, status bar, menu, dialog box).

[0053] Native apps can support online or offline access, push notifications, or access to local resources.

[0054] The middleware layer includes various television protocols, multimedia protocols, and system components. Middleware can use the basic services (functions) provided by system software to connect different parts of application systems or different applications on the network, achieving resource sharing and function sharing.

[0055] The hardware layer mainly includes the HAL interface, hardware, and drivers. The HAL interface is a unified interface for all TV chips, with the specific logic implemented by each chip. The drivers mainly include: audio drivers, display drivers, Bluetooth drivers, camera drivers, Wi-Fi drivers, USB drivers, HDMI drivers, sensor drivers (such as fingerprint sensors, temperature sensors, pressure sensors, etc.), and power drivers.

[0056] It should be noted that the above examples are merely a simple division of operating system functions and do not limit the specific form of the operating system of the display device 200 in this application embodiment. Depending on the function of the display device, the type of operating system, and other factors, the number of levels and the specific level type of the operating system may be expressed in other forms.

[0057] The user interface provided by the display device 200 can display various types of content, such as video content and subtitles. It should be noted that the video content described in this embodiment can also be described as video footage, image content, playback footage, video image, screen image, screen view, etc., and the subtitle content described in this embodiment can also be described as subtitles, subtitle text, subtitle information, subtitle text, displayed subtitles, text subtitles, subtitle views, etc.

[0058] Subtitles provide textual cues to the on-screen content, assisting users in viewing it. The subtitle color is fixed, typically set to white by default, meaning the display device will show white subtitles simultaneously with the corresponding video content. However, as the on-screen content changes dynamically, the colors of the subtitles and the on-screen content may become too similar, affecting readability. For example, if the subtitles are white and the on-screen content is also a light color close to white, the user may find it difficult to clearly see the subtitles, negatively impacting the user experience.

[0059] To ensure the readability of subtitles, in some embodiments, the display device 200 supports adjusting the color of the subtitle content through the system menu. Users can manually set the color of the subtitle content by accessing the system menu of the display device. For example, users can access the system menu through a remote control and switch the display color of the subtitle content using the operation controls for setting the subtitle content color. However, manual operation is not very real-time and the process is relatively cumbersome, which will affect the user's viewing experience.

[0060] Therefore, in some embodiments, the display device 200 also detects the color space parameters of the subtitle content and the corresponding screen content. When the similarity of the color space parameters of the subtitle content and the screen content is greater than the similarity threshold, the color space parameters of the screen content (such as the values ​​of the red-yellow-blue three-color channels) are subjected to complementary color processing, and the color space parameters obtained by complementary color processing are used as the display color of the subtitle content; or, the contrast and brightness of the subtitle content and the screen content are adjusted to improve the readability of the subtitle content.

[0061] However, the single-threshold color switching method has several drawbacks. If the threshold is too high, it will result in frequent switching, and if the threshold is too low, it will result in untimely switching. Furthermore, the color of the subtitle content cannot be distinguished from the screen content after the color is switched. Adjustments based on contrast and brightness do not take into account the difference in hue, and the adjusted colors still cannot achieve a good display effect with good differentiation.

[0062] To address the aforementioned issues, this application provides a display device 200 that can determine an appropriate subtitle adjustment mechanism by combining the color space parameters of the subtitle content and the screen content, thus balancing the readability of the subtitle content with the user's viewing experience.

[0063] In some embodiments, the display 260 of the display device 200 is configured to display a user interface, which includes screen content and subtitle content displayed on top of the screen content. For example, such as Figure 4a As shown, after the display device 200 plays a video, the user interface displayed on the monitor 260 can include the corresponding screen content 401 and the subtitle content 402 displayed on top of the screen content 401. Before color adjustment, the distinction between the subtitle content 402 and the screen content 401 is low. After the display device 200 adjusts the color of the subtitle content 402, the distinction is significantly improved. The hierarchical relationship between the subtitle content 402 and the screen content 401 is as follows: Figure 4b As shown.

[0064] It should be noted that the above Figure 4a The adjustment of colors is merely an illustrative example and is not intended to limit this application.

[0065] like Figure 5 As shown, in some embodiments, the controller 250 of the display device 200 is further configured to perform the following steps: S501. Based on the display area of ​​the subtitle content in the user interface, obtain the first color space parameters of the screen content corresponding to the display area, and obtain the second color space parameters of the subtitle content.

[0066] After the display device 200 starts displaying the subtitle content, it can determine the screen content at the corresponding position in the display area of ​​the user interface based on the subtitle content, and then obtain the color space parameters of the corresponding screen content and the color space parameters of the subtitle content.

[0067] For ease of distinction, the color space parameters of the acquired image content are described as first color space parameters, and the color space parameters of the subtitle content are described as second color space parameters in this embodiment.

[0068] In some embodiments, the color space parameter can be one of the following: CIE Lab color space value (LAB value), hue-saturation-brightness color space value (HSV value), or hue-saturation-brightness color space value (HSL value).

[0069] In some embodiments, the subtitle content can be displayed in a single line or multiple lines. That is, the subtitle content can exist in multiple display lines, or in only a single display line. Each display line corresponds to the coordinates and line spacing information of the display line.

[0070] In scenarios with multiple lines of display, due to the diversity of the content on the screen, the content at the corresponding position of different display lines may be presented in different colors.

[0071] To accurately obtain the color space parameters of the subtitle content and its corresponding screen content, in some embodiments, for obtaining the first color space parameters of the screen content corresponding to the display area, the line region of the display line is determined in the display area based on the coordinates and line spacing information of the display line corresponding to the subtitle content. For example, if the display line corresponding to the subtitle content is N, the display device 200 can separate the display area corresponding to the subtitle content into N line regions based on the coordinates and line spacing information of the N display lines.

[0072] After determining the row area, the display device 200 extracts the RGB values ​​of the corresponding screen content, i.e., the first RGB values. Then, the first RGB values ​​are converted into standard color values ​​(XYZ values), i.e., the first standard color values. Next, the first standard color values ​​are converted into LAB values, i.e., the first LAB values. Finally, a weighted average of the first LAB values ​​is calculated to obtain the first color space parameters corresponding to different displayed row screen content. Using the LAB values ​​in the LAB color space, the uniformity of human visual perception can be better matched, ensuring a better visual experience for the user.

[0073] For example, the display device 200 obtains the coordinates and line spacing information of the display line corresponding to the current subtitle content, and separates the display area corresponding to the subtitle content according to the display line to obtain the line area corresponding to each display line. For the line area of ​​each display line, the display device 200 extracts the RGB value of each pixel in the line area, converts the RGB value to LAB color space value, and obtains the LAB value. Converting RGB values ​​to LAB values ​​requires first converting RGB to XYZ values, and then converting XYZ values ​​to LAB values. Based on the weighted average of all LAB values ​​in the display line, the first color space parameters corresponding to the content of a single display line are calculated, with different display lines corresponding to different first color space parameters LC1-LCn.

[0074] Similarly, for the color space parameters of subtitle content in different display lines, in some embodiments, when obtaining the second color of the subtitle content, the display device 200 can extract the RGB value of the subtitle content corresponding to the line area, i.e., the second RGB value. Then, the second RGB value is converted into a standard color value, i.e., the second standard color value. Next, the second standard color value is converted into a second LAB value, and the weighted average of the second LAB values ​​is calculated to obtain the second color space parameter LC corresponding to the subtitle content.

[0075] For example, the RGB value of the color corresponding to the current subtitle content is converted to the LAB color space value LC, and then the LC is compared with the above LC1-LCn values ​​to obtain the color similarity values ​​LCS1, LCS2...LCSn (percentage values).

[0076] In some embodiments, the display device 200 assigns different weights to the RGB channels and calculates a weighted average based on the assigned weights, so that the colors can better match the perceptual characteristics of the human eye. For example, the weight assigned to the R channel is 0.299, the G channel is 0.587, and the B channel is 0.114.

[0077] In some embodiments, the conversion of a first RGB value to a first standard color value, or the conversion of a second RGB value to a second standard color value, is calculated using the following formula: =

[0078] The conversion of a first standard color value to a first LAB value, or a second standard color value to a second LAB value, is performed using a non-linear conversion based on a reference white point (such as the XYZ value of a D65 light source) and the XYZ value, as detailed below: The lightness L is calculated based on the XYZ values ​​(first standard color value or second standard color value) using the following formula:

[0079] Where Y is the Y component in the XYZ value, and Yn is the Y component of the reference white point (e.g., Yn=100 under D65 light source). :

[0080] Calculated using the following formula and (Color):

[0081]

[0082] Where X, Y, and Z are the components of the XYZ value. , , For reference white point XYZ values ​​(e.g., under D65 light source) , , ).

[0083] S502. Calculate the first similarity between the parameters of the first color space and the parameters of the second color space.

[0084] After the display device 200 acquires the first color space parameters corresponding to the screen content (the screen content at the position corresponding to the subtitle content) and the first color space parameters corresponding to the subtitle content, it calculates the color similarity between the subtitle content and the screen content based on the first color space parameters and the second color space parameters, i.e., the first similarity.

[0085] In some embodiments, the similarity between the first color space parameter of the subtitle content corresponding to the line region and the second color space parameter of the screen content corresponding to the line region is calculated to obtain a first similarity. This allows for comparison of subtitle content and screen content within the same display line, improving the accuracy of similarity calculation and addressing the problem of insufficient accuracy in similarity calculations in multi-line subtitle content scenarios.

[0086] In some embodiments, the color difference is calculated using a color difference formula, and a first similarity is determined based on the color difference. For example, the color difference formula may be the CIE 1976 Lab Color Difference Formula (CIE76), the CIE 1944 Color Difference Formula (CIE 1994 Color Difference Formula (CIE94), or the CIE DE2000 Color Difference Formula (CIEDE2000), etc.

[0087] To reduce computational complexity and improve response speed, in some embodiments, the display device 200 calculates the color difference using CIE76, as shown in the following formula:

[0088] in, , , The components of the LAB value are calculated using a weighted average.

[0089] In some embodiments, when the display device 200 determines the first similarity based on the color difference, it calculates the maximum value of the color difference and calculates the first similarity based on the maximum value and the color difference. The first similarity is a percentage similarity.

[0090] For example, color difference The maximum value is Then the percentage similarity S (first similarity) can be calculated as:

[0091] in, It can be configured according to specific application scenarios, such as .

[0092] In some embodiments, the display device 200 may be configured with similarity thresholds, including a first threshold and a second threshold, wherein the second threshold is less than the first threshold. By setting dual thresholds, the similarity calculation results (first similarity) are compared and analyzed, and different processing strategies are executed based on the comparison results. The dual thresholds can balance the problems of untimely switching and frequent switching. For example, the first threshold is 85%, and the second threshold is 60%.

[0093] It should be noted that in the embodiments of this application, the value of the first threshold is relatively large, and the value of the second threshold is relatively small. The first threshold can be understood as the critical value of insufficient differentiation, and the second threshold can be understood as the critical value of sufficient differentiation. If the value is greater than or equal to the first threshold, it is considered that the differentiation is insufficient, and if it is less than the second threshold, it is considered that the differentiation is sufficient. The middle segment between the two can be understood as the readability of the current subtitle content can meet the requirements, and no excessive adjustment is required.

[0094] S503. In response to the first similarity being greater than or equal to the first threshold, control the display to show the subtitle content according to the target color.

[0095] The display device 200 calculates the first similarity and determines that when the first similarity is greater than or equal to the first threshold, since the first threshold is relatively large, it indicates that the colors of the subtitle content and the corresponding screen content are similar, and the readability of the subtitle content is not good. At this time, it is necessary to switch the display color of the subtitle content.

[0096] It is understandable that when obtaining the color space parameters of the subtitle content and the screen content based on the line area, if there is a display line with a first similarity greater than or equal to the first threshold, then it is determined that the first similarity is greater than or equal to the first threshold, and the display color of the subtitle content needs to be switched.

[0097] When switching the display color of subtitle content, the display device 200 can switch the display color of the subtitle content based on a set of candidate colors, changing the display color of the subtitle content to a color with greater distinguishability than the screen content. Therefore, the display device 200 will select the color in the candidate color set whose color space parameters are least similar to the first color space parameters of the screen content; that is, the target color to be switched is the color in the candidate color set whose color space parameters are least similar to the first color space parameters.

[0098] In some embodiments, the alternative color set may be a preset alternative color set in the display device 200. The alternative color set includes at least two different alternative colors. For example, high-contrast basic colors such as white, black, red, green, blue, and yellow are fixed in the system firmware or configuration file to form the alternative color set.

[0099] In some embodiments, the alternative color set may also be a color set automatically calculated by the display device 200 based on the current first color space parameters. For example, the display device 200 may calculate a color whose color space parameters are significantly different from the first color space parameters based on a built-in calculation algorithm, and use it as the target color.

[0100] Regarding step S503, in some embodiments, such as Figure 6 As shown, Figure 6 The flowchart illustrating the display of subtitle content according to a target color provided in this application embodiment specifically includes the following steps: S601, Read the alternative color set.

[0101] When the display device 200 determines that the first similarity is greater than or equal to the first threshold and the subtitle content needs to be displayed according to the target color, the display device 200 reads the candidate color set and determines the appropriate target color based on the candidate color set (the color differentiation is relatively large compared to the screen content).

[0102] In some embodiments, the alternative color set includes at least two different alternative colors, each corresponding to a different RGB value. For example, the alternative color set may include blue, red, black, yellow, green, white, etc.

[0103] S602. Obtain the third color space parameters of the candidate colors.

[0104] After reading the candidate color set, obtain the third color space parameters corresponding to each candidate color in the candidate color set. The third color space parameters and the first color space parameters are determined based on the same color space. For example, when the first color space parameter is a LAB value, the third color space parameter is also a LAB value.

[0105] Similarly to the above embodiments, when the color space parameters of the read candidate colors are inconsistent with the color space of the first color space parameters, they can be converted to obtain a third color space parameter with consistent color space.

[0106] In some embodiments, the display device 200 can read the third RGB value corresponding to the candidate color and convert the third RGB value into a third standard color value (XYZ value). The third standard color value is then converted into a third LAB value to obtain the third color space parameters.

[0107] S603. Calculate the second similarity between the parameters of the third color space and the parameters of the first color space.

[0108] After obtaining the third color space parameters corresponding to the candidate colors, the display device 200 calculates the second similarity between the third color space parameters and the first color space parameters.

[0109] S604. The candidate color with the lowest second similarity in the candidate color set is determined as the target color.

[0110] The lower the second similarity, the higher the color distinction between the current candidate color and the corresponding screen content. To improve the readability of the subtitle content, the display device 200 determines the candidate color with the lowest second similarity as the target color, so that the subtitle content is displayed according to the target color.

[0111] In some embodiments, after determining the candidate color with the lowest second similarity as the target color, the display device 200 extracts the RGB value of the target color and sets the display color of the subtitle content according to the RGB value of the target color.

[0112] S605. Set the color parameters of the subtitle content according to the color space parameters of the target color.

[0113] After determining the target color, the display device 200 sets the color parameters corresponding to the subtitle content according to the color space parameters corresponding to the target color. For example, if the display device 200 determines that the target color is red, it can set the display color of the subtitle content, i.e., the color parameters of the subtitle content, by using the RGB value of red stored in the display device 200.

[0114] S606. Control the display to show subtitle content according to color parameters.

[0115] After the display device 200 sets the color parameters of the subtitle content, the monitor 260 will display the subtitle content according to the corresponding color parameters. For example, if the target color is red, the color parameters of the subtitle content are set to the RGB value of red, and the monitor 260 of the display device 200 will display the red subtitle content. In this way, the target color can be quickly selected through a limited set of colors (alternative color set), improving the system response speed of the display device 200.

[0116] For example, the candidate color set includes the RGB values ​​of candidate colors. After reading the candidate color set, the display device 200 converts the RGB values ​​of the candidate colors into LAB values ​​(similar to the above embodiment), obtaining LB1, LB2...LBn). Then, the LB1 and LC1, LC2...LCn values ​​(first color space parameters) are compared sequentially to obtain color similarity values ​​LB1S1, LB1S2...LB1Sn, and the average value LB1AS (second similarity) of LB1S1, LB1S2...LB1Sn is taken. Then, the LB2 and LC1, LC2...LCn values ​​are compared to obtain color similarity values ​​LB2S1, LB2S2...LB2Sn, and the average value LB2AS of LB2S1, LB2S2...LB2Sn is taken until the comparison of all display lines is completed, i.e., LBnAS. The minimum value among LB1AS, LB2AS, and LBnAS (i.e., the one with the smallest average similarity and the largest difference) is taken. If the candidate color corresponding to LB1AS is B1, then the color of the subtitle is set to B1 (target color).

[0117] S504. In response to the first similarity being less than the second threshold, control the display to show the subtitle content in a preset default color.

[0118] Display device 200 calculates the first similarity and determines that when the first similarity is less than the second threshold, since the second threshold is small, it means that the distinction between the subtitle content and the screen content is sufficiently large. At this point, display device 200 should revert to user preference and ensure visual stability by switching the display color of the subtitle content to the preset default color. Display device 200 then controls monitor 260 to display the subtitle content according to the default color, that is, restoring the subtitle content to the default color.

[0119] In some embodiments, the default color can be the default setting in the system configuration of the display device 200, and the user can switch and adjust the default color through the system menu or other means.

[0120] In some embodiments, color switching is triggered and the subtitle content is displayed in the target color as long as the first similarity of any displayed line is greater than or equal to a first threshold. Color restoration is triggered and the subtitle content is displayed in the default color only when the first similarity of all displayed lines is less than a second threshold.

[0121] In some embodiments, when the first similarity threshold is less than the second threshold, the display device 200 is further configured to detect the current color of the subtitle content. If the current color of the subtitle content is already the default color, then the subtitle content can continue to be displayed using the default color. However, if the current color of the subtitle content is not the default color, such as... Figure 7 As shown, the display device 200 then performs the following steps: S701. In response to the current color not being the default color, detect the display time of the current color.

[0122] If the first similarity threshold is less than the second threshold, and the current color is not the default color, the display device 200 also confirms the display time of the current color. This is because the current color may be the color of the subtitle that was just switched. If it is switched again in a short period of time, the color will jump from the user's visual perspective, resulting in a poor user experience.

[0123] S702. If the display time is less than the time threshold, when the display time of the current color reaches the time threshold, control the display to show the subtitle content according to the default color.

[0124] To reduce the aforementioned color abruptness issue, the display device 200 detects the display time of the current color and compares it with a preset time threshold. If the display time is less than the time threshold, the display color of the subtitle content is switched to the default color only when the display time of the current color reaches the time threshold, thus implementing a delay processing mechanism. For example, the time threshold can be 5 seconds.

[0125] If the display time is greater than or equal to the time threshold, the display device 200 can directly switch the display color of the subtitle content to the default color without the aforementioned delay processing. In this way, the display device 200 detects the current color and its display time, sets a time threshold to delay the restoration of the default color, avoids rapid color changes, and ensures visual continuity. After the time threshold is reached, it reverts to the user-preferred default color, balancing adaptability with user habits.

[0126] In some embodiments, the display device 200 can create a timer that starts and resets when the display color of the subtitle content is switched, thereby timing the display time of the current color. In this way, the display device 200 can detect the display time of the current color based on this timer.

[0127] S505, In response to the first similarity being less than a first threshold and greater than or equal to a second threshold, control the display to maintain the current color of the subtitle content.

[0128] The display device 200 calculates the first similarity and determines that when the first threshold > the first similarity ≥ the second threshold, it indicates that the current subtitle content is readable compared to the screen content and can meet the user's viewing needs. At this time, the display device 200 can maintain the display of the color corresponding to the current subtitle content without additional processing, which can balance the readability of the subtitle and the problem of frequent switching, and improve the user experience.

[0129] Because the content of the image can change dynamically, in some embodiments, the display device 200 maintains the current color of the subtitle content, such as... Figure 8 As shown, it is also configured to perform the following steps: S801. After a preset detection period, reacquire the first color space parameters of the screen content corresponding to the display area, and reacquire the second color space parameters of the subtitle content.

[0130] S802. Adjust the color of the subtitle content based on the similarity between the re-acquired first color space parameters and the second color space parameters.

[0131] In other words, after a preset detection period, such as 30 seconds, the display device 200 will re-execute steps S501-S505, repeating the above detection process. This ensures the readability of the subtitle content while maintaining a good user experience for the display device 200 (e.g., avoiding frequent switching of subtitle colors). Thus, after maintaining the current color, the color space parameter detection process is periodically re-executed within a preset detection period, ensuring timely response to changes in subsequent screen content to switch subtitle colors, thereby perfecting the closed-loop logic of adaptive color adjustment for subtitles in this embodiment.

[0132] Because the subtitle color changes abruptly when the display device 200 switches subtitle colors, the user experience suffers. Therefore, in some embodiments, when the display device 200 controls the display 260 to display subtitle content according to the target color or default color, it also uses a gradient transition mechanism to display the target color or default color.

[0133] In some embodiments of the gradient transition mechanism, the display device 200 generates transition data based on the current color of the subtitle content and the color to be switched, and controls the display 260 to display the subtitle content according to the transition data. The color to be switched is either a target color or a default color, and the transition data includes the color space parameters of the color to be switched and at least one color increment from the current color to the color to be switched, thereby achieving the effect of a gradient color transition. By generating transition data containing color increments, a gradient transition from the current color to the target color or the default color (the color to be switched) can be achieved, avoiding visual discontinuities during color switching.

[0134] In other words, when a color switch is required, it does not immediately switch to the new color (the color to be switched), but instead creates a color gradient transition effect. This can be set to change once within a time period t1, and then switch to the color to be switched within a time period t2 (for example, t1 can be set to 200ms and t2 can be set to 2s) to prevent the color of the subtitle content from appearing discontinuous.

[0135] In some embodiments, the average increment of the color value set each time may be positive or negative, and the increment ΔV = (target value - current value) / total number of color changes, where the target value is the RGB value of the color to be switched, and the current value is the RGB value of the current color. For example, if the increment is 30 times, the current color is white, the color to be switched is black, the RGB value of white is (255,255,255), and the RGB value of black is (0,0,0), then the increment of the RGB value in the transition data each time is: ΔR = (0-255) / 30, ΔG = (0-255) / 30, ΔB = (0-255) / 30.

[0136] For example, such as Figure 9 As shown, the current color of the subtitle content is white, and the RGB value of white is (255, 255, 255). The color to be switched to is black, and the RGB value of black is (0, 0, 0). From white to black, N is set within a time interval T, and if this is set to 30 times, then the interval between each color setting is approximately 1 second / 30 ≈ 33 milliseconds. The RGB increment values ​​are negative. For example... Figure 9 , where i is the index of the i-th subscript, and the subscript index starts from 0.

[0137] In the step-by-step setting process: First time: R = 255 + 1 × (ΔR), G = 255 + 1 × (ΔG), B = 255 + 1 × (ΔB); Second time: R = 255 + 2 × (ΔR), G = 255 + 2 × (ΔG), B = 255 + 2 × (ΔB); Third time: R = 255 + 3 × (ΔR), G = 255 + 3 × (ΔG), B = 255 + 3 × (ΔB); Fourth time: R = 255 + 4 × (ΔR), G = 255 + 4 × (ΔG), B = 255 + 4 × (ΔB); Fifth time: R = 255 + 5 × (ΔR), G = 255 + 5 × (ΔG), B = 255 + 5 × (ΔB)... and so on, until the 30th time: R = 255 + 30 × (ΔR). G=255+30×(ΔG), B=255+30×(ΔB).

[0138] In some embodiments, when the display device 200 displays subtitle content according to the transition data, it can gradually set the color parameters of the subtitle content based on the transition data, that is, gradually adjust the color parameters of the subtitle content according to the aforementioned increments. Then, it controls the display 260 to display the subtitle content according to the color parameters, and in response to the color parameters being the parameters corresponding to the color to be switched, it controls the display to maintain the color to be switched.

[0139] After a preset detection period (e.g., 30 seconds), the first color space parameters of the screen content corresponding to the display area are reacquired, as well as the second color space parameters of the subtitle content. Then, based on the similarity between the reacquired first and second color space parameters, the color of the subtitle content is adjusted.

[0140] In other words, after the display device 200 completes the switching of the color to be switched, it will also re-detect the subtitle content and screen content according to the timed detection mechanism to ensure the display effect of the subtitle.

[0141] In some embodiments, the display device 200 also obtains the corresponding scene parameters from the player to determine whether the current scene is a subtitle content playback scene. If the display device 200 has subtitle content, the above steps S501-S505 are executed; otherwise, the detection and color adjustment in the above steps S501-S505 are not started.

[0142] In some embodiments, the display device 200 is further configured with an automatic adjustment switch, which is used to turn the automatic adjustment mechanism for subtitle color on or off. When automatic adjustment is on, the display device 200 performs the detection and color adjustment steps S501-S505 described above; when the automatic adjustment switch is off, the display device 200 does not perform the above steps, allowing the user to personalize their choice of whether to use the above-mentioned automatic subtitle color adjustment.

[0143] It should be noted that the above steps S503-S505 are different processing mechanisms in three cases. The display device 200 will execute the corresponding program according to the comparison of similarity with the first threshold and the second threshold, and there is no restriction on the order.

[0144] Based on the above embodiments, the display device 200 provided in this application embodiment can solve the problem of color data distortion by collecting color space parameters of the subtitle display area. The first color space parameter comes from the background corresponding to the subtitle display area, rather than the entire screen, which can avoid interference from the colors of other areas of the screen on the similarity calculation. By dividing the target color to be switched, the default color to be restored, and the color to remain unchanged into three intervals by dual thresholds, the subtitle color can be automatically adjusted. This solves the problem of poor readability when the fixed subtitle color is similar to the background color, and avoids the problem of frequent switching or untimely adjustment caused by a single threshold.

[0145] like Figure 10 As shown, Figure 10 A timing diagram showing the subtitle adjustment performed by the display device provided in this embodiment of the application.

[0146] The application layer of the display device 200 includes a playback module, a subtitle region capture module, a dynamic color gamut analysis module, a dual threshold judgment module, a gradient color processing module, a delay mechanism processing module, and a color optimization calculation module. The playback module of the display device 200 starts playing video, and the monitor 260 starts displaying the screen content and the subtitle content above it. At this time, the subtitle region capture module determines the RGB values ​​of each display line's subtitle and its corresponding background color (the screen content covered by the display line) based on the coordinates of the subtitle display area and the number of display lines. It then synchronizes the RGB values ​​to the dynamic color gamut analysis module, which converts the RGB values ​​to XYZ values, then to LAB values, and calculates the weighted average of all LAB values ​​to obtain the first color space parameter (C1) corresponding to the screen content and the second color space parameter (C2) corresponding to the subtitle content. C1 and C2 are passed to the dual threshold judgment module. The dual threshold judgment module compares the similarity between C1 and C2. If the similarity is ≥ T1 (first threshold), it is determined that a new subtitle color needs to be switched; if the similarity is < T2 (second threshold), it is determined that the subtitle content needs to be restored to the default color; if the similarity is ≥ T2 and < T1, the display color of the current subtitle content is maintained.

[0147] When switching the subtitle content to the target color, the display device 200 also selects the corresponding color through a color optimization calculation module. This module chooses the color with the lowest similarity to the background color from the candidate color set. Specifically, it converts the RGB values ​​of the candidate colors to LAB values, obtaining C3. Then, it compares the similarity between C1 and C3, selecting the candidate color with the lowest similarity as the target color. When restoring the subtitle content to the default color, the display device 200 also uses a delay processing mechanism module to detect whether the current color of the subtitle content exceeds a preset time threshold. If it does not exceed the threshold, it waits until it does before restoring the default color. When switching to the target color or restoring the default color, the display device 200 also uses a gradient color processing module to gradually set the subtitle color, ensuring a natural color transition. A dual threshold judgment module judges the switching strategy for the above subtitle content and renders the letter content in the corresponding color, so that the display 260 displays the subtitle content according to the color corresponding to the strategy.

[0148] It should be noted that the above division of modules and functional logic is only an illustrative example. More or fewer modules may be included, which does not limit the technical solution of this application.

[0149] Based on the aforementioned display device 200, this application embodiment also provides a subtitle adjustment method, such as... Figure 5 As shown, it includes the following steps: S501. Based on the display area of ​​the subtitle content in the user interface, obtain the first color space parameter of the screen content corresponding to the display area, and obtain the second color space parameter of the subtitle content; S502. Calculate the first similarity between the first color space parameters and the second color space parameters; S503. In response to the first similarity being greater than or equal to the first threshold, the subtitle content is displayed according to the target color, wherein the target color is the color in the candidate color set whose color space parameters are least similar to the first color space parameters; S504. In response to the first similarity being less than the second threshold, the subtitle content is displayed in a preset default color; the second threshold is less than the first threshold. S505 responds to the first similarity being less than a first threshold and greater than or equal to a second threshold by controlling the display to maintain the current color of the subtitle content.

[0150] It is understood that the subtitle adjustment method provided in this application embodiment can adopt the same logic and principle as the corresponding embodiment of the display device 200 described above. The embodiment of the subtitle adjustment method can refer to the embodiment of the display device 200 described above, and will not be described again in this application.

[0151] Based on the above embodiments, the subtitle adjustment method provided in this application can obtain a first color space parameter of the screen content corresponding to the display area of ​​the subtitle content in the user interface, and a second color space parameter of the subtitle content. Then, a first similarity between the first color space parameter and the second color space parameter is calculated. If the first similarity is greater than or equal to a first threshold, the subtitle content is displayed in a target color with higher distinguishability from the screen content; if the first similarity is less than the second threshold, the subtitle content is displayed in a preset default color; otherwise, the current color of the subtitle content is maintained. The second threshold is less than the first threshold. This application achieves adaptive adjustment of subtitle color through color space parameter comparison and dual threshold judgment. This solves the problem of insufficient distinguishability between subtitles and background, and avoids visual flicker caused by frequent switching, thus improving the subtitle viewing experience.

[0152] As can be seen from the above technical solutions, the display device and subtitle adjustment method provided in this application embodiment achieve adaptive adjustment of subtitle color through the acquisition of color space parameters of the subtitle display area and dual threshold judgment. First, the first color space parameters of the subtitle display area image and the second color space parameters of the subtitle are acquired. After calculating the first similarity between the two, based on the relationship between the similarity and the first and second thresholds, operations such as switching the target color, restoring the default color, or maintaining the current color are performed, while simultaneously incorporating a color gradient transition and a timed detection mechanism. The aforementioned display device and subtitle adjustment method do not require manual user intervention. They can improve the poor readability caused by insufficient differentiation between subtitles and background in dynamic images, avoid visual flicker from frequent switching through dual thresholds and a delay switching mechanism, and enhance the human eye adaptability of color judgment through the LAB color space, thereby optimizing the smoothness and comfort of subtitle viewing and improving the user experience.

[0153] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the discussion in some embodiments is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the contents of this disclosure, thereby enabling those skilled in the art to better utilize the embodiments.

Claims

1. A display device, characterized in that, include: The display is configured to display a user interface, the user interface including screen content and subtitle content displayed on top of the screen content; The controller is configured as follows: Based on the display area of ​​the subtitle content in the user interface, obtain the first color space parameter of the screen content corresponding to the display area, and obtain the second color space parameter of the subtitle content; Calculate the first similarity between the first color space parameters and the second color space parameters; In response to the first similarity being greater than or equal to a first threshold, the display is controlled to display the subtitle content according to a target color, wherein the target color is the color in the candidate color set whose color space parameters are least similar to the first color space parameters; In response to the first similarity being less than a second threshold, the display is controlled to show the subtitle content in a preset default color; The second threshold is less than the first threshold; In response to the first similarity being less than a first threshold and greater than or equal to a second threshold, the display is controlled to maintain the current color of the subtitle content.

2. The display device according to claim 1, characterized in that, The controller is configured to acquire the first color space parameters of the screen content corresponding to the display area, specifically as follows: Based on the coordinates and line spacing information of the display line corresponding to the subtitle content, the line area of ​​the display line is determined in the display area; Extract the first RGB value of the image content corresponding to the row region; Convert the first RGB value into a first standard color value; Convert the first standard color value to the first LAB value; The weighted average of the first LAB values ​​is calculated to obtain the first color space parameters.

3. The display device according to claim 2, characterized in that, The controller is configured to acquire the second color space parameters of the subtitle content. Extract the second RGB value of the subtitle content corresponding to the line region; Convert the second RGB value to the second standard color value; Convert the second standard color value to the second LAB value; The weighted average of the second LAB values ​​is calculated to obtain the second color space parameters.

4. The display device according to claim 3, characterized in that, The controller performs a calculation of the first similarity between the first color space parameters and the second color space parameters, specifically configured as follows: The similarity between the first color space parameter of the image content corresponding to the line region and the second color space parameter of the subtitle content corresponding to the line region is calculated to obtain the first similarity.

5. The display device according to claim 1, characterized in that, The controller is configured to control the display to show the subtitle content according to the target color. Read the candidate color set, which includes at least two different candidate colors; Obtain the third color space parameters of the candidate colors, wherein the third color space parameters and the first color space parameters are determined based on the same color space; Calculate the second similarity between the third color space parameters and the first color space parameters; The candidate color with the lowest second similarity in the candidate color set is determined as the target color; Set the color parameters of the subtitle content according to the color space parameters of the target color; Control the display to show the subtitle content according to the color parameters.

6. The display device according to claim 1, characterized in that, The controller is configured to control the display to show the subtitle content in a preset default color. Detect the current color of the subtitle content; In response to the current color not being the default color, the display time of the current color is detected; If the display time is less than a time threshold, when the display time of the current color reaches the time threshold, the display is controlled to display the subtitle content according to the default color.

7. The display device according to claim 1, characterized in that, In response to the first similarity being less than a first threshold and greater than or equal to a second threshold, the controller, after controlling the display to maintain the current color of the subtitle content, is further configured to: After a preset detection period, the first color space parameters of the screen content corresponding to the display area are reacquired, and the second color space parameters of the subtitle content are reacquired. The colors of the subtitle content are adjusted based on the similarity between the re-acquired first color space parameters and the second color space parameters.

8. The display device according to any one of claims 1-7, characterized in that, When controlling the display to show subtitle content in a target color or default color, the controller is also configured to: Transition data is generated based on the current color of the subtitle content and the color to be switched, wherein the color to be switched is the target color or the default color; The display is controlled to show the subtitle content according to the transition data; The transition data includes the color space parameters of the color to be switched, and at least one color increment from the current color to the color to be switched.

9. The display device according to claim 8, characterized in that, The controller is configured to control the display to show the subtitle content according to the transition data. The color parameters of the subtitle content are gradually set based on the transition data; Control the display to show the subtitle content according to the color parameters; In response to the color parameter being the parameter corresponding to the color to be switched, the display is controlled to maintain the color to be switched; After a preset detection period, the first color space parameters of the screen content corresponding to the display area are reacquired, and the second color space parameters of the subtitle content are reacquired. The colors of the subtitle content are adjusted based on the similarity between the re-acquired first color space parameters and the second color space parameters.

10. A method for adjusting subtitles, characterized in that, include: Based on the display area of ​​the subtitle content in the user interface, the first color space parameter of the screen content corresponding to the display area is obtained, and the second color space parameter of the subtitle content is obtained. Calculate the first similarity between the first color space parameters and the second color space parameters; In response to the first similarity being greater than or equal to a first threshold, the display is controlled to display the subtitle content according to the target color, wherein the target color is the color in the candidate color set whose color space parameters are least similar to the first color space parameters; In response to the first similarity being less than the second threshold, the display is controlled to show the subtitle content in a preset default color; The second threshold is less than the first threshold; In response to the first similarity being less than a first threshold and greater than or equal to a second threshold, the display is controlled to maintain the current color of the subtitle content.