[go: up one dir, main page]

CN109788174B - Light supplementing method and terminal - Google Patents

Light supplementing method and terminal Download PDF

Info

Publication number
CN109788174B
CN109788174B CN201910026931.1A CN201910026931A CN109788174B CN 109788174 B CN109788174 B CN 109788174B CN 201910026931 A CN201910026931 A CN 201910026931A CN 109788174 B CN109788174 B CN 109788174B
Authority
CN
China
Prior art keywords
light source
distance
light
terminal
target object
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
CN201910026931.1A
Other languages
Chinese (zh)
Other versions
CN109788174A (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 CN201910026931.1A priority Critical patent/CN109788174B/en
Publication of CN109788174A publication Critical patent/CN109788174A/en
Application granted granted Critical
Publication of CN109788174B publication Critical patent/CN109788174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Input (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides a light supplementing method and a terminal. Wherein, this terminal includes: the first light source and the second light source are arranged on the circuit board at intervals; a lens disposed over the first light source and the second light source; one surface of the lens, facing the first light source and the second light source, is provided with a first texture corresponding to the first light source and a second texture corresponding to the second light source; the vertical distance from the first light source to the first texture is smaller than the vertical distance from the second light source to the second texture. The terminal provided by the embodiment of the invention can better take the light supplement requirement and the distance into account, so that the light supplement effect is better.

Description

Light supplementing method and terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a light supplementing method and a terminal.
Background
With the development and popularization of smart phones, the functions of smart phones are increasingly powerful, and photographing is one of the most common functions. When the ambient light is weak, a flash lamp is generally required to supplement light for photographing. Sometimes, a shot scene is far away from a mobile phone, a part of a far object or a small object is required to be shot clearly by the mobile phone, and the light of a flash lamp is required to be concentrated as much as possible to reach an area to be shot, so that the object can be shot clearly. Sometimes, the shot object is close to the mobile phone, and at the moment, the light of the flash lamp is expected to be as divergent as possible and cannot be concentrated, otherwise, the overexposure is serious. The traditional flash lamp optical design is difficult to be compatible with the distance and the requirement contradiction of photographing, and the light supplementing effect is poor.
Similar problems also occur with infrared fill light. Besides the photographing function, the popularity of face recognition is higher and higher. When the ambient light is weaker, the light can be supplemented through the infrared light supplementing lamp. However, if the face is too close to the infrared lamp, the center of the face image may be overexposed, which may affect the face contour image recognition. If the human face is too far away from the infrared lamp, the infrared energy is insufficient, the human face image is fuzzy, the brightness is insufficient, the noise is more, and the problem of recognition can also be caused. The traditional optical design of the light supplement lamp is difficult to be compatible with the requirement contradiction between the distance and the light supplement, and the light supplement effect is poor.
Disclosure of Invention
The embodiment of the invention provides a light supplementing method and a terminal, and aims to solve the problem that a terminal in the prior art is poor in light supplementing effect.
In order to solve the technical problems, the invention adopts the following technical scheme:
in a first aspect, a terminal is provided, which includes:
the first light source and the second light source are arranged on the circuit board at intervals;
a lens disposed over the first light source and the second light source;
one surface of the lens, facing the first light source and the second light source, is provided with a first texture corresponding to the first light source and a second texture corresponding to the second light source; the vertical distance from the first light source to the first texture is smaller than the vertical distance from the second light source to the second texture.
In a second aspect, a light supplement method is provided, which is applied to the terminal described above, where the terminal includes at least one camera, and the camera, the first light source and the second light source are disposed on the same side of the terminal; wherein the method comprises the following steps:
detecting a first distance between a photographed target object and a camera photographing the target object;
when the first distance is smaller than a preset distance, starting the first light source;
and when the first distance is greater than a preset distance, starting the second light source.
In a third aspect, a terminal is provided, where the terminal is the terminal described above, and the terminal further includes at least one camera, and the camera, the first light source and the second light source are disposed on the same side of the terminal; wherein, the terminal further includes:
the first detection module is used for detecting a first distance between a shot target object and a camera shooting the target object;
the first control module is used for starting the first light source when the first distance is smaller than a preset distance; and when the first distance is greater than a preset distance, starting the second light source.
In a fourth aspect, a terminal is provided, including: 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 lighting method as described above.
In a fifth 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 as described above.
In the embodiment of the invention, two groups of light supplementing lamps are arranged in the terminal, and the light source (namely the first light source) in one group of light supplementing lamps is closer to the texture (namely the first texture) on the lens, so that the light supplementing formed by the group of light supplementing lamps has lower central brightness and higher brightness around the center, and the light supplementing lamp is suitable for the condition that the distance from a shot target object to the camera is closer. The light source (i.e. the second light source) in the other group of light supplement lamps is far away from the lines (i.e. the second lines) on the lens, so that the light supplement formed by the group of light supplement lamps is higher in central brightness and lower in brightness around the center compared with the light supplement lamps, and the light supplement lamp is suitable for the situation that the distance from a shot target object to the camera is far. Like this, when needs light filling, can be according to the target object that is shot to the distance of camera, confirm specifically that which light filling lamp carries out the light filling to the problem between light filling demand and the distance is taken into account better, makes the light filling effect better.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 2 is a second schematic structural diagram of a terminal according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a lens texturing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a light supplement method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a face unlocking scenario according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a photographing scenario provided by an embodiment of the invention;
fig. 8 shows one of block diagrams of a terminal according to an embodiment of the present invention;
fig. 9 shows a second block diagram of the terminal according to the embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
According to an aspect of an embodiment of the present invention, a terminal is provided. The terminal can be a mobile terminal (such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device and the like), a desktop computer, an intelligent television and the like. The terminal is provided with at least one camera for acquiring external images.
As shown in fig. 1 and 2, the terminal further includes: a first light source 102 and a second light source 103 disposed on the circuit board 101 at an interval, and a lens 104 disposed over the first light source 102 and the second light source 103. The lens 104 is provided with a first ridge 1041 corresponding to the first light source 102 and a second ridge 1042 corresponding to the second light source 103 on a surface facing the first light source 102 and the second light source 103. The vertical distance from the first light source 102 to the first ridge 1041 is smaller than the vertical distance from the second light source 103 to the second ridge 1042.
The light supplementing structure provided by the embodiment of the invention is mainly used for supplementing light, and for example, when a human face is unlocked or photographed in an environment with poor lighting conditions, the human face is supplemented with light, so that a camera can conveniently acquire a clearer external image.
Wherein, the main effect of first line 1041 and second line 1042 lies in: the light irradiated on the light beam is optimized by shaping, such as adjusting the distribution of the light beam in the central area and the area around the center of the light beam. The light emitted by the first light source 102 irradiates the first ridges 1041, and passes through the lens 104 to form a first fill light. The light emitted from the second light source 103 irradiates the second texture 1042, and passes through the lens 104 to form a second supplementary light. Since the vertical distance from the first light source 102 to the first ridge 1041 is smaller than the vertical distance from the second light source 103 to the second ridge 1042, the central brightness of the first supplemental light is smaller than the central brightness of the second supplemental light, and the brightness around the center of the first supplemental light is greater than the brightness around the center of the second supplemental light. The first light source 102 and the second light source 103 are the same light source, and the supply current and voltage are also the same.
It is known that the energy of the light beam formed by the light emitted by the same light source is constant under the condition of constant current. If the brightness of the central area of the light beam is high, the brightness around the central area is low, and at this time, if the target object to be supplemented with light is too close to the terminal, the problem of overexposure may occur. If the brightness of the central area of the light beam is reduced, in this case, if the supplemented target object is too far away from the terminal, the target object may be insufficiently illuminated. Therefore, the light supplement lamp in the prior art is difficult to simultaneously take into account the problem between the light supplement requirement and the distance, and the light supplement effect is not good enough.
In the embodiment of the invention, two groups of light supplementing lamps are arranged in the terminal, and the light source (namely the first light source) in one group of light supplementing lamps is closer to the texture (namely the first texture) on the lens, so that the light supplementing formed by the group of light supplementing lamps has lower central brightness and higher brightness around the center, and the light supplementing lamp is suitable for the condition that the distance from a shot target object to the camera is closer. Because the target object is close to the camera, the overall illumination brightness is enough, the brightness of the central area of the supplementary lighting required to be irradiated on the target object is low, the light is scattered as much as possible, the irradiated area is enlarged, and the problem of image over-exposure caused by over-brightness of the central area is avoided. The light source (i.e. the second light source) in the other group of light supplement lamps is far away from the lines (i.e. the second lines) on the lens, so that the light supplement formed by the group of light supplement lamps is higher in central brightness and lower in brightness around the center compared with the light supplement lamps, and the light supplement lamp is suitable for the situation that the distance from a shot target object to the camera is far. Because the target object is far away from the camera, the overall illumination brightness is not enough, and the brightness of the central area of the light supplement needs to be improved at this time, so that the light is concentrated to the target object as far as possible, the overall illumination brightness of the target object is increased, and the problem that the image noise is more due to insufficient illumination of the target object is solved. Therefore, the problem between the light supplement requirement and the distance can be better considered, and the light supplement effect is better.
The circuit board 101 described herein includes, but is not limited to: the main board, the small board (i.e., the sub-board), or the flexible circuit board 101 of the terminal may be selected according to actual requirements, which is not limited in the embodiments of the present invention.
It should be noted that, in order to realize that the vertical distance from the first light source 102 to the first ridge 1041 is smaller than the vertical distance from the second light source 103 to the second ridge 1042, at least two ways are adopted as follows:
the first method is as follows: the first light source 102 and the second light source 103 are disposed on the same plane, and the first texture 1041 and the second texture 1042 are disposed on different planes, as shown in fig. 1.
The second method comprises the following steps: the first light source 102 and the second light source 103 are disposed on different planes, and the first texture 1041 and the second texture 1042 are disposed on the same plane, as shown in fig. 2.
Specifically, in practical applications of the above structure of the embodiment of the present invention, the first light source 102 may be controlled to be turned on for light supplement or the second light source 103 may be controlled to be turned on for light supplement by a software control method. Such as: a distance value is preset, and when the distance from the target object to the camera is detected to be smaller than the preset distance value, the first light source 102 is controlled to be started to supplement light; and when the distance from the target object to the camera is detected to be greater than the preset distance value, controlling the second light source 103 to be started for light supplement. For the case that the distance from the target object to the camera is equal to the preset distance value, the first light source 102 or the second light source 103 can be selectively turned on for light supplement according to actual requirements. Of course, it can be understood that a control key (a virtual control key or a mechanical control key) may be further provided, and the user selects which light source to turn on for light supplement.
Specifically, in the embodiment of the present invention, the first veins 1041 are located above the first light source 102, and light emitted by the first light source 102 is irradiated on the first veins 1041. The second texture 1042 is positioned above the second light source 103, and light emitted by the second light source 103 is irradiated on the second texture 1042.
Specifically, in the embodiment of the present invention, in order to realize that the central brightness of the first supplementary lighting is smaller than the central brightness of the second supplementary lighting, and the brightness around the center of the first supplementary lighting is greater than the brightness around the center of the second supplementary lighting, an implementation manner is provided, which is as follows:
as shown in fig. 1, the first ridges 1041 and the second ridges 1042 are the same ridges; the vertical distance from the first light source 102 to the first ridge 1041 is smaller than the vertical distance from the second light source 103 to the second ridge 1042.
Generally, when the texture is constant, the smaller the distance between the light source and the texture is, the lower the central brightness of the light beam passing through the lens 104 is, and the higher the brightness around the center is. Conversely, the greater the distance between the light source and the ridge, the higher the central brightness of the light beam passing through the lens 104 and the lower the brightness around the center. Therefore, in the embodiment of the present invention, under the condition that the first texture 1041 is the same as the second texture 1042, two different light supplement effects can be achieved by adjusting the vertical distance from the two light sources to the textures, that is, the vertical distance from the first light source 102 to the first texture 1041 is designed to be smaller than the vertical distance from the second light source 103 to the second texture 1042. It should be noted that, in practical implementation, the first ridges 1041 and the second ridges 1042 are not necessarily exactly the same, and the two ridges have substantially the same influence on the light.
Specifically, in the embodiment of the present invention, in order to realize that the central luminance of the first supplementary lighting is smaller than the central luminance of the second supplementary lighting, and the luminance around the center of the first supplementary lighting is greater than the luminance around the center of the second supplementary lighting, another implementation manner is further provided, as follows:
as shown in fig. 2, the first ridges 1041 and the second ridges 1042 are different in texture. Under the action of the first ridge 1041 and the second ridge 1042, the central brightness of the first supplementary light is smaller than that of the second supplementary light, and the brightness around the center of the first supplementary light is greater than that around the center of the second supplementary light. At this time, the vertical distance from the first light source 102 to the first ridge 1041 may be set to be smaller than the vertical distance from the second light source 103 to the second ridge 1042, or the vertical distance from the first light source 102 to the first ridge 1041 may be set to be equal to the vertical distance from the second light source 103 to the second ridge 1042.
The lines on the lens 104 have the shaping and optimizing functions on the light irradiated thereon, so that the lines can be adjusted selectively to realize two different light supplementing effects.
As shown in fig. 3, the general texture includes: a circular central ring 1043 and a plurality of tooth formations 4044 disposed about the central ring. The light source is disposed opposite the center ring 4043. The size of the central ring 1043 affects the central brightness of the beam passing through the lens 104. Generally, the larger the center ring 1043, the higher the center brightness of the beam, and the lower the brightness around the center; conversely, the smaller the center circle 1043, the lower the center brightness of the beam and the higher the brightness around the center. The depth, angle, and spacing of these tooth structures 1044 from one another also affect the distribution of light and primarily affect the brightness around the center of the light beam. Therefore, in the embodiment of the present invention, two different light supplement effects can be achieved by specifically adjusting the central ring 1043 and/or the tooth structure 1044 in the texture.
For example, the first ridges 1041 include: a first central ring and a plurality of first tooth formations disposed around the first central ring. The second ridges 1042 include: a second central ring and a plurality of second tooth formations disposed about the second central ring. In order to realize two different light supplementing, the size of the first central ring can be smaller than that of the second central ring when the first tooth-shaped structure is the same as the second tooth-shaped structure; or when the first center ring is the same as the second center ring and the angle and the distance between the first tooth-shaped structure and the second tooth-shaped structure are the same, the depth of the first tooth-shaped structure is designed to be different from that of the second tooth-shaped structure, so that the central brightness of the first supplementary lighting is smaller than that of the second supplementary lighting, and the brightness around the center of the first supplementary lighting is larger than that around the center of the second supplementary lighting. Of course, it is understood that other design manners may be selected, and the specific case may be selected according to actual requirements.
It should be noted that, in practical implementation, it is not necessary to strictly match the vertical distance between the first light source 102 and the first vein 1041, which is the same as the vertical distance between the second light source 103 and the second vein 1042, as long as the distance factor has substantially the same influence on the light. When the first tooth-shaped structure and the second tooth-shaped structure are designed to be the same, the first tooth-shaped structure and the second tooth-shaped structure are not strictly the same, and the first tooth-shaped structure and the second tooth-shaped structure have basically the same influence on light.
Further, in the embodiment of the present invention, both the first light source 102 and the second light source 103 are an infrared lamp or a flash lamp, that is, the structure provided in the embodiment of the present invention may be applied to an infrared fill-in lamp, and may also be applied to a flash light, and it is understood that the structure may also be applied to other similar fill-in structures.
Further, in the embodiment of the present invention, the first light source 102 and the second light source 103 are located on the same side of the terminal as the camera for shooting the target object. For example, the first light source 102 and the second light source 103 are in front of the terminal, and the camera is a front camera at this time; the first light source 102 and the second light source 103 are behind the terminal, in which case the camera is a rear camera.
Wherein, when the first light source 102 and the second light source 103 are in front of the terminal, a screen cover plate is further disposed above the lens 104. A terminal back cover is also provided over the lens 104 when the first light source 102 and the second light source 103 are behind the terminal.
For example, as shown in fig. 4, when the first light source 102 and the second light source 103 are both infrared fill lights and are disposed in front of the terminal, a screen cover 105 of the terminal is disposed above the lens 104. In order to allow the infrared light to pass through the screen cover 105 to the outside of the terminal, a hole is silk-screened at the position of the screen cover 105 corresponding to the lens 104 to form an ink layer 106. The screen printing here uses a different ink than the ink at other locations of the screen cover 105. The infrared transmittance of the ink layer 106 at the position is very high, generally more than 85%, but the visible light transmittance is very low, generally less than 10%, so that the appearance of silk-screen holes at the position cannot be influenced, and people cannot see the silk-screen holes at the position in the common environment.
Finally, it should be noted that the fill light in the embodiment of the present invention, whether it is an infrared fill light or a flash light, may be disposed in front of the terminal or behind the terminal, and in particular, may be designed according to actual application requirements.
In summary, in the embodiment of the present invention, two sets of light supplement lamps are disposed in the terminal, and because the distance between the light source (i.e., the first light source) in one set of light supplement lamps and the texture (i.e., the first texture) on the lens is short, the light supplement formed by the set of light supplement lamps has a lower central brightness and a higher brightness around the center, and is suitable for the situation that the distance from the target object to be photographed to the camera is short. The light source (i.e. the second light source) in the other group of light supplement lamps is far away from the lines (i.e. the second lines) on the lens, so that the light supplement formed by the group of light supplement lamps is higher in central brightness and lower in brightness around the center compared with the light supplement lamps, and the light supplement lamp is suitable for the situation that the distance from a shot target object to the camera is far. Like this, when needs light filling, can be according to the target object that is shot to the distance of camera, confirm specifically that which light filling lamp carries out the light filling to the problem between light filling demand and the distance is taken into account better, makes the light filling effect better.
According to another aspect of the embodiments of the present invention, a light supplement method is provided. The supplementary lighting method is applied to the terminal as described above.
As shown in fig. 5, the light supplement method includes:
step 501: a first distance between a target object to be photographed and a camera that photographs the target object is detected.
The target object may be an object at a position where a focus of the camera is located.
In the embodiment of the invention, the distance from the target object to the camera can be judged through camera focusing, binocular distance measurement of two cameras, a flight time distance measurement function of an infrared sensor, a flight time distance measurement function of an ultrasonic sensor, a distance sensor or other similar sensors.
Step 502: when the first distance is smaller than the preset distance, starting a first light source; and when the first distance is greater than the preset distance, starting the second light source.
In the embodiment of the invention, when the distance from the target object to the camera is detected to be smaller than the preset distance value, the first light source is controlled to be started for light supplement; and when the distance from the target object to the camera is detected to be greater than the preset distance value, controlling the second light source to be started for light supplement. The specific reason for selecting the light source has been described in the above embodiments, and will not be described herein.
And selecting to start the first light source for light supplement or the second light source for light supplement according to actual requirements under the condition that the distance from the target object to the camera is equal to the preset distance value.
The light supplement method provided by the embodiment of the invention can simultaneously take the problems of light supplement requirements and distances into consideration, and has a better light supplement effect.
Specifically, the general fill-in light is used in an environment with poor lighting conditions, and therefore, in the embodiment of the present invention, before the step 501 is executed to detect the first distance between the target object to be photographed and the camera for photographing the target object, the brightness of the ambient light may be detected. When the brightness of the ambient light is lower than the preset brightness value, the detecting step 501 is performed. Wherein, predetermine the luminance value and can be the less numerical value of luminance, if the luminance of ambient light is less than predetermineeing the luminance value, then explain that current illumination condition is relatively poor, should open the light filling lamp and carry out the light filling to guarantee that the camera can shoot more clear image.
Further, before detecting the first distance between the target object to be photographed and the camera for photographing the target object in step 501, the light supplement method further includes: receiving a preset instruction input by a user, and after receiving the preset instruction input by the user, executing step 501.
Wherein, the preset instruction comprises: at least one of a face unlocking instruction and a photographing instruction.
The light supplement method provided by the embodiment of the invention can be applied to a face unlocking scene and a photographing scene, and can be applied to other scenes needing light supplement.
In order to further understand the technical solutions provided by the embodiments of the present invention, a face unlocking scene and a photographing scene are respectively taken as an example for description.
First, a human face unlocking scene is taken as an example. In this example, infrared light supplement is adopted when the human face is unlocked, that is, the first light source and the second light source are both infrared lamps.
Step 601: and judging whether the user has an unlocking requirement.
The general terminal can be set with a wrist-lifting unlocking function, and when the terminal is detected to have a moving action or a rotating action, an unlocking request is triggered; or the user presses a power key of the terminal to trigger the unlocking request.
Wherein, when it is determined that the user has an unlocking requirement, step 602 is entered.
Step 602: and when the brightness of the ambient light is smaller than the preset brightness, determining the distance from the face of the user to the front camera of the terminal.
The brightness of the current ambient light is smaller than the preset brightness, which indicates that the current illumination condition is poor and light supplement is needed, so that the distance from the face of the user to the front camera of the terminal is determined when the brightness of the ambient light is smaller than the preset brightness.
In the embodiment of the invention, the distance from the face of the user to the camera can be determined through focusing of the camera, binocular distance measurement of the two cameras, a flight time distance measurement function of the infrared sensor, a flight time distance measurement function of the ultrasonic sensor, a distance sensor or other similar sensors.
After the distance from the face of the user to the front camera of the terminal is determined, step 603 is performed.
Step 603: and starting the first light source or the second light source to supplement light according to the distance from the face of the user to the front camera of the terminal.
Specifically, if the distance from the face of the user to the front camera is smaller than a preset distance value, the illuminance of the whole viewing area is required to be brighter, and therefore the first light source is started. If the distance from the face of the user to the front camera is greater than the preset distance value, the brightness of the face area in the viewing range is required to be higher, and therefore the second light source is started.
Optical theory states that illuminance is inversely proportional to the square of distance, i.e., distance is strongly related to illuminance. The illumination can be obviously increased when the distance is short; far away, the illumination will drop significantly. Meanwhile, under the same condition, the closer the distance is, the more difficult the light is to diffuse, the more concentrated the light is, and the smaller the irradiated area is. The farther away the distance, the more easily the light is spread out, and the illuminated area becomes larger. If the distance is smaller than a certain preset threshold value, the distance is short, the overall brightness is enough, the face recognition requirement is reduced, the brightness of the central area of the face is irradiated, light rays are scattered as far as possible, the irradiated area is increased, and the situation that the central area is too bright to cause overexposure and influence on the face recognition is avoided, so that the first light source is selected to be started for light supplement. If the interval is greater than a certain predetermined threshold value, because the distance is far away, whole luminance is not enough, and face identification requires to promote the regional luminance of face, concentrates as far as possible light to hit the face region, avoids the distance far from leading to the regional luminance of face not enough, influences face identification, consequently selects to open the first and the light source carries out the light filling.
After the first light source or the second light source is started to perform light supplement, the process proceeds to step 604.
Step 604: and judging whether the face recognition unlocking is successful or not according to the face image of the user currently acquired by the front camera.
Light rays emitted by the infrared light supplement lamp (namely the first light source or the second light source) pass through the lens, pass through the terminal, reach the face area, and then are reflected back to the front camera, and the front camera acquires a face image of the current user. And if the face image of the user currently acquired by the front camera is successfully matched with the preset face image of the user, the unlocking is successful.
Wherein, after the unlocking is successful, step 605 is entered.
Step 605: entering a terminal interface, and normally using the terminal.
After the face unlocking scene is introduced, the photographing scene is taken as an example below. In this example, flash light is used for light supplement during photographing, that is, both the first light source and the second light source are flash lights.
Step 701: and starting the camera to shoot and detecting the brightness of the ambient light.
During the photographing process, whether the flash lamp needs to be turned on or not can be determined by detecting the brightness of the ambient light.
After the brightness of the ambient light is obtained, if the brightness of the ambient light is less than the preset brightness, the process proceeds to step 702.
Step 702: and when the brightness of the ambient light is less than the preset brightness, determining the distance from the shot target object to a camera shooting the target object.
The brightness of the current ambient light is smaller than the preset brightness, which indicates that the current illumination condition is poor and light supplement is needed, so that the distance from the face of the user to the front camera of the terminal is determined when the brightness of the ambient light is smaller than the preset brightness.
In the embodiment of the invention, the distance from the target object to the camera can be determined through camera focusing, binocular distance measurement of two cameras, a flight time distance measurement function of an infrared sensor, a flight time distance measurement function of an ultrasonic sensor, a distance sensor or other similar sensors.
After the distance from the target object to the front camera of the terminal is determined, step 703 is entered.
Step 703: after the photographing instruction is detected, the first light source or the second light source is started to supplement light according to the distance from the target object to the front camera of the terminal.
Specifically, if the distance from the target object to the camera is smaller than the preset distance value, the illuminance of the entire viewing area is required to be brighter, and therefore, the first light source is activated. If the distance from the target object to the camera is greater than the preset distance value, the brightness of the area where the target object is located in the viewing range is required to be higher, and therefore the second light source is started.
And starting the first light source or the second light source to supplement light in the process of photographing the target object, and finishing photographing. After the shooting is finished, the quality conditions of the shot photos, such as how noisy, how overexposed, how clear and the like, can be checked. If not, the deletion can be performed, and if the deletion is satisfactory, the corresponding post-processing filter can be saved or optimized.
In summary, in the embodiment of the present invention, two sets of light supplement lamps are disposed in the terminal, and because the distance between the light source (i.e., the first light source) in one set of light supplement lamps and the texture (i.e., the first texture) on the lens is short, the light supplement formed by the set of light supplement lamps has a lower central brightness and a higher brightness around the center, and is suitable for the situation that the distance from the target object to be photographed to the camera is short. The light source (i.e. the second light source) in the other group of light supplement lamps is far away from the lines (i.e. the second lines) on the lens, so that the light supplement formed by the group of light supplement lamps is higher in central brightness and lower in brightness around the center compared with the light supplement lamps, and the light supplement lamp is suitable for the situation that the distance from a shot target object to the camera is far. Like this, when needs light filling, can be according to the target object that is shot to the distance of camera, confirm specifically that which light filling lamp carries out the light filling to the problem between light filling demand and the distance is taken into account better, makes the light filling effect better.
According to another aspect of an embodiment of the present invention, a terminal is provided. The terminal comprises the structure in the terminal embodiment, can realize the details in the light supplement method, and achieves the same effect. The terminal further comprises at least one camera, and the camera and the first light source and the second light source are arranged on the same side of the terminal.
As shown in fig. 8, the terminal further includes a processor, and the processor includes:
the first detection module 801 is configured to detect a first distance between a target object to be photographed and a camera for photographing the target object.
A first control module 802, configured to start the first light source when the first distance is smaller than a preset distance; and when the first distance is greater than a preset distance, starting the second light source.
Further, the terminal further includes:
and the second detection module is used for detecting the brightness of the ambient light.
And a second control module, configured to control the first detection module 801 to detect a first distance between a target object to be photographed and a camera that photographs the target object when the brightness of the ambient light is lower than a preset brightness value.
Further, the terminal further includes:
and the receiving module is used for receiving a preset instruction input by a user.
The preset instruction comprises the following steps: at least one of a face unlocking instruction and a photographing instruction.
And a third control module, configured to control the first detection module 801 to detect a first distance between the photographed target object and a camera for photographing the target object after receiving the preset instruction.
In the embodiment of the invention, two groups of light supplementing lamps are arranged in the terminal, and the light source (namely the first light source) in one group of light supplementing lamps is closer to the texture (namely the first texture) on the lens, so that the light supplementing formed by the group of light supplementing lamps has lower central brightness and higher brightness around the center, and the light supplementing lamp is suitable for the condition that the distance from a shot target object to the camera is closer. The light source (i.e. the second light source) in the other group of light supplement lamps is far away from the lines (i.e. the second lines) on the lens, so that the light supplement formed by the group of light supplement lamps is higher in central brightness and lower in brightness around the center compared with the light supplement lamps, and the light supplement lamp is suitable for the situation that the distance from a shot target object to the camera is far. Like this, when needs light filling, can be according to the target object that is shot to the distance of camera, confirm specifically that which light filling lamp carries out the light filling to the problem between light filling demand and the distance is taken into account better, makes the light filling effect better.
Fig. 9 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention.
The terminal 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the terminal configuration shown in fig. 9 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 910 configured to detect a first distance between a target object being photographed and a camera that photographs the target object; when the first distance is smaller than a preset distance, starting the first light source; and when the first distance is greater than a preset distance, starting the second light source.
In the embodiment of the invention, two groups of light supplementing lamps are arranged in the terminal, and the light source (namely the first light source) in one group of light supplementing lamps is closer to the texture (namely the first texture) on the lens, so that the light supplementing formed by the group of light supplementing lamps has lower central brightness and higher brightness around the center, and the light supplementing lamp is suitable for the condition that the distance from a shot target object to the camera is closer. The light source (i.e. the second light source) in the other group of light supplement lamps is far away from the lines (i.e. the second lines) on the lens, so that the light supplement formed by the group of light supplement lamps is higher in central brightness and lower in brightness around the center compared with the light supplement lamps, and the light supplement lamp is suitable for the situation that the distance from a shot target object to the camera is far. Like this, when needs light filling, can be according to the target object that is shot to the distance of camera, confirm specifically that which light filling lamp carries out the light filling to the problem between light filling demand and the distance is taken into account better, makes the light filling effect better.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 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 901 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 902, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output related to a specific function performed by the terminal 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sounds and can process such sounds 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 901 in case of the phone call mode.
Terminal 900 can also include at least one sensor 905, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 9061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 9061 and/or backlight when the terminal 900 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 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 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 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 907 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. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 may include two parts, 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 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 908 is an interface through which an external device is connected to the terminal 900. 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. Interface unit 908 can be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within terminal 900 or can be used to transmit data between terminal 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 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, and the like. Further, the memory 909 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 910 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby integrally monitoring the terminal. Processor 910 may include one or more processing units; preferably, the processor 910 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 is to be appreciated that the modem processor described above may not be integrated into processor 910.
The terminal 900 can also include a power supply 911 (e.g., a battery) for powering the various components, and preferably, the power supply 911 can be logically connected to the processor 910 via a power management system such that the functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the terminal 900 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal, including a processor 910, a memory 909, and a computer program stored in the memory 909 and capable of running on the processor 910, where the computer program is executed by the processor 910 to implement each process of the foregoing embodiment of the light supplementary method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further 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 of the embodiment of the light supplement method, 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 (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 (12)

1. A terminal, comprising:
the first light source and the second light source are arranged on the circuit board at intervals;
a lens disposed over the first light source and the second light source;
one surface of the lens, facing the first light source and the second light source, is provided with a first texture corresponding to the first light source and a second texture corresponding to the second light source; the vertical distance from the first light source to the first texture is smaller than the vertical distance from the second light source to the second texture.
2. A terminal as claimed in claim 1, wherein the first and second textures are the same texture.
3. A terminal as claimed in claim 1, wherein the first and second textures are different textures.
4. A terminal according to any of claims 1 to 3, wherein the first and second light sources are both infrared or flash lamps.
5. A light supplement method, applied to the terminal as claimed in any one of claims 1 to 4, wherein the terminal further includes at least one camera, and the camera and the first light source and the second light source are disposed on the same side of the terminal;
wherein the method comprises the following steps:
detecting a first distance between a photographed target object and a camera photographing the target object;
when the first distance is smaller than a preset distance, starting the first light source;
and when the first distance is greater than a preset distance, starting the second light source.
6. The method of claim 5, wherein prior to the step of detecting the first distance between the target object being photographed and the camera photographing the target object, the method further comprises:
detecting the brightness of the ambient light;
when the brightness of the ambient light is lower than a preset brightness value, a step of detecting a first distance between a target object to be photographed and a camera that photographs the target object is performed.
7. The method of claim 5, wherein prior to the step of detecting the first distance between the target object being photographed and the camera that photographs the target object, the method further comprises:
receiving a preset instruction input by a user; wherein the preset instruction comprises: at least one of a face unlocking instruction and a photographing instruction;
and after receiving the preset instruction, executing a step of detecting a first distance between the shot target object and a camera shooting the target object.
8. A terminal, characterized in that the terminal is a terminal according to any of claims 1 to 4, the terminal further comprising at least one camera, the camera being arranged on the same side of the terminal as the first light source and the second light source;
wherein, the terminal further includes:
the first detection module is used for detecting a first distance between a shot target object and a camera shooting the target object;
the first control module is used for starting the first light source when the first distance is smaller than a preset distance; and when the first distance is greater than a preset distance, starting the second light source.
9. The terminal of claim 8, further comprising:
the second detection module is used for detecting the brightness of the ambient light;
and the second control module is used for controlling the first detection module to detect a first distance between a shot target object and a camera shooting the target object when the brightness of the ambient light is lower than a preset brightness value.
10. The terminal of claim 8, further comprising:
the receiving module is used for receiving a preset instruction input by a user; the preset instruction comprises the following steps: at least one of a face unlocking instruction and a photographing instruction;
and the third control module is used for controlling the first detection module to detect the first distance between the shot target object and the camera shooting the target object after receiving the preset instruction.
11. A terminal, comprising: processor, memory and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the fill lighting method according to any one of claims 5 to 7.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the fill lighting method according to any one of claims 5 to 7.
CN201910026931.1A 2019-01-11 2019-01-11 Light supplementing method and terminal Active CN109788174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910026931.1A CN109788174B (en) 2019-01-11 2019-01-11 Light supplementing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910026931.1A CN109788174B (en) 2019-01-11 2019-01-11 Light supplementing method and terminal

Publications (2)

Publication Number Publication Date
CN109788174A CN109788174A (en) 2019-05-21
CN109788174B true CN109788174B (en) 2021-05-07

Family

ID=66499420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910026931.1A Active CN109788174B (en) 2019-01-11 2019-01-11 Light supplementing method and terminal

Country Status (1)

Country Link
CN (1) CN109788174B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213411B (en) * 2019-05-31 2021-07-06 维沃移动通信有限公司 Light source control method and terminal
CN110312393B (en) * 2019-06-27 2021-03-05 Oppo广东移动通信有限公司 Electronic equipment and soft light assembly thereof
CN110428640B (en) * 2019-09-04 2023-09-22 广东泓胜科技股份有限公司 Light supplementing device and light supplementing method for high-speed license plate recognition
CN111314586B (en) * 2020-02-19 2021-08-10 北京小米移动软件有限公司 Light supplementing assembly, control method thereof, camera module and mobile terminal
CN111580327A (en) * 2020-05-08 2020-08-25 Oppo(重庆)智能科技有限公司 Flash lamp module, electronic equipment and control method thereof
CN111935388B (en) * 2020-09-22 2022-01-04 Oppo广东移动通信有限公司 Flash control method of mobile terminal and mobile terminal, storage medium and device
CN112269294B (en) * 2020-10-23 2022-02-01 维沃移动通信有限公司 Light supplementing system of electronic equipment and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888650A (en) * 2014-03-07 2014-06-25 海特光电有限责任公司 Close-range laser camera
CN107809599A (en) * 2017-11-16 2018-03-16 维沃移动通信有限公司 A kind of light compensation method and device and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004342781A (en) * 2003-05-14 2004-12-02 Nichia Chem Ind Ltd Light emitting device and display unit
CN101778143B (en) * 2009-01-09 2012-11-14 绿点高新科技股份有限公司 Wireless communication device with adjustable fill light
CN101957539B (en) * 2010-06-09 2012-06-27 杭州海康威视数字技术股份有限公司 Method and device for monitoring and supplementing light
KR101694797B1 (en) * 2010-12-21 2017-01-11 삼성전자주식회사 Method of operating a three-dimensional image sensor
CN205191482U (en) * 2015-12-11 2016-04-27 高准精密工业股份有限公司 Flash unit and its Fresnel lens
WO2018176399A1 (en) * 2017-03-31 2018-10-04 中控智慧科技股份有限公司 Image collection method and device
CN207266067U (en) * 2017-07-25 2018-04-20 珠海市魅族科技有限公司 Flash lamp component and terminal device
CN109151290A (en) * 2018-10-30 2019-01-04 维沃移动通信(杭州)有限公司 Lighting module and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888650A (en) * 2014-03-07 2014-06-25 海特光电有限责任公司 Close-range laser camera
CN107809599A (en) * 2017-11-16 2018-03-16 维沃移动通信有限公司 A kind of light compensation method and device and mobile terminal

Also Published As

Publication number Publication date
CN109788174A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109788174B (en) Light supplementing method and terminal
CN109639970B (en) Shooting method and terminal equipment
CN110971930B (en) Live virtual image broadcasting method, device, terminal and storage medium
CN110557575B (en) Method for eliminating glare and electronic equipment
CN110266930A (en) Lighting method for image shooting, mobile terminal and lighting adjustment method
CN108055402B (en) Shooting method and mobile terminal
CN108040209B (en) Shooting method and mobile terminal
CN107730460B (en) Image processing method and mobile terminal
CN108924412B (en) Shooting method and terminal equipment
CN107241552B (en) Image acquisition method, device, storage medium and terminal
US11165950B2 (en) Method and apparatus for shooting video, and storage medium
CN111144365A (en) Living body detection method, living body detection device, computer equipment and storage medium
CN108335258B (en) Image processing method and device of mobile terminal
CN109474789B (en) Field of view adjustment method and mobile terminal for fill light
CN108718388B (en) Photographing method and mobile terminal
CN108965728A (en) A kind of brightness adjusting method and terminal
CN110290331B (en) Screen control method and terminal
CN109379539A (en) A kind of screen fill light method and terminal
CN109302564B (en) Shooting method and mobile terminal
CN111050069A (en) Shooting method and electronic equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN110363729B (en) Image processing method, terminal equipment and computer readable storage medium
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN108924413B (en) Shooting method and mobile terminal
CN111212228B (en) Image processing method and electronic device

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