Image quality adjustment method and device, electronic device, computer readable storage medium

By acquiring image information and adjusting display parameters when switching video data formats, the problem of poor display effects of electronic devices has been solved, resulting in better video image display effects and device intelligence.

CN115586877BActive Publication Date: 2026-04-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2021-07-06
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Different video formats display poorly on electronic devices, mainly because the electronic devices are not adapted to the display parameters of the video images.

Method used

When a video data format change is detected, the image information corresponding to the changed video data is obtained, and the display parameters of the electronic device are determined and adjusted based on the image information to adapt to the video data format.

Benefits of technology

It improves the display effect of video images, enhances the intelligence of electronic devices, and reduces the need for manual adjustments by users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115586877B_ABST
    Figure CN115586877B_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the field of image technology, and disclose a picture quality adjustment method and device, an electronic device and a computer readable storage medium. The method can be applied to an electronic device, and includes: when it is detected that the format of to-be-played video data is switched, if the video data after the switching is in a first format, acquiring image information corresponding to the video data after the switching; and determining a corresponding first display parameter according to the image information, and adjusting the display parameter of the electronic device to the first display parameter. The picture quality adjustment method disclosed in the embodiments of the present application can improve the display effect of a video image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of imaging technology, specifically to an image quality adjustment method and apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] With the rapid development of imaging technology, video images have evolved into various formats, such as High Dynamic Range (HDR) and Standard Dynamic Range (SDR). Different video image formats are widely used in various application scenarios.

[0003] In practice, it has been found that different video image formats are adapted to different display parameters. Therefore, if electronic devices use display parameters that are not compatible with video images, the video images will be displayed poorly on the electronic devices. Summary of the Invention

[0004] This application discloses a method and apparatus for adjusting image quality, an electronic device, and a computer-readable storage medium, which can improve the display effect of video images.

[0005] The first aspect of this application discloses an image quality adjustment method applied to an electronic device, the method comprising:

[0006] When a change in the format of the video data to be played is detected, if the changed video data is in the first format, the image information corresponding to the changed video data is obtained.

[0007] The corresponding first display parameter is determined based on the image information, and the display parameter of the electronic device is adjusted to the first display parameter.

[0008] A second aspect of this application discloses an image quality adjustment device applied to an electronic device, the image quality adjustment device comprising:

[0009] The acquisition unit is used to acquire the image information corresponding to the switched video data when the format of the video data to be played is detected to have changed. If the switched video data is in the first format, the acquisition unit is used to acquire the image information corresponding to the switched video data.

[0010] The adjustment unit is used to determine the corresponding first display parameter based on the image information and adjust the display parameter of the electronic device to the first display parameter.

[0011] The third aspect of this application discloses an electronic device, including:

[0012] Memory containing executable program code;

[0013] A processor coupled to the memory;

[0014] The processor calls the executable program code stored in the memory to execute the image quality adjustment method disclosed in the first aspect of the embodiments of this application.

[0015] A fourth aspect of this application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the image quality adjustment method disclosed in the first aspect of this application.

[0016] The fifth aspect of this application discloses a computer program product that, when run on a computer, causes the computer to perform some or all of the steps of any one of the methods of the first aspect of this application.

[0017] The sixth aspect of this application discloses an application publishing platform for publishing computer program products, wherein when the computer program products are run on a computer, the computer performs some or all of the steps of any one of the methods of the first aspect of this application.

[0018] Compared with related technologies, the embodiments of this application have the following beneficial effects:

[0019] By implementing the embodiments of this application, when the electronic device detects that the format of the video data to be played has changed and the changed video data is in the first format, it can obtain the image information corresponding to the changed video signal. Then, the electronic device can determine the first display parameters suitable for the video data based on the image information and adjust the display parameters of the electronic device to the first display parameters so that the display parameters of the electronic device are more suitable for the video data, thereby improving the display effect of the video image corresponding to the changed video data. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart illustrating an image quality adjustment method disclosed in an embodiment of this application;

[0022] Figure 2 This is a flowchart illustrating another image quality adjustment method disclosed in an embodiment of this application;

[0023] Figure 3This is a flowchart illustrating another image quality adjustment method disclosed in the embodiments of this application;

[0024] Figure 4 This is a schematic diagram of the structure of an image quality adjustment device disclosed in an embodiment of this application;

[0025] Figure 5 This is a schematic diagram of another image quality adjustment device disclosed in the embodiments of this application;

[0026] Figure 6 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0028] It should be noted that the terms "first," "second," "third," and "fourth," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order. The terms "comprising" and "having," and any variations thereof, in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.

[0029] This application discloses a method and apparatus for adjusting image quality, an electronic device, and a computer-readable storage medium, which can improve the display effect of video images.

[0030] The technical solution of this application will be described in detail below with reference to specific embodiments.

[0031] To more clearly illustrate the image quality adjustment method, apparatus, electronic device, and computer-readable storage medium disclosed in the embodiments of this application, an application scenario suitable for this image quality adjustment method is first introduced. Optionally, this image quality adjustment method can be applied to various electronic devices, such as televisions, monitors, mobile phones, tablets, or wearable devices, etc., and is not limited thereto.

[0032] In practice, it has been found that with the rapid development of imaging technology, video data has evolved into various formats, such as High Dynamic Range (HDR) and Standard Dynamic Range (SDR). Electronic devices typically use the same image mode to display different video data formats. Taking HDR and SDR video data as examples, because their color gamuts and contrast ratios differ, using display parameters corresponding to SDR video data to play HDR video data will result in poor display quality of the HDR video images on electronic devices.

[0033] The image quality adjustment method disclosed in this application can acquire image information corresponding to the switched video signal when a format change in the video data to be played is detected. Then, based on the image information, a first display parameter suitable for the video data is determined, and the display parameters of the electronic device are adjusted to the first display parameter to improve the display effect of the video image included in the video data. Furthermore, the electronic device can automatically execute the above-mentioned image quality adjustment method when a format change in the video data is detected, eliminating the need for manual adjustment by the user and improving the intelligence level of the electronic device.

[0034] Please see Figure 1 , Figure 1 This is a flowchart illustrating an image quality adjustment method disclosed in an embodiment of this application. This image quality adjustment method can be applied to electronic devices, such as televisions, monitors, mobile phones, tablets, or wearable devices, and is not limited thereto. The image quality adjustment method may include the following steps:

[0035] 102. When a change in the format of the video data to be played is detected, if the changed video data is in the first format, the image information corresponding to the changed video data is obtained.

[0036] In this embodiment, the video data to be played refers to a sequence of multiple consecutive images compressed into a certain format. Optionally, the video data may be captured by an electronic device through an imaging device (e.g., a camera), or it may be obtained by the electronic device from the Internet or other electronic devices; this is not limited here.

[0037] In this embodiment of the application, the electronic device can detect in real time whether the format of the video data to be played has changed. If the driver layer detects that the format of the video data to be played has changed, the driver layer can send format change information (which may include the format of the changed video data) to the processor. Then, when the processor receives the format change information, it can determine that the format of the video data to be played has changed.

[0038] In this embodiment, the format of video data refers to the image format of the video images included in the video data, such as HDR format, SDR format, etc., and is not limited thereto. It is understood that video data files of different formats are usually distinguished by different identification information (e.g., file extension, encoding information), so each format of video data usually corresponds to one type of identification information. Optionally, if the electronic device detects a change in the identification information corresponding to the video data to be played, it can determine that the format of the video data to be played has changed. For example, the file extension of HDR format video data is ".hdr", and the file extension of SDR format video data is ".sdr". Therefore, when the electronic device detects that the file extension of the video data to be played has changed from ".hdr" to ".sdr", or from ".sdr" to ".hdr", the electronic device can determine that the format of the video data to be played has changed.

[0039] In practice, it has been found that certain video data formats (e.g., HDR video data, which will be used as an example below and should not be construed as limiting the embodiments of this application) can record a large range of color gamut and contrast, thus the range of colors and brightness that the video images in HDR video data can present is also large. Therefore, setting only one set of display parameters for HDR video data is clearly insufficient.

[0040] Therefore, if the first format is a video format that can record a large color gamut and contrast range, when the electronic device detects that the switched video data is in the first format, it can obtain the image information corresponding to the video data in the first format. Then, the electronic device can determine the brightness range, contrast range, etc. that the video image included in the video data in the first format can present based on the image information, and then determine the display parameters suitable for the video data in the first format based on the brightness range and / or contrast range.

[0041] 104. Determine the corresponding first display parameter based on the image information, and adjust the display parameters of the electronic device to the first display parameter.

[0042] In practice, it has been found that HDR images can record a wider color gamut and contrast range than SDR images, thus displaying more colors and image details. This results in different requirements for the display parameters of electronic devices compared to SDR video data. These display parameters may include one or more of brightness, contrast, color gamut, resolution, and refresh rate, without being limited here. It is understood that the video images contained in the video data are ultimately displayed on the screen of the electronic device, so the settings of the electronic device's display parameters will affect the display effect of the video images. When the electronic device detects a change in the format of the video data to be played, it can adjust its display parameters according to the changed video data format.

[0043] In one embodiment, the electronic device can determine a first display parameter applicable to the video data based on the image information corresponding to the video data. Optionally, the image information corresponding to the video data may include various information used to describe image features, including but not limited to one or more of image brightness information, image color information, and image resolution information, which are not limited herein.

[0044] In another embodiment, the electronic device can pre-set multiple sets of second display parameters. The electronic device can then determine the corresponding first display parameter from these second sets of parameters based on image information, thereby improving the speed of determining the first display parameter and thus increasing the efficiency of the image quality adjustment method. In yet another embodiment, the electronic device can determine the corresponding first display parameter in real time based on image information. The first display parameter determined in real time by the electronic device has a higher compatibility with the switched video data, thereby improving the display effect of the video data on the electronic device.

[0045] By implementing the methods disclosed in the above embodiments, when a change in the format of the video data to be played is detected, and the changed video data is in the first format, image information corresponding to the changed video signal can be obtained. Then, the electronic device can determine the first display parameters suitable for the video data based on the image information, and adjust the display parameters of the electronic device to the first display parameters so that the display parameters of the electronic device are more suitable for the video data, thereby improving the display effect of the video image corresponding to the changed video data.

[0046] Please see Figure 2 , Figure 2 This is a flowchart illustrating another image quality adjustment method disclosed in an embodiment of this application. This image quality adjustment method can be applied to electronic devices, such as televisions, monitors, mobile phones, tablets, or wearable devices, and is not limited thereto. The image quality adjustment method may include the following steps:

[0047] 202. Based on the device parameters of the electronic device, determine multiple sets of second display parameters, each set of second display parameters corresponding to a different brightness range.

[0048] In practice, it has been found that the adjustment range of display parameters differs among different electronic devices. For example, the adjustment range of display parameters differs between electronic devices with strong image processing capabilities (e.g., televisions, desktop computers) and those with weaker image processing capabilities (e.g., smartwatches, in-vehicle screens). Furthermore, the adjustment range of display parameters differs between electronic devices with different types of built-in displays; for example, the adjustment range of display parameters differs between OLED (Organic Light-Emitting Diode) displays and LCD (Liquid Crystal Display) displays.

[0049] Optionally, the electronic device can determine multiple sets of second display parameters based on its device parameters (including but not limited to: type information of the electronic device, type information of the display screen of the electronic device, processor information of the electronic device, etc., which are not limited here), so that the determined display parameters are more in line with the function of the electronic device, thereby enabling the video images included in the video data to present a better display effect on the electronic device.

[0050] In one embodiment, the electronic device can determine multiple sets of second display parameters based on the type information of the display screen built into the electronic device.

[0051] Optionally, the electronic device can determine the type of its display screen (e.g., OLED, LCD, etc., without limitation) based on its device parameters. Since it has been found in practice that different types of displays have different adjustment ranges for their display parameters—for example, the contrast adjustment range of an OLED screen is larger than that of an LCD screen—to ensure that the subsequently adjusted display parameters maximize the performance of the display screen used in the electronic device, the electronic device can determine the adjustment range of the display parameters based on the display screen type information. Furthermore, within the determined adjustment range of the display parameters, the electronic device can determine multiple sets of second display parameters.

[0052] By implementing the above method, display parameters that can maximize the performance of the display screen used by the electronic device can be determined based on the type information of the electronic device's display screen, thereby improving the display effect of video images on the display screen.

[0053] In another embodiment, the sets of second display parameters determined by the electronic device can be positively correlated (e.g., proportional) with the average value of the corresponding brightness range, so that when the video data is bright, the electronic device increases the display brightness of the image corresponding to the video data on the display screen; conversely, when the video data is dark, it reduces the display brightness of the image corresponding to the video data on the display screen, so that the display effect is more in line with the effect that the video data wants to express.

[0054] In this embodiment, multiple sets of second display parameters can each correspond to different image parameter ranges. Optionally, multiple sets of second display parameters can each correspond to different brightness ranges, or multiple sets of second display parameters can each correspond to different contrast ranges; this is not limited here. For example, suppose the electronic device can be set with three sets of display parameters, where the first set of display parameters corresponds to a brightness range greater than 400 nits, the second set of display parameters corresponds to a brightness range of 200 nits to 400 nits, and the third set of display parameters corresponds to a brightness range less than 200 nits. In this way, the electronic device can subsequently determine suitable display parameters for the video data based on the brightness range corresponding to the video data.

[0055] 204. When a change in the format of the video data to be played is detected, if the changed video data is in the first format, the image information corresponding to the changed video data is obtained, including image brightness information.

[0056] In this embodiment, considering that the brightness information of the video image included in the video data has a significant impact on the viewing experience, the electronic device can optionally obtain the image brightness information corresponding to the switched video data when it detects a format change in the video data to be played.

[0057] Optionally, the image brightness information corresponding to the video data may include the target average brightness of the video image with the highest average brightness (i.e., the average brightness of the pixels included in the video image) among the multiple video frames included in the video data. It can be understood that the target average brightness represents the upper limit of brightness that the video data can display. Therefore, as long as the subsequently adjusted display parameters can meet the target average brightness, the adjusted display parameters will be compatible with the video data. It is evident that using the target average brightness corresponding to the video image with the highest average brightness in the video data as an adjustment standard to adjust the display parameters of the electronic device can improve the compatibility between the adjusted display parameters and the video data, thereby improving the display effect of the video image corresponding to the video data.

[0058] 206. Determine the target brightness range to which the image brightness information included in the image information belongs.

[0059] As described above, the image brightness information can include the target average brightness corresponding to the video image with the highest average brightness among the multiple video images included in the video data. Optionally, the electronic device can decode multiple video images from the video data, calculate the average brightness of each video image, and then determine the highest average brightness among the average brightness corresponding to each video image as the image brightness information corresponding to the switched video data.

[0060] Therefore, the electronic device can determine the target brightness range to which the image brightness information belongs from the brightness ranges corresponding to the multiple sets of second display parameters. For example, if the image brightness information corresponding to the switched video data is 300 nits, then the image brightness information corresponding to the switched video data falls within the brightness range corresponding to the aforementioned second set of display parameters.

[0061] 208. From multiple sets of second display parameters, determine the second display parameter corresponding to the target brightness range as the first display parameter corresponding to the image information, and adjust the display parameters of the electronic device to the first display parameter.

[0062] In this embodiment of the application, after determining the target brightness range, the electronic device can determine the second display parameter corresponding to the target brightness range from multiple sets of second display parameters as the first display parameter corresponding to the image information.

[0063] In one embodiment, the electronic device can first determine whether it stores a first display parameter corresponding to the target brightness range. If it stores a first display parameter corresponding to the target brightness range, it directly determines the first display parameter from the display parameters stored in the electronic device. If it does not store a first display parameter corresponding to the target brightness range, the electronic device can determine the corresponding first display parameter in real time based on the image brightness information corresponding to the switched video data. This ensures that the display parameters of the electronic device can be adjusted to adapt to the first display parameter of the switched video data, thereby ensuring the display effect of the video image included in the video data.

[0064] In practice, it has been found that when an electronic device plays video data, the surrounding environment also affects the display effect of the corresponding video image on the electronic device. Optionally, after determining the corresponding first display parameters based on the image information, the electronic device can acquire environmental information around the electronic device in real time, including but not limited to: ambient brightness information, ambient temperature information, and ambient humidity information; then, the electronic device can adjust the first display parameters according to the environmental information around the electronic device to obtain the adjusted first display parameters.

[0065] By implementing the above method, the electronic device can adjust the determined first display parameters based on the environmental information around the electronic device, so that the adjusted first display parameters are more in line with the environment around the electronic device, thereby reducing the impact of the environment around the electronic device on the display effect of video images on the electronic device.

[0066] In one embodiment, the electronic device can acquire ambient brightness information included in the environmental information, and then the electronic device can determine the brightness difference between the ambient brightness information around the electronic device and the ambient brightness threshold (the ambient brightness threshold can be the optimal ambient brightness when the user views the display screen of the electronic device, and the specific value can be set by the developers based on a large amount of development data, or by the user himself, which is not limited here).

[0067] The electronic device can then adjust the first display parameters based on the parameter adjustment range corresponding to the brightness difference to obtain the adjusted first display parameters. The parameter adjustment range can be positively correlated with the brightness difference; that is, the larger the brightness difference, the larger the parameter adjustment range, and vice versa. This ensures that the adjusted first display parameters can meet various brightness differences, thereby guaranteeing the display effect of subsequent video data on the electronic device.

[0068] For example, if the ambient brightness threshold is 300 lux (a unit of illumination), and the ambient brightness information around the sub-device is 400 lux, then the brightness difference is 100 lux. The electronic device can then determine the parameter adjustment range corresponding to 100 lux and adjust the first display parameter according to the parameter adjustment range to obtain the adjusted first display parameter.

[0069] By implementing the above method, the electronic device can determine the adjustment range of multiple first display parameters based on the difference between the ambient brightness around the electronic device and the ambient brightness threshold, so that the adjusted first display parameters can meet a large brightness difference, thereby ensuring the display effect of subsequent video data on the electronic device.

[0070] In one embodiment, after determining the corresponding parameter adjustment range based on the brightness difference, the electronic device can further determine whether the ambient brightness information is greater than the ambient brightness threshold. If the ambient brightness information is greater than the ambient brightness threshold, it indicates that the ambient brightness around the electronic device is currently too bright, which may affect the user's viewing experience. In this case, the electronic device can increase the first display parameter according to the parameter adjustment range. Conversely, if the ambient brightness information is less than the ambient brightness threshold, it indicates that the ambient brightness around the electronic device is currently too dark. To avoid excessively bright video images harming the user's eyes, the electronic device can decrease the first display parameter according to the parameter adjustment range. Of course, if the ambient brightness information is equal to the ambient brightness threshold, the electronic device may not need to adjust the first display parameter.

[0071] In one embodiment, the electronic device can collect ambient brightness information around it using a built-in photosensor. Optionally, when the electronic device determines that the ambient brightness information is greater than an ambient brightness threshold, it can determine whether a light-emitting device (e.g., a lamp, a flashlight of another electronic device) connected to the electronic device is in an illuminated state. If the light-emitting device is in an illuminated state, the electronic device can issue a reminder message to remind the user to turn off the light-emitting device. Alternatively, it can send a control signal to the light-emitting device via the communication connection to control the light-emitting device to turn off.

[0072] Optionally, when the electronic device determines that the light-emitting device is in a light-emitting state, it can further determine whether the light emission direction of the light-emitting device is pointing towards the display screen of the electronic device; if so, the electronic device will issue a reminder message to remind the user to turn off the light-emitting device. Alternatively, it can send a control signal to the light-emitting device via a communication connection to control the light-emitting device to turn off.

[0073] By implementing the above method, when an electronic device determines that the ambient brightness information is greater than the ambient brightness threshold, it can turn off the light-emitting device that may cause the ambient brightness to be too bright, thereby reducing the ambient brightness around the electronic device. This eliminates the need for the electronic device to increase the brightness of the display screen by increasing display parameters, thus reducing the power consumption of the electronic device. In addition, the lower display brightness can also protect the user's eyes.

[0074] Optionally, the electronic device may also have a built-in imaging device (such as a camera, infrared sensor, etc.). The electronic device can then obtain the first position information of the light-emitting device through the imaging device. Based on the first position information of the light-emitting device and the second position information of the electronic device, the electronic device can determine whether the light emission direction of the light-emitting device is pointing towards the display screen of the electronic device.

[0075] In another embodiment, when the electronic device determines that the ambient brightness information is less than the ambient brightness threshold, it can determine whether the photosensitive sensor of the electronic device is blocked. If the photosensitive sensor of the electronic device is blocked, the electronic device can issue a prompt message to remind the user to remove the object blocking the photosensitive sensor, so that the photosensitive sensor can normally collect the ambient brightness around the electronic device, avoiding the situation where the photosensitive sensor collects a brightness lower than the actual ambient brightness due to the blockage, thereby causing the electronic device to reduce the display parameters of the electronic device.

[0076] Optionally, a proximity switch (e.g., Hall sensor, distance sensor, etc.) can be provided within a first range around the photosensitive sensor, so that when the proximity switch detects that an object is approaching the photosensitive sensor, the electronic device can determine that the photosensitive sensor is blocked.

[0077] In another embodiment, when the electronic device determines that its photosensor is blocked, it can time the duration of the blockage. If the duration is less than a threshold value (e.g., 1 second, 5 seconds, 10 seconds, etc., the specific value can be set by the developers based on extensive development experience and is not limited here), the electronic device does not need to issue a prompt to the user to remove the object blocking the photosensor. This is because in practice, it has been found that when a user passes in front of the electronic device or operates it, the photosensor will inevitably be blocked for a short period. Since the blocking is only brief, the electronic device does not need to issue a prompt, thus saving power consumption.

[0078] By implementing the methods disclosed in the above embodiments, when a format change of the video data to be played is detected, and the changed video data is in a first format, image information corresponding to the changed video signal can be obtained. The electronic device can then determine a first display parameter suitable for the video data based on the image information and adjust its display parameters to the first display parameter, making the display parameters of the electronic device more suitable for the video data, thereby improving the display effect of the video image corresponding to the changed video data. Furthermore, based on the type information of the electronic device's display screen, display parameters more suitable for the display screen used by the electronic device can be determined, thereby improving the display effect of the video data on that display screen. Additionally, when the video data is bright, the display brightness of the image corresponding to the video data on the display screen can be increased; conversely, when the video data is dark, the display brightness of the image corresponding to the video data on the display screen can be decreased, so that the display effect more closely matches the desired effect of the video data.

[0079] Please see Figure 3 , Figure 3 This is a flowchart illustrating another image quality adjustment method disclosed in an embodiment of this application. This image quality adjustment method can be applied to electronic devices, such as televisions, monitors, mobile phones, tablets, or wearable devices, and is not limited thereto. The image quality adjustment method may include the following steps:

[0080] 302. When a change in the format of the video data to be played is detected, if the changed video data is in the first format, the image information corresponding to the changed video data is obtained.

[0081] 304. Determine the corresponding first display parameter based on the image information, and adjust the display parameter of the electronic device to the first display parameter.

[0082] In one embodiment, the display parameters of the electronic device may further include parameter values ​​corresponding to the TMO curve. The electronic device can adjust the parameter values ​​corresponding to the TMO curve included in each set of display parameters so that the electronic device can meet display standards (e.g., ST2084 standard, where ST2084 standard refers to the high dynamic range electro-optical transfer function of the master tape production reference display for video data, and 2084 represents the PQ curve (electro-optical conversion function), i.e., the color mapping function. In related technologies, Dolby Vision, HDR10, and HDR10+ all use the 2084 curve).

[0083] Furthermore, the color gamut of the electronic device's display parameters can be set to the BT.2020 standard. The BT.2020 standard corresponds to a color space designated by the International Telecommunication Union (ITU) as an image signal color gamut standard for the 4K / 8K era, and is also one of the standards for Ultra HD Blu-ray. The standard Blu-ray uses the BT.709 color space, which only covers 35.9% of the BT.2020 color space. The latter is currently the largest color space in display devices, covering 75.8% of the CIE 1931 color space, enabling electronic devices to display more colors.

[0084] Optionally, the display parameters of the electronic device also include a DLC dynamic contrast curve. The electronic device can adjust the DLC curve according to the image information corresponding to the video data to brighten darker details in dark scenes and enhance the brightness of mid-to-high brightness details in bright scenes, achieving better brightness display output.

[0085] In one embodiment, the parameter values ​​corresponding to the TMO curves in multiple sets of second display parameters can all be set to the ST2084 standard, and the color gamut can be set to the BT2020 standard. The difference lies in that the electronic device can set different values ​​for the brightness, contrast ratio, and DLC dynamic contrast ratio curves in the multiple sets of second display parameters to suit "bright," "standard," and "movie" scenarios. For example, in a "bright" scenario, the brightness and contrast ratio in the corresponding second display parameters can be the highest; while in a "standard" scenario, the corresponding brightness and contrast ratio are next; and in a "movie" scenario, the corresponding brightness and contrast ratio are the lowest, which is not limited here.

[0086] 306. If the format of the video data to be played is detected to have switched from the first format to the second format, then determine the third display parameter corresponding to the second format.

[0087] In this embodiment of the application, the first format video data can be video data capable of recording a large color gamut and contrast range, such as HDR format video data; the second format video data can be video data with a smaller recorded color gamut and contrast range, such as SDR format video data.

[0088] In practice, it has been found that video data with a small recordable color gamut and contrast range (e.g., SDR format video data) contains a limited range of colors and brightness that can be presented. Therefore, setting only one set of display parameters for the second format video data is sufficient. In other words, when the electronic device detects that the switched video data is in the second format, it can directly obtain the corresponding display parameters from the stored display parameters, without needing to determine the display parameters from multiple sets based on the image information corresponding to the second format video data. This reduces the power consumption of the electronic device and improves the speed of image quality adjustment.

[0089] In one embodiment, the third display parameter may be determined by the electronic device based on the image information corresponding to the video data of the second format before determining the third display parameter corresponding to the second format; or it may be determined in real time by the electronic device when it detects that the format of the video data to be played has switched from the first format to the second format, which is not limited here.

[0090] In another embodiment, before adjusting the display parameters of the electronic device to the first display parameter, the electronic device can save the currently set fourth display parameter. This is because, in practice, it has been found that the video data to be played in the electronic device is usually in a second format before switching to the first format; therefore, the currently set fourth display parameter is the display parameter suitable for the second format video data.

[0091] Alternatively, when the electronic device detects that the format of the video data to be played has switched from the first format to the second format, it can directly adjust the display parameters of the electronic device to the fourth display parameter. This eliminates the need for the electronic device to perform the step of determining the display parameters corresponding to the video data of the second format, thereby reducing the power consumption of the electronic device and improving the speed of image quality adjustment.

[0092] 308. Adjust the display parameters of the electronic device to the third display parameter.

[0093] By implementing the methods disclosed in the above embodiments, when a change in the format of the video data to be played is detected, and the switched video data is in a first format, image information corresponding to the switched video signal can be obtained. The electronic device can then determine a first display parameter suitable for the video data based on the image information and adjust its display parameters to the first display parameter, making the display parameters more suitable for the video data, thereby improving the display effect of the video image corresponding to the switched video data. Furthermore, when a change in the format of the video data to be played is detected from the first format to the second format, the stored fourth display parameter can be directly determined as the third display parameter corresponding to the second format, eliminating the need for the electronic device to perform the step of determining the display parameter corresponding to the second format video data. This reduces the power consumption of the electronic device and increases the speed of image quality adjustment. Additionally, when the electronic device detects that the switched video data is in the second format, it can directly obtain the display parameter corresponding to the second format video data from the stored display parameters, without needing to determine the display parameter from multiple sets of display parameters based on the image information corresponding to the second format video data. This further reduces the power consumption of the electronic device and increases the speed of image quality adjustment.

[0094] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of an image quality adjustment device disclosed in an embodiment of this application. This image quality adjustment device can be applied to electronic devices, such as televisions, monitors, mobile phones, tablets, or wearable devices, etc., and is not limited thereto. The image quality adjustment device may include: a first acquisition unit 401 and a first adjustment unit 402, wherein:

[0095] The first acquisition unit 401 is used to acquire the image information corresponding to the switched video data if the switched video data is in the first format when the format of the video data to be played is detected to have changed.

[0096] The first adjustment unit 402 is used to determine the corresponding first display parameter based on the image information and adjust the display parameter of the electronic device to the first display parameter.

[0097] By implementing the above-mentioned image quality adjustment device, when it detects that the format of the video data to be played has changed and the changed video data is in the first format, it can obtain the image information corresponding to the changed video signal. Then, the electronic device can determine the first display parameters suitable for the video data based on the image information and adjust the display parameters of the electronic device to the first display parameters so that the display parameters of the electronic device are more suitable for the video data, thereby improving the display effect of the video image corresponding to the changed video data.

[0098] Please see Figure 5 , Figure 5 This is a schematic diagram of another image quality adjustment device disclosed in an embodiment of this application. This image quality adjustment device can be applied to electronic devices, such as televisions, monitors, mobile phones, tablets, or wearable devices, and is not limited thereto. Optionally, Figure 5 The image quality adjustment device shown can be Figure 4 The image quality adjustment device shown is optimized to be the same as the image quality adjustment device shown. Figure 4 Compared to the image quality adjustment devices shown, Figure 5 The image quality adjustment device shown may further include: a first determining unit 403, wherein:

[0099] The first determining unit 403 is used to determine multiple sets of second display parameters based on the device parameters of the electronic device before the first adjusting unit 402 determines the corresponding first display parameters based on the image information and adjusts the display parameters of the electronic device to the first display parameters. The multiple sets of second display parameters correspond to different brightness ranges.

[0100] Furthermore, the method by which the first adjustment unit 402 determines the corresponding first display parameter based on the image information can specifically be as follows:

[0101] The first adjustment unit 402 is used to determine the target brightness range to which the image brightness information included in the image information belongs; and to determine, from a plurality of sets of second display parameters, a second display parameter corresponding to the target brightness range as a first display parameter corresponding to the image information.

[0102] By implementing the aforementioned image quality adjustment device, the determined display parameters can be made more compatible with the functions of the electronic device, thereby enabling the video images included in the video data to present a better display effect on the electronic device.

[0103] As an optional implementation, the method by which the first determining unit 403 determines multiple sets of second display parameters based on the device parameters of the electronic device can specifically be as follows:

[0104] The first determining unit 403 is configured to determine the type information of the display screen of the electronic device based on the device parameters of the electronic device; and to determine the adjustment range of the display parameters of the display screen based on the type information of the display screen; and to determine multiple sets of second display parameters within the adjustment range.

[0105] By implementing the image quality adjustment device described above, display parameters that can maximize the performance of the display screen used by the electronic device can be determined based on the type information of the electronic device's display screen, thereby improving the display effect of video images on the display screen.

[0106] As an optional implementation, the second display parameter is positively correlated with the average value of the corresponding brightness range.

[0107] By implementing the aforementioned image quality adjustment device, the electronic device can increase the display brightness of the image corresponding to the video data on the screen when the video data is bright, and conversely, reduce the display brightness of the image corresponding to the video data on the screen when the video data is dark, thereby making the display effect more consistent with the effect that the video data wants to express.

[0108] As an optional implementation method, Figure 5 The image quality adjustment device shown may further include: a second acquisition unit 404 and a second adjustment unit 405, wherein:

[0109] The second acquisition unit 404 is used to acquire environmental information around the electronic device after the first adjustment unit 402 determines the corresponding first display parameter based on the image information and before the first adjustment unit 402 adjusts the display parameter of the electronic device to the first display parameter.

[0110] The second adjustment unit 405 is used to adjust the first display parameter according to the environmental information to obtain the adjusted first display parameter;

[0111] Furthermore, the specific method by which the first adjustment unit 402 adjusts the display parameters of the electronic device to the first display parameters can be:

[0112] The first adjustment unit 402 is used to adjust the display parameters of the electronic device to the adjusted first display parameters.

[0113] By implementing the image quality adjustment device described above, the determined first display parameters can be adjusted based on the environmental information around the electronic device, so that the adjusted first display parameters are more in line with the environment around the electronic device, thereby reducing the impact of the environment around the electronic device on the display effect of video images on the electronic device.

[0114] As an optional implementation, the environmental information includes ambient brightness information; and the second adjustment unit 405 adjusts the first display parameter according to the environmental information to obtain the adjusted first display parameter in the following specific ways:

[0115] The second adjustment unit 405 is used to determine the brightness difference between the ambient brightness information and the brightness threshold; and to adjust the first display parameter according to the parameter adjustment range corresponding to the brightness difference to obtain the adjusted first display parameter, wherein the parameter adjustment range is positively correlated with the brightness difference.

[0116] By implementing the above-mentioned image quality adjustment device, the adjustment range of multiple first display parameters can be determined based on the difference between the ambient brightness around the electronic device and the ambient brightness threshold, so that the adjusted first display parameters can meet a large brightness difference, thereby ensuring the display effect of subsequent video data on the electronic device.

[0117] As an optional implementation method, Figure 5 The image quality adjustment device shown may further include: a second determining unit 406 and a third adjusting unit 407, wherein:

[0118] The second determining unit 406 is used to determine the third display parameter corresponding to the second format if the format of the video data to be played is detected to switch from the first format to the second format after the first adjusting unit 402 adjusts the display parameters of the electronic device to the first display parameters.

[0119] The third adjustment unit 407 is used to adjust the display parameters of the electronic device to the third display parameters.

[0120] When the above-described image quality adjustment device is implemented, if the electronic device detects that the switched video data is in the second format, the electronic device can directly obtain the display parameters corresponding to the second format video data from the stored display parameters, without having to determine the display parameters from multiple sets of display parameters based on the image information corresponding to the second format video data. This reduces the power consumption of the electronic device and increases the speed of image quality adjustment.

[0121] As an optional implementation method, Figure 5 The image quality adjustment device shown may further include: a storage unit 408, wherein:

[0122] The storage unit 408 is configured to store the fourth display parameter currently set by the electronic device before the first adjustment unit 402 adjusts the display parameters of the electronic device to the first display parameter; and to adjust the display parameters of the electronic device to the fourth display parameter if it is detected that the format of the video data to be played has switched from the first format to the second format.

[0123] By implementing the above-mentioned image quality adjustment device, when the format of the video data to be played is detected to switch from the first format to the second format, the saved fourth display parameter can be directly determined as the third display parameter corresponding to the second format. This eliminates the need for the electronic device to perform the step of determining the display parameter corresponding to the video data of the second format, thereby reducing the power consumption of the electronic device and improving the speed of image quality adjustment.

[0124] As an optional implementation, the first format is a high dynamic range image format, and the second format is a standard dynamic range image format; the display parameters of the electronic device include one or more of brightness, contrast, color gamut, and resolution.

[0125] By implementing the above-mentioned image quality adjustment device, when it detects that the format of the video data to be played has changed and the changed video data is in the first format, it can obtain the image information corresponding to the changed video signal. Then, the electronic device can determine the first display parameters suitable for the video data based on the image information and adjust the display parameters of the electronic device to the first display parameters so that the display parameters of the electronic device are more suitable for the video data, thereby improving the display effect of the video image corresponding to the changed video data.

[0126] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application.

[0127] like Figure 6 As shown, the electronic device may include:

[0128] Memory 601 storing executable program code;

[0129] Processor 602 coupled to memory 601;

[0130] The processor 602 calls the executable program code stored in the memory 601 to execute the image quality adjustment methods disclosed in the above embodiments.

[0131] This application discloses a computer-readable storage medium storing a computer program that causes a computer to execute the image quality adjustment methods disclosed in the above embodiments.

[0132] This application also discloses an application publishing platform, which is used to publish computer program products. When the computer program products are run on a computer, the computer performs some or all of the steps of the methods described in the above method embodiments.

[0133] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0134] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0135] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0136] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0137] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.

[0138] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0139] The above provides a detailed description of the image quality adjustment method, apparatus, electronic device, and computer-readable storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for adjusting image quality, characterized in that, Applied to electronic devices, the method includes: When a change in the format of the video data to be played is detected, if the changed video data is in the first format, the image information corresponding to the changed video data is obtained, and the image information includes image brightness information. The corresponding first display parameter is determined based on the image information, and the display parameter of the electronic device is adjusted to the first display parameter; Before determining the corresponding first display parameter based on the image information, the method further includes: Multiple sets of second display parameters are determined based on the device parameters of the electronic device, and the multiple sets of second display parameters correspond to different brightness ranges; And, determining the corresponding first display parameter based on the image information includes: Determine the target brightness range to which the image brightness information, including the image information, belongs; From the plurality of second display parameters, the second display parameter corresponding to the target brightness range is determined as the first display parameter corresponding to the image information.

2. The method according to claim 1, characterized in that, The determination of multiple sets of second display parameters based on the device parameters of the electronic device includes: Based on the device parameters of the electronic device, determine the type information of the display screen of the electronic device; Based on the type information of the display screen, determine the adjustment range of the display parameters of the display screen; Multiple sets of second display parameters are determined within the adjustment range.

3. The method according to any one of claims 1 or 2, characterized in that, The second display parameter is positively correlated with the average value of the corresponding brightness range.

4. The method according to claim 1, characterized in that, After determining the corresponding first display parameter based on the image information, and before adjusting the display parameter of the electronic device to the first display parameter, the method further includes: Obtain environmental information surrounding the electronic device; The first display parameters are adjusted according to the environmental information to obtain the adjusted first display parameters; And, adjusting the display parameters of the electronic device to the first display parameters includes: The display parameters of the electronic device are adjusted to the adjusted first display parameters.

5. The method according to claim 4, characterized in that, The environmental information includes ambient brightness information; and adjusting the first display parameters based on the environmental information to obtain the adjusted first display parameters includes: Determine the brightness difference between the ambient brightness information and the ambient brightness threshold; The first display parameter is adjusted according to the parameter adjustment range corresponding to the brightness difference to obtain the adjusted first display parameter, wherein the parameter adjustment range is positively correlated with the brightness difference.

6. The method according to claim 1, characterized in that, After adjusting the display parameters of the electronic device to the first display parameters, the method further includes: If the format of the video data to be played is detected to have switched from the first format to the second format, then the third display parameter corresponding to the second format is determined; The display parameters of the electronic device are adjusted to the third display parameter.

7. The method according to claim 1, characterized in that, Before adjusting the display parameters of the electronic device to the first display parameters, the method further includes: The fourth display parameter that saves the current settings of the electronic device; And, after adjusting the display parameters of the electronic device to the first display parameters, the method further includes: If the format of the video data to be played is detected to have switched from the first format to the second format, the display parameters of the electronic device are adjusted to the fourth display parameters.

8. The method according to any one of claims 6 or 7, characterized in that, The first format is a high dynamic range image format, and the second format is a standard dynamic range image format; the display parameters of the electronic device include one or more of brightness, contrast, color gamut, and resolution.

9. An image quality adjustment device, characterized in that, Applied to electronic devices, the device includes: The acquisition unit is used to acquire image information corresponding to the switched video data when the format of the video data to be played is detected to be switched, if the switched video data is in the first format, and the image information includes image brightness information. An adjustment unit is used to determine the corresponding first display parameter based on the image information, and adjust the display parameter of the electronic device to the first display parameter; The first determining unit is configured to determine multiple sets of second display parameters based on the device parameters of the electronic device before determining the corresponding first display parameters based on the image information. The multiple sets of second display parameters correspond to different brightness ranges. Furthermore, the adjustment unit is also configured to determine the target brightness range to which the image brightness information included in the image information belongs; and to determine, from the plurality of second display parameters, a second display parameter corresponding to the target brightness range as a first display parameter corresponding to the image information.

10. An electronic device, characterized in that, The method includes a memory storing executable program code and a processor coupled to the memory; wherein the processor invokes the executable program code stored in the memory to execute the method according to any one of claims 1 to 8.

11. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Video playing method and device

    CN105744378A