Shooting method, device, electronic device and readable storage medium

By automatically waking up the shooting function and setting the target shooting mode when the electronic device is in a preset state, the problem of cumbersome shooting operations in the prior art is solved, and the shooting efficiency is improved.

CN114025093BActive Publication Date: 2025-02-07VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111317723.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-09
Publication Date
2025-02-07
Estimated Expiration
2041-11-09

AI Technical Summary

Technical Problem

Existing electronic devices are cumbersome to operate during shooting and have low shooting efficiency.

Method used

By waking up the shooting function when the electronic device is in a preset state and automatically setting the shooting mode to the target mode, the user's operation process is simplified.

Benefits of technology

It realizes the function of directly shooting by users, simplifies the operation process and improves shooting efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114025093B_ABST
    Figure CN114025093B_ABST
Patent Text Reader

Abstract

The present application discloses a shooting method, device, electronic device and readable storage medium, which belongs to the field of computer technology. The method includes: when the electronic device is in a first preset state, waking up the shooting function; setting the shooting mode of the shooting function to the target shooting mode. By making the electronic device in the first preset state, the shooting function can be awakened, and the shooting mode of the shooting function can be set to the target shooting mode, and the user can directly perform subsequent shooting, which simplifies the user operation and improves the shooting efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of display technology, and specifically relates to a shooting method, device, electronic device and readable storage medium. Background Art

[0002] The electronic device obtains information about the current shooting scene, including the brightness of the light and the photographed object (people, animals, objects, scenery, etc.) by performing algorithmic analysis on the images captured by the camera. It can then optimize the image quality of the current scene or automatically adjust shooting parameters to help users take better photos.

[0003] Currently, when users use cameras to take pictures, the general operation method is to turn on the mobile phone, start the shooting software, select the shooting mode, and then take pictures. The whole process is cumbersome and the shooting efficiency is low. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a shooting method, device, electronic device and readable storage medium, which can solve the problems of cumbersome operation and low shooting efficiency in the shooting process of existing electronic devices.

[0005] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising:

[0006] When the electronic device is in a first preset state, waking up a shooting function;

[0007] The shooting mode of the shooting function is set to a target shooting mode.

[0008] In a second aspect, an embodiment of the present application provides a photographing device, including:

[0009] A wake-up module, used to wake up a shooting function when the electronic device is in a first preset state;

[0010] A setting module is used to set the shooting mode of the shooting function to a target shooting mode.

[0011] In a third aspect, an embodiment of the present application provides an electronic device, which includes 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 method described in the first aspect.

[0012] 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.

[0013] 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.

[0014] In the embodiment of the present application, when the electronic device is in the first preset state, the shooting function is awakened; and the shooting mode of the shooting function is set to the target shooting mode. In the above, by making the electronic device in the first preset state, the shooting function can be awakened, and the shooting mode of the shooting function can be set to the target shooting mode, and the user can directly perform subsequent shooting, which simplifies the user operation and improves the shooting efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is one of the flow charts of the shooting method provided in the embodiment of the present application;

[0016] Figure 2a Flow chart 2 of the shooting method provided in the embodiment of the present application;

[0017] Figure 2b It is a schematic diagram of setting the intelligent wake-up function of the electronic device provided in an embodiment of the present application;

[0018] Figure 3 is a structural diagram of a photographing device provided in an embodiment of the present application;

[0019] Figure 4 is a structural diagram of an electronic device provided in an embodiment of the present application;

[0020] Figure 5 It is a schematic diagram of the hardware structure of the electronic device according to 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 data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, 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 following is a detailed description of the shooting method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0024] Figure 1 A flowchart of a shooting method provided in an embodiment of the present application, such as Figure 1 As shown, the shooting method provided in this embodiment can be executed by an electronic device, and includes the following steps:

[0025] Step 101: When the electronic device is in a first preset state, wake up the shooting function.

[0026] The first preset state can be set in advance. For example, the first preset state can be a state in which the electronic device is lifted up. This can be detected by a gyroscope built into the electronic device. The first preset state can also be a state in which the electronic device is shaken. For example, if the direction of acceleration of the electronic device changes back and forth in a short period of time, it can be determined that the electronic device is in a shaking state.

[0027] Further, when the electronic device is in the first preset state, if the shooting function is in a non-awakened state, the shooting function is awakened. The shooting function being in a non-awakened state can be understood as: the shooting function is not turned on, or the shooting function is turned on and is in a background running state. When the electronic device is in a screen-on state, a screen-off state, or a screen-locked state, the shooting function can be in a non-awakened state. When the shooting function is awakened, the shooting function is in a foreground running state.

[0028] The shooting function being in the awake state can be understood as: the shooting function is turned on and is in the foreground running state. In this case, the display screen of the electronic device displays the preview picture collected by the camera.

[0029] Step 102: Set the shooting mode of the shooting function to a target shooting mode.

[0030] The target shooting mode can be determined based on historical usage information of the shooting function, or can be set by the user, or can adopt the default setting, which can be photo mode, portrait mode, night mode or video mode, etc. The default setting can also be determined based on current scene information. For example, if dim light is detected, the default setting is night mode.

[0031] In this embodiment, when the electronic device is in the first preset state, the shooting function is awakened; and the shooting mode of the shooting function is set to the target shooting mode. In the above, by making the electronic device in the first preset state, the shooting function can be awakened, and the shooting mode of the shooting function can be set to the target shooting mode, and the user can directly perform subsequent shooting, which simplifies the user operation and improves the shooting efficiency.

[0032] It should be noted that the shooting in this application can be understood as taking photos or videos.

[0033] In one embodiment of the present application, after setting the shooting mode of the shooting function to the target shooting mode, the method further includes:

[0034] Taking photos using the target shooting mode;

[0035] If the electronic device is in the second preset state, the shooting is paused or stopped.

[0036] Specifically, the electronic device sets the shooting mode of the shooting function to the target shooting mode, and the user can directly use the shooting function to take photos or videos without further settings, which can simplify user operations. If the electronic device is in the second preset state during the shooting process, the shooting can be paused or stopped. In this case, the pause or stop of shooting is triggered based on the electronic device being in the second preset state. The user only needs to adjust the state of the electronic device to the second preset state, and no additional operations are required, which improves the convenience of controlling the shooting function to stop shooting.

[0037] The second preset state can be preset. For example, the second preset state can be the state where the electronic device is put down. This can be detected by a built-in gyroscope in the electronic device (for example, the hand holding the electronic device is in a drooping state); the second preset state can also be the state where the electronic device changes from being shaken to stopping being shaken. The first preset state and the second preset state are different states.

[0038] In another embodiment of the present application, after setting the shooting mode of the shooting function to a target shooting mode, the method further includes:

[0039] When the electronic device is in the first preset state, receiving a first input;

[0040] In response to the first input, the photographing is paused or stopped.

[0041] Specifically, when the electronic device is in the first preset state, the first input can trigger the pause or stop of the shooting. The first input can be a click input, a voice input, a gesture input, etc. In this embodiment, the shooting is paused or stopped by the first input, and the user can independently control the pause or stop of the shooting, which improves the flexibility of the operation.

[0042] In yet another embodiment of the present application, after setting the shooting mode of the camera function to a target shooting mode, the method further includes:

[0043] Taking photos using the target shooting mode;

[0044] When the electronic device is in the second preset state, pausing the shooting; when the electronic device is in the first preset state, receiving a first input, stopping the shooting;

[0045] or,

[0046] When the electronic device is in the second preset state, the shooting is stopped; when the electronic device is in the first preset state, a first input is received to pause the shooting.

[0047] In the above, the pause of shooting is triggered by the electronic device being in the second preset state, and the stop of shooting is triggered by the first input when the electronic device is in the first preset state, or the stop of shooting is triggered by the electronic device being in the second preset state, and the pause of shooting is triggered by the first input when the electronic device is in the first preset state. In the above, the pause and stop of shooting are triggered respectively in two different ways, which can improve the convenience of operation.

[0048] In one embodiment of the present application, the target shooting mode is a shooting mode in which a target camera of the electronic device is used to shoot; and pausing the shooting includes:

[0049] Generate a first shooting file;

[0050] Accordingly, after pausing the shooting, the method further includes:

[0051] When the electronic device changes from the second preset state to the first preset state, the shooting continues to obtain a second shooting file, and the content of the second shooting file includes the content of the first shooting file.

[0052] Specifically, in this embodiment, the shooting can be paused based on the second preset state trigger, or, when the electronic device is in the first preset state, the shooting can be paused by a first input trigger, and a first shooting file is generated. Further, when the electronic device changes from the second preset state to the first preset state, the shooting continues to obtain a second shooting file.

[0053] For example, when the electronic device is in the first preset state, click the pause button to pause the video shooting, and then put down the phone. When the phone is detected to be picked up again, the phone can continue to pause the previous video and continue shooting until the user actively clicks to stop shooting or puts down the phone without clicking to stop and saves it as a new video file, that is, the video shot this time and the video shot before the pause are in the same video file.

[0054] If the electronic device has only one camera, the target camera is that camera; if the electronic device has two or more cameras, the target camera can be determined according to the following method:

[0055] When the shooting modes used for the last N times are the same, obtain whether the cameras used for the last U times (U is a positive integer less than or equal to N) are the same. If they are the same, the camera used for the last U times is determined as the target camera. If they are not the same, the camera used the most recently is determined as the target camera. Alternatively, the default camera is determined as the target camera.

[0056] For example, if the first two shots were taken with the first camera and the shooting modes were both night mode, then the target shooting mode is the shooting mode of the first camera, and the target camera is the first camera; if the first two shots were taken with the first camera and the second camera respectively, and the shooting modes were both night mode, then the target shooting mode is the night mode, and the target camera is the second camera.

[0057] Furthermore, after the shooting is paused, when the state of the electronic device changes to the second preset state, the shooting function may be in an unawakened state, and the electronic device may turn off the screen to save power. If the electronic device is in the first preset state again (i.e., changes from the second preset state to the first preset state), the shooting function is awakened, and shooting continues according to the target shooting mode or a new shooting mode determined according to the currently acquired preview screen, to obtain a second shooting file.

[0058] Further, stopping the shooting includes:

[0059] Generate a third shooting file;

[0060] After stopping the shooting, the method further includes:

[0061] When the electronic device changes from the second preset state to the first preset state, shooting is performed to obtain a fourth shooting file, and the third shooting file and the fourth shooting file are different shooting files.

[0062] Specifically, in this embodiment, the shooting stop can be triggered based on the second preset state, or, when the electronic device is in the first preset state, the shooting stop can be triggered by the first input. At the same time, the video file obtained by shooting can be saved to generate a first shooting file to avoid the loss of the shooting content. Furthermore, after stopping shooting, the electronic device can also automatically turn off the screen (in this case, the shooting function is in an unawakened state) to save power. When the shooting function is awakened next time, for example, when the electronic device changes from the second preset state to the first preset state, the camera is awakened to start shooting again, and a fourth shooting file (i.e., a new shooting file) is obtained. The flexible shooting method meets the diverse needs of users.

[0063] In one embodiment of the present application, when the electronic device is in the first preset state, before waking up the shooting function, the method further includes:

[0064] The shooting function of the electronic device is awakened by the second input M times in succession within a preset time period, where M is a positive integer greater than or equal to 1.

[0065] Specifically, the second input is an input for waking up the shooting function, for example, an input for turning on the camera, or an input for switching a camera in the background running state to the foreground running state. The second input can be a click input, a voice input, or a gesture input, etc. The second input is a user input. The preset time period can be set according to the actual situation, and the preset time period can be 5 minutes, 10 minutes, etc. It can be set by the user or the default setting can be adopted, which is not limited here.

[0066] The wake-up mechanism can be activated by M second inputs. When the wake-up mechanism is activated, if it is detected that the electronic device is in the first preset state, the shooting function is activated. For example, if the user manually activates the shooting function twice in succession within 5 minutes, the wake-up mechanism is activated, and when it is detected that the electronic device is in the first preset state, the shooting function is activated.

[0067] Furthermore, before setting the shooting mode of the shooting function to the target shooting mode, the method further includes:

[0068] Acquiring historical usage information of a shooting function of the electronic device;

[0069] If it is determined according to the historical usage information that the shooting modes used for the last N times are the same, the shooting modes used for the last N times are determined as the target shooting mode, where N is a positive integer greater than or equal to 1.

[0070] Preferably, M is equal to N. The historical usage information includes information obtained by detecting the captured picture obtained by the shooting function when the shooting function of the electronic device is awakened for the M times. For example, the user wakes up the camera twice in a row to shoot, the camera obtains the shooting picture, and the electronic device detects the shooting picture to obtain information, or the user wakes up the camera twice in a row (not shooting, just turning on the camera), the camera obtains the preview picture, and the electronic device detects the preview picture to obtain information, and the detected information may include, for example, portrait, dark light or running status information. The electronic device may further set the camera mode based on the detected information, such as portrait mode, night light mode or sports mode, etc., to reduce the user's operation of setting the camera mode, simplify the user operation, and improve the user experience.

[0071] The electronic device includes at least one camera, which may be a front camera or a rear camera. The shooting function refers to the shooting function of the camera. The historical usage information may be the shooting mode set when the electronic device uses the shooting function to shoot. For example, the shooting mode may include a photo mode, a video mode (also called a camera mode), a portrait mode, a night scene mode, a sports mode or a default mode, etc. The shooting mode can be set by the user, or it can be automatically set by the electronic device according to the shooting picture obtained by the camera, or the collected preview picture, which is not limited here.

[0072] The historical usage information may include the camera used (for example, when the electronic device includes multiple cameras, the camera used each time may be different), the camera usage time, the shooting mode used by the camera, etc. The historical usage information may also include information obtained by detecting the preview screen or the shooting screen when the shooting function of the electronic device is awakened for shooting. Preferably, the historical usage information includes information obtained by detecting the shooting screen obtained by the shooting function when the shooting function of the electronic device is awakened for the Mth time.

[0073] The electronic device can determine the target shooting mode based on historical usage information. For example, if it is determined based on historical usage information that the modes of the two most recent shots taken using the shooting function were photo modes, then the target shooting mode can be determined to be photo mode; if it is determined based on historical usage information that the modes of the two most recent shots taken using the shooting function were video recording modes, then the target shooting mode can be determined to be video recording mode; if it is determined based on historical usage information that the detection results of the two most recent shots taken with the camera, or the preview screens collected, include portraits (or dark light), then the target shooting mode can be determined to be portrait mode (or night scene mode).

[0074] If it is determined according to the historical usage information that the shooting modes used for the last N times are the same, the shooting modes used for the last N times are determined as the target shooting mode, where N is a positive integer greater than or equal to 1, preferably, N is a positive integer greater than or equal to 2.

[0075] If the shooting mode of the shooting function is the same when the user uses the shooting function for the last N times, the user is most likely to use the same shooting mode, and the shooting mode is set as the target shooting mode.

[0076] It should be noted that, if the electronic device has only one camera, then the shooting modes used for the last N times are the same means that the shooting modes of the cameras used for the last N times are the same, and the target shooting mode is the shooting mode of the one camera; if the electronic device includes a first camera and a second camera, then the shooting modes used for the last N times are the same means that the cameras used for the last N times are the same camera (for example, both are the first camera), and the shooting modes of the cameras are the same.

[0077] For example, if the first two shots were taken with the first camera, and both were in night mode, then the target shooting mode is the shooting mode of the first camera, and subsequent shots using the shooting function are taken with the first camera in night mode. If the first two shots were taken with the first camera and the second camera, respectively, and both were in night mode, then the target shooting mode is the night mode, and subsequent shots using the shooting function are taken with the second camera in night mode.

[0078] That is to say, when determining the shooting mode used for the last N times, the cameras are not distinguished, and only whether the shooting modes are the same is considered. If they are the same, the same shooting mode used for the last N times can be determined as the target shooting mode. Further, based on the situation of using the camera for the last N times, the target camera is determined. The target camera can be the camera used for the last N times (or less than N times) (in this case, the camera used for the last N times is the same), or it can be the camera used for the last time. The shooting mode of the target camera is set to the target shooting mode. When shooting using the shooting function later, the target shooting mode is used to shoot through the target camera.

[0079] The shooting mode used in the last N times can be understood as the shooting mode used by the shooting function when the shooting function was used N times most recently before the current shooting function was used. Preferably, N is 2. For example, if the shooting mode used in the last two times is determined to be the photo mode according to the historical use information, the photo mode is determined to be the target shooting mode; if the shooting mode used in the last two times is determined to be the video mode according to the historical use information, the video mode is determined to be the target shooting mode; if the shooting mode used in the last two times is determined to be the portrait mode according to the historical use information, the portrait mode is determined to be the target shooting mode.

[0080] The shooting modes used for the last N times may be set by the user, or may be automatically set by the electronic device according to the shooting pictures or preview pictures captured by the camera (ie, automatically set according to the shooting scene), or may adopt the default setting.

[0081] Furthermore, in the video mode or the photo mode, sub-modes may also be set, including normal mode, special effects mode, beauty mode, photo booth mode, etc. The sub-mode of the target shooting mode may be determined based on the sub-modes of the shooting mode used N times in the last, or may adopt a default setting, such as normal mode, which is not limited here. The sub-mode corresponding to the photo mode may be normal mode.

[0082] In this embodiment, by determining the shooting mode used for the most recent N times as the target shooting mode, the user's usage habits or shooting scenes can be taken into account, the accuracy of shooting mode setting can be improved, user input can be reduced, thereby simplifying user operations and improving shooting efficiency.

[0083] In one implementation, before acquiring historical usage information of the shooting function of the electronic device if the user has awakened the shooting function of the electronic device through the second input for M consecutive times within a preset time period, the method further includes:

[0084] Enable the smart wake-up function of the shooting function.

[0085] Specifically, when the smart wake-up function is turned on, the automatic detection function of the electronic device can be turned on, and the use information of the shooting function can be judged during the subsequent use of the user, so that in some cases, the shooting function can be automatically awakened by the electronic device. Figure 2b As shown, in the camera settings, add the "Smart Wakeup" function switch. When it is turned on, the smart wakeup detection mechanism is enabled.

[0086] For example, if the user manually wakes up the camera function twice in 5 minutes, the smart wake-up mechanism will take effect.

[0087] Furthermore, the historical usage information includes information obtained by detecting the captured images obtained by the camera function when the camera function of the electronic device is awakened for the M times. For example, the user wakes up the camera twice in a row to shoot, the camera obtains the captured images, and the electronic device detects the captured images to obtain information, or the user wakes up the camera twice in a row (without shooting, but just turning on the camera), the camera obtains the preview image, and the electronic device detects the preview image to obtain information, and the detected information may include, for example, portrait, dark light, or running status information. The electronic device may further set the camera mode based on the detected information, such as portrait mode, night light mode, or sports mode, etc., to reduce the user's operation of setting the camera mode, simplify the user operation, and improve the user experience.

[0088] The shooting method provided in this application automatically formulates a camera intelligent wake-up strategy by analyzing the user's behavior of waking up / turning off the camera within a period of time and the shooting content of AI scene recognition. Through gyroscope detection, the camera can be woken up by lifting the mobile phone, and the appropriate shooting mode is awakened, which helps users to shoot whenever they want, quickly and conveniently wake up the camera for shooting, and achieve the purpose of best shooting imaging effect.

[0089] The following is an example of the shooting method provided in the present application, wherein a mobile phone is taken as an example of an electronic device, but this does not constitute a limitation on the electronic device and is merely an example.

[0090] Figure 2a FIG. 1 is a flow chart of a photographing method provided in an embodiment of the present application. Figure 2a As shown,

[0091] Step 201: AI scene detection, the camera's smart wake-up function is turned on, such as Figure 2b When the camera AI scene detection is turned on, the content of each shooting scene can be detected (for subsequent condition judgment), and the smart wake-up function is turned on. When the subsequent conditions are met, the relevant mechanism can take effect.

[0092] Step 202: Determine whether the user actively wakes up the camera twice within 5 minutes. If so, go to step 204; if not, go to step 203.

[0093] Step 203: No smart wake-up. If the camera is woken up less than 2 times within 5 minutes, the smart wake-up mechanism will not take effect, and the user needs to manually wake up the camera each time.

[0094] Step 204: the intelligent awakening mechanism takes effect, and the subsequent shooting scene judgment mechanism is performed, and different scenes awaken the corresponding shooting modes.

[0095] Step 205: Determine whether the camera has used the video mode for the last two times to record video. If so, go to step 206 for execution. If not, go to step 207 for execution.

[0096] Step 206: When the gyroscope detects that the mobile phone is lifted up, the video recording mode is entered and the video recording is started directly.

[0097] Step 207: Determine whether the camera has used the photo mode for the last two times to take photos. If so, go to step 208 for execution; if not, go to step 210 for execution.

[0098] Step 208: When it is detected that the mobile phone is lifted up, the camera is automatically awakened and enters the photo taking mode.

[0099] Whether to wake up the front camera or the rear camera is determined based on the information of the last two camera uses. For example, if the front camera was used to take photos the last two times, the front camera was in photo mode, and the next time the camera is automatically woken up, it will enter the front photo mode. If the front camera was used to take photos once and the rear camera was used to take photos once, the rear camera will be used to take photos by default the next time.

[0100] Step 209: Use AI intelligent scene recognition to determine whether the scenes captured in the last two photo modes contain portraits, dark light, or objects in motion. If so, go to step 210 for execution; if not, go to step 211 for execution.

[0101] Step 210: If it is detected that the mobile phone is lifted up, the corresponding mode is entered. For example, if the preview images obtained by the camera for the last two times include portraits, the portrait mode is entered; if the preview images obtained by the camera for the last two times include dark light, the night scene mode is entered; if the preview images obtained by the camera for the last two times include motion status information, the motion mode is entered.

[0102] Step 211: Enter the default photo mode. If no portrait, sports, or night scene is detected, or the last two wake-up modes are inconsistent, or other modes other than photo and video are awakened, the next time the gyroscope detects that the phone is lifted, the camera is automatically awakened to enter the default photo mode.

[0103] Step 212: Continue to monitor the status of the mobile phone to determine whether the mobile phone is put down. If it is detected that the mobile phone is put down, go to step 214 for execution. If it is not detected that the mobile phone is put down, go to step 213 for execution.

[0104] Step 213: Continue shooting until the phone system automatically turns off the screen. During the shooting process, the phone will not automatically turn off the screen. The photo or video preview interface will automatically turn off the screen after a certain period of time.

[0105] Step 214: The mobile phone immediately turns off the screen. If it is detected that the mobile phone is put down, the recording or taking of photos will be stopped immediately, the mobile phone turns off the screen, and the camera retreats to the background and waits for the next wake-up.

[0106] 1. During the video recording process, if the user puts down the phone without clicking Pause, the recording will be terminated and saved as a video file. A new video recording will start the next time the phone is lifted up;

[0107] 2. If the user clicks Pause and then puts down the phone, the next time the phone is lifted up, the previous video will continue to be shot.

[0108] Step 215: Whether the mobile phone is detected to be lifted within 5 minutes (i.e., if the mobile phone is lifted within 5 minutes after the smart wake-up mechanism takes effect), if so, go to step 205 for execution; if not, go to step 202 and recalculate the number of consecutive camera wake-up times.

[0109] In the above, an error prevention mechanism is set up. For example, in order to avoid misjudgment of intelligent wake-up, the judgment conditions for the mechanism to take effect are set, including manually waking up the camera twice in a row within 5 minutes before performing intelligent wake-up.

[0110] By analyzing the shooting content and continuous shooting behavior over a period of time, intelligent recommendations are made to help users quickly open the most suitable shooting mode. Using the shooting method in this application, users only need to pick up the phone to start shooting, without any other operations.

[0111] It should be noted that the shooting method provided in the embodiment of the present application can be executed by a shooting device or a control module in the shooting device for executing the method for arranging applications. In the embodiment of the present application, the method for arranging applications by a shooting device is taken as an example to illustrate the device for arranging applications provided in the embodiment of the present application.

[0112] like Figure 3 As shown, the photographing device 300 provided in the embodiment of the present application includes:

[0113] A wake-up module 301 is used to wake up the shooting function when the electronic device is in a first preset state;

[0114] The setting module 302 is used to set the shooting mode of the shooting function to a target shooting mode.

[0115] Optionally, the device 300 further includes:

[0116] A shooting module, used for shooting using the target shooting mode;

[0117] The first shooting processing module is used to pause or stop the shooting if the electronic device is in a second preset state.

[0118] Optionally, the device 300 further includes:

[0119] A receiving module, configured to receive a first input when the electronic device is in the first preset state;

[0120] The second shooting processing module is used to pause or stop the shooting in response to the first input.

[0121] Optionally, the target shooting mode is a shooting mode in which a target camera of the electronic device is used to shoot images;

[0122] The first shooting processing module and / or the second shooting processing module include:

[0123] A first generating submodule, used to generate a first shooting file;

[0124] The device also includes:

[0125] The first acquisition module is used to continue shooting and obtain a second shooting file when the electronic device changes from the second preset state to the first preset state, wherein the content of the second shooting file includes the content of the first shooting file.

[0126] Optionally, the first shooting processing module and / or the second shooting processing module includes:

[0127] The second generating submodule is used to generate a third shooting file;

[0128] The device also includes:

[0129] The second acquisition module is used to take pictures when the electronic device changes from the second preset state to the first preset state, and obtain a fourth shooting file, wherein the third shooting file and the fourth shooting file are different shooting files.

[0130] Optionally, the device 300 further includes:

[0131] The third acquisition module is used to wake up the shooting function of the electronic device through the second input for M consecutive times within a preset time period, where M is a positive integer greater than or equal to 1.

[0132] Optionally, the device 300 further includes:

[0133] A fourth acquisition module, used to acquire historical usage information of the shooting function of the electronic device;

[0134] The determination module is configured to determine the shooting mode used for the last N times as the target shooting mode if it is determined according to the historical usage information that the shooting modes used for the last N times are the same, where N is a positive integer greater than or equal to 1.

[0135] Optionally, the historical usage information includes information obtained by detecting a captured image obtained by the shooting function when the shooting function of the electronic device is awakened M times.

[0136] The photographing device 300 provided in the embodiment of the present application can realize Figure 1 The various processes implemented by the method embodiment and obtaining the same technical effect are not described here to avoid repetition.

[0137] The above-mentioned shooting device 300 can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiments of the present application.

[0138] The photographing device 300 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.

[0139] Alternatively, if Figure 4As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0140] 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.

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

[0142] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0143] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 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.

[0144] The processor 1010 is used to wake up the shooting function when the electronic device is in a first preset state; and set the shooting mode of the shooting function to a target shooting mode.

[0145] Optionally, the processor 1010 is configured to perform shooting using the target shooting mode; if the electronic device is in a second preset state, pausing or stopping the shooting.

[0146] Optionally, the input unit 1004 is configured to receive a first input when the electronic device is in the first preset state;

[0147] The processor 1010 is configured to pause or stop the shooting in response to a first input.

[0148] Optionally, the processor 1010 is configured to generate a first shooting file; when the electronic device changes from the second preset state to the first preset state, continue shooting to obtain a second shooting file, wherein the content of the second shooting file includes the content of the first shooting file.

[0149] Optionally, the processor 1010 is used to generate a third shooting file; when the electronic device changes from the second preset state to the first preset state, shoot to obtain a fourth shooting file, and the third shooting file and the fourth shooting file are different shooting files.

[0150] Optionally, the processor 1010 is configured to wake up the shooting function of the electronic device through the second input M times in a preset time period, where M is a positive integer greater than or equal to 1.

[0151] Optionally, the processor 1010 is used to obtain historical usage information of the shooting function of the electronic device; if it is determined according to the historical usage information that the shooting modes used for the last N times are the same, then the shooting modes used for the last N times are determined as the target shooting mode, where N is a positive integer greater than or equal to 1.

[0152] Optionally, the historical usage information includes information obtained by detecting a captured image obtained by the shooting function when the shooting function of the electronic device is awakened M times.

[0153] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0154] 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, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0155] The processor is a 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.

[0156] 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 shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0157] 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.

[0158] 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.

[0159] 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 magnetic disk, or an optical disk), and includes a number of instructions for enabling a first 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.

[0160] 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 method, characterized in that: The method comprises: When the electronic device is in a first preset state, waking up a shooting function; Setting the shooting mode of the shooting function to a target shooting mode; When the electronic device is in the first preset state, before waking up the shooting function, the method further includes: Waking up the shooting function of the electronic device through the second input M times in a preset time period, where M is a positive integer greater than or equal to 1; The electronic device includes a plurality of cameras, and before setting the shooting mode of the shooting function to the target shooting mode, the method further includes: Acquiring historical usage information of a shooting function of the electronic device; If it is determined based on the historical usage information that the cameras used for the last N times are the same, and the shooting modes of the cameras used for the last N times are the same, then the camera used for the last N times is determined as the target camera, and the shooting mode of the target camera is determined as the target shooting mode, where N is a positive integer greater than or equal to 1.

2. The method according to claim 1, characterized in that After setting the shooting mode of the shooting function to a target shooting mode, the method further includes: Taking photos using the target shooting mode; If the electronic device is in the second preset state, the shooting is paused or stopped.

3. The method according to claim 1, characterized in that After setting the shooting mode of the shooting function to a target shooting mode, the method further includes: When the electronic device is in the first preset state, receiving a first input; In response to the first input, the photographing is paused or stopped.

4. The method according to claim 2 or 3, characterized in that: The pausing the shooting includes: Generate a first shooting file; After pausing the shooting, the method further includes: When the electronic device changes from the second preset state to the first preset state, the shooting continues to obtain a second shooting file, and the content of the second shooting file includes the content of the first shooting file.

5. The method according to claim 2 or 3, characterized in that: The stopping of the shooting includes: Generate a third shooting file; After stopping the shooting, the method further includes: When the electronic device changes from the second preset state to the first preset state, shooting is performed to obtain a fourth shooting file, and the third shooting file and the fourth shooting file are different shooting files.

6. The method according to claim 1, characterized in that The historical usage information includes information obtained by detecting a captured image captured by the shooting function when the shooting function of the electronic device is awakened M times, where M is a positive integer greater than or equal to 1.

7. A photographing device, characterized in that: The device comprises: A wake-up module, used to wake up a shooting function when the electronic device is in a first preset state; A setting module, used to set the shooting mode of the shooting function to a target shooting mode; The device also includes: A third acquisition module, configured to wake up the shooting function of the electronic device through the second input for M consecutive times within a preset time period, where M is a positive integer greater than or equal to 1; The electronic device includes a plurality of cameras, and the device further includes: A fourth acquisition module, used to acquire historical usage information of the shooting function of the electronic device; A determination module is used to determine the camera used for the last N times as the target camera, and determine the shooting mode of the target camera as the target shooting mode, if it is determined based on the historical usage information that the camera used for the last N times is the same, and the shooting modes of the camera used for the last N times are the same, where N is a positive integer greater than or equal to 1.

8. The device according to claim 7, characterized in that The device also includes: A shooting module, used for shooting using the target shooting mode; The first shooting processing module is used to pause or stop the shooting if the electronic device is in a second preset state.

9. The device according to claim 7, characterized in that The device also includes: A receiving module, configured to receive a first input when the electronic device is in the first preset state; The second shooting processing module is used to pause or stop the shooting in response to the first input.

10. The device according to claim 8 or 9, characterized in that The first shooting processing module or the second shooting processing module includes: A first generating submodule, used to generate a first shooting file; The device also includes: The first acquisition module is used to continue shooting and obtain a second shooting file when the electronic device changes from the second preset state to the first preset state, wherein the content of the second shooting file includes the content of the first shooting file.

11. The device according to claim 8 or 9, characterized in that The first shooting processing module or the second shooting processing module includes: The second generating submodule is used to generate a third shooting file; The device also includes: The second acquisition module is used to perform shooting to obtain a fourth shooting file when the electronic device changes from the second preset state to the first preset state, and the third shooting file and the fourth shooting file are different shooting files.

12. The device according to claim 7, characterized in that The historical usage information includes information obtained by detecting a captured image captured by the shooting function when the shooting function of the electronic device is awakened M times, where M is a positive integer greater than or equal to 1.

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 method as described in any one of claims 1 to 6.

14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Photographing method, terminal and computer readable storage medium

    CN108156377A

  • Photographing method and mobile terminal

    CN108650451A

  • Method and device for rapidly acquiring images

    CN108737631A