Display screen image splicing method and device, equipment and medium
By obtaining the position information of each module and box of the display screen and dividing the pictures to be displayed, the problems of low stitching efficiency and high labor consumption in the prior art are solved, and efficient multi-box display screen image stitching is achieved.
Patent Information
- Application Number
- CN202510107420.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-04-08
AI Technical Summary
The existing display screen image stitching method is inefficient and labor-intensive, making it difficult to achieve seamless stitching and coordinated display of multi-box display screens.
By responding to the user's module splicing instructions and box splicing instructions, the position information of each target module and box is obtained, the image to be displayed is divided into target blocks matching each target module, and these blocks are displayed through the target module to be spliced.
This improves the efficiency of image stitching, reduces the labor consumption of image stitching on display screens, and realizes image stitching of multi-box display screens when displaying images.
Smart Images

Figure CN119785740A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image display, and in particular to a method, device, equipment and medium for splicing images on a display screen. Background Art
[0002] In today's era of rapid development of information technology, LED display screens, as an important information display tool, are highly favored for their excellent display effects and wide applicability. Usually, LED display screens are assembled with cabinets or modules as the basic components. However, in general, the parameters preset at the factory for LED display screens often have limitations. They can only realize the independent lighting of a single module or cabinet, and cannot directly achieve seamless splicing and coordinated display of the entire display screen. This leads to the problem of how to integrate the scattered modules and cabinets into a complete, unified and coordinated display screen after the assembly of the LED display screen is completed on site.
[0003] To solve this problem, the existing common processing method is to rely on professional technicians to follow the detailed drawings prepared in advance, or to check the specific wiring positions of each module or display screen one by one after the display screen is assembled, and then set these position information to the control system one by one. Obviously, this existing splicing solution has many significant defects and shortcomings. First, the solution places high demands on the professional knowledge and skill level of technicians. Second, when facing large or super-large LED display screen projects, due to the large number of modules or cabinets involved, technicians need to spend a lot of time and energy in the process of confirming the wiring position. Third, in the process of workers actually assembling the display screen, they must strictly follow the pre-designed drawings for wiring operations. This means that once any slight deviation or error occurs during the assembly process, it may cause the splicing of the entire display screen to fail or display abnormalities.
[0004] In summary, the existing display screen image splicing method has the problems of low efficiency of image splicing work and high manpower consumption of display screen image splicing work. Summary of the invention
[0005] The present invention provides a display screen image splicing method, device, equipment and medium, which can solve the problems of low efficiency of image splicing work and high manpower consumption in the display screen image splicing work in the existing display screen image splicing method.
[0006] In a first aspect, an embodiment of the present invention provides a method for splicing images on a display screen, the method comprising:
[0007] In response to the module splicing instruction of the user, the module position of each target module in the target display screen is acquired to obtain the position of each module; wherein the target display screen is composed of at least one target box, and the target box is composed of at least one target module;
[0008] In response to the user's cabinet splicing instruction, the position of each target cabinet is acquired to obtain the position of each cabinet;
[0009] Obtain a picture to be displayed, divide the picture to be displayed into target picture blocks respectively matching each target module according to the position of each module and each box, and display the target picture blocks matching the target module through the target module, so as to splice each target picture block to obtain a target image matching the display screen image.
[0010] In a second aspect, an embodiment of the present invention provides a device for splicing images on a display screen, the device comprising:
[0011] A module position acquisition module is used to acquire the module position of each target module in the target display screen in response to the module splicing instruction of the user, so as to obtain the position of each module; wherein the target display screen is composed of at least one target box, and the target box is composed of at least one target module;
[0012] The cabinet position acquisition module is used to acquire the position of each target cabinet in response to the cabinet splicing instruction of the user to obtain the position of each cabinet;
[0013] The block splicing module is used to obtain the image to be displayed, divide the image to be displayed into a preset number of target blocks, and splice the target blocks according to the positions of each module and each cabinet to obtain a target image that matches the display screen image.
[0014] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for splicing display screen images described in any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for splicing display screen images described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention first responds to the module splicing instruction of the user to obtain the module position of each target module in the target display screen to obtain the position of each module, then responds to the cabinet splicing instruction of the user to obtain the position of each target cabinet to obtain the position of each cabinet, and finally obtains the picture to be displayed, divides the picture to be displayed into target blocks that match each target module respectively according to the module position and the cabinet position, and displays the target blocks that match the target module through the target module, so as to splice each target block to obtain a target image that matches the display screen image, thereby solving the problems of low efficiency of image splicing work and high manpower consumption of display screen image splicing work caused by the existing display screen image splicing method, realizing image splicing of multi-cabinet display screens when displaying images, improving the efficiency of image splicing work, and reducing the manpower consumption of display screen image splicing work.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a method for splicing display screen images provided according to Embodiment 1 of the present invention;
[0023] Figure 2 is a flow chart of a method for splicing display screen images provided according to Embodiment 2 of the present invention;
[0024] Figure 3 is a structural schematic diagram of a display screen image splicing device provided according to Embodiment 3 of the present invention;
[0025] Figure 4 The present invention is a schematic structural diagram of an electronic device for implementing a method for splicing display screen images according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, any variation of the terms "including" and "having" is intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 A flow chart of a display screen image splicing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of performing image splicing on multi-box display screens. The method can be executed by a display screen image splicing device. The display screen image splicing device can be implemented in the form of hardware and / or software. The display screen image splicing device can be configured in a terminal or server with a display screen image splicing function.
[0030] like Figure 1 As shown, the method includes:
[0031] S110 , in response to a module splicing instruction from a user, acquiring the module position of each target module in the target display screen to obtain the position of each module.
[0032] Among them, the target display screen is composed of at least one target box, and the target box is composed of at least one target module; further, the module is the smallest display unit of the display screen, such as a common LED module, which is composed of multiple light-emitting diodes and related circuits, and the box is a larger display module composed of multiple modules, such as a rectangular box containing several row and column modules.
[0033] Specifically, the target modules constituting the same target box establish a communication connection with the same receiving card through a flat cable, and the receiving card establishes a communication connection with a sending card through a target network port; it should be noted that in the actual connection method, the target modules constituting the same target box establish a communication connection with the same receiving card through a flat cable, and the flat cable refers to a soft flat cable for realizing signal transmission, and a receiving card is a hardware device for receiving and processing display signals, such as a common LED display receiving card, and the receiving card establishes a communication connection with a sending card through the target network port, and the sending card is responsible for sending the image data to the receiving card, and the network port is a network interface for realizing data transmission.
[0034] Among them, in response to the user's module splicing instruction, the module position of each target module in the target display screen is obtained to obtain each module position, including: in response to the user's module splicing instruction, the first position information of each target module is obtained respectively, wherein the first position information is the serial port number of the target module connected to the receiving card through the cable; after obtaining the first position information of the target module, the cascade serial number of each target module is obtained respectively as the second position information of the target module; based on the first position information and the second position information, a module position matching the target module is generated.
[0035] Exemplarily, in response to the user's module splicing instruction, the module position of each target module in the target display screen is obtained to obtain the position of each module, which includes the following steps: First, in response to the user's module splicing instruction, the first position information of each target module is obtained respectively. The first position information here refers to the serial port number of the target module connected to the receiving card through the cable, such as serial port number 1, serial port number 2, etc. After successfully obtaining the first position information of the target module, the cascade sequence number of each target module is then obtained respectively, and used as the second position information of the target module. For example, the cascade sequence number of a module is 3, indicating its sequential position in the cascade. Finally, based on the first position information and the second position information obtained above, a module position matching the target module is generated.
[0036] Optionally, the method for obtaining the cascade number is as follows: during the process of each target module leaving the factory, the developer pre-sets a unique identification code for each module; when the module is connected to the receiving card, the control system automatically assigns cascade numbers to the modules according to the order of connection, for example, the first connected module is assigned number 1, the second connected module is assigned number 2, and so on; or each module is assigned an initial code during production, and when the module establishes a communication connection with the receiving card, the receiving card sends an inquiry signal to the module, and the module replies with its initial code. The receiving card assigns cascade numbers to the modules according to the order of the received initial codes.
[0037] Relevant personnel in this field should understand that since the method of obtaining the receiving card serial port number and the cascade number of the target module is a mature existing technology, the method of obtaining the cascade number provided in this embodiment is an example of some common methods of obtaining cascade number. In actual applications, different methods may be adopted according to specific hardware and software designs, and this embodiment does not limit this.
[0038] S120 . In response to the user's cabinet splicing instruction, the position of each target cabinet is acquired to obtain the position of each cabinet.
[0039] Among them, in response to the user's cabinet splicing instruction, the position of each target cabinet is acquired to obtain the position of each cabinet, including: in response to the user's cabinet splicing instruction, third position information matching the target cabinet is respectively acquired, and the third position information is the receiving card serial number of the target receiving card that is communicatively connected to the target cabinet; after acquiring the third position information, the sending card serial number of the sending card that is communicatively connected to the target receiving card is acquired as the fourth position information; the network port serial number of the target network port is acquired as the fifth position information, and a cabinet position matching the target cabinet is generated based on the third position information, the fourth position information and the fifth position information.
[0040] Specifically, in response to the user's cabinet splicing instruction, the position of each target cabinet is obtained to obtain the position of each cabinet, which includes the following steps: First, in response to the user's cabinet splicing instruction, the third position information matching the target cabinet is obtained respectively. The third position information here refers to the receiving card serial number of the target receiving card that has a communication connection with the target cabinet, for example, the receiving card serial number may be 1, 2, 3, etc. After successfully obtaining the third position information, the sending card serial number of the sending card that has a communication connection with the target receiving card is then obtained, and it is used as the fourth position information, for example, the sending card serial number may be A, B, C, etc. Then, the network port serial number of the target network port is obtained as the fifth position information, and the network port serial number may be 01, 02, 03, etc. Finally, based on the obtained third position information, fourth position information and fifth position information, a cabinet position matching the target cabinet is generated.
[0041] It should be noted that in actual applications, the implementation rules of the receiving card serial number, the sending card serial number and the network port serial number can be numbers, letters or a combination of numbers and letters, which can be set by the developer according to the actual implementation scenario. This embodiment does not limit this.
[0042] S130, obtaining a picture to be displayed, dividing the picture to be displayed into target picture blocks respectively matching the target modules according to the positions of the modules and the boxes, and displaying the target picture blocks matching the target modules through the target modules, so as to splice the target picture blocks to obtain a target image matching the display screen image.
[0043] The technical solution of the embodiment of the present invention first responds to the module splicing instruction of the user to obtain the module position of each target module in the target display screen to obtain the position of each module, then responds to the cabinet splicing instruction of the user to obtain the position of each target cabinet to obtain the position of each cabinet, and finally obtains the picture to be displayed, divides the picture to be displayed into target blocks that match each target module respectively according to the position of each module and the position of each cabinet, and displays the target blocks that match the target module through the target module, so as to splice each target block to obtain a target image that matches the display screen image, thereby realizing image splicing of a multi-cabinet display screen when displaying images, improving the efficiency of image splicing work, and reducing the manpower consumption of display screen image splicing work.
[0044] Embodiment 2
[0045] Figure 2 A flow chart of a display screen image splicing method provided in the second embodiment of the present invention. This embodiment is refined based on the above embodiment. In this embodiment, a method of dividing the image to be displayed into target blocks that match each target module according to the position of each module and the position of each box is specifically refined.
[0046] like Figure 2 As shown, the method includes:
[0047] S210 , in response to a module splicing instruction from a user, acquiring the module position of each target module in the target display screen to obtain the position of each module.
[0048] S220 . In response to the user's cabinet splicing instruction, the position of each target cabinet is acquired to obtain the position of each cabinet.
[0049] S230, calculating the display area of each target box, and dividing the to-be-displayed picture based on the display area and the box position of each target box to obtain target pictures respectively matching each target box.
[0050] Specifically, the display area of each target box is calculated, and based on the area of each display area and the box position of each target box, the image to be displayed is segmented to obtain each target screen that matches each target box, including: displaying the box position that matches the target box through each target box; using an image acquisition device to acquire the current image of the target display screen, and processing the current image through a preset image processing system to obtain a box segmentation result that matches the target screen, wherein the box segmentation result includes a display area and a zone number corresponding to each target box, and the zone number is the same as the box position of the target box; calculating the zone area of each display area to obtain the display area of each target box; based on the size ratio of each display area area of each target box, the image to be displayed is rectangularly segmented to obtain screens to be displayed that match each target box; and each screen to be displayed and the zone number that matches the screen to be displayed are aggregated to obtain each target screen.
[0051] Among them, the image acquisition device can be a digital camera, a scanner or an industrial camera, etc., which is used to obtain image information of the display screen. The image processing system is a software system that includes a series of image processing algorithms and tools, such as Photoshop or a program specially developed for display screen image processing.
[0052] Exemplarily, the display area of each target box is calculated, and based on the display area and the box position of each target box, the image to be displayed is segmented to obtain each target screen that matches each target box. The specific steps are as follows: First, each target box displays the box position that matches itself, for example, by indicating the position information of the box through the indicator light or display screen on the box. Then, the current picture of the target display screen is collected using an image acquisition device, such as using a mobile phone camera to shoot the entire display screen. Then, the current picture is processed by a preset image processing system to obtain a box segmentation result that matches the target screen, where the box segmentation result includes the display area and area number corresponding to each target box, and the area number is the same as the box position of the target box. For example, the image processing system divides the display screen into different areas by identifying the boundaries and features between the boxes, and assigns a unique number to each area. After that, the area area of each display area is calculated respectively, so as to obtain the display area area of each target box. For example, the length and width of each area are accurately measured through an image analysis algorithm, and then the area is calculated. Then, based on the size ratio of each display area of each target box, the image to be displayed is divided into rectangles to obtain the images to be displayed that match each target box. For example, if a box is located in the upper left corner of the display screen, and the display area accounts for 20% of the total display area, then 20% of the upper left corner of the image to be displayed is correspondingly divided as its image to be displayed. Finally, the images to be displayed and the area numbers matching the images to be displayed are aggregated to obtain the target images, so that each target box can accurately obtain the corresponding image content that is adapted to its display area.
[0053] S240, respectively calculating the display area of each target module in each target box, and dividing each target screen based on the display area and the module position of each target module to obtain target picture blocks respectively matching each target module.
[0054] The method comprises: obtaining target images matching each target box by using the area number of the target image and the box position of each target box, and displaying the module position matching the target module by using the target module; acquiring the current box image of the target box by using an image acquisition device, and processing the current box image by using a preset image processing system to obtain a module segmentation result matching the target box, wherein the module segmentation result includes a display area and a module number corresponding to each target module, and the module number is the same as the module position of the target module; calculating the area area of each display area to obtain the module area area of each target module; performing rectangular segmentation on the target image based on the size ratio of each module area area of each target module to obtain the to-be-displayed picture blocks matching each target module; and binding each to-be-displayed picture with the module number matching the to-be-displayed picture to obtain the target picture blocks matching each target module.
[0055] Exemplarily, the display area of each target module in each target box is calculated respectively, and based on the display area and the module position of each target module, each target screen is segmented to obtain each target picture block that matches each target module. The specific process includes: first, the target screen that matches each target box is accurately obtained by the area number of the target screen and the box position of each target box, and the module position that matches itself is displayed by the target module, for example, the position information is clearly identified by a specific indicator light or a small display screen on the module. Then, the current box image of the target box is collected using an image acquisition device, for example, an industrial camera with ultra-high pixels is used to clearly shoot the target box. Then, the current box image is processed by a preset image processing system to obtain a module segmentation result that matches the target box. This module segmentation result covers the display area and module number corresponding to each target module, and the module number is the same as the module position of the target module. For example, the image processing system uses image recognition and analysis algorithms to accurately identify the boundaries and features between modules, divide the box display area into different module areas, and assign numbers to each module. After that, the area of each display area is calculated respectively, so as to obtain the module area area of each target module. For example, by using image analysis and calculation methods, the length and width of each module display area are measured, and then its area is accurately calculated. Then, based on the size ratio of each module area of each target module, the target screen is divided into rectangular blocks to obtain the to-be-displayed picture blocks that match each target module. For example, if the module area of a target module accounts for 15% of the display area of the box to which it belongs, then 15% of the part is divided from the corresponding position of the target screen as its to-be-displayed picture blocks. Finally, each to-be-displayed picture block is bound to the module number that matches the to-be-displayed picture block, so as to obtain each target picture block that matches each target module. In this way, it can be ensured that each target module can obtain the picture content that is adapted to its display area.
[0056] It should be noted that in this embodiment, since the area of each display area can be automatically calculated using image analysis and calculation methods, in order to maintain the accuracy of the results, the display area of each target box and the display area corresponding to the target module in this embodiment are all rectangular. Based on the above definition, the image segmentation algorithm, semantic segmentation model and target detection model can be used to automatically calculate the area of each display area, saving human resources.
[0057] S250 , displaying the target picture blocks that match the target module through the target module, so as to splice the target picture blocks to obtain a target image that matches the display screen image.
[0058] The technical solution of the embodiment of the present invention first responds to the module splicing instruction of the user, obtains the module position of each target module in the target display screen, and obtains the position of each module; then responds to the cabinet splicing instruction of the user, obtains the position of each target cabinet, and then obtains the picture to be displayed, calculates the display area of each target cabinet, and divides the picture to be displayed based on the display area area and the cabinet position of each target cabinet to obtain each target screen that matches each target cabinet respectively; then calculates the display area area of each target module in each target cabinet respectively, and divides each target screen based on the display area area and the module position of each target module to obtain each target picture block that matches each target module respectively; finally, the target picture block that matches the target module is displayed through the target module, so as to splice each target picture block to obtain a target image that matches the display screen image, thereby realizing image splicing of a multi-cabinet display screen when displaying images, improving the efficiency of image splicing work, and reducing the manpower consumption of display screen image splicing work.
[0059] Embodiment 3
[0060] Figure 3 This is a schematic diagram of the structure of a display screen image splicing device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:
[0061] The module position acquisition module 310 is used to acquire the module position of each target module in the target display screen in response to the module splicing instruction of the user, and obtain the position of each module; wherein the target display screen is composed of at least one target box, and the target box is composed of at least one target module;
[0062] The cabinet position acquisition module 320 is used to acquire the position of each target cabinet in response to the cabinet splicing instruction of the user to obtain the position of each cabinet;
[0063] The block splicing module 330 is used to obtain the image to be displayed, divide the image to be displayed into a preset number of target blocks, and splice the target blocks according to the positions of each module and each cabinet to obtain a target image matching the display screen image.
[0064] The technical solution of the embodiment of the present invention first responds to the module splicing instruction of the user to obtain the module position of each target module in the target display screen to obtain the position of each module, then responds to the cabinet splicing instruction of the user to obtain the position of each target cabinet to obtain the position of each cabinet, and finally obtains the picture to be displayed, divides the picture to be displayed into target blocks that match each target module respectively according to the position of each module and the position of each cabinet, and displays the target blocks that match the target module through the target module, so as to splice each target block to obtain a target image that matches the display screen image, thereby realizing image splicing of a multi-cabinet display screen when displaying images, improving the efficiency of image splicing work, and reducing the manpower consumption of display screen image splicing work.
[0065] Based on the above embodiment, the module position acquisition module 310 includes:
[0066] A first position information acquisition unit, configured to respectively acquire first position information of each target module in response to a module splicing instruction from a user, wherein the first position information is a serial port number of the target module connected to the receiving card via a flat cable;
[0067] A second location information acquisition unit is used to acquire the cascade sequence number of each target module as the second location information of the target module after acquiring the first location information of the target module;
[0068] The module position generating unit is configured to generate a module position matching the target module based on the first position information and the second position information.
[0069] 4. The method according to claim 1, characterized in that, in response to the user's cabinet splicing instruction, the position of each target cabinet is acquired to obtain the position of each cabinet, comprising:
[0070] In response to a cabinet splicing instruction from a user, third position information matching the target cabinet is respectively acquired, wherein the third position information is a receiving card serial number of a target receiving card that is in communication connection with the target cabinet;
[0071] After obtaining the third location information, obtaining a sending card serial number of a sending card that is in communication connection with the target receiving card as fourth location information;
[0072] The network port serial number of the target network port is obtained as the fifth position information, and a cabinet position matching the target cabinet is generated based on the third position information, the fourth position information, and the fifth position information.
[0073] Based on the above embodiment, the box position acquisition module 320 includes:
[0074] The image segmentation unit to be displayed is used to calculate the display area of each target box, and segment the image to be displayed based on the display area and the box position of each target box to obtain target images that match each target box respectively;
[0075] The target screen segmentation unit is used to calculate the display area of each target module in each target box, and segment each target screen based on the display area and the module position of each target module to obtain target picture blocks that match each target module.
[0076] Based on the above embodiment, the to-be-displayed picture segmentation unit includes:
[0077] A first display unit, used for displaying the position of a box matching the target box through each target box;
[0078] A first acquisition unit is used to acquire a current image of the target display screen using an image acquisition device, and process the current image through a preset image processing system to obtain a box segmentation result matching the target screen, wherein the box segmentation result includes a display area and an area number corresponding to each target box, and the area number is the same as the box position of the target box;
[0079] A first area calculation unit is used to calculate the area of each display area to obtain the display area of each target box;
[0080] A first rectangular segmentation unit is used to perform rectangular segmentation on the image to be displayed based on the size ratio of each display area of each target box to obtain a to-be-displayed picture that matches each target box respectively;
[0081] The first aggregation unit is used to aggregate each to-be-displayed picture and the area number matching the to-be-displayed picture to obtain each target picture.
[0082] Based on the above embodiment, the target picture segmentation unit includes:
[0083] A second display unit is used to obtain target images matching each target box according to the area number of the target image and the box position of each target box, and to display the module position matching the target module through the target module;
[0084] A second acquisition unit is used to acquire a current box image of the target box using an image acquisition device, and process the current box image through a preset image processing system to obtain a module segmentation result matching the target box, wherein the module segmentation result includes a display area and a module number corresponding to each target module, and the module number is the same as the module position of the target module;
[0085] A second area calculation unit is used to calculate the area of each display area to obtain the module area of each target module;
[0086] A second rectangular segmentation unit is used to perform rectangular segmentation on the target image based on the size ratio of each module area of each target module to obtain a to-be-displayed image block that matches each target module;
[0087] The second aggregation unit is used to bind each to-be-displayed picture with a module number matching the to-be-displayed picture to obtain each target picture block that each target module matches.
[0088] A display screen image splicing device provided by an embodiment of the present invention can execute a display screen image splicing method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method.
[0089] Embodiment 4
[0090] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0091] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0092] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0093] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for splicing images of a display screen.
[0094] Accordingly, the method comprises:
[0095] In response to the module splicing instruction of the user, the module position of each target module in the target display screen is acquired to obtain the position of each module; wherein the target display screen is composed of at least one target box, and the target box is composed of at least one target module;
[0096] In response to the user's cabinet splicing instruction, the position of each target cabinet is acquired to obtain the position of each cabinet;
[0097] Obtain a picture to be displayed, divide the picture to be displayed into target picture blocks respectively matching each target module according to the position of each module and each box, and display the target picture blocks matching the target module through the target module, so as to splice each target picture block to obtain a target image matching the display screen image.
[0098] In some embodiments, a method for splicing display screen images may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for splicing display screen images described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute a method for splicing display screen images in any other appropriate manner (e.g., by means of firmware).
[0099] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0100] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0101] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0102] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0103] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0104] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0105] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
Claims
1. A method for splicing images on a display screen, characterized in that: include: In response to the module splicing instruction of the user, the module position of each target module in the target display screen is acquired to obtain the position of each module; wherein the target display screen is composed of at least one target box, and the target box is composed of at least one target module; In response to the user's cabinet splicing instruction, the position of each target cabinet is acquired to obtain the position of each cabinet; Obtain a picture to be displayed, divide the picture to be displayed into target picture blocks respectively matching each target module according to the position of each module and each box, and display the target picture blocks matching the target module through the target module, so as to splice each target picture block to obtain a target image matching the display screen image.
2. The method according to claim 1, characterized in that The target modules constituting the same target box establish a communication connection with the same receiving card through a cable, and the receiving card establishes a communication connection with a sending card through a target network port.
3. The method according to any one of claims 1 to 2, characterized in that: In response to the user's module splicing instruction, the module position of each target module in the target display screen is acquired to obtain the module position, including: In response to a module splicing instruction from a user, first position information of each target module is respectively acquired, wherein the first position information is a serial port number of the target module connected to the receiving card through a flat cable; After obtaining the first position information of the target module, respectively obtaining the cascade sequence number of each target module as the second position information of the target module; A module position matching the target module is generated based on the first position information and the second position information.
4. The method according to claim 1, characterized in that In response to the user's cabinet splicing instruction, the position of each target cabinet is acquired to obtain the position of each cabinet, including: In response to a cabinet splicing instruction from a user, third position information matching the target cabinet is respectively acquired, wherein the third position information is a receiving card serial number of a target receiving card that is in communication connection with the target cabinet; After obtaining the third location information, obtaining a sending card serial number of a sending card that is in communication connection with the target receiving card as fourth location information; The network port serial number of the target network port is obtained as the fifth position information, and a cabinet position matching the target cabinet is generated based on the third position information, the fourth position information, and the fifth position information.
5. The method according to claim 1, characterized in that According to the positions of each module and each cabinet, the image to be displayed is divided into target blocks that match each target module, including: Calculating the display area of each target box, and based on the display area and the box position of each target box, segmenting the image to be displayed to obtain target images that match each target box; The display area of each target module in each target box is calculated respectively, and based on the display area and the module position of each target module, each target screen is segmented to obtain target picture blocks respectively matching each target module.
6. The method according to claim 5, characterized in that Calculate the display area of each target box, and segment the image to be displayed based on the display area and the box position of each target box to obtain target images that match each target box, including: Displaying the position of the box that matches the target box through each target box; Using an image acquisition device to acquire a current image of the target display screen, and processing the current image through a preset image processing system to obtain a box segmentation result matching the target screen, wherein the box segmentation result includes a display area and an area number corresponding to each target box, and the area number is the same as the box position of the target box; Calculate the area of each display area respectively to obtain the display area of each target box; Based on the size ratio of each display area of each target box, the image to be displayed is divided into rectangles to obtain images to be displayed that match each target box respectively; Aggregate each to-be-displayed picture and the area number matching the to-be-displayed picture to obtain each target picture.
7. The method according to claim 5, characterized in that The display area of each target module in each target box is calculated respectively, and each target screen is segmented based on the display area and the module position of each target module to obtain target picture blocks that match each target module respectively, including: Obtain target images matching each target box respectively through the area number of the target image and the box position of each target box, and display the module position matching the target module through the target module; Using an image acquisition device to acquire a current box image of the target box, and processing the current box image through a preset image processing system to obtain a module segmentation result matching the target box, wherein the module segmentation result includes a display area and a module number corresponding to each target module, and the module number is the same as the module position of the target module; Calculate the area of each display area respectively to obtain the module area of each target module; Based on the size ratio of each module area of each target module, the target picture is divided into rectangular blocks to obtain to-be-displayed picture blocks respectively matching each target module; Each to-be-displayed picture is bound to a module number matching the to-be-displayed picture, so as to obtain target picture blocks respectively matching each target module.
8. A device for splicing images on a display screen, characterized in that: include: A module position acquisition module is used to acquire the module position of each target module in the target display screen in response to the module splicing instruction of the user, so as to obtain the position of each module; wherein the target display screen is composed of at least one target box, and the target box is composed of at least one target module; The cabinet position acquisition module is used to acquire the position of each target cabinet in response to the cabinet splicing instruction of the user to obtain the position of each cabinet; The block splicing module is used to obtain the image to be displayed, divide the image to be displayed into a preset number of target blocks, and splice the target blocks according to the positions of each module and each cabinet to obtain a target image that matches the display screen image.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for splicing display screen images according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a display screen image splicing method according to any one of claims 1 to 7 when executed.