Program generation method, device and equipment of LED display screen, medium and product
By parsing and applying preset template files, the system automatically determines the location of areas and display elements, and provides modifiable UI controls, thus solving the problem of low efficiency in LED display program production and enabling the rapid generation of program designs with consistent style.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-13
- Publication Date
- 2026-03-24
AI Technical Summary
The existing LED display program production efficiency is low and it is difficult to ensure the consistency of program style. Each time the host computer is changed, it needs to be re-edited, resulting in tedious and repetitive work.
By parsing the preset template file, the program root node loads the list of modifiable attributes and the list of regions. The program position and size are determined based on the list of region coordinate width and height. The program is generated by combining the region display elements. The program provides editable UI controls and supports template download and updates.
It greatly improves program generation efficiency, ensures consistency of program style across different displays and time periods, and simplifies the program design process.
Smart Images

Figure CN121126068B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of LED control technology, and in particular to a method, apparatus, device, medium and product for generating programs for an LED display screen. Background Technology
[0002] Asynchronous control of LED displays typically involves creating and editing program content on a host computer, then transmitting it to the display control card for playback. Existing program production software usually only provides basic editing functions; creating sophisticated program content can be quite complex, requiring design of special effects, text sizes, and other elements. This is not only time-consuming and labor-intensive but may also fail to achieve the user's desired effect. Furthermore, if the host computer is changed but the same program content is to be sent again, the editing and production must be repeated, necessitating the same tedious steps. Clearly, the current program design method requires starting from scratch every time a new program is created, resulting in extremely low efficiency and difficulty in ensuring consistency in program style. Summary of the Invention
[0003] This invention provides a method, apparatus, device, medium, and product for generating programs for LED displays, in order to improve the efficiency of program editing and the consistency of program style.
[0004] In a first aspect, embodiments of the present invention provide a program generation method for an LED display screen, the method comprising:
[0005] In response to a user's request to create a new program, the preset template file is parsed, and the list of modifiable attributes and the list of regions in the preset template file are loaded into the current program root node;
[0006] The region position and size corresponding to each region node are determined based on the region coordinate width and height list of each region node in the region list.
[0007] The region display element corresponding to each region node is determined based on the sub-plugin list of each region node, and each sub-plugin list associates the region display element with the item in the modifiable attribute list through its own modifiable item index list;
[0008] The target program is generated based on the location and size of the region, as well as the display elements of the region.
[0009] Optionally, the list of region coordinate width and height includes multiple Rect objects; determining the region position and size corresponding to each region node based on the list of region coordinate width and height of each region node in the region list includes:
[0010] For each region node, the position and size of the corresponding region node are determined according to the Rect object with index 0 in the corresponding region coordinate width and height list, and the position and size of the reused region of the corresponding region node are determined according to other Rect objects in the corresponding region coordinate width and height list.
[0011] For each of the other Rect objects, clone the corresponding region node and its list of child plugins to obtain a new region node, and add it to the end of the program root node.
[0012] Optionally, the coordinates and dimensions of each Rect object are normalized scale values relative to the screen size;
[0013] The step of determining the local position and size of the corresponding region node based on the Rect object with index 0 in the corresponding region coordinate width and height list includes:
[0014] The position and size of this region are determined based on the coordinates and dimensions of the Rect object with index 0, and the actual size of the target screen.
[0015] The step of determining the reused region position and size of the corresponding region node based on other Rect objects in the corresponding region coordinate width and height list includes:
[0016] The location and size of the reused area are determined based on the coordinates and dimensions of the other Rect objects, as well as the actual size.
[0017] Optionally, after determining the region display element corresponding to each region node based on the sub-plugin list of each region node, the method further includes:
[0018] Based on the location and size of the area, as well as the display elements of the area, a program preview is generated, and a program editing interface is provided;
[0019] Based on the list of modifiable attributes, modifiable UI controls are dynamically generated in the program editing interface, allowing users to modify the attribute values of the displayed elements in the area.
[0020] Optionally, after generating the target program based on the region location and size, and the region display elements, the method further includes:
[0021] The target program is sent to the control card on the target screen for playback.
[0022] Optionally, the method further includes:
[0023] In response to the user's update request, the preset template file is downloaded and updated via the network.
[0024] Secondly, embodiments of the present invention also provide a program generation apparatus for an LED display screen, the apparatus comprising:
[0025] The template file parsing module is used to respond to the user's new program creation request, parse the preset template file, and load the list of modifiable attributes and the list of regions in the preset template file into the current program root node;
[0026] The region determination module is used to determine the region position and region size corresponding to each region node based on the region coordinate width and height list of each region node in the region list;
[0027] The display element determination module is used to determine the region display element corresponding to each region node based on the sub-plugin list of each region node. Each sub-plugin list associates the region display element with the item in the modifiable attribute list through its own modifiable item index list.
[0028] The program generation module is used to generate a target program based on the location and size of the region and the display elements of the region.
[0029] Thirdly, embodiments of the present invention also provide a computer device, the computer device comprising:
[0030] One or more processors;
[0031] Memory, used to store one or more programs;
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the program generation method for LED displays provided in any embodiment of the present invention.
[0033] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the program generation method for an LED display screen provided in any embodiment of the present invention.
[0034] Fifthly, embodiments of the present invention also provide a computer program product, which includes a computer program that, when executed by a processor, implements the program generation method for an LED display screen provided in any embodiment of the present invention.
[0035] This invention provides a program generation method for LED displays. Responding to a user's request to create a new program, the method first parses a preset template file and loads the list of modifiable attributes and the list of regions from the preset template file into the current program root node. Then, based on the region coordinate width and height list of each region node in the region list, the method determines the region position and size corresponding to each region node. Furthermore, based on the sub-plugin list of each region node, the method determines the region display element corresponding to each region node. Each sub-plugin list associates the region display element with items in the modifiable attribute list through its own list of modifiable item indices. Finally, based on the obtained region position and size, and the region display element, the method generates the target program. This LED display program generation method, by reusing pre-designed templates, allows users to generate a complex program that would otherwise take hours in just a few minutes, greatly improving content production efficiency. Moreover, using templates ensures that programs produced on different displays and at different times maintain a consistent style and layout, enhancing program style consistency. Attached Figure Description
[0036] Figure 1 A flowchart of a program generation method for an LED display screen provided in Embodiment 1 of the present invention;
[0037] Figure 2 This is a schematic diagram of the program generation device for an LED display screen provided in Embodiment 2 of the present invention;
[0038] Figure 3 This is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. Detailed Implementation
[0039] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0040] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processes, many of these steps can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the steps can be rearranged. The process can be terminated when its operation is complete, but may also have additional steps not included in the figures. The process can correspond to a method, function, procedure, subroutine, subroutine, etc.
[0041] Example 1
[0042] Figure 1This is a flowchart of a program generation method for an LED display screen provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where a program is created by a host computer and transmitted to a slave computer for playback. This method can be executed by the program generation device for the LED display screen provided in this embodiment of the invention. This device can be implemented in hardware and / or software, and is generally integrated into a computer device, specifically a computer, mobile phone, etc. Figure 1 As shown, the method specifically includes the following steps:
[0043] S11. In response to the user's request to create a new program, parse the preset template file and load the list of modifiable attributes and the list of regions in the preset template file into the current program root node.
[0044] S12. Determine the region position and region size corresponding to each region node based on the region coordinate width and height list of each region node in the region list.
[0045] S13. Determine the region display element corresponding to each region node according to the sub-plugin list of each region node, and associate the region display element with the item in the modifiable attribute list through the respective modifiable item index list of each sub-plugin list.
[0046] S14. Generate a target program based on the location and size of the region and the display elements of the region.
[0047] Specifically, structured preset template files can be created in advance to encapsulate designed layouts, effects, and modifiable items into reusable templates. This allows users to configure these templates and quickly generate programs. The created preset template files can be embedded in commonly used host computers or stored in the cloud for download and use when needed.
[0048] The preset template file can be defined in JSON format, and can include template metadata, a list of modifiable properties, and a list of areas. The template metadata can include the template name (templateName), preview image (preview), minimum rendering engine version (minEngineVersion), and template type (templateType). The list of modifiable properties defines a set of user-modifiable project properties. Each item in the list can include a property name (property), property type (modifiableType), and property description (desc). Property types can include various types such as image paths, entrance effects, and exit effects, thus diversifying the modifiable items and avoiding single and complex modifications. This makes editing more convenient for users and enhances the flexibility of program editing, meeting personalized needs in different scenarios. The list of areas defines the display areas in the program. Each area can include a list of area coordinates (rects) and a list of child plugins (children). The region coordinates width and height list can be used to define the size and position of a region. Specifically, multiple `Rect` objects can be used to define the size and position of this region and reusable regions. The first `Rect` object can be used to define this region, while subsequent `Rect` objects can be used to define reusable regions. The sub-plugin list can be used to define the display elements (such as images, text, etc.) contained within the corresponding region. Each sub-plugin can be marked with a unique identifier (tag) and linked to specific items in the modifiable attributes list through a modifiable index list, thus determining which attributes are allowed to be modified by the user.
[0049] When the host computer receives a new program creation request from a user, it can retrieve and parse the corresponding preset template file based on the user's selection. First, it can load the list of modifiable attributes and the list of regions from this preset template file into the current program root node (programNode). Then, it can iterate through each loaded region node in the program root node, determining the region position and size based on the corresponding region coordinate width and height list, and determining the region display elements based on the corresponding sub-plugin list. Based on the obtained region position, size, and display elements, the target program can be generated. This can be done directly without adjustments, or the user can adjust the modifiable items as needed before generating the target program.
[0050] In an optional implementation, the region coordinate width and height list includes multiple Rect objects; determining the region position and size corresponding to each region node based on the region coordinate width and height list of each region node in the region list includes: for each region node, determining the local region position and size of the corresponding region node based on the Rect object with index 0 in the corresponding region coordinate width and height list, and determining the reused region position and size of the corresponding region node based on other Rect objects in the corresponding region coordinate width and height list; for each other Rect object, cloning the corresponding region node and its sub-plugin list to obtain a new region node, and adding it to the end of the program root node.
[0051] Specifically, for each region node, its region coordinate and height list can be traversed. The coordinates and dimensions of the Rect object with index 0 are assigned to the current region node itself, thus determining the position and size of this region. Then, for each Rect object with an index greater than 0, the current region node and all its child plugins can be cloned to obtain a corresponding new region node. The coordinates and dimensions of the corresponding Rect object are then assigned to the new region node, and the new region node is added to the end of the program root node, thus determining the position and size of each multiplexed region. Correspondingly, the display elements in the corresponding region can be determined using the original list of child plugins, and the display elements in each multiplexed region can be determined using the cloned list of child plugins.
[0052] Optionally, the coordinates and dimensions of each Rect object are normalized scale values relative to the screen size; determining the position and size of the corresponding region node based on the Rect object with index 0 in the corresponding region coordinates and dimensions list includes: determining the position and size of the region based on the coordinates and dimensions of the Rect object with index 0 and the actual size of the target screen; determining the position and size of the reused region of the corresponding region node based on other Rect objects in the corresponding region coordinates and dimensions list includes: determining the position and size of the reused region based on the coordinates and dimensions of the other Rect objects and the actual size.
[0053] Specifically, the coordinates (x, y) of the `Rect` object represent the coordinates of the top-left corner of the rectangular area, and the width and height (width, height) represent the width and height of the rectangular area. Both can be normalized proportional values relative to the screen size (`faceSize`), and the type can be floating-point numbers. When determining the position and size of the current area and the position and size of the reused area, the normalized coordinates and dimensions can be multiplied by the actual size of the target screen (e.g., screen height `screenHeight`) to obtain the actual pixel coordinates and dimensions on the target screen, which are then assigned to the corresponding nodes. This solves the problems of device screen size adaptation and area reuse, ensuring that the template displays correctly on displays with different physical resolutions.
[0054] Based on the above technical solution, optionally, after determining the corresponding area display element for each area node according to the sub-plugin list of each area node, the method further includes: generating a program preview based on the area location and size, and the area display element, and providing a program editing interface; dynamically generating modifiable UI controls in the program editing interface according to the modifiable attribute list, so that users can modify the attribute values of the area display element. This allows users to personalize their programs simply by selecting the desired effect type and uploading images from specified paths, thus reducing the requirement for professional skills and enabling rapid program customization.
[0055] Based on the above technical solution, optionally, after generating the target program based on the region location, region size, and region display elements, the method further includes: sending the target program to a control card on the target screen for playback. Specifically, this can involve sending a target program directly generated from a template or a target program generated after user adjustments to the target screen to the control card, so that the program can be controlled to play on the corresponding target screen.
[0056] Based on the above technical solution, optionally, the method further includes: in response to a user's update request, downloading and updating the preset template file via a network. Specifically, the preset template file can be independent of the program code and can be downloaded and updated via the network as needed, thereby adapting to different host computers at any time and continuously providing users with new design styles and functions without upgrading the entire application.
[0057] The technical solution provided by this invention, in response to a user's request to create a new program, first parses a preset template file and loads the list of modifiable attributes and the list of regions in the preset template file into the current program root node. Then, it determines the region position and size corresponding to each region node based on the region coordinate width and height list of each region node in the region list, and determines the region display element corresponding to each region node based on the sub-plugin list of each region node. Each sub-plugin list associates the region display element with an item in the modifiable attribute list through its own list of modifiable item indexes. Finally, based on the obtained region position and size, and the region display element, the target program is generated. By reusing pre-designed templates, users can generate a complex program that would originally take hours to complete in minutes, greatly improving content production efficiency. Moreover, using templates can ensure that programs produced on different displays and at different times maintain a consistent style and layout when needed, improving the consistency of program style.
[0058] Example 2
[0059] Figure 2 This is a schematic diagram of the structure of the LED display program generation device provided in Embodiment 2 of the present invention. This device can be implemented in hardware and / or software, and is generally integrated into a computer device to execute the LED display program generation method provided in any embodiment of the present invention. Figure 2 As shown, the device includes:
[0060] The template file parsing module 21 is used to respond to the user's new program creation request, parse the preset template file, and load the list of modifiable attributes and the list of regions in the preset template file into the current program root node;
[0061] The region determination module 22 is used to determine the region position and region size corresponding to each region node based on the region coordinate width and height list of each region node in the region list;
[0062] Display element determination module 23 is used to determine the region display element corresponding to each region node according to the sub-plugin list of each region node. Each sub-plugin list associates the region display element with the item in the modifiable attribute list through its own modifiable item index list.
[0063] The program generation module 24 is used to generate a target program based on the location and size of the region and the display elements of the region.
[0064] The technical solution provided by this invention, in response to a user's request to create a new program, first parses a preset template file and loads the list of modifiable attributes and the list of regions in the preset template file into the current program root node. Then, it determines the region position and size corresponding to each region node based on the region coordinate width and height list of each region node in the region list, and determines the region display element corresponding to each region node based on the sub-plugin list of each region node. Each sub-plugin list associates the region display element with an item in the modifiable attribute list through its own list of modifiable item indexes. Finally, based on the obtained region position and size, and the region display element, the target program is generated. By reusing pre-designed templates, users can generate a complex program that would originally take hours to complete in minutes, greatly improving content production efficiency. Moreover, using templates can ensure that programs produced on different displays and at different times maintain a consistent style and layout when needed, improving the consistency of program style.
[0065] Based on the above technical solution, optionally, the region coordinate width and height list includes multiple Rect objects; the region determination module 22 is specifically used for:
[0066] For each region node, the position and size of the corresponding region node are determined according to the Rect object with index 0 in the corresponding region coordinate width and height list, and the position and size of the reused region of the corresponding region node are determined according to other Rect objects in the corresponding region coordinate width and height list.
[0067] For each of the other Rect objects, clone the corresponding region node and its list of child plugins to obtain a new region node, and add it to the end of the program root node.
[0068] Based on the above technical solution, optionally, the coordinates and width and height of each Rect object are normalized scale values relative to the screen size;
[0069] The step of determining the local position and size of the corresponding region node based on the Rect object with index 0 in the corresponding region coordinate width and height list includes:
[0070] The position and size of this region are determined based on the coordinates and dimensions of the Rect object with index 0, and the actual size of the target screen.
[0071] The step of determining the reused region position and size of the corresponding region node based on other Rect objects in the corresponding region coordinate width and height list includes:
[0072] The location and size of the reused area are determined based on the coordinates and dimensions of the other Rect objects, as well as the actual size.
[0073] Based on the above technical solution, optionally, the device further includes:
[0074] The preview module is used to generate a program preview based on the region location and size, and the region display element, after determining the region display element corresponding to each region node according to the sub-plugin list of each region node, and to provide a program editing interface.
[0075] The editing module is used to dynamically generate modifiable UI controls in the program editing interface based on the list of modifiable attributes, so that users can modify the attribute values of the displayed elements in the area.
[0076] Based on the above technical solution, optionally, the device further includes:
[0077] The program playback module is used to send the target program to the control card of the target screen for playback after the target program is generated based on the area location, area size, and area display elements.
[0078] Based on the above technical solution, optionally, the device further includes:
[0079] The template update module is used to respond to user update requests by downloading and updating the preset template file via the network.
[0080] The LED display program generation device provided in this embodiment of the invention can execute the LED display program generation method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0081] It is worth noting that in the above-mentioned embodiment of the program generation device for LED display screen, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0082] Example 3
[0083] Figure 3 This is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention, showing a block diagram of an exemplary computer device suitable for implementing the embodiments of the present invention. Figure 3 The computer device shown is merely an example and should not be construed as limiting the functionality or scope of the embodiments of the present invention. Figure 3 As shown, the computer device includes a processor 31, a memory 32, an input device 33, and an output device 34; the number of processors 31 in the computer device can be one or more. Figure 3Taking a processor 31 as an example, the processor 31, memory 32, input device 33, and output device 34 in a computer device can be connected via a bus or other means. Figure 3 Taking the example of a connection between China and Israel via a bus.
[0084] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the program generation method of the LED display screen in this embodiment of the invention (e.g., the template file parsing module 21, the area determination module 22, the display element determination module 23, and the program generation module 24 in the program generation device of the LED display screen). The processor 31 executes various functional applications and data processing of the computer device by running the software programs, instructions, and modules stored in the memory 32, thereby realizing the above-described program generation method of the LED display screen.
[0085] The memory 32 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 32 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, the memory 32 may further include memory remotely located relative to the processor 31, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0086] Input device 33 can be used to acquire new program creation requests from users, and to generate key signal inputs related to user settings and function control of computer equipment. Output device 34 may include a display screen, which can be used to display current program previews to the user, etc.
[0087] Example 4
[0088] Embodiment 4 of the present invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a program generation method for an LED display screen, the method comprising:
[0089] In response to a user's request to create a new program, the preset template file is parsed, and the list of modifiable attributes and the list of regions in the preset template file are loaded into the current program root node;
[0090] The region position and size corresponding to each region node are determined based on the region coordinate width and height list of each region node in the region list.
[0091] The region display element corresponding to each region node is determined based on the sub-plugin list of each region node, and each sub-plugin list associates the region display element with the item in the modifiable attribute list through its own modifiable item index list;
[0092] The target program is generated based on the location and size of the region, as well as the display elements of the region.
[0093] Storage media can be any type of memory device or storage device. The term "storage media" is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements. Storage media may also include other types of memory or combinations thereof. Furthermore, storage media may reside in a computer system in which the program is executed, or may reside in a different second computer system connected to the computer system via a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term "storage media" can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage media may store program instructions (e.g., specifically implemented as a computer program) that can be executed by one or more processors.
[0094] Of course, the computer-executable instructions provided in the embodiments of the present invention are not limited to the method operations described above, but can also perform related operations in the program generation method of the LED display screen provided in any embodiment of the present invention.
[0095] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0096] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0097] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0098] Example 5
[0099] Embodiment 5 of the present invention also provides a computer program product, which includes a computer program (also referred to as code or instructions). The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it is used to execute the program generation method of the LED display screen provided in any of the above embodiments, and has the corresponding beneficial effects of executing the method.
[0100] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A program generation method of an LED display screen, characterized by, include: In response to a user's request to create a new program, the preset template file is parsed, and the list of modifiable attributes and the list of regions in the preset template file are loaded into the current program root node; The region position and size corresponding to each region node are determined based on the region coordinate width and height list of each region node in the region list. The region display element corresponding to each region node is determined based on the sub-plugin list of each region node, and each sub-plugin list associates the region display element with the item in the modifiable attribute list through its own modifiable item index list; The target program is generated based on the location and size of the region, as well as the display elements of the region. The region coordinate width and height list includes multiple Rect objects; determining the region position and size corresponding to each region node based on the region coordinate width and height list of each region node in the region list includes: For each region node, the position and size of the corresponding region node are determined according to the Rect object with index 0 in the corresponding region coordinate width and height list, and the position and size of the reused region of the corresponding region node are determined according to other Rect objects in the corresponding region coordinate width and height list. For each of the other Rect objects, clone the corresponding region node and its list of child plugins to obtain a new region node, and add it to the end of the program root node; Accordingly, determining the region display element corresponding to each region node based on the sub-plugin list of each region node includes: The display elements in the corresponding area are determined by the original list of sub-plugins, and the display elements in the corresponding reused area are determined by the list of cloned sub-plugins.
2. The method of claim 1, wherein, The coordinates and dimensions of each Rect object are normalized scale values relative to the screen size; The step of determining the local position and size of the corresponding region node based on the Rect object with index 0 in the corresponding region coordinate width and height list includes: The position and size of this region are determined based on the coordinates and dimensions of the Rect object with index 0, and the actual size of the target screen. The step of determining the reused region position and size of the corresponding region node based on other Rect objects in the corresponding region coordinate width and height list includes: The location and size of the reused area are determined based on the coordinates and dimensions of the other Rect objects, as well as the actual size.
3. The program generation method for an LED display screen according to claim 1, characterized in that, After determining the region display element corresponding to each region node based on the sub-plugin list of each region node, the method further includes: Based on the location and size of the area, as well as the display elements of the area, a program preview is generated, and a program editing interface is provided; Based on the list of modifiable attributes, modifiable UI controls are dynamically generated in the program editing interface, allowing users to modify the attribute values of the displayed elements in the area.
4. The program generation method for an LED display screen according to claim 1, characterized in that, After generating the target program based on the region location and size, and the region display elements, the method further includes: The target program is sent to the control card on the target screen for playback.
5. The program generation method for an LED display screen according to claim 1, characterized in that, The method further includes: In response to the user's update request, the preset template file is downloaded and updated via the network.
6. A program generation device for an LED display screen, characterized in that, include: The template file parsing module is used to respond to the user's new program creation request, parse the preset template file, and load the list of modifiable attributes and the list of regions in the preset template file into the current program root node; The region determination module is used to determine the region position and region size corresponding to each region node based on the region coordinate width and height list of each region node in the region list; The display element determination module is used to determine the region display element corresponding to each region node based on the sub-plugin list of each region node. Each sub-plugin list associates the region display element with the item in the modifiable attribute list through its own modifiable item index list. The program generation module is used to generate a target program based on the location and size of the region, as well as the display elements of the region; The region coordinate width and height list includes multiple Rect objects; the region determination module is specifically used for: For each region node, the position and size of the corresponding region node are determined according to the Rect object with index 0 in the corresponding region coordinate width and height list, and the position and size of the reused region of the corresponding region node are determined according to other Rect objects in the corresponding region coordinate width and height list. For each of the other Rect objects, clone the corresponding region node and its list of child plugins to obtain a new region node, and add it to the end of the program root node; Accordingly, the display element determination module is specifically used for: The display elements in the corresponding area are determined by the original list of sub-plugins, and the display elements in the corresponding reused area are determined by the list of cloned sub-plugins.
7. A computer device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the program generation method for the LED display screen as described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the program generation method for the LED display screen as described in any one of claims 1-5.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the program generation method for the LED display screen as described in any one of claims 1-5.