Image processing method, device, terminal device, storage medium and program product
Patent Information
- Application Number
- CN202510344868.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2026-09-22
AI Technical Summary
但是,在上述方法中,终端设备旋转之后,显示的图像宽高比无法达到9:16,图像的一致性较差,导致图像显示的效果较差
[0018]第五方面,本公开提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能涉及的所述图像处理方法。
Smart Images

Figure CN122802794A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of multimedia technology, and in particular to an image processing method, apparatus, terminal device, storage medium, and program product. Background Technology
[0002] After the terminal device is rotated, the camera inside the terminal device can also rotate, and the image captured by the camera will also change. Before displaying the image, the terminal device needs to process the captured image to fit the preview area of the terminal device.
[0003] Currently, the camera output image aspect ratio of the terminal device is 9:16, and the preview size is also 9:16. After the terminal device rotates, the camera output image aspect ratio becomes 16:9. The terminal device then crops a 9:16 image from the 16:9 image and displays it. However, in this method, after the terminal device rotates, the displayed image aspect ratio cannot reach 9:16, resulting in poor image consistency and thus a poor image display effect. Summary of the Invention
[0004] This disclosure provides an image processing method, apparatus, terminal device, storage medium, and program product to solve technical problems in related technologies.
[0005] In a first aspect, embodiments of this disclosure provide an image processing method, the image processing method comprising:
[0006] In response to the rotation of the camera, a first angle of rotation of the camera and a first image captured by the camera are obtained, the camera acquiring the image based on a first aspect ratio;
[0007] Based on the first angle and the second angle, the first image is rotated to obtain the rotated first image, where the second angle is the angle between the orientation of the camera and the terminal device;
[0008] The rotated first image is cropped to obtain a second image, and the second image is displayed.
[0009] In a second aspect, embodiments of this disclosure provide an image processing apparatus, which includes an acquisition module, a rotation module, a cropping module, and a display module, wherein:
[0010] The acquisition module is used to acquire a first angle of camera rotation and a first image captured by the camera in response to camera rotation, wherein the camera acquires the image based on a first aspect ratio;
[0011] The rotation module is used to rotate the first image based on the first angle and the second angle to obtain the rotated first image, wherein the second angle is the angle between the orientation of the camera and the terminal device;
[0012] The cropping module is used to crop the rotated first image to obtain a second image;
[0013] The display module is used to display the second image.
[0014] Thirdly, this disclosure provides a terminal device including: a processor and a memory;
[0015] The memory stores computer-executed instructions;
[0016] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the image processing methods described in the first aspect above and various possible aspects of the first aspect.
[0017] Fourthly, this disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the image processing methods described in the first aspect and various possible aspects of the first aspect.
[0018] Fifthly, this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the image processing methods described in the first aspect above and various possible aspects of the first aspect.
[0019] This disclosure provides an image processing method, apparatus, terminal device, storage medium, and program product. In response to camera rotation, the terminal device can acquire a first angle of camera rotation and a first image captured by the camera. The camera acquires the image based on a first aspect ratio. The terminal device rotates the first image based on a first angle and a second angle to obtain a rotated first image. The second angle can be the angle between the camera and the orientation of the terminal device. The terminal device can crop the rotated first image to obtain a second image and display it. In this method, since the camera acquires the image based on a first aspect ratio, when the first angle of camera rotation changes, the second image obtained after rotating and cropping the first image by the terminal device will always have the same size, ensuring image display consistency and improving the image display effect. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0022] Figure 2 This is a schematic flowchart of an image processing method provided in an embodiment of the present disclosure;
[0023] Figure 3 This is a schematic diagram illustrating a process of rotating a first image according to an embodiment of the present disclosure;
[0024] Figure 4 This is a schematic diagram illustrating a process for determining a second image according to an embodiment of the present disclosure;
[0025] Figure 5 This is a schematic diagram illustrating a process for displaying a second image according to an embodiment of the present disclosure;
[0026] Figure 6 This is a schematic diagram of a method for displaying a second image provided in an embodiment of the present disclosure;
[0027] Figure 7 This is a schematic diagram of a method for displaying a second image provided in an embodiment of the present disclosure;
[0028] Figure 8 This is a schematic diagram of the structure of an image processing apparatus provided in an embodiment of the present disclosure;
[0029] Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Detailed Implementation
[0030] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0031] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0032] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the terminal device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0033] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the terminal device.
[0034] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0035] For ease of understanding, the concepts involved in the embodiments of this disclosure will be explained below.
[0036] Terminal device: A device with wireless transceiver capabilities. Terminal devices can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted. These terminal devices can be mobile phones, tablet computers, computers with wireless transceiver capabilities, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, vehicle-mounted terminal devices, wireless terminals in self-driving vehicles, wireless terminal devices in remote medical care, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, wireless terminal devices in smart homes, wearable terminal devices, etc. The terminal equipment involved in the embodiments of this disclosure may also be referred to as a terminal, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile device, UE terminal equipment, wireless communication equipment, UE agent, or UE device, etc. The terminal equipment may also be fixed or mobile.
[0037] Below, in conjunction with Figure 1 The application scenarios of the embodiments of this disclosure will be described.
[0038] Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this disclosure. Please refer to [link / reference]. Figure 1 This includes the terminal device. The interface displayed on the terminal device can be a shooting interface, which can include a preview image with an aspect ratio of 9:16. The aspect ratio of the image output by the terminal device's camera is also 9:16. When the terminal device rotates 90 degrees, the aspect ratio of the image output by the terminal device's camera becomes 16:9. Since the aspect ratio of the image displayed by the terminal device is 9:16, the terminal device can crop a 9:16 image from the 16:9 image and display that 9:16 image on the interface.
[0039] In related technologies, when a terminal device crops a 9:16 image from a 16:9 image, because the height of the 16:9 image is insufficient, the terminal device will crop off both sides of the 16:9 image, resulting in an image with an aspect ratio closer to 1:1, rather than 9:16 (the overlapping area between the 16:9 and 9:16 areas is approximately a square). After the terminal device rotates 90 degrees, the camera's field of view shrinks, and the aspect ratio of the image displayed by the terminal device becomes 1:1. Thus, before the terminal device rotates 90 degrees, the displayed image has an aspect ratio of 9:16, and after the terminal device rotates 90 degrees, the displayed image has an aspect ratio of 1:1. This results in poor image display consistency. Furthermore, after rotating 90 degrees, the content displayed at the top and bottom of the image also decreases, leading to a poor image display effect.
[0040] To address the technical problems in related technologies, this disclosure provides an image processing method. In response to camera rotation, a terminal device can acquire a first angle of camera rotation and a first image captured by the camera. Based on the first and second angles, the terminal device can determine a third angle and rotate the first image by the third angle to obtain a rotated first image. The terminal device can then crop the rotated first image to obtain a second image and display it. In this method, since the camera acquires images based on a first aspect ratio of 1:1, the first image captured by the camera can be square or approximately oriented in a positive direction. Therefore, when the terminal device rotates, the aspect ratio of the second image cropped from the rotated first image is the same (e.g., both are 9:16 or 16:9). That is, the consistency between the image displayed before and after rotation is high, and the displayed image content is similar. Furthermore, since the terminal device can rotate the first image by a third angle before cropping, the orientation of the images displayed by the terminal device is also the same, thereby improving the image display effect.
[0041] The technical solutions of this disclosure and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this disclosure will now be described with reference to the accompanying drawings.
[0042] Figure 2 This is a schematic flowchart illustrating an image processing method provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 2 The method may include:
[0043] S201, In response to the rotation of the camera, acquire the first angle of camera rotation and the first image captured by the camera.
[0044] The execution entity of this disclosure can be a terminal device or an image processing device installed in the terminal device. The image processing device can be implemented in software, or it can be implemented using a combination of software and hardware; this disclosure does not limit this approach.
[0045] The camera can be a camera within a terminal device, and it rotates when the terminal device rotates. For example, when the terminal device rotates 90 degrees, the camera on the terminal device will also rotate 90 degrees; when the terminal device rotates 270 degrees, the camera on the terminal device will also rotate 270 degrees.
[0046] In some embodiments, rotating the camera may include rotating the terminal device containing the camera from vertical to horizontal, or rotating the terminal device containing the camera from horizontal to vertical. This way, when the terminal device rotates, the image displayed on the terminal device also rotates, resulting in higher consistency between the image displayed before and after rotation, thus improving the user experience.
[0047] For example, if the terminal device displays a shooting interface, and the shooting interface is displayed vertically when the terminal device is placed vertically, then when the terminal device is rotated from vertical to horizontal, the shooting interface will also rotate from vertical to horizontal. If the terminal device is placed horizontally and the shooting interface is displayed horizontally, then when the terminal device is rotated from horizontal to vertical, the shooting interface will also rotate from horizontal to vertical.
[0048] The first angle can be the angle of camera rotation. For example, when the terminal device rotates 90 degrees, the camera can also rotate 90 degrees, that is, the first angle is 90 degrees. When the terminal device rotates 120 degrees, the camera can also rotate 120 degrees, that is, the first angle is 120 degrees.
[0049] In some embodiments, the terminal device can obtain a first angle of camera rotation based on sensors. For example, the terminal device can determine the angle of rotation of the terminal device based on a gyroscope, and thus obtain the first angle of camera rotation. For example, the terminal device can determine the first angle of camera rotation based on data collected by sensors such as gyroscopes, gravity sensors, and magnetometers.
[0050] In some embodiments, the terminal device may also obtain a first angle of camera rotation based on the captured image. For example, the image information may include a direction label that indicates the rotation angle of the camera when capturing the image. Therefore, the terminal device can determine the first angle of camera rotation based on the direction label of the image.
[0051] The first image can be an image taken after the camera has rotated. For example, image 1 is taken before the camera rotates, and images 2, 3, and 4 are taken after the camera rotates. The first image can include images 1, 2, and 3. In this way, when the first angle of the camera rotation changes, the terminal device rotates and crops the first image, and the resulting second images are all the same size, ensuring the consistency of image display and improving the image display effect.
[0052] In some embodiments, the first aspect ratio can be 1:1, and the first image is an image captured by the camera based on a 1:1 aspect ratio. For example, the terminal device can set the camera to capture images at a 1:1 ratio, so the aspect ratio of the image output by the camera can also be 1:1. Thus, after rotating the first image, the terminal device can also crop it.
[0053] In some embodiments, since the first image is an image captured by a camera, the first aspect ratio can be within a numerical range. This range can be a tolerance range where the first image's aspect ratio is 1:1, or a tolerance range where the first image is a square. That is, when the first aspect ratio is within this tolerance range, the first image's aspect ratio can be 1:1 or approximately 1:1, or the first image can be a square or approximately square. For example, this numerical range can be 0.95-1.05, and when the first image's aspect ratio is within this range, the shape of the first image can be a square or approximately square.
[0054] It should be noted that the numerical range can also be any other feasible range (e.g., 0.9-1.1), and this disclosure does not limit this.
[0055] In some embodiments, the camera application may include a settings or options menu, in which the user can set the camera to capture images based on a 1:1 aspect ratio, so that the aspect ratio of the images captured by the camera is 1:1. Alternatively, the camera may also capture images based on a 1:1 aspect ratio by default. This disclosure does not limit this. It should be noted that the image captured by the camera with a 1:1 aspect ratio is not the image to be rendered on the screen. This image is the image to be processed. After processing, the image can be rendered on the screen and saved.
[0056] S202. Based on the first angle and the second angle, rotate the first image to obtain the rotated first image.
[0057] In some embodiments, the second angle can be the angle between the orientation of the camera and the terminal device. For example, the second angle can be the mounting angle of the camera. For example, the second angle can be the angle between the mounting direction of the camera sensor or the camera lens and the orientation of the terminal device.
[0058] In some embodiments, the orientation of the terminal device can be its natural orientation. For example, the natural orientation of the terminal device can be the orientation in which the terminal device is used by default. For example, if the default orientation of a tablet computer is the orientation in which the screen is used vertically, then the natural orientation of the tablet computer is the orientation in which the screen is used vertically.
[0059] For example, the camera sensor of a tablet computer can be mounted horizontally, that is, the long side of the sensor is parallel to the long side of the tablet computer (e.g., the long side of the sensor is 1920 pixels, the short side is 1080 pixels, and the resolution of the sensor can be 1920*1080). If the natural orientation of the tablet computer is the direction in which the screen is used vertically, then the angle between the camera and the tablet computer can be 90 degrees. That is, in the same plane, the camera is horizontal, the natural orientation of the tablet computer is vertical, and the mounting angle of the camera is 90 degrees.
[0060] For example, the long side of the camera sensor of the tablet computer is parallel to the long side of the tablet computer, and the natural orientation of the tablet computer is the direction in which the screen is used vertically. A coordinate system is established with the upper left corner of the tablet computer as the origin, the long side of the tablet computer as the y-axis, and the short side as the x-axis. The natural orientation of the tablet computer is the direction of the x-axis, and the mounting direction of the camera is the direction of the y-axis. In this way, the angle between the orientation of the camera and the terminal device can be 90 degrees, that is, the second angle is 90 degrees.
[0061] It should be noted that since the terminal device has its natural orientation set at the factory and the camera installation has been determined, the angle between the orientation of the camera and the terminal device is a fixed parameter. That is, the second angle in this embodiment is a fixed angle. The terminal device can obtain the camera installation angle based on any feasible implementation method, and this embodiment does not limit this.
[0062] For example, if the second angle of the camera is 90 degrees, the image captured by the camera will be rotated 90 degrees relative to the natural direction (90 degrees counterclockwise) when the terminal device is not rotated. The terminal device can rotate the image 90 degrees clockwise before displaying the image.
[0063] The terminal device can obtain the rotated first image according to the following feasible implementation: based on the first angle and the second angle, a third angle is determined, and the first image is rotated by the third angle to obtain the rotated first image. In this way, before cropping the first image, the terminal device can rotate the first image based on the third angle to ensure the accuracy of the orientation of the cropped image.
[0064] The third angle can be the angle of rotation of the first image. The terminal device determines the third angle based on the first and second angles. Specifically, it can be done by adding the first and second angles to obtain the fourth angle, and then dividing the fourth angle by the fifth angle, with the remainder being the third angle. The fifth angle can be 360 degrees, which ensures that the second angle is less than 360 degrees, thus improving the rotation accuracy and efficiency of the first image.
[0065] The fourth angle can be the sum of the first angle and the installation angle. For example, if the first angle is 30 degrees and the second angle is 90 degrees, then the fourth angle can be 120 degrees; if the first angle is 90 degrees and the second angle is 90 degrees, then the fourth angle can be 180 degrees; if the first angle is 270 degrees and the second angle is 90 degrees, then the fourth angle can be 360 degrees; if the first angle is 300 degrees and the second angle is 90 degrees, then the fourth angle can be 390 degrees.
[0066] In some embodiments, the fifth angle can be 360 degrees. The terminal device can determine the third angle by dividing the fourth angle by the fifth angle. For example, if the fourth angle is 120 degrees, the remainder when 120 degrees is divided by 360 degrees is 120 degrees, therefore the terminal device determines the third angle to be 120 degrees. If the fourth angle is 270 degrees, the remainder when 270 degrees is divided by 360 degrees is 270 degrees, therefore the terminal device determines the third angle to be 270 degrees. If the fourth angle is 390 degrees, the remainder when 390 degrees is divided by 360 degrees is 30 degrees, therefore the terminal device determines the third angle to be 30 degrees. If the fourth angle is 450 degrees, the remainder when 450 degrees is divided by 360 degrees is 90 degrees, therefore the terminal device determines the third angle to be 90 degrees.
[0067] It should be noted that the fifth angle in this embodiment can also be an angle that is small in difference from 360 degrees (e.g., 360.5 degrees, 359.5 degrees, angles between 358 degrees and 362 degrees, etc.), and this embodiment does not limit it.
[0068] After determining the third angle, the terminal device can rotate the first image by the third angle to obtain the rotated first image. For example, if the third angle is 30 degrees, the terminal device can rotate the first image clockwise by 30 degrees; if the third angle is 90 degrees, the terminal device can rotate the first image clockwise by 90 degrees; and if the third angle is 135 degrees, the terminal device can rotate the first image clockwise by 135 degrees.
[0069] In some embodiments, the terminal device may also rotate the first image counterclockwise. For example, if the third angle is 90 degrees, the terminal device may rotate the first image counterclockwise by 270 degrees; if the third angle is 135 degrees, the terminal device may rotate the first image counterclockwise by 225 degrees.
[0070] Below, in conjunction with Figure 3 The process of rotating the first image on the terminal device is explained.
[0071] Figure 3 This is a schematic diagram illustrating a process of rotating a first image according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 3 This includes a first image. The first image has an aspect ratio of 1:1 and faces left. If the terminal device ( Figure 3 If the third angle is set to 90 degrees (not shown), the terminal device can rotate the second image 90 degrees clockwise. This changes the orientation of the second image from left to up, making it easier for the user to browse and thus improving the image display effect and user experience.
[0072] It should be noted that the terminal device can rotate the first image by a third angle based on any feasible implementation method, and the embodiments disclosed herein are not limited in this respect.
[0073] S203. Crop the rotated first image to obtain the second image.
[0074] The second image can be a cropped version of the rotated first image. For example, the first image can be oriented vertically, so that the second image obtained after cropping the first image by the terminal device can also be oriented vertically, thus ensuring the consistency of image display.
[0075] The terminal device can crop the rotated first image to obtain the second image based on the following feasible implementation: obtain a second aspect ratio, and crop the rotated first image based on the second aspect ratio to obtain the second image. In this way, the orientation of the second image can be consistent with the orientation of the image displayed by the terminal device before rotation, thereby improving the image display effect.
[0076] In some embodiments, the second aspect ratio can be used to crop the rotated first image. For example, the terminal device can determine the aspect ratio for cropping based on the aspect ratio of the image rendered on the screen. For example, if the aspect ratio of the image rendered on the screen by the terminal device is 9:16, the terminal device can determine the second aspect ratio for cropping to be 9:16, and based on this aspect ratio, crop the rotated first image (with an aspect ratio of 1:1) to obtain a second image with an aspect ratio of 9:16.
[0077] In some embodiments, the second aspect ratio can be matched with the preview area. For example, if the size of the preview area is 9:16, the second aspect ratio can be 9:16; if the size of the preview area is 1:1, the second aspect ratio can also be 1:1. In this way, the second image can be matched with the preview area of the screen, improving the accuracy of the second image display and enhancing the display effect of the second image.
[0078] Below, in conjunction with Figure 4 The process of cropping the rotated first image to obtain the second image by the terminal device is explained.
[0079] Figure 4 This is a schematic diagram illustrating a process for determining a second image according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 4 This includes the rotated first image. The aspect ratio of the rotated first image is 1:1. If the terminal device ( Figure 4 (Not shown) If the second aspect ratio is determined to be 9:16, the terminal device uses the center of the rotated first image as the cropping center, and crops the image with the second aspect ratio of 9:16 from the rotated first image to obtain the second image.
[0080] It should be noted that the terminal device can crop the rotated first image to obtain the second image based on any feasible implementation method, and the embodiments disclosed herein do not limit this.
[0081] S204, Display the second image.
[0082] In some embodiments, after the terminal device determines the second image, it can display the second image. For example, the aspect ratio of the second image is 9:16, the size of the preview area of the terminal device is 9:16, and after the terminal device determines the second image, it can display the second image in the preview area.
[0083] In some embodiments, since the camera of the terminal device can capture first images in real time, the cache of the terminal device can include multiple first images. The terminal device can rotate and crop each first image to obtain a second image corresponding to each first image, and display multiple second images according to the timestamp of the first image capture. For example, the camera of the terminal device can capture first image 1, first image 2, and first image 3, wherein the image capture order is first image 1-first image 2-first image 3. The terminal device can rotate and crop first image 1, first image 2, and first image 3 to obtain a rotated and cropped second image of first image 1, a rotated and cropped second image of first image 2, and a rotated and cropped second image of first image 3. The terminal device can sequentially display the rotated and cropped second image of first image 1, the rotated and cropped second image of first image 2, and the rotated and cropped second image of first image 3.
[0084] Below, in conjunction with Figure 5 The process of displaying the second image on the terminal device is explained.
[0085] Figure 5 This is a schematic diagram illustrating a process for displaying a second image according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 5 The system includes a terminal device. The terminal device's camera can capture a first image 1 with an aspect ratio of 1:1. Since the camera is mounted at a 90-degree angle, the arrow in the first image 1 points to the left. Because the terminal device is not rotated, it can rotate the first image 1 90 degrees clockwise to obtain a rotated first image 1, in which the arrow points upwards. If the second aspect ratio is 9:16, the terminal device uses the center of the rotated first image 1 as the cropping center to crop an image with an aspect ratio of 9:16, obtaining a second image A. The second image A may include an upward arrow, and the terminal device can display the second image A on its interface.
[0086] Please see Figure 5After the terminal device rotates 90 degrees, its camera can capture a first image 2 with an aspect ratio of 1:1. Since the camera is mounted at a 90-degree angle and the terminal device rotates 90 degrees, the arrow in the first image 2 points downwards. The terminal device can then rotate the first image 2 180 degrees clockwise to obtain a rotated first image 2, in which the arrow points upwards. Using the center of the rotated first image 2 as the cropping center, the terminal device crops an image with an aspect ratio of 9:16 to obtain a second image B. The second image B may include an upward arrow, and the terminal device can display the second image B on its interface.
[0087] In this way, the terminal device can display the second image with the arrow pointing upwards both before and after rotation. Furthermore, the size of the second image A displayed before rotation is the same as the size of the second image B displayed after rotation. Therefore, the consistency between the second image A and the second image B is high, thereby improving the accuracy of image display, enhancing the image display effect, and improving the user experience.
[0088] This disclosure provides an image processing method. In response to camera rotation, a terminal device can acquire a first angle of camera rotation and a first image captured by the camera. The first and second angles are added together to obtain a fourth angle. The terminal device can divide the fourth angle by a fifth angle to determine a third angle, and then rotate the first image by the third angle to obtain a rotated first image. The terminal device can acquire a second aspect ratio and, based on this second aspect ratio, crop the rotated first image to obtain a second image. After determining the second image, the terminal device can also display it. In this method, since the aspect ratio of the first image is 1:1, regardless of how the terminal device rotates, the aspect ratio of the second image cropped from the rotated first image remains the same. This results in high consistency between the second image displayed before and after rotation, with similar image content. Furthermore, since the terminal device can rotate the first image by a second angle before cropping, the orientation of the image displayed before rotation is the same as the orientation of the image displayed after rotation, thereby improving image display accuracy and display effect.
[0089] exist Figure 2 Based on the embodiments shown, the following, in conjunction with Figure 6 Another method for displaying a second image will be described.
[0090] Figure 6 This is a schematic diagram illustrating a method for displaying a second image according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 6 The method process includes:
[0091] S601, responding to touch control input, captures the first moment.
[0092] In some embodiments, the first moment can be the moment when the camera control is touched. For example, the first moment can be the moment when an image is captured. For example, when the user clicks the camera control, the terminal device can capture an image, and the moment the user clicks the camera control can be the moment the image is captured.
[0093] In some embodiments, when a user rotates the terminal device, the interface displayed on the terminal device can be a shooting interface, which may include shooting controls. When the user clicks the shooting controls, the terminal device can capture an image, and the terminal device can acquire the first moment when the image is captured. For example, if the user clicks the shooting controls at moment 1, the first moment acquired by the terminal device is moment 1; if the user clicks the shooting controls at moment 2, the first moment acquired by the terminal device is moment 2.
[0094] It should be noted that the terminal device can obtain the first moment according to any feasible implementation method, and the embodiments disclosed herein do not limit this.
[0095] S602, Display the second image with the timestamp of the first moment.
[0096] The timestamp of the second image can indicate the time when the first image associated with the second image was acquired. For example, the terminal device rotates and crops the first image 1 to obtain the second image A, and rotates and crops the first image 2 to obtain the second image B. Here, the first image associated with the second image A can be the first image 1, and the first image associated with the second image B can be the first image 2. Furthermore, the timestamp of the second image A can be the timestamp of capturing the first image 1, and the timestamp of the second image B can be the timestamp of capturing the first image 2.
[0097] For example, if the timestamp of the second image indicates time 1, then the first time of the first image associated with the second image is time 1. That is, if the user clicks the shooting control at time 1, the camera can take the first image associated with the second image at time 1. If the timestamp of the second image indicates time 2, then the first time of the first image associated with the second image is time 2. That is, if the user clicks the shooting control at time 2, the camera can take the first image associated with the second image at time 2.
[0098] In some embodiments, when the terminal device displays the shooting interface, the camera of the terminal device can acquire a first image in real time. The terminal device can store the acquired first image and determine the timestamp of each first image. The terminal device can rotate and crop the first image to obtain a second image. When the user clicks the shooting control, the terminal device can display the second image with the timestamp of the first moment, that is, the terminal device can display the second image with the timestamp of the moment the shooting control is touched.
[0099] For example, before the user clicks the shooting control, the camera of the terminal device can capture a first image in real time, and the aspect ratio of the captured first image is 1:1. The terminal device can rotate and crop the captured first image to obtain a second image associated with the first image. In this way, when the user clicks the shooting control, the terminal device can generate the shooting result (second image) in a timely manner and render the second image, which can improve the image display efficiency.
[0100] For example, the terminal device can acquire a first image 1, a first image 2, and a first image 3, wherein the acquisition time of the first image 1 is time a, the acquisition time of the first image 2 is time b, and the acquisition time of the first image 3 is time c. After acquiring the first image 1, the terminal device can rotate and crop the first image 1 to obtain a second image A associated with the first image 1. After acquiring the first image 2, the terminal device can rotate and crop the first image 2 to obtain a second image B associated with the first image 2. After acquiring the first image 3, the terminal device can rotate and crop the first image 3 to obtain a second image C associated with the first image 3. When the terminal device acquires the first image 1, and the user clicks the shooting control, that is, when the user clicks the shooting control at time a, the terminal device can display the second image A. When the terminal device acquires the first image 2, and the user clicks the shooting control, that is, when the user clicks the shooting control at time b, the terminal device can display the second image B. When the terminal device acquires the first image 3, and the user clicks the shooting control, that is, when the user clicks the shooting control at time c, the terminal device can display the second image C. In this way, the terminal device can display the images taken by the user in a timely and accurate manner, improving the display efficiency and accuracy of the images, and thus enhancing the user experience.
[0101] In some embodiments, the terminal device may also save a second image with a timestamp of the first moment. For example, after the user clicks the shooting control, the terminal device may display the currently captured second image (an image after rotation and cropping of the first image) and save the second image in the album.
[0102] In some embodiments, after the terminal device displays the second image, it may also display a publish control. After the user clicks the publish control, the terminal device can publish the second image.
[0103] This disclosure provides another schematic diagram of displaying a second image. In response to touch of the shooting control, the terminal device can acquire a first moment and display a second image with the timestamp of the first moment being captured. In the above method, the terminal device can display the image captured by the user in a timely and accurate manner, improving image display efficiency and accuracy. Furthermore, after displaying the second image, the terminal device can also display a publishing control. After the user clicks the publishing control, the terminal device can publish the captured second image. Therefore, the accuracy of the second image and the publishing efficiency of the second image can be improved, thereby enhancing the user experience.
[0104] Based on any of the above embodiments, the following, in conjunction with Figure 7 Another method for displaying a second image will be described.
[0105] Figure 7 This is a schematic diagram illustrating a method for displaying a second image according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 7 The method process includes:
[0106] S701, in response to touch of the recording control, acquire the second moment.
[0107] In some embodiments, the second moment can be the moment when recording begins. For example, the shooting interface displayed on the terminal device may include a recording control, and when the user clicks the recording control, the terminal device can obtain the second moment when recording begins. For example, if the user clicks the recording control at moment 1, the terminal device obtains the second moment when recording begins as moment 1; if the user clicks the recording control at moment 2, the terminal device obtains the second moment when recording begins as moment 2.
[0108] It should be noted that the terminal device can obtain the second moment of recording start according to any feasible implementation method, and the embodiments disclosed herein do not limit this.
[0109] S702, Based on the second time point, display the second image.
[0110] In some embodiments, when the terminal device displays the shooting interface, the camera of the terminal device can acquire a first image in real time. The terminal device can cache the acquired first image and determine the timestamp corresponding to each first image. The terminal device can rotate and crop the first image to obtain a second image. When the user clicks the recording control, the terminal device can display the second image with the timestamp at the second moment and the second image after the second moment.
[0111] For example, the terminal device acquires a first image 1, a first image 2, and a first image 3. The acquisition time of the first image 1 is time a, the acquisition time of the first image 2 is time b, and the acquisition time of the first image 3 is time c. Time a precedes time b, and time b precedes time 3. After acquiring the first image 1, the terminal device can rotate and crop it to obtain a second image A associated with the first image 1. After acquiring the first image 2, the terminal device can rotate and crop it to obtain a second image B associated with the first image 2. After acquiring the first image 3, the terminal device can rotate and crop it to obtain a second image C associated with the first image 3. When the terminal device acquires the first image 1, and the user clicks the recording control (i.e., when the user clicks the recording control at time a), the terminal device can display the second image A, and then sequentially display the second image B, the second image C, and the subsequently generated second image. When the terminal device acquires the first image 2, and the user clicks the recording control (i.e., at time b), the terminal device can display the second image B, then the second image C, and subsequently generated second images. Similarly, when the terminal device acquires the first image 3, and the user clicks the recording control (i.e., at time c), the terminal device can display the second image C, and subsequently generated second images. This allows the terminal device to display user-captured images promptly and accurately, improving display efficiency and accuracy, thereby enhancing the user experience. Furthermore, it enables the terminal device to accurately display recorded footage, improving image display accuracy.
[0112] In some embodiments, in response to another touch of the recording control, a third moment when recording stops is obtained, and the recorded video is determined based on a second moment when recording starts and a third moment when recording stops.
[0113] For example, if the number of second images whose timestamps fall between the second moment of recording start and the third moment of recording stop is 100, the terminal device can determine the recorded video based on these 100 second images. For instance, if the timestamps of second image A, second image B, and second image C fall between the second moment of recording start and the second moment of recording stop, the video acquired by the terminal device can include second image A, second image B, and second image C, and the order in which first image A, second image B, and second image C are played in the video is the same as the order of the timestamps of second image A, second image B, and second image C.
[0114] In some embodiments, the terminal device can play the recorded video after it has been recorded. For example, after the user clicks the record control again, the terminal device can play the video recorded by the user, allowing the user to review the shooting results in a timely manner and improving the user experience.
[0115] In some embodiments, when the terminal device plays the recorded video, it may display a publish control, and when the user clicks the publish control, the terminal device may publish the recorded video.
[0116] This disclosure provides another schematic diagram of displaying a second image. In response to touch of the recording control, the terminal device acquires a second moment indicating the start of recording. The terminal device can display a second image with a timestamp at the start of recording and a timestamp after the second moment. Furthermore, in response to another touch of the recording control, the terminal device can acquire a third moment indicating the end of recording. Based on the second and third moments, the recorded video is determined and played. In this method, the terminal device can accurately determine the recorded video based on the second and third moments. Moreover, after the user clicks the publish control, the terminal device can publish the video, thus improving the accuracy of video recording, increasing the efficiency of video publishing, and enhancing the user experience.
[0117] Figure 8 This is a schematic diagram of the structure of an image processing apparatus provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 8 The image processing device includes an acquisition module 801, a rotation module 802, a cropping module 803, and a display module 804, wherein:
[0118] The acquisition module 801 is used to acquire a first angle of camera rotation and a first image captured by the camera in response to camera rotation, wherein the camera acquires the image based on a first aspect ratio;
[0119] The rotation module 802 is used to rotate the first image based on the first angle and the second angle to obtain the rotated first image, wherein the second angle is the angle between the orientation of the camera and the terminal device;
[0120] The cropping module 803 is used to crop the rotated first image to obtain a second image;
[0121] The display module 804 is used to display the second image.
[0122] In this way, since the camera captures images based on the first aspect ratio, the aspect ratio of the first image captured by the camera can be 1:1 or approximately 1:1. Thus, when the first angle of camera rotation changes, the image processing device rotates and crops the square first image, resulting in second images of the same size, ensuring consistency in image display and improving the image display effect.
[0123] According to one or more embodiments of this disclosure, the rotation module 802 is specifically used for:
[0124] Based on the first angle and the second angle, determine the third angle;
[0125] The first image is rotated by the third angle to obtain the rotated first image.
[0126] In this way, before cropping the first image, the image processing device can rotate the first image based on a third angle to ensure the accuracy of the orientation of the cropped image.
[0127] According to one or more embodiments of this disclosure, the rotation module 802 is specifically used for:
[0128] Add the first angle and the second angle to obtain the fourth angle;
[0129] The remainder when the fourth angle is divided by the fifth angle is determined as the third angle.
[0130] This ensures that the second angle is less than 360 degrees, improving the rotation accuracy and efficiency of the first image.
[0131] According to one or more embodiments of this disclosure, the rotation of the camera is to rotate the terminal device where the camera is located from vertical to horizontal, or to rotate the terminal device where the camera is located from horizontal to vertical.
[0132] In this way, when the terminal device rotates, the image displayed by the image processing device will also rotate, and the consistency of the image displayed by the image processing device before and after rotation is high, improving the user experience.
[0133] According to one or more embodiments of this disclosure, the trimming module 803 is specifically used for:
[0134] Obtain the second aspect ratio;
[0135] Based on the second aspect ratio, the rotated first image is cropped to obtain the second image.
[0136] In this way, the orientation of the second image can be consistent with the orientation of the image displayed before the image processing device rotates, thereby improving the image display effect.
[0137] According to one or more embodiments of this disclosure, the display module 804 is specifically used for:
[0138] In response to a touch of the shooting control, a first moment is obtained, wherein the first moment is the moment when the shooting control is touched;
[0139] The second image displays the timestamp of the first moment.
[0140] In this way, the image processing device can display the images captured by the user in a timely and accurate manner, improving image display efficiency and accuracy.
[0141] According to one or more embodiments of this disclosure, the display module 804 is specifically used for:
[0142] In response to a touch of the recording control, a second moment is obtained, which is the moment when recording begins;
[0143] Based on the second time point, the second image is displayed.
[0144] In this way, the image processing device can determine the video recorded by the user in a timely and accurate manner, thereby improving the accuracy of video recording.
[0145] According to one or more embodiments of this disclosure, the first aspect ratio is 1:1, and the first image is an image captured by the camera based on a 1:1 aspect ratio.
[0146] In this way, the aspect ratio of the first image captured by the camera can be 1:1. Thus, the image obtained by cropping the first image before rotation is the same size as the image obtained by cropping the first image after rotation, improving the image display effect.
[0147] Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 9 The diagram illustrates a structural schematic suitable for implementing the terminal device 900 of the embodiments of the present disclosure. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable media players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The terminal device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.
[0148] like Figure 9As shown, the terminal device 900 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 902 or a program loaded from storage device 908 into random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the terminal device 900. The processing unit 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0149] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows terminal device 900 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 9 A terminal device 900 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0150] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by a processing device 901, it performs the functions defined in the methods of embodiments of this disclosure.
[0151] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0152] The aforementioned computer-readable medium may be included in the aforementioned terminal device; or it may exist independently and not assembled into the terminal device.
[0153] The aforementioned computer-readable medium carries one or more programs, which, when executed by the terminal device, cause the terminal device to perform the method shown in the above embodiments.
[0154] This disclosure provides a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements various methods that may be involved in the above embodiments.
[0155] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements various methods that may be involved in the above embodiments.
[0156] According to one or more of the present disclosure, embodiments of the present disclosure provide a computer-readable storage medium, a computer program product, and a terminal device. Since the camera captures images based on a 1:1 aspect ratio, the aspect ratio of the first image captured by the camera can be 1:1 or approximately 1:1. In this way, when the first angle of camera rotation changes, the terminal device can rotate and crop the square first image to obtain a second image with the same size, ensuring the consistency of image display and improving the image display effect.
[0157] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0159] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0160] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0161] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0162] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0163] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0164] It is understood that the data involved in this technical solution (including but not limited to the data itself, its acquisition, or its use) shall comply with the requirements of relevant laws, regulations, and provisions. Data may include information, parameters, and messages, such as flow control instructions.
[0165] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0166] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments. Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely exemplary forms of implementing the claims.
Claims
1. An image processing method, characterized in that, include: In response to the rotation of the camera, a first angle of rotation of the camera and a first image captured by the camera are obtained, the camera acquiring the image based on a first aspect ratio; Based on the first angle and the second angle, the first image is rotated to obtain the rotated first image, where the second angle is the angle between the orientation of the camera and the terminal device; The rotated first image is cropped to obtain a second image, and the second image is displayed.
2. The method according to claim 1, characterized in that, The first aspect ratio is 1:1, and the first image is an image captured by the camera based on the 1:1 aspect ratio.
3. The method according to claim 1, characterized in that, The step of rotating the first image based on the first angle and the second angle to obtain the rotated first image includes: Based on the first angle and the second angle, determine the third angle; The first image is rotated by the third angle to obtain the rotated first image.
4. The method according to claim 3, characterized in that, Determining the third angle based on the first angle and the second angle includes: Add the first angle and the second angle to obtain the fourth angle; The remainder when the fourth angle is divided by the fifth angle is determined as the third angle.
5. The method according to any one of claims 1-4, characterized in that, The rotation of the camera refers to rotating the terminal device where the camera is located from vertical to horizontal, or rotating the terminal device where the camera is located from horizontal to vertical.
6. The method according to any one of claims 1-4, characterized in that, The rotated first image is cropped to obtain the second image, which includes: Obtain the second aspect ratio; Based on the second aspect ratio, the rotated first image is cropped to obtain the second image.
7. The method according to any one of claims 1-4, characterized in that, The display of the second image includes: In response to a touch of the shooting control, a first moment is obtained, wherein the first moment is the moment when the shooting control is touched; The second image displays the timestamp of the first moment.
8. The method according to any one of claims 1-4, characterized in that, The display of the second image includes: In response to a touch of the recording control, a second moment is obtained, which is the moment when recording begins; Based on the second time point, the second image is displayed.
9. An image processing method, characterized in that, It includes an acquisition module, a rotation module, a cropping module, and a display module, among which: The acquisition module is used to acquire a first angle of camera rotation and a first image captured by the camera in response to camera rotation, wherein the camera acquires the image based on a first aspect ratio; The rotation module is used to rotate the first image based on the first angle and the second angle to obtain the rotated first image, wherein the second angle is the angle between the orientation of the camera and the terminal device; The cropping module is used to crop the rotated first image to obtain a second image; The display module is used to display the second image.
10. A terminal device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the image processing method as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the image processing method as described in any one of claims 1-8.
12. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the image processing method as described in any one of claims 1-8.