Shooting mode switching method and device and electronic equipment

By counting the number of image frames collected before the scene information changes in the first shooting mode of the electronic device, switching to the second shooting mode when the threshold is reached, the time-consuming problem caused by frequent switching in the prior art is solved, and a faster shooting mode switching is achieved.

CN119767136APending Publication Date: 2025-04-04VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411763126.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

When the shooting scene changes, existing electronic devices need to frequently switch shooting modes, which will take longer.

Method used

By acquiring scene information during the acquisition of image frames in the first shooting mode, when the scene information changes, the number of captured image frames is counted, and if a certain threshold is reached or exceeded, it switches to the second shooting mode.

Benefits of technology

The frequent shooting mode switching caused by changes in scene information is reduced, and the time-consuming time spent by electronic devices in switching shooting modes is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119767136A_ABST
    Figure CN119767136A_ABST
Patent Text Reader

Abstract

The invention discloses a shooting mode switching method and device and electronic equipment, and belongs to the technical field of shooting. The method comprises the steps that in the process of collecting image frames through a first shooting mode, scene information is obtained, and the scene information is used for representing a shooting scene in the first shooting mode; under the condition that the scene information changes, a first number is obtained, and the first number is the number of image frames collected before the scene information changes in the first shooting mode; under the condition that the first number is larger than or equal to the first threshold value, the first shooting mode is switched into a second shooting mode, and the second shooting mode is determined based on the changed scene information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of photographing technology, and specifically relates to a photographing mode switching method, device and electronic equipment. Background Art

[0002] Currently, image sensors in electronic devices may have multiple shooting modes. In different shooting scenes, the electronic device may control the image sensor to select a shooting mode corresponding to the current shooting scene, thereby obtaining a clearer image in the current shooting scene.

[0003] For example, when the current shooting scene is a high-brightness scene, the image captured by the image sensor contains an overly bright area. At this time, the electronic device can control the image sensor to switch to the dual-burst mode and shoot in the dual-burst mode to obtain a clearer image in the high-brightness scene.

[0004] However, in the above method, if the current shooting scene changes, such as flickering, the electronic device needs to frequently switch the shooting mode, which results in a long time consumption for the electronic device to switch the shooting mode. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a shooting mode switching method, device and electronic device, which can reduce the time consumed by the electronic device to switch the shooting mode.

[0006] In a first aspect, an embodiment of the present application provides a shooting mode switching method, which includes: in the process of capturing image frames through a first shooting mode, obtaining scene information, the scene information is used to characterize the shooting scene in the first shooting mode; when the scene information changes, obtaining a first number, the first number being the number of image frames captured in the first shooting mode before the scene information changes; when the first number is greater than or equal to a first threshold, switching the first shooting mode to a second shooting mode, the second shooting mode being determined based on the changed scene information.

[0007] In a second aspect, an embodiment of the present application provides a shooting mode switching device, which includes: an acquisition module and a switching module. The acquisition module is used to acquire scene information in the process of acquiring image frames through the first shooting mode, and the scene information is used to characterize the shooting scene in the first shooting mode; and when the scene information changes, acquire a first number, and the first number is the number of image frames acquired in the first shooting mode before the scene information changes. The switching module is used to switch the first shooting mode to the second shooting mode when the first number acquired by the acquisition module is greater than or equal to the first threshold, and the second shooting mode is determined based on the changed scene information.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, in the process of capturing image frames through the first shooting mode, scene information can be obtained, and the scene information is used to characterize the shooting scene in the first shooting mode; then, when the scene information changes, a first number is obtained, and the first number is the number of image frames captured in the first shooting mode before the scene information changes; so that when the first number is greater than or equal to the first threshold, the first shooting mode is switched to the second shooting mode, and the second shooting mode is determined based on the changed scene information. In this solution, since the electronic device will switch the shooting mode only when the first number is greater than or equal to the first threshold, even if the electronic device detects that the scene information has changed, it will not immediately switch the shooting mode, thereby avoiding the power consumption problem caused by the electronic device frequently switching the shooting mode due to the change of the scene information; in this way, the time consumed by the electronic device to switch the shooting mode is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is one of the flow charts of a shooting mode switching method provided in an embodiment of the present application;

[0014] Figure 2 This is the second flowchart of a shooting mode switching method provided in an embodiment of the present application;

[0015] Figure 3 This is a third flowchart of a shooting mode switching method provided in an embodiment of the present application;

[0016] Figure 4This is a fourth flowchart of a shooting mode switching method provided in an embodiment of the present application;

[0017] Figure 5 This is a fifth flowchart of a shooting mode switching method provided in an embodiment of the present application;

[0018] Figure 6 is a structural schematic diagram of a shooting mode switching device provided in an embodiment of the present application;

[0019] Figure 7 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;

[0020] Figure 8 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0023] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0024] The following, in conjunction with the accompanying drawings, describes in detail the shooting mode switching method, device, electronic device and storage medium provided by the embodiments of the present application through specific embodiments and their application scenarios.

[0025] The shooting mode switching method, device, electronic device and storage medium provided in the embodiments of the present application can be applied in image preview scenarios, for example, previewing a non-zoom shooting scenario and previewing a zoom shooting scenario.

[0026] In the above-mentioned preview non-zoom shooting scenario, during the process of the electronic device capturing image frames through the basic shooting mode, when the electronic device detects that the ambient brightness of the shooting environment has changed, the number of image frames captured before the ambient brightness changes in the basic shooting mode can be obtained, so that when the number of image frames is greater than or equal to the first threshold, the electronic device can switch the basic shooting mode to the dual-burst shooting mode, and shoot through the dual-burst shooting mode to obtain an image.

[0027] In the above-mentioned preview zoom shooting scenario, when the electronic device is collecting image frames through the basic shooting mode, when the electronic device detects that the zoom ratio information has changed, the number of image frames collected before the zoom ratio information has changed in the basic shooting mode can be obtained, so that when the number of image frames is greater than or equal to the first threshold, the electronic device can switch the basic shooting mode to the zoom shooting mode, and shoot in the zoom shooting mode to obtain an image.

[0028] In the above-mentioned preview zoom scenario, during the process of the electronic device capturing image frames through the basic shooting mode, when the electronic device detects that the zoom ratio information and the ambient brightness sending change have changed, the number of image frames captured before the zoom ratio information and the ambient brightness sending change in the basic shooting mode can be obtained, so that when the number of image frames is greater than or equal to the first threshold, the electronic device can switch the basic shooting mode to the zoom shooting mode and the dual-explosion mode, so as to shoot through the zoom shooting mode and the dual-explosion mode to obtain an image.

[0029] In the shooting mode switching method, device, electronic device and storage medium provided in the embodiments of the present application, since the electronic device will switch the shooting mode only when the first number is greater than or equal to the first threshold, even if the electronic device detects that the scene information has changed, it will not immediately switch the shooting mode, thereby avoiding the power consumption problem caused by the electronic device frequently switching the shooting mode due to the change of scene information; in this way, the time consumed by the electronic device to switch the shooting mode is reduced.

[0030] The execution subject of the shooting mode switching provided in the embodiment of the present application may be a shooting mode switching device, and the shooting mode switching device may be an electronic device, or a functional module in an electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.

[0031] The present application provides a method for switching shooting modes. Figure 1 FIG. 1 is a flow chart of a method for switching shooting modes provided in an embodiment of the present application. Figure 1 As shown, the shooting mode switching method provided in the embodiment of the present application may include the following steps 201 to 203.

[0032] Step 201: In the process of capturing image frames through a first shooting mode, the electronic device obtains scene information.

[0033] In the embodiment of the present application, the above scene information is used to characterize the shooting scene in the first shooting mode.

[0034] It should be noted that the shooting mode involved in the embodiments of the present application is a mode corresponding to the image sensor.

[0035] Optionally, in an embodiment of the present application, the above-mentioned scene information includes at least one of the following: ambient brightness information, zoom ratio information, and preview screen information.

[0036] In the embodiment of the present application, the above-mentioned ambient brightness information represents the ambient brightness value in the first shooting mode; the above-mentioned zoom ratio information represents the shooting focal length in the first shooting mode; and the above-mentioned preview screen information represents the shooting object in the first shooting mode.

[0037] Optionally, in the embodiment of the present application, the above-mentioned shooting scene can be any one of the following: previewing a non-zoom shooting scene or previewing a zoom shooting scene.

[0038] Optionally, in the embodiment of the present application, the above-mentioned photographed object may be a person, an animal or an object.

[0039] Optionally, in the embodiment of the present application, the above-mentioned objects may be tables, chairs, stools and other objects.

[0040] Optionally, in the embodiment of the present application, the zoom ratio information may be any one of the following: 1x zoom ratio, 2x zoom ratio, 3x zoom ratio, etc. The specific information may be determined according to actual use requirements, and the embodiment of the present application does not limit this.

[0041] It can be understood that the above-mentioned shooting focal length may correspond to the zoom ratio. For example, when the above-mentioned zoom ratio is 1x zoom ratio, the shooting focal length corresponding to the 1x zoom ratio may be 12 mm; when the above-mentioned zoom ratio is 2x zoom ratio, the shooting focal length corresponding to the 1x zoom ratio may be 24 mm.

[0042] Optionally, in the embodiment of the present application, the above-mentioned ambient brightness value may be any one of the following: 50 Lux, 200 Lux, 300 Lux, etc. The specific value may be determined according to actual use requirements, and the embodiment of the present application does not limit it.

[0043] Optionally, in an embodiment of the present application, the above-mentioned preview screen information may be screen information in a shooting preview interface.

[0044] Optionally, in the embodiment of the present application, the first shooting mode may be any one of the following: a dual-exposure shooting mode, a zoom shooting mode, or a single-exposure shooting mode, etc. The specific mode may be determined according to actual use requirements, and the embodiment of the present application does not limit this.

[0045] In the embodiment of the present application, the electronic device can capture image frames through the first shooting mode of the image sensor.

[0046] Optionally, in the embodiment of the present application, the image sensor may be a Charged Coupled Device (CCD) sensor or a Complementary Metal Oxide Semiconductor (CMOS) sensor, which may be determined based on actual use requirements and is not limited in the embodiment of the present application.

[0047] Optionally, in the embodiment of the present application, the pixel array mode in the above image sensor can be any one of the following: Bayer mode, 4-in-1 mode or 16-in-1 mode. The specific mode can be determined according to actual use requirements and is not limited in the embodiment of the present application.

[0048] Step 202: When the scene information changes, the electronic device obtains a first quantity.

[0049] In the embodiment of the present application, the above-mentioned first number is the number of image frames captured before the scene information changes in the first shooting mode.

[0050] Optionally, in the embodiment of the present application, the change in the scene information may be at least one of the following: a change in the ambient brightness value, a change in the zoom ratio information, and a change in the preview screen information.

[0051] In an example, the change in the ambient brightness value may be that the ambient brightness value changes from 50 Lux to 100 Lux.

[0052] Optionally, in an embodiment of the present application, the electronic device may collect an ambient brightness value through a brightness sensor.

[0053] In another example, the change in the zoom ratio information may be that the zoom ratio changes from 1x zoom ratio to 2x zoom ratio.

[0054] It should be noted that the above-mentioned change in the zoom ratio information may be based on the user's input to the zoom ratio control, so that the zoom ratio information changes.

[0055] In another example, the change in the preview screen information may be a change in the state of the photographed object in the preview screen. For example, a change from a static state to a moving state; or a change from a moving state to a static state. The specific change may be determined according to actual use requirements and is not limited in the embodiments of the present application.

[0056] In the embodiment of the present application, the electronic device may count the image frames captured before the scene information changes in the first shooting mode to obtain a first number.

[0057] Step 203: When the first number is greater than or equal to a first threshold, the electronic device switches the first shooting mode to a second shooting mode.

[0058] In the embodiment of the present application, the second shooting mode is determined based on the changed scene information.

[0059] Optionally, in the embodiment of the present application, the first threshold may be user-defined.

[0060] Optionally, in an embodiment of the present application, the electronic device may display an image frame quantity setting interface, which includes an input box, and the user may enter a first threshold in the input box so that the electronic device can obtain the first threshold.

[0061] Optionally, in the embodiment of the present application, the above-mentioned input box may be a text input box or a voice input box.

[0062] Exemplarily, the electronic device may display an image frame number setting interface, which includes a text input box, and the user may input 30, ie, the first threshold value, in the text input box, so that the electronic device may obtain the first threshold value.

[0063] Optionally, in the embodiment of the present application, after the electronic device obtains the first quantity, the electronic device may compare the first quantity with a first threshold value to determine whether the first quantity is greater than or equal to the first threshold value.

[0064] In the shooting mode switching method provided in the embodiment of the present application, in the process of capturing image frames through the first shooting mode, scene information can be obtained, and the scene information is used to characterize the shooting scene in the first shooting mode; then, when the scene information changes, a first number is obtained, and the first number is the number of image frames captured in the first shooting mode before the scene information changes; so that when the first number is greater than or equal to the first threshold, the first shooting mode is switched to the second shooting mode, and the second shooting mode is determined based on the changed scene information. In this solution, since the electronic device will switch the shooting mode only when the first number is greater than or equal to the first threshold, even if the electronic device detects that the scene information has changed, it will not immediately switch the shooting mode, thereby avoiding the power consumption problem caused by the electronic device frequently switching the shooting mode due to the change of the scene information; in this way, the time consumed by the electronic device to switch the shooting mode is reduced.

[0065] Optionally, in an embodiment of the present application, the above-mentioned scene information includes ambient brightness information.

[0066] Exemplarily, "the electronic device switches the first shooting mode to the second shooting mode" in the above step 203 can be specifically implemented through the following step 203a.

[0067] Step 203a: When the shooting scene is a preview non-zoom scene, the electronic device switches the first shooting mode to a dual-burst shooting mode.

[0068] In one example, taking the first shooting mode as a single exposure mode, when the ambient brightness value changes from 50 Lux to 100 Lux, and in the single exposure mode, the number of image frames captured before the ambient brightness value changes is greater than or equal to 30, the electronic device can switch the single exposure mode to the double exposure mode.

[0069] Exemplarily, in the dual-exposure mode, when the number of exposures of the image sensor is 1, the shooting scene is executed once, including collecting one frame of exposure image. When the number of exposures of the image sensor is greater than 1, a multi-frame technology is required to "quasi-simultaneously" output multiple frames of images with different exposure times, that is, digital overlap (Digital Overlap, DOL) exposure technology, and then perform image fusion to obtain a high dynamic range (High Dynamic Range, HDR) image. One approach to HDR technology is to perform long exposure, medium exposure and short exposure on the same shooting scene respectively, collect three frames of exposure images, and then fuse these three frames of images to finally obtain one frame of HDR image. HDR technology can also perform two exposures on the same shooting scene to obtain two frames of exposure images for fusion, or perform four exposures to obtain two frames of exposure images for fusion. In the embodiment of the present application, the number of exposures is flexibly selected according to the ambient brightness value of the shooting scene.

[0070] It can be understood that when only the influence of the ambient brightness value on the number of exposures is considered, the lower the ambient brightness level, the more exposures are required, and the higher the ambient brightness level, the fewer exposures are required. The higher the ambient brightness value, the brighter the shooting scene, and the lower the ambient brightness value, the darker the shooting scene. In brighter shooting scenes, it is necessary to reduce the exposure time and select fewer exposure times to ensure image quality. In darker shooting scenes, it is necessary to increase the exposure time and select more exposure times to ensure image quality.

[0071] For example, in the preview unchanged zoom scenario, the switching logic is as follows: Figure 2 As shown. The electronic device can determine whether there are over-bright and over-dark areas in the currently captured image frame. If so, it can consider switching the first shooting mode to the dual exposure mode. The dual exposure mode has short exposure frames and long exposure frames, which can better restore the over-exposed and over-dark areas in the picture to provide users with better preview quality. However, before switching, we need to perform a frequent switching detection. The switching of shooting modes will cause a certain delay, that is, it will cause the frame interval to be widened. If it is frequently switched, it will be perceived by the user, so it must be detected before switching. The logic of frequent switching detection is as follows: if it is determined that there are over-bright and over-dark areas in the currently captured image frame, if there is a large change, the number of image frames before the over-bright and over-dark areas in the currently captured image frame are calculated. If n is greater than or equal to N, that is, the above-mentioned first threshold, the switch is allowed. If n is less than N, that is, the planned switching shooting mode will be sealed until the captured image frame n is greater than or equal to N. If the shooting environment changes during the sealing period and needs to be switched to another new shooting mode, the sealed mode is replaced with the new shooting mode, and the number of image frames that meet the above requirements are waited for before switching.

[0072] Optionally, in an embodiment of the present application, the first shooting mode is a shooting mode of the first camera; and the scene information includes zoom ratio information.

[0073] For example, in combination Figure 1 ,like Figure 3 As shown, the shooting mode switching method provided in the embodiment of the present application also includes the following step 301, and the above step 203 can be specifically implemented by the following step 203a.

[0074] Step 301: When the shooting scene is a preview zoom scene and the shooting focal length changes, the electronic device determines a second camera corresponding to the changed shooting focal length from at least two cameras of the electronic device.

[0075] Optionally, in the embodiment of the present application, the first camera may be any one of the following: a wide-angle camera, a telephoto camera, or a macro camera, etc. The specific camera may be determined according to actual use requirements, and the embodiment of the present application does not limit the camera.

[0076] It can be understood that each of the at least two cameras mentioned above corresponds to a different shooting focal length.

[0077] Optionally, in the embodiment of the present application, the second camera may be any one of the following: a wide-angle camera, a telephoto camera, or a macro camera, etc. The specific camera may be determined according to actual use requirements, and the embodiment of the present application does not limit the camera.

[0078] In one example, when the shooting focal length changes from 12 mm to 24 mm, the electronic device determines a telephoto camera corresponding to the shooting focal length of 24 mm from at least two cameras of the electronic device.

[0079] In another example, when the above-mentioned shooting focal length changes from 12 mm to 6 mm, the electronic device determines a wide-angle camera corresponding to the shooting focal length of 6 mm from at least two cameras of the electronic device.

[0080] Optionally, in an embodiment of the present application, after determining the second camera corresponding to the changed shooting focal length, the electronic device can wake up the second camera.

[0081] It should be noted that the electronic device cannot switch the shooting mode during the process of waking up the second camera, otherwise it will increase the delay of shooting mode switching. Therefore, in the multi-camera zoom scene, the shooting mode switch must wait until the secondary camera is shot, otherwise the shooting mode to be switched will be cached until the second camera is woken up.

[0082] Step 203a: When the first number is greater than or equal to a first threshold, the electronic device switches from the first camera to capturing image frames through the second camera.

[0083] In the embodiment of the present application, the shooting mode of the second camera is the second shooting mode.

[0084] In the embodiment of the present application, when the first number is greater than or equal to the first threshold, the electronic device can use the second camera as the main camera and capture image frames through the second camera.

[0085] Optionally, in an embodiment of the present application, when the shooting focal length changes and the ambient brightness value changes, the electronic device can determine the second camera by the shooting focal length, and superimpose the shooting mode of the second camera with the dual-burst shooting mode to obtain a second shooting mode.

[0086] In one example, taking the first shooting mode as the single exposure mode as an example, when the zoom ratio changes from 1x zoom ratio to 2x zoom ratio, and in the single exposure mode, the number of image frames captured before the zoom ratio changes is greater than or equal to 30, the electronic device can switch the 1x zoom single exposure mode to the 2x zoom single exposure mode.

[0087] In another example, taking the first shooting mode as the single exposure mode as an example, when the zoom ratio changes from 1x zoom ratio to 2x zoom ratio, and the ambient brightness value changes from 50Lux to 100Lux, and in the single exposure mode, the number of image frames captured before the zoom ratio changes and / or the ambient brightness value changes is greater than or equal to 30, the electronic device can switch the 1x zoom single exposure mode to the 2x zoom double exposure mode.

[0088] Exemplarily, in the preview zoom scene, it is necessary to detect the exposure attribute and the cropping attribute. As mentioned above, the exposure attribute is distinguished by judging the light and dark composition in the picture, and the cropping attribute is distinguished by judging the relationship between the current zoom ratio and the basic ratio of the camera. The specific method is as follows: Assuming that the current zoom ratio is m0X, and the basic ratio of the image sensor is m1X, the ratio difference is D = m0X / m1X. If D is greater than or equal to 2, you can consider switching to 1 / 2-Crop mode, and if it is greater than or equal to 4, you can consider switching to 1 / 4-Crop mode. After performing the exposure attribute and cropping attribute detection, it is necessary to further detect whether the secondary camera needs to be awakened and whether the number of image frames meets the requirements. If all conditions are met, switching is allowed.

[0089] Whether the secondary camera needs to be woken up refers to the changes in the camera as the magnification changes in the multi-camera zoom scene. The cameras in electronic devices generally include ultra-wide-angle cameras, wide-angle cameras, and telephoto cameras, with basic magnifications of 0.6X, 1X, and 3X, respectively. When the user zooms from 3.5X to 2X, the display camera will change. When the magnification is greater than or equal to 3X, the display camera is telephoto, and when the magnification is less than 3X, the display camera needs to be switched to wide-angle. Therefore, in a zoom environment, as the user changes the zoom magnification, the display camera will also change, that is, it is necessary to wake up the remaining cameras (also called secondary cameras) in advance to switch to the main camera, such as Figure 4 As shown, the shooting mode can be switched only after the secondary camera wake-up detection and the number of image frames meet the requirements. If it is detected that only the cropping mode is switched, the final switching mode is the superposition of the current basic mode and the cropping mode. If it is detected that the cropping mode and exposure mode are switched, the final switching mode is the superposition of the current basic mode, the exposure mode, and the cropping mode.

[0090] It should be noted that the execution timing of the above step 301 may be after step 202, or before "the electronic device switches the first shooting mode to the second shooting mode" in step 203, which may be determined according to actual usage requirements and is not limited in the embodiments of the present application. Figure 3 As shown, the above step 301 may be performed after the above step 202.

[0091] In an embodiment of the present application, the electronic device can design adaptive shooting mode switching timing and logic according to different shooting environments, which can bring a clearer imaging experience to the user without causing additional perceptible switching delays to the user and reduce time consumption.

[0092] Optionally, in an embodiment of the present application, the above-mentioned scene information includes preview screen information.

[0093] For example, in combination Figure 1 ,like Figure 5 As shown, the above step 202 can be specifically implemented by the following step 202a, and the above step 203 can be specifically implemented by the following step 203b.

[0094] Step 202a: When the state of the photographed object changes, the electronic device obtains a first quantity.

[0095] In the embodiment of the present application, the change in the state of the above-mentioned photographed object may be that the photographed object changes from a static state to a moving state; or, the photographed object changes from a moving state to a static state.

[0096] Step 203b: When the first number is greater than or equal to the first threshold and the state of the photographed object changes from a moving state to a stationary state, the electronic device switches the first photographing mode to a second photographing mode.

[0097] Optionally, in an embodiment of the present application, when the first number is greater than or equal to the first threshold and the state of the photographed object is in motion, the electronic device will not switch the shooting mode.

[0098] Optionally, in an embodiment of the present application, when the first number is greater than or equal to the first threshold and the state of the photographed object changes from a stationary state to a moving state, the electronic device will not switch the shooting mode.

[0099] Optionally, in an embodiment of the present application, when the ambient brightness information changes, and the first number is greater than or equal to the first threshold, and the state of the photographed object changes from a moving state to a stationary state, the electronic device can switch the shooting mode of the main camera to a dual-burst mode.

[0100] Optionally, in an embodiment of the present application, when the ambient brightness information changes, the first number is greater than or equal to a first threshold, the state of the photographed object changes from a moving state to a stationary state, and the zoom ratio information changes, the electronic device can determine the camera corresponding to the zoom ratio information as the main camera and switch the shooting mode to the dual-explosion mode.

[0101] In an embodiment of the present application, the electronic device can change the state of the shooting object in the preview screen information from a moving state to a stationary state, and the electronic device will switch the shooting mode only when the first number is greater than or equal to a first threshold, thereby avoiding the power consumption problem caused by the electronic device frequently switching the shooting mode due to changes in scene information; in this way, the time consumed by the electronic device to switch the shooting mode is reduced.

[0102] Optionally, in the embodiment of the present application, after the above step 202, the shooting mode switching method provided in the embodiment of the present application further includes the following step 401.

[0103] Step 401: When the first number is less than the first threshold, the electronic device continues to capture image frames through the first shooting mode until the first number is greater than or equal to the first threshold, and then switches the first shooting mode to the second shooting mode.

[0104] Optionally, in an embodiment of the present application, when the electronic device continues to capture image frames through the first shooting mode, if the electronic device detects that the scene information changes again, the electronic device may directly switch the first shooting mode to a shooting mode corresponding to the scene information that has changed again when the first number is greater than or equal to the first threshold.

[0105] In one example, when the ambient brightness information changes and the first number is less than the first threshold, the electronic device continues to capture image frames through the first shooting mode. If during the process of capturing image frames through the first shooting mode, the electronic device detects that the zoom ratio information has changed, the electronic device can switch the shooting mode of the camera corresponding to the changed zoom ratio information to the dual-explosion mode when the first number is greater than or equal to the first threshold.

[0106] In another example, when the ambient brightness information changes and the first number is less than the first threshold, the electronic device continues to capture image frames through the first shooting mode. If, during the process of capturing image frames through the first shooting mode, the electronic device detects that the zoom ratio information and the photographed object are in motion, the electronic device may not switch the shooting mode when the first number is greater than or equal to the first threshold, until the electronic device detects that the photographed object changes from a moving state to a stationary state. The electronic device may switch the shooting mode of the camera corresponding to the changed zoom ratio information to the dual-explosion mode.

[0107] Optionally, in an embodiment of the present application, the electronic device can obtain the first image by photographing in a switched shooting mode.

[0108] For example, since a photosensitive element can only capture one color, the data format output by the image sensor is generally in the Bayer format, the 4-in-1 format, or the 16-in-1 format. Before being sent to the display for display, the Bayer format data needs to be demosaiced and converted into RGB or YUV format to obtain the first image; and the 4-in-1 format and the 16-in-1 format need to be remosaiced and converted into the Bayer format before converting to the RGB / YUV format to obtain the first image.

[0109] Exemplarily, the photosensitive element may be a pixel.

[0110] In an embodiment of the present application, when the first number is less than the first threshold, the electronic device continues to capture image frames through the first shooting mode until the first number is greater than or equal to the first threshold, and then switches the first shooting mode to the second shooting mode, thereby avoiding power consumption problems caused by the electronic device frequently switching shooting modes due to changes in scene information; thus, the time consumed by the electronic device to switch shooting modes is reduced.

[0111] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0112] It should be noted that the shooting mode switching method provided in the embodiment of the present application can be executed by a shooting mode switching device. In the embodiment of the present application, the shooting mode switching device executing the shooting mode switching method is taken as an example to illustrate the shooting mode switching device provided in the embodiment of the present application.

[0113] Figure 6 FIG. 1 is a schematic diagram showing a possible structure of a shooting mode switching device involved in an embodiment of the present application. Figure 6As shown, the shooting mode switching device 70 may include: an acquisition module 71 and a switching module 72 .

[0114] The acquisition module 71 is used to acquire scene information in the process of acquiring image frames through the first shooting mode, and the scene information is used to characterize the shooting scene in the first shooting mode; and when the scene information changes, acquire a first number, and the first number is the number of image frames acquired before the scene information changes in the first shooting mode. The switching module 72 is used to switch the first shooting mode to the second shooting mode when the first number acquired by the acquisition module 71 is greater than or equal to the first threshold, and the second shooting mode is determined based on the changed scene information.

[0115] In one possible implementation, the scene information includes at least one of the following: ambient brightness information, zoom ratio information, and preview screen information; wherein the ambient brightness information represents the ambient brightness value in the first shooting mode; the zoom ratio information represents the shooting focal length in the first shooting mode; and the preview screen information represents the shooting object in the first shooting mode.

[0116] In a possible implementation, the scene information includes ambient brightness information; the switching module 72 is specifically configured to switch the first shooting mode to the dual-explosion shooting mode when the shooting scene is a preview non-zoom scene.

[0117] In a possible implementation, the first shooting mode is a shooting mode of a first camera; the scene information includes zoom ratio information; and the shooting mode switching device 70 provided in the embodiment of the present application further includes a determination module. The determination module is used to determine a second camera corresponding to the changed shooting focal length from at least two cameras of the electronic device when the shooting scene is a preview zoom scene and the shooting focal length changes. The switching module 72 is also used to switch from the first camera to the second camera determined by the determination module to capture image frames, and the shooting mode of the second camera is the second shooting mode.

[0118] In a possible implementation, the scene information includes preview screen information; the acquisition module 71 is specifically configured to acquire the first number when the state of the photographed object changes; and the switching module 72 is specifically configured to switch the first shooting mode to the second shooting mode when the first number is greater than or equal to the first threshold and the state of the photographed object changes from a moving state to a stationary state.

[0119] In a possible implementation, the switching module 72 is also used to, after acquiring the first number, continue to capture image frames through the first shooting mode when the first number is less than the first threshold, and switch the first shooting mode to the second shooting mode when the first number is greater than or equal to the first threshold.

[0120] The embodiment of the present application provides a shooting mode switching device. In the process of capturing image frames through a first shooting mode, the shooting mode switching device can obtain scene information, and the scene information is used to characterize the shooting scene in the first shooting mode; then, when the scene information changes, a first number is obtained, and the first number is the number of image frames captured before the scene information changes in the first shooting mode; so that when the first number is greater than or equal to a first threshold, the first shooting mode is switched to a second shooting mode, and the second shooting mode is determined based on the changed scene information. In this solution, since the shooting mode is switched only when the first number is greater than or equal to the first threshold, even if the shooting mode switching device detects that the scene information has changed, the shooting mode will not be switched immediately, thereby avoiding the power consumption problem caused by the shooting mode switching device frequently switching the shooting mode due to the change of the scene information; in this way, the time consumed by the shooting mode switching device to switch the shooting mode is reduced.

[0121] The shooting mode switching device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0122] The shooting mode switching device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0123] The shooting mode switching device provided in the embodiment of the present application can implement each process implemented in the above embodiment, and will not be described again here to avoid repetition.

[0124] Alternatively, if Figure 7 As shown, an embodiment of the present application further provides an electronic device 90, including a processor 91 and a memory 92, wherein the memory 92 stores programs or instructions that can be executed on the processor 91, and when the program or instructions are executed by the processor 91, the various steps of the above-mentioned shooting mode switching method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0125] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0126] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0127] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0128] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0129] Among them, the processor 110 is used to obtain scene information during the process of capturing image frames through the first shooting mode, and the scene information is used to characterize the shooting scene in the first shooting mode; when the scene information changes, obtain a first number, and the first number is the number of image frames captured in the first shooting mode before the scene information changes; when the first number is greater than or equal to a first threshold, switch the first shooting mode to a second shooting mode, and the second shooting mode is determined based on the changed scene information.

[0130] Optionally, in an embodiment of the present application, the scene information includes ambient brightness information; the processor 110 is specifically configured to switch the first shooting mode to the dual-burst shooting mode when the shooting scene is a preview non-zoom scene.

[0131] Optionally, in the embodiment of the present application, the first shooting mode is a shooting mode of the first camera; the scene information includes zoom ratio information; the processor 110 is further used to determine a second camera corresponding to the changed shooting focal length from at least two cameras of the electronic device when the shooting scene is a preview zoom scene and the shooting focal length changes. The processor 110 is specifically used to switch from the first camera to capturing image frames through the second camera, and the shooting mode of the second camera is the second shooting mode.

[0132] Optionally, in an embodiment of the present application, the scene information includes preview screen information; the processor 110 is specifically used to obtain a first quantity when the state of the photographed object changes; and when the first quantity is greater than or equal to a first threshold and the state of the photographed object changes from a moving state to a stationary state, the first shooting mode is switched to a second shooting mode.

[0133] Optionally, in an embodiment of the present application, the above-mentioned processor 110 is also used to, after obtaining the first number, continue to acquire image frames through the first shooting mode when the first number is less than a first threshold, and switch the first shooting mode to the second shooting mode when the first number is greater than or equal to the first threshold.

[0134] The embodiment of the present application provides an electronic device, which can obtain scene information in the process of collecting image frames through a first shooting mode, and the scene information is used to characterize the shooting scene in the first shooting mode; then, when the scene information changes, a first number is obtained, and the first number is the number of image frames collected in the first shooting mode before the scene information changes; so that when the first number is greater than or equal to a first threshold, the first shooting mode is switched to a second shooting mode, and the second shooting mode is determined based on the changed scene information. In this solution, since the electronic device will switch the shooting mode only when the first number is greater than or equal to the first threshold, even if the electronic device detects that the scene information has changed, it will not immediately switch the shooting mode, thereby avoiding the power consumption problem caused by the electronic device frequently switching the shooting mode due to the change of the scene information; in this way, the time consumed by the electronic device to switch the shooting mode is reduced.

[0135] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0136] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.

[0137] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0138] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0139] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0140] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0141] 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 computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0142] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0143] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0144] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned shooting mode switching method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0145] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0147] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A shooting mode switching method, characterized in that: The method comprises: In the process of acquiring image frames through the first shooting mode, scene information is acquired, where the scene information is used to characterize the shooting scene in the first shooting mode; When the scene information changes, acquiring a first number, where the first number is the number of image frames captured before the scene information changes in the first shooting mode; When the first number is greater than or equal to a first threshold, the first shooting mode is switched to a second shooting mode, and the second shooting mode is determined based on the changed scene information.

2. The method according to claim 1, characterized in that The scene information includes at least one of the following: ambient brightness information, zoom ratio information, and preview screen information; The environment brightness information represents the environment brightness value in the first shooting mode; the zoom ratio information represents the shooting focal length in the first shooting mode; and the preview screen information represents the shooting object in the first shooting mode.

3. The method according to claim 2, characterized in that The scene information includes the ambient brightness information; The switching the first shooting mode to the second shooting mode includes: When the shooting scene is a preview non-zoom scene, the first shooting mode is switched to a dual-explosion shooting mode.

4. The method according to claim 2, characterized in that: The first shooting mode is a shooting mode of the first camera; the scene information includes the zoom ratio information; The method further comprises: When the shooting scene is a preview zoom scene and the shooting focal length changes, determining a second camera corresponding to the changed shooting focal length from at least two cameras of the electronic device; The switching the first shooting mode to the second shooting mode includes: The first camera is switched to capturing image frames through the second camera, and the shooting mode of the second camera is the second shooting mode.

5. The method according to claim 2, characterized in that: The scene information includes the preview screen information; When the scene information changes, obtaining the first quantity includes: When the state of the photographed object changes, acquiring the first number; The step of switching the first shooting mode to a second shooting mode when the first number is greater than or equal to a first threshold comprises: When the first number is greater than or equal to the first threshold and the state of the photographed object changes from a moving state to a stationary state, the first photographing mode is switched to the second photographing mode.

6. The method according to any one of claims 1 to 5, characterized in that After obtaining the first quantity, the method further includes: When the first number is less than the first threshold, continue to acquire image frames using the first shooting mode until the first number is greater than or equal to the first threshold, and then switch the first shooting mode to the second shooting mode.

7. A shooting mode switching device, characterized in that: The shooting mode switching device comprises: an acquisition module and a switching module; The acquisition module is configured to acquire scene information during the process of acquiring image frames through the first shooting mode, wherein the scene information is used to characterize the shooting scene under the first shooting mode; and to acquire a first number when the scene information changes, wherein the first number is the number of image frames acquired before the scene information changes under the first shooting mode; The switching module is used to switch the first shooting mode to a second shooting mode when the first number acquired by the acquisition module is greater than or equal to a first threshold, and the second shooting mode is determined based on the changed scene information.

8. The device according to claim 7, characterized in that The scene information includes at least one of the following: ambient brightness information, zoom ratio information, and preview screen information; The environment brightness information represents the environment brightness value in the first shooting mode; the zoom ratio information represents the shooting focal length in the first shooting mode; and the preview screen information represents the shooting object in the first shooting mode.

9. The device according to claim 8, characterized in that The scene information includes the ambient brightness information; a switching module is specifically used to switch the first shooting mode to the dual-explosion shooting mode when the shooting scene is a preview non-zoom scene.

10. The device according to claim 7, characterized in that The first shooting mode is a shooting mode of the first camera; the scene information includes the zoom ratio information; the shooting mode switching device also includes a determination module; The determining module is used to determine, when the shooting scene is a preview zoom scene and the shooting focal length changes, a second camera corresponding to the changed shooting focal length from at least two cameras of the electronic device; The switching module is further used to switch from the first camera to the second camera determined by the determining module to capture image frames, and the shooting mode of the second camera is the second shooting mode.

11. The device according to claim 7, characterized in that The scene information includes the preview screen information; The acquisition module is specifically configured to acquire the first quantity when the state of the photographed object changes; The switching module is specifically configured to switch the first shooting mode to the second shooting mode when the first number is greater than or equal to the first threshold and the state of the photographed object changes from a moving state to a stationary state.

12. The device according to any one of claims 7 to 11, characterized in that The switching module is also used to, after obtaining the first number, continue to capture image frames through the first shooting mode when the first number is less than the first threshold, and switch the first shooting mode to the second shooting mode when the first number is greater than or equal to the first threshold.

13. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the shooting mode switching method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Camera control method and device and electronic equipment

    CN111601040A

  • Camera switching method and device, terminal and computer storage medium

    CN111726528A

  • Shooting control method and device, electronic equipment and storage medium

    CN115802155A

  • Video shooting method and electronic equipment

    CN117692783A

  • Camera

    JP2010237421A