CN109561258B - Light supplementing method and terminal equipment - Google Patents

Light supplementing method and terminal equipment Download PDF

Info

Publication number
CN109561258B
CN109561258B CN201811361665.XA CN201811361665A CN109561258B CN 109561258 B CN109561258 B CN 109561258B CN 201811361665 A CN201811361665 A CN 201811361665A CN 109561258 B CN109561258 B CN 109561258B
Authority
CN
China
Prior art keywords
brightness value
screen
terminal device
preview image
dark area
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
CN201811361665.XA
Other languages
Chinese (zh)
Other versions
CN109561258A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811361665.XA priority Critical patent/CN109561258B/en
Publication of CN109561258A publication Critical patent/CN109561258A/en
Application granted granted Critical
Publication of CN109561258B publication Critical patent/CN109561258B/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/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a light supplementing method and terminal equipment, which are applied to the technical field of communication and can solve the problem that the difference between light and shade in different areas in a shot picture is large in the prior art. The method is applied to a terminal device comprising a first screen and a second screen, and comprises the following steps: when a first preview image is displayed on a first screen, determining a dark area in the first preview image, wherein the first preview image comprises n image areas, and the dark area is an image area of which a first brightness value is smaller than or equal to a preset brightness value in the n image areas; and lightening a first display area corresponding to the dark area on the second screen by using a second brightness value, wherein the first screen and the second screen are arranged at a preset angle. The method is applied to the scene of light supplement.

Description

Light supplementing method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a light supplementing method and terminal equipment.
Background
With the popularization of terminal technology, the application of terminal equipment is more and more extensive.
The user often uses terminal equipment to take a picture, and in a scene of actually taking the picture, some areas in the shot picture are brighter and other areas are darker due to the fact that hands, the terminal equipment or other objects block light, so that the difference between the brightness of different areas in the shot picture is larger.
Disclosure of Invention
The embodiment of the invention provides a light supplementing method and terminal equipment, which are used for solving the problem that in the prior art, the difference between light and shade in different areas in a shot picture is large.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a light supplement method is provided, and is applied to a terminal device, where the terminal device includes a first screen and a second screen, and the method includes: when a first preview image is displayed on a first screen, determining a dark area in the first preview image, wherein the first preview image comprises n image areas, and the dark area is an image area of which a first brightness value is smaller than or equal to a preset brightness value in the n image areas; and lightening a first display area corresponding to the dark area on the second screen by using a second brightness value, wherein the first screen and the second screen are arranged at a preset angle.
In a second aspect, a terminal device is provided, which includes: a determining module and a processing module; the device comprises a determining module, a judging module and a displaying module, wherein the determining module is used for determining a dark area in a first preview image when the first preview image is displayed on a first screen, the first preview image comprises n image areas, and the dark area is an image area of which a first brightness value is smaller than or equal to a preset brightness value in the n image areas; and the processing module is used for lighting a first display area corresponding to the dark area on the second screen by using a second brightness value, and the first screen and the second screen are arranged at a preset angle.
In a third aspect, a terminal device is provided, where the terminal device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the light supplement method according to the first aspect are implemented.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, implements the steps of the fill lighting method according to the first aspect.
In the embodiment of the invention, the terminal device comprises a first screen and a second screen, and when a first preview image is displayed on the first screen, a dark area in the first preview image is determined, wherein the first preview image comprises n image areas, and the dark area is an image area with a first brightness value smaller than or equal to a preset brightness value in the n image areas; and lightening a first display area corresponding to the dark area on the second screen by using a second brightness value, wherein the first screen and the second screen are arranged at a preset angle. Through the scheme, the terminal equipment can light the first display area corresponding to the dark area on the second screen by the second brightness value under the condition that the dark area exists in the first preview image in the first screen, so that the second screen can be adopted for light supplement, the brightness value of the original dark area in the first preview image can be improved, or the dark area does not exist in the first preview image any more, so that the light and shade difference of different areas in the shot picture is small, and the imaging quality is improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a first schematic view of a light supplement method according to an embodiment of the present invention;
fig. 3 is a schematic view of a light supplement scene according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a light supplement method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a light supplement method according to a third embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a light supplement method according to a fourth embodiment of the present invention;
fig. 7 is a schematic diagram of a light supplement method according to a fifth embodiment of the present invention;
fig. 8 is a first schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 10 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
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 some, not all, embodiments of the present invention. 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.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the light supplement method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the light supplement method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the light supplement method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the light supplement method provided by the embodiment of the invention by running the software program in the android operating system.
The embodiment of the invention provides a light supplementing method and terminal equipment, wherein the terminal equipment comprises a first screen and a second screen, and when a first preview image is displayed on the first screen, a dark area in the first preview image is determined, the first preview image comprises n image areas, and the dark area is an image area of which a first brightness value is less than or equal to a preset brightness value in the n image areas; and lightening a first display area corresponding to the dark area on the second screen by using a second brightness value, wherein the first screen and the second screen are arranged at a preset angle. Through the scheme, the terminal equipment can light the first display area corresponding to the dark area on the second screen by the second brightness value under the condition that the dark area exists in the first preview image in the first screen, so that the second screen can be adopted for light supplement, the brightness value of the original dark area in the first preview image can be improved, or the dark area does not exist in the first preview image any more, so that the light and shade difference of different areas in the shot picture is small, and the imaging quality is improved.
The terminal device in the embodiment of the invention can be a mobile terminal device and can also be a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The execution main body of the light supplement method provided in the embodiment of the present invention may be the terminal device (including a mobile terminal device and a non-mobile terminal device), or may also be a functional module and/or a functional entity capable of implementing the light supplement method in the terminal device, which may be specifically determined according to actual usage requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily describe the light supplement method provided by the embodiment of the present invention.
As shown in fig. 2, the light supplement method according to the embodiment of the present invention includes the following steps S11 and S12. In the embodiment of the invention, the terminal equipment for executing the light supplementing method comprises a first screen and a second screen.
And S11, when the terminal device displays the first preview image on the first screen, determining a dark area in the first preview image.
The first preview image includes n image areas, the dark area is an image area of the n image areas having a first luminance value less than or equal to a preset luminance value, and n is an integer greater than or equal to 2.
The luminance value of each of the n image areas is referred to as a first luminance value in the embodiment of the present invention. It will be appreciated that in practice the luminance value of each of the n image regions may be a different value.
Optionally, in the embodiment of the present invention, the first preview image may be divided into n image regions, and the luminance value of each image region may be an average value of luminance values of all pixel points in the image region.
For example, the first preview image may be divided into 100 regions, the luminance value of each region may be calculated, and then the 100 luminance value data may be normally distributed. The brightness values corresponding to the normally distributed central region (e.g., the base region with the positive distribution) can be regarded as the normal brightness, the minimum brightness value falling in the central region can be the preset brightness value, and the image regions with the brightness value less than or equal to the preset brightness value among the 100 image regions are dark regions.
Optionally, in this embodiment of the present invention, before the user uses the terminal device to take a picture, the user may trigger the terminal device to open a shooting preview interface, and detect a shooting distance, where the shooting distance is less than or equal to the distance threshold, the terminal device may take a picture in a macro shooting mode, and if the shooting distance is greater than the distance threshold, the terminal device takes a picture in a normal shooting mode.
It should be noted that macro shooting refers to shooting performed at a large magnification at a short distance, and shooting with an imaging ratio of 1: 1 or more is generally called macro shooting, and currently, a terminal device generally has a macro shooting function.
In the embodiment of the present invention, the macro shooting mode may be a shooting mode when the terminal device shoots after the user starts the macro shooting function in the terminal device.
And S12, the terminal equipment lights the first display area corresponding to the dark area on the second screen with the second brightness value.
Wherein, the first screen and the second screen are arranged at a preset angle.
Optionally, the second brightness value may be a default brightness value or a target brightness value.
Optionally, the default brightness value may be a preset brightness value in the terminal device.
Optionally, the target brightness value may be a brightness value determined by the terminal device according to a shooting distance, where the shooting distance may be a distance between the shooting object and the terminal device.
The terminal equipment in the embodiment of the invention can be double-sided screen terminal equipment, can also be folding screen terminal equipment, and can also be flexible double-sided screen terminal equipment.
Optionally, when the terminal device in the embodiment of the present invention is a dual-screen terminal device, an included angle between the first screen and the second screen may be 180 degrees, that is, the first screen and the second screen may be disposed on two opposite surfaces of the terminal device.
Optionally, when the terminal device is a folding screen terminal device, an included angle between the first screen and the second screen may be between 90 degrees and 270 degrees, and when the included angle between the first screen and the second screen is different, the size and the position of the first display area corresponding to the dark area in the second screen are also different. Specifically, the corresponding relationship between the included angle between the first screen and the second screen and the size and the position of the first display area in the second screen may be set according to the actual light supplement effect, and the embodiment of the present invention is not limited.
Optionally, when the terminal device is a folding screen terminal device, an included angle between the first screen and the second screen may be set arbitrarily, and the second screen may be bent, so that when the included angle between the first screen and the second screen and the bending degree of the second screen are different for light supplement of a shooting object, the size and the position of the first display area corresponding to the dark area in the second screen are also different. Specifically, the included angle between the first screen and the second screen, and the corresponding relationship between the bending degree of the second screen and the size and the position of a display area in the second screen may be set according to the actual light supplement effect, which is not limited in the embodiment of the present invention.
The following example is an example in which the method provided by the embodiment of the present invention is applied to a double-sided screen terminal device. Wherein the first screen and the second screen in the terminal device are arranged on two opposite surfaces in the terminal device.
Exemplarily, as shown in fig. 3, an application scenario of the light supplement method according to the embodiment of the present invention is shown, in fig. 3, a is a terminal device for taking a picture, a1 is a first screen of the terminal device, and a2 is a second screen of the terminal device; b is the object photographed, D is the desk lamp light source. Due to the fact that the terminal device shields light, the B object has two regions with alternate light and shade, wherein the brightness of the B1 region is low due to the fact that the light is shielded, and the brightness of the B2 region is high due to the fact that the light is not shielded.
In the embodiment of the invention, in order to improve the brightness of the B1 area of the object B in fig. 3, the terminal device lights the second screen, and light of the second screen is used for supplementing light to the B1 area. Specifically, the terminal device may determine a dark region in the first preview image displayed on the first screen (i.e., a preview image of a captured B object), then determine a first display region C1 in the second screen corresponding to the dark region according to the position of the dark region in the first preview image on the screen of the terminal device, and finally fill the B1 region with light by lighting the C1 region, where the C2 region is a non-light region in fig. 3.
Fig. 3 only shows one scenario in which the embodiment of the present invention is applied, and it can be understood that the embodiment of the present invention can also be applied to other various scenarios requiring supplementary lighting.
The embodiment of the invention provides a light supplementing method.A terminal device comprises a first screen and a second screen, and when a first preview image is displayed on the first screen, a dark area in the first preview image is determined, wherein the first preview image comprises n image areas, and the dark area is an image area of which a first brightness value is less than or equal to a preset brightness value in the n image areas; and lightening a first display area corresponding to the dark area on the second screen by using a second brightness value, wherein the first screen and the second screen are arranged at a preset angle. Through the scheme, the terminal equipment can light the first display area corresponding to the dark area on the second screen by the second brightness value under the condition that the dark area exists in the first preview image in the first screen, so that the second screen can be adopted for light supplement, the brightness value of the original dark area in the first preview image can be improved, or the dark area does not exist in the first preview image any more, so that the light and shade difference of different areas in the shot picture is small, and the imaging quality is improved.
Optionally, the second brightness value is a default brightness value. Referring to fig. 2, as shown in fig. 4, after the step S12, the light supplement method according to the embodiment of the present invention further includes the following steps S13 and S14.
S13, the terminal device determines whether there is a dark area in the first preview image.
If there is a dark area in the first preview image, the following S14 is executed, and if there is no dark area in the first preview image, no operation is executed.
And S14, the terminal device adjusts the brightness value of the first display area from the second brightness value to the target brightness value.
Wherein the target brightness value is greater than the second brightness value.
In the embodiment of the present invention, after S12, it may be further determined whether a dark region exists in the first preview image, and the brightness value of the first display region is adjusted to be higher when the dark region exists in the first preview image, so that the effect of light supplement may be further confirmed after light supplement is performed through S11 and S12, and when the dark region still exists in the first preview image after light supplement (that is, the effect of light supplement is not good), the brightness value of the first display region is adjusted to be higher, so that the light supplement effect may be further optimized.
Optionally, in this embodiment of the present invention, after S12, it may further be determined whether a current luminance value of an original dark area in the first preview image is too bright, and in a case that it is determined that the current luminance value of the dark area is too bright, the luminance value of the first display area may be further adjusted from the second luminance value to a luminance value that is smaller than the second luminance value and larger than the preset luminance value.
In the embodiment of the present invention, the current luminance value of the dark area in the first preview image may be compared with a luminance threshold to determine whether the current luminance value of the dark area is too bright, and if the current luminance value of the dark area is greater than or equal to the luminance threshold, it may be determined that the current luminance value of the dark area is too bright. It should be noted that, in the embodiment of the present invention, the preset brightness value is smaller than the brightness threshold.
Optionally, with reference to fig. 4, as shown in fig. 5, after the above step S13 and before the step S14, in the case that a dark region exists in the first preview image, the light supplementary method provided by the embodiment of the present invention further includes the following steps S15 and S16.
And S15, the terminal equipment acquires the shooting distance, wherein the shooting distance is the distance between the shooting object and the terminal equipment.
And S16, the terminal equipment determines the brightness value of the target according to the shooting distance.
In the embodiment of the invention, the target brightness value can be determined according to the shooting distance, so that different target brightness values can be determined according to scenes with different shooting distances, and thus, when the first display area is lightened by the target brightness value, the light supplementing effect is better.
Optionally, with reference to fig. 2, as shown in fig. 6, after the step S12, the light supplement method provided by the embodiment of the present invention may include the following steps S17 and S18.
And S17, the terminal equipment receives a first input of the user.
And S18, the terminal equipment responds to the first input and acquires an image.
In the embodiment of the present invention, after the supplementary lighting is performed through the above S11 and S12, the terminal device may be triggered to acquire an image through the first input of the user. Therefore, the image collected by the terminal equipment cannot have the obvious condition that some areas are brighter and other areas are darker, and the quality of the picture collected by the terminal equipment is improved.
Alternatively, referring to fig. 6, as shown in fig. 7, after the step S12 and before the step S17, the light supplement method provided by the embodiment of the present invention may include the following steps S19 and S20.
And S19, the terminal equipment receives a second input of the user.
And S20, the terminal equipment responds to the second input, and the brightness value of the first display area is adjusted to a third brightness value from the second brightness value.
And adjusting the brightness value of the first display area from the second brightness value to the third brightness value, wherein no dark area exists in the first preview image.
In the embodiment of the present invention, after the supplementary lighting is performed through the above S11 and S12, when the user feels that the supplementary lighting effect is not ideal (that is, the user still observes the dark region in the first preview image), the terminal device may be triggered to acquire the image by first triggering the terminal device to adjust the luminance value of the first display region from the second luminance value to the third luminance value through the second input of the user. Therefore, the situation that some areas are brighter and other areas are darker can not occur in the image acquired by the terminal equipment, and therefore the quality of the picture acquired by the terminal equipment can be improved.
It should be noted that, in the embodiment of the present invention, the light supplement method shown in each of the above drawings is exemplarily described by referring to one drawing in the embodiment of the present invention. In specific implementation, the light supplement method shown in each of the above drawings may also be implemented by combining any other drawings that may be combined, which are illustrated in the above embodiments, and details are not described here.
As shown in fig. 8, an embodiment of the present invention provides a terminal device 130, where the terminal device 130 includes a determining module 131 and a processing module 132.
The determining module 131 is configured to determine a dark area in the first preview image when the first preview image is displayed on the first screen, where the first preview image includes n image areas, and the dark area is an image area of the n image areas where a first brightness value is less than or equal to a preset brightness value;
the processing module 132 is configured to light the first display area corresponding to the dark area on the second screen with the second brightness value, where the first screen and the second screen are set at a preset angle.
Optionally, the second brightness value is a default brightness value, and the processing module 132 is further configured to determine whether a dark area exists in the first preview image after the first display area corresponding to the dark area on the second screen is lit up by the second brightness value; and in the case that a dark area exists in the first preview image, adjusting the brightness value of the first display area from the second brightness value to a target brightness value, wherein the target brightness value is larger than the default brightness value.
Optionally, the processing module 132 is further configured to obtain a shooting distance before the brightness value of the first display area is adjusted from the second brightness value to the target brightness value, where the shooting distance is a distance between the shooting object and the terminal device; and determining the brightness value of the target according to the shooting distance.
Optionally, with reference to fig. 8, as shown in fig. 9, the terminal device further includes a receiving module 133.
The receiving module 133 is configured to receive a first input of a user after the processing module 132 lights up the first display area corresponding to the dark area on the second screen with the second brightness value; the processing module 132 is further configured to acquire an image in response to the first input received by the receiving module 131.
Optionally, the receiving module 133 is further configured to receive a second input of the user before receiving the first input of the user on the first screen after the processing module 132 lights up the first display area corresponding to the dark area on the second screen with the second brightness value; the processing module 132 is further configured to adjust the brightness value of the first display area from the second brightness value to a third brightness value in response to the second input, where the third brightness value is greater than the default brightness value.
After the brightness value of the first display area is adjusted from the second brightness value to the third brightness value, no dark area exists in the first preview image.
The terminal device provided by the embodiment of the present invention can implement each process shown in the above method embodiments, and is not described herein again to avoid repetition.
The embodiment of the invention provides terminal equipment, which comprises a first screen and a second screen, wherein when a first preview image is displayed on the first screen, a dark area in the first preview image is determined, the first preview image comprises n image areas, and the dark area is an image area of which a first brightness value is less than or equal to a preset brightness value in the n image areas; and lightening a first display area corresponding to the dark area on the second screen by using a second brightness value, wherein the first screen and the second screen are arranged at a preset angle. Through the scheme, the terminal equipment can light the first display area corresponding to the dark area on the second screen by the second brightness value under the condition that the dark area exists in the first preview image in the first screen, so that the second screen can be adopted for light supplement, the brightness value of the original dark area in the first preview image can be improved, or the dark area does not exist in the first preview image any more, so that the light and shade difference of different areas in the shot picture is small, and the imaging quality is improved.
Fig. 10 is a hardware schematic diagram of a terminal device for implementing various embodiments of the present invention, where the terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, 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 terminal device configuration shown in fig. 10 is not intended to be limiting, and that terminal devices may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The processor 110 is configured to determine a dark area in the first preview image when the first preview image is displayed on the first screen, where the first preview image includes n image areas, and the dark area is an image area of the n image areas where a first brightness value is less than or equal to a preset brightness value; and lightening a first display area corresponding to the dark area on the second screen by using a second brightness value, wherein the first screen and the second screen are arranged at a preset angle.
The embodiment of the invention provides terminal equipment, which comprises a first screen and a second screen, wherein when a first preview image is displayed on the first screen, a dark area in the first preview image is determined, the first preview image comprises n image areas, and the dark area is an image area of which a first brightness value is less than or equal to a preset brightness value in the n image areas; and lightening a first display area corresponding to the dark area on the second screen by using a second brightness value, wherein the first screen and the second screen are arranged at a preset angle. Through the scheme, the terminal equipment can light the first display area corresponding to the dark area on the second screen by the second brightness value under the condition that the dark area exists in the first preview image in the first screen, so that the second screen can be adopted for light supplement, the brightness value of the original dark area in the first preview image can be improved, or the dark area does not exist in the first preview image any more, so that the light and shade difference of different areas in the shot picture is small, and the imaging quality is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by 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 a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture 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 network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio 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 terminal device 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 the backlight when the terminal device 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 to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
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 terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). 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 receives and executes 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. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on 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 in fig. 10, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 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 an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
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 by 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, and the like. 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 terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running 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 terminal device. Processor 110 may include one or more processing units; alternatively, 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 terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
The embodiment of the present invention further provides a terminal device, where the terminal device may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, each process executed by the terminal device in the foregoing method embodiments may be implemented, and the same technical effect may be achieved, and details are not repeated here to avoid repetition.
An embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process executed by a terminal device in the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 device (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 embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A light supplementing method is applied to terminal equipment, the terminal equipment comprises a first screen and a second screen, and the method is characterized by comprising the following steps:
when a first preview image is displayed on a first screen, determining a dark area in the first preview image, wherein the first preview image comprises n image areas, the dark area is an image area of which a first brightness value is smaller than or equal to a preset brightness value, and n is an integer greater than or equal to 2;
a first display area corresponding to the dark area on the second screen is lightened by a second brightness value, and the first screen and the second screen are arranged at a preset angle;
wherein after the first display area corresponding to the dark area on the second screen is lighted up with the second brightness value, the method further comprises:
judging whether a dark area exists in the first preview image;
and in the case that a dark area exists in the first preview image, adjusting the brightness value of the first display area from a second brightness value to a target brightness value, wherein the target brightness value is greater than the second brightness value.
2. The method of claim 1,
the second brightness value is a default brightness value.
3. The method of claim 1, wherein before adjusting the brightness value of the first display region from the second brightness value to the target brightness value, the method further comprises:
acquiring a shooting distance, wherein the shooting distance is the distance between a shooting object and the terminal equipment;
and determining the brightness value of the target according to the shooting distance.
4. The method of any of claims 1-3, wherein after illuminating a first display region on the second screen corresponding to the dark region with a second brightness value, the method further comprises:
receiving a first input of a user;
in response to the first input, an image is acquired.
5. The method of claim 4, wherein after the illuminating a first display area on the second screen corresponding to the dark region with a second brightness value, the method further comprises, before the receiving a first input by a user on the first screen:
receiving a second input of the user;
adjusting a brightness value of the first display region from a second brightness value to a third brightness value in response to the second input, the third brightness value being greater than the second brightness value;
after the brightness value of the first display area is adjusted from the second brightness value to the third brightness value, no dark area exists in the first preview image.
6. A terminal device comprising a first screen and a second screen, comprising: a determining module and a processing module;
the determining module is configured to determine a dark area in a first preview image when the first preview image is displayed on a first screen, where the first preview image includes n image areas, and the dark area is an image area in the n image areas, where a first brightness value is less than or equal to a preset brightness value;
the processing module is used for lighting a first display area corresponding to the dark area on the second screen by using a second brightness value, and the first screen and the second screen are arranged at a preset angle;
the processing module is further configured to determine whether a dark area exists in the first preview image after a first display area corresponding to the dark area on the second screen is lit up by a second brightness value; and in the case that a dark area exists in the first preview image, adjusting the brightness value of the first display area from a second brightness value to a target brightness value, wherein the target brightness value is greater than the second brightness value.
7. The terminal device of claim 6,
the second brightness value is a default brightness value.
8. The terminal device of claim 6,
the processing module is further configured to obtain a shooting distance before the brightness value of the first display area is adjusted from the second brightness value to the target brightness value, where the shooting distance is a distance between a shooting object and the terminal device; and determining the brightness value of the target according to the shooting distance.
9. The terminal device according to any of claims 6-8, wherein the terminal device further comprises a receiving module;
the receiving module is used for receiving a first input of a user after the processing module lights up a first display area corresponding to the dark area on the second screen by a second brightness value;
the processing module is further configured to acquire an image in response to the first input received by the receiving module.
10. The terminal device of claim 9,
the receiving module is further configured to receive a second input of the user before receiving the first input of the user on the first screen after the processing module lights up the first display area corresponding to the dark area on the second screen with a second brightness value;
the processing module is further configured to adjust a brightness value of the first display area from a second brightness value to a third brightness value in response to the second input, where the third brightness value is greater than the second brightness value;
after the brightness value of the first display area is adjusted from the second brightness value to the third brightness value, no dark area exists in the first preview image.
11. A terminal device, comprising a processor, a memory, 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 fill-in light method according to any one of claims 1 to 5.
CN201811361665.XA 2018-11-15 2018-11-15 Light supplementing method and terminal equipment Active CN109561258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811361665.XA CN109561258B (en) 2018-11-15 2018-11-15 Light supplementing method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811361665.XA CN109561258B (en) 2018-11-15 2018-11-15 Light supplementing method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109561258A CN109561258A (en) 2019-04-02
CN109561258B true CN109561258B (en) 2020-11-13

Family

ID=65866416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811361665.XA Active CN109561258B (en) 2018-11-15 2018-11-15 Light supplementing method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109561258B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809120B (en) * 2019-11-01 2021-04-27 深圳创维-Rgb电子有限公司 Light supplementing method for shot picture, smart television and computer readable storage medium
CN111901519B (en) * 2020-06-23 2022-01-28 维沃移动通信有限公司 Screen light supplement method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277388A (en) * 2017-07-27 2017-10-20 青岛海信移动通信技术股份有限公司 Mobile terminal and its light compensation method
CN108063901A (en) * 2017-12-27 2018-05-22 努比亚技术有限公司 A kind of image-pickup method, terminal and computer readable storage medium
CN108616699A (en) * 2018-04-25 2018-10-02 努比亚技术有限公司 It takes pictures light compensation method, equipment and computer storage media

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9513724B2 (en) * 2011-08-30 2016-12-06 Blackberry Limited Device and method for adjusting object illumination
CN106131341B (en) * 2016-08-22 2018-11-30 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107786817B (en) * 2017-10-20 2019-10-18 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108040209B (en) * 2017-12-20 2019-12-13 维沃移动通信有限公司 Shooting method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277388A (en) * 2017-07-27 2017-10-20 青岛海信移动通信技术股份有限公司 Mobile terminal and its light compensation method
CN108063901A (en) * 2017-12-27 2018-05-22 努比亚技术有限公司 A kind of image-pickup method, terminal and computer readable storage medium
CN108616699A (en) * 2018-04-25 2018-10-02 努比亚技术有限公司 It takes pictures light compensation method, equipment and computer storage media

Also Published As

Publication number Publication date
CN109561258A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN109002243B (en) Image parameter adjusting method and terminal equipment
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN111049973B (en) Screen display control method, electronic equipment and computer readable storage medium
CN110062105B (en) Interface display method and terminal equipment
CN109032445B (en) Screen display control method and terminal equipment
CN108234894B (en) Exposure adjusting method and terminal equipment
CN111562896B (en) Screen projection method and electronic equipment
CN111083386B (en) Image processing method and electronic device
CN109710349B (en) Screen capturing method and mobile terminal
CN109257505B (en) Screen control method and mobile terminal
CN108040209B (en) Shooting method and mobile terminal
CN108257104B (en) Image processing method and mobile terminal
CN109407948B (en) Interface display method and mobile terminal
CN109104566B (en) Image display method and terminal equipment
CN110231972B (en) Message display method and terminal equipment
CN111385415B (en) Shooting method and electronic equipment
CN110290331B (en) Screen control method and terminal
CN108845785B (en) Display method and terminal
CN109976629A (en) Image display method, terminal and mobile terminal
CN111443765A (en) Electronic equipment and screen display method
CN110753155A (en) Proximity detection method and terminal equipment
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN110058686B (en) Control method and terminal equipment
CN109167917B (en) Image processing method and terminal equipment

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