Video recording method, device, electronic device and readable storage medium

By correcting the angle of the video preview image in electronic devices such as mobile phones, the display angle problem caused by the tilt of the device during video recording is solved, and the video recording quality is improved.

CN113873148BActive Publication Date: 2025-02-28VIVO MOBILE COMM HANGZHOU CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111077613.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2025-02-28
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

When recording videos, electronic devices such as mobile phones are prone to produce varying degrees of tilt, affecting the recording effect of the video.

Method used

By receiving input from the user to the shooting preview interface, the video preview image is corrected to ensure that the display angle during video recording is consistent with the tilt angle of the device.

Benefits of technology

It effectively avoids the display angle problem caused by the tilt of the device during video recording, and improves the quality of video recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The present application discloses a recording method, device, electronic device and readable storage medium, which belongs to the field of video processing technology. The method comprises: receiving a first input from a user to a shooting preview interface; in response to the first input, performing angle correction processing on a first video preview image displayed on the shooting preview interface to obtain a second video preview image; based on the second video preview image, performing video recording and outputting a target video, wherein the display angle of the target video is the same as the display angle of the second video preview image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of video processing technology, and specifically relates to a video recording method, device, electronic device and readable storage medium. Background Art

[0002] At present, mobile phones have become a necessity in people's lives, and video recording function has become a must-have function when people use mobile phones. However, in the related art, when using mobile phones to record videos, different degrees of tilt will inevitably occur, affecting the recording effect of the video. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a video recording method, device, electronic device and readable storage medium, which can solve the problem of different degrees of tilt when recording video in the prior art.

[0004] In a first aspect, an embodiment of the present application provides a recording method, the method comprising:

[0005] Receive a first input from a user on the shooting preview interface;

[0006] In response to the first input, performing angle correction processing on the first video preview image displayed on the shooting preview interface to obtain a second video preview image;

[0007] Based on the second video preview image, video recording is performed to output a target video, and a display angle of the target video is the same as a display angle of the second video preview image.

[0008] In a second aspect, an embodiment of the present application provides a video recording device, the device comprising:

[0009] A first receiving module, used to receive a first input from a user on the shooting preview interface;

[0010] a correction module, configured to perform angle correction processing on the first video preview image displayed on the shooting preview interface in response to the first input, so as to obtain a second video preview image;

[0011] A recording module is used to perform video recording based on the second video preview image and output a target video, wherein a display angle of the target video is the same as a display angle of the second video preview image.

[0012] 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.

[0013] 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.

[0014] 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.

[0015] In an embodiment of the present application, a first input from a user to a shooting preview interface is received; in response to the first input, an angle correction process is performed on a first video preview image displayed on the shooting preview interface to obtain a second video preview image, and video recording is performed based on the second video preview image to output a target video. In this way, during the video recording process, if the electronic device is tilted, the angle of the first video preview image can be corrected according to the degree of tilt of the electronic device, so that the display angle of the corrected second video preview image is consistent with the tilt angle of the electronic device, thereby ensuring that the target video finally obtained will not have a tilted display angle, and the recording quality of the video can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a schematic diagram of a video preview image in a tilted state provided by an embodiment of the present application;

[0017] Figure 2 is a flow chart of a video recording method provided in an embodiment of the present application;

[0018] Figure 3 is a schematic diagram of a shooting preview interface provided in an embodiment of the present application;

[0019] Figure 4 is a schematic diagram of another shooting preview interface provided in an embodiment of the present application;

[0020] Figure 5 is a schematic diagram of selecting a correction step length provided in an embodiment of the present application;

[0021] Figure 6 is a schematic diagram of adjusting a coordinate system provided in an embodiment of the present application;

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

[0023] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0024] Fig. 9 It is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] 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.

[0026] 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.

[0027] In the related art, in the process of recording a video, different degrees of tilt will inevitably occur, and the shooting angle will change, causing the video image to tilt relative to the electronic device, affecting the video recording effect.

[0028] For example, Figure 1 As shown, during video recording, when the electronic device is tilted to the right, the display angle of the video preview image 101 relative to the electronic device changes. When the real-time correction function is not turned on, the video preview image 101 in the recorded video is tilted to the left.

[0029] In order to solve the above problems, an embodiment of the present application provides a recording method, which performs angle correction processing on the video preview image displayed on the shooting preview interface, so that the display angle of the video preview image is always consistent with the tilt angle of the electronic device, thereby improving the quality of video recording.

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

[0031] Please see Figure 2 , which is a flow chart of a 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. Figure 2 As shown, the method may include steps 2100 to 2300, which are described in detail below.

[0032] Step 2100: receiving a first input from a user on the shooting preview interface.

[0033] In this embodiment, the shooting preview interface may be a shooting preview interface of a camera application of an electronic device. The first input may be used to perform angle correction processing on the first video preview image. Exemplarily, the first input may be a click input of a target control by a user, or a specific gesture input by a user, which may be determined according to actual usage requirements, and the embodiment of the present application does not limit this.

[0034] The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, and a drag gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.

[0035] In some embodiments of the present application, before receiving a first input from a user on the shooting preview interface, the method may further include: receiving a fourth input from the user; and in response to the fourth input, enabling a real-time correction function.

[0036] In this embodiment, the fourth input can be used to enable the real-time correction function of the camera application. Exemplarily, the fourth input can be a click input of the user on the target control, or a specific gesture input by the user, which can be determined according to actual usage requirements, and the embodiment of the present application does not limit this.

[0037] The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, and a drag gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.

[0038] See also Figure 3 , which is a schematic diagram of a shooting preview interface of an embodiment of the present application. Specifically, the real-time correction option 301 is displayed in the shooting preview interface, a fourth input of the user to the real-time correction option 301 is received, and in response to the fourth input, the real-time correction function is turned on.

[0039] In an embodiment of the present application, in the process of recording a video, different degrees of tilt will inevitably occur, and the shooting angle of view will change, causing the video image to tilt relative to the electronic device. In this regard, the user can choose whether to turn on the real-time correction function according to actual needs. When the user turns on the real-time correction function, the video preview image displayed on the shooting preview interface can be angle-corrected, so that the display angle of the video preview image is always consistent with the tilt angle of the electronic device, thereby improving the quality of video recording.

[0040] In some embodiments of the present application, before receiving the first input from the user on the shooting preview interface, the method may further include: when the electronic device is tilted, displaying the tilt angle of the electronic device on the shooting preview interface.

[0041] For example, please see Figure 3 ,During video recording, when the electronic device was tilted, the tilt was displayed at 23°.

[0042] According to this embodiment, when the electronic device is tilted, the tilt information of the electronic device is displayed, and the tilt information includes the tilt angle, etc., which can facilitate the user to adjust the display angle of the first video preview image so that the display angle of the second video preview image is consistent with the tilt angle of the electronic device.

[0043] After step 2100, step 2200 is executed to perform angle correction processing on the first video preview image displayed on the shooting preview interface in response to the first input to obtain a second video preview image.

[0044] The first video preview image may be an image captured by a camera of an electronic device during video recording for preview by a user. The display angle of the first video preview image is inconsistent with the tilt angle of the electronic device. The display angle of the second video preview image is consistent with the tilt angle of the electronic device.

[0045] In some embodiments of the present application, the first input may be a rotation input of the correction control; performing angle correction processing on the first video preview image displayed on the shooting preview interface to obtain the second video preview image may include: obtaining the rotation angle of the correction control, rotating the first video preview image according to the rotation angle of the correction control, and obtaining the second video preview image. It is understandable that the user can rotate the correction control 401 according to actual needs.

[0046] For example, see Figure 4, which is a schematic diagram of another shooting preview interface of an embodiment of the present application. Specifically, after the real-time correction function is turned on, a correction control 401 is displayed in the shooting preview interface, and the user can rotate the correction control 401 according to actual needs. When the rotation angle of the first video preview image meets the user's needs, the correction control 401 is stopped from rotating, that is, the first input to the correction control is ended. In response to the first input, the first video preview image is rotated according to the rotation angle of the correction control to obtain a second video preview image. In addition, an operation mark 402 is also displayed in the shooting preview interface, and the user can perform angle correction processing on the first video preview image according to the operation mark 402. It should be noted that the operation mark in this embodiment is a text, symbol, image, etc. used to indicate information, and a control or other container can be used as a carrier for displaying information, including but not limited to a text mark, a symbol mark, and an image mark.

[0047] In some other embodiments of the present application, before receiving the first input from the user to the shooting preview interface, the method may also include: receiving the second input from the user; obtaining a correction step in response to the second input; performing angle correction processing on the first video preview image displayed on the shooting preview interface to obtain a second video preview image may further include: rotating the first video preview image according to a rotation angle corresponding to the correction step to obtain a second video preview image.

[0048] In this embodiment, the second input may be an input for selecting a correction step length. For example, the second input may be a user's click input on a target control, or a user's click input on a target area, or a specific gesture input by a user, which may be determined according to actual usage requirements, and the embodiment of the present application does not limit this.

[0049] The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, and a drag gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.

[0050] In this embodiment, the correction step size can be used to limit the rotation range of the first video preview image. When the user's first input to the first video preview image is received, that is, when the user triggers the angle correction processing of the first video preview image, the first video preview image is rotated according to the rotation angle corresponding to the correction step size. It should be noted that the user can select the correction step size according to actual needs.

[0051] In this embodiment, different correction step sizes correspond to different rotation angles. The larger the correction step size, the larger the corresponding rotation angle, and the larger the amplitude of each adjustment. The smaller the correction step size, the smaller the corresponding rotation angle, and the smaller the amplitude of each adjustment. Selecting a larger correction step size can improve processing efficiency. Selecting a smaller correction step size can improve correction accuracy.

[0052] In this embodiment, the correction step length can be determined by the correction gear selected by the user. The correction gear can be pre-set. Exemplarily, a plurality of correction gears can be pre-set, and different correction gears correspond to different correction step lengths. For example, four correction gears are set, including gear 1, gear 2, gear 3, and gear 4, wherein the correction step length corresponding to gear 1 is 60°, the correction step length corresponding to gear 2 is 30°, the correction step length corresponding to gear 3 is 15°, and the correction step length corresponding to gear 4 is 10°. It should be noted that the number of correction gears and the correction step length corresponding to each correction gear can be set according to the actual needs of the user, and the embodiment of the present application does not make any special limitation on this.

[0053] For example, see Figure 5 , which is a schematic diagram of selecting a correction step length in an embodiment of the present application. Specifically, after the real-time correction function is turned on, a correction gear selection control 501 is also displayed in the shooting preview interface. In response to the user's click operation on the selection control 501, multiple correction gears are displayed, for example, gear 1 (correction step length is 60°), gear 2 (correction step length is 30°), gear 3 (correction step length is 15°), gear 4 (correction step length is 10°) shown in the figure; thereafter, in response to the user's second input to gear 4, the correction step length corresponding to gear 4 is obtained. Afterwards, when the electronic device is tilted to the right, the user adjusts the display angle of the first video preview image by rotating the correction control 502. In one possible way, the user rotates the correction control 502 clockwise, and as the correction control 502 rotates, the first video preview image can rotate in real time. For example, when the angle of a correction step length (10°) is rotated, the first video preview image rotates synchronously by 10° and then stops. In another possible manner, the user rotates the correction control 502 clockwise, assuming that after rotating the correction step angle (10°), the correction is triggered, and the first video preview image is rotated 10° clockwise, that is, the first video preview image can be rotated after the correction control is rotated. Afterwards, the user can continue to rotate the first video preview image until the display angle of the first video preview image meets the user's requirements, that is, the second video preview image is obtained.

[0054] In an embodiment of the present application, a user can select a correction step size according to actual needs, and rotate the first video preview image according to the rotation angle corresponding to the correction step size to obtain a second video preview image. In this way, performing angle correction processing on the first video preview image according to a larger correction step size can improve processing efficiency, and performing angle correction processing on the first video preview image according to a smaller correction step size can improve correction accuracy, thereby meeting different user needs and making operation more flexible.

[0055] In some optional embodiments, the correction step size includes a first correction step size and a second correction step size, the first correction step size being larger than the second correction step size; rotating the first video preview image according to a rotation angle corresponding to the correction step size to obtain a second video preview image includes: rotating the first video preview image according to the first correction step size to obtain a third video preview image; rotating the third video preview image according to the second correction step size to obtain the second video preview image.

[0056] Exemplarily, when the electronic device is tilted to a large extent, that is, when the first video preview image is tilted to a large extent, a larger first correction step size can be selected first. For example, gear position 2 (corresponding to a correction step size of 30°) is selected, and the user rotates the correction control. After rotating by an angle of a correction step size (30°), the correction is triggered, and the first video preview image is rotated by 30°. It can be understood that the first video preview image can also rotate synchronously with the user's operation until the rotation angle of the first video preview image reaches an angle of a correction step size (30°), and then stops rotating. After the display angle of the first video preview image approaches the tilt angle of the electronic device, a smaller second correction step can be selected. For example, gear position 4 (corresponding to a correction step of 10°) is selected, and the user rotates the correction control. After rotating by an angle of a correction step (10°), the correction is triggered, and the first video preview image is rotated by 10°. It can be understood that the first video preview image can also rotate synchronously with the user's operation until the rotation angle of the first video preview image reaches an angle of a correction step (10°), and then the rotation stops; thereafter, the user can continue to rotate the first video preview image until the display angle of the first video preview image meets the user's requirements, that is, the second video preview image is obtained.

[0057] In an embodiment of the present application, when the first video preview image is angle corrected according to the correction step size, when the first preview video image is severely tilted, a larger correction step size can be selected for adjustment, and then a smaller correction step size can be selected for fine-tuning. In this way, the correction accuracy can be improved while ensuring the processing efficiency.

[0058] In this embodiment, the photographed object in the first video preview image may also be used as a reference to perform angle correction on the first video preview image.

[0059] In some embodiments of the present application, the first video preview image includes a target object; before receiving the first input from the user to the shooting preview interface, the method may further include: steps 3100 to 3200.

[0060] Step 3100: Receive a third input from the user regarding the target object.

[0061] In this embodiment, the target object may be a photographed object in the first video preview image. Exemplarily, the third input may be a user's click input on the target area, and the click input in the embodiment of the present application may be a single click input, a double click input, or any number of click inputs, etc., and may also be a long press input or a short press input.

[0062] Step 3200: In response to the third input, display the adjusted coordinate system corresponding to the target object.

[0063] In this embodiment, the adjustment coordinate system can indicate the degree of inclination of the target object in the first video preview image. The adjustment coordinate system includes a first axis (x-axis), a second axis (y-axis) and a tilt mark, and the tilt mark indicates the tilt direction of the target object. In this embodiment, the x-axis and y-axis of the adjustment coordinate system are used to indicate the tilt direction of the electronic device, the extension direction of the x-axis is consistent with the extension direction of the first side wall of the electronic device, the extension direction of the y-axis is consistent with the extension direction of the second side wall of the electronic device, and the first side wall and the second side wall are two adjacent side walls of the electronic device. It should be noted that the tilt mark in the embodiment of the present application is a text, symbol, image, etc. used to indicate information, and a control or other container can be used as a carrier for displaying information, including but not limited to a text mark, a symbol mark, and an image mark.

[0064] For example, Figure 6 The extending direction of the x-axis is consistent with the extending direction of the upper and lower frames of the electronic device, and the extending direction of the y-axis is consistent with the extending direction of the left and right frames of the electronic device. The tilt mark 603 indicates the tilt direction of the target object 601 .

[0065] It should be noted that, when the electronic device is tilted, the tilt direction of the tilt mark of the adjustment coordinate system is consistent with the tilt direction of the target object. When the electronic device is not tilted, the tilt mark of the adjustment coordinate system can coincide with the first axis (x-axis) or the second axis (y-axis).

[0066] In this embodiment, during the process of recording a video, when the electronic device is tilted, the display angle of the first video preview image changes relative to the electronic device, and the first video preview image obtained by the electronic device is tilted, that is, the photographed object in the first video preview image is also tilted. Based on this, in response to the user's third input to the target object, the adjusted coordinate system of the target object is displayed, so that the user can intuitively observe the tilt direction of the target object, and use the target object as a reference, and perform angle correction processing on the first video preview image according to the change in the display angle of the target object, and the accuracy of the correction can be adjusted.

[0067] In some optional embodiments, displaying the adjusted coordinate system corresponding to the target object may include: acquiring the tilt direction of the electronic device through a first sensor; determining the tilt direction of the target object according to the tilt direction of the electronic device; and displaying the adjusted coordinate system corresponding to the target object according to the tilt direction of the target object. The first sensor is used to detect the tilt direction of the electronic device, and the first sensor may be, for example, a gyroscope.

[0068] In this embodiment, during the process of recording a video, when the electronic device is tilted, the display angle of the first video preview image changes relative to the electronic device, and the first video preview image obtained by the electronic device is tilted, that is, the photographed object in the first video preview image is also tilted. Based on this, the tilt direction of the target object can be determined according to the tilt direction of the electronic device. For example, if the electronic device is tilted to the right, the first video preview image is tilted to the left relative to the electronic device, and the target object of the first video preview image is also tilted to the left.

[0069] In this embodiment, displaying the adjustment coordinate system corresponding to the target object may be displaying the adjustment coordinate system corresponding to the target object in the first area. The first area may be an area near the target object. The first area may be determined according to the position of the target object in the first video preview image.

[0070] For example, please see Figure 6 , which is a schematic diagram of an adjustment coordinate system of a target object in an embodiment of the present application. Specifically, when the electronic device is tilted to the left, the first video preview image is tilted to the right relative to the electronic device, and the target object 601 of the first video preview image is also tilted to the right. In response to the user's third input to the target object 601, an adjustment coordinate system 602 is displayed near the target object 601. The tilt direction of the tilt mark 603 of the adjustment coordinate system 602 indicates the tilt direction of the target object 601. The extension direction of the x-axis of the adjustment coordinate system 602 is consistent with the extension direction of the bottom edge 604 of the electronic device, and the extension direction of the y-axis of the adjustment coordinate system 602 is consistent with the extension direction of the side edge 605 of the electronic device.

[0071] In some embodiments of the present application, receiving a first input from a user on the shooting preview interface includes: receiving a first input from a user on the tilt indicator, where the first input is used to rotate the tilt indicator.

[0072] The performing angle correction processing on the first video preview image displayed on the shooting preview interface to obtain the second video preview image may further include: obtaining a rotation parameter of the tilt indicator; and rotating the first video preview image according to the rotation parameter to obtain the second video preview image.

[0073] In this embodiment, the first input may be an input of rotating the tilt indicator toward the first axis, or may be an input of rotating the tilt indicator toward the second axis.

[0074] In this embodiment, the rotation parameters of the tilt mark may include a rotation direction and a rotation angle. Rotating the first video preview image according to the rotation parameters may be rotating the first video preview image according to the rotation direction and the rotation angle. The rotation direction may be the rotation direction of the tilt mark. When the tilt mark rotates toward the first axis, the rotation angle may be the angle between the tilt mark and the first axis. When the tilt mark rotates toward the second axis, the rotation angle may be the angle between the tilt mark and the second axis.

[0075] For example, please see Figure 6 After the adjustment coordinate system 602 is displayed on the shooting preview interface, if the user moves the tilt mark in the direction of the x-axis, the first video preview image is rotated in a clockwise direction according to the angle between the tilt mark and the x-axis, so that the display angle of the first video preview image is consistent with the direction when the electronic device is in a horizontal screen. If the user moves the tilt mark in the direction of the y-axis, the first video preview image is rotated in a counterclockwise direction according to the angle between the tilt mark and the y-axis, so that the display angle of the first video preview image is consistent with the direction when the electronic device is in a vertical screen.

[0076] In the embodiment of the present application, the target object in the first video preview image is used as a reference object, so that the tilt degree of the first video preview image can be more intuitively displayed, and during the adjustment process, it is convenient for the user to observe the correction degree of the first video preview image, thereby improving the adjustment accuracy. In addition, according to the first axis and the second axis provided by the adjustment coordinate system of the target object, the user does not need to make adjustments by observation. By rotating the tilt mark, the angle of the first video preview image can be corrected, which is easy to operate and can improve the accuracy of the correction.

[0077] In some embodiments of the present application, performing angle correction processing on the first video preview image displayed on the shooting preview interface to obtain a second video preview image may further include: performing angle correction processing on a local image in the first video preview image to obtain a second video preview image.

[0078] In this embodiment, the angle correction processing can be performed on the local image in the first video preview image, and the processing method is more flexible. In addition, the user can select the local image in the first video preview image for angle correction according to actual needs, and can obtain target videos with different effects, which increases the interest of video recording.

[0079] In some optional embodiments, the local image in the first video preview image may be an image region including the target object. In a specific implementation, a click input of a user on the target object in the first video preview image is received, and in response to the click input on the target object, the image region where the target object is located is determined according to the contour of the target object; when the first video preview image is subjected to angle correction processing, the image region where the target object is located is subjected to angle correction processing.

[0080] In some other optional embodiments, the partial image in the first video preview image may be an image area selected by the user. In a specific implementation, a touch input of the user to the first video preview image is received; in response to the touch input, a touch position is obtained; an image area is determined according to the touch position and a preset image size; when an angle correction process is performed on the first video preview image, an angle correction process is performed on the determined image area.

[0081] In this embodiment, the touch position may be the coordinates of the position clicked by the user. The preset image size may be the size of the image area, for example, a rectangular area of ​​100×100.

[0082] Exemplarily, a rectangular coordinate system is established with the lower left corner of the first video preview image as the coordinate origin, and a user's touch input to the first video preview image is received. In response to the touch input, the coordinates of the position where the user clicks (200, 200) are obtained, and the image area is determined based on the coordinates of the position where the user clicks and the preset image size (a rectangular area of ​​100×100). That is, based on the touch screen point (200, 200), the four coordinate points of the image area obtained are (150, 150), (250, 150), (250, 250) and (150, 250).

[0083] In this embodiment, multiple directions for determining the local image are provided, which are more flexible to use and can meet different needs of users.

[0084] In some embodiments of the present application, the first video preview image displayed on the shooting preview interface is subjected to angle correction processing to obtain the second video preview image, which may be to obtain the original image data corresponding to the first video preview image, and to perform angle correction processing on the original image data to obtain the second video preview image. In this way, the quality of the image after angle correction can be improved, so that the recorded video has a better display effect.

[0085] After step 2200, step 2300 is executed to perform video recording based on the second video preview image and output a target video, wherein the display angle of the target video is the same as the display angle of the second video preview image.

[0086] In an embodiment of the present application, a first input from a user to a shooting preview interface is received; in response to the first input, an angle correction process is performed on a first video preview image displayed on the shooting preview interface to obtain a second video preview image, and video recording is performed based on the second video preview image to output a target video. In this way, during the video recording process, if the electronic device is tilted, the angle of the first video preview image can be corrected according to the degree of tilt of the electronic device, so that the display angle of the corrected second video preview image is consistent with the tilt angle of the electronic device, thereby ensuring that the target video finally obtained will not have a tilted display angle, and the recording quality of the video can be improved.

[0087] It should be noted that the recording method provided in the embodiment of the present application can be performed by a recording device or a control module in the recording device for performing the recording method. In the embodiment of the present application, the recording method performed by the recording device is taken as an example to illustrate the recording device provided in the embodiment of the present application.

[0088] Corresponding to the above embodiment, see Figure 7 The embodiment of the present application further provides a video recording device 700 , which includes a first receiving module 701 , a correction module 702 and a recording module 703 .

[0089] The first receiving module 701 is used to receive a first input from a user on the shooting preview interface;

[0090] The correction module 702 is used to perform angle correction processing on the first video preview image displayed on the shooting preview interface in response to the first input to obtain a second video preview image;

[0091] The recording module 703 is used to perform video recording based on the second video preview image and output a target video, wherein a display angle of the target video is the same as a display angle of the second video preview image.

[0092] In an embodiment of the present application, a first input from a user to a shooting preview interface is received; in response to the first input, an angle correction process is performed on a first video preview image displayed on the shooting preview interface to obtain a second video preview image, and video recording is performed based on the second video preview image to output a target video. In this way, during the video recording process, if the electronic device is tilted, the angle of the first video preview image can be corrected according to the degree of tilt of the electronic device, so that the display angle of the corrected second video preview image is consistent with the tilt angle of the electronic device, thereby ensuring that the target video finally obtained will not have a tilted display angle, and the recording quality of the video can be improved.

[0093] In some embodiments, the recording device 700 also includes: a second receiving module for receiving a second input from a user; an acquisition module for acquiring a correction step in response to the second input; the correction module includes: a first correction unit for rotating the first video preview image according to a rotation angle corresponding to the correction step to obtain a second video preview image.

[0094] In an embodiment of the present application, a user can select a correction step size according to actual needs, and rotate the first video preview image according to the rotation angle corresponding to the correction step size to obtain a second video preview image. In this way, performing angle correction processing on the first video preview image according to a larger correction step size can improve processing efficiency, and performing angle correction processing on the first video preview image according to a smaller correction step size can improve correction accuracy, thereby meeting different user needs and making operation more flexible.

[0095] In some embodiments, the correction step size includes a first correction step size and a second correction step size, and the first correction step size is larger than the second correction step size; the first correction unit is specifically used to: rotate the first video preview image according to the first correction step size to obtain a third video preview image; rotate the third video preview image according to the second correction step size to obtain the second video preview image.

[0096] In an embodiment of the present application, when the first video preview image is angle corrected according to the correction step size, when the first preview video image is severely tilted, a larger correction step size can be selected for adjustment, and then a smaller correction step size can be selected for fine-tuning. In this way, the correction accuracy can be improved while ensuring the processing efficiency.

[0097] In some embodiments, the first video preview image includes a target object; the video recording device 700 also includes: a third receiving module, used to receive a third input from a user regarding the target object; a display module, used to display an adjusted coordinate system corresponding to the target object in response to the third input; wherein the adjusted coordinate system includes a first axis, a second axis and a tilt indicator, and the tilt indicator indicates a tilt direction of the target object.

[0098] In this embodiment, during the process of recording a video, when the electronic device is tilted, the display angle of the first video preview image changes relative to the electronic device, and the first video preview image obtained by the electronic device is tilted, that is, the photographed object in the first video preview image is also tilted. Based on this, in response to the user's third input to the target object, the adjusted coordinate system of the target object is displayed, so that the user can intuitively observe the tilt direction of the target object, and use the target object as a reference, and perform angle correction processing on the first video preview image according to the change in the display angle of the target object, and the accuracy of the correction can be adjusted.

[0099] In some embodiments, the first receiving module 701 includes: a first receiving unit, used to receive a first input from a user to the tilt identifier, wherein the first input is used to rotate the tilt identifier; the correction module includes: an acquisition unit, used to acquire a rotation parameter of the tilt identifier; and a third correction unit, used to rotate the first video preview image according to the rotation parameter to obtain a second video preview image.

[0100] In the embodiment of the present application, the target object in the first video preview image is used as a reference object, so that the tilt degree of the first video preview image can be more intuitively displayed, and during the adjustment process, it is convenient for the user to observe the correction degree of the first video preview image, thereby improving the adjustment accuracy. In addition, according to the first axis and the second axis provided by the adjustment coordinate system of the target object, the user does not need to make adjustments by observation. By rotating the tilt mark, the angle of the first video preview image can be corrected, which is easy to operate and can improve the accuracy of the correction.

[0101] In some embodiments, the correction module 702 includes: a second correction unit, configured to perform angle correction processing on a local image in the first video preview image to obtain a second video preview image.

[0102] In this embodiment, the angle correction processing can be performed on the local image in the first video preview image, and the processing method is more flexible. In addition, the user can select the local image in the first video preview image for angle correction according to actual needs, and can obtain target videos with different effects, which increases the interest of video recording.

[0103] The video recording device in the embodiment of the present application may be a device, or a component, integrated circuit, or chip in a terminal. The device may be a mobile electronic device. For example, the mobile electronic device may 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., which is not specifically limited in the embodiment of the present application.

[0104] 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.

[0105] The video recording device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0106] Corresponding to the above embodiment, optionally, as 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.

[0107] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device described above.

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

[0109] 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.

[0110] 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. 9The 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.

[0111] Among them, the user input unit 907 is used to receive a first input from a user on the shooting preview interface; the processor 910 is used to: in response to the first input, perform angle correction processing on the first video preview image displayed on the shooting preview interface to obtain a second video preview image; based on the second video preview image, perform video recording and output the target video, and the display angle of the target video is the same as the display angle of the second video preview image.

[0112] In an embodiment of the present application, a first input from a user to a shooting preview interface is received; in response to the first input, an angle correction process is performed on a first video preview image displayed on the shooting preview interface to obtain a second video preview image, and video recording is performed based on the second video preview image to output a target video. In this way, during the video recording process, if the electronic device is tilted, the angle of the first video preview image can be corrected according to the degree of tilt of the electronic device, so that the display angle of the corrected second video preview image is consistent with the tilt angle of the electronic device, thereby ensuring that the target video finally obtained will not have a tilted display angle, and the recording quality of the video can be improved.

[0113] Optionally, before receiving the user's first input to the shooting preview interface, the user input unit 907 is used to: receive the user's second input; the processor 910 is used to: obtain a correction step in response to the second input: when the processor 910 performs angle correction processing on the first video preview image displayed on the shooting preview interface to obtain a second video preview image, the processor 910 is used to: rotate the first video preview image according to the rotation angle corresponding to the correction step to obtain a second video preview image.

[0114] In an embodiment of the present application, a user can select a correction step size according to actual needs, and rotate the first video preview image according to the rotation angle corresponding to the correction step size to obtain a second video preview image. In this way, performing angle correction processing on the first video preview image according to a larger correction step size can improve processing efficiency, and performing angle correction processing on the first video preview image according to a smaller correction step size can improve correction accuracy, thereby meeting different user needs and making operation more flexible.

[0115] Optionally, the correction step size includes a first correction step size and a second correction step size, and the first correction step size is larger than the second correction step size; when the processor 910 rotates the first video preview image according to the rotation angle corresponding to the correction step size to obtain the second video preview image, it is used to: rotate the first video preview image according to the first correction step size to obtain a third video preview image; rotate the third video preview image according to the second correction step size to obtain the second video preview image.

[0116] In an embodiment of the present application, when the first video preview image is angle corrected according to the correction step size, when the first preview video image is severely tilted, a larger correction step size can be selected for adjustment, and then a smaller correction step size can be selected for fine-tuning. In this way, the correction accuracy can be improved while ensuring the processing efficiency.

[0117] Optionally, the first video preview image includes a target object; the user input unit 907 is used to: receive a third input from the user to the target object before receiving the first input from the user to the shooting preview interface; the display unit 906 is used to: display an adjusted coordinate system corresponding to the target object in response to the third input; wherein the adjusted coordinate system includes a first axis, a second axis and a tilt identifier, and the tilt identifier indicates the tilt direction of the target object.

[0118] In this embodiment, during the process of recording a video, when the electronic device is tilted, the display angle of the first video preview image changes relative to the electronic device, and the first video preview image obtained by the electronic device is tilted, that is, the photographed object in the first video preview image is also tilted. Based on this, in response to the user's third input to the target object, the adjusted coordinate system of the target object is displayed, so that the user can intuitively observe the tilt direction of the target object, and use the target object as a reference, and perform angle correction processing on the first video preview image according to the change in the display angle of the target object, and the accuracy of the correction can be adjusted.

[0119] Optionally, when the user input unit 907 receives a first input from the user on the shooting preview interface, it is used to: receive a first input from the user on the tilt indicator, wherein the first input is used to rotate the tilt indicator; when the processor 910 performs angle correction processing on the first video preview image displayed on the shooting preview interface to obtain a second video preview image, it is used to: obtain rotation parameters of the tilt indicator; rotate the first video preview image according to the rotation parameters to obtain a second video preview image.

[0120] In the embodiment of the present application, the target object in the first video preview image is used as a reference object, so that the tilt degree of the first video preview image can be more intuitively displayed, and during the adjustment process, it is convenient for the user to observe the correction degree of the first video preview image, thereby improving the adjustment accuracy. In addition, according to the first axis and the second axis provided by the adjustment coordinate system of the target object, the user does not need to make adjustments by observation. By rotating the tilt mark, the angle of the first video preview image can be corrected, which is easy to operate and can improve the accuracy of the correction.

[0121] Optionally, when the processor 910 performs angle correction processing on the first video preview image displayed on the shooting preview interface to obtain the second video preview image, it is used to: perform angle correction processing on a local image in the first video preview image to obtain the second video preview image.

[0122] In this embodiment, the angle correction processing can be performed on the local image in the first video preview image, and the processing method is more flexible. In addition, the user can select the local image in the first video preview image for angle correction according to actual needs, and can obtain target videos with different effects, which increases the interest of video recording.

[0123] 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.

[0124] 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.

[0125] 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.

[0126] 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.

[0127] 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.

[0128] 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.

[0129] 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.

[0130] 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, characterized in that: The method comprises: receiving a third input from the user regarding the target object; In response to the third input, an adjustment coordinate system corresponding to the target object is displayed; wherein the adjustment coordinate system includes a first axis, a second axis and a tilt mark, and the tilt mark indicates a tilt direction of the target object; receiving a first input from a user on the tilt mark, wherein the first input is used to rotate the tilt mark; In response to the first input, obtaining a rotation parameter of the tilt indicator; Rotate the first video preview image according to the rotation parameter to obtain a second video preview image; Based on the second video preview image, perform video recording and output a target video, wherein a display angle of the target video is the same as a display angle of the second video preview image; Wherein, the first video preview image includes the target object.

2. The method according to claim 1, characterized in that Before receiving a first input of the tilt indicator by a user, the method further includes: receiving a second input from the user; In response to the second input, obtaining a correction step length; The step of rotating the first video preview image according to the rotation parameter to obtain the second video preview image includes: The first video preview image is rotated according to the rotation angle corresponding to the correction step length to obtain a second video preview image.

3. The method according to claim 2, characterized in that The correction step length includes a first correction step length and a second correction step length, wherein the first correction step length is greater than the second correction step length; The step of rotating the first video preview image according to the rotation angle corresponding to the correction step length to obtain the second video preview image includes: Rotating the first video preview image according to the first correction step length to obtain a third video preview image; The third video preview image is rotated according to the second correction step length to obtain the second video preview image.

4. The method according to claim 1, characterized in that: The step of rotating the first video preview image according to the rotation parameter to obtain the second video preview image includes: Angle correction processing is performed on the local image in the first video preview image to obtain a second video preview image.

5. A video recording device, characterized in that: include: A first receiving module, used to receive a first input from a user on the shooting preview interface; a correction module, configured to perform angle correction processing on the first video preview image displayed on the shooting preview interface in response to the first input, so as to obtain a second video preview image; A recording module, configured to perform video recording based on the second video preview image and output a target video, wherein a display angle of the target video is the same as a display angle of the second video preview image; Wherein, the first video preview image includes a target object; and the device further includes: A third receiving module, used to receive a third input of the user on the target object; A display module, configured to display an adjustment coordinate system corresponding to the target object in response to the third input; Wherein, the adjustment coordinate system includes a first axis, a second axis and a tilt mark, and the tilt mark indicates a tilt direction of the target object; The first receiving module comprises: A first receiving unit, configured to receive a first input from a user on the tilt mark, wherein the first input is used to rotate the tilt mark; The correction module comprises: An acquisition unit, used for acquiring a rotation parameter of the tilt indicator; The third correction unit is used to rotate the first video preview image according to the rotation parameter to obtain a second video preview image.

6. The device according to claim 5, characterized in that The device also includes: A second receiving module, used to receive a second input from a user; An acquisition module, configured to acquire a correction step length in response to the second input; The correction module comprises: The first correction unit is used to rotate the first video preview image according to the rotation angle corresponding to the correction step length to obtain a second video preview image.

7. The device according to claim 5, characterized in that The correction module comprises: The second correction unit is used to perform angle correction processing on the local image in the first video preview image to obtain a second video preview image.

8. 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 4.

9. 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 4 are implemented.

Citation Information

Patent Citations

  • Photographing method, and mobile terminal

    CN107809594A

  • Auto picture alignment correction

    US20140211031A1