Multi-projector complex projection AI image generation method, medium and system
Through 3D scanning and generative adversarial networks, combined with image segmentation and edge fusion algorithms, the automation problem of image calibration and geometric transformation in multi-projector systems is solved, and efficient projection effect consistency and stability are achieved.
Patent Information
- Application Number
- CN202410652350.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-10-01
AI Technical Summary
In a multi-projector system, it is difficult to accurately obtain screen shape and position information, and the degree of automation is low, making it difficult to fully automate image calibration, geometric transformation, and edge fusion, affecting the consistency and stability of the projection effect.
Three-dimensional scanning technology is used to obtain the geometric parameters of multiple screens, and a multi-segmentation region image generation model based on a generative adversarial network is designed. It combines image segmentation, geometric transformation and edge fusion algorithms to achieve fully automatic image preprocessing and adjustment.
It improves the accuracy and efficiency of parameter acquisition, realizes fully automated image generation and adjustment, ensures the continuity and natural transition of the projection screen, and improves the consistency and stability of the projection effect.
Smart Images

Figure CN118736033A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of complex projection of multiple projectors, and in particular, relates to an AI image generation method, medium and system for complex projection of multiple projectors. Background Art
[0002] Multi-projector complex projection technology has been widely used in recent years. It can be used for large-scale immersive presentations, conference room projections, virtual reality and other scenarios. Compared with a single projector, a multi-projector system can cover a larger projection area and can use the complementary advantages of different projectors to generate projection effects with higher resolution, contrast and color saturation.
[0003] Generally speaking, a multi-projector system consists of several projectors, multiple projection screens of different shapes, and a control system. Each projector needs to be individually calibrated and geometrically transformed according to its own position and projection angle to ensure the continuity and consistency of the final projection image. In addition, since there will be overlapping areas at the edges of multiple screens, special edge fusion processing is required to eliminate obvious transition marks. These complex image pre-processing processes usually require manual adjustment and optimization by professional technicians, which is labor-intensive and inefficient.
[0004] With regard to the existing multi-projector projection technology, the following main problems still exist:
[0005] 1. Screen shape and position information is difficult to obtain accurately. Existing methods usually rely on manual measurement or simple 3D scanning, which makes it difficult to accurately obtain the geometric parameters of each screen, thus affecting subsequent image calibration and geometric transformation.
[0006] 2. Low degree of automation, requiring a lot of manual intervention. Key steps such as image calibration, geometric transformation, and edge fusion usually require manual adjustments by professional technicians, making it difficult to achieve fully automated operations.
[0007] 3. The consistency and stability of the projection effect needs to be improved. Due to the complexity of the screen shape, position and projection parameters, it is difficult to ensure the continuity and smoothness of the entire projection image, and obvious transition marks are likely to appear. Summary of the invention
[0008] In view of this, the present invention provides an AI image generation method, medium and system for complex projection of multiple projectors, which can solve the technical problems in the prior art that key steps such as image calibration, geometric transformation and edge fusion usually rely on human experience and require manual adjustment by professional technicians and cannot be automated.
[0009] The present invention is achieved in that:
[0010] A first aspect of the present invention provides an AI image generation method for complex projection of multiple projectors, which includes the following steps:
[0011] S10, obtaining shapes and three-dimensional coordinates of multiple screens;
[0012] S20, obtaining the basic image projected by each projector onto the corresponding screen, calculating the collection of each basic image and the original image projected by the corresponding projector, and recording the area where the basic image overlaps with the original image as the display area, recording the area where only the original image is in the collection as the non-display area, and recording the area where only the basic image is in the collection as the overflow display area;
[0013] S30, combining the shape, three-dimensional coordinates of each projector and its corresponding display area, non-display area and overflow display area into a multi-screen parameter set;
[0014] S40, inputting the multi-screen parameter set as a control code and the generated text input by the user into a pre-trained multi-segmented region image generation AI model to generate images of the multi-segmented regions;
[0015] S50, segmenting the images of the multiple segmented areas according to the screen parameters to obtain images projected by each projector, and sending the images to the corresponding projectors for projection;
[0016] S60, performing geometric transformation on the image projected by each projector to match the shape and position of the actual projection screen;
[0017] S70, performing edge fusion processing on the images projected by each projector, so that the projection of each screen avoids edge overlap and unnatural transition;
[0018] S80, saving the image corresponding to each projector after the geometric transformation and edge fusion processing adjustment for later display projection.
[0019] On the basis of the above technical solution, the AI image generation method for complex projection of multiple projectors of the present invention can also be improved as follows:
[0020] The basic image is a calibration pattern of small black and white squares.
[0021] The training steps of the multi-segmented region image generation AI model specifically include:
[0022] Step 1: Collect a large number of training data sets containing images of multiple segmented regions;
[0023] Step 2: Build a multi-segmentation region image generation AI model based on a generative adversarial network, including a generator network and a discriminator network;
[0024] Step 3: Use the training data set to alternately optimize the parameters of the generator network and the discriminator network, so that the generator network can generate realistic multi-segmented region images.
[0025] The method for segmenting the image of the multiple segmented areas according to the screen parameters is an instance segmentation algorithm based on mask-RCNN.
[0026] The mask-RCNN algorithm extracts a separate image corresponding to each projector from a multi-segmented region image by detecting the target bounding box and generating a semantic segmentation mask.
[0027] The specific steps of S70 include:
[0028] Step 1: Apply a Gaussian blur filter to the overlapping area of the projection images of adjacent screens to smooth the brightness and color of the transition area;
[0029] Step 2: Adjust the brightness and contrast of the overlapping area according to the perception characteristics of the human eye.
[0030] The geometric transformation adopts an image projection transformation algorithm based on perspective transformation.
[0031] The edge fusion processing includes applying Gaussian blur filtering in the overlapping area of adjacent screens, and adjusting the brightness and contrast of the overlapping area according to the perception characteristics of the human eye.
[0032] Furthermore, the generative adversarial network model alternately optimizes the parameters of the generator network and the discriminator network during the training process to minimize the gap between the generator output image and the real image, while maximizing the discriminator's recognition accuracy of the generated image.
[0033] A second aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores program instructions, and when the program instructions are executed, they are used to execute the above-mentioned AI image generation method for complex projection of multiple projectors.
[0034] A third aspect of the present invention provides an AI-generated image system for complex projection by multiple projectors, which includes the above-mentioned computer-readable storage medium.
[0035] Compared with the prior art, the AI image generation method, medium and system for complex projection of multiple projectors provided by the present invention have the following beneficial effects:
[0036] 1. Use 3D scanning technology to automatically obtain the geometric parameters of multiple screens. This method can accurately measure the length, width, height, curvature and tilt angle of each screen, providing reliable input data for subsequent image processing. Compared with traditional manual measurement methods, this automated 3D scanning method greatly improves the accuracy and efficiency of parameter acquisition.
[0037] 2. Use special calibration patterns to calculate the display area, non-display area, and overflow display area of each projector. By comparing the calibration pattern and the original image, the effective display area of each screen can be accurately divided, providing a basis for image segmentation and geometric transformation. This analysis method based on calibration patterns is more objective and accurate than traditional manual annotation.
[0038] 3. Construct a multi-segmented region image generation model based on the Generative Adversarial Network (GAN). The model can automatically generate complex images for multi-screen projection based on the acquired multi-screen parameters and the content input by the user. Compared with manual generation methods based on templates or rules, the GAN model has stronger expressiveness and generalization, and can adapt to various complex projection scenarios.
[0039] 4. Use algorithms such as image segmentation, geometric transformation and edge fusion to achieve fully automatic image preprocessing. This method can automatically complete the segmentation, deformation and edge processing of the projected image, greatly reducing the need for manual adjustment. At the same time, through geometric transformation and edge fusion, the continuity and natural transition of the final projected image can be ensured, improving the consistency and stability of the projection effect.
[0040] In general, the AI image generation method proposed in the present invention makes full use of computer vision, image processing, deep learning and other technologies to achieve fully automated image generation and adjustment for complex projection scenes with multiple projectors. It solves the technical problem that key steps such as image calibration, geometric transformation and edge fusion in the prior art usually rely on human experience and require manual adjustment by professional technicians and cannot be automated. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0042] Figure 1 A flow chart of the method provided by the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0044] like Figure 1 As shown, it is a flow chart of an AI image generation method for complex projection of multiple projectors provided by the present invention, and the method comprises the following steps:
[0045] S10, obtaining shapes and three-dimensional coordinates of multiple screens;
[0046] S20, obtaining the basic image projected by each projector onto the corresponding screen, calculating the set of each basic image and the original image projected by the corresponding projector, and recording the area where the basic image and the original image overlap as the display area, recording the area where only the original image is in the set as the non-display area, and recording the area where only the basic image is in the set as the overflow display area;
[0047] S30, combining the shape, three-dimensional coordinates of each projector and its corresponding display area, non-display area and overflow display area into a multi-screen parameter set;
[0048] S40, inputting the multi-screen parameter set as a control code and the generated text input by the user into a pre-trained multi-segmented region image generation AI model to generate images of the multi-segmented regions;
[0049] S50, segmenting the images of the multiple segmented areas according to the screen parameters, obtaining the images projected by each projector, and sending the images to the corresponding projectors for projection;
[0050] S60, performing geometric transformation on the image projected by each projector to match the shape and position of the actual projection screen;
[0051] S70, performing edge fusion processing on the images projected by each projector, so that the projection of each screen avoids edge overlap and unnatural transition;
[0052] S80, saving the image corresponding to each projector after the geometric transformation and edge fusion processing adjustment for later display projection.
[0053] The specific implementation methods of the above steps are described in detail below:
[0054] The specific implementation of step S10 is as follows:
[0055] Obtaining the shapes and three-dimensional coordinates of multiple screens is one of the key steps of the invention. First, it is necessary to use three-dimensional scanning technology to scan the projection area to obtain the geometric shape of each screen and its coordinate position in three-dimensional space. Specifically, a laser scanner or a structured light scanner can be used to perform a three-dimensional scan of the projection area to obtain point cloud data for each screen. Then, a three-dimensional reconstruction algorithm is applied, such as a three-dimensional reconstruction method based on an iterative closest point (ICP) algorithm, to extract the geometric shape information of each screen from the point cloud data, including the length, width, height, curvature, inclination angle, etc. of the screen. At the same time, the coordinate position information of each screen in three-dimensional space, that is, the three-dimensional coordinates of the center point of each screen, is obtained through a three-dimensional reconstruction algorithm. These screen shapes and position information will be used as input parameters for subsequent steps.
[0056] The specific implementation of step S20 is as follows:
[0057] Obtaining the basic image projected by each projector onto the corresponding screen is the core content of this step. First, a special calibration pattern consisting of small black and white squares needs to be designed. Then, this calibration pattern is projected onto each screen respectively, and a high-speed camera is used to record the basic image projected by each projector onto the corresponding screen. Next, it is necessary to calculate the collection of each basic image and its corresponding original image. Specifically, an image comparison algorithm, such as the structural similarity index (SSIM) algorithm, can be used to compare the basic image and the original image pixel by pixel, and obtain their overlapping area (display area), the area that only exists in the original image (undisplayed area), and the area that only exists in the basic image (overflow display area). This information will be used as input parameters for subsequent steps.
[0058] The specific implementation of step S30 is as follows:
[0059] The purpose of this step is to combine the shape, 3D coordinates of each projector and its corresponding display area, undisplayed area and overflow display area into a multi-screen parameter set. First, a data structure of a multi-screen parameter set needs to be established, including the following fields:
[0060] 1. Projector ID: used to uniquely identify each projector
[0061] 2. Screen shape: including geometric parameters such as length, width, height, curvature, tilt angle, etc.
[0062] 3. Screen 3D coordinates: the coordinates of the center point of the screen in 3D space
[0063] 4. Display area: the area where the base image and the original image overlap
[0064] 5. Undisplayed area: Area that only exists in the original image
[0065] 6. Overflow display area: the area that exists only in the base image
[0066] Then, the information obtained in steps S10 and S20 is filled into the parameter set to form a complete multi-screen parameter set, which will serve as an important input for subsequent steps.
[0067] The specific implementation of step S40 is as follows:
[0068] The multi-screen parameter set is used as a control code, and the generated text entered by the user is input into the pre-trained multi-segmented region image generation AI model to generate images of the multi-segmented regions. The multi-segmented region image generation AI model mentioned here is a generative adversarial network (GAN) model based on deep learning. Its structure includes:
[0069] 1. Generator Network: The input of this network includes multiple screen parameter sets and generated text input by the user, and the output is an image with multiple segmented regions. The core of the generator network is a transformer-based text encoding module and a convolutional neural network-based image generation module.
[0070] 2. Discriminator Network: The input of this network is the image generated by the generator network and the real multi-segmented region image, and the output is the authenticity score of the image. The discriminator network adopts the architecture based on convolutional neural network.
[0071] 3. Training process: First, collect a large number of data sets containing multi-segmented region images as training data. Then, alternately optimize the parameters of the generator network and the discriminator network so that the generator network can generate realistic multi-segmented region images. The optimization objective function includes minimizing the gap between the generator output image and the real image, and maximizing the recognition accuracy of the discriminator for the generated image.
[0072] Through this generative adversarial training method, we can eventually obtain a highly generalized multi-segmented region image generation AI model.
[0073] The specific implementation of step S50 is as follows:
[0074] The generated multi-segmented region image is segmented according to the multi-screen parameter set to obtain the image projected by each projector. Specifically, an image segmentation algorithm based on computer vision can be used, such as an instance segmentation algorithm based on mask-RCNN. The algorithm can identify the area corresponding to each screen in the multi-segmented region image and extract each area as a separate projection image. The basis for segmentation is the multi-screen parameter set established in step S30, which records the geometric shape and position information of each screen. Finally, a separate image that each projector needs to project is obtained.
[0075] The specific implementation of step S60 is as follows:
[0076] The image projected by each projector is geometrically transformed to match the shape and position of the actual projection screen. Specifically, an image geometric transformation algorithm based on perspective transformation can be used. First, a three-dimensional model of the screen is constructed based on the geometric parameters of each screen obtained in step S10. Then, each projected image is projected and transformed according to the shape and position of the corresponding screen using the projection transformation method of computer graphics. This ensures that the projected image is completely consistent with the actual screen and eliminates image distortion caused by the shape and position of the screen.
[0077] The specific implementation of step S70 is as follows:
[0078] The images projected by each projector are edge-blended so that the projection of each screen avoids edge overlap and unnatural transition. To this end, an edge fusion algorithm based on image processing can be used. Specifically, for the projected images of adjacent screens, a Gaussian blur filter is applied in their overlapping areas to smooth the brightness and color of the transition area, thereby eliminating obvious edge traces. At the same time, it is also possible to consider appropriately adjusting the brightness and contrast of the overlapping area according to the perception characteristics of the human eye so that the entire projection picture looks natural and coordinated. Through edge fusion processing, the continuity and smoothness of the multi-screen projection picture can be ensured.
[0079] The specific implementation of step S80 is as follows:
[0080] Save the image corresponding to each projector after the geometric transformation and edge fusion processing adjustment for later display projection. Specifically, the final projection image of each projector can be saved as a high-resolution image file, such as PNG format. At the same time, it is also necessary to record the projector ID corresponding to each image file so that the image can be correctly sent to the corresponding projector device during subsequent projection. These pre-processed image files can be used as an image library for subsequent real-time projection system calls, greatly improving the stability and reliability of the projection effect.
[0081] In order to better understand the solution of the present invention, the specific implementation of the method is now described in more detail in conjunction with a specific formula:
[0082] The specific implementation of step S10 is as follows:
[0083] Obtaining the shapes and three-dimensional coordinates of multiple screens is one of the key steps of the invention. First, it is necessary to use three-dimensional scanning technology to scan the projection area to obtain the geometric shape of each screen and its coordinate position in three-dimensional space.
[0084] Specifically, a laser scanner or a structured light scanner can be used to perform a three-dimensional scan of the projection area to obtain the point cloud data of each screen. Assume that the point cloud data contains N points, and the coordinates of the i-th point are denoted as p i =(x i ,y i , z i ).
[0085] Then, a 3D reconstruction method based on the Iterative Closest Point (ICP) algorithm is applied to extract the geometric shape information of each screen from the point cloud data. The basic idea of the ICP algorithm is:
[0086] Initialize the 3D model parameters of each screen, such as length l, width w, height h, curvature κ, and tilt angle θ.
[0087] These model parameters are optimized iteratively to minimize the distance error between the point cloud data and the model. Specifically, the following objective function can be defined:
[0088]
[0089] Where T(·) represents the point p in the model coordinate system j Function to transform to world coordinate system.
[0090] By optimizing the objective function E, the optimal geometric parameters of each screen are obtained.
[0091] Finally, the 3D reconstruction algorithm can also be used to obtain the coordinate position information of each screen in the 3D space, that is, the 3D coordinates (x c ,y c , z c ). These screen shape and position information will be used as input parameters for subsequent steps.
[0092] The specific implementation of step S20 is as follows:
[0093] The core of this step is to obtain the basic image projected by each projector onto the corresponding screen. First, a special calibration pattern needs to be designed, which is composed of small black and white squares. Assume that the calibration pattern consists of M×N small squares, and the size of each small square is a×a.
[0094] Then, this calibration pattern is projected onto each screen, and a high-speed camera is used to record the base image projected by each projector onto the corresponding screen. Assume that the size of the base image is W×H pixels. Next, the union of each base image and its corresponding original image needs to be calculated.
[0095] Specifically, the structural similarity index (SSIM) algorithm can be used to compare the base image and the original image pixel by pixel, and obtain their overlapping area (display area), the area that only exists in the original image (undisplay area), and the area that only exists in the base image (overflow display area). The mathematical expression of the SSIM algorithm is as follows:
[0096]
[0097] Among them, μ x and μ y Represent the average brightness of images x and y respectively, and Represents the variance of images x and y, σ xy represents their covariance, c 1 and c 2 is a constant used to prevent the denominator from being zero.
[0098] By calculating the SSIM value of the base image and the original image, their similarity can be obtained. If the SSIM value is higher than a certain threshold τ 1 , then the pixel is considered to belong to the display area; if the SSIM value is lower than a certain threshold τ 2 , then the pixel is considered to belong to the undisplayed area; the remaining pixels belong to the overflowed display area. This information will be used as input parameters for subsequent steps.
[0099] The specific implementation of step S30 is as follows:
[0100] The purpose of this step is to combine the shape, 3D coordinates of each projector and its corresponding display area, undisplayed area and overflow display area into a multi-screen parameter set. First, a data structure of a multi-screen parameter set needs to be established, including the following fields:
[0101] Projector ID: used to uniquely identify each projector, denoted as i∈{1, 2, …, K}.
[0102] Screen shape parameters: including length l i 、Widthi , high h i , curvature κ i and the tilt angle θ i .
[0103] Screen 3D coordinates: the coordinates of the center point of the screen in 3D space
[0104] Display area: represented as a binary mask image 1 represents the display area, and 0 represents other areas.
[0105] Undisplayed area: represented as a binary mask image 1 indicates the undisplayed area, and 0 indicates other areas.
[0106] Overflow display area: represented as a binary mask image 1 represents the overflow display area, and 0 represents other areas.
[0107] Then, the information obtained in steps S10 and S20 is filled into the parameter set to form a complete multi-screen parameter set, which will serve as an important input for subsequent steps.
[0108] The specific implementation of step S40 is as follows:
[0109] The multi-screen parameter set is used as a control code, and the generated text input by the user is input into a pre-trained multi-segmented region image generation AI model to generate images of the multi-segmented regions. The multi-segmented region image generation AI model mentioned here is a generative adversarial network (GAN) model based on deep learning.
[0110] Its structure includes:
[0111] Generator Network: The input of this network includes multiple screen parameter sets and the generated text t input by the user, the output is an image I with multiple segmented regions multi The core of the generator network is a transformer-based text encoding module and a convolutional neural network-based image generation module.
[0112] Discriminator Network: The input of this network is the image I generated by the generator network multi And the real multi-segmented region image I real , the output is the authenticity score D(I) of the image. The discriminator network adopts a convolutional neural network-based architecture.
[0113] Training process: First, collect a large number of training data sets containing multi-segmented region images {Ireal , l, w, h, κ, θ, x c ,y c , z c , M display , M undisplay , M overflow Then, the parameters of the generator network and the discriminator network are optimized alternately so that the generator network can generate realistic multi-segmented region images. The optimization objective function includes:
[0114]
[0115] Among them, G represents the generator network and D represents the discriminator network.
[0116] Through this generative adversarial training method, we can eventually obtain a highly generalized multi-segmented region image generation AI model.
[0117] The specific implementation of step S50 is as follows:
[0118] The generated multi-segmented region image I multi According to the multi-screen parameter set, the image projected by each projector is obtained. i Specifically, an image segmentation algorithm based on computer vision may be used, such as an instance segmentation algorithm based on mask-RCNN. The algorithm may identify the regions corresponding to each screen in a multi-segmented region image and extract each region as a separate projection image.
[0119] The basic process of the mask-RCNN algorithm is as follows:
[0120] Input multi-segmented region image I multi and the corresponding multi-screen parameter set.
[0121] Use convolutional neural network to extract the feature map F of the image.
[0122] Generate a series of candidate bounding boxes {B j} and predict whether each bounding box contains an object and the category of the object.
[0123] For each detected object, generate a semantic segmentation mask M j , representing the precise outline of the target.
[0124] The mask {M j} corresponds to the multi-screen parameter set to obtain the image projected by each projector {I i}.
[0125] Through this algorithm, the individual image that each projector needs to project can be accurately extracted from the multi-segmented area image.
[0126] The specific implementation of step S60 is as follows:
[0127] For each projector projected image {I i} Perform geometric transformation to match the shape and position of the actual projection screen. Specifically, an image geometric transformation algorithm based on perspective transformation can be used.
[0128] First, a three-dimensional model of the screen is constructed based on the geometric parameters of each screen obtained in step S10. Assume that the coordinates of the four vertices of each screen are in
[0129] Then, using the projection transformation method of computer graphics, each projection image I i The projection transformation is performed according to the shape and position of the corresponding screen. The specific transformation process is as follows:
[0130] Define Image I i The coordinates of the four vertices on the 2D plane in
[0131] Construct the perspective transformation matrix H i , so that The calculation formula of the perspective transformation matrix is:
[0132]
[0133] 3. For the input image I i Apply perspective transformation H i , and get the transformed image I′ i :
[0134] I′ i =H i I i
[0135] This ensures that the projected image I' i It perfectly matches the actual screen, eliminating image distortion caused by the shape and position of the screen.
[0136] The specific implementation of step S70 is as follows:
[0137] For each projector projected image {I′ i}Perform edge fusion processing to prevent edge overlap and unnatural transition of projection on each screen. To this end, an edge fusion algorithm based on image processing can be used.
[0138] Specifically, for the projection image I′ of the adjacent screen iand I′ i+1 , apply a Gaussian blur filter in their overlapping area to smooth the brightness and color of the transition area, thereby eliminating obvious edge traces. The mathematical expression of the Gaussian blur filter is:
[0139]
[0140] Among them, G(i, j; σ) is the Gaussian kernel function:
[0141]
[0142] The standard deviation σ here can be determined according to the width of the overlapping area, for example, σ=0.1w, where w is the width of the overlapping area.
[0143] At the same time, we can also consider adjusting the brightness and contrast of the overlapping area appropriately according to the perception characteristics of the human eye, so that the entire projection image looks natural and coordinated. Specifically, we can define a weighting coefficient α(x, y) to control the brightness and contrast of the overlapping area:
[0144] I final (x, y) = α(x, y)·I blend (x, y) + (1-α(x, y)) · [I′ i (x,y)+I′ i+1 (x,y)] / 2
[0145] Among them, α(x, y) can be defined according to the relative distance of the pixel position (x, y) in the overlapping area, for example:
[0146]
[0147] Among them, d 1 (x, y) and d 2 (x, y) represents pixels (x, y) to I' i and I′ i+1 Distance to the border.
[0148] Through edge fusion processing, the continuity and smoothness of multi-screen projection images can be ensured.
[0149] The variables used are explained in the following table:
[0150]
[0151]
[0152] A second aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores program instructions, and when the program instructions are executed, they are used to execute the above-mentioned AI image generation method for complex projection of multiple projectors.
[0153] A third aspect of the present invention provides an AI-generated image system for complex projection by multiple projectors, which includes the above-mentioned computer-readable storage medium.
[0154] Specifically, the principle of the present invention is to combine computer vision and deep learning technology to achieve fully automated image generation and adjustment of complex projection scenes of multiple projectors. Specifically, the following key technologies are included:
[0155] 1. 3D scanning and reconstruction technology: Use a laser scanner or structured light scanner to perform 3D scanning on the projection area to obtain the point cloud data of each screen. Then, a 3D reconstruction method based on the iterative closest point (ICP) algorithm is applied to extract the geometric shape parameters of each screen from the point cloud data, including length, width, height, curvature, and tilt angle. Through this automated 3D scanning and reconstruction, the geometric features of multiple screens can be accurately obtained, providing reliable input data for subsequent image processing.
[0156] 2. Analysis of display area based on calibration pattern: Design a special calibration pattern consisting of black and white small squares, project it onto each screen, and use high-speed camera to record the basic image. Then use the structural similarity index (SSIM) algorithm to compare the basic image and the original image pixel by pixel to divide the display area, non-display area and overflow display area of each screen. This automatic analysis method based on calibration pattern can accurately obtain the effective projection area of each screen, providing a basis for subsequent image segmentation and geometric transformation.
[0157] 3. Multi-segmented region image generation based on GAN: A multi-segmented region image generation model based on generative adversarial network (GAN) is constructed. The model consists of a generator network and a discriminator network. The input of the generator network is the acquired multi-screen parameters and the content input by the user, and the output is a complex image for multiple segmented regions. The discriminator network distinguishes the image output by the generator from the real image, and provides feedback information to optimize the performance of the generator. Through this generative adversarial training method, a highly generalized multi-segmented region image generation model can be obtained in the end.
[0158] 4. Automated image preprocessing based on image processing: Use computer vision-based image segmentation algorithms, such as mask-RCNN, to accurately extract the projection area corresponding to each screen from the generated multi-segmented area images. Then apply a geometric transformation algorithm based on perspective transformation to project each projection image according to the shape and position of the corresponding screen to eliminate image distortion caused by the shape and position of the screen. Finally, use edge fusion algorithms such as Gaussian blur filtering and brightness / contrast adjustment to process the transition of adjacent screen projection areas to ensure the continuity and natural transition of the entire projection image.
[0159] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
[0160] The following is a simple embodiment of the present invention: This embodiment is directed to a multi-projector projection system set up in a large exhibition hall. The entire projection area consists of 9 screens of irregular shapes, which are projected by 9 projectors respectively. The length, width, height, curvature and tilt angle of each screen are shown in Table 1:
[0161] Table 1 Geometric parameters of nine screens
[0162] Screen Length(m) Width(m) Height(m) Curvature Tilt angle (°) 1 6.2 3.5 0.2 0.02 5 2 5.8 4.1 0.3 0.03 8 3 7.2 4.2 0.4 0.01 3 4 5.5 3.8 0.25 0.02 6 5 6.8 4.5 0.35 0.015 4 6 4.9 3.6 0.28 0.025 7 7 6.4 4.3 0.32 0.018 5 8 5.2 3.9 0.27 0.022 6 9 7.0 4.6 0.38 0.012 4
[0163] First, a structured light scanner such as Kinect v2 was used to perform a 3D scan of the entire projection area to obtain the point cloud data of each screen. Then, a 3D reconstruction method based on the ICP algorithm was applied to extract the geometric parameters of each screen from the point cloud data. The results are shown in Table 1. These parameters will serve as important inputs for subsequent steps.
[0164] Next, we designed a calibration pattern of 3840×2160 black and white squares, projected it onto nine screens, and used a high-speed camera (120fps) to record the basic image of each projector. By comparing the basic image with the original pattern, we used the SSIM algorithm to calculate the display area, non-display area, and overflow display area of each screen.
[0165] Based on the screen parameters and display area analysis results obtained above, a GAN-based multi-segmented region image generation model was constructed. The input of the generator network includes the geometric parameters of the 9 screens (length, width, height, curvature, tilt angle and 3D coordinates) and the generated text entered by the user, and the output is a multi-segmented region image with a size of 3840×2160 pixels. The discriminator network inputs the generated image and the real multi-segmented region image, and outputs the authenticity score of the image.
[0166] During the training process, a dataset containing 2,000 multi-segmented region images was used, and the parameters of the generator and discriminator were alternately optimized, and finally a highly generalized multi-segmented region image generation model was obtained.
[0167] With the trained image generation model, multi-segmented area images for the projection system can be generated based on the obtained multi-screen parameters and the content input by the user.
[0168] Next, the instance segmentation algorithm based on mask-RCNN was used to accurately extract the individual images corresponding to each projector from this multi-segmented region image. Then, the perspective transformation method of computer graphics was used to geometrically transform each projected image so that it completely matched the shape and position of the actual screen. Finally, Gaussian blur filtering was applied to the overlapping areas of adjacent screens, and the brightness and contrast were adjusted according to the perception characteristics of the human eye to complete the edge fusion process.
[0169] Technical effect evaluation:
[0170] In order to evaluate the technical effect of the method of the present invention, 10 professional audiences were invited to participate in the evaluation of the on-site projection effect. The evaluation content includes: 1) the continuity and natural transition of the projected image; 2) the degree of geometric distortion of each screen; 3) the brightness uniformity and color saturation of the overall image. The score adopts a standard of 1-10 points, with 10 points representing the best.
[0171] In terms of the continuity and naturalness of the projection image, the average score of the method of the present invention is 9.2 points, which is much higher than the traditional manual calibration and adjustment method. This is mainly due to the geometric transformation and edge fusion algorithm adopted, which can ensure the seamless connection between the projections of each screen. In terms of geometric distortion, the average score of this method is 8.9 points, which is also significantly better than manual adjustment, thanks to the high precision of the screen parameters obtained by three-dimensional scanning. In terms of brightness and color, the average score is 8.7 points, which is slightly better than the traditional method, mainly because the optimization adjustment is made for the human eye perception characteristics during edge fusion.
Claims
1. An AI image generation method for complex projection of multiple projectors, characterized in that: The following steps are involved: S10, obtaining shapes and three-dimensional coordinates of multiple screens; S20, obtaining the basic image projected by each projector onto the corresponding screen, calculating the collection of each basic image and the original image projected by the corresponding projector, and recording the area where the basic image overlaps with the original image as the display area, recording the area where only the original image is in the collection as the non-display area, and recording the area where only the basic image is in the collection as the overflow display area; S30, combining the shape, three-dimensional coordinates of each projector and its corresponding display area, non-display area and overflow display area into a multi-screen parameter set; S40, inputting the multi-screen parameter set as a control code and the generated text input by the user into a pre-trained multi-segmented region image generation AI model to generate images of the multi-segmented regions; S50, segmenting the images of the multiple segmented areas according to the screen parameters to obtain images projected by each projector, and sending the images to the corresponding projectors for projection; S60, performing geometric transformation on the image projected by each projector to match the shape and position of the actual projection screen; S70, performing edge fusion processing on the images projected by each projector, so that the projection of each screen avoids edge overlap and unnatural transition; S80, saving the image corresponding to each projector after the geometric transformation and edge fusion processing adjustment for later display projection.
2. The AI image generation method for complex projection of multiple projectors according to claim 1, characterized in that: The basic image is a calibration pattern of small black and white squares.
3. The AI image generation method for complex projection of multiple projectors according to claim 1, characterized in that: The training steps of the multi-segmented region image generation AI model specifically include: Step 1: Collect a large number of training data sets containing images of multiple segmented regions; Step 2: Build a multi-segmentation region image generation AI model based on a generative adversarial network, including a generator network and a discriminator network; Step 3: Use the training data set to alternately optimize the parameters of the generator network and the discriminator network, so that the generator network can generate realistic multi-segmented region images.
4. The AI image generation method for complex projection of multiple projectors according to claim 1, characterized in that: The method for segmenting the image of the multiple segmented areas according to the screen parameters is an instance segmentation algorithm based on mask-RCNN.
5. The AI image generation method for complex projection of multiple projectors according to claim 1, characterized in that: The specific steps of S70 include: Step 1: Apply a Gaussian blur filter to the overlapping area of the projection images of adjacent screens to smooth the brightness and color of the transition area; Step 2: Adjust the brightness and contrast of the overlapping area according to the perception characteristics of the human eye.
6. The AI image generation method for complex projection of multiple projectors according to claim 1, characterized in that: The geometric transformation adopts an image projection transformation algorithm based on perspective transformation.
7. The AI image generation method for complex projection of multiple projectors according to claim 1, characterized in that: The edge fusion process includes applying Gaussian blur filtering in the overlapping area of adjacent screens, and adjusting the brightness and contrast of the overlapping area according to the perception characteristics of the human eye.
8. The AI image generation method for complex projection of multiple projectors according to claim 3 is characterized in that: The generative adversarial network model alternately optimizes the parameters of the generator network and the discriminator network during the training process to minimize the gap between the generator output image and the real image, while maximizing the discriminator's recognition accuracy of the generated image.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, which, when executed, are used to execute the AI image generation method for complex projection of multiple projectors as described in any one of claims 1-8.
10. An AI-generated image system for complex projection by multiple projectors, characterized in that: A computer-readable storage medium comprising the computer-readable storage medium of claim 9.
Citation Information
Cited By
Projection device and operating method thereof
US12720026B2
