Image display method and device, storage medium and computer program product
By acquiring and processing the size information of the display and image, determining the position, proportion and size of the display sub-image, the problem of image interruption when multiple monitors are connected is solved, and the image consistency and user experience are improved.
Patent Information
- Application Number
- CN202411184953.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-20
AI Technical Summary
When multiple monitors are connected, the image cannot be displayed at the edge of the monitor, which causes the image to be interrupted at the border position, destroying the continuity and integrity of the image and affecting the display effect.
Obtain the size information of the image to be displayed and multiple monitors, determine the display sub-image of each monitor, so that its position, proportion and size in the image are consistent with the corresponding monitor, avoid the display borders blocking the image, and ensure that the image is on multiple monitors Consistent when combined.
It improves the consistency and immersion of the multi-monitor display image display, optimizes the user's visual experience, and avoids the problem of interruption of the physical border of the display.
Smart Images

Figure CN119166086A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an image display method, device, storage medium and computer program product. Background Art
[0002] When an image is displayed on multiple target monitors in a linked screen, the image is usually displayed as multiple images. However, due to manufacturing and design limitations, there is usually a border around the edge of the monitor that cannot display the image. As a result, when multiple target monitors are linked to display the image, the border forms an obvious dividing line in the image, causing the image to be interrupted at the border position, destroying the continuity and integrity of the image and affecting the effect of displaying the image on multiple monitors in a linked screen.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide an image display method, device, storage medium and computer program product, aiming to solve the technical problem that the effect of displaying images on multiple displays connected on a screen is affected.
[0005] To achieve the above object, the present application proposes an image display method, the method comprising:
[0006] Obtaining image size information of an image to be displayed, and obtaining target size information of each of a plurality of target displays;
[0007] Determining, from the image to be displayed, display sub-images corresponding to the multiple target displays respectively based on the image size information and each target size information, wherein the position of the display sub-image in the image to be displayed is consistent with the position of the corresponding target display screen in the display group, the proportion of the display sub-image in the image to be displayed is consistent with the proportion of the corresponding target display screen in the display group, and the size of the display sub-image is consistent with the size of the corresponding target display screen, the target display screen is the display screen of the target display, and the display group is obtained by combining the multiple target displays;
[0008] Each of the display sub-images is sent to a corresponding target display, so that the multiple target displays display the respective display sub-images.
[0009] In addition, to achieve the above objectives, the present application also proposes an image display device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image display method described above.
[0010] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image display method described above are implemented.
[0011] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the image display method described above are implemented.
[0012] In the present application, image size information of an image to be displayed is obtained, and target size information of each of a plurality of target displays is obtained; display sub-images corresponding to each of the plurality of target displays are determined from the image to be displayed based on the image size information and each of the target size information, wherein a position of the display sub-image in the image to be displayed is consistent with a position of a corresponding target display screen in a display group, a proportion of the display sub-image in the image to be displayed is consistent with a proportion of the corresponding target display screen in the display group, and a size of the display sub-image is consistent with a size of the corresponding target display screen, the target display screen is a display screen of the target display, and the display group is obtained by combining the plurality of target displays; each of the display sub-images is sent to a corresponding target display screen, so that the plurality of target displays display their respective display sub-images.
[0013] In the present application, the display sub-image is actually an image in the image to be displayed that has the same position and size as the visible area of the target display. Some image resources in the image to be displayed other than the display sub-image correspond to the border parts of each target display. When multiple target displays are combined to display the same image, the visible area of each target display only displays the display sub-image with the same size and position as its own display screen.
[0014] Compared with the existing method of jointly displaying the entire target image through the display screen areas of each display, the present application presents the effect that part of the image area is obscured by the physical frame of the display during the natural extension of the image, avoiding the effect of the physical frame of the display interrupting the image to be displayed when multiple displays are displayed on a connected screen, so that the image finally displayed by the multiple target displays is consistent in visual perception, thereby improving the consistency and immersion of the images displayed on the multiple displays on a connected screen, improving the effect of displaying images on the multiple displays on a connected screen, and optimizing the user visual experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0017] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the image display method of the present application;
[0018] Figure 2 A schematic diagram of a flow chart provided for the second embodiment of the image display method of the present application;
[0019] Figure 3 A schematic diagram of a display group provided in one embodiment of the present application;
[0020] Figure 4 A timing interaction diagram provided for an implementation method of the present application;
[0021] Figure 5 A schematic diagram of a device movement information input interface provided in an embodiment of the present application;
[0022] Figure 6 A schematic diagram of a joint screen cutting process provided in one embodiment of the present application;
[0023] Figure 7 A schematic diagram of a joint screen cutting scenario provided in one embodiment of the present application;
[0024] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the image display method in the embodiment of the present application.
[0025] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0026] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0027] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0028] The main solution of the embodiment of the present application is: obtaining image size information of an image to be displayed, and obtaining target size information of each of multiple target displays; determining display sub-images corresponding to each of the multiple target displays from the image to be displayed based on the image size information and each of the target size information, wherein the position of the display sub-image in the image to be displayed is consistent with the position of the corresponding target display screen in the display group, the proportion of the display sub-image in the image to be displayed is consistent with the proportion of the corresponding target display screen in the display group, and the size of the display sub-image is consistent with the size of the corresponding target display screen, the target display screen is the display screen of the target display, and the display group is obtained by combining the multiple target displays; sending each of the display sub-images to the corresponding target displays, so that the multiple target displays display their respective display sub-images.
[0029] In this embodiment, for ease of description, the following description is made with the image display device as the execution subject. When an image is displayed on multiple target displays in a linked screen, the image is usually displayed as multiple images. However, due to manufacturing and design limitations, there is usually a border around the edge of the display that cannot display the image, so that when multiple target displays are linked to display the image, the border forms an obvious dividing line in the image, causing the image to be interrupted at the border position, destroying the continuity and integrity of the image, and affecting the effect of multiple displays displaying the image in a linked screen.
[0030] In the embodiment of the present application, the display sub-image is actually an image in the image to be displayed that has the same position and size as the visible area of the target display. Some image resources in the image to be displayed other than the display sub-image correspond to the border parts of each target display. When multiple target displays are combined to display the same image, the visible area of each target display only displays the display sub-image that has the same size and position as its own display screen.
[0031] Compared with the existing method of jointly displaying the entire target image through the display screen areas of each display, the embodiment of the present application can present the effect that part of the image area is obscured by the physical frame of the display during the natural extension of the image, avoiding the effect of the physical frame of the display interrupting the image to be displayed when multiple displays are displayed on a connected screen, so that the image finally displayed by the multiple target displays is consistent in visual perception, thereby improving the consistency and immersion of the images displayed on the multiple displays on a connected screen, improving the effect of displaying images on the multiple displays on a connected screen, and optimizing the user visual experience.
[0032] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an image display device, etc. The following takes an image display device as an example to illustrate this embodiment and the following embodiments.
[0033] Based on this, the present application embodiment provides an image display method, referring to Figure 1 This is a flow chart of the first embodiment of the image display method of the present application.
[0034] In this embodiment, the image display method includes steps S10 to S30.
[0035] Step S10, obtaining image size information of an image to be displayed, and obtaining target size information of each of a plurality of target displays.
[0036] It should be noted that the image to be displayed is an image that needs to be displayed on multiple monitors. The image size information can be image pixels or resolution, which is not limited here. The image size information includes information representing the horizontal size of the image and information representing the vertical size of the image. The method of obtaining the image size information is not limited here. It can be data input by receiving engineers; it can also be obtained by parsing the file description information of the image to be displayed, where the file description information can include basic information of the image to be displayed, such as pixels, resolution, image size, etc.
[0037] The target display is a plurality of displays that are linked to display the image to be displayed. The size of each target display can be the same or different, and there is no limitation here. The target size information is information that characterizes the size of the target display. It should be noted that the target display includes a visible area (that is, a display screen) and a frame for displaying the image. The target size information includes at least the size of the display screen and the size of the display frame. The specific form is not limited here and can be set according to actual needs. The specific method of obtaining the target size information is not limited here. It can be received by receiving data input by engineers, or it can be obtained by parsing the device movement information of each target display. The device movement information can include basic properties of the display, such as resolution, diagonal length of the display screen, etc.
[0038] Exemplarily, in one embodiment, the target size information can be obtained by parsing the device movement information of the target display. In this embodiment, the image display device receives the device movement information sent by each display and saves it in a preset database. When determining the target size information, the device movement information corresponding to the target display is extracted from the preset database and parsed to obtain the target size information. Specifically, before obtaining the target size information of each of the multiple target displays, step S40 is also included: receiving the device movement information sent by different displays, and saving each device movement information to the preset database after verification.
[0039] First, the device movement information sent from different displays is received. After receiving this information, each device movement information is verified to confirm its validity and authenticity. Once it passes the verification, the information will be saved in the preset database. Through strict verification and centralized management, the obtained device movement information is ensured to be accurate, which enhances the stability and security of the entire display system.
[0040] In this embodiment, the process of obtaining target size information of each of the multiple target displays may include step S101: reading device movement information corresponding to each of the multiple target displays from a preset database, and parsing the device movement information corresponding to each of the multiple target displays to obtain the target size information of each of the multiple target displays.
[0041] When the target size information needs to be obtained, the saved device movement information will be read from the preset database, and then the device movement information will be parsed to extract the specific size data of each display for subsequent image display configuration. It should be noted that by directly parsing the size data of the target display from the saved device information, the accuracy and adaptability of the image display are ensured, the tediousness of manually entering or searching for size information is reduced, and the possibility of human error is reduced.
[0042] Step S20, based on the image size information and each target size information, the display sub-images corresponding to each of the multiple target displays are determined from the image to be displayed, wherein the position of the display sub-image in the image to be displayed is consistent with the position of the corresponding target display screen in the display group, the proportion of the display sub-image in the image to be displayed is consistent with the proportion of the corresponding target display screen in the display group, and the size of the display sub-image is consistent with the size of the corresponding target display screen, the target display screen is the display screen of the target display, and the display group is a combination of multiple target displays.
[0043] It should be noted that the display screen of the target display is referred to as a target display screen. The combination of multiple target displays is referred to as a display group. The arrangement and combination of each target display in the display group is not limited here and can be set according to actual needs.
[0044] The images determined from the image to be displayed for each target display are referred to as display sub-images below, wherein for any display sub-image, the position of the display sub-image in the image to be displayed is consistent with the position of the target display screen corresponding to the display sub-image in the display group, the proportion of the display sub-image in the image to be displayed is consistent with the proportion of the target display screen corresponding to the display sub-image in the display group, and the size of the display sub-image is consistent with the size of the target display screen corresponding to the display sub-image. The proportion of the display sub-image in the image to be displayed represents the size of the display sub-image in the image to be displayed, specifically the ratio of the width of the display sub-image to the width of the image to be displayed and the ratio of the height of the display sub-image to the height of the image to be displayed. For example, if the image to be displayed is an image of 1920x1080 pixels and the display sub-image is 960x540 pixels, then the sub-image ratio is 1:2, which means that the size of the display sub-image is half of the image to be displayed. The ratio of the target display corresponding to the displayed sub-image in the display group is also called the device ratio, which is used to characterize the relative size of the target display in the display group and reflects the size relationship between the target display and the display group. For example, if the display group is a square array composed of four target displays of the same size, and one of the target displays occupies one quarter of the area of the display group, then the ratio of the target display in the display group is 1:4.
[0045] In this embodiment, the process of determining the display sub-image is not limited here, and can be specifically determined according to the relative size between the size of the image to be displayed and the size of the display group.
[0046] When the size of the image to be displayed is consistent with the size of the display group, in one feasible implementation, the process of determining the display sub-image may be: first determine the display ratio between the image to be displayed and the display group, then process the display screen size contained in each target size information according to the display ratio, obtain the size information of the image resources displayed by the target display screens of the multiple target displays, and then determine the display sub-images of each target display screen from the image to be displayed based on the size information of the image resources displayed by each target display screen. The display ratio may specifically be the ratio of the image to be displayed relative to the display group, or the ratio of the display group relative to the image to be displayed, which is not limited here. In another feasible implementation, the process of determining the display sub-image may also be: respectively determine the device ratio of each target display screen in the display group, and then determine the display sub-image corresponding to the target display screen from the image to be displayed according to the device ratio. It should be noted that the device ratio may be the area ratio of the target display screen in the display group, or the length ratio of the length of the target display screen in the length of the display group. The length ratio may include the length ratio in the horizontal direction and / or the length ratio in the vertical direction, which is not shown here.
[0047] When the size of the image to be displayed is inconsistent with the size of the display group, in one feasible implementation, the process of determining the display sub-image may be: scaling the image to be displayed to obtain a scaled image according to the display ratio between the image to be displayed and the display group, and then determining the display sub-image from the scaled image. The specific process may refer to the case where the size of the image to be displayed is consistent with the size of the display group, which will not be elaborated here. In another feasible implementation, the process of determining the display sub-image may also be: first determining the image corresponding to the target display screen (hereinafter referred to as the split image) from the image to be displayed according to the device ratio, and then scaling the split image according to the size of the display screen of the target display. The specific process may be set according to actual needs and is not limited here.
[0048] Step S30 , sending each display sub-image to its corresponding target display, so that the multiple target displays can display their respective display sub-images.
[0049] Each display sub-image is sent to its corresponding target display through a preset transmission method, and multiple target displays proceed after receiving their respective display sub-images.
[0050] It should be noted that the preset transmission method is not limited here, and it can be through Bluetooth transmission, network transmission, etc. For example, in one embodiment, the target display can be equipped with an image display client, and the image display device can be equipped with a corresponding server. After obtaining the display sub-image, the image display device sends each display sub-image to the corresponding target display client through network transmission based on the server, and the client sends the display sub-image to the display unit of the target display for display.
[0051] In this embodiment, the position of the display sub-image in the image to be displayed is consistent with the position of the target display screen in the display group, the display ratio of the display sub-image relative to the image to be displayed is consistent with the display ratio of the target display screen relative to the display group, and the size of the display sub-image is consistent with the size of the target display screen. That is to say, the display sub-image is actually an image in the image to be displayed that has the same position and size as the visible area of the target display screen, and some image resources in the image to be displayed other than the display sub-image correspond to the border parts of each target display. When multiple target displays are combined to display the same image, the visible area of each target display only displays the display sub-image with the same size and position as its own display screen.
[0052] Compared with the existing method of jointly displaying the entire target image through the display screen areas of each display, the present embodiment can present the effect that part of the image area is obscured by the physical frame of the display during the natural extension of the image, thereby avoiding the effect that the physical frame of the display interrupts the image to be displayed when multiple displays are displayed on a connected screen, so that the image finally displayed by the multiple target displays is consistent in visual perception, thereby improving the consistency and immersion of the images displayed on the multiple displays on a connected screen, improving the effect of displaying images on the multiple displays on a connected screen, and optimizing the user visual experience.
[0053] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , the target size information includes the display screen size and the frame size, step S20: based on the image size information and each target size information, determining the display sub-images corresponding to each of the multiple target displays from the image to be displayed, including steps S201 to S205.
[0054] Step S201: determining the combined size information of the display group based on each target size information.
[0055] In this embodiment, the process of determining the display sub-image is as follows: first determine the display ratio between the image to be displayed and the display group; then process the display screen size contained in each target size information according to the display ratio to obtain the resource size information of the target display screen of each of the multiple target displays (that is, the size information of the image resource displayed by the target display screen); then determine the display sub-image of each target display screen from the image to be displayed based on each resource size information.
[0056] Specifically, in this embodiment, the size information of the display group is first obtained, which is hereinafter referred to as the combined size information for distinction. The combined size information is used to characterize the size of the display group. The combined size information can be obtained by receiving data input by an engineer, or it can be calculated based on the target size information of the target display and the arrangement of multiple target displays. The specific calculation process will not be repeated here.
[0057] In a specific implementation, when the combined size information is determined based on the individual target size information, the process of determining the combined size information may be:
[0058] a1, determine each outer contour display located at the edge of the display group among the multiple target displays.
[0059] In this embodiment, the edge of the display group refers to the outermost physical position in the display group, and the outer contour display is the display at the outermost physical position in the display group. For example, if the displays form a rectangular arrangement, the edge displays are those located at the four sides of the rectangle. Based on the display combination method, each target display located at the edge of the display group from multiple target displays is selected, and the specific process is not limited here.
[0060] a2. Calculate a first contour length of the display group in the horizontal direction and a second contour length of the display group in the vertical direction based on each outer contour size information, wherein the outer contour size information is target size information of the outer contour display.
[0061] It should be noted that the target size information of the outer contour display is called the outer contour size information, the total length of the display group in the horizontal direction (that is, the width direction) is called the first contour length, and the total length of the display group in the vertical direction (that is, the height direction) is called the second contour length. Figure 3 The schematic diagram of the display group shown, Figure 3 The d1 shown in is the first contour length, and the first contour length does not include the outer frame width of the outermost display in the horizontal outer contour display. Figure 3The d2 shown in is the second contour length, which does not include the outer frame width of the outermost display in the vertical outer contour display. Compared with incorporating the outer frame width of the outermost display into the contour length, this embodiment can make the starting and ending positions of the image to be displayed in the display group, thereby improving the display effect of the image to be displayed.
[0062] The method of calculating the first contour length and the second contour length is not limited here and can be set according to the combination of the display group. For example, when the display group is a combination of target displays of the same size, the first contour length can be obtained by multiplying the number of outer contour displays in the horizontal direction by the outer contour size information, and the second contour length can be obtained by multiplying the number of outer contour displays in the vertical direction by the outer contour size information; when the display group is a combination of target displays of different sizes, the first contour length can be obtained by accumulating the outer contour size information of the outer contour displays in the horizontal direction, and the second contour length can be obtained by accumulating the outer contour size information of the outer contour displays in the vertical direction.
[0063] In this embodiment, the outer contour size information includes the first display screen size and the outer contour frame size of the outer contour display; the first display screen size includes the first display screen width of the display screen of the outer contour display and the first display screen height of the display screen of the outer contour display; the outer contour frame size includes the distance between the edge of the display screen of the outer contour display and the display housing in the horizontal direction, that is, the first frame width, and the distance between the edge of the display screen of the frame of the outer contour display and the display housing in the vertical direction, that is, the second frame width. When the display group is obtained by combining target displays of the same size, the process of calculating the first contour length of the display group in the horizontal direction and the second contour length of the display group in the vertical direction based on each outer contour size information may include:
[0064] a21, determine a first number and a second number, wherein the first number is the number of outer contour displays in the horizontal direction of the display group, and the second number is the number of outer contour displays in the vertical direction of the display group.
[0065] In this implementation, the number of outer contour displays of the display group in the horizontal direction and the vertical direction is determined. For displays of the same size, the number of rows and columns directly determines the horizontal range and the vertical range of the display group.
[0066] a22, based on the first border width and the first number, the first interval length between each outer contour display in the horizontal direction is calculated, based on the first display screen width and the first number, the first visible total length of each outer contour display in the horizontal direction is calculated, and the first interval length and the first visible total length are superimposed to obtain the first contour length.
[0067] The process of calculating the first interval length between each outer contour display in the horizontal direction based on the first border width and the first number may be: calculating the adjacent interval width between two adjacent outer contour displays based on the first border width, subtracting one from the first number to obtain the interval number, and multiplying the interval number by the adjacent interval width to obtain the first interval length. The specific calculation formula for the first interval length may be:
[0068] BS=(N1-1)*(A+B)
[0069] Wherein, BS is the first interval length, N1 is the first number, A+B is the adjacent interval width between two adjacent outer contour displays, A and B are respectively the first border widths of the two adjacent outer contour displays, and it should be noted that the left border width and the right border width of the outer contour display may be different or the same, so A and B may be different or the same. When the left border width and the right border width of the outer contour display are different, the first border width includes the left border width and the right border width.
[0070] The process of calculating the first visible total length of each outer contour display in the horizontal direction based on the first display screen width and the first number may be: obtaining the first visible total length by multiplying the first number by the first display screen width.
[0071] The first interval length and the first visible total length are superimposed to obtain a first contour length. The specific calculation formula for the first contour length may be:
[0072] CW=N1*X1+BS
[0073] Wherein, CW is the first contour length, N1 is the first number, X1 is the first display screen width, and BS is the first interval length.
[0074] a23, based on the second border width and the second number, the second spacing length between each outer contour display in the vertical direction is calculated, based on the display screen height and the second number, the second visible total length of each outer contour display in the vertical direction is calculated, and the second contour length is obtained by superimposing the second spacing length and the second visible total length.
[0075] The specific calculation process is not described here, please refer to a12.
[0076] Specifically, the calculation formula for the specific second interval length may be:
[0077] BH=(N2-1)*(C+D)
[0078] Among them, BH is the second interval length, N2 is the second number, C+D is the adjacent interval width between two adjacent outer contour displays, C and D are respectively the first border widths of two adjacent outer contour displays, and C and D may be different or the same.
[0079] The specific calculation formula of the second contour length can be:
[0080] CH=N2*X2+BH
[0081] Wherein, CH is the second contour length, N2 is the second number, X2 is the display screen height, and BH is the second interval length.
[0082] It should be noted that the first number and the second number may be the same or different, and there is no limitation here, depending on the target combination mode of the display group.
[0083] a3, taking the first contour length and the second contour length as combined size information.
[0084] Step S202: determining a display ratio between the image to be displayed and the display group based on the image size information and the combination size information.
[0085] It should be noted that the display ratio can specifically be the ratio of the image to be displayed relative to the display group, or the ratio of the display group to the image to be displayed. There is no limitation here. The display ratio can specifically include the ratio between the horizontal size of the image to be displayed and the horizontal size of the display group, and the ratio between the vertical size of the image to be displayed and the vertical size of the display group.
[0086] Step S203 : for any display to be processed among the multiple target displays, determining resource size information corresponding to the display to be processed based on the display ratio and the size information to be processed, wherein the size information to be processed is the target size information of the display to be processed.
[0087] It should be noted that any one of the multiple target displays is referred to as a display to be processed, and the target size information of the display to be processed is referred to as size information to be processed.
[0088] In this embodiment, resource size information corresponding to the display to be processed is determined based on the display ratio and the size information to be processed. The resource size information represents the size of the image resource displayed on the display to be processed. The resource size information may be the same as the display screen size of the display to be processed, or may be different from the display screen size of the display to be processed. When the resource size information is different from the display screen size of the display to be processed, the image determined from the image to be displayed based on the resource size information can be scaled to obtain a display sub-image.
[0089] In a specific implementation, the display ratio between the image to be displayed and the display group includes a horizontal display ratio and a vertical display ratio, the size information to be processed includes a second display screen size of the display to be processed, and the second display screen size includes a second display screen width of the display to be processed and a second display screen height of the display to be processed. The process of determining the resource size information corresponding to the display to be processed based on the display ratio and the size information to be processed may be:
[0090] b1, the image width is obtained by multiplying the second display screen width by the horizontal display ratio, and the image height is obtained by multiplying the second display screen height by the vertical display ratio.
[0091] b2, taking the image width and image height as the resource size information corresponding to the display to be processed.
[0092] Step S204, obtaining a display combination mode of multiple target displays, and determining display screen position information of a display screen to be processed in the display group based on the display combination mode and each target size information, wherein the display screen to be processed is the display screen of the display to be processed.
[0093] It should be noted that the arrangement and combination method of combining multiple target displays into a display group is called a display combination method, the display screen of the display to be processed is called a display screen to be processed, and the information representing the relative position of the display screen to be processed in the display group is called display screen position information.
[0094] The display screen position information is determined based on the display combination mode and each target size information, so as to subsequently determine which part of the image to be displayed corresponds to which target display.
[0095] In a specific implementation, the process of determining the display screen position information of the display screen to be processed in the display group based on the display combination mode and each target size information may be:
[0096] c1, determining the arrangement positions of the multiple target displays based on the display combination method.
[0097] c2. Based on the target size information of the positioning display and the size information to be processed, determine the corner point position information of the upper left corner of the display screen to be processed, and use the corner point position information as the display screen position information, wherein the positioning display is: a target display among multiple target displays whose horizontal arrangement position is to the left of the display to be processed and whose vertical arrangement position is above the display to be processed.
[0098] It should be noted that the method for determining the corner point position information is not limited here. In one feasible implementation, the corner point coordinates of the upper left corner of the display screen to be processed in the preset coordinate system can be calculated based on the target size information of the positioning display and the target size information of the display screen to be processed, and the corner point coordinates are used as the corner point position information, wherein the preset coordinate system uses the upper left corner of the display screen of the starting display as the coordinate origin, and uses the straight line where the edge of the display screen of the starting display with the upper left corner as the endpoint as the coordinate axis; in another feasible implementation, the upper left corner of the starting display can be used as the starting point, and based on the target size information of the positioning display and the target size information of the display screen to be processed, the horizontal distance and vertical distance of the upper left corner of the display screen to be processed relative to the starting point are calculated, and the horizontal distance and vertical distance are used as the corner point position information.
[0099] Step S205 , determining a display sub-image of the display to be processed in the image to be displayed according to the display screen position information and the resource size information.
[0100] According to the display screen position information and the resource size information, an image segment suitable for the display to be processed is cut out from the image to be displayed, that is, a display sub-image of the display to be processed.
[0101] The process of determining the display sub-image of the display to be processed in the image to be displayed according to the display screen position information and the resource size information can be: determining the starting coordinates of the display to be processed in the image to be displayed corresponding to the display to be processed according to the display screen position information, and calculating the specific area to be cropped in the image to be displayed in combination with the resource size information, specifically including the cropping width and the cropping height, so as to obtain the cropping range based on the starting coordinates; and cropping the display sub-image from the image to be displayed according to the cropping range.
[0102] In this embodiment, by determining the combined size information of the display group based on each target size information, determining the display ratio between the image to be displayed and the display group based on the image size information and the combined size information, and then determining the resource size information corresponding to the display to be processed based on the display ratio and the size information to be processed, it can be ensured that there is a comprehensive planning of the size of the entire display system, and that image resources are reasonably allocated subsequently, ensuring that each display can obtain an image portion of a suitable size, so that the image to be displayed can adapt to display groups of different sizes and configurations, thereby enhancing the flexibility of displaying the image to be displayed on multiple displays.
[0103] By obtaining the display combination method of multiple target displays and determining the display position information of the display to be processed in the display group based on the display combination method and each target size information, it is possible to ensure that the image content displayed by each display matches its physical position in the display group, avoiding content dislocation, helping to optimize the overall layout of the display combination, and improving the consistency and coherence of visual effects.
[0104] Finally, the display sub-image of the display to be processed is determined in the image to be displayed according to the display position information and resource size information, ensuring that the image content displayed on each display is accurately matched, improving the accuracy and quality of image display, and enhancing the user experience.
[0105] For example, in order to help understand the technical concept or technical principle of image display after the present embodiment is combined with the above-mentioned embodiment 1 and embodiment 2, a specific process of image display is proposed. In this embodiment, the image display device is equipped with a server, and the target display is equipped with a client. The server is used to receive device-related information from the client, perform image processing on the image to be displayed, etc. Specifically, refer to Figure 4 As shown in the timing diagram, the interaction process between the server of the image display device and the client of the target display may be:
[0106] 1. After logging in, the super administrator enters the device movement information on the client of the target display. The device movement information entry page can refer to Figure 5 , Figure 5 The following table shows some parameters of the device movement information: Client Type, Diagonal Size, Resolution, Model, PID (Product identity), Brightness, Bezel Width, Dimensions. Figure 5 The parameters shown are examples of device movement information. Then the super administrator clicks Save, and the client sends the device movement information to the server in response to the Save operation.
[0107] 2. After receiving the device movement information, the server will perform data verification and put it into storage if the verification passes. Then, the server will return the status information to the client.
[0108] 3. When multi-monitor joint-screen display is required, the client publishes the joint-screen task and asynchronously publishes the resource cropping task to the server.
[0109] 4. After receiving the task, the server performs resource calculation and cuts the image to be displayed according to the result of resource calculation. It should be noted that before cutting resources, the super administrator logs in to the server and selects resource joint screen settings in the Content module of the server, and in the Schedule module, CreateVideoWall to push the joint screen data.
[0110] 5. The server asynchronously returns the cutting information to the client, completing the entire interaction process.
[0111] Specifically, the process of Lianping Cloud frame cutting can be referred to Figure 6 In this embodiment, a single display height, display width (ie, the display screen size in the target size information) and a total distance between adjacent borders (ie, the adjacent interval width) are obtained.
[0112] In a specific implementation, a single display height and display width can be calculated according to the diagonal length and the screen ratio by the Pythagorean theorem to obtain a single display height and display width (i.e., display screen size). Assuming that the display width is x, the display height is y, the screen diagonal size is Sim, the screen ratio is 16:9, and one inch = 25.4 mm, the specific calculation formula is as follows:
[0113] Formula (1) x^2+y^2=z^2;
[0114] Formula (2)x / y=16 / 9;
[0115] Formula (3) x = 16y / 9;
[0116] By substituting formula (3) into formula (1), we obtain formula (4): (16y / 9)^2+y^2=Sim^2.
[0117] Solve y = round(sqrt(pow(Sim,2)*(81 / 337)),3), where pow(Sim,2) means calculating the square of Sim, pow is a function used to calculate the exponential power of a given base, which is the square of Sim in this case, and sqrt is a function for finding square roots. In this expression, it is used to calculate the square root of the result in the brackets, 81 / 337 is the scale factor, and the round function is used to round numbers. The 3 here indicates that the result returned by the function should be retained to the third decimal place.
[0118] Thus we get y=sqrt(pow(Sim,2)*(81 / 337)), x=(16*y) / 9.
[0119] Then, the first outline length and the second outline length of the display group are calculated (that is, the total width and total height of the connected screen are calculated). The calculation formula of the first outline length can be:
[0120] CW=N1*X1+BS
[0121] Among them, CW is the first contour length, N1 is the first number, X1 is the first display screen width, BS is the first interval length, BS = (N1-1)*(A+B), A+B is the adjacent interval width between two adjacent outer contour displays, A and B are the first border widths of two adjacent outer contour displays respectively, and A and B may be different or the same.
[0122] The calculation formula of the second contour length can be:
[0123] CH=N2*X2+BH
[0124] Wherein, CH is the second contour length, N2 is the second number, X2 is the display screen height, BH is the second interval length, BH=(N2-1)*(C+D), C+D is the adjacent interval width between two adjacent outer contour displays, C and D are respectively the first border widths of the two adjacent outer contour displays, and C and D may be different or the same. It should be noted that the first number and the second number may be the same or different, and there is no limitation here, depending on the target combination mode of the display group.
[0125] Then, calculate the first ratio of the image to be displayed and the total width of the display, that is, the width of the image to be displayed / the total width of the screen (that is, the first contour length); calculate the second ratio of the image to be displayed and the total height of the display, that is, the height of the image to be displayed / the total height of the screen; calculate the width of a single display screen occupied by the image resource, that is, the width of the target display screen*the first ratio; calculate the height of a single display screen occupied by the image resource, that is, the height of the target display screen*the second ratio; take the upper left corner point of each target display screen as the starting position, and perform image cropping according to the width of a single display screen occupied by the image resource and the height of a single display screen occupied by the image resource, please refer to Figure 7 , Figure 7A schematic diagram of a scene for cropping an image to be displayed (i.e., determining the combined size information of a display group based on each target size information; determining the display ratio between the image to be displayed and the display group based on the image size information and the combined size information; for any display to be processed among multiple target displays, determining the resource size information corresponding to the display to be processed based on the display ratio and the size information to be processed, wherein the size information to be processed is the target size information of the display to be processed; obtaining a display combination mode of the multiple target displays, and determining the display position information of the display to be processed in the display group based on the display combination mode and each target size information, wherein the display to be processed is the display of the display to be processed; determining a display sub-image of the display to be processed in the image to be displayed according to the display position information and the resource size information).
[0126] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the image display method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0127] The present application also provides an image display device. The image display device provided by the present application adopts the image display method in the above embodiment, which can solve the technical problem that the effect of displaying images on multiple displays is affected. Compared with the prior art, the beneficial effects of the image display device provided by the present application are the same as the beneficial effects of the image display method provided by the above embodiment, and other technical features in the image display device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0128] The present application provides an image display device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the image display method in the above-mentioned embodiment 1.
[0129] Reference below Figure 8 , which shows a schematic diagram of the structure of an image display device suitable for implementing an embodiment of the present application. The image display device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8The image display device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0130] like Figure 8 As shown, the image display device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the image display device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the image display device to communicate with other devices wirelessly or by wire to exchange data. Although the image display device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0131] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0132] The image display device provided by the present application adopts the image display method in the above embodiment, which can solve the technical problem that the effect of displaying images on multiple displays is affected. Compared with the prior art, the beneficial effects of the image display device provided by the present application are the same as the beneficial effects of the image display method provided by the above embodiment, and the other technical features in the image display device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0133] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0134] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0135] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the image display method in the above-mentioned embodiment.
[0136] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0137] The computer-readable storage medium may be included in the image display device; or may exist independently without being assembled into the image display device.
[0138] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the image display device, the image display device: obtains image size information of the image to be displayed, and obtains target size information of each of the multiple target displays; determines the display sub-images corresponding to each of the multiple target displays from the image to be displayed based on the image size information and each of the target size information, wherein the position of the display sub-image in the image to be displayed is consistent with the position of the corresponding target display screen in the display group, the proportion of the display sub-image in the image to be displayed is consistent with the proportion of the corresponding target display screen in the display group, and the size of the display sub-image is consistent with the size of the corresponding target display screen, the target display screen is the display screen of the target display, and the display group is obtained by combining the multiple target displays; and sends each of the display sub-images to the corresponding target displays so that the multiple target displays display their respective display sub-images.
[0139] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0140] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0142] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned image display method, and can solve the technical problem that the effect of displaying images on multiple displays is affected. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the image display method provided in the above-mentioned embodiment, and will not be repeated here.
[0143] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned image display method when executed by a processor.
[0144] The computer program product provided by the present application can solve the technical problem that the effect of displaying images on multiple monitors is affected. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the image display method provided by the above embodiment, which will not be repeated here.
[0145] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. An image display method, characterized in that: The method includes: Obtaining image size information of an image to be displayed, and obtaining target size information of each of a plurality of target displays; Determining, from the image to be displayed, display sub-images corresponding to the multiple target displays respectively based on the image size information and each target size information, wherein the position of the display sub-image in the image to be displayed is consistent with the position of the corresponding target display screen in the display group, the proportion of the display sub-image in the image to be displayed is consistent with the proportion of the corresponding target display screen in the display group, and the size of the display sub-image is consistent with the size of the corresponding target display screen, the target display screen is the display screen of the target display, and the display group is obtained by combining the multiple target displays; Each of the display sub-images is sent to a corresponding target display, so that the multiple target displays display the respective display sub-images.
2. The method according to claim 1, characterized in that The step of determining the display sub-images corresponding to the multiple target displays from the image to be displayed based on the image size information and the target size information includes: Determine the combined size information of the display group based on each of the target size information; Determine a display ratio between the image to be displayed and the display group based on the image size information and the combined size information; For any display to be processed among the multiple target displays, determining resource size information corresponding to the display to be processed based on the display ratio and the size information to be processed, wherein the size information to be processed is the target size information of the display to be processed; Acquire a display combination mode of the plurality of target displays, and determine display screen position information of a display screen to be processed in the display group based on the display combination mode and each target size information, wherein the display screen to be processed is a display screen of the display to be processed; The display sub-image of the display to be processed is determined in the image to be displayed according to the display screen position information and the resource size information.
3. The method according to claim 2, characterized in that The step of determining the combined size information of the display group based on each of the target size information comprises: Determine each outer contour display located at an edge of the display group among the plurality of target displays; Calculating a first outline length of the display group in the horizontal direction and a second outline length of the display group in the vertical direction based on each outer outline size information, wherein the outer outline size information is target size information of the outer outline display; The first contour length and the second contour length are used as the combined size information.
4. The method according to claim 3, characterized in that The outer contour size information includes a first display screen size and an outer contour frame size of the outer contour display; the first display screen size includes a first display screen width of the display screen of the outer contour display and a first display screen height of the display screen of the outer contour display; The outer frame size includes a first frame width between the edge of the display screen of the outer frame display and the display housing in the horizontal direction, and a second frame width between the edge of the display screen of the outer frame display and the display housing in the vertical direction; The step of calculating a first outline length of the display group in the horizontal direction and a second outline length of the display group in the vertical direction based on each outer outline size information comprises: Determine a first number and a second number, wherein the first number is the number of outer contour displays in the display group in the horizontal direction, and the second number is the number of outer contour displays in the display group in the vertical direction; Calculate a first interval length between each outer contour display in the horizontal direction based on the first border width and the first number, calculate a first visible total length of each outer contour display in the horizontal direction based on the first display screen width and the first number, and superimpose the first interval length and the first visible total length to obtain the first contour length; The second spacing length between each outer contour display in the vertical direction is calculated based on the second border width and the second number, the second visible total length of each outer contour display in the vertical direction is calculated based on the display screen height and the second number, and the second contour length is obtained by superimposing the second spacing length and the second visible total length.
5. The method according to claim 2, characterized in that The display ratio between the image to be displayed and the display group includes a horizontal display ratio and a vertical display ratio, the size information to be processed includes a second display screen size of the display to be processed, and the second display screen size includes a second display screen width of the display to be processed and a second display screen height of the display to be processed; The step of determining the resource size information corresponding to the display to be processed based on the display ratio and the size information to be processed includes: The image width is obtained by multiplying the second display screen width by the horizontal display ratio, and the image height is obtained by multiplying the second display screen height by the vertical display ratio; The image width and the image height are used as resource size information corresponding to the display to be processed.
6. The method according to claim 2, characterized in that The step of determining the display screen position information of the display screen to be processed in the display group based on the display combination mode and each target size information includes: Determining the arrangement positions of the plurality of target displays based on the display combination mode; Based on the target size information of the positioning display and the size information to be processed, the corner point position information of the upper left corner of the display screen to be processed is determined, and the corner point position information is used as the display screen position information, wherein the positioning display is: a target display among the multiple target displays whose horizontal arrangement position is to the left of the display to be processed and whose vertical arrangement position is above the display to be processed.
7. The method according to any one of claims 1 to 6, characterized in that Before the step of obtaining target size information of each of the plurality of target displays, the method includes: Receive device movement information sent by different displays, and save the device movement information to a preset database after verification; The step of obtaining target size information of each of the plurality of target displays comprises: The device movement information corresponding to each of the plurality of target displays is read from the preset database, and the device movement information corresponding to each of the plurality of target displays is parsed to obtain the target size information of each of the plurality of target displays.
8. An image display device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image display method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image display method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the image display method according to any one of claims 1 to 7 are implemented.
