CN112312034A - Exposure method and device of image acquisition module, terminal equipment and storage medium - Google Patents

Exposure method and device of image acquisition module, terminal equipment and storage medium Download PDF

Info

Publication number
CN112312034A
CN112312034A CN202011182589.3A CN202011182589A CN112312034A CN 112312034 A CN112312034 A CN 112312034A CN 202011182589 A CN202011182589 A CN 202011182589A CN 112312034 A CN112312034 A CN 112312034A
Authority
CN
China
Prior art keywords
camera
light
acquisition module
image acquisition
light sensor
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.)
Granted
Application number
CN202011182589.3A
Other languages
Chinese (zh)
Other versions
CN112312034B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011182589.3A priority Critical patent/CN112312034B/en
Publication of CN112312034A publication Critical patent/CN112312034A/en
Application granted granted Critical
Publication of CN112312034B publication Critical patent/CN112312034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Abstract

The disclosure relates to an exposure method and device of an image acquisition module, a terminal device and a storage medium. The exposure method of the image acquisition module comprises the following steps: determining the ambient illuminance of the environment where the image acquisition module is located; determining initial light processing parameters of the image acquisition module based on the ambient light illumination; and generating a preview image of the image acquisition module based on the initial light processing parameter. The initial light processing parameters determined by the ambient illuminance can be suitable for different ambient brightness in different photographing environments, more accurate initial light processing parameters corresponding to the current photographing environment can be obtained, and a preview image with a better photographing effect can be obtained.

Description

Exposure method and device of image acquisition module, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to an exposure method and apparatus for an image capture module, a terminal device, and a storage medium.
Background
With the development of terminal equipment such as mobile phone imaging technology, the image acquisition function of the image acquisition module has become an indispensable function on mobile phones. In the use of the image acquisition module, the exposure parameters of the image acquisition module need to be adjusted according to the environment so as to obtain a better exposure effect. Because the image acquisition module is started, historical frame data is not used as a reference, the accuracy of exposure parameters is low when the image acquisition module is used for taking a picture for the first time. Frame loss or underexposure processing is usually performed when an image acquisition module is started in the prior art so as to solve the problem of poor exposure effect caused by low exposure parameters. However, when the image capturing module takes a picture, frame dropping or under exposure processing is performed, which easily causes the speed of starting preview by the image capturing module to become slow.
Disclosure of Invention
The disclosure provides an exposure method and device of an image acquisition module, terminal equipment and a storage medium.
According to a first aspect of the embodiments of the present disclosure, an exposure method for an image capturing module is provided, which includes:
determining the ambient illuminance of the environment where the image acquisition module is located;
determining initial light processing parameters of the image acquisition module based on the ambient light illumination;
and generating a preview image of the image acquisition module based on the initial light processing parameter.
In some embodiments, the determining the ambient light illuminance of the environment where the image capturing module is located includes:
and acquiring the ambient light illumination of the environment where the image acquisition module is started.
In some embodiments, the determining the ambient light illuminance of the environment where the image capturing module is located includes:
and acquiring the ambient illuminance collected by the light sensor with the same orientation as the camera, wherein the image collection module comprises the ambient illuminance.
In some embodiments, the obtaining the ambient light illuminance collected by the light sensor with the same orientation as the camera included in the image collection module comprises:
acquiring identification information of the camera of the image acquisition module;
determining the orientation of the camera according to the identification information of the camera;
and reading the ambient light illumination from a light sensor which is contained in the image acquisition module and has the same orientation as the camera according to the orientation.
In some embodiments, said reading the ambient light illuminance from a light sensor included in the image capture module oriented in the same direction as the camera according to the orientation comprises:
when the orientation of the camera is the same as that of a first light sensor contained in the image acquisition module, reading the ambient light illumination acquired by the first light sensor;
when the orientation of the camera is the same as the orientation of a second light sensor contained in the image acquisition module, the ambient illuminance acquired by the second light sensor is read.
In some embodiments, the initial ray processing parameters include: initial exposure parameters and/or light compensation parameters.
In some embodiments, the initial exposure parameters include:
automatic exposure parameters;
and/or the presence of a gas in the gas,
automatic white balance parameters.
In some embodiments, the light compensation parameters include:
starting parameters of a flash lamp;
and/or the presence of a gas in the gas,
a flash off parameter.
According to a second aspect of the embodiments of the present disclosure, there is provided a terminal device, including:
the image acquisition module comprises a camera and a light sensor which is arranged adjacent to the camera, wherein the direction of the camera is the same as that of the light sensor, and the light sensor is used for acquiring ambient illuminance;
and the processing module is connected with the camera and the light sensor and used for determining initial light processing parameters of the image acquisition module based on the ambient light illumination and generating a preview image of the image acquisition module based on the initial light processing parameters.
In some embodiments, the camera comprises: the camera comprises a first camera and a second camera which is different from the first camera in orientation;
the light sensor includes:
the first light sensor is arranged close to the first camera, and the orientation of the first light sensor is the same as that of the first camera;
the second light sensor is arranged close to the second camera, and the orientation of the second light sensor is the same as that of the second camera;
when the orientation determined according to the identification information of the camera is the same as the orientation of the first light sensor, reading the ambient light illumination collected by the first light sensor;
and when the orientation determined according to the identification information of the camera is the same as the orientation of the second light sensor, reading the ambient light illumination collected by the second light sensor.
In some embodiments, the first light sensor is located on the same plane as the first camera.
In some embodiments, the terminal device further comprises:
and the flash lamp is arranged on the same side as the first camera and packaged on the same plane as the first light sensor.
According to a third aspect of the embodiments of the present disclosure, there is provided an exposure apparatus of an image capturing module, the apparatus including:
the illumination determination module is configured to determine the ambient light illumination of the environment where the image acquisition module is located;
the parameter determining module is configured to determine an initial light processing parameter of the image acquisition module based on the ambient light illumination;
and the image generation module is configured to generate a preview image of the image acquisition module based on the initial light processing parameter.
In some embodiments, the illuminance determination module is further configured to obtain an ambient illuminance of an environment in which the image capturing module is being started.
In some embodiments, the illuminance determination module is further configured to obtain the ambient light illuminance collected by a light sensor included in the image collection module and facing the same direction as the camera.
In some embodiments, the illumination determination module is further configured to obtain identification information of the camera in the image acquisition module; determining the orientation of the camera according to the identification information of the camera; and reading the ambient light illumination from a light sensor which is contained in the image acquisition module and has the same orientation as the camera according to the orientation.
In some embodiments, the illuminance determination module is further configured to read the ambient illuminance collected by a first light sensor included in the image collection module when the orientation of the camera is the same as the orientation of the first light sensor; when the orientation of the camera is the same as the orientation of a second light sensor contained in the image acquisition module, the ambient illuminance acquired by the second light sensor is read.
In some embodiments, the initial ray processing parameters include: initial exposure parameters and/or light compensation parameters.
In some embodiments, the initial exposure parameters include:
automatic exposure parameters;
and/or the presence of a gas in the gas,
automatic white balance parameters.
In some embodiments, the light compensation parameters include:
starting parameters of a flash lamp;
and/or the presence of a gas in the gas,
a flash off parameter.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the exposure method of the image capture module as provided in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of determining initial light processing parameters of an image acquisition module based on ambient light illumination; and generating a preview image of the image acquisition module based on the initial light processing parameters. Because the ambient light illuminance refers to the luminous flux received on the unit area, the ambient brightness of the environment where the image acquisition module is located can be directly reflected. For the ambient light frequency of the reflection luminous intensity of gathering through the camera confirms initial light processing parameter, this disclosed embodiment can be applicable to different ambient brightness under the different environment of shooing through the initial light processing parameter of the image acquisition module that ambient light illuminance confirms, can obtain the initial light processing parameter that the current environment of shooing corresponds more accurate, and then can obtain the preview image that the effect of shooing is better.
Moreover, compared with the method for performing frame loss or under exposure processing on the image in the starting process of the image acquisition module, the embodiment of the disclosure can directly generate the preview image based on the obtained initial light processing parameters of the image acquisition module, and does not need to perform extra image frame loss or under exposure processing at all, thereby saving the image processing time and improving the speed of obtaining the preview image in the starting process of the image acquisition module.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic flow chart illustrating an exposure method of an image capture module according to an embodiment of the present disclosure.
Fig. 2 is a schematic flow chart of an exposure method of an image capture module according to an embodiment of the present disclosure.
Fig. 3 is a schematic flow chart of an exposure method of an image capture module according to an embodiment of the present disclosure.
Fig. 4 is a first schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
Fig. 5a is a schematic structural diagram of a terminal device shown in the embodiment of the present disclosure.
Fig. 5b is a schematic structural diagram of a terminal device shown in the embodiment of the present disclosure.
Fig. 6 is a first device diagram of an exposure method of an image capture module according to an embodiment of the present disclosure.
Fig. 7 is a second apparatus diagram of an exposure method of an image capture module according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a first flowchart illustrating an exposure method of an image capture module according to an embodiment of the present disclosure. As shown in fig. 1, the exposure method of the image capturing module is suitable for an initial photographing scene of the image capturing module in different environments, for example, an initial photographing scene in an indoor environment; or an initial photographic scene in a cloudy environment. The exposure method of the image acquisition module at least comprises the following steps:
s101, determining the ambient illuminance of the environment where the image acquisition module is located;
s102, determining initial light processing parameters of the image acquisition module based on the ambient light illumination;
s103, generating a preview image of the image acquisition module based on the initial light processing parameters.
The exposure method of the image acquisition module can be applied to terminal equipment with the image acquisition module, and the terminal equipment generates a preview image of the image acquisition module after the image acquisition module is started through the exposure method of the image acquisition module. The terminal device comprises a wearable electronic device or a mobile terminal. Wherein, mobile terminal includes cell-phone, notebook or panel computer, and this wearable electronic equipment includes intelligent wrist-watch or intelligent bracelet, and this disclosed embodiment does not make the restriction.
In the embodiment of the disclosure, the terminal device can realize photographing through the image acquisition module in different photographing environments. The photographing environment can comprise an outdoor photographing environment or an indoor photographing environment; but also dark photographing environment (night photographing environment) or bright photographing environment (day photographing environment); and may also include a sunny photographing environment or a cloudy photographing environment, and the embodiments of the present disclosure are not limited.
In step S101, the above ambient light illuminance refers to a luminous flux (illumination intensity in a unit area) received in a unit area, and may be used to reflect an amount of a degree of illumination of the terminal device, that is, the ambient light illuminance of the embodiment of the present disclosure can reflect an ambient brightness of an environment where the image capturing module is located.
Under terminal equipment is in the environment of shooing of difference, the luminous flux that receives on image acquisition module unit area is different among the terminal equipment, and then the terminal equipment confirms that the ambient light illumination degree of image acquisition module place environment is different. For example, the ambient light intensity determined when the terminal device takes a picture outdoors is greater than the ambient light intensity determined when the terminal device takes a picture indoors.
In addition, in the process of determining the ambient illuminance by the terminal device, the positions of the light sources in the environment where the terminal device is located are different, and the ambient illuminance of the environment where the image acquisition module determined by the corresponding terminal device is located is also different. For example, the ambient light illuminance of the image capturing module of the terminal device at the position away from the light source is less than the ambient light illuminance of the image capturing module of the terminal device at the position facing the light source.
Before step S102, a mapping relation table between the ambient light illuminance and the initial light processing parameter is stored in the terminal device. In step S102, the determining initial light processing parameters of the image capturing module based on the ambient light illuminance includes: and reading initial light processing parameters corresponding to the image acquisition module in the mapping relation table based on the ambient light illumination.
In the embodiment of the present disclosure, for frame loss or under exposure processing performed in the starting process of the image acquisition module, the embodiment of the present disclosure can directly read the initial light processing parameters of the image acquisition module through the mapping relation table, and does not need to perform additional frame loss or under exposure processing on the image at all, thereby saving the image processing time, increasing the speed of obtaining the preview image in the starting process of the image acquisition module, and further reducing the presentation delay of the preview image.
In step S102, the initial light processing parameter is a processing parameter of the initial frame preview image after the image acquisition module is started, and a preview image with a better light effect can be obtained by the processing parameter of the initial frame preview image.
In some embodiments, the initial ray processing parameters include: initial exposure parameters and/or light compensation parameters. The initial exposure parameters are used for obtaining images with better exposure effect when the terminal equipment is in different photographing environments; the light compensation parameter is used for increasing the brightness of the photographing environment when the terminal equipment is in the dark of the photographing environment so as to improve the exposure effect.
The initial light processing parameters here can be understood as: and (3) carrying out light parameters of image preview and/or image generation after the image acquisition module is started. After the image acquisition module is started, the initial light parameters can be further adjusted, and the light processing parameters obtained at the moment are light parameters except the initial light parameters.
In the embodiment of the present disclosure, for generating the initial light processing parameter of the image capturing module directly based on the captured ambient light frequency in the starting process of the image capturing module, since the ambient light frequency can only represent the unit intensity of light and cannot represent the ambient brightness, the initial light processing parameter of the image capturing module is determined by the ambient illuminance which can reflect the ambient brightness of the environment where the image capturing module is located according to the embodiment of the present disclosure, so that the initial light processing parameter of the image capturing module determined based on the ambient illuminance is suitable for different ambient brightness of different image capturing modules in the photographing environment, and the initial light processing parameter corresponding to the current photographing environment can be obtained more accurately, and then the preview image with better photographing effect can be obtained.
In step S103, preview images with different lighting effects can be obtained according to the lighting processing parameters of different frame images. For example, preview images with different brightness effects can be obtained based on the initial exposure parameters included in the light processing parameters of different frame images. In an embodiment of the present disclosure, the image capture module preview image generated based on the initial light processing parameter may include an initial frame preview image corresponding to the light processing parameter of the initial image.
In the process of generating the preview image of the image acquisition module, the light processing parameters of the current frame image are obtained based on the light processing parameters of the historical frame image. For example, the light processing parameters of the fourth frame image are obtained by referring to the light processing parameters of the second frame image; the light processing parameters of the fifth frame image are obtained by referring to the light processing parameters of the third frame image. Therefore, the accuracy of the initial light processing parameters directly affects the accuracy of the light processing parameters corresponding to the subsequent different frame images, and the embodiment of the disclosure can improve more reliable reference data for the light processing parameters required by the subsequent shooting of the different frame images on the basis of obtaining more accurate initial light processing parameters based on the ambient illuminance so as to obtain better-effect shot images.
In the embodiment of the disclosure, the initial light processing parameters of the image acquisition module are determined based on the ambient light illumination; and generating a preview image of the image acquisition module based on the initial light processing parameters. Because the ambient light illuminance refers to the luminous flux received on the unit area, the ambient brightness of the environment where the image acquisition module is located can be directly reflected. For the ambient light frequency through reflection luminous intensity comes to confirm initial light processing parameter, this disclosed embodiment can be applicable to different ambient brightness under the different environment of shooing through the initial light processing parameter of the image acquisition module that ambient light illuminance confirms, can obtain the initial light processing parameter of the image acquisition module that the environment corresponds at present of more accurate shooing, and then can obtain the better preview image of the effect of shooing.
Moreover, compared with the method for performing frame loss or under exposure processing on the image in the starting process of the image acquisition module, the embodiment of the disclosure can directly generate the preview image based on the obtained initial light processing parameters of the image acquisition module, and does not need to perform extra frame loss or under exposure processing on the image at all, thereby saving the image processing time and improving the speed of obtaining the preview image in the starting process of the image acquisition module.
In some embodiments, as shown in fig. 2, the determining the ambient light illuminance of the environment where the image capturing module is located includes:
s101, 101a, acquiring the ambient light illumination of the environment where the image acquisition module is in the starting process.
In the embodiment of the disclosure, the corresponding time period during which the image acquisition module is started is the time period from the time when the image acquisition module is opened to the time when the image acquisition module generates the preview image.
In the process of framing and photographing, the position of the terminal equipment is constantly changed, relative to the environment where the image acquisition module is located before starting and the environment where the image acquisition module is located after starting, the environment where the image acquisition module in starting is the environment which can reflect the initial photographing of the image acquisition module most, and further based on the ambient illuminance of the environment where the image acquisition module in starting is located, the more accurate initial light processing parameters of the image acquisition module and the better preview image of the light processing effect can be obtained.
In some embodiments, the determining the ambient light illuminance of the environment where the image capturing module is located includes:
and acquiring the ambient illuminance collected by the light sensor with the same orientation as the camera, wherein the image collection module comprises the ambient illuminance.
The image acquisition module of the terminal equipment comprises a camera and a light sensor, wherein the camera is used for acquiring ambient light and generating an image based on the ambient light, and the light sensor is used for detecting the illumination intensity of the environment where the image acquisition module is located.
The direction of the camera is the same as that of the light sensor, which means the collecting direction of the camera collecting the ambient light, and the detecting direction of the light sensor detecting the ambient light is the same.
In the embodiment of the disclosure, the ambient light is collected by the light sensor with the same orientation as the camera, so that the ambient light detected by the light sensor is close to the ambient light collected by the camera, the ambient brightness of the environment where the image collection module is located can be accurately obtained, and accurate light processing parameters and a preview image with better light processing effect can be obtained.
In some embodiments, the obtaining the ambient light illuminance collected by the light sensor with the same orientation as the camera included in the image collection module comprises:
acquiring identification information of a camera of the image acquisition module;
determining the orientation of the camera according to the identification information of the camera;
and reading the ambient light illumination from a light sensor which is contained in the image acquisition module and has the same orientation as the camera according to the orientation.
In the embodiment of the present disclosure, the image acquisition module start request carries identification information of a camera, and identification information of a camera in the image acquisition module can be obtained from the image acquisition module start request.
It should be noted that the terminal device has at least two cameras, and the at least two cameras have different identification information. Based on the identification information of the different cameras, the orientation of the cameras can be determined. The orientation of the camera can include a screen facing the terminal device (the corresponding camera is a front camera); and a back shell facing the terminal equipment can be further included (the corresponding camera is a rear camera). The back shell of the terminal equipment and the screen of the terminal equipment are arranged on two opposite surfaces of the terminal equipment.
In the embodiment of the present disclosure, the cameras in different orientations are correspondingly provided with different light sensors. For example, the front camera has a first light sensor for sensing light coming from the direction of the screen, and the rear camera has a second light sensor for sensing light coming from the direction of the back shell.
In some embodiments, reading the ambient light illumination from a light sensor included in the image capture module oriented in the same direction as the camera according to the orientation comprises:
when the orientation of the camera is the same as that of a first light sensor contained in the image acquisition module, reading the ambient light illumination acquired by the first light sensor;
when the orientation of the camera is the same as the orientation of a second light sensor contained in the image acquisition module, the ambient illuminance acquired by the second light sensor is read.
That is to say, this disclosed embodiment can select different first light sensor or second light sensor to gather ambient light illuminance according to the different orientation of camera.
In the embodiment of the disclosure, under the same light source, the ambient light illuminance detected by the first light sensor and the second light sensor corresponding to the cameras in different directions is different. Therefore, according to the orientation of the camera which is shooting, the light sensors with the same orientation are selected to read the ambient illuminance, so that the ambient illuminance which is more accurate and can reflect the environment where the camera which is shooting is located can be obtained, and accurate light processing parameters and a preview image with better light processing effect can be obtained.
In some embodiments, the initial exposure parameters include:
automatic exposure parameters;
and/or the presence of a gas in the gas,
automatic white balance parameters.
In the embodiment of the disclosure, based on different automatic exposure parameters, preview images with different brightness effects can be correspondingly obtained; and correspondingly obtaining preview images with different white balance effects based on different automatic white balance parameters.
In some embodiments, the light compensation parameters include:
starting parameters of a flash lamp;
and/or the presence of a gas in the gas,
a flash off parameter.
The flash lamp turn-on parameters include: an on parameter for indicating whether the flash is on or an illuminance of the flash that is on. The flash lamp turn-off parameters include: a turn-off parameter for indicating whether the flash is off.
In the embodiment of the disclosure, when the ambient brightness reflected by the ambient illuminance is greater than the preset brightness threshold, the light compensation of the image acquisition module can be reduced by turning off the parameters of the flash lamp, so that a better preview image can be obtained by light processing in an over-bright environment; when the ambient brightness reflected by the ambient illuminance is smaller than the preset brightness threshold value, the parameter can be started through the flash lamp to increase the light compensation of the image acquisition module, and then a better preview image can be obtained through light processing in a dark environment.
For a better understanding of the method of the embodiments of the present disclosure, as shown in fig. 3, the embodiments of the present disclosure illustrate, for example, the following steps:
s201, acquiring identification information of a camera in the image acquisition module. In the embodiment of the disclosure, after the user starts the image acquisition module, the identification information of the camera of the image acquisition module can be acquired through the detected image acquisition module start request. The image acquisition module starts identification information of a camera carried by a request.
S202, determining the orientation of the camera according to the identification information of the camera. In the embodiment of the present disclosure, the orientation of the camera includes that the camera faces the screen of the terminal device or the camera faces the back shell of the terminal device.
And S203, reading the ambient light illumination from the light sensor which is contained in the image acquisition module and has the same direction as the camera according to the direction. In the embodiment of the disclosure, if the orientation of the camera is towards the screen of the terminal device, that is, the camera is a front camera, the first light sensor with the same orientation as the front camera can be selected to read the ambient light illumination; if the orientation of camera is towards the backshell of terminal equipment, when the camera is rear camera promptly, the optional light sensor who is the same with rear camera orientation reads ambient light illuminance.
And S204, determining initial light processing parameters of the image acquisition module based on the ambient light illumination. In the embodiment of the present disclosure, based on the ambient illuminance, the initial light processing parameter of the image capturing module is read in the preset mapping relationship between the ambient illuminance and the initial light processing parameter.
And S205, generating a preview image of the image acquisition module based on the initial light processing parameters. In the embodiment of the disclosure, in the starting process of the image acquisition module, the initial light processing can be directly performed according to the initial light processing parameters, so as to obtain the preview image photographed by the image acquisition module.
In the embodiment of the disclosure, under the same light source, the ambient light illuminance detected by the first light sensor and the second light sensor corresponding to the cameras in different directions is different. Therefore, according to the orientation of the camera which is shooting, the light sensors with the same orientation are selected to read the ambient illuminance, so that the ambient illuminance which is more accurate and can reflect the environment where the camera which is shooting is located can be obtained, and accurate light processing parameters and a preview image with better light processing effect can be obtained.
An embodiment of the present disclosure further provides a terminal device, as shown in fig. 4, where the terminal device includes:
the image acquisition module comprises a camera 10 and a light sensor 20 arranged adjacent to the camera 10, wherein the direction of the camera 10 is the same as that of the light sensor 20, and the light sensor 20 is used for acquiring ambient light illumination;
and the processing module is connected with the camera 10 and the light sensor 20 and used for determining initial light processing parameters of the image acquisition module based on the ambient light illumination and generating a preview image of the image acquisition module based on the initial light processing parameters.
In the embodiment of the present disclosure, the image capturing module of the terminal device includes a camera and a light sensor, the camera is used for capturing the ambient light and generating an image based on the ambient light, and the light sensor is used for detecting the illumination intensity of the environment where the image capturing module is located.
It can be understood that the terminal device determines the initial light processing parameters of the image acquisition module based on the ambient light illumination; and generating a preview image of the image acquisition module based on the initial light processing parameters. Because the ambient light illuminance refers to the luminous flux received on the unit area, the ambient brightness of the environment where the image acquisition module is located can be directly reflected. For the ambient light frequency through reflection luminous intensity comes to confirm initial light processing parameter, this disclosed embodiment can be applicable to different ambient brightness under the different environment of shooing through the initial light processing parameter of the image acquisition module that ambient light illuminance confirms, can obtain the initial light processing parameter that the current environment of shooing corresponds more accurate, and then can obtain the better preview image of the effect of shooing.
Moreover, compared with the method for performing frame loss or under exposure processing on the image in the starting process of the image acquisition module, the embodiment of the disclosure can directly generate the preview image based on the obtained initial light processing parameters of the image acquisition module, and does not need to perform extra image frame loss or under exposure processing at all, thereby saving the image processing time and improving the speed of obtaining the preview image in the starting process of the image acquisition module.
In some embodiments, as shown in fig. 5a and 5b, the camera comprises: a first camera 11 and a second camera 12 with a different orientation than the first camera 11;
the light sensor includes:
a first light sensor 21 disposed close to the first camera 11, wherein the orientation of the first light sensor 21 is the same as the orientation of the first camera 11;
a second light sensor 22 disposed close to the second camera 12, and an orientation of the second light sensor 22 is the same as an orientation of the second camera 12;
when the orientation determined according to the identification information of the camera is the same as the orientation of the first light sensor, reading the ambient light illumination collected by the first light sensor;
and when the orientation determined according to the identification information of the camera is the same as the orientation of the second light sensor, reading the ambient light illumination collected by the second light sensor.
In the embodiment of the present disclosure, the first camera may be a camera facing a screen of the terminal device, that is, a front camera. This second camera can be towards terminal equipment's dorsal scale, can be rear camera.
Under the same light source, the first camera and the second camera are located in different ambient lights, so that the ambient illuminance detected by the first light sensor with the same orientation as the first camera is different from the ambient illuminance detected by the second light sensor with the same orientation as the second camera. Therefore, according to the orientation of the camera which is shooting, the light sensors with the same orientation are selected to read the ambient illuminance, so that the ambient illuminance which is more accurate and can reflect the environment where the camera which is shooting is located can be obtained, and accurate light processing parameters and a preview image with better light processing effect can be obtained.
In some embodiments, the first light sensor is located on the same plane as the first camera.
That is to say, the ambient light that first camera was gathered the face and is gathered and the ambient light that first light sensor detected can be the biggest close unanimity, can improve the accuracy that first light sensor detected and obtain ambient light illuminance.
In some embodiments, as shown in fig. 5a, the terminal device further includes:
and the flash lamp 30 is arranged on the same side as the first camera 11 and is packaged on the same plane as the first light sensor 21.
In an embodiment of the present disclosure, the flash is used to compensate light for the first camera collecting image. By turning on or off the flash lamp, the first camera can have a better exposure effect.
Fig. 6 is a first view of an exposure apparatus of an image capture module according to an exemplary embodiment. Referring to fig. 6, the exposure apparatus of the image capturing module includes an illumination determination module 1001, a parameter determination module 1002, and an image generation module 1003, wherein,
an illuminance determination module 1001 configured to determine an ambient illuminance of an environment where the image acquisition module is located;
a parameter determining module 1002 configured to determine an initial light processing parameter of the image capturing module based on the ambient light illumination;
an image generating module 1003 configured to generate a preview image of the image capturing module based on the initial ray processing parameter.
In some embodiments, the illuminance determination module 1001 is further configured to obtain an ambient illuminance of an environment where the image capturing module is being started.
In some embodiments, the illuminance determination module 1001 is further configured to obtain the ambient light illuminance collected by the light sensor included in the image collection module and facing the same direction as the camera.
In some embodiments, the illuminance determination module 1001 is further configured to obtain identification information of the camera in the image acquisition module; determining the orientation of the camera according to the identification information of the camera; and reading the ambient light illumination from a light sensor which is contained in the image acquisition module and has the same orientation as the camera according to the orientation.
In some embodiments, the illuminance determination module 1001 is further configured to read the ambient illuminance collected by a first light sensor included in the image collection module when the orientation of the camera is the same as the orientation of the first light sensor; when the orientation of the camera is the same as the orientation of a second light sensor contained in the image acquisition module, the ambient illuminance acquired by the second light sensor is read.
In some embodiments, the initial ray processing parameters include: initial exposure parameters and/or light compensation parameters.
In some embodiments, the initial exposure parameters include:
automatic exposure parameters;
and/or the presence of a gas in the gas,
automatic white balance parameters.
In some embodiments, the light compensation parameters include:
starting parameters of a flash lamp;
and/or the presence of a gas in the gas,
a flash off parameter.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a diagram of an exposure apparatus of an image capture module according to an exemplary embodiment. For example, the device may be a mobile phone, a mobile computer, etc.
Referring to fig. 7, an apparatus may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device. Examples of such data include instructions for any application or method operating on the device, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 806 provides power to various components of the device. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for a device.
The multimedia component 808 includes a screen that provides an output interface between the device and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 814 includes one or more sensors for providing status assessment of various aspects of the device. For example, the sensor assembly 814 may detect the on/off status of the device, the relative positioning of the components, such as the display and keypad of the apparatus, the sensor assembly 814 may also detect a change in the position of the apparatus or a component of the apparatus, the presence or absence of user contact with the apparatus, the orientation or acceleration/deceleration of the apparatus, and a change in the temperature of the apparatus. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the apparatus and other devices. The device may access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus to perform the method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a terminal device, enable the terminal device to perform a method of exposing an image capture module, the method comprising:
determining the ambient illuminance of the environment where the image acquisition module is located;
determining initial light processing parameters of the image acquisition module based on the ambient light illumination;
and generating a preview image of the image acquisition module based on the initial light processing parameter.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (21)

1. An exposure method of an image acquisition module is characterized by comprising the following steps:
determining the ambient illuminance of the environment where the image acquisition module is located;
determining initial light processing parameters of the image acquisition module based on the ambient light illumination;
and generating a preview image of the image acquisition module based on the initial light processing parameter.
2. The method of claim 1, wherein the determining the ambient light level of the environment in which the image capturing module is located comprises:
and acquiring the ambient light illumination of the environment where the image acquisition module is started.
3. The method according to claim 1 or 2, wherein the determining the ambient light illuminance of the environment where the image capturing module is located comprises:
and acquiring the ambient illuminance collected by the light sensor with the same orientation as the camera, wherein the image collection module comprises the ambient illuminance.
4. The method of claim 3, wherein said obtaining the ambient light level collected by a light sensor included in the image collection module and facing the same direction as the camera comprises:
acquiring identification information of the camera in the image acquisition module;
determining the orientation of the camera according to the identification information of the camera;
and reading the ambient light illumination from a light sensor which is contained in the image acquisition module and has the same orientation as the camera according to the orientation.
5. The method of claim 4, wherein said reading the ambient light level from a light sensor included in the image capture module oriented in the same direction as the camera according to the orientation comprises:
when the orientation of the camera is the same as that of a first light sensor contained in the image acquisition module, reading the ambient light illumination acquired by the first light sensor;
when the orientation of the camera is the same as the orientation of a second light sensor contained in the image acquisition module, the ambient illuminance acquired by the second light sensor is read.
6. The method of claim 1 or 2, wherein the initial ray processing parameters comprise: initial exposure parameters and/or light compensation parameters.
7. The method of claim 6, wherein the initial exposure parameters comprise:
automatic exposure parameters;
and/or the presence of a gas in the gas,
automatic white balance parameters.
8. The method of claim 6, wherein the light compensation parameters comprise:
starting parameters of a flash lamp;
and/or the presence of a gas in the gas,
a flash off parameter.
9. A terminal device, comprising:
the image acquisition module comprises a camera and a light sensor which is arranged adjacent to the camera, wherein the direction of the camera is the same as that of the light sensor, and the light sensor is used for acquiring ambient illuminance;
and the processing module is connected with the camera and the light sensor and used for determining initial light processing parameters of the image acquisition module based on the ambient light illumination and generating a preview image of the image acquisition module based on the initial light processing parameters.
10. The terminal device according to claim 9, wherein the camera comprises: the camera comprises a first camera and a second camera which is different from the first camera in orientation;
the light sensor includes:
the first light sensor is arranged close to the first camera, and the orientation of the first light sensor is the same as that of the first camera;
the second light sensor is arranged close to the second camera, and the orientation of the second light sensor is the same as that of the second camera;
when the orientation determined according to the identification information of the camera is the same as the orientation of the first light sensor, reading the ambient light illumination collected by the first light sensor;
and when the orientation determined according to the identification information of the camera is the same as the orientation of the second light sensor, reading the ambient light illumination collected by the second light sensor.
11. The terminal device of claim 10, wherein the first light sensor is located on a same plane as the first camera.
12. The terminal device according to claim 10, wherein the terminal device further comprises:
and the flash lamp is arranged on the same side as the first camera and packaged on the same plane as the first light sensor.
13. The utility model provides an exposure device of image acquisition module which characterized in that includes:
the illumination determination module is configured to determine the ambient light illumination of the environment where the image acquisition module is located;
the parameter determining module is configured to determine an initial light processing parameter of the image acquisition module based on the ambient light illumination;
and the image generation module is configured to generate a preview image of the image acquisition module based on the initial light processing parameter.
14. The apparatus of claim 13, wherein the illumination determination module is further configured to obtain an ambient light illumination of an environment where the image capturing module is being activated.
15. The apparatus according to claim 13 or 14, wherein the illuminance determination module is further configured to obtain the ambient illuminance collected by a light sensor included in the image collection module and facing the same direction as the camera.
16. The apparatus of claim 15, wherein the illumination determination module is further configured to obtain identification information of the camera in the image capture module; determining the orientation of the camera according to the identification information of the camera; and reading the ambient light illumination from a light sensor which is contained in the image acquisition module and has the same orientation as the camera according to the orientation.
17. The apparatus of claim 16, wherein the illuminance determination module is further configured to read the ambient illuminance collected by a first light sensor included in the image collection module when the orientation of the camera is the same as the orientation of the first light sensor; when the orientation of the camera is the same as the orientation of a second light sensor contained in the image acquisition module, the ambient illuminance acquired by the second light sensor is read.
18. The apparatus of claim 13 or 14, wherein the initial ray processing parameters comprise: initial exposure parameters and/or light compensation parameters.
19. The apparatus of claim 18, wherein the initial exposure parameters comprise:
automatic exposure parameters;
and/or the presence of a gas in the gas,
automatic white balance parameters.
20. The apparatus of claim 18, wherein the light compensation parameters comprise:
starting parameters of a flash lamp;
and/or the presence of a gas in the gas,
a flash off parameter.
21. A non-transitory computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions implement the exposure method of the image capture module set provided in any one of claims 1 to 8.
CN202011182589.3A 2020-10-29 2020-10-29 Exposure method and device of image acquisition module, terminal equipment and storage medium Active CN112312034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011182589.3A CN112312034B (en) 2020-10-29 2020-10-29 Exposure method and device of image acquisition module, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011182589.3A CN112312034B (en) 2020-10-29 2020-10-29 Exposure method and device of image acquisition module, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112312034A true CN112312034A (en) 2021-02-02
CN112312034B CN112312034B (en) 2023-02-21

Family

ID=74331584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011182589.3A Active CN112312034B (en) 2020-10-29 2020-10-29 Exposure method and device of image acquisition module, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112312034B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506738A (en) * 2023-06-21 2023-07-28 深圳市思拓通信系统有限公司 Wireless camera shooting automatic control method and system for forklift

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580896A (en) * 2014-12-25 2015-04-29 深圳市锐明视讯技术有限公司 Method and device for switching day and night modes of camera
CN104951356A (en) * 2014-03-24 2015-09-30 联想(北京)有限公司 Information acquiring method and electronic equipment
CN106303273A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 A kind of mobile terminal and camera control method thereof
WO2017088678A1 (en) * 2015-11-24 2017-06-01 努比亚技术有限公司 Long-exposure panoramic image shooting apparatus and method
CN107566746A (en) * 2017-09-12 2018-01-09 广东小天才科技有限公司 A kind of photographic method and user terminal
CN107613191A (en) * 2017-08-01 2018-01-19 努比亚技术有限公司 A kind of photographic method, equipment and computer-readable recording medium
CN108737739A (en) * 2018-06-15 2018-11-02 Oppo广东移动通信有限公司 A kind of preview screen acquisition method, preview screen harvester and electronic equipment
CN108924414A (en) * 2018-06-27 2018-11-30 维沃移动通信有限公司 A kind of image pickup method and terminal device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951356A (en) * 2014-03-24 2015-09-30 联想(北京)有限公司 Information acquiring method and electronic equipment
CN104580896A (en) * 2014-12-25 2015-04-29 深圳市锐明视讯技术有限公司 Method and device for switching day and night modes of camera
WO2017088678A1 (en) * 2015-11-24 2017-06-01 努比亚技术有限公司 Long-exposure panoramic image shooting apparatus and method
CN106303273A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 A kind of mobile terminal and camera control method thereof
CN107613191A (en) * 2017-08-01 2018-01-19 努比亚技术有限公司 A kind of photographic method, equipment and computer-readable recording medium
CN107566746A (en) * 2017-09-12 2018-01-09 广东小天才科技有限公司 A kind of photographic method and user terminal
CN108737739A (en) * 2018-06-15 2018-11-02 Oppo广东移动通信有限公司 A kind of preview screen acquisition method, preview screen harvester and electronic equipment
CN108924414A (en) * 2018-06-27 2018-11-30 维沃移动通信有限公司 A kind of image pickup method and terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘西川 等: "《智能手机参与大气探测的研究进展与展望》", 《地球科学进展》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116506738A (en) * 2023-06-21 2023-07-28 深圳市思拓通信系统有限公司 Wireless camera shooting automatic control method and system for forklift
CN116506738B (en) * 2023-06-21 2023-09-08 深圳市思拓通信系统有限公司 Wireless camera shooting automatic control method and system for forklift

Also Published As

Publication number Publication date
CN112312034B (en) 2023-02-21

Similar Documents

Publication Publication Date Title
WO2021052292A1 (en) Video acquisition method and electronic device
CN108419016B (en) Shooting method and device and terminal
CN111586282B (en) Shooting method, shooting device, terminal and readable storage medium
KR101800101B1 (en) Method, apparatus, program, and recording medium for adjustmenting shooting parameter
EP2657809A1 (en) Portable electronic equipment with automatic control to keep display turned on and method
RU2665304C2 (en) Method and apparatus for setting photographing parameter
US20100317398A1 (en) Camera system and method for flash-based photography
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
US20230188861A1 (en) Light Compensation Method for Photographing and Related Apparatus
CN112312034B (en) Exposure method and device of image acquisition module, terminal equipment and storage medium
CN107820025B (en) Method and device for photographing processing
CN111586280B (en) Shooting method, shooting device, terminal and readable storage medium
US20130235233A1 (en) Methods and devices for capturing images
CN111277754B (en) Mobile terminal shooting method and device
CN106775246B (en) Screen brightness adjusting method and device
CN114189622B (en) Image shooting method, device, electronic equipment and storage medium
CN112086075B (en) Screen display parameter adjusting method and device and storage medium
CN112099364A (en) Intelligent interaction method for Internet of things household equipment
CN111314550A (en) Display control method and device, mobile terminal and storage medium
CN111385400A (en) Backlight brightness adjusting method and device
US11617023B2 (en) Method for brightness enhancement of preview image, apparatus, and medium
EP2637397A1 (en) Methods and devices for capturing images
EP3941042A1 (en) Image processing method and apparatus, and camera assembly, electronic device and storage medium
US20240137659A1 (en) Point light source image detection method and electronic device
CN112074005B (en) Power consumption control method 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