Image acquisition method and device, electronic equipment and storage medium
By using a dual image acquisition module in electronic devices, the exposure time and field of view are adjusted according to the scene, and zero-delay shooting is achieved, the problems of lag and delay in image acquisition are solved, and image quality and user experience are improved.
Patent Information
- Application Number
- CN202310638684.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
In sports scenes, night scenes or capture scenes, there are problems of shooting lag and delay in image acquisition of electronic devices.
By using two image acquisition modules in electronic devices, adjust the exposure time and acquisition field of view according to the preset scene, the zero-delay shooting mode is achieved, and the image acquisition module is switched during scene switching to reduce interference and improve the stability of image acquisition sex.
It effectively solves the problems of lag and delay in image acquisition, improves the clarity and preview effect of the image, and enhances the user experience.
Smart Images

Figure CN119071628A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image technology, and in particular to an image acquisition method and device, an electronic device and a storage medium. Background Art
[0002] With the continuous development of intelligent terminal technology, the use of electronic devices (such as smart phones, tablet computers, etc.) is becoming more and more popular. Most electronic devices have built-in image acquisition functions, and with the enhancement of electronic device processing capabilities and the development of image acquisition technology, users have higher and higher requirements for the quality of captured images.
[0003] In the related art, in some acquisition scenarios (for example, sports scenes, night scenes, or snapshot scenes), there are problems of shooting freezes and delays. Summary of the invention
[0004] The present invention provides an image acquisition method and device, an electronic device and a storage medium.
[0005] The present disclosure provides an image acquisition method, the method comprising:
[0006] Capturing a first image through a first image acquisition module, and displaying the first image;
[0007] When the current acquisition scene is a preset scene, the first image is switched to display a second image acquired by a second image acquisition module;
[0008] According to the preset scene, adjusting the shooting parameters of the first image acquisition module;
[0009] Control the first image acquisition module to acquire the first image according to the adjusted shooting parameters.
[0010] Based on the above solution, the method further includes:
[0011] When a shooting instruction is detected, acquiring the first image in the cache queue based on a zero-delay shooting mode;
[0012] Perform image processing on the first image to generate a captured image.
[0013] Based on the above solution, the shooting parameters at least include: exposure time;
[0014] The adjusting the shooting parameters of the first image acquisition module according to the preset scene includes:
[0015] According to the preset scene, the exposure time of the first image acquisition module is adjusted.
[0016] Based on the above solution, the method further includes:
[0017] When the current acquisition scene exits the preset scene, controlling the first image acquisition module to acquire the first image according to the shooting parameters of the second image acquisition module;
[0018] The second image is switched to display the first image captured by the first image capture module.
[0019] Based on the above solution, the preset scene includes: a stroboscopic scene.
[0020] Based on the above solution, the preset scene includes: a stroboscopic scene in a motion acquisition scene.
[0021] Based on the above solution, the method further includes:
[0022] Using light sensors in electronic devices to detect the luminous frequency of ambient light sources;
[0023] When the light emission frequency is greater than a first threshold, it is determined that the current acquisition scene is the stroboscopic scene.
[0024] Based on the above solution, when the current acquisition scene is a preset scene, switching the first image to display the second image acquired by the second image acquisition module includes:
[0025] When the acquisition field of view of the second image acquisition module is larger than the acquisition field of view of the first image acquisition module, the image acquired by the second image acquisition module is cropped according to the difference between the acquisition field of view of the second image acquisition module and the acquisition field of view of the first image acquisition module to obtain and display the second image; or
[0026] When the capture field of view of the second image capture module is equal to the capture field of view of the first image capture module, the second image is obtained and displayed according to the image captured by the second image capture module.
[0027] A second aspect of the present disclosure provides an image acquisition device, the device comprising:
[0028] A display module, configured to capture a first image through a first image capture module and display the first image;
[0029] A first switching module, configured to switch the display of the first image to a second image captured by a second image capture module when the current capture scene is a preset scene;
[0030] An adjustment module, used to adjust the shooting parameters of the first image acquisition module according to a preset scene;
[0031] The first acquisition module is used to control the first image acquisition module to acquire the first image according to the adjusted shooting parameters.
[0032] Based on the above solution, the device also includes:
[0033] An acquisition module, configured to acquire the first image in the cache queue based on a zero-delay photography mode when a shooting instruction is detected;
[0034] A generating module is used to perform image processing on the first image to generate a captured image.
[0035] Based on the above solution, the shooting parameters at least include: exposure time;
[0036] The adjustment module is specifically used to adjust the exposure time of the first image acquisition module according to the preset scene.
[0037] Based on the above solution, the device also includes:
[0038] A second acquisition module, configured to control the first image acquisition module to acquire the first image according to the shooting parameters of the second image acquisition module when the current acquisition scene exits the preset scene;
[0039] The second switching module is used to switch the display of the second image to the first image captured by the first image acquisition module.
[0040] Based on the above solution, the preset scene includes: a stroboscopic scene.
[0041] Based on the above solution, the preset scene includes: a stroboscopic scene in a motion acquisition scene.
[0042] Based on the above solution, the device also includes:
[0043] A detection module, used to detect the luminous frequency of the ambient light source using a light sensor in the electronic device;
[0044] A determination module is used to determine that the current acquisition scene is the stroboscopic scene when the light emitting frequency is greater than a first threshold.
[0045] Based on the above scheme, the first switching module is specifically used to, when the acquisition field of view of the second image acquisition module is larger than the acquisition field of view of the first image acquisition module, crop the image captured by the second image acquisition module according to the difference between the acquisition field of view of the second image acquisition module and the acquisition field of view of the first image acquisition module, to obtain and display the second image; or, when the acquisition field of view of the second image acquisition module is equal to the acquisition field of view of the first image acquisition module, obtain and display the second image according to the image captured by the second image acquisition module.
[0046] A third aspect of the present disclosure provides an electronic device, including:
[0047] a memory for storing processor-executable instructions;
[0048] A processor connected to the memory;
[0049] Wherein, the processor is configured to execute the image acquisition method provided in any one of the above items.
[0050] A fourth aspect of an embodiment of the present disclosure provides a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute an image acquisition method as provided in any of the above items.
[0051] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0052] The image acquisition method applied to an electronic device provided by the embodiment of the present disclosure acquires a first image through a first image acquisition module and displays the first image; when the current acquisition scene is a preset scene, the first image is switched to display a second image acquired by a second image acquisition module; according to the preset scene, the shooting parameters of the first image acquisition module are adjusted; and the first image acquisition module is controlled to acquire the first image according to the adjusted shooting parameters. In this way, the stability of image acquisition can be enhanced and the problem of image capture freeze and delay can be solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0054] Figure 1 is a flowchart of an image acquisition method according to an exemplary embodiment;
[0055] Figure 2 is a flowchart of an image acquisition method according to an exemplary embodiment;
[0056] Figure 3 is a flowchart of an image acquisition method according to an exemplary embodiment;
[0057] Figure 4 is a flowchart of an image acquisition method according to an exemplary embodiment;
[0058] Figure 5 is a flowchart of an image acquisition method according to an exemplary embodiment;
[0059] Figure 6 is a schematic structural diagram of an image acquisition device according to an exemplary embodiment;
[0060] Figure 7 It is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same 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 disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.
[0062] like Figure 1 As shown, an embodiment of the present disclosure provides an image acquisition method, which is applied to an electronic device, and the method includes:
[0063] S110: Capturing a first image through a first image acquisition module, and displaying the first image;
[0064] S120: When the current acquisition scene is a preset scene, the first image is switched to display a second image acquired by a second image acquisition module;
[0065] S130: adjusting the shooting parameters of the first image acquisition module according to a preset scene;
[0066] S140: Control the first image acquisition module to acquire the first image according to the adjusted shooting parameters.
[0067] The image acquisition method in the embodiment of the present disclosure can be applied to electronic devices. The electronic devices herein include fixed terminals and mobile terminals. By way of example, the mobile terminals include but are not limited to smart phones, tablet computers, laptop computers, or smart wearable devices. By way of example, the fixed terminals include but are not limited to desktop computers.
[0068] It is understandable that the electronic device may include at least two image acquisition modules for respectively acquiring the first image and the second image. For example, the electronic device may include a first image acquisition module and a second image acquisition module. In a preset scenario, the first image acquisition module runs in the background, that is, the image acquired by the first image acquisition module is not immediately previewed on the display screen. The second image acquisition module runs in the foreground, that is, the image acquired by the second image acquisition module is immediately previewed on the display screen. The image acquisition module here includes but is not limited to an image sensor and a lens module for transmitting light to the image sensor.
[0069] The disclosed embodiment utilizes two image acquisition modules to respectively acquire the first image and the second image, thereby reducing mutual interference between the acquired first image and the second image and improving the display effects of the first image and the second image.
[0070] Exemplarily, the preset scene is any scene that requires adjustment of shooting parameters, that is, requires specific shooting parameters. Exemplarily, the preset scene includes but is not limited to indoor acquisition scene, motion capture scene, night scene shooting scene, stroboscopic shooting scene or high dynamic range imaging scene (High Dynamic Range Imaging, HDRI or HDR), etc.
[0071] The above-mentioned shooting parameters may include exposure time, acquisition field of view or focal length, etc.
[0072] It can be understood that when the first image acquisition module generates the first image, the current electronic device defaults to the first image generated by the first image acquisition module for image preview. However, in a preset scenario, in order to reduce the impact on the displayed image, the first image acquisition module will be switched to the second image acquisition module, and the second image acquisition module will be used to acquire the second image, while the first image acquisition module will use the adjusted shooting parameters to acquire the first image to be stored.
[0073] It can be understood that in step S120, when the current acquisition scene is the preset scene, the display is switched from the first image to the second image acquired by the second image acquisition module. For example, when the current acquisition scene is the nth moment and the current acquisition scene is the preset scene, at the n+1th moment, the display is switched from the first image to the second image acquired by the second image acquisition module.
[0074] The nth moment is in seconds, milliseconds or microseconds as time units. The time unit may be determined according to the performance of a specific electronic device. The embodiment of the present disclosure does not specifically limit the time unit, which depends on the specific situation.
[0075] For example, when the current acquisition scene is a preset scene, the display of the first image is switched to the display of the second image acquired by the second image acquisition module, that is, at the n+1th moment, the second image acquired by the second image acquisition module is displayed, wherein the second image and the first image are at least the same in size and edge portion, so as to provide approximately the same visual experience. In this way, when switching the image acquisition module, the user's perception is minimized as much as possible.
[0076] In step S120, the acquisition parameters of the second image acquisition module when acquiring the second image at the n+1th moment are determined according to the acquisition parameters of the first image acquisition module at the nth moment, so that the visual perception difference between the second image and the first image is small.
[0077] Here, the n+1th moment is the moment after the nth moment. Exemplarily, the nth moment is the previous moment, and the n+1th moment is the current moment. Exemplarily again, the nth moment is the previous acquisition moment, and the n+1th moment is the current acquisition moment. The nth moment and the n+1th moment may be the acquisition moments of two adjacent images of the first image acquisition module.
[0078] In the image processing method provided by the embodiment of the present disclosure, since the first image acquisition module and the second image acquisition module respectively perform different functions, step S120 is an execution program for switching to display the second image acquired by the second image acquisition module, and step S130 is an execution program for the first image acquisition module. Therefore, the order in which step S120 and step S130 are executed will not affect the effect of image acquisition. Therefore, there is no specific limitation on the order in which step S120 and step S130 are executed. For example, Figure 1 As shown, step S120 is performed first, and then step S130 is performed. For another example, step S130 may be performed first, and then step S120. For another example, they may be performed in parallel, that is, step S120 and step S130 are performed at the same time.
[0079] In one embodiment, in order to realize that the image content captured by the second image acquisition module at least includes the image content captured by the first image acquisition module, it is necessary to use the second image acquisition module to capture the second image when the capture field of view of the second image acquisition module is greater than or equal to the capture field of view of the first image acquisition module. Exemplarily, the first image acquisition module may include a wide-angle camera, and the second image acquisition module may include an ultra-wide-angle camera.
[0080] In step S130, the shooting parameters of the first image acquisition module are adjusted according to the preset scene. Here, different preset scenes may correspond to different shooting parameters. For example, when the preset scene is a motion capture scene or a stroboscopic shooting scene, the exposure time in the shooting parameters may be reduced, so that the first image captured by the first image acquisition module is clearer.
[0081] In step S140, the first image acquisition module is controlled to acquire the first image according to the adjusted shooting parameters. Due to the preset scene, the captured image may have pixels with poor display effects, such as poor smoothness between pixels, or the appearance of stripes. In the preset scene, the first image is acquired according to the adjusted shooting parameters by controlling the first image acquisition module. Since the shooting parameters are shooting parameters corresponding to the preset scene, the effect of the first image acquired by the first image is better, and the possibility of abnormal pixels is reduced.
[0082] The image acquisition method applied to an electronic device provided by the embodiment of the present disclosure is to acquire a first image through a first image acquisition module and display the first image; when the current acquisition scene is a preset scene, the first image is switched to display a second image acquired by a second image acquisition module; according to the preset scene, the shooting parameters of the first image acquisition module are adjusted; and the first image acquisition module is controlled to acquire the first image according to the adjusted shooting parameters. In this way, by using the second image acquired by the second image acquisition module for foreground display in the preset scene, the first image acquisition module performs image acquisition in the background, and by adjusting the shooting parameters of the first image acquisition module, the first image is acquired using the adjusted shooting parameters, wherein the first image can be used for storage and the second image is used for foreground display. Then, in the preset scene, since the first image and the second image use different image acquisition modules respectively, the first image is acquired by the first image acquisition module in the background based on the adjusted shooting parameters, which will not affect the display effect of the second image, and reduce the possibility of mutual interference between the two image acquisition modules, enhance the stability of image acquisition, and acquire the first image by adjusting the shooting parameters, which can solve the problem of image shooting freeze and delay.
[0083] In some embodiments, Figure 2 As shown, the method also includes:
[0084] S150: When a shooting instruction is detected, acquiring the first image in the cache queue based on a zero-delay shooting mode;
[0085] For example, the first image captured by the first image capture module is stored in the cache queue of the zero-delay photography mode.
[0086] S160: Perform image processing on the first image to generate a captured image.
[0087] By way of example, the image processing may include a deflicker process and / or a noise reduction process.
[0088] The zero-delay photography mode here, also known as zero shutter lag (ZSL), has the characteristic of short photography delay.
[0089] For example, during the process of the first image acquisition module acquiring the first image based on the zero-delay mode, the first image is stored in a cache queue. Here, the cache queue is an array queue structure or a chain queue structure, the cache queue has a preset length, and the maximum number of first images stored is the preset length. When the preset length is reached, the first image in the advanced cache queue is deleted, thereby ensuring that the cache queue stores the first image closest to the current moment.
[0090] Then, when a shooting command is detected, one or more first images closest to the trigger moment can be determined from the cache queue according to the trigger moment of the shooting command and input into the de-flickering and / or noise reduction algorithm. After being processed by the de-flickering and / or noise reduction algorithm, a captured image with a better display effect is obtained and presented to the user.
[0091] For example, one or more first images in the cache queue are input to a deflicker algorithm for processing to obtain image data output by the deflicker algorithm. The image data output by the deflicker algorithm is input to a noise reduction synthesis algorithm (MFNR) for noise reduction synthesis to generate a captured image.
[0092] The disclosed embodiment obtains the first image in the cache queue generated by the zero-delay photographing mode based on the zero-delay photographing module when a shooting instruction is detected, and performs de-flickering and / or noise reduction processing on the first image, thereby making the generated photographed image smoother and with less noise, thereby improving the display effect of the photographed image.
[0093] In some embodiments, the shooting parameters include at least: exposure time;
[0094] The adjusting the shooting parameters of the first image acquisition module according to the preset scene includes:
[0095] According to the preset scene, the exposure time of the first image acquisition module is adjusted.
[0096] For example, the exposure time may be adjusted at intervals, for example, the exposure time may be adjusted at intervals to be “long exposure time” and “short exposure time”, or the exposure time may be adjusted at intervals to be “normal exposure time” and “short exposure time”.
[0097] Here, adjusting the exposure time of the first image acquisition module according to the preset scene includes: reducing or increasing the exposure time of the first image acquisition module according to the preset scene to make the captured first image clearer.
[0098] For example, when the preset scene is a nighttime shooting scene, the exposure time of the first image acquisition module needs to be increased.
[0099] For another example, when the preset scene is a motion capture scene or a stroboscopic scene, it is necessary to reduce the exposure time of the first image acquisition module.
[0100] After adjusting the exposure time of the first image acquisition, step S140 further includes: controlling the first image acquisition module to acquire the first image according to the adjusted exposure time, so that the acquired first image is clearer.
[0101] When the preset scenario requires reducing the exposure time to capture the first image, the capture time of a single frame image can be shortened by reducing the exposure time. In this way, by reducing the exposure time, the blur introduced by the relative motion between the target object being captured and the first image capture module can be reduced, thereby improving the clarity of the first image captured by the first image capture module.
[0102] When the preset scene requires increasing the exposure time to capture the first image, the acquisition time of a single frame image can be increased by increasing the exposure time. For example, in a scene with insufficient light, the exposure time needs to be increased to capture the dark scene more clearly.
[0103] The preset scene in the embodiment of the present disclosure may be any image acquisition scene that can improve image quality such as image clarity by reducing or increasing exposure time.
[0104] In some embodiments, Figure 3 As shown, the method also includes:
[0105] S170: When the current acquisition scene exits the preset scene, controlling the first image acquisition module to acquire the first image according to the shooting parameters of the second image acquisition module;
[0106] S180: Switching the display of the second image to the first image captured by the first image capture module.
[0107] Here, when the current acquisition scene is the preset scene, the display of the first image is switched to the display of the second image acquired by the second image acquisition module. However, when it is detected that the current acquisition scene exits the preset scene, the second image acquisition module is turned off, and the first image acquisition module is controlled to acquire the first image according to the shooting parameters of the second image acquisition module. At the same time, the display of the second image is switched to the display of the first image acquired by the first image acquisition module.
[0108] For example, when the current acquisition scene is a stroboscopic scene, the display of the first image is switched to the display of the second image acquired by the second image acquisition module. When it is detected that the current acquisition scene exits the stroboscopic scene, the second image acquisition module is turned off, and the first image acquisition module is controlled to acquire the first image according to the shooting parameters of the second image acquisition module.
[0109] The disclosed embodiment controls the first image acquisition module to follow the shooting parameters of the second image acquisition module, that is, controls the first image acquisition module and the second image acquisition module to use the same shooting parameters. Exemplarily, the same shooting parameters here at least include: the same exposure parameters and the same acquisition field of view. By using the same shooting parameters, the user is provided with approximately the same visual experience during the process of switching from displaying the second image to displaying the first image, thereby improving the user experience.
[0110] In some embodiments, the preset scene includes: a stroboscopic scene.
[0111] The stroboscopic scene here refers to the shooting scene under the flickering light source. The flickering light source here refers to the light emitted by the light source changing rapidly and repeatedly over time, causing the light source to flicker. However, due to the high frequency of the flickering light source, the human eye cannot easily perceive the flicker of the light source.
[0112] For example, the current civilian power supply system generally uses 50 Hz or 60 Hz AC. If the light source does not convert AC to DC, then due to the characteristics of AC, this light source will produce a light source that flashes alternately at 100 Hz or 120 Hz, which is a flickering light source.
[0113] For example, the high-frequency modulated light source of LED lights in subways, high-speed trains or various indoor places usually has a flickering frequency much higher than the power frequency, which can reach between 200 Hz (HZ) and 1000 Hz (HZ), that is, this light source is a flickering light source. It is usually stipulated that 50 Hz is commonly known as the power frequency. The power frequency in different countries is different. Some are 60 Hz, but most are 50 Hz.
[0114] For another example, the screen light source of an electronic device with a lit screen or the screen light source of a television may also be a flickering light source when it reaches a certain flickering frequency.
[0115] In some embodiments, the preset scene includes: a stroboscopic scene in a motion acquisition scene.
[0116] It can be understood that, for example, in a stroboscopic scene, when the first image acquisition module provides the first image at the nth moment, it is determined whether the current acquisition scene is a motion acquisition scene. When the current acquisition scene is a motion acquisition scene, the second image acquisition module is used to acquire the second image at the n+1th moment.
[0117] In one embodiment, it is determined whether the current acquisition scene is a motion acquisition scene. Specifically, when the electronic device turns on the motion mode or the dynamic mode, it is determined that the current acquisition scene is a motion acquisition scene. Then, it is determined that the current acquisition scene is a preset scene. The motion mode or the dynamic mode here may refer to the electronic device itself being in a moving state, or the target object in the first image being in a moving state. For example, when capturing motion, the user can turn on the motion mode.
[0118] Exemplarily, the target object may include but is not limited to moving people and / or objects, specifically athletes, cars, animals or children, etc.
[0119] In one embodiment, a detection component is installed in the electronic device, and the detection component is used to detect whether the electronic device is in a stationary state or a moving state. The detection module here may include but is not limited to: an acceleration sensor and a gyroscope. When the detection component detects that the carrier or wearer of the electronic device is in a moving state, it is determined that the current acquisition scene is a motion acquisition scene.
[0120] In one embodiment, it is possible to detect whether the target object being photographed is in motion. When the target object is in motion, it is determined that the current acquisition scene is a motion acquisition scene. The reduction range of the exposure time of the first image acquisition module can also be determined by the amount of motion, wherein the size of the amount of motion is positively correlated with the reduction range. Determining the exposure time by the amount of motion makes the clarity of the first image acquired by the first image acquisition module higher, thereby improving the display effect of the first image.
[0121] In the disclosed embodiment, when the current acquisition scene is a stroboscopic scene in a motion acquisition scene, the second image at the n+1th moment is acquired by using the second image acquisition module, and the exposure time of the second image acquisition module is not changed during the acquisition of the second image. At the same time, at the n+1th moment, the exposure time of the first image acquisition module is reduced, and the first image acquisition module acquires the first image to be stored based on the reduced exposure time. In this way, when the exposure time of the first image acquisition module is changed, the exposure time of the second image acquisition module is not affected, so that the preview and acquisition of the first image are processed separately, reducing the possibility of mutual interference between the two. By reducing the exposure time, the first image acquired by the first image acquisition module in the motion acquisition scene has better clarity, thereby improving the image preview and acquisition effects of the motion acquisition scene.
[0122] In some embodiments, based on the positioning information and configuration information of the electronic device, if the current positioning information of the electronic device indicates that the electronic device is located in a preset area indicated by the configuration information, it means that the collection light source of the electronic device is a light source of a stroboscopic scene.
[0123] In some embodiments, the method further comprises:
[0124] When the first image acquisition module has a motion acquisition mode turned on, determining that the current acquisition scene is the motion acquisition scene;
[0125] or,
[0126] When a preset change occurs to the position of the target object in two adjacent frames of images captured by the first image capture module, it is determined that the current capture scene is the motion capture scene.
[0127] Here, whether the current acquisition scene is a motion acquisition scene can be determined by whether the user manually turns on the motion acquisition mode or the program automatically turns on the position of the target object in the first image according to whether the position of the target object in the first image changes, so that when the first image acquisition module provides the first image at the nth moment, it is determined that the current acquisition scene is a motion acquisition scene. When the motion acquisition mode is turned on, or it is determined that the target object in the first image is in motion, the current acquisition scene is determined to be a motion acquisition scene.
[0128] In one embodiment, a shooting mode can be set in the camera of the electronic device, and the user can set the shooting mode as needed, and the shooting modes include: sports mode, landscape mode, children mode, or pet mode. When it is necessary to shoot a moving scene, the shooting mode can be set to sports mode; when it is necessary to shoot a child, the shooting mode can be set to children mode; when it is necessary to shoot an animal, the shooting mode can be set to pet mode. Then, when it is detected that the current shooting mode is sports mode, children mode, or pet mode, it is determined to start the motion acquisition mode.
[0129] The preset change may include a position change of a preset length or a preset angle of the target object. That is, when it is detected that the position of the target object in two adjacent frames of images captured by the first image capture module has changed by a preset length or a preset angle, the current capture scene is determined to be a motion capture scene.
[0130] Generally, if the target object in the image captured by the first image acquisition module does not move, the change between two adjacent frames of images is very slight. If the target object is moving, the content of adjacent frames of images will change significantly. Therefore, by determining whether the position of the target object in two adjacent frames of images captured by the first image acquisition module has changed by a preset value, it is determined that the current acquisition scene is a motion acquisition scene, thereby improving the intelligence of image acquisition.
[0131] In one embodiment, since the target object is moving, the position of the target object is different in different image frames. A differential operation can be performed on two temporally consecutive frames, and the grayscale values of the pixels corresponding to the two adjacent frames are subtracted to determine the absolute value of the grayscale difference. When the absolute value exceeds a second threshold, it is determined that the position of the target object has changed by a preset value, thereby determining that the current acquisition scene is a motion acquisition scene. The second threshold here is determined based on a large number of image processing experiments and experience.
[0132] In some embodiments, the method further comprises:
[0133] Using light sensors in electronic devices to detect the luminous frequency of ambient light sources;
[0134] When the light emission frequency is greater than a first threshold, it is determined that the current acquisition scene is the stroboscopic scene.
[0135] Here, the light sensor can detect the luminous frequency of the ambient light source. For example, the device generating the ambient light source can be the light emitted by an LED lamp or various screens, that is, the light sensor can detect the luminous frequency of the LED lamp or the screen.
[0136] When the luminous frequency is greater than the first threshold, it means that the ambient light source may affect the effect of the image acquisition module capturing the image. For example, when the exposure time of the first image acquisition module does not match the luminous frequency of the ambient light source, light and dark stripes will appear on the image captured by the image acquisition module, thereby affecting the effect of the captured image.
[0137] Therefore, in this case, the first image acquisition module is switched to the second image acquisition module, and the second image acquisition module is used for preview. The exposure time of the second image acquisition module is adjusted to an integer multiple of the flickering period of the ambient light source, thereby reducing the possibility of the second image presenting light and dark strips and improving the preview effect.
[0138] At the same time, the first image acquisition module is used to acquire the first image to be stored. Since the current acquisition scene is a stroboscopic scene, the exposure time of the first image acquisition module can be reduced so that the first image module acquires the first image to be stored based on the reduced exposure time to improve the clarity of the first image.
[0139] In some embodiments, the first image acquisition module acquires the first image to be stored based on the reduced exposure time, including:
[0140] The first image acquisition module acquires the first image to be stored based on a zero-delay photography mode and the reduced exposure time.
[0141] The zero-delay photography mode here, also known as zero shutter lag (ZSL), has the characteristic of short photography delay.
[0142] When it is detected that the photo is triggered, the electronic device determines the actual photo shooting time, finds the image frame corresponding to the photo shooting time in the first image to be stored, and the image frame with the best image effect is used as the final image shot, thereby achieving a zero-delay photo shooting effect and achieving a better snapshot effect.
[0143] In the process of the first image acquisition module acquiring the first image to be stored based on the zero-delay mode and the reduced exposure time, the first image is stored in the cache queue. Here, the cache queue is an array queue structure or a chain queue structure, the cache queue has a preset length, and the maximum number of first images stored is the preset length. When the preset length is reached, the first image in the advanced cache queue is deleted, thereby ensuring that the cache queue stores the first image closest to the current moment.
[0144] Then, when a shooting instruction is detected, the first image closest to the triggering moment can be determined from the cache queue according to the triggering moment of the shooting instruction and presented to the user, thereby improving the effect of capturing.
[0145] In one embodiment, when the first image acquisition module acquires the first image to be stored based on the zero-delay shooting mode and the reduced exposure time, the motion detection module in the electronic device performs motion detection on each frame of data of the first image acquisition module, and transmits the motion detection information to the automatic exposure control module (AEC), and determines the exposure time of the next frame by the motion information. For example, the current exposure time of the first image acquisition module is 10ms. When a motion scene is detected, it is assumed that the exposure time is shortened to 5ms to reduce the image blur caused by motion and achieve the effect of motion capture.
[0146] In some embodiments, when the current acquisition scene is the preset scene, using the second image acquisition module to acquire the second image at the (n+1)th moment includes:
[0147] When the current acquisition scene is the preset scene, acquisition parameters for acquiring the second image by the second image acquisition module are determined according to acquisition parameters of the first image acquisition module at the nth moment.
[0148] Here, since it is necessary to implement the image acquisition module for the preview function to switch when the current acquisition scene is determined to be the preset scene, that is, by switching the first image acquisition module to the second image acquisition module. In order to minimize the user's perception of the switch during the switching process, it is necessary to determine the acquisition parameters of the second image acquired by the second image acquisition module according to the acquisition parameters of the first image acquisition module at the nth moment.
[0149] It can be understood that the acquisition parameters of the first image acquisition module at the nth moment and the acquisition parameters of the second image acquisition module at the n+1th moment are the same, so that the image quality and attributes of the first image and the second image can be basically consistent, thereby making the effect of the first image more stable.
[0150] In one embodiment, the acquisition parameters may also include a gain value of white balance. By obtaining the gain value of white balance of the first image acquisition module, the white balance of the second image acquisition module is adjusted according to the white balance gain value of the first image acquisition module, so that the visual experience of the obtained second image is similar to that of the first image.
[0151] In some embodiments, the acquisition parameters include at least one of the following:
[0152] Acquisition field of view;
[0153] Exposure duration.
[0154] The acquisition field of view here can also be called the field of view (FOV). When the acquisition field of view of the second image acquisition module is different from that of the first image acquisition module, the image acquired by the second image acquisition module can be adjusted according to the acquisition field of view of the first image acquisition module, so that the second image obtained is closer to the visual experience of the first image. In short, different acquisition times will result in different contents in the image.
[0155] Here, the exposure duration of the second image acquisition module at the n+1th moment is determined based on the exposure duration of the first image acquisition module at the nth moment. Specifically, the exposure duration of the first image acquisition module at the nth moment is obtained, and the exposure duration of the first image acquisition module at the nth moment or a duration longer than the exposure duration of the first image acquisition module at the nth moment is used as the exposure duration of the second image acquisition module. That is, the exposure duration of the second image acquisition module is greater than or equal to the exposure duration of the first image acquisition module at the nth moment. In this way, the clarity of the second image can be similar to or higher than that of the first image.
[0156] In some embodiments, when the current acquisition scene is a preset scene, switching the first image to display a second image acquired by a second image acquisition module includes:
[0157] When the acquisition field of view of the second image acquisition module is larger than the acquisition field of view of the first image acquisition module, the image acquired by the second image acquisition module is cropped according to the difference between the acquisition field of view of the second image acquisition module and the acquisition field of view of the first image acquisition module to obtain and display the second image; or
[0158] When the capture field of view of the second image capture module is equal to the capture field of view of the first image capture module, the second image is obtained and displayed according to the image captured by the second image capture module.
[0159] Here, before the cropping operation, the capture fields of view of the second image capture module and the first image capture module can be compared. When the capture fields of view of the second image capture module are the same as those of the first image capture module, no cropping operation is required, and the image captured by the second image capture module can be used as the second image.
[0160] When the acquisition field of view of the second image acquisition module is larger than that of the first image acquisition module, the image acquired by the second image acquisition module at the n+1th time can be cropped based on the spatial alignment transform (SAT) algorithm according to the difference between the acquisition field of view of the second image acquisition module and the acquisition field of view of the first image acquisition module to obtain the second image.
[0161] The above-mentioned spatial alignment conversion algorithm can continuously bring the image collected by the second image acquisition module closer to the image collected by the first image acquisition module, so that the edge critical points of the first image and the second image overlap as much as possible to achieve smooth switching under human vision.
[0162] like Figure 4 As shown, the present disclosure provides an image acquisition method, which may include:
[0163] S2100: using the first image acquisition module to acquire a first image, at which time the data stream of the image acquired by the second image acquisition module is in a closed state.
[0164] S2200: Use the first image acquisition module to acquire the first image based on the zero-delay mode. When it is detected that the current acquisition scene is a light source flickering and motion scene, start the second image acquisition module to acquire the image data stream, and execute step S2300.
[0165] S2300: Use the second image acquisition module to acquire the second image, and when acquiring the second image, do not change the exposure time of the second image acquisition module; when shooting an image, adjust the exposure time of the first image acquisition module, and use the first image acquisition module to acquire the first image to be stored.
[0166] S2400: After the shooting is completed, the first image is captured by the second image acquisition module, and the data stream of the first image acquisition module to capture the image is in an open state. When it is detected that there is no light source flickering in the current capture scene and it is not a motion scene, step S2500 is executed.
[0167] S2500: A first image is captured by a first image capture module, and a data stream of an image captured by a second image capture module is in a closed state.
[0168] Exemplarily, the first image acquisition module may be a wide-angle camera (WIDE), and the second image acquisition module may be an ultra-wide-angle camera (ULTRAWIDE or UW).
[0169] The image acquisition method provided by the embodiment of the present disclosure is a motion capture zero-delay photography method based on dual cameras. Since the dual cameras can have no influence on each other's exposure time, this provides a basis for modifying the exposure time for motion capture photography in flickering light source scenes.
[0170] The flowchart of using dual cameras to achieve zero-delay motion capture in a flickering light source (flicker) environment is as follows: Figure 4 As shown. Taking the default preview as the first image acquisition module (WIDE camera) as an example, when the system detects a flickering light source (flicker) in the preview stream, the second image acquisition module (UW secondary camera) is started when the next frame request (request) is issued. After the second image acquisition module (UW camera) executes automatic exposure (Automatic Exposure, AE), automatic white balance (Automatic white balance, AWE) and auto focus (Auto Focus, AF) data and stabilizes, the preview is switched to the second image acquisition module (UW camera). At the same time, the first image acquisition module (WIDE camera) is cut to the background. When a photo taking instruction is detected, no exposure modification is made to the second image acquisition module (preview camera), so that there will be no flicker effect on the preview. Modify the exposure duration of the first image acquisition module (secondary camera WIDE), and use the first image acquisition module to obtain the first image.
[0171] When the second image acquisition module (preview UW) detects that the flickering light source (flicker) environment has exited, the second image acquisition module used for the first image is switched to the first image acquisition module (WIDE), and the first image is acquired using the first image acquisition module. That is, the main camera is switched from the second image acquisition module to the first image acquisition module. After a few frames, the data stream of the acquired image of the second image acquisition module is closed.
[0172] like Figure 5The figure shows the preview and photo-taking process. The disclosed embodiment utilizes the spatial alignment transform (SAT) algorithm to achieve smooth switching between the first image acquisition module and the second image acquisition module. When it is detected that there is a flickering light source (flicker) in the ambient light source, the second image acquisition module (secondary camera) is turned on and switched. After the switch, the main camera is the second image acquisition module (UW camera) and the secondary camera is the first image acquisition module (WIDE camera). The preview is the second image acquisition module (UW) framing. After the automatic exposure control (AEC) module of the main camera (second image acquisition module) obtains the motion information, the exposure time of the second image acquisition module (Sensor) is not adjusted to avoid stroboscopic stripes in the preview.
[0173] At the same time, the main camera (second image acquisition module) and the secondary camera (first image acquisition module) are input into the spatial alignment algorithm (SAT algorithm), which will crop the image output of the second image acquisition module (UW) to maintain the same field of vision (FOV) as the first image acquisition module (WIDE Sensor). If the first image acquisition module and the second image acquisition module are the same, the cropping step of the control alignment conversion algorithm (SAT) can also be omitted. Finally, the cropped second image (UW image) is output to the camera APP for preview display.
[0174] The disclosed embodiment can adopt the zero-delay shooting mode in both flicker light source scenes and non-flicker light source scenes to achieve the unity of scene strategy and effect. When the user does not take a photo, the first image acquisition module outputs frames in a manner that modifies the exposure according to the amount of motion in the current shooting scene, thereby ensuring the effect of motion capture. When a photo request is detected, the frames required by the multi-frame algorithm are directly obtained from the zero-delay buffer (Zsl buffer) queue and sent to the deflicker algorithm for processing. The data output by the deflicker algorithm is input into the multi-frame noise reduction synthesis algorithm (MFNR) for noise reduction synthesis, and finally a captured image is generated.
[0175] like Figure 6 As shown, an embodiment of the present disclosure provides an image acquisition device 400, which is applied to an electronic device, and the device includes:
[0176] The display module 410 is used to capture a first image through a first image capture module and display the first image;
[0177] A first switching module 420, configured to switch the display of the first image to a second image captured by a second image capture module when the current capture scene is a preset scene;
[0178] An adjustment module 430, configured to adjust the shooting parameters of the first image acquisition module according to a preset scene;
[0179] The first acquisition module 440 is used to control the first image acquisition module to acquire the first image according to the adjusted shooting parameters.
[0180] In some embodiments, the apparatus further comprises:
[0181] An acquisition module, configured to acquire the first image in the cache queue based on a zero-delay photography mode when a shooting instruction is detected;
[0182] A generating module is used to perform image processing on the first image to generate a captured image.
[0183] In some embodiments, the shooting parameters include at least: exposure time;
[0184] The adjustment module is specifically used to adjust the exposure time of the first image acquisition module according to the preset scene.
[0185] In some embodiments, the apparatus further comprises:
[0186] A second acquisition module, configured to control the first image acquisition module to acquire the first image according to the shooting parameters of the second image acquisition module when the current acquisition scene exits the preset scene;
[0187] The second switching module is used to switch the display of the second image to the first image captured by the first image acquisition module.
[0188] In some embodiments, the preset scene includes: a stroboscopic scene.
[0189] In some embodiments, the preset scene includes: a stroboscopic scene in a motion acquisition scene.
[0190] In some embodiments, the apparatus further comprises:
[0191] A detection module, used to detect the luminous frequency of the ambient light source using a light sensor in the electronic device;
[0192] A determination module is used to determine that the current acquisition scene is the stroboscopic scene when the light emitting frequency is greater than a first threshold.
[0193] In some embodiments, the first switching module is specifically used to, when the acquisition field of view of the second image acquisition module is larger than the acquisition field of view of the first image acquisition module, crop the image captured by the second image acquisition module according to the difference between the acquisition field of view of the second image acquisition module and the acquisition field of view of the first image acquisition module, to obtain and display the second image; or, when the acquisition field of view of the second image acquisition module is equal to the acquisition field of view of the first image acquisition module, obtain and display the second image according to the image captured by the second image acquisition module.
[0194] An embodiment of the present disclosure provides an electronic device, including:
[0195] a memory for storing processor-executable instructions;
[0196] A processor connected to the memory;
[0197] Among them, the processor is configured to execute the image acquisition method provided by any of the aforementioned technical solutions.
[0198] The processor may include various types of storage media, which are non-transitory computer storage media that can continue to remember information stored thereon after the electronic device loses power.
[0199] The processor can be connected to the memory through a bus or the like, and is used to read the executable program stored in the memory, for example, to execute the following Figures 1 to 5 At least one of any of the methods shown.
[0200] Figure 7 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be included in an electronic device such as a mobile phone, a mobile computer, or a server. In short, the data processing electronic device 800 may be included in any electronic device.
[0201] Reference Figure 7 The electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0202] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0203] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), 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 disk or optical disk.
[0204] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0205] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 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 input signals from the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating state, such as a shooting state or a video state, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0206] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating state, such as a call state, a recording state, and a voice recognition state, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0207] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0208] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0209] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0210] In an exemplary embodiment, the apparatus 800 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, microcontrollers, microprocessors or other electronic components to perform the above method.
[0211] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0212] The present disclosure provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the UE, the UE or the base station can execute the image acquisition method provided by any of the above embodiments, and can execute Figures 1 to 5 At least one of any of the methods shown.
[0213] An image acquisition method applied to an electronic device may include: acquiring a first image through a first image acquisition module, and displaying the first image;
[0214] When the current acquisition scene is a preset scene, the first image is switched to display a second image acquired by a second image acquisition module;
[0215] According to the preset scene, adjusting the shooting parameters of the first image acquisition module;
[0216] Control the first image acquisition module to acquire the first image according to the adjusted shooting parameters.
[0217] It is understandable that the method further comprises:
[0218] When a shooting instruction is detected, acquiring the first image in the cache queue based on a zero-delay shooting mode;
[0219] Perform image processing on the first image to generate a captured image.
[0220] It can be understood that the shooting parameters at least include: exposure time;
[0221] The adjusting the shooting parameters of the first image acquisition module according to the preset scene includes:
[0222] According to the preset scene, the exposure time of the first image acquisition module is adjusted.
[0223] It is understandable that the method further comprises:
[0224] When the current acquisition scene exits the preset scene, controlling the first image acquisition module to acquire the first image according to the shooting parameters of the second image acquisition module;
[0225] The second image is switched to display the first image captured by the first image capture module.
[0226] It can be understood that the preset scene includes: a stroboscopic scene.
[0227] It can be understood that the preset scene includes: a stroboscopic scene in a motion acquisition scene.
[0228] It is understandable that the method further comprises:
[0229] Using light sensors in electronic devices to detect the luminous frequency of ambient light sources;
[0230] When the light emission frequency is greater than a first threshold, it is determined that the current acquisition scene is the stroboscopic scene.
[0231] It can be understood that, when the current acquisition scene is a preset scene, switching the first image to display the second image acquired by the second image acquisition module includes:
[0232] When the acquisition field of view of the second image acquisition module is larger than the acquisition field of view of the first image acquisition module, the image acquired by the second image acquisition module is cropped according to the difference between the acquisition field of view of the second image acquisition module and the acquisition field of view of the first image acquisition module to obtain and display the second image; or
[0233] When the capture field of view of the second image capture module is equal to the capture field of view of the first image capture module, the second image is obtained and displayed according to the image captured by the second image capture module.
[0234] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0235] It should be understood that the present disclosure is not limited to the exact structures that have been 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 present disclosure is limited only by the appended claims.
Claims
1. An image acquisition method, characterized in that: The method comprises: Capturing a first image through a first image acquisition module, and displaying the first image; When the current acquisition scene is a preset scene, the first image is switched to display a second image acquired by a second image acquisition module; According to the preset scene, adjusting the shooting parameters of the first image acquisition module; Control the first image acquisition module to acquire the first image according to the adjusted shooting parameters.
2. The method according to claim 1, characterized in that The method further comprises: When a shooting instruction is detected, acquiring the first image in the cache queue based on a zero-delay shooting mode; Perform image processing on the first image to generate a captured image.
3. The method according to claim 1, characterized in that The shooting parameters at least include: exposure time; The adjusting the shooting parameters of the first image acquisition module according to the preset scene includes: According to the preset scene, the exposure time of the first image acquisition module is adjusted.
4. The method according to claim 1, characterized in that: The method further comprises: When the current acquisition scene exits the preset scene, controlling the first image acquisition module to acquire the first image according to the shooting parameters of the second image acquisition module; The second image is switched to display the first image captured by the first image capture module.
5. The method according to claim 1, characterized in that The preset scenes include: stroboscopic scenes.
6. The method according to claim 5, characterized in that The preset scene includes: a stroboscopic scene in a motion acquisition scene.
7. The method according to claim 5 or 6, characterized in that: The method further comprises: Using light sensors in electronic devices to detect the luminous frequency of ambient light sources; When the light emission frequency is greater than a first threshold, it is determined that the current acquisition scene is the stroboscopic scene.
8. The method according to claim 1, characterized in that The method of switching the first image to display a second image captured by a second image capture module when the current capture scene is a preset scene includes: When the acquisition field of view of the second image acquisition module is larger than the acquisition field of view of the first image acquisition module, the image acquired by the second image acquisition module is cropped according to the difference between the acquisition field of view of the second image acquisition module and the acquisition field of view of the first image acquisition module to obtain and display the second image; or When the capture field of view of the second image capture module is equal to the capture field of view of the first image capture module, the second image is obtained and displayed according to the image captured by the second image capture module.
9. An image acquisition device, characterized in that: The device comprises: A display module, configured to capture a first image through a first image capture module and display the first image; A first switching module, configured to switch the display of the first image to a second image captured by a second image capture module when the current capture scene is a preset scene; An adjustment module, used to adjust the shooting parameters of the first image acquisition module according to a preset scene; The first acquisition module is used to control the first image acquisition module to acquire the first image according to the adjusted shooting parameters.
10. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; A processor connected to the memory; Wherein, the processor is configured to execute the image acquisition method provided in any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a computer, the computer is enabled to perform the image acquisition method provided in any one of claims 1 to 8.
