Image processing method, device, system, electronic device and storage medium
By acquiring and processing the placement information of the display screen and performing pixel coordinate transformation, the problem of poor image effects caused by inconsistent display sizes and inconsistent placement of multiple display screens is solved, and the coordinated display of the overall image is achieved.
Patent Information
- Application Number
- CN202210904290.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2042-07-29
AI Technical Summary
The sizes of multiple display screens are not uniform and the placement positions are inconsistent, resulting in poor overall image information.
By obtaining the display screen's placement angle, size information and position information, calculating its offset relative to the edge angle of the preset area, transforming the pixel coordinates, obtaining the target coordinates, and controlling the display screen to display the image according to the target coordinates.
The overall image coordination composed of multiple display screens is achieved, reducing the display problems caused by different sizes and uncompact placement.
Smart Images

Figure CN115344222B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display, and in particular, to an image processing method, an image processing device, an image processing system, an electronic device, and a computer-readable storage medium. Background Art
[0002] In the field of information display, a single display screen is usually used to display image information, or multiple displays are spliced to display image information together. For the latter display method, the size of each display screen is required to be consistent, and the display screens need to be compactly arranged in specifications such as 2×2, 5×4, etc. If the sizes of the display screens are not uniform or the positions of the display screens are not uniform, it is easy to cause the overall image information displayed by the display screens to be poor. Summary of the invention
[0003] In view of this, the purpose of the embodiments of the present application is to provide an image processing method, an image processing device, an image processing system, an electronic device and a computer-readable storage medium, so as to improve the effect of jointly displaying image information on multiple display screens of different sizes and randomly distributed positions.
[0004] In a first aspect, the present application provides an image processing method, the method comprising: obtaining the placement angle and size information of each display screen in a preset area, the preset area including at least two display screens; using the edge angle of the preset area as the coordinate origin, and determining the position information of each display screen relative to the coordinate origin; for each display screen, obtaining the offset information of the display screen compared to the coordinate origin based on the placement angle, size information and position information of the display screen; transforming the coordinates of each unit pixel point of the display screen based on the range size of the preset area, the placement angle, size information and offset information of the display screen, and obtaining the target coordinates of each unit pixel point; based on the target coordinates, controlling the display screen to display the image to be displayed.
[0005] In an embodiment of the present application, by taking the edge angle of a preset area as the coordinate origin, the position information of the display screen relative to the origin is obtained, and then the offset information of the display screen relative to the coordinate origin is obtained according to the placement angle, size information and position information of the display screen. The coordinates of each unit pixel are further transformed by the offset information, the range size of the preset area, the placement angle and size information of the display screen to obtain the target coordinates of each unit pixel. The display screen is controlled to display the image to be displayed by the target coordinates, so that when each display screen displays the image to be displayed, the image composed of each display screen is coordinated as a whole, thereby reducing display problems caused by the inconsistent sizes and random placement of each display screen.
[0006] In one embodiment, according to the placement angle, size information and position information of the display screen, obtaining the offset information of the display screen relative to the coordinate origin includes: according to the formula: Obtain the offset information of the display screen compared to the coordinate origin, wherein a is the horizontal coordinate offset of the display screen in the offset information compared to the coordinate origin, b is the vertical coordinate offset of the display screen in the offset information compared to the coordinate origin, u is the horizontal coordinate of the center point of the position information, v is the vertical coordinate of the center point of the position information, w is the length of the size information, h is the width of the size information, and θ is the placement angle.
[0007] In the embodiment of the present application, by the formula: Obtain the offset information of the display screen compared to the coordinate origin to facilitate the subsequent conversion of the pixel coordinates of the display screen.
[0008] In one embodiment, the coordinates of each unit pixel of the display screen are transformed according to the range size of the preset area, the placement angle of the display screen, the size information and the offset information to obtain the target coordinates of each unit pixel, including: normalizing the coordinates of each unit pixel of the display screen, by formula: Determine the target coordinates of each unit pixel, where x is the horizontal coordinate of the target coordinate, y is the vertical coordinate of the target coordinate, a is the horizontal coordinate offset of the display screen compared to the coordinate origin in the offset information, b is the vertical coordinate offset of the display screen compared to the coordinate origin in the offset information, w is the length of the size information, h is the width of the size information, i is the normalized horizontal coordinate of each unit pixel, j is the normalized vertical coordinate of each unit pixel, θ is the placement angle, W is the length of the preset area, and H is the width of the preset area.
[0009] In the embodiment of the present application, the coordinates of each unit pixel are normalized to facilitate the processing of the coordinate values, and then the formula is used: Realize the scaling, translation and rotation of the coordinates of each unit pixel point, and correct the problem of pixel disorder caused by different sizes and scattered placement of display screens.
[0010] In a second aspect, the present application provides an image processing device, comprising: an acquisition module, used to acquire the placement angle and size information of each display screen in a preset area, wherein the preset area includes at least two display screens; a determination module, used to use the edge angle of the preset area as the coordinate origin to determine the position information of each display screen relative to the coordinate origin; the acquisition module is also used to acquire, for each display screen, the offset information of the display screen compared to the coordinate origin based on the placement angle, size information and position information of the display screen; the acquisition module is also used to transform the coordinates of each unit pixel point of the display screen according to the range size of the preset area, the placement angle, size information and offset information of the display screen, to obtain the target coordinates of each unit pixel point; a control module is used to control the display screen to display the image to be displayed based on the target coordinates.
[0011] In one embodiment, the acquisition module is further configured to obtain the following information according to the formula: Obtain the offset information of the display screen compared to the coordinate origin, wherein a is the horizontal coordinate offset of the display screen in the offset information compared to the coordinate origin, b is the vertical coordinate offset of the display screen in the offset information compared to the coordinate origin, u is the horizontal coordinate of the center point of the position information, v is the vertical coordinate of the center point of the position information, w is the length of the size information, h is the width of the size information, and θ is the placement angle.
[0012] In one embodiment, the acquisition module is further used to normalize the coordinates of each unit pixel of the display screen by the formula: Determine the target coordinates of each unit pixel, where x is the horizontal coordinate of the target coordinate, y is the vertical coordinate of the target coordinate, a is the horizontal coordinate offset of the display screen compared to the coordinate origin in the offset information, b is the vertical coordinate offset of the display screen compared to the coordinate origin in the offset information, w is the length of the size information, h is the width of the size information, i is the normalized horizontal coordinate of each unit pixel, j is the normalized vertical coordinate of each unit pixel, θ is the placement angle, W is the length of the preset area, and H is the width of the preset area.
[0013] In a third aspect, the present application provides an image processing system, the system comprising: a mainboard, used to execute the image processing method provided in the first aspect of claim 1; and a display screen, electrically connected to the mainboard.
[0014] In one embodiment, the image processing system further includes: a control device, used to send an instruction to the display screen so that the display screen displays a test image; a shooting device, used to shoot an overall image of each display screen in a preset area, and the display screen in the overall image displays the test image; a processing device, used to obtain the range size of the preset area, the placement angle of the display screen, and size information based on the overall image, and send the range size of the preset area, the placement angle of the display screen, and size information to the main board; a storage device, used to save the target coordinates after the main board transforms the coordinates of each unit pixel point of the display screen.
[0015] In a fourth aspect, the present application provides an electronic device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the above-mentioned image processing method or realizes the functions of the above-mentioned image processing device.
[0016] In a fifth aspect, the present application provides a non-volatile readable storage medium storing computer-readable instructions, which, when executed by a processor, enables the processor to execute the above-mentioned image processing method or realize the functions of the above-mentioned image processing device.
[0017] The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A structural diagram of an image processing system provided in one embodiment of the present application;
[0020] Figure 2 A flowchart of an image processing method provided by an embodiment of the present application;
[0021] Figure 3 A schematic diagram of a preset area provided in an embodiment of the present application;
[0022] Figure 4 A first schematic diagram of a display screen provided in an embodiment of the present application;
[0023] Figure 5A second schematic diagram of a display screen provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of first position information of a display screen provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of second position information of a display screen provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the offset information of a display screen provided in an embodiment of the present application;
[0027] Fig. 9 Image information provided by an embodiment of the present application;
[0028] Fig.10 A rendering of an image to be displayed on each display screen provided in an embodiment of the present application;
[0029] Fig.11 A structural diagram of an image processing device provided in one embodiment of the present application;
[0030] Fig.12 A structural block diagram of an electronic device provided in one embodiment of the present application.
[0031] Icons: image processing apparatus 1100; acquisition module 1101; determination module 1102; control module 1103; image processing system 100; main board 11; display screen 12; processing device 13; shooting device 14; control device 15; storage device 16. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0033] In order to solve the problem that the sizes of various display screens are not uniform or the positions of various display screens are not uniform, which may easily lead to poor overall image information display effects of various display screens, an embodiment of the present application provides an image processing system 100.
[0034] Please refer to Figure 1 The image processing system 100 may include a mainboard 11 and a display screen 12, and the display screen 12 is electrically connected to the mainboard 11. The mainboard 11 is used to transform the coordinates of each unit pixel of the display screen 12, obtain the target coordinates and send the target coordinates to the display screen 12, so as to control the display screen 12 to display the image to be displayed according to the target coordinates.
[0035] It should be noted that each mainboard 11 corresponds to a display screen 12. Each mainboard 11 only needs to transform the coordinates of each unit pixel of the corresponding display screen 12 to obtain the corresponding target coordinates. The image to be displayed by a single display screen 12 through the target coordinates is part of the image information.
[0036] In one embodiment, the image processing system 100 may further include: a control device, a photographing device 14 , a processing device 13 and a storage device 16 .
[0037] Among them, the control device, the processing device 13, and the storage device 16 can be integrated with the mainboard 11, or can be separately connected by signals, but this application is not limited to this.
[0038] The control device is used to send an instruction to the display screen 12 so that the display screen 12 displays the test image. The shooting device 14 is used to shoot the overall image of each display screen 12 in the preset area, wherein the display screen 12 in the overall image displays the test image. The processing device 13 is used to obtain the range size of the preset area, the placement angle of the display screen 12, and the size information according to the overall image, and send the range size of the preset area, the placement angle of the display screen 12, and the size information to the main board 11. The storage device 16 is used to save the target coordinates after the main board 11 transforms the coordinates of each unit pixel of the display screen 12.
[0039] It can be understood that the preset area is a pre-defined area, and each display screen 12 is located in the preset area. The control device sends instructions to the display screen 12 so that the display screen 12 displays the test image. The test image can be an image that covers the entire display screen 12. The test images displayed by each display screen 12 are different (for example, display color, display pattern, etc.), which is used to distinguish each display screen 12. The preset area is photographed by the shooting device 14 to obtain the overall image of each display screen 12. The processing device 13 obtains the range size of the preset area based on the overall image, and obtains the placement angle and size information of each display screen 12 based on the test image displayed by each display screen 12 in the overall image, and then obtains the range size, placement angle, and size information and sends them to the main board 11. After the main board 11 transforms the coordinates of each unit pixel point of the display screen 12, the storage device 16 saves the target coordinates. When the display screen 12 needs to display the image to be displayed, the target coordinates corresponding to the display screen 12 are directly called without recalculating the target coordinates.
[0040] The shooting device 14 may be a camera, a video camera or other device for shooting images.
[0041] Please refer to Figure 2 , Figure 2 An image processing method is provided in one embodiment of the present application, and the method is described from the perspective of the mainboard 11 .
[0042] The image processing method may include the following steps.
[0043] S201, obtaining the placement angle and size information of each display screen in a preset area.
[0044] Among them, the preset area includes at least two display screens 12. The preset area is a rectangular area, which can be set before each display screen 12 is placed, or it can be set after each display screen 12 is placed. It can be understood that the current source files such as video images are usually rectangular. Therefore, the preset area is set as a rectangular area to keep the preset area corresponding to the overall picture of the video image, ensuring that the display screens in the preset area are all part of the overall picture. It should be noted that if the display screen 12 is placed outside the preset area, the original preset area needs to be expanded so that each display screen 12 is within the preset area.
[0045] In one embodiment, the display screen 12 may be a rectangular display screen and / or a circular display screen.
[0046] Exemplarily, five display screens are arranged in the preset area, of which three are rectangular display screens and two are circular display screens, or all five are rectangular display screens, or all five are circular display screens.
[0047] Please refer to Figure 3-5 In one embodiment, lighting lamps of specific colors can be set at the four corners of each display screen 12. In a dark environment, the area surrounded by each lighting lamp is the preset area. Wherein, W is the width of the preset area, and H is the length of the preset area.
[0048] Furthermore, by allowing the display screen 12 to display a test image, edge detection (such as Canny operator) and line detection (such as Hough detection) are performed on the test image to obtain the placement angle and size information of each display screen 12.
[0049] It should be noted that edge detection, line detection and other means are well known to those skilled in the art, and the specific implementation process will not be repeated here.
[0050] S202: Taking the edge corner of the preset area as the coordinate origin, determining the position information of each display screen relative to the coordinate origin.
[0051] Please refer to Figure 6-7 For ease of understanding, in this embodiment, the lower left corner of the preset area is used as the coordinate origin. By setting the coordinate origin, it is convenient to determine the position information of each display screen 12 later.
[0052] For example, please refer to Figure 6, taking the center point of the rectangular display screen as the position information of the display screen, the center point of the rectangular display screen can be obtained as (U, V).
[0053] For example, please refer to Figure 7 , taking the center point of the circular display screen as the position information of the display screen, the center point of the circular display screen can be obtained as (U', V').
[0054] It should be noted that the edge corners of the preset area can be the upper left corner, upper right corner, lower left corner, and lower right corner. The coordinate origin set according to different edge angles may cause the position information of each display screen 12 to have a negative sign. At this time, the position information is taken as an absolute value to facilitate subsequent calculation processing.
[0055] S203, obtaining the offset information of the display screen relative to the coordinate origin according to the placement angle, size information and position information of the display screen.
[0056] Please refer to Figure 8 In one embodiment, when the display screen 12 is a rectangular display screen, S203 may include: according to the formula: Obtaining the offset information of the display screen 12 relative to the coordinate origin,
[0057] Among them, a is the horizontal coordinate offset of the display screen 12 in the offset information compared to the coordinate origin, b is the vertical coordinate offset of the display screen 12 in the offset information compared to the coordinate origin, u is the horizontal coordinate of the center point of the position information, v is the vertical coordinate of the center point of the position information, w is the length of the size information, h is the width of the size information, and θ is the placement angle.
[0058] It should be noted that the placement angle in this embodiment is the angle between the display screen 12 and the preset area in the horizontal direction. In some cases, the placement angle can also be the angle between the display screen 12 and the preset area in the vertical direction, which can be set according to the actual application scenario, and the present application is not limited thereto.
[0059] In another embodiment, when the display screen 12 is a circular display screen, the size information of the circular display screen is the diameter, therefore, the length and width of the rectangular display screen are equal to the diameter length of the circular display screen, and S203 may include: according to the formula: Get the offset information of the display screen compared to the coordinate origin.
[0060] Among them, a is the horizontal coordinate offset of the display screen in the offset information compared to the coordinate origin, b is the vertical coordinate offset of the display screen in the offset information compared to the coordinate origin, u' is the horizontal coordinate of the center point of the position information, v' is the vertical coordinate of the center point of the position information, d is the diameter length of the size information of the display screen, and θ is the placement angle.
[0061] It should be noted that, when the display screen 12 is a circular screen, the placement angle is the angle between the image originally displayed on the circular screen and the image displayed after placement.
[0062] S204, transforming the coordinates of each unit pixel of the display screen according to the range size of the preset area, the placement angle, size information and offset information of the display screen 12, to obtain the target coordinates of each unit pixel.
[0063] In one embodiment, when the display screen 12 is a rectangular display screen, step S204 may include: normalizing the coordinates of each unit pixel of the display screen by the formula: Determine the target coordinates of each unit pixel, where x is the horizontal coordinate of the target coordinate, y is the vertical coordinate of the target coordinate, a is the horizontal coordinate offset of the display screen compared to the coordinate origin in the offset information, b is the vertical coordinate offset of the display screen compared to the coordinate origin in the offset information, d is the diameter length of the size information of the display screen, i is the normalized horizontal coordinate of each unit pixel, j is the normalized vertical coordinate of each unit pixel, θ is the placement angle, W is the length of the preset area, and H is the width of the preset area.
[0064] It can be understood that by normalizing the coordinates of each unit pixel, it is convenient to process the coordinate values, and then through the formula: The coordinates of each unit pixel are scaled, translated and rotated, and the problem of disordered pixels caused by different sizes and scattered placement of the display screens 12 is corrected.
[0065] In another embodiment, when the display screen 12 is a circular display screen, the size information of the circular display screen is the diameter. Therefore, the length and width of the rectangular display screen are equal to the diameter length of the circular display screen. Step S204 may include: normalizing the coordinates of each unit pixel point of the display screen, by formula: Determine the target coordinates of each unit pixel, where x is the horizontal coordinate of the target coordinate, y is the vertical coordinate of the target coordinate, a is the horizontal coordinate offset of the display screen in the offset information compared to the coordinate origin, b is the vertical coordinate offset of the display screen in the offset information compared to the coordinate origin, w is the length of the size information, h is the width of the size information, i is the normalized horizontal coordinate of each unit pixel, j is the normalized vertical coordinate of each unit pixel, θ is the placement angle, W is the length of the preset area, H is the width of the preset area, and d is the diameter length of the size information.
[0066] S205: Based on the target coordinates, control the display screen to display the image to be displayed.
[0067] Please refer to Fig. 9 and Fig.10 , Fig. 9is the image to be displayed in this application. Fig.10 Display the effect diagram of the image to be displayed on each display screen.
[0068] It can be understood that by taking the edge angle of the preset area as the coordinate origin, the position information of the display screen relative to the origin is obtained, and then the offset information of the display screen relative to the coordinate origin is obtained according to the placement angle, size information and position information of the display screen. The coordinates of each unit pixel are further transformed through the offset information, the range size of the preset area, the placement angle and size information of the display screen to obtain the target coordinates of each unit pixel. The display screen is controlled to display the image to be displayed through the target coordinates, so that when the viewer watches, the image composed of the various display screens is coordinated as a whole, reducing display problems caused by the non-uniform size and non-compact placement of the display screens.
[0069] Please refer to Fig.11 Based on the same inventive concept, the present application also provides a structural diagram of an image processing device 1100 in an embodiment, and the image processing device 1100 includes: an acquisition module 1101, a determination module 1102 and a control module 1103. The acquisition module 1101 is used to acquire the placement angle and size information of each display screen in a preset area, and the preset area includes at least two display screens. The determination module 1102 is used to use the edge angle of the preset area as the coordinate origin to determine the position information of each display screen relative to the coordinate origin. The acquisition module 1101 is also used to acquire the offset information of the display screen relative to the coordinate origin for each display screen according to the placement angle, size information and position information of the display screen. The acquisition module 1101 is also used to transform the coordinates of each unit pixel of the display screen according to the range size of the preset area, the placement angle, size information and offset information of the display screen, and obtain the target coordinates of each unit pixel. The control module 1103 is used to control the display screen to display the image to be displayed based on the target coordinates.
[0070] In one embodiment, the acquisition module 1101 is further configured to obtain the following formula: Get the offset information of the display screen compared to the coordinate origin, where a is the horizontal offset of the display screen in the offset information compared to the coordinate origin, b is the vertical offset of the display screen in the offset information compared to the coordinate origin, u is the horizontal coordinate of the center point of the position information, v is the vertical coordinate of the center point of the position information, w is the length of the size information, h is the width of the size information, and θ is the placement angle.
[0071] In one embodiment, the acquisition module 1101 is further used to normalize the coordinates of each unit pixel of the display screen, using the formula: Determine the target coordinates of each unit pixel, where x is the horizontal coordinate of the target coordinate, y is the vertical coordinate of the target coordinate, a is the horizontal coordinate offset of the display screen in the offset information compared to the coordinate origin, b is the vertical coordinate offset of the display screen in the offset information compared to the coordinate origin, w is the length of the size information, h is the width of the size information, i is the normalized horizontal coordinate of each unit pixel, j is the normalized vertical coordinate of each unit pixel, θ is the placement angle, W is the length of the preset area, and H is the width of the preset area.
[0072] It can be understood that the image processing device 1100 provided in the present application corresponds to the image processing method provided in the present application. In order to make the description concise, the same or similar parts can refer to the contents of the image processing method part and will not be repeated here.
[0073] Each module in the above image processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a server in the form of hardware, or can be stored in a memory in a server in the form of software, so that the processor can call and execute operations corresponding to each module. The processor can be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, etc.
[0074] The above-mentioned image processing method and / or image processing device 1100 may be implemented in the form of a computer-readable instruction. The computer-readable instruction may be in the form of a computer-readable instruction. Fig.12 The electronic device shown is running.
[0075] An embodiment of the present application also provides an electronic device, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and the processor implements the above-mentioned image processing method when executing the program.
[0076] Fig.12 FIG. 1 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. The electronic device may be a server. Fig.12 The electronic device includes a processor, a non-volatile storage medium, an internal memory, an input device, a display screen, and a network interface connected via a system bus. The non-volatile storage medium of the electronic device can store an operating system and computer-readable instructions. When the computer-readable instructions are executed, the processor can execute an image processing detection method of each embodiment of the present application. The specific implementation process of the method can be referred to Figure 2The specific content is not repeated here. The processor of the electronic device is used to provide computing and control capabilities to support the operation of the entire electronic device. The internal memory may store computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor may execute an image processing detection method. The input device of the electronic device is used to input various parameters, the display screen of the electronic device is used for display, and the network interface of the electronic device is used for network communication.
[0077] Those skilled in the art will understand that Fig.12 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0078] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium on which computer-readable instructions are stored. When the program is executed by a processor, the steps in the above-mentioned image processing detection method are implemented.
[0079] As used herein, any reference to memory, storage, database, or other medium may include non-volatile. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
[0080] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0081] The functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0082] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. An image processing method, It is characterized in that include: Acquire placement angle and size information of each display screen in a preset area, wherein the preset area includes at least two display screens; Taking the edge corner of the preset area as the coordinate origin, determining the position information of each display screen relative to the coordinate origin; For each display screen, obtaining the offset information of the display screen compared to the coordinate origin according to the placement angle, size information and position information of the display screen; According to the range size of the preset area, the placement angle and size information of the display screen and the offset information, the coordinates of each unit pixel of the display screen are transformed to obtain the target coordinates of each unit pixel; Based on the target coordinates, controlling the display screen to display the image to be displayed; Wherein, obtaining the offset information of the display screen relative to the coordinate origin according to the placement angle, size information and position information of the display screen includes: According to the formula: , obtaining the offset information of the display screen compared to the coordinate origin, in, is the horizontal coordinate offset of the display screen compared to the coordinate origin in the offset information, is the vertical coordinate offset of the display screen compared to the coordinate origin in the offset information, is the horizontal coordinate of the center point of the position information, is the ordinate of the center point of the position information, is the length of the size information, is the width of the size information, is the placement angle; The step of transforming the coordinates of each unit pixel of the display screen according to the range size of the preset area, the placement angle, the size information of the display screen and the offset information to obtain the target coordinates of each unit pixel includes: Normalizing the coordinates of each unit pixel of the display screen, By formula: , determine the target coordinates of each unit pixel, in, x is the horizontal coordinate of the target coordinate, y is the ordinate of the target coordinate, is the horizontal coordinate offset of the display screen compared to the coordinate origin in the offset information, is the vertical coordinate offset of the display screen compared to the coordinate origin in the offset information, is the length of the size information, is the width of the size information, i is the normalized horizontal coordinate of each unit pixel, j is the normalized ordinate of each unit pixel, is the placement angle, W is the length of the preset area, and H is the width of the preset area.
2. An image processing device, It is characterized in that include: An acquisition module, used to acquire placement angle and size information of each display screen in a preset area, wherein the preset area includes at least two display screens; A determination module, used to use the edge angle of the preset area as a coordinate origin and determine the position information of each display screen relative to the coordinate origin; The acquisition module is further used to acquire, for each display screen, the offset information of the display screen relative to the coordinate origin according to the placement angle, size information and position information of the display screen; The acquisition module is further used to transform the coordinates of each unit pixel of the display screen according to the range size of the preset area, the placement angle and size information of the display screen and the offset information to obtain the target coordinates of each unit pixel; A control module, used for controlling the display screen to display an image to be displayed based on the target coordinates; Wherein, the acquisition module is also used according to the formula: , obtaining the offset information of the display screen compared to the coordinate origin, in, is the horizontal coordinate offset of the display screen compared to the coordinate origin in the offset information, is the vertical coordinate offset of the display screen compared to the coordinate origin in the offset information, is the horizontal coordinate of the center point of the position information, is the ordinate of the center point of the position information, is the length of the size information, is the width of the size information, is the placement angle; The acquisition module is further used to normalize the coordinates of each unit pixel of the display screen. By formula: , determine the target coordinates of each unit pixel, in, x is the horizontal coordinate of the target coordinate, y is the ordinate of the target coordinate, is the horizontal coordinate offset of the display screen compared to the coordinate origin in the offset information, is the vertical coordinate offset of the display screen compared to the coordinate origin in the offset information, is the length of the size information, is the width of the size information, i is the normalized horizontal coordinate of each unit pixel, j is the normalized ordinate of each unit pixel, is the placement angle, W is the length of the preset area, and H is the width of the preset area.
3. An image processing system, include: A mainboard, configured to execute the image processing method as claimed in claim 1; The display screen is electrically connected to the main board.
4. The image processing system according to claim 3, It is characterized in that The image processing system further comprises: A control device, used for sending an instruction to the display screen so that the display screen displays a test image; A shooting device, used for shooting an overall image of each of the display screens in a preset area and sending the overall image to a processing device, wherein the test image is displayed on the display screen in the overall image; A processing device, used for obtaining the range size of the preset area, the placement angle of the display screen, and size information according to the overall image, and sending the range size of the preset area, the placement angle of the display screen, and size information to the main board; The storage device is used to store the target coordinates after the mainboard transforms the coordinates of each unit pixel of the display screen.
5. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are read and run by the processor, the image processing method according to claim 1 is executed.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a computer, the image processing method according to claim 1 is executed.
Citation Information
Patent Citations
VR head-mounted equipment image displaying method, VR head-mounted equipment and VR head-mounted system
CN108021346A
Edge image display method and electronic device
WO2018072581A1