Shooting processing method, shooting processing device, storage medium and electronic equipment

By obtaining motion information during the dynamic shooting time period and filtering expected images, the problem of waste frames in dynamic shooting mode is solved, the quality and user experience of dynamic photos are improved, and storage space is saved.

CN118540573APending Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310157069.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

There are unnecessary frames in the dynamic photo mode, which causes screen jitter and frame recording in unexpected motion states, reducing the quality and user experience of dynamic photos.

Method used

By obtaining the motion information of the shooting device during the dynamic shooting period, the images in the expected motion state are filtered out from the collected multi-frame candidate images, the target video is generated, and the frames in the unexpected motion state are reduced.

Benefits of technology

It improves the quality and user experience of dynamic photos, reduces the number of frames and data volume of dynamic photos, and saves storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540573A
    Figure CN118540573A
Patent Text Reader

Abstract

The invention provides a shooting processing method and device, a storage medium and electronic equipment, and relates to the technical field of images. The method comprises the following steps: acquiring multiple frames of candidate images acquired by shooting equipment in a dynamic shooting time period in response to a dynamic shooting instruction, and motion information of the shooting equipment in the dynamic shooting time period; the dynamic shooting time period is a time period taking a triggering moment of the dynamic shooting instruction as a reference; based on the motion information of the shooting equipment in the dynamic shooting time period, screening out multiple frames of expected images collected by the shooting equipment in an expected motion state from the multiple frames of candidate images; and generating a target video according to the multiple frames of expected images. According to the invention, waste frames in the dynamic photographing mode are reduced, and the quality of the dynamic photo is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of imaging technology, and in particular to a shooting and processing method, a shooting and processing device, a computer-readable storage medium, and an electronic device. Background Art

[0002] With the development of imaging technology and electronic devices, some mobile phones and other shooting devices have a dynamic shooting mode. In this mode, users can take dynamic photos (live photos), which include videos of a short period of time before and after the photo is taken, making the photos appear "dynamic".

[0003] In related technologies, dynamic photo shooting mode often records some unnecessary frames, such as frames collected when the user raises and lowers his hand before and after clicking the shutter. These frames may have severe shaking, or the picture may not be the target that the user wants to shoot, and they are called "waste frames". The existence of waste frames will greatly reduce the quality of dynamic photos and affect the user's viewing experience. Summary of the invention

[0004] The present disclosure provides a shooting processing method, a shooting processing device, a computer-readable storage medium and an electronic device, so as to at least to some extent solve the problem of waste frames in a dynamic shooting mode in the related art.

[0005] According to a first aspect of the present disclosure, a shooting processing method is provided, comprising: obtaining a plurality of candidate image frames captured by a shooting device in a dynamic shooting time period in response to a dynamic shooting instruction, and motion information of the shooting device in the dynamic shooting time period; the dynamic shooting time period is a time period based on the triggering moment of the dynamic shooting instruction; based on the motion information of the shooting device in the dynamic shooting time period, screening out a plurality of expected images captured by the shooting device in an expected motion state from the plurality of candidate images; and generating a target video according to the plurality of expected image frames.

[0006] According to a second aspect of the present disclosure, a shooting and processing device is provided, comprising: a data acquisition module, configured to acquire a plurality of candidate frames of images captured by a shooting device in a dynamic shooting time period in response to a dynamic shooting instruction, and motion information of the shooting device in the dynamic shooting time period; the dynamic shooting time period is a time period based on the triggering moment of the dynamic shooting instruction; a frame screening module, configured to screen out a plurality of expected images captured by the shooting device in an expected motion state from the plurality of candidate frames based on the motion information of the shooting device in the dynamic shooting time period; and a video generation module, configured to generate a target video based on the plurality of expected images.

[0007] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the shooting and processing method of the first aspect and possible implementation methods thereof are implemented.

[0008] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the shooting processing method of the above-mentioned first aspect and its possible implementation method by executing the executable instructions.

[0009] The technical solution disclosed in this disclosure has the following beneficial effects:

[0010] On the one hand, among the multiple candidate image frames collected by the shooting device during the dynamic shooting time period, based on the processing of the motion information of the shooting device, the expected images that meet the expected motion state are screened out to generate the target video in the dynamic photo, thereby providing a frame selection mechanism for dynamic photos, which can reduce the frames in the dynamic photos in unexpected motion states (i.e., waste frames). In this way, when users watch dynamic photos, they can directly provide the pictures they want to see, improve the quality of dynamic photos and the user's viewing experience, and achieve a more accurate human-computer interaction experience. On the other hand, this solution reduces the number of frames of dynamic photos, reduces the amount of data for dynamic photos, and saves storage space. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A system architecture diagram showing the operating environment of the exemplary embodiment;

[0012] Figure 2 A flowchart showing a photographing processing method in this exemplary embodiment is shown;

[0013] Figure 3 A flowchart for determining an expected image in this exemplary embodiment is shown;

[0014] Figure 4 A flowchart for determining an expected shooting sub-time period in this exemplary embodiment is shown;

[0015] Figure 5 A flowchart of dividing sub-time periods in this exemplary embodiment is shown;

[0016] Figure 6 A flowchart showing another way of dividing sub-time periods in this exemplary embodiment is shown;

[0017] Figure 7 A schematic flowchart showing a photographing processing method in this exemplary embodiment;

[0018] Figure 8A schematic diagram showing the structure of a photographing and processing device in this exemplary embodiment is shown;

[0019] Fig. 9 A schematic structural diagram of an electronic device in this exemplary embodiment is shown. DETAILED DESCRIPTION

[0020] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings.

[0021] The accompanying drawings are schematic diagrams of the present disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the accompanying drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in hardware modules or integrated circuits, or in networks, processors or microcontrollers. The embodiments can be implemented in various forms and should not be construed as being limited to the examples set forth herein. The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the description below, many specific details are provided to provide a full description of the embodiments of the present disclosure. However, those skilled in the art should appreciate that one or more specific details may be omitted when implementing the technical solution of the present disclosure, or one or more specific details may be replaced by other methods, components, devices, steps, etc.

[0022] The inventors have found that most of the implementation schemes of the relevant dynamic camera mode focus on how to obtain a video. For example, some schemes synthesize a video by taking multiple photos, but none of them will filter the image frames of the video, so there may be waste frames in the video. For example, in a common scenario, when a user takes a photo, he will make a series of actions such as raising the hand holding the mobile phone, clicking the shutter, and putting the hand down. The dynamic camera mode will record multiple frames of images in the process, including images when the hand is raised and when the hand is put down. These images are not collected when aiming at the target that the user wants to shoot. The image content may not be the information that the user wants to record, and there may also be problems with unclear picture jitter. It can be seen that the existence of waste frames affects the presentation effect of the dynamic camera mode.

[0023] In view of the above problems, the exemplary embodiment of the present disclosure first provides a shooting processing method. Figure 1 The system architecture of the operating environment of this exemplary embodiment will be described.

[0024] refer to Figure 1As shown, the system architecture 100 may include a shooting device 110 and a processing device 120. The shooting device 110 may be a terminal device with a shooting function, such as a mobile phone, a camera, a tablet computer, a smart wearable device, a drone, a car, etc. The processing device 120 is used to perform shooting processing on the shooting device 110, such as a control terminal of a smart wearable device or a drone, or a service terminal that provides related services. The shooting device 110 and the processing device 120 may be connected via a wired or wireless communication link to exchange data.

[0025] In one embodiment, the shooting device 110 can independently implement the shooting and shooting processing processes, and the shooting processing method in this exemplary embodiment can be executed by the shooting device 110. For example, the shooting device 110 is a mobile phone, and the user uses the mobile phone to turn on the dynamic shooting mode, and the mobile phone executes the shooting processing method to obtain the target image and the target video.

[0026] In one implementation, the shooting processing method in this exemplary implementation may be executed by the processing device 120. For example, the shooting device 110 is a terminal, the processing device 120 is a server, and the terminal, when the dynamic shooting mode is turned on, collects multiple frames of candidate images, senses motion information through a sensor, and sends the candidate images, motion information, and other related information (such as shooting time information, etc.) to the server, and the server executes the shooting processing method to obtain the target image and target video, and feeds them back to the terminal.

[0027] As can be seen from the above, in this exemplary embodiment, the execution subject of the shooting and processing method may be the above-mentioned shooting device 110 or the processing device 120, and the present disclosure does not limit this.

[0028] Figure 2 The process of the shooting processing method is shown, which may include the following steps S210 to S230:

[0029] Step S210, acquiring multiple candidate image frames collected by the photographing device in a dynamic photographing time period in response to the dynamic photographing instruction, and motion information of the photographing device in the dynamic photographing time period; the dynamic photographing time period is a time period based on the triggering moment of the dynamic photographing instruction;

[0030] Step S220, based on the motion information of the shooting device in the dynamic shooting time period, screening out multiple frames of expected images captured by the shooting device in the expected motion state from the multiple frames of candidate images;

[0031] Step S230, generating a target video according to multiple frames of expected images.

[0032] based on Figure 2The method, on the one hand, among the multiple frames of candidate images collected by the shooting device within the dynamic shooting time period, based on the processing of the motion information of the shooting device, the expected images that meet the expected motion state are screened out to generate the target video in the dynamic photo, thereby providing a frame selection mechanism for dynamic photos, which can reduce the frames in the dynamic photos in the unexpected motion state (i.e., waste frames). In this way, when the user watches the dynamic photos, the pictures that the user wants to see can be directly provided, the quality of the dynamic photos and the user's viewing experience can be improved, and a more accurate human-computer interaction experience can be achieved. On the other hand, this solution reduces the number of frames of the dynamic photos, reduces the amount of data of the dynamic photos, and saves storage space.

[0033] Below Figure 2 Each step is described in detail.

[0034] refer to Figure 2 In step S210, multiple frames of candidate images captured by the shooting device in a dynamic shooting time period in response to a dynamic shooting instruction and motion information of the shooting device in the dynamic shooting time period are obtained; the dynamic shooting time period is a time period based on the triggering moment of the dynamic shooting instruction.

[0035] The dynamic photo shooting command is a photo shooting command for shooting dynamic photos. Dynamic photos can include a static image and a dynamic image (such as a video). When the user opens the dynamic photo, the static image can be seen. When a specific dynamic playback operation (such as long pressing the static image) is performed, the dynamic image can be triggered to play, or the dynamic image can be set to play automatically.

[0036] The dynamic photographing instruction may be a photographing instruction in a dynamic photographing mode (live mode, or live photographing mode). For example, the user may first select the dynamic photographing mode, and then perform operations such as clicking the shutter to trigger the dynamic photographing instruction, or set a delayed photographing time in the dynamic photographing mode, and the photographing device automatically triggers the dynamic photographing instruction when the delayed photographing time is reached. The dynamic photographing instruction may also be a photographing instruction triggered by a specific dynamic photographing operation in other photographing modes. For example, the user may perform specific operations such as long pressing or double-clicking the shutter to trigger the dynamic photographing instruction without selecting the dynamic photographing mode. It should be understood that the dynamic photographing instruction may also be triggered by operating an external component such as a processing device. The present disclosure does not limit the specific form of the dynamic photographing instruction.

[0037] The shooting device generally enters the preview state after turning on the shooting function. At this time, the camera of the shooting device is turned on, and the preview image is collected in real time and displayed in the user interface. The preview image can be cached, and the recording data can be collected in real time through the microphone and cached. The preview image and the recording data can be corresponded by a timestamp, such as one frame of preview image corresponds to one frame of recording data. After the shooting device detects the dynamic shooting instruction, it can obtain multiple frames of preview images collected in the dynamic shooting time period from the cached data as candidate images for subsequent generation of the target video. The dynamic shooting time period can be a period of time before and after the triggering moment of the dynamic shooting instruction. For example, the dynamic shooting time period can be extended backward for a specific duration with the triggering moment as the starting point, or it can be extended forward for a specific duration with the triggering moment as the end point. In one embodiment, the starting point of the dynamic shooting time period is the triggering moment minus the first preset duration, and the end point is the triggering moment plus the second preset duration. With t0 representing the triggering moment, Δt1 representing the first preset duration, and Δt2 representing the second preset duration, the dynamic shooting time period is [t0-Δt1, t0+Δt2]. The first preset time length and the second preset time length can be determined based on experience or specific shooting scenarios. For example, both can be 1.5s. When a dynamic shooting command is detected, the triggering moment of the dynamic shooting command is extended forwards and backwards by 1.5s respectively to form a dynamic shooting time period of 3s. The preview image with a timestamp within the dynamic shooting time period is selected from the cached preview images as a candidate image.

[0038] Of course, the shooting device can also shoot the target image at the triggering moment of the dynamic shooting instruction in response to the dynamic shooting instruction to record the image state of the shooting object at the triggering moment. The present disclosure does not limit the number of frames of the target image. Exemplarily, multiple frames of target images can be shot, which can be shot by different cameras or under different shooting parameters (such as different sensitivities). Multiple frames of target images can be synthesized into a frame of higher quality target image in subsequent processing. The target image or the processed target image can be used as the above-mentioned static image in the dynamic photo.

[0039] The target image and the candidate image may be of the same or different formats or types. In one embodiment, the target image may be an image that has been processed by the ISP (Image Signal Processor) Pipeline (referring to the processing flow of the ISP). The candidate image may be picture data that has not been processed by the ISP or has only been partially processed by the ISP. The resolution, clarity, etc. of the target image may be higher than those of the candidate image.

[0040] In addition to collecting candidate images, the shooting device can also collect motion information within the dynamic shooting time period. The motion information of the shooting device may include but is not limited to any one or more of the following: translation speed, angular velocity, acceleration, motion direction, motion mode, motion state, etc. The shooting device may be configured with an inertial sensor, which includes but is not limited to any one or more of the following: gyroscope, accelerometer, gravimeter, magnetometer, etc. The inertial data of the shooting device is collected by the inertial sensor. The inertial data can directly represent the motion information, or the inertial data can be further processed to obtain the motion information. For example, the angular velocity of the shooting device can be sensed by a gyroscope, and the acceleration of the shooting device can be sensed by an accelerometer, and the angular velocity and acceleration can be used as motion information.

[0041] After obtaining the initial image and motion information, continue to refer to Figure 2 In step S220, based on the motion information of the shooting device in the dynamic shooting time period, multiple frames of expected images captured by the shooting device in the expected motion state are screened out from the multiple frames of candidate images.

[0042] In this article, the motion state is a concrete representation or summary of motion information. Motion information may include specific motion data, while the motion state is a concrete state summarized based on the common characteristics in the motion information. For example, the motion state may be the motion state of a user holding a camera, such as still, walking, running, hand raised, hand lowered, etc.; or, different motion states may be graded according to the degree of motion, such as a primary motion state and a secondary motion state, where a higher level indicates a more intense degree of motion.

[0043] The expected motion state refers to the motion state of the camera that meets the user's shooting expectations. For example, if the user expects to take pictures with the camera in a stationary state, the expected motion state may be a stationary state. It should be noted that the static state in this article may include a completely stationary state and an approximately stationary state (i.e., a state with a very small amplitude of motion). The expected motion state may be fixed. For example, it can be assumed that users generally expect to see the pictures taken by the camera in a stationary state, so the expected motion state may be fixed to a stationary state. The expected motion state may also be variable. For example, the expected motion state may be determined based on the shooting scene, the user's shooting behavior, etc.

[0044] Based on the motion information of the shooting device, candidate images captured by the shooting device in the expected motion state can be screened out from the candidate images as expected images. The expected images are images that the user expects to see and are used for subsequent synthesis of the target video. Candidate images other than the expected images are unintended images and can be regarded as waste frames. In this way, it can be ensured that there are no waste frames in the target video, thereby improving the quality of dynamic photos.

[0045] The following is an exemplary description of how to filter the expected images.

[0046] In one embodiment, reference Figure 3 As shown, the above-mentioned screening of multiple frames of expected images captured by the shooting device in the expected motion state from multiple frames of candidate images based on the motion information of the shooting device in the dynamic shooting time period may include the following steps S310 and S320:

[0047] Step S310, based on the motion information of the shooting device in the dynamic shooting time period, dividing the dynamic shooting time period into a sub-time period in which the shooting device is in an expected motion state as the expected shooting sub-time period;

[0048] Step S320: Determine the candidate image captured by the shooting device within the expected shooting sub-time period as the expected image.

[0049] The motion state of the camera may change during the dynamic shooting time period, that is, the camera is in the expected motion state at some time and in other motion states at some time. The sub-time period in which the camera is in the expected motion state can be divided from the dynamic shooting time period. The images collected during this sub-time period usually meet the user's expectations, so it is called the expected shooting sub-time period. The number of expected shooting sub-time periods can be one or more.

[0050] The motion information of the shooting device within the dynamic shooting time period includes motion information at multiple different moments within the dynamic shooting time period. The motion information at each moment can be judged respectively, and the moments when the motion information meets the expected motion state are screened out to form the expected shooting sub-time period.

[0051] When the expected shooting sub-time period is determined, the candidate images whose timestamps are within the expected shooting sub-time period can be screened out as the expected images. The candidate images whose timestamps are outside the expected shooting sub-time period are unintended images. Thus, the expected images and unintended images can be strictly distinguished, so that the screening results of the expected images have a high degree of accuracy, thereby ensuring the length and quality of the target video to be synthesized later.

[0052] In one embodiment, reference Figure 4 As shown, based on the motion information of the shooting device in the dynamic shooting time period, dividing the sub-time period in which the shooting device is in an expected motion state from the dynamic shooting time period as the expected shooting sub-time period may include the following steps S410 and S420:

[0053] Step S410: based on the motion information of the shooting device in the dynamic shooting time period, the dynamic shooting time period is divided into a plurality of sub-time periods, and the motion state corresponding to each sub-time period is determined.

[0054] Generally, if the motion information of the shooting device changes significantly, it means that the motion state of the shooting device has changed. The dynamic shooting time period can be divided based on the time point when the motion state changes to obtain multiple sub-time periods, and the motion state corresponding to each sub-time period can be determined based on the motion information in each sub-time period.

[0055] In one implementation, conditions corresponding to different motion states may be preset to determine whether the motion information of the shooting device at different times meets the corresponding conditions, thereby dividing the dynamic shooting time period into sub-time periods under different motion states.

[0056] The following uses angular velocity and acceleration as examples to illustrate how to divide sub-time periods and determine motion states.

[0057] Example 1

[0058] The motion information may include angular velocity, which may generally include angular velocity of the X-axis, Y-axis, and Z-axis. Figure 5 As shown, the above-mentioned method of dividing the dynamic shooting time period into a plurality of sub-time periods based on the motion information of the shooting device in the dynamic shooting time period, and determining the motion state corresponding to each sub-time period may include the following steps S510 and S520:

[0059] Step S510, dividing the dynamic shooting time period into a sub-time period whose angular velocity meets the hand movement condition, and determining that the movement state corresponding to the sub-time period is the hand moving;

[0060] Step S520 , dividing the dynamic shooting time period into a sub-time period in which the angular velocity does not satisfy the hand motion condition, and determining that the motion state corresponding to the sub-time period is the hand being stationary.

[0061] Among them, the hand movement condition is used to characterize the characteristics that the motion information of the shooting device should have when the hand holding the shooting device moves. For example, the hand movement condition may include the condition of hand raising or hand lowering: the angular velocity of the X axis or the angular velocity of the Y axis is greater than 0.8 / second (0.8 can be radians or degrees). Correspondingly, if the angular velocity of the X axis and the angular velocity of the Y axis are both less than 0.8 / second, the hand raising or hand lowering condition is not met.

[0062] By judging whether the angular velocity at different times within the dynamic shooting time period meets the hand movement condition, the sub-time period that meets the hand movement condition and the sub-time period that does not meet the hand movement condition can be divided from the dynamic shooting time period. The motion state corresponding to the former is that the hand is in motion, and the motion state corresponding to the latter is that the hand is stationary. For example, if within a sub-time period, the shooting device meets the angular velocity of the X-axis or the angular velocity of the Y-axis greater than 0.8 / second, the sub-time period is divided out, and its motion state is determined to be hand raised or hand put down. In this way, the sub-time periods under different hand motion states can be accurately obtained.

[0063] Example 2

[0064] Motion information may include acceleration, where acceleration may refer to translational acceleration, including acceleration along the X-axis, Y-axis, and Z-axis. Figure 6 As shown, the above-mentioned method of dividing the dynamic shooting time period into a plurality of sub-time periods based on the motion information of the shooting device in the dynamic shooting time period, and determining the motion state corresponding to each sub-time period may include the following steps S610 and S620:

[0065] Step S610, dividing a sub-time period in which the acceleration is between a first acceleration threshold and a second acceleration threshold from the dynamic shooting time period, and determining that the motion state corresponding to the sub-time period is walking;

[0066] Step S620, dividing a sub-time period in which the acceleration is greater than a second acceleration threshold from the dynamic shooting time period, and determining that the motion state corresponding to the sub-time period is running; the second acceleration threshold is greater than the first acceleration threshold.

[0067] Among them, the overall acceleration of the shooting device can be considered. Specifically, based on the acceleration a of the X-axis X , acceleration of the Y axis a Y , Z-axis acceleration a Z , the overall acceleration a can be calculated total as follows:

[0068]

[0069] In steps S610 and S620, the overall acceleration may be compared with the first acceleration threshold and the second acceleration threshold. Of course, the acceleration of one or more axes may also be used for consideration.

[0070] The first acceleration threshold is the minimum acceleration in the walking state, and the second acceleration threshold is the minimum acceleration in the running state. Both can be determined based on experience. For example, the first acceleration threshold can be 1.2g (g is the acceleration of gravity), and the second acceleration threshold can be 3g, that is, when the acceleration is in the range of 1.2 to 3g, it belongs to the walking state, and when the acceleration is greater than 3g, it belongs to the running state.

[0071] By comparing the acceleration at different times in the dynamic shooting time period with the first acceleration threshold and the second acceleration threshold, the sub-time period in the walking state and the sub-time period in the running state can be segmented from the dynamic shooting time period. In addition, the sub-time period in which the acceleration is less than the first acceleration threshold can also be segmented from the dynamic shooting time period, and the motion state corresponding to the sub-time period is determined to be overall stillness. In this way, the sub-time periods in different overall motion states can be accurately obtained.

[0072] In one embodiment, Figure 5 or Figure 6 In the judgment, the stability of the motion state can be taken into consideration. Specifically, if the motion information (such as angular velocity or acceleration) of the shooting device in a sub-time period exceeding the third preset time length meets the corresponding conditions, it is considered that the motion state of the shooting device in the sub-time period is stable, and the sub-time period is divided out. The third preset time length can be determined based on experience or specific circumstances, such as 0.4 seconds. Therefore, if the motion information of the shooting device in a very short time (such as less than 0.4 seconds) meets the corresponding conditions, it cannot be considered that the shooting device is stably in a certain motion state. This avoids interference to the processing process caused by sudden changes in instantaneous motion information, abnormal points in the data (such as noise points), etc.

[0073] The above two examples illustrate how to divide sub-time periods and determine motion states. Of course, different motion states can also be judged and sub-time periods can be divided based on motion information other than angular velocity and acceleration, and the judgment method or condition is not limited to the above two examples.

[0074] Step S420, determining the expected motion state according to the motion state corresponding to the sub-time period where the triggering moment of the dynamic photographing instruction is located, and determining the sub-time period corresponding to the expected motion state as the expected photographing sub-time period.

[0075] The sub-time period in which the dynamic photography instruction is triggered is the sub-time period in which the user most wants to record images. The motion state corresponding to the sub-time period can be used as the expected motion state, or the motion state similar to the motion state corresponding to the sub-time period can be used as the expected motion state. For example, if the user clicks the shutter to trigger the dynamic photography instruction, the shooting device is in a static state (the static state can be the hand is still or the whole is still), which means that the user wants to take dynamic photos in a static state. The static state can be used as the expected motion state, or other states similar to the static state (such as walking) can be used as the expected motion state. It should be understood that the expected motion state can be one or more.

[0076] In the case of determining the expected motion state, the sub-time period corresponding to the expected motion state may be determined as the expected shooting sub-time period to ensure that the expected shooting sub-time period corresponds to the expected motion state.

[0077] exist Figure 4 In the scheme, the motion state at the triggering moment of the dynamic photo shooting instruction is associated with the expected motion state, so that the determined expected motion state can reflect the user's actual expectation for taking dynamic photos, thereby accurately obtaining the expected shooting sub-time period. Then, the expected image is accurately screened out.

[0078] The following is a further explanation of the screening of expected images in conjunction with Table 1. When the overall movement of the user is taken into consideration, the user behavior can be: changing from walking / running to still / walking, from still / walking to walking / running, etc. Table 1 shows the situation of dividing sub-time periods under two user behaviors of overall movement and the motion state corresponding to each sub-time period, and screens out the expected images according to the sub-time period in which the dynamic photo-taking instruction occurs, so as to record a specific picture. When the local movement of the user (mainly hand movement) is taken into consideration, the user behavior can be: raising the hand, putting down the hand, flipping left and right, flipping up and down, etc. Table 1 shows the situation of screening out expected images under four user behaviors of local movement, so as to record a specific picture.

[0079] Table 1

[0080]

[0081] After screening out multiple frames of expected images, continue to refer to Figure 2 In step S230, a target video is generated based on multiple frames of expected images.

[0082] Multiple frames of expected images may be synthesized into a target video, or the expected images may be processed and then synthesized into the target video. For example, the expected images may be subjected to EIS (Electric Image Stabilization) processing, which may be achieved by compensating and cropping the images, and the expected images after EIS processing may be synthesized into the target video, thereby reducing the image jitter in the target video and improving the video quality.

[0083] In addition, the recording data corresponding to the expected image can be obtained from the cached recording data to generate audio associated with the target video to achieve video with sound.

[0084] In one implementation, after generating a target video according to multiple frames of expected images, the shooting processing method may further include the following steps:

[0085] The target image and target video captured by the shooting device at the triggering moment of the dynamic shooting instruction are associated and stored.

[0086] For example, the target image and the target video may be stored with the same file name, or the same tag may be added to the two. Alternatively, if the target image is in JPEG format, the target video (such as MP4 format) may be encapsulated into the JPEG of the target image.

[0087] The target image and the target video together form a dynamic photo, the target image is a static image, and the target video is a dynamic image. When the user opens the target image, the target video can be triggered to play or automatically play through an operation.

[0088] In one embodiment, the process of the shooting processing method can refer to Figure 7 As shown, including:

[0089] Step S701, turn on the camera and cache the preview image and recording data in real time;

[0090] Step S702, detecting that a user triggers a dynamic photo taking instruction;

[0091] Step S703, capturing a target image at the triggering moment of the dynamic photographing instruction;

[0092] Step S704, obtaining multiple preview images within the dynamic shooting time period as candidate images;

[0093] Step S705, screening out multiple frames of expected images based on the motion information of the shooting device;

[0094] Step S706, synthesizing the target video using the expected image to generate audio synthesized from the recorded data;

[0095] Step S707: store the target image in association with the target video and audio. The process ends.

[0096] The exemplary embodiment of the present disclosure also provides a photographing and processing device. Figure 8 As shown, the shooting processing device 800 may include the following modules:

[0097] The data acquisition module 810 is configured to acquire multiple candidate images captured by the shooting device in a dynamic shooting time period in response to the dynamic shooting instruction, and motion information of the shooting device in the dynamic shooting time period; the dynamic shooting time period is a time period based on the triggering moment of the dynamic shooting instruction;

[0098] The frame screening module 820 is configured to screen out multiple frames of expected images captured by the shooting device in an expected motion state from the multiple frames of candidate images based on the motion information of the shooting device in a dynamic shooting time period;

[0099] The video generation module 830 is configured to generate a target video according to multiple frames of expected images.

[0100] In one embodiment, the above-mentioned screening out multiple frames of expected images captured by the shooting device in the expected motion state from multiple frames of candidate images based on the motion information of the shooting device in the dynamic shooting time period includes:

[0101] Based on the motion information of the shooting device in the dynamic shooting time period, a sub-time period in which the shooting device is in an expected motion state is divided from the dynamic shooting time period to serve as the expected shooting sub-time period;

[0102] The candidate image captured by the shooting device within the expected shooting sub-time period is determined as the expected image.

[0103] In one embodiment, based on the motion information of the shooting device in the dynamic shooting time period, the sub-time period in which the shooting device is in an expected motion state is divided from the dynamic shooting time period as the expected shooting sub-time period, including:

[0104] Based on the motion information of the shooting device in the dynamic shooting time period, the dynamic shooting time period is divided into a plurality of sub-time periods, and the motion state corresponding to each sub-time period is determined;

[0105] The expected motion state is determined according to the motion state corresponding to the sub-time period where the triggering moment of the dynamic photographing instruction is located, and the sub-time period corresponding to the expected motion state is determined as the expected shooting sub-time period.

[0106] In one implementation, the motion information includes angular velocity; based on the motion information of the shooting device in the dynamic shooting time period, the dynamic shooting time period is divided into a plurality of sub-time periods, and the motion state corresponding to each sub-time period is determined, including:

[0107] A sub-period in which the angular velocity satisfies the hand motion condition is divided from the dynamic shooting time period, and the motion state corresponding to the sub-period is determined to be hand motion;

[0108] A sub-time period in which the angular velocity does not satisfy the hand motion condition is divided from the dynamic shooting time period, and the motion state corresponding to the sub-time period is determined to be hand stillness.

[0109] In one implementation, the motion information includes acceleration; based on the motion information of the shooting device in the dynamic shooting time period, the dynamic shooting time period is divided into a plurality of sub-time periods, and the motion state corresponding to each sub-time period is determined, including:

[0110] Segmenting a sub-time period in which the acceleration is between a first acceleration threshold and a second acceleration threshold from the dynamic shooting time period, and determining that the motion state corresponding to the sub-time period is walking;

[0111] Segmenting a sub-time period in which the acceleration is greater than a second acceleration threshold from the dynamic shooting time period, and determining that the motion state corresponding to the sub-time period is running;

[0112] The second acceleration threshold is greater than the first acceleration threshold.

[0113] In one embodiment, the shooting processing device 800 may also include a data storage module, which is configured to: after the video generation module 830 generates the target video, associate and store the target image and target video captured by the shooting device at the triggering moment of the dynamic shooting instruction.

[0114] In one implementation, the starting point of the dynamic shooting time period is the triggering moment of the dynamic shooting instruction minus the first preset time length, and the end point of the dynamic shooting time period is the triggering moment of the dynamic shooting instruction plus the second preset time length.

[0115] The specific details of each part of the above-mentioned device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0116] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium, which can be implemented in the form of a program product, which includes a program code, and when the program product is run on an electronic device, the program code is used to cause the electronic device to perform the steps described in the above "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. In an optional embodiment, the program product can be implemented as a portable compact disk read-only memory (CD-ROM) and includes program code, and can be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited to this, and in this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.

[0117] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable 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.

[0118] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0119] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0120] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0121] The exemplary embodiment of the present disclosure also provides an electronic device, such as the above-mentioned shooting device 110 or processing device 120. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as program codes. The processor executes the method in the exemplary embodiment by executing the executable instructions.

[0122] Below Fig. 9 The mobile terminal 900 in FIG. 1 is taken as an example to exemplify the structure of the electronic device. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Fig. 9 The construction in can also be applied to fixed type equipment.

[0123] like Fig. 9 As shown, the mobile terminal 900 may specifically include: a processor 901, a memory 902, a bus 903, a mobile communication module 904, an antenna 1, a wireless communication module 905, an antenna 2, a display screen 906, a camera module 907, an audio module 908, a power module 909 and a sensor module 910.

[0124] The processor 901 may include one or more processing units, for example, the processor 901 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP, a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc. The method in this exemplary embodiment may be performed by one or more of the AP, GPU, ISP, and DSP.

[0125] The processor 901 may be connected to the memory 902 or other components via a bus 903 .

[0126] The memory 902 may be used to store computer executable program codes, which may include instructions. The processor 901 executes various functional applications and data processing of the mobile terminal 900 by running the instructions stored in the memory 902. The memory 902 may also store application data, such as images, videos, and other files.

[0127] The communication function of the mobile terminal 900 can be implemented by the mobile communication module 904, antenna 1, wireless communication module 905, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 904 can provide 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 900. The wireless communication module 905 can provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. applied to the mobile terminal 900.

[0128] The display screen 906 is used to implement display functions, such as displaying a user interface, displaying dynamic photos, etc.

[0129] The camera module 907 is used to implement shooting functions, such as taking dynamic photos.

[0130] The audio module 908 is used to implement audio functions, such as playing audio, collecting recording data, etc.

[0131] The power module 909 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc.

[0132] The sensor module 910 may include one or more sensors for implementing corresponding sensing detection functions, such as an inertial sensor that can sense motion information of the mobile terminal 900 .

[0133] It will be appreciated by those skilled in the art that various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as a "circuit", "module" or "system". Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and implementation are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0134] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A shooting processing method, characterized in that: include: Acquire multiple frames of candidate images collected by a shooting device in a dynamic shooting time period in response to a dynamic shooting instruction, and motion information of the shooting device in the dynamic shooting time period; the dynamic shooting time period is a time period based on the triggering moment of the dynamic shooting instruction; Based on the motion information of the shooting device in the dynamic shooting time period, screening out a plurality of frames of expected images captured by the shooting device in an expected motion state from the plurality of frames of candidate images; A target video is generated according to the multiple frames of expected images.

2. The method according to claim 1, characterized in that The step of selecting, based on the motion information of the shooting device in the dynamic shooting time period, a plurality of frames of expected images captured by the shooting device in the expected motion state from the plurality of frames of candidate images comprises: Based on the motion information of the shooting device in the dynamic shooting time period, dividing the sub-time period in which the shooting device is in the expected motion state from the dynamic shooting time period as the expected shooting sub-time period; The candidate image captured by the photographing device within the expected photographing sub-time period is determined as the expected image.

3. The method according to claim 2, characterized in that The step of dividing the sub-time period in which the shooting device is in the expected motion state from the dynamic shooting time period based on the motion information of the shooting device in the dynamic shooting time period as the expected shooting sub-time period includes: Based on the motion information of the shooting device in the dynamic shooting time period, the dynamic shooting time period is divided into a plurality of sub-time periods, and a motion state corresponding to each of the sub-time periods is determined; The expected motion state is determined according to the motion state corresponding to the sub-time period where the triggering moment of the dynamic photographing instruction is located, and the sub-time period corresponding to the expected motion state is determined as the expected shooting sub-time period.

4. The method according to claim 3, characterized in that The motion information includes an angular velocity; and based on the motion information of the shooting device in the dynamic shooting time period, dividing the dynamic shooting time period into a plurality of sub-time periods, and determining the motion state corresponding to each of the sub-time periods, including: Dividing a sub-time period in which the angular velocity meets the hand motion condition from the dynamic shooting time period, and determining that the motion state corresponding to the sub-time period is the hand in motion; A sub-time period in which the angular velocity does not satisfy the hand motion condition is divided from the dynamic shooting time period, and the motion state corresponding to the sub-time period is determined to be hand stillness.

5. The method according to claim 3, characterized in that: The motion information includes acceleration; dividing the dynamic shooting time period into a plurality of sub-time periods based on the motion information of the shooting device in the dynamic shooting time period, and determining the motion state corresponding to each of the sub-time periods, includes: Segmenting a sub-time period in which the acceleration is between a first acceleration threshold and a second acceleration threshold from the dynamic shooting time period, and determining that the motion state corresponding to the sub-time period is walking; Segmenting a sub-time period in which the acceleration is greater than a second acceleration threshold from the dynamic shooting time period, and determining that the motion state corresponding to the sub-time period is running; The second acceleration threshold is greater than the first acceleration threshold.

6. The method according to claim 1, characterized in that After generating the target video according to the multiple frames of expected images, the method further includes: The target image and the target video captured by the shooting device at the triggering moment of the dynamic shooting instruction are associated and stored.

7. The method according to claim 1, characterized in that The starting point of the dynamic shooting time period is the triggering moment of the dynamic shooting instruction minus the first preset time length, and the end point of the dynamic shooting time period is the triggering moment of the dynamic shooting instruction plus the second preset time length.

8. A shooting and processing device, characterized in that: include: A data acquisition module is configured to acquire multiple candidate image frames collected by a shooting device in a dynamic shooting time period in response to a dynamic shooting instruction, and motion information of the shooting device in the dynamic shooting time period; the dynamic shooting time period is a time period based on the triggering moment of the dynamic shooting instruction; a frame screening module configured to screen out a plurality of frames of expected images captured by the shooting device in an expected motion state from the plurality of candidate images based on motion information of the shooting device in the dynamic shooting time period; The video generation module is configured to generate a target video according to the multiple frames of expected images.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.

Citation Information

Cited By

  • Live-photo packaging method and apparatus, live-photo association method and apparatus, and device and storage medium

    WO2026103381A1