CN112672069B - Exposure method and apparatus - Google Patents

Exposure method and apparatus Download PDF

Info

Publication number
CN112672069B
CN112672069B CN202011555962.5A CN202011555962A CN112672069B CN 112672069 B CN112672069 B CN 112672069B CN 202011555962 A CN202011555962 A CN 202011555962A CN 112672069 B CN112672069 B CN 112672069B
Authority
CN
China
Prior art keywords
target
brightness
reflectivity
camera
exposure
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
CN202011555962.5A
Other languages
Chinese (zh)
Other versions
CN112672069A (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 CN202011555962.5A priority Critical patent/CN112672069B/en
Publication of CN112672069A publication Critical patent/CN112672069A/en
Application granted granted Critical
Publication of CN112672069B publication Critical patent/CN112672069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses an exposure method and electronic equipment, belongs to the technical field of electronics, and aims to solve the problem that the shooting effect is dark or bright due to the fact that the target brightness of a scene with single brightness is difficult to calculate accurately in the existing exposure method. Wherein, the exposure method comprises the following steps: in a first image acquired by a first camera of the electronic equipment based on a target shooting scene, controlling a light emitter of the electronic equipment to emit target light under the condition that the interval range of first target brightness is smaller than a preset interval threshold; acquiring a target reflectivity of the target shooting scene through a second image shot by a second camera of the electronic equipment under the target light; determining a target brightness adjustment parameter corresponding to the target reflectivity according to the target reflectivity; and controlling the exposure of the first camera according to the target brightness adjusting parameter. The exposure method is applied to the electronic equipment.

Description

Exposure method and apparatus
Technical Field
The application belongs to the technical field of electronics, and particularly relates to an exposure method and device.
Background
The purpose of Automatic Exposure (AE) is: in different lighting conditions and scenes, a consumption brightness level or a so-called target brightness level is achieved, so that the captured video or image is neither too dark nor too bright.
Generally, in most auto-exposure scenes, a target brightness can be obtained based on the existing auto-exposure algorithm, so that the shooting effect can present the same brightness relationship as the actual scene. However, when a scene with a single brightness relationship is shot, for example, a snow scene, a gray wall surface, and the like, the snow scene is darker, and the gray wall surface is either darker or brighter. The existing exposure method causes the shooting effect to be darker or brighter due to the difficulty in accurately calculating the target brightness of a scene with single brightness.
Disclosure of Invention
The embodiment of the application aims to provide an exposure method, which can solve the problem that the shooting effect is dark or bright due to the fact that the target brightness of a scene with single brightness is difficult to accurately calculate in the existing exposure method.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an exposure method, including: in a first image acquired by a first camera of the electronic equipment based on a target shooting scene, controlling a light emitter of the electronic equipment to emit target light under the condition that the interval range of first target brightness is smaller than a preset interval threshold; acquiring a target reflectivity of the target shooting scene through a second image shot by a second camera of the electronic equipment under the target light; determining a target brightness adjustment parameter corresponding to the target reflectivity according to the target reflectivity; and controlling the exposure of the first camera according to the target brightness adjusting parameter.
In a second aspect, an embodiment of the present application provides an exposure apparatus, including: the first control module is used for controlling a light ray emitter of the electronic equipment to emit target light rays under the condition that the interval range of first target brightness is smaller than a preset interval threshold value in a first image acquired by a first camera of the electronic equipment based on a target shooting scene; the first acquisition module is used for acquiring the target reflectivity of the target shooting scene through a second image shot by a second camera of the electronic equipment under the target light; the determining module is used for determining a target brightness adjusting parameter corresponding to the target reflectivity according to the target reflectivity; and the second control module is used for controlling the exposure of the first camera according to the target brightness adjusting parameter.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
Thus, in the embodiment of the application, whether the brightness of the first target in the first image is concentrated in a smaller range can be judged through the acquired histogram information in the first image of the target shooting scene. In this embodiment, a preset interval threshold is provided, and the preset interval threshold is used to indicate the size of the range interval. And when the interval range of the first target brightness in the first image is smaller than a preset interval threshold value, determining that the target shooting scene is a single brightness scene. Further, a light emitter of the electronic device is controlled to emit target light, so that in a target shooting scene, the second camera carries out photosensitive imaging on the target light. Further, in a second image formed based on the photosensitive imaging, a target reflectivity of a target shooting scene is obtained, and a target brightness adjusting parameter corresponding to the target reflectivity is obtained based on the target reflectivity in a preset relation. Therefore, the first target brightness is adjusted by combining the target brightness adjusting parameter so as to perform exposure based on the adjusted target brightness, and the brightness of the shot image is normal and cannot be too dark or too bright. Therefore, the embodiment provides an exposure method for a single-brightness scene, so that the exposure amount is accurate, and the problem that the shooting effect is dark or bright due to the fact that the target brightness of the single-brightness scene is difficult to accurately calculate in the existing exposure method is solved.
Drawings
Fig. 1 is a flowchart of an exposure method according to an embodiment of the present application;
fig. 2 is a block diagram of an exposure apparatus according to an embodiment of the present application;
fig. 3 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.
Fig. 4 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The exposure method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 shows a flowchart of an exposure method according to an embodiment of the present application, the method including:
step S1: in a first image acquired by a first camera of the electronic equipment based on a target shooting scene, under the condition that the interval range of first target brightness is smaller than a preset interval threshold value, a light ray emitter of the electronic equipment is controlled to emit target light rays.
In this embodiment, the electronic device includes a first camera and a second camera, where the first camera is used to shoot an image and is a main camera; the second camera is used for photosensitive imaging under the emitted target light and is a secondary camera.
Further, the electronic device further includes a light emitter for emitting the target light.
Optionally, the light emitter and the second camera may be combined together to form a newly added camera module.
In this step, a photographing input of a user is received in a photographing mode, and the first camera is controlled to capture a first image corresponding to a target photographing scene in response to the photographing input.
In an application scenario, for example, a user selects a photographing key in a photographing mode, or presses a photographing shortcut combination key.
Alternatively, it is determined whether the histogram is concentrated in a certain extremely narrow luminance section based on the histogram information of the first image. If the histogram is concentrated in a certain extremely narrow luminance interval, the interval range of the first target luminance in the first image is smaller than a preset interval threshold. If the histogram is dispersed in a luminance interval with a large span, the interval range of the first target luminance in the first image is greater than or equal to a preset interval threshold.
The preset interval threshold is set to determine whether the current target shooting scene is a single brightness scene, so that the preset interval threshold can be used for selecting a brightness interval with a moderately narrow size as the preset interval threshold according to practical application.
Correspondingly, the exposure method provided by the embodiment is adopted under the condition that the target shooting scene is judged to be a single-brightness scene.
Optionally, in a case where it is determined that the target shooting scene is not a single-brightness scene, an exposure algorithm in the prior art is adopted to perform exposure.
Alternatively, the target light in the present embodiment includes any one of a plurality of realizable lights of infrared rays, ultraviolet rays, and the like.
Correspondingly, the light emitter includes any of a variety of realizable light emitters, such as infrared emitters, ultraviolet emitters, and the like.
Step S2: and acquiring the target reflectivity of the target shooting scene through a second image shot by a second camera of the electronic equipment under the target light.
In the present embodiment, the objective of emitting the target light is to make the second camera perform photosensitive imaging on the emitted light, so that the target reflectivity of the target shooting scene can be obtained based on the imaging.
In reference, the intensity of the reflected light is judged after imaging according to the intensity of the emitted light, and the light reflectivity of a single object is obtained by combining the distance between the object and the camera.
And step S3: and determining a target brightness adjustment parameter corresponding to the target reflectivity according to the target reflectivity.
Optionally, before this step, a corresponding relationship between each reflectivity and a brightness adjustment parameter is preset based on an image captured by the second camera under the target light in each shooting scene.
The correspondence relationship is preset by a reflectivity test, as a reference.
For example, for some shooting scenes with single brightness, such as snow, lawn, etc., the target light is used for illumination, so that the second camera performs photosensitive imaging on the emitted light. Further, the brightness value of each shooting scene image is obtained, and further the brightness adjusting parameter of the main camera to be adjusted is obtained according to the actual brightness value of each shooting scene, so that the brightness of each shooting scene image is normal. In the test, irradiation is performed based on the target light, and different shooting scenes can correspond to different reflectivities, so that corresponding relations can be established between the different shooting scenes, the corresponding reflectivities and the corresponding brightness adjustment parameters.
Based on the above test, in this step, after the target reflectivity is obtained, it may be determined which shooting scene is in the test, so as to determine a corresponding target brightness adjustment parameter for adjusting the brightness of the first target of the current exposure.
And step S4: and controlling the exposure of the first camera according to the target brightness adjusting parameter.
Optionally, in this embodiment, the first camera first captures a first image based on an existing exposure algorithm, and the first image exhibits a first target brightness. Further, the first target brightness is adjusted by combining the target brightness adjustment parameter obtained in this embodiment, so that the first camera performs exposure based on the adjusted target brightness.
Thus, in the embodiment of the present application, it can be determined whether the brightness of the first target in the first image is concentrated in a smaller range through the acquired histogram information in the first image of the target shooting scene. In this embodiment, a preset interval threshold is provided, and the preset interval threshold is used to indicate the size of the range interval. When the interval range of the first target brightness in the first image is smaller than a preset interval threshold value, the target shooting scene is determined to be a single brightness scene. Further, a light emitter of the electronic device is controlled to emit target light, so that in a target shooting scene, the second camera carries out photosensitive imaging on the target light. Further, in a second image formed based on the photosensitive imaging, a target reflectivity of a target shooting scene is obtained, and a target brightness adjusting parameter corresponding to the target reflectivity is obtained based on the target reflectivity in a preset relation. Therefore, the first target brightness is adjusted by combining the target brightness adjusting parameter so as to perform exposure based on the adjusted target brightness, and the brightness of the shot image is normal and cannot be too dark or too bright. Therefore, the embodiment provides an exposure method for a single-brightness scene, so that the exposure amount is accurate, and the problem that the shooting effect is dark or bright due to the fact that the target brightness of the single-brightness scene is difficult to accurately calculate in the conventional exposure method is solved.
In the flow of the exposure method according to another embodiment of the present application, after step S2, the method further includes:
step A1: and acquiring a target distance between a target shooting scene and a shooting position.
In the exposure process, when the distance between the shot scene and the camera changes, the exposure amount also changes correspondingly, so that after the target reflectivity of the target shot scene is obtained, the target distance between the target shot scene and the shooting position, namely the distance between the camera and the target shot scene, needs to be obtained.
Optionally, the target distance is obtained through Automatic Focusing (AF).
And step S3, comprising:
substep A2: and determining target brightness adjustment parameters corresponding to the target reflectivity and the target distance according to the target reflectivity and the target distance.
In reference, through testing, the corresponding relationship among different shooting scenes, the corresponding reflectivity, the corresponding shooting distance and the corresponding brightness adjustment parameters is established. Therefore, in this step, in the case where the target reflectance and the target distance are obtained, the target luminance adjustment parameter is directly obtained from the established relationship.
In the embodiment, data related to a target brightness adjustment parameter, namely, the distance between the camera and the shooting scene is added, so that the accuracy of the exposure amount in a single brightness scene is further improved.
In a flow of an exposure method according to another embodiment of the present application, before the step A2, the method further includes:
step B1: and acquiring the reflectivity of each gray scale at each distance based on each image shot by the second camera under the target light based on different distances and different gray scales.
In this embodiment, a test method is provided for establishing a corresponding relationship among different gray scales, corresponding reflectivities, corresponding shooting distances, and corresponding brightness adjustment parameters.
By reference, the test method is as follows:
one gray card is prepared according to 20 gray levels in the gray scale card and the corresponding 20 gray levels. Each gray card corresponds to one gray scale of the gray cards.
And (3) performing target light reflectivity test once every 50cm from 50cm for each gray card, wherein the maximum test is 3m.
Based on the test method, each distance can correspond to one image in each gray scale card, and meanwhile, the reflectivity of the image corresponds to the reflectivity of the image.
Figure BDA0002858676520000071
TABLE 1
Referring to Table 1, gray01distance50 represents the gray scale of 01, the reflectance of the image at 50 cm. And so on.
And step B2: and acquiring the brightness value of the image corresponding to any reflectivity.
In this step, the luminance value of the grayscale card image at each distance is acquired.
Optionally, the second camera may perform exposure in a unit time to obtain an image corresponding to each gray scale. Therefore, the reflectivity and the brightness value corresponding to the image corresponding to each gray scale can be obtained, and interference factors caused by inconsistent exposure time can be eliminated. In addition, exposure is carried out in unit time, so that the reflectivity is high, the brightness value is high, and the test result is easier to obtain.
Accordingly, in step S2 in the present embodiment, a second image captured by the second camera through the target light is also obtained by performing exposure in a unit time.
And step B3: and acquiring a second brightness value of the gray scale corresponding to any reflectivity.
The second brightness value is the brightness value of each gray scale.
And step B4: and acquiring a brightness adjustment parameter corresponding to any reflectivity according to the first brightness value and the second brightness value.
At each distance, under each gray scale, according to the second brightness value of the gray scale itself, i.e. the actual brightness value, and the first brightness value presented by the image, the brightness adjustment parameter to be adjusted can be obtained, so that the imaging brightness of the gray scale is consistent with the actual brightness, i.e. the brightness is normal.
Figure BDA0002858676520000081
TABLE 2
Referring to table 2, yratio represents a brightness adjustment parameter.
In this embodiment, a calibration method is provided to calibrate a corresponding relationship between a reflectivity, a shooting distance, and a brightness adjustment parameter, so that in actual shooting, based on an obtained target emissivity of a target shooting scene and a target distance between the target shooting scene and a shooting position, a gray scale to which the target belongs can be determined in a pre-calibrated relationship table 1, and then a target brightness adjustment parameter is determined in a pre-calibrated relationship table 2 to determine a first target brightness of automatic exposure, so as to determine how much adjustment is required to obtain an accurate exposure, thereby achieving an effect of ensuring accurate exposure.
In the flow of the exposure method according to another embodiment of the present application, the target brightness adjustment parameter includes a target adjustment ratio. And step S4, comprising:
substep C1: and acquiring second target brightness according to the first target brightness and the target adjustment proportion.
In the present embodiment, in table 2, yrtio = second luminance value/first luminance value, i.e., the target luminance adjustment parameter includes the target adjustment ratio. Corresponding to the auto exposure of the first camera, yratio = target brightness required to be reached/target brightness of the auto exposure.
In the present embodiment, the target brightness of the automatic exposure is the first target brightness. Therefore, according to the first target brightness and the target adjustment ratio, the target brightness required to be achieved by the target shooting scene, namely the second target brightness, can be obtained.
And a substep C2: and controlling the exposure of the first camera based on the second target brightness.
In this embodiment, the first camera exposure is controlled based on the adjusted second target brightness. Therefore, the brightness of the output image is consistent with the brightness in the actual scene, and the problem of inaccurate exposure of a scene with a single brightness relation can be solved.
In an exposure method according to another embodiment of the present application, the step S1 includes:
substep D1: the light emitter of the control electronics emits ultraviolet light.
In the present embodiment, the target light used is ultraviolet light. The ultraviolet reflectivity is low, and the attenuation is less along with the change of the distance, so that the ultraviolet light-emitting diode is more suitable for calibration and practical application of the embodiment.
Optionally, the embodiment can be applied to industry to avoid ultraviolet rays from damaging human bodies.
In summary, the present disclosure provides an ultraviolet imaging method to assist an automatic exposure algorithm in accurate exposure in a scene with a single brightness relationship.
It should be noted that, in the exposure method provided in the embodiment of the present application, the execution main body may be an exposure apparatus, or a control module for executing the exposure method in the exposure apparatus. In the embodiment of the present application, an exposure apparatus for performing an exposure method is taken as an example, and the exposure apparatus for performing the exposure method provided in the embodiment of the present application is described.
Fig. 2 shows a block diagram of an exposure apparatus according to another embodiment of the present application, including:
the first control module 10 is configured to control a light emitter of the electronic device to emit target light when an interval range of first target brightness is smaller than a preset interval threshold in a first image acquired by a first camera of the electronic device based on a target shooting scene;
the first obtaining module 20 is configured to obtain a target reflectivity of a target shooting scene through a second image shot by a second camera of the electronic device under the target light;
a determining module 30, configured to determine, according to the target reflectivity, a target brightness adjustment parameter corresponding to the target reflectivity;
and the second control module 40 is used for controlling the exposure of the first camera according to the target brightness adjusting parameter.
Thus, in the embodiment of the present application, it can be determined whether the brightness of the first target in the first image is concentrated in a smaller range through the acquired histogram information in the first image of the target shooting scene. In this embodiment, a preset interval threshold is provided, and the preset interval threshold is used to indicate the size of the range interval. When the interval range of the first target brightness in the first image is smaller than a preset interval threshold value, the target shooting scene is determined to be a single brightness scene. Further, a light emitter of the electronic device is controlled to emit target light, so that in a target shooting scene, the second camera carries out photosensitive imaging on the target light. Further, in a second image formed based on the photosensitive imaging, a target reflectivity of the target shooting scene is obtained, and a target brightness adjusting parameter corresponding to the target reflectivity is obtained based on the target reflectivity in a preset relation. Therefore, the first target brightness is adjusted by combining the target brightness adjusting parameter, so that exposure is carried out based on the adjusted target brightness, and the brightness of the shot image is normal and cannot be too dark or too bright. Therefore, the embodiment provides an exposure method for a single-brightness scene, so that the exposure amount is accurate, and the problem that the shooting effect is dark or bright due to the fact that the target brightness of the single-brightness scene is difficult to accurately calculate in the conventional exposure method is solved.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring a target distance between a target shooting scene and a shooting position;
a determination module 30 comprising:
and the adjusting parameter determining unit is used for determining target brightness adjusting parameters corresponding to the target reflectivity and the target distance according to the target reflectivity and the target distance.
Optionally, the apparatus further comprises:
the third acquisition module is used for acquiring the reflectivity of each gray scale at each distance based on each image shot by the second camera under the target light based on different distances and different gray scales;
the fourth acquisition module is used for acquiring a first brightness value of an image corresponding to any reflectivity;
the fifth acquisition module is used for acquiring a second brightness value of the gray scale corresponding to any reflectivity;
and the sixth obtaining module is used for obtaining the brightness adjusting parameter corresponding to any reflectivity according to the first brightness value and the second brightness value.
Optionally, the second control module 40 includes:
the target brightness acquisition unit is used for acquiring second target brightness according to the first target brightness and the target adjustment proportion;
and the exposure unit is used for controlling the exposure of the first camera based on the second target brightness.
Optionally, the apparatus further comprises a transmitter; a first control module 10 comprising:
and the transmitting unit is used for controlling the light ray transmitter of the electronic equipment to transmit ultraviolet rays.
The exposure apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The exposure apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The exposure apparatus provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 100 is further provided in this embodiment of the present application, and includes a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and executable on the processor 101, where the program or the instruction is executed by the processor 101 to implement each process of any one of the foregoing embodiments of the exposure method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and the like.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in the drawings, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to control the light emitter of the electronic device 1000 to emit target light when an interval range of first target brightness is smaller than a preset interval threshold in a first image acquired by a first camera of the electronic device 1000 based on a target shooting scene; acquiring a target reflectivity of the target shooting scene through a second image shot by a second camera of the electronic device 1000 under the target light; determining a target brightness adjustment parameter corresponding to the target reflectivity according to the target reflectivity; and controlling the exposure of the first camera according to the target brightness adjusting parameter.
Thus, in the embodiment of the present application, it can be determined whether the brightness of the first target in the first image is concentrated in a smaller range through the acquired histogram information in the first image of the target shooting scene. In this embodiment, a preset interval threshold is provided, and the preset interval threshold is used to indicate the size of the range interval. When the interval range of the first target brightness in the first image is smaller than a preset interval threshold value, the target shooting scene is determined to be a single brightness scene. Further, the light emitter of the electronic device 1000 is controlled to emit the target light, so that the second camera performs photosensitive imaging on the target light in the target shooting scene. Further, in a second image formed based on the photosensitive imaging, a target reflectivity of the target shooting scene is obtained, and a target brightness adjusting parameter corresponding to the target reflectivity is obtained based on the target reflectivity in a preset relation. Therefore, the first target brightness is adjusted by combining the target brightness adjusting parameter so as to perform exposure based on the adjusted target brightness, and the brightness of the shot image is normal and cannot be too dark or too bright. Therefore, the embodiment provides an exposure method for a single-brightness scene, so that the exposure amount is accurate, and the problem that the shooting effect is dark or bright due to the fact that the target brightness of the single-brightness scene is difficult to accurately calculate in the conventional exposure method is solved.
Optionally, the processor 1010 is further configured to obtain a target distance between the target shooting scene and the shooting position; and determining target brightness adjustment parameters corresponding to the target reflectivity and the target distance according to the target reflectivity and the target distance.
Optionally, the processor 1010 is further configured to obtain, through the second camera, a reflectivity of each gray scale at each distance based on each image shot by the second camera under the target light based on different distances and different gray scales; acquiring a first brightness value of an image corresponding to any reflectivity; acquiring a second brightness value of the gray scale corresponding to the random reflectivity; and acquiring a brightness adjusting parameter corresponding to the random reflectivity according to the first brightness value and the second brightness value.
Optionally, the target brightness adjustment parameter includes a target adjustment ratio; the processor 1010 is further configured to obtain a second target brightness according to the first target brightness and the target adjustment ratio; and controlling the exposure of the first camera based on the second target brightness.
Optionally, the processor 1010 is further configured to control a light emitter of the electronic device 1000 to emit ultraviolet light.
In summary, the present disclosure provides an ultraviolet imaging method to assist an automatic exposure algorithm in accurate exposure in a scene with a single brightness relationship.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 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. The memory 1009 may be used for storing software programs as well as various data, including but not limited to application programs and operating systems. The processor 1010 may integrate an application processor, which primarily handles operating system, user interface, and applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of any one of the foregoing embodiments of the exposure method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of any one of the above exposure method embodiments, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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 one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application 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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An exposure method, characterized in that the method comprises:
in a first image acquired by a first camera of electronic equipment based on a target shooting scene, controlling a light emitter of the electronic equipment to emit target light under the condition that the interval range of first target brightness is smaller than a preset interval threshold value; the preset interval threshold is used for judging whether the current target shooting scene is a single-brightness scene;
acquiring a target reflectivity of the target shooting scene through a second image shot by a second camera of the electronic equipment under the target light, wherein the second camera is exposed in unit time;
determining a target brightness adjustment parameter corresponding to the target reflectivity according to the target reflectivity;
and controlling the exposure of the first camera according to the target brightness adjusting parameter.
2. The method of claim 1, wherein after obtaining the target reflectivity of the target capture scene from the second image captured by the second camera of the electronic device under the target light, further comprising:
acquiring a target distance between the target shooting scene and a shooting position;
determining a target brightness adjustment parameter corresponding to the target reflectivity according to the target reflectivity comprises:
and determining target brightness adjustment parameters corresponding to the target reflectivity and the target distance according to the target reflectivity and the target distance.
3. The method of claim 2, wherein before determining the target brightness adjustment parameter corresponding to both the target reflectivity and the target distance according to the target reflectivity and the target distance, the method further comprises:
acquiring the reflectivity of each gray scale at each distance based on each image shot by the second camera under the target light based on different distances and different gray scales;
acquiring a first brightness value of an image corresponding to any reflectivity;
acquiring a second brightness value of the gray scale corresponding to the random reflectivity;
and acquiring a brightness adjustment parameter corresponding to the random reflectivity according to the first brightness value and the second brightness value.
4. The method of claim 1, wherein the target brightness adjustment parameter comprises a target adjustment ratio; the controlling exposure of the first camera according to the target brightness adjusting parameter comprises:
acquiring second target brightness according to the first target brightness and the target adjustment proportion;
and controlling the exposure of the first camera based on the second target brightness.
5. The method of claim 1, wherein controlling a light emitter of the electronic device to emit target light comprises:
and controlling a light emitter of the electronic equipment to emit ultraviolet rays.
6. An exposure apparatus, characterized in that the apparatus further comprises:
the first control module is used for controlling a light ray emitter of the electronic equipment to emit target light rays under the condition that the interval range of first target brightness is smaller than a preset interval threshold value in a first image acquired by a first camera of the electronic equipment based on a target shooting scene; the preset interval threshold is used for judging whether the current target shooting scene is a single brightness scene;
the first acquisition module is used for acquiring the target reflectivity of the target shooting scene through a second image shot by a second camera of the electronic equipment under the target light, wherein the second camera is exposed in unit time;
the determining module is used for determining a target brightness adjusting parameter corresponding to the target reflectivity according to the target reflectivity;
and the second control module is used for controlling the exposure of the first camera according to the target brightness adjusting parameter.
7. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring a target distance between the target shooting scene and the shooting position;
the determining module includes:
and the adjustment parameter determining unit is used for determining target brightness adjustment parameters corresponding to the target reflectivity and the target distance according to the target reflectivity and the target distance.
8. The apparatus of claim 7, further comprising:
the third acquisition module is used for acquiring the reflectivity of each gray scale at each distance according to each image shot by the second camera under the target light based on different distances and different gray scales;
the fourth acquisition module is used for acquiring a first brightness value of an image corresponding to any reflectivity;
the fifth obtaining module is used for obtaining a second brightness value of the gray scale corresponding to the random reflectivity;
and the sixth obtaining module is used for obtaining the brightness adjusting parameter corresponding to the arbitrary reflectivity according to the first brightness value and the second brightness value.
9. The apparatus of claim 6, wherein the second control module comprises:
the target brightness obtaining unit is used for obtaining second target brightness according to the first target brightness and the target adjustment proportion;
and the exposure unit is used for controlling the exposure of the first camera based on the second target brightness.
10. The apparatus of claim 6, wherein the first control module comprises:
and the transmitting unit is used for controlling the light ray transmitter of the electronic equipment to transmit ultraviolet rays.
CN202011555962.5A 2020-12-24 2020-12-24 Exposure method and apparatus Active CN112672069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011555962.5A CN112672069B (en) 2020-12-24 2020-12-24 Exposure method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011555962.5A CN112672069B (en) 2020-12-24 2020-12-24 Exposure method and apparatus

Publications (2)

Publication Number Publication Date
CN112672069A CN112672069A (en) 2021-04-16
CN112672069B true CN112672069B (en) 2023-02-03

Family

ID=75408579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011555962.5A Active CN112672069B (en) 2020-12-24 2020-12-24 Exposure method and apparatus

Country Status (1)

Country Link
CN (1) CN112672069B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507570B (en) * 2021-07-26 2023-05-26 维沃移动通信有限公司 Exposure compensation method and device and electronic equipment
CN114120431B (en) * 2022-01-27 2022-06-28 荣耀终端有限公司 Face recognition method, medium and electronic equipment
CN116723409A (en) * 2022-02-28 2023-09-08 荣耀终端有限公司 Automatic exposure method and electronic equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3831934B2 (en) * 1999-07-29 2006-10-11 富士写真フイルム株式会社 Camera automatic exposure device
US7711257B2 (en) * 2006-04-24 2010-05-04 Nokia Corporation Image quality in cameras using flash
JP2008070611A (en) * 2006-09-14 2008-03-27 Casio Comput Co Ltd Imaging apparatus, exposure condition adjustment method and program
JP2016044995A (en) * 2014-08-20 2016-04-04 セイコーエプソン株式会社 Colorimetric method, colorimetric device, and electronic apparatus
CN105847693A (en) * 2016-04-27 2016-08-10 乐视控股(北京)有限公司 Shooting method and system based on two-camera focusing
CN106254682B (en) * 2016-09-22 2019-07-26 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107040726B (en) * 2017-04-19 2020-04-07 宇龙计算机通信科技(深圳)有限公司 Double-camera synchronous exposure method and system
CN107635102B (en) * 2017-10-30 2020-02-14 Oppo广东移动通信有限公司 Method and device for acquiring exposure compensation value of high-dynamic-range image
CN108924414B (en) * 2018-06-27 2019-12-10 维沃移动通信有限公司 Shooting method and terminal equipment
CN108848294B (en) * 2018-08-15 2020-09-04 努比亚技术有限公司 Shooting parameter adjusting method, terminal and computer readable storage medium
CN111491108B (en) * 2019-01-28 2022-12-09 杭州海康威视数字技术股份有限公司 Exposure parameter adjusting method and device

Also Published As

Publication number Publication date
CN112672069A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN112672069B (en) Exposure method and apparatus
CN110177221B (en) Shooting method and device for high dynamic range image
CN109862282B (en) Method and device for processing person image
US9357127B2 (en) System for auto-HDR capture decision making
CN108881875B (en) Image white balance processing method and device, storage medium and terminal
US10313601B2 (en) Image capturing device and brightness adjusting method
CN107623818B (en) Image exposure method and mobile terminal
CN109729281A (en) Image processing method, device, storage medium and terminal
CN109218621B (en) Image processing method, device, storage medium and mobile terminal
CN113545028B (en) Gain control for facial authentication
CN111083386B (en) Image processing method and electronic device
CN113747067B (en) Photographing method, photographing device, electronic equipment and storage medium
US8090253B2 (en) Photographing control method and apparatus using strobe
KR20170072564A (en) Detecting method for color object in image using noise and detecting system for light emitting apparatus using noise
CN112291473B (en) Focusing method and device and electronic equipment
CN109886864B (en) Privacy mask processing method and device
CN113507570A (en) Exposure compensation method and device and electronic equipment
EP4297395A1 (en) Photographing exposure method and apparatus for self-walking device
CN113989387A (en) Camera shooting parameter adjusting method and device and electronic equipment
CN112261300A (en) Focusing method and device and electronic equipment
CN114143448B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113572974B (en) Image processing method and device and electronic equipment
CN114143447B (en) Image processing method and device and electronic equipment
CN114302057A (en) Image parameter determination method and device, electronic equipment and storage medium
CN116843683B (en) Equipment imaging definition evaluation method, system and 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