CN119201306A - OSD interface color adaptive adjustment method, device, equipment and storage medium - Google Patents

OSD interface color adaptive adjustment method, device, equipment and storage medium Download PDF

Info

Publication number
CN119201306A
CN119201306A CN202410880353.9A CN202410880353A CN119201306A CN 119201306 A CN119201306 A CN 119201306A CN 202410880353 A CN202410880353 A CN 202410880353A CN 119201306 A CN119201306 A CN 119201306A
Authority
CN
China
Prior art keywords
color
osd interface
picture
color value
osd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410880353.9A
Other languages
Chinese (zh)
Inventor
李漫铁
冯长发
黄伟才
章鸿兴
徐泽民
黄进科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ledman Optoelectronic Co Ltd
Original Assignee
Ledman Optoelectronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ledman Optoelectronic Co Ltd filed Critical Ledman Optoelectronic Co Ltd
Priority to CN202410880353.9A priority Critical patent/CN119201306A/en
Publication of CN119201306A publication Critical patent/CN119201306A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/10Texturing; Colouring; Generation of textures or colours

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明公开了一种OSD界面颜色自适应调整方法、装置、设备及存储介质,涉及显示技术领域。所述方法包括响应于OSD界面显示指令,获取交互界面中的OSD界面显示区域;获取所述OSD界面显示区域内画面的颜色值,记为第一画面背景颜色值;根据所述第一画面背景颜色值调整所述OSD界面的颜色将颜色调整后的所述OSD界面显示于所述OSD界面显示区域中,并置于所述画面的上层。所述方法通过获取OSD界面显示区域内的画面颜色值以动态调整OSD界面的颜色,以确保OSD界面颜色即能区分于背景画面颜色又能与背景画面颜色相适应,实现了在各种背景画面下OSD界面的清晰显示和美观呈现,显著提升了用户的使用体验。

The present invention discloses an OSD interface color adaptive adjustment method, device, equipment and storage medium, and relates to the field of display technology. The method comprises: in response to an OSD interface display instruction, obtaining an OSD interface display area in an interactive interface; obtaining a color value of a picture in the OSD interface display area, recorded as a first picture background color value; adjusting the color of the OSD interface according to the first picture background color value, displaying the color-adjusted OSD interface in the OSD interface display area, and placing it on the upper layer of the picture. The method dynamically adjusts the color of the OSD interface by obtaining the picture color value in the OSD interface display area, so as to ensure that the OSD interface color can be distinguished from the background picture color and can adapt to the background picture color, thereby realizing a clear display and beautiful presentation of the OSD interface under various background pictures, and significantly improving the user experience.

Description

OSD interface color self-adaptive adjustment method, device, equipment and storage medium
Technical Field
The present invention relates to the field of display technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adaptively adjusting an OSD interface color.
Background
Devices such as televisions, conference sets, projectors and the like are often used for playing PPT, movies or video signals input through HDMI interfaces, colors of pictures displayed in interactive interfaces of the devices are changed widely, and OSD (On-SCREEN DISPLAY, on screen display) interfaces displayed in a floating manner On the pictures often cannot be seen clearly by users due to the change of the colors of the pictures, so that accuracy of user operation and use experience are affected. For example, when a user is watching a movie or exhibiting PPT, dynamic changes in pictures and diversity in colors may confuse the OSD interface with the background, thereby making the OSD interface difficult to recognize. To ensure that the user can clearly see the OSD interface at the top of the picture, some device manufacturers design the OSD interface to be non-transparent and very conspicuous in color. However, although this solution can improve the visibility of OSD interface, it often causes the interface design to lack aesthetic properties, so that the interface with non-transparent and special color appears too abrupt in many scenes, destroying the overall coordination of the picture and affecting the visual experience of the user and the aesthetic feeling of the overall product. Therefore, how to improve the aesthetic property and the user experience of the interface while ensuring the visibility of the OSD interface becomes a technical problem to be solved.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method, apparatus, device and storage medium for adaptively adjusting OSD interface color, so as to solve the problem in the prior art that OSD interface display is difficult to identify due to picture change.
In a first aspect, an embodiment of the present invention provides a method for adaptively adjusting an OSD interface color, where the method includes:
s1, responding to an OSD interface display instruction, acquiring an area for displaying the OSD interface in the interactive interface, and marking the area as an OSD interface display area;
S2, acquiring a color value of a picture in the OSD interface display area, and marking the color value as a first picture background color value;
S3, adjusting the color of the OSD interface according to the background color value of the first picture;
And S4, displaying the OSD interface after color adjustment in the OSD interface display area and placing the OSD interface in the upper layer of the picture.
Preferably, before adjusting the color of the OSD interface according to the first picture background color, the method further comprises:
and setting the transparency of the OSD interface according to a preset transparency value.
Preferably, after step S4, the method further comprises:
s5, after a preset time interval, acquiring a color value of a picture in the OSD interface display area, and marking the color value as a second picture background color value;
s6, judging whether the difference value between the second picture background color value and the first picture background color value is larger than or equal to a preset threshold value;
s7, if not, executing the step S5, and if yes, executing the step S8:
And S8, setting the first picture background color value to be equal to the second picture background color value, executing the steps S3 to S4, and then jumping to the step S5.
Preferably, the obtaining the color value of the picture in the OSD interface display area, recorded as the background color value of the first picture, includes:
acquiring RGB values of each pixel of a picture in the OSD interface display area;
and acquiring the first picture background color value according to the average value of the RGB values of each pixel.
Preferably, the obtaining the color value of the picture in the OSD interface display area, recorded as the background color value of the first picture, includes:
acquiring RGB values of all pixels of a picture in the OSD interface display area;
Carrying out quantization processing on RGB values of all pixels;
counting the quantized RGB values to generate a color histogram;
According to the color histogram, obtaining a color value with highest frequency, marking the color value as a dominant hue color value, and marking a color value with frequency inferior as a secondary hue color value;
And obtaining a weighted average color value according to the primary tone color value and the secondary tone color value, namely the first picture background color value.
Preferably, the adjusting the color of the OSD interface according to the first picture background color value includes:
acquiring an OSD interface color value according to the first picture background color value and a preset color correction value;
And setting the color of the OSD interface according to the color value of the OSD interface.
Preferably, the obtaining the color value of the OSD interface according to the first picture background color value and the preset color correction value further includes:
acquiring the illumination intensity of the current environment;
And determining one or more of color saturation, contrast and brightness of the OSD interface according to the illumination intensity.
In a second aspect, an embodiment of the present invention provides an OSD interface color adaptive adjustment device, including:
the region acquisition module is used for responding to the OSD interface display instruction, acquiring a region for displaying the OSD interface in the interactive interface, and marking the region as an OSD interface display region;
the color acquisition module is used for acquiring the color value of the picture in the OSD interface display area and recording the color value as a first picture background color value;
The adjusting module is used for adjusting the color of the OSD interface according to the first picture background color value;
And the display module is used for displaying the OSD interface after the color adjustment in the OSD interface display area and is arranged at the upper layer of the picture.
In a third aspect, an embodiment of the present invention provides an OSD interface color adaptation device, including at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect as in the above embodiments.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method as in the first aspect of the embodiments described above.
In summary, the beneficial effects of the invention are as follows:
The method, the device, the equipment and the storage medium for the self-adaptive adjustment of the OSD interface color comprise the steps of responding to an OSD interface display instruction, obtaining an OSD interface display area in an interactive interface, obtaining a color value of a picture in the OSD interface display area, recording the color value as a first picture background color value, adjusting the color of the OSD interface according to the first picture background color value, displaying the color-adjusted OSD interface in the OSD interface display area, and arranging the OSD interface in an upper layer of the picture. According to the method, the picture color value in the display area of the OSD interface is obtained to dynamically adjust the color of the OSD interface, so that the color of the OSD interface can be ensured to be different from the color of the background picture and can be adapted to the color of the background picture, the problem of the visibility of the OSD interface is solved, the clear display and the attractive presentation of the OSD interface under various background pictures are realized, and the use experience of a user is remarkably improved.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described, and it is within the scope of the present invention to obtain other drawings according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an OSD interface color adaptive adjustment method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of timing adjustment of colors for an OSD interface according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a specific flow of step S2 in fig. 1.
Fig. 4 is a schematic diagram of another specific flow of step S2 in fig. 1.
Fig. 5 is a schematic diagram of a specific flow of step S3 in fig. 1.
Fig. 6 is a schematic structural diagram of an OSD interface color adaptive adjustment device according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an OSD interface color adaptive adjustment device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises the element.
Example 1
The embodiment of the invention provides an OSD interface color self-adaptive adjustment method, which is suitable for equipment such as televisions, conference sets, projection equipment, display screens and the like, and the equipment displays video signals, picture signals and the like input into the equipment through a (man-machine) interaction interface.
Referring to fig. 1, the method for adaptively adjusting the OSD interface color specifically includes the following steps:
s1, responding to an OSD interface display instruction, acquiring an area for displaying the OSD interface in the interactive interface, and marking the area as an OSD interface display area;
S2, acquiring a color value of a picture in the OSD interface display area, and marking the color value as a first picture background color value;
S3, adjusting the color of the OSD interface according to the background color value of the first picture;
And S4, displaying the OSD interface after color adjustment in the OSD interface display area and placing the OSD interface in the upper layer of the picture.
Specifically, the OSD interface is generally used for displaying state information, setting options and other related information of the device, when the information needs to be acquired, an OSD interface display instruction is often sent to the device through a remote controller or a touch key in an interactive interface, when the device receives the OSD interface display instruction, a specific area where the OSD interface is to be displayed in the interactive interface is first determined and recorded as an OSD interface display area, a color value of a current picture in the OSD interface display area is acquired, an OSD interface color is set based on the color value of a picture background in the OSD interface display area, so that the OSD interface forms a sufficient contrast with a background picture color of a next layer thereof, the adjusted OSD interface is displayed in the OSD interface display area, and the adjusted OSD interface is ensured to be positioned on an upper layer of the current picture, so that a user can clearly see interface content when operating the OSD interface without interference of the background picture.
In one embodiment, before adjusting the color of the OSD interface according to the first picture background color, the method further includes:
s0, setting the transparency of the OSD interface according to a preset transparency value.
Specifically, in order to further improve the visual effect and adaptability of the OSD interface, the transparency of the OSD interface is first adjusted according to a preset transparency value before the color of the OSD interface is adjusted according to the background color of the first picture. The transparency is set to make the OSD interface not only have enough contrast to ensure visibility, but also to integrate with the background picture, thereby reducing interference to the overall visual effect. By setting a proper transparency value, the OSD interface can avoid being too abrupt on the premise of ensuring clear identification of the user, and the visual experience and operation feeling of the user are improved. The preset transparency value can be determined according to user preference or actual application scene, and the operating system of the device adjusts the transparency of the OSD interface according to the preset transparency value to achieve the required transparency effect.
Referring to fig. 2, in one embodiment, the method further comprises:
s5, after a preset time interval, acquiring a color value of a picture in the OSD interface display area, and marking the color value as a second picture background color value;
s6, judging whether the difference value between the second picture background color value and the first picture background color value is larger than or equal to a preset threshold value;
s7, if not, executing the step S5, and if yes, executing the step S8:
And S8, setting the first picture background color value to be equal to the second picture background color value, executing the steps S3 to S4, and then jumping to the step S5.
Specifically, when the OSD interface is displayed for a long time, or when the OSD interface (such as a side bar of a conference machine or an OSD interface such as an electronic compass) is required to be suspended on the upper layer of the picture in the process of playing the picture, the color value of the picture in the OSD interface display area is obtained again at a preset time interval (for example, every second or every 5 seconds) in the process of displaying the OSD interface, and the new color value is recorded as the second picture background color value. Judging whether the difference value of the second picture background color value and the first picture background color value is larger than or equal to a preset threshold value, if the difference value is smaller than the preset threshold value, indicating that the color change of the background picture is not obvious, the OSD interface color does not need to be readjusted, if the difference value is larger, meaning that the color of the background picture is obviously changed, setting the first picture background color value to be equal to the second picture background color value at the moment, then adjusting the color value of the OSD interface according to the first picture background color value, refreshing the interactive interface, and refreshing the OSD interface to dynamically adjust the color of the OSD interface according to the picture color change.
Referring to fig. 3, in one embodiment, the obtaining the color value of the picture in the OSD interface display area, denoted as the first picture background color value, includes:
S21, obtaining RGB values of each pixel of a picture in the OSD interface display area;
s22, obtaining the first picture background color value according to the average value of the RGB values of each pixel.
Specifically, to accurately acquire the background color value of the first picture, the RGB value of each pixel of the current picture in the region is first acquired. Specifically, by scanning all pixels of the current picture in the OSD interface display area, the values of three color components of red (R), green (G), and blue (B) for each pixel are extracted. Then, the RGB values of these pixels are counted and calculated to obtain an average value of the RGB values of all the pixels. The average value represents the overall color characteristics of the picture in the display area of the OSD interface, and in this way, the color condition of the picture in the display area of the OSD interface can be accurately reflected, so that a reliable data base is provided for the subsequent adjustment of the color of the OSD interface.
In one embodiment, the weighted average calculation can be further performed on the RGB values of each pixel according to the importance of different positions in the OSD interface display area (for example, the weights of the user's line of sight concentrated area and the edge area are different), so as to more accurately reflect the color characteristics of the user's actual attention area to improve the accuracy of OSD interface color adjustment.
Referring to fig. 4, in an embodiment, the color distribution of the picture in the OSD interface display area may be further analyzed, and the primary color and secondary color of the background color are identified by counting the distribution and proportion of the primary color of the picture in the area, and the OSD interface color is adjusted by combining these information, so as to ensure that the OSD interface can maintain good contrast and visual effect under various background conditions. The method comprises the following specific steps:
s23, obtaining RGB values of all pixels of a picture in the OSD interface display area;
s24, carrying out quantization processing on RGB values of all pixels;
for example, 256 levels of RGB values may be compressed to 16 or 32 levels by dividing the continuous color values into discrete intervals, making color analysis more efficient;
s25, counting the quantized RGB values to generate a color histogram;
The color histogram represents the number of pixels of different colors (RGB values) in the OSD interface display area and the distribution condition thereof, and each color value corresponds to a count and represents the frequency of the color in the OSD interface display area;
s26, obtaining a color value with highest frequency according to the color histogram, marking the color value as a dominant hue color value, and marking a color value with frequency as a minor hue color value;
in other embodiments, the primary and secondary hues may also be distinguished by setting a preset threshold, such as a primary hue if the frequency of color occurrence exceeds the threshold.
S27, obtaining a weighted average color value according to the dominant hue color value and the minor hue color value, namely the first picture background color value:
and determining corresponding weighted values according to the frequency proportion of occurrence of the primary tone and the secondary tone so as to determine weighted average color values of the primary tone and the secondary tone, wherein the weighted average color values are the first picture background color values.
Referring to fig. 5, in one embodiment, the adjusting the color of the OSD interface according to the first picture background color value includes:
s31, acquiring an OSD interface color value according to the first picture background color value and a preset color correction value;
s32, setting the color of the OSD interface according to the color value of the OSD interface.
Specifically, the preset color correction value is used for ensuring that the color of the OSD interface and the background color form enough contrast, so that the OSD interface is more clearly visible when displayed. The calculation formula for calculating the OSD interface color value according to the first picture background color value and the preset color correction value is as follows:
OSD interface color value=first picture background color value±preset color correction value;
the preset color correction value can be adjusted according to actual conditions or user preferences and the like so as to adapt to different background pictures.
Further, one or more of color saturation, contrast, and brightness of the OSD interface is determined according to the illumination intensity of the current environment, and illustratively, when the illumination intensity is acquired to be 900lux, the color saturation is moderately increased (for example, 20% is increased), the color is made more vivid, the contrast is enhanced (for example, 30% is increased), the visibility in a high-light environment is ensured, the brightness is reduced (for example, 10% is reduced), and visual fatigue caused by excessive brightness is avoided. The adjusted color value and the attributes (saturation, contrast and brightness) of the OSD interface are applied to the OSD interface, so that the OSD interface is always clearly visible and has good visual effect under the current illumination condition.
In summary, the method for adaptively adjusting the color of the OSD interface according to the embodiment of the present invention includes obtaining an OSD interface display area in an interactive interface in response to an OSD interface display instruction, obtaining a color value of a picture in the OSD interface display area, and marking the color value as a first picture background color value, adjusting the color of the OSD interface according to the first picture background color value, displaying the color-adjusted OSD interface in the OSD interface display area, and placing the OSD interface in an upper layer of the picture. According to the method, the picture color value in the display area of the OSD interface is obtained to dynamically adjust the color of the OSD interface, so that the color of the OSD interface can be distinguished from the background picture color and can be adapted to the background picture color, the problem of visibility of the OSD interface is solved, the defect of attractive appearance caused by using an OSD interface which is not transparent and has special color is avoided, clear display and attractive appearance of the OSD interface under various background pictures are realized, and the use experience of a user is remarkably improved. Whether the user watches a film, displays the PPT or performs other operations, the OSD interface can automatically adapt to the background picture change, better visual effect is provided, and the accuracy and the overall experience of the user operation are improved.
Example two
Referring to fig. 6, an embodiment of the present invention provides an OSD interface color adaptive adjustment device 200, wherein the device 200 includes:
the region acquiring module 201 is configured to acquire a region for displaying an OSD interface in the interactive interface in response to the OSD interface display instruction, and record the acquired region as an OSD interface display region;
The color acquisition module 202 is configured to acquire a color value of a picture in the OSD interface display area, and record the color value as a first picture background color value;
an adjustment module 203, configured to adjust the color of the OSD interface according to the first picture background color value;
And the display module 204 is configured to display the OSD interface after color adjustment in the OSD interface display area, and set at an upper layer of the picture.
Preferably, the apparatus 200 further comprises:
and the transparency setting module is used for setting the transparency of the OSD interface according to a preset transparency value.
Preferably, the apparatus 200 further comprises:
The timing module is used for acquiring the color value of the picture in the OSD interface display area after a preset time interval and marking the color value as a second picture background color value;
The judging module is used for judging whether the difference value between the second picture background color value and the first picture background color value is larger than or equal to a preset threshold value;
The execution module is used for executing the step of the timing module if not, and executing the step of the setting module if yes:
and the setting module is used for setting the first picture background color value to be equal to the second picture background color value, executing the step of color adjustment to the step of the display module, and then jumping to the step of the timing module.
Preferably, the color acquisition module 202 includes:
The first RGB value acquisition unit is used for acquiring RGB values of each pixel of a picture in the OSD interface display area;
And the first average value acquisition unit is used for acquiring the first picture background color value according to the average value of the RGB values of each pixel.
Preferably, the color acquisition module 202 includes:
The second RGB value acquisition unit is used for acquiring RGB values of all pixels of a picture in the OSD interface display area;
a quantization unit for performing quantization processing on RGB values of all pixels;
The histogram generation unit is used for counting the quantized RGB values and generating a color histogram;
The dividing unit is used for acquiring a color value with highest frequency according to the color histogram, marking the color value as a dominant hue color value and marking a color value with frequency inferior to the dominant hue color value as a secondary hue color value;
And the second average value acquisition unit is used for acquiring a weighted average color value according to the primary tone color value and the secondary tone color value, namely the first picture background color value.
Preferably, the adjustment module 203 includes:
The correction unit is used for acquiring an OSD interface color value according to the first picture background color value and a preset color correction value;
And the interface color setting unit is used for setting the color of the OSD interface according to the OSD interface color value.
Preferably, the correction unit further includes:
The illumination intensity acquisition unit is used for acquiring the illumination intensity of the current environment;
And the determining unit is used for determining one or more of color saturation, contrast and brightness of the OSD interface according to the illumination intensity.
In summary, the OSD interface color adaptive adjustment device provided by the embodiment of the present invention includes obtaining an OSD interface display area in an interactive interface in response to an OSD interface display instruction, obtaining a color value of a picture in the OSD interface display area, marking the color value as a first picture background color value, adjusting the color of the OSD interface according to the first picture background color value, displaying the color-adjusted OSD interface in the OSD interface display area, and placing the OSD interface in an upper layer of the picture. According to the method, the picture color value in the display area of the OSD interface is obtained to dynamically adjust the color of the OSD interface, so that the color of the OSD interface can be distinguished from the background picture color and can be adapted to the background picture color, the problem of visibility of the OSD interface is solved, the defect of attractive appearance caused by using an OSD interface which is not transparent and has special color is avoided, clear display and attractive appearance of the OSD interface under various background pictures are realized, and the use experience of a user is remarkably improved. Whether the user watches a film, displays the PPT or performs other operations, the OSD interface can automatically adapt to the background picture change, better visual effect is provided, and the accuracy and the overall experience of the user operation are improved.
Example III
In addition, the OSD interface color self-adaptive adjustment method of the embodiment of the invention can be realized by OSD interface color self-adaptive adjustment equipment. Fig. 7 is a schematic hardware structure of an OSD interface color adaptive adjustment device according to an embodiment of the present invention.
The OSD interface color adaptation device may comprise a processor 301 and a memory 302 storing computer program instructions.
In particular, the processor 301 may include a Central Processing Unit (CPU), or an Application SPECIFIC INTEGRATED Circuit (ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present invention.
Memory 302 may include mass storage for data or instructions. By way of example, and not limitation, memory 302 may comprise a hard disk drive (HARD DISK DRIVE, HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) drive, or a combination of two or more of the foregoing. Memory 302 may include removable or non-removable (or fixed) media, where appropriate. Memory 302 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 302 is a non-volatile solid-state memory. In particular embodiments, memory 302 includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the OSD interface color adaptation method of the above embodiments.
In one example, the OSD interface color adaptation device may further include a communication interface 303 and a bus 310. As shown in fig. 7, the processor 301, the memory 302, and the communication interface 303 are connected to each other by a bus 310 and perform communication with each other.
The communication interface 303 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
Bus 310 includes hardware, software, or both that couple the components of the OSD interface color-adaptive adjustment device to each other. By way of example, and not limitation, bus 310 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 310 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
Example IV
In addition, in combination with the OSD interface color adaptive adjustment method in the above embodiment, the embodiment of the present invention may be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions which when executed by the processor 301 implement any of the OSD interface color adaptation methods of the above embodiments.
In summary, the method, the device, the equipment and the storage medium for adaptively adjusting the color of the OSD interface provided by the embodiment of the invention comprise the steps of responding to an OSD interface display instruction, acquiring an OSD interface display area in an interactive interface, acquiring a color value of a picture in the OSD interface display area, marking the color value as a first picture background color value, adjusting the color of the OSD interface according to the first picture background color value, displaying the color-adjusted OSD interface in the OSD interface display area, and arranging the OSD interface in an upper layer of the picture. According to the method, the picture color value in the display area of the OSD interface is obtained to dynamically adjust the color of the OSD interface, so that the color of the OSD interface can be distinguished from the background picture color and can be adapted to the background picture color, the problem of visibility of the OSD interface is solved, the defect of attractive appearance caused by using an OSD interface which is not transparent and has special color is avoided, clear display and attractive appearance of the OSD interface under various background pictures are realized, and the use experience of a user is remarkably improved. Whether the user watches a film, displays the PPT or performs other operations, the OSD interface can automatically adapt to the background picture change, better visual effect is provided, and the accuracy and the overall experience of the user operation are improved.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. The method processes of the present invention are not limited to the specific steps described and shown, but various changes, modifications and additions, or the order between steps may be made by those skilled in the art after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. The present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (10)

1. An OSD interface color adaptive adjustment method, wherein the method includes:
s1, responding to an OSD interface display instruction, acquiring an area for displaying the OSD interface in the interactive interface, and marking the area as an OSD interface display area;
S2, acquiring a color value of a picture in the OSD interface display area, and marking the color value as a first picture background color value;
S3, adjusting the color of the OSD interface according to the background color value of the first picture;
And S4, displaying the OSD interface after color adjustment in the OSD interface display area and placing the OSD interface in the upper layer of the picture.
2. The OSD interface color adaptive adjustment method of claim 1, further comprising, prior to adjusting the color of the OSD interface according to the first picture background color:
and setting the transparency of the OSD interface according to a preset transparency value.
3. The method for adaptively adjusting the color of an OSD interface according to claim 1, further comprising, after step S4:
s5, after a preset time interval, acquiring a color value of a picture in the OSD interface display area, and marking the color value as a second picture background color value;
s6, judging whether the difference value between the second picture background color value and the first picture background color value is larger than or equal to a preset threshold value;
s7, if not, executing the step S5, and if yes, executing the step S8:
And S8, setting the first picture background color value to be equal to the second picture background color value, executing the steps S3 to S4, and then jumping to the step S5.
4. The method for adaptively adjusting the color of an OSD interface according to any one of claims 1 to 3, wherein said obtaining the color value of the picture in the OSD interface display area, denoted as the first picture background color value, includes:
acquiring RGB values of each pixel of a picture in the OSD interface display area;
and acquiring the first picture background color value according to the average value of the RGB values of each pixel.
5. The method for adaptively adjusting the color of an OSD interface according to any one of claims 1 to 3, wherein said obtaining the color value of the picture in the OSD interface display area, denoted as the first picture background color value, includes:
acquiring RGB values of all pixels of a picture in the OSD interface display area;
Carrying out quantization processing on RGB values of all pixels;
counting the quantized RGB values to generate a color histogram;
According to the color histogram, obtaining a color value with highest frequency, marking the color value as a dominant hue color value, and marking a color value with frequency inferior as a secondary hue color value;
And obtaining a weighted average color value according to the primary tone color value and the secondary tone color value, namely the first picture background color value.
6. The method for adaptively adjusting the color of an OSD interface according to any one of claims 1-3, wherein said adjusting the color of said OSD interface according to said first picture background color value comprises:
acquiring an OSD interface color value according to the first picture background color value and a preset color correction value;
And setting the color of the OSD interface according to the color value of the OSD interface.
7. The method for adaptively adjusting the color of an OSD interface according to claim 6, wherein said obtaining the color value of said OSD interface according to said first picture background color value and a preset color correction value further comprises:
acquiring the illumination intensity of the current environment;
And determining one or more of color saturation, contrast and brightness of the OSD interface according to the illumination intensity.
8. An OSD interface color adaptive adjustment device, said device comprising:
the region acquisition module is used for responding to the OSD interface display instruction, acquiring a region for displaying the OSD interface in the interactive interface, and marking the region as an OSD interface display region;
the color acquisition module is used for acquiring the color value of the picture in the OSD interface display area and recording the color value as a first picture background color value;
The adjusting module is used for adjusting the color of the OSD interface according to the first picture background color value;
And the display module is used for displaying the OSD interface after the color adjustment in the OSD interface display area and is arranged at the upper layer of the picture.
9. An OSD interface color adaptation device comprising at least one processor, at least one memory and computer program instructions stored in the memory, which when executed by the processor, implement the method according to any of claims 1-7.
10. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-7.
CN202410880353.9A 2024-07-02 2024-07-02 OSD interface color adaptive adjustment method, device, equipment and storage medium Pending CN119201306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410880353.9A CN119201306A (en) 2024-07-02 2024-07-02 OSD interface color adaptive adjustment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410880353.9A CN119201306A (en) 2024-07-02 2024-07-02 OSD interface color adaptive adjustment method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN119201306A true CN119201306A (en) 2024-12-27

Family

ID=94062206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410880353.9A Pending CN119201306A (en) 2024-07-02 2024-07-02 OSD interface color adaptive adjustment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN119201306A (en)

Similar Documents

Publication Publication Date Title
CN104240674B (en) A kind of method regulating display unit and a kind of electronic equipment
US8558772B2 (en) Image display apparatus
CN103167293B (en) Display system
KR101612979B1 (en) Method for adjusting image quality and a display apparatus thereof
CN105979370B (en) A method and apparatus for configuring an image mode
US11128909B2 (en) Image processing method and device therefor
US10362283B2 (en) Virtual cinema and implementation method thereof
KR102349384B1 (en) Transparent display apparatus, method for controlling the same and computer-readable recording medium
CN113727166B (en) Advertisement display method and device
US20140139561A1 (en) Display Processing Method Display Processing Device and Display
CN105979400A (en) Screen brightness adjusting method, device and terminal
KR101985880B1 (en) Display device and control method thereof
CN111819618B (en) Pixel contrast control system and method
CN107786864A (en) Television image display methods, equipment and readable storage medium storing program for executing
US20100302445A1 (en) Information display device, information display method, and information display program product
CN112262427A (en) Smear evaluation method, smear improvement method, and electronic device
CN107820069A (en) A kind of video monitoring equipment ISP adjustment methods
JP2013537644A (en) Character display method and apparatus
JP6190482B1 (en) Display control device, display device, television receiver, display control device control method, control program, and recording medium
US20080297531A1 (en) Color gamut component analysis apparatus, method of analyzing color gamut component, and color gamut component analysis program
CN108886609A (en) Display device, television receiver, display method, control program, and recording medium
CN108600719B (en) Projection device and method for sensing ambient light brightness in real time
US20150255044A1 (en) Contour line width setting device, contour gradation number setting device, contour line width setting method, and contour gradation number setting method
US10536663B2 (en) Video display device, television receiver, transmitting device, control program, and recording medium
CN119201306A (en) OSD interface color adaptive adjustment method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination