Photographing method and apparatus therefor

By adjusting the area size and field of view of the shooting device, the problem of poor photo quality in the horizon shooting mode was solved, a larger field of view shooting effect was achieved, and the ability to retain content in the photos was improved.

CN116366966BActive Publication Date: 2026-03-03VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310339592.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2026-03-03
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

When shooting architecture from a low angle, using the horizon shooting mode results in poor photo quality, a small field of view, and an inability to retain much content.

Method used

By displaying a preview image in the first area during shooting mode, receiving user input to adjust the area size, adjusting the camera's field of view, displaying the corrected target image, and receiving shooting input to store the image.

Benefits of technology

Increase the camera's field of view to retain more content in the shooting scene and improve photo quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116366966B_ABST
    Figure CN116366966B_ABST
Patent Text Reader

Abstract

The application discloses a photographing method and device, and belongs to the field of image processing. The photographing method comprises the following steps: in the case of entering a photographing mode, displaying a first preview image in a first area and displaying a first target image in a second area, wherein the first target image is an image after the first preview image is corrected, and the collection angle of view of the preview image is positively correlated with the size of the first area; receiving a first input; in response to the first input, adjusting the size of the first area, displaying a second preview image after the collection angle of view is adjusted in the first area, and displaying a second target image in the second area, wherein the second target image is an image after the second preview image is corrected; receiving a photographing input; and in response to the photographing input, photographing and storing the second target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of image processing technology, specifically relating to a shooting method and apparatus. Background Technology

[0002] Using the camera to record life has become one of the main uses of mobile devices such as smartphones, and architectural scenes account for a very high proportion of daily photography. When a photographer is standing on the ground and shooting a target building, if they are close to the building, they need to raise their phone to shoot from a low angle to capture the entire building. When shooting from a low angle, the camera's imaging plane will form a certain angle with the side facade of the building, thus producing a perspective distortion effect. That is, the originally vertical lines of the building will appear to converge upwards and lean backwards, making it impossible to present the original vertical shape of the building.

[0003] In related technologies, in order to make the originally vertical buildings in the image appear vertical, the horizon camera mode is usually used to shoot, so as to perform perspective correction on the vertical buildings.

[0004] However, if the phone is tilted beyond a certain pitch angle when shooting in horizon mode, the field of view of the resulting image will be small, failing to retain much of the scene and resulting in poor photo quality. Summary of the Invention

[0005] The purpose of this application is to provide a shooting method and apparatus that can solve the problem of poor photo quality.

[0006] In a first aspect, embodiments of this application provide a shooting method, including:

[0007] When the shooting mode is entered, a first preview image is displayed in the first area and a first target image is displayed in the second area. The first target image is a corrected version of the first preview image, and the acquisition angle of the preview image is positively correlated with the size of the first area.

[0008] Receive the first input;

[0009] In response to the first input, the size of the first region is adjusted, a second preview image after the acquisition viewpoint adjustment is displayed in the first region, and a second target image is displayed in the second region, wherein the second target image is the image after the second preview image is corrected;

[0010] Receive camera input;

[0011] In response to the shooting input, capture and store the image of the second target.

[0012] Secondly, embodiments of this application provide a shooting device, including:

[0013] The first display module is used to display a first preview image in a first area and a first target image in a second area when entering the shooting mode. The first target image is a corrected version of the first preview image, and the acquisition angle of the preview image is positively correlated with the size of the first area.

[0014] The first receiving module is used to receive the first input;

[0015] The second display module is used to adjust the size of the first area in response to the first input, display the second preview image after the acquisition viewpoint is adjusted in the first area, and display the second target image in the second area, wherein the second target image is the image after the second preview image is corrected;

[0016] The second receiving module is used to receive shooting input;

[0017] The imaging module is used to capture and store a second target image in response to an imaging input.

[0018] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0019] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0020] Fifthly, embodiments of this application provide a chip including 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 steps of the method described in the first aspect.

[0021] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, the program product being executed by at least one processor to implement the steps of the method described in the first aspect.

[0022] In this embodiment, when entering shooting mode, a first preview image is displayed in a first area, and a first target image is displayed in a second area. The first target image is a corrected version of the first preview image, and the acquisition angle of the preview image is positively correlated with the size of the first area. A first input is received; in response to the first input, the size of the first area is adjusted, and a second preview image with the adjusted acquisition angle is displayed in the first area, while a second target image is displayed in the second area. The second target image is a corrected version of the second preview image. A shooting input is received; in response to the shooting input, the second target image is captured and stored. Thus, when the size of the first area increases, the field of view of the electronic device's camera increases, and the image acquisition range of the camera increases, resulting in a larger field of view for the final image. This allows for the retention of more content in the shooting scene, improving photo quality. Attached Figure Description

[0023] Figure 1 This is a flowchart illustrating the shooting method provided in an embodiment of this application;

[0024] Figure 2a This is a schematic diagram showing the first preview image and the first target image provided in an embodiment of this application;

[0025] Figure 2b This is a schematic diagram showing the second preview image and the second target image provided in an embodiment of this application;

[0026] Figure 3 This is a schematic diagram of the center-cropped image provided in an embodiment of this application;

[0027] Figure 4a This is a schematic diagram of the tilt angle before adjustment provided in the embodiments of this application;

[0028] Figure 4b This is a schematic diagram showing the tilt angle after adjustment provided in an embodiment of this application;

[0029] Figure 5 This is a schematic diagram of the imaging device provided in the embodiments of this application;

[0030] Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;

[0031] Figure 7 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application. Detailed Implementation

[0032] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0033] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0034] The following description, in conjunction with the accompanying drawings, details the imaging method and apparatus provided in this application through specific embodiments and application scenarios.

[0035] Figure 1 This is a schematic flowchart of the shooting method provided in an embodiment of this application. The shooting method may include:

[0036] Step 101: When entering shooting mode, display a first preview image in the first area and a first target image in the second area, wherein the first target image is a corrected version of the first preview image, and the acquisition angle of the preview image is positively correlated with the size of the first area.

[0037] In some possible implementations of the embodiments of this application, the shooting mode in the embodiments of this application can be a horizon shooting mode, wherein the horizon shooting mode is a photography mode in which the image displayed in the second area remains horizontal relative to the horizon. The target image is the image obtained after correcting the preview image using the image correction algorithm corresponding to the horizon shooting mode. The embodiments of this application do not elaborate on the process of correcting the preview image using the image correction algorithm; for details, please refer to the correction process in related technologies.

[0038] The positive correlation between the acquisition angle of the preview image and the size of the first region means that the acquisition angle of the preview image increases as the size of the first region increases, and decreases as the size of the first region decreases.

[0039] In some possible implementations of the embodiments of this application, the first region and the second region can be regions on the screen in shooting mode.

[0040] For example, such as Figure 2a As shown. Figure 2a This is a schematic diagram illustrating the display of a first preview image and a first target image provided in an embodiment of this application. Figure 2a In the first region 21, a first preview image 201 is displayed, and in the second region 22, a first target image 211 is displayed.

[0041] Step 102: Receive the first input.

[0042] In some possible implementations of the embodiments of this application, the first input in the embodiments of this application is used to adjust the size of the first area. Exemplarily, the first input includes, but is not limited to: touch input from a user via a touch device such as a finger or stylus to a control for adjusting the size of the first area, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and the embodiments of this application do not limit this. For example, the first input can be a click input from the user on a control displayed on the first area for adjusting the size of the first area.

[0043] In some possible implementations of this application, when the first input is a touch input from a user to a control used to adjust the size of the first area via a touch device such as a finger or stylus, step 102 may include: receiving touch input to the first control, which is used to adjust the size of the first area.

[0044] In some possible implementations of the embodiments of this application, the first control in the embodiments of this application may be an addition or subtraction control.

[0045] In some possible implementations of embodiments of this application, step 102 may include: receiving drag input on the border of the first region.

[0046] In this embodiment of the application, the size of the first region can be adjusted by dragging the border of the first region.

[0047] Step 103: In response to the first input, adjust the size of the first region, display the second preview image after the acquisition viewpoint adjustment in the first region, and display the second target image in the second region, wherein the second target image is the image after the second preview image is corrected.

[0048] When the size of the first area is adjusted, the field of view of the camera in the electronic device changes, the image acquisition range of the camera changes, and consequently, the images displayed in the first and second areas also change. For example... Figure 2b As shown, Figure 2b This diagram illustrates the images displayed in the first and second regions after the first region has been resized. Figure 2bIn the first region 21, a second preview image 202 is displayed, and in the second region 22, a second target image 212 is displayed.

[0049] Step 104: Receive shooting input.

[0050] In some possible implementations of the embodiments of this application, the shooting input in the embodiments of this application is used for shooting and storing images. Exemplarily, the shooting input includes, but is not limited to: touch input by the user via a touch device such as a finger or stylus to controls used for shooting and storing images, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and the embodiments of this application do not limit this. For example, the shooting input can be a click input by the user on controls displayed on the first area for shooting and storing images.

[0051] Step 105: In response to the shooting input, capture and store the second target image.

[0052] In this embodiment, when entering shooting mode, a first preview image is displayed in a first area, and a first target image is displayed in a second area. The first target image is a corrected version of the first preview image. The acquisition angle of the preview image is positively correlated with the size of the first area. The first and second areas are areas on the screen in shooting mode. A first input is received. In response to the first input, the size of the first area is adjusted, and a second preview image with the adjusted acquisition angle is displayed in the first area. A second target image is displayed in the second area, and the second target image is a corrected version of the second preview image. A shooting input is received. In response to the shooting input, the second target image is captured and stored. Thus, when the size of the first area increases, the field of view of the electronic device's camera increases, and the image acquisition range of the camera increases, resulting in a larger field of view for the final image. This allows more content in the shooting scene to be retained, improving photo quality.

[0053] In some possible implementations of the embodiments of this application, when taking a picture using the horizon shooting mode, the preview image is usually cropped using the center cropping method. Then, the cropped image is input into the image correction algorithm corresponding to the horizon shooting mode to obtain an image that remains horizontal relative to the horizon.

[0054] For example, such as Figure 3 As shown, Figure 3 This is a schematic diagram of a center-cropped image provided in an embodiment of this application. Figure 3 In the image, the aspect ratio of the center-cropped image is y:x, where the aspect ratio can be set according to actual needs. Let the center-cropped size be 2x * 2y. Then in... Figure 3In, EF=BD-y=EG+GF, EG=1 / 2*AB*tan∠BAC, GF=x*tan∠BAC, then:

[0055] y=BD-1 / 2*AB*tan∠BAC)-x tan∠BAC.

[0056] Where EF is the distance between points E and F, BD is the distance between points B and D, EG is the distance between points E and G, GF is the distance between points G and F, EG is the distance between points E and G, AB is the distance between points A and B, tan is the tangent, ∠BAC is the angle between sides BA and CA, x is half the height of the cutting dimension, and y is half the width of the cutting dimension.

[0057] When BD increases, AB, ∠BAC, and x remain unchanged, while y increases as BD increases. Consequently, the image size input into the image conversion algorithm corresponding to the horizon shooting mode increases. With the perspective correction angle remaining unchanged, the field of view of the final image increases, allowing more content from the shooting scene to be retained in the photo, thus improving photo quality.

[0058] In some possible implementations of the embodiments of this application, the second region includes a second control, which is used to adjust the tilt angle of the second target image relative to the horizon; after step 103 and before step 104, the shooting method provided in the embodiments of this application may further include: receiving a second input to the second control; in response to the second input, displaying a third target image in the second region, wherein the third target image is an image obtained by adjusting the second target image with the tilt angle corresponding to the second input.

[0059] In some possible implementations of the embodiments of this application, the second control in the embodiments of this application can be a scroll bar control. Accordingly, the second input in the embodiments of this application is the user's drag input of the scroll bar slider of the scroll bar control through a touch device such as a finger or stylus.

[0060] For example, such as Figure 4a and Figure 4b As shown. Figure 4a The image shown in the second area before the tilt angle was adjusted is displayed. Figure 4b The image displayed in the second region after tilt angle adjustment is shown. Specifically, before tilt angle adjustment, a second target image 212 is displayed in the second region 22. When the scroll bar slider 401 of the scroll bar 40 is dragged, the tilt angle is adjusted, and a third target image 213 is displayed in the second region 22 after tilt angle adjustment. Figure 4a and Figure 4bIn the middle, the scroll bar 40 includes two moving bars, namely scroll bar X and scroll bar Y. Scroll bar X is used to adjust the tilt angle of the second target image relative to the horizon, and scroll bar Y is used to adjust the tilt angle of the second target image relative to the vertical line of the horizon.

[0061] In some possible implementations of the embodiments of this application, in the initial state, the scroll bar slider can be located in the middle position of the scroll bar control. When the slider of scroll bar X is dragged to the right, the image to the left of the vertical center line of the second target image shifts to the right, and the image to the right of the vertical center line shifts to the left; when the slider of scroll bar X is dragged to the left, the image to the left of the vertical center line of the second target image shifts to the left, and the image to the right of the vertical center line shifts to the right; when the slider of scroll bar Y is dragged to the right, the image above the horizontal center line of the second target image shifts downward, and the image below the horizontal center line shifts upward; when the slider of scroll bar Y is dragged to the left, the image above the horizontal center line of the second target image shifts upward, and the image below the horizontal center line shifts downward.

[0062] In some possible implementations of this application's embodiments, after adjusting the tilt angle of the second target image, the third target image displayed in the second area may differ significantly from the second preview image. In this case, relying solely on image cropping in horizon photography mode may reduce image quality. Therefore, after step 103, the shooting method provided in this application's embodiments may further include: displaying a prompt message corresponding to the tilt angle in the first area, wherein the prompt message is used to prompt adjustment of the electronic device's movement direction.

[0063] For example, when the scroll bar slider is dragged to the right to 1°, the image to the left of the center line of the second target image shifts 1° to the right, and the image to the right of the center line shifts 1° to the left. Simultaneously, a prompt message corresponding to +1° is displayed in the first area. When the scroll bar slider is dragged to the left to 1°, the image to the left of the center line of the second target image shifts 1° to the left, and the image to the right of the center line shifts 1° to the right. Simultaneously, a prompt message corresponding to -1° is displayed in the first area. For example, the prompt message corresponding to +1° is "Please move the electronic device upwards," and the prompt message corresponding to -1° is "Please move the electronic device downwards."

[0064] It should be noted that the prompts for each tilt angle can be set according to actual needs.

[0065] In this embodiment of the application, by displaying prompt information corresponding to the tilt angle to guide the user to adjust the movement direction of the electronic device, the electronic device can reach a new position to capture images. This can achieve image correction in horizon shooting mode with minimal loss of image quality, resulting in better shooting effects.

[0066] In some possible implementations of the embodiments of this application, the shooting method provided in the embodiments of this application may further include: storing a second preview image; upon receiving a third input to edit the second preview image, in response to the third input, displaying the second preview image in a third area, displaying a fourth target image and a third control in a fourth area, wherein the fourth target image is a corrected version of the second preview image, and the third control is used to adjust the tilt angle of the fourth target image relative to the horizon; receiving a fourth input to the third control; in response to the fourth input, displaying a fifth target image in the fourth area, wherein the fifth target image is an image obtained by adjusting the fourth target image with the tilt angle corresponding to the fourth input; receiving a fifth input; and in response to the fifth input, storing the fifth target image.

[0067] In some possible implementations of the embodiments of this application, the second target image can be stored at the same time as the second preview image after receiving the shooting input, or the second preview image can be stored after the second target image is stored, or the second preview image can be stored after receiving the input for storing the second preview image.

[0068] In some possible implementations of the embodiments of this application, the third input provided in the embodiments of this application is used to initiate an image editing mode. Exemplarily, the third input includes, but is not limited to: touch input by the user via a touch device such as a finger or stylus to the control used to initiate the image editing mode, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and the embodiments of this application do not limit this. For example, the third input can be the user's click input on the editing control corresponding to the second preview image stored in the album.

[0069] In some possible implementations of the embodiments of this application, the third region and the fourth region can be regions on the screen in image editing mode.

[0070] In some possible implementations of the embodiments of this application, the third control in the embodiments of this application can be a scroll bar control. Correspondingly, the fourth input in the embodiments of this application is the user's drag input of the scroll bar slider of the scroll bar control through a touch device such as a finger or stylus.

[0071] The process of adjusting the tilt angle of the fourth target image displayed in the fourth area by the fourth input of the third control is similar to the process of adjusting the tilt angle of the second target image by the second input of the second control. For details, please refer to the above process. This application embodiment will not be described in detail here.

[0072] In some possible implementations of the embodiments of this application, the fifth input provided in the embodiments of this application is used to save a fifth target image. Exemplarily, the fifth input includes, but is not limited to: touch input by the user via a touch device such as a finger or stylus to the control used to save the fifth target image, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and the embodiments of this application do not limit this. For example, the fifth input can be a click input by the user on the control displayed in the image editing interface for saving the fifth target image, wherein the control used to save the fifth target image can be a completion button or a save button, etc.

[0073] For example, in the photo album, the user first selects a second preview image. Then, when the user clicks the image editing control, the second preview image is displayed in the third area, and the fourth target image (i.e., the image after the second preview image is corrected) and the scroll bar control are displayed in the fourth area. When the user drags the scroll bar slider of the scroll bar control, the fifth target image obtained by adjusting the tilt angle corresponding to the scroll bar slider drag is displayed in the fourth area. When the user clicks the finish control, the fifth target image is saved.

[0074] In this embodiment of the application, the user can perform secondary editing on the second preview image to obtain an image that meets the user's needs.

[0075] The shooting method provided in this application can be executed by a shooting device. This application uses a shooting device executing the shooting method as an example to illustrate the shooting device provided in this application.

[0076] Figure 5 This is a schematic diagram of the imaging device provided in an embodiment of this application. The imaging device 500 may include:

[0077] The first display module 501 is used to display a first preview image in a first area and a first target image in a second area when entering the shooting mode, wherein the first target image is a corrected version of the first preview image, and the acquisition angle of the preview image is positively correlated with the size of the first area.

[0078] The first receiving module 502 is used to receive the first input;

[0079] The second display module 503 is used to respond to the first input, adjust the size of the first area, display the second preview image after the acquisition viewpoint adjustment in the first area, and display the second target image in the second area, wherein the second target image is the image after the second preview image is corrected;

[0080] The second receiving module 504 is used to receive shooting input;

[0081] The imaging module 505 is used to capture and store a second target image in response to an imaging input.

[0082] In this embodiment, when entering shooting mode, a first preview image is displayed in a first area, and a first target image is displayed in a second area. The first target image is a corrected version of the first preview image, and the acquisition angle of the preview image is positively correlated with the size of the first area. A first input is received; in response to the first input, the size of the first area is adjusted, and a second preview image with the adjusted acquisition angle is displayed in the first area, while a second target image is displayed in the second area. The second target image is a corrected version of the second preview image. A shooting input is received; in response to the shooting input, the second target image is captured and stored. Thus, when the size of the first area increases, the field of view of the electronic device's camera increases, and the image acquisition range of the camera increases, resulting in a larger field of view for the final image. This allows for the retention of more content in the shooting scene, improving photo quality.

[0083] In some possible implementations of the embodiments of this application, the second receiving module 504 is specifically used for:

[0084] Receive drag input for the border of the first region; or,

[0085] Receive touch input to a first control, wherein the first control is used to adjust the size of a first area.

[0086] In some possible implementations of the embodiments of this application, the second region includes a second control, which is used to adjust the tilt angle of the second target image relative to the horizon; the shooting device 500 provided in the embodiments of this application may further include:

[0087] The third receiving module is used to receive the second input to the second control;

[0088] The third display module is used to display a third target image in the second area in response to the second input, wherein the third target image is an image obtained by adjusting the second target image with a tilt angle corresponding to the second input.

[0089] In some possible implementations of the embodiments of this application, the imaging device 500 provided in the embodiments of this application may further include:

[0090] The fourth display module is used to display prompt information corresponding to the tilt angle in the first area, wherein the prompt information is used to prompt the adjustment of the movement direction of the electronic device.

[0091] In this embodiment of the application, by displaying prompt information corresponding to the tilt angle to guide the user to adjust the movement direction of the electronic device, the electronic device can reach a new position to capture images. This can achieve image correction in horizon shooting mode with minimal loss of image quality, resulting in better shooting effects.

[0092] In some possible implementations of the embodiments of this application, the imaging device 500 provided in the embodiments of this application may further include:

[0093] The first storage module is used to store the second preview image;

[0094] The fifth display module is used to, in response to the third input of editing the second preview image, display the second preview image in a third area, display the fourth target image and the third control in a fourth area, wherein the fourth target image is the corrected image of the second preview image, and the third control is used to adjust the tilt angle of the fourth target image relative to the horizon.

[0095] The fourth receiving module is used to receive the fourth input to the third control;

[0096] The sixth display module is used to display the fifth target image in the fourth region in response to the fourth input, wherein the fifth target image is an image obtained by adjusting the fourth target image with the tilt angle corresponding to the fourth input;

[0097] The fifth receiving module is used to receive the fifth input;

[0098] The second storage module is used to store the fifth target image in response to the fifth input.

[0099] In this embodiment of the application, the user can perform secondary editing on the second preview image to obtain an image that meets the user's needs.

[0100] The shooting device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope.

[0101] The shooting device in this application embodiment can be a device with an operating system. The operating system can be Android, iOS, or other possible operating systems, and this application embodiment does not specifically limit it.

[0102] The imaging device provided in this application embodiment can achieve... Figure 1 To avoid repetition, the various processes implemented in the shooting method embodiment shown in Figure 4 will not be described again here.

[0103] Optionally, such as Figure 6 As shown, this application embodiment also provides an electronic device 600, including a processor 601 and a memory 602. The memory 602 stores a program or instructions that can run on the processor 601. When the program or instructions are executed by the processor 601, they implement the various steps of the above-described shooting method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0104] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0105] Figure 7 This is a schematic diagram of the hardware structure of an electronic device that implements the embodiments of this application.

[0106] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.

[0107] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0108] Display unit 706 is used to display a first preview image in a first area and a first target image in a second area when entering shooting mode, wherein the first target image is a corrected version of the first preview image, and the acquisition angle of the preview image is positively correlated with the size of the first area;

[0109] User input unit 707 is used to receive the first input;

[0110] Processor 710 is used to adjust the size of the first region in response to the first input;

[0111] The display unit 706 is also configured to: display a second preview image after the acquisition viewpoint is adjusted in a first area, and display a second target image in a second area, wherein the second target image is an image after the second preview image is corrected;

[0112] The user input unit 707 is also used for: receiving shooting input;

[0113] The processor 710 is also used to capture and store a second target image in response to the capture input.

[0114] In this embodiment, when entering shooting mode, a first preview image is displayed in a first area, and a first target image is displayed in a second area. The first target image is a corrected version of the first preview image, and the acquisition angle of the preview image is positively correlated with the size of the first area. A first input is received; in response to the first input, the size of the first area is adjusted, and a second preview image with the adjusted acquisition angle is displayed in the first area, while a second target image is displayed in the second area. The second target image is a corrected version of the second preview image. A shooting input is received; in response to the shooting input, the second target image is captured and stored. Thus, when the size of the first area increases, the field of view of the electronic device's camera increases, and the image acquisition range of the camera increases, resulting in a larger field of view for the final image. This allows for the retention of more content in the shooting scene, improving photo quality.

[0115] In some possible implementations of the embodiments of this application, the user input unit 707 may specifically be used for:

[0116] Receive drag input for the border of the first region; or,

[0117] Receive touch input to a first control, wherein the first control is used to adjust the size of a first area.

[0118] In some possible implementations of the embodiments of this application, the second region includes a second control, which is used to adjust the tilt angle of the second target image relative to the horizon; the user input unit 707 can also be used to: receive a second input to the second control;

[0119] Accordingly, the display unit 706 can also be used to: display a third target image in a second area in response to a second input, wherein the third target image is an image obtained by adjusting the second target image with a tilt angle corresponding to the third input.

[0120] In some possible implementations of the embodiments of this application, the display unit 706 may also be used for:

[0121] The first area displays a prompt message corresponding to the tilt angle, which is used to prompt the adjustment of the movement direction of the electronic device.

[0122] In this embodiment of the application, by displaying prompt information corresponding to the tilt angle to guide the user to adjust the movement direction of the electronic device, the electronic device can reach a new position to capture images. This can achieve image correction in horizon shooting mode with minimal loss of image quality, resulting in better shooting effects.

[0123] In some possible implementations of the embodiments of this application, the memory 709 is used to: store a second preview image;

[0124] The user input unit 707 can also be used to: receive a third input for editing the second preview image;

[0125] The display unit 706 can also be used to: in response to a third input, display a second preview image in a third area, display a fourth target image and a third control in a fourth area, wherein the fourth target image is a corrected version of the second preview image, and the third control is used to adjust the tilt angle of the fourth target image relative to the horizon.

[0126] The user input unit 707 can also be used to: receive a fourth input to the third control;

[0127] The display unit 706 can also be used to: display a fifth target image in a fourth region in response to a fourth input, wherein the fifth target image is an image obtained by adjusting the fourth target image with a tilt angle corresponding to the fourth input;

[0128] User input unit 707 can also be used to: receive a fifth input;

[0129] The memory 709 is used to: store the fifth target image in response to the fifth input.

[0130] In this embodiment of the application, the user can perform secondary editing on the second preview image to obtain an image that meets the user's needs.

[0131] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0132] The memory 709 can be used to store software programs and various data. The memory 709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0133] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.

[0134] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described shooting method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0135] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, examples of which include non-transitory computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0136] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described shooting method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0137] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0138] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described shooting method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0139] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0140] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0141] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A photographing method characterized by comprising: The method comprises: in the case of entering a shooting mode, displaying a first preview image in a first region and a first target image in a second region, wherein the first target image is an image corrected from the first preview image, and a collection angle of the preview image is positively correlated with a size of the first region; receiving a first input; in response to the first input, adjusting the size of the first region, displaying a second preview image with an adjusted collection angle in the first region, and displaying a second target image in the second region, wherein the second target image is an image corrected from the second preview image; receiving a shooting input; in response to the shooting input, shooting and storing the second target image.

2. The method of claim 1, wherein, The receiving a first input comprises: receiving a drag input on a frame of the first region; or receiving a touch input on a first control, wherein the first control is used to adjust the size of the first region.

3. The method of claim 1, wherein, The second region comprises a second control used to adjust an inclination angle of the second target image relative to a horizon; after the step of displaying the second target image in the second region and before the step of receiving the shooting input, the method further comprises: receiving a second input on the second control; in response to the second input, displaying a third target image in the second region, wherein the third target image is an image obtained by adjusting the second target image at an inclination angle corresponding to the second input.

4. The method of claim 3, wherein, after displaying the third target image in the second region, the method further comprises: displaying prompt information corresponding to the inclination angle in the first region, wherein the prompt information is used to prompt adjustment of a moving direction of the electronic device.

5. The method of claim 1, wherein, The method further comprises: storing the second preview image; in the case of receiving a third input for editing the second preview image, in response to the third input, displaying the second preview image in a third region, displaying a fourth target image and a third control in a fourth region, wherein the fourth target image is an image corrected from the second preview image, and the third control is used to adjust an inclination angle of the fourth target image relative to the horizon; receiving a fourth input on the third control; in response to the fourth input, displaying a fifth target image in the fourth region, wherein the fifth target image is an image obtained by adjusting the fourth target image at an inclination angle corresponding to the fourth input; receiving a fifth input; in response to the fifth input, storing the fifth target image.

6. An imaging device, characterized by comprising: The apparatus comprises: a first display module, configured to display a first preview image in a first region and a first target image in a second region in the case of entering a shooting mode, wherein the first target image is an image corrected from the first preview image, and a collection angle of the preview image is positively correlated with a size of the first region; a first receiving module, configured to receive a first input; The second display module is configured to, in response to the first input, adjust the size of the first region, display the second preview image after the collection angle adjustment in the first region, and display a second target image in a second region, where the second target image is an image after rectification of the second preview image. The second receiving module is configured to receive a shooting input. The shooting module is configured to, in response to the shooting input, shoot and store the second target image.

7. The apparatus of claim 6, wherein, The second receiving module is specifically configured to: receive a drag input on a frame of the first region; or receive a touch input on a first control, where the first control is configured to adjust the size of the first region.

8. The apparatus of claim 6, wherein, The second region includes a second control configured to adjust an inclination angle of the second target image relative to a horizon. The device further includes: The third receiving module is configured to receive a second input on the second control.

9. The apparatus of claim 8, wherein, The third display module is configured to, in response to the second input, display a third target image in the second region, where the third target image is an image obtained by adjusting the second target image at an inclination angle corresponding to the second input. The device further includes:

10. The apparatus of claim 6, wherein, The fourth display module is configured to display prompt information corresponding to the inclination angle in the first region, where the prompt information is configured to prompt adjustment of a moving direction of the electronic device. The device further includes: The first storage module is configured to store the second preview image. The fifth display module is configured to, in response to a third input of editing the second preview image, display the second preview image in a third region, display a fourth target image and a third control in a fourth region in a case where the third input is received, where the fourth target image is an image after rectification of the second preview image, and the third control is configured to adjust an inclination angle of the fourth target image relative to a horizon. The fourth receiving module is configured to receive a fourth input on the third control. The sixth display module is configured to, in response to the fourth input, display a fifth target image in the fourth region, where the fifth target image is an image obtained by adjusting the fourth target image at an inclination angle corresponding to the fourth input. The fifth receiving module is configured to receive a fifth input. The second storage module is configured to, in response to the fifth input, store the fifth target image.

Citation Information

Patent Citations

  • Shooting method and device

    CN114785969A

  • Image processing method and its device

    JP2006174235A