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

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

Info

Publication number
CN115589458A
CN115589458A CN202211352032.9A CN202211352032A CN115589458A CN 115589458 A CN115589458 A CN 115589458A CN 202211352032 A CN202211352032 A CN 202211352032A CN 115589458 A CN115589458 A CN 115589458A
Authority
CN
China
Prior art keywords
video
shooting
last frame
input
parameters
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.)
Pending
Application number
CN202211352032.9A
Other languages
Chinese (zh)
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 CN202211352032.9A priority Critical patent/CN115589458A/en
Publication of CN115589458A publication Critical patent/CN115589458A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: receiving a first input of a user to a first video; determining to continue to take the first video in response to the first input; and starting the shooting of a second video based on initial shooting parameters under the condition that a preview image displayed in a shooting preview interface is matched with the last frame of the first video, wherein the initial shooting parameters are the same as the shooting parameters of the last frame of the first video.

Description

Shooting method, shooting device, electronic equipment and storage medium
Technical Field
The application belongs to the field of communication, and particularly relates to a shooting method, a shooting device, electronic equipment and a storage medium.
Background
With the popularization of smart phones, video recording has become one of the functions commonly used by users.
If the video finally presented by the user is formed by splicing and continuing after shooting a plurality of sections of videos, the picture consistency of the video continuous shooting can be generally realized through modes such as image interface cutting, video single-frame matting and the like, however, the problems of local picture digital scaling, unnatural action of a matting part or abnormal background fusion exist in the mode, the video presentation effect is poor, and the user operation is inconvenient; and a mode of directly additionally recording characters is adopted, additionally shot light rays or character makeup and hair differences exist to further influence the video presentation effect, and the shooting and video processing process is too complex.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device, electronic equipment and a storage medium, and can solve the problems of poor video presentation effect and high operation difficulty when a video finally presented by a user is shot and connected through multiple sections of videos.
In a first aspect, an embodiment of the present application provides a shooting method, including:
receiving a first input of a user to a first video;
determining to continue to take the first video in response to the first input;
and starting the shooting of a second video based on initial shooting parameters under the condition that a preview image displayed in a shooting preview interface is matched with the last frame of the first video, wherein the initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
In a second aspect, an embodiment of the present application provides a shooting device, including:
the first receiving module is used for receiving a first input indicating a first video by a user;
a first determining module, configured to determine to continue to take the first video in response to the first input;
the first shooting module is used for starting shooting of a second video based on initial shooting parameters under the condition that a preview image displayed in a shooting preview interface is matched with the last frame of the first video, and the initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, 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 a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, under the condition that the last frame of a first video shot in advance is matched with a preview image, a second video is shot by adopting the same parameters as the shooting parameters of the last frame of the first video, wherein the video shooting parameters are recorded and called through the electronic equipment, and the matching degree of the last frame of the first video and the preview image is compared, so that the high similarity between the initial frame of the second video and the last frame of the first video is ensured, the presentation effect of the video after connection is effectively optimized, the connection of the first video and the second video is facilitated for a user, the high-difficulty operation brought by video processing for video connection is avoided, and the operation difficulty and complexity of multi-section video shooting connection are reduced.
Drawings
Fig. 1 is a schematic flowchart of a shooting method provided in an embodiment of the present application;
FIG. 2 is a schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of a display interface of an electronic device according to an embodiment of the present disclosure;
FIG. 4 is a third schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
FIG. 5 is a fourth schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
FIG. 6 is a fifth schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
FIG. 7 is a sixth schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
FIG. 8 is a seventh schematic view of a display interface of an electronic device according to an embodiment of the present application;
FIG. 9 is an eighth schematic diagram of a display interface of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating a shooting trigger flow of a second video provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of a shooting device provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 13 is a schematic hardware structure diagram of an electronic device implementing the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived from the embodiments in the present application by a person skilled in the art, are 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 "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The shooting method, the shooting device, the electronic device, and the storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings and application scenarios thereof.
Fig. 1 is a schematic flowchart of a shooting method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step 100, receiving a first input of a user to a first video;
alternatively, the first video may be a video clip that has been already shot and stored, and in order to capture a video that can be better joined to the first video, the first video may be determined first and shot with the first video as a reference.
Alternatively, the first video may be a video previously taken by the current electronic device.
Optionally, the first video may be a video previously captured by other electronic devices, and the current electronic device stores the video and stores the capture parameters of the video.
Alternatively, the video selection interface may be displayed and a first input to the video selection interface by the user may be received in a case where it is determined that the user needs to shoot a subsequent video, where the first input may be an operation of selecting the first video in the video selection interface by the user.
Optionally, a video selection interface may be displayed, the video selection interface may include a name list or an identification list of at least one video, and the first input may be an operation of the user clicking on a name or an identification of the first video.
Optionally, a gallery or a video gallery of the electronic device may be displayed, wherein at least one image and/or a cover image corresponding to at least one video are displayed in an arrangement based on a default or preset sequence, and a user may click to select a cover image in which a subsequent video needs to be taken as the first video.
For example, fig. 2 is one of schematic diagrams of a display interface of an electronic device provided in an embodiment of the present application, and as shown in fig. 2, a gallery and/or a video gallery of the electronic device is displayed on a current interface of the electronic device, and a user may click and select a cover image of a first video therein as the first video.
Alternatively, the video that was last captured may be determined as the first video by default.
Optionally, when it is determined that the user needs to shoot a subsequent video, a cover or a last frame of a previously shot video or a last few seconds of a dynamically played video or key content of a dynamically played video (which may be a video shot recently or a video shot from a place where the electronic device is currently located, which is not limited in this embodiment of the present application) may be displayed, and the user may determine whether the video currently displayed by the electronic device is a video that needs to be continuously shot, and if so, may determine that the current video is a first video to perform subsequent operations, and if not, may slide the video to the left or right through the first input, so that the electronic device displays the previous or next video (the sequence between the videos in the electronic device may be determined based on the saved time or determined based on the shooting time or determined based on the alphabetic sequence corresponding to the name, which is not limited in this embodiment of the present application), until the user determines that the video currently displayed by the electronic device is a video that needs to be continuously shot, that is the first video.
For example, fig. 3 is a second schematic view of a display interface of an electronic device according to an embodiment of the present application, as shown in fig. 3, a last frame of a video is displayed on a current interface of the electronic device, and if a user determines that a video currently displayed on the electronic device is a video that needs to be continuously photographed, the user may double-click a button (a first input) of the current interface to determine that the currently displayed video is the video that needs to be continuously photographed.
Step 110, responding to the first input, and determining to continue shooting the first video;
optionally, after determining the first video, it may be determined that the user needs to continue shooting the first video, that is, the user needs to shoot a second video with the electronic device, and the second video may be continued after the first video.
And 120, starting the shooting of a second video based on initial shooting parameters under the condition that a preview image displayed in a shooting preview interface is matched with the last frame of the first video, wherein the initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
Optionally, in order to ensure that the video field angle, the subject, the environment, the light, and the like of the second video that is continuously captured can be better connected with the first video, the electronic device may determine the initial capturing parameters based on the capturing parameters corresponding to the first video, for example, the capturing parameters of the last frame of the first video, so as to ensure that the final part of the first video and the initial part of the second video are presented in the same effect.
For example, the photographing parameters may include at least one of: exposure parameters, focusing parameters, color white balance parameters, denoising intensity, filter parameters and the like, so that the exposure conditions, the focusing conditions, the color white balance effect, the noise conditions, the filter display conditions and other presentation effects of the final part of the first video and the initial part of the second video can be ensured to be the same or very similar.
Optionally, the electronic device further needs to compare and match the last frame of the first video with the shooting preview interface of the second video in the preview interface, and if the last frame of the first video and the shooting preview interface of the second video are not matched, the shooting angle, the shooting position, and the like need to be adjusted as much as possible, and the shooting object can also adjust the action and the position until the shooting angle, the shooting position, and the shooting position are matched; in case the two match (i.e. the picture contents are the same or very similar, and may be almost overlapping or the degree of overlap is high), the electronic device may initiate the capturing based on the determined initial capturing parameters.
Fig. 4 is a third schematic view of a display interface of an electronic device according to an embodiment of the present disclosure, and as shown in fig. 4, a last frame of a first video does not match a shooting preview interface of a second video, and after a running action of a shooting object is adjusted, the last frame of the first video matches the shooting preview interface of the second video, the electronic device may start shooting based on the determined initial shooting parameters.
In the embodiment of the application, under the condition that the last frame of the first video shot in advance is matched with the preview image, the second video is shot by adopting the parameters which are the same as the shooting parameters of the last frame of the first video, wherein the video shooting parameters are recorded and called through the electronic equipment, and the matching degree of the last frame of the first video and the preview image is compared, so that the high similarity between the initial frame of the second video and the last frame of the first video is ensured, the presentation effect of the video after connection is effectively optimized, the user can conveniently carry out the connection between the first video and the second video, the high-difficulty operation brought by video processing for video connection is avoided, and the operation difficulty and complexity of multi-section video shooting connection are reduced.
Optionally, in a case that the preview image displayed in the shooting preview interface matches with the last frame of the first video, starting shooting of a second video based on the initial shooting parameters includes:
and starting the shooting of the second video based on the initial shooting parameters under the condition that the coincidence degree of the coordinate position of the feature point in the preview image and the coordinate position of the feature point in the last frame of the first video is greater than or equal to an image matching threshold value.
Optionally, an image matching threshold may be used to measure whether a preview image displayed in the shooting preview interface matches the last frame of the first video, and in case of a match, the electronic device may automatically initiate shooting of the second video.
Alternatively, the characteristic points of the image may be simply understood as more prominent points in the image, such as contour points, bright points in darker areas, dark points in lighter areas, and the like.
Optionally, fig. 5 is a fourth schematic view of a display interface of an electronic device according to an embodiment of the present application, and as shown in fig. 5, when it is determined whether a preview image displayed in a shooting preview interface matches a last frame of a first video, all feature points of the last frame of the first video and a shooting preview image of a second video may be displayed in the shooting preview interface, or all feature points of the shooting preview image of the second video and the last frame of the first video may be displayed in the shooting preview interface; and then the electronic equipment can compare and match the coordinate positions of the feature points of the preview image and the last frame of the first video, so that a user can visually know the difference between the preview image and the last frame of the first video, and can adjust the shooting angle, the shooting position, the action or the posture of a shot object and the like until the coincidence degree of the coordinate position of the feature point in the preview image and the coordinate position of the feature point in the last frame of the first video is determined to be greater than or equal to the image matching threshold, and then the preview image displayed in the shooting preview interface can be determined to be matched with the last frame of the first video.
Alternatively, the image matching threshold may be determined based on a default value, or determined based on user pre-configuration, or pre-configured at the time of shipment of the electronic device.
In the embodiment of the application, the coincidence degree of the coordinate positions of the characteristic points in the contrast preview image and the coordinate positions of the characteristic points in the last frame of the first video is adopted to judge the preview image and the last frame of the first video is matched, the electronic equipment is easy to realize, the processing complexity is not high, the matching process is very visual, and a user can conveniently and accurately adjust the shooting position or direction in time.
Optionally, the method further comprises:
displaying a threshold determination interface;
receiving a second input of the threshold determination interface from the user;
determining an image matching threshold in response to the second input;
wherein the second input is an operation of a user inputting the image matching threshold; or, the threshold determination interface comprises at least one candidate threshold, and the second input is an operation of determining one of the at least one candidate threshold as the image matching threshold by the user.
Optionally, to improve the flexibility of the second video shot, the image matching threshold may be adjusted based on the user's needs.
Optionally, a threshold determination interface may be displayed on a display interface of the electronic device, where the threshold determination interface includes at least one candidate threshold, and then an operation of a user selecting one of the at least one candidate threshold as an image matching threshold may be received, so that the image matching threshold may be determined.
In an embodiment, fig. 6 is a fifth schematic view of a display interface of an electronic device provided in the embodiment of the present application, and as shown in fig. 6, a threshold determination interface is displayed in the display interface of the electronic device, where the threshold determination interface includes multiple candidate thresholds: perfect match (100% match), 90% match, 80% match, custom match; the custom matching may correspond to an input interface with a custom threshold, which may include a text input box for a user to input a desired image matching threshold, or a slider adjustment box as shown in fig. 5, which adjusts the image matching threshold by receiving a position of a user adjustment slider.
Alternatively, the threshold determination interface may be a text entry box for the user to enter the desired image matching threshold.
Alternatively, the threshold determination interface may be a slider adjustment box that adjusts the image matching threshold by receiving a user adjustment slider position.
In the embodiment of the application, the image matching threshold value is flexibly adjusted based on the expectation of the user, so that the shooting difficulty can be properly reduced on the basis of ensuring smooth connection of videos.
Optionally, the method further comprises:
receiving a third input of the user to the shooting preview interface;
in response to the third input, initiating capture of a second video.
Optionally, the method may include subjectively measuring whether a preview image displayed in the shooting preview interface matches with a last frame of the first video, executing a third input when the user considers that the preview image displayed in the shooting preview interface matches with the last frame of the first video, and after receiving the third input, the electronic device may consider that the user determines that the preview image displayed in the shooting preview interface matches with the last frame of the first video, and then the electronic device may start shooting of the second video.
Optionally, an image matching threshold and a user subjectively may be used to jointly measure whether a preview image displayed in a shooting preview interface matches with a last frame of the first video, for example, even if the matching degree between the preview image and the last frame of the first video does not reach the image matching threshold, the user subjectively considers that the preview image displayed in the shooting preview interface matches with the last frame of the first video, the user may execute a third input, and after receiving the third input, the electronic device may consider that the user determines that the preview image displayed in the shooting preview interface matches with the last frame of the first video, and then the electronic device may start shooting of the second video.
In the embodiment of the application, a user subjectively judges whether the preview image is matched with the last frame of the first video or not, and triggers the shooting of the second video by executing the third input, so that the calculation complexity of the electronic equipment is reduced, and the processing complexity is further reduced.
In the embodiment of the application, by utilizing the characteristics that electronic equipment such as a mobile phone is portable, the processing capacity is high, and the screen display is convenient to align, match and preview, the requirement that the angle of a continuously shot video field is consistent with the main body and the environment with the end of a video in the background of multi-section video creation is required to be met, the implementation mode in the technical aspect is well met, and the technical threshold of sectional video creation of a personal creator is reduced.
Optionally, in a case that the preview image displayed in the shooting preview interface matches with the last frame of the first video, before starting shooting of the second video based on the initial shooting parameters, the method further includes:
outputting prompt information, wherein the prompt information comprises at least one of the following items:
a shooting device position adjustment prompt;
shooting device direction adjustment prompt;
a shot object position adjustment prompt;
and (5) shooting object action adjustment prompt.
Alternatively, before determining that the preview image displayed in the shooting preview interface matches the last frame of the first video, the user may adjust the shooting position and direction of the electronic device, and may also adjust the position, direction, or motion (in the case of recognizing the shooting object as a living body) of the shooting object, or the like, in order to match the two; thus, the electronic device may output a prompt to prompt the user as to how the adjustment should be specifically made to facilitate faster matching.
Optionally, in order for the preview image to match the last frame of the first video, the electronic device may output a capture device position adjustment prompt prompting the user to move the capture device left or right or up or down.
Fig. 7 is a sixth schematic view of a display interface of an electronic device according to an embodiment of the present application, and as shown in fig. 7, the electronic device may display text prompt information on the current display interface, where the text prompt information may be a shooting device position adjustment prompt for instructing a user to move the shooting device to the left, so that a preview image is matched with a last frame of the first video.
Optionally, in order for the preview image to match the last frame of the first video, the electronic device may output a capture device orientation adjustment prompt prompting the user to rotate the capture device left or right or up or down.
Alternatively, in order for the preview image to match the last frame of the first video, the electronic device may output a photographic subject position adjustment prompt prompting the photographic subject to move position to the left or right or up or down.
Alternatively, in order for the preview image to match the last frame of the first video, the electronic device may output a subject motion adjustment prompt prompting the subject how to change the motion of which part.
Fig. 8 is a seventh schematic view of a display interface of an electronic device according to an embodiment of the present application, and as shown in fig. 8, the electronic device may output a voice prompt to prompt a front left person to move to the left in a preview interface until a motion of a drip alert sound stops, and a motion of a rear right person to move to the left, and rotate clockwise until a buzz alert sound stops moving.
Alternatively, the electronic device may output a voice guidance, that is, a "photographic subject position adjustment guidance" or a "photographic subject motion adjustment guidance" while displaying the "photographic subject position adjustment guidance" or the "photographic subject direction adjustment guidance" on the display interface.
In this application embodiment, carry out voice prompt through electronic equipment's loudspeaker, cooperation screen display is synchronous to be reminded, improves and shoots efficiency.
Optionally, after starting the capturing of the second video based on the initial capturing parameters, the method further comprises:
determining target shooting parameters of the second video based on the shooting environment of the second video;
and starting from a preset frame of the second video, adjusting the step length based on preset parameters, and adjusting the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters.
Optionally, in order to adjust the alignment effect, the difference of brightness and white balance caused by the deviation of the illumination environment or the angle when the continuously shot video is shot with the reference video is avoided, the alignment transition effect of the pictures in different time periods is considered, the problem of poor splicing effect is avoided, the automatic exposure, automatic focusing, automatic white balance and the integral effect transition delay option of the ISP related modules are increased, and the splicing part can be ensured to be completely consistent with the upper-stage target video.
Therefore, the target shooting parameters of the second video can be automatically determined based on automatic exposure, automatic focusing, automatic white balance, ISP and other means to adapt to the current shooting environment of the second video, and then the target shooting parameters are gradually adjusted from the initial shooting parameters to the target shooting parameters from the first frame.
Optionally, fig. 9 is an eighth schematic view of a display interface of an electronic device according to an embodiment of the present application, and as shown in fig. 9, an operation of manually setting a fixed convergence frame by a user may be received, a frame from a first frame to the fixed convergence frame is determined, and a shooting parameter of the second video is gradually adjusted from the initial shooting parameter to the target shooting parameter, so as to achieve an effect of smooth splicing transition.
Alternatively, the preset parameter adjustment step size may be determined based on a fixed convergence frame, that is, the difference between the initial shooting parameter and the target shooting parameter may be determined first, and then the step size of the parameter to be adjusted in each frame from the first needle of the second video to the fixed convergence frame (the step sizes between adjacent frames are equal or close to each other) may be determined.
Optionally, the preset parameter adjustment step size may be directly set by the user, so as to adjust the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters from the first frame to the fixed convergence frame.
Alternatively, the preset parameter adjustment step size may be pre-configured at the time of factory shipment.
Optionally, the preset parameter adjustment step size may be smaller, so that even if adjustment is performed between every two frames based on the shooting parameter based on the step size, the user is difficult to distinguish by naked eyes when watching a video, and the shooting display effect is improved.
In an embodiment, fig. 10 is a schematic diagram of a shooting trigger flow of a second video according to an embodiment of the present application, and as shown in fig. 10, the shooting trigger flow includes the following steps:
step 1001, starting a camera of the electronic equipment, and entering a common video recording mode to record a first video;
step 1002, when a video needs to be continuously shot, selecting a first video needing to be continuously shot in an album, and selecting an image matching threshold value;
step 1003, setting a fixed convergence frame by using shooting guidance given by a preview interface;
and 1004, determining that the preview image is matched with the last frame of the first video, starting the shooting of a second video based on the initial shooting parameters, adjusting the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters from the shot first frame to a fixed convergence frame, and then gradually using a camera to judge in real time to achieve the effect of smooth splicing transition.
In the embodiment of the application, when an electronic device such as a mobile phone is used for shooting a plurality of videos, when a next video to be continuously shot starts, exposure, focusing, color white balance, denoising strength and filter setting used for continuously shooting the videos are guaranteed to be consistent through parameter information recorded in an upper video, then the mobile phone can move through a characteristic (translation, propulsion and character fixed point action suggestion) prompt of a shooting preview interface, after the match (the match degree is displayed by numbers is 90%,80% or 60%) with the end of the upper video, shooting is prompted to start, the consistency of the whole video which is shot and synthesized for a plurality of times is good, and people do not wear the upper part. The shooting parameters can be recorded by the mobile phone, the processing advantages of the preview picture and the previous video frame can be conveniently compared, the requirements for editing are low, and the video shooting threshold is greatly reduced after shooting is completed.
According to the shooting method provided by the embodiment of the application, the execution main body can be a shooting device. 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. 11 is a schematic structural diagram of a camera according to an embodiment of the present application, and as shown in fig. 11, the camera 1100 includes: a first receiving module 1110, a first determining module 1120, and a first photographing module 1130, wherein:
the user input receiving module 1110 is configured to receive a first input of a first video from a user;
a first determining module 1120 for determining to continue to take the first video in response to the first input;
the first shooting module 1130 is configured to start shooting of a second video based on initial shooting parameters when a preview image displayed in a shooting preview interface matches with a last frame of the first video, where the initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
In the embodiment of the application, under the condition that the last frame of a first video shot in advance is matched with a preview image, a second video is shot by adopting the same parameters as the shooting parameters of the last frame of the first video, wherein the video shooting parameters are recorded and called through the electronic equipment, and the matching degree of the last frame of the first video and the preview image is compared, so that the high similarity between the initial frame of the second video and the last frame of the first video is ensured, the presentation effect of the video after connection is effectively optimized, the connection of the first video and the second video is facilitated for a user, the high-difficulty operation brought by video processing for video connection is avoided, and the operation difficulty and complexity of multi-section video shooting connection are reduced.
Optionally, the first photographing module 1130 is configured to:
and starting the shooting of the second video based on the initial shooting parameters under the condition that the coincidence degree of the coordinate position of the feature point in the preview image and the coordinate position of the feature point in the last frame of the first video is greater than or equal to an image matching threshold value. Optionally, the apparatus further comprises a display module for displaying the threshold determination interface;
the user input receiving module 1110 is further configured to: receiving a second input of the threshold determination interface from the user;
the device still includes: a second determination module to determine an image matching threshold in response to the second input;
wherein the second input is an operation of a user inputting the image matching threshold; or, the threshold determination interface comprises at least one threshold to be selected, and the second input is an operation of determining one of the at least one threshold to be selected as the image matching threshold by the user.
Optionally, the user input receiving module 1110 is configured to: receiving a third input of the shooting preview interface from the user;
the device further comprises:
and the second shooting module is used for responding to the third input and starting the shooting of the second video.
Optionally, the apparatus further comprises:
an output module, configured to output prompt information before starting shooting of a second video based on an initial shooting parameter when a preview image displayed in a shooting preview interface matches a last frame of the first video, where the prompt information includes at least one of:
shooting device position adjustment prompt;
shooting device direction adjustment prompt;
a shot object position adjustment prompt;
and (5) shooting object action adjustment prompt.
Optionally, the apparatus further comprises:
the third determination module is used for determining target shooting parameters of the second video based on the shooting environment of the second video after the shooting of the second video is started based on the initial shooting parameters;
and the adjusting module is used for adjusting the step length from the preset frame of the second video based on preset parameters and adjusting the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters.
In the embodiment of the application, under the condition that the last frame of a first video shot in advance is matched with a preview image, a second video is shot by adopting the same parameters as the shooting parameters of the last frame of the first video, wherein the video shooting parameters are recorded and called through the electronic equipment, and the matching degree of the last frame of the first video and the preview image is compared, so that the high similarity between the initial frame of the second video and the last frame of the first video is ensured, the presentation effect of the video after connection is effectively optimized, the connection of the first video and the second video is facilitated for a user, the high-difficulty operation brought by video processing for video connection is avoided, and the operation difficulty and complexity of multi-section video shooting connection are reduced.
The shooting device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (NAS), a Television (TV), an assistant, a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
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 by the method embodiments of fig. 1 to fig. 10, and is not described here again to avoid repetition.
Optionally, fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 12, an electronic device 1200 according to an embodiment of the present application is further provided and includes a processor 1201 and a memory 1202, where the memory 1202 stores a program or an instruction that can be executed on the processor 1201, and when the program or the instruction is executed by the processor 1201, the steps of the 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. 13 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1300 includes, but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, a processor 1310, and the like.
Those skilled in the art will appreciate that the electronic device 1300 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1310 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 13 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.
Wherein, the user input unit 1307 is configured to:
receiving a first input of a user to a first video;
the processor 1310 is configured to:
determining to continue to take the first video in response to the first input;
the processor 1310 is configured to:
and starting the shooting of a second video based on initial shooting parameters under the condition that a preview image displayed in a shooting preview interface is matched with the last frame of the first video, wherein the initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
In the embodiment of the application, under the condition that the last frame of the first video shot in advance is matched with the preview image, the second video is shot by adopting the parameters which are the same as the shooting parameters of the last frame of the first video, wherein the video shooting parameters are recorded and called through the electronic equipment, and the matching degree of the last frame of the first video and the preview image is compared, so that the high similarity between the initial frame of the second video and the last frame of the first video is ensured, the presentation effect of the video after connection is effectively optimized, the user can conveniently carry out the connection between the first video and the second video, the high-difficulty operation brought by video processing for video connection is avoided, and the operation difficulty and complexity of multi-section video shooting connection are reduced.
Optionally, the processor 1310 is configured to:
and starting the shooting of the second video based on the initial shooting parameters under the condition that the coincidence degree of the coordinate position of the feature point in the preview image and the coordinate position of the feature point in the last frame of the first video is greater than or equal to an image matching threshold value. Optionally, the display unit 1306 is configured to:
displaying a threshold determination interface;
user input unit 1307 is used for:
receiving a second input of the threshold determination interface from the user;
the processor 1310 is configured to:
determining an image matching threshold in response to the second input;
wherein the second input is an operation of a user to input the image matching threshold; or, the threshold determination interface comprises at least one candidate threshold, and the second input is an operation of determining one of the at least one candidate threshold as the image matching threshold by the user.
Optionally, the user input unit 1307 is configured to:
receiving a third input of the user to the shooting preview interface;
the processor 1310 is configured to:
in response to the third input, initiating capture of a second video.
Alternatively, the audio output unit 1303 or the display unit 1306 is used to:
in the case that a preview image displayed in a shooting preview interface matches a last frame of the first video, outputting prompt information before starting shooting of a second video based on an initial shooting parameter, the prompt information including at least one of:
shooting device position adjustment prompt;
shooting equipment direction adjustment prompt;
a shot object position adjustment prompt;
and (5) shooting object motion adjustment prompt.
Optionally, the processor 1310 is configured to:
after the shooting of a second video is started based on the initial shooting parameters, determining target shooting parameters of the second video based on the shooting environment of the second video;
and starting from a preset frame of the second video, adjusting the step length based on preset parameters, and adjusting the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters.
In the embodiment of the application, under the condition that the last frame of the first video shot in advance is matched with the preview image, the second video is shot by adopting the parameters which are the same as the shooting parameters of the last frame of the first video, wherein the video shooting parameters are recorded and called through the electronic equipment, and the matching degree of the last frame of the first video and the preview image is compared, so that the high similarity between the initial frame of the second video and the last frame of the first video is ensured, the presentation effect of the video after connection is effectively optimized, the user can conveniently carry out the connection between the first video and the second video, the high-difficulty operation brought by video processing for video connection is avoided, and the operation difficulty and complexity of multi-section video shooting connection are reduced.
It should be understood that in the embodiment of the present application, the input Unit 1304 may include a Graphics Processing Unit (GPU) 13041 and a microphone 13042, and the Graphics processor 13041 processes image data of still pictures or videos obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1306 may include a display panel 13061, and the display panel 13061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1307 includes a touch panel 13071 and at least one of other input devices 13072. Touch panel 13071, also referred to as a touch screen. The touch panel 13071 may include two parts of a touch detection device and a touch controller. Other input devices 13072 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.
The memory 1309 may be used to store software programs as well as various data. The memory 1309 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, memory 1309 can comprise volatile memory or nonvolatile memory, or memory 1309 can comprise both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct bus RAM (DRRAM). Memory 1309 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1310 may include one or more processing units; optionally, the processor 1310 integrates an application processor, which mainly handles operations related to the operating system, user interface, application programs, etc., and a modem processor, which mainly handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1310.
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 computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
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 execute a program or an instruction to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
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.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing shooting method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
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' 8230; \8230;" 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 invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A photographing method, characterized by comprising:
receiving a first input of a user to a first video;
determining to continue to take the first video in response to the first input;
and starting the shooting of a second video based on initial shooting parameters under the condition that a preview image displayed in a shooting preview interface is matched with the last frame of the first video, wherein the initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
2. The shooting method according to claim 1, wherein in a case where the preview image displayed in the shooting preview interface matches the last frame of the first video, starting shooting of the second video based on the initial shooting parameters comprises:
and starting the shooting of the second video based on the initial shooting parameters under the condition that the coincidence degree of the coordinate position of the feature point in the preview image and the coordinate position of the feature point in the last frame of the first video is greater than or equal to an image matching threshold value.
3. The shooting method according to claim 2, characterized in that the method further comprises:
displaying a threshold determination interface;
receiving a second input of the threshold determination interface from the user;
determining an image matching threshold in response to the second input;
wherein the second input is an operation of a user inputting the image matching threshold; or, the threshold determination interface comprises at least one candidate threshold, and the second input is an operation of determining one of the at least one candidate threshold as the image matching threshold by the user.
4. The photographing method according to claim 1, wherein the method further comprises:
receiving a third input of the user to the shooting preview interface;
in response to the third input, initiating capture of a second video.
5. The photographing method according to claim 1, wherein in a case where a preview image displayed in a photographing preview interface matches a last frame of the first video, before starting photographing of a second video based on an initial photographing parameter, the method further comprises:
outputting prompt information, wherein the prompt information comprises at least one of the following items:
a shooting device position adjustment prompt;
shooting equipment direction adjustment prompt;
a shot object position adjustment prompt;
and (5) shooting object action adjustment prompt.
6. The shooting method according to claim 1, wherein after said starting of shooting of the second video based on the initial shooting parameters, the method further comprises:
determining target shooting parameters of the second video based on the shooting environment of the second video;
and starting from a preset frame of the second video, adjusting the step length based on preset parameters, and adjusting the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters.
7. A camera, comprising:
the first receiving module is used for receiving a first input indicating a first video by a user;
a first determining module, configured to determine to continue to take the first video in response to the first input;
the first shooting module is used for starting shooting of a second video based on initial shooting parameters under the condition that a preview image displayed in a shooting preview interface is matched with the last frame of the first video, and the initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
8. The camera of claim 7, wherein the first camera module comprises:
the first determining unit is used for determining that the coincidence degree of the coordinate position of the feature point in the preview image and the coordinate position of the feature point in the last frame of the first video is larger than or equal to an image matching threshold value.
9. An electronic device, characterized in that it comprises a processor and a memory, said memory storing a program or instructions executable on said processor, said program or instructions, when executed by said processor, implementing the steps of the shooting method according to any one of claims 1-6.
10. A readable storage medium, characterized in that it 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.
CN202211352032.9A 2022-10-31 2022-10-31 Shooting method, shooting device, electronic equipment and storage medium Pending CN115589458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211352032.9A CN115589458A (en) 2022-10-31 2022-10-31 Shooting method, shooting device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211352032.9A CN115589458A (en) 2022-10-31 2022-10-31 Shooting method, shooting device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115589458A true CN115589458A (en) 2023-01-10

Family

ID=84782736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211352032.9A Pending CN115589458A (en) 2022-10-31 2022-10-31 Shooting method, shooting device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115589458A (en)

Similar Documents

Publication Publication Date Title
WO2019134516A1 (en) Method and device for generating panoramic image, storage medium, and electronic apparatus
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
WO2022116604A1 (en) Image captured image processing method and electronic device
CN113840070B (en) Shooting method, shooting device, electronic equipment and medium
WO2022198934A1 (en) Method and apparatus for generating video synchronized to beat of music
CN112770058B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113329172B (en) Shooting method and device and electronic equipment
WO2023174223A1 (en) Video recording method and apparatus, and electronic device
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN113810627B (en) Video processing method, device, mobile terminal and readable storage medium
CN112399078B (en) Shooting method and device and electronic equipment
CN112887615B (en) Shooting method and device
CN112839166A (en) Shooting method and device and electronic equipment
CN114025237B (en) Video generation method and device and electronic equipment
CN114125297B (en) Video shooting method, device, electronic equipment and storage medium
CN115499589A (en) Shooting method, shooting device, electronic equipment and medium
CN112532904B (en) Video processing method and device and electronic equipment
CN115589458A (en) Shooting method, shooting device, electronic equipment and storage medium
CN114245017A (en) Shooting method and device and electronic equipment
CN114285922A (en) Screenshot method, screenshot device, electronic equipment and media
CN114285988B (en) Display method, display device, electronic equipment and storage medium
CN112672059B (en) Shooting method and shooting device
CN115278378B (en) Information display method, information display device, electronic apparatus, and storage medium
CN115174812A (en) Video generation method, video generation device and electronic equipment
CN115589457A (en) Shooting method, shooting device, electronic equipment and readable storage medium

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