Screen matching method and device, control system, display device and readable storage medium
Patent Information
- Application Number
- CN202311549408.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2043-11-20
AI Technical Summary
[0003]在现有的LED显示屏幕排布方案中,需要人为输入屏幕大小和组成屏幕的箱体尺寸,限制了屏幕的大小及屏幕的形状,且不能在同一个系统中连接多种箱体一起进行显示屏幕的任意拼接及控制
[0040]In summary, this application proposes a screen matching method, apparatus, control system, display device, and readable storage medium. The method includes: determining the cabinet information and display template information of the display unit based on the link data of the receiving card; displaying the display templates on a canvas based on the cabinet information and display template information, and automatically arranging the display templates to obtain a first arrangement image; controlling the display interface to display images according to the image information of the first arrangement image, and acquiring screen images on the display interface; comparing the screen images with the first arrangement image to obtain update information for each corresponding display template; and rearranging the display templates on the canvas based on the update information to obtain a second arrangement image. This application integrates a software control system into the sending card and rearranges the images in the display interface through the software control system, which not only supports display templates of different specifications but also allows for flexible adjustment of the images in the display interface according to the display templates on the canvas.
Smart Images

Figure CN117632068B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display control technology, and in particular to a screen matching method, apparatus, control system, display device, and readable storage medium. Background Technology
[0002] Currently, larger displays are generally spliced displays, which are composed of multiple display units spliced together.
[0003] Existing LED display screen layout schemes require manual input of the screen size and the dimensions of the cabinets that make up the screen, which limits the size and shape of the screen. Furthermore, it prevents the connection of multiple cabinets within the same system for arbitrary splicing and control of the display screens. The entire operation process lacks a clear interface for operating each display unit.
[0004] Therefore, there is an urgent need for a screen display control solution that can provide more flexibility in the connection and splicing methods of screen components. Summary of the Invention
[0005] Therefore, it is necessary to provide a screen matching method, device, control system, display device, and readable storage medium that can more flexibly and conveniently adjust the connection and splicing methods of screen components to address the above-mentioned technical problems.
[0006] In a first aspect, this application provides a screen configuration method applied to a sending card, wherein the sending card is connected to a receiving card via a switch, and the receiving card is used to control a display unit to perform screen display. The method includes:
[0007] The cabinet information of the display unit and the display template information to be laid out on the canvas are determined based on the link data of the receiving card.
[0008] Based on the box information and the display template information, the display template is displayed on the canvas, and the display template is automatically arranged to obtain a first arrangement image;
[0009] The control display interface displays images based on the image information of the first arranged images, and captures screen images on the display interface;
[0010] The update information for each display template is obtained by comparing the screen image with the first layout image.
[0011] The display template is rearranged on the canvas according to the updated information to obtain a second arrangement image.
[0012] In one embodiment, determining the enclosure information and display template information based on the link data of the receiving card includes:
[0013] Collect link data of all receiving cards connected to each transmitting port of the transmitting card;
[0014] Based on the link data, the corresponding box information and display template information are matched in the template database.
[0015] In one embodiment, displaying the display template on the canvas based on the box information and the display template information includes:
[0016] Display templates of different box types are displayed on the canvas. Display templates of the same box type are stacked and the stacking number is displayed on the corresponding display template. Display templates of different box types are displayed in different colors.
[0017] In one embodiment, the automatic arrangement of the display template to obtain a first arrangement image includes:
[0018] All display templates are tiled on the canvas, with no overlap between them;
[0019] Each display template is numbered, and the coordinate information of each template is obtained;
[0020] The first layout image is generated based on the template number corresponding to each display template on the canvas and the coordinate information.
[0021] In one embodiment, the step of comparing the screen image with the first layout image to obtain update information for each display template includes:
[0022] The screen image is preprocessed to obtain a binarized image;
[0023] The binarized image is subjected to morphological processing to obtain a target image that conforms to the boundary information of the display interface;
[0024] Obtain display unit information for each display unit in the target image, wherein the display unit information includes coordinate information, rotation angle, and number information;
[0025] The display unit information is compared with the corresponding display template information in the first arrangement image to obtain the update information for each display template.
[0026] In one embodiment, obtaining the display unit information of each display unit in the target image includes:
[0027] Extract the smallest rectangle containing the characters in each display unit of the target image;
[0028] The rotation angle of the display unit is obtained based on the centering rotation angle of the minimum rectangle;
[0029] By matching each character according to the display template information, the corresponding number information of the display unit is obtained;
[0030] The coordinate information of the display unit is calculated based on the minimum rectangle.
[0031] Secondly, this application also provides a screen matching device applied to a sending card, wherein the sending card is connected to a receiving card via a switch, and the receiving card is used to control a display unit to perform screen display. The device includes:
[0032] The determining module is used to determine the cabinet information of the display unit and the display template information to be laid out on the canvas based on the link data of the receiving card;
[0033] The first layout module is used to display the display template on the canvas according to the box information and the display template information, and automatically arrange the display template to obtain the first layout image;
[0034] The display module is used to control the display interface to display images according to the image information of the first arranged images, and to capture screen images on the display interface;
[0035] The update module is used to compare the screen image with the first layout image to obtain update information for each display template.
[0036] The second layout module is used to rearrange the display template on the canvas according to the updated information to obtain a second layout image.
[0037] Thirdly, this application also provides a screen matching control system, including a sending card, a switch, and a receiving card, wherein the sending card is connected to the receiving card through the switch, the receiving card is used to control the display unit to perform screen display, and the sending card is used to implement the steps of the screen matching method described in the first aspect.
[0038] Fourthly, this application also provides a display device, including the screen matching control system described in the second aspect.
[0039] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the screen matching method described in the first aspect.
[0040] In summary, this application proposes a screen matching method, apparatus, control system, display device, and readable storage medium. The method includes: determining the cabinet information and display template information of the display unit based on the link data of the receiving card; displaying the display templates on a canvas based on the cabinet information and display template information, and automatically arranging the display templates to obtain a first arrangement image; controlling the display interface to display images according to the image information of the first arrangement image, and acquiring screen images on the display interface; comparing the screen images with the first arrangement image to obtain update information for each corresponding display template; and rearranging the display templates on the canvas based on the update information to obtain a second arrangement image. This application integrates a software control system into the sending card and rearranges the images in the display interface through the software control system, which not only supports display templates of different specifications but also allows for flexible adjustment of the images in the display interface according to the display templates on the canvas. Attached Figure Description
[0041] Figure 1 This is an application environment diagram of the screen matching method in one embodiment;
[0042] Figure 2 This is a flowchart illustrating a screen configuration method in one embodiment;
[0043] Figure 3 This is a flowchart illustrating the steps for determining the enclosure information and display template information in one embodiment.
[0044] Figure 4 This is a schematic diagram of the interface of the canvas area of the Ubuntu software control system in one embodiment;
[0045] Figure 5 This is a schematic diagram of the steps for generating the first layout image in one embodiment;
[0046] Figure 6 This is a schematic diagram of the canvas area of the Ubuntu software control system in another embodiment;
[0047] Figure 7 This is a flowchart illustrating the steps for obtaining update information for each display template in one embodiment;
[0048] Figure 8 This is an image displayed on the display interface of a display device in one embodiment;
[0049] Figure 9 This is a target image acquired by the Ubuntu software control system in one embodiment;
[0050] Figure 10 This is a schematic diagram of the canvas area of the Ubuntu software control system in another embodiment.
[0051] Figure 11 This is a flowchart illustrating the steps for obtaining update information for each display template in another embodiment;
[0052] Figure 12 This is a schematic diagram illustrating an application scenario for obtaining update information of each display template in one embodiment;
[0053] Figure 13 This is a structural block diagram of the screen control device in one embodiment;
[0054] Figure 14 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0056] The screen matching method provided in this application embodiment can be applied to, for example, Figure 1 The screen matching control system shown in this embodiment consists of a sending card, a switch, and a receiving card.
[0057] Specifically, the receiving card is used to drive the display unit of the display device to display corresponding content according to control commands. In practical applications, each receiving card can correspond to one display unit, and the display device can be composed of multiple display units of the same or different shapes. The number of receiving cards in the screen matching control system of this embodiment is determined according to the number of display units of the display device. For example, for an LED display device, one receiving card is used to drive and control one LED display unit to light up and display. In this LED display device, the driving parameters of different LED display units can be different, including the number of control pixels, LED driver chip, lamp spacing, LED cabinet shape, etc.
[0058] A switch is a data forwarding device that connects sending and receiving cards. Switches control communication parameters such as bandwidth and speed, enabling sending cards to connect to more receiving cards with fewer sending ports. For example, a switch can convert 10G bandwidth to 1G bandwidth, thereby reducing the number of sending ports on a single sending card, allowing one 10G sending card port to communicate with more receiving cards through the switch.
[0059] The sending card is a video processing unit used to preprocess the display data according to preset scaling or color conversion algorithms and send the preprocessed display data to the corresponding receiving card so that the receiving card can control the display unit to display the image according to the display data.
[0060] Specifically, the transmitting card in this embodiment integrates the Ubuntu software control system. The transmitting card uses an integrated SD card as the carrier of the Ubuntu software control system, and the SD card communicates and controls the transmitting card via SPI 2.0. This direct integration of the SD card into the transmitting card in this embodiment effectively reduces costs and facilitates production.
[0061] It should be noted that the Ubuntu software control system can also be used as a standalone control system, running on computer devices, which then communicate with the sending card via PCIe or USB 3.0 ports.
[0062] Specifically, the number of sending cards, switches, and receiving cards may vary for different display device screen matching control systems. This embodiment does not limit the number of sending cards, switches, and receiving cards; a certain number of sending cards, switches, and receiving cards can be set for the screen matching control system according to the needs of the actual application scenario.
[0063] like Figure 1 As shown, the sending card is also equipped with a network port that can connect to an image acquisition device, such as a camera or other device capable of capturing real-time images.
[0064] The transmitting card connects to multiple receiving card links, such as... Figure 1 As shown, receiver card link 1 includes receiver card 11, receiver card 12, and receiver card 1n; receiver card link 2 includes receiver card 21, receiver card 22, and receiver card 2n; receiver card link 3 includes receiver card 31, receiver card 32, and receiver card 3n; and receiver card link 4 includes receiver card 41, receiver card 42, and receiver card 4n. It should be noted that the number of receiver cards connected in each receiver card link can be the same or different for different receiver card links.
[0065] In practical implementation, the screen matching control system in this embodiment can realize the function of arranging display templates in the canvas area based on the Ubuntu system. This enables corresponding display control of display units of different specifications and sizes in the display device, ensuring that the screens of display devices with different splicing methods correctly display video images, and simplifies the process of arranging and controlling each display unit individually. Furthermore, the screen matching method provided in this embodiment does not need to consider the shape characteristics of the display screen; it can directly perform display screen arrangement actions for display units with different control parameters and shapes, greatly improving the flexibility of the screen matching solution.
[0066] In one embodiment, such as Figure 2 As shown, a screen configuration method is provided, which can be applied to... Figure 1Taking the sending card in the example, the explanation includes the following steps:
[0067] S201, determine the cabinet information of the display unit and the display template information to be laid out on the canvas based on the link data of the receiving card.
[0068] Specifically, this embodiment does not require manual setting of the screen size of the display device or the cabinet size of the display unit that makes up the screen. When the Ubuntu software control system starts, it automatically collects the link data of the receiving card connected to each sending port of the sending card, and determines the complete cabinet information of the display unit and the display template information of the display template that needs to be displayed on the canvas based on the link data of the receiving card.
[0069] The cabinet information of the display units includes the cabinet shape and driving parameters of each display unit in the LED display device. In this embodiment, when the transmitting card collects link data from the receiving cards connected to each port, it only receives partial cabinet information related to the display units controlled by the receiving cards. The complete cabinet information can be stored in advance in the database connected to the Ubuntu software control system. The display template information includes the coordinates, shape, and number of the display template to be displayed on the canvas.
[0070] A display template is a template file representing the shape of a display unit on a corresponding display device. The display template information includes at least display data such as the cabinet shape, pixel pitch, and number of pixel rows and columns. For example, if display unit A has 64 columns and 45 rows of pixels, the pixel pitch of its pixel control area is 3.3 mm; and display unit B has 96 columns and 60 rows of pixels, with a pixel pitch of 2.5 mm in its pixel control area, then a first display template can be matched based on the display data of display unit A, and a second display template can be matched based on the display data of display unit B. The first display template information includes display data such as the number of pixel rows and columns and the pixel pitch.
[0071] In this specific embodiment, a display template database is configured in the Ubuntu software control system. This database stores a large number of display templates corresponding to various types of display units. In practical applications, the display templates corresponding to the display units to be identified can be pre-configured in the database. Each display template is associated with its corresponding display template information and cabinet information. This embodiment does not limit the specific setup process of the display template database; it can be adaptively configured according to the needs of the actual application scenario.
[0072] Specifically, the link data of the receiving card includes the model of the display unit controlled by each receiving card, and the cabinet information and display template information of the corresponding display unit model can be matched in the display template database according to the model of the display unit.
[0073] S202, based on the box information and display template information, display the display template on the canvas and automatically arrange the display templates to obtain the first arrangement image.
[0074] Specifically, the layout control scheme in this embodiment is not executed directly on the display screen of the display unit. Instead, the display templates are first displayed on the canvas provided by the Ubuntu software control system, and the initial layout of the display templates is performed to obtain a first layout image including the display coordinates of all display templates.
[0075] Specifically, each display template shown on the canvas is distinguished by a numerical number. In practice, the display templates can be numbered in a random order or sequentially according to their shape type; this embodiment does not limit this approach.
[0076] In a specific embodiment, the process of automatically arranging display templates in this embodiment includes tiling all display templates on the canvas and displaying display templates of the same shape type in the same area.
[0077] In practical applications, when displaying templates on a canvas, it is necessary to add display parameters such as display content, display color, display brightness, and the coordinates of the center pixel of the display template on the canvas for each template to improve the control information of the display template. The coordinates can be calculated by setting the top-left corner of the canvas to the original coordinates (0,0). It should be noted that the original coordinates can be set according to the needs of the actual application scenario; this embodiment does not impose any limitations on this.
[0078] Specifically, in the subsequent process of arranging and editing the display template, the display template will no longer be created repeatedly, but the data of the display template will be updated directly.
[0079] In a specific embodiment, the position of each display template in the first arrangement image may be different from the position of each display unit of the display device on the display interface.
[0080] S203, control the display interface to display images according to the image information of the first row of images, and capture the screen image on the display interface.
[0081] Specifically, after generating the first row of images, the sending card generates image display data packets based on the image information of the first row of images controlled by the Ubuntu software system. In practice, the sending card packages the image information of the first row of images according to Ethernet format and sends the image display data packets to each receiving card, so that the receiving cards control the display units to display images according to the display template information of each display template in the first row of images.
[0082] Specifically, the image information of the first row of images includes the display template information corresponding to each display template, namely, the display content, display color, display brightness, screen coordinates, and display template number.
[0083] In practical applications, the coordinates of the display template in the first row of images do not correspond to the actual positions of the display units in the display interface. In this case, according to the correspondence between the display template number and the display unit number, the corresponding content is displayed in the corresponding display unit based on the display template information.
[0084] For different displays, the assembly of display units may be irregular. The screen matching method provided in this embodiment can effectively deal with the display problem of irregular display units by matching the display template number with the display unit number.
[0085] Specifically, in this embodiment, after the control display interface displays the image according to the image information of the first row of images, the Ubuntu software control system re-acquires the image information of the screen image on the display interface. In actual application, the coordinate point position and rotation angle information of the screen image on the display interface may change relative to the image information of the first row of images.
[0086] In the specific implementation process, a USB 3.0 identification interface and a gigabit Ethernet port were added to the Ubuntu software control system. This allows the Ubuntu software control system to receive and identify the memory via USB 3.0, copy the required image information from the display interface to the LED layout image folder established by the system, and also to connect a camera via the gigabit Ethernet port to collect image information from the display interface in real time and save the image information to the folder for retrieval and use.
[0087] S204, compare the screen image with the first layout image to obtain the update information for each display template.
[0088] In a specific embodiment, after acquiring the screen image, an image comparison can be performed between the image information of each display unit in the screen image and the image information of each display module in the first arrangement image, and the display template information that needs to be adjusted for each display template can be filtered out as the update information of the display template.
[0089] The content of the image information of the display unit corresponds to the content of the display template information. By updating the display template information based on the image information collected from the display image on the display interface, the display template can be matched with the distribution of each display unit on the display interface.
[0090] The Ubuntu software control system updates the distribution positions of each display template on the canvas based on the update information, thus obtaining the distribution scheme of the arrangement positions of each display unit on the corresponding display interface.
[0091] S205, rearrange the display templates on the canvas according to the updated information to obtain the second row of images.
[0092] Specifically, each display template in the second row of images corresponds to the position of each display unit on the display interface. Users can directly modify the display template information of the display template by operating the display template on the second row of images, thereby modifying the display content of the corresponding display unit on the display interface.
[0093] In summary, this embodiment provides a screen matching method. When performing screen matching processing for display devices, it is not necessary to obtain the size parameters of the display device or the cabinet size of the display units within the display device. Synchronization between the display template and display units can be achieved directly based on data transmission between the sending and receiving cards, and the display units can be arranged in a higher-level configuration based on the display template. This makes screen matching processing for display devices more convenient, faster, and more intuitive. Furthermore, the screen matching method in this embodiment is not limited by the screen type or cabinet size of the display device and can be widely applied to various types of display devices to achieve an efficient screen matching solution.
[0094] In one embodiment, such as Figure 3 As shown, S201 includes:
[0095] S301 collects link data of all receiving cards connected to each transmitting port of the transmitting card.
[0096] S302, matches the corresponding box information in the template database based on the link data and displays the template information.
[0097] In a specific embodiment, the process of collecting link data from the receiving card includes:
[0098] When the Ubuntu software control system starts, it first confirms that the connection architecture between the sending and receiving cards is fully established. Once this is confirmed, it controls each sending port of the sending card to transmit cyclic synchronization frames. These cyclic synchronization frames are Ethernet broadcast data packets with the source address being the MAC address of the sending port. Each sending port has a unique MAC address.
[0099] During the transmission of cyclic synchronization frames, for each receiving card link connected to a transmitting port, the last receiving card in the receiving card link initiates a return data packet in Ethernet format, filling in its receiving card information. This process is then executed sequentially from the last receiving card to the first receiving card in the receiving card link. For example, such as... Figure 1 As shown, for receiving card link 1, receiving card 1n initiates a return data packet to fill in its receiving card information. Then, receiving card 1(n-1) continues to fill in its receiving card information in the return data packet until receiving card 11 fills in its receiving card information in the return data packet. It should be noted that when the first receiving card fills in its receiving card information in the return data packet, it will also fill in the source MAC bit of the sending card port in the return data packet.
[0100] Specifically, the receiving card information includes the receiving card's MAC address, the model of the controlled display unit, the program version number, temperature, and other information.
[0101] After the receiving card receives the return data packets from each transmitting port corresponding to the receiving card link, it stores the return data packets of each receiving card link. Based on the analysis of the return data packets of the receiving card links, it obtains the display unit model that needs to be arranged and controlled. It then matches the display template information and cabinet information of the corresponding display unit model in the display template database to determine the display template that needs to be arranged and controlled and the cabinet shape of the display template.
[0102] In this embodiment, by setting up a template database, the Ubuntu software control system can automatically synchronize the display templates corresponding to each display unit on the display device, and perform arrangement operations on the canvas of the Ubuntu software control system based on the display templates, without the need for manual determination and synchronization of the display templates, the cabinet shape of the display units, and the control parameters.
[0103] In one embodiment, S202 includes:
[0104] Display templates of different box types on the canvas. Display templates of the same box type are stacked and the stacking number is displayed on the corresponding display template. Display templates of different box types are displayed in different colors.
[0105] In a specific embodiment, such as Figure 4 As shown, four types of display templates are obtained by matching the receiver link data collected from all transmitting ports of the transmitting card. Display templates of different cabinet types are displayed on the canvas, and display templates of the same cabinet type are stacked. The number of times the display templates are stacked is displayed on each template. In practical applications, display templates of different cabinet types can be distinguished by color.
[0106] It should be noted that in this embodiment, there are 10 display templates of the first cabinet type, 11 display templates of the second cabinet type, 6 display templates of the third cabinet type, and 1 display template of the fourth cabinet type. The number of times the display templates are stacked can also be used to represent the number of display templates of the same cabinet type.
[0107] In practical applications, the canvas surrounding the Ubuntu software control system also includes some customizable function areas. This embodiment does not limit the specific settings of these function areas; they can be customized according to the needs of the actual application scenario. For example, when any display template in the canvas is selected, the editable parameters and editing boxes of the display template can be displayed in the right-hand function area. Users can modify and adjust the display template information by entering the corresponding editing parameters in the editing boxes.
[0108] In one embodiment, such as Figure 5 As shown, S202 includes:
[0109] S501, displays all display templates flat on the canvas, with no overlap between the display templates;
[0110] S502, number each display template and obtain the coordinate information of each template;
[0111] S503, generate the first layout image based on the template number and coordinate information corresponding to each display template on the canvas.
[0112] Specifically, after the Ubuntu software control system displays all display templates and their stacking counts on the canvas, it can tile the corresponding number of display templates onto the canvas. It's important to note that when display templates are tiled, there is no overlap between them. Furthermore, display templates are tiled according to their type, grouping those with the same type together in specific areas of the canvas.
[0113] After displaying all templates in a tiled layout, each template is numbered. For example... Figure 6 As shown, starting from display template 000, each display template is numbered until the last display template 027 is reached.
[0114] Specifically, the coordinate information of the corresponding display template is obtained, and the first layout image is generated based on the display templates displayed on the canvas and the display data associated with each display template.
[0115] It should be noted that the background color of the first row of images, excluding the display template, can be set to black so that the Ubuntu software control system or other devices can accurately read the display template information of the display template in the first row of images. Of course, the background color of the first row of images, excluding the display template, can also be set according to the actual application needs, and is not limited here.
[0116] In one embodiment, as shown in 7, S203 includes:
[0117] S701 preprocesses the screen image to obtain a binarized image;
[0118] S702 performs morphological processing on the binarized image to obtain a target image that conforms to the boundary information of the display interface;
[0119] S703, acquire display unit information of each display unit in the target image, wherein the display unit information includes coordinate information, rotation angle and number information.
[0120] S704, compare the display unit information with the corresponding display template information in the first layout image to obtain the update information of each display template.
[0121] Specifically, the preprocessing in this embodiment includes grayscale conversion, bilateral filtering, denoising, and binarization. In this embodiment, after the Ubuntu software control system acquires the image on the display interface, the acquired image may be a color image, requiring preprocessing to convert it into a binarized image.
[0122] In practical applications, binarized images can be used as follows: Figure 8 As shown, only the boundaries of the LED display units and the LED display unit patterns are included. Figure 8 This shows the image displayed on the interface. (Reference) Figure 6 and Figure 8 The content shown does not correspond to the display units of the first row of images on the Ubuntu software control system canvas. However, the content and display parameters displayed on the display units will correspond to the display parameters of the corresponding numbered display templates.
[0123] In a specific embodiment, the screen image acquired in this embodiment may be tilted due to camera angle, position deviation, and other reasons. Therefore, this embodiment also needs to perform morphological cropping processing on the binarized image.
[0124] like Figure 8As shown, the preprocessed binarized image contains some blank areas, requiring further morphological cropping to obtain a target image that conforms to the display interface boundary information. Specifically, the target image is as follows: Figure 9 As shown. In a specific embodiment, the outer contour of each display unit of the target image will be aligned with the edge contour of the display interface, thereby obtaining display template coordinate information that better matches the actual distribution of the display device.
[0125] In practical implementation, this embodiment determines the smallest rectangular region encompassing the combination of LED display units in the binarized image by finding the smallest rectangle representing the outermost contour of all display units. The four vertices of this smallest rectangular region are then used as the four fixed points for perspective transformation processing in the shape clipping step. The result after perspective transformation is as follows: Figure 9 The target image shown.
[0126] Specifically, after obtaining the target image through binarization and morphological processing, the image information of each display template in the target image is acquired, and the display template information of the display template in the Ubuntu software control system canvas is updated according to the image information of each display template.
[0127] In a specific embodiment, the image information of the target image mainly includes coordinate information, rotation angle, and display template number. The Ubuntu software control system can select the corresponding display template in the canvas according to the display template number, and adjust the position and orientation of the display template in the canvas according to the coordinate information and rotation angle.
[0128] In one embodiment, such as Figure 11 As shown, S703 includes:
[0129] S1101, Extract the smallest rectangle of the characters in each display unit of the target image.
[0130] S1102, obtain the rotation angle of the display unit based on the centering rotation angle of the smallest rectangle.
[0131] S1103, Match each character according to the display template information to obtain the corresponding display unit number information.
[0132] S1104, calculates the coordinate information of the display unit based on the minimum rectangle.
[0133] Specifically, when extracting display unit information of each display unit in the target image, the update information of the display template corresponding to that display unit can be obtained by collecting the character information within each display unit in the target image.
[0134] like Figure 12As shown, when obtaining the rotation angle, the smallest rectangle for each character is first determined, and this smallest rectangle is then aligned to the specified recognition angle of the character. The alignment rotation angle of the smallest rectangle is recorded, and this alignment rotation angle is used as the rotation angle of the display unit. It should be noted that the specified recognition angle can usually be adaptively configured according to the actual application scenario, and this embodiment does not limit it.
[0135] When acquiring the numbering information, after the characters are aligned to the specified recognition angle, the numbering information in the display template information is matched with each character to find the numbering information of the display unit corresponding to the numbering information in the display template information. This numbering information is then determined as the numbering information of the display unit. In a specific embodiment, the numbering information of the display template and the numbering information of the display unit correspond one-to-one.
[0136] When acquiring coordinate information, the pixel coordinate position of the LED display unit within the display interface is calculated based on the pixel coordinate position of each smallest rectangle in the target image. This pixel coordinate position is then used as the coordinate information of the display unit.
[0137] It should be noted that the specific implementation steps for extracting the display unit information of each display unit and comparing the display unit information and the display template information in this embodiment can be directly identified in the Ubuntu system and are not reflected on the canvas. After obtaining the update information, the coordinate position information of each display template on the canvas can be directly adjusted according to the update information.
[0138] like Figure 10 As shown, after updating the display template information of each display template according to the image information of the target image, the second row of images displayed in the canvas corresponds completely to the images on the display interface.
[0139] In one embodiment, after arranging the display template on the canvas according to the target data packet to obtain the second arrangement image, the screen matching method further includes:
[0140] Adjust the display parameters of the template on the canvas according to real-time adjustment commands; control the image on the display interface to be modified synchronously according to the adjustment actions.
[0141] Specifically, after obtaining the second row of images, the display parameters of any display template can be adjusted directly on the canvas, and the display unit at the corresponding position of the display interface will synchronously modify the display parameters according to the adjustment action.
[0142] For example, such as Figure 9 and Figure 10 As shown, if the color of the display template 027 in the canvas is changed from a light tone to a dark tone, the color of the corresponding display unit 027 in the display interface will also change from a light tone to a dark tone.
[0143] In summary, this embodiment proposes a screen configuration method that can construct a display template distribution scheme identical to the display interface of the display device on a host computer, and change the display parameters of the display units in the display device by directly adjusting the display templates on the host computer, effectively improving the efficiency of screen display control. Furthermore, the screen configuration method proposed in this embodiment does not require prior input of the cabinet dimensions of the display units or the screen size of the display interface. The number of display units can be determined through data synchronization with the receiving card, and the display template distribution scheme can be accurately determined through screen image acquisition, resulting in a more refined display template arrangement and enabling more intuitive and precise display control.
[0144] In a more detailed embodiment, the specific execution process of the screen configuration method in this embodiment is as follows:
[0145] 1. Read the link data packets of the receiving cards at each transmitting port obtained by the transmitting card, and extract the receiving card information from the link data packets. The receiving card information includes the display unit model. Based on the display unit model, match multiple display templates in the display template database, along with the display template information and enclosure information of each template. Display the display templates on the canvas of the Ubuntu software control system according to the display template type and the number of times the display templates are stacked.
[0146] 2. Tile all display templates on the canvas and calculate the coordinate information of each display template. Update the coordinate information in the display template information of each display template and generate the corresponding first row image. Transmit the display template information of each display template corresponding to the first row image to the sending card, so that the sending card transmits display control parameters to each receiving card. Each receiving card controls each display unit to display the image according to the image information of the corresponding first row image.
[0147] 3. The Ubuntu software control system re-acquires the display image on the display interface and extracts image information from it. New coordinates and rotation angles are generated, and these are updated in the display template information of the corresponding numbered display templates, resulting in updated display template information for each template. Based on this updated information, the display templates are rearranged to synchronize the distribution of display templates on the canvas with the distribution of display units on the display interface, generating a second arrangement image. By controlling the display parameters of the display templates in this second arrangement image, the display parameters of each display unit on the display interface are controlled.
[0148] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0149] Based on the same inventive concept, this application also provides a screen matching device for implementing the screen matching method described above. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations in one or more screen matching device embodiments provided below can be found in the limitations of the screen matching method above, and will not be repeated here.
[0150] In one embodiment, such as Figure 13 As shown, a screen fitting device 1300 is provided, which is applied to, for example... Figure 1 The transmitting card and screen matching device 1300 shown includes: a determining module 1310, a first arrangement module 1320, a display module 1330, an updating module 1340, and a second arrangement module 1350, wherein:
[0151] The determination module 1310 is used to determine the cabinet information of the display unit and the display template information to be laid out on the canvas based on the link data of the receiving card.
[0152] The first layout module 1320 is used to display the display template on the canvas according to the box information and the display template information, and automatically arrange the display template to obtain the first layout image.
[0153] The display module 1330 is used to control the display interface to display images according to the image information of the first row of images, and to capture screen images on the display interface.
[0154] The update module 1340 is used to compare the screen image with the first layout image to obtain the update information of each display template.
[0155] The second layout module 1350 is used to rearrange the display templates on the canvas according to the updated information to obtain the second layout image.
[0156] In one embodiment, the determining module 1310 is specifically used to control the transmitting card to collect link data of all receiving cards connected to each transmitting port; match the corresponding cabinet information in the template database according to the link data and display the template information.
[0157] In one embodiment, the display module 1330 is specifically used to display display templates of different box types on a canvas, wherein display templates of the same box type are stacked and the stacking number is displayed on the corresponding display template, and display templates of different box types are displayed in different colors.
[0158] In one embodiment, the display module 1330 is specifically used to display all display templates flat on the canvas, wherein the display templates do not overlap; to number each display template and obtain the coordinate information of each template; and to generate a first layout image based on the template number and coordinate information corresponding to each display template in the canvas.
[0159] In one embodiment, the display module 1330 is specifically used to preprocess the screen image to obtain a binarized image; perform morphological processing on the binarized image to obtain a target image that conforms to the boundary information of the display interface; obtain the display unit information of each display unit in the target image, wherein the display unit information includes coordinate information, rotation angle and number information; and compare the display unit information with the corresponding display template information in the first arrangement image to obtain the update information of each corresponding display template.
[0160] In one embodiment, the display module 1330 is further configured to extract the smallest rectangle of the characters in each display unit of the target image; obtain the rotation angle of the display unit based on the rotation angle of the smallest rectangle; match each character according to the display template information to obtain the number information of the corresponding display unit; and calculate the coordinate information of the display unit based on the smallest rectangle.
[0161] Each module in the aforementioned screen-mounted device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0162] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 14As shown, the computer device includes a processor, memory, input / output interface, communication interface, display component, and input device. The display component is the display device in this embodiment. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display component, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a screen display method. The display component is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an e-ink display screen.
[0163] Those skilled in the art will understand that Figure 14 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0164] In one embodiment, a screen matching control system is provided, including a sending card, a switch, and a receiving card. The sending card is connected to the receiving card through the switch. The receiving card is used to control the display unit to perform screen display. The sending card is used to implement the steps of the screen matching method in the aforementioned method embodiment.
[0165] It should be noted that the specific implementation of the screen matching control system in this embodiment can be referred to the specific implementation of the aforementioned method embodiment, and will not be repeated here.
[0166] In one embodiment, a display device is provided, including the aforementioned screen control system.
[0167] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0168] The cabinet information of the display unit and the display template information to be laid out on the canvas are determined based on the link data of the receiving card.
[0169] Based on the box information and display template information, display templates are shown on the canvas and automatically arranged to obtain the first layout image;
[0170] The control display interface displays images based on the image information of the first row of images, and captures screen images on the display interface;
[0171] The update information for each display template is obtained by comparing the screen image with the first row of images.
[0172] The templates are rearranged on the canvas based on the updated information to obtain the second row of images.
[0173] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0174] The cabinet information of the display unit and the display template information to be laid out on the canvas are determined based on the link data of the receiving card.
[0175] Based on the box information and display template information, display templates are shown on the canvas and automatically arranged to obtain the first layout image;
[0176] The control display interface displays images based on the image information of the first row of images, and captures screen images on the display interface;
[0177] The update information for each display template is obtained by comparing the screen image with the first row of images.
[0178] The templates are rearranged on the canvas based on the updated information to obtain the second row of images.
[0179] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0180] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0181] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0182] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A screen matching method, characterized in that, The method, applied to a transmitting card connected to a receiving card via a switch, and wherein the receiving card controls a display unit for screen display, includes: The cabinet information of the display unit and the display template information to be laid out on the canvas are determined based on the link data of the receiving card. Based on the box information and the display template information, the display template is displayed on the canvas, and the display template is automatically arranged to obtain a first arrangement image; The control display interface displays images based on the image information of the first arranged images, and captures screen images on the display interface; The update information for each display template is obtained by comparing the screen image with the first layout image. The display template is rearranged on the canvas according to the updated information to obtain a second arrangement image; The step of comparing the screen image with the first layout image to obtain update information for each display template includes: The screen image is preprocessed to obtain a binarized image; The binarized image is subjected to morphological processing to obtain a target image that conforms to the boundary information of the display interface; Obtain display unit information for each display unit in the target image, wherein the display unit information includes coordinate information, rotation angle, and number information; The display unit information is compared with the corresponding display template information in the first arrangement image to obtain the update information for each display template.
2. The method according to claim 1, characterized in that, The step of determining the cabinet information of the display unit and the display template information to be laid out on the canvas based on the link data of the receiving card includes: The transmitting card is controlled to collect link data from all receiving cards connected to each transmitting port; Based on the link data, the corresponding box information is matched in the template database and the template information is displayed.
3. The method according to claim 2, characterized in that, The step of displaying the display template on the canvas based on the box information and the display template information includes: Display templates of different box types are displayed on the canvas. Display templates of the same box type are stacked and the stacking number is displayed on the corresponding display template. Display templates of different box types are displayed in different colors.
4. The method according to claim 3, characterized in that, The automatic arrangement of the display template to obtain a first arrangement image includes: All display templates are tiled on the canvas, with no overlap between them; Each display template is numbered, and the coordinate information of each template is obtained; The first layout image is generated based on the template number corresponding to each display template in the canvas and the coordinate information.
5. The method according to claim 1, characterized in that, The step of obtaining the display unit information of each display unit in the target image includes: Extract the smallest rectangle containing the characters in each display unit of the target image; The rotation angle of the display unit is obtained based on the centering rotation angle of the minimum rectangle; By matching each character according to the display template information, the corresponding number information of the display unit is obtained; The coordinate information of the display unit is calculated based on the minimum rectangle.
6. A screen matching device, characterized in that, An apparatus for use with a transmitting card, wherein the transmitting card is connected to a receiving card via a switch, and the receiving card is used to control a display unit for screen display, the apparatus comprising: The determining module is used to determine the cabinet information of the display unit and the display template information to be laid out on the canvas based on the link data of the receiving card; The first layout module is used to display the display template on the canvas according to the box information and the display template information, and automatically arrange the display template to obtain the first layout image; The display module is used to control the display interface to display images according to the image information of the first arranged images, and to capture screen images on the display interface; The update module is used to compare the screen image with the first layout image to obtain update information for each display template. The second layout module is used to rearrange the display template on the canvas according to the updated information to obtain a second layout image; The update module is also used to preprocess the screen image to obtain a binarized image; The binarized image is subjected to morphological processing to obtain a target image that conforms to the boundary information of the display interface; Obtain display unit information for each display unit in the target image, wherein the display unit information includes coordinate information, rotation angle, and number information; The display unit information is compared with the corresponding display template information in the first arrangement image to obtain the update information for each display template.
7. A screen matching control system, characterized in that, The device includes a sending card, a switch, and a receiving card. The sending card is connected to the receiving card via the switch. The receiving card is used to control the display unit to perform screen display. The sending card is used to implement the steps of the screen matching method according to any one of claims 1 to 5.
8. A display device, characterized in that, Includes the screen matching control system as described in claim 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the screen matching method according to any one of claims 1 to 5.
Citation Information
Patent Citations
LED display screen configuration method and device
CN112463087A
Display screen configuration scheme generation method and device, terminal equipment and storage medium
CN115098053A