WO2023185511A1 - 一种视频生成方法、装置、电子设备和存储介质 - Google Patents
一种视频生成方法、装置、电子设备和存储介质 Download PDFInfo
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/02—Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/44008—Processing 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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/47205—End-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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio 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/2621—Cameras 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
Claims (13)
- 一种视频生成方法,所述视频生成方法包括:在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
- 根据权利要求1所述的视频生成方法,其中,所述在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,包括:在针对所述初始图像进行图像编辑操作时,确定图像编辑操作的类型;若图像编辑操作的类型是第一类型,则在触发图像编辑操作的时刻获取初始关键帧;若图像编辑操作的类型是第二类型,则在触发图像编辑操作之后接收到确认生效指令或者图像编辑操作切换指令时获取初始关键帧,其中,第一类型的图像编辑操作是使所述初始图像的原始内容发生改变的操作;第二类型的图像编辑操作是在所述初始图像的原始内容叠加特效但不使所述原始内容发生改变的操作。
- 根据权利要求2所述的视频生成方法,其中,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:若所述初始关键帧的数量达到第一预设阈值且所述初始关键帧均是在第一类型的图像编辑操作的触发时刻获取的,则对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第一预设 阈值。
- 根据权利要求1-3任一项所述的视频生成方法,其中,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:针对所述初始关键帧中的目标关键帧,将所述目标关键帧中像素点的像素值与距离所述目标关键帧最近的历史关键帧中像素点的像素值进行比对,其中,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的初始关键帧;若像素值发生变化的像素点数量达到第二预设阈值,则确定所述目标关键帧为有效帧;对应的,所述根据所述初始关键帧生成目标视频,包括:根据所述初始关键帧中的有效帧生成目标视频。
- 根据权利要求4所述的视频生成方法,其中,若所述目标关键帧为第一个获取的初始关键帧,所述历史关键帧与所述目标关键帧为同一个关键帧;若所述目标关键帧不是第一个获取的初始关键帧,所述历史关键帧为所述目标关键帧对应时刻的上一时刻的有效帧。
- 根据权利要求1-3任一项所述的视频生成方法,其中,所述根据所述初始关键帧生成目标视频之前,所述方法还包括:若所述初始关键帧的数量达到第三预设阈值,则基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值。
- 根据权利要求6所述的视频生成方法,其中,所述基于预设稀疏策略对所述初始关键帧进行稀疏化处理,以控制所述初始关键帧的数量小于所述第三预设阈值,包括:从所述初始关键帧中确定获取时刻相邻的两个初始关键帧;将所述两个初始关键帧中的一个初始关键帧进行过滤。
- 根据权利要求1-3任一项所述的视频生成方法,其中,所述中间态图像还呈现有对应图像编辑操作的触发动作。
- 一种视频生成装置,包括:获取模块,用于在初始图像经过一系列图像编辑操作得到目标图像的图像编辑过程中,获取初始关键帧,所述初始关键帧是所述图像编辑过程中所述初始图像到所述目标图像之间的中间态图像,其中,不同初始关键帧是在所述图像编辑过程中所述一系列图像编辑操作中的不同图像编辑操作被触发时的中间态图像,所述中间态图像呈现有对应图像编辑操作的编辑效果;生成模块,用于根据所述初始关键帧生成目标视频,以记录所述目标图像的图像编辑过程。
- 一种电子设备,所述电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-8中任一项所述的视频生成方法中的一个或多个步骤。
- 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1-8中任一项所述的视频生成方法中的一个或多个步骤。
- 一种计算机程序,包括:计算机可读指令,所述计算机可读指令当由处理器执行时使所述处理器执行根据权利要求1-8中任一项所述的视频生成方法中的一个或多个步骤。
- 一种计算机程序产品,包括计算机可读指令,所述计算机可读指令当由处理器执行时使所述处理器执行根据权利要求1-8中任一项所述的视频生成方法中的一个或多个步骤。
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)
| 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)
| 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)
| 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)
| 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 |
-
2022
- 2022-03-31 CN CN202210346589.5A patent/CN116939130A/zh active Pending
-
2023
- 2023-03-17 WO PCT/CN2023/082244 patent/WO2023185511A1/zh not_active Ceased
- 2023-03-17 EP EP23777885.7A patent/EP4492769A4/en active Pending
- 2023-03-17 JP JP2024558008A patent/JP7728987B2/ja active Active
-
2024
- 2024-09-30 US US18/902,706 patent/US12387760B2/en active Active
Patent Citations (6)
| 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)
| Title |
|---|
| See also references of EP4492769A4 |
Cited By (2)
| 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 |