Image rotation method and device of display panel and display equipment

By rotating and scaling the original image, the problem of the image exceeding the display area after rotation is solved, thus achieving complete image display.

CN121639476APending Publication Date: 2026-03-10TCL CHINA STAR OPTOELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Traditional image rotation methods result in the rotated portion of the image extending beyond the display area, affecting the display quality.

Method used

A first image is generated by rotating the original image at a preset angle, and a second image is generated by scaling the first image based on an image scaling factor, so that it is fully displayed in the target area.

Benefits of technology

This avoids the phenomenon of images extending beyond the display area, thus improving the image display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121639476A_ABST
    Figure CN121639476A_ABST
Patent Text Reader

Abstract

The invention relates to an image rotation method and device of a display panel and display equipment. The image rotation method of the display panel comprises the steps of determining an original image, rotating the original image by a preset angle to generate a first image, determining an image scaling coefficient of the first image, scaling the first image based on the image scaling coefficient to generate a second image, and displaying the second image in a target area. The original image is rotated by the preset angle to generate the first image, and then the first image is zoomed based on the image zooming coefficient to generate the second image, so that the second image is displayed in the target area, the phenomenon that part of the second image exceeds the target area can be avoided, and the image display effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of display, in particular to an image rotation method and device of a display panel and a display equipment. BACKGROUND

[0002] With the progress of image processing technology, and the improvement of automation and intelligence level of industrial electronic devices and electronic consumer goods, more and more electronic devices are equipped with graphics processing units (English full name: graphics processing unit, for short GPU) or use digital signal processing technology (English full name: Digital Signal Processing, for short DSP) to do image processing method, so that the function of electronic device is more and more powerful, and the method complexity is also higher and higher.

[0003] The traditional image rotation method will cause the part of the image to exceed the display area after the original image is rotated, that is, the original image cannot be displayed completely in the display area after being rotated, and the original image produces the loss of part of the image after being rotated, which affects the display effect of the image. SUMMARY

[0004] The purpose of the present application is to provide an image rotation method, device and display equipment of a display panel to solve the technical problem of the loss of part of the image after the original image is rotated, and to improve the display effect of the image.

[0005] In order to solve the above problems, the present application provides an image rotation method of a display panel, the display panel comprising a target area; the method comprising: determining an original image; rotating the original image by a preset angle to generate a first image; determining an image scaling factor of the first image; scaling the first image based on the image scaling factor to generate a second image, so that the second image is displayed in the target area.

[0006] In some embodiments, the original image comprises a plurality of original pixels, the first image comprises a plurality of first pixels, and the plurality of first pixels correspond one by one to the plurality of original pixels; rotating the original image by a preset angle to generate a first image comprises: obtaining an original coordinate of each original pixel on the original image based on a preset coordinate system; obtaining a first coordinate of a first pixel corresponding to each original pixel based on each original coordinate and the preset angle; determining an image composed of each first pixel as the first image.

[0007] In some embodiments, the first coordinate of the first pixel corresponding to each original pixel is obtained based on each original coordinate and the preset angle, comprising: obtaining the first coordinate of the first pixel corresponding to each original pixel by the following formula:

[0008]

[0009] wherein X'n and Y'n are the first coordinates, Xn and Yn are the original coordinates, θ is the preset angle, n≥1, and n is an integer.

[0010] In some embodiments, the preset coordinate system includes a first coordinate direction and a second coordinate direction; determining the image scaling factor of the first image includes: respectively obtaining a first maximum scaling factor of the first image along the first coordinate direction, and a second maximum scaling factor of the first image along the second coordinate direction; determining the maximum value among the first maximum scaling factor, the second maximum scaling factor, and a preset coefficient as the image scaling factor, wherein the preset coefficient is 1.

[0011] In some embodiments, the original pixels include a plurality of edge pixels located at the edge of the original image; obtaining the first maximum scaling factor of the first image along the first coordinate direction includes: obtaining the first coordinates corresponding to the original coordinates of the plurality of edge pixels; obtaining a first maximum coordinate value in the first coordinate direction among the plurality of first coordinates; and determining the first maximum scaling factor based on the first maximum coordinate value and the size of the target region in the first coordinate direction.

[0012] In some embodiments, the original pixels include a plurality of edge pixels located at the edge of the original image; obtaining the second maximum scaling factor of the first image along the second coordinate direction includes: obtaining the first coordinates corresponding to the original coordinates of the plurality of edge pixels; obtaining a second maximum coordinate value in the second coordinate direction among the plurality of first coordinates; and determining the second maximum scaling factor based on the second maximum coordinate value and the size of the target region in the second coordinate direction.

[0013] In some embodiments, the second image includes a plurality of second pixels, and the plurality of second pixels correspond to the plurality of first pixels one-to-one; scaling the first image based on the image scaling factor to generate the second image includes: obtaining the second coordinates of the second pixel corresponding to each first pixel based on the first coordinates of each first pixel and the image scaling factor; and determining the image composed of the second pixels as the second image.

[0014] In some embodiments, obtaining the second coordinates of the second pixel corresponding to each first pixel based on the first coordinates of each first pixel and the image scaling factor includes: obtaining the second coordinates of the second pixel corresponding to each original pixel by the following formula:

[0015]

[0016] wherein X"n and Y"n are the second coordinates, X'n and Y'n are the first coordinates, γ is the image scaling factor, n≥1, and n is an integer.

[0017] To address the aforementioned issues, this application also provides an image rotation device for a display panel, the display panel including a target area; the device includes: an original image acquisition module for determining an original image; a first image acquisition module for rotating the original image by a preset angle to generate a first image; an image scaling factor acquisition module for determining an image scaling factor for the first image; and a second image acquisition module for scaling the first image based on the image scaling factor to generate a second image, so that the second image is displayed in the target area.

[0018] To address the aforementioned issues, this application also provides a display device, including a display panel and a processor, wherein the processor rotates the original image using the image rotation method of the display panel of this application, or includes the image rotation device of the display panel of this application.

[0019] The image rotation method for a display panel disclosed in this application includes determining an original image, rotating the original image by a preset angle to generate a first image, determining an image scaling factor for the first image, and scaling the first image based on the image scaling factor to generate a second image, thereby displaying the second image in a target area. This application rotates the original image by a preset angle to generate the first image, and then scales the first image based on the image scaling factor to generate the second image, thus displaying the second image in the target area. This avoids the phenomenon where part of the second image exceeds the target area, thereby improving the image display effect.

[0020] The image rotation device of the display panel of this application can rotate the original image by a preset angle to generate a first image, and then scale the first image based on the image scaling factor to generate a second image, so that the second image is displayed in the target area, which can avoid the phenomenon that part of the second image exceeds the target area, thereby improving the image display effect.

[0021] The display device of this application can rotate the original image by a preset angle to generate a first image, and then scale the first image based on the image scaling factor to generate a second image, so that the second image is displayed in the target area, thereby avoiding the phenomenon that part of the second image exceeds the target area, and thus improving the image display effect. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 It is the original image in traditional image rotation methods;

[0024] Figure 2 It is a rotated image within the display area in traditional image rotation methods;

[0025] Figure 3 This is a flowchart illustrating the image rotation method of the display panel according to an embodiment of this application;

[0026] Figure 4 This is the original image in the image rotation method of the display panel in the embodiments of this application;

[0027] Figure 5 This is the first image in the image rotation method of the display panel in the embodiments of this application;

[0028] Figure 6 This is the second image in the image rotation method of the display panel according to the embodiments of this application;

[0029] Figure 7 This is a structural diagram of the image rotation device of the display panel according to an embodiment of this application;

[0030] Figure 8 This is an internal structural diagram of the display device according to an embodiment of this application;

[0031] Explanation of reference numerals in the attached figures:

[0032] 700. Image rotation device for display panel; 701. Original image acquisition module; 702. First image acquisition module; 703. Image scaling factor acquisition module; 704. Second image acquisition module. Detailed Implementation

[0033] The preferred embodiments of this application are described in detail below with reference to the accompanying drawings to fully introduce the technical content of this application to those skilled in the art, to demonstrate that this application can be implemented, and to make the disclosed technical content of this application clearer, so that those skilled in the art can more easily understand how to implement this application. However, this application can be embodied in many different forms of embodiments, and the protection scope of this application is not limited to the embodiments mentioned herein. The description of the embodiments below is not intended to limit the scope of this application.

[0034] Please refer to the following: Figure 1 and Figure 2 , Figure 1 The original image in traditional image rotation methods, Figure 2 This refers to the rotated image within the display area in traditional image rotation methods. In traditional methods, after rotating the original image, a portion of the rotated image extends beyond the display area; that is, the original image is not fully displayed after rotation, resulting in a missing portion of the original image. For example, when the display area remains unchanged... Figure 2The display area does not show Figure 1 The four corners of the original image in the rotated image, i.e. Figure 1 The original image was not rotated after being rotated. Figure 2 The image is displayed completely within the display area, thus affecting the image display effect of the display panel.

[0035] In view of this, embodiments of this application provide an image rotation method for a display panel, which can rotate the original image by a preset angle to generate a first image, and then scale the first image based on an image scaling factor to generate a second image, so that the second image is displayed in a target area. This method can avoid the phenomenon that part of the second image exceeds the target area, thereby improving the image display effect and solving at least part of the above-mentioned technical problems.

[0036] Please see Figure 3 , Figure 3 This is a flowchart illustrating the image rotation method for a display panel according to an embodiment of this application. The image rotation method for a display panel according to an embodiment of this application specifically includes the following steps:

[0037] Step 301: Determine the original image. The display panel includes a target area, which refers to the display area of ​​the display panel. The target area has a size of H in the first coordinate direction X and a size of W in the second coordinate direction Y. The original image is the image to be rotated and displayed in the target area.

[0038] Step 302: Rotate the original image by a preset angle to generate the first image.

[0039] In some embodiments, step 302 includes: obtaining the original coordinates of each original pixel on the original image based on a preset coordinate system; obtaining the first coordinates of the first pixel corresponding to each original pixel based on each original coordinate and a preset angle; and determining the image composed of the first pixels as the first image.

[0040] In some embodiments, a preset coordinate system is established with the center of the original image as the origin. The preset coordinate system includes a first coordinate direction X and a second coordinate direction Y that are perpendicular to each other. The original coordinates of each original pixel on the original image are (Xn, Yn), where n ≥ 1 and n is an integer.

[0041] In some embodiments, the preset angle is generated after the user rotates counterclockwise, then the first coordinate of the first pixel corresponding to each original pixel is obtained by the following formula (1):

[0042]

[0043] Where X'n and Y'n are the first coordinates, Xn and Yn are the original coordinates, θ is the preset angle, n≥1, and n is an integer. Specifically, the original coordinates (Xn, Yn) and the preset angle θ are substituted into Formula 1 to obtain the first coordinates (X'n, Y'n).

[0044] It is worth noting that formula (1) is the formula for the first coordinate of the first pixel after rotating the original image counterclockwise by a preset angle with the center of the original image as the origin.

[0045] In other embodiments, the preset angle is generated after the user rotates clockwise, then the following formula (2) obtains the first coordinate of the first pixel corresponding to each original pixel:

[0046]

[0047] Where X'n and Y'n are the first coordinates, Xn and Yn are the original coordinates, θ is the preset angle, n≥1, and n is an integer. Specifically, the original coordinates (Xn, Yn) and the preset angle θ are substituted into Formula 1 to obtain the first coordinates (X'n, Y'n).

[0048] It is worth noting that formula (2) is the formula for the first coordinate of the first pixel after rotating the original image clockwise by a preset angle with the center of the original image as the origin.

[0049] In some embodiments, based on a preset coordinate system, the image formed by the first pixels corresponding to each original pixel is determined as the first image.

[0050] Step 303: Determine the image scaling factor for the first image.

[0051] In some embodiments, step 303 includes: obtaining a first maximum scaling factor of the first image along a first coordinate direction and a second maximum scaling factor of the first image along a second coordinate direction; determining the maximum value among the first maximum scaling factor, the second maximum scaling factor and a preset factor as the image scaling factor, wherein the preset factor is 1.

[0052] In some embodiments, the step of obtaining the first maximum scaling factor of the first image along the first coordinate direction includes: obtaining the first coordinates corresponding to the original coordinates of a plurality of edge pixels; obtaining the first maximum coordinate value among the plurality of first coordinates in the first coordinate direction X; and determining the first maximum scaling factor α based on the first maximum coordinate value and the size H of the target region in the first coordinate direction.

[0053] In some examples, the original coordinates (Xn, Yn) of multiple edge pixels are substituted into formula (1) or (2) to obtain the corresponding first coordinates (X'n, Y'n); the maximum value among multiple X'n is taken as the first maximum coordinate value X'nmax; the first maximum scaling factor α is determined by the following formula (3):

[0054] α = X ′ nmax*2 / H; Formula (3)

[0055] Where H is the size of the target region in the first coordinate direction X, X'nmax is the first maximum coordinate value in the first coordinate direction X among multiple first coordinates, and α is the first maximum scaling factor.

[0056] In some embodiments, when α is less than or equal to 1, it means that the first image can be fully displayed in the first coordinate direction X of the target area and the first image will not exceed the target area in the first coordinate direction X. When α is greater than 1, it means that the first image cannot be fully displayed in the first coordinate direction X of the target area and the first image will exceed the target area in the first coordinate direction X.

[0057] In some embodiments, the step of obtaining the second maximum scaling factor of the first image along the second coordinate direction includes: obtaining the first coordinates corresponding to the original coordinates of a plurality of edge pixels; obtaining the second maximum coordinate value among the plurality of first coordinates in the second coordinate direction Y; and determining the second maximum scaling factor β based on the second maximum coordinate value and the size of the target region in the second coordinate direction Y.

[0058] In some examples, the original coordinates (Xn, Yn) of multiple edge pixels are substituted into formula (1) or formula (2) to obtain the corresponding first coordinates (X'n, Y'n); the maximum value among multiple Y'n is taken as the second maximum coordinate value Y'nmax; the second maximum scaling factor β is determined by the following formula (4):

[0059] β=Y ′ nmax*2 / W; Formula (4)

[0060] Where W is the size of the target region in the second coordinate direction Y, Y'nmax is the first maximum coordinate value in the second coordinate direction Y among multiple first coordinates, and β is the second maximum scaling factor.

[0061] In some embodiments, when β is less than or equal to 1, it means that the first image can be fully displayed in the second coordinate direction Y of the target area, and the first image will not exceed the target area in the second coordinate direction Y. When β is greater than 1, it means that the first image cannot be fully displayed in the second coordinate direction Y of the target area, and the first image will exceed the target area in the second coordinate direction Y.

[0062] In some embodiments, by determining the maximum value among the first maximum scaling factor, the second maximum scaling factor, and the preset factor as the image scaling factor, it can be ensured that the second image after the first image is scaled based on the image scaling factor γ will not exceed the target area in either the first coordinate direction X or the second coordinate direction Y, and the second image can be fully displayed within the target area, thereby improving the image display effect.

[0063] Step 304: Scale the first image based on the image scaling factor to generate a second image, and display the second image in the target area.

[0064] In some embodiments, step 304 includes: obtaining the second coordinates of the second pixel corresponding to each first pixel based on the first coordinates of each first pixel and the image scaling factor; and determining the image composed of the second pixels as the second image.

[0065] In some embodiments, the step of obtaining the second coordinate of the second pixel corresponding to each first pixel based on the first coordinate of each first pixel and the image scaling factor includes: obtaining the second coordinate of the second pixel corresponding to each original pixel using the following formula (5):

[0066]

[0067] Where X”n and Y”n are the second coordinates, X'n and Y'n are the first coordinates, γ is the image scaling factor, n≥1, and n is an integer. Specifically, the second coordinates (X”n, Y’n) are obtained by substituting the first coordinates (X’n, Y’n) and the image scaling factor γ into Formula 4.

[0068] In some examples, when the preset angle is generated after the user rotates counterclockwise, substituting formula (1) into formula (5) yields formula (6), and formula (6) is used to obtain the second coordinate of the second pixel corresponding to each original pixel:

[0069]

[0070] In other examples, when the preset angle is generated after the user rotates clockwise, substituting formula (2) into formula (5) yields formula (7), and formula (7) is used to obtain the second coordinate of the second pixel corresponding to each original pixel:

[0071]

[0072] In some embodiments, the second image can be displayed in the target area using a synchronous display method. That is, after obtaining the second coordinates of the first second pixel corresponding to the first first pixel, the image of the first second pixel is displayed in the target area. Then, after obtaining the second coordinates of the second second pixel corresponding to the second first pixel, the image of the second second pixel is displayed in the target area. The above steps are repeated until a complete second image is formed.

[0073] In other embodiments, the second image can be displayed in the target area by caching before displaying. That is, after obtaining the second coordinates of the first second pixel corresponding to the first first pixel, the image of the first second pixel is cached. Then, after obtaining the second coordinates of the second second pixel corresponding to the second first pixel, the image of the second second pixel is cached. The above steps are repeated until all the images of the second pixels are cached to generate the second image, and then the second image is displayed in the target area.

[0074] It is understood that, through the above scheme, the image rotation method of the display panel of this application can rotate the original image by a preset angle to generate a first image, and then scale the first image based on the image scaling factor to generate a second image, so that the second image is displayed in the target area, which can avoid the phenomenon that part of the second image exceeds the target area, thereby improving the image display effect.

[0075] Please see Figure 4 , Figure 4 This is the original image in the image rotation method of the display panel according to embodiments of this application. The target region has a size of H in the first coordinate direction X and a size of W in the second coordinate direction Y. In some embodiments, the center of the original image coincides with the center of the target region. In some embodiments, the size of the original image is the same as the size of the target region. That is, the size of the original image in the first coordinate direction X is H, and the size of the original image in the second coordinate direction Y is W. In other embodiments, the size of the original image may be smaller than the size of the target region.

[0076] Please see Figure 4 , Figure 4 This is the original image in the image rotation method of the display panel according to an embodiment of this application. The original image includes a plurality of original pixels. The original pixels include a plurality of edge pixels located at the edges of the original image.

[0077] Please refer to the following: Figure 4 and Figure 5 , Figure 4 This is the original image in the image rotation method of the display panel in the embodiments of this application. Figure 5This is the first image in the image rotation method of the display panel according to embodiments of this application. The first image includes a plurality of first pixels, and the plurality of first pixels correspond one-to-one with a plurality of original pixels. In some examples, Figure 5 The first pixel A' in Figure 4 The original pixel A in the image corresponds to... Figure 5 The first pixel B' in Figure 4 The original pixel B in the image corresponds to... Figure 5 The first pixel C' in Figure 4 The original pixel C corresponds to, Figure 5 The first pixel D' in Figure 4 The original pixel D in the image corresponds to this.

[0078] Please refer to the following: Figure 5 and Figure 6 , Figure 5 This is the first image in the image rotation method of the display panel according to the embodiments of this application. Figure 6 This is the second image in the image rotation method of the display panel according to an embodiment of this application. The second image includes a plurality of second pixels, and each of the plurality of second pixels corresponds one-to-one with a plurality of first pixels. For example, Figure 6 The first pixel A in the middle and Figure 5 The first pixel A' in the image corresponds to... Figure 6 The first pixel B in the middle and Figure 5 The first pixel B' in the image corresponds to... Figure 6 The first pixel C in the middle and Figure 5 The first pixel C' in the image corresponds to... Figure 6 The first pixel D in the middle and Figure 5 The first pixel D' in the image corresponds to this.

[0079] Accordingly, please refer to Figure 7 , Figure 7 This is a structural diagram of an image rotation device for a display panel according to an embodiment of this application. This application also provides an image rotation device 700 for a display panel, the display panel including a target area. The image rotation device 700 for the display panel includes: an original image acquisition module 701, a first image acquisition module 702, an image scaling factor acquisition module 703, and a second image acquisition module 704.

[0080] The original image acquisition module 701 is used to determine the original image. The display panel includes a target area, which refers to the display area of ​​the display panel. The target area has a size of H in the first coordinate direction X and a size of W in the second coordinate direction Y. The original image is the image to be rotated and displayed in the target area.

[0081] The first image acquisition module 702 is used to rotate the original image by a preset angle to generate the first image.

[0082] In some embodiments, the first image acquisition module 702 is used to acquire the original coordinates of each original pixel on the original image based on a preset coordinate system; acquire the first coordinates of the first pixel corresponding to each original pixel based on each original coordinate and a preset angle; and determine the image composed of each first pixel as the first image.

[0083] In some embodiments, a preset coordinate system is established with the center of the original image as the origin. The preset coordinate system includes a first coordinate direction X and a second coordinate direction Y that are perpendicular to each other. The original coordinates of each original pixel on the original image are (Xn, Yn), where n ≥ 1 and n is an integer.

[0084] In some embodiments, the preset angle is generated after the user rotates counterclockwise, then the first coordinate of the first pixel corresponding to each original pixel is obtained by the following formula (1):

[0085]

[0086] Where X'n and Y'n are the first coordinates, Xn and Yn are the original coordinates, θ is the preset angle, n≥1, and n is an integer. Specifically, the original coordinates (Xn, Yn) and the preset angle θ are substituted into Formula 1 to obtain the first coordinates (X'n, Y'n).

[0087] It is worth noting that formula (1) is the formula for the first coordinate of the first pixel after rotating the original image counterclockwise by a preset angle with the center of the original image as the origin.

[0088] In other embodiments, the preset angle is generated after the user rotates clockwise, then the following formula (2) obtains the first coordinate of the first pixel corresponding to each original pixel:

[0089]

[0090] Where X'n and Y'n are the first coordinates, Xn and Yn are the original coordinates, θ is the preset angle, n≥1, and n is an integer. Specifically, the original coordinates (Xn, Yn) and the preset angle θ are substituted into Formula 1 to obtain the first coordinates (X'n, Y'n).

[0091] It is worth noting that formula (2) is the formula for the first coordinate of the first pixel after rotating the original image clockwise by a preset angle with the center of the original image as the origin.

[0092] In some embodiments, based on a preset coordinate system, the image formed by the first pixels corresponding to each original pixel is determined as the first image.

[0093] The image scaling factor acquisition module 703 is used to determine the image scaling factor of the first image.

[0094] In some embodiments, the image scaling factor acquisition module 703 is used to acquire the first maximum scaling factor of the first image along the first coordinate direction and the second maximum scaling factor of the first image along the second coordinate direction; and to determine the maximum value among the first maximum scaling factor, the second maximum scaling factor and the preset factor as the image scaling factor, wherein the preset factor is 1.

[0095] In some embodiments, the image scaling factor acquisition module 703 is used to acquire the first coordinates corresponding to the original coordinates of multiple edge pixels; acquire the first maximum coordinate value in the first coordinate direction X among the multiple first coordinates; and determine the first maximum scaling factor α based on the first maximum coordinate value and the size H of the target region in the first coordinate direction.

[0096] In some examples, the original coordinates (Xn, Yn) of multiple edge pixels are substituted into formula (1) or (2) to obtain the corresponding first coordinates (X'n, Y'n); the maximum value among multiple X'n is taken as the first maximum coordinate value X'nmax; the first maximum scaling factor α is determined by the following formula (3):

[0097] α = X ′ nmax*2 / H; Formula (3)

[0098] Where H is the size of the target region in the first coordinate direction X, X'nmax is the first maximum coordinate value in the first coordinate direction X among multiple first coordinates, and α is the first maximum scaling factor.

[0099] In some embodiments, when α is less than or equal to 1, it means that the first image can be fully displayed in the first coordinate direction X of the target area and the first image will not exceed the target area in the first coordinate direction X. When α is greater than 1, it means that the first image cannot be fully displayed in the first coordinate direction X of the target area and the first image will exceed the target area in the first coordinate direction X.

[0100] In some embodiments, the image scaling factor acquisition module 703 is used to acquire the first coordinates corresponding to the original coordinates of multiple edge pixels; acquire the second maximum coordinate value in the second coordinate direction Y among the multiple first coordinates; and determine the second maximum scaling factor β based on the second maximum coordinate value and the size of the target region in the second coordinate direction Y.

[0101] In some examples, the original coordinates (Xn, Yn) of multiple edge pixels are substituted into formula (1) or formula (2) to obtain the corresponding first coordinates (X'n, Y'n); the maximum value among multiple Y'n is taken as the second maximum coordinate value Y'nmax; the second maximum scaling factor β is determined by the following formula (4):

[0102] β=Y ′nmax*2 / W; Formula (4)

[0103] Where W is the size of the target region in the second coordinate direction Y, Y'nmax is the first maximum coordinate value in the second coordinate direction Y among multiple first coordinates, and β is the second maximum scaling factor.

[0104] In some embodiments, when β is less than or equal to 1, it means that the first image can be fully displayed in the second coordinate direction Y of the target area, and the first image will not exceed the target area in the second coordinate direction Y. When β is greater than 1, it means that the first image cannot be fully displayed in the second coordinate direction Y of the target area, and the first image will exceed the target area in the second coordinate direction Y.

[0105] In some embodiments, by determining the maximum value among the first maximum scaling factor, the second maximum scaling factor, and the preset factor as the image scaling factor, it can be ensured that the second image after the first image is scaled based on the image scaling factor γ will not exceed the target area in either the first coordinate direction X or the second coordinate direction Y, and the second image can be fully displayed within the target area, thereby improving the image display effect.

[0106] The second image acquisition module 704 is used to scale the first image based on the image scaling factor to generate a second image, which is then displayed in the target area.

[0107] In some embodiments, the second image acquisition module 704 is used to acquire the second coordinates of the second pixel corresponding to each first pixel based on the first coordinates of each first pixel and the image scaling factor; and to determine the image composed of each second pixel as the second image.

[0108] In some embodiments, the second image acquisition module 704 is used to obtain the second coordinates of the second pixel corresponding to each original pixel using the following formula (5):

[0109]

[0110] Where X”n and Y”n are the second coordinates, X'n and Y'n are the first coordinates, γ is the image scaling factor, n≥1, and n is an integer. Specifically, the second coordinates (X”n, Y’n) are obtained by substituting the first coordinates (X’n, Y’n) and the image scaling factor γ into Formula 4.

[0111] In some examples, when the preset angle is generated after the user rotates counterclockwise, substituting formula (1) into formula (5) yields formula (6), and formula (6) is used to obtain the second coordinate of the second pixel corresponding to each original pixel:

[0112]

[0113] In other examples, when the preset angle is generated after the user rotates clockwise, substituting formula (2) into formula (5) yields formula (7), and formula (7) is used to obtain the second coordinate of the second pixel corresponding to each original pixel:

[0114]

[0115] In some embodiments, the second image can be displayed in the target area using a synchronous display method. That is, after obtaining the second coordinates of the first second pixel corresponding to the first first pixel, the image of the first second pixel is displayed in the target area. Then, after obtaining the second coordinates of the second second pixel corresponding to the second first pixel, the image of the second second pixel is displayed in the target area. The above steps are repeated until a complete second image is formed.

[0116] In other embodiments, the second image can be displayed in the target area by caching before displaying. That is, after obtaining the second coordinates of the first second pixel corresponding to the first first pixel, the image of the first second pixel is cached. Then, after obtaining the second coordinates of the second second pixel corresponding to the second first pixel, the image of the second second pixel is cached. The above steps are repeated until all the images of the second pixels are cached to generate the second image, and then the second image is displayed in the target area.

[0117] It is understood that, through the above solution, the image rotation device of the display panel of this application can rotate the original image by a preset angle to generate a first image, and then scale the first image based on the image scaling factor to generate a second image, so that the second image is displayed in the target area, which can avoid the phenomenon that part of the second image exceeds the target area, thereby improving the image display effect.

[0118] Accordingly, please refer to Figure 8 , Figure 8This is an internal structural diagram of a display device according to an embodiment of this application. This application also provides a display device including a display panel and a processor. The processor rotates the original image using the image rotation method of the display panel of this application, or includes the image rotation device of the display panel of this application. The display device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the display device provides computing and control capabilities. The memory of the display device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the display device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a gaze point estimation method. The display screen of the display device can be a liquid crystal display or an electronic ink display. The input device of the display device can be a touch layer covering the display screen, or buttons, a trackball, or a touchpad provided on the casing of the display device, or an external keyboard, touchpad, or mouse, etc.

[0119] It is understood that, through the above solution, the display device of this application can rotate the original image by a preset angle to generate a first image, and then scale the first image based on the image scaling factor to generate a second image, so that the second image is displayed in the target area, which can avoid the phenomenon that part of the second image exceeds the target area, thereby improving the image display effect.

[0120] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0121] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0122] The image rotation method, apparatus, and display device for the display panel provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method of image rotation of a display panel, characterized by, The display panel comprises a target area; the method comprises: determining an original image; rotating the original image by a preset angle to generate a first image; determining an image scaling factor of the first image; scaling the first image based on the image scaling factor to generate a second image, so that the second image is displayed in the target area.

2. The image rotation method of a display panel according to claim 1, wherein The original image comprises a plurality of original pixels, and the first image comprises a plurality of first pixels, which correspond one-to-one to the plurality of original pixels; The rotating the original image by a preset angle to generate a first image comprises: obtaining original coordinates of each original pixel on the original image based on a preset coordinate system; obtaining first coordinates of a first pixel corresponding to each original pixel based on each original coordinate and the preset angle; determining an image composed of each first pixel as the first image.

3. The image rotation method of a display panel according to claim 2, wherein, The obtaining first coordinates of a first pixel corresponding to each original pixel based on each original coordinate and the preset angle comprises: obtaining first coordinates of a first pixel corresponding to each original pixel by the following formula: wherein X’n and Y’n are the first coordinates, Xn and Yn are the original coordinates, θ is the preset angle, n≥1, and n is an integer.

4. The image rotation method of a display panel according to claim 2, wherein, The preset coordinate system comprises a first coordinate direction and a second coordinate direction; the determining an image scaling factor of the first image comprises: obtaining a first maximum scaling factor of the first image along the first coordinate direction and a second maximum scaling factor of the first image along the second coordinate direction, respectively; determining the maximum value among the first maximum scaling factor, the second maximum scaling factor and a preset coefficient as the image scaling factor, wherein the preset coefficient is 1.

5. The image rotation method of a display panel according to claim 4, wherein, The original pixels comprise a plurality of edge pixels located at edges of the original image; the obtaining a first maximum scaling factor of the first image along the first coordinate direction comprises: obtaining first coordinates corresponding to original coordinates of the plurality of edge pixels; obtaining a first maximum coordinate value in the first coordinate direction among the plurality of first coordinates; determining the first maximum scaling factor based on the first maximum coordinate value and a size of the target area in the first coordinate direction.

6. The image rotation method of a display panel according to claim 4, wherein, The original pixels comprise a plurality of edge pixels located at edges of the original image; the obtaining a second maximum scaling factor of the first image along the second coordinate direction comprises: obtaining first coordinates corresponding to original coordinates of the plurality of edge pixels; obtaining a second maximum coordinate value in the second coordinate direction among the plurality of first coordinates; determining the second maximum scaling factor based on the second maximum coordinate value and a size of the target area in the second coordinate direction.

7. The image rotation method of a display panel according to claim 2, wherein The second image comprises a plurality of second pixels, which correspond one-to-one to the plurality of first pixels; The scaling the first image based on the image scaling factor to generate a second image comprises: obtaining second coordinates of a second pixel corresponding to each first pixel based on the first coordinates of each first pixel and the image scaling factor; An image formed by the second pixels is determined as the second image.

8. The image rotation method of a display panel according to claim 7, wherein, The second coordinate of the second pixel corresponding to each of the first pixels is obtained based on the first coordinate of each of the first pixels and the image scaling factor, and the second coordinate of the second pixel corresponding to each of the first pixels is obtained by the following formula: The second coordinate of the second pixel corresponding to each of the first pixels is obtained by the following formula: Wherein, X"n and Y"n are the second coordinates, X'n and Y'n are the first coordinates, γ is the image scaling factor, n≥1, and n is an integer.

9. An image rotation device of a display panel, characterized by comprising: The display panel comprises a target region; and the device comprises: An original image acquisition module is configured to determine an original image; A first image acquisition module is configured to rotate the original image by a preset angle to generate a first image; An image scaling factor acquisition module is configured to determine an image scaling factor of the first image; A second image acquisition module is configured to scale the first image based on the image scaling factor to generate a second image, and the second image is displayed on the target region.

10. A display device, characterized by A display panel and a processor are provided, the processor is configured to rotate an original image by using the image rotation method of the display panel according to any one of claims 1-8, or the display panel comprises the image rotation device according to claim 9.