An LED text special effect control method, device, equipment, medium and product
Patent Information
- Application Number
- CN202611277070.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-10-16
AI Technical Summary
[0005]本发明提供了一种LED文字特效控制方法、装置、设备、介质和产品,解决现有文字移动出现抖动的问题,根据显示区域的起始坐标和特效数据确定整数像素偏移列表,确保整数像素偏移的帧数据,实现像素的整数偏移,确保LED文字的高效、稳定、平滑移动显示
[0011]The technical solution of this invention determines an integer pixel offset list based on the starting coordinates of the display area and special effects data, ensuring frame data for integer pixel offsets. This achieves integer pixel offsets, ensuring efficient, stable, and smooth movement and display of LED text, and solving the problem of jitter in existing text movement methods.
Smart Images

Figure CN122929933A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic information technology, and in particular to a method, apparatus, equipment, medium, and product for controlling LED text special effects. Background Technology
[0002] LED (Light Emitting Diode) display technology, as an important branch of new display technologies, is widely used in outdoor advertising, information dissemination, stage performances, and other fields. In the control of LED text effects, traditional technology mainly adopts a frame-by-frame full-data transmission method, where the control end transmits the complete text pixel data of each frame to the LED display end, which then directly drives the pixels to light up.
[0003] However, the current text movement effect rendering is based on real-time calculation, that is, in the case of 60 frames, a calculation is performed every 16.667ms to render. The current progress is calculated according to the linear interpolation algorithm, and then the current progress point is calculated through the start coordinates and end coordinates. In the case of continuous text movement effect, different values are calculated within 1 pixel, which will cause the display to have different values within 1 pixel.
[0004] Therefore, there is an urgent need for a method to control LED text effects to ensure smooth and continuous scrolling in multi-text scrolling scenarios. Summary of the Invention
[0005] This invention provides a method, apparatus, device, medium, and product for controlling LED text effects, which solves the problem of jitter in existing text movement. It determines an integer pixel offset list based on the starting coordinates of the display area and the effect data, ensures frame data for integer pixel offsets, achieves integer pixel offsets, and ensures efficient, stable, and smooth movement and display of LED text.
[0006] According to one aspect of the present invention, a method for controlling LED text effects is provided, comprising: The system responds to a text movement request received from the interactive interface; the text movement request includes text content and corresponding special effects data; the special effects data includes movement direction, frame rate, movement parameters, total movement time, and target coordinates; At least one display area is determined based on the text content and the target display screen data; A list of integer pixel offsets corresponding to the display area is determined based on the starting coordinates of the display area and the special effects data; the list of integer pixel offsets includes the integer pixel offsets of the display area at each time point. The current offset coordinates of the display area are determined based on the current time, the direction of movement, and the integer pixel offset list. The current frame data is determined based on the current offset coordinates corresponding to each display area, and the LED module is driven to display the current frame based on the current frame data.
[0007] According to another aspect of the present invention, an LED text effect control device is provided, comprising: The acquisition module is used to respond to the interactive interface to acquire a text movement request; the text movement request includes text content and corresponding special effects data; the special effects data includes movement direction, frame rate, movement parameters, total movement time, and target coordinates; The display area determination module is used to determine at least one display area based on the text content and the target display screen data. An integer pixel offset list determination module is used to determine an integer pixel offset list corresponding to the display area based on the starting coordinates of the display area and the special effects data; the integer pixel offset list includes the integer pixel offset of the display area at each time point; The current offset coordinate determination module is used to determine the current offset coordinate of the display area based on the current time, the direction of movement, and the integer pixel offset list; The display module is used to determine the current frame data based on the current offset coordinates corresponding to each display area, and drive the LED module to display the current frame based on the current frame data.
[0008] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the LED text effect control method according to any embodiment of the present invention.
[0009] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the LED text effect control method according to any embodiment of the present invention.
[0010] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program that, when executed by a processor, implements the LED text effect control method according to any embodiment of the present invention.
[0011] The technical solution of this invention determines an integer pixel offset list based on the starting coordinates of the display area and special effects data, ensuring frame data for integer pixel offsets. This achieves integer pixel offsets, ensuring efficient, stable, and smooth movement and display of LED text, and solving the problem of jitter in existing text movement methods.
[0012] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a flowchart of an LED text special effects control method provided by an embodiment of the present invention; Figure 2 This is a flowchart of an LED text special effects control method provided by an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an LED text special effects control device according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements the LED text effect control method of this invention. Detailed Implementation
[0015] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0016] It should be noted that the terms "comprising" and "having" and any variations thereof in the specification, claims and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product or device.
[0017] Furthermore, it should be noted that the information collected in the technical solution of this invention is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of related data all comply with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures have been taken, and public order and good morals are not violated. Corresponding operation entry points are provided for users to choose to authorize or refuse.
[0018] Figure 1 This invention provides a flowchart of an LED text effect control method. This invention is applicable to situations where text is dynamically rendered on an LED screen, particularly LEDs. The method can be executed by an LED text effect control device, which can be implemented in hardware and / or software and can be configured in a server. Figure 1 As shown, the method includes: S110, responding to the interactive interface to obtain a text movement request; the text movement request includes text content and corresponding special effects data; the special effects data includes movement direction, frame rate, movement parameters, total movement time, and target coordinates.
[0019] The interactive interface is used to interact with the user and obtain the user's input text dynamic display request to be displayed on the target display screen, i.e., the LED screen. The text movement request is the moving text requirement for this dynamic rendering, which may include the text content to be dynamically displayed. The text content can be at least one character. The special effect data corresponding to the text content can be the movement direction corresponding to the text content. The movement direction can be the movement of the text content from left to right, from right to left, from top to bottom, or from bottom to top. The frame rate refers to the number of times the screen refreshes per second. The movement parameter is the parameter that controls the movement speed. The total movement time is the total time required for a single display area to move from the initial position to the target position. The target position is the position where the special effect ends.
[0020] Specifically, in response to user input in the interactive interface, it can obtain the text movement request to be dynamically displayed on the LED screen, which may include the text content to be dynamically moved, as well as special effects data such as the movement direction corresponding to the text content.
[0021] It should be noted that the input operation can be to obtain the user's one-to-one input to obtain the corresponding text movement request, or to obtain the user's input document to be displayed, and dynamically extract the document to be displayed to obtain the corresponding text movement request, etc. Relevant technicians can set the input operation according to actual needs, as long as it can obtain the text movement request. The embodiments of the present invention do not specifically limit the input data format corresponding to the input operation.
[0022] S120. Determine at least one display area based on the text content and the target display screen data.
[0023] The target display screen data refers to the screen data corresponding to the target display screen, which may include the screen width and screen height of the LED screen. The screen width and screen height are represented in pixels, for example, the LED screen width is 192 pixels and the height is 32 pixels, or the LED screen width is 32 pixels and the height is 192 pixels. The display area is the dot matrix pixel data corresponding to each character in the text content. The width and height of the dot matrix pixel data can be preset by the user. The display area may also include the initial coordinates of each character on the LED screen.
[0024] Specifically, at least one character in the text content is identified, and the character is converted into pixel data to obtain the display area corresponding to each character. The initial coordinates of at least one display area are determined according to the screen width and screen height corresponding to the target display screen data.
[0025] Optionally, at least one display area is determined based on the text content and the target display screen data, including: The text content is split into text segments to obtain at least one character and a text sequence; Based on the target display screen data and the direction of movement, the text is transformed into a pixel matrix to obtain the dot matrix pixel data corresponding to the text as the display area. The display area is sorted according to the text order to obtain the text pixel set; The number of displays is determined based on the target display screen data, the direction of movement, and the ratio between display areas; The starting coordinates of the display area are determined based on the text order, the number of texts displayed, and the target screen data.
[0026] Among them, the text order refers to the arrangement order of the characters in the text content; the dot matrix pixel data is the data corresponding to the screen height, and the text width pixels and text height pixels in the dot matrix pixel data are the pixels corresponding to the screen height; for example, if the screen height of the LED screen is 32 pixels, then a single character will generate a pixel matrix of 32 rows × 32 columns; the text pixel set includes at least one display area; the display quantity is the number of display areas that can be placed on the LED screen at one time; the starting coordinates are the starting coordinates corresponding to the display area, which are used for subsequent scrolling.
[0027] Specifically, the text content is split into at least one character and its corresponding text order, which indicates the subsequent movement order of the characters. Based on the screen height of the target display screen, such as 32 pixels, the width and height of the text are determined. The text is then transformed into a pixel matrix to obtain the corresponding dot matrix pixel area, which serves as the display area. This display area can contain 32 rows of pixels. The system uses 32 columns of pixels. The display areas corresponding to each character are sorted according to text order to obtain a text pixel set. The number of pixels to be displayed is determined based on the ratio between the screen width in the target display screen data and the width of the display area. For example, if the screen width is 192 and the display area width is 32, then the corresponding number of pixels that can be displayed is 6. The starting coordinates of the display area are determined based on the text order, the number of pixels to be displayed, and the target screen data. For example, if the bottom left corner of the target screen is the origin, the top left corner of the display area is used as the starting coordinate (0,32), with a width of 32 and a height of 32. Therefore, the display area contains pixels ranging from (0,32) to (32,0) from the top left to the bottom right corner. The starting coordinates of the display area are determined by the screen width of the target screen data. For example, if a line of dynamic text contains 7 pixels, then the text pixel set includes... ;but For a display area, there are 32 lines. A 32-column pixel matrix, where i is the text's sequence number; then Let's define the display area corresponding to the text with serial number 1. Since the text moves to the left, the starting position on the LED screen is the top left corner, which is (0, 32), and the ending position is the right side. Its corresponding starting coordinates are (0, 32); then The corresponding starting coordinates are (33, 32), and so on. The starting vertical axis coordinate for each subsequent display is equal to the starting vertical axis coordinate of the previous display plus 32. Its corresponding coordinates are (151, 32). Since its corresponding vertical axis coordinates already satisfy the width of its LED screen, its corresponding starting vertical axis coordinates are the starting vertical axis coordinates of the previous display + 32 - 192. Its corresponding coordinates are (-1, 32), so subsequent scrolling can be performed based on the subsequent movement offset.
[0028] It is understandable that by pixelating and calculating the display area of a single character, the starting coordinates of the character are pre-set so that it can be moved according to the offset later.
[0029] In an optional embodiment of the present invention, the display area of each character, including the width and height of the pixel matrix and the starting coordinates of the display area, can be associated and mapped with the serial number identifier corresponding to each character, and stored in the character display queue, so as to facilitate real-time updates of the coordinates in the character display queue during subsequent movements.
[0030] Understandably, each movement only sends the coordinates of the corresponding text to the LED control board, effectively avoiding the need to transmit complete pixel data for each frame as in the traditional method. For high-resolution LED screens, only the corresponding movement coordinates are transmitted, effectively avoiding transmission delays and packet loss issues caused by high bandwidth requirements.
[0031] S130. Determine the integer pixel offset list corresponding to the display area based on the starting coordinates of the display area and the special effects data; the integer pixel offset list includes the integer pixel offset of the display area at each time point.
[0032] The integer pixel offset list is pre-built, and each display area corresponds to the integer pixel offset at each time point within the total movement time.
[0033] Specifically, based on the starting coordinates of the display area and the special effects data, its corresponding movement speed is determined. Then, based on the movement speed and the current time point, its corresponding offset is determined. By associating the offset corresponding to the time point with the time point, a list of integer pixel offsets of the display area throughout the entire movement time is obtained.
[0034] Understandably, associating time points with offsets and outputting only integer pixel offsets instead of full frame data significantly reduces transmission bandwidth requirements and directly binds the time dimension to the pixel dimension, avoiding subpixel data transmission.
[0035] S140. Determine the current offset coordinates of the display area based on the current time, movement direction, and integer pixel offset list.
[0036] The current offset coordinates are the coordinates of the display area corresponding to the current time.
[0037] Specifically, the integer pixel offset corresponding to the current time is determined from the integer pixel offset list based on the current time. Based on the movement direction, the integer pixel offset and the previous coordinates of the display area are used to determine the current coordinate position, which is then used as the current offset coordinate.
[0038] Optionally, the current offset coordinates of the display area are determined from a list of integer pixel offsets based on the current time and direction of movement, including: Determine the target offset from the list of integer pixel offsets based on the current time; If the movement direction is to the left, the current offset coordinate of the display area is determined based on the difference between the offset coordinate of the display area at the previous moment and the target offset. If the movement direction is to the right, the current offset coordinate of the display area is determined by the sum of the offset coordinate of the display area at the previous moment and the target offset. If the movement direction is upward, the current offset coordinate of the display area is determined based on the difference between the offset coordinate of the display area at the previous moment and the target offset. If the movement direction is downward, the current offset coordinate of the display area is determined based on the difference between the offset coordinate of the display area at the previous moment and the target offset.
[0039] The offset coordinates of the previous moment can be either the starting coordinates of the display area or the current offset coordinates corresponding to the previous moment.
[0040] Specifically, the target offset corresponding to the current time is determined from the integer pixel offset list based on the current time; based on a pre-defined movement direction, such as moving left, right, up, or down; moving left and right moves the horizontal axis coordinate of the display area; moving up and down moves the vertical axis coordinate of the display area; if the movement direction is left, the current offset coordinate of the display area is determined by the sum of the previous offset coordinate and the target offset; if the movement direction is right, the current offset coordinate of the display area is determined by the difference between the previous offset coordinate and the target offset; if the movement direction is up, the current offset coordinate of the display area is determined by the sum of the previous offset coordinate and the target offset. If the movement direction is downward, the current offset coordinate of the display area is determined by the difference between the previous offset coordinate and the target offset. For example, if the display area moves to the right, its target offset is determined to be 1 pixel from the integer pixel offset list based on the current time, and its previous offset coordinate is (0, 32). Then the current offset coordinate is the difference between the vertical axis and the target offset in the previous offset coordinate, which is (-1, 32). If the display area moves to the right, its target offset is determined to be 0 pixels from the integer pixel offset list based on the current time, and its previous offset coordinate is (0, 32). Then the current offset coordinate is the difference between the vertical axis and the target offset in the previous offset coordinate, which is (0, 32).
[0041] Understandably, the integer pixel offset list stores integer pixel offsets. If the current time point is not found in the integer pixel offset list, the current offset coordinates are not calculated. The calculation is performed only when the offset is found at the next time point, thus avoiding subpixel transmission at the source.
[0042] Understandably, determining the moving pixel point at the current time point using an integer pixel offset list effectively avoids the sub-pixel transmission used in some traditional technologies, which requires the display to interpolate the sub-pixel data, increasing the computational burden on the display and potentially causing display delays and stuttering. Furthermore, traditional technologies require real-time calculation of pixel data for each frame, using an integer pixel offset list to calculate the current offset coordinates, avoiding complex calculation logic on the control end, high hardware performance requirements, and increased system costs.
[0043] S150. Determine the current frame data based on the current offset coordinates corresponding to each display area, and drive the LED module to display the current frame based on the current frame data.
[0044] The current frame data includes the pixel matrix of each display area and the current coordinates.
[0045] Specifically, based on the current offset coordinates of the display area and the corresponding pixel data of the display area, such as a 32x32 pixel matrix display area with current offset coordinates of (2,32), the corresponding pixel data, i.e., the range of the text pixel matrix displayed on the LED screen, is (2,32) to (34,0). The current offset coordinates and text pixel matrix range of each display area are determined sequentially as the current frame data, and the LED module is driven to display the current frame based on the current frame data. Pixels with negative coordinates, i.e., outside the screen, are removed, and only the pixels on the LED screen are retained for the current frame display.
[0046] Optional, also includes: Determine the boundary coordinates based on the direction of movement, target screen data, and display area; If the current offset coordinate is greater than or equal to the boundary coordinate, then stop displaying the current offset coordinate; If the current offset coordinate is less than the boundary coordinate, then the current offset coordinate is used as the current frame data, and the LED module is driven to display the current frame based on the current frame data.
[0047] Among them, the boundary coordinates are the coordinates of the pixel range of the LED screen data extending one display area based on the direction of movement.
[0048] Specifically, during text scrolling, the boundary coordinates are determined based on the direction of movement, specifying whether the change occurs on the horizontal or vertical axis. Further, the boundary is determined by the screen width and pixel range of the target screen data and the display area. If the movement is left-right, the boundary coordinates are the change in the screen width and pixel range of the target display screen along the horizontal axis. For example, if the display area has 32 rows and 32 columns of pixels, and the LED screen is 192 pixels wide and 32 pixels high, the corresponding boundary coordinates are (-32, 32) and (224, 32). If the movement is up-down, the boundary coordinates are the change in the screen height and pixel range of the target screen data along the horizontal axis. For example, if the display area has 32 rows and 32 columns of pixels, and the LED screen is 32 pixels wide and 192 pixels high, the corresponding boundary coordinates are (0, 224). (0, -32); During text scrolling, the current offset coordinate and boundary coordinate are judged in real time; if the current offset coordinate is greater than or equal to the boundary coordinate, for example, when the boundary coordinates are (-32, 32) and (224, 32), the current offset coordinate is (-32, 32), which means that the text corresponding to the display area is completely outside the screen, and the display of the current offset coordinate is stopped. If the current offset coordinate is less than the boundary coordinate, for example, when the boundary coordinates are (-32, 32) and (224, 32), the current offset coordinate is (-1, 32), which means that only one column of pixels in the pixel matrix corresponding to the display area has left the screen, and the display can continue. The current offset coordinate is used as the current frame data, and the LED module is driven to display the current frame based on the current frame data.
[0049] Understandably, to ensure display efficiency, boundary constraints are set to automatically confine the display area outside the screen, enabling the dynamic text to scroll infinitely.
[0050] This invention addresses the issue of text movement requests received via an interactive interface. The process involves: determining at least one display area based on the text content and target display screen data; determining an integer pixel offset list corresponding to the display area based on its starting coordinates and effect data; determining the current offset coordinates of the display area from the integer pixel offset list based on the current time and movement direction as the current frame data; and driving the LED module to display the current frame based on this current frame data. This technical solution ensures that the frame data contains integer pixel offsets, achieving efficient, stable, and smooth text movement on the LED screen, thus resolving the jitter problem inherent in existing text movement methods.
[0051] Figure 2This is a flowchart of an LED text special effects control method according to an embodiment of the present invention. Based on the above embodiments, this embodiment supplements the method for constructing the integer pixel offset list. It should be noted that for parts not described in detail in this embodiment, please refer to the relevant descriptions in other embodiments. For example... Figure 2 As shown, the method includes: S210, responding to the interactive interface to obtain a text movement request; the text movement request includes text content and corresponding effect data; the effect data includes frame rate, movement parameters, movement direction and target coordinates.
[0052] S220. Determine at least one display area based on the text content and the target display screen data.
[0053] S230. Calculate the movement parameters based on the frame number movement rule to obtain the number of frames the pixel moves.
[0054] The pixel movement frame count is the number of frames required to move one complete pixel.
[0055] Specifically, the pixel movement frame rate is obtained by performing an exponential operation with the difference between the frame number parameter and the movement parameter as the base and 2 as the exponent. For example, if the frame number parameter is 5 and the movement parameter is s, the difference between the frame number parameter and the movement parameter is 5-s. If the movement parameter is 4, the pixel movement frame rate is 2, that is, 1 pixel moves every 2 frames.
[0056] S240. Based on the direction of movement, determine the movement distance according to the target coordinates and the starting coordinates of the display area.
[0057] The movement distance is used to stop the movement of special effects data.
[0058] Specifically, depending on the direction of movement, if the movement is left or right, the movement distance is determined by the horizontal axis corresponding to the target coordinates and the starting coordinates of the display area; if the movement is up or down, the movement distance is determined by the vertical axis corresponding to the target coordinates and the starting coordinates of the display area.
[0059] S250. The total movement time, frame rate, number of pixel movement frames, and movement speed are rounded down using a rounding function, and combined with the movement distance to construct an integer pixel offset list.
[0060] Specifically, the product of the current time and the frame rate in the total movement time is calculated, the number of frames already run is determined by rounding down using the rounding function, and the current offset pixel is obtained by rounding down the ratio between the number of frames already run and the number of frames moved by the pixel, based on the movement distance.
[0061] Optionally, the total movement time, frame rate, number of frames moved per pixel, and movement speed are rounded down using a rounding function, and combined with the movement distance to construct a list of integer pixel offsets, including: The total travel time is broken down to obtain at least one point in time; The time interval is determined based on the time point and the initial time. The product of the time interval and the movement speed is rounded down using a rounding function to obtain the current offset frame number corresponding to the time point. The ratio between the current offset frame number and the pixel movement frame number is rounded down using a rounding function, and the minimum value between the ratio and the movement distance is selected as the current offset. Associate the time point with the current offset to construct a list of integer pixel offsets.
[0062] The time points are the current times corresponding to the total time.
[0063] Specifically, the total time is divided to obtain at least one time point; the time interval is determined based on the time point and the initial time; the time interval and the movement speed are rounded down using a rounding function to obtain the current offset frame number corresponding to the time point; the ratio between the current offset frame number and the pixel movement frame number is rounded down using a rounding function, and the minimum value is selected as the current offset from the movement distance; the time point is associated with the current offset to construct an integer pixel offset list, such as [(0,0),(2,1),(4,2),...,(60,30)], which means that when t=0, the previous offset is 0; when t=2, the current offset is 1, and so on.
[0064] S260. Determine the current offset coordinates of the display area based on the current time, movement direction, and integer pixel offset list.
[0065] S270. Determine the current frame data based on the current offset coordinates corresponding to each display area, and drive the LED module to display the current frame based on the current frame data.
[0066] The embodiments of the present invention achieve a smooth "pixel-by-pixel" movement effect through frame rate control, and the display position is updated only when the whole pixel movement is completed. At the same time, it avoids the phenomenon of different values being calculated within 1 pixel when continuously moving text effects, which would cause the display to jitter with different values within 1 pixel.
[0067] Figure 3This invention provides a schematic diagram of an LED text effect control device, applicable to situations where text is dynamically rendered on an LED screen, particularly suitable for LED displays. The LED text effect control device can be implemented in hardware and / or software and can be configured in a server. Figure 3 As shown, the LED text effect control device 300 includes an acquisition module 310, a display area determination module 320, an integer pixel offset list determination module 330, a current offset coordinate determination module 340, and a display module 350. The acquisition module 310 is used to acquire a text movement request in response to the interactive interface; the text movement request includes text content and corresponding special effects data; the special effects data includes movement direction, frame rate, movement parameters, total movement time, and target coordinates; Display area determination module 320 is used to determine at least one display area based on text content and target display screen data; The integer pixel offset list determination module 330 is used to determine the integer pixel offset list corresponding to the display area based on the starting coordinates of the display area and the special effects data; the integer pixel offset list includes the integer pixel offset of the display area at each time point. The current offset coordinate determination module 340 is used to determine the current offset coordinates of the display area based on the current time, the direction of movement, and an integer pixel offset list. The display module 350 is used to determine the current frame data based on the current offset coordinates corresponding to each display area, and drive the LED module to display the current frame based on the current frame data.
[0068] This invention addresses the issue of text movement requests received via an interactive interface. The process involves: determining at least one display area based on the text content and target display screen data; determining an integer pixel offset list corresponding to the display area based on its starting coordinates and effect data; determining the current offset coordinates of the display area from the integer pixel offset list based on the current time and movement direction as the current frame data; and driving the LED module to display the current frame based on this current frame data. This technical solution ensures that the frame data contains integer pixel offsets, achieving efficient, stable, and smooth text movement on the LED screen, thus resolving the jitter problem inherent in existing text movement methods.
[0069] Optionally, the integer pixel offset list determination module 330 is specifically used to calculate the movement parameters based on the frame number movement rule to obtain the pixel movement frame number; Based on the direction of movement, the movement distance is determined according to the target coordinates and the starting coordinates of the display area; The total movement time, frame rate, number of frames moved per pixel, and movement speed are rounded down using a rounding function and combined with the movement distance to construct a list of integer pixel offsets.
[0070] Optionally, the integer pixel offset list determination module 330 is specifically used to split the total movement time to obtain at least one time point; The time interval is determined based on the time point and the initial time. The product of the time interval and the movement speed is rounded down using a rounding function to obtain the current offset frame number corresponding to the time point. The ratio between the current offset frame number and the pixel movement frame number is rounded down using a rounding function, and the minimum value between the ratio and the movement distance is selected as the current offset. Associate the time point with the current offset to construct a list of integer pixel offsets.
[0071] Optionally, the display area determination module 320 is specifically used to perform text splitting on the text content to obtain at least one character and text order; Based on the target display screen data and the direction of movement, the text is transformed into a pixel matrix to obtain the pixel array corresponding to the text as the display area. The display area is sorted according to the text order to obtain the text pixel set; The number of displays is determined based on the target display screen data, the direction of movement, and the ratio between display areas; The starting coordinates of the display area are determined based on the text order, the number of texts displayed, and the target screen data.
[0072] Optionally, the current offset coordinate determination module 340 is specifically used to determine the target offset from the pixel time offset list based on the current time; If the movement direction is to the left, the current offset coordinate of the display area is determined by the sum of the offset coordinate of the display area at the previous moment and the target offset. If the movement direction is to the right, the current offset coordinate of the display area is determined based on the difference between the offset coordinate of the display area at the previous moment and the target offset. If the movement direction is upward, the current offset coordinate of the display area is determined by the sum of the offset coordinate of the display area at the previous moment and the target offset. If the movement direction is downward, the current offset coordinate of the display area is determined based on the difference between the offset coordinate of the display area at the previous moment and the target offset.
[0073] Optionally, the LED text effect control device 300 includes a judgment module for determining boundary coordinates based on the movement direction, target screen data, and display area; If the current offset coordinate is greater than or equal to the boundary coordinate, then stop displaying the current offset coordinate; If the current offset coordinate is less than the boundary coordinate, then the current offset coordinate is used as the current frame data, and the LED module is driven to display the current frame based on the current frame data.
[0074] The LED text effect control device provided in this embodiment of the invention can execute the LED text effect control method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0075] According to embodiments of the present invention, the present invention also provides an electronic device, a readable storage medium, and a computer program product.
[0076] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0077] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from storage unit 18. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0078] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0079] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as LED text effect control methods.
[0080] In some embodiments, the LED text effect control method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the LED text effect control method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the LED text effect control method by any other suitable means (e.g., by means of firmware).
[0081] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0082] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0083] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0084] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0085] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0086] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product within the cloud computing service system. This addresses the shortcomings of traditional physical hosts and dedicated virtual services, such as high management difficulty and weak business scalability.
[0087] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0088] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for controlling LED text special effects, characterized in that, include: Responding to text movement requests received from the interactive interface; The text movement request includes text content and corresponding special effects data; the special effects data includes movement direction, frame rate, movement parameters, total movement time, and target coordinates; At least one display area is determined based on the text content and the target display screen data; A list of integer pixel offsets corresponding to the display area is determined based on the starting coordinates of the display area and the special effects data; the list of integer pixel offsets includes the integer pixel offsets of the display area at each time point. The current offset coordinates of the display area are determined based on the current time, the direction of movement, and the integer pixel offset list. The current frame data is determined based on the current offset coordinates corresponding to each display area, and the LED module is driven to display the current frame based on the current frame data.
2. The method according to claim 1, characterized in that, The step of determining the integer pixel offset list corresponding to the display area based on the starting coordinates of the display area and the special effects data includes: The number of frames moved by a pixel is calculated based on the frame-number movement rule. Based on the direction of movement, the movement distance is determined according to the target coordinates and the starting coordinates of the display area; The total movement time, the frame rate, and the number of frames moved per pixel are rounded down using a rounding function, and combined with the movement distance to construct an integer pixel offset list.
3. The method according to claim 2, characterized in that, The step of rounding down the total movement time, the frame rate, the number of frames moved per pixel, and the movement speed using a rounding function, and combining this with the movement distance to construct an integer pixel offset list, includes: The total travel time is divided to obtain at least one time point; The time interval is determined based on the stated time point and the initial time; The product between the time interval and the movement speed is rounded down using a rounding function to obtain the current offset frame number corresponding to the time point; The ratio between the current offset frame number and the pixel movement frame number is rounded down using a rounding function, and the minimum value between the ratio and the movement distance is selected as the current offset. Associate the time point with the current offset to construct a list of integer pixel offsets.
4. The method according to claim 1, characterized in that, Determining at least one display area based on the text content and target display screen data includes: The text content is split to obtain at least one character and a text sequence; Based on the target display screen data and the movement direction, the text is transformed into a pixel matrix to obtain the pixel dot matrix corresponding to the text as the display area. The display area is sorted according to the text order to obtain a text pixel set; The number of displays is determined based on the target display screen data, the direction of movement, and the ratio between display areas; The starting coordinates of the display area are determined based on the text order, the number of displays, and the target screen data.
5. The method according to claim 1, characterized in that, Determining the current offset coordinates of the display area from the integer pixel offset list based on the current time and the direction of movement includes: The target offset is determined from the pixel time offset list based on the current time; If the movement direction is to the left, the current offset coordinate of the display area is determined based on the sum of the offset coordinate of the display area at the previous moment and the target offset. If the movement direction is to the right, the current offset coordinate of the display area is determined based on the difference between the offset coordinate of the display area at the previous moment and the target offset. If the direction of movement is upward, the current offset coordinate of the display area is determined based on the sum of the offset coordinate of the display area at the previous moment and the target offset. If the movement direction is downward, the current offset coordinate of the display area is determined based on the difference between the offset coordinate of the display area at the previous moment and the target offset.
6. The method according to claim 1, characterized in that, Also includes: Determine the boundary coordinates based on the movement direction, the target screen data, and the display area; If the current offset coordinate is greater than or equal to the boundary coordinate, then stop displaying the current offset coordinate; If the current offset coordinate is less than the boundary coordinate, then the current offset coordinate is used as the current frame data, and the LED module is driven to display the current frame based on the current frame data.
7. An LED text special effects control device, characterized in that, include: The acquisition module is used to respond to text movement requests from the interactive interface; The text movement request includes text content and corresponding special effects data; the special effects data includes movement direction, frame rate, movement parameters, total movement time, and target coordinates; The display area determination module is used to determine at least one display area based on the text content and the target display screen data. An integer pixel offset list determination module is used to determine an integer pixel offset list corresponding to the display area based on the starting coordinates of the display area and the special effects data; the integer pixel offset list includes the integer pixel offset of the display area at each time point; The current offset coordinate determination module is used to determine the current offset coordinate of the display area based on the current time, the direction of movement, and the integer pixel offset list; The display module is used to determine the current frame data based on the current offset coordinates corresponding to each display area, and drive the LED module to display the current frame based on the current frame data.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the LED text effect control method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the LED text effect control method according to any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the LED text effect control method according to any one of claims 1-6.