CN113259592B - Shooting method and device, electronic equipment and storage medium - Google Patents

Shooting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113259592B
CN113259592B CN202110646822.7A CN202110646822A CN113259592B CN 113259592 B CN113259592 B CN 113259592B CN 202110646822 A CN202110646822 A CN 202110646822A CN 113259592 B CN113259592 B CN 113259592B
Authority
CN
China
Prior art keywords
preset
shooting
threshold
identifier
shake
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.)
Active
Application number
CN202110646822.7A
Other languages
Chinese (zh)
Other versions
CN113259592A (en
Inventor
吴越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110646822.7A priority Critical patent/CN113259592B/en
Publication of CN113259592A publication Critical patent/CN113259592A/en
Priority to PCT/CN2022/097781 priority patent/WO2022257999A1/en
Application granted granted Critical
Publication of CN113259592B publication Critical patent/CN113259592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a storage medium, and belongs to the technical field of image processing. The method comprises the following steps: receiving a first input; responding to the first input, shooting in a long exposure mode, and detecting the shaking amount of the electronic equipment in real time; and under the condition that the shake amount is larger than a first preset shake threshold value, finishing shooting.

Description

Shooting method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a shooting method, a shooting device, electronic equipment and a storage medium.
Background
With the development of photography technology, conventional portrait and landscape photography cannot completely meet user requirements, and some more playable photography functions, such as a photography function through long exposure, are developed successively.
The continuous motion state of the shot object can be recorded through the shooting function of the long exposure, and the shocking effects of vehicle rail, star rail, waterfall atomization and the like are obtained. In the long exposure shooting process, ensuring the stability of the shooting equipment is the key for successful shooting, and keeping absolute still has very important significance on the shooting effect.
Therefore, how to increase the success rate of long exposure shooting has become an urgent problem to be solved in the industry.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device, electronic equipment and a storage medium, which can solve the problem of improving the success rate of long-exposure shooting.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes:
receiving a first input;
responding to the first input, shooting in a long exposure mode, and detecting the shaking amount of the electronic equipment in real time;
and under the condition that the shake amount is larger than a first preset shake threshold value, finishing shooting.
In a second aspect, an embodiment of the present application provides a shooting apparatus, including:
a receiving unit for receiving a first input;
the shooting unit is used for responding to the first input, adopting a long exposure mode to shoot, and detecting the shake quantity of the electronic equipment in real time;
and the ending unit is used for ending the shooting under the condition that the shake quantity is larger than a first preset shake threshold value.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the present application, after the long exposure mode is used for shooting, the amount of shake of the electronic device is detected by starting to shoot the amount of change of the stationary object in the image and the amount of change of the angular velocity of the electronic device, and if the amount of shake of the electronic device is too large, shooting failure may be caused.
Drawings
Fig. 1 is a schematic flow chart of a shooting method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a shooting preview interface provided in an embodiment of the present application;
FIG. 3 is a diagram illustrating a jitter threshold adjustment interface according to an embodiment of the present disclosure;
fig. 4 is a schematic view of an overall shooting flow provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a camera device described in an 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.
Detailed Description
The technical solutions in the embodiments of the present application will be described below clearly with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are all other embodiments obtained as part of the present application, and all fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
A shooting method, an apparatus, an electronic device, and a storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flow chart of a shooting method provided in an embodiment of the present application, and as shown in fig. 1, the shooting method includes:
step 110, receiving a first input;
specifically, an electronic device receives a first input of a user, where the electronic device may refer to a smart phone, a tablet computer, a pan-tilt terminal, or a camera.
The first input of the user described in this application may refer to an input of the user to the shooting identifier in the shooting preview interface, and the first input may specifically be an operation of clicking or long pressing.
The shooting preview interface in the present application may specifically refer to an interface that displays a shot image of long exposure shooting, and the shooting identifier may trigger the start or end of long exposure shooting.
The mark in the present application is used for indicating words, symbols, images and the like of information, and a control or other container can be used as a carrier for displaying information, including but not limited to a word mark, a symbol mark, an image mark.
Step 120, in response to the first input, shooting in a long exposure mode, and detecting the shake amount of the electronic device in real time;
specifically, the long exposure mode described in the present application may specifically be shooting in a streamer shutter mode, shooting in a time-lapse shooting mode, or other modes in which shooting is performed in a long exposure mode.
The electronic equipment responds to the first input, adopts the long exposure mode to shoot, namely, the long exposure shooting is started, and the long exposure shooting is used for recording images of a shooting object in a continuous motion state in a long exposure mode, so that the electronic equipment can be continuously in the long exposure shooting state after adopting the long exposure mode to shoot until receiving an instruction of finishing shooting.
During the shooting process in the long exposure mode, if the electronic device to be shot moves or shakes, the finally shot image obviously shakes, so that the electronic device to be shot remains stable during the shooting process in the long exposure mode.
The shake amount of the electronic device described in the present application may be caused by shaking of the electronic device, may be caused by translation of the electronic device, or may be caused by movement of a predetermined stationary object in a captured image.
For the shake of the electronic device body, the real-time angular velocity change data of the electronic device, which is acquired by a gyroscope in the electronic device, can be detected.
In the process of translation of the electronic device, the gyroscope does not generate angular velocity change data, and when a preset static object in a shot image is sent to move, the electronic device does not shake, and at the moment, the angular velocity change data of the electronic device cannot be monitored to detect, but the shot image also shakes, so that the moving amount of the static object in the shot images of two adjacent frames can be simultaneously used, and whether the shot image shakes or not can be effectively detected.
That is, the shake amount in the present application may be a real-time angular velocity amount or a moving amount of a stationary object in two adjacent frames of captured images.
And step 130, finishing shooting under the condition that the shake amount is larger than a first preset shake threshold value.
The first preset shaking threshold described in this application may specifically be automatically determined according to a shooting scene type corresponding to a currently shot image, or may be preset by a user before shooting in a long exposure mode, where the setting mode may be that a shooting scene type is selected in advance, or that a shaking threshold is directly set in advance.
Every shooting scene type all can correspond different first preset shake threshold value, if "night scene doodle", "flowing water waterfall" scene, the influence of shake to the shooting is less, and the system will set for a great first preset shake threshold value, "car water marlong", "gorgeous star rail" scene, and the shake is great to the influence of shooting, and the system will set for a less first preset shake threshold value.
In this embodiment of the present application, the setting of the first preset shaking threshold represents that when the shaking amount exceeds the first preset shaking threshold, the final captured image may be greatly affected, and the final capturing may fail, so in this embodiment of the present application, when the shaking amount is greater than the first preset shaking threshold, the electronic device may automatically end capturing, and at this time, the captured image that has not been affected before may still be retained.
In the embodiment of the present application, after the long exposure mode is used for shooting, the amount of shake of the electronic device is detected by starting to shoot the amount of change of the stationary object in the image and the amount of change of the angular velocity of the electronic device, and if the amount of shake of the electronic device is too large, shooting failure may be caused.
Optionally, before the receiving the first input of the user, the method further includes:
carrying out scene recognition on the shot image to obtain a scene recognition result;
and determining a first preset jitter threshold and a second preset jitter threshold according to the scene recognition result, wherein the first preset jitter threshold is greater than the second preset jitter 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 shaking threshold means that in the case that the shaking amount exceeds the second preset shaking threshold but does not exceed the first preset shaking threshold, the final shooting may fail, and needs user intervention to adjust, so that the second preset shaking threshold may be understood as a warning threshold,
in the embodiment of the present application, a scene recognition function, for example, a neural network model for realizing scene recognition, may be realized by using a common image scene recognition algorithm, which is not limited in the embodiment of the present application.
The scene recognition result in the embodiment of the application refers to a scene recognition result corresponding to a shooting scene of a shot image, and the scene recognition result in the embodiment of the application may include a night scene doodle, a running water waterfall, a car and water marlon, a gorgeous star rail scene, and the like.
The influence of the jitter amount on different scene recognition results is often different, and a first preset jitter threshold and a second preset jitter threshold which are smaller are correspondingly set for the scene recognition result which is greatly influenced by the jitter amount; correspondingly setting a first preset jitter threshold and a second preset jitter threshold which are larger for scene identification results which are less affected by the jitter amount;
if the scenes of 'night scene doodling' and 'running water waterfall' are used, the influence of shaking on shooting is small, the system can set a first large preset shaking threshold value and a second large preset shaking threshold value, and if the scenes of 'vehicle water marlong' and 'gorgeous star track' are used, the influence of shaking on shooting is large, and the system can set a first small preset shaking threshold value and a second small preset shaking threshold value.
In the embodiment of the application, scene recognition is performed on the shot image through the electronic device, characteristics of different scenes are fully considered, and the first preset shaking threshold and the second preset shaking threshold corresponding to the shot image are automatically set according to different scene recognition results, that is, the first preset shaking threshold and the second preset shaking threshold can be reasonably and automatically set, so that the reasonability and the accuracy of judgment can be effectively guaranteed.
Optionally, after detecting the jitter amount of the electronic device in real time, the method further includes:
and outputting adjustment prompt information under the condition that the jitter amount is within a first preset range, wherein the first preset range is determined based on the first preset jitter threshold and the second preset jitter threshold.
Specifically, the first preset range described in the present application refers to a range greater than the second preset jitter threshold and smaller than the first preset jitter threshold.
Under the condition that the shaking amount exceeds the second preset shaking threshold value, the electronic equipment sends out adjustment prompt information at the moment to remind the electronic equipment to adjust, shaking is avoided, and a user can be reminded to finish shooting.
Because the shooting is automatically finished under the condition that the shake amount exceeds the first preset shake threshold value, the adjustment prompt information is output only when the shake amount is larger than the second preset shake threshold value and smaller than the first preset shake threshold value, namely, the shake amount is within the first preset range, and a user is prompted to adjust the shake amount.
The adjustment prompt information in the present application may refer to combining a user interface of the electronic device and a voice prompt, for example, when the shake amount is within a first preset range, the periphery of the shooting interface starts to display a flicker effect, or the electronic device may send a prompt sound, or send a prompt sound while the periphery of the shooting interface starts to display the flicker effect.
And the user further observes the current shooting picture according to the adjustment prompt information, if the user does not want to interrupt the shooting, the user can select to increase the first preset shaking threshold and the second preset shaking threshold, and if the user judges that the shooting needs to be interrupted, the user can select to manually and directly finish the shooting.
In the embodiment of the application, by setting the first preset range, under the condition that the shake amount does not exceed the first preset shake threshold but exceeds the second preset shake threshold, the adjustment prompt information is output in advance to prompt the user to intervene the operation, so that the user can be provided with an intervention chance before the long exposure is automatically finished, and the shooting success rate can be further improved.
Optionally, after detecting the jitter amount of the electronic device in real time, the method further includes:
and under the condition that the N continuous jitter amounts are all in a first preset range, ending the shooting, wherein the first preset range is determined based on the first preset jitter threshold and the second preset jitter threshold, and N is a positive integer larger than a first preset number.
Specifically, the N consecutive jitter amounts described in this application specifically refer to N jitter amounts acquired in consecutive time periods, and the specific number of N may be preset.
When the N consecutive shake amounts are all within the first preset range, specifically, the time that the shake amount obtained in real time is within the first preset range exceeds the preset time, and at this time, the user has no intervention all the time, and in order to ensure that the final shooting is successful, the shooting is automatically ended.
In the embodiment of the application, the judgment condition for ending the shooting is set under the condition that the N continuous jitter amounts are all in the first preset range, so that the possibility of shooting failure caused by no user intervention after the adjustment prompt information is output can be effectively avoided, and the shooting success rate can be effectively improved.
Optionally, after the determining the first preset shaking threshold and the second preset shaking threshold according to the scene recognition result, the method further includes:
displaying a first identifier in a shooting preview interface, wherein the first identifier comprises a first sub-identifier, a second sub-identifier and an anti-shake monitoring identifier;
wherein the first sub-flag is determined based on the first preset shaking threshold, the second sub-flag is determined based on the second preset shaking threshold, and the shaking monitoring flag is determined based on a stationary object in the captured image.
Specifically, the shooting preview interface described in the present application may refer to a shooting page in a long-exposure shooting process.
The first word identifier in the application may be used to represent a first preset jitter threshold representing jitter tolerance in a long-exposure shooting process, and may be specifically displayed in a shooting preview interface in a manner of an identifier frame.
The second sub-identifier in the present application may be used to represent a second preset jitter threshold representing jitter tolerance in a long-exposure shooting process, and specifically may be content displayed on the first identifier in a manner of an identifier frame.
The shake monitoring mark described in the present application is determined based on a stationary object in a captured image, which is a subject that does not move in general, such as a building, a stone, or the like. Since the stationary object usually does not move, when the stationary object of the two adjacent captured images is detected to change, the shake monitoring mark moves along with the stationary object. Therefore, the shake monitoring mark can represent the shake condition of the shot picture, and the moving amount of the shake monitoring mark in the shooting interface can be used for representing the shake amount.
Optionally, in the present application, the first sub-identifier and the second sub-identifier in the first identifier may be displayed in a straight line, and at this time, the anti-shake monitoring identifier is located between the first sub-identifier and the second sub-identifier.
Optionally, the first identifier in this application may be that a second sub identifier is displayed in a display area of the first sub identifier, and an anti-shake monitoring identifier is displayed in a display area of the second sub identifier.
Fig. 2 is a schematic view of a shooting preview interface provided in an embodiment of the present application, and as shown in fig. 2, a first character identifier 22, a second sub identifier 23, and a shake monitoring identifier 24 are displayed in the shooting preview interface 21, and if a movement range of the shake monitoring identifier 24 is always within a range of the second sub identifier 23, it indicates that the shooting at this time is less in shake and better in stability; if the shake monitoring identifier 24 is located between the second sub-identifier 23 and the first sub-identifier 22, it indicates that the shake of the shooting is slightly large, and at this time, a shooting preview interface prompts that "the current mobile phone shakes greatly, please keep the mobile phone stable or end shooting", and the user can manually select to end shooting or continue shooting; if the shake monitoring mark 24 exceeds the range of the first sub-mark 22, it indicates that the shake value of the current shooting exceeds the first preset shake threshold value, and the system immediately ends the current shooting and prompts "the shake shooting ends".
In the embodiment of the application, the first preset shaking threshold, the second preset shaking threshold and the shaking amount of the electronic device are displayed on the shooting page in a visual mode, so that a user can visually know the relationship between the current shaking amount and the first preset shaking threshold and the second preset shaking threshold, the adjustment can be better carried out in the long-exposure shooting process, and the shooting success rate is improved.
Optionally, after the first identifier is displayed in the shooting preview interface, the method further includes:
receiving a second input to the first identification;
displaying a shake threshold adjustment interface in the shooting preview interface in response to the second input;
receiving a third input of the user to the jitter threshold adjustment interface;
adjusting at least one of the first preset dithering threshold and the second preset dithering threshold in response to the third input.
Specifically, the second input in the embodiment of the present application may be an input to the first identifier, or an input to a first sub identifier or a jitter monitoring identifier in the first identifier.
The second input described in the embodiment of the present application may specifically be an input of a long press or an input of a click.
And the electronic equipment responds to the second input, and displays a shaking threshold adjusting interface in the shooting preview interface, wherein the shaking threshold adjusting interface is used for providing adjusting options of a first preset shaking threshold and a second preset shaking threshold.
Fig. 3 is a schematic diagram of a shaking threshold adjustment interface provided in an embodiment of the application, and as shown in fig. 3, a shaking threshold adjustment interface 31 displayed in a shooting preview interface 21 includes a first preset shaking threshold adjustment sub-interface 32 and a second preset shaking threshold adjustment sub-interface 33, and a user can click a plus sign and a minus sign in the first preset shaking threshold adjustment sub-interface or the second preset shaking threshold adjustment sub-interface to adjust the shaking threshold adjustment.
The third input in the present application may specifically be a click operation by the user or a slide operation by the user.
The third input in this application may be an input for adjusting the first preset jitter threshold or the second preset jitter threshold, or an input for adjusting the first preset jitter threshold and the second preset jitter threshold at the same time.
In the embodiment of the application, a user can adjust the first preset shaking threshold or the second preset shaking threshold before or during shooting so as to adapt to different shooting conditions and improve the shooting success rate.
Optionally, after the first identifier is displayed in the shooting preview interface, the method further includes:
determining a shooting sub-image corresponding to the first sub-identifier from the shooting image;
and analyzing the still object of the shooting sub-image to obtain the still object of the shooting image.
Specifically, the shooting sub-image corresponding to the first sub-identifier described in the embodiment of the present application may be a shooting sub-image displayed in the first sub-identifier, and the user may move the position of the first sub-identifier to select different shooting sub-images.
The still object analysis described in the embodiment of the present application may specifically be to perform segmentation processing on the captured sub-image through a segmentation algorithm, perform semantic recognition on the segmented image, and screen out a still object in the captured image according to a semantic recognition result.
On the other hand, in the application, the still object of the shot image can be obtained by clicking a target area in the selected shot image by a user, analyzing the target area through a semantic recognition and segmentation algorithm, and screening out the still object in the shot image.
In the embodiment of the application, through the determination of the static object in the shot image, the shake amount of shooting can be determined according to the variation of the static object of two adjacent frames of images by utilizing the characteristics of the static object, thereby helping to improve the success rate of shooting.
Optionally, the detecting of the jitter amount of the electronic device includes:
determining the amount of shake of the electronic equipment based on the variation of a static object in two adjacent frames of shot images;
or determining the shake amount of the electronic equipment based on the angular speed variation of the electronic equipment.
Specifically, two adjacent frame captured images described in the present application refer to two frame captured images that are temporally continuous during long-exposure capturing.
For example, the amount of change between the still object in the M-frame captured image and the still object in the M-1 frame captured image may be represented as a pixel change between the still objects, and the amount of shake is 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, which is the shake amount of the electronic device.
In the embodiment of the application, the shake quantity of the electronic equipment is detected from a plurality of angles, so that the accuracy of the shake quantity can be further ensured, and the smooth shooting is effectively ensured.
Optionally, the streamer shutter is a common type in long exposure shooting, in this embodiment, shooting with the streamer shutter function is taken as an example, and fig. 4 is a schematic diagram of an overall shooting flow provided in this embodiment, as shown in fig. 4, including: step 410, entering a streamer shutter function; step 420, the user can set a preset threshold value according to the requirement, or can automatically identify the scene of the shot image, set the preset threshold value according to the scene identification result, and simultaneously display a first identifier comprising a first sub identifier and a shaking monitoring identifier in the shot page; step 430, starting streamer shutter shooting according to a shooting instruction of a user; step 440, detecting the jitter amount of the electronic equipment in real time; step 450, judging whether the shaking amount of the electronic equipment exceeds a preset threshold value, and automatically entering step 470 to finish shooting under the condition that the shaking amount of the electronic equipment exceeds the preset threshold value; and when the shake amount of the electronic equipment is close to the preset threshold value, the step 460 is entered, adjustment prompt information is output, the user selects whether to finish shooting, if the user selects to continue shooting, the step 440 is returned to, the shake amount of the electronic equipment is continuously detected in real time, and if the user selects to finish shooting, the step 470 is entered, and shooting is finished.
In the shooting method provided by the embodiment of the present application, the execution subject may be a shooting device, or a control module in the shooting device for executing the shooting method. The embodiment of the present application takes an example in which a shooting device executes a shooting method, and the shooting device provided in the embodiment of the present application is described.
Fig. 5 is a schematic structural diagram of a shooting device described in an embodiment of the present application, and as shown in fig. 5, the shooting device includes: a receiving unit 510, a photographing unit 520, and an ending unit 530; the receiving unit 510 is configured to receive a first input of a user; the shooting unit 520 is configured to, in response to the first input, perform shooting in a long exposure mode, and detect a shake amount of the electronic device in real time; wherein the ending unit 530 is configured to end the shooting if the shake amount is greater than a first preset shake threshold.
Optionally, the device further comprises a display unit;
the display unit is used for displaying a first identifier in a shooting preview interface, wherein the first identifier comprises a first sub-identifier, and the first sub-identifier comprises a shaking monitoring identifier;
wherein the first flag is determined based on the first preset shaking threshold, the first sub-flag is determined based on the second preset shaking threshold, and the shaking monitoring flag is determined based on a stationary object in the captured image.
Optionally, the apparatus further comprises an identification unit;
the identification unit is used for carrying out scene identification on the shot image to obtain a scene identification result;
and determining a first preset jitter threshold and a second preset jitter threshold according to the scene recognition result, wherein the first preset jitter threshold is greater than the second preset jitter threshold.
Optionally, the device further comprises a prompting unit;
the prompting unit is configured to output adjustment prompting information when the jitter amount is within a first preset range, where the first preset range is determined based on the first preset jitter threshold and the second preset jitter threshold.
Optionally, the ending unit is further configured to end the shooting when N consecutive shaking amounts are all within a first preset range, where the first preset range is determined based on the first preset shaking threshold and the second preset shaking threshold, and N is a positive integer greater than a first preset number.
Optionally, the apparatus further includes an adjusting unit, and the receiving unit is further configured to receive a second input to the first identifier;
the display unit is further used for responding to the second input and displaying a shaking threshold adjusting interface in the shooting preview interface;
the receiving unit is used for receiving a third input of the user to the jitter threshold adjusting interface;
the adjusting unit is configured to adjust at least one of the first preset shaking threshold and the second preset shaking threshold in response to the third input.
Optionally, the device further comprises an analysis unit;
the analysis unit is used for determining a shooting sub-image corresponding to the first sub-identifier from the shooting image;
and analyzing the still object of the photographed sub-image to obtain the still object of the photographed image.
Optionally, the analyzing unit is further configured to determine a shake amount of the electronic device based on a variation amount of a stationary object in two adjacent captured images;
or determining the shaking amount of the electronic equipment based on the angular speed variation of the electronic equipment.
In the embodiment of the application, after the long exposure mode is used for shooting, the amount of shake of the electronic device is detected by starting to shoot the variation of the stationary object in the image and the variation of the angular velocity of the electronic device, and when the amount of shake of the electronic device is too large, the shooting failure of the picture is caused.
The shooting 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 can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The shooting device provided in the embodiment of the present application can implement each process implemented in the method embodiments of fig. 1 to 4, and is not described here again to avoid repetition.
Optionally, fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 6, an embodiment of the present application further provides an electronic device 600, which includes a processor 601, a memory 602, and a program or an instruction that is stored in the memory 602 and is executable on the processor 601, and when the program or the instruction is executed by the processor 601, the processes of the foregoing shooting method embodiment are implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
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.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
A user input unit 707 for receiving a first input by a user;
the processor 710 responds to the first input, performs shooting in a long exposure mode, and controls the sensor 705 to detect the shake amount of the electronic device in real time;
the processor 710 is configured to end the shooting if the shake amount is greater than a first preset shake threshold.
Optionally, the processor 710 is further configured to perform scene recognition on the captured image, so as to obtain a scene recognition result;
and determining a first preset jitter threshold and a second preset jitter threshold according to the scene recognition result, wherein the first preset jitter threshold is larger than the second preset jitter threshold.
Optionally, the processor 710 is further configured to output an adjustment prompt message when the jitter amount is within a first preset range, where the first preset range is determined based on the first preset jitter threshold and the second preset jitter threshold.
Optionally, the processor 710 is further configured to end the shooting when N consecutive shaking amounts are within a first preset range, where the first preset range is determined based on the first preset shaking threshold and the second preset shaking threshold, and N is a positive integer greater than a first preset number.
Optionally, the display unit 706 is configured to display a first identifier in the shooting preview interface, where the first identifier includes a first sub identifier, and the first sub identifier includes a shake monitoring identifier;
wherein the first flag is determined based on the first preset shaking threshold, the first sub-flag is determined based on the second preset shaking threshold, and the shaking monitoring flag is determined based on a stationary object in the captured image.
Optionally, 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 shake 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 of the shaking threshold adjustment interface from the user;
the processor 710 is further configured to adjust at least one of the first preset dithering threshold and the second preset dithering threshold in response to the third input.
Optionally, the processor 710 is further configured to determine, from the captured image, a captured sub-image corresponding to the first sub-identifier;
and analyzing the still object of the photographed sub-image to obtain the still object of the photographed image.
Optionally, the processor 710 is further configured to determine a shake amount of the electronic device based on a variation amount of a stationary object in two adjacent captured images;
or determining the shaking amount of the electronic equipment based on the angular speed variation of the electronic equipment.
In the embodiment of the application, after the long exposure mode is used for shooting, the amount of shake of the electronic device is detected by starting to shoot the variation of the stationary object in the image and the variation of the angular velocity of the electronic device, and when the amount of shake of the electronic device is too large, the shooting failure of the picture is caused.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. 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 referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. The processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' ...does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (10)

1. A photographing method, characterized by comprising:
receiving a first input;
responding to the first input, shooting in a long exposure mode, and detecting the shaking amount of the electronic equipment in real time;
under the condition that the shake amount is larger than a first preset shake threshold value, finishing shooting;
wherein, prior to the receiving the first input, further comprising:
carrying out scene recognition on the shot image to obtain a scene recognition result;
determining a first preset jitter threshold and a second preset jitter threshold according to the scene recognition result, wherein the first preset jitter threshold is larger than the second preset jitter threshold;
after detecting the jitter amount of the electronic device in real time, the method further includes:
and outputting adjustment prompt information under the condition that the jitter amount is within a first preset range, wherein the first preset range is determined based on the first preset jitter threshold and the second preset jitter threshold.
2. The shooting method according to claim 1, wherein after detecting the shake amount of the electronic device in real time, the method further comprises:
and under the condition that the N continuous jitter amounts are all in a first preset range, ending the shooting, wherein the first preset range is determined based on the first preset jitter threshold and the second preset jitter threshold, and N is a positive integer larger than a first preset number.
3. The shooting method according to claim 1, further comprising, after said determining a first preset shaking threshold and a second preset shaking threshold according to the scene recognition result:
displaying a first identifier in a shooting preview interface, wherein the first identifier comprises a first sub identifier, a second sub identifier and a shaking monitoring identifier;
wherein the first sub-flag is determined based on the first preset shake threshold, the second sub-flag is determined based on the second preset shake threshold, and the shake monitoring flag is determined based on a stationary object in a captured image.
4. The photographing method of claim 3, after displaying the first identifier in the photographing preview interface, the method further comprising:
receiving a second input to the first identification;
displaying a shaking threshold adjustment interface in the shooting preview interface in response to the second input;
receiving a third input of the user to the jitter threshold adjustment interface;
adjusting at least one of the first preset dithering threshold and the second preset dithering threshold in response to the third input.
5. The photographing method of claim 3, after displaying the first identifier in the photographing preview interface, the method further comprising:
determining a shooting sub-image corresponding to the first sub-identifier from the shooting image;
and analyzing the still object of the photographed sub-image to obtain the still object of the photographed image.
6. The shooting method according to claim 5, wherein the detecting the shake amount of the electronic device comprises:
determining the amount of shake of the electronic equipment based on the variation of a static object in two adjacent frames of shot images;
or determining the shaking amount of the electronic equipment based on the angular speed variation of the electronic equipment.
7. A camera, comprising:
a receiving unit for receiving a first input;
the shooting unit is used for responding to the first input, adopting a long exposure mode to shoot, and detecting the shake quantity of the electronic equipment in real time;
a finishing unit, configured to finish shooting when the shake amount is greater than a first preset shake threshold;
wherein the apparatus is further configured to:
carrying out scene recognition on the shot image to obtain a scene recognition result;
determining a first preset jitter threshold and a second preset jitter threshold according to the scene recognition result, wherein the first preset jitter threshold is larger than the second preset jitter threshold;
and outputting adjustment prompt information under the condition that the jitter amount is within a first preset range, wherein the first preset range is determined based on the first preset jitter threshold and the second preset jitter threshold.
8. The photographing apparatus according to claim 7, characterized in that the apparatus further comprises a display unit;
the display unit is used for displaying a first identifier in a shooting preview interface, wherein the first identifier comprises a first sub-identifier, and the first sub-identifier comprises a shaking monitoring identifier;
wherein the first flag is determined based on the first preset shaking threshold, the first sub-flag is determined based on the second preset shaking threshold, and the shaking monitoring flag is determined based on a stationary object in the captured image.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the photographing method according to any one of claims 1-6.
10. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the photographing method according to any one of claims 1 to 6.
CN202110646822.7A 2021-06-10 2021-06-10 Shooting method and device, electronic equipment and storage medium Active CN113259592B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110646822.7A CN113259592B (en) 2021-06-10 2021-06-10 Shooting method and device, electronic equipment and storage medium
PCT/CN2022/097781 WO2022257999A1 (en) 2021-06-10 2022-06-09 Photographing method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110646822.7A CN113259592B (en) 2021-06-10 2021-06-10 Shooting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113259592A CN113259592A (en) 2021-08-13
CN113259592B true CN113259592B (en) 2023-04-18

Family

ID=77187432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110646822.7A Active CN113259592B (en) 2021-06-10 2021-06-10 Shooting method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113259592B (en)
WO (1) WO2022257999A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
WO2023108646A1 (en) * 2021-12-17 2023-06-22 深圳市大疆创新科技有限公司 Interaction method and apparatus during photographing, and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018064158A (en) * 2016-10-11 2018-04-19 キヤノン株式会社 Correction apparatus, control method of the same, imaging apparatus, program, and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001045361A (en) * 1999-07-30 2001-02-16 Hitachi Ltd Image pickup device
JP2010187354A (en) * 2009-01-16 2010-08-26 Ricoh Co Ltd Imaging apparatus
CN108322655A (en) * 2015-06-12 2018-07-24 青岛海信电器股份有限公司 A kind of photographic method
CN106303217A (en) * 2016-07-29 2017-01-04 努比亚技术有限公司 A kind of associated image method and there is the mobile terminal of auxiliary imaging system
CN112822412B (en) * 2020-12-28 2023-04-07 维沃移动通信有限公司 Exposure method, exposure device, electronic equipment and storage medium
CN112689094B (en) * 2020-12-28 2022-12-27 维沃移动通信有限公司 Camera anti-shake prompting method and device and electronic equipment
CN112911149B (en) * 2021-01-28 2022-08-16 维沃移动通信有限公司 Image output method, image output device, electronic equipment and readable storage medium
CN113259592B (en) * 2021-06-10 2023-04-18 维沃移动通信有限公司 Shooting method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018064158A (en) * 2016-10-11 2018-04-19 キヤノン株式会社 Correction apparatus, control method of the same, imaging apparatus, program, and storage medium

Also Published As

Publication number Publication date
CN113259592A (en) 2021-08-13
WO2022257999A1 (en) 2022-12-15

Similar Documents

Publication Publication Date Title
CN109558008B (en) Control method, control device, computer equipment and storage medium
CN113259592B (en) Shooting method and device, electronic equipment and storage medium
CN108322663B (en) Photographing method, device, terminal and storage medium
CN103581544A (en) Dynamic region of interest adaptation and image capture device providing same
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112653843A (en) Shooting method and device based on holder and electronic equipment
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
WO2023006009A1 (en) Photographing parameter determination method and apparatus, and electronic device
CN114422692B (en) Video recording method and device and electronic equipment
CN112954212B (en) Video generation method, device and equipment
CN113709368A (en) Image display method, device and equipment
CN113866782A (en) Image processing method and device and electronic equipment
CN112511743B (en) Video shooting method and device
CN111586305B (en) Anti-shake method, anti-shake device and electronic equipment
CN112367465B (en) Image output method and device and electronic equipment
WO2016011881A1 (en) Photographing process remaining time reminder method and system
CN112291480B (en) Tracking focusing method, tracking focusing device, electronic device and readable storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112911149B (en) Image output method, image output device, electronic equipment and readable storage medium
CN112153291B (en) Photographing method and electronic equipment
CN114650370A (en) Image shooting method and device, electronic equipment and readable storage medium
CN114339051A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114466140A (en) Image shooting method and device
CN113891018A (en) Shooting method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant