Method and system for generating scene thumbnail of wall splicing system
Technical Field
The invention relates to the field of display of a wall splicing system, in particular to a method and a system for generating a scene thumbnail of the wall splicing system.
Background
The scene of the wall-splicing system is an external rectangular display interface which is displayed by combining a plurality of windows on a large screen in a flat, superposed and blank way, and generally comprises three elements, namely a signal, an element and a file, wherein the signal refers to an image signal which is butted by a large screen processor and comprises a video, a computer and the like; an element refers to structured information that is a combination of data, text, and graphics; a file refers to a computer file including pictures, video, audio, documents, and the like. The scene is made through the broadcasting control end software, and a user drags a signal, an element or a file to a corresponding position of the large screen on the broadcasting control end software to make the scene; the broadcasting control end can check the made scene through the thumbnail, call the scene to be displayed on the wall by one key, and also can make and push the scene to be displayed on the mobile end (mobile phone and tablet).
Because a large number of produced scenes exist in the system, thumbnails are needed to distinguish the scenes, so that the system is convenient for users to find and use. At present, although there are a plurality of thumbnail generation methods, for diversification of target terminals for scene push, only a single generation method is adopted in a generation system for scene thumbnails in a wall splicing system, so that an optimized generation method cannot be selected according to the target terminals for scene push, and thus, the effects of resource utilization and optimal efficiency cannot be maximally achieved.
Disclosure of Invention
The invention aims to overcome at least one defect of the prior art, provides a method and a system for generating a scene thumbnail of a wall splicing system, integrates two methods for generating the thumbnail according to different target terminals of scene push, and solves the problem of generating the scene thumbnail.
The technical scheme adopted by the invention is that,
a method for generating a scene thumbnail of a wall splicing system comprises the following steps:
judging whether a target terminal of scene pushing is a spliced wall or a mobile terminal;
when the target terminal of scene pushing is judged to be a spliced wall, generating a scene thumbnail by adopting a spliced wall back-display screenshot method;
and when the target terminal of the scene push is judged to be the mobile terminal, generating a scene thumbnail by adopting a GDI drawing technology.
The invention discloses a method for generating a wall splicing system scene thumbnail, which is a method for correspondingly selecting the wall splicing system scene thumbnail according to a target terminal of scene push: firstly, setting a judgment condition, and determining a method for generating a scene thumbnail aiming at a target terminal of scene push, namely a spliced wall or a mobile terminal; when the target terminal of scene pushing is judged to be a spliced wall, the condition that the content such as a title and the like of an element used in the scene can be modified according to the actual condition is required to be met, and the scene thumbnail is displayed on the spliced wall, so that the scene thumbnail is generated by adopting a spliced wall back-display screenshot method, namely the scene thumbnail is generated by receiving a spliced wall code stream, and the scene thumbnail can really display the content of a large-screen scene; when the target terminal of the scene push is judged to be the mobile terminal, all the screenshots of the elements forming the scene are spliced, and the scene thumbnail does not need to be displayed on a spliced wall, so that the scene thumbnail is generated by a GDI (graphics device interface) drawing technology without adopting a spliced wall back display screenshot method. The method integrates two methods for generating the scene thumbnails, can select the corresponding method for generating the scene thumbnails according to the target terminal of the scene push, and correspondingly selects the method for displaying the screenshot in the spliced wall when the target terminal of the scene push is the spliced wall, so that the requirements of actual large-screen display of the spliced wall, modification of elements of the scene and the like are met; the GDI drawing technology is correspondingly selected when the target terminal of the scene push is a mobile terminal, the condition that only thumbnails of the scene composition elements are required to be spliced and synthesized into a picture according to corresponding positions and levels is met, and the scene elements are not required to be modified. By utilizing the technical scheme of the invention, the scene thumbnail pushed to the spliced wall or the mobile terminal can be generated, and the terminal software such as the broadcasting control terminal and the mobile terminal can conveniently browse, search and use various scenes.
A system for generating a thumbnail of a tiled wall system scene, comprising:
the judging module is used for judging whether a target terminal for scene pushing is a spliced wall or a mobile terminal;
the first generation module is used for generating a scene thumbnail by adopting a wall splicing and back display screenshot method when the target terminal for scene pushing is judged to be a wall splicing;
and the second generation module is used for generating the scene thumbnail by adopting a GDI drawing technology when the target terminal of the scene push is judged to be the mobile terminal.
The invention discloses a system for generating a wall splicing system scene thumbnail, which is characterized in that a method for generating the wall splicing system scene thumbnail is correspondingly selected according to a target terminal of scene push: firstly, setting a judgment condition through a judgment module, and determining a method for generating a scene thumbnail aiming at a target terminal of scene push, namely a spliced wall or a mobile terminal; when the target terminal of scene pushing is judged to be a spliced wall, the condition that elements used in a scene can modify the content such as titles and the like according to the actual condition is required to be met, and the scene thumbnail is displayed on the spliced wall, so that the first generation module correspondingly adopts a spliced wall back-display screenshot method to generate the scene thumbnail, namely the first generation module generates the scene thumbnail by receiving a spliced wall code stream, and the scene thumbnail really displays the content of a large-screen scene; when the target terminal of the scene push is judged to be the mobile terminal, all the element screenshots forming the scene are spliced, the scene thumbnail does not need to be displayed on a spliced wall, and a spliced wall back-display screenshot method does not need to be adopted, so that the second generation module generates the scene thumbnail through a GDI drawing technology. The system disclosed by the invention realizes that a corresponding scene thumbnail generation method can be selected according to different target terminals of scene push through the judgment module, the first generation module and the second generation module respectively, when the target terminal of scene push is a wall splicing, a wall splicing and back display screenshot method is selected through the first generation module correspondingly, and the requirements of actual large-screen display of the wall splicing, modification of elements of the scene and the like are met; when the target terminal of the scene push is a mobile terminal, the GDI drawing technology is correspondingly selected through the second generation module, the condition that only thumbnails of the scene forming elements are required to be spliced and synthesized into a picture according to corresponding positions and levels is met, and the scene elements do not need to be modified. By utilizing the technical scheme of the invention, the scene thumbnail pushed to the spliced wall or the mobile terminal can be generated, and the terminal software such as the broadcasting control terminal and the mobile terminal can conveniently browse, search and use various scenes.
Compared with the prior art, the invention has the beneficial effects that: the method integrates two methods for generating the scene thumbnails, can select the corresponding method for generating the scene thumbnails according to the difference of the target terminals of the scene push, and correspondingly selects a method for displaying the screenshot of the spliced wall when the target terminals of the scene push are spliced, so that the requirements of actual large-screen display of the spliced wall, modification of elements of the scene and the like are met; the GDI drawing technology is correspondingly selected when the target terminal of the scene push is a mobile terminal, the condition that only thumbnails of the scene composition elements are required to be spliced and synthesized into a picture according to corresponding positions and levels is met, and the scene elements are not required to be modified. By utilizing the technical scheme of the invention, the scene thumbnail pushed to the spliced wall or the mobile terminal can be generated, and the terminal software such as the broadcasting control terminal and the mobile terminal can conveniently browse, search and use various scenes.
Drawings
FIG. 1 is a flowchart of a method for generating a scene thumbnail of a wall splicing system according to the present invention.
FIG. 2 is a flow chart of an implementation of generating a scene thumbnail by a wall splicing and back display screenshot method.
Fig. 3 is an effect diagram of a scene thumbnail generated by a wall splicing and back display screenshot method, where the effect diagram is an effect diagram after the color of an actual effect diagram is changed into gray.
FIG. 4 is a flow diagram of an implementation of generating a scene thumbnail using GDI drawing techniques.
Fig. 5 is an effect diagram of a scene thumbnail generated by using a GDI drawing technique, where the effect diagram is an effect diagram after the color of an actual effect diagram is changed into gray.
FIG. 6 is a flowchart of a complete implementation of the present invention.
FIG. 7 is a structural diagram of a system for generating a scene thumbnail of a wall splicing system according to the present invention.
Detailed Description
The drawings are only for purposes of illustration and are not to be construed as limiting the invention. For a better understanding of the following embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
Example 1
As shown in fig. 1, fig. 1 is a flowchart of a method for generating a scene thumbnail of a wall splicing system according to the present invention, including the following steps:
s1, judging whether the target terminal of scene pushing is a spliced wall or a mobile terminal;
in the embodiment of the invention, two different methods for generating the wall splicing system scene thumbnails, namely a wall splicing back display screenshot method and a GDI drawing technology, are integrated, and different methods for generating the wall splicing system scene thumbnails are correspondingly selected according to different target terminals pushed by different scenes, so that a judgment condition needs to be preset, the type of the target terminal pushed by the scene is judged, and the type of the target terminal pushed by the scene is determined to be a wall splicing or a mobile terminal.
S2, when the target terminal of scene pushing is judged to be a spliced wall, generating a scene thumbnail by adopting a spliced wall back display screenshot method;
in step S2, the generating a scene thumbnail by using the wall splicing screenshot method specifically includes:
s21, receiving a first push instruction of a scene push target terminal, wherein the first push instruction is a spliced wall, and the first push instruction comprises a spliced wall ID and a scene ID;
s22, requesting a real-time code stream of a current real-time display picture of the spliced wall according to the first push instruction, and receiving a whole wall code stream of the spliced wall;
and S23, saving the whole wall code stream of the spliced wall as a scene thumbnail according to the resolution ratio of the spliced wall and the scene ID.
In the embodiment of the present invention, when it is determined that a destination terminal of scene push is a wall tile, a wall tile redisplay screenshot method is correspondingly selected to generate a scene thumbnail, which satisfies a situation that an element used in a scene can modify a title and other contents according to an actual situation, and the scene thumbnail can be displayed on the wall tile, wherein as shown in fig. 2, a specific implementation process of generating the scene thumbnail by using the wall tile redisplay screenshot method is as follows: after a large-screen scene is manufactured, a push display message is stored and sent to a control server side for controlling the display of a spliced wall, meanwhile, the push display message is sent to a screenshot server as a first push instruction, the screenshot server receives the first push instruction and then requests the control server side for a code stream of a current real-time display picture of the spliced wall, the control server side receives the request and then feeds the real-time code stream displayed by the spliced wall as a whole-wall code stream back to the screenshot server, and after the screenshot server receives the whole-wall code stream, a certain receiving time can be set for preventing incomplete display. The screenshot server can be independently arranged on a certain server, or can be directly deployed at a broadcasting control end of a spliced wall, and the screenshot server is not limited herein. The method is applied under the condition that the scenes need to be displayed on the spliced wall after the scenes are manufactured, the spliced wall can be used for displaying the scenes and simultaneously acquiring the code streams corresponding to the scenes, so that the screenshot of the scene content actually displayed on the spliced wall can be stored, the scene content of the spliced wall can be really and beautifully displayed, what you see is what you get is really achieved, the content of the scenes modified in the actual display process can be stored, and the playing and controlling end can conveniently and accurately search, browse and call the scenes. Fig. 3 is an effect diagram of generating a scene thumbnail by using a wall splicing and back display screenshot method according to an embodiment of the present invention, where the effect diagram is an effect diagram after the color of an actual effect diagram is changed into gray.
And S3, when the destination terminal of the scene push is judged to be the mobile terminal, generating the scene thumbnail by adopting the GDI drawing technology.
In step S3, the generating a scene thumbnail by using a GDI drawing technique specifically includes:
s31, receiving a second pushing instruction of which the target terminal of scene pushing is a mobile terminal, wherein the second pushing instruction comprises a scene size, a scene ID and element information, and specifically, the element information comprises each element ID, each element coordinate position and a display level of each element;
and S32, combining screenshots of all elements into a scene thumbnail by using a GDI drawing technology according to the scene size, the scene ID and the element information.
In step S32, the merging, according to the scene size, the scene ID, and the element information, the screenshot of each element into a scene thumbnail by using a GDI drawing technology specifically includes: and combining the screenshots of the elements on a canvas generated based on the size of the scene according to the resolution of the scene, the display hierarchy of the elements from low to high and the coordinate positions of the elements to generate a scene thumbnail.
In the embodiment of the invention, when the target terminal of the scene push is judged to be the mobile terminal, the GDI drawing technology is correspondingly selected to generate the scene thumbnail, so that the screenshots of all elements forming the scene are spliced, the scene thumbnail does not need to be displayed on a spliced wall, namely, a method for displaying the spliced wall back is not adopted, and the display resource of the spliced wall is avoided being occupied. As shown in fig. 4, the specific implementation process for generating the scene thumbnail by using the GDI drawing technology includes: after the large-screen scene is manufactured, the large-screen scene is stored and a pushing display message is sent to a server side which correspondingly controls the display of a mobile terminal, meanwhile, the pushing display message is sent to a corresponding screenshot processor in a GDI technology as a second pushing instruction, the corresponding screenshot processor in the GDI technology receives the pushing display message which is sent to the mobile terminal by the pushing scene, and screenshots of all elements are combined on a canvas generated based on the size of the scene by utilizing the GDI drawing technology according to the resolution of the scene, the display levels of all elements forming the scene from low to high and the coordinate positions of all elements, so that a large-scene thumbnail is generated. Fig. 5 is an effect diagram of generating a scene thumbnail by using a GDI drawing technique in an embodiment of the present invention, where the effect diagram is an effect diagram after the color of an actual effect diagram is changed into gray.
Preferably, the embodiment of the present invention further includes the steps of:
and S4, naming the generated scene thumbnail by using the scene ID, and uploading the scene thumbnail to a thumbnail server.
In the embodiment of the invention, the scene thumbnails generated by the wall splicing screenshot method and the GDI drawing technology are named by the scene ID and uploaded to the thumbnail server, and the broadcasting control end and the mobile end for displaying the spliced wall can acquire and display the corresponding thumbnails from the thumbnail server according to the scene ID.
Fig. 6 shows a specific and complete implementation process of the embodiment of the present invention: firstly, after a large-screen scene is manufactured, storing the large-screen scene and sending a push display message to a server side which correspondingly controls the display of a target terminal; if the target terminal of the scene push is the wall splicing, generating a scene thumbnail by adopting a wall splicing and back display screenshot method, and if the target terminal of the scene push is not the wall splicing, modifying the scene element, so that the generation of the scene thumbnail is completed by synthesizing the screenshot of the scene element into a picture by adopting a GDI drawing technology; then saving the scene thumbnails generated by the two methods according to the scene ID naming mode and uploading the scene thumbnails to a thumbnail server; and finally, the PC broadcast control terminal and the mobile terminal can acquire and display the corresponding scene thumbnail according to the scene ID.
Based on the embodiment, the method integrates two methods for generating the scene thumbnail, can select the corresponding method for generating the scene thumbnail according to the target terminal of the scene push, and correspondingly selects the method for displaying the screenshot in the wall splicing mode when the target terminal of the scene push is the wall splicing mode, so that the requirements of actual large-screen display of the wall splicing mode, modification of elements of the scene and the like are met; the GDI drawing technology is correspondingly selected when the target terminal of the scene push is a mobile terminal, the condition that only thumbnails of the scene composition elements are required to be spliced and synthesized into a picture according to corresponding positions and levels is met, and the scene elements are not required to be modified. By utilizing the technical scheme of the invention, the scene thumbnail pushed to the spliced wall or the mobile terminal can be generated, and the terminal software such as the broadcasting control terminal and the mobile terminal can conveniently browse, search and use various scenes.
Example 2
As shown in fig. 7, fig. 7 is a structural diagram of a system for generating a scene thumbnail of a wall splicing system according to the present invention, which includes the following modules:
the judging module is used for judging whether a target terminal for scene pushing is a spliced wall or a mobile terminal;
in the embodiment of the invention, two different methods for generating wall splicing system scene thumbnails, namely a wall splicing back display screenshot method and a GDI drawing technology, are integrated in the system, different methods for generating wall splicing system scene thumbnails are correspondingly selected according to different target terminals pushed by different scenes, firstly, the type of the target terminal pushed by the scene is judged by presetting judgment conditions through a judgment module, and the type of the target terminal pushed by the scene is determined to be a wall splicing or a mobile terminal.
The first generation module is used for generating a scene thumbnail by adopting a wall splicing and back display screenshot method when the target terminal for scene pushing is judged to be a wall splicing;
specifically, the first generating module specifically includes:
the method comprises the steps of receiving a first push instruction of a target terminal of scene push for splicing walls when the target terminal of the scene push is judged to be the splicing walls, wherein the first push instruction comprises a splicing wall ID and a scene ID, requesting a real-time code stream of a current real-time display picture of the splicing walls according to the first push instruction, receiving a whole wall code stream of the splicing walls, and storing the received whole wall code stream of the splicing walls as a scene thumbnail according to the resolution ratio and the scene ID of the splicing walls.
In the embodiment of the invention, the first generation module is used for correspondingly selecting the wall splicing and back display screenshot method to generate the scene thumbnail when the target terminal of the scene push is judged to be the wall splicing, so that the condition that the content such as the title can be modified by the elements used in the scene according to the actual condition is met, and the scene thumbnail can be displayed on the wall splicing. The specific implementation process of the first generation module for generating the scene thumbnail by using the wall splicing and back display screenshot method comprises the following steps: after a large-screen scene is manufactured, the large-screen scene is stored and a push display message is sent to a control server side for controlling the display of a spliced wall, meanwhile, the push display message is sent to a first generation module as a first push instruction, the first generation module requests the control server side for a code stream of a current real-time display picture of the spliced wall after receiving the first push instruction, the control server side feeds back the real-time code stream displayed on the whole spliced wall as a whole-wall code stream to the first generation module after receiving the request, a certain receiving time can be set for preventing incomplete display after the first generation module receives the whole-wall code stream, the specific receiving time in the embodiment is three seconds, and finally the first generation module stores the picture as a picture according to the ID of the scene, finishes screenshot of the scene and generates a scene thumbnail. Specifically, in this embodiment, the first generating module is a screenshot server. The screenshot server can be independently arranged on a certain server, or can be directly deployed at a broadcasting control end of a spliced wall, and the screenshot server is not limited herein. The method is applied under the condition that the scenes need to be displayed on the spliced wall after the scenes are manufactured, the spliced wall can be used for displaying the scenes and simultaneously acquiring the code streams corresponding to the scenes, so that the screenshot of the scene content actually displayed on the spliced wall can be stored, the scene content of the spliced wall can be really and beautifully displayed, what you see is what you get is really achieved, the content of the scenes modified in the actual display process can be stored, and the playing and controlling end can conveniently and accurately search, browse and call the scenes.
And the second generation module is used for generating the scene thumbnail by adopting a GDI drawing technology when the target terminal of the scene push is judged to be the mobile terminal.
Specifically, the second generating module specifically includes:
and when the target terminal of the scene push is judged to be the mobile terminal, receiving a second push instruction of the target terminal of the scene push as the mobile terminal, and combining the screenshots of all the elements into a scene thumbnail by using a GDI drawing technology according to the second push instruction.
Specifically, the second push instruction includes a scene size, a scene ID, each element coordinate position, and a display hierarchy of each element.
In the embodiment of the invention, the second generation module is used for correspondingly selecting the GDI drawing technology to generate the scene thumbnail when the terminal for judging scene pushing is the mobile terminal, so that the screenshots of all elements forming the scene are spliced, the scene thumbnail does not need to be displayed on a spliced wall, namely, a method for displaying the scene thumbnail on the spliced wall is not adopted, and the display resources of the spliced wall are prevented from being occupied. The specific implementation process of the second generation module for generating the scene thumbnail by adopting the GDI drawing technology is as follows: after the large-screen scene is manufactured, the large-screen scene is stored and a pushing display message is sent to a server side which correspondingly controls the display of the mobile terminal, meanwhile, the pushing display message is sent to a second generation module as a second pushing instruction, the second generation module receives the pushing display message which is sent to the mobile terminal by the pushing scene, and by means of a GDI drawing technology, screenshots of all elements are combined on a canvas which is generated based on the size of the scene according to the resolution of the scene, the display levels of all elements which form the scene from low to high and the coordinate positions of all elements, so that a large-scene thumbnail is generated.
Preferably, the embodiment of the present invention further includes:
and the naming uploading module is used for naming the generated scene thumbnail by adopting the scene ID and uploading the scene thumbnail to the thumbnail server.
In the embodiment of the invention, the naming uploading module is used for naming the scene thumbnail generated by the wall splicing screenshot method and the GDI drawing technology through the scene ID and uploading the generated scene thumbnail to the thumbnail server, so that the broadcasting control terminal and the mobile terminal of the wall splicing display can acquire and display the corresponding thumbnail from the thumbnail server according to the scene ID.
Based on the embodiment, the method for generating the corresponding scene thumbnail can be selected according to different target terminals of the scene push through the judgment module, the first generation module and the second generation module, when the target terminals of the scene push are the wall splicing, the wall splicing and back display screenshot method is selected through the first generation module, and the requirements of actual large-screen display of the wall splicing, modification of elements of the scene and the like are met; when the target terminal of the scene push is a mobile terminal, the GDI drawing technology is correspondingly selected through the second generation module, the condition that only thumbnails of the scene forming elements are required to be spliced and synthesized into a picture according to corresponding positions and levels is met, and the scene elements do not need to be modified. By utilizing the technical scheme of the invention, the scene thumbnail pushed to the spliced wall or the mobile terminal can be generated, and the terminal software such as the broadcasting control terminal and the mobile terminal can conveniently browse, search and use various scenes.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solutions of the present invention, and are not intended to limit the specific embodiments of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention claims should be included in the protection scope of the present invention claims.