Image display method, device, electronic device and storage medium

By adjusting the vertical pixel parameters and horizontal synchronization signal processing of the image to be displayed, the problem of inconsistent resolution between the image display end and the image display end is solved, and normal display and quality fidelity of the image are achieved.

CN115909987BActive Publication Date: 2025-08-08CHIP WEALTH TECH LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211553661.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2025-08-08
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

The prior art cannot completely loosen the matching rules between the image to be displayed and the image display end, resulting in the image being unable to display normally when the resolution is inconsistent.

Method used

By obtaining the size comparison relationship between the vertical pixel parameters of the image to be displayed and the image display end, adjust the vertical pixel parameters of the image to be displayed, increase or decrease the number of rows, so that it matches the image display end, and adjust the image display through the horizontal synchronization signal.

Benefits of technology

It realizes that the image to be displayed is directly converted into an adjusted image that can be displayed normally at the image display end without relying on other algorithms, ensuring the quality after image conversion to the maximum extent and eliminating bright/dark fringes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115909987B_ABST
    Figure CN115909987B_ABST
Patent Text Reader

Abstract

The present application provides an image display method, device, electronic device and storage medium, the method comprising: obtaining a size comparison relationship between an image to be displayed and a vertical pixel parameter of an image display terminal; adjusting the size of the vertical pixel parameter of the image to be displayed according to the size comparison relationship to obtain an adjusted image; and obtaining a horizontal synchronization signal of the adjusted image, and adjusting the image according to the horizontal synchronization signal. The image display method, device, electronic device and storage medium provided by the present application increase or decrease the vertical pixel parameter of the image to be displayed, that is, the number of rows, so that the vertical pixel parameters of the adjusted image are consistent with the vertical pixel parameters of the image display terminal, so that the image display terminal can display the adjusted image normally. Ultimately, the matching rules between the displayed image and the image display terminal are completely loosened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Generally, if the resolution of the image to be displayed does not match that of the image display device (e.g., a monitor), the image will not be displayed properly. Image scaling algorithms in the prior art can, to a certain extent, address the problem of image display problems caused by inconsistent resolutions by scaling the image to be displayed.

[0003] The image scaling algorithm solves the aforementioned problem based on the premise that the resolution of the image to be displayed and the resolution of the image display must meet a certain proportional relationship to achieve normal display of the image to be displayed. However, the existing technology lacks a solution that can achieve normal display of images of any resolution on an image display with a fixed resolution. In other words, the existing technology still cannot completely relax the matching rules between the image to be displayed and the image display. Summary of the Invention

[0004] The purpose of the embodiments of the present invention is to provide an image display method, device, electronic device and storage medium to solve the problem that the existing technology still cannot completely loosen the matching rules between the image to be displayed and the image display terminal.

[0005] In a first aspect, an embodiment of the present application provides an image display method, comprising: obtaining a size comparison relationship between an image to be displayed and vertical pixel parameters of an image display end; adjusting the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain an adjusted image; and obtaining a horizontal synchronization signal of the adjusted image, and displaying the adjusted image according to the horizontal synchronization signal.

[0006] The above image display method increases or decreases the vertical pixel parameters (i.e., the number of rows) of the image to be displayed. The resulting adjusted vertical pixel parameters are consistent with those of the image display, allowing the image display to display the adjusted image normally. This ultimately completely relaxes the matching rules between the displayed image and the image display.

[0007] In combination with the first aspect, optionally, the adjusting the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain the adjusted image includes: if the numerical pixel parameters of the image to be displayed are greater than the vertical pixel parameters of the image display end; then extracting several rows of image data from the image to be displayed according to a first preset rule to obtain the adjusted image.

[0008] The above-described image display method extracts several lines of image data from the image to be displayed according to a first preset rule to obtain an adjusted image, thereby aligning the vertical pixel parameters of the image to be displayed with those of the image display terminal, ultimately achieving normal display of the adjusted image. Furthermore, the method of extracting several lines of image data from the image according to the first preset rule is simple and reliable, thereby improving the efficiency of the entire method.

[0009] In combination with the first aspect, optionally, the extracting several rows of image data from the image to be displayed according to a first preset rule includes: obtaining a first difference between the vertical pixel parameters of the image to be displayed and the vertical pixel parameters of the image display end; and extracting, from the image to be displayed, the same number of rows of image data as the first difference and evenly spaced according to the first difference.

[0010] The above-described image display method directly extracts a number of rows of image data equal to the first difference from the image to be displayed, eliminating the need for other algorithms throughout the entire process and directly converting the image to be displayed into an adjusted image that can be properly displayed on the image display terminal. Furthermore, when extracting the rows of image data, the rows are extracted at even intervals from the image to be displayed, minimizing the loss of image information in the adjusted image after the extracted rows of image data are extracted, ultimately ensuring the quality of the converted image to the greatest extent possible.

[0011] In combination with the first aspect, optionally, the obtaining of the horizontal synchronization signal of the adjusted image and adjusting the image according to the horizontal synchronization signal include: obtaining, according to the horizontal synchronization signal, a horizontal synchronization sub-signal adjacent to each extracted row of image data; and delaying the horizontal synchronization sub-signal so that the time interval between the horizontal synchronization sub-signal and two other adjacent horizontal synchronization sub-signals is equal.

[0012] In the above-mentioned image display method, when a corresponding number of lines of image data are extracted from the image to be displayed and the extracted image is directly displayed, light / dark stripes may appear on the image display terminal due to the different charging times of the pixels in each line of image data caused by the different intervals between the horizontal synchronization sub-signals. By delaying the horizontal synchronization sub-signals adjacent to the extracted lines of image data, the difference between the distance between the two horizontal synchronization sub-signals in the extracted lines of image data and the distance between the other horizontal synchronization sub-signals is reduced, thereby maximally balancing the charging times of the pixels in each line of image data and eliminating the light / dark stripes.

[0013] In combination with the first aspect, optionally, the adjusting the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain the adjusted image includes: if the numerical pixel parameters of the image to be displayed are smaller than the vertical pixel parameters of the image display end; then inserting several rows of image data into the image to be displayed according to a second preset rule to obtain the adjusted image.

[0014] The above-described image display method generates an adjusted image by inserting several lines of image data from the image to be displayed according to a second preset rule. This method equalizes the vertical pixel parameters of the image to be displayed with those of the image display terminal, ultimately achieving normal display of the adjusted image. Furthermore, inserting several lines of image data from the image according to the second preset rule is simple and reliable, thereby improving the efficiency of the entire method.

[0015] In combination with the first aspect, optionally, the inserting several lines of image data into the image to be displayed according to a second preset rule includes: obtaining a second difference between the vertical pixel parameters of the image to be displayed and the vertical pixel parameters of the image display end; and inserting the same number of lines of image data as the first difference and evenly spaced into the image to be displayed according to the second difference.

[0016] The above-described image display method directly extracts a number of rows of image data equal to the second difference from the image to be displayed, eliminating the need for other algorithms throughout the entire process and directly converting the image to be displayed into an adjusted image that can be properly displayed on the image display terminal. Furthermore, when inserting and removing row image data, the row image data is extracted from the image to be displayed at even intervals, minimizing the amount of extra image information or corrupted image information in the adjusted image after the row image data is inserted, ultimately ensuring the quality of the converted image to the greatest extent possible.

[0017] In combination with the first aspect, optionally, the inserted row image data is consistent with one of the other row image data adjacent to the position where it is inserted.

[0018] The above-mentioned image display method, by inserting row image data that is consistent with any other row image data adjacent to the target insertion position, makes the image display method provided in the embodiment of the present application no longer rely on other image fitting algorithms such as genetic algorithms, thereby simplifying the image display method provided by the present application and improving the efficiency of the algorithm operation.

[0019] In the second aspect, an embodiment of the present application also provides an image display device, including: an acquisition module, an adjustment module and a display module; wherein the acquisition module is used to obtain the size comparison relationship between the image to be displayed and the vertical pixel parameters of the image display end; the adjustment module is used to adjust the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain the adjusted image; the display module is used to obtain the horizontal synchronization signal of the adjusted image, and adjust the image according to the horizontal synchronization signal.

[0020] The image display device provided in the above embodiment has the same beneficial effects as the image display method provided in the above first aspect or any optional implementation manner of the first aspect, and will not be described in detail here.

[0021] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method described above is performed.

[0022] The electronic device provided in the above embodiment has the same beneficial effects as the image display method provided in the above first aspect or any optional implementation of the first aspect, which will not be described in detail here.

[0023] 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 when the computer program is executed by a processor, the method described above is executed.

[0024] The computer-readable storage medium provided in the above embodiment has the same beneficial effects as the image display method provided in the above first aspect or any optional implementation of the first aspect, and will not be described in detail here.

[0025] In summary, the image display method, device, electronic device and storage medium provided by the present application compare the size of the vertical pixel parameters of the image to be displayed and the image display end to obtain the difference between the two, and extract or insert a corresponding number of row image data into the image to be displayed based on the difference to obtain an adjusted image, so that the vertical pixel parameters of the image to be displayed are equal to the vertical pixel parameters of the image display end, and finally achieve the normal display of the adjusted image, completely loosening the matching rules between the display image and the image display end. Moreover, by evenly extracting or inserting row image data equal to the number of the difference at intervals, the quality of the converted image is guaranteed to the greatest extent. In addition, after extracting a certain number of row image data from the proxy processed image, the horizontal synchronization sub-signal at the extracted row image data of the image is delayed accordingly, which balances the charging time of the pixels in each row image data to the greatest extent and eliminates the bright / dark stripes that appear when the image is displayed. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. 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 relevant drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 A flowchart of an image display method provided in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of the arrangement of row image data in an image to be displayed provided in an embodiment of the present application;

[0029] Figure 3 A detailed flowchart of step S141 in the image display method provided in an embodiment of the present application;

[0030] Figure 4 A detailed flowchart of step S160 in the image display method provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of the evolution process of adjusting the image to be displayed;

[0032] Figure 6 A detailed flowchart of step S142 in the image display method provided in an embodiment of the present application;

[0033] Figure 7 A functional module diagram of an image display device provided in an embodiment of the present application;

[0034] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The following embodiments of the technical solution of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application and are therefore only examples and are not intended to limit the scope of protection of the present application.

[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0037] In the description of the embodiments of this application, the technical terms "first," "second," etc. are used only to distinguish different objects and should not be understood to indicate or imply relative importance or to implicitly indicate the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise specifically defined.

[0038] Please refer to Figure 1 , Figure 1 Flowchart of the image display method provided by the embodiment of the present application. The image display method provided by the present application includes:

[0039] Step S120: obtaining a size comparison relationship between the image to be displayed and the vertical pixel parameters of the image display terminal.

[0040] In step S120, the image display terminal can be a display screen or a display panel. Both the image to be displayed and the image display terminal have their own resolution parameters, also known as resolution. This parameter represents the number of pixels in the image to be displayed and the image display terminal, and is expressed as the product of the horizontal pixel parameter and the vertical pixel parameter. Therefore, the vertical pixel parameter represents the number of rows of pixels in the image to be displayed and the image display terminal.

[0041] Step S140: adjusting the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain an adjusted image.

[0042] In step S140, if the vertical pixel parameter of the image to be displayed is smaller than that of the screen display end, the vertical pixel parameter of the image to be displayed, that is, the number of rows, is increased to make it equal to the vertical pixel parameter of the image display end. If the vertical pixel parameter of the image to be displayed is larger than that of the screen display end, the vertical pixel parameter of the image to be displayed is decreased to make it equal to the vertical pixel parameter of the image display end.

[0043] The vertical pixel parameters of the image to be displayed can be compared with the vertical pixel parameters of the screen display end in any relationship, and do not need to meet a specific proportional relationship. The increased or decreased vertical pixel parameters can also be any value that can make the vertical pixel parameter values of the image to be displayed equal to those of the screen display end.

[0044] Step S160: Acquire a horizontal synchronization signal of the adjusted image, and display the adjusted image according to the horizontal synchronization signal.

[0045] Please refer to Figure 2 , Figure 2This diagram illustrates the arrangement of row image data in the image to be displayed. The rectangular blocks in the diagram represent the row image data, and all vertical lines between the blocks represent row synchronization signals. On an image display, such as an LCD screen, the electron gun scans row by row from top to bottom, and after the scan is complete, the LCD screen displays a frame. The electron gun then returns to its initial position for the next scan. To synchronize the LCD display process with the LCD controller, the controller generates a series of timing signals. When the electron gun changes rows to scan, the controller issues a control signal. The frequency of the control signal is determined by the horizontal synchronization signal and other parameters in the image to be displayed. When the vertical pixel parameters of the image change, its horizontal synchronization signal and other parameters also change accordingly.

[0046] In this implementation, by increasing or decreasing the vertical pixel parameters (i.e., the number of rows) of the image to be displayed, the resulting adjusted vertical pixel parameters of the image are consistent with those of the image display, allowing the image display to display the adjusted image normally. This ultimately completely relaxes the matching rules between the displayed image and the image display.

[0047] In an optional implementation, the above step S140 includes:

[0048] If the numerical pixel parameter of the image to be displayed is greater than the vertical pixel parameter of the image display end, step S141 is executed: extracting a plurality of lines of image data from the image to be displayed according to a first preset rule to obtain an adjusted image.

[0049] In the above step S141 , the extracted row image data refers to the local image data consisting of a whole row of pixels arranged horizontally in the image to be displayed.

[0050] The first preset rule for extracting a number of lines of image data from the image to be displayed may be to extract a corresponding number of lines of image data according to the difference between the vertical pixel parameters of the image to be displayed and the vertical pixel parameters of the screen display end.

[0051] The first preset rule may also be to extract a specific number of rows of image data so that the vertical pixel parameters of the image to be displayed and the numerical image parameters of the image display terminal meet the ratio required by the image scaling algorithm. After the rows of image data are extracted, the image scaling algorithm can be used to scale the image after the extracted rows of image data so that the vertical pixel parameters of the resulting adjusted image are equal to the vertical pixel parameters of the image display terminal.

[0052] In the above implementation, by extracting several lines of image data from the image to be displayed according to the first preset rule, an adjusted image is obtained, so that the vertical pixel parameters of the image to be displayed are equal to the vertical pixel parameters of the image display terminal, ultimately achieving normal display of the adjusted image. Furthermore, the method of extracting several lines of image data from the image according to the first preset rule is simple and reliable, thereby improving the efficiency of the entire method during operation.

[0053] Please refer to Figure 3 , Figure 3 Detailed flowchart of step S141 in the image display method provided in the embodiment of the present application. In an optional embodiment, the above step S141 includes:

[0054] Step S1411: obtaining a first difference between a vertical pixel parameter of the image to be displayed and a vertical pixel parameter of the image display terminal.

[0055] In step S1411, the first difference is the difference between the vertical pixel parameters of the image to be displayed and the vertical pixel parameters of the image display terminal, which represents the number of extra rows of image data between the image to be displayed and the image that can be displayed by the image display terminal.

[0056] Step S1412: extracting, according to the first difference, from the image to be displayed, a number of line image data that is equal to the first difference and is evenly spaced.

[0057] In step S1412, the image data is removed from the image to be displayed by the same number of lines of image data as the image display terminal is able to display compared to the image to be displayed. This minimizes the loss of image information in the adjusted image after the lines of image data are removed. This ensures that the adjusted image is visually consistent with the image to be displayed before adjustment.

[0058] For example, the vertical pixel parameter of the image to be displayed is 1920 (equivalent to the number of row image data being 1920), and the vertical pixel parameter of the image display end is 1900. It can be seen that the image to be displayed has 20 more rows of row image data than the image display end, which means that 20 rows of row image data need to be extracted from the image to be displayed. The extracted 20 evenly spaced rows of row image data are equivalent to dividing the image to be displayed into 21 parts, and the number of row image data in each part is the interval during extraction. Therefore, the theoretical interval of the extracted row image data can be calculated as: 1900÷(1920-1900)=91.42... Since "91.42..." is not an integer, it can be that the row image data is extracted at intervals of 91 and 92 rows. In other words, one part is spaced at 91 rows, and the other part is spaced at 92 rows.

[0059] In the above implementation, by directly extracting a number of rows of image data equal to the first difference from the image to be displayed, the entire process no longer relies on other algorithms, and the image to be displayed is directly converted into an adjusted image that can be properly displayed on the image display terminal. Furthermore, when extracting the row image data, the row image data is extracted from the image to be displayed at uniform intervals, minimizing the loss of image information in the adjusted image after the extracted row image data, ultimately ensuring the quality of the converted image to the greatest extent possible.

[0060] Please refer to Figure 4 , Figure 4 Yes. In an optional embodiment, the above step S160 includes:

[0061] Step S161: Acquire the horizontal synchronization sub-signal adjacent to each extracted line of image data according to the horizontal synchronization signal.

[0062] In step S161, the horizontal synchronization sub-signal represents the time point at which the electron gun scans the corresponding row of image data during the display process. The higher the horizontal synchronization sub-signal, the earlier the corresponding row of image data is scanned. The interval between the current horizontal synchronization sub-signal and the adjacent horizontal synchronization sub-signals corresponds to the length of time the scanning gun scans the row of image data between the current horizontal synchronization sub-signal and the adjacent horizontal synchronization sub-signal. The time period during which the electron gun scans each row of image data also corresponds to the charging time of the pixels in that row of image data. Therefore, in general, the intervals between the horizontal synchronization sub-signals in the image to be displayed before adjustment are equal. This means that the charging time of the pixels in each row of image data is the same.

[0063] Step S162: Delay processing is performed on the horizontal synchronization sub-signal to make the time interval between the horizontal synchronization sub-signal and two other adjacent horizontal synchronization sub-signals equal.

[0064] In the above step S162, please refer to Figure 5 , Figure 5 The following is a schematic diagram of the evolution process of adjusting the image to be displayed. Each vertical line in the figure represents a horizontal synchronization sub-signal. Figure 5 Figure a in FIG is the arrangement of the row image data and the horizontal synchronization sub-signal before the row image data is extracted. Since the row image data in the image to be displayed is extracted, the corresponding horizontal synchronization sub-signal will also be extracted. For example, please refer to Figure 5In Figure b, after the line image data is removed, the interval between the horizontal sync sub-signals on either side of the line image data is significantly larger than the interval between other horizontal sync sub-signals. This causes the charging time of the pixels in the line image data within the significantly larger interval to be significantly longer than that of the pixels in other lines of image data. This difference in charging time ultimately causes bright / dark stripes to appear on the screen when the image is displayed.

[0065] Therefore, please refer to Figure 5 In Figure c, the corresponding horizontal synchronization sub-signal is delayed to reduce the gap between the distance between the two horizontal synchronization sub-signals and the distance between other horizontal synchronization sub-signals at the extracted row image data.

[0066] In the above implementation, after extracting a corresponding number of lines of image data from the image to be displayed, directly displaying the extracted image can cause light / dark stripes to appear on the image display due to differences in the charging time of pixels in each line of image data caused by the different intervals between the horizontal synchronization sub-signals. By delaying the horizontal synchronization sub-signals adjacent to the extracted lines of image data, the difference between the distance between the two horizontal synchronization sub-signals in the extracted lines of image data and the distance between the other horizontal synchronization sub-signals is reduced, thereby maximally balancing the charging time of pixels in each line of image data and eliminating the aforementioned light / dark stripes.

[0067] In an optional implementation, the above step S140 includes:

[0068] If the numerical pixel parameter of the image to be displayed is less than the vertical pixel parameter of the image display end, step S142 is executed: inserting a plurality of lines of image data into the image to be displayed according to a second preset rule to obtain an adjusted image.

[0069] In the above step S142, similar to the above step S141, the second preset rule for inserting several rows of image data from the image to be displayed can be to insert a corresponding number of rows of image data according to the difference between the vertical pixel parameters of the image to be displayed and the vertical pixel parameters of the screen display end.

[0070] The second preset rule may also be to insert a specific number of rows of image data so that the vertical pixel parameters of the image to be displayed and the numerical image parameters of the image display terminal meet the ratio required by the image scaling algorithm. After the rows of image data are inserted, the image scaling algorithm can be used to scale the image after the inserted rows of image data so that the vertical pixel parameters of the resulting adjusted image are equal to the vertical pixel parameters of the image display terminal.

[0071] The inserted row image data may be the same as the row image data near the target insertion position, or may be obtained by genetic algorithm image fitting to obtain the row image data required at the insertion position.

[0072] In the above implementation, by inserting several lines of image data from the image to be displayed according to the second preset rule, an adjusted image is obtained, so that the vertical pixel parameters of the image to be displayed are equal to the vertical pixel parameters of the image display terminal, ultimately achieving normal display of the adjusted image. Furthermore, the method of inserting several lines of image data from the image according to the second preset rule is simple and reliable, thereby improving the efficiency of the entire method during operation.

[0073] Please refer to Figure 6 , Figure 6 Detailed flowchart of step S142 in the image display method provided in the embodiment of the present application. In an optional embodiment, the above step S142 includes:

[0074] Step S1421: Obtain a second difference between the vertical pixel parameter of the image to be displayed and the vertical pixel parameter of the image display terminal.

[0075] In step S1421, the second difference is the difference between the vertical pixel parameters of the image to be displayed and the vertical pixel parameters of the image display terminal, which represents the number of missing lines of image data between the image to be displayed and the image that can be displayed by the image display terminal.

[0076] Step S1422: inserting into the image to be displayed a number of line image data that is equal to the second difference and evenly spaced, according to the second difference.

[0077] In the above step S1422 , the number of inserted row image data and the insertion interval are similar to those in the above step S1412 , and are not described again here.

[0078] In the above implementation, by directly extracting a number of rows of image data equal to the second difference from the image to be displayed, the entire process eliminates the need for other algorithms and directly converts the image to be displayed into an adjusted image that can be properly displayed on the image display terminal. Furthermore, when inserting and removing row image data, the row image data is extracted from the image to be displayed in a uniformly spaced manner, minimizing the amount of excess or damaged image information in the adjusted image after the row image data is inserted, ultimately ensuring the quality of the converted image to the greatest extent possible.

[0079] In an optional embodiment, the inserted row image data is consistent with one of the other row image data adjacent to the position where it is inserted.

[0080] Exemplarily, the target position of the currently inserted row image data is between the 20th row and the 21st row, then the row image data may be consistent with the row image data of the 20th row or the row image data of the 21st row.

[0081] During the above implementation process, by inserting row image data that is consistent with one of the other row image data adjacent to the target insertion position, the image display method provided by the embodiment of the present application no longer relies on other image fitting algorithms such as genetic algorithms, thereby simplifying the image display method provided by the present application and improving the efficiency of the algorithm operation.

[0082] Please refer to Figure 7 , Figure 7 The image display device 700 provided in the embodiment of the present application includes: an acquisition module 710 , an adjustment module 720 and a display module 730 .

[0083] Among them, the acquisition module 710 is used to obtain the size comparison relationship between the image to be displayed and the vertical pixel parameters of the image display end; the adjustment module 720 is used to adjust the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain the adjusted image; the display module 730 is used to obtain the horizontal synchronization signal of the adjusted image, and adjust the image according to the horizontal synchronization signal.

[0084] Please continue to refer to Figure 7 In an optional implementation, the size comparison relationship includes: a vertical pixel parameter of the image to be displayed is greater than a vertical pixel parameter of the image display terminal.

[0085] Correspondingly, the adjustment module 720 is specifically configured to extract a plurality of lines of image data from the image to be displayed according to a first preset rule to obtain an adjusted image.

[0086] Please continue to refer to Figure 7 In an optional embodiment, the adjustment module 720 is more specifically used to: obtain a first difference between the vertical pixel parameters of the image to be displayed and the vertical pixel parameters of the image display end; and extract, based on the first difference, from the image to be displayed a number of row image data that are the same as the first difference and are evenly spaced.

[0087] Please continue to refer to Figure 7 In an optional embodiment, the above-mentioned adjustment module 720 is more specifically used to: obtain the horizontal synchronization sub-signal adjacent to each extracted row image data according to the horizontal synchronization signal; and delay the horizontal synchronization sub-signal to make the time interval between the horizontal synchronization sub-signal and the two other adjacent horizontal synchronization sub-signals equal.

[0088] Please continue to refer to Figure 7In an optional implementation, the size comparison relationship includes: a vertical pixel parameter of the image to be displayed is smaller than a vertical pixel parameter of the image display terminal.

[0089] Correspondingly, the adjustment module 720 is specifically configured to insert a number of lines of image data into the image to be displayed according to a second preset rule to obtain an adjusted image.

[0090] Please continue to refer to Figure 7 In an optional embodiment, the above-mentioned adjustment module 720 is more specifically used to: obtain a second difference between the vertical pixel parameters of the image to be displayed and the vertical pixel parameters of the image display end; and insert the same number of row image data as the second difference and evenly spaced into the image to be displayed according to the second difference.

[0091] Based on the same invention concept, please continue to refer to Figure 7 In an optional embodiment, the inserted row image data is consistent with other row image data adjacent to the position where it is inserted.

[0092] It should be understood that the device corresponds to the embodiment of the image display method described above and is capable of executing each step involved in the embodiment of the method described above. The specific functions of the device can be found in the description above, and a detailed description is omitted here to avoid repetition. The device includes at least one software functional module that can be stored in a memory in the form of software or firmware or embedded in the device's operating system (OS).

[0093] Based on the same inventive concept, see Figure 8 , Figure 8 8 is a schematic diagram of the structure of an electronic device 800 provided in an embodiment of the present application. The electronic device 800 may include a memory 811, a storage controller 812, a processor 813, a peripheral interface 814, an input and output unit 818, and a display unit 816. It can be understood by those skilled in the art that Figure 8 The structure shown is only for illustration and does not limit the structure of the electronic device 800. For example, the electronic device 800 may further include Figure 8 More or fewer components than shown, or with Figure 8 Different configurations shown.

[0094] The aforementioned memory 811, storage controller 812, processor 813, peripheral interface 814, input / output unit 818, and display unit 816 are electrically connected to each other, directly or indirectly, to enable data transmission or interaction. For example, these components may be electrically connected to each other via one or more communication buses or signal lines. The aforementioned processor 813 is used to execute the executable modules stored in the memory.

[0095] The memory 811 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory 811 is used to store programs, and the processor 813 executes the programs after receiving an execution instruction. The method executed by the electronic device 800 defined by the process disclosed in any embodiment of the present application can be applied to the processor 813 or implemented by the processor 813.

[0096] The processor 813 may be an integrated circuit chip with signal processing capabilities. The processor 813 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor.

[0097] The peripheral interface 814 couples various input / output devices to the processor 813 and the memory 811. In some embodiments, the peripheral interface 814, the processor 813, and the memory controller 812 can be implemented in a single chip. In other embodiments, they can be implemented in separate chips.

[0098] The input and output unit 818 is used to provide input data to the user. The input and output unit 818 can be, but is not limited to, a mouse and a keyboard.

[0099] The display unit 816 provides an interactive interface (e.g., a user operation interface) between the electronic device 800 and the user or is used to display image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display or a touch display. If it is a touch display, it can be a capacitive touch screen or a resistive touch screen that supports single-point and multi-touch operations. Supporting single-point and multi-touch operations means that the touch display can sense touch operations generated simultaneously from one or more locations on the touch display, and pass the sensed touch operations to the processor for calculation and processing.

[0100] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is run by a processor, the above method is executed.

[0101] Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0102] In summary, the image display method, device, electronic device and storage medium provided by the present application compare the size of the vertical pixel parameters of the image to be displayed and the image display end to obtain the difference between the two, and extract or insert a corresponding number of row image data into the image to be displayed based on the difference to obtain an adjusted image, so that the vertical pixel parameters of the image to be displayed are equal to the vertical pixel parameters of the image display end, and finally achieve the normal display of the adjusted image, completely loosening the matching rules between the display image and the image display end. Moreover, by evenly extracting or inserting row image data equal to the number of the difference at intervals, the quality of the converted image is guaranteed to the greatest extent. In addition, after extracting a certain number of row image data from the proxy processed image, the horizontal synchronization sub-signal at the extracted row image data of the image is delayed accordingly, which balances the charging time of the pixels in each row image data to the greatest extent and eliminates the bright / dark stripes that appear when the image is displayed.

[0103] In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0104] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0105] The above description is only an optional implementation method of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited to this. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present application, and they should all be covered by the protection scope of the embodiment of the present application.

Claims

1. An image display method, characterized in that: include: Obtaining a comparison between the size of the image to be displayed and the vertical pixel parameters of the image display terminal; Adjusting the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain an adjusted image; as well as Acquiring a horizontal synchronization signal of the adjusted image, and displaying the adjusted image according to the horizontal synchronization signal; The adjusting the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain the adjusted image includes: If the numerical pixel parameter of the image to be displayed is greater than the vertical pixel parameter of the image display terminal; extracting a plurality of lines of image data from the image to be displayed according to a first preset rule to obtain the adjusted image; The acquiring a horizontal synchronization signal of the adjusted image and displaying the adjusted image according to the horizontal synchronization signal includes: According to the horizontal synchronization signal, acquiring a horizontal synchronization sub-signal adjacent to each extracted row of image data; The horizontal synchronization sub-signal is delayed so that the time interval between the horizontal synchronization sub-signal and two other adjacent horizontal synchronization sub-signals is equal.

2. The image display method according to claim 1, wherein: Extracting a plurality of lines of image data from the image to be displayed according to a first preset rule includes: Obtaining a first difference between a vertical pixel parameter of the image to be displayed and a vertical pixel parameter of the image display terminal; The line image data of which the number is equal to the first difference and the intervals are evenly spaced are extracted from the image to be displayed according to the first difference.

3. The image display method according to claim 1, wherein: The adjusting the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain the adjusted image includes: If the numerical pixel parameter of the image to be displayed is smaller than the vertical pixel parameter of the image display terminal; Then, several lines of image data are inserted into the image to be displayed according to a second preset rule to obtain the adjusted image.

4. The image display method according to claim 3, wherein: The inserting a plurality of lines of image data into the image to be displayed according to the second preset rule includes: Acquire a second difference between a vertical pixel parameter of the image to be displayed and a vertical pixel parameter of the image display terminal; The line image data having the same number as the second difference and uniform intervals as the second difference is inserted into the image to be displayed according to the second difference.

5. The image display method according to claim 3, wherein: in, The inserted line image data is consistent with one of the other line image data adjacent to the inserted position.

6. An image display device, characterized in that: include: Acquisition module, adjustment module and display module; The acquisition module is used to obtain the size comparison relationship between the image to be displayed and the vertical pixel parameters of the image display terminal; The adjustment module is used to adjust the size of the vertical pixel parameters of the image to be displayed according to the size comparison relationship to obtain an adjusted image; The display module is used to obtain a horizontal synchronization signal of the adjusted image and adjust the image according to the horizontal synchronization signal; In the process of adjusting the size of the vertical pixel parameter of the image to be displayed according to the size comparison relationship to obtain the adjusted image, the adjustment module is specifically configured to: if the numerical pixel parameter of the image to be displayed is greater than the vertical pixel parameter of the image display terminal; extract a plurality of lines of image data from the image to be displayed according to a first preset rule to obtain the adjusted image; When obtaining the horizontal synchronization signal of the adjusted image and displaying the adjusted image according to the horizontal synchronization signal, the adjustment module is specifically used to: obtain the horizontal synchronization sub-signal adjacent to each extracted row of image data according to the horizontal synchronization signal; and delay the horizontal synchronization sub-signal so that the time interval between the horizontal synchronization sub-signal and the two other adjacent horizontal synchronization sub-signals is equal.

7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the machine-readable instructions are executed by the processor, the method according to any one of claims 1 to 5 is performed.

8. 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 method according to any one of claims 1 to 5 is executed.

Citation Information

Patent Citations

  • Digital image scaling method

    CN102568443A

  • Image processing apparatus

    JP2010256604A

  • System for contracting bit map image data

    US5537130A