CN112203022B - Electrochromic control method and device and computer readable storage medium - Google Patents

Electrochromic control method and device and computer readable storage medium Download PDF

Info

Publication number
CN112203022B
CN112203022B CN202011174160.XA CN202011174160A CN112203022B CN 112203022 B CN112203022 B CN 112203022B CN 202011174160 A CN202011174160 A CN 202011174160A CN 112203022 B CN112203022 B CN 112203022B
Authority
CN
China
Prior art keywords
brightness
average value
intervals
red
green
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
CN202011174160.XA
Other languages
Chinese (zh)
Other versions
CN112203022A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202011174160.XA priority Critical patent/CN112203022B/en
Publication of CN112203022A publication Critical patent/CN112203022A/en
Application granted granted Critical
Publication of CN112203022B publication Critical patent/CN112203022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/749Circuitry for compensating brightness variation in the scene by influencing the pick-up tube voltages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Abstract

The invention discloses an electrochromic control method, electrochromic control equipment and a computer-readable storage medium, wherein the method comprises the following steps: acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value and a blue brightness average value in the image data; then, obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness and the average value of the blue brightness; then, determining the voltage level corresponding to the exposure brightness value in a preset driving voltmeter; and finally, adjusting the driving voltage of the electrochromic film according to the voltage level. The method has the advantages that a humanized electrochromic control scheme is realized, the color of the electrochromic film can be adaptively adjusted according to the exposure brightness values of different pictures, the user impression is enhanced, the user is guided to adjust the shooting parameters such as the exposure brightness values, and the user experience is enhanced to a certain extent.

Description

Electrochromic control method, device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to an electrochromic control method, device and computer-readable storage medium.
Background
In the prior art, along with the rapid development of intelligent terminal equipment, the user also becomes higher and higher to intelligent terminal equipment's appearance design demand, however, the design scheme of terminal equipment among the prior art leaves the factory and has already been confirmed promptly, can't make the adaptability adjustment to the outward appearance colour in the later stage use.
In order to solve the defects in the prior art, a technical scheme of an electrochromic film is provided at present, but the control scheme of the electrochromic film applied to the device end is single at present, the presented effect is not rich enough, and the experience of a user is not good.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides an electrochromic control method, which comprises the following steps:
acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value and a blue brightness average value in the image data;
obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness and the average value of the blue brightness;
determining a voltage level corresponding to the exposure brightness value in a preset driving voltmeter;
and adjusting the driving voltage of the electrochromic film according to the voltage level.
Optionally, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data includes:
presetting seven red brightness intervals, seven green brightness intervals and seven blue brightness intervals according to the brightness value from small to large;
and judging the states of the red pixel, the green pixel and the blue pixel in the image data respectively falling into the seven red brightness intervals, the seven green brightness intervals and the seven blue brightness intervals.
Optionally, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data further includes:
presetting a first proportion threshold and a second proportion threshold, wherein the first proportion threshold is smaller than the second proportion threshold;
and determining the quantity proportion of each interval when the red pixel, the green pixel and the blue pixel respectively fall into the seven red brightness intervals, the seven green brightness intervals and the seven blue brightness intervals according to the state.
Optionally, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data further includes:
if the data proportion of a section is smaller than the first proportion threshold value, discarding the pixels in the section;
if the quantity ratio of a section is greater than the second ratio threshold, pixels in the section are discarded as well.
Optionally, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data further includes:
determining the number of remaining intervals that are not discarded among the seven red luminance intervals, the seven green luminance intervals, and the seven blue luminance intervals, respectively;
if the number of the remaining intervals is one of the seven red brightness intervals, the seven green brightness intervals, or the seven blue brightness intervals, the average brightness value of all the pixels of one of the remaining intervals is used as the average brightness value of the red brightness, the average brightness value of the green brightness, or the average brightness value of the blue brightness.
Optionally, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data further includes:
if the number of the remaining intervals is more than one, determining whether two or more remaining intervals are continuous;
if two or more residual intervals are continuous, the brightness average value of all pixels of the two or more continuous residual intervals is taken as the red brightness average value, the green brightness average value or the blue brightness average value.
Optionally, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data further includes:
if two or more remaining intervals are discontinuous, discarding at least one pixel in the interval of which the quantity proportion is smaller than a preset third proportion threshold;
and taking the brightness average value of all the pixels of the discarded residual interval as the red brightness average value, the green brightness average value or the blue brightness average value.
Optionally, the obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness, and the average value of the blue brightness includes:
respectively determining a first coefficient, a second coefficient and a third coefficient corresponding to the red brightness average value, the green brightness average value and the blue brightness average value;
and obtaining the exposure brightness value of the image data according to the sum of the red brightness average value, the green brightness average value and the blue brightness average value and the products of the first coefficient, the second coefficient and the third coefficient which correspond to the red brightness average value, the green brightness average value and the blue brightness average value respectively.
The invention also proposes an electrochromic control device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the electrochromic control method as defined in any one of the preceding claims.
The present invention also proposes a computer-readable storage medium having stored thereon an electrochromic control program which, when executed by a processor, implements the steps of the electrochromic control method according to any one of the preceding claims.
By implementing the electrochromic control method, the device and the computer readable storage medium, the image data in the shooting process is obtained, and the average value of red brightness, the average value of green brightness and the average value of blue brightness in the image data are determined; then, obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness and the average value of the blue brightness; then, determining the voltage grade corresponding to the exposure brightness value in a preset driving voltmeter; and finally, adjusting the driving voltage of the electrochromic film according to the voltage level. The user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, so that the look and feel of the user can be enhanced, the effect of guiding the user to adjust the shooting parameters such as the exposure brightness values can be achieved, and the user experience is enhanced to a certain extent.
Drawings
The invention will be further described with reference to the following drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a communication network system architecture diagram provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a first embodiment of the electrochromic control method of the present invention;
FIG. 4 is a flow chart of a second embodiment of the electrochromic control method of the present invention;
FIG. 5 is a flow chart of a third embodiment of an electrochromic control method according to the invention;
FIG. 6 is a flow chart of a fourth embodiment of the electrochromic control scheme of this invention;
FIG. 7 is a flow chart of a fifth embodiment of the electrochromic control method of the present invention;
FIG. 8 is a flow chart of a sixth embodiment of the electrochromic control scheme of this invention;
FIG. 9 is a flow chart of a seventh embodiment of the electrochromic control scheme of this invention;
fig. 10 is a flowchart of an eighth embodiment of the electrochromic control method of the invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "part", or "unit" used to indicate elements are used only for facilitating the description of the present invention, and have no particular meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following specifically describes the components of the mobile terminal with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division multiplexing-Long Term Evolution), and TDD-LTE (Time Division multiplexing-Long Term Evolution), etc.
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing gestures of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometers and taps), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, the description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, and the like.
Based on the hardware structure of the mobile terminal and the communication network system, the embodiments of the method of the invention are provided.
Example one
Fig. 3 is a flow chart of a first embodiment of the electrochromic control method of the present invention. An electrochromic control method, the method comprising:
s1, acquiring image data in the shooting process, and determining a red brightness average value, a green brightness average value and a blue brightness average value in the image data;
s2, obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness and the average value of the blue brightness;
s3, determining the voltage level corresponding to the exposure brightness value in a preset driving voltage table;
and S4, adjusting the driving voltage of the electrochromic film according to the voltage level.
In this embodiment, first, image data in a shooting process is obtained, and a red luminance average value, a green luminance average value, and a blue luminance average value in the image data are determined; then, obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness and the average value of the blue brightness; then, determining the voltage grade corresponding to the exposure brightness value in a preset driving voltmeter; and finally, adjusting the driving voltage of the electrochromic film according to the voltage level. In this embodiment, considering that the working principle of the electrochromic film is to provide different driving voltages to the electrochromic film, and the light transmittance thereof is different, thereby forming colors of different color levels, the three kinds of red, blue and green electrochromic films are used in combination, thereby forming color display of different color levels. Therefore, in this embodiment, when the camera is turned on, the exposure value of the current picture is obtained, and different driving voltages are provided for the color-changing film according to different exposure values to present colors of different depths, so as to improve the judgment of the user and optimize the adjustment of the shooting effect.
Specifically, in this embodiment, taking the mobile terminal as an example, when the mobile terminal enters the camera mode, the camera light collection sensor works to collect image data, and then the image data is converted into an electrical signal, and the electrical signal is converted into a digital image signal after a/D (analog to digital conversion), and then the pixel photosensitive value is processed. Firstly, acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value and a blue brightness average value in the image data, wherein the average value can represent the color brightness composition in the image data; then, obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness, and the average value of the blue brightness, thereby determining a brightness value of an environmental object or a main object in a current preview state or a shooting state, and optionally, the brightness value can also be used for representing a brightness value of a whole picture; then, determining a voltage level corresponding to the exposure brightness value in a preset driving voltage table, wherein the driving voltage corresponding to each exposure brightness value is determined according to the setting of a user or factory default configuration, optionally providing a more intuitive setting scheme in the setting process of the user, for example, determining the color and transparency of the corresponding electrochromic film according to the exposure brightness degree, then determining the exposure brightness value corresponding to the exposure degree, and determining the driving voltage corresponding to the color and transparency of the electrochromic film, thereby generating the corresponding relationship between each exposure brightness value and each driving voltage according to the setting operation of the user; and finally, adjusting the driving voltage of the electrochromic film according to the voltage level. In this embodiment, considering that the working principle of the electrochromic film is to provide different driving voltages to the electrochromic film, and the light transmittance thereof is different, thereby forming colors of different color levels, the three kinds of red, blue and green electrochromic films are used in combination, thereby forming color display of different color levels.
The method has the advantages that the red brightness average value, the green brightness average value and the blue brightness average value in the image data are determined by acquiring the image data in the shooting process; then, obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness and the average value of the blue brightness; then, determining the voltage grade corresponding to the exposure brightness value in a preset driving voltmeter; and finally, adjusting the driving voltage of the electrochromic film according to the voltage level. The humanized electrochromic control scheme is realized, so that a user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, the appearance of the user can be enhanced, the effect of guiding the user to adjust the shooting parameters such as the exposure brightness values can be played, and the user experience is enhanced to a certain extent.
Example two
Fig. 4 is a flowchart of a second embodiment of the electrochromic control method according to the present invention, and based on the above embodiments, the acquiring image data during shooting and determining a red luminance average value, a green luminance average value, and a blue luminance average value in the image data includes:
s11, presetting seven red brightness intervals, seven green brightness intervals and seven blue brightness intervals according to the brightness values from small to large;
s12, determining states of the red pixel, the green pixel, and the blue pixel in the image data falling into the seven red luminance intervals, the seven green luminance intervals, and the seven blue luminance intervals, respectively.
In this embodiment, first, seven red luminance intervals, seven green luminance intervals, and seven blue luminance intervals are preset according to the luminance values from small to large; then, the state in which the red pixel, the green pixel, and the blue pixel in the image data fall into the seven red luminance sections, the seven green luminance sections, and the seven blue luminance sections, respectively, is determined.
Optionally, in this embodiment, for example, the photosensitive luminance values of the Red pixel points are classified according to more than seven luminance intervals of 0 to 50cd/m2, 50 to 100cd/m2, 100 to 150cd/m2, 150 to 200cd/m2, 200 to 250cd/m2, 250 to 300cd/m2, and >300cd/m2, and then the proportion of the number of the pixel points in each luminance interval is calculated;
optionally, in this embodiment, for example, the photosensitive luminance values of the Green pixel points are classified according to more than seven luminance intervals of 0 to 50cd/m2, 50 to 100cd/m2, 100 to 150cd/m2, 150 to 200cd/m2, 200 to 250cd/m2, 250 to 300cd/m2, and >300cd/m2, and then the proportion of the number of the pixel points in each luminance interval is calculated;
optionally, in this embodiment, for example, the light sensing luminance values of the Blue pixel points are classified according to more than seven luminance intervals of 0 to 50cd/m2, 50 to 100cd/m2, 100 to 150cd/m2, 150 to 200cd/m2, 200 to 250cd/m2, 250 to 300cd/m2, and >300cd/m2, and then the proportion of the number of the pixel points in each luminance interval is calculated.
The method has the advantages that seven red brightness intervals, seven green brightness intervals and seven blue brightness intervals are preset according to the brightness values from small to large; then, the state in which the red pixel, the green pixel, and the blue pixel in the image data fall into the seven red luminance sections, the seven green luminance sections, and the seven blue luminance sections, respectively, is determined. The method provides a judgment basis of a pixel distribution interval for realizing a humanized electrochromic control scheme, so that a user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, the look and feel of the user can be enhanced, the user can be guided to adjust the shooting parameters such as the exposure brightness values, and the user experience is enhanced to a certain extent.
EXAMPLE III
Fig. 5 is a flowchart of a third embodiment of the electrochromic control method according to the present invention, and based on the above embodiments, the acquiring image data in a shooting process, and determining a red luminance average value, a green luminance average value, and a blue luminance average value in the image data further includes:
s13, presetting a first proportion threshold and a second proportion threshold, wherein the first proportion threshold is smaller than the second proportion threshold;
and S14, determining the quantity proportion of each interval when the red pixel, the green pixel and the blue pixel respectively fall into the seven red brightness intervals, the seven green brightness intervals and the seven blue brightness intervals according to the state.
In this embodiment, first, a first ratio threshold and a second ratio threshold are preset, where the first ratio threshold is smaller than the second ratio threshold; then, the number proportion of each interval when the red pixel, the green pixel and the blue pixel respectively fall into the seven red brightness intervals, the seven green brightness intervals and the seven blue brightness intervals is determined according to the state.
Alternatively, in the present embodiment, for example, for a red pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, and then, the proportion of the red pixel falling into each of seven red luminance intervals is determined;
alternatively, in the present embodiment, for example, for a green pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, and then, the proportion of the green pixel falling into each of seven green luminance intervals is determined;
alternatively, in the present embodiment, for example, for a blue pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, and then, the proportion of the blue pixel that falls into each of the seven blue luminance intervals is determined.
The method has the advantages that a first proportion threshold value and a second proportion threshold value are preset, wherein the first proportion threshold value is smaller than the second proportion threshold value; then, the number proportion of each interval when the red pixel, the green pixel and the blue pixel respectively fall into the seven red brightness intervals, the seven green brightness intervals and the seven blue brightness intervals is determined according to the state. The judgment condition of the pixel distribution interval is provided for realizing a humanized electrochromic control scheme, so that a user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, the user can be enhanced in appearance, the user can be guided to adjust the shooting parameters such as the exposure brightness values, and the user experience is enhanced to a certain extent.
Example four
Fig. 6 is a flowchart of a fourth embodiment of the electrochromic control method according to the present invention, and based on the above embodiment, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data further includes:
s15, if the data proportion of a section is smaller than the first proportion threshold value, discarding the pixels in the section;
and S16, if the quantity proportion of a section is larger than the second proportion threshold value, discarding the pixels in the section.
In this embodiment, first, if the data ratio of a section is smaller than the first ratio threshold, discarding the pixels in the section; then, if the quantity ratio of a section is greater than the second ratio threshold, the pixels in the section are discarded as well.
Optionally, in this embodiment, for example, for a red pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion that the red pixel falls into each of seven red luminance intervals is determined, and if the data proportion of one interval is less than 10%, the red pixel in the interval is discarded; then, if the proportion of the number of a section is greater than 95%, discarding the red pixels in the section as well, that is, discarding the section in the subsequent calculation process;
optionally, in this embodiment, for example, for a green pixel, the first proportional threshold and the second proportional threshold are determined to be 10% and 95%, respectively, then the proportion that the green pixel falls into each of seven green luminance intervals is determined, and if the data proportion of one interval is less than 10%, the green pixel in the interval is discarded; then, if the quantity proportion of a section is greater than 95%, discarding the green pixels in the section as well, that is, discarding the section in the subsequent calculation process;
optionally, in this embodiment, for example, for a blue pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion that the blue pixel falls into each of seven blue luminance intervals is determined, and if the data proportion of one interval is less than 10%, the blue pixel in the interval is discarded; then, if the number proportion of a section is greater than 95%, the blue pixels in the section are also discarded, that is, the section is discarded in the subsequent calculation process.
The method has the advantages that pixels in an interval are abandoned by judging if the data proportion of the interval is smaller than the first proportion threshold; then, if the quantity ratio of a section is greater than the second ratio threshold, the pixels in the section are discarded as well. The abandon conditions of all distribution intervals are provided for realizing a humanized electrochromic control scheme, so that a user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, the look and feel of the user can be enhanced, the user can be guided to adjust the shooting parameters such as the exposure brightness values, and the user experience is enhanced to a certain extent.
EXAMPLE five
Fig. 7 is a flowchart of a fifth embodiment of the electrochromic control method according to the present invention, and based on the above embodiment, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data further includes:
s17, determining the number of remaining intervals that are not discarded among the seven red luminance intervals, the seven green luminance intervals, and the seven blue luminance intervals, respectively;
s181, if the number of the remaining intervals is one of the seven red luminance intervals, the seven green luminance intervals, or the seven blue luminance intervals, using the luminance average value of all the pixels in one of the remaining intervals as the red luminance average value, the green luminance average value, or the blue luminance average value.
In the present embodiment, first, the number of remaining sections that are not discarded is determined in each of the seven red luminance sections, the seven green luminance sections, and the seven blue luminance sections; then, if the number of the remaining sections is one of the seven red luminance sections, the seven green luminance sections, or the seven blue luminance sections, the luminance average value of all the pixels of one of the remaining sections is used as the red luminance average value, the green luminance average value, or the blue luminance average value.
Optionally, in this embodiment, for example, for a red pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion that the red pixel falls into each of seven red luminance intervals is determined, and if the data proportion of one interval is less than 10%, the red pixel in the interval is discarded; then, if the quantity proportion of one interval is more than 95%, red pixels in the interval are discarded in the same way, that is, the interval is discarded in the subsequent calculation process, and finally, if only one interval remains after discarding, the average value Yavg _ red of the brightness of all pixel points in the brightness interval is obtained and stored;
optionally, in this embodiment, for example, for a green pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion of the green pixel falling into each of seven green luminance intervals is determined, and if the data proportion of one interval is less than 10%, the green pixel in the interval is discarded; then, if the quantity proportion of one interval is greater than 95%, discarding the Green pixels in the interval in the same way, namely, discarding the interval in the subsequent calculation process, and finally, if only one interval remains after discarding, acquiring and storing the brightness average value Yavg _ Green of all pixel points in the brightness interval;
optionally, in this embodiment, for example, for a blue pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion that the blue pixel falls into each of seven blue luminance intervals is determined, and if the data proportion of one interval is less than 10%, the blue pixel in the interval is discarded; and then, if the quantity proportion of one interval is greater than 95%, discarding the blue pixels in the interval in the same way, namely, discarding the interval in the subsequent calculation process, and finally, if only one interval is left after discarding, acquiring and storing the brightness average value Yavg _ Bule of all pixel points in the brightness interval.
The present embodiment has an advantageous effect that the number of remaining intervals that are not discarded is determined by each of the seven red luminance intervals, the seven green luminance intervals, and the seven blue luminance intervals; then, if the number of the remaining sections is one of the seven red luminance sections, the seven green luminance sections, or the seven blue luminance sections, the luminance average value of all the pixels of the one remaining section is used as the red luminance average value, the green luminance average value, or the blue luminance average value. A calculation scheme of a remaining interval is provided for realizing a humanized electrochromic control scheme, so that a user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, the look and feel of the user can be enhanced, the user can be guided to adjust the shooting parameters such as the exposure brightness values, and the user experience is enhanced to a certain extent.
EXAMPLE six
Fig. 8 is a flowchart of a sixth embodiment of the electrochromic control method according to the present invention, and based on the above embodiments, the acquiring image data in a shooting process, and determining a red luminance average value, a green luminance average value, and a blue luminance average value in the image data further includes:
s182, if the number of the remaining intervals is more than one, determining whether two or more remaining intervals are continuous;
and S183, if the two or more residual intervals are continuous, taking the brightness average value of all the pixels of the continuous two or more residual intervals as the red brightness average value, the green brightness average value or the blue brightness average value.
In this embodiment, first, if the number of the remaining intervals is greater than one, it is determined whether two or more remaining intervals are consecutive; then, if two or more of the remaining sections are continuous, the average value of the luminance of all the pixels of the continuous two or more of the remaining sections is taken as the red luminance average value, or the green luminance average value, or the blue luminance average value.
Optionally, in this embodiment, for example, for a red pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion that the red pixel falls into each of seven red luminance intervals is determined, and if the data proportion of one interval is less than 10%, the red pixel in the interval is discarded; then, if the proportion of the number of one interval is more than 95%, discarding the red pixels in the interval in the same way, namely, discarding the interval in the subsequent calculation process, and finally, if two or more continuous remaining intervals exist after discarding, acquiring and storing the brightness average value Yavg _ red of all pixel points in the continuous brightness interval;
optionally, in this embodiment, for example, for a green pixel, the first proportional threshold and the second proportional threshold are determined to be 10% and 95%, respectively, then the proportion that the green pixel falls into each of seven green luminance intervals is determined, and if the data proportion of one interval is less than 10%, the green pixel in the interval is discarded; then, if the quantity proportion of one interval is more than 95%, discarding the Green pixels in the interval, namely, discarding the interval in the subsequent calculation process, and finally, if two or more continuous residual intervals exist after discarding, acquiring and storing the brightness average value Yavg _ Green of all the pixel points in the continuous brightness interval;
optionally, in this embodiment, for example, for a blue pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion that the blue pixel falls into each of seven blue luminance intervals is determined, and if the data proportion of one interval is less than 10%, the blue pixel in the interval is discarded; and then, if the quantity proportion of one interval is more than 95%, discarding the blue pixels in the interval, namely, discarding the interval in the subsequent calculation process, and finally, if two or more continuous residual intervals exist after discarding, acquiring and storing the brightness average value Yavg _ Bule of all the pixel points in the continuous brightness interval.
The embodiment has the advantages that whether two or more remaining intervals are continuous or not is determined by judging whether the number of the remaining intervals is more than one; then, if two or more of the remaining sections are continuous, the average value of the brightness of all the pixels of the continuous two or more of the remaining sections is taken as the average value of the red brightness, or the average value of the green brightness, or the average value of the blue brightness. The calculation scheme of two or more continuous remaining intervals is provided for realizing a humanized electrochromic control scheme, so that a user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, the user's impression can be enhanced, the user can be guided to adjust the shooting parameters such as the exposure brightness values, and the user experience is enhanced to a certain extent.
EXAMPLE seven
Fig. 9 is a flowchart of a seventh embodiment of the electrochromic control method according to the present invention, and based on the above embodiment, the acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value, and a blue brightness average value in the image data, further includes:
s184, if two or more remaining intervals are discontinuous, discarding at least one pixel in an interval of which the quantity proportion is smaller than a preset third proportion threshold;
and S185, taking the brightness average value of all the pixels of the discarded residual interval as the red brightness average value, the green brightness average value or the blue brightness average value.
In this embodiment, first, if two or more remaining sections are discontinuous, discarding at least one pixel in a section where the quantity ratio is smaller than a preset third ratio threshold; then, the average value of the luminance of all the pixels of the remaining interval after discarding is taken as the red luminance average value, or the green luminance average value, or the blue luminance average value.
Optionally, in this embodiment, for example, for a red pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion that the red pixel falls into each of seven red luminance intervals is determined, and if the data proportion of one interval is less than 10%, the red pixel in the interval is discarded; then, if the quantity proportion of one interval is more than 95%, red pixels in the interval are abandoned as well, namely, in the subsequent calculation process, the interval is abandoned, finally, if two or more discontinuous remaining intervals exist after abandoning, the proportion of the pixel points in the brightness intervals is judged, one or more intervals with low pixel point proportion are abandoned, and the brightness average value Yavg _ red of all the pixel points in the brightness interval with high pixel point proportion is obtained and stored;
optionally, in this embodiment, for example, for a green pixel, the first proportional threshold and the second proportional threshold are determined to be 10% and 95%, respectively, then the proportion that the green pixel falls into each of seven green luminance intervals is determined, and if the data proportion of one interval is less than 10%, the green pixel in the interval is discarded; then, if the quantity proportion of one interval is more than 95%, discarding the Green pixels in the interval, namely, discarding the interval in the subsequent calculation process, and finally, if two or more discontinuous remaining intervals exist after discarding, judging the proportion of the pixels in the multiple brightness intervals, discarding one or more intervals with low pixel proportion, and obtaining and storing the brightness average value Yavg _ Green of all the pixels in the brightness interval with high pixel proportion;
optionally, in this embodiment, for example, for a blue pixel, the first proportion threshold and the second proportion threshold are determined to be 10% and 95%, respectively, then the proportion that the blue pixel falls into each of seven blue luminance intervals is determined, and if the data proportion of one interval is less than 10%, the blue pixel in the interval is discarded; and then, if the quantity proportion of one interval is more than 95%, discarding the Blue pixels in the interval, namely, discarding the interval in the subsequent calculation process, and finally, if two or more discontinuous remaining intervals exist after discarding, judging the proportion of the pixels in the brightness intervals, discarding one or more intervals with low proportion of the pixels, and acquiring and storing the brightness average value Yavg _ Blue of all the pixels in the brightness interval with high proportion of the pixels.
The method has the advantages that if two or more remaining intervals are discontinuous, at least one pixel in the interval with the quantity ratio smaller than a preset third ratio threshold value is abandoned; then, the average value of the luminance of all the pixels of the remaining interval after discarding is taken as the red luminance average value, or the green luminance average value, or the blue luminance average value. The method provides a calculation scheme of two or more discontinuous remaining intervals for realizing a humanized electrochromic control scheme, so that a user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, the look and feel of the user can be enhanced, the user can be guided to adjust shooting parameters such as the exposure brightness values, and the user experience is enhanced to a certain extent.
Example eight
Fig. 10 is a flowchart of an eighth embodiment of the electrochromic control method according to the present invention, wherein the obtaining of the exposure brightness value of the image data according to the average value of the red brightness average value, the green brightness average value, and the blue brightness average value includes:
s21, respectively determining a first coefficient, a second coefficient and a third coefficient corresponding to the red brightness average value, the green brightness average value and the blue brightness average value;
and S22, obtaining the exposure brightness value of the image data according to the sum of the red brightness average value, the green brightness average value and the blue brightness average value and the products of the first coefficient, the second coefficient and the third coefficient which are respectively corresponding to the red brightness average value, the green brightness average value and the blue brightness average value.
In this embodiment, first, a first coefficient, a second coefficient and a third coefficient corresponding to the red luminance average value, the green luminance average value and the blue luminance average value are determined respectively; and then, obtaining the exposure brightness value of the image data according to the sum of the red brightness average value, the green brightness average value and the blue brightness average value and the products of the first coefficient, the second coefficient and the third coefficient which correspond to the red brightness average value, the green brightness average value and the blue brightness average value respectively.
Optionally, in this embodiment, the first coefficient, the second coefficient, and the third coefficient are 0.299, 0.587, and 0.114, respectively.
Specifically, as described in the above example, the newly calculated Yavg _ Red, Yavg _ Green, and Yavg _ Blue data are processed to obtain the exposure luminance Pix _ color of the imaging interface, Yavg _ Red 0.299+ Yavg _ Green 0.587+ Yavg _ Blue 0.114.
In this embodiment, it should be further added that the calculation scheme of the average current of the pixel point in the single brightness interval is as follows:
if the luminance interval has a pixel luminance values of a pixels, and the pixel luminance values are Y1, Y2, and Y3 … … Ya, respectively, the average luminance Yavg of the pixel interval is (Y1+ Y2+ Y3+ … … + Ya)/N.
The method for calculating the total average brightness value of the plurality of brightness intervals comprises the following steps: assuming that n brightness intervals need to calculate the average pixel luminance current, the number of pixels in the first brightness interval is a1, the average pixel luminance current is Yavg _ a1, the number of pixels in the second brightness interval is a2, the average pixel luminance current is Yavg _ a2, the number of pixels in the nth brightness interval is an, and the average luminance current is Yavg _ an, the average luminance value Yavg of the n brightness intervals is (Yavg _ a1 a1+ Yavg _ a2 a2+ … … + Yavg _ an)/(a1+ a2+ … … + an).
Optionally, in this embodiment, a parameter table of an exposure brightness value and a driving voltage level of the color-changing film may also be set, where a mapping table of a remaining exposure brightness value Pix _ color and a driving voltage level Bn of the color-changing film is determined, where the mapping table is as follows:
Pix_color:Bn
00~10cd/m2 1
10~20cd/m2 2
……
>300cd/m2 30
it is understood that the mapping table may be adaptively modified according to parameters such as user settings, usage habits, and a template of the shooting.
The embodiment has the advantages that the first coefficient, the second coefficient and the third coefficient corresponding to the red brightness average value, the green brightness average value and the blue brightness average value are respectively determined; and then, obtaining the exposure brightness value of the image data according to the sum of the red brightness average value, the green brightness average value and the blue brightness average value and the products of the first coefficient, the second coefficient and the third coefficient which correspond to the red brightness average value, the green brightness average value and the blue brightness average value respectively. The method provides a determination scheme of the driving voltage for realizing a humanized electrochromic control scheme, so that a user can adaptively adjust the color of the electrochromic film according to the exposure brightness values of different pictures in the shooting process, the look and feel of the user can be enhanced, the user can be guided to adjust the shooting parameters such as the exposure brightness values, and the user experience is enhanced to a certain extent.
Example nine
Based on the above embodiments, the present invention also provides an electrochromic control device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the electrochromic control method according to any one of the above embodiments.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
EXAMPLE ten
Based on the above embodiment, the present invention further provides a computer readable storage medium, having an electrochromic control program stored thereon, where the electrochromic control program, when executed by a processor, implements the steps of the electrochromic control method according to any one of the above embodiments.
It should be noted that the media embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are applicable to the media embodiment, which is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the particular illustrative embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but is intended to cover various modifications, equivalent arrangements, and equivalents thereof, which may be made by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (4)

1. An electrochromic control method, characterized in that the method comprises:
acquiring image data in a shooting process, and determining a red brightness average value, a green brightness average value and a blue brightness average value in the image data;
obtaining an exposure brightness value of the image data according to the average value of the red brightness, the average value of the green brightness and the average value of the blue brightness;
determining a voltage level corresponding to the exposure brightness value in a preset driving voltmeter;
adjusting the driving voltage of the electrochromic film according to the voltage level;
the acquiring image data in a shooting process and determining a red brightness average value, a green brightness average value and a blue brightness average value in the image data includes:
presetting seven red brightness intervals, seven green brightness intervals and seven blue brightness intervals according to the brightness value from small to large;
judging the states of red pixels, green pixels and blue pixels in the image data which respectively fall into the seven red brightness intervals, the seven green brightness intervals and the seven blue brightness intervals;
presetting a first proportion threshold and a second proportion threshold, wherein the first proportion threshold is smaller than the second proportion threshold;
determining the quantity proportion of each interval when the red pixel, the green pixel and the blue pixel respectively fall into the seven red brightness intervals, the seven green brightness intervals and the seven blue brightness intervals according to the state;
if the quantity proportion of a section is smaller than the first proportion threshold value, discarding the pixels in the section;
if the quantity proportion of a section is greater than the second proportion threshold value, discarding the pixels in the section;
determining the number of remaining intervals that are not discarded among the seven red luminance intervals, the seven green luminance intervals, and the seven blue luminance intervals, respectively;
if the number of the remaining intervals is one of the seven red brightness intervals, the seven green brightness intervals or the seven blue brightness intervals, taking the brightness average value of all the pixels of one remaining interval as the red brightness average value, the green brightness average value or the blue brightness average value;
if the number of the remaining intervals is more than one, determining whether two or more remaining intervals are continuous;
if two or more residual intervals are continuous, taking the brightness average value of all pixels of the two or more continuous residual intervals as the red brightness average value, the green brightness average value or the blue brightness average value;
if two or more remaining intervals are discontinuous, discarding at least one pixel in the interval of which the quantity proportion is smaller than a preset third proportion threshold;
and taking the brightness average value of all the pixels of the discarded residual interval as the red brightness average value, the green brightness average value or the blue brightness average value.
2. The electrochromic control method according to claim 1, wherein the obtaining an exposure luminance value of the image data from the average value of the red luminance average value, the green luminance average value, and the average value of the blue luminance average value comprises:
respectively determining a first coefficient, a second coefficient and a third coefficient corresponding to the red brightness average value, the green brightness average value and the blue brightness average value;
and obtaining the exposure brightness value of the image data according to the sum of the red brightness average value, the green brightness average value and the blue brightness average value and the products of the first coefficient, the second coefficient and the third coefficient which correspond to the red brightness average value, the green brightness average value and the blue brightness average value respectively.
3. An electrochromic control appliance, characterized in that the appliance comprises a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the electrochromic control method as claimed in claim 1 or 2.
4. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an electrochromic control program which, when executed by a processor, implements the steps of the electrochromic control method according to claim 1 or 2.
CN202011174160.XA 2020-10-28 2020-10-28 Electrochromic control method and device and computer readable storage medium Active CN112203022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011174160.XA CN112203022B (en) 2020-10-28 2020-10-28 Electrochromic control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011174160.XA CN112203022B (en) 2020-10-28 2020-10-28 Electrochromic control method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112203022A CN112203022A (en) 2021-01-08
CN112203022B true CN112203022B (en) 2022-08-19

Family

ID=74012447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011174160.XA Active CN112203022B (en) 2020-10-28 2020-10-28 Electrochromic control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112203022B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114690499B (en) * 2022-06-01 2022-09-06 深圳市合川智能科技有限公司 Control method for regulating colors of watchband of intelligent watch and intelligent watch

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007026283A2 (en) * 2005-08-31 2007-03-08 Koninklijke Philips Electronics, N.V. Ambient lighting derived from video content using adaptive extraction regions
CN103869569A (en) * 2012-12-18 2014-06-18 株式会社日本显示器 Display device
CN109783182A (en) * 2019-02-15 2019-05-21 百度在线网络技术(北京)有限公司 A kind of method of adjustment, device, equipment and the medium of page subject matter tone
CN111047653A (en) * 2019-11-11 2020-04-21 北京奇艺世纪科技有限公司 Dominant hue determination method, device, equipment and readable medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360403A (en) * 2008-09-23 2009-02-04 无敌科技(西安)有限公司 Apparatus and method capable of automatically adjusting outer color
CN105955754B (en) * 2016-05-18 2019-09-17 青岛海信移动通信技术股份有限公司 A kind of user interface character displaying method and device
CN107527374A (en) * 2017-08-18 2017-12-29 珠海市君天电子科技有限公司 A kind of method and apparatus of text importing
CN107621738B (en) * 2017-10-19 2021-01-08 维沃移动通信有限公司 Control method of mobile terminal and mobile terminal
CN108646995A (en) * 2018-03-30 2018-10-12 维沃移动通信有限公司 A kind of control method, device and the mobile terminal of display color
CN110349223B (en) * 2018-04-08 2021-04-30 中兴通讯股份有限公司 Image processing method and device
CN110263301B (en) * 2019-06-27 2023-12-05 北京百度网讯科技有限公司 Method and device for determining color of text

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007026283A2 (en) * 2005-08-31 2007-03-08 Koninklijke Philips Electronics, N.V. Ambient lighting derived from video content using adaptive extraction regions
CN103869569A (en) * 2012-12-18 2014-06-18 株式会社日本显示器 Display device
CN109783182A (en) * 2019-02-15 2019-05-21 百度在线网络技术(北京)有限公司 A kind of method of adjustment, device, equipment and the medium of page subject matter tone
CN111047653A (en) * 2019-11-11 2020-04-21 北京奇艺世纪科技有限公司 Dominant hue determination method, device, equipment and readable medium

Also Published As

Publication number Publication date
CN112203022A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN108989563B (en) Double-sided screen display method, mobile terminal and computer readable storage medium
CN107731199B (en) Screen color temperature adjusting method, terminal and computer readable storage medium
CN107645606B (en) Screen brightness adjusting method, mobile terminal and readable storage medium
CN107295270B (en) Image brightness value determination method and device, terminal and computer-readable storage medium
CN111708503B (en) Screen projection control method, device and computer readable storage medium
CN109032741B (en) Terminal screen brightness adjusting method, mobile terminal and storage medium
CN110417999B (en) Screen brightness adjusting method, mobile terminal and computer readable storage medium
CN107067842B (en) Color value adjusting method, mobile terminal and storage medium
CN107705247B (en) Image saturation adjusting method, terminal and storage medium
CN107506163B (en) Method for adjusting screen display, terminal and computer readable storage medium
CN112822538A (en) Screen projection display method, screen projection device, terminal and storage medium
CN110069122B (en) Screen control method, terminal and computer readable storage medium
CN108984063B (en) Desktop interaction regulation and control method and device and computer readable storage medium
CN111880349A (en) Electrochromic display control method, device and computer readable storage medium
CN111899695A (en) Backlight adjusting method, terminal device and readable storage medium
CN108234893B (en) Brightness adjusting method, brightness adjusting equipment and computer readable storage medium
CN109817130B (en) Color temperature regulating method, device and computer readable storage medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN111381762A (en) Double-screen switching method and device and computer readable storage medium
CN112203022B (en) Electrochromic control method and device and computer readable storage medium
CN112612372A (en) Touch event regulation and control method and device and computer readable storage medium
CN109521979B (en) Display control method, terminal and computer-readable storage medium
CN107844353B (en) Display method, terminal and computer readable storage medium
CN112000268B (en) Electrochromic control method and device and computer readable storage medium
CN109639889B (en) Display control method, double-screen 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