[go: up one dir, main page]

WO2023151609A1 - Time-lapse photography video recording method and apparatus, and electronic device - Google Patents

Time-lapse photography video recording method and apparatus, and electronic device Download PDF

Info

Publication number
WO2023151609A1
WO2023151609A1 PCT/CN2023/075119 CN2023075119W WO2023151609A1 WO 2023151609 A1 WO2023151609 A1 WO 2023151609A1 CN 2023075119 W CN2023075119 W CN 2023075119W WO 2023151609 A1 WO2023151609 A1 WO 2023151609A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
lapse photography
image area
lapse
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2023/075119
Other languages
French (fr)
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
Publication of WO2023151609A1 publication Critical patent/WO2023151609A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Definitions

  • the present application belongs to the technical field of shooting, and in particular relates to a time-lapse photography video recording method, device and electronic equipment.
  • Time-lapse photography also known as time-lapse photography and time-lapse video
  • time-lapse photography is a shooting technique that compresses time. It usually takes a group of photos, and later combines the photos into a video to compress the process of minutes, hours or even days into a short period of time and play it as a video.
  • time-lapse photography video the slow changing process of an object or scene is compressed into a short period of time, presenting a strange and wonderful scene that is usually invisible to the naked eye.
  • the video recording function of time-lapse photography has attracted more users' attention.
  • the purpose of the embodiments of the present application is to provide a time-lapse photography video recording method, device and electronic equipment, which can solve the existing problem of cumbersome operations for obtaining time-lapse photography videos.
  • the embodiment of the present application provides a time-lapse photography video recording method, the method comprising:
  • the embodiment of the present application provides a time-lapse photography video recording device, including:
  • a receiving module configured to receive the user's first input to the shooting preview interface
  • a determining module configured to determine a time-lapse photography image area and a non-time-lapse photography image area in response to the first input
  • a recording module configured to record a target time-lapse video based on the time-lapse photography image area and the non-time-lapse photography image area.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The steps of the method.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the method described in the first aspect.
  • the shooting preview interface by receiving the user's first input on the shooting preview interface; in response to the first input, determining the time-lapse photography image area and the non-time-lapse photography image area; based on the time-lapse photography image area and The non-time-lapse photography image area is recorded to obtain the target time-lapse photography video, and the time-lapse photography effect of the local area can be realized by performing a video recording, which meets the needs of users for recording interesting videos.
  • the video production is simple and convenient, and effectively reduces user production time.
  • the cumbersomeness and difficulty of the operation of the special effect video can improve the user's interactive experience.
  • FIG. 1 is a schematic flowchart of time-lapse photography video recording in an embodiment of the present application.
  • FIG. 2A and FIG. 2B are one of the schematic diagrams of the user interface of the time-lapse photography image area division according to the embodiment of the present application.
  • Fig. 3A and Fig. 3B are the user interface of time-lapse photography image region division in one embodiment of the present application One of the diagrams.
  • FIG. 4A and FIG. 4B are the second schematic diagrams of the user interface of time-lapse photography image area division according to an embodiment of the present application.
  • FIG. 5A and FIG. 5B are schematic diagrams of a user interface for color setting of a time-lapse photography image area according to an embodiment of the present application.
  • Fig. 6 is a schematic diagram of a user interface for dynamically changing settings of a time-lapse photography image area according to an embodiment of the present application.
  • Fig. 7A, Fig. 7B and Fig. 7C are schematic diagrams of the user interface for setting the dynamic change of the time-lapse photography image area according to an embodiment of the present application.
  • FIG. 8A , FIG. 8B and FIG. 8C are schematic diagrams of the user interface for setting the dynamic change of the time-lapse photography image area according to an embodiment of the present application.
  • Fig. 9 is a schematic diagram of a user interface for setting dynamic change of a time-lapse photography image area according to an embodiment of the present application.
  • FIG. 10A , FIG. 10B and FIG. 10C are schematic diagrams of the user interface for setting the dynamic change of the time-lapse photography image area according to an embodiment of the present application.
  • Fig. 11 is a schematic diagram of a user interface for dynamically changing settings of time-lapse photography image regions according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of video production corresponding to the time-lapse photography video recording method of the embodiment of the present application.
  • Fig. 13 is a structural block diagram of a time-lapse video recording device according to an embodiment of the present application.
  • FIG. 14 is a structural block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 15 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • a time-lapse photography video recording method is provided, which can be applied to terminal devices with cameras for video recording, including mobile electronic devices and non-mobile electronic devices.
  • FIG. 1 is a schematic flowchart of a time-lapse video recording method according to an embodiment of the present application.
  • the time-lapse photography video recording method of the embodiment of the present application includes the following steps 102 to 106 .
  • Step 102 receiving a first input from the user on the shooting preview interface.
  • the first input may be that the user manually draws a shape on the shooting preview interface, or may be operating a shape selection control displayed on the shooting preview interface.
  • the first input can be: the user's click input on the shape selection control displayed on the shooting preview interface, or a voice command input by the user, or a specific gesture input by the user, which can be determined according to actual usage requirements. This is not limited.
  • the specific gesture in the embodiment of the present application may be any one of a click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture;
  • the click input can be single-click input, double-click input, or any number of click inputs, etc., and can also be long-press input or short-press input.
  • Step 104 in response to the first input, determine a time-lapse photography image area and a non-time-lapse photography image area.
  • receiving the user's first input on the shooting preview interface includes: receiving the user's first input on the shape control in the shooting preview interface.
  • the determining the time-lapse photography image area and the non-time-lapse photography image area includes: determining the time-lapse photography image area and the non-time-lapse photography image area based on the target shape in the shape control ; wherein, the target shape is determined based on the first input.
  • the division of the time-lapse photography image area and the non-time-lapse photography image area in the recording screen can be based on the user's operation, for example, after the user opens the camera shooting preview interface of the terminal device and selects the time-lapse photography mode, input by clicking, sliding, etc.
  • the shape control in the shooting preview interface By operating the shape control in the shooting preview interface, the time-lapse photography image area or the non-time-lapse photography image area can be determined on the recording screen currently displayed on the terminal device.
  • determining the time-lapse photography image area and the non-time-lapse photography image area based on the target shape in the shape control includes: displaying the time-lapse photography image area in the shooting preview interface A target shape, determining an image area surrounded by the target shape as the time-lapse photography image area, and determining other image areas other than the target shape as the non-time-lapse photography image area.
  • FIG. 2A and FIG. 2B are schematic diagrams of the user interface of the time-lapse photography image area division according to the embodiment of the present application.
  • the terminal device is described by taking a mobile phone as an example.
  • the user can click the shape control 12 in the lower left corner of the recording screen, and then a variety of shape options will appear, and custom shape drawing can also be provided.
  • the user can drag one of the shapes to the shooting preview interface corresponding to the recording screen, and can adjust the size and position of the shape. This shape divides the shooting preview interface into two parts.
  • the user selects a circle, and the circle is displayed in the shooting preview interface.
  • the user can manually adjust the size and position of the circle.
  • the image area 1 corresponding to the circle is set to extend time-lapse image area.
  • the image areas except the image area 1 of the recording screen are all non-time-lapse photography image areas.
  • the video frames in the time-lapse photography image area will present the shooting effect of time-lapse photography
  • the video frames in the non-time-lapse photography image area will present a still video frame, that is, in the entire
  • the video frame in the non-time-lapse photography image area can correspond to display a frame of still image that does not change.
  • the video frames in the non-time-lapse photography image area may correspond to video frames displaying other shooting effects.
  • the corresponding shape is selected from the shape control according to the user's operation, so as to determine the time-lapse photography image area.
  • multiple shapes can be pulled to the preview interface at the same time, so as to set multiple time-lapse photography image areas at corresponding positions on the shooting preview interface.
  • the user first pulls a circle to the shooting preview interface, and then as shown in Figure 3B, the user pulls a rectangle to the shooting preview interface.
  • the image area 1 corresponding to the circle and the image corresponding to the rectangle Area 2 is set as a time-lapse photography image area
  • image area 3 other than image areas 1 and 2 is set as a non-time-lapse photography image area.
  • the user wants to set the position of the image area corresponding to the pulled shape as a non-time-lapse photography image area, and set the image area of the rest of the recording screen as a time-lapse photography image area, it can be set according to the corresponding input operation of the user.
  • the image area surrounded by the target shape is determined as the time-lapse photography image area, and other image areas other than the target shape are determined as the non-time-lapse photography image area, after that, It also includes: receiving a second input from the user; in response to the second input, determining the image area surrounded by the target shape as the non-time-lapse photography image area, and determining other image areas other than the target shape Determine the image region for the time-lapse photography.
  • the second input can be: the user's click input on the target control displayed on the shooting preview interface, or a voice command input by the user, or a specific gesture input by the user, which can be determined according to actual use requirements. Not limited.
  • the specific gesture in the embodiment of the present application may be any one of a click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture;
  • the click input can be single-click input, double-click input, or any number of click inputs, etc., and can also be long-press input or short-press input.
  • the second input is, for example, the user clicks the inversion icon 14 in the lower right corner of the shooting preview interface to set, so that the image area 1 and image area 2 that have been set as time-lapse photography image areas in FIG. 4A can be modified and set to non- The time-lapse photography image area, and at the same time, the image area 3 that has been set as the non-time-lapse photography image area in 4A is modified and set as the time-lapse photography image area. That is, switching between the time-lapse photography image area and the non-time-lapse photography image area in FIG. 4A is realized.
  • the user wants to cancel a certain time-lapse photography image area that has been set, he can click the shape of the time-lapse photography image area that has been set on the shooting preview interface, and then click Cancel to modify the time-lapse photography image area to a non- Time-lapse photography image area.
  • the default time-lapse photography image area is the image area corresponding to the shape pulled by the user to the shooting preview interface and not canceled, and other areas of the shooting preview interface are determined to be non-time-lapse photography image areas.
  • various rendering settings can be performed on the time-lapse photography image area according to the user's selection , such as shooting color parameter settings, dynamic change process settings, etc.
  • the determining the time-lapse photography image area and the non-time-lapse photography image area it also includes: receiving a third input from the user on the color control; in response to the third input, determining the time-lapse photography image area shooting color parameter information.
  • the shooting color parameter information includes the color change duration and the corresponding color pixel value.
  • the color change duration is to set the duration of the dynamic video corresponding to the color change, and the duration can run through the entire dynamic video.
  • the color pixel values include brightness values and/or RGB pixel values corresponding to dynamic video playback.
  • FIG. 5A and FIG. 5B the figure is a schematic diagram of a user interface for setting shooting color parameter information of a time-lapse photography image area according to an embodiment of the present application.
  • the user can click the "color" control in the lower right corner of the shooting preview interface shown in Figure 5A to set the color change of the entire time-lapse photography image area, as shown in Figure 5B, which shows the color change setting control 16, where the curve From left to right, it represents the color change from the beginning to the end of the last generated time-lapse photography image area. For example, if you pull it up, the color pixel value will become larger; if you pull it down, the color pixel value will become smaller.
  • the time-lapse photography image area and the non-time-lapse photography image area after determining the time-lapse photography image area and the non-time-lapse photography image area, it also includes: receiving a fourth input from the user on the dynamic control; in response to the fourth input, determining the area of the time-lapse photography image area Change information, the area change information is used to indicate the dynamic change process of the time-lapse photography image area.
  • the area change information includes the dynamic change type, dynamic change duration and dynamic change speed of the time-lapse photography image area.
  • the dynamic change type indicates the shape change mode of the time-lapse photography image area corresponding to the dynamic video, for example, corresponding to circular time-lapse photography
  • the image area can gradually become larger, gradually smaller, gradually larger and then gradually smaller as the video plays, repeated changes, or single changes, etc.
  • the dynamic change duration indicates the change time of the shape of the time-lapse photography image area corresponding to the dynamic video, including changing throughout the entire playing time period of the video, or changing within a part of the playing time period.
  • the speed of dynamic change for example, the time required for the shape of the time-lapse photography image area where the dynamic video corresponds to change from one shape size to another shape size, the change speed is fast and the time is short, and vice versa.
  • FIG. 6 is a schematic diagram of a user interface for dynamically changing settings of a time-lapse photography image area according to an embodiment of the present application.
  • the user can click, for example, the diffusion icon 18 in the lower right corner of the shooting preview interface shown in Figure 6 to set the dynamic change.
  • the time-lapse shooting area may change in the shooting preview interface at this time, prompting the user the effect of the setting of this type.
  • the circular time-lapse photography image area of the preset size originally set by the user is defined by its center (virtual center, invisible to the user), and gradually expand proportionally until the entire preview area is covered, such as Figure 7A, Figure 7B and Figure 7C.
  • the time from the preset size of the time-lapse photography image area to the entire preview area is related to the preset shape and size of the time-lapse photography image area, the size of the preview area corresponding to the recording screen, and the dynamic change speed.
  • FIG. 10A when the user slides to the "Static Bracketing-Single" option, a dynamic effect appears on the shooting preview interface: from the entire preview interface corresponding to the time-lapse shooting area, the circular time-lapse shooting area gradually shrinks, and the circle The shape time-lapse shooting area becomes smaller and smaller until the circular time-lapse photography image area of the preset size originally set by the user is shown in FIG. 10A , FIG. 10B and FIG. 10C .
  • a time bar 20 appears below the diffusion icon, and the center of the time bar 20 shows the duration required for the dynamic effect once, such as "0.5s" in the illustration , the user can slide the time bar left and right to adjust the time, so as to set the dynamic change duration corresponding to the time-lapse photography image area.
  • Step 106 based on the time-lapse photography image area and the non-time-lapse photography image area, record and obtain the target time-lapse photography video.
  • the time-lapse photography image area corresponds to the dynamic video captured in the time-lapse photography mode
  • the non-time-lapse photography image area corresponds to any frame image in the dynamic video captured in the time-lapse photography mode, that is, a static image.
  • the target time-lapse video may only include dynamic video of the time-lapse image region.
  • the target time-lapse photography video may include both the dynamic video of the time-lapse photography image area and the static image of the non-time-lapse photography area.
  • recording Obtaining the target time-lapse photography video includes: receiving a fifth input from the user on the shooting preview interface; in response to the fifth input, recording a first time-lapse photography video; based on the time-lapse photography image area, Each video image frame in a time-lapse photography video is cropped to obtain a second time-lapse photography video; each video image frame in the second time-lapse photography video is synthesized with the first static image respectively to obtain the A target time-lapse video; wherein, the first static image is an image of a non-time-lapse image area corresponding to a first video image frame in the first time-lapse video.
  • the target time-lapse video corresponds to a time-lapse image area and a non-time-lapse image area.
  • the fifth input can be: the user's click input on the recording control displayed on the shooting preview interface, or a voice command input by the user, or a specific gesture input by the user, which can be determined according to actual usage requirements. Not limited.
  • the user After determining the time-lapse photography image area and the non-time-lapse photography image area, the user, for example, clicks the recording button on the shooting preview interface of the terminal device to perform normal video recording. At this time, the entire shooting preview interface follows the time-lapse photography corresponding to the time-lapse photography image area Frame rate, the image data output by the image sensor is collected until the user closes the recording button. Thus, the recorded video corresponding to the time-lapse photography image area in the time-lapse photography mode is collected.
  • each video image frame of the time-lapse photography video collected in the entire shooting preview interface is cropped to obtain a time-lapse photography video corresponding to the time-lapse photography image area after cropping.
  • each frame of the video image frame in each time-lapse photography video is cut out in a one-to-one correspondence according to the shape corresponding to each time-lapse photography image area, and multiple time-lapse photography frames are obtained after cutting.
  • the time-lapse video corresponding to the time-lapse photography image area is cut out in a one-to-one correspondence according to the shape corresponding to each time-lapse photography image area, and multiple time-lapse photography frames are obtained after cutting.
  • the target video image frame in the time-lapse photography video is cropped to obtain a static image corresponding to the non-time-lapse photography image area.
  • the target video image frame is, for example, the first frame image of the time-lapse photography video corresponding to the time-lapse photography image area, it may also be an intermediate frame image, or the last frame image, or any one of the frame images, and the present invention is not limited to The specific examples above.
  • the time-lapse photography video in the time-lapse photography image area is an image of 60 frames corresponding to the shape
  • the static image in the non-time-lapse photography image area is an image of one frame of corresponding shape
  • this frame of static image can be combined with the 60 frames of image respectively Synthesis, so as to get 60 frames corresponding to the target delay of the complete shooting preview interface photography video.
  • the time-lapse videos of all time-lapse image areas can be played simultaneously, and the non-time-lapse image areas remain still images. In this way, it is possible to perform video recording of time-lapse photography in a specific area of the terminal device, and the recorded video in a specific area can be presented with a time-lapse shooting effect.
  • the shooting color parameter information of the time-lapse photography image area may be predetermined. Therefore, color adjustment can be performed on the target time-lapse photography video recorded based on the time-lapse photography image area and the non-time-lapse photography image area according to the shooting color parameter information.
  • the video image frame corresponding to the color change in the target time-lapse photography video determines the video image frame corresponding to the color change in the target time-lapse photography video; adjust each video according to the color pixel value of the target time-lapse photography video The color of the image frame.
  • the set color change duration is the same as the duration of the target time-lapse video, select the video image frame of the entire target time-lapse video, and adjust the color of each frame of the video image according to the corresponding color pixel value. If the set color change duration is shorter than the duration of the target time-lapse video, select some video image frames of the target time-lapse video according to the corresponding ratio according to the starting time point of the color change duration, and adjust each frame according to the corresponding pixel value The color of the video image.
  • each frame of the video image in the time-lapse photography image area after color adjustment and the static image in the non-time-lapse photography image area are synthesized into a final video.
  • the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic color change effect, which can highlight the shooting theme and improve the user's photo experience.
  • the area change information of the time-lapse photography image area may be predetermined. Therefore, according to the area change information, the dynamic change process setting can be performed on the target time-lapse video recorded based on the time-lapse photography image area and the non-time-lapse photography image area.
  • the duration of the target time-lapse photography video and the dynamic change type and dynamic change duration of the time-lapse photography image area determine the video image frame corresponding to the dynamic change in the target time-lapse photography video; according to the preset time-lapse photography image area
  • the shape and size, the size of the corresponding area of the recording screen and the dynamic change speed of the time-lapse photography image area determine the shape and size of the time-lapse photography image area in each video image frame.
  • the final video is synthesized by combining each frame of video image in the time-lapse photography image area with the dynamic change process and the static image in the non-time-lapse photography image area.
  • the user can set the shooting color parameter information and area of the time-lapse photography image area at the same time Change information, so that the recorded video of a specific area of the terminal device is not only presented with a time-lapse shooting effect, but also presented with a dynamic shape change effect and color change effect.
  • the static image in the non-time-lapse photography image area is not satisfied, the static image can also be readjusted.
  • the method further includes: receiving the user's first response to the second video frame in the case of displaying the second video frame in the target time-lapse video.
  • Sixth input in response to the sixth input, update the image of the non-time-lapse photography image area corresponding to the second video image frame.
  • the second video image frame is any frame of video image in the target time-lapse photography video
  • the sixth input can be: the user's click input on the second video image frame in the target time-lapse photography video, or a voice command input by the user, or
  • the specific gesture input by the user may be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • a corresponding frame of image is selected from the target time-lapse video based on the sixth input, and the current static image in the non-time-lapse image area is replaced based on the selected image.
  • the user is provided with a way to replace the static image in the non-time-lapse photography image area, which further improves the fun and practicality of recording video.
  • Figure 12 shows a schematic diagram of video production corresponding to the time-lapse photography video recording method in an embodiment of the present application.
  • the user presets the shooting color parameter information of the time-lapse photography image area respectively. and regional change information.
  • the leftmost side shown in Figure 12 is the time-lapse video image frame a collected according to the preset time-lapse photography frame rate, and then, the time-lapse photography image area corresponding to each frame image in the time-lapse photography video determined according to the area change information
  • the shape of each captured video image frame a is cropped to obtain each time-lapse photography image frame b after the shape changes dynamically.
  • color adjustment is performed on each collected video image frame a according to the shooting color parameter information, for example, for N frames of video images, corresponding to the set color 1, color 2, ..., color N-1, color N Color adjustment is performed to obtain each time-lapse photography image frame c after the dynamic color change.
  • each frame of video image has its own corresponding dynamic color and dynamic shape, and then these video image frames are synthesized to obtain image frame b
  • the preset static image frame such as any frame of video image in the time-lapse photography video image frame a
  • the image frame of the time-lapse shooting video wherein the time-lapse photography image area in the target time-lapse shooting video presents the time-lapse shooting video playback effect of the dynamic change process of color and shape.
  • time-lapse photography video recording method of the embodiment of the present application by receiving the user's first input to the shooting preview interface; in response to the first input, determine the time-lapse photography image area and the non-time-lapse photography image area; based on the The time-lapse photography image area and the non-time-lapse photography image area are recorded to obtain the target time-lapse photography video, thus performing a video recording to realize the time-lapse photography effect of a local area, meeting the needs of users to record various interesting videos, Video production is simple and convenient, which effectively reduces the cumbersome and difficult operation for users to make videos, and improves the user's interactive experience.
  • the time-lapse video recording method provided in the embodiment of the present application may be executed by a time-lapse video recording device.
  • the method for recording the time-lapse video by the time-lapse video recording device is taken as an example to describe the device for recording the time-lapse video provided in the embodiment of the present application.
  • a time-lapse video recording device As shown in FIG. 13 , the time-lapse video recording device 800 includes:
  • the receiving module 820 is configured to receive the user's first input on the shooting preview interface
  • a determining module 840 configured to determine a time-lapse photography image area and a non-time-lapse photography image area in response to the first input;
  • the recording module 860 is configured to record a target time-lapse video based on the time-lapse photography image area and the non-time-lapse photography image area.
  • the receiving module 820 is specifically configured to: receive the user's first input to the shape control in the shooting preview interface; the determining module 840 is specifically configured to: determine the extension based on the target shape in the shape control. Time-lapse photography image area and the non-time-lapse photography image area; wherein, the target shape is determined based on the first input.
  • the determining module 840 is specifically configured to: display the target shape in the shooting preview interface, determine the image area enclosed by the target shape as the time-lapse photography image area, and set the target Other image areas other than the shape are determined as the non-time-lapse photography image area.
  • the time-lapse photography video recording device 800 further includes: a switching module, configured to determine the image area surrounded by the target shape as the time-lapse photography image area in the determination module 840, and set After determining the other image areas of the target shape as the non-time-lapse photography image area, receiving a second input from the user; in response to the second input, determining the image area surrounded by the target shape as the non-time-lapse photography image area, determining other image areas other than the target shape as the time-lapse photography image area.
  • a switching module configured to determine the image area surrounded by the target shape as the time-lapse photography image area in the determination module 840, and set After determining the other image areas of the target shape as the non-time-lapse photography image area, receiving a second input from the user; in response to the second input, determining the image area surrounded by the target shape as the non-time-lapse photography image area, determining other image areas other than the target shape as the time-lapse photography image area.
  • the time-lapse photography video recording device 800 also includes: a color determination module (not shown in the figure), which is used to receive the user's color selection after the determination module 840 determines the time-lapse photography image area and the non-time-lapse photography image area.
  • a third input of the control in response to the third input, determine the shooting color parameter information of the time-lapse photography image area.
  • the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic color change effect, which can more prominently shoot the theme and enhance the user's experience. photo experience.
  • the time-lapse photography video recording device 800 further includes: a region change determination module (not shown in the figure), which is used to receive the user's input after the determination module 840 determines the time-lapse photography image region and the non-time-lapse photography image region.
  • a fourth input of the dynamic control in response to the fourth input, determine region change information of the time-lapse photography image region, where the region change information is used to indicate a dynamic change process of the time-lapse photography image region.
  • the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic shape change effect, which can more prominently shoot the subject and improve the user's ability to take pictures experience.
  • the recording module 860 is specifically configured to: receive a fifth input from the user on the shooting preview interface; record a first time-lapse photography video in response to the fifth input; based on the time-lapse photography image area, Cutting each video image frame in the first time-lapse photography video to obtain a second time-lapse photography video; synthesizing each video image frame in the second time-lapse photography video with the first static image respectively , to obtain the target time-lapse video; wherein, the first static image is an image of a non-time-lapse image area corresponding to a first video image frame in the first time-lapse video.
  • the time-lapse video recording device 800 further includes: an updating module (not shown in the figure), used for displaying the target time-lapse video after the recording module 860 obtains the target time-lapse video
  • an updating module used for displaying the target time-lapse video after the recording module 860 obtains the target time-lapse video
  • receive the sixth input from the user on the second video image frame In response to the sixth input, update the non-time-lapse photography image area corresponding to the second video image frame image.
  • the time-lapse photography video recording device of the embodiment of the present application by receiving the user's first input on the shooting preview interface; in response to the first input, the time-lapse photography image area and the non-time-lapse photography image area are determined The video image area; based on the time-lapse photography image area and the non-time-lapse photography image area, the target time-lapse photography video is recorded, so that the time-lapse photography effect of a local area can be realized by performing a video recording, satisfying the needs of users to record various
  • video production is simple and convenient, effectively reducing the cumbersome and difficult operation of users to make videos, and improving the user's interactive experience.
  • the time-lapse photography video recording apparatus in the embodiment of the present application may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device may be a terminal, or other devices other than the terminal.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.
  • the time-lapse photography video recording device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the time-lapse photography video recording device provided in the embodiment of the present application can realize each process realized by the method embodiments in Fig. 1 to Fig. 12 and achieve the same technical effect, and to avoid repetition, details are not repeated here.
  • the embodiment of the present application further provides an electronic device 900, including a processor 940, a memory 920, and programs or instructions stored in the memory 920 and operable on the processor 940,
  • an electronic device 900 including a processor 940, a memory 920, and programs or instructions stored in the memory 920 and operable on the processor 940,
  • the program or instruction is executed by the processor 940, each process of the above-mentioned embodiment of the time-lapse photography video recording method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 15 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
  • the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1010 through a power management system, thereby The functions of charging, discharging, and power consumption management are realized through the power management system.
  • the structure of the electronic device shown in FIG. 15 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the user input unit 1007 is configured to receive the first input from the user on the shooting preview interface.
  • the processor 1010 is configured to determine a time-lapse photography image area and a non-time-lapse photography image area in response to the first input; based on the time-lapse photography image area and the non-time-lapse photography image area, the recorded Target time-lapse video.
  • the shooting preview interface By receiving a user's first input on the shooting preview interface; in response to the first input, determining a time-lapse photography image area and a non-time-lapse photography image area; based on the time-lapse photography image area and the non-time-lapse photography image Area, record the target time-lapse photography video, and then perform a video recording to realize the time-lapse photography effect of a local area, which meets the needs of users to record various interesting videos. and difficulty, and improve the user's interactive experience.
  • the user input unit 1007 is specifically configured to: receive a user's first input to the shape control in the shooting preview interface.
  • the processor 1010 is specifically configured to: determine the time-lapse photography image area and the non-time-lapse photography image area based on the target shape in the shape control; wherein, the target shape is determined based on the first input of.
  • the processor 1010 is specifically configured to: display the target shape in the shooting preview interface, determine the image area surrounded by the target shape as the time-lapse photography image area, and The image area other than is determined as the non-time-lapse photography image area.
  • the user input unit 1007 is further configured to determine the image area surrounded by the target shape as the time-lapse photography image area, and determine other image areas outside the target shape as the The non-time-lapse photography image area then receives a second input from the user.
  • the processor 1010 is further configured to, in response to the second input, determine the image area enclosed by the target shape as the non-time-lapse photography image area, and determine other image areas outside the target shape as the selected The time-lapse photography image area described above.
  • the user input unit 1007 is further configured to receive a third input from the user on the color control after the time-lapse photography image area and the non-time-lapse photography image area are determined.
  • the processor 1010 is further configured to determine shooting color parameter information of the time-lapse photography image area in response to the third input.
  • the recorded video of a specific area of the terminal device is not only presented with a time-lapse shooting effect, but also presented with a dynamic color change effect, which can highlight the shooting theme and improve the user's photo experience.
  • the user input unit 1007 is further configured to receive a fourth user input on the dynamic control after the time-lapse photography image area and the non-time-lapse photography image area are determined.
  • the processor 1010 is further configured to, in response to the fourth input, determine region change information of the time-lapse photography image region, where the region change information is used to indicate a dynamic change process of the time-lapse photography image region.
  • the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic shape change effect, which can more prominently shoot the subject and enhance The user's photo experience.
  • the user input unit 1007 is specifically configured to: receive a fifth input from the user on the shooting preview interface.
  • the processor 1010 is specifically configured to: record a first time-lapse photography video in response to the fifth input; and perform, based on the time-lapse photography image area, each video image frame in the first time-lapse photography video Cropping to obtain a second time-lapse photography video; each video image frame in the second time-lapse photography video is synthesized with the first static image respectively to obtain the target time-lapse photography video; wherein, the first The static image is an image of a non-time-lapse photography image area corresponding to the first video image frame in the first time-lapse photography video.
  • the user input unit 1007 is further configured to, after the target time-lapse video is obtained, receive a user response to the second video image frame in the target time-lapse video when the second video frame is displayed. Sixth input of two video image frames.
  • the processor 1010 is further configured to, in response to the sixth input, update an image of a non-time-lapse photography image area corresponding to the second video image frame.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • Touch panel 10071 It can include two parts: a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data.
  • the memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 1009 may include volatile memory or nonvolatile memory, or, memory 1009 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM erasable programmable read-only memory
  • Electrical EPROM Electrical EPROM
  • EEPROM electronically programmable Erase Programmable Read-Only Memory
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above embodiment of the time-lapse photography video recording method is realized, and The same technical effect can be achieved, so in order to avoid repetition, details will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the The communication interface is coupled with the processor, and the processor is used to run programs or instructions to realize the various processes of the above-mentioned embodiment of the time-lapse photography video recording method, and can achieve the same technical effect. To avoid repetition, details will not be repeated here. .
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application also provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned embodiment of the time-lapse photography video recording method, and can achieve The same technical effects are not repeated here to avoid repetition.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)

Abstract

The present application belongs to the field of photography. Disclosed are a time-lapse photography video recording method and apparatus, and an electronic device. The solution of the present application comprises: receiving a first input from a user in a photographic preview interface; in response to the first input, determining a time-lapse photography image area and a non-time-lapse photography image area; and on the basis of the time-lapse photography image area and the non-time-lapse photography image area, performing recording so as to obtain a target time-lapse photography video.

Description

延时摄影视频录制方法、装置和电子设备Time-lapse photography video recording method, device and electronic equipment

交叉引用cross reference

本申请要求在2022年02月10日提交中国专利局、申请号为202210126645.4、发明名称为“延时摄影视频录制方法、装置和电子设备”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on February 10, 2022, with the application number 202210126645.4, and the title of the invention is "Time-lapse photography video recording method, device and electronic equipment". The entire content of the application is passed References are incorporated in this application.

技术领域technical field

本申请属于拍摄技术领域,具体涉及一种延时摄影视频录制方法、装置和电子设备。The present application belongs to the technical field of shooting, and in particular relates to a time-lapse photography video recording method, device and electronic equipment.

背景技术Background technique

近年来,短视频录制成为了非常热门的方向,用户对终端设备的视频录制功能的需求日益增长。延时摄影,又叫缩时摄影、缩时录影,是以一种将时间压缩的拍摄技术。其拍摄的通常是一组照片,后期通过将照片串联合成视频,把几分钟、几小时甚至是几天的过程压缩在一个较短的时间内以视频的方式播放。在一段延时摄影视频中,物体或者景物缓慢变化的过程被压缩到一个较短的时间内,呈现出平时用肉眼无法察觉的奇异精彩的景象,而现今随着短视频录制的火遍全网,延时摄影的视频录制功能得到了更多用户的关注。In recent years, short video recording has become a very popular direction, and users' demand for the video recording function of terminal equipment is increasing day by day. Time-lapse photography, also known as time-lapse photography and time-lapse video, is a shooting technique that compresses time. It usually takes a group of photos, and later combines the photos into a video to compress the process of minutes, hours or even days into a short period of time and play it as a video. In a time-lapse photography video, the slow changing process of an object or scene is compressed into a short period of time, presenting a strange and wonderful scene that is usually invisible to the naked eye. Now, with the popularity of short video recording all over the Internet , the video recording function of time-lapse photography has attracted more users' attention.

目前,短视频的制作通常需要经过前期视频录制和后期剪辑修改两个主要的过程。一般需要用户对多个视频进行复杂的抠图、剪辑、合成等操作,操作繁琐,视频制作难度大。At present, the production of short videos usually requires two main processes: pre-video recording and post-editing. Generally, users are required to perform complex operations such as image cutout, editing, and synthesis on multiple videos, which is cumbersome and difficult to make.

发明内容Contents of the invention

本申请实施例的目的是提供一种延时摄影视频录制方法、装置和电子设备,能够解决现有得到延时摄影视频操作繁琐的问题。The purpose of the embodiments of the present application is to provide a time-lapse photography video recording method, device and electronic equipment, which can solve the existing problem of cumbersome operations for obtaining time-lapse photography videos.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:

第一方面,本申请实施例提供了一种延时摄影视频录制方法,该方法包括:In the first aspect, the embodiment of the present application provides a time-lapse photography video recording method, the method comprising:

接收用户对拍摄预览界面的第一输入;响应于所述第一输入,确定延时 摄影图像区域和非延时摄影图像区域;基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频。receiving a user's first input on the shooting preview interface; in response to the first input, determining a delay A photographic image area and a non-time-lapse photographic image area; based on the time-lapse photographic image area and the non-time-lapse photographic image area, a target time-lapse photographic video is recorded.

第二方面,本申请实施例提供了一种延时摄影视频录制装置,包括:In the second aspect, the embodiment of the present application provides a time-lapse photography video recording device, including:

接收模块,用于接收用户对拍摄预览界面的第一输入;A receiving module, configured to receive the user's first input to the shooting preview interface;

确定模块,用于响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域;A determining module, configured to determine a time-lapse photography image area and a non-time-lapse photography image area in response to the first input;

录制模块,用于基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频。A recording module, configured to record a target time-lapse video based on the time-lapse photography image area and the non-time-lapse photography image area.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法的步骤。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The steps of the method.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤。In a sixth aspect, an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the method described in the first aspect.

在本申请实施例中,通过接收用户对拍摄预览界面的第一输入;响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域;基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频,由此执行一次视频录制即实现局部区域的延时摄影效果,满足用户录制趣味视频的需求,视频制作简单方便,有效降低用户制作特效视频的操作繁琐程度及难度,提高用户的交互体验。In the embodiment of the present application, by receiving the user's first input on the shooting preview interface; in response to the first input, determining the time-lapse photography image area and the non-time-lapse photography image area; based on the time-lapse photography image area and The non-time-lapse photography image area is recorded to obtain the target time-lapse photography video, and the time-lapse photography effect of the local area can be realized by performing a video recording, which meets the needs of users for recording interesting videos. The video production is simple and convenient, and effectively reduces user production time. The cumbersomeness and difficulty of the operation of the special effect video can improve the user's interactive experience.

附图说明Description of drawings

图1是本申请实施例的延时摄影视频录制的流程示意图。FIG. 1 is a schematic flowchart of time-lapse photography video recording in an embodiment of the present application.

图2A和图2B是本申请实施例的延时摄影图像区域划分的用户界面示意图之一。FIG. 2A and FIG. 2B are one of the schematic diagrams of the user interface of the time-lapse photography image area division according to the embodiment of the present application.

图3A和图3B是本申请一个实施例的延时摄影图像区域划分的用户界面 示意图之一。Fig. 3A and Fig. 3B are the user interface of time-lapse photography image region division in one embodiment of the present application One of the diagrams.

图4A和图4B是本申请一个实施例的延时摄影图像区域划分的用户界面示意图之二。FIG. 4A and FIG. 4B are the second schematic diagrams of the user interface of time-lapse photography image area division according to an embodiment of the present application.

图5A和图5B是本申请一个实施例的延时摄影图像区域拍摄颜色设置的用户界面示意图。FIG. 5A and FIG. 5B are schematic diagrams of a user interface for color setting of a time-lapse photography image area according to an embodiment of the present application.

图6是本申请一个实施例的延时摄影图像区域动态变化设置的用户界面示意图。Fig. 6 is a schematic diagram of a user interface for dynamically changing settings of a time-lapse photography image area according to an embodiment of the present application.

图7A、图7B和图7C是本申请一个实施例的延时摄影图像区域动态变化设置的用户界面示意图。Fig. 7A, Fig. 7B and Fig. 7C are schematic diagrams of the user interface for setting the dynamic change of the time-lapse photography image area according to an embodiment of the present application.

图8A、图8B和图8C是本申请一个实施例的延时摄影图像区域动态变化设置的用户界面示意图。FIG. 8A , FIG. 8B and FIG. 8C are schematic diagrams of the user interface for setting the dynamic change of the time-lapse photography image area according to an embodiment of the present application.

图9是本申请一个实施例的延时摄影图像区域动态变化设置的用户界面示意图。Fig. 9 is a schematic diagram of a user interface for setting dynamic change of a time-lapse photography image area according to an embodiment of the present application.

图10A、图10B和图10C是本申请一个实施例的延时摄影图像区域动态变化设置的用户界面示意图。FIG. 10A , FIG. 10B and FIG. 10C are schematic diagrams of the user interface for setting the dynamic change of the time-lapse photography image area according to an embodiment of the present application.

图11是本申请一个实施例的延时摄影图像区域动态变化设置的用户界面示意图。Fig. 11 is a schematic diagram of a user interface for dynamically changing settings of time-lapse photography image regions according to an embodiment of the present application.

图12是本申请实施例的延时摄影视频录制方法对应的视频制作示意图。FIG. 12 is a schematic diagram of video production corresponding to the time-lapse photography video recording method of the embodiment of the present application.

图13是本申请实施例的延时摄影视频录制装置的结构方框图。Fig. 13 is a structural block diagram of a time-lapse video recording device according to an embodiment of the present application.

图14是本申请实施例的电子设备的结构方框图。FIG. 14 is a structural block diagram of an electronic device according to an embodiment of the present application.

图15是实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 15 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明 书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first,""second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, explain In the book and the claims, "and/or" means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的延时摄影视频录制方法、装置和电子设备进行详细地说明。The time-lapse photography video recording method, device and electronic equipment provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

在本申请一个实施例中,提供一种延时摄影视频录制方法,该方法可以应用于具有摄像头进行视频录制的终端设备,包括移动电子设备和非移动电子设备。In one embodiment of the present application, a time-lapse photography video recording method is provided, which can be applied to terminal devices with cameras for video recording, including mobile electronic devices and non-mobile electronic devices.

请参考图1,该图是本申请实施例的延时摄影视频录制方法的流程示意图。如图1所示,本申请实施例的延时摄影视频录制方法包括以下步骤102至步骤106。Please refer to FIG. 1 , which is a schematic flowchart of a time-lapse video recording method according to an embodiment of the present application. As shown in FIG. 1 , the time-lapse photography video recording method of the embodiment of the present application includes the following steps 102 to 106 .

步骤102,接收用户对拍摄预览界面的第一输入。Step 102, receiving a first input from the user on the shooting preview interface.

第一输入可以是用户在拍摄预览界面手动绘画形状,也可以是操作拍摄预览界面上显示的形状选择控件。The first input may be that the user manually draws a shape on the shooting preview interface, or may be operating a shape selection control displayed on the shooting preview interface.

第一输入可以为:用户对拍摄预览界面显示的形状选择控件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。The first input can be: the user's click input on the shape selection control displayed on the shooting preview interface, or a voice command input by the user, or a specific gesture input by the user, which can be determined according to actual usage requirements. This is not limited.

本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。The specific gesture in the embodiment of the present application may be any one of a click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; The click input can be single-click input, double-click input, or any number of click inputs, etc., and can also be long-press input or short-press input.

步骤104,响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域。Step 104, in response to the first input, determine a time-lapse photography image area and a non-time-lapse photography image area.

可选地,在步骤102中,接收用户对拍摄预览界面的第一输入,包括:接收用户对拍摄预览界面中形状控件的第一输入。在步骤104中,所述确定延时摄影图像区域和非延时摄影图像区域,包括:基于所述形状控件中的目标形状,确定所述延时摄影图像区域和所述非延时摄影图像区域;其中,所述目标形状是基于所述第一输入确定的。Optionally, in step 102, receiving the user's first input on the shooting preview interface includes: receiving the user's first input on the shape control in the shooting preview interface. In step 104, the determining the time-lapse photography image area and the non-time-lapse photography image area includes: determining the time-lapse photography image area and the non-time-lapse photography image area based on the target shape in the shape control ; wherein, the target shape is determined based on the first input.

录制屏幕中延时摄影图像区域和非延时摄影图像区域的划分可以基于用户的操作进行,例如用户在打开终端设备的相机拍摄预览界面,并选择延时摄影模式以后,通过点击、滑动等输入操作拍摄预览界面中的形状控件,可以在终端设备当前显示的录制屏幕确定延时摄影图像区域或非延时摄影图像区域。 The division of the time-lapse photography image area and the non-time-lapse photography image area in the recording screen can be based on the user's operation, for example, after the user opens the camera shooting preview interface of the terminal device and selects the time-lapse photography mode, input by clicking, sliding, etc. By operating the shape control in the shooting preview interface, the time-lapse photography image area or the non-time-lapse photography image area can be determined on the recording screen currently displayed on the terminal device.

可选地,在一个实施例中,基于所述形状控件中的目标形状,确定所述延时摄影图像区域和所述非延时摄影图像区域,包括:在所述拍摄预览界面中显示所述目标形状,将所述目标形状围成的图像区域确定为所述延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述非延时摄影图像区域。Optionally, in an embodiment, determining the time-lapse photography image area and the non-time-lapse photography image area based on the target shape in the shape control includes: displaying the time-lapse photography image area in the shooting preview interface A target shape, determining an image area surrounded by the target shape as the time-lapse photography image area, and determining other image areas other than the target shape as the non-time-lapse photography image area.

下面参考图2A和图2B,该图示为本申请实施例的延时摄影图像区域划分的用户界面示意图。在该实施例中,终端设备以手机为例进行说明。Referring now to FIG. 2A and FIG. 2B , the illustrations are schematic diagrams of the user interface of the time-lapse photography image area division according to the embodiment of the present application. In this embodiment, the terminal device is described by taking a mobile phone as an example.

如图2A所示,在视频录制前用户可点击录制屏幕左下角形状控件12,则出现多种形状选择,并且还可以提供自定义形状绘制。用户可拉取其中一种形状到录制屏幕对应的拍摄预览界面,并且可调节该形状的大小以及位置,该形状将拍摄预览界面分成两部分。As shown in FIG. 2A , before video recording, the user can click the shape control 12 in the lower left corner of the recording screen, and then a variety of shape options will appear, and custom shape drawing can also be provided. The user can drag one of the shapes to the shooting preview interface corresponding to the recording screen, and can adjust the size and position of the shape. This shape divides the shooting preview interface into two parts.

例如在图2B实施例中,用户选取了圆形,在拍摄预览界面中显示了圆形,用户可以手动调整圆形的大小和所在的位置,此时圆形对应的图像区域1被设置为延时摄影图像区域。For example, in the embodiment in FIG. 2B, the user selects a circle, and the circle is displayed in the shooting preview interface. The user can manually adjust the size and position of the circle. At this time, the image area 1 corresponding to the circle is set to extend time-lapse image area.

如果用户仅选取设置图像区域1为延时摄影图像区域,则确定录制屏幕除图像区域1之外的图像区域均为非延时摄影图像区域。If the user only chooses to set the image area 1 as the time-lapse photography image area, it is determined that the image areas except the image area 1 of the recording screen are all non-time-lapse photography image areas.

在本申请实施例中,延时摄影图像区域内的视频画面将呈现出延时摄影的拍摄效果,非延时摄影图像区域内的视频画面将呈现出静止不动的视频画面,也即在整个拍摄视频的播放过程中,非延时摄影图像区域内的视频画面可以对应显示一帧不变的静止图像。In the embodiment of the present application, the video frames in the time-lapse photography image area will present the shooting effect of time-lapse photography, and the video frames in the non-time-lapse photography image area will present a still video frame, that is, in the entire During the playback of the captured video, the video frame in the non-time-lapse photography image area can correspond to display a frame of still image that does not change.

当然,在其他实施例中,非延时摄影图像区域内的视频画面可以对应显示其他拍摄效果的视频画面。Of course, in other embodiments, the video frames in the non-time-lapse photography image area may correspond to video frames displaying other shooting effects.

如上文所述,根据用户的操作从形状控件选取对应的形状,从而确定延时摄影图像区域。在一个实施例中,若用户希望分出多个区域,则可以同时拉取多个形状到预览界面,从而在拍摄预览界面上对应的位置设置多个延时摄影图像区域。如图3A所示,用户首先拉取了圆形到拍摄预览界面,然后如图3B所示,用户又拉取了矩形到拍摄预览界面,此时圆形对应的图像区域1和矩形对应的图像区域2皆被设置为延时摄影图像区域,除图像区域1、2之外的图像区域3设置为非延时摄影图像区域。As mentioned above, the corresponding shape is selected from the shape control according to the user's operation, so as to determine the time-lapse photography image area. In one embodiment, if the user wishes to separate multiple areas, multiple shapes can be pulled to the preview interface at the same time, so as to set multiple time-lapse photography image areas at corresponding positions on the shooting preview interface. As shown in Figure 3A, the user first pulls a circle to the shooting preview interface, and then as shown in Figure 3B, the user pulls a rectangle to the shooting preview interface. At this time, the image area 1 corresponding to the circle and the image corresponding to the rectangle Area 2 is set as a time-lapse photography image area, and image area 3 other than image areas 1 and 2 is set as a non-time-lapse photography image area.

若用户希望拉取出的形状对应图像区域位置设置为非延时摄影图像区域,而录制屏幕剩余位置的图像区域设置为延时摄影图像区域,则可根据用户对应的输入操作进行设置。 If the user wants to set the position of the image area corresponding to the pulled shape as a non-time-lapse photography image area, and set the image area of the rest of the recording screen as a time-lapse photography image area, it can be set according to the corresponding input operation of the user.

可选地,所述将所述目标形状围成的图像区域确定为所述延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述非延时摄影图像区域,之后,还包括:接收用户的第二输入;响应于所述第二输入,将所述目标形状围成的图像区域确定为所述非延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述延时摄影图像区域。Optionally, the image area surrounded by the target shape is determined as the time-lapse photography image area, and other image areas other than the target shape are determined as the non-time-lapse photography image area, after that, It also includes: receiving a second input from the user; in response to the second input, determining the image area surrounded by the target shape as the non-time-lapse photography image area, and determining other image areas other than the target shape Determine the image region for the time-lapse photography.

通过上述实施例,可以实现延时摄影图像区域和非延时摄影图像区域的切换。Through the above embodiments, switching between the time-lapse photography image area and the non-time-lapse photography image area can be realized.

第二输入可以为:用户对拍摄预览界面显示的目标控件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。The second input can be: the user's click input on the target control displayed on the shooting preview interface, or a voice command input by the user, or a specific gesture input by the user, which can be determined according to actual use requirements. Not limited.

本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。The specific gesture in the embodiment of the present application may be any one of a click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; The click input can be single-click input, double-click input, or any number of click inputs, etc., and can also be long-press input or short-press input.

参考图4A,第二输入例如为用户点击拍摄预览界面右下角的反转图标14进行设置,如此可以将图4A中已设置为延时摄影图像区域的图像区域1和图像区域2修改设置为非延时摄影图像区域,同时将4A中已设置为非延时摄影图像区域的图像区域3修改设置为延时摄影图像区域。即,实现图4A中延时摄影图像区域和非延时摄影图像区域的切换。Referring to FIG. 4A , the second input is, for example, the user clicks the inversion icon 14 in the lower right corner of the shooting preview interface to set, so that the image area 1 and image area 2 that have been set as time-lapse photography image areas in FIG. 4A can be modified and set to non- The time-lapse photography image area, and at the same time, the image area 3 that has been set as the non-time-lapse photography image area in 4A is modified and set as the time-lapse photography image area. That is, switching between the time-lapse photography image area and the non-time-lapse photography image area in FIG. 4A is realized.

此外,若用户希望取消某个已设置的延时摄影图像区域,可通过点击拍摄预览界面已设置的延时摄影图像区域的形状,然后点击取消即可将该延时摄影图像区域修改设置为非延时摄影图像区域。此时,默认的延时摄影图像区域为用户拉取到拍摄预览界面且未取消的形状对应的图像区域,拍摄预览界面的其他区域确定为非延时摄影图像区域。In addition, if the user wants to cancel a certain time-lapse photography image area that has been set, he can click the shape of the time-lapse photography image area that has been set on the shooting preview interface, and then click Cancel to modify the time-lapse photography image area to a non- Time-lapse photography image area. At this time, the default time-lapse photography image area is the image area corresponding to the shape pulled by the user to the shooting preview interface and not canceled, and other areas of the shooting preview interface are determined to be non-time-lapse photography image areas.

在一个实施例中,为满足用户录制各种趣味视频的需求,还可以在确定延时摄影图像区域和非延时摄影图像区域之后,根据用户的选择对延时摄影图像区域进行各种渲染设置,例如拍摄颜色参数设置、动态变化过程设置等。In one embodiment, in order to meet the user's needs for recording various interesting videos, after determining the time-lapse photography image area and the non-time-lapse photography image area, various rendering settings can be performed on the time-lapse photography image area according to the user's selection , such as shooting color parameter settings, dynamic change process settings, etc.

可选地,所述确定延时摄影图像区域和非延时摄影图像区域之后,还包括:接收用户对颜色控件的第三输入;响应于所述第三输入,确定所述延时摄影图像区域的拍摄颜色参数信息。Optionally, after the determining the time-lapse photography image area and the non-time-lapse photography image area, it also includes: receiving a third input from the user on the color control; in response to the third input, determining the time-lapse photography image area shooting color parameter information.

拍摄颜色参数信息包括色彩变化时长及对应的色彩像素值,色彩变化时长是设置动态视频对应存在色彩变化的时长,该时长可以贯穿动态视频的整 个播放时间段,也可以是动态视频的部分播放时间段。色彩像素值包括对应动态视频播放时的亮度值和/或RGB像素值。The shooting color parameter information includes the color change duration and the corresponding color pixel value. The color change duration is to set the duration of the dynamic video corresponding to the color change, and the duration can run through the entire dynamic video. A playback time period, or part of a dynamic video playback time period. The color pixel values include brightness values and/or RGB pixel values corresponding to dynamic video playback.

下面参考图5A和图5B,该图为本申请实施例的延时摄影图像区域的拍摄颜色参数信息设置的用户界面示意图。Referring now to FIG. 5A and FIG. 5B , the figure is a schematic diagram of a user interface for setting shooting color parameter information of a time-lapse photography image area according to an embodiment of the present application.

在录制视频前,用户可点击图5A所示的拍摄预览界面右下角的“色彩”控件,设置整个延时摄影图像区域的色彩变化,如图5B,显示出色彩变化设置控件16,其中的曲线从左到右表示最后生成的延时摄影图像区域从开始到结束的色彩变化。比如向上拉,色彩像素值变大;向下拉,色彩像素值变小。Before recording the video, the user can click the "color" control in the lower right corner of the shooting preview interface shown in Figure 5A to set the color change of the entire time-lapse photography image area, as shown in Figure 5B, which shows the color change setting control 16, where the curve From left to right, it represents the color change from the beginning to the end of the last generated time-lapse photography image area. For example, if you pull it up, the color pixel value will become larger; if you pull it down, the color pixel value will become smaller.

可选地,确定延时摄影图像区域和非延时摄影图像区域之后,还包括:接收用户对动态控件的第四输入;响应于所述第四输入,确定所述延时摄影图像区域的区域变化信息,所述区域变化信息用于指示所述延时摄影图像区域的动态变化过程。Optionally, after determining the time-lapse photography image area and the non-time-lapse photography image area, it also includes: receiving a fourth input from the user on the dynamic control; in response to the fourth input, determining the area of the time-lapse photography image area Change information, the area change information is used to indicate the dynamic change process of the time-lapse photography image area.

区域变化信息包括延时摄影图像区域的动态变化类型、动态变化时长及动态变化速度,动态变化类型表示包括动态视频对应所在的延时摄影图像区域的形状变化模式,例如对应圆形的延时摄影图像区域,可以随着视频播放逐渐变大,逐渐变小,逐渐变大后再逐渐变小,重复变化,或者单次变化等等。动态变化时长表示动态视频对应所在的延时摄影图像区域的形状变化时间,包括贯彻整个视频播放时间段都进行变化,或者在部分播放时间段内变化。动态变化速度例如动态视频对应所在的延时摄影图像区域的形状从一形状大小变化到另一形状大小所需的时间,变化速度快,时间短,反之则时间长。The area change information includes the dynamic change type, dynamic change duration and dynamic change speed of the time-lapse photography image area. The dynamic change type indicates the shape change mode of the time-lapse photography image area corresponding to the dynamic video, for example, corresponding to circular time-lapse photography The image area can gradually become larger, gradually smaller, gradually larger and then gradually smaller as the video plays, repeated changes, or single changes, etc. The dynamic change duration indicates the change time of the shape of the time-lapse photography image area corresponding to the dynamic video, including changing throughout the entire playing time period of the video, or changing within a part of the playing time period. The speed of dynamic change, for example, the time required for the shape of the time-lapse photography image area where the dynamic video corresponds to change from one shape size to another shape size, the change speed is fast and the time is short, and vice versa.

下面参考图6,该图为本申请实施例的延时摄影图像区域的动态变化设置的用户界面示意图。Next, refer to FIG. 6 , which is a schematic diagram of a user interface for dynamically changing settings of a time-lapse photography image area according to an embodiment of the present application.

录制视频前用户可点击例如图6所示的拍摄预览界面右下角的扩散图标18,进行动态变化的设置,用户点击扩散图标18,弹出延时拍摄区域的多种动态变化类型:动态扩散-单次、动态扩散-重复、动态扩散-收缩、静态包围-单次、静态包围-重复、静态包围-扩散。Before recording the video, the user can click, for example, the diffusion icon 18 in the lower right corner of the shooting preview interface shown in Figure 6 to set the dynamic change. The user clicks the diffusion icon 18, and various dynamic change types of the time-lapse shooting area will pop up: dynamic diffusion-single times, dynamic spread-repeat, dynamic spread-shrink, static surround-single, static surround-repeat, static surround-diffuse.

当用户将手指滑到对应的类型时,此时拍摄预览界面可出现延时拍摄区域的变化,提示用户该类型设置的效果。When the user slides his finger to the corresponding type, the time-lapse shooting area may change in the shooting preview interface at this time, prompting the user the effect of the setting of this type.

如图7A所示,用户按住“动态扩散-单次”时,此时拍摄预览界面出现一次动态效果:用户原本设置的预设大小的圆形延时摄影图像区域以其圆心(虚拟圆心,用户不可见),逐渐等比例扩散变大,直到撑满整个预览区域,如 图7A、图7B和图7C所示。从预先设置的延时摄影图像区域大小扩散到整个预览区域的时间,与延时摄影图像区域的预设形状大小、录制屏幕对应预览区域的大小和动态变化速度有关。As shown in Figure 7A, when the user presses "Dynamic Diffusion-Single", a dynamic effect will appear on the shooting preview interface at this time: the circular time-lapse photography image area of the preset size originally set by the user is defined by its center (virtual center, invisible to the user), and gradually expand proportionally until the entire preview area is covered, such as Figure 7A, Figure 7B and Figure 7C. The time from the preset size of the time-lapse photography image area to the entire preview area is related to the preset shape and size of the time-lapse photography image area, the size of the preview area corresponding to the recording screen, and the dynamic change speed.

如图8A所示,若用户按住“动态扩散-收缩”时,此时拍摄预览界面出现一次动态效果:用户原本设置的预设大小的圆形延时摄影图像区域以其圆心,逐渐扩散变大,直到撑满整个预览区域,如图8B所示。然后再逐渐缩小至用户原本设置的圆形位置,如图8C所示。As shown in Figure 8A, if the user presses "Dynamic Diffusion-Contraction", a dynamic effect will appear on the shooting preview interface at this time: the circular time-lapse photography image area with the preset size originally set by the user gradually spreads and becomes large until it fills the entire preview area, as shown in Figure 8B. Then gradually shrink to the circular position originally set by the user, as shown in FIG. 8C .

如图9所示,若用户选择“动态扩散-收缩-重复”,此时拍摄预览界面重复出现图8A至图8C所示的动态效果,直到用户把手指划开。As shown in FIG. 9 , if the user selects “Dynamic Diffusion-Contraction-Repeat”, the dynamic effects shown in FIG. 8A to FIG. 8C will appear repeatedly on the shooting preview interface until the user slides his finger away.

如图10A所示,当用户滑至“静态包围-单次”选项时,拍摄预览界面出现动态效果:从整个预览界面对应为延时拍摄区域,逐渐缩小出圆形的延时拍摄区域,圆形延时拍摄区域越变越小,直到用户原本设置的预设大小的圆形延时摄影图像区域,如图10A、图10B和图10C所示。As shown in Figure 10A, when the user slides to the "Static Bracketing-Single" option, a dynamic effect appears on the shooting preview interface: from the entire preview interface corresponding to the time-lapse shooting area, the circular time-lapse shooting area gradually shrinks, and the circle The shape time-lapse shooting area becomes smaller and smaller until the circular time-lapse photography image area of the preset size originally set by the user is shown in FIG. 10A , FIG. 10B and FIG. 10C .

当用户选择“静态包围-重复”,则预览界面重复出现图10A、图10B和图10C的效果。When the user selects "Static Bracket-Repeat", the preview interface will repeat the effects shown in Figure 10A, Figure 10B and Figure 10C.

当用户选择“静态包围-扩散”时,首先出现图10A、图10B和图10C效果,再出现图7A、图7B和图7C效果。When the user selects "Static Surrounding-Diffusion", the effects shown in Figure 10A, Figure 10B and Figure 10C appear first, and then the effects shown in Figure 7A, Figure 7B and Figure 7C appear.

用户还可以选择“静态包围-扩散-重复”,即重复出现上述“静态包围-扩散”的效果。Users can also choose "static surround-diffusion-repeat", that is, to repeat the above-mentioned "static surround-diffusion" effect.

当用户根据自身需求例如双击选定某个设置类型时,如图11所示,扩散图标下方出现时间条20,时间条20中心显示该动态效果一次需要的时长,例如图示的“0.5s”,用户可以左右滑动时间条来调节时间,从而设置延时摄影图像区域对应的动态变化时长。When the user selects a certain setting type according to his own needs, such as double-clicking, as shown in Figure 11, a time bar 20 appears below the diffusion icon, and the center of the time bar 20 shows the duration required for the dynamic effect once, such as "0.5s" in the illustration , the user can slide the time bar left and right to adjust the time, so as to set the dynamic change duration corresponding to the time-lapse photography image area.

步骤106,基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频。Step 106, based on the time-lapse photography image area and the non-time-lapse photography image area, record and obtain the target time-lapse photography video.

延时摄影图像区域对应以延时摄影模式拍摄得到动态视频,非延时摄影图像区域对应以延时摄影模式拍摄的动态视频中的任意一帧图像,即静态图像。The time-lapse photography image area corresponds to the dynamic video captured in the time-lapse photography mode, and the non-time-lapse photography image area corresponds to any frame image in the dynamic video captured in the time-lapse photography mode, that is, a static image.

在一个实施例中,目标延时摄影视频可以仅包括延时摄影图像区域的动态视频。或者,目标延时摄影视频可以同时包括延时摄影图像区域的动态视频和非延时拍摄区域的静态图像。In one embodiment, the target time-lapse video may only include dynamic video of the time-lapse image region. Or, the target time-lapse photography video may include both the dynamic video of the time-lapse photography image area and the static image of the non-time-lapse photography area.

可选地,基于所述延时摄影图像区域和所述非延时摄影图像区域,录制 得到目标延时摄影视频,包括:接收用户对拍摄预览界面的第五输入;响应于所述第五输入,录制得到第一延时摄影视频;基于所述延时摄影图像区域,对所述第一延时摄影视频中每一个视频图像帧进行裁剪,得到第二延时摄影视频;将所述第二延时摄影视频中的每一个视频图像帧分别与第一静态图像进行合成,得到所述目标延时摄影视频;其中,所述第一静态图像为所述第一延时摄影视频中第一视频图像帧对应的非延时摄影图像区域的图像。Optionally, based on the time-lapse photography image area and the non-time-lapse photography image area, recording Obtaining the target time-lapse photography video includes: receiving a fifth input from the user on the shooting preview interface; in response to the fifth input, recording a first time-lapse photography video; based on the time-lapse photography image area, Each video image frame in a time-lapse photography video is cropped to obtain a second time-lapse photography video; each video image frame in the second time-lapse photography video is synthesized with the first static image respectively to obtain the A target time-lapse video; wherein, the first static image is an image of a non-time-lapse image area corresponding to a first video image frame in the first time-lapse video.

在该实施例中,目标延时摄影视频对应延时摄影图像区域和非延时拍摄图像区域。In this embodiment, the target time-lapse video corresponds to a time-lapse image area and a non-time-lapse image area.

第五输入可以为:用户对拍摄预览界面显示的录制控件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。The fifth input can be: the user's click input on the recording control displayed on the shooting preview interface, or a voice command input by the user, or a specific gesture input by the user, which can be determined according to actual usage requirements. Not limited.

在确定延时摄影图像区域和非延时摄影图像区域之后,用户例如通过点击终端设备的拍摄预览界面的录制按钮进行正常录像,此时整个拍摄预览界面按照延时摄影图像区域对应的延时摄影帧率,对图像传感器输出的图像数据进行采集,直到用户关闭录制按钮。由此,采集到延时摄影模式下延时摄影图像区域对应的录制视频。After determining the time-lapse photography image area and the non-time-lapse photography image area, the user, for example, clicks the recording button on the shooting preview interface of the terminal device to perform normal video recording. At this time, the entire shooting preview interface follows the time-lapse photography corresponding to the time-lapse photography image area Frame rate, the image data output by the image sensor is collected until the user closes the recording button. Thus, the recorded video corresponding to the time-lapse photography image area in the time-lapse photography mode is collected.

按照用户设置的延时摄影图像区域的形状,对采集的整个拍摄预览界面的延时摄影视频的各视频图像帧进行裁剪,得到裁剪后延时摄影图像区域对应的延时摄影视频。According to the shape of the time-lapse photography image area set by the user, each video image frame of the time-lapse photography video collected in the entire shooting preview interface is cropped to obtain a time-lapse photography video corresponding to the time-lapse photography image area after cropping.

如果延时摄影图像区域有多个,则按照各个延时摄影图像区域对应的形状,一一对应地分别对各延时摄影视频的中的每帧视频图像帧进行裁剪,得到裁剪后多个延时摄影图像区域对应的延时摄影视频。If there are multiple time-lapse photography image areas, each frame of the video image frame in each time-lapse photography video is cut out in a one-to-one correspondence according to the shape corresponding to each time-lapse photography image area, and multiple time-lapse photography frames are obtained after cutting. The time-lapse video corresponding to the time-lapse photography image area.

按照设置的非延时摄影图像区域的形状,裁剪延时摄影视频中目标视频图像帧,得到非延时摄影图像区域对应的静态图像。目标视频图像帧例如为延时摄影图像区域对应的延时摄影视频的第一帧图像,也可以是中间帧图像,或者最后一帧图像,也可以是其中任意一帧图像,本发明不局限于上述具体实施例。According to the shape of the set non-time-lapse photography image area, the target video image frame in the time-lapse photography video is cropped to obtain a static image corresponding to the non-time-lapse photography image area. The target video image frame is, for example, the first frame image of the time-lapse photography video corresponding to the time-lapse photography image area, it may also be an intermediate frame image, or the last frame image, or any one of the frame images, and the present invention is not limited to The specific examples above.

将静态图像分别与第二延时摄影视频中的各视频图像帧进行合成,得到包括多个合成后视频图像帧的目标延时摄影视频。Combining the static image with each video image frame in the second time-lapse video to obtain a target time-lapse video including a plurality of synthesized video frames.

例如,延时摄影图像区域的延时摄影视频为60帧对应形状的图像,非延时摄影图像区域的静态图像为一帧对应形状的图像,则可以将这一帧静态图像分别与60帧图像合成,从而得到60帧对应完整拍摄预览界面的目标延时 摄影视频。For example, the time-lapse photography video in the time-lapse photography image area is an image of 60 frames corresponding to the shape, and the static image in the non-time-lapse photography image area is an image of one frame of corresponding shape, then this frame of static image can be combined with the 60 frames of image respectively Synthesis, so as to get 60 frames corresponding to the target delay of the complete shooting preview interface photography video.

在打开合成后的目标延时摄影视频进行播放时,可以实现所有延时摄影图像区域的各个延时摄影视频同时播放,且非延时摄影图像区域保持静止画面。由此,可以实现终端设备的特定区域进行延时摄影的视频录制,以及特定区域的录制视频以延时拍摄效果呈现。When the synthesized target time-lapse video is played, the time-lapse videos of all time-lapse image areas can be played simultaneously, and the non-time-lapse image areas remain still images. In this way, it is possible to perform video recording of time-lapse photography in a specific area of the terminal device, and the recorded video in a specific area can be presented with a time-lapse shooting effect.

如上文所述,在一个实施例中,可以预先确定延时摄影图像区域的拍摄颜色参数信息。因此,可以按照拍摄颜色参数信息,对基于延时摄影图像区域和非延时摄影图像区域录制得到的目标延时摄影视频,进行色彩调整。As mentioned above, in one embodiment, the shooting color parameter information of the time-lapse photography image area may be predetermined. Therefore, color adjustment can be performed on the target time-lapse photography video recorded based on the time-lapse photography image area and the non-time-lapse photography image area according to the shooting color parameter information.

具体地,根据目标延时摄影视频的时长和延时摄影图像区域的色彩变化时长,确定目标延时摄影视频中对应色彩变化的视频图像帧;根据目标延时摄影视频的色彩像素值调整各视频图像帧的颜色。Specifically, according to the duration of the target time-lapse photography video and the color change duration of the time-lapse photography image area, determine the video image frame corresponding to the color change in the target time-lapse photography video; adjust each video according to the color pixel value of the target time-lapse photography video The color of the image frame.

如果设置的色彩变化时长和目标延时摄影视频的时长一样,则选取整个目标延时摄影视频的视频图像帧,并根据对应的色彩像素值调整每帧视频图像的色彩。如果设置的色彩变化时长小于目标延时摄影视频的时长,则根据色彩变化时长的起始时间点,按照对应比例选取部分目标延时摄影视频的视频图像帧,并根据对应的像素值调整各帧视频图像的色彩。If the set color change duration is the same as the duration of the target time-lapse video, select the video image frame of the entire target time-lapse video, and adjust the color of each frame of the video image according to the corresponding color pixel value. If the set color change duration is shorter than the duration of the target time-lapse video, select some video image frames of the target time-lapse video according to the corresponding ratio according to the starting time point of the color change duration, and adjust each frame according to the corresponding pixel value The color of the video image.

最后,将色彩调整后延时摄影图像区域的各帧视频图像与非延时摄影图像区域的静态图像合成最终的视频。由此,可以实现终端设备的特定区域的录制视频不仅以延时拍摄效果呈现,同时以动态的色彩变化效果呈现,可更加突出拍摄主题,提升用户的拍照体验。Finally, each frame of the video image in the time-lapse photography image area after color adjustment and the static image in the non-time-lapse photography image area are synthesized into a final video. In this way, the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic color change effect, which can highlight the shooting theme and improve the user's photo experience.

如上文所述,在一个实施例中,可以预先确定延时摄影图像区域的区域变化信息。因此,可以按照区域变化信息,对基于延时摄影图像区域和非延时摄影图像区域录制得到的目标延时摄影视频,进行动态变化过程设置。As mentioned above, in one embodiment, the area change information of the time-lapse photography image area may be predetermined. Therefore, according to the area change information, the dynamic change process setting can be performed on the target time-lapse video recorded based on the time-lapse photography image area and the non-time-lapse photography image area.

具体地,根据目标延时摄影视频的时长和延时摄影图像区域的动态变化类型、动态变化时长,确定目标延时摄影视频中对应动态变化的视频图像帧;根据延时摄影图像区域的预设形状大小、录制屏幕对应区域的大小和延时摄影图像区域的动态变化速度,确定各视频图像帧中延时摄影图像区域的形状大小。最后,将设置动态变化过程的延时摄影图像区域的各帧视频图像与非延时摄影图像区域的静态图像合成最终的视频。由此,可以实现终端设备的特定区域的录制视频不仅以延时拍摄效果呈现,同时以动态的形状变化效果呈现,可更加突出拍摄主题,提升用户的拍照体验。Specifically, according to the duration of the target time-lapse photography video and the dynamic change type and dynamic change duration of the time-lapse photography image area, determine the video image frame corresponding to the dynamic change in the target time-lapse photography video; according to the preset time-lapse photography image area The shape and size, the size of the corresponding area of the recording screen and the dynamic change speed of the time-lapse photography image area determine the shape and size of the time-lapse photography image area in each video image frame. Finally, the final video is synthesized by combining each frame of video image in the time-lapse photography image area with the dynamic change process and the static image in the non-time-lapse photography image area. In this way, the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic shape change effect, which can highlight the shooting theme and improve the user's photo experience.

当然,用户可以同时设置延时摄影图像区域的拍摄颜色参数信息和区域 变化信息,由此实现终端设备的特定区域的录制视频不仅以延时拍摄效果呈现,同时以动态的形状变化效果和色彩变化效果呈现。Of course, the user can set the shooting color parameter information and area of the time-lapse photography image area at the same time Change information, so that the recorded video of a specific area of the terminal device is not only presented with a time-lapse shooting effect, but also presented with a dynamic shape change effect and color change effect.

此外,当用户完成拍摄并生成对应的目标延时拍摄视频后,若对非延时摄影图像区域的静态图像不满意,还可以对静态图像进行重新调整。In addition, after the user completes the shooting and generates the corresponding target time-lapse video, if the static image in the non-time-lapse photography image area is not satisfied, the static image can also be readjusted.

可选地,所述得到所述目标延时摄影视频之后,还包括:在显示所述目标延时摄影视频中第二视频图像帧的情况下,接收用户对所述第二视频图像帧的第六输入;响应于所述第六输入,更新所述第二视频图像帧对应的非延时摄影图像区域的图像。Optionally, after the obtaining of the target time-lapse video, the method further includes: receiving the user's first response to the second video frame in the case of displaying the second video frame in the target time-lapse video. Sixth input: in response to the sixth input, update the image of the non-time-lapse photography image area corresponding to the second video image frame.

第二视频图像帧为目标延时摄影视频中任意一帧视频图像,第六输入可以为:用户对目标延时摄影视频中第二视频图像帧的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。The second video image frame is any frame of video image in the target time-lapse photography video, and the sixth input can be: the user's click input on the second video image frame in the target time-lapse photography video, or a voice command input by the user, or The specific gesture input by the user may be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application.

在得到目标延时拍摄视频之后,基于第六输入从目标延时拍摄视频中对应选取一帧图像,基于选取的图像更换非延时摄影图像区域当前的静态图像。由此,提供给用户一种可更换非延时摄影图像区域的静态图像的方式,更提升了录制视频的趣味性和实用性。After the target time-lapse video is obtained, a corresponding frame of image is selected from the target time-lapse video based on the sixth input, and the current static image in the non-time-lapse image area is replaced based on the selected image. As a result, the user is provided with a way to replace the static image in the non-time-lapse photography image area, which further improves the fun and practicality of recording video.

图12给出了本申请一个实施例的延时摄影视频录制方法对应的视频制作示意图,在该实施例中,用户对延时摄影图像区域分别预先设置有延时摄影图像区域的拍摄颜色参数信息和区域变化信息。Figure 12 shows a schematic diagram of video production corresponding to the time-lapse photography video recording method in an embodiment of the present application. In this embodiment, the user presets the shooting color parameter information of the time-lapse photography image area respectively. and regional change information.

图12所示最左侧为按照预设的延时摄影帧率采集的延时视频图像帧a,然后,根据区域变化信息确定的延时摄影视频中各帧图像对应的延时摄影图像区域的形状,对采集的各视频图像帧a进行裁剪,得到形状动态变化后的各延时摄影图像帧b。在剪裁的同时,根据拍摄颜色参数信息对采集的各视频图像帧a进行色彩调整,例如对于N帧视频图像,分别对应采用设置的色彩1、色彩2、……、色彩N-1、色彩N进行色彩调整,得到色彩动态变化后的各延时摄影图像帧c。The leftmost side shown in Figure 12 is the time-lapse video image frame a collected according to the preset time-lapse photography frame rate, and then, the time-lapse photography image area corresponding to each frame image in the time-lapse photography video determined according to the area change information The shape of each captured video image frame a is cropped to obtain each time-lapse photography image frame b after the shape changes dynamically. At the same time of clipping, color adjustment is performed on each collected video image frame a according to the shooting color parameter information, for example, for N frames of video images, corresponding to the set color 1, color 2, ..., color N-1, color N Color adjustment is performed to obtain each time-lapse photography image frame c after the dynamic color change.

也就是说,通过对采集的各视频图像帧a同时进行裁剪和色彩调整,每一帧视频图像都有各自对应的动态颜色和动态形状,然后将这些视频图像帧合成,可得到包括图像帧b对应的形状动态变化效果和图像帧c对应的色彩动态变化效果的动态视频d。That is to say, by simultaneously cropping and color-adjusting the collected video image frames a, each frame of video image has its own corresponding dynamic color and dynamic shape, and then these video image frames are synthesized to obtain image frame b The corresponding shape dynamic change effect and the dynamic video d of the color dynamic change effect corresponding to the image frame c.

最后,将预设的静态图像帧,例如延时摄影视频图像帧a中的任意一帧视频图像,分别与动态视频d中的各延时摄影视频图像帧合成,得到目标延 时拍摄视频的图像帧,其中目标延时拍摄视频中延时摄影图像区域呈现色彩和形状动态变化过程的延时拍摄视频播放效果。Finally, the preset static image frame, such as any frame of video image in the time-lapse photography video image frame a, is synthesized with each time-lapse photography video image frame in the dynamic video d respectively, to obtain the target time-lapse photography The image frame of the time-lapse shooting video, wherein the time-lapse photography image area in the target time-lapse shooting video presents the time-lapse shooting video playback effect of the dynamic change process of color and shape.

在本申请实施例的延时摄影视频录制方法中,通过接收用户对拍摄预览界面的第一输入;响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域;基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频,由此执行一次视频录制即实现局部区域的延时摄影效果,满足用户录制各种趣味视频的需求,视频制作简单方便,有效降低用户制作视频的操作繁琐程度及难度,提高用户的交互体验。In the time-lapse photography video recording method of the embodiment of the present application, by receiving the user's first input to the shooting preview interface; in response to the first input, determine the time-lapse photography image area and the non-time-lapse photography image area; based on the The time-lapse photography image area and the non-time-lapse photography image area are recorded to obtain the target time-lapse photography video, thus performing a video recording to realize the time-lapse photography effect of a local area, meeting the needs of users to record various interesting videos, Video production is simple and convenient, which effectively reduces the cumbersome and difficult operation for users to make videos, and improves the user's interactive experience.

需要说明的是,本申请实施例提供的延时摄影视频录制方法,执行主体可以为延时摄影视频录制装置。本申请实施例中以延时摄影视频录制装置执行延时摄影视频录制的方法为例,说明本申请实施例提供的延时摄影视频录制的装置。It should be noted that, the time-lapse video recording method provided in the embodiment of the present application may be executed by a time-lapse video recording device. In the embodiment of the present application, the method for recording the time-lapse video by the time-lapse video recording device is taken as an example to describe the device for recording the time-lapse video provided in the embodiment of the present application.

根据本申请实施例,提供了一种延时摄影视频录制装置,如图13所示,延时摄影视频录制装置800包括:According to an embodiment of the present application, a time-lapse video recording device is provided. As shown in FIG. 13 , the time-lapse video recording device 800 includes:

接收模块820,用于接收用户对拍摄预览界面的第一输入;The receiving module 820 is configured to receive the user's first input on the shooting preview interface;

确定模块840,用于响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域;A determining module 840, configured to determine a time-lapse photography image area and a non-time-lapse photography image area in response to the first input;

录制模块860,用于基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频。The recording module 860 is configured to record a target time-lapse video based on the time-lapse photography image area and the non-time-lapse photography image area.

可选地,所述接收模块820,具体用于:接收用户对拍摄预览界面中形状控件的第一输入;确定模块840,具体用于:基于所述形状控件中的目标形状,确定所述延时摄影图像区域和所述非延时摄影图像区域;其中,所述目标形状是基于所述第一输入确定的。Optionally, the receiving module 820 is specifically configured to: receive the user's first input to the shape control in the shooting preview interface; the determining module 840 is specifically configured to: determine the extension based on the target shape in the shape control. Time-lapse photography image area and the non-time-lapse photography image area; wherein, the target shape is determined based on the first input.

可选地,所述确定模块840具体用于:在所述拍摄预览界面中显示所述目标形状,将所述目标形状围成的图像区域确定为所述延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述非延时摄影图像区域。Optionally, the determining module 840 is specifically configured to: display the target shape in the shooting preview interface, determine the image area enclosed by the target shape as the time-lapse photography image area, and set the target Other image areas other than the shape are determined as the non-time-lapse photography image area.

可选地,延时摄影视频录制装置800还包括:切换模块,用于在确定模块840将所述目标形状围成的图像区域确定为所述延时摄影图像区域、将所述目标形状之外的其他图像区域确定为所述非延时摄影图像区域之后,接收用户的第二输入;响应于所述第二输入,将所述目标形状围成的图像区域确定为所述非延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述延时摄影图像区域。 Optionally, the time-lapse photography video recording device 800 further includes: a switching module, configured to determine the image area surrounded by the target shape as the time-lapse photography image area in the determination module 840, and set After determining the other image areas of the target shape as the non-time-lapse photography image area, receiving a second input from the user; in response to the second input, determining the image area surrounded by the target shape as the non-time-lapse photography image area, determining other image areas other than the target shape as the time-lapse photography image area.

可选地,延时摄影视频录制装置800还包括:颜色确定模块(图中未示出),用于在确定模块840确定延时摄影图像区域和非延时摄影图像区域之后,接收用户对颜色控件的第三输入;响应于所述第三输入,确定所述延时摄影图像区域的拍摄颜色参数信息。Optionally, the time-lapse photography video recording device 800 also includes: a color determination module (not shown in the figure), which is used to receive the user's color selection after the determination module 840 determines the time-lapse photography image area and the non-time-lapse photography image area. A third input of the control; in response to the third input, determine the shooting color parameter information of the time-lapse photography image area.

通过预先设置延时摄影图像区域的拍摄颜色参数信息,可以实现终端设备的特定区域的录制视频不仅以延时拍摄效果呈现,同时以动态的色彩变化效果呈现,可更加突出拍摄主题,提升用户的拍照体验。By pre-setting the shooting color parameter information of the time-lapse photography image area, the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic color change effect, which can more prominently shoot the theme and enhance the user's experience. photo experience.

可选地,延时摄影视频录制装置800还包括:区域变化确定模块(图中未示出),用于在确定模块840确定延时摄影图像区域和非延时摄影图像区域之后,接收用户对动态控件的第四输入;响应于所述第四输入,确定所述延时摄影图像区域的区域变化信息,所述区域变化信息用于指示所述延时摄影图像区域的动态变化过程。Optionally, the time-lapse photography video recording device 800 further includes: a region change determination module (not shown in the figure), which is used to receive the user's input after the determination module 840 determines the time-lapse photography image region and the non-time-lapse photography image region. A fourth input of the dynamic control; in response to the fourth input, determine region change information of the time-lapse photography image region, where the region change information is used to indicate a dynamic change process of the time-lapse photography image region.

通过预先设置延时摄影图像区域的区域变化信息,可以实现终端设备的特定区域的录制视频不仅以延时拍摄效果呈现,同时以动态的形状变化效果呈现,可更加突出拍摄主题,提升用户的拍照体验。By pre-setting the area change information of the time-lapse photography image area, the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic shape change effect, which can more prominently shoot the subject and improve the user's ability to take pictures experience.

可选地,所述录制模块860具体用于:接收用户对拍摄预览界面的第五输入;响应于所述第五输入,录制得到第一延时摄影视频;基于所述延时摄影图像区域,对所述第一延时摄影视频中每一个视频图像帧进行裁剪,得到第二延时摄影视频;将所述第二延时摄影视频中的每一个视频图像帧分别与第一静态图像进行合成,得到所述目标延时摄影视频;其中,所述第一静态图像为所述第一延时摄影视频中第一视频图像帧对应的非延时摄影图像区域的图像。Optionally, the recording module 860 is specifically configured to: receive a fifth input from the user on the shooting preview interface; record a first time-lapse photography video in response to the fifth input; based on the time-lapse photography image area, Cutting each video image frame in the first time-lapse photography video to obtain a second time-lapse photography video; synthesizing each video image frame in the second time-lapse photography video with the first static image respectively , to obtain the target time-lapse video; wherein, the first static image is an image of a non-time-lapse image area corresponding to a first video image frame in the first time-lapse video.

可选地,延时摄影视频录制装置800还包括:更新模块(图中未示出),用于所述录制模块860得到所述目标延时摄影视频之后,在显示所述目标延时摄影视频中第二视频图像帧的情况下,接收用户对所述第二视频图像帧的第六输入;响应于所述第六输入,更新所述第二视频图像帧对应的非延时摄影图像区域的图像。Optionally, the time-lapse video recording device 800 further includes: an updating module (not shown in the figure), used for displaying the target time-lapse video after the recording module 860 obtains the target time-lapse video In the case of the second video image frame, receive the sixth input from the user on the second video image frame; in response to the sixth input, update the non-time-lapse photography image area corresponding to the second video image frame image.

当用户完成拍摄并生成对应的目标延时拍摄视频后,若对非延时摄影图像区域的静态图像不满意,还可以对静态图像进行重新调整,从而更提升了拍摄功能的趣味性和实用性。After the user completes the shooting and generates the corresponding target time-lapse shooting video, if he is not satisfied with the static image in the non-time-lapse photography image area, he can also readjust the static image, thus improving the fun and practicality of the shooting function .

在本申请实施例的延时摄影视频录制装置中,通过接收用户对拍摄预览界面的第一输入;响应于所述第一输入,确定延时摄影图像区域和非延时摄 影图像区域;基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频,由此执行一次视频录制即实现局部区域的延时摄影效果,满足用户录制各种趣味视频的需求,视频制作简单方便,有效降低用户制作视频的操作繁琐程度及难度,提高用户的交互体验。In the time-lapse photography video recording device of the embodiment of the present application, by receiving the user's first input on the shooting preview interface; in response to the first input, the time-lapse photography image area and the non-time-lapse photography image area are determined The video image area; based on the time-lapse photography image area and the non-time-lapse photography image area, the target time-lapse photography video is recorded, so that the time-lapse photography effect of a local area can be realized by performing a video recording, satisfying the needs of users to record various To meet the needs of a variety of interesting videos, video production is simple and convenient, effectively reducing the cumbersome and difficult operation of users to make videos, and improving the user's interactive experience.

本申请实施例中的延时摄影视频录制装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性地,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The time-lapse photography video recording apparatus in the embodiment of the present application may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or other devices other than the terminal. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., can also serve as server, network attached storage (Network Attached Storage , NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in this embodiment of the present application.

本申请实施例中的延时摄影视频录制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The time-lapse photography video recording device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.

本申请实施例提供的延时摄影视频录制装置能够实现图1至图12的方法实施例实现的各个过程,实现相同的技术效果,为避免重复,这里不再赘述。The time-lapse photography video recording device provided in the embodiment of the present application can realize each process realized by the method embodiments in Fig. 1 to Fig. 12 and achieve the same technical effect, and to avoid repetition, details are not repeated here.

可选地,如图14所示,本申请实施例还提供一种电子设备900,包括处理器940,存储器920,存储在存储器920上并可在所述处理器940上运行的程序或指令,该程序或指令被处理器940执行时实现上述延时摄影视频录制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 14 , the embodiment of the present application further provides an electronic device 900, including a processor 940, a memory 920, and programs or instructions stored in the memory 920 and operable on the processor 940, When the program or instruction is executed by the processor 940, each process of the above-mentioned embodiment of the time-lapse photography video recording method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

图15为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 15 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.

本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从 而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图15中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1010 through a power management system, thereby The functions of charging, discharging, and power consumption management are realized through the power management system. The structure of the electronic device shown in FIG. 15 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .

用户输入单元1007,用于接收用户对拍摄预览界面的第一输入。The user input unit 1007 is configured to receive the first input from the user on the shooting preview interface.

其中,处理器1010,用于响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域;基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频。Wherein, the processor 1010 is configured to determine a time-lapse photography image area and a non-time-lapse photography image area in response to the first input; based on the time-lapse photography image area and the non-time-lapse photography image area, the recorded Target time-lapse video.

通过接收用户对拍摄预览界面的第一输入;响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域;基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频,由此执行一次视频录制即实现局部区域的延时摄影效果,满足用户录制各种趣味视频的需求,视频制作简单方便,有效降低用户制作视频的操作繁琐程度及难度,提高用户的交互体验。By receiving a user's first input on the shooting preview interface; in response to the first input, determining a time-lapse photography image area and a non-time-lapse photography image area; based on the time-lapse photography image area and the non-time-lapse photography image Area, record the target time-lapse photography video, and then perform a video recording to realize the time-lapse photography effect of a local area, which meets the needs of users to record various interesting videos. and difficulty, and improve the user's interactive experience.

可选地,用户输入单元1007,具体用于:接收用户对拍摄预览界面中形状控件的第一输入。Optionally, the user input unit 1007 is specifically configured to: receive a user's first input to the shape control in the shooting preview interface.

处理器1010,具体用于:基于所述形状控件中的目标形状,确定所述延时摄影图像区域和所述非延时摄影图像区域;其中,所述目标形状是基于所述第一输入确定的。The processor 1010 is specifically configured to: determine the time-lapse photography image area and the non-time-lapse photography image area based on the target shape in the shape control; wherein, the target shape is determined based on the first input of.

可选地,处理器1010,具体用于:在所述拍摄预览界面中显示所述目标形状,将所述目标形状围成的图像区域确定为所述延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述非延时摄影图像区域。Optionally, the processor 1010 is specifically configured to: display the target shape in the shooting preview interface, determine the image area surrounded by the target shape as the time-lapse photography image area, and The image area other than is determined as the non-time-lapse photography image area.

可选地,用户输入单元1007,还用于在所述将所述目标形状围成的图像区域确定为所述延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述非延时摄影图像区域,之后,接收用户的第二输入。Optionally, the user input unit 1007 is further configured to determine the image area surrounded by the target shape as the time-lapse photography image area, and determine other image areas outside the target shape as the The non-time-lapse photography image area then receives a second input from the user.

处理器1010,还用于响应于所述第二输入,将所述目标形状围成的图像区域确定为所述非延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述延时摄影图像区域。The processor 1010 is further configured to, in response to the second input, determine the image area enclosed by the target shape as the non-time-lapse photography image area, and determine other image areas outside the target shape as the selected The time-lapse photography image area described above.

可选地,用户输入单元1007,还用于在所述确定延时摄影图像区域和非延时摄影图像区域之后,接收用户对颜色控件的第三输入。Optionally, the user input unit 1007 is further configured to receive a third input from the user on the color control after the time-lapse photography image area and the non-time-lapse photography image area are determined.

处理器1010,还用于响应于所述第三输入,确定所述延时摄影图像区域的拍摄颜色参数信息。The processor 1010 is further configured to determine shooting color parameter information of the time-lapse photography image area in response to the third input.

由此,通过预先设置延时摄影图像区域的拍摄颜色参数信息,可以实现 终端设备的特定区域的录制视频不仅以延时拍摄效果呈现,同时以动态的色彩变化效果呈现,可更加突出拍摄主题,提升用户的拍照体验。Thus, by pre-setting the shooting color parameter information of the time-lapse photography image area, it can be realized The recorded video of a specific area of the terminal device is not only presented with a time-lapse shooting effect, but also presented with a dynamic color change effect, which can highlight the shooting theme and improve the user's photo experience.

可选地,用户输入单元1007,还用于在所述确定延时摄影图像区域和非延时摄影图像区域之后,接收用户对动态控件的第四输入。Optionally, the user input unit 1007 is further configured to receive a fourth user input on the dynamic control after the time-lapse photography image area and the non-time-lapse photography image area are determined.

处理器1010,还用于响应于所述第四输入,确定所述延时摄影图像区域的区域变化信息,所述区域变化信息用于指示所述延时摄影图像区域的动态变化过程。The processor 1010 is further configured to, in response to the fourth input, determine region change information of the time-lapse photography image region, where the region change information is used to indicate a dynamic change process of the time-lapse photography image region.

由此,通过预先设置延时摄影图像区域的区域变化信息,可以实现终端设备的特定区域的录制视频不仅以延时拍摄效果呈现,同时以动态的形状变化效果呈现,可更加突出拍摄主题,提升用户的拍照体验。Therefore, by pre-setting the area change information of the time-lapse photography image area, the recorded video of a specific area of the terminal device can be presented not only with a time-lapse shooting effect, but also with a dynamic shape change effect, which can more prominently shoot the subject and enhance The user's photo experience.

可选地,用户输入单元1007,具体用于:接收用户对拍摄预览界面的第五输入。Optionally, the user input unit 1007 is specifically configured to: receive a fifth input from the user on the shooting preview interface.

处理器1010,具体用于:响应于所述第五输入,录制得到第一延时摄影视频;基于所述延时摄影图像区域,对所述第一延时摄影视频中每一个视频图像帧进行裁剪,得到第二延时摄影视频;将所述第二延时摄影视频中的每一个视频图像帧分别与第一静态图像进行合成,得到所述目标延时摄影视频;其中,所述第一静态图像为所述第一延时摄影视频中第一视频图像帧对应的非延时摄影图像区域的图像。The processor 1010 is specifically configured to: record a first time-lapse photography video in response to the fifth input; and perform, based on the time-lapse photography image area, each video image frame in the first time-lapse photography video Cropping to obtain a second time-lapse photography video; each video image frame in the second time-lapse photography video is synthesized with the first static image respectively to obtain the target time-lapse photography video; wherein, the first The static image is an image of a non-time-lapse photography image area corresponding to the first video image frame in the first time-lapse photography video.

可选地,用户输入单元1007,还用于在所述得到所述目标延时摄影视频之后,在显示所述目标延时摄影视频中第二视频图像帧的情况下,接收用户对所述第二视频图像帧的第六输入。Optionally, the user input unit 1007 is further configured to, after the target time-lapse video is obtained, receive a user response to the second video image frame in the target time-lapse video when the second video frame is displayed. Sixth input of two video image frames.

处理器1010,还用于响应于所述第六输入,更新所述第二视频图像帧对应的非延时摄影图像区域的图像。The processor 1010 is further configured to, in response to the sixth input, update an image of a non-time-lapse photography image area corresponding to the second video image frame.

由此,当用户完成拍摄并生成对应的目标延时拍摄视频后,若对非延时摄影图像区域的静态图像不满意,还可以对静态图像进行重新调整,从而更提升了拍摄功能的趣味性和实用性。应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071 可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。Therefore, after the user completes the shooting and generates the corresponding target time-lapse video, if he is not satisfied with the static image in the non-time-lapse photography image area, he can also readjust the static image, thereby enhancing the fun of the shooting function and practicality. It should be understood that, in this embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 . The touch panel 10071 is also called a touch screen. Touch panel 10071 It can include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.

存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。The memory 1009 can be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc. Furthermore, memory 1009 may include volatile memory or nonvolatile memory, or, memory 1009 may include both volatile and nonvolatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

处理器1010可包括一个或多个处理单元;可选地,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述延时摄影视频录制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above embodiment of the time-lapse photography video recording method is realized, and The same technical effect can be achieved, so in order to avoid repetition, details will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所 述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述延时摄影视频录制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the The communication interface is coupled with the processor, and the processor is used to run programs or instructions to realize the various processes of the above-mentioned embodiment of the time-lapse photography video recording method, and can achieve the same technical effect. To avoid repetition, details will not be repeated here. .

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.

本申请实施例还提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述延时摄影视频录制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned embodiment of the time-lapse photography video recording method, and can achieve The same technical effects are not repeated here to avoid repetition.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (13)

一种延时摄影视频录制方法,包括:A time-lapse photography video recording method, comprising: 接收用户对拍摄预览界面的第一输入;receiving the user's first input on the shooting preview interface; 响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域;determining a time-lapse image region and a non-time-lapse image region in response to said first input; 基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频。Based on the time-lapse photography image area and the non-time-lapse photography image area, a target time-lapse photography video is recorded. 根据权利要求1所述的方法,其中,所述接收用户对拍摄预览界面的第一输入,包括:The method according to claim 1, wherein said receiving the user's first input on the shooting preview interface comprises: 接收用户对拍摄预览界面中形状控件的第一输入;receiving the user's first input to the shape control in the shooting preview interface; 所述确定延时摄影图像区域和非延时摄影图像区域,包括:The determination of the time-lapse photography image area and the non-time-lapse photography image area includes: 基于所述形状控件中的目标形状,确定所述延时摄影图像区域和所述非延时摄影图像区域;determining the time-lapse photography image area and the non-time-lapse photography image area based on the target shape in the shape control; 其中,所述目标形状是基于所述第一输入确定的。Wherein, the target shape is determined based on the first input. 根据权利要求2所述的方法,其中,所述基于所述形状控件中的目标形状,确定所述延时摄影图像区域和所述非延时摄影图像区域,包括:The method according to claim 2, wherein the determining the time-lapse photography image area and the non-time-lapse photography image area based on the target shape in the shape control comprises: 在所述拍摄预览界面中显示所述目标形状,将所述目标形状围成的图像区域确定为所述延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述非延时摄影图像区域。The target shape is displayed in the shooting preview interface, the image area surrounded by the target shape is determined as the time-lapse photography image area, and other image areas other than the target shape are determined as the non-lapse time-lapse photography image area. Time-lapse image area. 根据权利要求3所述的方法,其中,所述将所述目标形状围成的图像区域确定为所述延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述非延时摄影图像区域,之后,还包括:The method according to claim 3, wherein the image area surrounded by the target shape is determined as the time-lapse photography image area, and other image areas outside the target shape are determined as the non-lapse time-lapse photography image area. When the photographic image area, after that, also includes: 接收用户的第二输入;receiving a second input from the user; 响应于所述第二输入,将所述目标形状围成的图像区域确定为所述非延时摄影图像区域,将所述目标形状之外的其他图像区域确定为所述延时摄影图像区域。In response to the second input, an image area surrounded by the target shape is determined as the non-time-lapse photography image area, and other image areas other than the target shape are determined as the time-lapse photography image area. 根据权利要求1所述的方法,其中,所述确定延时摄影图像区域和非延时摄影图像区域之后,还包括:The method according to claim 1, wherein, after determining the time-lapse photography image area and the non-time-lapse photography image area, further comprising: 接收用户对颜色控件的第三输入;receiving a third input from the user on the color control; 响应于所述第三输入,确定所述延时摄影图像区域的拍摄颜色参数信息。In response to the third input, determine shooting color parameter information of the time-lapse photography image area. 根据权利要求1所述的方法,其中,所述确定延时摄影图像区域和非延时摄影图像区域之后,还包括: The method according to claim 1, wherein, after determining the time-lapse photography image area and the non-time-lapse photography image area, further comprising: 接收用户对动态控件的第四输入;receiving a user's fourth input to the dynamic control; 响应于所述第四输入,确定所述延时摄影图像区域的区域变化信息,所述区域变化信息用于指示所述延时摄影图像区域的动态变化过程。In response to the fourth input, determine region change information of the time-lapse photography image region, where the region change information is used to indicate a dynamic change process of the time-lapse photography image region. 根据权利要求1所述的方法,其中,所述基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频,包括:The method according to claim 1, wherein said recording a target time-lapse video based on said time-lapse photography image area and said non-time-lapse photography image area comprises: 接收用户对拍摄预览界面的第五输入;receiving a fifth input from the user on the shooting preview interface; 响应于所述第五输入,录制得到第一延时摄影视频;In response to the fifth input, recording a first time-lapse photography video; 基于所述延时摄影图像区域,对所述第一延时摄影视频中每一个视频图像帧进行裁剪,得到第二延时摄影视频;Based on the time-lapse photography image area, crop each video image frame in the first time-lapse photography video to obtain a second time-lapse photography video; 将所述第二延时摄影视频中的每一个视频图像帧分别与第一静态图像进行合成,得到所述目标延时摄影视频;Synthesizing each video image frame in the second time-lapse photography video with the first static image respectively to obtain the target time-lapse photography video; 其中,所述第一静态图像为所述第一延时摄影视频中第一视频图像帧对应的非延时摄影图像区域的图像。Wherein, the first static image is an image of a non-time-lapse photography image area corresponding to a first video image frame in the first time-lapse photography video. 根据权利要求7所述的方法,其中,所述得到所述目标延时摄影视频之后,还包括:The method according to claim 7, wherein, after obtaining the target time-lapse photography video, further comprising: 在显示所述目标延时摄影视频中第二视频图像帧的情况下,接收用户对所述第二视频图像帧的第六输入;receiving a sixth input from the user on the second video image frame in the target time-lapse video while displaying the second video image frame; 响应于所述第六输入,更新所述第二视频图像帧对应的非延时摄影图像区域的图像。In response to the sixth input, an image of a non-time-lapse photography image area corresponding to the second video image frame is updated. 一种延时摄影视频录制装置,包括:A time-lapse photography video recording device, comprising: 接收模块,用于接收用户对拍摄预览界面的第一输入;A receiving module, configured to receive the user's first input to the shooting preview interface; 确定模块,用于响应于所述第一输入,确定延时摄影图像区域和非延时摄影图像区域;A determining module, configured to determine a time-lapse photography image area and a non-time-lapse photography image area in response to the first input; 录制模块,用于基于所述延时摄影图像区域和所述非延时摄影图像区域,录制得到目标延时摄影视频。A recording module, configured to record a target time-lapse video based on the time-lapse photography image area and the non-time-lapse photography image area. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-8任一项所述的延时摄影视频录制方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and operable on the processor, when the program or instruction is executed by the processor, claims 1-8 are implemented The steps of any one of the time-lapse photography video recording methods. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-8任一项所述的延时摄影视频录制方法的步骤。A readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the time-lapse photography video recording method according to any one of claims 1-8 are realized . 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述 处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-8任一项所述的延时摄影视频录制方法的步骤。A chip, the chip includes a processor and a communication interface, the communication interface and the Coupled with a processor, the processor is used to run a program or an instruction to realize the steps of the time-lapse photography video recording method according to any one of claims 1-8. 一种计算机程序产品,所述程序产品被存储在存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-8任一项所述的延时摄影视频录制方法的步骤。 A computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the time-lapse photography video recording method according to any one of claims 1-8.
PCT/CN2023/075119 2022-02-10 2023-02-09 Time-lapse photography video recording method and apparatus, and electronic device Ceased WO2023151609A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210126645.4 2022-02-10
CN202210126645.4A CN114520876A (en) 2022-02-10 2022-02-10 Time-delay shooting video recording method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023151609A1 true WO2023151609A1 (en) 2023-08-17

Family

ID=81596136

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/075119 Ceased WO2023151609A1 (en) 2022-02-10 2023-02-09 Time-lapse photography video recording method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN114520876A (en)
WO (1) WO2023151609A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117395386A (en) * 2023-10-12 2024-01-12 山东海量信息技术研究院 An interactive shooting method, device, equipment and medium for virtual time-lapse video

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114520876A (en) * 2022-02-10 2022-05-20 维沃移动通信有限公司 Time-delay shooting video recording method and device and electronic equipment
CN114827477B (en) * 2022-05-26 2024-03-29 维沃移动通信有限公司 Method, device, electronic equipment and medium for time-lapse photography
CN117082225B (en) * 2023-10-12 2024-02-09 山东海量信息技术研究院 Virtual delay video generation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170339347A1 (en) * 2016-05-20 2017-11-23 Lg Electronics Inc. Mobile terminal and control method thereof
CN113747049A (en) * 2020-05-30 2021-12-03 华为技术有限公司 Shooting method and equipment for delayed photography
CN113747073A (en) * 2021-09-13 2021-12-03 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN113747072A (en) * 2021-09-13 2021-12-03 维沃移动通信有限公司 Shooting processing method and electronic equipment
CN114520876A (en) * 2022-02-10 2022-05-20 维沃移动通信有限公司 Time-delay shooting video recording method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170339347A1 (en) * 2016-05-20 2017-11-23 Lg Electronics Inc. Mobile terminal and control method thereof
CN113747049A (en) * 2020-05-30 2021-12-03 华为技术有限公司 Shooting method and equipment for delayed photography
CN113747073A (en) * 2021-09-13 2021-12-03 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN113747072A (en) * 2021-09-13 2021-12-03 维沃移动通信有限公司 Shooting processing method and electronic equipment
CN114520876A (en) * 2022-02-10 2022-05-20 维沃移动通信有限公司 Time-delay shooting video recording method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117395386A (en) * 2023-10-12 2024-01-12 山东海量信息技术研究院 An interactive shooting method, device, equipment and medium for virtual time-lapse video

Also Published As

Publication number Publication date
CN114520876A (en) 2022-05-20

Similar Documents

Publication Publication Date Title
EP3226537B1 (en) Mobile terminal and method for controlling the same
WO2023151609A1 (en) Time-lapse photography video recording method and apparatus, and electronic device
EP3047362B1 (en) Gesture based image styles editing on a touchscreen .
CN114598819B (en) Video recording method and device and electronic equipment
WO2022116885A1 (en) Photographic method, apparatus, electronic device, and storage medium
CN112492209A (en) Shooting method, shooting device and electronic equipment
WO2022012657A1 (en) Image editing method and apparatus, and electronic device
WO2023151611A1 (en) Video recording method and apparatus, and electronic device
CN111756995A (en) Image processing method and device
WO2023134583A1 (en) Video recording method and apparatus, and electronic device
CN113259743A (en) Video playing method and device and electronic equipment
CN114466232B (en) Video processing method, device, electronic equipment and medium
CN115631109A (en) Image processing method, image processing device and electronic equipment
WO2026012205A1 (en) Control method and apparatus, electronic device, and wearable ar device
CN114222069A (en) Shooting method, shooting device and electronic equipment
CN115113845B (en) Volume adjustment method, volume adjustment device, electronic equipment and readable storage medium
WO2025077527A1 (en) Media content generation method and apparatus, and electronic device and readable storage medium
CN114025237B (en) Video generation method, device and electronic device
CN116033260A (en) Shooting method, device, electronic device and storage medium
JP2019220207A (en) Method and apparatus for using gestures for shot effects
CN113810538B (en) Video editing method and video editing device
WO2023093669A1 (en) Video filming method and apparatus, and electronic device and storage medium
CN114500852A (en) Photographing method, photographing apparatus, electronic device, and readable storage medium
CN115604415A (en) Video frame rate adjusting method and device
CN114173178A (en) Video playing method, video playing device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23752389

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02-01-2025)

122 Ep: pct application non-entry in european phase

Ref document number: 23752389

Country of ref document: EP

Kind code of ref document: A1