CN112822412A - Exposure method and electronic apparatus - Google Patents

Exposure method and electronic apparatus Download PDF

Info

Publication number
CN112822412A
CN112822412A CN202011606030.9A CN202011606030A CN112822412A CN 112822412 A CN112822412 A CN 112822412A CN 202011606030 A CN202011606030 A CN 202011606030A CN 112822412 A CN112822412 A CN 112822412A
Authority
CN
China
Prior art keywords
camera
exposure
target
image
sub
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
CN202011606030.9A
Other languages
Chinese (zh)
Other versions
CN112822412B (en
Inventor
王兆丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011606030.9A priority Critical patent/CN112822412B/en
Publication of CN112822412A publication Critical patent/CN112822412A/en
Application granted granted Critical
Publication of CN112822412B publication Critical patent/CN112822412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors

Landscapes

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

Abstract

The application discloses an exposure method and electronic equipment, belongs to the technical field of electronics, and aims to solve the problem that a picture is seriously smeared due to shaking of a photographer or movement of a shooting object during long exposure. Wherein, the exposure method comprises the following steps: under the condition that the first camera is exposed in a target duration, controlling a second camera to acquire at least two first images at a target frame rate; and controlling the first camera to stop exposure under the condition that the movement distance of a target shooting object in two adjacent first images acquired by the second camera is greater than a first threshold value. The exposure method is applied to the electronic equipment.

Description

Exposure method and electronic apparatus
Technical Field
The application belongs to the technical field of electronics, and particularly relates to an exposure method and electronic equipment.
Background
At present, for electronic equipment with a photographing function, the film quality of the electronic equipment can be improved by improving the light sensitivity of the electronic equipment. Conventionally, the light sensing capability of an electronic device can be improved by prolonging the exposure time, and the method is particularly suitable for shooting scenes in dark environments such as night.
When a user takes a picture by using the long exposure function of the electronic device, the exposure time is relatively long, so that the phenomena of motion of a shooting object, shaking of the hand of the user and the like often occur during the exposure of the electronic device, and the picture is seriously smeared.
Therefore, in the process of implementing the present application, the inventors found that at least the following problems exist in the prior art: a serious smear phenomenon occurs in a picture due to a photographer shaking or a subject moving during a long exposure.
Disclosure of Invention
An object of the embodiments of the present application is to provide an exposure method, which can solve the problem of a serious smear phenomenon occurring in a picture due to shaking of a photographer or movement of a photographic object during a long exposure period.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an exposure method, which is applied to an exposure apparatus, where the exposure apparatus includes a first camera and a second camera, and the method includes: under the condition that the first camera is exposed in a target duration, controlling the second camera to acquire at least two first images at a target frame rate; and controlling the first camera to stop exposure under the condition that the movement distance of a target shooting object in two adjacent first images acquired by the second camera is greater than a first threshold value.
In a second aspect, an embodiment of the present application provides an exposure apparatus, which includes a first camera and a second camera; the first control module is used for controlling the second camera to acquire at least two first images at a target frame rate under the condition that the first camera is exposed in a target duration; and the second control module is used for controlling the first camera to stop exposure under the condition that the movement distance of the target shooting object in two adjacent first images acquired by the second camera is greater than a first threshold value.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this way, in the embodiment of the present application, when the first camera starts to expose the acquired image, the second camera starts to acquire continuous images at a higher target frame rate. If the fact that the moving distance of the target shooting object is larger than a first threshold value is detected in the first images of two continuous frames collected by the second camera in the exposure period, the phenomenon that the target shooting object moves appears in the images collected by the first camera. Therefore, the first camera is controlled to stop exposure, and the target image can be further output according to the image exposed by the first camera. Therefore, in the embodiment, by multi-path image acquisition, the motion phenomenon of the shot object appearing in the image can be quickly detected in the process of exposing the acquired image by the first camera, and the exposure is stopped as early as possible, so that the smear phenomenon of the picture caused by the shake of the photographer or the motion of the shot object is improved.
Drawings
Fig. 1 to 4 are flowcharts of an exposure method according to an embodiment of the present application;
fig. 5 is a block diagram of an exposure apparatus of an embodiment of the present application;
fig. 6 is a hardware configuration diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The exposure method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 shows a flowchart of an exposure method according to an embodiment of the present application, which is applied to an exposure apparatus including a first camera and a second camera.
The first camera is used for shooting images and is a main camera; the second camera is used for detecting whether the shooting subject in the image during the long exposure moves or not and is a sub camera.
The method comprises the following steps:
step S1: and under the condition that the first camera is exposed in the target duration, controlling the second camera to acquire at least two first images at the target frame rate.
Alternatively, the user enters a shooting mode after turning on the camera. In the shooting mode, the exposure apparatus in this embodiment performs basic photometry, and at this time, it is necessary to determine in advance the exposure time T required for obtaining appropriate image brightness. Furthermore, after the user clicks the photographing key, the first camera is controlled to expose for the exposure time T.
Correspondingly, the target duration is the exposure time T.
In this step, the first camera starts exposure, and at the same time, the second camera is controlled to start capturing the first image.
Wherein, the purpose that the second camera began to gather first image lies in: and collecting motion information in the images through high-frame-rate continuous image acquisition.
Optionally, the target frame rate is increased as much as possible on the premise of ensuring that the shooting object can be identified, so that the motion detection precision is higher. The target frame rate is, by reference, greater than or equal to 24 frames/second.
The second camera has a function of detecting whether the same subject is moving in two adjacent images by continuously capturing images, and therefore, in this step, the number of first images captured by the second camera is at least two.
Step S2: and controlling the first camera to stop exposure under the condition that the movement distance of the target shooting object is greater than a first threshold value in two adjacent first images acquired by the second camera.
Wherein the first image is a static image.
Alternatively, in the first image, if the proportion of the focused position object in the screen is greater than or equal to 30%, the focused position object is determined as the shooting object.
Optionally, the first image includes at least one photographic subject. Therefore, the target photographic subject in this step is any one of the at least one photographic subjects.
In this step, each first image is recorded in real time and the comparison is started from the second first image. If the displacement of the target shooting object is detected to be changed and the displacement is greater than the first threshold value compared with the previous first image in the currently acquired first image, that is, the movement distance of the target shooting object is greater than the first threshold value, the target shooting object moves, and correspondingly, the following results can be obtained: a target photographic subject in a photographic image moves during exposure.
Optionally, the first threshold is reduced as much as possible on the premise that the motion of the photographic subject can be identified, so that the motion detection precision is higher.
Among them, in the present embodiment, it is not limited to: the target photographic subject in the photographic image moves during exposure due to the movement of the target photographic subject in the actual photographic scene; a target photographic subject in a photographic image moves during exposure due to photographer shake, or the like.
Correspondingly, aiming at the phenomenon that the shaking of the photographer causes the target shooting object in the image to move during the exposure period, the embodiment can obtain the maximum light-sensitive capacity of the photographer in the range of controlling the body capacity (not shaking) of the photographer, and the improvement of the shooting effect is obtained; aiming at the phenomenon that the target shooting object moves in the actual shooting scene, the maximum light sensitivity of the target shooting object in the motionless range can be obtained, and the shooting effect is improved.
Further, an image exposed by the first camera is acquired, and a target image is generated according to the acquired image.
On one hand, in one shooting, the number of frames to be acquired is a single frame, and after the single frame acquisition is completed, the embodiment can ensure that the frame of picture is clear; on the other hand, in one-time shooting, the number of frames to be acquired is multiple frames, and after multiple single-frame acquisition is continuously completed, the multi-frame acquisition fragmentation rate and the strongest image quality can be ensured.
Alternatively, the first camera may use a photosensitive device and a lens having a larger amount of light to ensure a photographing effect of the target image.
Alternatively, the second camera may use a Dynamic Vision Sensor (DVS) sensor, so that the motion information is acquired more accurately and rapidly.
Optionally, the second camera may use a high frame rate and high resolution Time of flight (TOF) sensor, so that not only a faster focusing speed may be obtained in a darker environment to improve a night scene capture capability, but also a faster and accurate motion information may be obtained through the high frame rate in the darker environment, and meanwhile, the motion information in the depth direction may be detected.
Optionally, the second camera may be replaced with other functional devices and more algorithms may be added, which may result in more performance or functionality enhancements. Such as: in the image collected by the second camera, the judgment of the added main body and the locking algorithm are used, so that the judgment of the motion is only judged according to the motion of the main body part, and the more excellent 'main body clearness and background motion' (streamer shutter) effect can be obtained.
In this way, in the embodiment of the present application, when the first camera starts to expose the acquired image, the second camera starts to acquire continuous images at a higher target frame rate. If the fact that the moving distance of the target shooting object is larger than a first threshold value is detected in the first images of two continuous frames collected by the second camera in the exposure period, the phenomenon that the target shooting object moves appears in the images collected by the first camera. Therefore, the first camera is controlled to stop exposure, and the target image can be further output according to the image exposed by the first camera. Therefore, in the embodiment, by multi-path image acquisition, the motion phenomenon of the shot object appearing in the image can be quickly detected in the process of exposing the acquired image by the first camera, and the exposure is stopped as early as possible, so that the smear phenomenon of the picture caused by the shake of the photographer or the motion of the shot object is improved.
Further, when the target frame rate is high to a certain degree, the interval time of the two first images showing the movement of the target shooting object is extremely short, the movement amplitude can be regarded as small, and the two first images are hardly shown in the picture, so that the problem that the picture is smeared due to the shaking of a photographer or the movement of the shooting object is solved.
In the exposure method according to another embodiment of the present application, the method is applied to a shooting scene of a single-frame photograph.
Referring to fig. 2, the specific process can be referred to as: the first camera is used for collecting a frame of image to be used as a finally displayed target image. In the process that the first camera exposes the collected image, the first image can be continuously collected through the second camera, and whether the movement distance S of the shooting object in the current frame and the shooting object in the previous frame is larger than a first threshold value X or not is compared. If S is larger than X, the exposure is stopped. Meanwhile, before comparing whether the movement distance S is larger than the first threshold value X, whether the actual exposure time T is larger than the calculated exposure time T is judged. If T is larger than or equal to T, the exposure is completed, otherwise, the continuous two frames of the first images are continuously compared.
Further, after the exposure is stopped, the image collected by the first camera is output as a target image.
The embodiment can detect whether the motion of the shot object occurs in the exposure image in real time, so that the smear phenomenon does not occur in the target image, and the film forming rate of the single-frame photo is improved.
In a flow of an exposure method according to another embodiment of the present application, the target duration includes at least two sub-durations.
The embodiment is applied to shooting scenes of multiple pictures.
Step S2, including:
substep A1: and in one sub-time, controlling the first camera to stop exposure and controlling the first camera to expose for the next sub-time in the case that the motion of the target shooting object is greater than a first threshold value in two adjacent first images collected within one sub-time until the first camera completes the exposure times corresponding to the number of the sub-times included in the target time.
In an application scenario, for example, after a user opens a camera, the user enters a shooting mode. In the shooting mode, the exposure apparatus in this embodiment performs basic photometry, and it is necessary to determine in advance the number of exposures required, the exposure time and target brightness for each exposure, and the exposure sequence if appropriate image brightness is to be obtained. Furthermore, after the user clicks the photographing key, the first camera is controlled to respectively expose the collected image for multiple times.
In this embodiment, the exposure time of each exposure is respectively corresponding to each sub-duration included in the target duration, and the target duration is the total exposure time.
Referring to fig. 3, the specific process can be referred to as: the method comprises the steps that firstly, a first camera is used for collecting a first frame image (n is 1), in the process that the first camera exposes the collected first frame image, the first camera can continuously collect the first image, and whether the movement distance S of a shooting object in a current frame and a shooting object in a previous frame is larger than a first threshold value X or not is compared. If S is larger than X, the exposure is stopped. Meanwhile, before comparing whether the movement distance S is larger than the first threshold value X, whether the actual exposure time T is larger than the calculated first exposure time T is judged. If T is larger than or equal to T, the first exposure is completed, otherwise, the continuous two frames of the first image are continuously compared.
Then, setting n to n +1, i.e., preparing to control the first camera to start capturing the second frame image. It is determined whether N is greater than the set exposure number N. And if N is larger than N, finishing the set exposure times and stopping all image frame acquisition. And if N is less than or equal to N, continuing to expose the next frame of image.
In this embodiment, if multiple frames of sticky images are collected (e.g., a dynamic bracketing algorithm used in a night scene), a single-frame image collection method may be repeated to sequentially collect multiple frames of images, and each frame of image is obtained with the longest exposure without smearing. Furthermore, the images shot by the method are finally subjected to multi-frame synthesis, and the phenomenon of smear cannot occur on the basis of each frame of image, so that the photo effect is better, and the film forming rate of multiple frames of photos is improved.
In a flow of an exposure method according to another embodiment of the present application, after controlling the first camera to stop exposure, the method further includes:
step B1: and acquiring a second image output by the first camera after exposure for one sub-time length.
In this step, for a shooting scene of multiple frames of photographs, each time exposure of one frame of image is completed, an exposed second image may be acquired to perform photometry.
Step B2: an exposure result of the second image is acquired.
Optionally, the photometric data includes an exposure result of the second image.
The exposure result of the second image at least shows whether the exposure effect of the second image reaches a preset effect.
Step B3: and under the condition that the exposure result does not meet the preset condition, updating the target duration.
The preset condition may be related to a predetermined image brightness.
Optionally, the second image is used to represent an image obtained after exposure, and the preset conditions corresponding to the exposure result of the second image corresponding to different frames can be set independently.
Optionally, the preset condition corresponding to the exposure result of the second image corresponding to each frame may also be related to the exposure effect of the target image to be presented finally.
In this embodiment, when it is detected that the photographic subject in the image moves, the exposure is stopped, so that the actual exposure time is not consistent with the calculated exposure time, and the exposure effect may be affected.
It should be noted that, after each exposure is completed, photometric detection is performed on the exposed second image, and the target duration is adjusted in real time.
For example, three exposures of 0.5s are set. During the exposure, the exposure is stopped due to the detection of the movement of the photographic subject in the image. Thus, the original three 0.5s exposures are updated to six 0.5s exposures to achieve the exposure effect consistent with the initial setting. Thus, the set target time period is 1.5s, and the updated target time period is 3 s.
In this embodiment, by using the shooting characteristic that multiple exposures can be performed on multiple frames of pictures, the exposure result of the exposed second image can be detected, so as to dynamically determine whether the set target duration needs to be updated according to the exposure result. For example, if the exposure result does not achieve the desired effect, i.e. the preset condition in the embodiment, the target duration needs to be reset, so that the target image finally presented can achieve the desired exposure effect. Therefore, the embodiment can ensure the exposure effect and improve the sheeting rate while solving the smear phenomenon.
In the flow of the exposure method according to another embodiment of the present application, step B3 includes:
substep C1: according to the exposure result, the number of sub-durations included in the target duration is increased, and the length of the increased sub-duration is set.
In the present embodiment, a method for updating a target duration is provided.
In general, the exposure effect is poor because the actual exposure time is smaller than the calculated exposure time. Therefore, the number of exposures can be increased to increase the actual exposure time. Specifically, the number of exposures is increased according to the detected exposure result, while setting the exposure time corresponding to the increased number of exposures.
For example, three exposures of 0.5s are set. During the exposure, the exposure is stopped due to the detection of the movement of the photographic subject in the image. Thus, the original three 0.5s exposures are updated to six 0.5s exposures to achieve the exposure effect consistent with the initial setting.
Referring to the flowchart shown in fig. 4, a step of determining whether or not the value of the exposure count N needs to be reset is added to the flowchart shown in fig. 3, and in the case where it is determined that the value of the exposure count N needs to be reset, the initial value of N is set to N ', where N' is the updated exposure count.
In the present embodiment, in the case where the pause exposure occurs, the initial exposure effect can be achieved by increasing the number of exposures. Therefore, the embodiment can ensure the exposure effect and improve the sheeting rate while solving the smear phenomenon.
In a flow of an exposure method according to another embodiment of the present application, after the first camera completes exposure, the method further includes:
step D1: and acquiring a second image output by the first camera after each exposure.
Step D2: and generating a target image according to the second image.
It should be noted that the present embodiment is suitable for a shooting scene in a night scene or a dark light environment. The camera collects multiple/multiple frames of photos, namely the second image in the embodiment, finds different pixel points with noise properties under different frame numbers, and obtains a clean and pure night scene or dim light photo after weighted synthesis, namely a final synthesized target image.
In this embodiment, the acquired multi-frame image is used to complete the required multi-frame image processing, and finally a photo is output as the target image. Therefore, the target image obtained by processing the multi-frame image achieves the effects of noise reduction and the like, solves the problem of smear phenomenon and improves the flaking rate of the multi-frame photo.
Referring to the exposure method of the embodiment of the application, more than or equal to 2 paths of image input can be used, and more devices and algorithms can be matched with the image input of different paths to provide more functions or improve the performance.
In summary, the embodiment of the present application utilizes the characteristics of multi-channel image input to extend the exposure time of each frame of a camera user as much as possible, so that the camera obtains better light sensing capability, improves the single-frame photo filming rate, optimizes the single-frame and multi-frame night scene algorithm, and obtains better night scene shooting effect.
In addition, the embodiment of the application not only provides a long exposure function to improve the light sensing capability of the device, but also can improve the light sensing capability of the device by using more excellent optical anti-shake devices, adding a multi-frame algorithm and the like, thereby achieving the purpose of improving the quality of the picture.
It should be noted that, in the exposure method provided in the embodiment of the present application, the execution main body may be an exposure apparatus, or a control module for executing the exposure method in the exposure apparatus. In the embodiment of the present application, an exposure apparatus for performing an exposure method is taken as an example, and the exposure apparatus for performing the exposure method provided in the embodiment of the present application is described.
Fig. 5 shows a block diagram of an exposure apparatus according to another embodiment of the present application, including:
a first camera 10 and a second camera 20;
the first control module 30 is configured to control the second camera to acquire at least two first images at the target frame rate when the first camera performs exposure for the target duration;
and the second control module 40 is configured to control the first camera to stop exposure when the moving distance of the target shooting object in two adjacent first images acquired by the second camera 20 is greater than a first threshold.
In this way, in the embodiment of the present application, when the first camera starts to expose the acquired image, the second camera starts to acquire continuous images at a higher target frame rate. If the fact that the moving distance of the target shooting object is larger than a first threshold value is detected in the first images of two continuous frames collected by the second camera in the exposure period, the phenomenon that the target shooting object moves appears in the images collected by the first camera. Therefore, the first camera is controlled to stop exposure, and the target image can be further output according to the image exposed by the first camera. Therefore, in the embodiment, by multi-path image acquisition, the motion phenomenon of the shot object appearing in the image can be quickly detected in the process of exposing the acquired image by the first camera, and the exposure is stopped as early as possible, so that the smear phenomenon of the picture caused by the shake of the photographer or the motion of the shot object is improved.
Optionally, the target duration comprises at least two sub-durations;
a second control module 40 comprising:
and the multi-frame control unit is used for controlling the first camera to stop exposure and controlling the first camera to expose for the next sub-time length until the first camera finishes the exposure times corresponding to the number of the sub-time lengths included by the target time length in the two adjacent first images collected within the sub-time length under the condition that the movement distance of the target shooting object is greater than a first threshold value.
Optionally, the second control module 40 further includes:
the first acquisition unit is used for acquiring a second image output by the first camera after exposure for one sub-duration;
a second acquisition unit configured to acquire an exposure result of the second image;
and the updating unit is used for updating the target duration under the condition that the exposure result does not meet the preset condition.
Optionally, the update unit includes:
and an exposure number updating subunit, configured to increase, according to the exposure result, the number of sub-durations included in the target duration, and set a length of the increased sub-duration.
Optionally, the apparatus further comprises:
the image acquisition module is used for acquiring a second image output by the first camera after each exposure;
and the image generation module is used for generating a target image according to the second image.
The exposure apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The exposure apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The exposure apparatus provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 100 is further provided in this embodiment of the present application, and includes a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and executable on the processor 101, where the program or the instruction is executed by the processor 101 to implement each process of any one of the foregoing embodiments of the exposure method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, a first camera 1011, a second camera 1012, and the like.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to control the second camera 1012 to acquire at least two first images at a target frame rate under the condition that the first camera 1011 performs exposure for a target duration; and controlling the first camera 1011 to stop exposure when the movement distance of the target shooting object in two adjacent first images acquired by the second camera 1012 is greater than a first threshold value.
In this way, in the embodiment of the present application, when the first camera 1011 starts exposure of the captured images, the second camera 1012 starts capturing of continuous images at a higher target frame rate. If the moving distance of the target object is detected to be greater than the first threshold in the first images of two consecutive frames collected by the second camera 1012 during the exposure, the phenomenon that the target object moves occurs in the images collected by the first camera 1011. Therefore, the first camera 1011 is controlled to stop the exposure, and the target image can be further output based on the exposed image of the first camera 1011. It can be seen that in the present embodiment, by multi-path image acquisition, in the process of exposing the acquired image by the first camera 1011, the motion phenomenon of the photographic subject appearing in the image can be detected quickly, and the exposure can be stopped as soon as possible, so that the smear phenomenon appearing in the picture due to the shake of the photographer or the motion of the photographic subject can be improved.
Optionally, the target duration comprises at least two sub-durations; the processor 1010 is further configured to control the first camera 1011 to stop exposure and control the first camera 1011 to expose for the next sub-time length in the case that the movement distance of the target shooting object in the two adjacent first images acquired within one sub-time length is greater than a first threshold value, until the first camera 1011 completes the exposure times corresponding to the number of the sub-time lengths included in the target time length.
Optionally, the processor 1010 is further configured to acquire a second image output by the first camera 1011 after being exposed for the one sub-duration; acquiring an exposure result of the second image; and under the condition that the exposure result does not meet the preset condition, updating the target duration.
Optionally, the processor 1010 is further configured to increase the number of sub-durations included in the target duration according to the exposure result, and set the length of the increased sub-durations.
Optionally, the processor 1010 is further configured to acquire a second image output by the first camera 1011 after each exposure; and generating a target image according to the second image.
In summary, the embodiment of the present application utilizes the characteristics of multi-channel image input to extend the exposure time of each frame of a camera user as much as possible, so that the camera obtains better light sensing capability, improves the single-frame photo filming rate, optimizes the single-frame and multi-frame night scene algorithm, and obtains better night scene shooting effect.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of any one of the above-mentioned embodiments of the exposure method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of any one of the above exposure method embodiments, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An exposure method is applied to an exposure device, and is characterized in that the exposure device comprises a first camera and a second camera, and the method comprises the following steps:
under the condition that the first camera is exposed in a target duration, controlling the second camera to acquire at least two first images at a target frame rate;
and controlling the first camera to stop exposure under the condition that the movement distance of a target shooting object in two adjacent first images acquired by the second camera is greater than a first threshold value.
2. The method of claim 1, wherein the target duration comprises at least two sub-durations;
the controlling the first camera to stop exposure when the moving distance of the target shooting object in two adjacent first images acquired by the second camera is greater than a first threshold value comprises:
and in a sub-time length, controlling the first camera to stop exposure and controlling the first camera to expose for the next sub-time length in the two adjacent first images collected when the movement distance of the target shooting object is greater than a first threshold value until the first camera finishes the exposure times corresponding to the number of the sub-time lengths included in the target time length.
3. The method of claim 2, wherein after controlling the first camera to stop exposing, further comprising:
acquiring a second image output by the first camera after exposure in the sub-duration;
acquiring an exposure result of the second image;
and under the condition that the exposure result does not meet the preset condition, updating the target duration.
4. The method of claim 3, wherein said updating said target duration comprises:
and increasing the number of sub-durations included in the target duration according to the exposure result, and setting the length of the increased sub-durations.
5. The method of claim 2 or 3, further comprising, after the first camera completes exposure:
acquiring a second image output by the first camera after each exposure;
and generating a target image according to the second image.
6. An exposure apparatus, characterized in that, the exposure apparatus includes first camera and second camera, the apparatus still includes:
the first control module is used for controlling the second camera to acquire at least two first images at a target frame rate under the condition that the first camera is exposed in a target duration;
and the second control module is used for controlling the first camera to stop exposure under the condition that the movement distance of the target shooting object in two adjacent first images acquired by the second camera is greater than a first threshold value.
7. The apparatus of claim 6, wherein the target duration comprises at least two sub-durations;
the second control module includes:
and the multi-frame control unit is used for controlling the first camera to stop exposure and controlling the first camera to expose for the next sub-time length until the first camera finishes the exposure times corresponding to the number of the sub-time lengths included in the target time length in the two adjacent first images collected in one sub-time length under the condition that the movement distance of the target shooting object is greater than a first threshold value.
8. The apparatus of claim 7, wherein the second control module further comprises:
the first acquisition unit is used for acquiring a second image output by the first camera after the first camera is exposed in the sub-duration;
a second acquisition unit configured to acquire an exposure result of the second image;
and the updating unit is used for updating the target duration under the condition that the exposure result does not meet the preset condition.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the exposure method according to any one of claims 1 to 5.
10. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the exposure method according to any one of claims 1 to 5.
CN202011606030.9A 2020-12-28 2020-12-28 Exposure method, exposure device, electronic equipment and storage medium Active CN112822412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011606030.9A CN112822412B (en) 2020-12-28 2020-12-28 Exposure method, exposure device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011606030.9A CN112822412B (en) 2020-12-28 2020-12-28 Exposure method, exposure device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112822412A true CN112822412A (en) 2021-05-18
CN112822412B CN112822412B (en) 2023-04-07

Family

ID=75856329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011606030.9A Active CN112822412B (en) 2020-12-28 2020-12-28 Exposure method, exposure device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112822412B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259592A (en) * 2021-06-10 2021-08-13 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN113596294A (en) * 2021-07-08 2021-11-02 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
CN114390197A (en) * 2021-12-27 2022-04-22 维沃移动通信有限公司 Shooting method and device, electronic equipment and readable storage medium
CN114666508A (en) * 2022-04-06 2022-06-24 Oppo广东移动通信有限公司 Focusing method and device and terminal computer readable storage medium
WO2023093681A1 (en) * 2021-11-26 2023-06-01 华为技术有限公司 Image processing method, image processing system and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118229A (en) * 2013-02-06 2013-05-22 重庆金山科技(集团)有限公司 Imaging method and imaging system
WO2017012372A1 (en) * 2015-07-17 2017-01-26 宇龙计算机通信科技(深圳)有限公司 Photographing control method and apparatus for terminal, and terminal
CN109167931A (en) * 2018-10-23 2019-01-08 Oppo广东移动通信有限公司 Image processing method, device, storage medium and mobile terminal
CN109688340A (en) * 2019-01-25 2019-04-26 Oppo广东移动通信有限公司 Time for exposure control method, device, electronic equipment and storage medium
WO2019082831A1 (en) * 2017-10-27 2019-05-02 キヤノン株式会社 Image capturing device, method for controlling image capturing device, and program
WO2019188933A1 (en) * 2018-03-29 2019-10-03 富士フイルム株式会社 Imaging device, imaging method, and camera system
US20200244863A1 (en) * 2017-10-27 2020-07-30 Canon Kabushiki Kaisha Imaging apparatus, method of controlling the imaging apparatus, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118229A (en) * 2013-02-06 2013-05-22 重庆金山科技(集团)有限公司 Imaging method and imaging system
WO2017012372A1 (en) * 2015-07-17 2017-01-26 宇龙计算机通信科技(深圳)有限公司 Photographing control method and apparatus for terminal, and terminal
WO2019082831A1 (en) * 2017-10-27 2019-05-02 キヤノン株式会社 Image capturing device, method for controlling image capturing device, and program
US20200244863A1 (en) * 2017-10-27 2020-07-30 Canon Kabushiki Kaisha Imaging apparatus, method of controlling the imaging apparatus, and program
WO2019188933A1 (en) * 2018-03-29 2019-10-03 富士フイルム株式会社 Imaging device, imaging method, and camera system
CN109167931A (en) * 2018-10-23 2019-01-08 Oppo广东移动通信有限公司 Image processing method, device, storage medium and mobile terminal
CN109688340A (en) * 2019-01-25 2019-04-26 Oppo广东移动通信有限公司 Time for exposure control method, device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259592A (en) * 2021-06-10 2021-08-13 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN113596294A (en) * 2021-07-08 2021-11-02 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
WO2023093681A1 (en) * 2021-11-26 2023-06-01 华为技术有限公司 Image processing method, image processing system and electronic device
CN114390197A (en) * 2021-12-27 2022-04-22 维沃移动通信有限公司 Shooting method and device, electronic equipment and readable storage medium
CN114666508A (en) * 2022-04-06 2022-06-24 Oppo广东移动通信有限公司 Focusing method and device and terminal computer readable storage medium

Also Published As

Publication number Publication date
CN112822412B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN112822412B (en) Exposure method, exposure device, electronic equipment and storage medium
WO2019179179A1 (en) Image processing method and apparatus
KR20200019728A (en) Shooting mobile terminal
CN112153301B (en) Shooting method and electronic equipment
CN113099122A (en) Shooting method, shooting device, shooting equipment and storage medium
CN112637500B (en) Image processing method and device
CN109361853B (en) Image processing method, image processing device, electronic equipment and storage medium
CN105391940B (en) A kind of image recommendation method and device
CN112492215B (en) Shooting control method and device and electronic equipment
CN112333382B (en) Shooting method and device and electronic equipment
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN113727001B (en) Shooting method and device and electronic equipment
CN113747067A (en) Photographing method and device, electronic equipment and storage medium
CN113866782A (en) Image processing method and device and electronic equipment
CN112672055A (en) Photographing method, device and equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN112153291B (en) Photographing method and electronic equipment
CN112399092A (en) Shooting method and device and electronic equipment
CN114125226A (en) Image shooting method and device, electronic equipment and readable storage medium
CN112312024A (en) Photographing processing method and device and storage medium
CN112291474A (en) Image acquisition method and device and electronic equipment
CN115134536B (en) Shooting method and device thereof
CN112822404B (en) Image processing method and device and storage medium
CN112492216B (en) Shooting control method and shooting control device
CN115278079B (en) Shooting method and device thereof

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