Adaptive hemispherical screen projection automatic correction method and storage medium
Through the adaptive automatic correction method of hemispheric screen projection, error back propagation is used to automatically adjust the projector parameters, which solves the problem of tedious manual adjustments when projecting to the dome screen, and achieves distortion-free display of the projected image on the dome screen.
Patent Information
- Application Number
- CN202211367241.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-11-03
AI Technical Summary
The existing technology requires manual adjustment of multiple parameters when projecting onto a dome screen, resulting in a cumbersome projection correction process. In particular, it is difficult to automatically correct image distortion when a single projector projects in a dome screen.
Adopting an adaptive automatic correction method for hemispheric screen projection, through pre-built-in static pictures, the correction module is used to calculate debugging and optimal parameter matrices, combined with error back propagation, to automatically adjust the parameters of the projector to ensure that the projection picture is distortion-free on the dome screen. .
It realizes automatic correction of projector parameters with less manual operation, so that the projection picture is displayed on the dome screen without distortion, improving projection efficiency and accuracy.
Smart Images

Figure CN115695757B
Abstract
Description
Technical Field
[0001] The invention relates to the field of projection technology, and in particular to an adaptive hemispherical screen projection automatic correction method and a storage medium. Background Art
[0002] The main solution to the problem of image distortion when projecting onto a dome screen or other irregular screens is to correct the projection using a specific correction device. Common correction methods include geometry. Geometric correction usually includes not only correcting the irregular image projected by the projector into a regular image that fits the projection screen, but also the fusion and splicing of images from multiple projectors. The main technology involved is image processing.
[0003] Projectors generally project onto regular planes. When projecting onto other irregular surfaces, the image will inevitably be distorted. Especially when projecting onto a spherical screen, the required technology is more complex and is divided into single projector (internal projection spherical screen) and multiple projectors (external projection spherical screen). Summary of the invention
[0004] The present invention proposes an adaptive hemispherical screen projection automatic correction method, which is only for the case where a single projector projects inside a spherical screen, and is used to solve the technical problem that the current projection correction method mainly relies on manual adjustment of various parameters, which is relatively troublesome.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] An adaptive hemispherical screen projection automatic correction method comprises the following steps:
[0007] S1. A static image used for calibration is pre-installed, and the projector projects the pre-set content, and the projected image is transmitted to the calibration module;
[0008] S2. The calculation matrix in the correction module constructs a debugging parameter matrix and an optimal parameter matrix according to the picture; if the picture is M*N, then the two parameter matrices in the correction module are both M*N, which is consistent with the size of the playback picture;
[0009] S3, treating the playback screen as an image, performing dot multiplication of each pixel in the image with the parameter of each corresponding position in the debugging parameter matrix;
[0010] S4, a camera fixed at the same position as the projector is capable of capturing the image projected by the entire spherical screen; the image captured by the camera is transmitted to the correction module;
[0011] S5, the correction module receives the image captured by the camera and processes it into a scale and size consistent with the image Image_ori transmitted by the projector; then the correction module calculates the absolute value and difference of each pixel on the two images, which is recorded as Error;
[0012] S6, the correction module saves the optimal parameter matrix according to the size of Error;
[0013] S7, the correction module updates the parameters in the debugging parameter matrix by back-propagating the Error;
[0014] S8. After all parameters in the debugging parameter matrix are updated, the steps S1-S7 are continuously cycled until the Error meets the set requirements;
[0015] S9. Update the optimal parameter matrix to the debugging parameter matrix and change to the normal playback mode.
[0016] Furthermore, the S3, treating the playback screen as an image, performing dot multiplication of each pixel in the image with the parameter of each corresponding position in the debugging parameter matrix, specifically includes assuming that Image_ori is the original image, Matrix is the debugging parameter matrix, and Image_new is the new image generated after the dot multiplication. Then, the value at the (i, j) position of Image_new has the following formula:
[0017] Image_new(i,j)=Image_ori(i,j)*Matrix(i,j)
[0018] If there are n debugging parameter matrices, then the Image_ori of the nth matrix is the Image_new output by the n-1th matrix, and the Image_new output by the nth matrix is directly projected onto the spherical screen.
[0019] Furthermore, the correction module in S6 saves the best parameter matrix according to the size of the Error. The specific method is that if the latest Error is smaller than the previous one, the best parameter matrix is replaced by the current debugging parameter matrix, otherwise it remains unchanged.
[0020] Furthermore, the correction module in S7 updates the parameters in the debugging parameter matrix by back-propagating the Error. The specific method is to calculate the parameter derivative of the matrix by the chain rule of differentiation; if the original parameter is P0, the new parameter is P1, and Error1 is the error transmitted to P0, then
[0021] P1 = P0-R*Error1
[0022] Where R is the correction rate control coefficient set manually by the correction rate controller.
[0023] Furthermore, the step S8 also includes or the debugging personnel determines whether the correction can be stopped according to the projection picture.
[0024] Furthermore, the step S9 also includes directly projecting the normal play mode picture to obtain the target spherical screen after the dot product of the updated debugging parameter matrix. At this time, the camera no longer captures the picture and no longer transmits it to the correction module.
[0025] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.
[0026] It can be seen from the above technical solution that the adaptive hemispherical screen projection automatic correction method of the present invention can correct the projection picture with less manual operation. Specifically, after the position of the projector is fixed, the projector is turned on, and the automatic correction device is turned on. The automatic correction device can automatically correct the projection parameters of the projector based on the actual projection result of the built-in test image and the automatic correction process in the above steps S1-S9, so that the projection effect meets the requirements, that is, it can be displayed normally on the hemispherical screen.
[0027] The present invention realizes automatic correction of the projected image of the projector on the hemispherical screen based on the method of error back propagation, so that the projected image of the projector can adapt to the hemispherical screen without distortion. The method of the present invention is different from other methods in that the automatic adjustment module involved can use error back propagation to automatically adjust the required matrix parameters according to the actual scene, so as to adapt to the current environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of the device structure of the present invention;
[0029] Figure 2 It is a method flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0031] like Figure 1 As shown, the adaptive hemispherical screen projection automatic correction method described in this embodiment includes a correction module and a correction rate controller, the correction module includes a calculation matrix module, and the calculation matrix is electrically connected to the correction rate controller, the projector and the camera respectively;
[0032] Normal projection can only be performed after the projector is automatically calibrated; Figure 2 As shown in the figure, the specific workflow of the projector's automatic calibration is as follows:
[0033] S1. During the automatic calibration of the projector, a static image for calibration needs to be pre-set. The projector projects the pre-set content. The projected image is transmitted to the calibration module;
[0034] S2. The calculation matrix in the correction module constructs the debugging parameter matrix and the optimal parameter matrix according to the picture. If the picture is M*N, the two parameter matrices in the correction module are both M*N, which is consistent with the size of the playback picture. The optimal parameter matrix is used to save the best parameters in the debugging parameter matrix, so the two structures are exactly the same. The number of constructed debugging parameter matrices may be n, and n is determined according to the specific scene and the content to be played, and can generally be pre-set by the laboratory.
[0035] S3. Treat the playback screen as an image, and perform dot multiplication between each pixel in the image and the parameters at each corresponding position in the debugging parameter matrix. That is, assume that Image_ori is the original image, Matrix is the debugging parameter matrix, and Image_new is the new image generated after dot multiplication. Then the value at the (i, j) position of Image_new has the following formula:
[0036] Image_new(i,j)=Image_ori(i,j)*Matrix(i,j)
[0037] If there are n debugging parameter matrices, then the Image_ori of the nth matrix is the Image_new output by the n-1th matrix, and the Image_new output by the nth matrix is directly projected onto the spherical screen.
[0038] S4. The camera fixed at the same position as the projector needs to be able to capture the image projected by the entire spherical screen. The image captured by the camera is transmitted to the correction module.
[0039] S5, the correction module receives the image captured by the camera, and processes it into a proportion and size consistent with the image Image_ori transmitted by the projector by scaling or other methods. Then the correction module calculates the absolute value and difference of each pixel on the two images, which is recorded as Error.
[0040] S6. The correction module saves the best parameter matrix according to the size of the Error. Specifically, if the latest Error is smaller than the previous one, the current debugging parameter matrix is used to replace the best parameter matrix, otherwise it remains unchanged.
[0041] S7, the correction module uses the Error to back propagate and update the parameters in the debugging parameter matrix. The specific method is to calculate the parameter derivative of the matrix through the chain derivation rule. If the original parameter is P0, the new parameter is P1, and Error1 is the error passed to P0, then
[0042] P1 = P0-R*Error1
[0043] Where R is the correction rate control coefficient set manually by the correction rate controller.
[0044] S8. After all parameters in the debugging parameter matrix are updated, the steps S1-S7 are continuously cycled until the Error meets certain requirements, or the debugging personnel determines whether the calibration can be stopped according to the projection image.
[0045] S9, update the optimal parameter matrix to the debugging parameter matrix, and transform to the normal play mode. The normal play mode picture is directly projected to obtain the target spherical screen after the dot product of the updated debugging parameter matrix. At this time, the camera no longer shoots the picture and no longer transmits it to the correction module.
[0046] In summary, the adaptive hemispherical screen projection automatic correction method of the embodiment of the present invention can correct the projection image with less manual operation. Specifically, after the position of the projector is fixed, turn on the projector and turn on the automatic correction device. The automatic correction device can automatically correct the projection parameters of the projector according to the actual projection result of the built-in test image and the automatic correction process in the above-mentioned S1-S9 steps, so that the projection effect meets the requirements, that is, it can be displayed normally on the hemispherical screen. The adaptive hemispherical screen projection automatic correction method of the example of the present invention can be applied to scene simulation, such as VR tourism. The seats are dynamically balanced to ensure that the eyes are in the center of the screen, which can achieve a better experience effect.
[0047] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An adaptive hemispherical screen projection automatic correction method, characterized in that: The following steps are included: S1. A static image used for calibration is pre-installed, and the projector projects the pre-set content, and the projected image is transmitted to the calibration module; S2. The calculation matrix in the correction module constructs a debugging parameter matrix and an optimal parameter matrix according to the picture; if the picture is M*N, then the two parameter matrices in the correction module are both M*N, which is consistent with the size of the playback picture; S3, treating the playback screen as an image, performing dot multiplication of each pixel in the image with the parameter of each corresponding position in the debugging parameter matrix; S4, a camera fixed at the same position as the projector is capable of capturing the image projected by the entire spherical screen; the image captured by the camera is transmitted to the correction module; S5, the correction module receives the image captured by the camera and processes it into a scale and size consistent with the image Image_ori transmitted by the projector; then the correction module calculates the absolute value and difference of each pixel on the two images, which is recorded as Error; S6, the correction module saves the optimal parameter matrix according to the size of Error; S7, the correction module updates the parameters in the debugging parameter matrix by back-propagating the Error; S8. After all parameters in the debugging parameter matrix are updated, the steps S1-S7 are continuously cycled until the Error meets the set requirements; S9. Update the optimal parameter matrix to the debugging parameter matrix and change to the normal playback mode.
2. The adaptive hemispherical screen projection automatic correction method according to claim 1, characterized in that: S3, treating the playback screen as an image, and performing dot multiplication of each pixel in the image with the parameters of each corresponding position in the debugging parameter matrix, specifically includes assuming that Image_ori is the original image, Matrix is the debugging parameter matrix, and Image_new is the new image generated after the dot multiplication. Then, the value at the (i, j) position of Image_new has the following formula: Image_new(i,j)=Image_ori(i,j) * Matrix(i,j) If there are n debugging parameter matrices, then the Image_ori of the nth matrix is the Image_new output by the n-1th matrix, and the Image_new output by the nth matrix is directly projected onto the spherical screen.
3. The adaptive hemispherical screen projection automatic correction method according to claim 1, characterized in that: The S6, correction module saves the best parameter matrix according to the size of the Error. The specific method is that if the latest Error is smaller than the previous one, the best parameter matrix is replaced by the current debugging parameter matrix, otherwise it remains unchanged.
4. The adaptive hemispherical screen projection automatic correction method according to claim 1, characterized in that: The S7, correction module updates the parameters in the debugging parameter matrix by back-propagating the Error. The specific method is to calculate the parameter derivative of the matrix by the chain derivation rule; if the original parameter is P0, the new parameter is P1, and Error1 is the error transmitted to P0, then P1 = P0-R*Error1 Where R is the correction rate control coefficient set manually by the correction rate controller.
5. The adaptive hemispherical screen projection automatic correction method according to claim 1, characterized in that: The step S8 also includes or the debugging personnel determining whether to stop the calibration according to the projection picture.
6. The adaptive hemispherical screen projection automatic correction method according to claim 1, characterized in that: The step S9 also includes directly projecting the normal play mode picture to obtain the target spherical screen after the dot multiplication of the updated debugging parameter matrix. At this time, the camera no longer captures the picture and no longer transmits it to the correction module.
7. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Multi-channel correction splicing method for curved screen
CN111062869A
Multimedia space real-time broadcast control fusion debugging method and integrated system
CN114679575A
