Image display method and device, electronic equipment and storage medium

By determining the resolution matching information in the image display device and performing pixel and grayscale mapping, the adaptability problem of image display with different resolutions is solved, the frame rate and power consumption are reduced, and the needs of various usage scenarios are met.

CN118609494APending Publication Date: 2024-09-06NANJING SMARTVISION ELECTRONICS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410761853.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing image display devices are difficult to adapt to source images of different resolutions, and the frame rate is too high, resulting in high power consumption, and cannot meet the needs of various usage scenarios.

Method used

By determining the resolution matching information between the source image and the display screen, calculate the pixel mapping information and grayscale mapping information, and adjust the display mode of the image on the display screen. If the resolution does not match, pixel and grayscale mapping is performed to adapt to different resolutions. rate display and lower the frame rate to reduce power consumption.

Benefits of technology

It achieves efficient display of images at different resolutions to meet the needs of various usage scenarios, while reducing the power consumption of the display device and avoiding flickering caused by excessive frame rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609494A
    Figure CN118609494A
Patent Text Reader

Abstract

The invention provides an image display method and apparatus, an electronic device and a storage medium. The method comprises the steps of determining matching information of an image resolution of a source image and a screen resolution of a display screen; if the matching information indicates that the image resolution is smaller than the screen resolution, determining pixel mapping information and gray scale mapping information according to the image resolution and the screen resolution, and performing image display on a display screen according to the pixel mapping information and the gray scale mapping information; and if the matching information indicates that the image resolution is equal to the screen resolution, displaying the image on a display screen according to the gray scale information of the source image. According to the technical scheme, display of different resolutions can be met, so that the display device is suitable for various use scenes, meanwhile, the frame rate and power consumption of the display device can be reduced, and in addition, it is guaranteed that a display screen does not flicker while the frame rate is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image display technology, and in particular to an image display method, device, electronic device and storage medium. Background Art

[0002] In the field of image display, different images can be displayed by a display screen in a display device. The display screen has a fixed physical pixel resolution. At present, when the display device is actually used, the image resolution of the source image input to the display device may not match the physical pixel resolution of the display screen, making it impossible for the display device to meet the display requirements of source images of different resolutions and difficult to apply to a variety of usage scenarios. At the same time, for the display device, there is a problem of too high frame rate and thus too high power consumption.

[0003] Therefore, how to make the display device meet the display requirements of source images with different resolutions, how to make the display device suitable for various usage scenarios, and how to reduce the frame rate and power consumption of the display device are issues that need to be solved urgently. Summary of the invention

[0004] The purpose of the present application is to provide an image display method, device, electronic device and storage medium to improve the accuracy of image display in view of the deficiencies in the above-mentioned prior art.

[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, an embodiment of the present application provides an image display method, the method comprising: being applied to a display device, the display device comprising a display screen, the method comprising:

[0007] Determining matching information between an image resolution of a source image and a screen resolution of the display screen;

[0008] If the matching information indicates that the image resolution is smaller than the screen resolution, pixel mapping information and grayscale mapping information are determined according to the image resolution and the screen resolution, and the image is displayed on the display screen according to the pixel mapping information and the grayscale mapping information, wherein the pixel mapping information is used to indicate a plurality of target pixel points corresponding to each source pixel point in the source image on the display screen, and the grayscale mapping information is used to indicate a target grayscale value of a plurality of target pixel points corresponding to a source grayscale value of each source pixel point;

[0009] If the matching information indicates that the image resolution is equal to the screen resolution, the image is displayed on the display screen according to the grayscale information of the source image.

[0010] Optionally, determining pixel mapping information and grayscale mapping information according to the image resolution and the screen resolution includes:

[0011] Determine, according to the image resolution and the screen resolution, the number of row pixels and the number of column pixels corresponding to a source pixel in the source image on the display screen;

[0012] The pixel mapping information and the grayscale mapping information are determined according to the number of row pixels and the number of column pixels.

[0013] Optionally, determining the pixel mapping information and the grayscale mapping information according to the number of row pixels and the number of column pixels includes:

[0014] Calculate the product of the number of pixel points in the row and the number of pixel points in the column to obtain a target number;

[0015] Using the target number of pixel points in the display screen corresponding to the position of a source pixel point in the source image as a plurality of target pixel points corresponding to the one source pixel point;

[0016] Determine the minimum value of the number of pixel points in the row and the number of pixel points in the column;

[0017] The target grayscale values ​​of the plurality of target pixels corresponding to the source grayscale values ​​of the source pixel are determined according to the minimum value, the source grayscale value of the source pixel and a preset arrangement.

[0018] Optionally, determining the target grayscale values ​​of the plurality of target pixels corresponding to the source grayscale value of the source pixel according to the minimum value, the source grayscale value of the source pixel and a preset arrangement method includes:

[0019] According to the minimum value, the grayscale of the source image is divided into a plurality of grayscale intervals, and the number of the grayscale intervals is 2 n , where n is the minimum value;

[0020] Determining a target grayscale interval in which a source grayscale value of the source pixel point lies;

[0021] According to the preset arrangement mode and the target grayscale interval, target grayscale values ​​of the plurality of target pixel points corresponding to the source grayscale value of the source pixel point are determined.

[0022] Optionally, determining the target grayscale values ​​of the plurality of target pixel points corresponding to the source grayscale value of the source pixel point according to the preset arrangement mode and the target grayscale interval includes:

[0023] Determine the number of lit pixels corresponding to the target grayscale interval;

[0024] According to the preset arrangement and the number of lit pixels corresponding to the target grayscale interval, the pixels to be lit among the multiple target pixels are determined, wherein the target grayscale value is represented by the lighting of the pixels to be lit and the extinguishing of pixels other than the pixels to be lit.

[0025] Optionally, displaying an image on the display screen according to the pixel mapping information and the grayscale mapping information includes:

[0026] Control the pixel points to be lit among the multiple target pixel points to light up.

[0027] Optionally, the determining the matching information between the image resolution of the source image and the screen resolution of the display screen includes:

[0028] Receive configuration information input by the user;

[0029] According to the configuration information, matching information between the image resolution of the source image and the screen resolution of the display screen is determined.

[0030] In a second aspect, an embodiment of the present application further provides an image display device, the device comprising:

[0031] A determination module, used to determine matching information between the image resolution of the source image and the screen resolution of the display screen;

[0032] A display module, configured to determine pixel mapping information and grayscale mapping information according to the image resolution and the screen resolution if the matching information indicates that the image resolution is smaller than the screen resolution, and to display an image on the display screen according to the pixel mapping information and the grayscale mapping information, wherein the pixel mapping information is used to indicate a plurality of target pixel points corresponding to each source pixel point in the source image on the display screen, and the grayscale mapping information is used to indicate a target grayscale value of a plurality of target pixel points corresponding to a source grayscale value of each source pixel point;

[0033] A display module is configured to display an image on the display screen according to grayscale information of the source image if the matching information indicates that the image resolution is equal to the screen resolution.

[0034] Optionally, the determining module is specifically used to:

[0035] Determine, according to the image resolution and the screen resolution, the number of row pixels and the number of column pixels corresponding to a source pixel in the source image on the display screen;

[0036] The pixel mapping information and the grayscale mapping information are determined according to the number of row pixels and the number of column pixels.

[0037] Optionally, the determining module is specifically used to:

[0038] Calculate the product of the number of pixel points in the row and the number of pixel points in the column to obtain a target number;

[0039] Using the target number of pixel points in the display screen corresponding to the position of a source pixel point in the source image as a plurality of target pixel points corresponding to the one source pixel point;

[0040] Determine the minimum value of the number of pixel points in the row and the number of pixel points in the column;

[0041] The target grayscale values ​​of the plurality of target pixels corresponding to the source grayscale values ​​of the source pixel are determined according to the minimum value, the source grayscale value of the source pixel and a preset arrangement.

[0042] Optionally, the determining module is specifically used to:

[0043] According to the minimum value, the grayscale of the source image is divided into a plurality of grayscale intervals, and the number of the grayscale intervals is 2 n , where n is the minimum value;

[0044] Determining a target grayscale interval in which a source grayscale value of the source pixel point lies;

[0045] According to the preset arrangement mode and the target grayscale interval, target grayscale values ​​of the plurality of target pixel points corresponding to the source grayscale value of the source pixel point are determined.

[0046] Optionally, the determining module is specifically used to:

[0047] Determine the number of lit pixels corresponding to the target grayscale interval;

[0048] According to the preset arrangement and the number of lit pixels corresponding to the target grayscale interval, the pixels to be lit among the multiple target pixels are determined, wherein the target grayscale value is represented by the lighting of the pixels to be lit and the extinguishing of pixels other than the pixels to be lit.

[0049] Optionally, the display module is specifically used for:

[0050] Control the pixel points to be lit among the multiple target pixel points to light up.

[0051] Optionally, the determining module is specifically used to:

[0052] Receive configuration information input by the user;

[0053] According to the configuration information, matching information between the image resolution of the source image and the screen resolution of the display screen is determined.

[0054] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when an application is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the image display method described in the first aspect above.

[0055] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is read and executes the steps of the image display method described in the first aspect above.

[0056] The beneficial effects of this application are:

[0057] The present application provides an image display method, device, electronic device and storage medium. When the image resolution of the source image is smaller than the screen resolution of the display screen, the pixel mapping information and grayscale mapping information are determined according to the image resolution and the screen resolution, and the source image is displayed on the display screen according to the pixel mapping information and the grayscale mapping information, so that the source image smaller than the screen resolution can be displayed, that is, the image with a small resolution can be displayed on the screen with a large resolution; if the image resolution is equal to the screen resolution, the source image is displayed on the display screen according to the grayscale information of the source image, so that the image with the same resolution as the screen resolution and a smaller resolution can be displayed on the display screen, which can meet the display of different resolutions without changing the screen, so that the display device can be applied to a variety of different application scenarios. At the same time, when displaying an image with a small resolution, it is also displayed according to the grayscale mapping information, which can reduce the frame rate of the image display at the source and the exit, and thus reduce the power consumption of the display screen. In addition, this embodiment reduces the frame rate while ensuring that the display screen does not flicker. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1A schematic diagram of a flow chart of an image display method provided in an embodiment of the present application;

[0060] Figure 2 A schematic diagram of a flow chart of another image display method provided in an embodiment of the present application;

[0061] Figure 3 A schematic diagram of a flow chart of another image display method provided in an embodiment of the present application;

[0062] Figure 4 A schematic diagram of image mapping provided in an embodiment of the present application;

[0063] Figure 5 Another image mapping schematic diagram provided in an embodiment of the present application;

[0064] Figure 6 A schematic diagram of another image mapping provided in an embodiment of the present application;

[0065] Figure 7 A schematic diagram of a flow chart of another image display method provided in an embodiment of the present application;

[0066] Figure 8 A schematic diagram of a process for determining a pixel to be lit at a target pixel provided in an embodiment of the present application;

[0067] Fig. 9 A schematic diagram of a mapping arrangement method provided in an embodiment of the present application;

[0068] Fig.10 A schematic diagram of another mapping arrangement method provided in an embodiment of the present application;

[0069] Fig.11 A schematic diagram of an apparatus for an image display method provided in an embodiment of the present application;

[0070] Fig.12 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0072] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0073] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0074] Optionally, the image display method provided in the embodiment of the present application is applied to a display device, which can be, for example, a mobile phone, a tablet computer, a laptop computer, a PDA, a desktop computer, or other terminal device with computing and display capabilities. Specifically, it can be applied to an application program in a terminal device, such as an APP (application, mobile phone software) of a mobile phone, an application system on a computer, etc.

[0075] The specific implementation process of the image display provided in the embodiments of the present application is explained in detail below.

[0076] Figure 1 The flowchart of an image display method provided in an embodiment of the present application is shown in FIG. 1 , wherein the execution subject of the method is the display device described above. Figure 1 As shown, the method includes:

[0077] S101: Determine matching information between an image resolution of a source image and a screen resolution of a display screen.

[0078] The matching information refers to the size matching relationship between the image resolution and the screen resolution.

[0079] Optionally, if the matching information is that the image resolution is smaller than the screen resolution, the following S102 is executed; if the matching information is that the image resolution is equal to the screen resolution, the following S103 is executed.

[0080] Optionally, the screen resolution of the display screen refers to the resolution of the display screen on the display device, the screen resolution of the display screen is fixed, and the image resolution of the source image can be a plurality of different image resolutions. Then, according to the matching information between the image resolution of the source image and the screen resolution of the display screen, the method provided in the embodiment of the present application can be used to display the source images with different image resolutions on the display screen of the display device.

[0081] Exemplarily, the image resolution of source image 1 can be 640×480, the image resolution of source image 2 can be 960×540, the image resolution of source image 3 can be 1024×768, the image resolution of source image 4 can be 1600×1200, and the image resolution of source image 5 can be 960×540. The screen resolution of the display screen can be 960×540, for example. It can be determined that the image resolutions of source image 1, source image 2, source image 3 and source image 4 are all smaller than the screen resolution, and the image resolution of source image 5 is equal to the screen resolution.

[0082] S102: Determine pixel mapping information and grayscale mapping information according to the image resolution and the screen resolution, and display the image on the display screen according to the pixel mapping information and the grayscale mapping information.

[0083] The pixel mapping information may refer to a plurality of target pixel points corresponding to each source pixel point in the source image in the display screen, and the grayscale mapping information may refer to a target grayscale value of a plurality of target pixel points corresponding to a source grayscale value of each source pixel point.

[0084] Optionally, a preset method can be used according to the image resolution and the screen resolution to determine the multiple target pixels corresponding to each source pixel in the source image on the display screen and the target grayscale values ​​of the multiple target pixels corresponding to the source grayscale value of each source pixel. That is to say, each source pixel in the source image is mapped to the multiple target pixel on the display screen, and the source grayscale value of each source pixel is mapped to the target grayscale value of the multiple target pixel points, then the target grayscale value of each target pixel on the display screen becomes smaller relative to the source grayscale value of each pixel in the source image.

[0085] Exemplarily, a source pixel in source image A can be mapped to two target pixels on the display screen, and the source grayscale value of the source pixel can be mapped to the target grayscale value of the two target pixels; a source pixel in source image B can be mapped to four target pixels on the display screen, and the source grayscale value of the source pixel can be mapped to the target grayscale value of the four target pixels; a source pixel in source image C can be mapped to nine target pixels on the display screen, and the source grayscale value of the source pixel can be mapped to the target grayscale value of the nine target pixels.

[0086] S103 , displaying the image on a display screen according to the grayscale information of the source image.

[0087] Optionally, when the image resolution of the source image is equal to the screen resolution, the source image can be directly displayed on the display screen according to the resolution of the source image, and the grayscale information of each pixel on the display screen can be the same as or different from the source grayscale value of each source pixel in the source image.

[0088] For example, if the grayscale of the source image is 8 bits, the source grayscale value of each source pixel in the source image is a value between 0 and 255, and the image can be displayed on the display screen according to the 8 bits of the source image, that is, the grayscale value of each pixel on the display screen is also 8 bits.

[0089] In this embodiment, when the image resolution of the source image is smaller than the screen resolution of the display screen, the pixel mapping information and the grayscale mapping information are determined according to the image resolution and the screen resolution, and the source image is displayed on the display screen according to the pixel mapping information and the grayscale mapping information, so that the source image smaller than the screen resolution can be displayed, that is, the image with a small resolution can be displayed on the screen with a large resolution; if the image resolution is equal to the screen resolution, the source image is displayed on the display screen according to the grayscale information of the source image, so that the image with the same resolution as the screen resolution and a smaller resolution can be displayed on the display screen, which can meet the display of different resolutions without changing the screen, so that the display device can be applied to a variety of different application scenarios. At the same time, when displaying an image with a small resolution, it is also displayed according to the grayscale mapping information, which can reduce the frame rate of the image display at the source and the exit, and thus reduce the power consumption of the display screen. In addition, this embodiment reduces the frame rate while ensuring that the display screen does not flicker.

[0090] Figure 2 A flowchart of another image display method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, determining the pixel mapping information and the grayscale mapping information according to the image resolution and the screen resolution in S102 may include:

[0091] S201. Determine, according to the image resolution and the screen resolution, the number of row pixels and the number of column pixels corresponding to a source pixel in the source image on the display screen.

[0092] Optionally, the image resolution of the source image includes row resolution and column resolution, and the screen resolution also includes row resolution and column resolution. Then, the number of row pixels corresponding to the source pixel on the display screen can be determined according to the row resolution in the image resolution and the row resolution in the screen resolution, and the number of column pixels can be determined according to the column resolution in the image resolution and the column resolution in the screen resolution. The number of row pixels can be represented by n, for example, and the number of column pixels can be represented by m.

[0093] A source pixel in the source image refers to any source pixel in the source image, such as the following Figure 4 The source pixel point in the first row and first column of the source image may also be the source pixel point in the first row and second column, or the source pixel point in the second row and first column, etc.

[0094] Specifically, the number of row pixels is the numerator of the row resolution in the image resolution divided by the row resolution in the screen resolution, and the number of column pixels is the numerator of the column resolution in the image resolution divided by the column resolution in the screen resolution. Specifically, if the row resolution in the image resolution divided by the row resolution in the screen resolution is x / n, the number of row pixels is n; if the column resolution in the image resolution divided by the column resolution in the screen resolution is x / m, the number of column pixels is m.

[0095] For example, if the row resolution in the image resolution is divided by the row resolution in the screen resolution, which is 1 / 2, then the number of row pixels is 2; if the column resolution in the image resolution is divided by the column resolution in the screen resolution, which is 1 / 2, then the number of column pixels is 2, as shown below: Figure 5 as shown in .

[0096] For example, if the row resolution in the image resolution is divided by the row resolution in the screen resolution, which is 1 / 3, then the number of row pixels is 3; if the column resolution in the image resolution is divided by the column resolution in the screen resolution, which is 1 / 3, then the number of column pixels is 3, as shown below: Figure 6 as shown in .

[0097] S202: Determine pixel mapping information and grayscale mapping information according to the number of row pixel points and the number of column pixel points.

[0098] Optionally, the pixel mapping information and the grayscale mapping information may be determined using a preset method according to the number n of row pixels and the number m of column pixels.

[0099] Figure 3 A flowchart of another image display method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, in the above S202, determining the pixel mapping information and the grayscale mapping information according to the number of row pixels and the number of column pixels may include:

[0100] S301, calculating the product of the number of row pixels and the number of column pixels to obtain a target number.

[0101] Specifically, the number of row pixel points n and the number of column pixel points m may be multiplied to obtain a target number of n×m.

[0102] Exemplarily, when the number of row pixel points is 2 and the number of column pixel points is 2, the obtained target number is 4. When the number of row pixel points is 3 and the number of column pixel points is 3, the obtained target number is 9.

[0103] S302, treating a target number of pixel points in the display screen corresponding to a position of a source pixel point in the source image as a plurality of target pixel points corresponding to a source pixel point.

[0104] Optionally, a source pixel point in the source image may be mapped to n×m target pixel points in the display screen, and positions of the multiple target pixel points in the display screen correspond one-to-one to positions of the source pixel points in the source image.

[0105] Specifically, Figure 4 As shown, each pixel point in the display screen on the right can be divided into n×m pixel blocks in the order from left to right and from top to bottom, and then the source pixel point in the 1st row and 1st column of the source image can be mapped to each pixel point in the 1st to nth rows and 1st to mth columns of the display screen; the source pixel point in the 2nd row and 1st column of the source image can be mapped to each pixel point in the (n+1)th to 2nth rows and 1st to mth columns of the display screen; the source pixel point in the 3rd row and 1st column of the source image can be mapped to each pixel point in the (2n+1)th to 3nth rows and 1st to mth columns of the display screen; the source pixel point in the 1st row and 2nd column of the source image can be mapped to each pixel point in the 1st to nth rows and (m+1)th to 2mth columns of the display screen, and so on, so that each source pixel point in the source image can be mapped to multiple target pixel points on the display screen.

[0106] For example, Figure 5 Another image mapping schematic diagram provided in the embodiment of the present application is as follows: Figure 5 As shown, Figure 5 The left side of the figure is a schematic diagram of each source pixel of the source image, and the right side of the figure is a schematic diagram of each pixel of the display screen. Figure 5 The resolution of the source image in is 1 / 2 of the resolution of the display screen, then, Figure 5The source pixel point in the 1st row and the 1st column in can be mapped to the 4 target pixel points in the 1st to 2nd rows and the 1st to 2nd columns in the display screen.

[0107] For example, Figure 6 Another image mapping schematic diagram provided in the embodiment of the present application is as follows: Figure 6 As shown, Figure 6 The left side of the figure is a schematic diagram of each source pixel of the source image, and the right side of the figure is a schematic diagram of each pixel of the display screen. Figure 6 The resolution of the source image in is 1 / 3 of the resolution of the display screen, then, Figure 6 The source pixel point in the 1st row and the 1st column in can be mapped to 9 target pixel points in the 1st to 3rd rows and the 1st to 3rd columns in the display screen.

[0108] S303: Determine the minimum value between the number of row pixel points and the number of column pixel points.

[0109] Specifically, a minimum value is selected from the number of row pixels n and the number of column pixels m. If the number of row pixels n and the number of column pixels m are the same, one of them is selected.

[0110] Exemplarily, if the number of row pixel points is 2 and the number of column pixel points is also 2, then the minimum value is also 2. If the number of row pixel points is 3 and the number of column pixel points is 4, then the minimum value is 3.

[0111] S304 , determining target grayscale values ​​of a plurality of target pixel points corresponding to the source grayscale values ​​of the source pixel points according to the minimum value, the source grayscale value of the source pixel points, and a preset arrangement method.

[0112] Exemplarily, the source grayscale value of the source pixel may be, for example, 8 bits, that is, 256 grayscale values.

[0113] The preset arrangement may refer to an arrangement of a source pixel point mapped to a plurality of target pixel points on the display screen.

[0114] Figure 7 A flowchart of another image display method provided in an embodiment of the present application is shown as follows: Figure 7 As shown, in the above S304, determining the target grayscale values ​​of multiple target pixels corresponding to the source grayscale values ​​of the source pixels according to the minimum value, the source grayscale value of the source pixels and the preset arrangement method may include:

[0115] S401 . Divide the grayscale of the source image into a plurality of grayscale intervals according to the minimum value.

[0116] Among them, the number of grayscale intervals is 2 n , where n is the minimum value.

[0117] For example, if the grayscale of the source image is 256 grayscales, and the minimum value of the number of row pixels and the number of column pixels is 2, the grayscale of the source image can be divided into 4 grayscale intervals, and the grayscale intervals are 0 to 64, 65 to 128, 129 to 192, and 193 to 256. If the minimum value of the number of row pixels and the number of column pixels is 3, the grayscale of the source image can be divided into 8 grayscale intervals.

[0118] S402: Determine the target grayscale interval in which the source grayscale value of the source pixel point lies.

[0119] Exemplarily, continuing with the example of dividing 256 grayscales into 4 grayscale intervals, if the source grayscale value of the source pixel is 26, then the target grayscale interval of the source grayscale value of the source pixel is the first grayscale interval; if the source grayscale value of the source pixel is 106, then the target grayscale interval of the source grayscale value of the source pixel is the second grayscale interval; if the source grayscale value of the source pixel is 138, then the target grayscale interval of the source grayscale value of the source pixel is the third grayscale interval; if the source grayscale value of the source pixel is 248, then the target grayscale interval of the source grayscale value of the source pixel is the fourth grayscale interval.

[0120] S403 , determining target grayscale values ​​of a plurality of target pixel points corresponding to the source grayscale values ​​of the source pixel points according to a preset arrangement order and a target grayscale range.

[0121] Exemplarily, if the target grayscale interval is the first grayscale interval, the target grayscale value of multiple target pixels is 0; if the target grayscale interval is the second grayscale interval, the target grayscale value of multiple target pixels is 1; if the target grayscale interval is the third grayscale interval, the target grayscale value of multiple target pixels is 2; if the target grayscale interval is the fourth grayscale interval, the target grayscale value of multiple target pixels is 3.

[0122] Figure 8 A schematic diagram of a process for determining a pixel to be lit at a target pixel provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, in the above S403, determining the target grayscale values ​​of the plurality of target pixels corresponding to the source grayscale values ​​of the source pixels according to the preset arrangement order and the target grayscale interval may include:

[0123] S501: Determine the number of lighted pixels corresponding to the target grayscale interval.

[0124] For example, for the above Figure 5In the example, a source pixel in the source image is mapped to four target pixels on the display screen, and the grayscale of the source image can be mapped to four grayscale intervals on the display screen. The number of lit pixels corresponding to the target grayscale interval after the source grayscale value of the source pixel is mapped can be determined according to the target grayscale interval. For example, for the four grayscale intervals of the first grayscale interval 0-64, the second grayscale interval 65-128, the third grayscale interval 129-192, and the fourth grayscale interval 193-256, the number of lit pixels that can be determined in the first grayscale interval is 0, the number of lit pixels that can be determined in the second grayscale interval is 1, the number of lit pixels that can be determined in the third grayscale interval is 2, and the number of lit pixels that can be determined in the fourth grayscale interval is 3. Specifically, Fig. 9 shown.

[0125] For example, for the above Figure 6 As shown, a source pixel in the source image is mapped to 9 target pixels on the display screen, the grayscale of the source image can be mapped to 9 grayscale intervals on the display screen, and the number of lit pixels corresponding to the target grayscale interval after the source grayscale value of the source pixel is mapped can be determined, as shown in Fig.10 As shown, the number of lighted pixels that can be determined can be any one of 0, 1, 2, 3, 4, 5, 6, and 7, for example.

[0126] S502: Determine pixels to be lit among a plurality of target pixels according to a preset arrangement method and the number of lit pixels corresponding to a target grayscale interval.

[0127] The target grayscale value can be represented by lighting up the pixel points to be lit and extinguishing the pixel points other than the pixel points to be lit.

[0128] Optionally, the preset arrangement refers to an arrangement of multiple target pixels. Fig. 9 As shown, if the pixel to be lit among the four target pixels is 0, that is, the four target pixels are all off, when the above four target pixels are all off, the four target pixels can present the effect of the grayscale value of "0".

[0129] For example, if the number of pixels to be lit among the four target pixels is 1, that is, one of the four target pixels is lit, and the other three target pixels are all off. Fig. 9As shown in the second figure in , the preset arrangement can be that the upper left target pixel is lit and the other target pixels are off; the upper right target pixel is lit and the other target pixels are off; the lower left target pixel is lit and the other target pixels are off; the lower right target pixel is lit and the other target pixels are off. When one of the above four target pixels is lit and the other three are off, the four target pixels can present the effect of a grayscale value of "1".

[0130] For example, if the number of pixels to be lit among the four target pixels is 2, that is, two of the four target pixels are lit, and the other two target pixels are off. Fig. 9 As shown in the third figure in the figure, the preset arrangement can be that the upper left and upper right target pixels are lit, and the other target pixels are turned off; the upper left and lower left target pixels are lit, and the other target pixels are turned off; the upper right and lower right target pixels are lit, and the other target pixels are turned off; the lower left and lower right target pixels are lit, and the other target pixels are turned off. When two of the above four target pixels are lit, and the other two are turned off, the four target pixels can present the effect of the grayscale value "2".

[0131] For example, Fig.10 As shown, for 9 target pixels, we can Fig.10 The arrangement shown and the number of lit pixels corresponding to the target grayscale interval are used to determine the pixels to be lit among the multiple target pixels. It is worth noting that Fig.10 The arrangement of the number of lit pixels corresponding to the target grayscale interval is only an example, and other arrangements are also possible.

[0132] In the present embodiment, the pixels to be lit among multiple target pixels are determined according to a preset arrangement and the number of lit pixels corresponding to the target grayscale range, so that the source grayscale value of a source pixel can be mapped on the display screen through the target grayscale values ​​of multiple target pixels, thereby reducing the source grayscale value of the source pixel, thereby reducing the power consumption of the display device, and no flickering will occur on the display screen.

[0133] Optionally, the step of displaying an image on a display screen according to the pixel mapping information and the grayscale mapping information in S102 may include:

[0134] Optionally, the pixel points to be lit among the plurality of target pixel points may be controlled to be lit.

[0135] Optionally, the matching information of the image resolution of the source image and the screen resolution of the display screen determined in S101 may include:

[0136] Optionally, configuration information input by a user may be received, wherein the configuration information input by the user may be, for example, frame rate information of a display screen.

[0137] Optionally, matching information between the image resolution of the source image and the screen resolution of the display screen may be determined according to configuration information input by the user.

[0138] Fig.11 A schematic diagram of an apparatus for an image display method provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the device comprises:

[0139] A determination module 601 is used to determine matching information between the image resolution of the source image and the screen resolution of the display screen;

[0140] Display module 602, configured to determine pixel mapping information and grayscale mapping information according to the image resolution and the screen resolution if the matching information indicates that the image resolution is smaller than the screen resolution, and to display the image on the display screen according to the pixel mapping information and the grayscale mapping information, wherein the pixel mapping information is used to indicate a plurality of target pixel points corresponding to each source pixel point in the source image on the display screen, and the grayscale mapping information is used to indicate a target grayscale value of a plurality of target pixel points corresponding to a source grayscale value of each source pixel point;

[0141] The display module 602 is configured to display an image on the display screen according to the grayscale information of the source image if the matching information indicates that the image resolution is equal to the screen resolution.

[0142] Optionally, the determining module 601 is specifically configured to:

[0143] Determine, according to the image resolution and the screen resolution, the number of row pixels and the number of column pixels corresponding to a source pixel in the source image on the display screen;

[0144] The pixel mapping information and the grayscale mapping information are determined according to the number of row pixels and the number of column pixels.

[0145] Optionally, the determining module 601 is specifically configured to:

[0146] Calculate the product of the number of pixel points in the row and the number of pixel points in the column to obtain a target number;

[0147] Using the target number of pixel points in the display screen corresponding to the position of a source pixel point in the source image as a plurality of target pixel points corresponding to the one source pixel point;

[0148] Determine the minimum value of the number of pixel points in the row and the number of pixel points in the column;

[0149] The target grayscale values ​​of the plurality of target pixels corresponding to the source grayscale values ​​of the source pixel are determined according to the minimum value, the source grayscale value of the source pixel and a preset arrangement.

[0150] Optionally, the determining module 601 is specifically configured to:

[0151] According to the minimum value, the grayscale of the source image is divided into a plurality of grayscale intervals, and the number of the grayscale intervals is 2 n , where n is the minimum value;

[0152] Determining a target grayscale interval in which a source grayscale value of the source pixel point lies;

[0153] According to the preset arrangement mode and the target grayscale interval, target grayscale values ​​of the plurality of target pixel points corresponding to the source grayscale value of the source pixel point are determined.

[0154] Optionally, the determining 601 module is specifically used for:

[0155] Determine the number of lit pixels corresponding to the target grayscale interval;

[0156] According to the preset arrangement and the number of lit pixels corresponding to the target grayscale interval, the pixels to be lit among the multiple target pixels are determined, wherein the target grayscale value is represented by the lighting of the pixels to be lit and the extinguishing of pixels other than the pixels to be lit.

[0157] Optionally, the display module 601 is specifically used for:

[0158] Control the pixel points to be lit among the multiple target pixel points to light up.

[0159] Optionally, the determining module 601 is specifically configured to:

[0160] Receive configuration information input by the user;

[0161] According to the configuration information, matching information between the image resolution of the source image and the screen resolution of the display screen is determined.

[0162] Fig.12 7 is a structural block diagram of an electronic device 700 provided in an embodiment of the present application. The electronic device may be, for example, the display device described in the above embodiment. Fig.12 As shown, the electronic device may include: a processor 701 and a memory 702 .

[0163] Optionally, a bus 703 may also be included, wherein the memory 702 is used to store machine-readable instructions executable by the processor 701. When the electronic device 700 is running, the processor 701 communicates with the memory 702 through the bus 703. When the machine-readable instructions are executed by the processor 701, the method steps in the above method embodiment are performed.

[0164] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method steps in the above-mentioned image display method embodiment are executed.

[0165] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0166] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.

[0167] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. An image display method, characterized in that: Applied to a display device, the display device includes a display screen, and the method includes: Determining matching information between an image resolution of a source image and a screen resolution of the display screen; If the matching information indicates that the image resolution is smaller than the screen resolution, pixel mapping information and grayscale mapping information are determined according to the image resolution and the screen resolution, and the image is displayed on the display screen according to the pixel mapping information and the grayscale mapping information, wherein the pixel mapping information is used to indicate a plurality of target pixel points corresponding to each source pixel point in the source image on the display screen, and the grayscale mapping information is used to indicate a target grayscale value of a plurality of target pixel points corresponding to a source grayscale value of each source pixel point; If the matching information indicates that the image resolution is equal to the screen resolution, the image is displayed on the display screen according to the grayscale information of the source image.

2. The image display method according to claim 1, characterized in that: The determining pixel mapping information and grayscale mapping information according to the image resolution and the screen resolution includes: Determine, according to the image resolution and the screen resolution, the number of row pixels and the number of column pixels corresponding to a source pixel in the source image on the display screen; The pixel mapping information and the grayscale mapping information are determined according to the number of row pixels and the number of column pixels.

3. The image display method according to claim 2, characterized in that: The determining the pixel mapping information and the grayscale mapping information according to the number of row pixels and the number of column pixels includes: Calculate the product of the number of pixel points in the row and the number of pixel points in the column to obtain a target number; Using the target number of pixel points in the display screen corresponding to the position of a source pixel point in the source image as a plurality of target pixel points corresponding to the one source pixel point; Determine the minimum value of the number of pixel points in the row and the number of pixel points in the column; The target grayscale values ​​of the plurality of target pixels corresponding to the source grayscale values ​​of the source pixel are determined according to the minimum value, the source grayscale value of the source pixel and a preset arrangement.

4. The image display method according to claim 3, characterized in that: The step of determining the target grayscale values ​​of the plurality of target pixels corresponding to the source grayscale values ​​of the source pixel points according to the minimum value, the source grayscale value of the source pixel points, and a preset arrangement method includes: According to the minimum value, the grayscale of the source image is divided into a plurality of grayscale intervals, and the number of the grayscale intervals is 2 n , where n is the minimum value; Determining a target grayscale interval in which a source grayscale value of the source pixel point lies; According to the preset arrangement mode and the target grayscale interval, target grayscale values ​​of the plurality of target pixel points corresponding to the source grayscale value of the source pixel point are determined.

5. The image display method according to claim 4, characterized in that: The step of determining the target grayscale values ​​of the plurality of target pixels corresponding to the source grayscale values ​​of the source pixels according to the preset arrangement mode and the target grayscale interval includes: Determine the number of lit pixels corresponding to the target grayscale interval; According to the preset arrangement and the number of lit pixels corresponding to the target grayscale interval, the pixels to be lit among the multiple target pixels are determined, wherein the target grayscale value is represented by the lighting of the pixels to be lit and the extinguishing of pixels other than the pixels to be lit.

6. The image display method according to claim 5, characterized in that: The performing image display on the display screen according to the pixel mapping information and the grayscale mapping information comprises: Control the pixel points to be lit among the multiple target pixel points to light up.

7. The image display method according to any one of claims 1 to 6, characterized in that: The determining of the matching information between the image resolution of the source image and the screen resolution of the display screen includes: Receive configuration information input by the user; According to the configuration information, matching information between the image resolution of the source image and the screen resolution of the display screen is determined.

8. An image display device, characterized in that: include: A determination module, used to determine matching information between an image resolution of a source image and a screen resolution of a display screen; A display module, configured to determine pixel mapping information and grayscale mapping information according to the image resolution and the screen resolution if the matching information indicates that the image resolution is smaller than the screen resolution, and to display an image on the display screen according to the pixel mapping information and the grayscale mapping information, wherein the pixel mapping information is used to indicate a plurality of target pixel points corresponding to each source pixel point in the source image on the display screen, and the grayscale mapping information is used to indicate a target grayscale value of a plurality of target pixel points corresponding to a source grayscale value of each source pixel point; A display module is configured to display an image on the display screen according to grayscale information of the source image if the matching information indicates that the image resolution is equal to the screen resolution.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable by the processor, and the processor implements the steps of the image display method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image display method according to any one of claims 1 to 7 are executed.

Citation Information

Cited By

  • Cholesteric LCD display screen image display device based on FPGA

    CN119541411A