WO2023185511A1 - 一种视频生成方法、装置、电子设备和存储介质 - Google Patents

一种视频生成方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2023185511A1
WO2023185511A1 PCT/CN2023/082244 CN2023082244W WO2023185511A1 WO 2023185511 A1 WO2023185511 A1 WO 2023185511A1 CN 2023082244 W CN2023082244 W CN 2023082244W WO 2023185511 A1 WO2023185511 A1 WO 2023185511A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
key frame
image editing
initial key
initial
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/082244
Other languages
English (en)
French (fr)
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to EP23777885.7A priority Critical patent/EP4492769A4/en
Priority to JP2024558008A priority patent/JP7728987B2/ja
Publication of WO2023185511A1 publication Critical patent/WO2023185511A1/zh
Priority to US18/902,706 priority patent/US12387760B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability

Definitions

  • the present disclosure relates to the field of information technology, and in particular, to a video generation method, device, electronic device and storage medium.
  • users hope to record the image editing process and obtain relevant videos, which can be used for sharing or teaching.
  • embodiments of the present disclosure provide a video generation method, device, electronic device and storage medium, which can be used to record the image editing process.
  • Embodiments of the present disclosure provide a video generation method, which includes:
  • an initial key frame is obtained.
  • the initial key frame is an intermediate image between the initial image and the target image during the image editing process.
  • the different initial key frames are intermediate images when different image editing operations in the series of image editing operations are triggered during the image editing process, and the intermediate images present the editing effects of the corresponding image editing operations.
  • a target video is generated according to the initial key frame to record the image editing process of the target image.
  • An embodiment of the present disclosure also provides a video generation device, which includes:
  • An acquisition module configured to acquire an initial key frame during the image editing process in which the initial image undergoes a series of image editing operations to obtain the target image, where the initial key frame is between the initial image and the target image during the image editing process.
  • a generation module configured to generate a target video according to the initial key frame to record the image editing process of the target image.
  • An embodiment of the present disclosure also provides an electronic device, where the electronic device includes:
  • processors one or more processors
  • a storage device for storing one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement one or more steps in the video generation method as described above.
  • Embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements one or more steps in the video generation method as described above.
  • An embodiment of the present disclosure also provides a computer program, including:
  • Computer-readable instructions which when executed by the processor, cause the processor to implement one or more steps in the video generation method as described above.
  • Embodiments of the present disclosure also provide a computer program product, including computer readable instructions, which when executed by a processor cause the processor to implement one or more steps in the video generation method as described above.
  • Figure 1 is a flow chart of a video watermark processing method in an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of triggering the preset frame extraction strategy in an embodiment of the present disclosure
  • Figure 3 is a schematic flowchart of determining whether an extracted initial key frame is a valid frame in an embodiment of the present disclosure
  • Figure 4 is a schematic flowchart of a thinning process in an embodiment of the present disclosure
  • Figure 5 is a schematic structural diagram of a video generation device in an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
  • the term “include” and its variations are open-ended, ie, “including but not limited to.”
  • the term “based on” means “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; and the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • Figure 1 is a flow chart of a video generation method in an embodiment of the present disclosure.
  • the method can be executed by a video generation device.
  • the device can be implemented in software and/or hardware.
  • the device can be configured in electronic equipment, such as Terminals specifically include but are not limited to smartphones, PDAs, tablets, wearable devices with displays, desktops, laptops, all-in-one computers, smart home devices, etc.
  • Terminals specifically include but are not limited to smartphones, PDAs, tablets, wearable devices with displays, desktops, laptops, all-in-one computers, smart home devices, etc.
  • the device can be configured on a server.
  • the method specifically includes the following steps:
  • Step 110 During the image editing process in which the initial image undergoes a series of image editing operations to obtain the target image, obtain an initial key frame.
  • the initial key frame is the interval between the initial image and the target image during the image editing process.
  • An intermediate image wherein different initial key frames are intermediate images when different image editing operations in the series of image editing operations are triggered during the image editing process, and the intermediate image presents corresponding image editing operations editing effects.
  • the initial image may be an image in the user's photo album, an image downloaded from a network disk, or a certain video frame in the video to be edited.
  • special image editing software can be used.
  • the user imports a certain image (i.e., the initial image) in the photo album into the image editing software, and uses the image editing software to edit the initial image.
  • Image editing of the initial image includes but is not limited to: adjusting the brightness and contrast of the initial image, adding materials (such as stickers, text) to the initial image, adding special effects or filters, etc.
  • the interactive interface of specialized image editing software is equipped with many editing controls, such as controls for adjusting image brightness, controls for adjusting image contrast, controls for adding material, etc. Users can edit the initial image by triggering the corresponding controls.
  • the frame extraction time for obtaining the initial key frame is limited to ensure that the obtained initial key frame is an intermediate image that records the key editing operation. , or it is an intermediate image where the editing effect changes significantly.
  • obtaining the initial key frame includes:
  • the type of image editing operation When performing an image editing operation on the initial image, determine the type of image editing operation; if the type of image editing operation is the first type, obtain the initial key frame at the moment when the image editing operation is triggered; if the type of image editing operation is In the second type, the initial key frame is obtained when a confirmation instruction or an image editing operation switching instruction is received after triggering the image editing operation.
  • the first type of image editing operation is an operation that changes the original content of the initial image.
  • the second type of image editing operation is an operation that superimposes special effects on the original content of the initial image but does not change the original content.
  • the graffiti operation on the initial image and the operation of reshaping the face of the portrait through hand-painting (such as modifying the face shape, enlarging the eyes) belong to the first type of image editing operation; adjusting the brightness, contrast, light perception of the target image, and adjusting the brightness, contrast, and light perception of the target image.
  • the operations of adding materials (stickers or text) and adding filters belong to the second type of image editing operations.
  • the frame extraction logic is triggered to obtain the current moment.
  • the intermediate image (the intermediate image presents the added sticker) is to obtain the initial key frame of the current moment.
  • the initial key frame is obtained at the moment when the user triggers the graffiti operation.
  • the initial key frame is an intermediate state image corresponding to the moment when the image editing operation is triggered.
  • the intermediate state image is presented with Editing effects corresponding to image editing operations (such as graffiti operations) (such as the image after graffiti).
  • the intermediate image may also be presented with a trigger action corresponding to the image editing operation (such as the user's graffiti action).
  • the image editing of the target image is obtained by performing a series of image editing operations on the initial image.
  • the initial key frames are obtained during the editing process, and then the target video is generated based on the initial key frames to record the user's image editing process of the initial image.
  • the initial key frame is obtained based on a preset frame extraction strategy during the image editing process in which the initial image undergoes a series of image editing operations to obtain the target image.
  • FIG. 2 refers to the schematic flowchart of triggering a preset frame extraction strategy as shown in Figure 2, which specifically includes: starting image editing of an initial image - generating an image editing operation - determining the type of image editing operation - if it is the first The first type of image editing operation directly triggers the frame extraction logic; if it is the second type of image editing operation, the frame extraction logic is triggered when a confirmation command or editing operation switching command is received.
  • obtaining the initial key frame may also be: extracting according to a fixed number of steps, for example, recording the number of image editing operations through a counter. Each time the user triggers an image editing operation, the count value of the counter is incremented by one. When the count value reaches the preset value (for example, the preset value is 3, the value is adjustable), a frame extraction logic is executed.
  • the preset value for example, the preset value is 3, the value is adjustable
  • the intelligent model is used to determine the degree of content change of the initial image.
  • a frame extraction logic is executed.
  • Step 120 Generate a target video according to the initial key frame to record the image editing process of the target image.
  • the initial key frame obtained is an intermediate image that records the key image editing operation, or in the middle where the editing effect changes significantly.
  • filter the initial key frames delete the initial key frames with no obvious editing effect, and retain the initial key frames that record the editing operation of the key image, or in other words, retain the initial key frames where the editing effect is more obvious.
  • the initial keyframe of the change is not limited to:
  • the method before generating the target video according to the initial key frame, the method further includes:
  • the target key frame in the initial key frame (that is, the target key frame is the initial key frame any one of the frames)
  • the target key frame corresponds to the initial key frame at the previous moment; if the number of pixel points with changed pixel values reaches the second preset threshold, the target key frame is determined to be a valid frame.
  • generating a target video based on the initial key frame includes: generating a target video based on valid frames in the initial key frame.
  • the historical key frame and the target key frame are the same key frame; if the target key frame is not the first acquired initial key frame , the historical key frame is the valid frame at the previous moment corresponding to the target key frame.
  • the first initial key frame is obtained. Since there is no historical key frame to refer to, the first initial key frame is determined as a valid frame. At this point, the first initial key frame is obtained. valid frames; as time goes by, the second initial key frame is obtained. At this time, the pixel value of the pixel in the second initial key frame is compared with the pixel value of the pixel in the first valid frame. , if the number of pixel points with changed pixel values reaches the second preset threshold, the second initial key frame is determined to be a valid frame. Assume that the second initial key frame is determined to be a valid frame after comparison, and the second valid frame is obtained at this point.
  • the third initial key frame is obtained.
  • the pixel value of the pixel in the third initial key frame is compared with the second valid frame (because the second valid frame is farther from the third initial key frame).
  • the pixel values of the pixels in the most recent frame are compared to determine whether the third initial key frame is a valid frame.
  • all initial key frames are identified to retain valid frames and delete invalid frames.
  • the target key frame is transferred from the memory to the local disk to ensure the storage stability of the valid frames and provide a basis for subsequent generation of the target video.
  • the schematic flow chart of determining whether the extracted initial key frame is a valid frame as shown in Figure 3, which specifically includes triggering the frame extraction logic, obtaining an initial key frame, and then determining the initial key frame through a pixel comparison filtering strategy.
  • a pixel comparison filtering strategy Compared with the pixel value of the pixel in the key frame Whether the number of pixel points whose pixel values change in the historical key frame closest to the initial key frame reaches the second preset threshold, if it reaches the second preset threshold, determine that the initial key frame is a valid frame, and The initial key frame is saved. If the second preset threshold is not reached, the initial key frame is discarded and not saved.
  • the initial key frames are sparsely processed through a certain strategy to prevent the generated target video from being too redundant and resulting in poor viewing effect.
  • the method further includes:
  • the initial key frames are sparse processed to control The number of initial key frames is less than the first preset threshold.
  • sparse processing can be performed according to the rules of equal intervals selection. For example: According to the serial number of the initial key frame obtained, the initial key frame with an odd serial number is retained, and the initial key frame with an even serial number is deleted; among which, the serial number of the initial key frame is determined based on the acquisition time of the initial key frame, the earlier the acquisition time The smaller the sequence number of the initial keyframe is. Assuming that the first preset threshold is 40 (this value is adjustable), when the number of initial key frames obtained is 39, when the 40th initial key frame is obtained, the first 39 initial key frames are Uniform halving processing, for example, selecting the first initial key frame, the third initial key frame, the fifth initial key frame... etc. at equal intervals to process the first 39 initial key frames into 20 initial key frames. The 40 initial key frames are used as the 21st initial key frame after processing, thus achieving sparse processing.
  • two initial key frames adjacent to the acquisition time are determined from the initial key frame.
  • Keyframe filter one of the two initial keyframes.
  • the frame extraction logic is directly triggered, and in the first type of image editing During the operation, the frame extraction logic is continuously triggered; it is judged whether the number of valid frames obtained for the first type of image editing operation reaches the first preset threshold, and if it reaches the first preset threshold, the valid frames are Sparse processing is performed to control the number of valid frames to be less than the first preset threshold.
  • the method before generating the target video according to the initial key frame, the method further includes:
  • the initial key frames are sparsely processed based on a preset sparse strategy to control the number of the initial key frames to be less than the third preset threshold.
  • the step of sparsifying the initial key frames based on a preset sparse strategy to control the number of initial key frames to be less than the third preset threshold includes:
  • the initial key frame with an odd serial number is retained, and the initial key frame with an even serial number is deleted; wherein, the serial number of the initial key frame is determined based on the acquisition time of the initial key frame, and the earlier the acquisition time is The smaller the sequence number of the initial keyframe is.
  • the process of sparsifying the initial key frames based on a preset sparse strategy to control the number of initial key frames to be less than the third preset threshold includes:
  • the initial key frame can refer to a valid frame.
  • the video generation method provided by the embodiment of the present disclosure extracts initial key frames during the image editing process of the initial image, and performs validity identification on the extracted initial key frames, so as to retain the ability to effectively record the user's image processing of the initial image.
  • the initial key frames obtained are images that record key editing operations, or images in which the editing effects have significantly changed, providing a basis for obtaining high-quality target videos. effective through control
  • the number of frames can make the target video concise, efficient and highly viewable, making the target video have strong social sharing characteristics and enriching Internet media content.
  • the method may also include: sharing the target video, or sending the target video to a preset social media platform.
  • the presentation form of the target video may be animation, video, moving pictures, sequence frames or dynamic effects, etc.
  • the target video can serve as an image editing tutorial to guide users who are unfamiliar with image editing.
  • the target video better records the complete photo editing process and has strong content visibility.
  • FIG. 5 is a schematic structural diagram of a video generation device in an embodiment of the present disclosure.
  • the video generation device provided by the embodiment of the present disclosure can be configured in the client.
  • the video generation device specifically includes:
  • the acquisition module 510 is used to acquire an initial key frame during the image editing process in which the initial image undergoes a series of image editing operations to obtain the target image.
  • the initial key frame is the initial image to the target image during the image editing process.
  • intermediate state images between them wherein different initial key frames are intermediate state images when different image editing operations in the series of image editing operations are triggered during the image editing process, and the intermediate state images present corresponding The editing effect of the image editing operation;
  • the generation module 520 is used to generate a target video according to the initial key frame to record the image editing process of the target image.
  • the acquisition module 510 includes:
  • a determination unit used to determine the type of the image editing operation when performing an image editing operation on the initial image
  • a frame extraction unit used to, if the type of the image editing operation is the first type, at the moment when the image editing operation is triggered Obtain the initial key frame
  • the type of image editing operation is the second type, the initial key frame is obtained when a confirmation instruction or an image editing operation switching instruction is received after triggering the image editing operation, where the first type of image editing operation is An operation that changes the original content of the initial image; the second type of image editing operation is an operation that superimposes special effects on the original content of the initial image but does not change the original content.
  • a first processing module configured to: if the number of initial key frames reaches reaches the first preset threshold and the initial key frames are all obtained at the triggering moment of the first type of image editing operation, then the initial key frames are sparsely processed to control the number of the initial key frames to be less than the first preset threshold.
  • a comparison module configured to compare the pixel values of pixels in the target key frame with the pixels in the historical key frames closest to the target key frame for the target key frame in the initial key frame. The pixel values of the points are compared, where the historical key frame is the initial key frame at the previous moment corresponding to the target key frame; the identification module is used to if the number of pixel points whose pixel values change reaches the second predetermined If a threshold is set, the target key frame is determined to be a valid frame.
  • the generation module 520 is specifically configured to generate a target video according to the valid frames in the initial key frames.
  • the target key frame is the first acquired initial key frame
  • the historical key frame and the target key frame are the same key frame; if the target key frame is not the first acquired initial key frame, Key frame, the historical key frame is the valid frame at the previous moment corresponding to the target key frame.
  • a second processing module configured to, if the number of the initial key frames reaches a third preset threshold, perform sparse processing on the initial key frames based on a preset sparse strategy to control the The number of initial key frames is less than the third preset threshold.
  • the second processing module includes a determining unit for determining two initial key frames adjacent to the acquisition time from the initial key frame; a filtering unit for filtering the two initial key frames into An initial keyframe for filtering.
  • the intermediate image also presents a trigger action corresponding to the image editing operation.
  • the video generation device provided by the embodiments of the disclosure can execute the steps performed by the client in the video generation method provided by the method embodiments of the disclosure. The execution steps and beneficial effects will not be described again here.
  • FIG. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
  • the electronic device 500 in the embodiment of the present disclosure may include, but is not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs, etc. (tablet computers), PMP (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), mobile terminals such as wearable electronic devices, and fixed terminals such as digital TVs, desktop computers, smart home devices, etc.
  • the electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 500 may include a processing device (eg, central processing unit, graphics processor, etc.) 501 , which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 502 or from a storage device 508 .
  • the program in the memory (RAM) 503 performs various appropriate actions and processes to implement the methods of the embodiments described in the present disclosure.
  • various programs and data required for the operation of the electronic device 500 are also stored.
  • the processing device 501, ROM 502 and RAM 503 are connected to each other via a bus 504.
  • An input/output (I/O) interface 505 is also connected to bus 504.
  • input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration
  • An output device 507 such as a computer
  • a storage device 508 including a magnetic tape, a hard disk, etc.
  • Communication device 509 may allow electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 6 illustrates electronic device 500 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, the computer program including program code for executing the method shown in the flowchart, thereby achieving the above The video generation method described.
  • the computer program may be downloaded and installed from the network via communication device 509, or from storage device 508, or from ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable medium.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmd read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
  • Communications e.g., communications network
  • communications networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device When the one or more programs are executed by the electronic device, the electronic device: after the initial image passes through a series of During the image editing process of obtaining the target image through the column image editing operation, an initial key frame is obtained.
  • the initial key frame is an intermediate image between the initial image and the target image during the image editing process, wherein different initial key frames are obtained.
  • the key frame is an intermediate state image when different image editing operations in the series of image editing operations are triggered during the image editing process, and the intermediate state image presents the editing effect of the corresponding image editing operation; according to the initial Keyframes generate target videos to record the image editing process of said target images.
  • the electronic device may also perform other steps described in the above embodiments.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C” or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as an Internet service provider through Internet connection
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or you can use special Implemented using a combination of hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure can be implemented in software or hardware. Among them, the name of a unit does not constitute a limitation on the unit itself under certain circumstances.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • the present disclosure provides a video generation method, including: obtaining an initial key frame during an image editing process in which an initial image undergoes a series of image editing operations to obtain a target image, and the initial key frame A frame is an intermediate image between the initial image and the target image in the image editing process, wherein different initial key frames are different image edits in the series of image editing operations in the image editing process.
  • the initial image is subjected to a series of image editing operations to obtain the target image.
  • obtaining the initial key frame includes: when performing an image editing operation on the initial image, determining the type of the image editing operation; if the type of the image editing operation is the first type, at the moment when the image editing operation is triggered Obtain the initial key frame; if the type of image editing operation is the second type, the initial key frame is obtained when a confirmation instruction or an image editing operation switching instruction is received after triggering the image editing operation, where the first type of image editing operation is An operation that changes the original content of the initial image; the second type of image editing operation is an operation that superimposes special effects on the original content of the initial image but does not change the original content.
  • the method further includes: if the initial key frame The number reaches the first preset threshold and the initial key frames are all obtained at the triggering moment of the first type of image editing operation, then the initial key frames are sparsely processed to control the sparseness of the initial key frames. The number is less than the first preset threshold.
  • the method further includes: for the initial key frame The target key frame in the target key frame is compared with the pixel value of the pixel point in the target key frame and the pixel value of the pixel point in the historical key frame closest to the target key frame, wherein the historical key frame is the The target key frame corresponds to the initial key frame at the previous moment; if the number of pixel points with changed pixel values reaches the second preset threshold, the target key frame is determined to be a valid frame; correspondingly, the target key frame is determined according to the initial key frame
  • Generating a target video from key frames includes: generating a target video based on valid frames in the initial key frames.
  • the target key frame is the first acquired initial key frame
  • the historical key frame and the target key frame The key frames are the same key frame; if the target key frame is not the first acquired initial key frame, the historical key frame is the valid frame at the previous moment corresponding to the target key frame.
  • the video generation method before generating the target video according to the initial key frames, the method further includes: if the number of the initial key frames reaches a third preset threshold, based on a preset sparse strategy, Key frames are sparsely processed to control the number of initial key frames to be less than the third preset threshold.
  • the initial key frame is sparsely processed based on a preset sparse strategy to control the initial key frame
  • the number is less than the third preset threshold, including: determining two initial key frames adjacent to the acquisition time from the initial key frame; filtering one of the two initial key frames.
  • the intermediate state image in the video generation method provided by the present disclosure, optionally, the intermediate state image also presents a trigger action corresponding to the image editing operation.
  • the present disclosure provides a video generation device, including: an acquisition module, configured to acquire initial key frames during the image editing process in which the initial image undergoes a series of image editing operations to obtain the target image.
  • the initial key frame is an intermediate image between the initial image and the target image in the image editing process, wherein different initial key frames are a series of image editing operations in the image editing process An intermediate image when different image editing operations are triggered in, the intermediate image presents the editing effect of the corresponding image editing operation; a generation module for generating a target video according to the initial key frame to record the target image image editing process.
  • the present disclosure provides an electronic device, including:
  • processors one or more processors
  • Memory used to store one or more programs
  • the one or more processors are caused to implement any of the video generation methods provided by this disclosure.
  • the present disclosure provides a computer-readable storage medium having a computer program stored thereon.
  • the program is executed by a processor, the video generation as described in any one provided by the present disclosure is implemented. method.
  • the present disclosure provides a computer program, including:
  • Computer-readable instructions that, when executed by the processor, cause the processor to perform one or more steps in any of the foregoing video generation methods.
  • the present disclosure provides a computer program product, including computer readable instructions, which when executed by a processor cause the processor to perform one of the foregoing video generation methods or multiple steps.
  • the video generation method provided by the embodiments of the present disclosure obtains the initial key during the image editing process in which the initial image undergoes a series of image editing operations to obtain the target image.
  • the initial key frame is an intermediate image between the initial image and the target image in the image editing process, wherein different initial key frames are a series of image editing in the image editing process
  • Video is a technical means of recording the image editing process of the target image, realizing the recording of the image editing process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开实施例公开了一种视频生成方法、装置、电子设备和存储介质,该方法包括:在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。本公开能够用于记录图像编辑过程。

Description

一种视频生成方法、装置、电子设备和存储介质
本申请以申请号为202210346589.5,申请日为2022年3月31日的中国申请为基础,并主张其优先权,该中国申请的公开内容在此作为整体引入本申请中。
技术领域
本公开涉及信息技术领域,尤其涉及一种视频生成方法、装置、电子设备和存储介质。
背景技术
随着网络技术和移动终端技术的快速发展,出现了越来越多的、适配移动终端的应用程序。例如编辑类应用程序,基于编辑类应用程序用户可以对拍摄的原始图像进行编辑。
在一些应用场景中,用户希望对图像编辑过程进行记录,获得相关视频,该视频可用于分享或者教学。
发明内容
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开实施例提供了一种视频生成方法、装置、电子设备和存储介质,能够用于记录图像编辑过程。
本公开实施例提供了一种视频生成方法,该方法包括:
在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果以及触发所述对应图像编辑操作时的编辑动作;
根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
本公开实施例还提供了一种视频生成装置,该装置包括:
获取模块,用于在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果以及触发所述对应图像编辑操作时的编辑动作;
生成模块,用于根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
本公开实施例还提供了一种电子设备,所述电子设备包括:
一个或多个处理器;
存储装置,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上所述的视频生成方法中的一个或多个步骤。
本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述的视频生成方法中的一个或多个步骤。
本公开实施例还提供了一种计算机程序,包括:
计算机可读指令,计算机可读指令当由处理器执行时使处理器实现如上所述的视频生成方法中的一个或多个步骤。
本公开实施例还提供了一种计算机程序产品,包括计算机可读指令,计算机可读指令当由处理器执行时使处理器实现如上所述的视频生成方法中的一个或多个步骤。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图 标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1为本公开实施例中的一种视频水印处理方法的流程图;
图2为本公开实施例中的一种触发所述预设抽帧策略的流程示意图;
图3为本公开实施例中的一种确定抽取的初始关键帧是否为有效帧的流程示意图;
图4为本公开实施例中的一种进行稀疏化处理的流程示意图;
图5为本公开实施例中的一种视频生成装置的结构示意图;
图6为本公开实施例中的一种电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
图1为本公开实施例中的一种视频生成方法的流程图,该方法可以由视频生成装置执行,该装置可以采用软件和/或硬件的方式实现,该装置可配置于电子设备中,例如终端,具体包括但不限于智能手机、掌上电脑、平板电脑、带显示屏的可穿戴设备、台式机、笔记本电脑、一体机、智能家居设备等。或者,该装置还可配置于服务器。
如图1所示,该方法具体包括如下步骤:
步骤110、在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果。
其中,初始图像可以是用户相册中的图像,还可以是从网盘下载的图像,也可以是待编辑视频中的某个视频帧。在对初始图像进行图像编辑时,可借助专门的图像编辑软件进行,例如用户将相册中的某张图像(即初始图像)导入图像编辑软件,通过图像编辑软件对初始图像进行图像编辑。对初始图像进行图像编辑包括但不限于:调节初始图像的亮度、对比度、在初始图像中添加素材(例如贴纸、文字)、添加特效或滤镜等。
通常,在专门的图像编辑软件的交互界面设置有较多的编辑控件,例如调整图像亮度的控件、调整图像对比度的控件、添加素材控件等等。用户可以通过触发相应的控件实现对初始图像的图像编辑。
在一些可选实施方式中,为了实现有效记录用户对初始图像进行图像编辑的过程,对获取初始关键帧的抽帧时刻进行限定,以保证获取的初始关键帧是记录关键编辑操作的中间态图像,或者说是编辑效果发生较明显变化的中间态图像。
示例性的,所述在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,包括:
在针对所述初始图像进行图像编辑操作时,确定图像编辑操作的类型;若图像编辑操作的类型是第一类型,则在触发图像编辑操作的时刻获取初始关键帧;若图像编辑操作的类型是第二类型,则在触发图像编辑操作之后接收到确认生效指令或者图像编辑操作切换指令时获取初始关键帧,其中,第一类型的图像编辑操作是使所述初始图像的原始内容发生改变的操作;第二类型的图像编辑操作是在所述初始图像的原始内容叠加特效但不使所述原始内容发生改变的操作。例如对初始图像进行的涂鸦操作以及通过手绘实现人像面部重塑的操作(例如修饰脸型、放大眼眸)属于第一类型的图像编辑操作;调节目标图像的亮度、对比度、光感、在目标图像中添加素材(贴纸或文字)以及添加滤镜的操作属于第二类型的图像编辑操作。
以在初始图像中添加贴纸的图像编辑操作为例,当用户选择好某贴纸选项之后,触发“确定”控件时,即当系统接收到确认生效指令时,触发抽帧逻辑,以获取当前时刻的中间态图像(该中间态图像呈现有已添加的贴纸),即获取当前时刻的初始关键帧。
示例性的,例如当用户对初始图像进行涂鸦操作时,在用户触发涂鸦操作的时刻获取初始关键帧,该初始关键帧是图像编辑操作触发时刻对应的中间态图像,该中间态图像呈现有与图像编辑操作(例如涂鸦操作)对应的编辑效果(例如涂鸦后的图像画面)。进一步的,以及该中间态图像还可以呈现有对应图像编辑操作的触发动作(例如用户的涂鸦动作)。
通过在初始图像经过一系列图像编辑操作得到目标图像的图像编 辑过程中获取初始关键帧,进而基于初始关键帧生成目标视频,达到记录用户对初始图像进行图像编辑的过程。
概括性的,所述初始关键帧基于预设抽帧策略在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中获取。
示例性的,参考如图2所示的一种触发预设抽帧策略的流程示意图,具体包括:开始对初始图像进行图像编辑-产生图像编辑操作-判断图像编辑操作的类型-如果是第一类型的图像编辑操作,直接触发抽帧逻辑;如果是第二类型的图像编辑操作,在接收到确认生效指令或者编辑操作切换指令时触发抽帧逻辑。
在一些可选实施方式中,所述获取初始关键帧还可以是:按照固定步数抽取,例如通过计数器记录图像编辑操作的次数,用户每触发一次图像编辑操作,计数器的计数值加一,当计数值达到预设值(例如预设值是3,该值可调)时,执行一次抽帧逻辑。
或者,通过智能模型确定初始图像的内容变化程度,当初始图像的内容变化程度达到预设值时,执行一次抽帧逻辑。
或者,按照设置的固定时长进行抽帧,比如每10s执行一次抽帧逻辑。
步骤120、根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
为了进一步提高初始关键帧的质量,实现有效记录用户对初始图像进行图像编辑的过程,保证获取的初始关键帧是记录关键图像编辑操作的中间态图像,或者说是编辑效果发生较明显变化的中间态图像,在获取到初始关键帧之后,对初始关键帧进行过滤筛选,将编辑效果不明显的初始关键帧删除,保留记录关键图像编辑操作的初始关键帧,或者说是保留编辑效果发生较明显变化的初始关键帧。
可选的,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:
针对所述初始关键帧中的目标关键帧(即目标关键帧为初始关键 帧中的任意一个),将所述目标关键帧中像素点的像素值与距离所述目标关键帧最近的历史关键帧中像素点的像素值进行比对,其中,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的初始关键帧;若像素值发生变化的像素点数量达到第二预设阈值,则确定所述目标关键帧为有效帧。对应的,所述根据所述初始关键帧生成目标视频,包括:根据所述初始关键帧中的有效帧生成目标视频。
其中,若所述目标关键帧为第一个获取的初始关键帧,所述历史关键帧与所述目标关键帧为同一个关键帧;若所述目标关键帧不是第一个获取的初始关键帧,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的有效帧。
举例说明上述确定初始关键帧是否为有效帧的过程,假设获取到第一个初始关键帧,由于没有历史关键帧可参考,故将第一个初始关键帧确定为有效帧,至此获得了第一个有效帧;随着时间的推移,接着获取到第二个初始关键帧,此时将第二个初始关键帧中像素点的像素值与第一个有效帧中像素点的像素值进行比对,若像素值发生变化的像素点数量达到第二预设阈值,则确定第二个初始关键帧为有效帧。假设经过比对确定第二个初始关键帧为有效帧,至此则获得了第二个有效帧。随着时间的推移,接着获取到第三个初始关键帧,此时将第三个初始关键帧中像素点的像素值与第二个有效帧(因为第二个有效帧距离第三个初始关键帧最近)中像素点的像素值进行比对,以确定第三个初始关键帧是否为有效帧。以此类推,对所有的初始关键帧进行识别,以保留有效帧,删除无效帧。
进一步的,当确定目标关键帧是有效帧时,将该目标关键帧从内存中转存入本地磁盘,以保证有效帧的存储稳定性,为后续生成目标视频提供基础。
示例性的,参考如图3所示的一种确定抽取的初始关键帧是否为有效帧的流程示意图,具体包括触发抽帧逻辑,获取到一个初始关键帧,接着通过像素对比过滤策略确定该初始关键帧中像素点的像素值相比 于距离该初始关键帧最近的历史关键帧中像素点的像素值发生变化的像素点数量是否达到第二预设阈值,若达到第二预设阈值,则确定该初始关键帧为有效帧,并对该初始关键帧进行保存,若没有达到第二预设阈值,则将该初始关键帧丢弃,不对其进行保存。
为了使目标视频简短且高效,当初始关键帧的数量较多时,通过一定的策略对初始关键帧进行稀疏化处理,以防生成的目标视频过于冗余,观看效果不佳。
进一步的,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:
若所述初始关键帧的数量达到第一预设阈值且所述初始关键帧均是在第一类型的图像编辑操作的触发时刻获取的,则对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第一预设阈值。
以第一类型的图像编辑操作是涂鸦操作为例,通常在针对初始图像进行涂鸦操作时,用户会连续不断地进行,该过程会连续抽取较多的初始关键帧,为了保证所生成目标视频的效果,使目标视频简短且高效,对该较多的初始关键帧进行稀疏化处理。
可选的,稀疏化处理可以按照等间隔选取的规则进行。例如:按照获取的初始关键帧的序号,保留序号为奇数的初始关键帧,将序号为偶数的初始关键帧删除;其中,初始关键帧的序号基于初始关键帧的获取时刻确定,获取时刻越早的初始关键帧的序号越小。假设第一预设阈值为40(该值可调整),当获取的所述初始关键帧的数量为39时,在获取到第40个所述初始关键帧时,对前39个初始关键帧进行均匀减半处理,例如等间隔选取第一个初始关键帧、第三个初始关键帧、第五个初始关键帧……等将前39个初始关键帧处理为20个初始关键帧,所述第40个初始关键帧作为处理后的第21个初始关键帧,从而实现了稀疏化处理。
概括性的,从所述初始关键帧中确定获取时刻相邻的两个初始关 键帧;将所述两个初始关键帧中的一个初始关键帧进行过滤。
示例性的,参考如图4所示的一种进行稀疏化处理的流程示意图,包括:如果图像编辑操作是第一类型的图像编辑操作,则直接触发抽帧逻辑,在第一类型的图像编辑操作的进行过程中,不断地触发抽帧逻辑;判断针对第一类型的图像编辑操作获取的有效帧的数量是否达到第一预设阈值,如果达到第一预设阈值,则对该有效帧进行稀疏化处理,以控制有效帧的数量小于所述第一预设阈值。
在一些可选实施方式中,若初始关键帧的总数量达到第三预设阈值,则对全部的初始关键帧进行稀疏化处理。具体的,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:
若所述初始关键帧的数量达到第三预设阈值,则基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值。
所述基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值,包括:
按照所述初始关键帧的序号,保留序号为奇数的初始关键帧,将序号为偶数的初始关键帧删除;其中,所述初始关键帧的序号基于初始关键帧的获取时刻确定,获取时刻越早的初始关键帧的序号越小。
概括性的,所述基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值,包括:
从所述初始关键帧中确定获取时刻相邻的两个初始关键帧;将所述两个初始关键帧中的一个初始关键帧进行过滤。其中,初始关键帧可以指有效帧。
本公开实施例提供的视频生成方法,通过在对初始图像进行图像编辑的过程中抽取初始关键帧,并对抽取的初始关键帧进行有效性识别,以保留能够实现有效记录用户对初始图像进行图像编辑的过程,保证获取的初始关键帧是记录关键编辑操作的图像,或者说是编辑效果发生较明显变化的图像,为获得优质目标视频提供基础。通过控制有效 帧的数量,可使目标视频具备简洁、高效且具备较强可看性的特点,使得目标视频具备较强的社交分享的特点,丰富了互联网媒体内容。
可选的,所述方法还可以包括:对所述目标视频进行分享,或者将所述目标视频发送至预设社交媒体平台。
可选的,所述目标视频的展现形式可以是动画、视频、动图、序列帧或动效等。所述目标视频可作为图像编辑教程对不熟悉图像编辑的用户进行引导。所述目标视频较好地记录了完整的修图过程,具备较强的内容可看性。
图5为本公开实施例中的一种视频生成装置的结构示意图。本公开实施例所提供的视频生成装置可以配置于客户端中。该视频生成装置具体包括:
获取模块510,用于在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;生成模块520,用于根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
可选的,获取模块510包括:
确定单元,用于确定在针对所述初始图像进行图像编辑操作时,确定图像编辑操作的类型;抽帧单元,用于若图像编辑操作的类型是第一类型,则在触发图像编辑操作的时刻获取初始关键帧;若图像编辑操作的类型是第二类型,则在触发图像编辑操作之后接收到确认生效指令或者图像编辑操作切换指令时获取初始关键帧,其中,第一类型的图像编辑操作是使所述初始图像的原始内容发生改变的操作;第二类型的图像编辑操作是在所述初始图像的原始内容叠加特效但不使所述原始内容发生改变的操作。
可选的,还包括:第一处理模块,用于若所述初始关键帧的数量达 到第一预设阈值且所述初始关键帧均是在第一类型的图像编辑操作的触发时刻获取的,则对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第一预设阈值。
可选的,还包括:对比模块,用于针对所述初始关键帧中的目标关键帧,将所述目标关键帧中像素点的像素值与距离所述目标关键帧最近的历史关键帧中像素点的像素值进行比对,其中,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的初始关键帧;识别模块,用于若像素值发生变化的像素点数量达到第二预设阈值,则确定所述目标关键帧为有效帧。对应的,生成模块520具体用于:根据所述初始关键帧中的有效帧生成目标视频。
可选的,若所述目标关键帧为第一个获取的初始关键帧,所述历史关键帧与所述目标关键帧为同一个关键帧;若所述目标关键帧不是第一个获取的初始关键帧,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的有效帧。
可选的,还包括:第二处理模块,用于若所述初始关键帧的数量达到第三预设阈值,则基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值。
可选的,所述第二处理模块包括确定单元,用于从所述初始关键帧中确定获取时刻相邻的两个初始关键帧;过滤单元,用于将所述两个初始关键帧中的一个初始关键帧进行过滤。
可选的,所述中间态图像还呈现有对应图像编辑操作的触发动作。
本公开实施例提供的视频生成装置,可执行本公开方法实施例所提供的视频生成方法中客户端所执行的步骤,具备执行步骤和有益效果此处不再赘述。
图6为本公开实施例中的一种电子设备的结构示意图。下面具体参考图6,其示出了适于用来实现本公开实施例中的电子设备500的结构示意图。本公开实施例中的电子设备500可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD (平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)、可穿戴电子设备等等的移动终端以及诸如数字TV、台式计算机、智能家居设备等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图6所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理以实现如本公开所述的实施例的方法。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码,从而实现如上所述的视频生成方法。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读 信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:在初始图像经过一系 列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
可选的,当上述一个或者多个程序被该电子设备执行时,该电子设备还可以执行上述实施例所述的其他步骤。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专 用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,本公开提供了一种视频生成方法,包括:在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
根据本公开的一个或多个实施例,在本公开提供的视频生成方法中,可选的,所述在初始图像经过一系列图像编辑操作得到目标图像的 图像编辑过程中,获取初始关键帧,包括:在针对所述初始图像进行图像编辑操作时,确定图像编辑操作的类型;若图像编辑操作的类型是第一类型,则在触发图像编辑操作的时刻获取初始关键帧;若图像编辑操作的类型是第二类型,则在触发图像编辑操作之后接收到确认生效指令或者图像编辑操作切换指令时获取初始关键帧,其中,第一类型的图像编辑操作是使所述初始图像的原始内容发生改变的操作;第二类型的图像编辑操作是在所述初始图像的原始内容叠加特效但不使所述原始内容发生改变的操作。
根据本公开的一个或多个实施例,在本公开提供的视频生成方法中,可选的,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:若所述初始关键帧的数量达到第一预设阈值且所述初始关键帧均是在第一类型的图像编辑操作的触发时刻获取的,则对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第一预设阈值。
根据本公开的一个或多个实施例,在本公开提供的视频生成方法中,可选的,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:针对所述初始关键帧中的目标关键帧,将所述目标关键帧中像素点的像素值与距离所述目标关键帧最近的历史关键帧中像素点的像素值进行比对,其中,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的初始关键帧;若像素值发生变化的像素点数量达到第二预设阈值,则确定所述目标关键帧为有效帧;对应的,所述根据所述初始关键帧生成目标视频,包括:根据所述初始关键帧中的有效帧生成目标视频。
根据本公开的一个或多个实施例,在本公开提供的视频生成方法中,可选的,若所述目标关键帧为第一个获取的初始关键帧,所述历史关键帧与所述目标关键帧为同一个关键帧;若所述目标关键帧不是第一个获取的初始关键帧,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的有效帧。
根据本公开的一个或多个实施例,在本公开提供的视频生成方法 中,可选的,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:若所述初始关键帧的数量达到第三预设阈值,则基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值。
根据本公开的一个或多个实施例,在本公开提供的视频生成方法中,可选的,所述基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值,包括:从所述初始关键帧中确定获取时刻相邻的两个初始关键帧;将所述两个初始关键帧中的一个初始关键帧进行过滤。
根据本公开的一个或多个实施例,在本公开提供的视频生成方法中,可选的,所述中间态图像还呈现有对应图像编辑操作的触发动作。
根据本公开的一个或多个实施例,本公开提供了一种视频生成装置,包括:获取模块,用于在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;生成模块,用于根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
根据本公开的一个或多个实施例,本公开提供了一种电子设备,包括:
一个或多个处理器;
存储器,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开提供的任一所述的视频生成方法。
根据本公开的一个或多个实施例,本公开提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开提供的任一所述的视频生成方法。
根据本公开的一个或多个实施例,本公开提供了一种计算机程序,包括:
计算机可读指令,该计算机可读指令当由处理器执行时使处理器执行前述任一视频生成方法中的一个或多个步骤。
根据本公开的一个或多个实施例,本公开提供了一种计算机程序产品,包括计算机可读指令,计算机可读指令当由处理器执行时使处理器执行前述任一视频生成方法中的一个或多个步骤。
本公开实施例提供的技术方案与相关技术相比至少具有如下优点:本公开实施例提供的视频生成方法,通过在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果以及触发所述对应图像编辑操作时的编辑动作;根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程的技术手段,实现了对图像编辑过程的记录。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在 单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (13)

  1. 一种视频生成方法,所述视频生成方法包括:
    在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;
    根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
  2. 根据权利要求1所述的视频生成方法,其中,所述在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,包括:
    在针对所述初始图像进行图像编辑操作时,确定图像编辑操作的类型;
    若图像编辑操作的类型是第一类型,则在触发图像编辑操作的时刻获取初始关键帧;
    若图像编辑操作的类型是第二类型,则在触发图像编辑操作之后接收到确认生效指令或者图像编辑操作切换指令时获取初始关键帧,其中,第一类型的图像编辑操作是使所述初始图像的原始内容发生改变的操作;第二类型的图像编辑操作是在所述初始图像的原始内容叠加特效但不使所述原始内容发生改变的操作。
  3. 根据权利要求2所述的视频生成方法,其中,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:
    若所述初始关键帧的数量达到第一预设阈值且所述初始关键帧均是在第一类型的图像编辑操作的触发时刻获取的,则对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第一预设 阈值。
  4. 根据权利要求1-3任一项所述的视频生成方法,其中,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:
    针对所述初始关键帧中的目标关键帧,将所述目标关键帧中像素点的像素值与距离所述目标关键帧最近的历史关键帧中像素点的像素值进行比对,其中,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的初始关键帧;
    若像素值发生变化的像素点数量达到第二预设阈值,则确定所述目标关键帧为有效帧;
    对应的,所述根据所述初始关键帧生成目标视频,包括:
    根据所述初始关键帧中的有效帧生成目标视频。
  5. 根据权利要求4所述的视频生成方法,其中,若所述目标关键帧为第一个获取的初始关键帧,所述历史关键帧与所述目标关键帧为同一个关键帧;
    若所述目标关键帧不是第一个获取的初始关键帧,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的有效帧。
  6. 根据权利要求1-3任一项所述的视频生成方法,其中,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:
    若所述初始关键帧的数量达到第三预设阈值,则基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值。
  7. 根据权利要求6所述的视频生成方法,其中,所述基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值,包括:
    从所述初始关键帧中确定获取时刻相邻的两个初始关键帧;
    将所述两个初始关键帧中的一个初始关键帧进行过滤。
  8. 根据权利要求1-3任一项所述的视频生成方法,其中,所述中间态图像还呈现有对应图像编辑操作的触发动作。
  9. 一种视频生成装置,包括:
    获取模块,用于在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;
    生成模块,用于根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
  10. 一种电子设备,所述电子设备包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-8中任一项所述的视频生成方法中的一个或多个步骤。
  11. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1-8中任一项所述的视频生成方法中的一个或多个步骤。
  12. 一种计算机程序,包括:
    计算机可读指令,所述计算机可读指令当由处理器执行时使所述处理器执行根据权利要求1-8中任一项所述的视频生成方法中的一个或多个步骤。
  13. 一种计算机程序产品,包括计算机可读指令,所述计算机可读指令当由处理器执行时使所述处理器执行根据权利要求1-8中任一项所述的视频生成方法中的一个或多个步骤。
PCT/CN2023/082244 2022-03-31 2023-03-17 一种视频生成方法、装置、电子设备和存储介质 Ceased WO2023185511A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP23777885.7A EP4492769A4 (en) 2022-03-31 2023-03-17 VIDEO GENERATING METHOD, APPARATUS, ELECTRONIC DEVICE AND STORAGE MEDIUM
JP2024558008A JP7728987B2 (ja) 2022-03-31 2023-03-17 ビデオ生成方法、装置、電子機器及び記憶媒体
US18/902,706 US12387760B2 (en) 2022-03-31 2024-09-30 Video generation method, apparatus, electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210346589.5A CN116939130A (zh) 2022-03-31 2022-03-31 一种视频生成方法、装置、电子设备和存储介质
CN202210346589.5 2022-03-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/902,706 Continuation US12387760B2 (en) 2022-03-31 2024-09-30 Video generation method, apparatus, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2023185511A1 true WO2023185511A1 (zh) 2023-10-05

Family

ID=88199043

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/082244 Ceased WO2023185511A1 (zh) 2022-03-31 2023-03-17 一种视频生成方法、装置、电子设备和存储介质

Country Status (5)

Country Link
US (1) US12387760B2 (zh)
EP (1) EP4492769A4 (zh)
JP (1) JP7728987B2 (zh)
CN (1) CN116939130A (zh)
WO (1) WO2023185511A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20240402902A1 (en) * 2021-11-29 2024-12-05 Beijing Zitiao Network Technology Co., Ltd. Video processing method and apparatus, device, and medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12423474B2 (en) * 2023-10-03 2025-09-23 Htc Corporation Data processing method, electronic device and non-transitory computer readable storage medium
CN119364146B (zh) * 2024-12-26 2025-05-02 北京生数科技有限公司 视频生成的方法、装置、电子设备和计算机可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6690878B1 (en) * 1998-07-07 2004-02-10 Samsung Electronics Co., Ltd. Direct accessing apparatus and method of disk recording and reproducing system
CN106034210A (zh) * 2015-03-09 2016-10-19 华为技术有限公司 一种图像编辑方法和装置
CN106993093A (zh) * 2017-03-30 2017-07-28 努比亚技术有限公司 一种图像处理装置及方法
CN107992246A (zh) * 2017-12-22 2018-05-04 珠海格力电器股份有限公司 一种视频编辑方法与其装置及智能终端
CN113132690A (zh) * 2021-04-22 2021-07-16 北京房江湖科技有限公司 施工过程视频的生成方法、装置以及电子设备、存储介质
CN114025103A (zh) * 2021-11-01 2022-02-08 上海哔哩哔哩科技有限公司 视频制作方法及装置

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9672646B2 (en) * 2009-08-28 2017-06-06 Adobe Systems Incorporated System and method for image editing using visual rewind operation
KR101328199B1 (ko) 2012-11-05 2013-11-13 넥스트리밍(주) 동영상 편집 방법 및 그 단말기 그리고 기록매체
US20150318020A1 (en) 2014-05-02 2015-11-05 FreshTake Media, Inc. Interactive real-time video editor and recorder
JP6331540B2 (ja) 2014-03-20 2018-05-30 フリュー株式会社 写真シール作成装置、写真シール作成装置の制御方法および管理装置
US20160365118A1 (en) * 2015-06-11 2016-12-15 Eran Steinberg Video editing system with multi-stakeholder control
CN105872675A (zh) 2015-12-22 2016-08-17 乐视网信息技术(北京)股份有限公司 截取视频动画的方法及装置
US20170178685A1 (en) 2015-12-22 2017-06-22 Le Holdings (Beijing) Co., Ltd. Method for intercepting video animation and electronic device
US11749312B2 (en) * 2017-03-24 2023-09-05 Adobe Inc. Timeline creation of electronic document creation states
JP7014953B2 (ja) 2017-07-28 2022-02-02 辰巳電子工業株式会社 画像処理装置及び画像処理方法
CN110087123B (zh) 2019-05-15 2022-07-22 腾讯科技(深圳)有限公司 视频文件制作方法、装置、设备及可读存储介质
US10818058B1 (en) * 2019-07-16 2020-10-27 Adobe Inc. Analyzing digital image modifications to generate, publish, and present digital image-editing tutorials
US11450047B2 (en) * 2019-07-26 2022-09-20 PicsArt, Inc. Systems and methods for sharing image data edits
US20210099756A1 (en) * 2019-10-01 2021-04-01 Qualcomm Incorporated Low-cost video segmentation
US10831516B1 (en) * 2020-03-09 2020-11-10 Adobe Inc. Proficiency based tutorial modification

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6690878B1 (en) * 1998-07-07 2004-02-10 Samsung Electronics Co., Ltd. Direct accessing apparatus and method of disk recording and reproducing system
CN106034210A (zh) * 2015-03-09 2016-10-19 华为技术有限公司 一种图像编辑方法和装置
CN106993093A (zh) * 2017-03-30 2017-07-28 努比亚技术有限公司 一种图像处理装置及方法
CN107992246A (zh) * 2017-12-22 2018-05-04 珠海格力电器股份有限公司 一种视频编辑方法与其装置及智能终端
CN113132690A (zh) * 2021-04-22 2021-07-16 北京房江湖科技有限公司 施工过程视频的生成方法、装置以及电子设备、存储介质
CN114025103A (zh) * 2021-11-01 2022-02-08 上海哔哩哔哩科技有限公司 视频制作方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4492769A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20240402902A1 (en) * 2021-11-29 2024-12-05 Beijing Zitiao Network Technology Co., Ltd. Video processing method and apparatus, device, and medium
US12346549B2 (en) * 2021-11-29 2025-07-01 Beijing Zitiao Network Technology Co., Ltd. Video processing method and apparatus, device, and medium

Also Published As

Publication number Publication date
CN116939130A (zh) 2023-10-24
JP2025511177A (ja) 2025-04-15
EP4492769A4 (en) 2025-07-02
US20250022485A1 (en) 2025-01-16
US12387760B2 (en) 2025-08-12
JP7728987B2 (ja) 2025-08-25
EP4492769A1 (en) 2025-01-15

Similar Documents

Publication Publication Date Title
WO2021196903A1 (zh) 视频处理方法、装置、可读介质及电子设备
WO2023185511A1 (zh) 一种视频生成方法、装置、电子设备和存储介质
CN115379105B (zh) 视频拍摄方法、装置、电子设备和存储介质
CN111669502A (zh) 目标对象显示方法、装置及电子设备
CN110070496B (zh) 图像特效的生成方法、装置和硬件装置
JP7732004B2 (ja) ビデオ生成方法、装置、デバイス、記憶媒体およびプログラム製品
CN114422698B (zh) 视频生成方法、装置、设备及存储介质
CN113806306B (zh) 媒体文件处理方法、装置、设备、可读存储介质及产品
CN114598815B (zh) 一种拍摄方法、装置、电子设备和存储介质
CN116266856A (zh) 视频生成方法、装置、电子设备和存储介质
CN116302268A (zh) 媒体内容的展示方法、装置、电子设备和存储介质
US12603112B2 (en) Video generation method, apparatus, device, and storage medium
WO2024251153A1 (zh) 媒体内容的发布方法、装置、电子设备和存储介质
WO2022068631A1 (zh) 图片转视频的方法、装置、设备及存储介质
CN115757933B (zh) 推荐信息生成方法、装置、设备、介质和程序产品
CN117241100A (zh) 视频生成方法、装置、电子设备及存储介质
WO2023098576A1 (zh) 图像处理方法、装置、设备及介质
WO2023279951A1 (zh) 录屏视频的处理方法、装置、可读介质和电子设备
CN118628409A (zh) 一种图像修复方法、装置、设备、介质及程序产品
CN113905177B (zh) 视频生成方法、装置、设备及存储介质
CN114528433B (zh) 一种模板选择方法、装置、电子设备及存储介质
CN114520928B (zh) 显示信息生成方法、信息显示方法、装置和电子设备
CN116820311A (zh) 封面的设置方法、装置、电子设备和存储介质
WO2023124944A1 (zh) 视频通话方法、装置、电子设备和存储介质
CN117234324A (zh) 信息输入页面的图像获取方法、装置、设备、介质

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: 23777885

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2024558008

Country of ref document: JP

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112024020121

Country of ref document: BR

WWE Wipo information: entry into national phase

Ref document number: 2023777885

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023777885

Country of ref document: EP

Effective date: 20241010

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 11202406858X

Country of ref document: SG

ENP Entry into the national phase

Ref document number: 112024020121

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20240927