WO2022257999A1 - Photographing method and apparatus, electronic device, and storage medium - Google Patents
Photographing method and apparatus, electronic device, and storage medium Download PDFInfo
- Publication number
- WO2022257999A1 WO2022257999A1 PCT/CN2022/097781 CN2022097781W WO2022257999A1 WO 2022257999 A1 WO2022257999 A1 WO 2022257999A1 CN 2022097781 W CN2022097781 W CN 2022097781W WO 2022257999 A1 WO2022257999 A1 WO 2022257999A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- preset
- shake
- threshold
- shooting
- electronic device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/681—Motion detection
Definitions
- the present application belongs to the technical field of image processing, and specifically relates to a photographing method, device, electronic equipment and storage medium.
- the long-exposure shooting function can record the continuous motion state of the subject, and get shocking effects such as car tracks, star tracks, and waterfall fogging.
- shocking effects such as car tracks, star tracks, and waterfall fogging.
- ensuring the stability of the shooting equipment is the key to the success of the shooting, and keeping absolutely still is of great significance to the shooting effect.
- the purpose of the embodiments of the present application is to provide a photographing method, device, electronic equipment, and storage medium, which can solve the problem of improving the success rate of long-exposure photographing.
- the embodiment of the present application provides a shooting method, the method includes:
- the shooting is ended.
- an embodiment of the present application provides a photographing device, including:
- a receiving unit configured to receive a first input
- a photographing unit configured to respond to the first input, adopt a long exposure mode to photograph, and detect the shaking amount of the electronic device in real time;
- An end unit configured to end shooting when the shake amount is greater than a first preset shake threshold.
- an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
- an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
- the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
- the amount of shake of the electronic device is detected by the amount of change of the still object in the captured image and the amount of change of the angular velocity of the electronic device. If the amount is too large, it will lead to the failure of photo shooting. Therefore, in this application, when the amount of shake is detected to be greater than the first preset shake threshold, the shooting will be automatically ended, so as to avoid the long-term shooting failure caused by the shake in the early stage and improve the long exposure. shooting success rate.
- FIG. 1 is a schematic flow chart of a photographing method provided in an embodiment of the present application
- FIG. 2 is a schematic diagram of the shooting preview interface provided by the embodiment of the present application.
- FIG. 3 is a schematic diagram of a shake threshold adjustment interface provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of the overall shooting process provided by the embodiment of the present application.
- FIG. 5 is a schematic structural diagram of the photographing device described in the embodiment of the present application.
- FIG. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
- FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
- Fig. 1 is a schematic flow chart of the photographing method provided by the embodiment of the present application, as shown in Fig. 1, including:
- Step 110 receiving a first input
- the electronic device receives the user's first input, and the electronic device may refer to a device such as a smart phone, a tablet computer, a PTZ terminal, or a camera.
- the user's first input described in this application may refer to the user's input on the shooting identifier in the shooting preview interface, and the first input may specifically be a click or a long press operation.
- the shooting preview interface in the present application may specifically refer to an interface displaying a long-exposure shooting image, and the shooting mark may trigger the start or end of the long-exposure shooting.
- the logos in this application are used to indicate text, symbols, images, etc. of information, and controls or other containers may be used as carriers for displaying information, including but not limited to text logos, symbol logos, and image logos.
- Step 120 in response to the first input, use long exposure mode to shoot, and detect the shaking amount of the electronic device in real time;
- the long exposure mode described in this application may specifically be shooting in streamer shutter mode, or shooting in time-lapse photography mode, or other shooting modes in long exposure mode.
- the electronic device In response to the first input, the electronic device adopts the long-exposure mode for shooting, and then starts long-exposure shooting. Since the long-exposure shooting uses a long-exposure method to record the image of the continuous motion state of the subject, the electronic device is using the long-exposure mode. After shooting in exposure mode, it will continue to be in the state of long exposure shooting until an instruction to end shooting is received.
- the shooting electronic device During the shooting process of the long exposure mode, if the shooting electronic device moves or shakes, the final shot image will be obviously shaken, so the shooting electronic device needs to be kept stable during the long exposure shooting process.
- the amount of shake of the electronic device described in this application may be caused by the shake of the electronic device, the translation of the electronic device, or the movement of a preset stationary object in the captured image .
- the real-time angular velocity change data of the electronic device acquired by the gyroscope in the electronic device For the shaking of the electronic device body, it can be detected by the real-time angular velocity change data of the electronic device acquired by the gyroscope in the electronic device.
- the gyroscope does not generate angular velocity change data during the translation of the electronic equipment, and the electronic equipment does not shake when the preset static object in the captured image is sent to move, it is impossible to monitor the angular velocity change of the electronic equipment at this time.
- Data is used for detection, but the captured image will also shake, so in this application, it is also possible to simultaneously detect whether the captured image shakes through the amount of movement of the still object in the captured image of two adjacent frames.
- the amount of shaking in this application may refer to the amount of real-time angular velocity, or the amount of movement of a still object in two adjacent frames of captured images.
- Step 130 when the shake amount is greater than a first preset shake threshold, end shooting.
- the first preset shake threshold described in this application may be specifically determined automatically according to the shooting scene type corresponding to the currently captured image, or it may be preset by the user before shooting in long exposure mode.
- the setting method may be Pre-select the shooting scene type, or directly set the shake threshold in advance.
- Each shooting scene type will correspond to a different first preset shake threshold, such as "night scene graffiti” and “flowing waterfall” scenes. If shake has little impact on shooting, the system will set a larger first preset shake Threshold, in the scenes of "heavy traffic” and “beautiful star trails", the shake has a greater impact on shooting, so the system will set a smaller first preset shake threshold.
- the setting of the first preset shake threshold in the embodiment of the present application means that when the amount of shake exceeds the first preset shake threshold, it will have a great impact on the final captured image, resulting in the failure of the final capture. Therefore, in this application In the embodiment, when the shaking amount is greater than the first preset shaking threshold, the electronic device will automatically end the shooting, and at this time, the previously unaffected shooting images can still be retained.
- the amount of shake of the electronic device is detected by the amount of change of the still object in the captured image and the amount of change of the angular velocity of the electronic device. If the amount is too large, it will lead to the failure of photo shooting. Therefore, in this application, when the amount of shake is detected to be greater than the first preset shake threshold, the shooting will be automatically ended, so as to avoid the long-term shooting failure caused by the shake in the early stage and improve the long exposure. shooting success rate.
- the method before receiving the first input from the user, the method further includes:
- a first preset shake threshold and a second preset shake threshold are determined according to the scene recognition result, the first preset shake threshold is greater than the second preset shake threshold.
- the second preset jitter threshold described in the embodiment of the present application is a threshold smaller than the first preset jitter threshold.
- the setting of the second preset shake threshold means that when the amount of shake exceeds the second preset shake threshold but has not exceeded the first preset shake threshold, the final shooting may fail, and user intervention is required for adjustment. Therefore, the second preset jitter threshold can be understood as a warning threshold,
- a commonly used image scene recognition algorithm may be used to realize the scene recognition function, for example, a neural network model for realizing scene recognition, which is not limited in the embodiment of the present application.
- the scene recognition result in the embodiment of this application refers to the scene recognition result corresponding to the shooting scene of the captured image.
- the scene recognition result in this application may include "night scene graffiti”, “flowing waterfall”, “heavy traffic” or “gorgeous star track”. "Scene and so on.
- the impact of the amount of shaking on the recognition results of different scenes is often different.
- a smaller first and second preset shaking thresholds will be set correspondingly;
- the scene recognition result with less impact on the amount of jitter corresponds to setting a larger first preset jitter threshold and second preset jitter threshold;
- electronic equipment is used to perform scene recognition on captured images, fully considering the characteristics of different scenes, and automatically setting the corresponding first preset shake threshold and second preset shake threshold according to different scene recognition results, That is to say, the first preset jitter threshold and the second preset jitter threshold can be reasonably and automatically set, which can effectively ensure the rationality and accuracy of the judgment.
- the real-time detection of the shaking amount of the electronic device it also includes:
- the first preset range described in this application refers to a range that is greater than the second preset shake threshold and smaller than the first preset shake threshold.
- the electronic device sends an adjustment prompt message to remind the electronic device to adjust to avoid shaking, and also reminds the user to end shooting.
- the shooting will automatically end when the amount of shaking exceeds the first preset shaking threshold, only when the shaking amount is greater than the second preset shaking threshold and smaller than the first preset shaking threshold, that is, when it is within the first preset range, Only then will the adjustment prompt message be output to prompt the user to make adjustments.
- the adjustment prompt information in this application may refer to the combination of the user interface and the voice prompt of the electronic device, for example, when the shaking amount is within the first preset range, the flickering effect will start to be displayed around the shooting interface, or the electronic device may issue a prompt sound, or a prompt sound when the flickering effect starts to appear around the shooting interface.
- the user further observes the current shooting screen. If he does not want to interrupt the shooting, he can choose to increase the first preset shake threshold and the second preset shake threshold. If the user judges that the shooting needs to be interrupted, then You can choose to manually end the shooting directly.
- an adjustment prompt message is output in advance to prompt the user to intervene
- the operation can provide the user with an opportunity to intervene before the long exposure is automatically ended, which can further improve the success rate of shooting.
- the real-time detection of the shaking amount of the electronic device it also includes:
- N is a positive integer greater than the first preset number.
- the N consecutive jitter quantities described in this application specifically refer to N jitter quantities acquired within a continuous time period, and the specific number of N can be preset.
- N consecutive jitter values are all within the first preset range, it specifically means that the time for which the real-time obtained jitter values are within the first preset range has exceeded the preset time, and at this time the user has not Intervention, in order to ensure the success of the final shooting, it will automatically end the shooting.
- the judging condition for ending the shooting is set when N consecutive shaking amounts are all within the first preset range, which can effectively avoid no user intervention after outputting the adjustment prompt information , and lead to the possibility of shooting failure, which can effectively improve the success rate of shooting.
- the method further includes:
- the first logo includes a first sub-logo, a second sub-logo, and an anti-shake monitoring logo;
- the first sub-identifier is determined based on the first preset shake threshold
- the second sub-identifier is determined based on the second preset shake threshold
- the shake monitoring identifier is based on The stationary object is determined.
- the shooting preview interface described in this application may refer to the shooting page in the long exposure shooting process.
- the first word mark in this application can be used to characterize the first preset shake threshold value representing the shake tolerance during long-exposure shooting, which can be displayed in the shooting preview interface in the form of a mark box.
- the second sub-indicator in this application may be used to characterize the second preset shake threshold representing the shake tolerance during long-exposure shooting, which may specifically be displayed in the first sign in the form of a sign box.
- the shake monitoring identification described in this application is determined according to the still object in the captured image, and the still object refers to a subject that usually does not move, such as a building, a stone, and the like. Since the still objects usually do not move, when it is detected that the still objects in two adjacent frames of captured images change, the shaking monitoring mark will also move accordingly. Therefore, the shaking monitoring mark can represent the shaking of the shooting picture, and the movement amount of the shaking monitoring mark in the shooting interface can be used to represent the above shaking amount.
- the first sub-identification and the second sub-identification in the first identification may be displayed in a straight line, and at this time, the anti-shake monitoring identification is between the first sub-identification and the second sub-identification.
- the first sign in this application may be that the second sub-mark is displayed in the display area of the first sub-mark, and the anti-shake monitor sign is displayed in the display area of the second sub-mark.
- Fig. 2 is the schematic diagram of the shooting preview interface provided by the embodiment of the present application.
- a first word mark 22 a second sub-mark 23 and a shake monitoring mark 24 are displayed.
- the movement range is always within the range of the second sub-marker 23, it means that the shooting shake is relatively small and the stability is good;
- the shooting shakes slightly, and the shooting preview interface prompts "The current mobile phone shakes a lot, please keep the mobile phone stable or stop shooting", and the user can manually choose to end shooting or continue shooting;
- the shake monitoring mark 24 exceeds the first sub-mark 22 range, it means that the shaking value of this shooting exceeds the first preset shaking threshold, and the system immediately ends the current shooting and prompts "shooting ends when shaking occurs”.
- the first preset shake threshold, the second preset shake threshold, and the shake amount of the electronic device are displayed on the shooting page in a visual way, so that users can intuitively understand the difference between the current shake amount and the first shake amount.
- the relationship between the preset shake threshold and the second preset shake threshold so as to better adjust during the long-exposure shooting process and improve the shooting success rate.
- the method further includes:
- At least one of the first preset shake threshold and the second preset shake threshold is adjusted in response to the third input.
- the second input in this embodiment of the present application may be an input to the first identification, or may be an input to the first sub-identification or the shake monitoring identification in the first identification.
- the second input described in the embodiment of the present application may specifically be a long press input or a click input.
- the electronic device In response to the second input, the electronic device displays a shake threshold adjustment interface in the shooting preview interface, and the shake threshold adjustment interface is used to provide adjustment options for the first preset shake threshold and the second preset shake threshold.
- FIG. 3 is a schematic diagram of the shake threshold adjustment interface provided by the embodiment of the present application. As shown in FIG. In the preset shake threshold adjustment sub-interface 33 , the user can click the plus and minus signs in the first preset shake threshold adjustment sub-interface or the second preset shake threshold adjustment sub-interface to adjust the shake threshold adjustment.
- the third input in this application may specifically be a user's click operation, or a user's slide operation.
- the third input in this application may be an input for adjusting the first preset jitter threshold or the second preset jitter threshold, or may be an input for simultaneously adjusting the first preset jitter threshold and the second preset jitter threshold.
- the user can adjust the first preset shake threshold or the second preset shake threshold before shooting or during shooting, so as to adapt to different shooting situations and improve the success rate of shooting.
- the method further includes:
- the captured sub-image corresponding to the first sub-identity described in the embodiment of the present application may refer to the captured sub-image displayed in the first sub-identity, and the user can move the position of the first sub-identity to select a different Take a sub image.
- the static object analysis described in the embodiments of the present application may specifically segment the captured sub-images through a segmentation algorithm, then perform semantic recognition on the segmented images, and filter out the static objects in the captured images according to the semantic recognition results.
- the still object in the captured image in this application may also be the target area in the captured image selected by the user, and the target area is analyzed through semantic recognition and segmentation algorithms to filter out the still object in the captured image.
- the characteristics of the still object can be used to determine the shake amount of the shooting according to the change amount of the still object in two adjacent frames of images, helping to improve the success rate of shooting.
- the detection of the shake amount of the electronic device includes:
- the two adjacent frames of captured images described in this application refer to two frames of captured images that are temporally continuous during the long-exposure shooting process.
- the amount of change between the still object in the M frames of captured images and the still object in the M ⁇ 1 frame of captured images can be reflected in pixel changes between the still objects, and the amount of jitter refers to the amount of pixel change.
- the gyroscope in the electronic device can detect its own real-time angular velocity change data, and the real-time angular velocity change data is the shaking amount of the electronic device.
- the accuracy of the shaking amount can be further ensured, thereby effectively ensuring smooth shooting.
- the streamer shutter is a commonly used type in long-exposure shooting.
- the shooting with the streamer shutter function is taken as an example.
- FIG. 4 is a schematic diagram of the overall shooting process provided by the embodiment of the present application, as shown in FIG.
- step 410 enter the streamer shutter function
- step 420 the user can set the preset threshold according to the needs, or automatically identify the scene of the captured image, set the preset threshold according to the scene recognition result, and display it on the shooting page
- the first identification including the first sub-identification and the shaking monitoring identification
- step 430 start streamer shutter shooting according to the shooting instruction of the user
- step 440 detect the shaking amount of the electronic device in real time
- step 450 determine whether the shaking amount of the electronic device exceeds Preset threshold, when the shaking amount of the electronic device exceeds the preset threshold, automatically enter step 470, and end shooting; when it is determined that the shaking amount of the electronic device is close to the preset threshold, enter step 460, output adjustment prompt information
- the user chooses whether to end shooting, if the user chooses to continue shooting, return to step 440, and continue to detect the shake of the electronic device in real time, if the user chooses to end shooting, then enter step 470, and end shooting.
- the shooting method provided in the embodiment of the present application may be executed by a shooting device, or a control module in the shooting device for executing the shooting method.
- a shooting device or a control module in the shooting device for executing the shooting method.
- taking the photographing device executing the photographing method as an example, the photographing device provided in the embodiment of the present application is described.
- FIG. 5 is a schematic structural diagram of the photographing device described in the embodiment of the present application. As shown in FIG. 5 , it includes: a receiving unit 510, a photographing unit 520, and an end unit 530; wherein, the receiving unit 510 is configured to receive a first input from a user; Wherein, the photographing unit 520 is configured to respond to the first input, adopt the long exposure mode to photograph, and detect the shake amount of the electronic device in real time; wherein, the end unit 530 is configured to when the shake amount is greater than the first preset shake threshold In the case, end shooting.
- the device further includes a display unit;
- the display unit is configured to display a first mark in the shooting preview interface, the first mark includes a first sub-mark, and the first sub-mark includes a shake monitoring mark;
- the first identifier is determined based on the first preset shake threshold
- the first sub-identifier is determined based on the second preset shake threshold
- the shake monitor identifier is based on the Fixed objects.
- the device further includes an identification unit;
- the recognition unit is configured to perform scene recognition on the captured image to obtain a scene recognition result
- a first preset shake threshold and a second preset shake threshold are determined according to the scene recognition result, the first preset shake threshold is greater than the second preset shake threshold.
- the device further includes a prompt unit
- the prompting unit is configured to output adjustment prompt information when the shake amount is within a first preset range, the first preset range being based on the first preset shake threshold and the second preset shake threshold.
- the preset jitter threshold is determined.
- the ending unit is further configured to end the shooting when N consecutive shakes are within a first preset range, and the first preset range is based on the first preset shake
- the threshold is determined by the second preset jitter threshold, and N is a positive integer greater than the first preset number.
- the device further includes an adjustment unit, and the receiving unit is further configured to receive a second input to the first identifier;
- the display unit is further configured to display a shaking threshold adjustment interface in the shooting preview interface in response to the second input;
- the receiving unit is configured to receive a third input from the user on the shake threshold adjustment interface
- the adjustment unit is configured to adjust at least one of the first preset shake threshold and the second preset shake threshold in response to the third input.
- the device also includes an analysis unit;
- the analysis unit is configured to determine a captured sub-image corresponding to the first sub-identity from the captured image
- a still object analysis is performed on the captured sub-image to obtain a still object of the captured image.
- the analysis unit is further configured to determine the amount of shaking of the electronic device based on the amount of change of the still object in the captured images of two adjacent frames;
- the amount of shake of the electronic device is detected by the amount of change of the still object in the captured image and the amount of change of the angular velocity of the electronic device. If the amount is too large, it will lead to the failure of photo shooting. Therefore, in this application, when the amount of shake is detected to be greater than the first preset shake threshold, the shooting will be automatically ended, so as to avoid the long-term shooting failure caused by the shake in the early stage and improve the long exposure. shooting success rate.
- the photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
- the device may be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
- non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
- Network Attached Storage NAS
- personal computer personal computer, PC
- television television
- teller machine or self-service machine etc.
- the photographing device in the embodiment of the present application may be a device with an operating system.
- the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
- the photographing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 4 , and details are not repeated here to avoid repetition.
- FIG. 6 is a schematic structural diagram of an electronic device provided in the embodiment of the present application.
- the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
- FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
- the electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc. part.
- the electronic device 700 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 710 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
- a power supply such as a battery
- the structure of the electronic device shown in FIG. 7 does not constitute a limitation to the electronic device.
- the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
- the user input unit 707 is configured to receive a first input from the user
- the processor 710 responds to the first input, adopts the long exposure mode to shoot, and controls the sensor 705 to detect the shaking amount of the electronic device in real time;
- the processor 710 is configured to end shooting when the shake amount is greater than a first preset shake threshold.
- the processor 710 is further configured to perform scene recognition on the captured image to obtain a scene recognition result
- a first preset shake threshold and a second preset shake threshold are determined according to the scene recognition result, the first preset shake threshold is greater than the second preset shake threshold.
- the processor 710 is further configured to output adjustment prompt information when the shake amount is within a first preset range, where the first preset range is based on the first preset shake threshold and the set determined by the second preset jitter threshold described above.
- the processor 710 is further configured to end the shooting when N consecutive shake amounts are within a first preset range, and the first preset range is based on the first preset shake threshold Determined with the second preset shaking threshold, N is a positive integer greater than the first preset number.
- the display unit 706 is configured to display a first mark in the shooting preview interface, where the first mark includes a first sub-mark, and the first sub-mark includes a shake monitoring mark;
- the first identifier is determined based on the first preset shake threshold
- the first sub-identifier is determined based on the second preset shake threshold
- the shake monitor identifier is based on the Fixed objects.
- the user input unit 707 is configured to receive a second input to the first identifier
- the display unit 706 is configured to display a shaking threshold adjustment interface in the shooting preview interface in response to the second input;
- the user input unit 707 is configured to receive a third input from the user on the shake threshold adjustment interface
- the processor 710 is further configured to adjust at least one of the first preset shake threshold and the second preset shake threshold in response to the third input.
- the processor 710 is further configured to determine a captured sub-image corresponding to the first sub-identity from the captured image;
- a still object analysis is performed on the captured sub-image to obtain a still object of the captured image.
- the processor 710 is further configured to determine the shake amount of the electronic device based on the change amount of the still object in the captured images of two adjacent frames;
- the amount of shake of the electronic device is detected by the amount of change of the still object in the captured image and the amount of change of the angular velocity of the electronic device. If the amount is too large, it will lead to the failure of photo shooting. Therefore, in this application, when the amount of shake is detected to be greater than the first preset shake threshold, the shooting will be automatically ended, so as to avoid the long-term shooting failure caused by the shake in the early stage and improve the long exposure. shooting success rate.
- the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
- the display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
- the user input unit 707 includes a touch panel 7071 and other input devices 7072 .
- the touch panel 7071 is also called a touch screen.
- the touch panel 7071 may include two parts, a touch detection device and a touch controller.
- Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
- Memory 709 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
- the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, user interface, application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .
- the embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above-mentioned photographing method embodiment is realized, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
- the processor is the processor in the electronic device described in the above embodiments.
- the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
- the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the various aspects of the above shooting method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
- chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
- the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
- 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. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年06月10日提交的申请号为2021106468227,发明名称为“拍摄方法、装置、电子设备及存储介质”的中国专利申请的优先权,其通过引用方式全部并入本申请。This application claims the priority of the Chinese patent application with the application number 2021106468227 filed on June 10, 2021, and the title of the invention is "photographing method, device, electronic equipment and storage medium", which is fully incorporated into this application by reference.
本申请属于图像处理技术领域,具体涉及一种拍摄方法、装置、电子设备及存储介质。The present application belongs to the technical field of image processing, and specifically relates to a photographing method, device, electronic equipment and storage medium.
随着摄影技术的发展,常规的人像、风光拍摄已无法完全满足用户需求,一些更具可玩性的摄影功能相继出现,例如通过长曝光的拍摄功能。With the development of photography technology, conventional portrait and landscape shooting can no longer fully meet the needs of users, and some more playable photography functions have emerged one after another, such as the long-exposure shooting function.
通过长曝光的拍摄功能可以记录拍摄对象的连续运动状态,得到车轨、星轨、瀑布雾化等震撼的效果。而在长曝光的拍摄过程中,保证拍摄设备的稳定是拍摄成功的关键,保持绝对静止对拍摄效果有着非常重要的意义。The long-exposure shooting function can record the continuous motion state of the subject, and get shocking effects such as car tracks, star tracks, and waterfall fogging. In the long-exposure shooting process, ensuring the stability of the shooting equipment is the key to the success of the shooting, and keeping absolutely still is of great significance to the shooting effect.
因此,如何提高长曝光拍摄的成功率已经成为业界亟待解决的问题。Therefore, how to improve the success rate of long-exposure shooting has become an urgent problem to be solved in the industry.
发明内容Contents of the invention
本申请实施例的目的是提供一种拍摄方法、装置、电子设备及存储介质.,能够解决提高长曝光拍摄成功率的问题。The purpose of the embodiments of the present application is to provide a photographing method, device, electronic equipment, and storage medium, which can solve the problem of improving the success rate of long-exposure photographing.
第一方面,本申请实施例提供了一种拍摄方法,该方法包 括:In the first aspect, the embodiment of the present application provides a shooting method, the method includes:
接收第一输入;receiving a first input;
响应于所述第一输入,采用长曝光模式进行拍摄,并实时检测电子设备的抖动量;In response to the first input, use a long exposure mode to shoot, and detect the shake amount of the electronic device in real time;
在所述抖动量大于第一预设抖动阈值的情况下,结束拍摄。If the shake amount is greater than the first preset shake threshold, the shooting is ended.
第二方面,本申请实施例提供了一种拍摄装置,包括:In a second aspect, an embodiment of the present application provides a photographing device, including:
接收单元,用于接收第一输入;a receiving unit, configured to receive a first input;
拍摄单元,用于响应于所述第一输入,采用长曝光模式进行拍摄,并实时检测电子设备的抖动量;a photographing unit, configured to respond to the first input, adopt a long exposure mode to photograph, and detect the shaking amount of the electronic device in real time;
结束单元,用于在所述抖动量大于第一预设抖动阈值的情况下,结束拍摄。An end unit, configured to end shooting when the shake amount is greater than a first preset shake threshold.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
在本申请实施例中,在采用长曝光模式进行拍摄后,即开始通过拍摄图像中的静止物的变化量以及电子设备的角速度变化量,从而检测电子设备的抖动量,而在电子设备的抖动量过大的情况下,会导致照片拍摄失败,因此本申请中在检测到抖动量大于第一预设抖动阈值的情况下,自动结束拍摄,避免抖动导致前 期长时间的拍摄失败,提高长曝光拍摄的成功率。In the embodiment of the present application, after shooting in the long exposure mode, the amount of shake of the electronic device is detected by the amount of change of the still object in the captured image and the amount of change of the angular velocity of the electronic device. If the amount is too large, it will lead to the failure of photo shooting. Therefore, in this application, when the amount of shake is detected to be greater than the first preset shake threshold, the shooting will be automatically ended, so as to avoid the long-term shooting failure caused by the shake in the early stage and improve the long exposure. shooting success rate.
图1为本申请实施例提供的拍摄方法流程示意图;FIG. 1 is a schematic flow chart of a photographing method provided in an embodiment of the present application;
图2为本申请实施例提供的拍摄预览界面示意图;FIG. 2 is a schematic diagram of the shooting preview interface provided by the embodiment of the present application;
图3为本申请实施例提供的抖动阈值调整界面的示意图;FIG. 3 is a schematic diagram of a shake threshold adjustment interface provided by an embodiment of the present application;
图4为本申请实施例提供的拍摄整体流程示意图;FIG. 4 is a schematic diagram of the overall shooting process provided by the embodiment of the present application;
图5为本申请实施例中所描述的拍摄装置结构示意图;FIG. 5 is a schematic structural diagram of the photographing device described in the embodiment of the present application;
图6为本申请实施例中提供的电子设备结构示意图;FIG. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
图7为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the application in conjunction with the accompanying drawings in the embodiments of the application. Obviously, the described embodiments are all other embodiments obtained as part of the application, and all belong to the protection scope of the application .
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的一种拍摄方法、装置、电子设备及存储介质进行详细地说明。A photographing method, device, electronic device, and storage medium provided in the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
图1为本申请实施例提供的拍摄方法流程示意图,如图1所示,包括:Fig. 1 is a schematic flow chart of the photographing method provided by the embodiment of the present application, as shown in Fig. 1, including:
步骤110,接收第一输入;
具体地,电子设备接收用户的第一输入,该电子设备可以是指智能手机、平板电脑、云台终端或者相机等设备。Specifically, the electronic device receives the user's first input, and the electronic device may refer to a device such as a smart phone, a tablet computer, a PTZ terminal, or a camera.
本申请中所描述用户的第一输入可以指用户对于拍摄预览界面中拍摄标识的输入,该第一输入具体可以是点击或者长按的操作。The user's first input described in this application may refer to the user's input on the shooting identifier in the shooting preview interface, and the first input may specifically be a click or a long press operation.
本申请中的拍摄预览界面具体可以是指显示长曝光拍摄的拍摄图像的界面,该拍摄标识可以触发长曝光拍摄开始或者结束。The shooting preview interface in the present application may specifically refer to an interface displaying a long-exposure shooting image, and the shooting mark may trigger the start or end of the long-exposure shooting.
本申请中的标识用于指示信息的文字、符号、图像等,可以以控件或者其他容器作为显示信息的载体,包括但不限于文字标识、符号标识、图像标识。The logos in this application are used to indicate text, symbols, images, etc. of information, and controls or other containers may be used as carriers for displaying information, including but not limited to text logos, symbol logos, and image logos.
步骤120,响应于所述第一输入,采用长曝光模式进行拍摄,并实时检测电子设备的抖动量;
具体地,本申请中所描述的长曝光模式具体可以是通过流光快门模式进行拍摄,也可以是通过延时摄影模式进行拍摄,或者是其它通过长曝光方式进行拍摄的模式。Specifically, the long exposure mode described in this application may specifically be shooting in streamer shutter mode, or shooting in time-lapse photography mode, or other shooting modes in long exposure mode.
电子设备响应于第一输入,采用长曝光模式进行拍摄,即会开始进行长曝光拍摄,由于长曝光拍摄是利用长曝光的方式,记录拍摄对象的连续运动状态的图像,因此电子设备在采用长曝光模式进行拍摄后,会持续处于长曝光拍摄状态下,直至收到结束拍摄的指令。In response to the first input, the electronic device adopts the long-exposure mode for shooting, and then starts long-exposure shooting. Since the long-exposure shooting uses a long-exposure method to record the image of the continuous motion state of the subject, the electronic device is using the long-exposure mode. After shooting in exposure mode, it will continue to be in the state of long exposure shooting until an instruction to end shooting is received.
由于在长曝光模式的拍摄过程中,若拍摄的电子设备移动或晃动,都会导致最终拍摄的图像出现明显的晃动,因此在长曝光的拍摄过程中需要进行拍摄的电子设备保持稳定。During the shooting process of the long exposure mode, if the shooting electronic device moves or shakes, the final shot image will be obviously shaken, so the shooting electronic device needs to be kept stable during the long exposure shooting process.
本申请中所描述的电子设备的抖动量,可以是指由于电子设备的抖动导致的,也可以是由于电子设备的平移导致的,还可能是拍摄图像中的预先设定的静止物移动导致的。The amount of shake of the electronic device described in this application may be caused by the shake of the electronic device, the translation of the electronic device, or the movement of a preset stationary object in the captured image .
针对于电子设备本体的抖动,可以通过电子设备中的陀螺仪获取的电子设备实时角速度变化数据来进行检测。For the shaking of the electronic device body, it can be detected by the real-time angular velocity change data of the electronic device acquired by the gyroscope in the electronic device.
由于在电子设备平移的过程中,陀螺仪不会产生角速度变化数据,并且在拍摄图像中预先设定的静止物发送移动时,电子设备也没有发生抖动,此时无法通过监控电子设备的角速度变化数据来进行检测,但是拍摄图像也会发生抖动,因此本申请中还可以同时通过相邻两帧拍摄图像中静止物的移动量,从而有效检测拍摄图像是否发生抖动。Since the gyroscope does not generate angular velocity change data during the translation of the electronic equipment, and the electronic equipment does not shake when the preset static object in the captured image is sent to move, it is impossible to monitor the angular velocity change of the electronic equipment at this time. Data is used for detection, but the captured image will also shake, so in this application, it is also possible to simultaneously detect whether the captured image shakes through the amount of movement of the still object in the captured image of two adjacent frames.
也就是说本申请中的抖动量可以是指实时角速度量,也可以是相邻两帧拍摄图像中静止物的移动量。That is to say, the amount of shaking in this application may refer to the amount of real-time angular velocity, or the amount of movement of a still object in two adjacent frames of captured images.
步骤130,在所述抖动量大于第一预设抖动阈值的情况下,结束拍摄。
本申请中所描述的第一预设抖动阈值,具体可以是根据当前拍摄图像对应的拍摄场景类型自动确定的,也可以是用户在采用长曝光模式进行拍摄前预先设定的,设定方式可以时预先选择拍摄场景类型,或者是预先直接设定抖动阈值。The first preset shake threshold described in this application may be specifically determined automatically according to the shooting scene type corresponding to the currently captured image, or it may be preset by the user before shooting in long exposure mode. The setting method may be Pre-select the shooting scene type, or directly set the shake threshold in advance.
每个拍摄场景类型都会对应不同的第一预设抖动阈值,如“夜景涂鸦”、“流水瀑布”场景,抖动对拍摄的影响较小,系统就会设定一个较大的第一预设抖动阈值,“车水马龙”、“绚丽星轨”场景,抖动对拍摄的影响较大,系统就会设定一个较小的第一预设抖动阈值。Each shooting scene type will correspond to a different first preset shake threshold, such as "night scene graffiti" and "flowing waterfall" scenes. If shake has little impact on shooting, the system will set a larger first preset shake Threshold, in the scenes of "heavy traffic" and "beautiful star trails", the shake has a greater impact on shooting, so the system will set a smaller first preset shake threshold.
本申请实施例中第一预设抖动阈值的设定,是代表当抖动量超过第一预设抖动阈值时,会对最终的拍摄图像造成较大的影 响,导致最终拍摄失败,因此在本申请实施例中,当该抖动量大于第一预设抖动阈值的情况下,则电子设备会自动结束拍摄,此时仍能保留之前未受到影响的拍摄图像。The setting of the first preset shake threshold in the embodiment of the present application means that when the amount of shake exceeds the first preset shake threshold, it will have a great impact on the final captured image, resulting in the failure of the final capture. Therefore, in this application In the embodiment, when the shaking amount is greater than the first preset shaking threshold, the electronic device will automatically end the shooting, and at this time, the previously unaffected shooting images can still be retained.
在本申请实施例中,在采用长曝光模式进行拍摄后,即开始通过拍摄图像中的静止物的变化量以及电子设备的角速度变化量,从而检测电子设备的抖动量,而在电子设备的抖动量过大的情况下,会导致照片拍摄失败,因此本申请中在检测到抖动量大于第一预设抖动阈值的情况下,自动结束拍摄,避免抖动导致前期长时间的拍摄失败,提高长曝光拍摄的成功率。In the embodiment of the present application, after shooting in the long exposure mode, the amount of shake of the electronic device is detected by the amount of change of the still object in the captured image and the amount of change of the angular velocity of the electronic device. If the amount is too large, it will lead to the failure of photo shooting. Therefore, in this application, when the amount of shake is detected to be greater than the first preset shake threshold, the shooting will be automatically ended, so as to avoid the long-term shooting failure caused by the shake in the early stage and improve the long exposure. shooting success rate.
可选地,在所述接收用户的第一输入之前,还包括:Optionally, before receiving the first input from the user, the method further includes:
对拍摄图像进行场景识别,得到场景识别结果;Carry out scene recognition on the captured image, and obtain the scene recognition result;
根据所述场景识别结果确定第一预设抖动阈值和第二预设抖动阈值,所述第一预设抖动阈值大于所述第二预设抖动阈值。A first preset shake threshold and a second preset shake threshold are determined according to the scene recognition result, the first preset shake threshold is greater than the second preset shake threshold.
具体地,本申请实施例中所描述的第二预设抖动阈值是一个小于第一预设抖动阈值的阈值。Specifically, the second preset jitter threshold described in the embodiment of the present application is a threshold smaller than the first preset jitter threshold.
该第二预设抖动阈值的设定是指,在抖动量超过第二预设抖动阈值,但是尚未超过第一预设抖动阈值的情况下,已经可能导致最终拍摄失败,需要用户介入进行调整,因此第二预设抖动阈值可以理解为一个警示阈值,The setting of the second preset shake threshold means that when the amount of shake exceeds the second preset shake threshold but has not exceeded the first preset shake threshold, the final shooting may fail, and user intervention is required for adjustment. Therefore, the second preset jitter threshold can be understood as a warning threshold,
本申请实施例中可以通过常用的图像场景识别算法来实现场景识别功能,例如实现场景识别的神经网络模型,本申请实施例并不对此进行限定。In the embodiment of the present application, a commonly used image scene recognition algorithm may be used to realize the scene recognition function, for example, a neural network model for realizing scene recognition, which is not limited in the embodiment of the present application.
本申请实施例中的场景识别结果,是指拍摄图像的拍摄场景对应的场景识别结果,本申请中的场景识别结果可以包括“夜景涂鸦”、“流水瀑布”、“车水马龙”或“绚丽星轨”场景等等。The scene recognition result in the embodiment of this application refers to the scene recognition result corresponding to the shooting scene of the captured image. The scene recognition result in this application may include "night scene graffiti", "flowing waterfall", "heavy traffic" or "gorgeous star track". "Scene and so on.
而抖动量对于不同场景识别结果的影响往往也不同,对于受抖动量影响较大的场景识别结果,对应会设定一个较小的第一预设抖动阈值和第二预设抖动阈值;对于受抖动量影响较小的场景识别结果,对应会设定一个较大的第一预设抖动阈值和第二预设抖动阈值;The impact of the amount of shaking on the recognition results of different scenes is often different. For the recognition results of scenes that are greatly affected by the amount of shaking, a smaller first and second preset shaking thresholds will be set correspondingly; The scene recognition result with less impact on the amount of jitter corresponds to setting a larger first preset jitter threshold and second preset jitter threshold;
如“夜景涂鸦”、“流水瀑布”场景,抖动对拍摄的影响较小,系统就会设定一个较大的第一预设抖动阈值和第二预设抖动阈值,“车水马龙”、“绚丽星轨”场景,抖动对拍摄的影响较大,系统就会设定一个较小的第一预设抖动阈值和第二预设抖动阈值。Such as "Night Scene Graffiti" and "Waterfall" scenes, the shake has less impact on the shooting, the system will set a larger first preset shake threshold and second preset shake threshold. In the "track" scene, the shake has a greater impact on the shooting, the system will set a smaller first preset shake threshold and second preset shake threshold.
在本申请实施例中,通过电子设备对拍摄图像进行场景识别,充分考虑不同场景的特点,根据不同的场景识别结果自动设定其对应的第一预设抖动阈值和第二预设抖动阈值,也就是说能够合理的自动设定第一预设抖动阈值和第二预设抖动阈值,可以有效保证判断的合理性和准确性。In the embodiment of the present application, electronic equipment is used to perform scene recognition on captured images, fully considering the characteristics of different scenes, and automatically setting the corresponding first preset shake threshold and second preset shake threshold according to different scene recognition results, That is to say, the first preset jitter threshold and the second preset jitter threshold can be reasonably and automatically set, which can effectively ensure the rationality and accuracy of the judgment.
可选地,所述实时检测电子设备的抖动量之后,还包括:Optionally, after the real-time detection of the shaking amount of the electronic device, it also includes:
在所述抖动量处于第一预设范围内的情况下,输出调整提示信息,所述第一预设范围是基于所述第一预设抖动阈值和所述第二预设抖动阈值确定的。When the shake amount is within a first preset range, output adjustment prompt information, where the first preset range is determined based on the first preset shake threshold and the second preset shake threshold.
具体地,本申请中的所描述的第一预设范围,是指大于第二预设抖动阈值小于第一预设抖动阈值的范围。Specifically, the first preset range described in this application refers to a range that is greater than the second preset shake threshold and smaller than the first preset shake threshold.
由于在抖动量超过第二预设抖动阈值的情况下,此时电子设备发出调整提示信息,提醒对电子设备进行调整,避免抖动,也可以提醒用户结束拍摄。When the amount of shaking exceeds the second preset shaking threshold, the electronic device sends an adjustment prompt message to remind the electronic device to adjust to avoid shaking, and also reminds the user to end shooting.
由于在抖动量超过第一预设抖动阈值的情况下,会自动结束拍摄,因此只有在抖动量大于第二预设抖动阈值小于第一预设抖 动阈值,即处于第一预设范围内时,才会输出调整提示信息,提示用户进行调整。Since the shooting will automatically end when the amount of shaking exceeds the first preset shaking threshold, only when the shaking amount is greater than the second preset shaking threshold and smaller than the first preset shaking threshold, that is, when it is within the first preset range, Only then will the adjustment prompt message be output to prompt the user to make adjustments.
本申请中的调整提示信息可以是指结合电子设备的用户界面及语音提示,例如在抖动量处于第一预设范围内的情况下,拍摄界面周边开始显示闪烁效果,也可以是电子设备发出提示声,或者是在拍摄界面周边开始显示闪烁效果的同时发出提示声。The adjustment prompt information in this application may refer to the combination of the user interface and the voice prompt of the electronic device, for example, when the shaking amount is within the first preset range, the flickering effect will start to be displayed around the shooting interface, or the electronic device may issue a prompt sound, or a prompt sound when the flickering effect starts to appear around the shooting interface.
用户根据调整提示信息,进一步观察当前的拍摄画面,若其不想中断此次拍摄,则可以选择调高第一预设抖动阈值和第二预设抖动阈值,若用户判断需要中断此次拍摄,则可以选择手动直接结束拍摄。According to the adjustment prompt information, the user further observes the current shooting screen. If he does not want to interrupt the shooting, he can choose to increase the first preset shake threshold and the second preset shake threshold. If the user judges that the shooting needs to be interrupted, then You can choose to manually end the shooting directly.
在本申请实施例中,通过设定第一预设范围,使得在抖动量尚未超过第一预设抖动阈值但是超过了第二预设抖动阈值的情况下,提前输出调整提示信息,提示用户介入操作,可以在自动结束长曝光之前,给用户提供一个介入的机会,可以进一步提高拍摄成功率。In the embodiment of the present application, by setting the first preset range, when the amount of shaking has not exceeded the first preset shaking threshold but exceeds the second preset shaking threshold, an adjustment prompt message is output in advance to prompt the user to intervene The operation can provide the user with an opportunity to intervene before the long exposure is automatically ended, which can further improve the success rate of shooting.
可选地,所述实时检测电子设备的抖动量之后,还包括:Optionally, after the real-time detection of the shaking amount of the electronic device, it also includes:
在连续N个所述抖动量均处于第一预设范围内的情况下,结束拍摄,所述第一预设范围是基于所述第一预设抖动阈值和所述第二预设抖动阈值确定的,N为大于第一预设数量的正整数。In the case where N consecutive shake amounts are within a first preset range, the shooting is ended, and the first preset range is determined based on the first preset shake threshold and the second preset shake threshold , N is a positive integer greater than the first preset number.
具体地,本申请中所描述的连续N个抖动量,具体是指在连续的时间段内获取的N个抖动量,N的具体数目可以预先设定。Specifically, the N consecutive jitter quantities described in this application specifically refer to N jitter quantities acquired within a continuous time period, and the specific number of N can be preset.
连续N个所述抖动量均处于第一预设范围内的情况下,具体是指实时获取的抖动量处于第一预设范围内的时间已经超过了预设的时间,而此时用户一直没有介入,则为了保证最终拍摄成功,会自动结束拍摄。In the case where N consecutive jitter values are all within the first preset range, it specifically means that the time for which the real-time obtained jitter values are within the first preset range has exceeded the preset time, and at this time the user has not Intervention, in order to ensure the success of the final shooting, it will automatically end the shooting.
在本申请实施例中,设定了在连续N个所述抖动量均处于第 一预设范围内的情况下,结束拍摄的判断条件,可以有效避免在输出调整提示信息后,一直没有用户介入,而导致拍摄失败的可能,能够有效提高拍摄成功率。In the embodiment of the present application, the judging condition for ending the shooting is set when N consecutive shaking amounts are all within the first preset range, which can effectively avoid no user intervention after outputting the adjustment prompt information , and lead to the possibility of shooting failure, which can effectively improve the success rate of shooting.
可选地,在所述根据所述场景识别结果确定第一预设抖动阈值和第二预设抖动阈值之后,还包括:Optionally, after determining the first preset shake threshold and the second preset shake threshold according to the scene recognition result, the method further includes:
在拍摄预览界面中显示第一标识,所述第一标识包括第一子标识、第二子标识和防抖监控标识;Displaying a first logo in the shooting preview interface, the first logo includes a first sub-logo, a second sub-logo, and an anti-shake monitoring logo;
其中,所述第一子标识是基于所述第一预设抖动阈值确定的,所述第二子标识是基于所述第二预设抖动阈值确定的,所述抖动监控标识是基于拍摄图像中的静止物确定的。Wherein, the first sub-identifier is determined based on the first preset shake threshold, the second sub-identifier is determined based on the second preset shake threshold, and the shake monitoring identifier is based on The stationary object is determined.
具体地,本申请中所描述的拍摄预览界面可以是指长曝光拍摄过程中的拍摄页面。Specifically, the shooting preview interface described in this application may refer to the shooting page in the long exposure shooting process.
本申请中的第一字标识可以用于表征长曝光拍摄过程中表示抖动容忍度的第一预设抖动阈值,其具体可以是以标识框的方式显示在拍摄预览界面中。The first word mark in this application can be used to characterize the first preset shake threshold value representing the shake tolerance during long-exposure shooting, which can be displayed in the shooting preview interface in the form of a mark box.
本申请中的第二子标识可以用于表征长曝光拍摄过程中表示抖动容忍度的第二预设抖动阈值,其具体可以是以标识框的方式显示在第一标识的内容。The second sub-indicator in this application may be used to characterize the second preset shake threshold representing the shake tolerance during long-exposure shooting, which may specifically be displayed in the first sign in the form of a sign box.
本申请中所描述的抖动监控标识是根据拍摄图像中的静止物确定的,该静止物是指通常不会移动的主体,例如建筑物,石头等等。由于静止物通常不会移动,因此当检测到相邻两帧拍摄图像的静止物发生变化时,该抖动监控标识也会随之移动。因此抖动监控标识可以表征拍摄画面的抖动情况,抖动监控标识在拍摄界面中的移动量,可以用于表征上述抖动量。The shake monitoring identification described in this application is determined according to the still object in the captured image, and the still object refers to a subject that usually does not move, such as a building, a stone, and the like. Since the still objects usually do not move, when it is detected that the still objects in two adjacent frames of captured images change, the shaking monitoring mark will also move accordingly. Therefore, the shaking monitoring mark can represent the shaking of the shooting picture, and the movement amount of the shaking monitoring mark in the shooting interface can be used to represent the above shaking amount.
可选地,本申请中第一标识中的第一子标识和第二子标识可以是以直线的方式显示,此时防抖监控标识处于第一子标识和第 二子标识之间。Optionally, in the present application, the first sub-identification and the second sub-identification in the first identification may be displayed in a straight line, and at this time, the anti-shake monitoring identification is between the first sub-identification and the second sub-identification.
可选地,本申请中的第一标识可以是,在第一子标识的显示区域内,显示有第二子标识,而第二子标识的显示区域内,显示有防抖监控标识。Optionally, the first sign in this application may be that the second sub-mark is displayed in the display area of the first sub-mark, and the anti-shake monitor sign is displayed in the display area of the second sub-mark.
图2为本申请实施例提供的拍摄预览界面示意图,如图2所示,在拍摄预览界面21中,显示有第一字标识22、第二子标识23和抖动监控标识24,若抖动监测标识24移动范围始终在第二子标识23范围内则说明本次拍摄抖动较小、稳定性较好;若抖动监测标识24处于第二子标识23和第一子标识22之间,则说明本次拍摄抖动略大,此时在拍摄预览界面中提示“当前手机抖动较大,请保持手机稳定或结束拍摄”,用户可以手动选择结束拍摄或者继续拍摄;若抖动监测标识24超出第一子标识22的范围,则说明本次拍摄抖动值超过第一预设抖动阈值,系统立刻结束当前拍摄,并提示“出现抖动拍摄结束”。Fig. 2 is the schematic diagram of the shooting preview interface provided by the embodiment of the present application. As shown in Fig. 2, in the
在本申请实施例中,将第一预设抖动阈值、第二预设抖动阈值和电子设备的抖动量通过可视化的方式显示在拍摄页面中,便于用户直观的了解到当前的抖动量与第一预设抖动阈值、第二预设抖动阈值之间的关系,从而更好的在长曝光拍摄的过程中进调整,提高拍摄成功率。In the embodiment of the present application, the first preset shake threshold, the second preset shake threshold, and the shake amount of the electronic device are displayed on the shooting page in a visual way, so that users can intuitively understand the difference between the current shake amount and the first shake amount. The relationship between the preset shake threshold and the second preset shake threshold, so as to better adjust during the long-exposure shooting process and improve the shooting success rate.
可选地,所述在拍摄预览界面中显示第一标识之后,所述方法还包括:Optionally, after the first logo is displayed in the shooting preview interface, the method further includes:
接收对所述第一标识的第二输入;receiving a second input of the first identification;
响应于所述第二输入,在所述拍摄预览界面中显示抖动阈值调整界面;In response to the second input, displaying a shake threshold adjustment interface in the shooting preview interface;
接收用户对于所述抖动阈值调整界面的第三输入;receiving a third input from the user on the shake threshold adjustment interface;
响应于所述第三输入,对所述第一预设抖动阈值和第二预设 抖动阈值中的至少一种进行调整。At least one of the first preset shake threshold and the second preset shake threshold is adjusted in response to the third input.
具体地,本申请实施例中的第二输入,可以是对第一标识的输入,也可以是对第一标识中第一子标识或抖动监控标识的输入。Specifically, the second input in this embodiment of the present application may be an input to the first identification, or may be an input to the first sub-identification or the shake monitoring identification in the first identification.
本申请实施例中所描述的第二输入具体可以是长按的输入或者点击的输入。The second input described in the embodiment of the present application may specifically be a long press input or a click input.
电子设备响应于第二输入,在拍摄预览界面中显示抖动阈值调整界面,该抖动阈值调整界面用于提供第一预设抖动阈值和第二预设抖动阈值的调整选项。In response to the second input, the electronic device displays a shake threshold adjustment interface in the shooting preview interface, and the shake threshold adjustment interface is used to provide adjustment options for the first preset shake threshold and the second preset shake threshold.
图3为本申请实施例提供的抖动阈值调整界面的示意图,如图3所示,在拍摄预览界面21中显示的抖动阈值调整界面31中包含第一预设抖动阈值调整子界面32和第二预设抖动阈值调整子界面33,用户可以点击第一预设抖动阈值调整子界面或第二预设抖动阈值调整子界面中的加号和减号来调整抖动阈值调整。FIG. 3 is a schematic diagram of the shake threshold adjustment interface provided by the embodiment of the present application. As shown in FIG. In the preset shake
本申请中的第三输入具体可以是用户的点击操作,或者是用户的滑动操作。The third input in this application may specifically be a user's click operation, or a user's slide operation.
本申请中的第三输入可以是调整第一预设抖动阈值或第二预设抖动阈值的输入,也可以是同时调整第一预设抖动阈值和第二预设抖动阈值的输入。The third input in this application may be an input for adjusting the first preset jitter threshold or the second preset jitter threshold, or may be an input for simultaneously adjusting the first preset jitter threshold and the second preset jitter threshold.
在本申请实施例中,用户可以在拍摄前或拍摄过程中都可以随对第一预设抖动阈值或第二预设抖动阈值进行调整,以适应不同的拍摄情况,提高拍摄成功率。In the embodiment of the present application, the user can adjust the first preset shake threshold or the second preset shake threshold before shooting or during shooting, so as to adapt to different shooting situations and improve the success rate of shooting.
可选地,所述在拍摄预览界面中显示第一标识之后,所述方法还包括:Optionally, after the first logo is displayed in the shooting preview interface, the method further includes:
从所述拍摄图像中确定所述第一子标识对应的拍摄子图像;determining a captured sub-image corresponding to the first sub-identity from the captured image;
对所述拍摄子图像进行静止物分析,得到所述拍摄图像的静 止物。Perform still object analysis on the captured sub-image to obtain the still object of the captured image.
具体地,本申请实施例中所描述的第一子标识对应的拍摄子图像,可以是指显示在第一子标识中的拍摄子图像,用户可以移动第一子标识的位置,来选取不同的拍摄子图像。Specifically, the captured sub-image corresponding to the first sub-identity described in the embodiment of the present application may refer to the captured sub-image displayed in the first sub-identity, and the user can move the position of the first sub-identity to select a different Take a sub image.
本申请实施例中所描述的静止物分析具体可以是通过分割算法对拍摄子图像进行分割处理,然后将分割处理后的图像进行语义识别,根据语义识别结果,筛选出拍摄图像中的静止物。The static object analysis described in the embodiments of the present application may specifically segment the captured sub-images through a segmentation algorithm, then perform semantic recognition on the segmented images, and filter out the static objects in the captured images according to the semantic recognition results.
另一方面,本申请中拍摄图像的静止物,还可以是用户点击选中拍摄图像中的目标区域,通过语义识别和分割算法对目标区域进行分析,筛选出拍摄图像中的静止物。On the other hand, the still object in the captured image in this application may also be the target area in the captured image selected by the user, and the target area is analyzed through semantic recognition and segmentation algorithms to filter out the still object in the captured image.
在本申请实施例中,通过拍摄图像中静止物的确定,可以利用静止物的特性,根据相邻两帧图像的静止物的变化量,来确定拍摄的抖动量,帮助提高拍摄的成功率。In the embodiment of the present application, by determining the still object in the captured image, the characteristics of the still object can be used to determine the shake amount of the shooting according to the change amount of the still object in two adjacent frames of images, helping to improve the success rate of shooting.
可选地,所述电子设备的抖动量的检测,包括:Optionally, the detection of the shake amount of the electronic device includes:
基于相邻两帧拍摄图像中静止物的变化量,确定所述电子设备的抖动量;Determine the shake amount of the electronic device based on the change amount of the still object in the captured images of two adjacent frames;
或,基于所述电子设备的角速度变化量,确定所述电子设备的抖动量。Or, based on the angular velocity variation of the electronic device, determine the shake amount of the electronic device.
具体地,本申请中所描述的相邻两帧拍摄图像是指在长曝光拍摄过程中时间上连续的两帧拍摄图像。Specifically, the two adjacent frames of captured images described in this application refer to two frames of captured images that are temporally continuous during the long-exposure shooting process.
例如,M帧拍摄图像中的静止物与M-1帧拍摄图像中静止物的变化量,该变化量可以体现为静止物之间发生像素变化,该抖动量即是指像素变化量。For example, the amount of change between the still object in the M frames of captured images and the still object in the M−1 frame of captured images can be reflected in pixel changes between the still objects, and the amount of jitter refers to the amount of pixel change.
另一方面,电子设备自身在发生抖动时,电子设备中的陀螺仪能够检测到其自身的实时角速度变化数据,该实时角速度变化数据即为电子设备的抖动量。On the other hand, when the electronic device itself shakes, the gyroscope in the electronic device can detect its own real-time angular velocity change data, and the real-time angular velocity change data is the shaking amount of the electronic device.
在本申请实施例中,通过从多个角度来检测电子设备的抖动量,可以进一步保证抖动量的准确度,进而有效保证拍摄的顺利进行。In the embodiment of the present application, by detecting the shaking amount of the electronic device from multiple angles, the accuracy of the shaking amount can be further ensured, thereby effectively ensuring smooth shooting.
可选的,流光快门是长曝光拍摄中的一个常用类型,本申请实施例中以流光快门功能的拍摄为例,图4为本申请实施例提供的拍摄整体流程示意图,如图4所示,包括:步骤410,进入流光快门功能;步骤420,用户可以根据需求自行设定预设阈值,也可以是自动识别拍摄图像的场景,根据场景识别结果设定预设阈值,同时在拍摄页面中显示包括第一子标识和抖动监控标识的第一标识;步骤430,根据用户的拍摄指令,开始流光快门拍摄;步骤440,实时检测电子设备的抖动量;步骤450,判定电子设备的抖动量是否超过预设阈值,在电子设备的抖动量超过预设阈值的情况下,自动进入步骤470,结束拍摄;在判定电子设备的抖动量接近预设阈值的情况下,进入步骤460,输出调整提示信息,用户选择是否结束拍摄,若用户选择继续拍摄则回到步骤440,继续实时检测电子设备的抖动量,若用户选择结束拍摄,则进入步骤470,结束拍摄。Optionally, the streamer shutter is a commonly used type in long-exposure shooting. In the embodiment of the present application, the shooting with the streamer shutter function is taken as an example. FIG. 4 is a schematic diagram of the overall shooting process provided by the embodiment of the present application, as shown in FIG. 4 , Including:
需要说明的是,本申请实施例提供的拍摄方法,执行主体可以为拍摄装置,或者该拍摄装置中的用于执行拍摄方法的控制模块。本申请实施例中以拍摄装置执行拍摄方法为例,说明本申请实施例提供的拍摄装置。It should be noted that, the shooting method provided in the embodiment of the present application may be executed by a shooting device, or a control module in the shooting device for executing the shooting method. In the embodiment of the present application, taking the photographing device executing the photographing method as an example, the photographing device provided in the embodiment of the present application is described.
图5为本申请实施例中所描述的拍摄装置结构示意图,如图5所示,包括:接收单元510、拍摄单元520和结束单元530;其中,接收单元510用于接收用户的第一输入;其中,拍摄单元520用于响应于所述第一输入,采用长曝光模式进行拍摄,并实时检测电子设备的抖动量;其中,结束单元530用于在所述抖动 量大于第一预设抖动阈值的情况下,结束拍摄。FIG. 5 is a schematic structural diagram of the photographing device described in the embodiment of the present application. As shown in FIG. 5 , it includes: a receiving
可选地,所述装置还包括显示单元;Optionally, the device further includes a display unit;
所述显示单元用于在拍摄预览界面中显示第一标识,所述第一标识包括第一子标识,所述第一子标识中包括抖动监控标识;The display unit is configured to display a first mark in the shooting preview interface, the first mark includes a first sub-mark, and the first sub-mark includes a shake monitoring mark;
其中,所述第一标识是基于所述第一预设抖动阈值确定的,所述第一子标识是基于所述第二预设抖动阈值确定的,所述抖动监控标识是基于拍摄图像中的静止物确定的。Wherein, the first identifier is determined based on the first preset shake threshold, the first sub-identifier is determined based on the second preset shake threshold, and the shake monitor identifier is based on the Fixed objects.
可选地,所述装置还包括识别单元;Optionally, the device further includes an identification unit;
所述识别单元,用于对拍摄图像进行场景识别,得到场景识别结果;The recognition unit is configured to perform scene recognition on the captured image to obtain a scene recognition result;
根据所述场景识别结果确定第一预设抖动阈值和第二预设抖动阈值,所述第一预设抖动阈值大于所述第二预设抖动阈值。A first preset shake threshold and a second preset shake threshold are determined according to the scene recognition result, the first preset shake threshold is greater than the second preset shake threshold.
可选地,所述装置还包括提示单元;Optionally, the device further includes a prompt unit;
所述提示单元,用于在所述抖动量处于第一预设范围内的情况下,输出调整提示信息,所述第一预设范围是基于所述第一预设抖动阈值和所述第二预设抖动阈值确定的。The prompting unit is configured to output adjustment prompt information when the shake amount is within a first preset range, the first preset range being based on the first preset shake threshold and the second preset shake threshold. The preset jitter threshold is determined.
可选地,所述结束单元还用于在连续N个所述抖动量均处于第一预设范围内的情况下,结束拍摄,所述第一预设范围是基于所述第一预设抖动阈值和所述第二预设抖动阈值确定的,N为大于第一预设数量的正整数。Optionally, the ending unit is further configured to end the shooting when N consecutive shakes are within a first preset range, and the first preset range is based on the first preset shake The threshold is determined by the second preset jitter threshold, and N is a positive integer greater than the first preset number.
可选地,所述装置还包括调整单元,所述接收单元还用于接收对所述第一标识的第二输入;Optionally, the device further includes an adjustment unit, and the receiving unit is further configured to receive a second input to the first identifier;
所述显示单元,还用于响应于所述第二输入,在所述拍摄预览界面中显示抖动阈值调整界面;The display unit is further configured to display a shaking threshold adjustment interface in the shooting preview interface in response to the second input;
所述接收单元用于接收用户对于所述抖动阈值调整界面的第三输入;The receiving unit is configured to receive a third input from the user on the shake threshold adjustment interface;
所述调整单元用于响应于所述第三输入,对所述第一预设抖动阈值和第二预设抖动阈值中的至少一种进行调整。The adjustment unit is configured to adjust at least one of the first preset shake threshold and the second preset shake threshold in response to the third input.
可选地,所述装置还包括分析单元;Optionally, the device also includes an analysis unit;
所述分析单元用于从所述拍摄图像中确定所述第一子标识对应的拍摄子图像;The analysis unit is configured to determine a captured sub-image corresponding to the first sub-identity from the captured image;
对所述拍摄子图像进行静止物分析,得到所述拍摄图像的静止物。A still object analysis is performed on the captured sub-image to obtain a still object of the captured image.
可选地,所述分析单元,还用于基于相邻两帧拍摄图像中静止物的变化量,确定所述电子设备的抖动量;Optionally, the analysis unit is further configured to determine the amount of shaking of the electronic device based on the amount of change of the still object in the captured images of two adjacent frames;
或,基于所述电子设备的角速度变化量,确定所述电子设备的抖动量。Or, based on the angular velocity variation of the electronic device, determine the shake amount of the electronic device.
在本申请实施例中,在采用长曝光模式进行拍摄后,即开始通过拍摄图像中的静止物的变化量以及电子设备的角速度变化量,从而检测电子设备的抖动量,而在电子设备的抖动量过大的情况下,会导致照片拍摄失败,因此本申请中在检测到抖动量大于第一预设抖动阈值的情况下,自动结束拍摄,避免抖动导致前期长时间的拍摄失败,提高长曝光拍摄的成功率。In the embodiment of the present application, after shooting in the long exposure mode, the amount of shake of the electronic device is detected by the amount of change of the still object in the captured image and the amount of change of the angular velocity of the electronic device. If the amount is too large, it will lead to the failure of photo shooting. Therefore, in this application, when the amount of shake is detected to be greater than the first preset shake threshold, the shooting will be automatically ended, so as to avoid the long-term shooting failure caused by the shake in the early stage and improve the long exposure. shooting success rate.
本申请实施例中的拍摄装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申 请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The photographing device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的拍摄装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The photographing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 4 , and details are not repeated here to avoid repetition.
可选地,图6为本申请实施例中提供的电子设备结构示意图,如图6所示,本申请实施例还提供一种电子设备600,包括处理器601,存储器602,存储在存储器602上并可在所述处理器601上运行的程序或指令,该程序或指令被处理器601执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, FIG. 6 is a schematic structural diagram of an electronic device provided in the embodiment of the present application. As shown in FIG. The program or instruction that can run on the
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图7为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、以及处理器710等部件。The
本领域技术人员可以理解,电子设备700还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部 件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the
用户输入单元707用于接收用户的第一输入;The
处理器710响应于所述第一输入,采用长曝光模式进行拍摄,并控制传感器705实时检测电子设备的抖动量;The
处理器710用于在所述抖动量大于第一预设抖动阈值的情况下,结束拍摄。The
可选地,处理器710还用于对拍摄图像进行场景识别,得到场景识别结果;Optionally, the
根据所述场景识别结果确定第一预设抖动阈值和第二预设抖动阈值,所述第一预设抖动阈值大于所述第二预设抖动阈值。A first preset shake threshold and a second preset shake threshold are determined according to the scene recognition result, the first preset shake threshold is greater than the second preset shake threshold.
可选地,处理器710还用于在所述抖动量处于第一预设范围内的情况下,输出调整提示信息,所述第一预设范围是基于所述第一预设抖动阈值和所述第二预设抖动阈值确定的。Optionally, the
可选地,处理器710还用于在连续N个所述抖动量均处于第一预设范围内的情况下,结束拍摄,所述第一预设范围是基于所述第一预设抖动阈值和所述第二预设抖动阈值确定的,N为大于第一预设数量的正整数。Optionally, the
可选地,显示单元706用于在拍摄预览界面中显示第一标识,所述第一标识包括第一子标识,所述第一子标识中包括抖动监控标识;Optionally, the
其中,所述第一标识是基于所述第一预设抖动阈值确定的,所述第一子标识是基于所述第二预设抖动阈值确定的,所述抖动监控标识是基于拍摄图像中的静止物确定的。Wherein, the first identifier is determined based on the first preset shake threshold, the first sub-identifier is determined based on the second preset shake threshold, and the shake monitor identifier is based on the Fixed objects.
可选地,用户输入单元707用于接收对所述第一标识的第二输入;Optionally, the
显示单元706用于响应于所述第二输入,在所述拍摄预览界 面中显示抖动阈值调整界面;The
用户输入单元707用于接收用户对于所述抖动阈值调整界面的第三输入;The
处理器710还用于响应于所述第三输入,对所述第一预设抖动阈值和第二预设抖动阈值中的至少一种进行调整。The
可选地,处理器710还用于从所述拍摄图像中确定所述第一子标识对应的拍摄子图像;Optionally, the
对所述拍摄子图像进行静止物分析,得到所述拍摄图像的静止物。A still object analysis is performed on the captured sub-image to obtain a still object of the captured image.
可选地,处理器710还用于基于相邻两帧拍摄图像中静止物的变化量,确定所述电子设备的抖动量;Optionally, the
或,基于所述电子设备的角速度变化量,确定所述电子设备的抖动量。Or, based on the angular velocity variation of the electronic device, determine the shake amount of the electronic device.
在本申请实施例中,在采用长曝光模式进行拍摄后,即开始通过拍摄图像中的静止物的变化量以及电子设备的角速度变化量,从而检测电子设备的抖动量,而在电子设备的抖动量过大的情况下,会导致照片拍摄失败,因此本申请中在检测到抖动量大于第一预设抖动阈值的情况下,自动结束拍摄,避免抖动导致前期长时间的拍摄失败,提高长曝光拍摄的成功率。In the embodiment of the present application, after shooting in the long exposure mode, the amount of shake of the electronic device is detected by the amount of change of the still object in the captured image and the amount of change of the angular velocity of the electronic device. If the amount is too large, it will lead to the failure of photo shooting. Therefore, in this application, when the amount of shake is detected to be greater than the first preset shake threshold, the shooting will be automatically ended, so as to avoid the long-term shooting failure caused by the shake in the early stage and improve the long exposure. shooting success rate.
应理解的是,本申请实施例中,输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元706可包括显示面板7061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板7061。用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也 称为触摸屏。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器709可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。It should be understood that, in the embodiment of the present application, the
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above-mentioned photographing method embodiment is realized, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the various aspects of the above shooting method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括 没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that 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. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
Claims (19)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110646822.7 | 2021-06-10 | ||
| CN202110646822.7A CN113259592B (en) | 2021-06-10 | 2021-06-10 | Shooting method and device, electronic equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022257999A1 true WO2022257999A1 (en) | 2022-12-15 |
Family
ID=77187432
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/097781 Ceased WO2022257999A1 (en) | 2021-06-10 | 2022-06-09 | Photographing method and apparatus, electronic device, and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN113259592B (en) |
| WO (1) | WO2022257999A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118555487A (en) * | 2023-02-24 | 2024-08-27 | 荣耀终端有限公司 | Capture method, device and storage medium based on physical sensor |
| CN120178258A (en) * | 2025-05-23 | 2025-06-20 | 重庆捷程未来科技有限公司 | Laser ranging method and system |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113259592B (en) * | 2021-06-10 | 2023-04-18 | 维沃移动通信有限公司 | Shooting method and device, electronic equipment and storage medium |
| CN117795973A (en) * | 2021-12-17 | 2024-03-29 | 深圳市大疆创新科技有限公司 | Interaction method, device and equipment during shooting |
| CN120282018A (en) * | 2023-12-29 | 2025-07-08 | 荣耀终端股份有限公司 | Image photographing method, electronic device, and computer-readable storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001045361A (en) * | 1999-07-30 | 2001-02-16 | Hitachi Ltd | Imaging device |
| US20100302410A1 (en) * | 2009-01-16 | 2010-12-02 | Takuro Naito | Imaging apparatus |
| CN104994305A (en) * | 2015-06-12 | 2015-10-21 | 青岛海信电器股份有限公司 | Method and device for taking pictures |
| JP2018064158A (en) * | 2016-10-11 | 2018-04-19 | キヤノン株式会社 | Correction apparatus, control method of the same, imaging apparatus, program, and storage medium |
| CN113259592A (en) * | 2021-06-10 | 2021-08-13 | 维沃移动通信有限公司 | Shooting method, shooting device, electronic equipment and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106303217A (en) * | 2016-07-29 | 2017-01-04 | 努比亚技术有限公司 | A kind of associated image method and there is the mobile terminal of auxiliary imaging system |
| CN112689094B (en) * | 2020-12-28 | 2022-12-27 | 维沃移动通信有限公司 | Camera anti-shake prompting method and device and electronic equipment |
| CN112822412B (en) * | 2020-12-28 | 2023-04-07 | 维沃移动通信有限公司 | Exposure method, exposure device, electronic equipment and storage medium |
| CN112911149B (en) * | 2021-01-28 | 2022-08-16 | 维沃移动通信有限公司 | Image output method, image output device, electronic equipment and readable storage medium |
-
2021
- 2021-06-10 CN CN202110646822.7A patent/CN113259592B/en active Active
-
2022
- 2022-06-09 WO PCT/CN2022/097781 patent/WO2022257999A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001045361A (en) * | 1999-07-30 | 2001-02-16 | Hitachi Ltd | Imaging device |
| US20100302410A1 (en) * | 2009-01-16 | 2010-12-02 | Takuro Naito | Imaging apparatus |
| CN104994305A (en) * | 2015-06-12 | 2015-10-21 | 青岛海信电器股份有限公司 | Method and device for taking pictures |
| JP2018064158A (en) * | 2016-10-11 | 2018-04-19 | キヤノン株式会社 | Correction apparatus, control method of the same, imaging apparatus, program, and storage medium |
| CN113259592A (en) * | 2021-06-10 | 2021-08-13 | 维沃移动通信有限公司 | Shooting method, shooting device, electronic equipment and storage medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118555487A (en) * | 2023-02-24 | 2024-08-27 | 荣耀终端有限公司 | Capture method, device and storage medium based on physical sensor |
| CN120178258A (en) * | 2025-05-23 | 2025-06-20 | 重庆捷程未来科技有限公司 | Laser ranging method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113259592B (en) | 2023-04-18 |
| CN113259592A (en) | 2021-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113259592B (en) | Shooting method and device, electronic equipment and storage medium | |
| KR101772177B1 (en) | Method and apparatus for obtaining photograph | |
| CN109558008B (en) | Control method, control device, computer equipment and storage medium | |
| CN112954214B (en) | Shooting method, device, electronic equipment and storage medium | |
| CN112333382B (en) | Shooting method and device and electronic equipment | |
| CN113194253B (en) | Shooting method and device for removing reflection of image and electronic equipment | |
| CN108668080A (en) | Method, device, and electronic device for prompting the degree of lens dirt | |
| CN114422692B (en) | Video recording method and device and electronic equipment | |
| CN113709368A (en) | Image display method, device and equipment | |
| CN106331328B (en) | Information prompting method and device | |
| EP4161056B1 (en) | Anti-shake method, anti-shake apparatus, and electronic device | |
| CN112788233B (en) | Video shooting processing method and electronic equipment | |
| CN113315903B (en) | Image acquisition method and device, electronic equipment and storage medium | |
| CN112887623B (en) | Image generation method and device and electronic equipment | |
| CN112291480B (en) | Tracking focusing method, tracking focusing device, electronic device and readable storage medium | |
| WO2023083132A1 (en) | Photographing method and apparatus, and electronic device and readable storage medium | |
| CN112565605B (en) | Image display method and device and electronic equipment | |
| CN113866782A (en) | Image processing method and device and electronic equipment | |
| CN112165584A (en) | Video recording method, device, electronic device and readable storage medium | |
| CN114943791A (en) | Animation playback method, device, device and storage medium | |
| CN112333441A (en) | Camera detection method, device and electronic device | |
| CN114143455B (en) | Shooting method, device and electronic equipment | |
| CN112312024A (en) | Photographic processing method, device and storage medium | |
| CN113873147B (en) | Video recording method, device and electronic equipment | |
| CN114245017B (en) | Shooting method, device and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22819596 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22819596 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/04/2024) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22819596 Country of ref document: EP Kind code of ref document: A1 |