Video recording method, device and electronic equipment

By controlling the driving mechanism or image sensor position of the video device according to the target parameters during the video recording process, the blurring of the picture caused by jitter in video recording is solved, and high-quality recording effect is achieved in different environments.

CN113873147BActive Publication Date: 2025-01-10VIVO MOBILE COMM HANGZHOU CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111069658.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-13
Publication Date
2025-01-10
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

Existing video recording equipment is prone to jitter when recording videos in different environments, resulting in blurry and unclear images. Due to the fixed anti-shake angle, the anti-shake effect will weaken when exceeding the maximum anti-shake angle, affecting the shooting effect.

Method used

By controlling the driving mechanism or image sensor to move to the target position at the end of the current frame image exposure according to the target parameters (such as the movement speed) during the video recording process, and shooting at the beginning of the next frame image exposure, ensuring that the driving mechanism or image sensor is performed by controlling the driving mechanism or image sensor at the end of the current frame image exposure according to the target parameters (such as the movement speed) during the video recording process, and moving to the target position at the end of the current frame image exposure, and shooting at the beginning of the next frame image exposure, the The center of the lens module coincides with the optical axis, thereby maintaining a large anti-shake angle at all times.

Benefits of technology

It effectively reduces the blurring of the picture, improves the anti-shake effect of video recording, and ensures the shooting quality in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113873147B_ABST
    Figure CN113873147B_ABST
Patent Text Reader

Abstract

The present application discloses a video recording method, device and electronic device, which are applied to electronic devices, wherein the electronic device includes a driving mechanism and an image sensor, and when the driving mechanism or the image sensor is at a target position, the center of the driving mechanism coincides with the optical center of the image sensor. The method includes: obtaining target parameters; wherein the target parameters include a moving speed; during the video recording process, when the exposure end time of the current frame image of the video is reached, controlling the target device to move toward the target position according to the target parameters; wherein the target device includes the driving mechanism or the image sensor; when the exposure start time of the next frame image of the video is reached, capturing the next frame image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of shooting technology, and more specifically, to a video recording method, device and electronic equipment. Background Art

[0002] With the development of computer technology, the functions of terminal devices are becoming more and more powerful, and the recording function is a common function of terminal devices.

[0003] In the related technology, when recording videos in different environments, different degrees of shaking will inevitably occur, resulting in blurred and unclear images. However, since the current anti-shake angle is fixed, when the maximum anti-shake angle is exceeded, the anti-shake effect will be worse, affecting the shooting effect. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a video recording method, device and electronic device, which can solve the problem in the prior art that different degrees of jitter are generated during the video recording process, resulting in blurred and unclear images.

[0005] In a first aspect, an embodiment of the present application provides a video recording method, which is applied to an electronic device, wherein the electronic device includes a driving mechanism and an image sensor, and when the driving mechanism or the image sensor is at a target position, the center of the driving mechanism coincides with the optical center of the image sensor, and the method includes:

[0006] Acquire target parameters; wherein the target parameters include moving speed;

[0007] During the video recording process, when the exposure end time of the current frame image of the video is reached, the target device is controlled to move toward the target position according to the target parameter; wherein the target device includes the driving mechanism or the image sensor;

[0008] When the exposure start time of the next frame image of the video is reached, the next frame image is captured.

[0009] In a second aspect, an embodiment of the present application provides a video recording device, which is applied to an electronic device, wherein the electronic device includes a driving mechanism and an image sensor, and when the driving mechanism or the image sensor is at a target position, the center of the driving mechanism coincides with the optical center of the image sensor, and the device includes:

[0010] An acquisition module, used for acquiring target parameters; wherein the target parameters include moving speed;

[0011] A control module, used for controlling the target device to move toward the target position according to the target parameter when the exposure of the current frame image of the video ends during the video recording process; wherein the target device includes the driving mechanism or the image sensor;

[0012] The shooting module is used to shoot the next frame image of the video when the exposure start time of the next frame image of the video is reached.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0016] In an embodiment of the present application, during the process of recording a video, the driving mechanism or the image sensor is controlled to move toward the target position according to target parameters such as the moving speed during the idle time between the end of exposure of the current frame image of the video and the start of exposure of the next frame image, so as to adjust the position of the driving mechanism or the image sensor, so that when taking each frame of the image, the electronic device always has a larger anti-shake angle, further reducing the blurring phenomenon of the picture, so that the electronic device has a better anti-shake effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0018] Figure 1 A flowchart of a video recording method provided in an embodiment of the present application;

[0019] Figure 2-Figure 6 is a schematic diagram of a display interface of an electronic device provided in an embodiment of the present application;

[0020] Figure 7 is a schematic diagram of the structure of a video recording device provided in an embodiment of the present application;

[0021] Figure 8A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0022] Fig. 9 A schematic diagram of the structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application 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 application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The video recording method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0026] Please see Figure 1 , which is a flow chart of a video recording method provided in an embodiment of the present application. The method can be applied to an electronic device, which can be a mobile phone, a tablet computer, a laptop computer, etc. The electronic device includes a driving mechanism and an image sensor, and the driving mechanism can be a motor. When the driving mechanism or the image sensor is in the target position, the center of the driving mechanism coincides with the optical center of the image sensor. The electronic device also includes a lens module, and the driving mechanism is used to control the movement of the lens module, that is, when the driving mechanism or the image sensor is in the target position, the center of the driving mechanism, the optical center of the image sensor and the optical axis of the lens module coincide.

[0027] Usually, when using an electronic device to take pictures, if the electronic device shakes, that is, the image sensor of the electronic device shakes, the electronic device can control the lens module to move in the opposite direction of the shaking direction through a driving mechanism based on the shaking information, thereby eliminating the shaking and avoiding the generation of image ghosting.

[0028] However, for electronic devices with optical image stabilization function, since the image stabilization angle of the electronic device is limited, when the maximum image stabilization angle is exceeded, the electronic device no longer has the corresponding image stabilization function, which affects the shooting effect.

[0029] In order to solve the above problems, an embodiment of the present application provides a video recording method, which controls a driving mechanism or an image sensor to move to a target position before capturing the next frame of the video, so that the center of the driving mechanism, the optical center of the image sensor and the optical axis of the lens module coincide with each other, thereby avoiding the problem of blurred and unclear images caused by exceeding the maximum anti-shake angle during the recording process, thereby improving the recording effect.

[0030] Figure 1 The video recording method may include the following steps S1100 to S1300, which are described in detail below.

[0031] Step S1100, obtaining target parameters.

[0032] The target parameter is a parameter related to the target device moving to the target position. The target device includes a driving mechanism or an image processor.

[0033] For example, the target parameter includes at least a moving speed, which indicates a speed at which the target device moves toward the target location.

[0034] For another example, the target parameter may also include a movement ratio, which is used to limit the maximum distance that the target device can move to the target position.

[0035] In one example, obtaining the target parameters in step S1100 may further include the following steps S1110a to S1130a:

[0036] Step S1110a: receiving a first input for the shooting preview interface.

[0037] In this example, the electronic device includes a camera application, and the shooting preview interface is the interface displayed after entering the camera application. Here, the camera application can be entered in different ways, for example, the user can click the icon of the camera application displayed on the display screen of the electronic device to enter the shooting preview interface of the camera application. For another example, the camera application can be called through the camera calling interface of other applications to enter the shooting preview interface of the camera application during the process of running other applications in the electronic device.

[0038] The first input may be a touch input of a setting button on the shooting preview interface.

[0039] For example, Figure 2As shown, when the shooting preview interface is displayed, the shooting preview interface provides a setting button, and the photographer can click on the setting button.

[0040] Step S1120a: In response to the first input, a setting entry for setting the target parameters is provided.

[0041] In this example, when the shooting preview interface is displayed, the shooting preview interface provides a setting button, through which the photographer can set the video recording mode to the active anti-shake mode. On the other hand, the photographer can set the movement ratio and the movement speed through the setting button.

[0042] For example, after the photographer clicks on the setting button, the video recording mode will be displayed as active anti-shake mode in the upper right corner of the shooting preview interface. At the same time, a movement ratio selection bar is also provided in the upper right corner of the shooting preview interface. Furthermore, a movement ratio selection bar can also be provided in the upper right corner of the shooting preview interface.

[0043] Step S1130a, obtaining the target parameters input through the setting entry.

[0044] In this example, the photographer can input the desired value of the target parameter through the above setting entry.

[0045] For example, the photographer can select a desired movement ratio value through a selection bar for movement speed, and the photographer can also select a desired movement ratio value through a selection bar for movement ratio.

[0046] According to this example, a setting entry is provided for the photographer to select appropriate target parameters based on his or her own needs, thereby realizing the user's personalized needs.

[0047] In one example, obtaining the target parameters in step S1100 may further include the following steps S1110b to S1120b:

[0048] Step S1110b: acquiring the shooting scene while displaying the shooting preview interface.

[0049] In this example, the electronic device includes a camera application, and the shooting preview interface is the interface displayed after entering the camera application. Here, the camera application can be entered in different ways, for example, the user can click the icon of the camera application displayed on the display screen of the electronic device to enter the shooting preview interface of the camera application. For another example, the camera application can be called through the camera calling interface of other applications to enter the shooting preview interface of the camera application during the process of running other applications in the electronic device.

[0050] In this example, when the shooting preview interface is displayed, the shooting preview interface provides a setting button, through which the photographer can set the video recording mode to the active anti-shake mode. At the same time, when the shooting preview interface is displayed, the shooting scene will be obtained.

[0051] The shooting scene may be a low-brightness scene, a high-brightness scene, or the state of the shooting object. The state of the shooting object may be that the shooting object is in a moving state.

[0052] Step S1120b, obtaining target parameters matching the shooting scene.

[0053] In this example, mapping data of mapping relationships between different shooting scenes and parameter values ​​of target parameters are pre-stored in the electronic device.

[0054] For example, for low-brightness scenes, when the target parameter includes a moving speed, the moving speed can be set larger, that is, a low-brightness scene corresponds to a larger moving speed. When the target parameter also includes a moving ratio, the moving speed can be set larger and the moving ratio can be set smaller, that is, a low-brightness scene corresponds to a larger moving speed and a smaller moving ratio.

[0055] For another example, for a high-brightness scene, if the target parameter includes a moving speed, the moving speed can be set to be smaller, that is, a small moving speed corresponds to a high-brightness scene. If the target parameter also includes a moving ratio, the moving speed can be set to be smaller and the moving ratio can be set to be larger, that is, a small moving speed and a large moving ratio correspond to a high-brightness scene.

[0056] For another example, if the object is in a motion scene, when the target parameter includes the moving speed, the moving speed can be set to be larger, that is, a larger moving speed corresponds to the running scene. If the target parameter also includes the moving ratio, both the moving speed and the moving ratio can be set to be larger, that is, a larger moving speed and moving ratio corresponds to the motion scene.

[0057] According to this example, the parameter value of the target parameter is automatically set according to the identified shooting scene, so that the parameter value of the set target parameter can match the shooting scene.

[0058] In one example, obtaining the target parameters in step S1100 may further include the following steps S1110c to S1130c:

[0059] Step S1110c: when the shooting preview interface is displayed, obtain the facial image of the photographer.

[0060] In this example, the electronic device includes a camera application, and the shooting preview interface is the interface displayed after entering the camera application. Here, the camera application can be entered in different ways, for example, the user can click the icon of the camera application displayed on the display screen of the electronic device to enter the shooting preview interface of the camera application. For another example, the camera application can be called through the camera calling interface of other applications to enter the shooting preview interface of the camera application during the process of running other applications in the electronic device.

[0061] In this example, when the shooting preview interface is displayed, the shooting preview interface provides a setting button, through which the shooter can set the video recording mode to the active anti-shake mode. At the same time, the front camera of the electronic device will capture the shooter's face image.

[0062] Step S1120c, matching the facial image with a preset image database.

[0063] The image database at least stores the face image of the professional photographer.

[0064] In this example, after acquiring the facial image of the photographer, the electronic device can recognize the facial features in the facial image and search for a facial image matching the recognized facial features in a preset image database.

[0065] In this example, a similarity threshold can be set to compare the similarity between the facial features and the facial images in the user database. If the similarity is greater than or equal to the similarity threshold, it indicates that the facial image in the image database matches the facial features identified.

[0066] Step S1130c, when a face image is matched, the first parameter corresponding to the face image is used as the target parameter; when a face image is not matched, the second parameter corresponding to the face image is used as the target parameter.

[0067] For example, the target parameter includes a moving speed. If a face image is matched, a first moving speed corresponding to the face image may be used as the moving speed. If a face image is not matched, a second moving speed corresponding to the face image may be used as the moving speed. Furthermore, the first moving speed is less than the second moving speed.

[0068] It can be understood that, when a face image is matched, it indicates that the photographer is a professional photographer. In the case where the target parameter includes the moving speed, the moving speed can be set to be smaller, that is, a professional photographer corresponds to a smaller moving speed (first moving speed). In the case where a face image is not matched, it indicates that the photographer is a non-professional photographer. In the case where the target parameter includes the moving speed, the moving speed can be set to be larger, that is, a non-professional photographer corresponds to a larger moving speed (second moving speed).

[0069] For another example, the target parameter also includes a movement ratio. When a face image is matched, the first movement speed and the first movement ratio corresponding to the face image can be used as the movement speed and the movement ratio. When a face image is not matched, the second movement speed and the second movement ratio corresponding to the face image can be used as the movement speed and the movement ratio. In addition, the first movement speed is less than the second movement speed, and the first movement ratio is less than the second movement ratio.

[0070] It can be understood that, when a face image is matched, it indicates that the photographer is a professional photographer. In the case where the target parameter also includes the movement ratio, the movement speed and the movement ratio can be set to be smaller, that is, a professional photographer corresponds to a smaller movement speed and movement ratio (first movement speed and first movement ratio). In the case where a face image is not matched, it indicates that the photographer is a non-professional photographer. In the case where the target parameter also includes the movement ratio, the movement speed and the movement ratio can be set to be larger, that is, a non-professional photographer corresponds to a larger movement speed (second movement speed and second movement ratio).

[0071] According to this example, it will determine whether the identified photographer is a professional photographer, and if the photographer is a professional photographer, it indicates that the shaking during the video recording is usually small, so the value of the target parameter is automatically set to a small value. For non-professional photographers, it indicates that the shaking during the video recording is usually large, so the value of the target parameter is automatically set to a large value, so that the shooting effect will be better.

[0072] After obtaining the target parameters, enter:

[0073] Step S1200 , during the video recording process, when the exposure end time of the current frame image of the video is reached, the target device is controlled to move toward a target position according to the target parameter.

[0074] The target device may be a driving mechanism or an image sensor.

[0075] In this embodiment, by controlling the driving mechanism or the image sensor to move toward the target position, the center of the driving mechanism, the optical center of the image sensor and the optical axis center of the lens module can be made to coincide, so that the electronic device has a maximum anti-shake angle when shooting each frame of the image.

[0076] During the video recording process, different frames of the video are shot with the same exposure parameters. The exposure parameters may be exposure time. That is, during the video recording process, different frames of the video are shot with the same exposure time. For a certain shooting frame rate, the frame length is certain, and the frame length of each frame includes the exposure time and the readout time of each frame. When the sum of the exposure time and the readout time of each frame is less than the frame length of each frame, the remaining time is the idle time. In other words, there is a certain idle time between two frames of images. Based on this, during the idle time between shooting two frames of images, controlling the drive mechanism or the image sensor to move to the target position can ensure that the electronic device has the maximum anti-shake angle and improve the anti-shake effect.

[0077] In one example, the target parameter includes a moving speed. In step S1200, during the video recording process, when the exposure end time of the current frame image of the video is reached, controlling the target device to move toward the target position according to the target parameter may further include:

[0078] During the video recording process, when the exposure end time of the current frame image of the video is reached, the target device is controlled to move toward a target position according to the moving speed.

[0079] For example, when the exposure of the current frame of the video ends, the drive mechanism can be controlled to move in the direction close to the target position based on the moving speed, so that the lens module moves in the direction close to the target position, and when the exposure of the next frame of the video starts, the drive mechanism is controlled to stop moving in the direction close to the target position. In other words, during the idle time between shooting two frames of images, the drive mechanism is controlled to move in the direction close to the target position to ensure that the center of the drive mechanism, the optical center of the image sensor and the optical axis of the lens module coincide, and the electronic device has the maximum anti-shake angle.

[0080] For another example, when the exposure of the current frame of the video ends, the image sensor can be controlled to move toward the target position based on the moving speed, and when the exposure of the next frame of the video starts, the image sensor can be controlled to stop moving toward the target position. In other words, during the idle time between shooting two frames of images, the image sensor is controlled to move toward the target position to ensure that the center of the drive mechanism, the optical center of the image sensor, and the optical axis of the lens module coincide, and the electronic device has the maximum anti-shake angle.

[0081] In one example, the target parameter also includes a moving ratio. In step S1200, during the video recording process, when the exposure end time of the current frame image of the video is reached, controlling the target device to move to the target position according to the target parameter may further include the following steps S1210 to S1230:

[0082] Step S1210, when the exposure end time of the current frame image of the video is reached, the jitter information of the electronic device is obtained.

[0083] In this example, when the electronic device shakes during the process of shooting an image, the shaking information is generated. The shaking information can be collected by a gyroscope or other sensors. The shaking information can be, for example, the deflection distance of the lens module.

[0084] Step S1220: determining the maximum distance that the target device can move according to the movement ratio and the jitter information.

[0085] In this example, the maximum distance S that the target device can move can be calculated according to the following formula max :

[0086] S max =p*m (1)

[0087] Among them, p represents the movement ratio, and m represents the jitter information.

[0088] Step S1230: Control the target device to move toward the target position according to the moving speed and the maximum distance.

[0089] During the video recording process, when the exposure end time of the current frame image of the video is reached, the target device is controlled to move toward the target position according to the moving speed and the maximum distance.

[0090] For example, at the end of the exposure of the current frame of the video, the driving mechanism can be controlled to move the maximum distance in the direction close to the target position based on the moving speed, so that the lens module moves the maximum distance in the direction close to the target position. And at the start of the exposure of the next frame of the video, or when the distance moved by the target device to the target position reaches the maximum distance, the driving mechanism is controlled to stop moving in the direction close to the target position to ensure that the center of the driving mechanism, the optical center of the image sensor and the optical axis of the lens module coincide, and the electronic device has the maximum anti-shake angle at this time.

[0091] For another example, when the exposure of the current frame image of the video ends, the image sensor can be controlled to move the maximum distance in the direction close to the target position based on the moving speed, and when the exposure start time of the next frame image is reached, or when the distance moved by the target device in the direction close to the target position reaches the maximum distance, the driving mechanism is controlled to stop moving in the direction close to the target position to ensure that the center of the driving mechanism, the optical center of the image sensor and the optical axis of the lens module coincide, and the electronic device has the maximum anti-shake angle.

[0092] During the video recording process, when the exposure of the current frame image of the video ends, the target device is controlled to move toward the target position according to the target parameters, and then enters:

[0093] Step S1300, when the exposure start time of the next frame of image is reached, the next frame of image is captured.

[0094] In this embodiment, since the electronic device has a maximum anti-shake angle when the exposure start time of the first frame of image is reached, the next frame of image can be photographed when the exposure start time of the next frame of image is reached.

[0095] In this embodiment, during the process of capturing the next frame of image, the jitter information of the electronic device may continue to be acquired, and according to the jitter information of the electronic device, the lens module may be controlled to move through the driving mechanism to eliminate the jitter.

[0096] According to this embodiment, during the process of recording a video, the driving mechanism or the image sensor will be controlled to move toward the target position according to the parameter value of the target parameter during the time between the end of exposure of the current frame image of the video and the start of exposure of the next frame image, so as to adjust the position of the driving mechanism or the image sensor, so that when shooting each frame of the image, the electronic device always has a larger anti-shake angle, further reducing the blurring phenomenon of the picture, so that the electronic device has a better anti-shake effect.

[0097] In one embodiment, after executing the above step S1100 to obtain the target parameters, the video recording method of the embodiment of the present disclosure may further include the following step S2100:

[0098] Step S2100: During the video recording process, an action waveform of the target device is displayed on the video recording interface in the form of a floating control.

[0099] The motion waveform is used to represent the moving trajectory of the target device during the video recording process.

[0100] For example, Figure 3As shown in the figure, after selecting the active anti-shake mode, during the video recording process, the action waveform of the driving mechanism is displayed in the video recording interface in the form of a floating window, where the horizontal axis represents time and the vertical axis represents the distance between the driving mechanism and the target position. Figure 3 Curve 1 in FIG. 1 represents the action waveform curve of the driving mechanism in the active anti-shake mode. Figure 3 Curve 2 in the figure represents the jitter curve of the electronic device during video recording. Figure 3 The dashed line in the figure indicates the travel edge of the drive mechanism. Figure 3 It can be seen that when the exposure time of the current frame image arrives, the driving mechanism will be controlled to move to the target position. Figure 4 The figure shows the action waveform of the driving mechanism in the default recording mode.

[0101] According to this embodiment, it is possible to display the action waveform of the target device in real time, making the movement of the target device more intuitive.

[0102] In one embodiment, after executing the above step S2100 to display the action waveform of the target device in the video recording interface in the form of a floating control during the video recording process, the video recording method of the present disclosure further includes the following steps S3100 to S3300:

[0103] Step S3100, receiving a sliding operation on an action waveform diagram of a target device.

[0104] In this embodiment, the user can control the movement of the driving mechanism by a user-defined control. For example, the user can control the movement of the driving mechanism by a finger. Figure 5 Curve 1( Figure 5 The specific curve is not shown) to perform a sliding operation to move the driving mechanism. Figure 6 A sliding operation is performed on the drive mechanism to move the drive mechanism.

[0105] Step S3200, in response to the sliding operation, obtaining the number of pixels involved in the sliding operation and the sliding direction of the sliding operation.

[0106] For example, the user's finger is on Figure 6 After performing a sliding operation, the electronic device can respond to the sliding operation and obtain the number of pixels involved in the sliding operation and the sliding direction of the sliding operation.

[0107] Step S3300: determining a target distance that the target device needs to move according to the number of pixels involved in the sliding operation.

[0108] For example, the electronic device can determine the target distance that the target device needs to move according to the number of pixels involved in the sliding operation.

[0109] According to this embodiment, the moving motor can be customized by the user to meet the user's personalized needs.

[0110] In one embodiment, after executing the above step S1210 and obtaining the jitter information of the electronic device when the exposure end time of the current frame image of the video is reached, the video recording method of the present disclosure further includes the following steps:

[0111] According to the jitter information, the target parameters are adjusted so that when the exposure end time of the next frame image of the video is reached, the target device is controlled to move in a direction close to the target position according to the adjusted target parameters.

[0112] According to this embodiment, after adjusting the target parameters according to the jitter information of the electronic device, when the exposure of the next frame image of the video ends, the target device can be controlled to move in a direction close to the target position according to the adjusted target parameters, so as to ensure that the center of the driving mechanism, the optical center of the image sensor and the optical axis of the lens module coincide with each other. At this time, the electronic device has the maximum anti-shake angle.

[0113] Corresponding to the above embodiment, see Figure 7 The embodiment of the present application further provides a video recording device 700, which is applied to an electronic device, wherein the electronic device includes a driving mechanism and an image sensor, and when the driving mechanism or the image sensor is at a target position, the center of the driving mechanism coincides with the optical center of the image sensor, and the device 700 includes:

[0114] The acquisition module 710 is used to acquire target parameters; wherein the target parameters include moving speed.

[0115] The control module 720 is used to control the target device to move toward the target position according to the target parameters when the exposure of the current frame image of the video ends during the video recording process; wherein the target device includes the driving mechanism or the image sensor.

[0116] The shooting module 730 is used to shoot the next frame image of the video when the exposure start time of the next frame image is reached.

[0117] In one embodiment, the target parameters also include a movement ratio, and the control module 720 is specifically used to: obtain the jitter information of the electronic device when the exposure end time of the current frame image of the video is reached; determine the target distance that the target device can move according to the movement ratio and the jitter information; and control the target device to move in a direction close to the target position according to the moving speed and the target distance.

[0118] In one embodiment, the control module 720 is further used to: control the target device to stop moving in the direction approaching the target position when the exposure start time of the next frame image is reached; or control the target device to stop moving in the direction approaching the target position when the distance moved by the target device in the direction approaching the target position reaches the target distance.

[0119] In one embodiment, the device 700 further includes a display module (not shown in the figure).

[0120] The display module is used to display the action waveform of the target device on the recording interface of the video in the form of a floating control during the recording of the video.

[0121] The motion waveform is used to represent the moving trajectory of the target device during the recording of the video.

[0122] In one embodiment, the acquisition module 710 is further used to receive a sliding operation on the action waveform diagram of the target device; and, in response to the sliding operation, to acquire the number of pixels involved in the sliding operation and the sliding direction of the sliding operation.

[0123] The control module 720 is further configured to determine a distance that the target device needs to move according to the number of pixels involved in the sliding operation; and control the target device to move the distance based on the sliding direction.

[0124] In one embodiment, the acquisition module 710 is specifically used to: receive a first input for a shooting preview interface; provide a setting entry for setting the target parameter in response to the first input; and acquire the target parameter input through the setting entry.

[0125] In one embodiment, the acquisition module 710 is specifically used to: acquire a shooting scene when the shooting preview interface is displayed; and acquire the target parameters matching the shooting scene.

[0126] In one embodiment, the control module 720 is further used to: adjust the target parameters according to the jitter information, so that when the exposure end time of the next frame image of the video is reached, the target device is controlled to move in a direction close to the target position according to the adjusted target parameters.

[0127] The video recording device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0128] The video recording device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0129] The video recording device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0130] Corresponding to the above embodiment, optionally, Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned video recording method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0131] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0132] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0133] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.

[0134] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0135] Among them, the processor 910 is used to obtain target parameters; wherein the target parameters include a moving speed; during the video recording process, when the exposure end time of the current frame image of the video is reached, the target device is controlled to move toward the target position according to the target parameters; wherein the target device includes the driving mechanism or the image sensor; when the exposure start time of the next frame image of the video is reached, the next frame image is captured.

[0136] In one embodiment, the target parameters also include a movement ratio, and the processor 910 is further used to obtain the jitter information of the electronic device when the exposure end time of the current frame image of the video is reached; determine the target distance that the target device can move according to the movement ratio and the jitter information; and control the target device to move in a direction close to the target position according to the moving speed and the target distance.

[0137] In one embodiment, the processor 910 is further used to control the target device to stop moving in the direction approaching the target position when the exposure start moment of the next frame image is reached; or, when the distance moved by the target device in the direction approaching the target position reaches the target distance, control the target device to stop moving in the direction approaching the target position.

[0138] In one embodiment, the processor 910 is further configured to display the motion waveform of the target device in the recording interface of the video in the form of a floating control during the video recording process. The motion waveform is used to represent the movement trajectory of the target device during the video recording process.

[0139] In one embodiment, the processor 910 is further used to receive a sliding operation on the action waveform diagram of the target device; in response to the sliding operation, obtain the number of pixels involved in the sliding operation and the sliding direction of the sliding operation; determine the distance that the target device needs to move based on the number of pixels involved in the sliding operation; and control the target device to move the distance based on the sliding direction.

[0140] In one embodiment, the processor 910 is further configured to receive a first input for the shooting preview interface; provide a setting entry for setting the target parameter in response to the first input; and obtain the target parameter input through the setting entry.

[0141] In one embodiment, the processor 910 is further configured to obtain a shooting scene when displaying the shooting preview interface; and obtain the target parameters matching the shooting scene.

[0142] In one embodiment, the processor 910 is further configured to adjust the target parameter according to the jitter information, so that when the exposure of the next frame of the video ends, the target device is controlled to move toward the target position according to the adjusted target parameter.

[0143] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.

[0144] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned video recording method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0145] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0146] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video recording method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0147] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0148] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0150] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A video recording method, applied to an electronic device, the electronic device comprising a driving mechanism and an image sensor, when the driving mechanism or the image sensor is at a target position, the center of the driving mechanism coincides with the optical center of the image sensor, the method comprising: Acquire target parameters; wherein the target parameters include moving speed; During the video recording process, when the exposure end time of the current frame image of the video is reached, the target device is controlled to move toward the target position according to the target parameter; wherein the target device includes the driving mechanism or the image sensor; When the exposure start time of the next frame image of the video is reached, capturing the next frame image; Wherein, the target parameters also include a movement ratio, and when the exposure end moment of the current frame image of the video is reached, the target device is controlled to move in a direction close to the target position according to the target parameters, including: when the exposure end moment of the current frame image of the video is reached, the jitter information of the electronic device is obtained; according to the movement ratio and the jitter information, the target distance that the target device can move is determined; according to the movement speed and the target distance, the target device is controlled to move in a direction close to the target position.

2. The method according to claim 1, characterized in that After controlling the target device to move toward the target position according to the target parameter, the method further includes: When the exposure start time of the next frame of image is reached, the target device is controlled to stop moving in a direction close to the target position; or, When the distance that the target device has moved in the direction approaching the target position reaches the target distance, the target device is controlled to stop moving in the direction approaching the target position.

3. The method according to claim 1, characterized in that After obtaining the target parameters, the method further includes: During the video recording process, displaying the action waveform of the target device on the video recording interface in the form of a floating control; The motion waveform diagram is used to represent the moving trajectory of the target device during the recording of the video.

4. The method according to claim 3, characterized in that After displaying the action waveform of the target device on the recording interface of the video in the form of a floating control, the method further includes: receiving a sliding operation on the action waveform diagram of the target device; In response to the sliding operation, obtaining the number of pixels involved in the sliding operation and the sliding direction of the sliding operation; Determining a distance that the target device needs to move according to the number of pixels involved in the sliding operation; The target device is controlled to move the distance based on the sliding direction.

5. The method according to claim 1, characterized in that The obtaining of the target parameter comprises: Receiving a first input for the shooting preview interface; In response to the first input, providing a setting entry for setting the target parameter; The target parameter input through the setting entry is obtained.

6. The method according to claim 1, characterized in that The obtaining of the target parameter further includes: When the shooting preview interface is displayed, obtaining the shooting scene; The target parameters matching the shooting scene are obtained.

7. The method according to claim 1, characterized in that After acquiring the jitter information of the electronic device when the exposure end time of the current frame image of the video is reached, the method further includes: The target parameter is adjusted according to the jitter information, so that when the exposure end time of the next frame image of the video is reached, the target device is controlled to move in a direction close to the target position according to the adjusted target parameter.

8. A video recording device, applied to an electronic device, the electronic device comprising a driving mechanism and an image sensor, wherein when the driving mechanism or the image sensor is at a target position, the center of the driving mechanism coincides with the optical center of the image sensor, the device comprising: An acquisition module, used for acquiring target parameters; wherein the target parameters include moving speed; A control module, used for controlling the target device to move toward the target position according to the target parameter when the exposure of the current frame image of the video ends during the video recording process; wherein the target device includes the driving mechanism or the image sensor; A shooting module, used for shooting the next frame of the video when the exposure start time of the next frame of the video is reached; Among them, the target parameters also include a movement ratio, and the control module is specifically used to obtain the jitter information of the electronic device when the exposure end time of the current frame image of the video is reached; determine the target distance that the target device can move according to the movement ratio and the jitter information; and control the target device to move in a direction close to the target position according to the moving speed and the target distance.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the video recording method as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the video recording method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Image pickup apparatus and image processing method

    CN106357968A