CN113271422B - Brightness adjusting method and device, television and computer readable storage medium - Google Patents

Brightness adjusting method and device, television and computer readable storage medium Download PDF

Info

Publication number
CN113271422B
CN113271422B CN202110513768.9A CN202110513768A CN113271422B CN 113271422 B CN113271422 B CN 113271422B CN 202110513768 A CN202110513768 A CN 202110513768A CN 113271422 B CN113271422 B CN 113271422B
Authority
CN
China
Prior art keywords
target
brightness
image
brightness value
obtaining
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.)
Active
Application number
CN202110513768.9A
Other languages
Chinese (zh)
Other versions
CN113271422A (en
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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202110513768.9A priority Critical patent/CN113271422B/en
Publication of CN113271422A publication Critical patent/CN113271422A/en
Application granted granted Critical
Publication of CN113271422B publication Critical patent/CN113271422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/57Control of contrast or brightness
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention discloses a brightness adjusting method, which is used for a television, wherein the television is provided with a camera, and the method comprises the following steps: controlling the camera to acquire a target video of a target area; obtaining an environment brightness value based on a target frame image in the target video; and adjusting the current brightness value of the television screen according to the environment brightness value. The invention also discloses a brightness adjusting device, a television and a computer readable storage medium. The television can automatically adjust the screen brightness, the manual brightness adjustment operation with complicated steps is not required for a user, and the user experience is improved.

Description

Brightness adjusting method and device, television and computer readable storage medium
Technical Field
The present invention relates to the field of television control, and in particular, to a method and an apparatus for adjusting brightness, a television, and a computer-readable storage medium.
Background
The television set is used as a multimedia tool and can provide various entertainment items for users, such as television programs, live broadcasts, games and the like.
Currently, when a user uses a television to entertain, the brightness value of the television can be adjusted through a remote controller or a television adjusting button so as to adapt to the watching requirements of the user.
However, when a user watches a television program by using the existing television, the brightness adjustment mode is complex to operate, and the user experience is poor.
Disclosure of Invention
The invention mainly aims to provide a brightness adjusting method, a brightness adjusting device, a television and a computer readable storage medium, and aims to solve the technical problems that in the prior art, when a user watches television programs by using the existing television, the brightness adjusting mode is complex to operate, and the user experience is poor.
In order to achieve the above object, the present invention provides a brightness adjusting method for a television, the television has a camera, and the method includes the following steps:
controlling the camera to acquire a target video of a target area;
obtaining an environment brightness value based on a target frame image in the target video;
and adjusting the current brightness value of the television screen according to the environment brightness value.
Optionally, the target frame image is in an RGB format; the step of obtaining an ambient brightness value based on a target frame image in the target video includes:
determining a target light source of the target area based on the target frame image;
determining a selected image weight in a light source weight table based on the target light source, the light source weight table including different types of light sources and image weights corresponding to the different types of light sources, one image weight including respective weights of different luminance values;
converting the target frame image in the RGB format into a preprocessed image in a YUV format;
obtaining a luminance image based on the preprocessed image;
obtaining a target brightness value of each pixel in the brightness image and a target frequency of each pixel based on the brightness image;
obtaining the ambient brightness value based on the target brightness value, the target frequency, and the selected image weight.
Optionally, before the step of determining the selected image weight in the light source weight table based on the target light source, the method further includes:
shooting a reference video of the target area by using the camera;
determining a plurality of preset light sources corresponding to the target area, preset position information of the plurality of preset light sources and preset brightness values of the plurality of preset light sources based on a reference video frame of the reference video, wherein the plurality of preset light sources comprise the target light source;
acquiring preset image weights corresponding to the multiple preset light sources respectively based on the preset position information and the preset brightness value;
and obtaining the light source weight table based on the plurality of preset light sources and the preset image weight.
Optionally, before the step of obtaining the target brightness value of each pixel in the brightness image and the target frequency of each pixel based on the brightness image, the method further includes:
filtering the brightness image to obtain a filtered brightness image;
performing normal distribution processing on the filtered brightness image to obtain a preprocessed brightness image;
determining a correction value based on the current brightness value;
performing screen backlight weakening processing on the preprocessed brightness image by using the correction value to obtain an intermediate brightness image;
the step of obtaining a target brightness value of each pixel and a target frequency of each pixel in the brightness image based on the brightness image includes:
determining a target brightness value of each pixel in the intermediate brightness image and the occurrence number of the target brightness value in the intermediate brightness image;
obtaining a brightness histogram based on the target brightness value and the occurrence number;
and determining a target frequency corresponding to the target brightness value based on the brightness histogram.
Optionally, before the step of obtaining the ambient brightness value based on the target brightness value, the target frequency and the selected image weight, the method further includes:
determining a new target frame image in the target video;
determining a new target light source for the target region based on the new target frame image;
when the new target light source is the same as the target light source, updating the target frame image by using the new target frame image, and returning to execute the step of converting the target frame image in the RGB format into the preprocessed image in the YUV format to obtain a new target brightness value and a new target frequency;
correcting the target brightness value by using the new target brightness value to obtain a corrected target brightness value;
correcting the target frequency by using the new target frequency to obtain a corrected target frequency;
said step of obtaining said ambient brightness value based on said target brightness value, said target frequency, and said selected image weight, comprising:
obtaining the ambient brightness value based on the modified target brightness value, the modified target frequency, and the selected image weight.
Optionally, before the step of adjusting the current brightness value of the tv screen according to the environment brightness value, the method further includes:
obtaining a mode change of an ambient brightness mode based on the target video;
determining a rate of change of brightness of the screen based on the mode change;
the step of adjusting the current brightness value of the television screen according to the environment brightness value includes:
and adjusting the current brightness value according to the brightness change rate and the environment brightness value.
Optionally, before the step of controlling the camera to acquire the target video of the target area, the method further includes:
determining shooting parameters of the camera, wherein the shooting parameters comprise white balance and exposure values;
performing parameter configuration on the camera by using the white balance and the exposure value;
and locking parameters of the configured camera.
In addition, in order to achieve the above object, the present invention further provides a brightness adjusting apparatus for a television set, the television set having a camera, the apparatus comprising:
the shooting module is used for controlling the camera to acquire a target video of a target area;
an obtaining module, configured to obtain an environment brightness value based on a target frame image in the target video;
and the brightness adjusting module is used for adjusting the current brightness value of the television screen according to the environment brightness value.
In addition, to achieve the above object, the present invention further provides a television, including: the system comprises a memory, a processor and a brightness adjusting program stored on the memory and running on the processor, wherein the brightness adjusting program realizes the steps of the brightness adjusting method according to any one of the above items when being executed by the processor.
Further, to achieve the above object, the present invention also proposes a computer-readable storage medium having a brightness adjustment program stored thereon, which when executed by a processor implements the steps of the brightness adjustment method as described in any one of the above.
The technical scheme of the invention provides a brightness adjusting method for a television, wherein the television is provided with a camera, and the method comprises the following steps: controlling the camera to acquire a target video of a target area; obtaining an environment brightness value based on a target frame image in the target video; and adjusting the current brightness value of the television screen according to the environment brightness value.
In the existing television, a user needs to manually adjust the brightness value of a television screen through a remote controller or a button and the like, the manual adjustment steps are complicated, and the user experience is poor. In the brightness adjusting method, the television acquires the corresponding target video through the camera, acquires the environment brightness value based on the target frame image in the target video, and adjusts the current brightness value of the television screen according to the environment brightness value, so that the television can automatically adjust the screen brightness on the premise of not integrating other photosensitive elements, a user does not need to perform complicated manual brightness adjusting operation, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a television in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a brightness adjustment method according to a first embodiment of the present invention;
fig. 3 is a block diagram of a first embodiment of the brightness adjusting device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a television set in a hardware operating environment according to an embodiment of the present invention.
Generally, a television set includes: at least one processor 301, a memory 302, and a brightness adjustment program stored on the memory and executable on the processor, the brightness adjustment program being configured to implement the steps of the brightness adjustment method as previously described.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the screen needs to display. The processor 301 may further include an AI (Artificial Intelligence) processor for processing operations related to the dimming method, so that the dimming method model can be trained and learned autonomously, improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the brightness adjustment methods provided by the method embodiments herein.
In some embodiments, the terminal may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by buses or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, screen 305, and power source 306, and the peripheral device may further include a camera 307.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the screen 305 is a touch screen, the screen 305 also has the ability to capture touch signals on or over the surface of the screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the screen 305 may be one, the front panel of the electronic device; in other embodiments, the screen 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the screen 305 may be a flexible screen, disposed on a curved surface or on a folded surface of the electronic device. Even further, the screen 305 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The screen 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology. Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting of a television set and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The camera 307 is used to help the tv set achieve video and image acquisition, and the camera 307 is usually integrated in a certain area of the front of the tv set.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, on which a brightness adjustment program is stored, and the brightness adjustment program, when executed by a processor, implements the steps of the brightness adjustment method as described above. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. It is determined that the program instructions may be deployed to be executed on one television, or on multiple televisions located at one site, or distributed across multiple sites and interconnected by a communication network, as examples.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Based on the above hardware structure, an embodiment of the brightness adjustment method of the present invention is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a brightness adjusting method according to the present invention, the method is used for a television, and the method includes the following steps:
step S11: and controlling the camera to acquire a target video of a target area.
It should be noted that the main execution body of the present invention is a television, the television is installed with a brightness adjustment program, and when the television executes the brightness adjustment program, the brightness adjustment method of the present invention is implemented. Meanwhile, the television can be provided with the camera, the camera is controlled to obtain the target video, the final environment brightness value is obtained based on the target video, a brightness sensing device is not required to be arranged on the television, and the design cost and the manufacturing cost of the television are reduced.
Further, before the step of controlling the camera to acquire the target video of the target area, the method further includes: determining shooting parameters of the camera, wherein the shooting parameters comprise white balance and exposure values; performing parameter configuration on the camera by using the white balance and the exposure value; and locking parameters of the configured camera.
It should be noted that, the above steps are adopted to configure the parameters of the camera, so as to lock the parameters of the camera, and prevent the stability of the video acquired by the camera from changing when the external environment changes (for example, the user moves, turns on the light, and other events) while the camera is running, so as to ensure that the data reality and stability of the acquired video are good.
Step S12: and obtaining an environment brightness value based on a target frame image in the target video.
It should be noted that, in the brightness adjustment method of the present invention, the ambient brightness value is obtained based on the target frame image, instead of obtaining the ambient brightness value through the brightness sensing device, and the ambient brightness value is obtained on the premise of saving the design cost of the television (the cost is saved by not designing how to set the brightness sensing device) and the manufacturing cost (the cost is saved by not setting the brightness sensing device).
In some embodiments, the camera acquires a target video of a target area (a shooting area corresponding to the camera) in real time, each video frame in the target video is a target frame image, and for a current time, a video frame at a next time is a next target frame image.
Specifically, the target frame image is in an RGB format; the step of obtaining an ambient brightness value based on a target frame image in the target video includes: determining a target light source of the target area based on the target frame image; determining a selected image weight in a light source weight table based on the target light source, the light source weight table including different light sources and image weights corresponding to the different light sources, one image weight including respective weights for different brightness values; converting the target frame image in the RGB format into a preprocessed image in a YUV format; obtaining a brightness image based on the preprocessed image; obtaining a target brightness value of each pixel in the brightness image and a target frequency of each pixel based on the brightness image; obtaining the ambient brightness value based on the target brightness value, the target frequency, and the selected image weight. The image weight includes weights corresponding to all luminance values (luminance values are represented by gray scale values 0 to 255), and one image weight includes one weight of each luminance value.
It should be noted that Y data is extracted from the preprocessed image in YUV format, and an image obtained based on the Y data is the luminance image. Meanwhile, based on the specific content of the target frame image, a target light source of the target area is determined, and the target light source includes one or more, for example, the target light source includes an indoor illuminating lamp, a table lamp and the like.
Specifically, the light source weight table needs to be obtained according to the following steps: shooting a reference video of the target area by using the camera; determining a plurality of preset light sources corresponding to the target area, preset position information of the plurality of preset light sources and preset brightness values of the plurality of preset light sources based on a reference video frame of the reference video, wherein the plurality of preset light sources comprise the target light source; acquiring preset image weights corresponding to the multiple preset light sources respectively based on the preset position information and the preset brightness value; and obtaining the light source weight table based on the plurality of preset light sources and the preset image weight. The reference video frame may be a frame of image with higher light source definition in the reference video.
It should be noted that, image weights corresponding to different preset light sources may be different, and the same preset light source has different image weights when in different positions (position information is different, and position information is preset position information), and the corresponding image weights are different when in different brightness values (i.e. different preset brightness values) for the same preset light source.
For example, if the light source is only an indoor lamp, and the indoor lamp has 3 kinds of brightness, the corresponding preset light sources have 3 kinds, and the image weights corresponding to the preset light sources also have only 3 kinds; for another example, the light sources include an indoor lamp and a sun, and if the indoor lamp has 3 kinds of brightness and the sun has 5 different brightness, the preset light sources at this time have 24 kinds, and the corresponding image weights also have 24 kinds. In addition, in a specific application, the corresponding preset image weight needs to be determined by referring to the position relationship between the light source and the television (i.e. the preset position information). In general, the larger the light-emitting area of the preset light source in the reference video frame in the reference video is, the larger the weight in the corresponding preset image weight may be. The reference video frame may be a video frame with a clearer image determined in the reference video, or a video frame selected randomly, which is not limited in the present invention.
It can be understood that the obtaining process of the light source weight table can be executed at regular time to ensure that the light source weight table is constantly in an updated state, so as to avoid the deviation of data in the light source weight table caused by the change of indoor environment and outdoor environment, further improve the accuracy of the light source weight table, and ensure that the user experience of the brightness adjusting method is better.
Further, before the step of obtaining the target brightness value of each pixel and the target frequency of each pixel in the brightness image based on the brightness image, the method further includes: before the step of obtaining the target brightness value of each pixel and the target frequency of each pixel in the brightness image based on the brightness image, the method further includes: filtering the brightness image to obtain a filtered brightness image; performing normal distribution processing on the filtered brightness image to obtain a preprocessed brightness image; determining a correction value based on the current brightness value; performing screen backlight weakening processing on the preprocessed brightness image by using the correction value to obtain an intermediate brightness image; correspondingly, the step of obtaining the target brightness value of each pixel in the brightness image and the target frequency of each pixel based on the brightness image includes: determining a target brightness value of each pixel in the intermediate brightness image and the occurrence number of the target brightness value in the intermediate brightness image; obtaining a brightness histogram based on the target brightness value and the occurrence number; and determining a target frequency corresponding to the target brightness value based on the brightness histogram.
In this embodiment, the luminance image needs to be filtered to eliminate some noise, so as to ensure that the data accuracy in the luminance image is better. Meanwhile, weakening processing of screen backlight is carried out on the preprocessed brightness image, and a middle brightness image with weakened backlight is obtained. It is understood that the current luminance value can be represented by a gray scale value (0-255), and a corresponding correction value needs to be determined based on the current luminance value, and the correction value is also represented by the gray scale value, but is not equal to the current luminance value, and is usually smaller than the current luminance value. And directly subtracting the correction value from the brightness value of the pixel in the preprocessed brightness image to obtain a new brightness value, wherein the preprocessed brightness image with the new brightness value is the intermediate brightness image.
It can be understood that the brightness value of the pixel in the intermediate brightness image is the target brightness value, and one pixel in the intermediate brightness image corresponds to one target brightness value; when pixels at different positions in the intermediate luminance image have the same target luminance value, the number of occurrences of the target luminance value in the intermediate luminance image is the same.
In a specific application, the abscissa of the luminance histogram is all luminance values related in the intermediate luminance image, and the ordinate of the luminance histogram is the number of occurrences of each luminance value in the intermediate luminance image. The frequency of one target brightness value is a target frequency, one target brightness value corresponds to one target frequency, and the sum of all target frequencies is 1.
Further, before the step of obtaining the ambient brightness value based on the target brightness value, the target frequency and the selected image weight, the method further comprises: determining a new target frame image in the target video; determining a new target light source for the target region based on the new target frame image; when the new target light source is the same as the target light source, updating the target frame image by using the new target frame image, and returning to execute the step of converting the target frame image in the RGB format into the preprocessed image in the YUV format to obtain a new target brightness value and a new target frequency; correcting the target brightness value by using the new target brightness value to obtain a corrected target quantity brightness value; correcting the target frequency by using the new target frequency to obtain a corrected target frequency; accordingly, the step of obtaining the ambient brightness value based on the target brightness value, the target frequency, and the selected image weight includes: obtaining the ambient brightness value based on the modified target brightness value, the modified target frequency, and the selected image weight.
It can be understood that, referring to the above description, the target frame image may be each video frame of the target video, and the new target frame image is the next frame of the target frame image, and when the new target light source is the same as the target light source, the light of the indoor environment does not change significantly, and the new target luminance value and the new target frequency corresponding to the new target frame image are used to correct and compare and fit the target luminance value and the target frequency, so as to eliminate error data (for example, the target frame image data is inaccurate due to the stroboscopic of the indoor light source), and ensure that the accuracy of the corrected target luminance value and the corrected target frequency is better.
It is to be understood that, when it is detected that the new target light source is different from the target light source, the steps of the present invention are re-executed by using a new target frame image corresponding to the new target light source as the target frame image in step S12.
In addition, obtaining the environment brightness value based on the corrected target brightness value, the corrected target frequency, and the selected image weight specifically includes: obtaining a target weight of each brightness value in the corrected target brightness values based on a target frequency corresponding to each brightness value in the corrected target brightness values in the corrected target frequency and a weight corresponding to each brightness value in the corrected target brightness values in the selected image weight; and obtaining the environment brightness value based on the target weight of each target brightness value in the corrected target brightness values and each brightness value in the corrected target brightness values.
Specifically, the target frequency corresponding to each luminance value in the corrected target luminance values in the corrected target frequency may be multiplied by a product of weights corresponding to each luminance value in the corrected target luminance values in the selected image weight, and the product may be used as the target weight of each luminance value in the corrected target luminance values.
Further, before the step of adjusting the current brightness value of the tv screen according to the ambient brightness value, the method further includes: obtaining a mode change of an ambient brightness mode based on the target video; determining a rate of change of brightness of the screen based on the mode change; correspondingly, the step of adjusting the current brightness value of the television screen according to the environment brightness value includes: and adjusting the current brightness value according to the brightness change rate and the environment brightness value.
It should be noted that the ambient brightness mode can be divided into indoor yellow light, indoor white light, indoor dim light, indoor darkness, outdoor sunny day, outdoor cloudy day, and the like, and the mode change is the conversion of the above modes, for example, the mode change is-indoor darkness changes into indoor white light, and the like. The brightness change rate of the corresponding screen is different for different mode changes.
In specific application, multiple brightness change rates corresponding to multiple mode changes can be preset, and when the mode changes are obtained, the corresponding brightness change rates can be directly determined from the preset multiple brightness change rates.
In the embodiment, the sudden brightness and darkness of the television screen are avoided, and the user experience is improved.
The technical scheme of the invention provides a brightness adjusting method which is used for a television, wherein the television is provided with a camera, and the method comprises the following steps: controlling the camera to acquire a target video of a target area; obtaining an environment brightness value based on a target frame image in the target video; and adjusting the current brightness value of the television screen according to the environment brightness value.
In the existing television, a user needs to manually adjust the brightness value of a television screen through a remote controller or a button and the like, the manual adjustment steps are complicated, and the user experience is poor. In the brightness adjusting method, the television acquires the corresponding target video through the camera, acquires the environment brightness value based on the target frame image in the target video, and adjusts the current brightness value of the television screen according to the environment brightness value, so that the television can automatically adjust the screen brightness on the premise of not integrating other photosensitive elements, a user does not need to perform complicated manual brightness adjusting operation, and the user experience is improved.
Referring to fig. 3, fig. 3 is a block diagram of a first embodiment of a brightness adjusting apparatus according to the present invention, the apparatus is used for a television, and the apparatus includes:
the shooting module 10 is used for controlling the camera to acquire a target video of a target area;
an obtaining module 20, configured to obtain an environment brightness value based on a target frame image in the target video;
and the brightness adjusting module 30 is configured to adjust a current brightness value of the screen of the television according to the environment brightness value.
The above description is only an alternative embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, which are within the spirit of the present invention, are included in the scope of the present invention.

Claims (9)

1. A method of brightness adjustment for a television set having a camera, the method comprising the steps of:
controlling the camera to acquire a target video of a target area;
determining a target light source of the target area based on a target frame image in the target video, wherein the target frame image is in an RGB format;
determining a selected image weight in a light source weight table based on the target light source, the light source weight table including different types of light sources and image weights corresponding to the different types of light sources, one image weight including respective weights of different luminance values;
converting the target frame image in the RGB format into a preprocessed image in a YUV format;
obtaining a brightness image based on the preprocessed image;
obtaining a target brightness value of each pixel in the brightness image and a target frequency of each pixel based on the brightness image;
obtaining an ambient brightness value based on the target brightness value, the target frequency, and the selected image weight;
and adjusting the current brightness value of the television screen according to the environment brightness value.
2. The method of claim 1, wherein prior to the step of determining the selected image weight in a light source weight table based on the target light source, the method further comprises:
shooting a reference video of the target area by using the camera;
determining multiple preset light sources corresponding to the target area, preset position information of the multiple preset light sources and preset brightness values of the multiple preset light sources based on a reference video frame of the reference video, wherein the multiple preset light sources comprise the target light source;
acquiring preset image weights corresponding to the multiple preset light sources respectively based on the preset position information and the preset brightness value;
and obtaining the light source weight table based on the plurality of preset light sources and the preset image weight.
3. The method of claim 2, wherein the step of obtaining a target luminance value for each pixel and a target frequency for each pixel in the luminance image based on the luminance image is preceded by the method further comprising:
filtering the brightness image to obtain a filtered brightness image;
performing normal distribution processing on the filtered brightness image to obtain a preprocessed brightness image;
determining a correction value based on the current brightness value;
performing screen backlight weakening processing on the preprocessed brightness image by using the correction value to obtain an intermediate brightness image;
the step of obtaining a target brightness value of each pixel and a target frequency of each pixel in the brightness image based on the brightness image includes:
determining a target brightness value of each pixel in the intermediate brightness image and the occurrence number of the target brightness value in the intermediate brightness image;
obtaining a brightness histogram based on the target brightness value and the occurrence number;
and determining a target frequency corresponding to the target brightness value based on the brightness histogram.
4. The method of claim 3, wherein said step of obtaining said ambient brightness value based on said target brightness value, said target frequency, and said selected image weight is preceded by the step of:
determining a new target frame image in the target video;
determining a new target light source for the target region based on the new target frame image;
when the new target light source is the same as the target light source, updating the target frame image by using the new target frame image, and returning to execute the step of converting the target frame image in the RGB format into the preprocessed image in the YUV format to obtain a new target brightness value and a new target frequency;
correcting the target brightness value by using the new target brightness value to obtain a corrected target brightness value;
correcting the target frequency by using the new target frequency to obtain a corrected target frequency;
said step of obtaining said ambient brightness value based on said target brightness value, said target frequency, and said selected image weight, comprising:
obtaining the ambient brightness value based on the modified target brightness value, the modified target frequency, and the selected image weight.
5. The method of any of claims 1-4, wherein prior to the step of adjusting the current brightness value of the television screen based on the ambient brightness value, the method further comprises:
obtaining a mode change of an ambient brightness mode based on the target video;
determining a rate of change of brightness of the screen based on the pattern change;
the step of adjusting the current brightness value of the television screen according to the environment brightness value includes:
and adjusting the current brightness value according to the brightness change rate and the environment brightness value.
6. The method of claim 5, wherein prior to the step of controlling the camera to obtain the target video of the target area, the method further comprises:
determining shooting parameters of the camera, wherein the shooting parameters comprise white balance and exposure values;
performing parameter configuration on the camera by using the white balance and the exposure value;
and locking parameters of the configured camera.
7. A brightness adjustment device for a television set having a camera, the device comprising:
the shooting module is used for controlling the camera to acquire a target video of a target area;
an obtaining module, configured to determine a target light source of the target area based on a target frame image in the target video, where the target frame image is in an RGB format;
determining a selected image weight in a light source weight table based on the target light source, the light source weight table including different types of light sources and image weights corresponding to the different types of light sources, one image weight including respective weights of different luminance values;
converting the target frame image in the RGB format into a preprocessed image in a YUV format;
obtaining a brightness image based on the preprocessed image;
obtaining a target brightness value of each pixel in the brightness image and a target frequency of each pixel based on the brightness image;
obtaining an ambient brightness value based on the target brightness value, the target frequency, and the selected image weight;
and the brightness adjusting module is used for adjusting the current brightness value of the television screen according to the environment brightness value.
8. A television set, characterized in that the television set comprises: memory, a processor and a brightness adjustment program stored on the memory and running on the processor, the brightness adjustment program when executed by the processor implementing the steps of the brightness adjustment method according to any one of claims 1 to 6.
9. A computer-readable storage medium, having a brightness adjustment program stored thereon, which when executed by a processor implements the steps of the brightness adjustment method according to any one of claims 1 to 6.
CN202110513768.9A 2021-05-11 2021-05-11 Brightness adjusting method and device, television and computer readable storage medium Active CN113271422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110513768.9A CN113271422B (en) 2021-05-11 2021-05-11 Brightness adjusting method and device, television and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110513768.9A CN113271422B (en) 2021-05-11 2021-05-11 Brightness adjusting method and device, television and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113271422A CN113271422A (en) 2021-08-17
CN113271422B true CN113271422B (en) 2022-07-12

Family

ID=77230498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110513768.9A Active CN113271422B (en) 2021-05-11 2021-05-11 Brightness adjusting method and device, television and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113271422B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466147B (en) * 2021-12-23 2024-03-15 阿里巴巴(中国)有限公司 Video brightness adjusting method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107205125A (en) * 2017-06-30 2017-09-26 广东欧珀移动通信有限公司 A kind of image processing method, device, terminal and computer-readable recording medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3983276B2 (en) * 2006-02-08 2007-09-26 シャープ株式会社 Liquid crystal display
US7990431B2 (en) * 2008-03-14 2011-08-02 Asia Optical Co., Inc. Calculation method for the correction of white balance
CN106878780A (en) * 2017-04-28 2017-06-20 张青 It is capable of the intelligent TV set and its control system and control method of Intelligent adjustment brightness
CN109257640A (en) * 2018-11-20 2019-01-22 深圳创维-Rgb电子有限公司 A kind of electrical equipment control method, device, electrical equipment and medium
CN110572596A (en) * 2019-09-11 2019-12-13 深圳创维-Rgb电子有限公司 television and backlight control method and device thereof and readable storage medium
CN112289279B (en) * 2020-11-05 2022-04-12 Oppo广东移动通信有限公司 Screen brightness adjusting method and device, storage medium and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107205125A (en) * 2017-06-30 2017-09-26 广东欧珀移动通信有限公司 A kind of image processing method, device, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN113271422A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US10952146B2 (en) Method for dynamically adjusting energy-saving grade of terminal, non-transitory computer-readable storage medium, and terminal
US9927865B2 (en) Method for displaying image information and electronic device thereof
CN110113536B (en) Screen light supplementing method and device, storage medium and intelligent terminal
CN112073645B (en) Exposure control method, device, terminal equipment and storage medium
CN106658691B (en) Display control method and device and mobile terminal
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN106951054B (en) Application control method and device and mobile terminal
CN113676716B (en) White balance control method, device, terminal equipment and storage medium
US11232757B2 (en) Backlight control method and device, and computer-readable storage medium for improving the contrast, restoring the image, and ensuring the distortion of the image
CN113163141A (en) Display control method, display control device, television and computer-readable storage medium
CN113271422B (en) Brightness adjusting method and device, television and computer readable storage medium
US20220415248A1 (en) Driving method of display device, display device, and computer readable storage medium
KR102070322B1 (en) Display apparatus and display panel driving method thereof
CN100359932C (en) Self-adapting method for adjusting brightness in liquid crystal TV set
KR20090034108A (en) Display apparatus and control method of resolution using it
CN113038232A (en) Video playing method, device, equipment, server and storage medium
CN112347918A (en) Screen control method, system, terminal device and computer readable storage medium
CN109729280B (en) Image processing method and mobile terminal
WO2022193485A1 (en) Program playback method, display terminal and storage medium
CN112669769A (en) Display screen box body parameter correction method and device, equipment and storage medium
CN114760427A (en) LED display control method and device, intelligent terminal and storage medium
CN112767877A (en) Display adjusting method, device, equipment and storage medium
CN112349248B (en) Screen brightness adjusting method and device, multimedia terminal and computer readable storage medium
CN114495859B (en) Picture display method, device, display terminal and storage medium
CN112532971A (en) Image processing method, image processing device, display terminal and computer readable 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
GR01 Patent grant
GR01 Patent grant