LED display screen display control method and apparatus, device, and storage medium
By acquiring the pixel values of a monochrome LED display and constructing a set of pixel density masks, a gradient display of a monochrome LED display was achieved, solving the problem of monotonous display, reducing costs, and improving display effects and user experience.
Patent Information
- Application Number
- PCT/CN2024/103903
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-09
- Filing Date
- 2024-09-11
- Publication Date
- 2025-11-13
AI Technical Summary
Existing monochrome LED displays offer limited visual variety and cannot be flexibly adjusted to meet user needs; additionally, multicolor displays are more expensive.
By acquiring the pixel values of the LED display screen, a set of pixel density masks for different lighting states is determined. Based on these masks, the pattern to be displayed is scanned to obtain the target display pattern, and the LED display screen is controlled to perform a gradient display based on the target display pattern.
While reducing costs, it improves the display effect and flexibility of LED displays, and enhances the user experience.
Smart Images

Figure CN2024103903_13112025_PF_FP_ABST
Abstract
Description
LED display screen display control methods, devices, equipment and storage media Technical Field
[0001] This application relates to the field of display screen control technology, and in particular to LED display screen control methods, devices, equipment and storage media. Background Technology
[0002] Monochrome LED displays are favored by developers in fields that do not require high-precision display, such as simple time display, due to their low price. However, monochrome LED displays only have two states: on and off, which makes the display relatively simple and unable to be flexibly displayed according to user requirements.
[0003] Summary of the Invention
[0004] The main objective of this application is to provide an LED display control method, device, equipment, and storage medium, aiming to solve the technical problem that the display of LED displays is relatively simple in the prior art.
[0005] To achieve the above objectives, this application proposes an LED display screen control method, the method comprising:
[0006] Obtain the pixel count of the LED display screen;
[0007] The pixel density mask set representing different lighting states of the LED display screen is determined by the pixel values.
[0008] The target display pattern is obtained by scanning the pattern to be displayed based on each pixel density mask in the pixel density mask set;
[0009] The target display pattern is used to control the LED display screen to perform a gradient display.
[0010] In one embodiment, the step of determining the set of pixel density masks representing different lighting states of the LED display screen based on the pixel values includes:
[0011] The number of pixels lit is determined by the pixel values;
[0012] The display screen lighting states are divided according to the number of lit pixels, resulting in multiple lighting states of the display screen;
[0013] A set of pixel density masks is constructed using the various lighting states of the display screen.
[0014] In one embodiment, the step of scanning the pattern to be displayed based on each pixel density mask in the pixel density mask set to obtain the target display pattern includes:
[0015] The aggregated pixel coordinates are obtained based on each pixel density mask in the pixel density mask set.
[0016] The pixel density mask is used to scan each point in the pattern to be displayed, and the pixels in the pattern to be displayed that are at the same position as the summed pixel coordinates are compared.
[0017] When the pixel value of the corresponding pixel on the pattern to be displayed is a first value, the pixel is used as the display pixel, and the first value indicates that the pixel is displayed in a first state;
[0018] When the pixel value of the corresponding pixel on the pattern to be displayed is the second value, the scanning of the pixel is skipped until the scanning is completed, and a set of display pixels is obtained. The second value indicates that the pixel is displayed in the second state, which is different from the first state and the second state.
[0019] The target display pattern is obtained through the set of display pixels.
[0020] In one embodiment, the step of obtaining the pixel count of the LED display screen includes:
[0021] Obtain the raw pixel data of the LED display screen;
[0022] The original pixels are divided to obtain multiple sets of divided pixels;
[0023] The positions of the multiple groups of divided pixels are obtained by locating the pixels based on a preset drawing function.
[0024] The pixel count of the LED display screen is determined by dividing the pixel positions.
[0025] In one embodiment, the step of locating the multiple sets of segmented pixels based on a preset drawing point function to obtain the positions of the segmented pixels includes:
[0026] Based on a preset drawing point function, each group of divided pixel points in the multiple groups of divided pixel points is located to obtain the coordinates of the divided pixel points;
[0027] The position of the divided pixel is obtained by using the coordinates of the divided pixel.
[0028] In one embodiment, the step of determining the pixel value of the LED display screen by dividing the pixel positions includes:
[0029] Retrieve preset numerical recording rules;
[0030] Traverse the positions of the divided pixels to obtain the number of different pixels lit up in each group of divided pixels;
[0031] The number of lit pixels is recorded using the preset numerical recording rules to obtain the pixel values of the LED display screen.
[0032] In one embodiment, the step of controlling the LED display screen to perform a gradient display through the target display pattern includes:
[0033] Get the display command;
[0034] The density display timing is determined according to the display instructions;
[0035] The density display timing control allows display patterns of different display densities in the target display pattern to be displayed gradually on the LED display screen in sequence.
[0036] Furthermore, to achieve the above objectives, this application also proposes an LED display screen control device, which includes:
[0037] The acquisition module is used to acquire the pixel values of the LED display screen;
[0038] The determination module is used to determine the set of pixel density masks that characterize different lighting states of the LED display screen based on the pixel values;
[0039] The scanning module is used to scan the pattern to be displayed based on each pixel density mask in the pixel density mask set to obtain the target display pattern;
[0040] The display module is used to control the LED display screen to perform a gradient display based on the target display pattern.
[0041] In addition, to achieve the above objectives, this application also proposes an LED display screen display control device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the LED display screen display control method as described above.
[0042] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the LED display screen display control method described above.
[0043] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the LED display screen display control method described above.
[0044] One or more technical solutions proposed in this application have at least the following technical effects:
[0045] By determining the pixel density mask set for different lighting states of the display screen based on the pixel values, the target display pattern in different display states can be obtained by scanning the pattern to be displayed using different pixel density mask sets. This allows for a gradual display of the target display pattern on the LED display screen. By adding a fade-in / fade-out effect to the LED display screen, costs are reduced, the display effect of the LED display screen is improved, the flexibility of the LED display screen is increased, and the user experience is enhanced. Attached Figure Description
[0046] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0047] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 is a flowchart illustrating the LED display control method of this application in Embodiment 1.
[0049] Figure 2 is a schematic diagram of a monochrome LED display screen in one embodiment of the LED display screen control method of this application;
[0050] Figure 3 is a schematic diagram of dividing the original pixel points into multiple groups of divided pixel points in one embodiment of the LED display control method of this application;
[0051] Figure 4 is a schematic diagram of the process of locating the divided pixel points and obtaining the coordinates of the divided pixel points in one embodiment of the LED display control method of this application.
[0052] Figure 5 is a schematic diagram of the superposition of the pattern to be displayed on the monochrome LED display screen and the 50% grayscale mask in one embodiment of the LED display screen display control method of this application;
[0053] Figure 6 is a flowchart of the LED display control method according to Embodiment 2 of this application;
[0054] Figure 7 is a schematic diagram of different lighting states of divided pixels in one embodiment of the LED display control method of this application;
[0055] Figure 8 is a schematic diagram of the display effect of different pixel densities in one embodiment of the LED display screen display control method of this application;
[0056] Figure 9 is a flowchart of the LED display control method according to Embodiment 3 of this application;
[0057] Figure 10 is a schematic diagram of the target display pattern effect obtained by superimposing grayscale masks with different pixel densities in one embodiment of the LED display control method of this application;
[0058] Figure 11 is a simplified flowchart of the LED display screen control method provided in Embodiment 3 of this application;
[0059] Figure 12 is a schematic diagram of the module structure of the LED display screen control device according to an embodiment of this application;
[0060] Figure 13 is a schematic diagram of the hardware operating environment involved in the LED display screen display control method in this application embodiment.
[0061] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0062] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0063] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0064] The main solution of this application embodiment is: to obtain the pixel value of the LED display screen; to determine a set of pixel density masks representing different lighting states of the LED display screen based on the pixel value; to scan the pattern to be displayed based on each pixel density mask in the set of pixel density masks to obtain the target display pattern; and to control the LED display screen to perform gradient display based on the target display pattern.
[0065] In this embodiment, for ease of description, the following description will focus on identifying the LED display screen control device as the execution subject.
[0066] Because existing monochrome LED displays only have two states, on and off, they cannot flexibly adjust the display interface according to user needs. If a gradient display is required, a multi-color LED display is needed, but multi-color displays are more expensive, and using only monochrome LED displays cannot flexibly adjust the display according to user needs.
[0067] This application provides a solution that allows a monochrome LED display to add a fade-in / fade-out effect to the display, reducing display costs while improving the user experience.
[0068] As can be seen from the above embodiments, this application first obtains the pixel values of the LED display screen; determines a set of pixel density masks representing different lighting states of the LED display screen based on the pixel values; scans the pattern to be displayed based on each pixel density mask in the set of pixel density masks to obtain the target display pattern; and controls the LED display screen to perform gradient display through the target display pattern. This overcomes the technical problems of monochrome LED display screens being monotonous and inflexible, thereby achieving the effect of adding fading and revealing on the basis of display, which reduces costs, improves the display effect of the LED display screen, and enhances the user experience.
[0069] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or LED display screen control device capable of performing the above functions. The following description uses an LED display screen control device as an example to illustrate this embodiment and the subsequent embodiments.
[0070] Based on this, this application provides an LED display screen display control method. Referring to FIG1, FIG1 is a flowchart of the first embodiment of the LED display screen display control method of this application.
[0071] In this embodiment, the LED display screen display control method includes steps S10 to S40:
[0072] Step S10: Obtain the pixel values of the LED display screen.
[0073] It should be noted that the LED display screen refers to a monochrome LED display screen, such as a fixed monochrome LED display screen used to display static or scrolling text information, graphics, or simple animations; flexible monochrome LED display screens, etc.
[0074] The pixel value of a monochrome LED display screen can be the value of each pixel on the monochrome LED display screen. The pixel value can be recorded by constructing a display array. The value of being off is defined as 0, and the value of being on is defined as 1. The pixels in the monochrome LED display screen can be divided first, and the pixel value of the divided pixels can be obtained.
[0075] Additionally, it should be noted that in order to achieve the effect of fading in and out, the pixels in the LED display screen can be re-divided.
[0076] In one feasible implementation, step S10 may include steps A11 to A14:
[0077] Step A11: Obtain the raw pixel count of the LED display screen;
[0078] It should be noted that the original pixels are the undivided pixels on the monochrome LED display screen.
[0079] As shown in Figure 2, the monochrome LED display screen is composed of multiple pixels, i.e., original pixels, and each pixel only has the function of turning on and off.
[0080] To achieve a fade-in / fade-out display effect, this embodiment re-divides the original pixels.
[0081] Step A12: Divide the original pixels to obtain multiple groups of divided pixels;
[0082] It should be noted that when dividing the original pixels, you can first set the division rules, such as the number of new pixels in each group. For example, you can set the number of new pixels in each group to 4, 6, 8, etc., which can be set according to specific needs. The more new pixels in each group, the more detailed the pixel density mask will be.
[0083] For example, if the division rule is that each group of new pixels contains 4 pixels, then the original pixels are divided into groups of 4, and each group is a set of divided pixels, thus obtaining multiple sets of divided pixels. As shown in Figure 3, Figure 3 is a schematic diagram of dividing the original pixels to obtain multiple sets of divided pixels. Every four adjacent pixels (a grid) form a group of pixels, thus obtaining multiple sets of divided pixels.
[0084] Step A13: Locate the multiple groups of divided pixels based on a preset drawing point function to obtain the position of the divided pixels;
[0085] Understandably, the preset drawing point function can be constructed using the C language. The function Point(x,y) is used to locate each pixel in the pixel division. It can locate each group of pixel divisions separately, thereby quickly determining the position of the pixel divisions.
[0086] Furthermore, the step of locating the multiple groups of segmented pixels based on a preset drawing point function to obtain the position of the segmented pixels includes: locating each group of segmented pixels in the multiple groups of segmented pixels based on the preset drawing point function to obtain the coordinates of the segmented pixels; and obtaining the position of the segmented pixels through the coordinates of the segmented pixels.
[0087] It should be noted that each group of pixels can be divided into coordinates to obtain the coordinates of each pixel within the group. The position of each pixel can be quickly obtained by using these coordinates. As shown in Figure 4, this is a schematic diagram of the process of locating the pixels and obtaining their coordinates. For example, if there are four pixels in the group, by dividing each pixel into coordinates, we can divide it into the top left corner (0,0), the top right corner (1,0), the bottom left corner (0,1), and the bottom right corner (1,1), and so on, thus obtaining the position of all pixels in the monochrome display screen.
[0088] Step A14: Determine the pixel value of the LED display screen by dividing the pixel positions.
[0089] It should be noted that the pixel value of each divided pixel in the LED display screen can be determined by dividing the pixel position.
[0090] Specifically, rules for recording pixel values can be pre-set to quickly determine the values of each divided pixel. The steps for determining the pixel values of the LED display screen based on the positions of these divided pixel points include:
[0091] Obtain a preset value recording rule; traverse the divided pixel positions to obtain the number of different pixels lit in each group of divided pixels; record the number of pixels lit by the preset value recording rule to obtain the pixel value of the LED display screen.
[0092] It should be noted that the preset value recording rule is a rule for defining the recording of pixel values. A display array Show[n] can be constructed to record the value of the current pixel. The value of being off is defined as 0, and the value of being on is defined as 1. By traversing the positions of the divided pixels, the number of different pixels lit in each group of pixels can be obtained. For example, if there are 4 pixels in a group, the number of pixels lit can be one of five types: all off (0 pixels lit); only one pixel lit (1 pixel lit); two pixels lit (2 pixels lit); three pixels lit (3 pixels lit); and all pixels lit (4 pixels lit). By obtaining the pixel values of each divided pixel through the different number of pixels lit, the pixel values of all pixels in the LED display screen can be obtained.
[0093] Step S20: Determine the set of pixel density masks that represent different lighting states of the LED display screen based on the pixel values.
[0094] It should be noted that the number of pixels lit can be determined by the pixel value. Based on the different numbers of pixels lit, a set of pixel density masks representing different lighting states of the LED display can be obtained.
[0095] The pixel density mask set includes masks with different pixel densities. Pixel density masks are grayscale masks. For example, the pixel density mask set includes a mask with a pixel density of 0%, meaning that all pixels on the display screen are turned off and the pixel values are all 0. It can also include masks with a pixel density of 50%, masks with a pixel density of 100%, etc. The number of pixels to be divided can be determined according to the pixel division rules to obtain the number of recovery masks. For example, if the number of pixels to be divided is n, then there are n-1 grayscale masks.
[0096] Step S30: Scan the pattern to be displayed based on each pixel density mask in the pixel density mask set to obtain the target display pattern.
[0097] In practice, the pixel density mask set contains masks with different pixel densities. By scanning the pattern to be displayed using different pixel density masks, a new scanned pattern can be obtained.
[0098] The pattern to be displayed is the pattern that the user wants to display on the monochrome LED display screen. By superimposing the pattern to be displayed with a mask of corresponding pixel density, the corresponding display pattern can be obtained, as shown in Figure 5. Figure 5 is a schematic diagram of superimposing the pattern to be displayed on the monochrome LED display screen and a 50% grayscale mask. For example, the pattern to be displayed on the current monochrome LED display screen is to display a capital letter E. By superimposing it with a grayscale mask with a pixel density of 50%, it can be found that some pixels of the display pattern and the grayscale mask overlap. By superimposing and scanning grayscale masks with different pixel densities with the pattern to be displayed, multiple target display patterns can be obtained.
[0099] Step S40: Control the LED display screen to perform a gradient display through the target display pattern.
[0100] In practice, the LED display screen can be controlled to display a gradient effect by controlling the target display pattern. Gradient display refers to controlling the monochrome LED display screen to gradually fade in and out.
[0101] Furthermore, since different displays can be provided according to the display needs of different users, step S40 includes:
[0102] Obtain a display instruction; determine the density display timing according to the display instruction; control the display patterns of different display densities in the target display pattern to be displayed gradually on the LED display screen in sequence through the density display timing.
[0103] It is understood that the display instructions may include display density of the target display pattern from high to low or display density of the target display pattern from low to high, which can be selected according to specific needs.
[0104] In practical implementation, the density display timing can be determined by analyzing the display instructions. For example, if the density display timing is from low to high, the display pattern with low display density in the target display pattern can be displayed on the LED display screen first, and then the display pattern with high display density in the target display pattern can be displayed on the LED display screen later.
[0105] To achieve a fade-in / fade-out effect, a grayscale function Gray(x) can be created. This function Gray(x) sequentially calls values from the video memory array Show[n] in different grayscale masks, thus calling target display patterns with different pixel densities. For example, to achieve a fade-in / fade-out effect, the target display pattern can be displayed sequentially from 0% to 25% to 50% to 75% to 100% using the following pixel density mask. To achieve a fade-in / fade-out effect, the target display pattern can be displayed sequentially from 100% to 75% to 50% to 25% to 0%.
[0106] This embodiment obtains the pixel values of the LED display screen; determines a set of pixel density masks representing different lighting states of the LED display screen based on the pixel values; scans the pattern to be displayed based on each pixel density mask in the set to obtain the target display pattern; and controls the LED display screen to perform gradient display through the target display pattern. By scanning the pattern to be displayed using the set of pixel density masks, a fade-in / fade-out effect is added to the display, which reduces costs, improves the display effect of the LED display screen, and enhances the user experience.
[0107] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description and will not be repeated hereafter. Based on this, please refer to Figure 6, step S20 specifically includes:
[0108] Step S201: Determine the number of pixels lit up based on the pixel values.
[0109] It should be noted that the number of pixels lit can be determined by the pixel value. For example, if the pixel value is 0, then the number of pixels lit is 0. If the pixel values in each group of pixels are 1, 0, 0, 0, then the number of pixels lit is 1.
[0110] Similarly, the number of pixels to be lit can be determined based on the pixel values within each group of pixels.
[0111] Step S202: Divide the display screen lighting state according to the number of lit pixels to obtain multiple display screen lighting states.
[0112] In practical implementation, the display screen lighting state can be divided by the number of pixels lit, thus obtaining multiple lighting states of the display screen, as shown in Figure 7. Figure 7 is a schematic diagram of dividing different lighting states of pixels. By dividing the number of four pixels lit in a pixel, it can be divided into five states, including all off, only one pixel lit (0,0), two pixels lit (0,0) and (1,1), three pixels lit (0,0), (1,0) and (1,1), and all pixels lit (0,0), (1,0), (1,1) and (0,1).
[0113] Step S203: Construct a set of pixel density masks using the various illumination states of the display screen.
[0114] In practice, if the screen is filled with the above-mentioned multiple lighting states, visual effects with different pixel densities can be obtained, i.e., grayscale masks. By summarizing the grayscale masks with different pixel densities, a set of pixel density masks can be obtained.
[0115] As an example, if each group of pixel illumination states includes five states: all off, only one pixel lit, two pixels lit, three pixels lit, and all pixels lit, then the resulting pixel densities are 0%, 25%, 50%, 75%, and 100%, as shown in Figure 8. Figure 8 is a schematic diagram of the display effect of different pixel densities. From left to right, the pixel density is 0% for all off, 25% for only one pixel lit, 50% for two pixels lit, 75% for three pixels lit, and 100% for all pixels lit.
[0116] This embodiment determines the number of lit pixels based on the pixel values; it then divides the display screen's illumination state according to the number of lit pixels, resulting in multiple illumination states; and it constructs a set of pixel density masks based on these multiple illumination states. This allows for the rapid construction of grayscale masks with different pixel densities based on the pixel values, thereby enabling different display effects to be achieved without altering the display screen's hardware structure and reducing costs.
[0117] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description and will not be repeated hereafter. Based on this, please refer to Figure 9, step S30 specifically includes:
[0118] Step S301: Obtain the aggregated pixel coordinates based on each pixel density mask in the pixel density mask set.
[0119] It should be noted that different pixel density masks can be obtained from the set of pixel density masks, and the coordinates of each pixel point in each pixel density mask can be obtained by statistical analysis. The coordinates of all pixel points can be summarized to obtain the summarized pixel point coordinates.
[0120] Step S302: Scan each point in the pattern to be displayed using the pixel density mask, and compare the pixels in the pattern to be displayed with the pixels at the same position in the aggregated pixel coordinates.
[0121] In practice, different pixel density masks are used to scan each point in the pattern to be displayed, and the pixels in the pattern to be displayed that are at the same position as the sum of pixel coordinates are compared.
[0122] For example, the pixel coordinates on a 50% grayscale mask are scanned one by one and compared with the pixels at the same position on the pattern to be displayed.
[0123] Step S303: When the pixel value of the corresponding pixel on the pattern to be displayed is a first value, the pixel is used as a display pixel, and the first value indicates that the pixel is displayed in a first state.
[0124] During the comparison process, if the pixel value of the corresponding pixel on the pattern to be displayed is the first value, then the pixel can be used as the display pixel. The first value is 1, and the corresponding pixel state should be lit. The display pixel is the pixel that will be used as the point of light in the display pattern when it is displayed later.
[0125] In practice, the first value indicates that the pixel is displayed in the first state, which is the lit state.
[0126] Step S304: When the pixel value of the corresponding pixel on the pattern to be displayed is the second value, skip scanning the pixel until the scanning is completed to obtain a set of display pixels. The second value indicates that the pixel is displayed in a second state, which is different from the first state.
[0127] During the comparison, if the pixel value of the corresponding pixel on the pattern to be displayed is the second value, then the scanning of this pixel is skipped, the second number is 0, and the corresponding pixel state should be off. The second state is the off state.
[0128] By comparing each pixel on the pattern to be displayed with the pixel density mask, all pixels are scanned, and the pixels are filtered to obtain the set of display pixels.
[0129] Step S305: Obtain the target display pattern through the set of display pixels.
[0130] In practice, a new display pattern, i.e., the target display pattern, can be constructed by displaying a set of pixels.
[0131] By overlaying grayscale masks with different pixel densities onto the pattern to be displayed, display patterns with different pixel densities can be constructed, ultimately resulting in target display patterns with multiple pixel densities.
[0132] For example, the pixel coordinates on the 50% grayscale mask are scanned one by one and compared with the pattern "E" to be displayed. If the value of the corresponding pixel on the display pattern is 0 (off state), the point is skipped and the scan continues; if the value of the corresponding pixel is 1 (on state), then this point is used as the display pixel. A point can also be drawn at the same coordinate position using the drawing function Point(x,y) in the video memory array Show[n]. After all the points corresponding to the pattern to be displayed on the screen have been scanned, the coordinates of all the intersecting pixels on the grayscale mask and the pattern to be displayed are stored in the video memory array Show[n] as the value 1. Thus, a target display pattern with a pixel density of 50% is obtained. Similarly, by overlaying and scanning with grayscale masks of different pixel densities, three other patterns with pixel densities of 25%, 75%, and 100% can be obtained, as shown in Figure 10. Figure 10 is a schematic diagram of the target display pattern effect obtained by overlaying grayscale masks of different pixel densities. From left to right, they are the target display pattern with a pixel density of 25%, a target display pattern with a pixel density of 50%, a target display pattern with a pixel density of 75%, and a target display pattern with a pixel density of 100%.
[0133] This embodiment obtains the aggregated pixel coordinates based on each pixel density mask in the pixel density mask set; it scans each point in the pattern to be displayed using the pixel density mask, comparing pixels in the pattern to be displayed with those at the same positions in the aggregated pixel coordinates; when the pixel value of the corresponding pixel in the pattern to be displayed is a first value, the pixel is used as a display pixel, where the first value indicates that the pixel is displayed in a first state; when the pixel value of the corresponding pixel in the pattern to be displayed is a second value, the scanning of the pixel is skipped until the scanning is complete, resulting in a set of display pixels, where the second value indicates that the pixel is displayed in a second state, which is different from the first state; by obtaining the target display pattern through the set of display pixels, grayscale masks with different pixel densities can be quickly scanned with the pattern to be displayed, thereby obtaining target display patterns with different display densities and improving the display effect of the pattern.
[0134] For example, to help understand the implementation flow of the LED display control method obtained by combining this embodiment with the above embodiment one, please refer to Figure 11. Figure 11 provides a simplified flowchart of an LED display control method. Specifically: First, a preset drawing point function Point(x,y) is constructed. The preset drawing point function is used to locate the pattern pixels in the LED display screen. A display memory array Show[n] is constructed to record the pixel values. The lit state is recorded as 1, and the off state is recorded as 0. The display screen is divided into five different lit states by different numbers of lit pixels, resulting in five pixel density masks. The display patterns are scanned sequentially through the density masks to obtain five new patterns with different pixel densities. The user's command is to light up or turn off. If it is lit up, the target display pattern is displayed sequentially according to the pixel density mask from 0% → 25% → 50% → 75% → 100%. If it is off, the target display pattern is displayed sequentially according to the pixel density mask from 100% → 75% → 50% → 25% → 0%.
[0135] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the LED display control method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0136] This application also provides an LED display screen control device, as shown in Figure 12, the LED display screen control device comprising:
[0137] The acquisition module 10 is used to acquire the pixel values of the LED display screen.
[0138] The determination module 20 is used to determine the set of pixel density masks that characterize different lighting states of the LED display screen based on the pixel values.
[0139] The scanning module 30 is used to scan the pattern to be displayed based on each pixel density mask in the pixel density mask set to obtain the target display pattern.
[0140] Display module 40 is used to control the LED display screen to perform gradient display through the target display pattern.
[0141] The LED display control device provided in this application, employing the LED display control method in the above embodiments, can solve the technical problem of the relatively simple display of existing LED displays. Compared with the prior art, the beneficial effects of the LED display control device provided in this application are the same as those of the LED display control method provided in the above embodiments, and other technical features in the LED display control device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0142] This application provides an LED display screen control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the LED display screen control method in the above embodiment 1.
[0143] Referring now to Figure 13, a schematic diagram of a structure suitable for implementing an LED display screen control device according to embodiments of this application is shown. The LED display screen control device in embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The LED display screen control device shown in Figure 13 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0144] As shown in Figure 13, the LED display screen control device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the LED display screen control device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the LED display control device to communicate wirelessly or wiredly with other devices to exchange data. Although LED display control devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.
[0145] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0146] The LED display control device provided in this application, employing the LED display control method in the above embodiments, can solve the technical problem of the relatively simple display of LED displays in the prior art. Compared with the prior art, the beneficial effects of the LED display control device provided in this application are the same as those of the LED display control method provided in the above embodiments, and other technical features in this LED display control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0147] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0148] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0149] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the LED display screen display control method in the above embodiments.
[0150] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0151] The aforementioned computer-readable storage medium may be included in the LED display screen display control device; or it may exist independently and not be assembled into the LED display screen display control device.
[0152] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the LED display screen display control device, the LED display screen display control device causes the LED display screen display control device to: acquire the pixel values of the LED display screen; determine a set of pixel density masks representing different lighting states of the LED display screen based on the pixel values; scan the pattern to be displayed based on each pixel density mask in the set of pixel density masks to obtain a target display pattern; and control the LED display screen to perform a gradient display based on the target display pattern.
[0153] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0154] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0155] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0156] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., computer programs) for executing the above-described LED display screen display control method, which can solve the technical problem of the relatively simple display of existing LED displays. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the LED display screen display control method provided in the above embodiments, and will not be repeated here.
[0157] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the LED display screen display control method described above.
[0158] The computer program product provided in this application can solve the technical problem of the relatively simple display of existing LED displays. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the LED display control method provided in the above embodiments, and will not be repeated here.
[0159] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for controlling the display of an LED screen, characterized in that, The method for controlling the LED display screen includes: Obtain the pixel count of the LED display screen; The pixel density mask set representing different lighting states of the LED display screen is determined by the pixel values. The target display pattern is obtained by scanning the pattern to be displayed based on each pixel density mask in the pixel density mask set; The target display pattern is used to control the LED display screen to perform a gradient display.
2. The method as described in claim 1, characterized in that, The step of determining the set of pixel density masks representing different lighting states of the LED display screen using the pixel values includes: The number of pixels lit is determined by the pixel values; The display screen lighting states are divided according to the number of lit pixels, resulting in multiple lighting states of the display screen; A set of pixel density masks is constructed using the various lighting states of the display screen.
3. The method as described in claim 1, characterized in that, The step of scanning the pattern to be displayed based on each pixel density mask in the pixel density mask set to obtain the target display pattern includes: The aggregated pixel coordinates are obtained based on each pixel density mask in the pixel density mask set. The pixel density mask is used to scan each point in the pattern to be displayed, and the pixels in the pattern to be displayed that are at the same position as the summed pixel coordinates are compared. When the pixel value of the corresponding pixel on the pattern to be displayed is a first value, the pixel is used as the display pixel, and the first value indicates that the pixel is displayed in a first state; When the pixel value of the corresponding pixel on the pattern to be displayed is the second value, the scanning of the pixel is skipped until the scanning is completed, and a set of display pixels is obtained. The second value indicates that the pixel is displayed in the second state, which is different from the first state and the second state. The target display pattern is obtained through the set of display pixels.
4. The method as described in claim 1, characterized in that, The steps for obtaining the pixel count of the LED display screen include: Obtain the raw pixel data of the LED display screen; The original pixels are divided to obtain multiple sets of divided pixels; The positions of the multiple groups of divided pixels are obtained by locating the pixels based on a preset drawing function. The pixel count of the LED display screen is determined by dividing the pixel positions.
5. The method as described in claim 4, characterized in that, The step of locating the multiple sets of divided pixels based on a preset drawing function to obtain the positions of the divided pixels includes: Based on a preset drawing point function, each group of divided pixel points in the multiple groups of divided pixel points is located to obtain the coordinates of the divided pixel points; The position of the divided pixel is obtained by using the coordinates of the divided pixel.
6. The method as described in claim 4, characterized in that, The step of determining the pixel value of the LED display screen by dividing the pixel positions includes: Retrieve preset numerical recording rules; Traverse the positions of the divided pixels to obtain the number of different pixels lit up in each group of divided pixels; The number of lit pixels is recorded using the preset numerical recording rules to obtain the pixel values of the LED display screen.
7. The method according to any one of claims 1 to 6, characterized in that, The step of controlling the LED display screen to perform gradient display through the target display pattern includes: Get the display command; The density display timing is determined according to the display instructions; The density display timing control allows display patterns of different display densities in the target display pattern to be displayed gradually on the LED display screen in sequence.
8. An LED display screen control device, characterized in that, The device includes: The acquisition module is used to acquire the pixel values of the LED display screen; The determination module is used to determine the set of pixel density masks that characterize different lighting states of the LED display screen based on the pixel values; The scanning module is used to scan the pattern to be displayed based on each pixel density mask in the pixel density mask set to obtain the target display pattern; The display module is used to control the LED display screen to perform a gradient display based on the target display pattern.
9. An LED display screen control device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the LED display screen display control method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the LED display screen display control method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Image display device and image display method
CN102473392A
Regulation of gamma characteristic in a display
CN102543003A
A screen brightness adjusting method and a related product
CN109859689A
Screen configuration method, device, system controller and LED display
CN112445445A
Image processing method and device and electronic system
CN113012081A