WO2025200510A1 - 动态照片拍摄方法、装置、设备、存储介质及程序产品 - Google Patents
动态照片拍摄方法、装置、设备、存储介质及程序产品Info
- Publication number
- WO2025200510A1 WO2025200510A1 PCT/CN2024/134336 CN2024134336W WO2025200510A1 WO 2025200510 A1 WO2025200510 A1 WO 2025200510A1 CN 2024134336 W CN2024134336 W CN 2024134336W WO 2025200510 A1 WO2025200510 A1 WO 2025200510A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video frame
- image
- frame sequence
- photo
- image group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/60—Memory management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/172—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
-
- 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/265—Mixing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/92—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/93—Regeneration of the television signal or of selected parts thereof
Definitions
- the present disclosure relates to the field of terminal technology, and in particular to a method, device, electronic device, computer-readable storage medium, and program product for shooting dynamic photos.
- the present disclosure provides a method, device, electronic device, computer-readable storage medium and program product for taking dynamic photos.
- a method for shooting dynamic photos includes: shooting a static photo in response to a trigger operation received on a shooting control; obtaining at least one image group video frame sequence, wherein the at least one image group video frame sequence is obtained by encoding video frame images captured within a target time window in units of image groups, and the target time window includes the moment when the trigger operation is received; and synthesizing a dynamic photo based on the static photo and the at least one image group video frame sequence.
- the at least one image group video frame sequence before receiving the trigger operation, is stored in a target cache; obtaining the at least one image group video frame sequence includes: moving the at least one image group video frame sequence from the target cache to a video file; synthesizing the dynamic photo based on the static photo and the at least one image group video frame sequence includes: synthesizing the dynamic photo based on the static photo and the at least one image group video frame sequence stored in the video file.
- the method before synthesizing a dynamic photo based on the static photo and the at least one image group video frame sequence, the method further includes: acquiring a current frame image, the current frame image being any frame image saved in the image group queue after encoding; in the case where the current frame image is an I frame, encoding the current frame image to obtain a current frame encoded image, and saving the current frame encoded image as the first frame of the next image group video frame sequence in the image group queue to the image group queue; in the case where the current frame image is not an I frame and the number of frames of the last image group video frame sequence in the image group queue is greater than or equal to In the case of the target frame number, the current frame image is intra-encoded to obtain the current frame coded image, and the current frame coded image is used as the first frame of the next picture group video frame sequence of the picture group queue and saved in the picture group queue; in the case that the current frame image is not an I frame and the number of frames of the last picture group video frame sequence in the
- synthesizing a dynamic photo based on the static photo and the at least one image group video frame sequence includes: using the static photo as a cover and synthesizing it with the at least one image group video frame sequence to form the dynamic photo.
- Some embodiments of the present disclosure synthesize a dynamic photo based on the static photo and the at least one image group video frame sequence, including: displaying multiple candidate images, the multiple candidate images including the static photo, and the candidate images other than the static photo among the multiple candidate images are pictures in the at least one image group video frame sequence; in response to a selection operation of a target candidate image among the multiple candidate images, using the target candidate image as a cover and synthesizing it with the at least one image group video frame sequence to form the dynamic photo.
- a dynamic photo shooting device which includes: a shooting module for shooting a static photo in response to a trigger operation received on a shooting control; an acquisition module for acquiring at least one image group video frame sequence, wherein the at least one image group video frame sequence is obtained by encoding video frame images captured within a target time window in units of image groups, and the target time window includes the moment when the trigger operation is received; and a synthesis module for synthesizing a dynamic photo based on the static photo and the at least one image group video frame sequence.
- the at least one image group video frame sequence before receiving the trigger operation, is stored in a target cache; the acquisition module is specifically used to move the at least one image group video frame sequence from the target cache to a video file; and the synthesis module is specifically used to synthesize the dynamic photo based on the static photo and the at least one image group video frame sequence stored in the video file.
- the at least one image group video frame sequence is an image group video frame sequence in an image group queue;
- the device also includes: a deletion module for deleting the first image group video frame sequence in the image group queue before synthesizing a dynamic photo based on the static photo and the at least one image group video frame sequence, if the time interval between the current frame encoded image saved in the image group queue and the first frame of the second image group video frame sequence in the image group queue is greater than the target duration;
- the acquisition module is specifically used to acquire all image group video frame sequences in the image group queue to obtain the at least one image group video frame sequence; wherein the duration of the target time window is the duration corresponding to the image group queue, the duration corresponding to the image group queue is greater than the target duration, and less than or equal to the sum of the target duration and the first duration, and the first duration is the duration corresponding to the first image group video frame sequence in the image group queue.
- the device further includes: an acquisition module for acquiring a current frame image before synthesizing a dynamic photo based on the static photo and the at least one image group video frame sequence, the current frame image being any frame image saved in the image group queue after encoding; an encoding and saving module for encoding the current frame image to obtain a current frame encoded image when the current frame image is an I frame, and saving the current frame encoded image as the first frame of the next image group video frame sequence in the image group queue to the image group queue; when the current frame image is not an I frame and the last image group video frame sequence in the image group queue When the number of frames in the column is greater than or equal to the target number of frames, the current frame image is intra-coded to obtain the current frame coded image, and the current frame coded image is used as the first frame of the next picture group video frame sequence of the picture group queue and saved in the picture group queue; when the current frame image is not an I frame and the number of frames of the last picture group video frame sequence in the
- the synthesis module is specifically configured to use the static photo as a cover and synthesize it with the at least one image group video frame sequence into the dynamic photo.
- the synthesis module is specifically used to display multiple candidate images, where the multiple candidate images include the static photo, and the candidate images other than the static photo among the multiple candidate images are pictures in the video frame sequence of the at least one image group; in response to a selection operation of a target candidate image among the multiple candidate images, the target candidate image is used as a cover and synthesized with the at least one image group video frame sequence to form the dynamic photo.
- a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the dynamic photo shooting method as described in the first aspect is implemented.
- FIG1 is a flow chart of a method for taking dynamic photos according to an embodiment of the present disclosure
- FIG2 is a schematic diagram of an image group queue according to an embodiment of the present disclosure.
- FIG3 is a second schematic diagram of an image group queue provided by an embodiment of the present disclosure.
- FIG4 is a second flow chart of a method for taking dynamic photos according to an embodiment of the present disclosure.
- FIG5 is a structural block diagram of a dynamic photo shooting device provided by an embodiment of the present disclosure.
- first, second, etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first”, “second”, etc. are generally of the same type, and the number of objects is not limited.
- the first object can be one or more.
- “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects related to each other are in an "or” relationship.
- dynamic photos are increasingly used.
- dynamic photos include images before the photo is taken, and the electronic device cannot predict when the user will press the capture control to take the photo, when the electronic device enters dynamic photo mode, the electronic device needs to continuously cache the real-time images captured by the camera into a video file. If the difference between the time when the user presses the capture control and the time when the electronic device enters dynamic photo mode is large, the electronic device will cache a large number of video frames in the video file before taking a still photo (or before and after taking a still photo), which takes up a large amount of memory.
- the execution subject of the dynamic photo shooting method provided by the embodiment of the present disclosure can be the above-mentioned electronic device (including mobile electronic devices and non-mobile electronic devices), or it can be a functional module and/or functional entity in the electronic device that can implement the dynamic photo shooting method.
- the specific one can be determined according to actual usage requirements and is not limited by the embodiment of the present disclosure.
- an embodiment of the present disclosure provides a method for shooting dynamic photos, which may include the following steps 101 to 103 .
- the received triggering operation on the shooting control is an operation that triggers taking a picture.
- the shooting control may be a control such as a shutter key for triggering a shooting operation.
- the triggering operation of the shooting control can include any of the following methods: the user can trigger the shooting control by clicking the shooting control component displayed on the touch screen of the electronic device; the user can trigger the shooting control through non-contact methods such as voice control or hovering gestures; the user can trigger the shooting control by pressing a physical button or a combination of physical buttons on the electronic device; the user can trigger the shooting control through a control device connected to the electronic device (for example: the electronic device is connected to a selfie stick through a USB interface, and the selfie stick has physical buttons that can control the electronic device to take pictures; for example, the electronic device is connected to a tripod shooting stick through a USB interface, and the tripod shooting stick is connected to a wireless remote control, and the electronic device can be controlled to take pictures through the wireless remote control).
- a control device connected to the electronic device for example: the electronic device is connected to a selfie stick through a USB interface, and the selfie stick has physical buttons that can control the electronic device to take pictures; for example, the electronic device is connected to a tripod shooting stick through a
- the at least one image group video frame sequence is obtained by encoding video frame images captured within a target time window in units of image groups, and the target time window includes the moment when the trigger operation is received.
- the end moment of the target time window may be the moment when the trigger operation is received
- the start moment of the target time window may be the moment when the trigger operation is received
- the middle moment of the target time window includes the moment when the trigger operation is received.
- the electronic device when the end moment of the target time window is the moment when the trigger operation is received, the electronic device captures video frame images in real time before receiving the trigger operation, and encodes the captured video frame images.
- the electronic device when the starting moment of the target time window is the moment when the trigger operation is received, the electronic device captures video frame images in real time after receiving the trigger operation, and encodes the captured video frame images.
- the start time, end time, and duration of the target time window can be determined according to actual conditions and are not limited here.
- the target time window can be a time window with a fixed length, or a time window whose length changes with the changes of the actual captured video frame image.
- the specific length can be determined according to actual conditions and is not limited here.
- the electronic device can encode the collected video frame images in real time, that is, collect one frame of video frame image and encode the one frame of video frame image; the electronic device can also collect a preset number of video frame images and then encode the preset number of video frame images; the specific determination is based on actual conditions and is not limited here.
- a GOP is a group of consecutive pictures.
- the first frame of a GOP must be an I-frame, ensuring that the GOP can be decoded independently without reference to other pictures.
- the first frame of each GOP video frame sequence in the at least one GOP video frame sequence is an I frame.
- the first frame of at least one image group video frame sequence is an I frame
- the first frame of the dynamic photo can be the first frame of at least one image group video frame sequence, thereby ensuring that the first frame of the shooting file (cached sequence frame, i.e., at least one image group video frame sequence) is consistent with the first frame of the final product (the first frame of the actually generated video frame, i.e., the dynamic photo), thereby avoiding the time consumption of searching (seeking) and the time consumption of secondary encoding caused by the inconsistency between the first frame of the shooting file and the final product.
- the first frame of the target video frame sequence used to synthesize the dynamic photo is not an I frame
- the video frames between the first frame and the first I frame of the target video frame sequence cannot be decoded independently. Therefore, if the first I frame of the target video frame sequence is used as the first frame of the dynamic photo, it is necessary to find the first I frame in the target video frame sequence, and then delete the video frame sequence before the first I frame in the target video frame sequence, and generate the dynamic photo based on the deleted video frame sequence and the static photo.
- the dynamic photo includes a cover picture and a target video clip.
- the cover picture can be a static photo or any frame of video image in the target video clip.
- the specific cover picture can be determined according to actual conditions and is not limited here.
- At least one image group video frame sequence is obtained, and then a dynamic photo is synthesized based on the static photo and the at least one image group video frame sequence.
- the memory usage of the cached video frame images in the dynamic photo mode can be reduced; on the other hand, it can ensure that the first frame of the shooting file (cached sequence frame, that is, at least one image group video frame sequence) is consistent with the first frame of the final product (actually generated video frame, that is, the dynamic photo), which can avoid the time-consuming search and secondary encoding caused by the inconsistency between the shooting file and the first frame of the final product.
- the at least one image group video frame sequence is stored in the target cache; the above step 102 can be specifically implemented by the following step 102a, and the above step 103 can be specifically implemented by the following step 103a.
- At least one GOP video frame sequence is copied from the target cache to the video file, and at least one GOP video frame sequence in the target cache is deleted.
- At least one image group video frame sequence after encoding the captured video frame images is stored in a target cache rather than in a video file.
- the at least one image group video frame sequence is moved from the target cache to the video file.
- this can reduce file input and output (IO) operations, i.e., file read and write operations, thereby improving system performance.
- IO file input and output
- the draft disk usage can be reduced.
- the dynamic photo shooting method provided by the embodiment of the present disclosure may further include the following step 104; the above step 102 may be specifically implemented through the following step 102b.
- the captured video frames are continuously encoded and cached in a queue (image group queue) in the memory, and outdated image group video frame sequences are continuously discarded in the form of a sliding window (target duration) (when the time interval between the current frame encoded image saved in the image group queue and the first frame of the second image group video frame sequence in the image group queue is greater than the target duration, the first image group video frame sequence is an outdated image group video frame sequence), and the encoded video frame sequence within the most recent period is kept in the memory (when the time interval between the current frame encoded image saved in the image group queue and the first frame of the second image group video frame sequence in the image group queue is less than or equal to the target duration, all image group video frame sequences saved in the image group queue are not outdated image group video frame sequences and can be used to synthesize dynamic photos). In this way, memory usage can be further reduced.
- target duration when the time interval between the current frame encoded image saved in the image group queue and the first frame of the second image group video frame sequence in the image group queue is greater than the
- the duration of the target time window is the duration corresponding to the image group queue
- the duration corresponding to the image group queue is greater than the target duration, and less than or equal to the sum of the target duration and the first duration
- the first duration is the duration corresponding to the first image group video frame sequence in the image group queue.
- the duration corresponding to the GOP queue is the sum of the durations of all GOP video frame sequences stored in the GOP queue.
- the duration corresponding to the first GOP video frame sequence in the GOP queue is the sum of the durations of all video frames included in the first GOP video frame sequence in the GOP queue. If each GOP video frame sequence in the GOP queue includes a different number of video frames, the first duration changes in accordance with the duration corresponding to the first GOP video frame sequence in the GOP queue.
- the target time window is not a fixed value, but changes with the corresponding duration of the image group queue.
- the final captured product (dynamic photo) is a video with a cover image and a duration of T seconds, where T is greater than S and less than or equal to the sum of S and the duration corresponding to GOP 1.
- all image group video frame sequences in the image group queue can be obtained as at least one image group video frame sequence, and synthesized with the static photo to form a dynamic photo.
- the process of shooting dynamic photos can be simplified, time consumption can be reduced, and shooting efficiency can be improved.
- the dynamic photo shooting method provided by the embodiments of the present disclosure may further include the following steps 105 to 108.
- the current frame image is any frame image saved in the image group queue after encoding, and is any video frame image captured at a preset frame rate corresponding to the dynamic photography mode.
- the current frame image is an I frame
- encode the current frame image to obtain a current frame encoded image
- save the current frame encoded image as the first frame of the next picture group video frame sequence in the picture group queue to the picture group queue.
- the duration corresponding to the target number of frames is less than the target duration.
- the current frame image when the current frame image is not an I frame and the number of frames of the last image group video frame sequence in the image group queue is greater than or equal to the target number of frames, the current frame image is forced to be an I frame, or in other words, the current frame image is requested to be an I frame, and the current frame image is intra-encoded to obtain the current frame coded image, and the current frame coded image is used as the first frame of the next image group video frame sequence in the image group queue and saved to the image group queue; when the current frame image is not an I frame and the number of frames of the last image group video frame sequence in the image group queue is less than the target number of frames, the current frame image is encoded to obtain the current frame coded image, and the
- the electronic device after entering the dynamic photography mode, the electronic device repeatedly executes the above steps 105 to 108 and step 104 until at least one image group video frame sequence is obtained, and then stops executing the above steps 105 to 108 and step 104.
- the current frame image when the current frame image is an I frame, the current frame image is encoded to obtain a current frame encoded image, and the current frame encoded image is saved in the image group queue as the first frame of the next image group video frame sequence of the image group queue; when the current frame image is not an I frame, the current frame image is encoded to obtain a current frame encoded image, and the current frame encoded image is saved in the image group queue as a frame of the last image group video frame sequence; the specific details can be determined according to actual conditions and are not limited here.
- a captured video frame image may be used as a candidate image at intervals of a preset duration, or the determination as to whether the captured video frame image is a candidate image may be made based on the image content of the captured video frame image.
- the specific determination may be based on actual circumstances and is not limited herein.
- the user can select a more satisfactory candidate image as the cover, and the human-computer interaction experience can be improved.
- the at least one image group video frame sequence before receiving the trigger operation, is stored in the target cache; the acquisition module 502 is specifically used to move the at least one image group video frame sequence from the target cache to the video file; the synthesis module is specifically used to synthesize the dynamic photo based on the static photo and the at least one image group video frame sequence stored in the video file.
- the at least one image group video frame sequence is an image group video frame sequence in an image group queue;
- the device also includes: a deletion module for deleting the first image group video frame sequence in the image group queue before synthesizing a dynamic photo based on the static photo and the at least one image group video frame sequence, if the time interval between the current frame encoded image saved in the image group queue and the first frame of the second image group video frame sequence in the image group queue is greater than the target duration;
- the acquisition module 502 is specifically used to acquire all image group video frame sequences in the image group queue to obtain the at least one image group video frame sequence; wherein the duration of the target time window is the duration corresponding to the image group queue, the duration corresponding to the image group queue is greater than the target duration, and is less than or equal to the sum of the target duration and the first duration, and the first duration is the duration corresponding to the first image group video frame sequence in the image group queue.
- the synthesis module 503 is specifically configured to use the static photo as the cover and synthesize it with the at least one image group video frame sequence into the dynamic photo.
- each module can implement the dynamic photo shooting method provided by the above method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described here.
- FIG6 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure, which is used to exemplify an electronic device that implements any dynamic photo shooting method in an embodiment of the present disclosure and should not be understood as a specific limitation on the embodiment of the present disclosure.
- an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart.
- the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602.
- the processor 601 the functions defined in any dynamic photo shooting method provided by the embodiment of the present disclosure can be executed.
- Computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
- Computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above.
- Computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a 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 that can be used by or in conjunction with an instruction execution system, device, or component.
- the above-mentioned computer-readable medium carries one or more programs.
- the electronic device takes a static photo in response to a received trigger operation on the shooting control; obtains at least one image group video frame sequence, and the at least one image group video frame sequence is obtained by encoding the video frame images captured within a target time window in units of image groups, and the target time window includes the moment when the trigger operation is received; synthesizes a dynamic photo based on the static photo and the at least one image group video frame sequence.
- each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function.
- the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
- each box in the block diagram and/or flowchart, and the combination of the boxes in the block diagram and/or flowchart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
- a computer-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment.
- a computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium.
- a computer-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
Abstract
本公开涉及一种动态照片拍摄方法、装置、设备、存储介质及程序产品,该方法包括:响应于接收到的对拍摄控件的触发操作,拍摄静态照片;获取至少一个图像组视频帧序列,该至少一个图像组视频帧序列为对目标时间窗内采集的视频帧图像以图像组为单位进行编码得到的,该目标时间窗包括接收到该触发操作的时刻;基于该静态照片和该至少一个图像组视频帧序列,合成动态照片。
Description
相关申请的交叉引用
本申请要求申请号为202410382805.0,题为“一种相似性确定方法、装置、设备、介质、产品”、申请日为2024年3月29日的中国发明专利申请的优先权,通过引用方式将该申请整体并入本文。
本公开涉及终端技术领域,尤其涉及一种动态照片拍摄方法、装置、电子设备、计算机可读存储介质及程序产品。
随着人们生活水平的不断提高,静态照片已无法满足人们的拍摄需求,因此,产生了一种新的拍摄模式,即用于拍摄动态照片(Live Photo)的动态拍照模式。动态照片,是基于用户按下拍摄控件时拍摄得到的静态照片和在静态照片拍摄之前(或静态照片拍摄前后)录制的一段预设时长(如1.5秒)的动态视频合成得到的,当用户在动态照片上长按一下,照片就会自动播放动态效果,重现拍摄时的动态瞬间。
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种动态照片拍摄方法、装置、电子设备、计算机可读存储介质及程序产品。
本公开实施例的第一方面,提供一种动态照片拍摄方法,该方法包括:响应于接收到的对拍摄控件的触发操作,拍摄静态照片;获取至少一个图像组视频帧序列,该至少一个图像组视频帧序列为对目标时间窗内采集的视频帧图像以图像组为单位进行编码得到的,该目标时间窗包括接收到该触发操作的时刻;基于该静态照片和该至少一个图像组视频帧序列,合成动态照片。
本公开一些实施例,在接收到该触发操作之前,该至少一个图像组视频帧序列存储在目标缓存中;该获取至少一个图像组视频帧序列,包括:将该至少一个图像组视频帧序列从该目标缓存中移动至视频文件中;该基于该静态照片和该至少一个图像组视频帧序列,合成动态照片,包括:基于该静态照片和该视频文件中存储的该至少一个图像组视频帧序列,合成该动态照片。
本公开一些实施例,该至少一个图像组视频帧序列为图像组队列中的图像组视频帧序列;该基于该静态照片和该至少一个图像组视频帧序列,合成动态照片之前,该方法还包括:在保存至该图像组队列的当前帧编码图像距该图像组队列中的第二个图像组视频帧序列的首帧的时间间隔大于目标时长的情况下,删除该图像组队列中的第一个图像组视频帧序列;该获取至少一个图像组视频帧序列,包括:获取该图像组队列中的全部图像组视频帧序列,得到该至少一个图像组视频帧序列;其中,该目标时间窗的时长为该图像组队列对应的时长,该图像组队列对应的时长大于该目标时长,且小于或等于该目标时长与第一时长之和,第一时长为该图像组队列中的第一个图像组视频帧序列对应的时长。
本公开一些实施例,该基于该静态照片和该至少一个图像组视频帧序列,合成动态照片之前,该方法还包括:采集当前帧图像,该当前帧图像为编码后保存至该图像组队列中的任一帧图像;在该当前帧图像为I帧的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列;在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数大于或等于目标帧数的情况下,对该当前帧图像进行帧内编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列;在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数小于该目标帧数的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该最后一个图像组视频帧序列的一帧,保存至该图像组队列;其中,该目标帧数对应的时长小于该目标时长。
本公开一些实施例,该基于该静态照片和该至少一个图像组视频帧序列,合成动态照片,包括:将该静态照片作为封面,与该至少一个图像组视频帧序列合成为该动态照片。
本公开一些实施例,该基于该静态照片和该至少一个图像组视频帧序列,合成动态照片,包括:展示多张候选图像,该多张候选图像包括该静态照片,该多张候选图像中除该静态照片之外的候选图像为该至少一个图像组视频帧序列中的图片;响应于对该多张候选图像中的目标候选图像的选择操作,将该目标候选图像作为封面,与该至少一个图像组视频帧序列合成为该动态照片。
本公开实施例的第二方面,提供一种动态照片拍摄装置,该装置包括:拍摄模块,用于响应于接收到的对拍摄控件的触发操作,拍摄静态照片;获取模块,用于获取至少一个图像组视频帧序列,该至少一个图像组视频帧序列为对目标时间窗内采集的视频帧图像以图像组为单位进行编码得到的,该目标时间窗包括接收到该触发操作的时刻;合成模块,用于基于该静态照片和该至少一个图像组视频帧序列,合成动态照片。
本公开一些实施例,在接收到该触发操作之前,该至少一个图像组视频帧序列存储在目标缓存中;该获取模块,具体用于将该至少一个图像组视频帧序列从该目标缓存中移动至视频文件中;该合成模块,具体用于基于该静态照片和该视频文件中存储的该至少一个图像组视频帧序列,合成该动态照片。
本公开一些实施例,该至少一个图像组视频帧序列为图像组队列中的图像组视频帧序列;该装置还包括:删除模块,用于在基于该静态照片和该至少一个图像组视频帧序列,合成动态照片之前,在保存至该图像组队列的当前帧编码图像距该图像组队列中的第二个图像组视频帧序列的首帧的时间间隔大于目标时长的情况下,删除该图像组队列中的第一个图像组视频帧序列;该获取模块,具体用于获取该图像组队列中的全部图像组视频帧序列,得到该至少一个图像组视频帧序列;其中,该目标时间窗的时长为该图像组队列对应的时长,该图像组队列对应的时长大于该目标时长,且小于或等于该目标时长与第一时长之和,第一时长为该图像组队列中的第一个图像组视频帧序列对应的时长。
本公开一些实施例,该装置还包括:采集模块,用于在基于该静态照片和该至少一个图像组视频帧序列,合成动态照片之前,采集当前帧图像,该当前帧图像为编码后保存至该图像组队列中的任一帧图像;编码并保存模块,用于在该当前帧图像为I帧的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列;在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数大于或等于目标帧数的情况下,对该当前帧图像进行帧内编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列;在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数小于该目标帧数的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该最后一个图像组视频帧序列的一帧,保存至该图像组队列;其中,该目标帧数对应的时长小于该目标时长。
本公开一些实施例,该合成模块,具体用于将该静态照片作为封面,与该至少一个图像组视频帧序列合成为该动态照片。
本公开一些实施例,该合成模块,具体用于展示多张候选图像,该多张候选图像包括该静态照片,该多张候选图像中除该静态照片之外的候选图像为该至少一个图像组视频帧序列中的图片;响应于对该多张候选图像中的目标候选图像的选择操作,将该目标候选图像作为封面,与该至少一个图像组视频帧序列合成为该动态照片。
本公开实施例的第三方面,提供一种电子设备,该电子设备包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的动态照片拍摄方法。
本公开实施例的第四方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的动态照片拍摄方法。
本公开实施例的第五方面,提供了一种计算机程序产品,其中,该计算机程序产品包括计算机程序,当该计算机程序产品在处理器上运行时,使得处理器执行该计算机程序,实现如第一方面所述的动态照片拍摄本公开实施例的第六方面,提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序指令,实现如第一方面所述的动态照片拍摄方法。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的动态照片拍摄方法的流程示意图之一;
图2为本公开实施例提供的图像组队列的示意图之一;
图3为本公开实施例提供的图像组队列的示意图之二;
图4为本公开实施例提供的动态照片拍摄方法的流程示意图之二;
图5为本公开实施例提供的一种动态照片拍摄装置的结构框图;
图6为本公开实施例提供的一种电子设备的结构框图。
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。
本公开的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
本公开实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等;本公开实施例不作具体限定。
如上文所述,动态照片应用越来越广泛。然而,由于动态照片中包括照片拍摄前的画面,且电子设备无法预知用户何时按下拍摄控件拍摄照片,因此在电子设备进入动态拍照模式时,电子设备就需要不断将相机采集的实时画面缓存至视频文件中,当用户按下拍摄控件的时刻距电子设备进入动态拍照模式的时刻的差值较大时,电子设备就会在拍摄静态照片之前(或拍摄静态照片前后)在视频文件中缓存大量的视频帧图像,占用大量内存。
本公开实施例提供的动态照片拍摄方法的执行主体可以为上述的电子设备(包括移动电子设备和非移动电子设备),也可以为该电子设备中能够实现该动态照片拍摄方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本公开实施例不作限定。
下面结合附图,通过具体的实施例及其应用场景对本公开实施例提供的动态照片拍摄方法进行详细地说明。
如图1所示,本公开实施例提供一种动态照片拍摄方法,该方法可以包括下述的步骤101至步骤103。
101、响应于接收到的对拍摄控件的触发操作,拍摄静态照片。
可以理解,在执行本公开实施例提供的动态照片拍摄方法之前,已启动电子设备的摄像头,且已开启动态拍摄模式。
其中,接收到的对拍摄控件的触发操作即触发拍照的操作。拍摄控件可以为快门键等用于触发拍照操作的控件。
其中,对拍摄控件的触发操作可以包括下述任一种方式:用户可以通过单击电子设备的触摸屏幕上显示的拍摄控件组件触发拍摄控件;用户可以通过声控或悬空手势等非接触方式触发拍摄控件;用户可以通过按压电子设备上的物理按键或者组合物理按键触发拍摄控件;用户可以通过与电子设备连接的控制设备触发拍摄控件(例如:电子设备通过USB接口与自拍杆连接,自拍杆上有物理按键,能够控制电子设备拍照;又如,电子设备通过USB接口与架式拍摄杆连接,架式拍摄杆与无线遥控器连接,可通过无线遥控器控制电子设备拍照)。
102、获取至少一个图像组视频帧序列。
其中,该至少一个图像组视频帧序列为对目标时间窗内采集的视频帧图像以图像组为单位进行编码得到的,该目标时间窗包括接收到该触发操作的时刻。
本公开一些实施例中,接收到该触发操作的时刻可以为目标时间窗内的任意时刻,具体可以根据实际情况确定。
示例性地,目标时间窗的结束时刻可以为接收到该触发操作的时刻,目标时间窗的起始时刻可以为接收到该触发操作的时刻,目标时间窗的中间时刻包括接收到该触发操作的时刻。
本公开一些实施例中,在目标时间窗的结束时刻为接收到该触发操作的时刻的情况下,在接收到该触发操作之前电子设备实时采集视频帧图像,并对采集到的视频帧图像进行编码处理。
本公开一些实施例中,在目标时间窗的起始时刻为接收到该触发操作的时刻的情况下,在接收到该触发操作之后电子设备实时采集视频帧图像,并对采集到的视频帧图像进行编码处理。
本公开一些实施例中,在目标时间窗的中间时刻包括接收到该触发操作的时刻的情况下,在接收到该触发操作之前电子设备实时采集视频帧图像,并对采集到的视频帧图像进行编码处理,在接收到该触发操作之后电子设备仍然实时采集一段时间的视频帧图像,并对采集到的视频帧图像进行编码处理。
本公开一些实施例中,目标时间窗的起始时刻、结束时刻和时长等均可以根据实际情况确定,此处不做限定。
本公开一些实施例中,目标时间窗可以为时长为定长的时间窗,也可以为时长跟随实际采集的视频帧图像的变化而变化的时间窗,具体可以根据实际情况确定,此处不做限定。
本公开一些实施例中,电子设备可以对采集的视频帧图像进行实时编码,即采集一帧视频帧图像编码该一帧视频帧图像;电子设备也可以采集预设帧数的视频帧图像后,再对预设帧数的视频帧图像进行编码处理;具体根据实际情况确定,此处不做限定。
其中,图像组为也称画面组(Group of Pictures,GOP),一个图像组就是一组连续的画面。一个图像组的第一帧图像必须为I帧,这样就能保证图像组不需要参考其他图像,可以独立解码。
其中,至少一个图像组视频帧序列中的每个图像组视频帧序列的首帧均为I帧。
本公开实施例中,由于至少一个图像组视频帧序列的首帧为I帧,因此在基于静态照片和至少一个图像组视频帧序列合成动态照片时,动态照片的首帧即可以为至少一个图像组视频帧序列的首帧,进而可以保证拍摄文件(缓存序列帧,即至少一个图像组视频帧序列)首帧与最终产物(实际生成视频帧首帧,即动态照片)首帧一致,可以避免因拍摄文件与最终产物首帧不一致而带来的查找(seek)耗时和二次编码的耗时。
可以理解,若用于合成动态照片的目标视频帧序列的首帧不是I帧,则目标视频帧序列的首帧至第一个I帧之间的视频帧无法独立进行解码,因此如果将目标视频帧序列的第一个I帧作为动态照片的首帧,则需要在目标视频帧序列中查找第一个I帧,然后删除目标视频帧序列中第一个I帧之前的视频帧序列,并基于删除后的视频帧序列与静态照片生成动态照片,如此会增加查找第一个I帧的额外耗时;如果将目标视频帧序列的首帧作为动态照片的首帧,则需要查找目标视频帧序列之前的第一个I帧,然后至少需要基于目标视频帧序列之前的第一个I帧对目标视频帧序列的首帧至第一个I帧之间的视频帧进行解码,然后对解码后的视频帧序重新进行编码,如此不仅增加了查找目标视频帧序列之前的第一个I帧的额外耗时,还增加了二次编码的额外耗时。
103、基于该静态照片和该至少一个图像组视频帧序列,合成动态照片。
其中,该动态照片包括封面图片和目标视频片段,封面图片可以为静态照片,也可以为目标视频片段中的任意一帧视频图像,具体可以根据实际情况确定,此处不做限定。
本公开实施例中,通过对拍摄静态照片之前(或拍摄静态照片前后)采集的目标时间窗内的视频帧图像以图像组为单位进行编码压缩处理,得到至少一个图像组视频帧序列,然后基于静态照片和该至少一个图像组视频帧序列,合成动态照片,一方面,可以降低动态拍照模式下缓存的视频帧图像的内存占用量;另一方面,可以保证拍摄文件(缓存序列帧,即至少一个图像组视频帧序列)首帧与最终产物(实际生成视频帧,即动态照片)首帧一致,可以避免因拍摄文件与最终产物首帧不一致而带来的查找耗时和二次编码的耗时。
本公开一些实施例,在接收到该触发操作之前,该至少一个图像组视频帧序列存储在目标缓存中;上述步骤102具体可以通过下述步骤102a实现,上述103具体可以通过下述步骤103a实现。
102a、将该至少一个图像组视频帧序列从该目标缓存中移动至视频文件中。
可以理解,将至少一个图像组视频帧序列从目标缓存中复制到视频文件中,删除目标缓存中的至少一个图像组视频帧序列。
103a、基于该静态照片和该视频文件中存储的该至少一个图像组视频帧序列,合成该动态照片。
本公开实施例中,在动态拍照模式下,将采集的视频帧图像编码之后的至少一个图像组视频帧序列存储在目标缓存中,而不存储在视频文件中,接收到对拍摄控件的触发操作之后,将该至少一个图像组视频帧序列从该目标缓存中移动至视频文件中,相比于将至少一个图像组视频帧序列存储在文件中,可以减少文件输入输出(IO)操作,即减少文件读写操作,提升系统性能。而且将采集的视频帧图像进行编码之后存储在目标缓存中,而不是存储在草稿箱磁盘中,而仅将最终生成的视频文件(动态照片)保存在草稿箱磁盘中,可以降低草稿箱磁盘占用量。
本公开一些实施例,该至少一个图像组视频帧序列为图像组队列中的图像组视频帧序列。
本公开一些实施例,在上述步骤103之前,本公开实施例提供的动态照片拍摄方法还可以包括下述的步骤104;上述步骤102具体可以通过下述步骤102b实现。
104、在保存至该图像组队列的当前帧编码图像距该图像组队列中的第二个图像组视频帧序列的首帧的时间间隔大于目标时长的情况下,删除该图像组队列中的第一个图像组视频帧序列。
可以理解,在动态拍照模式下,不断对采集的视频帧进行编码,缓存到内存的一个队列(图像组队列)中,并以滑动窗口(目标时长)的形式,不断丢弃过时的图像组视频帧序列(在保存至该图像组队列的当前帧编码图像距该图像组队列中的第二个图像组视频帧序列的首帧的时间间隔大于目标时长的情况下,第一个图像组视频帧序列为过时的图像组视频帧序列),保持内存中一直存在最近一段时间内的编码后的视频帧序列(在保存至该图像组队列的当前帧编码图像距该图像组队列中的第二个图像组视频帧序列的首帧的时间间隔小于或等于目标时长的情况下,图像组队列中保存的全部图像组视频帧序列均为未过时的图像组视频帧序列,均可以用于合成动态照片),如此,可以进一步降低内存占用。
其中,目标时长可以根据实际情况确定,此处不做限定。
102b、获取该图像组队列中的全部图像组视频帧序列,得到该至少一个图像组视频帧序列。
其中,该目标时间窗的时长为该图像组队列对应的时长,该图像组队列对应的时长大于该目标时长,且小于或等于该目标时长与第一时长之和,第一时长为该图像组队列中的第一个图像组视频帧序列对应的时长。
其中,图像组队列对应的时长即为图像组队列中存储的全部的图像组视频帧序列的时长之和。图像组队列中的第一个图像组视频帧序列对应的时长为图像组队列中的第一个图像组视频帧序列包括的全部视频帧的时长之和。若图像组队列中每个图像组视频帧序列包括的视频帧的数量不同,则第一时长是跟随图像组队列中的第一个图像组视频帧序列对应的时长的变化而变化的。
可以理解,由于图像组队列中存储的视频帧序列的数量是跟随图像组队列中的图像组视频帧序列的数量,以及每个图像组视频帧序列包括的视频帧的数量在不断变化的,不是一个固定的数值,因此目标时间窗不是一个固定值,是跟随图像组队列对应的时长变化的。
示例性地,如图2所示,在图像组队列中的当前帧编码图像距该图像组队列中的GOP 2的首帧的时间间隔大于目标时长(S)的情况下,删除该图像组队列中的GOP 1,若此时获取至少一个图像组视频帧序列,则至少一个图像组视频帧序列为GOP 2至GOP n。如图3所示,在图像组队列中的当前帧编码图像距GOP 2的首帧的时间间隔小于目标时长(S)的情况下,保持该图像组队列中的图像组视频帧序列不变,若此时获取至少一个图像组视频帧序列,则至少一个图像组视频帧序列为GOP 1至GOP n。结合图2和图3可知,最终拍摄产物(动态照片)为以张封面图和时间长度为T秒的视频,其中,T大于S,且小于或等于S与GOP 1对应的时长之和。
本公开实施例中,由于图像组队列中不存在过时的图像组视频帧序列,始终保持存储的都是最近一段时间内的编码后的视频帧序列,因此,在需要生成动态照片时,可以直接获取图像组队列中的全部图像组视频帧序列,无需从图像组队列中选择需要用于合成动态照片的视频帧序列,从而简化了生成动态照片的过程,降低了耗时,提高了生成动态照片的效率。
本公开一些实施例中,若目标时间窗的结束时刻为接收到触发操作的时刻(即触发动态拍照的时刻),静态照片为动态照片的封面,则响应于接收到的触发操作,可以获取图像组队列中的全部图像组视频帧序列作为至少一个图像组视频帧序列,与静态照片合成动态照片,相比于在接收到触发操作之后,再延迟拍摄时间,采集视频帧图像进行编码并存储到图像组队列,直至得到需要的至少一个图像组视频帧序列,才合成动态照片,可以简化拍摄动态照片的流程,降低耗时,提高拍摄效率。
本公开一些实施例,在上述步骤103之前,本公开实施例提供的动态照片拍摄方法还可以包括下述的步骤105至步骤108。
105、采集当前帧图像。
其中,该当前帧图像为编码后保存至该图像组队列中的任一帧图像。当前帧图像为在动态拍照模式对应的预设帧率下,采集的任意一张视频帧图像。
106、在该当前帧图像为I帧的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列。
可以理解,当前帧图像为I帧,说明当前帧图像与图像组队列的最后一个图像组视频帧序列已不是一组连续的画面,因此,需要将当前帧图像进行帧内编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列。
107、在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数大于或等于目标帧数的情况下,对该当前帧图像进行帧内编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列。
108、在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数小于该目标帧数的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该最后一个图像组视频帧序列的一帧,保存至该图像组队列。
其中,该目标帧数对应的时长小于该目标时长。
可以理解,为了使得图像组队列中的每个图像组视频帧序列包括的视频帧数相差不是太大,而且可以使得最终合成动态照片的至少一个图像组视频帧序列的帧数保持在一定帧数范围内,本公开实施例中,在当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数大于或等于目标帧数的情况下,将当前帧图像强制为I帧,也可以说是,请求当前帧图像为I帧,并对当前帧图像进行帧内编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列;在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数小于该目标帧数的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该最后一个图像组视频帧序列的一帧,保存至该图像组队列。
可以理解,在进入动态拍照模式后,电子设备重复执行上述步骤105至步骤108和步骤104,直至获取至少一个图像组视频帧序列为止,停止执行上述步骤105至步骤108和步骤104。
示例性地,以目标时间窗的结束时刻为接收到对拍摄控件的触发操作的时刻,动态照片的封面为静态照片为例,如图4所示,为拍摄动态照片的过程,在进入动态拍照模式,且未接收到触发操作之前,摄像头以预设采集帧率采集当前帧图像,对当前帧图像进行编码得到当前帧编码图像,将当前帧编码图像缓存到内存(目标缓存)的一个队列(图像组队列)中,并以滑动窗口(目标时长)的形式,不断丢弃过时的图像组视频帧序列,保持内存中一直存在最近一段时间内的编码后的视频帧序列。在接收到触发操作时,停止采集视频帧图像,拍摄静态图片,将内存中缓存的编码后的至少一个图像组视频帧序列再写入到视频文件(Mp4file)中,将拍摄的静态图片作为封面,并将至少一个图像组视频帧序列链接至静态图片的尾部,共同组合成动态照片。
本公开一些实施例,在该当前帧图像为I帧的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列;在该当前帧图像为非I帧的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该最后一个图像组视频帧序列的一帧,保存至该图像组队列;具体可以根据实际情况确定,此处不做限定。
本公开一些实施例,上述103具体可以通过下述步骤103b实现。
103b、将该静态照片作为封面,与该至少一个图像组视频帧序列合成为该动态照片。
本公开实施例中,将静态照片作为封面,一方面,可以简化拍摄动态照片的过程,提高拍摄效率,另一方面,由于静态照片是响应于接收到的触发操作拍摄的,静态照片的拍摄效果会比较好,也是用户比较满意的照片,可以提高用户对动态照片的满意度。
本公开一些实施例,上述103具体可以通过下述步骤103c和步骤103d实现。
103c、展示多张候选图像。
其中,该多张候选图像包括该静态照片,该多张候选图像中除该静态照片之外的候选图像为该至少一个图像组视频帧序列中的图片。
本公开一些实施例中,在对当前帧图像进行编码前,确定当前帧图像是否为候选图像。示例性地,可以每间隔预设时长将采集的一帧视频帧图像作为一张候选图像,也可以根据采集的一帧视频帧图像的图像内容判断该帧视频帧图像是否作为候选图像,具体可以根据实际情况确定,此处不做限定。
103d、响应于对该多张候选图像中的目标候选图像的选择操作,将该目标候选图像作为封面,与该至少一个图像组视频帧序列合成为该动态照片。
本公开实施例中,通过展示多张候选图像,可以使得用户选择更满意的候选图像作为封面,而且可以提高人机互动体验。
图5为本公开实施例示出的一种动态照片拍摄装置的结构框图,如图5所示,包括:拍摄模块501,用于响应于接收到的对拍摄控件的触发操作,拍摄静态照片;获取模块502,用于获取至少一个图像组视频帧序列,该至少一个图像组视频帧序列为对目标时间窗内采集的视频帧图像以图像组为单位进行编码得到的,该目标时间窗包括接收到该触发操作的时刻;合成模块503,用于基于该静态照片和该至少一个图像组视频帧序列,合成动态照片。
本公开一些实施例,在接收到该触发操作之前,该至少一个图像组视频帧序列存储在目标缓存中;该获取模块502,具体用于将该至少一个图像组视频帧序列从该目标缓存中移动至视频文件中;该合成模块,具体用于基于该静态照片和该视频文件中存储的该至少一个图像组视频帧序列,合成该动态照片。
本公开一些实施例,该至少一个图像组视频帧序列为图像组队列中的图像组视频帧序列;该装置还包括:删除模块,用于在基于该静态照片和该至少一个图像组视频帧序列,合成动态照片之前,在保存至该图像组队列的当前帧编码图像距该图像组队列中的第二个图像组视频帧序列的首帧的时间间隔大于目标时长的情况下,删除该图像组队列中的第一个图像组视频帧序列;该获取模块502,具体用于获取该图像组队列中的全部图像组视频帧序列,得到该至少一个图像组视频帧序列;其中,该目标时间窗的时长为该图像组队列对应的时长,该图像组队列对应的时长大于该目标时长,且小于或等于该目标时长与第一时长之和,第一时长为该图像组队列中的第一个图像组视频帧序列对应的时长。
本公开一些实施例,该装置还包括:采集模块,用于在基于该静态照片和该至少一个图像组视频帧序列,合成动态照片之前,采集当前帧图像,该当前帧图像为编码后保存至该图像组队列中的任一帧图像;编码并保存模块,用于在该当前帧图像为I帧的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列;在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数大于或等于目标帧数的情况下,对该当前帧图像进行帧内编码得到当前帧编码图像,并将当前帧编码图像作为该图像组队列的下一个图像组视频帧序列的首帧,保存至该图像组队列;在该当前帧图像为非I帧,且该图像组队列中的最后一个图像组视频帧序列的帧数小于该目标帧数的情况下,对该当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为该最后一个图像组视频帧序列的一帧,保存至该图像组队列;其中,该目标帧数对应的时长小于该目标时长。
本公开一些实施例,该合成模块503,具体用于将该静态照片作为封面,与该至少一个图像组视频帧序列合成为该动态照片。
本公开一些实施例,该合成模块503,具体用于展示多张候选图像,该多张候选图像包括该静态照片,该多张候选图像中除该静态照片之外的候选图像为该至少一个图像组视频帧序列中的图片;响应于对该多张候选图像中的目标候选图像的选择操作,将该目标候选图像作为封面,与该至少一个图像组视频帧序列合成为该动态照片。
本公开实施例中,各模块可以实现上述方法实施例提供的动态照片拍摄方法,且能达到相同的技术效果,为避免重复,这里不再赘述。
图6为本公开实施例提供的一种电子设备的结构示意图,用于对实现本公开实施例中任意动态照片拍摄方法的电子设备进行示例性说明,不应理解为对本公开实施例的具体限定。
如图6所示,电子设备600可以包括处理器(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理器601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理器601执行时,可以执行本公开实施例提供的任意动态照片拍摄方法中限定的功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(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 (10)
- 一种动态照片拍摄方法,其中所述方法包括:响应于接收到的对拍摄控件的触发操作,拍摄静态照片;获取至少一个图像组视频帧序列,所述至少一个图像组视频帧序列为对目标时间窗内采集的视频帧图像以图像组为单位进行编码得到的,所述目标时间窗包括接收到所述触发操作的时刻;基于所述静态照片和所述至少一个图像组视频帧序列,合成动态照片。
- 根据权利要求1所述的方法,其中在接收到所述触发操作之前,所述至少一个图像组视频帧序列存储在目标缓存中;所述获取至少一个图像组视频帧序列,包括:将所述至少一个图像组视频帧序列从所述目标缓存中移动至视频文件中;所述基于所述静态照片和所述至少一个图像组视频帧序列,合成动态照片,包括:基于所述静态照片和所述视频文件中存储的所述至少一个图像组视频帧序列,合成所述动态照片。
- 根据权利要求1所述的方法,其中所述至少一个图像组视频帧序列为图像组队列中的图像组视频帧序列;所述基于所述静态照片和所述至少一个图像组视频帧序列,合成动态照片之前,所述方法还包括:在保存至所述图像组队列的当前帧编码图像距所述图像组队列中的第二个图像组视频帧序列的首帧的时间间隔大于目标时长的情况下,删除所述图像组队列中的第一个图像组视频帧序列;所述获取至少一个图像组视频帧序列,包括:获取所述图像组队列中的全部图像组视频帧序列,得到所述至少一个图像组视频帧序列;其中,所述目标时间窗的时长为所述图像组队列对应的时长,所述图像组队列对应的时长大于所述目标时长,且小于或等于所述目标时长与第一时长之和,所述第一时长为所述图像组队列中的第一个图像组视频帧序列对应的时长。
- 根据权利要求3所述的方法,其中所述基于所述静态照片和所述至少一个图像组视频帧序列,合成动态照片之前,所述方法还包括:采集当前帧图像,所述当前帧图像为编码后保存至所述图像组队列中的任一帧图像;在所述当前帧图像为I帧的情况下,对所述当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为所述图像组队列的下一个图像组视频帧序列的首帧,保存至所述图像组队列;在所述当前帧图像为非I帧,且所述图像组队列中的最后一个图像组视频帧序列的帧数大于或等于目标帧数的情况下,对所述当前帧图像进行帧内编码得到当前帧编码图像,并将当前帧编码图像作为所述图像组队列的下一个图像组视频帧序列的首帧,保存至所述图像组队列;在所述当前帧图像为非I帧,且所述图像组队列中的最后一个图像组视频帧序列的帧数小于所述目标帧数的情况下,对所述当前帧图像进行编码得到当前帧编码图像,并将当前帧编码图像作为所述最后一个图像组视频帧序列的一帧,保存至所述图像组队列;其中,所述目标帧数对应的时长小于所述目标时长。
- 根据权利要求1至4中任一项所述的方法,其中所述基于所述静态照片和所述至少一个图像组视频帧序列,合成动态照片,包括:将所述静态照片作为封面,与所述至少一个图像组视频帧序列合成为所述动态照片。
- 根据权利要求1至4中任一项所述的方法,其中所述基于所述静态照片和所述至少一个图像组视频帧序列,合成动态照片,包括:展示多张候选图像,所述多张候选图像包括所述静态照片,所述多张候选图像中除所述静态照片之外的候选图像为所述至少一个图像组视频帧序列中的图片;响应于对所述多张候选图像中的目标候选图像的选择操作,将所述目标候选图像作为封面,与所述至少一个图像组视频帧序列合成为所述动态照片。
- 一种动态照片拍摄装置,其中所述装置包括:拍摄模块,用于响应于接收到的对拍摄控件的触发操作,拍摄静态照片;获取模块,用于获取至少一个图像组视频帧序列,所述至少一个图像组视频帧序列为对目标时间窗内采集的视频帧图像以图像组为单位进行编码得到的,所述目标时间窗包括接收到所述触发操作的时刻;合成模块,用于基于所述静态照片和所述至少一个图像组视频帧序列,合成动态照片。
- 一种电子设备,其中所述设备包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行权利要求1至6中任一项所述的动态照片拍摄方法。
- 一种计算机可读存储介质,其中所述存储介质上存储有计算机程序,计算机程序被处理器执行时实现权利要求1至6中任一项所述的动态照片拍摄方法。
- 一种计算机程序产品,其中所述计算机程序产品上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的动态照片拍摄方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410382805.0A CN120730164A (zh) | 2024-03-29 | 2024-03-29 | 动态照片拍摄方法、装置、设备、存储介质及程序产品 |
| CN202410382805.0 | 2024-03-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025200510A1 true WO2025200510A1 (zh) | 2025-10-02 |
Family
ID=97168214
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/134336 Pending WO2025200510A1 (zh) | 2024-03-29 | 2024-11-25 | 动态照片拍摄方法、装置、设备、存储介质及程序产品 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN120730164A (zh) |
| WO (1) | WO2025200510A1 (zh) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1946079A (zh) * | 2006-11-02 | 2007-04-11 | 北京大学 | 一种网络带宽自适应的流媒体传输选择性丢帧方法 |
| CN110049336A (zh) * | 2019-05-22 | 2019-07-23 | 腾讯科技(深圳)有限公司 | 视频编码方法和视频解码方法 |
| CN111034187A (zh) * | 2018-09-03 | 2020-04-17 | 深圳市大疆创新科技有限公司 | 动态图像的生成方法、装置、可移动平台和存储介质 |
| CN111464761A (zh) * | 2020-04-07 | 2020-07-28 | 北京字节跳动网络技术有限公司 | 视频的处理方法、装置、电子设备及计算机可读存储介质 |
| CN112565822A (zh) * | 2020-11-23 | 2021-03-26 | 西安万像电子科技有限公司 | 一种图像处理方法、装置、存储介质及电子设备 |
| CN115914498A (zh) * | 2021-09-30 | 2023-04-04 | 北京字节跳动网络技术有限公司 | 视频处理方法、装置、设备和存储介质 |
| EP4171002A1 (en) * | 2021-09-07 | 2023-04-26 | Honor Device Co., Ltd. | Method for image snapshot in video recording, and electronic device |
| CN117714845A (zh) * | 2023-05-24 | 2024-03-15 | 荣耀终端有限公司 | 电子设备及其拍摄方法 |
-
2024
- 2024-03-29 CN CN202410382805.0A patent/CN120730164A/zh active Pending
- 2024-11-25 WO PCT/CN2024/134336 patent/WO2025200510A1/zh active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1946079A (zh) * | 2006-11-02 | 2007-04-11 | 北京大学 | 一种网络带宽自适应的流媒体传输选择性丢帧方法 |
| CN111034187A (zh) * | 2018-09-03 | 2020-04-17 | 深圳市大疆创新科技有限公司 | 动态图像的生成方法、装置、可移动平台和存储介质 |
| CN110049336A (zh) * | 2019-05-22 | 2019-07-23 | 腾讯科技(深圳)有限公司 | 视频编码方法和视频解码方法 |
| CN111464761A (zh) * | 2020-04-07 | 2020-07-28 | 北京字节跳动网络技术有限公司 | 视频的处理方法、装置、电子设备及计算机可读存储介质 |
| US20220377259A1 (en) * | 2020-04-07 | 2022-11-24 | Beijing Bytedance Network Technology Co., Ltd. | Video processing method and apparatus, electronic device, and non-transitory computer readable storage medium |
| CN112565822A (zh) * | 2020-11-23 | 2021-03-26 | 西安万像电子科技有限公司 | 一种图像处理方法、装置、存储介质及电子设备 |
| EP4171002A1 (en) * | 2021-09-07 | 2023-04-26 | Honor Device Co., Ltd. | Method for image snapshot in video recording, and electronic device |
| CN115914498A (zh) * | 2021-09-30 | 2023-04-04 | 北京字节跳动网络技术有限公司 | 视频处理方法、装置、设备和存储介质 |
| CN117714845A (zh) * | 2023-05-24 | 2024-03-15 | 荣耀终端有限公司 | 电子设备及其拍摄方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120730164A (zh) | 2025-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108616696B (zh) | 一种视频拍摄方法、装置、终端设备及存储介质 | |
| CN112165632B (zh) | 视频处理方法、装置及设备 | |
| WO2021031850A1 (zh) | 图像处理的方法、装置、电子设备及存储介质 | |
| CN109922372A (zh) | 视频数据处理方法及装置、电子设备和存储介质 | |
| US12368815B2 (en) | Video shooting method and apparatus, electronic device and storage medium | |
| CN112351222B (zh) | 图像特效处理方法、装置、电子设备和计算机可读存储介质 | |
| CN111669502A (zh) | 目标对象显示方法、装置及电子设备 | |
| WO2022135092A1 (zh) | 屏幕共享显示方法、装置、设备及存储介质 | |
| WO2021196994A1 (zh) | 编码的方法及装置、终端和存储介质 | |
| JP7739643B2 (ja) | マルチメディアデータ処理方法、装置、機器、記憶媒体及びプログラム製品 | |
| US12387760B2 (en) | Video generation method, apparatus, electronic device and storage medium | |
| CN104125388A (zh) | 一种拍摄并存储相片的方法和装置 | |
| WO2024222754A1 (zh) | 媒体内容发布方法、装置、设备及存储介质 | |
| CN114598815A (zh) | 一种拍摄方法、装置、电子设备和存储介质 | |
| CN116484050A (zh) | 对象推荐方法、装置和电子设备 | |
| CN110809166B (zh) | 视频数据处理方法、装置和电子设备 | |
| CN108322673A (zh) | 视频生成方法和视频生成装置 | |
| WO2026086877A1 (zh) | 图像内容的拍摄方法、装置、电子设备、存储介质和程序产品 | |
| CN113038010B (zh) | 视频处理方法、视频处理装置、存储介质与电子设备 | |
| CN112351221A (zh) | 图像特效处理方法、装置、电子设备和计算机可读存储介质 | |
| CN112291483B (zh) | 视频推送方法及系统、电子设备及可读存储介质 | |
| WO2025200510A1 (zh) | 动态照片拍摄方法、装置、设备、存储介质及程序产品 | |
| CN113473236A (zh) | 录屏视频的处理方法、装置、可读介质和电子设备 | |
| US20240163548A1 (en) | Method for displaying capturing interface, electronic device, and non-transitory computer-readable storage medium | |
| WO2024222310A1 (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: 24932613 Country of ref document: EP Kind code of ref document: A1 |