Shooting method, device, electronic device and storage medium
By matching with the last frame of the first video in the shooting preview interface and shooting the second video with the same parameters, the problems of poor video presentation and complex operation when multiple videos are connected are solved, and a more natural video connection and simplified operation are achieved. Operation process.
Patent Information
- Application Number
- CN202211352032.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2042-10-31
AI Technical Summary
When shooting multiple videos continue, the prior art has problems such as digital zooming in the local picture, unnatural movement of the cutout part, and abnormal background fusion, resulting in poor video presentation and inconvenient user operation.
By matching the last frame of the first video in the shooting preview interface, the shooting of the second video is started using the same shooting parameters, ensuring high similarity between the initial frame and the last frame, optimizing the subsequent video presentation effect, and reducing the Operation difficulty.
The presentation effect after video continuation is effectively optimized, the operation difficulty and complexity of multi-segment video shooting and continuation is simplified, and the difficult operation brought about by video processing is avoided.
Smart Images

Figure CN115589458B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communications, specifically relating to a shooting method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the widespread use of smartphones, video recording has become one of the most frequently used functions.
[0003] If the final video presented to the user is a combination of multiple video clips edited together, the consistency of the footage can generally be achieved through image editing or single-frame cutout. However, this method suffers from issues such as digital scaling of local images, unnatural cutout movements, or abnormal background blending, resulting in poor video quality and inconvenient user operation. Alternatively, directly re-recording the person can lead to issues such as lighting during reshoots or differences in makeup and hairstyles, further affecting the video's presentation. Moreover, the shooting and video processing process is overly complex. Summary of the Invention
[0004] The purpose of this application is to provide a shooting method, device, electronic device, and storage medium that can solve the problem of poor video presentation and high operational difficulty when the final video presented to the user is a series of video segments.
[0005] In a first aspect, embodiments of this application provide a shooting method, the method comprising:
[0006] Receive the user's first input on the first video;
[0007] In response to the first input, determine to continue recording the first video;
[0008] If the preview image displayed in the shooting preview interface matches the last frame of the first video, the shooting of the second video is started based on the initial shooting parameters, which are the same as the shooting parameters of the last frame of the first video.
[0009] Secondly, embodiments of this application provide a shooting device, which includes:
[0010] The first receiving module is used to receive the first input of the user's instruction to the first video;
[0011] The first determining module is used to determine, in response to the first input, to continue recording the first video;
[0012] The first shooting module is used to start shooting a second video based on initial shooting parameters when the preview image displayed in the shooting preview interface matches the last frame of the first video. The initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
[0013] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0014] Fourthly, embodiments of this 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 described in the first aspect.
[0015] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0016] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0017] In this embodiment, based on the matching of the last frame of the first video with the preview image, the second video is captured using the same shooting parameters as the last frame of the first video. The electronic device records and recalls the video shooting parameters and compares the matching degree between the last frame of the first video and the preview image, ensuring a high similarity between the initial frame of the second video and the last frame of the first video. This effectively optimizes the presentation effect of the spliced video and facilitates the user in splicing the first and second videos, avoiding the difficult operation of video processing for video splicing and reducing the difficulty and complexity of splicing multiple video segments. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating the shooting method provided in an embodiment of this application;
[0019] Figure 2 This is one of the schematic diagrams of the display interface of the electronic device provided in the embodiments of this application;
[0020] Figure 3 This is a second schematic diagram of the display interface of the electronic device provided in the embodiments of this application;
[0021] Figure 4 This is the third schematic diagram of the display interface of the electronic device provided in the embodiments of this application;
[0022] Figure 5 This is the fourth schematic diagram of the display interface of the electronic device provided in the embodiments of this application;
[0023] Figure 6 This is the fifth schematic diagram of the display interface of the electronic device provided in the embodiments of this application;
[0024] Figure 7 This is the sixth schematic diagram of the display interface of the electronic device provided in the embodiments of this application;
[0025] Figure 8 This is the seventh schematic diagram of the display interface of the electronic device provided in the embodiments of this application;
[0026] Figure 9 This is the eighth schematic diagram of the display interface of the electronic device provided in the embodiments of this application;
[0027] Figure 10 This is a schematic diagram of the second video shooting triggering process provided in the embodiments of this application;
[0028] Figure 11 This is a schematic diagram of the imaging device provided in the embodiments of this application;
[0029] Figure 12 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0030] Figure 13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application. Detailed Implementation
[0031] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0032] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0033] The following description, in conjunction with the accompanying drawings, details the shooting method, apparatus, electronic device, and storage medium provided in the embodiments of this application through specific examples and application scenarios.
[0034] Figure 1This is a flowchart illustrating the shooting method provided in the embodiments of this application, as shown below. Figure 1 As shown, the method includes the following steps:
[0035] Step 100: Receive the user's first input on the first video;
[0036] Optionally, the first video can be a video clip that has already been shot and stored. In order to shoot a video that can be well connected with the first video, the first video can be determined first and used as a reference for shooting.
[0037] Optionally, the first video may be a video previously captured by the current electronic device.
[0038] Optionally, the first video may be a video previously captured by another electronic device, which is currently stored in the electronic device, along with the video's capture parameters.
[0039] Optionally, if it is determined that the user needs to shoot a series of videos, a video selection interface can be displayed, and the user's first input to the video selection interface can be the user's operation of selecting the first video in the video selection interface.
[0040] Optionally, a video selection interface may be displayed, which may contain a list of names or identifiers of at least one video, and the first input may be the user clicking on the name or identifier of the first video.
[0041] Optionally, an electronic device's image or video library can be displayed, wherein cover images corresponding to at least one image and / or at least one video are displayed in a default or preset order, and the user can click to select the cover image from which to shoot a follow-up video as the first video.
[0042] For example, Figure 2 This is one of the schematic diagrams of the electronic device display interface provided in the embodiments of this application, such as... Figure 2 As shown, the electronic device's gallery and / or video library are displayed on the current interface of the electronic device. The user can click to select the cover image of the first video as the first video.
[0043] Optionally, the most recently captured video can be used as the default video.
[0044] Optionally, if it is determined that the user needs to shoot a continuation video, the cover or last frame of a previously shot video, or the last few seconds of a dynamically played video, or key content of a dynamically played video (which could be a recently shot video or a video shot at a location consistent with the current location of the electronic device; this application embodiment does not limit this) can be displayed. The user can determine whether the video currently displayed by the electronic device is the video that needs to be continued. If so, the current video can be determined as the first video for subsequent operations. If not, the user can slide the video left or right using the first input to make the electronic device display the previous or next video (the order between videos within the electronic device can be determined based on the saving time, the shooting time, or the alphabetical order of the names; this application embodiment does not limit this) until the user determines that the video currently displayed by the electronic device is the video that needs to be continued, i.e., the first video.
[0045] For example, Figure 3 This is a second schematic diagram of the electronic device display interface provided in the embodiments of this application, as shown below. Figure 3 As shown, the last frame of a video is displayed on the current screen of the electronic device. If the user determines that the video currently displayed on the electronic device is the one that needs to be continued, they can double-click the button (first input) on the current screen to confirm that the currently displayed video is the one that needs to be continued.
[0046] Step 110: In response to the first input, determine to continue recording the first video;
[0047] Optionally, after determining the first video, it can be determined that the user needs to continue shooting the first video, that is, the user needs to use an electronic device to shoot a second video, which can be continued after the first video.
[0048] Step 120: If the preview image displayed in the shooting preview interface matches the last frame of the first video, start shooting the second video based on the initial shooting parameters, which are the same as the shooting parameters of the last frame of the first video.
[0049] Optionally, in order to ensure that the field of view, subject, environment, lighting, etc. of the second video can be well connected with the first video, the electronic device can determine the initial shooting parameters based on the shooting parameters corresponding to the first video, such as the shooting parameters of the last frame of the first video, so as to ensure that the last part of the first video and the initial part of the second video are presented in the same way.
[0050] For example, shooting parameters may include at least one of the following: exposure parameters, focus parameters, color white balance parameters, noise reduction intensity, filter parameters, etc., thereby ensuring that the exposure, focus, color white balance, noise, and filter display of the last part of the first video and the first part of the second video are the same or very similar.
[0051] Optionally, the electronic device also 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. If the two do not match, the shooting angle, shooting position, etc. need to be adjusted as much as possible, and the shooting object can also adjust its actions and position until the two match. If the two match (i.e. the content of the screen is the same or very similar, almost overlapping or with a high degree of overlap), the electronic device can start shooting based on the determined initial shooting parameters.
[0052] Figure 4 This is the third schematic diagram of the electronic device display interface provided in the embodiments of this application, as shown below. Figure 4 As shown, the last frame of the first video does not match the shooting preview interface of the second video. After adjusting the running action of the subject, the last frame of the first video matches the shooting preview interface of the second video, and the electronic device can start shooting based on the determined initial shooting parameters.
[0053] In this embodiment, based on the matching of the last frame of the first video with the preview image, the second video is captured using the same shooting parameters as the last frame of the first video. The electronic device records and recalls the video shooting parameters and compares the matching degree between the last frame of the first video and the preview image, ensuring a high similarity between the initial frame of the second video and the last frame of the first video. This effectively optimizes the presentation effect of the spliced video and facilitates the user in splicing the first and second videos, avoiding the difficult operation of video processing for video splicing and reducing the difficulty and complexity of splicing multiple video segments.
[0054] Optionally, if the preview image displayed in the shooting preview interface matches the last frame of the first video, starting the shooting of the second video based on the initial shooting parameters includes:
[0055] If the overlap between the coordinates of feature points in the preview image and the coordinates of feature points in the last frame of the first video is greater than or equal to the image matching threshold, the second video is started based on the initial shooting parameters.
[0056] Optionally, an image matching threshold can be used to measure whether the preview image displayed in the shooting preview interface matches the last frame of the first video. If they match, the electronic device can automatically start shooting the second video.
[0057] Alternatively, feature points of an image can be simply understood as prominent points in the image, such as contour points, bright spots in darker areas, and dark spots in brighter areas.
[0058] Optionally, Figure 5 This is the fourth schematic diagram of the electronic device display interface provided in the embodiments of this application, as shown below. Figure 5 As shown, when determining whether the preview image displayed in the shooting preview interface matches the last frame of the first video, all feature points of the last frame of the first video and the shooting preview image of the second video can 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 can be displayed in the shooting preview interface. Then, the electronic device can compare and match the coordinate positions of the feature points of the two. The user can intuitively know the difference between the preview image and the last frame of the first video, and can adjust the shooting angle, position, action or posture of the shooting object, etc., until it is determined that the overlap between the coordinate positions of the feature points in the preview image and the coordinate positions of the feature points in the last frame of the first video is greater than or equal to the image matching threshold. Then it can be determined that the preview image displayed in the shooting preview interface matches the last frame of the first video.
[0059] Optionally, the image matching threshold may be determined based on a default value, or based on user pre-configuration, or pre-configured at the time the electronic device leaves the factory.
[0060] In this embodiment, the degree of overlap between the coordinate positions of feature points in the preview image and the coordinate positions of feature points in the last frame of the first video is used to determine whether the preview image matches the last frame of the first video. This is easy to implement with electronic devices, has low processing complexity, and the matching process is very intuitive, making it convenient for users to adjust the shooting position or direction in a timely and accurate manner.
[0061] Optionally, the method further includes:
[0062] Display the threshold determination interface;
[0063] Receive a second input from the user on the threshold determination interface;
[0064] In response to the second input, an image matching threshold is determined;
[0065] Wherein, the second input is the operation of the user inputting the image matching threshold; or, the threshold determination interface contains at least one candidate threshold, and the second input is the operation of the user determining one of the at least one candidate threshold as the image matching threshold.
[0066] Optionally, to improve the flexibility of the second video capture, the image matching threshold can be adjusted based on the user's needs.
[0067] Optionally, a threshold determination interface can be displayed on the display interface of the electronic device, which includes at least one candidate threshold. Then, the user can select one of the candidate thresholds as the image matching threshold, thereby determining the image matching threshold.
[0068] In one embodiment, Figure 6 This is the fifth schematic diagram of the electronic device display interface provided in the embodiments of this application, as shown below. Figure 6 As shown, the electronic device's display interface includes a threshold determination interface with multiple selectable thresholds: perfect match (100% match), 90% match, 80% match, and custom match. The custom match option corresponds to an input interface with a custom threshold, which may include a text input box for the user to input their desired image matching threshold, or as shown below. Figure 5 It also includes a slider adjustment box, which adjusts the image matching threshold by receiving the user's adjustment of the slider's position.
[0069] Optionally, the threshold determination interface can be a text input box for the user to enter the desired image matching threshold.
[0070] Optionally, the threshold determination interface can be a slider adjustment box, which adjusts the image matching threshold by receiving the user's adjustment of the slider position.
[0071] In this embodiment of the application, by flexibly adjusting the image matching threshold based on the user's expectations, the shooting difficulty can be appropriately reduced while ensuring smooth video transitions.
[0072] Optionally, the method further includes:
[0073] Receive third-party input from the user on the shooting preview interface;
[0074] In response to the third input, the recording of the second video is initiated.
[0075] Optionally, the user can subjectively assess whether the preview image displayed in the shooting preview interface matches the last frame of the first video. If the user believes that the preview image displayed in the shooting preview interface matches the last frame of the first video, a third input can be executed. After receiving the third input, the electronic device can assume that the user has determined that the preview image displayed in the shooting preview interface matches the last frame of the first video, and then the electronic device can start shooting the second video.
[0076] Optionally, an image matching threshold and user subjective judgment can be used to jointly measure whether the preview image displayed in the shooting preview interface matches the last frame of the first video. For example, even if the degree of matching between the preview image and the last frame of the first video does not reach the image matching threshold, but the user subjectively believes that the preview image displayed in the shooting preview interface matches the last frame of the first video, the user can perform a third input. After the electronic device receives the third input, it can be considered that the user has determined that the preview image displayed in the shooting preview interface matches the last frame of the first video, and then the electronic device can start shooting the second video.
[0077] In this embodiment of the application, the user subjectively judges whether the preview image matches the last frame of the first video, and triggers the shooting of the second video by executing a third input, thereby reducing the computational complexity of the electronic device and further reducing the processing complexity.
[0078] In this embodiment, by utilizing the portability, high-efficiency processing capabilities, and screen display features of electronic devices such as mobile phones that facilitate alignment and preview, the technical implementation method is well met in the context of multi-segment video creation, which requires ensuring that the field of view, subject, and environment of the continuously shot videos are consistent with the end of the previous video, thereby reducing the technical threshold for individual creators to create segmented videos.
[0079] Optionally, before starting the recording of the second video based on the initial shooting parameters, if the preview image displayed in the shooting preview interface matches the last frame of the first video, the method further includes:
[0080] Output a prompt message, which includes at least one of the following:
[0081] Camera position adjustment prompt;
[0082] Shooting equipment orientation adjustment prompt;
[0083] Prompt for adjusting the position of the subject being photographed;
[0084] Tips for adjusting the subject's movements.
[0085] Optionally, before determining that the preview image displayed in the shooting preview interface matches the last frame of the first video, in order to make the two match, the user can adjust the shooting position and direction of the electronic device, and can also adjust the position, direction, or action of the shooting object (if the shooting object is identified as a living person), etc.; therefore, the electronic device can output prompt information to tell the user how to adjust it in order to facilitate faster matching.
[0086] Optionally, in order to match the preview image with the last frame of the first video, the electronic device may output a prompt for adjusting the position of the shooting device, prompting the user to move the shooting device to the left, right, up, or down.
[0087] Figure 7 This is the sixth schematic diagram of the electronic device display interface provided in the embodiments of this application, as shown below. Figure 7 As shown, the electronic device can display text prompts on the current display interface, such as prompts to adjust the position of the shooting device, to instruct the user to move the shooting device to the left so that the preview image matches the last frame of the first video.
[0088] Optionally, in order to match the preview image with the last frame of the first video, the electronic device may output a shooting device orientation adjustment prompt, prompting the user to rotate the shooting device left, right, up, or down.
[0089] Optionally, in order to match the preview image with the last frame of the first video, the electronic device may output a prompt to adjust the position of the subject being filmed, prompting the subject to move to the left, right, up, or down.
[0090] Optionally, in order to match the preview image with the last frame of the first video, the electronic device may output a prompt for adjusting the subject's motion, indicating how the subject should change the motion of which part.
[0091] Figure 8 This is the seventh schematic diagram of the electronic device display interface provided in the embodiments of this application, as shown below. Figure 8 As shown, the electronic device can output voice prompts to instruct the character in the preview interface to move to the left until a "beep" sound is heard and then stop moving, and the character in the right rear to move to the left, rotating clockwise until a "hum" sound is heard and then stop moving.
[0092] Optionally, the electronic device can display "Shooting device position adjustment prompt" or "Shooting device orientation adjustment prompt" on the display interface, while also outputting voice prompts, namely, "Shooting subject position adjustment prompt" or "Shooting subject movement adjustment prompt".
[0093] In this embodiment, voice prompts are given through the speaker of the electronic device, and synchronized reminders are displayed on the screen to improve shooting efficiency.
[0094] Optionally, after initiating the recording of the second video based on the initial shooting parameters, the method further includes:
[0095] Based on the shooting environment of the second video, determine the target shooting parameters of the second video;
[0096] Starting from a preset frame of the second video, the shooting parameters of the second video are adjusted from the initial shooting parameters to the target shooting parameters based on preset parameters and the step size is adjusted accordingly.
[0097] Optionally, in order to adjust the alignment effect and avoid differences in brightness and white balance caused by the shooting environment or angle shift between the continued video and the reference video, and to take into account the alignment transition effect of the images in different time periods and avoid poor stitching effect, options for automatic exposure, automatic focus, automatic white balance and overall effect transition delay of ISP related modules in subsequent videos between stitched videos are added, which can ensure that the stitching point is completely consistent with the previous target video.
[0098] Therefore, the target shooting parameters of the second video can be automatically determined based on automatic exposure, automatic focus, automatic white balance and ISP, so as to adapt to the current shooting environment of the second video, and then gradually adjust from the initial shooting parameters to the target shooting parameters starting from the first frame.
[0099] Optionally, Figure 9 This is the eighth schematic diagram of the electronic device display interface provided in the embodiments of this application, as shown below. Figure 9 As shown, it can receive the user's manual setting of a fixed convergence frame, determine from the first frame to the fixed convergence frame, and gradually adjust the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters to achieve a smooth splicing transition effect.
[0100] Optionally, the preset parameter adjustment step size can be determined based on a fixed convergence frame. That is, the difference between the initial shooting parameters and the target shooting parameters can be determined first, and then the step size of the parameters to be adjusted for each frame from the first shot of the second video to the fixed convergence frame can be determined (the step size between adjacent frames is equal or close).
[0101] Optionally, the preset parameter adjustment step size can be directly set by the user 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.
[0102] Optionally, the preset parameter adjustment step size can be pre-configured at the factory.
[0103] Optionally, the preset parameter adjustment step size can be small, so that even if the shooting parameters are adjusted based on the step size between every two frames, it is difficult for users to distinguish it with the naked eye when watching the video, thus improving the shooting display effect.
[0104] In one embodiment, Figure 10 This is a schematic diagram of the second video shooting triggering process provided in the embodiments of this application, such as... Figure 10 As shown, it includes the following steps:
[0105] Step 1001: Turn on the camera of the electronic device and enter normal recording mode to record the first video;
[0106] Step 1002: When it is necessary to continue shooting a video, select the first video in the album that needs to be continued shooting, and select the image matching threshold.
[0107] Step 1003: Use the shooting instructions provided in the preview interface to set a fixed convergence frame;
[0108] Step 1004: Determine that the preview image matches the last frame of the first video. Based on the initial shooting parameters, start shooting the second video. From the first frame to the fixed convergence frame, adjust the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters. Then, gradually use the camera to make real-time judgments to achieve a smooth stitching transition effect.
[0109] This application proposes a method for capturing multiple video segments using an electronic device, such as a mobile phone. At the start of the next video segment, the parameters recorded in the previous video segment are used to ensure consistency in exposure, focus, white balance, noise reduction intensity, and filter settings. The phone then moves according to features (pan, zoom, and suggestions for character stillness) in the preview interface, ensuring a match with the end of the previous video segment (displaying a matching percentage of 90%, 80%, ... or 60%). After this, the phone prompts to start recording, achieving good consistency and eliminating any continuity errors in the resulting composite video. This fully utilizes the mobile phone's ability to record shooting parameters and easily compare preview images with previous video frames. After recording, editing requirements are minimal, significantly lowering the barrier to entry for video shooting.
[0110] The shooting method provided in this application can be executed by a shooting device. This application uses a shooting device executing the shooting method as an example to illustrate the shooting device provided in this application.
[0111] Figure 11 This is a schematic diagram of the imaging device provided in the embodiments of this application, as shown below. Figure 11As shown, the shooting device 1100 includes: a first receiving module 1110, a first determining module 1120, and a first shooting module 1130, wherein:
[0112] User input receiving module 1110 is used to receive the user's first input on the first video;
[0113] The first determining module 1120 is used to determine, in response to the first input, to continue recording the first video;
[0114] The first shooting module 1130 is used to start shooting a second video based on initial shooting parameters when the preview image displayed in the shooting preview interface matches the last frame of the first video. The initial shooting parameters are the same as the shooting parameters of the last frame of the first video.
[0115] In this embodiment, based on the matching of the last frame of the first video with the preview image, the second video is captured using the same shooting parameters as the last frame of the first video. The electronic device records and recalls the video shooting parameters and compares the matching degree between the last frame of the first video and the preview image, ensuring a high similarity between the initial frame of the second video and the last frame of the first video. This effectively optimizes the presentation effect of the spliced video and facilitates the user in splicing the first and second videos, avoiding the difficult operation of video processing for video splicing and reducing the difficulty and complexity of splicing multiple video segments.
[0116] Optionally, the first shooting module 1130 is used for:
[0117] If the overlap between the coordinates of feature points in the preview image and the coordinates of feature points in the last frame of the first video is greater than or equal to an image matching threshold, the recording of the second video is initiated based on the initial shooting parameters. Optionally, the device further includes a display module for displaying a threshold determination interface;
[0118] The user input receiving module 1110 is further configured to: receive a second input from the user to the threshold determination interface;
[0119] The apparatus further includes: a second determining module, configured to determine an image matching threshold in response to the second input;
[0120] Wherein, the second input is the operation of the user inputting the image matching threshold; or, the threshold determination interface contains at least one candidate threshold, and the second input is the operation of the user determining one of the at least one candidate threshold as the image matching threshold.
[0121] Optionally, the user input receiving module 1110 is used to: receive third input from the user to the shooting preview interface;
[0122] The device further includes:
[0123] The second shooting module is used to initiate the shooting of the second video in response to the third input.
[0124] Optionally, the device further includes:
[0125] An output module is configured to output a prompt message before starting the recording of a second video, based on initial shooting parameters, when the preview image displayed in the shooting preview interface matches the last frame of the first video. The prompt message includes at least one of the following:
[0126] Camera position adjustment prompt;
[0127] Shooting equipment orientation adjustment prompt;
[0128] Prompt for adjusting the position of the subject being photographed;
[0129] Tips for adjusting the subject's movements.
[0130] Optionally, the device further includes:
[0131] The third determining module is used to determine the target shooting parameters of the second video based on the shooting environment of the second video after the second video is started based on the initial shooting parameters.
[0132] The adjustment module is used to adjust the shooting parameters of the second video from the initial shooting parameters to the target shooting parameters, starting from a preset frame of the second video and adjusting the step size based on preset parameters.
[0133] In this embodiment, based on the matching of the last frame of the first video with the preview image, the second video is captured using the same shooting parameters as the last frame of the first video. The electronic device records and recalls the video shooting parameters and compares the matching degree between the last frame of the first video and the preview image, ensuring a high similarity between the initial frame of the second video and the last frame of the first video. This effectively optimizes the presentation effect of the spliced video and facilitates the user in splicing the first and second videos, avoiding the difficult operation of video processing for video splicing and reducing the difficulty and complexity of splicing multiple video segments.
[0134] The shooting device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope.
[0135] The shooting device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0136] The imaging device provided in this application embodiment can achieve... Figures 1 to 10 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0137] Optionally, Figure 12 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application, such as... Figure 12 As shown, this application embodiment also provides an electronic device 1200, including a processor 1201 and a memory 1202. The memory 1202 stores a program or instructions that can run on the processor 1201. When the program or instructions are executed by the processor 1201, they implement the various steps of the above-described shooting method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0138] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0139] Figure 13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0140] The electronic device 1300 includes, but is not limited to, components such as: radio frequency unit 1301, network module 1302, audio output unit 1303, input unit 1304, sensor 1305, display unit 1306, user input unit 1307, interface unit 1308, memory 1309, and processor 1310.
[0141] Those skilled in the art will understand that the electronic device 1300 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1310 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 13 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0142] The user input unit 1307 is used for:
[0143] Receive the user's first input on the first video;
[0144] Processor 1310 is used for:
[0145] In response to the first input, determine to continue recording the first video;
[0146] Processor 1310 is used for:
[0147] If the preview image displayed in the shooting preview interface matches the last frame of the first video, the shooting of the second video is started based on the initial shooting parameters, which are the same as the shooting parameters of the last frame of the first video.
[0148] In this embodiment, based on the matching of the last frame of the first video with the preview image, the second video is captured using the same shooting parameters as the last frame of the first video. The electronic device records and recalls the video shooting parameters and compares the matching degree between the last frame of the first video and the preview image, ensuring a high similarity between the initial frame of the second video and the last frame of the first video. This effectively optimizes the presentation effect of the spliced video and facilitates the user in splicing the first and second videos, avoiding the difficult operation of video processing for video splicing and reducing the difficulty and complexity of splicing multiple video segments.
[0149] Optionally, the processor 1310 is used for:
[0150] If the overlap between the coordinates of feature points in the preview image and the coordinates of feature points in the last frame of the first video is greater than or equal to an image matching threshold, the recording of the second video is initiated based on the initial shooting parameters. Optionally, the display unit 1306 is used for:
[0151] Display the threshold determination interface;
[0152] User input unit 1307 is used for:
[0153] Receive a second input from the user on the threshold determination interface;
[0154] Processor 1310 is used for:
[0155] In response to the second input, an image matching threshold is determined;
[0156] Wherein, the second input is the operation of the user inputting the image matching threshold; or, the threshold determination interface contains at least one candidate threshold, and the second input is the operation of the user determining one of the at least one candidate threshold as the image matching threshold.
[0157] Optionally, the user input unit 1307 is used for:
[0158] Receive third-party input from the user on the shooting preview interface;
[0159] Processor 1310 is used for:
[0160] In response to the third input, the recording of the second video is initiated.
[0161] Optionally, the audio output unit 1303 or the display unit 1306 is used for:
[0162] If the preview image displayed in the shooting preview interface matches the last frame of the first video, before starting the shooting of the second video based on the initial shooting parameters, a prompt message is output, the prompt message including at least one of the following:
[0163] Camera position adjustment prompt;
[0164] Shooting equipment orientation adjustment prompt;
[0165] Prompt for adjusting the position of the subject being photographed;
[0166] Tips for adjusting the subject's movements.
[0167] Optionally, the processor 1310 is used for:
[0168] After starting the recording of the second video based on the initial shooting parameters, the target shooting parameters of the second video are determined based on the shooting environment of the second video.
[0169] Starting from a preset frame of the second video, the shooting parameters of the second video are adjusted from the initial shooting parameters to the target shooting parameters based on preset parameters and the step size is adjusted accordingly.
[0170] In this embodiment, based on the matching of the last frame of the first video with the preview image, the second video is captured using the same shooting parameters as the last frame of the first video. The electronic device records and recalls the video shooting parameters and compares the matching degree between the last frame of the first video and the preview image, ensuring a high similarity between the initial frame of the second video and the last frame of the first video. This effectively optimizes the presentation effect of the spliced video and facilitates the user in splicing the first and second videos, avoiding the difficult operation of video processing for video splicing and reducing the difficulty and complexity of splicing multiple video segments.
[0171] It should be understood that, in this embodiment, the input unit 1304 may include a graphics processing unit (GPU) 13041 and a microphone 13042. The GPU 13041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1306 may include a display panel 13061, which 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. The touch panel 13071 is also called a touch screen. The touch panel 13071 may include a touch detection device and a touch controller. Other input devices 13072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0172] The memory 1309 can be used to store software programs and various data. The memory 1309 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1309 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1309 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0173] Processor 1310 may include one or more processing units; optionally, processor 1310 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1310.
[0174] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described shooting method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0175] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0176] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described shooting method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0177] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0178] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described shooting method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0179] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0180] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0181] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A shooting method, characterized in that: include: Receiving a first input of a first video from a user; In response to the first input, determining to continue shooting the first video; When 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 initial shooting parameters, where the initial shooting parameters are the same as the shooting parameters of the last frame of the first video; When 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 includes: In the case where the degree of coincidence between 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 the image matching threshold, starting the shooting of the second video based on the initial shooting parameters; The method further comprises: Display the threshold determination interface; receiving a second input from a user on the threshold determination interface; determining an image matching threshold in response to the second input; The second input is an operation in which a user inputs the image matching threshold; or the threshold determination interface includes at least one candidate threshold, and the second input is an operation in which a user determines one of the at least one candidate threshold as the image matching threshold.
2. The shooting method according to claim 1, characterized in that: The method further comprises: receiving a third input from the user on the shooting preview interface; In response to the third input, shooting of a second video is initiated.
3. The shooting method according to claim 1, characterized in that: When the preview image displayed in the shooting preview interface matches the last frame of the first video, before starting shooting of the second video based on the initial shooting parameters, the method further includes: Output prompt information, the prompt information includes at least one of the following: Tips for adjusting the position of the shooting equipment; Tips for adjusting the direction of the shooting device; Tips for adjusting the subject's position; Tips for adjusting subject motion.
4. The shooting method according to claim 1, characterized in that: After starting the shooting of the second video based on the initial shooting parameters, the method further includes: Determining target shooting parameters of the second video based on the shooting environment of the second video; Starting from a preset frame of the second video, the step size is adjusted based on preset parameters, and the shooting parameters of the second video are adjusted from the initial shooting parameters to the target shooting parameters.
5. A photographing device, characterized in that: include: A first receiving module, configured to receive a first input indicating a first video from a user; A first determining module, configured to determine to continue shooting the first video in response to the first input; A first shooting module, configured to start shooting of a second video based on initial shooting parameters when a preview image displayed in the shooting preview interface matches 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; The first shooting module includes: A first determining unit, configured to determine whether a degree of coincidence between a coordinate position of a feature point in a preview image and a coordinate position of a feature point in a last frame of the first video is greater than or equal to an image matching threshold; The photographing device further includes a display module for displaying a threshold determination interface; The first receiving module is further used to receive a second input of the user on the threshold determination interface; The photographing device further includes a second determination module, configured to determine an image matching threshold in response to the second input; The second input is an operation in which a user inputs the image matching threshold; or the threshold determination interface includes at least one candidate threshold, and the second input is an operation in which a user determines one of the at least one candidate threshold as the image matching threshold.
6. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 4 are implemented.
7. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 4 are implemented.
