Photographing control method of electronic equipment, electronic equipment and computer storage medium
By switching to the main camera and enabling its intelligent zoom function in electronic devices, when the jitter parameter exceeds the threshold value and the current camera is a telephoto camera, the problem of low image quality shooting at high magnification in severe jitter scenes is solved, and higher quality image acquisition is achieved.
Patent Information
- Application Number
- CN202311122145.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2025-03-07
AI Technical Summary
In severe jitter scenarios, when electronic devices use telephoto cameras to shoot at high magnification, the image quality is low and the adaptation effect is poor.
When the jitter parameter of the electronic device exceeds the first threshold and the current shooting camera is a telephoto camera, it is determined whether the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification. If it is covered, switch the camera as the main camera and enable its smart zoom function to shoot.
By switching to the main camera and enabling its smart zoom function, it can ensure consistent magnification of the image, while reducing the impact of jitter on image quality, improving the clarity and quality of the image.
Smart Images

Figure CN119583977A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of imaging technology, and in particular to a method for controlling a photographing of an electronic device, the electronic device, and a computer storage medium. Background Art
[0002] With the development of camera hardware and algorithms in electronic devices such as mobile phones, current electronic devices usually have wide-angle cameras (main cameras), ultra-wide-angle cameras, and telephoto cameras. Moreover, the photo-taking strategy of most electronic devices is: when the shooting ratio (i.e., magnification) S is less than 1, the ultra-wide-angle camera is called to shoot; when the shooting ratio S satisfies 1≤S<n, the wide-angle camera is called to shoot; when the shooting ratio S≥n, the telephoto camera is called to shoot.
[0003] Among the three cameras currently under development, the wide-angle camera (main camera) is mainly used for low-magnification image capture, and the telephoto camera is used for high-magnification image capture. The change in the magnification range triggers the camera switch, that is, the camera switch is not related to the parameters of the current shooting scene. Therefore, when the electronic device is in some specific scenes, the shooting strategy of the electronic device is not related to the current shooting scene. This irrelevance will make the high-magnification shooting and the scene with severe shaking extremely poorly adapted. For example, when shooting at a high magnification in a scene with severe shaking, the use of a telephoto lens will result in lower quality pictures. Summary of the invention
[0004] Embodiments of the present application provide a method for controlling a photographing of an electronic device, an electronic device, and a computer storage medium.
[0005] The photo-taking control method of the electronic device of the embodiment of the present application includes: when the jitter parameter of the electronic device exceeds a first threshold value and the current shooting camera is a telephoto camera, determining whether the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification; when the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification, switching the current shooting camera to the main camera; and enabling the smart zoom function of the main camera for shooting.
[0006] In some embodiments, the photographing control method further includes: when the jitter parameter of the electronic device does not exceed the first threshold, maintaining the current shooting camera for photographing.
[0007] In some embodiments, the photo control method further includes: when the jitter parameter of the electronic device exceeds the first threshold and the current shooting camera is not a telephoto camera, keeping the current shooting camera for shooting.
[0008] In some embodiments, the photo control method further includes: when the shooting magnification of the smart zoom function of the main camera does not cover the current shooting magnification, maintaining the current shooting strategy of the current shooting camera for shooting.
[0009] In some embodiments, the photo control method also includes: when the shooting magnification of the smart zoom function of the main camera does not cover the current shooting magnification, maintaining the current shooting strategy of the current shooting camera to shoot to output a first image, and turning on the main camera and enabling the smart zoom function of the main camera to shoot and perform image post-processing to output a second image; and fusing the first image and the second image to obtain a fused image.
[0010] In some embodiments, the photographing control method further includes: when any camera in the electronic device is turned on, acquiring a jitter parameter detected by a jitter detection module in real time.
[0011] The electronic device of the embodiment of the present application includes multiple cameras and one or more processors. The multiple cameras include a main camera and a telephoto camera. The one or more processors are used to: when the jitter parameter of the electronic device exceeds the first threshold and the current shooting camera is the telephoto camera, determine whether the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification; when the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification, switch the current shooting camera to the main camera; and enable the smart zoom function of the main camera for shooting.
[0012] In some embodiments, one or more of the processors are further used to: when the jitter parameter of the electronic device does not exceed the first threshold, control the current shooting camera to keep shooting.
[0013] In some embodiments, one or more of the processors are further used to: when a jitter parameter of the electronic device exceeds the first threshold and the current shooting camera is not a telephoto camera, control the current shooting camera to keep shooting.
[0014] In some embodiments, one or more of the processors are further used to: when the shooting magnification of the smart zoom function of the main camera does not cover the current shooting magnification, control the current shooting camera to maintain the current shooting strategy for shooting.
[0015] In some embodiments, one or more of the processors are also used to: when the shooting magnification of the smart zoom function of the main camera does not cover the current shooting magnification, control the current shooting strategy of the current shooting camera to shoot to output a first image, and turn on the main camera and enable the smart zoom function of the main camera to shoot and perform image post-processing to output a second image; and fuse the first image and the second image to obtain a fused image.
[0016] In some embodiments, the electronic device also includes a jitter detection module, which is used to detect the jitter of the electronic device to output jitter parameters; one or more of the processors are also used to: when any camera in the electronic device is turned on, obtain the jitter parameters detected by the jitter detection module in real time.
[0017] The computer storage medium of the embodiment of the present application stores a computer program, and when the computer program is executed by at least one processor, the photographing control method described in any of the above embodiments of the claims is implemented.
[0018] The electronic device photography control method, electronic device and computer storage medium of the present application, when the jitter parameter of the electronic device exceeds the first threshold value, and the current shooting camera is a telephoto camera, and the shooting magnification of the main camera's smart zoom function covers the current shooting magnification, switches the current shooting camera to the main camera; and enables the main camera's smart zoom function to shoot. Compared with shooting with a telephoto camera, shooting with the main camera's smart zoom function at this time can, on the one hand, ensure that the captured image has the same magnification; on the other hand, it can reduce the impact of jitter on the captured image, ensuring that the captured image is clearer and has a higher image quality.
[0019] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0021] Figure 1 is a flow chart of a method for controlling a photographing device of an electronic device according to some embodiments of the present application;
[0022] Figure 2 is a schematic diagram of the structure of an electronic device in some embodiments of the present application;
[0023] Figure 3 is a flow chart of a method for controlling a photographing device of an electronic device according to some embodiments of the present application;
[0024] Figure 4 is a flow chart of a method for controlling a photographing device of an electronic device according to some embodiments of the present application;
[0025] Figure 5 It is a connection diagram between a computer storage medium and a processor in some embodiments of the present application.
[0026] Description of main component symbols:
[0027] Electronic device 100, main camera 10, ultra-wide-angle camera 20, telephoto camera 30, processor 40, shake detection module 50; computer storage medium 200. DETAILED DESCRIPTION
[0028] The following is a further description of the embodiments of the present application in conjunction with the accompanying drawings. The same or similar reference numerals in the accompanying drawings represent the same or similar elements or elements with the same or similar functions from beginning to end. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the present application.
[0029] Among the three cameras currently in electronic devices, the wide-angle camera (main camera) is mainly used for low-magnification image capture, and the telephoto camera is used for high-magnification image capture. The change in the magnification range triggers the switching of the camera, that is, the switching of the camera is unrelated to the parameters of the current shooting scene. Therefore, when the electronic device is in some specific scenes, the shooting strategy of the electronic device is unrelated to the current shooting scene. This unrelatedness will make the high-magnification shooting and the scene with severe shaking extremely poorly adapted. For example, when shooting at a high magnification in a scene with severe shaking, the use of a telephoto lens will result in lower quality pictures. In order to solve this problem, the present application provides a method for controlling the camera of an electronic device ( Figure 1 Display) and electronic equipment ( Figure 2 Show).
[0030] See also Figure 1 , the present application provides a method for controlling a camera of an electronic device, including:
[0031] 03: When the jitter parameter of the electronic device 100 exceeds the first threshold and the current shooting camera is the telephoto camera 30, determine whether the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification;
[0032] 04: When the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification, switching the current shooting camera to the main camera 10; and
[0033] 05: Enable the smart zoom function of the main camera 10 to shoot.
[0034] See also Figure 2 , the above-mentioned photo control method can be applied to the electronic device 100. Specifically, the electronic device 100 includes multiple cameras and one or more processors 40. The multiple cameras include a main camera 10 and a telephoto camera 30. The one or more processors 40 are used to: when the jitter parameter of the electronic device 100 exceeds the first threshold and the current shooting camera is the telephoto camera 30, determine whether the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification; when the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification, switch the current shooting camera to the main camera 10; and enable the smart zoom function of the main camera 10 to shoot.
[0035] Among them, the electronic device 100 can be a device with a shooting function such as a mobile phone, a tablet computer, a camera, a personal digital assistant, a wearable device, an intelligent robot, an intelligent vehicle, etc., wherein the wearable device includes a smart bracelet, a smart watch, and smart glasses. The multiple cameras in the electronic device 100 can also include an ultra-wide-angle camera 20, etc. The ultra-wide-angle camera 20 can shoot images in scenes with a wide field of view. The field of view is usually above 90 degrees, the observation range is large, and the image near will be deformed. The shooting magnification satisfies: S < 1. The main camera 10 is generally a wide-angle camera, and the field of view of the image it shoots is smaller than the field of view of the image shot by the ultra-wide-angle camera 20, and the shooting magnification satisfies: 1 ≤ S < n. The field of view of the image shot by the telephoto camera 30 is smaller than the field of view of the image shot by the main camera 10. The field of view is usually within 20 degrees, and the focal length can reach tens of millimeters or hundreds of millimeters. The shooting magnification satisfies: S ≥ n. In the present application, the "shooting ratio" (S) of a camera is the "magnification ratio" of the lens in the camera. When an object is at twice the focal length of the optical system in the camera, the image formed is the same size as the object; when the object distance is greater than twice the focal length, the image is reduced; when the object distance is between one focal length and two focal lengths, the image is enlarged. The reduction and enlargement here are both referred to as "magnification ratios". For example, 3X represents a 3x zoom (S=3), which means that the captured scene is magnified 3 times.
[0036] The jitter parameter is a parameter index used to measure the degree of jitter. Specifically, in some embodiments, the jitter parameter can be a parameter value detected by the jitter detection module 50. In one example, the jitter detection module 50 is a gyroscope, and the gyroscope can detect the angle (posture), angular velocity or angular acceleration of the electronic device 100. When the gyroscope outputs angular acceleration, the jitter parameter is angular acceleration. At this time, the first threshold is an angular acceleration threshold. When the detected angular acceleration exceeds the angular acceleration threshold, it indicates that the electronic device 100 is shaking violently. If the telephoto camera 30 is used to shoot at this time, the image quality will be very blurred. In another example, the jitter detection module 50 is an accelerometer, and the accelerometer can detect the acceleration of the electronic device 100. At this time, the jitter parameter is acceleration, and the first threshold is an acceleration threshold. When the detected acceleration exceeds the acceleration threshold, it indicates that the electronic device 100 is shaking violently. If the telephoto camera 30 is used to shoot at this time, the image quality will also be very blurred. In another example, the shake detection module 50 is an inertial measurement unit integrated with a gyroscope and an accelerometer. In this case, the shake parameters may include angular acceleration and / or acceleration. When the shake parameters include only angular acceleration or only acceleration, the first threshold is the angular acceleration threshold and the acceleration threshold as described above, and the method for determining severe shake is also the same as before, which will not be repeated here; when the shake parameters include both angular acceleration and acceleration, the first threshold also includes both angular acceleration threshold and acceleration threshold. Only when the detected angular acceleration exceeds the angular acceleration threshold and the detected acceleration exceeds the acceleration threshold, it indicates that the electronic device 100 shakes violently. If the telephoto camera 30 is used to shoot at this time, the image quality of the captured image will also be very blurred.
[0037] In addition, it should be noted that the angular acceleration threshold and the acceleration threshold are both empirical values obtained through calibration before the electronic device 100 leaves the factory, and are known values. The known angular acceleration threshold and the known acceleration threshold can be manually modified during the subsequent use of the electronic device 100 or self-calibrated by the processor 40 according to historical data.
[0038] The smart zoom (IZOOM) function is an enhanced digital zoom technology. In this application, the smart zoom function is an enhanced function of the main camera 10. Generally, it needs to be manually selected to be turned on before the function can be applied during the use of the main camera 10. If it is not manually selected to be turned on, the function will not be executed during the use of the main camera 10. The image quality of zoom photography taken by turning on the smart zoom function is better than that of ordinary digital zoom photography. Take 2x ZOOM as an example: for example, when the IZOOM function is not turned on, the main camera 10 is used to take pictures. The main camera 10 takes a 4000*3000 image, and the subsequent processor 40 cuts 2 times and outputs a 2x magnified picture. After turning on the IZOOM function, the main camera 10 can take an 8000*6000 image, and then after cutting part of the main camera 10, a 4000*3000 photo magnified 2 times can be directly obtained from the main camera 10. Therefore, the image obtained after turning on the IZOOM function is clearer than the image obtained without turning on the IZOOM function.
[0039] Generally, in the actual photo-taking process, the 15mm focal length (0.6X) position is photographed by the ultra-wide-angle camera 20, while the ultra-wide-angle camera 30 performs "digital zoom" between 0.7X and 0.9X; the 28mm focal length (1X) is photographed by the main camera 10, and the main camera 10 performs "digital zoom" between 1.1X and 4.9X; when we zoom in to 5X mode, it will automatically switch to the telephoto camera 30 to take pictures equivalent to 5X optical zoom, and 5.1X to 10X will be hybrid zoomed by the telephoto camera 30, and 10.1X to 50X will let the telephoto camera 30 perform "digital zoom", ultimately realizing a "baton" type zoom process. In the present application, the shooting magnification of the smart zoom function of the main camera 10 satisfies: S>2, that is, in 2X mode, the main camera 10 is generally used to take pictures, but the smart zoom function of the main camera 10 is not enabled. In the greater than 2X mode, the smart zoom function of the main camera 10 can be enabled.
[0040] Assuming that the jitter parameter of the electronic device 100 exceeds the first threshold, the shooting magnification of the smart zoom function of the main camera 10 satisfies: 2<S≤10, and the current shooting camera is the telephoto camera 30 in 6X mode, that is, the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification, then the processor 40 will actively control the current shooting camera (telephoto camera 30) to switch to the main camera 10, and enable the smart zoom function of the main camera 10 for shooting. Compared with shooting with the telephoto camera 30, shooting with the smart zoom function of the main camera 10 at this time can ensure that the captured image has the same magnification on the one hand; on the other hand, it can reduce the impact of jitter on the captured image, ensuring that the captured image is clearer.
[0041] In addition, compared to the traditional method that the main camera 10 can only use the smart zoom function when the smart zoom function of the main camera 10 is manually selected, which makes the smart zoom function become a redundant design, the processor 40 of the present application fully analyzes the current shooting scene - the shaking shooting scene, and actively enables the smart zoom function of the main camera 10 in the shaking shooting scene, rationally utilizes the resources of the main camera 10 in the electronic device 100, and avoids the waste of inherent resources. Further, compared to always turning on the smart zoom function of the main camera 10 to take pictures, the present application only turns on the smart zoom function of the main camera 10 when specific conditions are met (the shaking parameter of the electronic device 100 exceeds the first threshold, the current shooting camera is a telephoto camera, and the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification), which can save the energy consumption of the electronic device 100.
[0042] See also Figure 3 In some embodiments, the photo taking control method of the electronic device further includes:
[0043] 01: Turn on any camera in the electronic device 100; and
[0044] 02: When any camera in the electronic device 100 is turned on, the jitter parameters detected by the jitter detection module 50 are obtained in real time.
[0045] At this time, the electronic device 100 also includes a jitter detection module 50, which is used to detect the jitter of the electronic device 100 to output jitter parameters; one or more processors 40 are also used to: control the activation of any camera in the electronic device 100, and when any camera in the electronic device 100 is activated, obtain the jitter parameters detected by the jitter detection module 50 in real time.
[0046] The processor 40 turns on any camera in the electronic device 100, which may be any one of the main camera 10, the ultra-wide-angle camera 20, and the telephoto camera 30. Of course, if the electronic device 100 may also include more cameras, for example, a macro camera or a micro camera, then the processor 40 may also turn on the macro camera or the micro camera. When any camera in the electronic device 100 is turned on, the processor 40 will obtain the jitter parameters detected by the jitter detection module 50 in real time to provide a basis for performing anti-shake or subsequent image processing for the turned-on camera. As mentioned above, the jitter detection module 50 may be a gyroscope, an accelerometer, or an inertial measurement unit integrating a gyroscope and an accelerometer, etc. The jitter parameters may be angular acceleration and / or acceleration.
[0047] Please continue reading Figure 3 In some embodiments, the photo taking control method of the electronic device further includes:
[0048] 06: When the jitter parameter of the electronic device 100 does not exceed the first threshold, keep using the current camera to shoot.
[0049] Please combine Figure 2 Correspondingly, the one or more processors 40 are also used to: when the jitter parameter of the electronic device 100 does not exceed the first threshold, control the current shooting camera to keep shooting.
[0050] When the jitter parameter of the electronic device 100 does not exceed the first threshold, it indicates that the jitter of the electronic device 100 is not severe. If the telephoto camera 30 is currently used for shooting at this time, the image quality of the captured image is also relatively clear and will not be affected by slight jitter. There is no need to switch the camera, and the telephoto camera 30 can still be used for shooting. Since the telephoto camera 30 is the most affected by the jitter among the main camera 10, the ultra-wide-angle camera 20 and the telephoto camera 30, the jitter when the jitter parameter of the electronic device 100 does not exceed the first threshold has no substantial impact on the shooting of the telephoto camera 30. Therefore, no matter which other camera is used for shooting at this time, the current jitter will not have a substantial impact on the captured image, that is, the image captured by the main camera 10 and the ultra-wide-angle camera 20 is also clear at this time, so there is no need to switch the camera, and the currently activated camera can still be used for shooting. For example, if the main camera 10 is currently activated, the main camera 10 is kept for shooting; if the ultra-wide-angle camera 20 is currently activated, the ultra-wide-angle camera 20 is kept for shooting. In this way, frequent switching can be avoided, the power consumption of the electronic device 100 during shooting can be reduced, and the shooting speed can be improved, which can bring users an excellent experience of fast shooting speed.
[0051] See also Figure 3 In some embodiments, the photo taking control method of the electronic device further includes:
[0052] When the jitter parameter of the electronic device 100 exceeds the first threshold and the current shooting camera is not the telephoto camera 30, the current shooting camera is kept for shooting.
[0053] Please combine Figure 2 Correspondingly, the one or more processors 40 are also used to: when the jitter parameter of the electronic device 100 exceeds the first threshold and the current shooting camera is not the telephoto camera 30, control the current shooting camera to keep shooting.
[0054] As mentioned above, when the jitter parameter of the electronic device 100 exceeds the first threshold, it indicates that the electronic device 100 is shaking violently. If the telephoto camera 30 is currently used for shooting at this time, the image quality will be very blurred and the camera needs to be switched; if at this time, the telephoto camera 30 is not currently used, for example, the main camera 10 or the ultra-wide-angle camera 20 is used, since the main camera 10 and the ultra-wide-angle camera 20 are less affected by the jitter, the jitter at this time has no substantial impact on the shooting of the main camera 10 or the ultra-wide-angle camera 20, then the image obtained by shooting with the main camera 10 or the ultra-wide-angle camera 20 at this time is also clear, so there is no need to switch the camera, and the currently activated camera (main camera 10 or ultra-wide-angle camera 20) can still be used for shooting. For example, if the main camera 10 is currently activated, the main camera 10 is kept for shooting; if the ultra-wide-angle camera 20 is currently activated, the ultra-wide-angle camera 20 is kept for shooting. In this way, frequent switching can be avoided, the power consumption of the electronic device 100 during shooting can be reduced, and the shooting speed can be improved, which can bring users an excellent experience of fast shooting speed.
[0055] Please still refer to Figure 3 In some embodiments, the photo taking control method of the electronic device further includes:
[0056] When the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification, the current shooting strategy of the current shooting camera is maintained for shooting.
[0057] Please combine Figure 2 Correspondingly, one or more processors 40 are also used to: when the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification, control to maintain the current shooting strategy of the current shooting camera for shooting.
[0058] In the case where the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification, it indicates that the current shooting camera cannot be switched from the telephoto camera 30 to the main camera 10. Specifically, if the current shooting camera is the telephoto camera 30, and the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification, the processor 40 controls the current shooting strategy of the telephoto camera 30 to shoot. For example, if the shooting magnification of the smart zoom function of the main camera 10 satisfies: 2<S≤10, and the current shooting camera is the telephoto camera 30 in 11X mode, that is, the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification 11X, the processor 40 controls the telephoto camera 30 in 11X mode to shoot.
[0059] See also Figure 4 In some embodiments, the photo taking control method of the electronic device further includes:
[0060] When the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification,
[0061] 06: Maintain the current shooting strategy of the current shooting camera to shoot and output the first image;
[0062] 07: Turn on the main camera 10;
[0063] 08: enabling the smart zoom function of the main camera 10 to shoot and perform image post-processing to output a second image;
[0064] 09: Fusing the first image and the second image to obtain a fused image.
[0065] Please combine Figure 2 Correspondingly, one or more processors 40 are also used to: when the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification, control the current shooting strategy of the current shooting camera 10 to shoot to output a first image, and turn on the main camera and enable the smart zoom function of the main camera 10 to shoot and perform image post-processing to output a second image; and fuse the first image and the second image to obtain a fused image.
[0066] For high-magnification shooting, some of the magnifications cannot be covered by the smart zoom function of the main camera 10. Therefore, when the telephoto camera 30 is used to shoot high-shake scenes and ultra-high-magnification scenes, the first image obtained is still very blurry. Based on the dynamic switching strategy in this application, while using the telephoto camera 30 to shoot ultra-high-magnification images, the main camera 10 can be turned on and the smart zoom function of the main camera 10 can be enabled. The image shot by the smart zoom function of the main camera 10 is post-processed (for example, cropped) and then output as a second image. The second image and the first image shot by the telephoto camera 30 are dual-shot fused, and are compatible with the anti-shake strategy and high-definition image shooting, ensuring that the final fused image is clearer.
[0067] See also Figure 5 The present application provides a computer storage medium 200, which stores a computer program 210. When the computer program 210 is executed by at least one processor 40, the photo taking control method described in any of the above embodiments is implemented.
[0068] For example, when the computer program 210 is executed by the processor 40, the following photographing control method is implemented:
[0069] 03: When the jitter parameter of the electronic device 100 exceeds the first threshold and the current shooting camera is the telephoto camera 30, determine whether the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification;
[0070] 04: When the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification, switching the current shooting camera to the main camera 10; and
[0071] 05: Enable the smart zoom function of the main camera 10 to shoot.
[0072] For another example, when the program 210 is executed by the processor 40, the following photo taking control method is implemented:
[0073] 01: Turn on any camera in the electronic device 100; and
[0074] 02: When any camera in the electronic device 100 is turned on, the jitter parameters detected by the jitter detection module 50 are obtained in real time.
[0075] For example, when the program 210 is executed by the processor 40, the following photo taking control method can also be implemented:
[0076] 06: When the jitter parameter of the electronic device 100 does not exceed the first threshold, keep using the current camera to shoot.
[0077] When the jitter parameter of the electronic device 100 exceeds the first threshold and the current shooting camera is not the telephoto camera 30, keep shooting with the current shooting camera;
[0078] When the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification, the current shooting strategy of the current shooting camera is maintained for shooting;
[0079] When the shooting magnification of the smart zoom function of the main camera 10 does not cover the current shooting magnification,
[0080] 06: Maintain the current shooting strategy of the current shooting camera to shoot and output the first image;
[0081] 07: Turn on the main camera 10;
[0082] 08: enabling the smart zoom function of the main camera 10 to shoot and perform image post-processing to output a second image;
[0083] 09: Fusing the first image and the second image to obtain a fused image.
[0084] In the computer storage medium 200 of the present application, when the jitter parameter of the electronic device 100 exceeds the first threshold value, and the current shooting camera is the telephoto camera 30, and the shooting magnification of the smart zoom function of the main camera 10 covers the current shooting magnification, the current shooting camera is switched to the main camera 10; and the smart zoom function of the main camera 10 is enabled for shooting. Compared with shooting with the telephoto camera 30, shooting with the smart zoom function of the main camera 10 at this time can ensure that the captured image has the same magnification on the one hand; on the other hand, it can reduce the impact of jitter on the captured image, ensuring that the captured image is clearer and has a higher image quality.
[0085] In addition, it should be noted that the photo-taking control method of the electronic device in the present application is not only applicable to the ordinary preview and video modes in the electronic device 100 and the computer storage medium 200. At this time, the processor 40 can obtain the jitter parameters detected by the jitter detection module 50 in real time, and analyze whether the jitter parameters exceed the first threshold, and then execute one or more of the methods in the above 03:, 04, 05, 06, 07, 08 and 09.
[0086] Of course, the electronic device photography control method in the present application can also be applied to ordinary photography modes, such as portrait mode. When taking photos in portrait mode, the clarity of the captured image is particularly important. Only when a clear image is obtained can the portrait be better recognized. Therefore, when using portrait mode, the method in the present application can also be used at the same time, that is, when the shaking scene is detected to be a severe shaking scene, the telephoto camera 30 can be switched to the main camera 10, and the smart zoom function of the main camera 10 can be enabled, thereby ensuring a clearer portrait image.
[0087] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0088] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0089] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a computer-readable storage medium can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0090] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0091] A person of ordinary skill in the art will appreciate that all or part of the steps carried by the method for implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment. In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.
[0092] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application. The scope of the present application is defined by the claims and their equivalents.
Claims
1. A method for controlling a photographing of an electronic device, characterized in that: The photographing control method comprises: When the jitter parameter of the electronic device exceeds a first threshold and the current shooting camera is a telephoto camera, determining whether the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification; When the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification, switching the current shooting camera to the main camera; and Enable the smart zoom function of the main camera to shoot.
2. The photographing control method according to claim 1, characterized in that: Also includes: When the jitter parameter of the electronic device does not exceed the first threshold, the current shooting camera is kept shooting.
3. The photographing control method according to claim 1, characterized in that: Also includes: When the jitter parameter of the electronic device exceeds the first threshold and the current shooting camera is not a telephoto camera, the current shooting camera is kept for shooting.
4. The photographing control method according to claim 1, characterized in that: Also includes: When the shooting magnification of the smart zoom function of the main camera does not cover the current shooting magnification, the current shooting strategy of the current shooting camera is maintained for shooting.
5. The photographing control method according to claim 1, characterized in that: Also includes: When the shooting magnification of the smart zoom function of the main camera does not cover the current shooting magnification, maintaining the current shooting strategy of the current shooting camera to shoot to output a first image, and turning on the main camera and enabling the smart zoom function of the main camera to shoot and perform image post-processing to output a second image; and The first image and the second image are fused to obtain a fused image.
6. An electronic device, characterized in that: The electronic device comprises: A plurality of cameras, wherein the plurality of cameras include a main camera and a telephoto camera; and One or more processors, one or more of the processors being configured to: When the jitter parameter of the electronic device exceeds a first threshold and the current shooting camera is the telephoto camera, determining whether the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification; When the shooting magnification of the smart zoom function of the main camera covers the current shooting magnification, switching the current shooting camera to the main camera; and Enable the smart zoom function of the main camera to shoot.
7. The electronic device according to claim 6, characterized in that: One or more of the processors are further configured to: When the jitter parameter of the electronic device does not exceed the first threshold, control the current shooting camera to keep shooting.
8. The electronic device according to claim 6, characterized in that: One or more of the processors are further configured to: When the jitter parameter of the electronic device exceeds the first threshold and the current shooting camera is not a telephoto camera, control is performed to keep the current shooting camera shooting.
9. The electronic device according to claim 6, characterized in that: One or more of the processors are further configured to: When the shooting magnification of the smart zoom function of the main camera does not cover the current shooting magnification, control is performed to maintain the current shooting strategy of the current shooting camera for shooting.
10. The electronic device according to claim 6, characterized in that: One or more of the processors are further configured to: When the shooting magnification of the smart zoom function of the main camera does not cover the current shooting magnification, controlling to maintain the current shooting strategy of the current shooting camera to shoot to output a first image, and turning on the main camera and enabling the smart zoom function of the main camera to shoot and perform image post-processing to output a second image; and The first image and the second image are fused to obtain a fused image.
11. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by at least one processor, the photographing control method according to any one of claims 1 to 5 is implemented.