Nothing Special   »   [go: up one dir, main page]

CN114189622A - Image shooting method and device, electronic equipment and storage medium - Google Patents

Image shooting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114189622A
CN114189622A CN202010962596.9A CN202010962596A CN114189622A CN 114189622 A CN114189622 A CN 114189622A CN 202010962596 A CN202010962596 A CN 202010962596A CN 114189622 A CN114189622 A CN 114189622A
Authority
CN
China
Prior art keywords
information
laser ranging
preset
ambient light
preset condition
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
CN202010962596.9A
Other languages
Chinese (zh)
Other versions
CN114189622B (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 CN202010962596.9A priority Critical patent/CN114189622B/en
Publication of CN114189622A publication Critical patent/CN114189622A/en
Application granted granted Critical
Publication of CN114189622B publication Critical patent/CN114189622B/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/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • 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
    • 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/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The present disclosure relates to an image capturing method, an image capturing apparatus, an electronic device, and a storage medium, wherein the image capturing method includes: acquiring laser ranging information, focusing distance information and ambient light information; setting a shooting mode to be a preset mode according to the laser ranging information, the focusing distance information and the ambient light information; in a preset mode, the laser ranging module is in a closed state; and carrying out image shooting in a preset mode. According to the image shooting method, when image shooting is carried out, the laser ranging module (such as a TOF module) is closed according to the laser ranging information, the focusing distance information and the ambient light information, so that the problem of purple spots generated by shooting in a special environment is solved, the shooting effect can be ensured, and the shooting experience of a user is improved.

Description

Image shooting method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an image capturing method and apparatus, an electronic device, and a storage medium.
Background
Many electronic devices are equipped with a tof (time of flight) module to assist in focusing and white balance calculation. The TOF module includes a laser sensor (e.g., an infrared laser sensor) that calculates the distance from the TOF module to the target object based on the time of flight of the laser.
Most cameras are relatively poor in filtering property to infrared laser, so human eyes can not see the laser that the TOF module sent, but, the camera can catch the laser that the TOF module sent. When shooting daytime, the influence of the laser that the TOF module sent to shooting effect is not obvious, but when the light of shooting environment is darker (for example cloudy day or evening), if shoot or record a video to the glass window, just can see a very obvious purpura in the formation of image, influence the shooting effect, it is relatively poor to shoot experience.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an image capturing method, apparatus, electronic device, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an image capturing method applied to an electronic device, the method including:
acquiring laser ranging information, focusing distance information and ambient light information;
setting a shooting mode to be a preset mode according to the laser ranging information, the focusing distance information and the ambient light information; in the preset mode, the laser ranging module is in a closed state;
and shooting the image in the preset mode.
Optionally, the setting a shooting mode to a preset mode according to the laser ranging information, the focal distance information, and the ambient light information includes:
and setting the shooting mode to be the preset mode under the condition that the laser ranging information meets a first preset condition, the focusing distance information meets a second preset condition and the ambient light information meets a third preset condition.
Optionally, the setting the shooting mode to be before the preset mode when the laser ranging information satisfies a first preset condition, the focus distance information satisfies a second preset condition, and the ambient light information satisfies a third preset condition includes:
and determining that the laser ranging information meets the first preset condition when the laser ranging information is smaller than or equal to the first preset distance.
Optionally, the setting the shooting mode to be before the preset mode when the laser ranging information satisfies a first preset condition, the focus distance information satisfies a second preset condition, and the ambient light information satisfies a third preset condition includes:
and determining that the focusing distance information meets the second preset condition when the focusing distance information is greater than or equal to the second preset distance.
Optionally, the setting the shooting mode to be before the preset mode when the laser ranging information satisfies a first preset condition, the focus distance information satisfies a second preset condition, and the ambient light information satisfies a third preset condition includes:
and determining that the ambient light information meets the third preset condition when the ambient light information is less than or equal to the preset illuminance value.
Optionally, after the image capturing is performed in the preset mode, the capturing method further includes:
acquiring motion state information of the electronic equipment;
and when the electronic equipment is determined to move and the focal distance information and the ambient light information are determined to change, the laser ranging module is started.
According to a second aspect of the embodiments of the present disclosure, there is provided an image capturing apparatus applied to an electronic device, the apparatus including:
the acquisition module is used for acquiring laser ranging information, focusing distance information and ambient light information;
the determining module is used for setting a shooting mode to be a preset mode according to the laser ranging information, the focusing distance information and the ambient light information; in the preset mode, the laser ranging module is in a closed state;
the determining module is further configured to perform image shooting in the preset mode.
Optionally, the determining module is configured to:
and setting the shooting mode to be the preset mode under the condition that the laser ranging information meets a first preset condition, the focusing distance information meets a second preset condition and the ambient light information meets a third preset condition.
Optionally, the determining module is further configured to:
and determining that the laser ranging information meets the first preset condition when the laser ranging information is smaller than or equal to the first preset distance.
Optionally, the determining module is further configured to:
and determining that the focusing distance information meets the second preset condition when the focusing distance information is greater than or equal to the second preset distance.
Optionally, the determining module is further configured to:
and determining that the ambient light information meets the third preset condition when the ambient light information is less than or equal to the preset illuminance value.
Optionally, the obtaining module is further configured to obtain motion state information of the electronic device;
the determining module is further configured to start the laser ranging module when it is determined that the electronic device moves and it is determined that the focal distance information and the ambient light information change.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the image capturing method according to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform the image capturing method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the image shooting method, when image shooting is carried out, whether the laser ranging module (such as a TOF module) is closed or not is determined according to the laser ranging information, the focusing distance information and the environment light information, so that the purple spot problem caused by shooting in a special environment is eliminated, the shooting effect can be ensured, and the shooting experience of a user is improved.
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 flowchart illustrating an image capturing method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an image capturing method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating an image capturing method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating an image capturing method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an image capturing apparatus according to an exemplary embodiment.
FIG. 6 is a block diagram of an electronic device shown in accordance with an example embodiment.
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.
In the related art, a filter membrane is coated on a lens of a camera, and infrared laser emitted by a tof (time of flight) module is filtered by the filter membrane. However, the method has the problem that the cost of the filtering membrane is high, and under the limit of certain cost, the cut-off property of the filtering membrane is difficult to be used for just removing the infrared laser, and the penetration of other light is often influenced.
In addition, in order to improve the photographing quality, a multi-frame synthesis technology is adopted when the electronic device (such as a mobile phone) photographs. And when previewing, storing the shooting picture in real time, and taking the current shooting picture and 8-10 previously stored shooting pictures at the moment of pressing a shutter key to perform multi-frame synthesis so as to ensure the shooting quality.
According to the method, if the influence of infrared laser is to be removed, when a shutter is pressed, infrared light is removed, then the shutter is waited for a period of time again, after 8-10 frames of photographed pictures are determined, the shutter is pressed, and then the current photographed pictures and 8-10 previously stored photographed pictures are taken for multi-frame synthesis. However, this will increase the time for taking the picture, and the user will wait for a longer time, and experience will be poor.
Moreover, the method is only suitable for taking pictures (taking photos), is not suitable for recording and previewing scenes, and has narrow application range and poor adaptability.
Aiming at the purple spot problem caused by a TOF module in the related art, the disclosure provides an image shooting method applied to electronic equipment. According to the image shooting method, when image shooting is carried out, whether the laser ranging module (such as a TOF module) is closed or not is determined according to the laser ranging information, the focusing distance information and the environment light information, so that the purple spot problem caused by shooting in a special environment is eliminated, the shooting effect can be ensured, and the shooting experience of a user is improved.
In one exemplary embodiment, there is provided an image capturing method, as shown with reference to fig. 1, including:
and S110, acquiring laser ranging information, focusing distance information and ambient light information.
The laser ranging information refers to a distance value measured using a laser. For the electronic equipment that is provided with the TOF module, can directly confirm laser ranging information through the TOF module, after the TOF module confirmed laser ranging information, report controller with it. When facing the glass material, the laser can be reflected, so the time length of passing back of the laser that the TOF module sent can be shorter, and the confirmed laser range finding information is less. For example, when the electronic device photographs a photographic object outside the glass window against the glass window, if the distance between the camera and the glass window is 10cm and the distance between the camera and the photographic object outside the glass window is 100m, the acquired laser ranging information is 10 cm.
The focusing distance information refers to the distance information determined by the focusing module, and the focusing module reports the focusing distance information to the controller after determining the focusing distance information. When the electronic equipment shoots a shooting target outside the glass window towards the glass window, the determination of the focusing distance information is not influenced by the glass window, and if the distance between the camera and the shooting target is 100 meters and the distance between the camera and the glass window is 10 centimeters, the determined focusing distance information is 100 meters.
The ambient light information refers to the light intensity of the light of the shooting environment, also called illuminance, and can be measured by light sensing and then reported to the controller. The ambient light information can be detected by a light sensor.
And S120, setting a shooting mode to be a preset mode according to the laser ranging information, the focusing distance information and the ambient light information, wherein in the preset mode, the laser ranging module is in a closed state.
When the step is executed, the judgment is needed according to the laser ranging information, the focusing distance information and the ambient light information, when a certain condition is met, the shooting mode is set to be a preset mode, and if the condition is not met, the shooting is carried out in other modes stored in the electronic equipment.
And S130, shooting the image in a preset mode.
When the shooting mode is the preset mode as a result of the determination in the step S120, the controller of the electronic device controls the laser ranging module to be in a closed state, and performs image shooting when the laser ranging module is in the closed state.
If according to laser rangefinder information, focus distance information and ambient light information, confirm to get into preset mode, explain under current shooting state, there is the object that carries out the reflection to the infrared light, the purpura appears easily on the picture of shooing, in order to promote the shooting effect, can close the laser rangefinder module and carry out the image shooting. Promptly for laser rangefinder module is under the closed condition, shoots, thereby has eliminated the laser that laser rangefinder module (for example TOF module) sent and to the influence of shooting, has avoided the production of purpura, has promoted the shooting effect, has promoted user's use and has experienced.
It should be noted that, in this embodiment, the laser ranging information may be obtained by starting the laser ranging module for detection, that is, before entering the preset mode, the laser ranging module is in the on state. The laser ranging information may be acquired by using information that has been acquired before, that is, before entering the preset mode, the laser ranging module is already in the off state.
In addition, it should be noted herein that, if the laser ranging information, the focusing distance information and the ambient light information are determined, the condition is not satisfied, if the laser ranging information, the focusing distance information and the ambient light information are determined not to enter the preset mode, it is indicated that there is no object capable of reflecting infrared light in the current shooting state, purple speckles are not easily generated on the shot image, at this time, the laser ranging module (such as a TOF module) can be controlled to be in the open state for shooting, focusing and white balance are assisted through the laser ranging module, the shooting effect is improved, and the user experience is improved.
This image shooting method, when carrying out image shooting, whether close laser rangefinder module (for example TOF module) according to laser rangefinder information, focus distance information and ambient light information determination, promptly, confirm opening and close of laser rangefinder module according to actual conditions, can eliminate the purpura, can ensure again to shoot the effect, promoted and used experience.
In one exemplary embodiment, there is provided an image capturing method which is a further improvement of the above-described image capturing method. For example, setting the photographing mode to the preset mode according to the laser ranging information, the focus distance information, and the ambient light information may include: and setting the shooting mode to be a preset mode under the condition that the laser ranging information meets a first preset condition, the focusing distance information meets a second preset condition and the ambient light information meets a third preset condition.
And judging whether the laser ranging information, the focusing distance information and the ambient light information meet the condition requirement.
In a specific implementation process, setting the photographing mode to the preset mode according to the laser ranging information, the focus distance information, and the ambient light information may be performed in the following manner. Referring to fig. 2, determining whether to enter a preset mode according to the laser ranging information, the focus distance information, and the ambient light information includes:
s210, judging whether the laser ranging information meets a first preset condition, whether the focusing distance information meets a second preset condition and whether the ambient light information meets a third preset condition.
The laser ranging information, the focusing distance information and the ambient light information are judged to be simultaneously or sequentially carried out, wherein the laser ranging information, the focusing distance information and the ambient light information are judged to be simultaneously or sequentially carried out, and whether the laser ranging information and the focusing distance information meet the first preset condition, the second preset condition and the third preset condition is judged.
When the three are carried out simultaneously, the judgment time can be shortened, and the judgment of the latter is not needed to be carried out after the judgment of the former is finished.
When the three are carried out in sequence, the sequence of the three can be set in advance, and the sequence of the three can also be determined according to the sequence of the obtained laser ranging information, the obtained focusing distance information and the obtained ambient light information.
In one example, it is set in advance to sequentially determine whether the laser ranging information satisfies a first preset condition, determine whether the focus distance information satisfies a second preset condition, and determine whether the ambient light information satisfies a third preset condition.
In this example, regardless of the sequence of obtaining the laser ranging information, the focal distance information, and the ambient light information, it is directly determined whether the laser ranging information satisfies the first preset condition, whether the focal distance information satisfies the second preset condition, and whether the ambient light information satisfies the third preset condition in a fixed sequence, and then it is determined whether to enter the preset mode according to the result.
In one example, the sequence of judging whether the laser ranging information meets a first preset condition, judging whether the focusing distance information meets a second preset condition and judging whether the environment light information meets a third preset condition is determined according to the sequence of acquiring the laser ranging information, the focusing distance information and the environment light information, so that the shooting efficiency is improved.
For example, if the ambient light information is acquired first, it is first determined whether the ambient light information satisfies a third preset condition; secondly, acquiring laser ranging information, and secondly judging whether the laser ranging information meets a first preset condition; and finally, if the focusing distance information is acquired, judging whether the focusing distance information meets a second preset condition or not. And then determining whether to enter a preset mode according to a judgment result.
And S220, determining to enter a preset mode when the laser ranging information, the focusing distance information and the ambient light information respectively meet a first preset condition, a second preset condition and a third preset condition.
Wherein, if any one of the laser ranging information, the focusing distance information and the ambient light information is not satisfied with the corresponding preset condition, the purple spot is not generated enough. Therefore, the following settings are set: when the laser ranging information, the focal distance information and the ambient light information simultaneously satisfy corresponding preset conditions, the laser ranging information, the focal distance information and the ambient light information are determined to enter a preset mode.
And S230, when the laser ranging information, the focusing distance information and the ambient light information do not respectively meet the first preset condition, the second preset condition and the third preset condition, determining that the laser ranging information, the focusing distance information and the ambient light information do not need to enter a preset mode.
The "laser ranging information, the focal distance information, and the ambient light information do not respectively satisfy the first preset condition, the second preset condition, and the third preset condition" means that at least one of the results of "determining whether the laser ranging information satisfies the first preset condition", "determining whether the focal distance information satisfies the second preset condition", and "determining whether the ambient light information satisfies the third preset condition" is "no".
In one example, after all of whether the laser ranging information satisfies the first preset condition, whether the focal distance information satisfies the second preset condition, and whether the ambient light information satisfies the third preset condition are determined, whether to enter the preset mode is determined according to the determination result.
In this example, it is determined whether the laser ranging information satisfies a first preset condition, whether the focus distance information satisfies a second preset condition, and whether the ambient light information satisfies a third preset condition, at the same time, and then it is determined whether to enter the preset mode according to the determination result.
Only when the laser ranging information, the focusing distance information and the ambient light information respectively meet the first preset condition, the second preset condition and the third preset condition, the purpura can be generated, the laser ranging module is determined to enter the preset mode at the moment, the laser ranging module is closed to shoot images, the purpura is eliminated, and the shooting effect is improved.
In one example, directly in a fixed order: firstly, judging whether the laser ranging information meets a first preset condition, secondly, judging whether the focusing distance information meets a second preset condition, and finally, judging whether the ambient light information meets a third preset condition, and then, determining whether to enter a preset mode according to the result.
In this example, after the three determinations are completed, whether to enter the preset mode is determined according to the determination results.
In one example, directly in a fixed order: firstly, judging whether the laser ranging information meets a first preset condition, secondly, judging whether the focusing distance information meets a second preset condition, and finally, judging whether the ambient light information meets a third preset condition, and then, determining whether to enter a preset mode according to the result.
In this example, if the laser ranging information does not satisfy the first preset condition, the subsequent determination is not performed, and it is directly determined that the preset mode is not required. If the laser ranging information meets the first preset condition but the focusing distance information does not meet the second preset condition, subsequent judgment is not carried out any more, and the fact that the laser ranging information does not need to enter a preset mode is directly determined. That is, in this example, only when the determination result of the former is "yes", subsequent determination is performed, otherwise, it is directly determined that it is not necessary to enter the preset mode, which improves the determination efficiency, and further improves the shooting efficiency.
In one example, the sequence of judging whether the laser ranging information meets a first preset condition, judging whether the focusing distance information meets a second preset condition and judging whether the environment light information meets a third preset condition is determined according to the sequence of acquiring the laser ranging information, the focusing distance information and the environment light information, so that the shooting efficiency is improved.
In this example, after the three determinations are completed, whether to enter the preset mode is determined according to the determination results.
In one example, the sequence of judging whether the laser ranging information meets a first preset condition, judging whether the focusing distance information meets a second preset condition and judging whether the environment light information meets a third preset condition is determined according to the sequence of acquiring the laser ranging information, the focusing distance information and the environment light information, so that the shooting efficiency is improved.
In this example, for example, if the ambient light information is acquired first, it is first determined whether the ambient light information satisfies a third preset condition; secondly, acquiring laser ranging information, and secondly judging whether the laser ranging information meets a first preset condition; and finally, if the focusing distance information is acquired, judging whether the focusing distance information meets a second preset condition or not.
When the ambient light information does not satisfy the third preset condition, no operation is performed with respect to determining whether to enter the preset mode. For example, when it is determined that the ambient light information does not satisfy the third preset condition, if the laser ranging information is not acquired yet at this time, the operation of acquiring the laser ranging information is not performed, and it is directly determined that the preset mode does not need to be entered.
This example can further improve the efficiency of determining whether to enter the preset mode, thereby improving the shooting efficiency.
In one exemplary embodiment (the embodiment is not shown in the drawings), there is provided an image capturing method which is a further improvement of the above-described image capturing method. When the laser ranging information satisfies the first preset condition, the focus distance information satisfies the second preset condition, and the ambient light information satisfies the third preset condition, the shooting mode is set to be the preset mode, which may include: and determining that the focusing distance information meets a second preset condition when the focusing distance information is greater than or equal to a second preset distance.
Here, it is determined that the laser ranging information satisfies the first preset condition based on the determination result by determining whether the laser ranging information satisfies the first preset condition, illustratively, by determining whether the laser ranging information is less than or equal to a first preset distance; if the laser ranging information is smaller than or equal to the first preset distance, the laser ranging information meets a first preset condition.
Since the condition for generating the purpura by different cameras is different, the first preset distance is determined according to the specific structure of the camera of the electronic device, and can be measured through experiments.
In a first example, the first predetermined distance is 20 cm. When the laser ranging information is 10cm, the laser ranging information meets the first preset distance or less, and the laser ranging information meets the first preset condition; and when the laser ranging information is 30cm, the laser ranging information does not satisfy the first preset distance or less, and the laser ranging information does not satisfy the first preset condition.
When the laser ranging information satisfies the first preset condition, the focus distance information satisfies the second preset condition, and the ambient light information satisfies the third preset condition, the shooting mode is set to be before the preset mode, which may further include: and determining that the focusing distance information meets a second preset condition when the focusing distance information is greater than or equal to a second preset distance.
Here, the determining whether the focus distance information satisfies the second preset condition may include: judging whether the focusing distance information is greater than or equal to a second preset distance; and if the focusing distance information is greater than or equal to the second preset distance, the focusing distance information meets a second preset condition.
Since the condition for generating the purpura by different cameras is different, the second preset distance is determined according to the specific structure of the camera of the electronic device, and can be measured through experiments.
In one example, the second preset distance is 50 cm. When the focusing distance information is 100m, the focusing distance information meets the second preset distance or more, and the focusing distance information meets the second preset condition; and when the focusing distance information is 30cm, the focusing distance information is smaller than a second preset distance, and the focusing distance information does not meet a second preset condition.
In one example, the second preset distance is 50 m. When the focusing distance information is 100m, the focusing distance information meets the second preset distance or more, and the focusing distance information meets the second preset condition; and when the focusing distance information is 30m, the focusing distance information is smaller than a second preset distance, and the focusing distance information does not meet a second preset condition.
When the laser ranging information satisfies the first preset condition, the focus distance information satisfies the second preset condition, and the ambient light information satisfies the third preset condition, the shooting mode is set to be before the preset mode, which may further include: and determining that the ambient light information meets a third preset condition when the ambient light information is less than or equal to the preset illuminance value.
Here, the determining whether the ambient light information satisfies the third preset condition may include: judging whether the ambient light information is less than or equal to a preset illumination value; if the ambient light information is less than or equal to the preset illuminance value, the ambient light information satisfies a third preset condition.
Since the condition for generating the purpura by different cameras is different, the preset illumination value is determined according to the specific structure of the camera of the electronic device, and can be measured through experiments.
In one example, the preset illuminance value is the illuminance of light in the case of a light on the room, for example 100 Lux. When the ambient light information is 20Lux, the ambient light information meets the preset illumination value or less, and the ambient light information meets a third preset condition; and when the ambient light information is 200Lux, the ambient light information does not satisfy the preset illuminance value or less, and the ambient light information does not satisfy the third preset condition.
In an exemplary embodiment, there is provided an image capturing method which is a further improvement of the above-described image capturing method, and exemplarily, referring to fig. 3, after image capturing is performed in a preset mode, the image capturing method further includes:
and S310, acquiring the motion state information of the electronic equipment.
The step of acquiring the motion state information of the electronic equipment comprises the steps of acquiring the motion state information of the electronic equipment in real time and acquiring the motion state information of the electronic equipment at intervals.
The motion state information of the electronic equipment is acquired in real time, and whether the laser ranging module is started or not is controlled according to the motion state information, so that the electronic equipment can be better ensured to rapidly adjust the laser ranging module according to the motion state information, and the shooting effect is better improved.
The motion state information of the electronic equipment is acquired at intervals, so that the power consumption of the electronic equipment in the shooting process can be better reduced, the resource occupation is reduced, and the shooting efficiency is improved.
The motion state information of the electronic device may be determined by Gyro (gyroscope) or by a plurality of sensors. The method for acquiring the motion state information of the electronic device is not described herein.
And S320, determining whether the electronic equipment moves according to the motion state information.
The motion state information includes position information, velocity information, acceleration information, and the like, and the method for determining whether the electronic device moves according to the motion state information is not described herein again.
S330, when the electronic equipment moves and the focusing distance information and the ambient light information are determined to be changed, the laser ranging module is started.
Generally, when the electronic device moves, the focal distance information and the ambient light information of the electronic device are necessarily changed, so that the laser ranging module can be directly started to judge whether the purple spots can be generated under the current shooting environment again.
In one example, when the electronic device moves, it is considered that the electronic device causes the change of the focal distance information and the ambient light information, and therefore the electronic device exits the preset mode, the laser ranging module is started, then the laser ranging information, the focal distance information and the ambient light information are obtained again, and then whether the laser ranging module needs to be closed or not is determined according to the new laser ranging information, the focal distance information and the ambient light information, so that the shooting effect is guaranteed.
It should be noted that, in some cases, when the electronic device moves, the focal distance information and the ambient light information may not be changed, and in such a case, it is not necessary to start the laser ranging module. Therefore, when the electronic device moves, it is also necessary to determine whether the focal distance information and the ambient light information have changed. And only when the electronic equipment is determined to move and the focusing distance information and the ambient light information are determined to change, the laser ranging module is started.
And S340, controlling the laser ranging module to keep closed when the electronic equipment does not move.
If the electronic equipment does not move, the laser ranging information, the focusing distance information and the ambient light information are not changed, so that the laser ranging information, the focusing distance information and the ambient light information do not need to be acquired again, and the shooting effect can be ensured by maintaining the existing shooting setting.
In the shooting method, when the motion state of the electronic equipment is changed, the laser ranging module is determined to be restarted, and then the following steps are realized: and re-determining whether to close the laser ranging module according to the motion state of the electronic equipment. The method is suitable for different shooting scenes such as picture shooting, previewing and video recording.
In one exemplary embodiment, there is provided an image capturing method which is a further improvement of the above-described capturing method, and illustratively, before acquiring the laser ranging information, the focal distance information, and the ambient light information, the capturing method further includes:
judging whether a set condition is met; if the set condition is met, entering the step: acquiring laser ranging information, focusing distance information and ambient light information, and determining whether to close the laser ranging module again; and if the set conditions are not met, the step of obtaining laser ranging information, focusing distance information and ambient light information is not carried out, and the current shooting setting is maintained.
The judgment setting condition comprises the following two conditions:
the first condition is as follows: the electronic equipment enters a shooting state from a non-shooting state.
After the electronic equipment enters a shooting state from a non-shooting state, in order to avoid purple spots generated in a shot image, laser ranging information, focusing distance information and ambient light information are respectively acquired, and whether the laser ranging module needs to be closed or not is determined according to the laser ranging information, the focusing distance information and the ambient light information, so that the shooting effect is guaranteed.
Case two: and when the electronic equipment is in a shooting state, the electronic equipment moves and controls the laser ranging module to be in an opening state.
When the electronic equipment is in a shooting state and the electronic equipment moves, the laser ranging information, the focusing distance information and the ambient light information may be changed, so that the laser ranging module is controlled to be in an open state, namely, if the laser ranging module is in a closed state at the moment, the laser ranging module is restarted; if the laser ranging module is in the open state at the moment, the open state of the laser ranging module is maintained.
Then, laser ranging information, focusing distance information and ambient light information are obtained again, whether the laser ranging module needs to be closed or not is determined according to the new laser ranging information, focusing distance information and ambient light information, and the shooting effect is guaranteed.
In one example, as shown with reference to fig. 4, the method in the present disclosure may be implemented by:
and S410, controlling the electronic equipment to enter a shooting state from a non-shooting state based on the shooting control instruction.
And S420, acquiring laser ranging information, focusing distance information and ambient light information.
S430, judging whether the laser ranging information meets a first preset condition, whether the focusing distance information meets a second preset condition and whether the ambient light information meets a third preset condition. If the judgment result is satisfied, go to step S440; otherwise, the process proceeds to step S450.
S440, closing the laser ranging module to shoot the image, and entering the step S460.
S450, controlling the laser ranging module to be in an open state, shooting an image, and entering the step S460.
And S460, acquiring the motion state information of the electronic equipment.
S470, determining whether the electronic equipment moves according to the motion state information; when the electronic device moves, the method proceeds to step S480; when the electronic device is not moving, the process returns to step S460.
S480, the laser ranging module is restarted, and the process goes to step S420.
When the image shooting method enters a shooting state from a non-shooting state, whether a laser ranging module (such as a TOF module) is closed or not is determined according to laser ranging information, focusing distance information and ambient light information, namely whether the shooting mode needs to be set to a preset mode or not is determined, and the laser ranging module is in a closed state in the preset mode. When the laser ranging information, the focusing distance information and the ambient light information can generate purple spots, the laser ranging module is closed to avoid the generation of purple spots and improve the shooting effect; when laser rangefinder information, focus distance information and ambient light information can not produce the purple spot, make laser rangefinder module be in the open mode, come supplementary focus and supplementary white balance calculation through laser rangefinder module, improve the shooting effect.
In addition, under the shooting state of closing the laser ranging module, the motion state of the electronic equipment is detected in real time, the motion state information of the electronic equipment is obtained, and whether the electronic equipment moves or not and whether refocusing is needed or not or whether the ambient light where the electronic equipment is located changes or not is determined according to the motion state information. When the electronic equipment moves, the laser ranging module is restarted, and then whether the laser ranging module is closed or not is determined again according to the laser ranging information, the focusing distance information and the ambient light information. When the laser ranging information, the focusing distance information and the ambient light information can generate purple spots, the laser ranging module is closed to avoid the generation of purple spots and improve the shooting effect; when laser rangefinder information, focus distance information and ambient light information can not produce the purple spot, make laser rangefinder module be in the open mode, come supplementary focus and supplementary white balance calculation through laser rangefinder module, improve the shooting effect.
The shooting method disclosed by the invention has the following effects:
firstly, the shooting method is not only suitable for shooting photos, but also suitable for shooting previews and videos, and further improves the use experience.
Secondly, the shooting method utilizes the technology of combining a plurality of sensors such as a light sensor, a TOF module, an AF (automatic focus) focusing module, a Gyro (gyroscope) sensor and the like, and skillfully judges the scene which can generate the purpura, so that the TOF module is closed at a proper time. And according to the motion state information measured by the Gyro sensor, the TOF module is opened again after the electronic equipment does not have a scene capable of generating purple spots, and the use of the TOF module such as automatic focusing and automatic white balance cannot be influenced.
Thirdly, the shooting method does not need to coat a filter membrane on the lens of the camera, does not damage the picture and does not increase any cost.
The present disclosure also provides an image capturing apparatus for implementing the above image capturing method.
In an exemplary embodiment, an image capturing apparatus is provided, which is applied to an electronic device, and as shown in fig. 1 and 5, the apparatus includes an obtaining module 101 and a determining module 102, and is configured to implement the image capturing method, for example, in the implementation process:
an obtaining module 101, configured to obtain laser ranging information, focal distance information, and ambient light information respectively;
the determining module 102 is configured to set a shooting mode to a preset mode according to the laser ranging information, the focal distance information, and the ambient light information; in a preset mode, the laser ranging module is in a closed state;
the determining module 102 is further configured to perform image capturing in a preset mode.
In an exemplary embodiment, an image capturing apparatus is provided, which is a further improvement of the above apparatus, and referring to fig. 2 and 5, in the implementation, the determining module 102 may be configured to:
and setting the shooting mode to be a preset mode under the condition that the laser ranging information meets a first preset condition, the focusing distance information meets a second preset condition and the ambient light information meets a third preset condition.
In an exemplary embodiment, an image capturing apparatus is provided, as shown in fig. 5, which is a further improvement of the above apparatus, and in implementation, the determining module 102 may further be configured to:
and determining that the laser ranging information meets a first preset condition when the laser ranging information is smaller than or equal to a first preset distance.
In an exemplary embodiment, an image capturing apparatus is provided, as shown in fig. 5, which is a further improvement of the above apparatus, and in implementation, the determining module 102 may further be configured to:
and determining that the focusing distance information meets a second preset condition when the focusing distance information is greater than or equal to a second preset distance.
In an exemplary embodiment, an image capturing apparatus is provided, as shown in fig. 5, which is a further improvement of the above apparatus, and in implementation, the determining module 102 may further be configured to:
and determining that the ambient light information meets a third preset condition when the ambient light information is less than or equal to the preset illuminance value.
In an exemplary embodiment, an image capturing apparatus is provided, as shown in fig. 3 and 5, which is a further improvement of the above apparatus, after the laser ranging module is turned off for image capturing:
the obtaining module 101 is further configured to obtain motion state information of the electronic device;
the determining module 102 is further configured to start the laser ranging module when it is determined that the electronic device moves and it is determined that the focal distance information and the ambient light information change.
In one exemplary embodiment, an electronic device is provided. For example, the electronic device may be a mobile phone, a computer, a tablet device, a camera, a camcorder, or the like having an image processing function.
Referring to fig. 6, electronic device 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the image capture method and/or the image processing method described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the device 400. Examples of such data include instructions for any application or method operating on device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 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.
Power components 406 provide power to the various components of device 400. Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 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 408 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 electronic device 400 is in an operating 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 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the device 400 is in an operational 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 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 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 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor component 414 can detect an open/closed state of the electronic device 400, the relative positioning of components, such as a display and keypad of the electronic device 400, the sensor component 414 can also detect a change in the position of the device 400 or a component of the electronic device 400, the presence or absence of user contact with the device 400, orientation or acceleration/deceleration of the device 400, and a change in the temperature of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 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 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 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 electronic device 400 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 404 comprising instructions, executable by the processor 420 of the device 400 to perform the above-described method 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. The instructions in the storage medium, when executed by a processor of the electronic device, enable the electronic device to perform the above-described method.
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 (14)

1. An image shooting method applied to electronic equipment is characterized by comprising the following steps:
acquiring laser ranging information, focusing distance information and ambient light information;
setting a shooting mode to be a preset mode according to the laser ranging information, the focusing distance information and the ambient light information; in the preset mode, the laser ranging module is in a closed state;
and shooting the image in the preset mode.
2. The image capturing method according to claim 1, wherein the setting of the capturing mode to the preset mode according to the laser ranging information, the focus distance information, and the ambient light information includes:
and setting the shooting mode to be the preset mode under the condition that the laser ranging information meets a first preset condition, the focusing distance information meets a second preset condition and the ambient light information meets a third preset condition.
3. The image capturing method according to claim 2, wherein before the setting of the capturing mode to the preset mode in a case where the laser ranging information satisfies a first preset condition, the focal distance information satisfies a second preset condition, and the ambient light information satisfies a third preset condition, the method includes:
and determining that the laser ranging information meets the first preset condition when the laser ranging information is smaller than or equal to the first preset distance.
4. The image capturing method according to claim 2, wherein before the setting of the capturing mode to the preset mode in a case where the laser ranging information satisfies a first preset condition, the focal distance information satisfies a second preset condition, and the ambient light information satisfies a third preset condition, the method includes:
and determining that the focusing distance information meets the second preset condition when the focusing distance information is greater than or equal to the second preset distance.
5. The image capturing method according to claim 2, wherein before the setting of the capturing mode to the preset mode in a case where the laser ranging information satisfies a first preset condition, the focal distance information satisfies a second preset condition, and the ambient light information satisfies a third preset condition, the method includes:
and determining that the ambient light information meets the third preset condition when the ambient light information is less than or equal to the preset illuminance value.
6. The image capturing method according to claim 1, wherein after the image capturing is performed in the preset mode, the image capturing method further comprises:
acquiring motion state information of the electronic equipment;
and when the electronic equipment is determined to move and the focal distance information and the ambient light information are determined to change, the laser ranging module is started.
7. An image capturing apparatus applied to an electronic device, the apparatus comprising:
the acquisition module is used for acquiring laser ranging information, focusing distance information and ambient light information;
the determining module is used for setting a shooting mode to be a preset mode according to the laser ranging information, the focusing distance information and the ambient light information; in the preset mode, the laser ranging module is in a closed state;
the determining module is further configured to perform image shooting in the preset mode.
8. The image capture device of claim 7, wherein the determination module is configured to:
and setting the shooting mode to be the preset mode under the condition that the laser ranging information meets a first preset condition, the focusing distance information meets a second preset condition and the ambient light information meets a third preset condition.
9. The image capture device of claim 8, wherein the determining module is further configured to:
and determining that the laser ranging information meets the first preset condition when the laser ranging information is smaller than or equal to the first preset distance.
10. The image capture device of claim 8, wherein the determination module is further configured to:
and determining that the focusing distance information meets the second preset condition when the focusing distance information is greater than or equal to the second preset distance.
11. The image capture device of claim 8, wherein the determination module is further configured to:
and determining that the ambient light information meets the third preset condition when the ambient light information is less than or equal to the preset illuminance value.
12. The image capturing apparatus according to any one of claims 7 to 11,
the acquisition module is further used for acquiring the motion state information of the electronic equipment;
the determining module is further configured to start the laser ranging module when it is determined that the electronic device moves and it is determined that the focal distance information and the ambient light information change.
13. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the image capturing method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the image capturing method of any one of claims 1 to 6.
CN202010962596.9A 2020-09-14 2020-09-14 Image shooting method, device, electronic equipment and storage medium Active CN114189622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010962596.9A CN114189622B (en) 2020-09-14 2020-09-14 Image shooting method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010962596.9A CN114189622B (en) 2020-09-14 2020-09-14 Image shooting method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114189622A true CN114189622A (en) 2022-03-15
CN114189622B CN114189622B (en) 2023-11-24

Family

ID=80539076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010962596.9A Active CN114189622B (en) 2020-09-14 2020-09-14 Image shooting method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114189622B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666509A (en) * 2022-04-08 2022-06-24 Oppo广东移动通信有限公司 Image acquisition method and device, detection module, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101546A (en) * 2016-06-30 2016-11-09 广东欧珀移动通信有限公司 A kind of laser focusing sensor control method and mobile terminal
CN106454078A (en) * 2016-09-26 2017-02-22 广东欧珀移动通信有限公司 Focusing mode control method and terminal device
CN107302632A (en) * 2017-06-28 2017-10-27 努比亚技术有限公司 A kind of mobile terminal image pickup method, mobile terminal and computer-readable recording medium
CN108028887A (en) * 2016-03-23 2018-05-11 华为技术有限公司 Focusing method of taking pictures, device and the equipment of a kind of terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108028887A (en) * 2016-03-23 2018-05-11 华为技术有限公司 Focusing method of taking pictures, device and the equipment of a kind of terminal
CN106101546A (en) * 2016-06-30 2016-11-09 广东欧珀移动通信有限公司 A kind of laser focusing sensor control method and mobile terminal
CN106454078A (en) * 2016-09-26 2017-02-22 广东欧珀移动通信有限公司 Focusing mode control method and terminal device
CN107302632A (en) * 2017-06-28 2017-10-27 努比亚技术有限公司 A kind of mobile terminal image pickup method, mobile terminal and computer-readable recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666509A (en) * 2022-04-08 2022-06-24 Oppo广东移动通信有限公司 Image acquisition method and device, detection module, terminal and storage medium

Also Published As

Publication number Publication date
CN114189622B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
US10674088B2 (en) Method and device for acquiring image, terminal and computer-readable storage medium
CN108419016B (en) Shooting method and device and terminal
US10375296B2 (en) Methods apparatuses, and storage mediums for adjusting camera shooting angle
CN104065878B (en) Filming control method, device and terminal
CN107426502B (en) Shooting method and device, electronic equipment and storage medium
CN110557547B (en) Lens position adjusting method and device
EP3125530A1 (en) Video recording method and device
CN104219448B (en) Image pickup method and device
CN105245775B (en) camera imaging method, mobile terminal and device
RU2665304C2 (en) Method and apparatus for setting photographing parameter
EP3352453B1 (en) Photographing method for intelligent flight device and intelligent flight device
EP3226119A1 (en) Method and apparatus for displaying image data from a terminal on a wearable display
CN113364965A (en) Shooting method and device based on multiple cameras and electronic equipment
CN111385456A (en) Photographing preview method and device and storage medium
CN110995993B (en) Star track video shooting method, star track video shooting device and storage medium
CN107820025B (en) Method and device for photographing processing
CN107241535B (en) Flash lamp adjusting device and terminal equipment
CN114189622B (en) Image shooting method, device, electronic equipment and storage medium
CN108769513B (en) Camera photographing method and device
CN112702514B (en) Image acquisition method, device, equipment and storage medium
CN107707819B (en) Image shooting method, device and storage medium
KR20210157289A (en) Method and apparatus for displaying captured preview image, and medium
CN107682623B (en) Photographing method and device
CN114979455A (en) Photographing method, photographing device and storage medium
CN113315903A (en) Image acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant