Projector distortion correction method and projector
The projection angle and focal length are determined by lidar, combined with the projection surface dimension characteristics, the distortion characteristics of the projector are identified and corrected, which solves the distortion problem during the projection process and improves the projection effect.
Patent Information
- Application Number
- CN202410691885.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-05-31
AI Technical Summary
The projector is prone to distortion during the projection process, resulting in deformation of the projected image and poor projection effect.
By determining the projection angle and projection focal length of the projection device based on the lidar, combining the dimensional characteristics of the projection surface, the distortion characteristics of the imaging device and the projection image are identified, and the correction parameters are determined for distortion correction.
Accurate projection of the projector is achieved, avoiding deformation of the projected image and improving the projection effect.
Smart Images

Figure CN118590631B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of projection correction, and in particular to a projector distortion correction method and a projector. Background Art
[0002] A projector is a device that can project multimedia information such as images or videos onto a projection surface. It can be connected to other electronic devices through different interfaces to obtain images or videos stored in the electronic devices and project the images or videos onto the projection plane.
[0003] Projection distortion usually refers to the distortion or distortion of the image during the projection process due to aberration. Under ideal conditions, the spherical waves emitted by the point light source on the main axis of the mask will converge on the wafer to form an ideal spherical surface after passing through the ideal projection lens. However, due to the distortion of the actual projection lens, projection distortion will cause the projection image to be deformed, and the projection effect needs to be improved. Summary of the invention
[0004] The invention provides a projector distortion correction method and a projector, which are used to solve the problems raised in the background technology.
[0005] A method for correcting distortion of a projector, comprising:
[0006] S1: Based on the laser radar and the size characteristics of the projection surface, determine the projection angle and projection focal length of the projection device;
[0007] S2: using a projection device to project the image formed by the imaging device according to the projection angle and projection focal length, and projecting it onto a projection surface to obtain a projection image;
[0008] S3: Identify imaging parameters of the imaging device during the projection process to obtain a first distortion feature, and identify image features of the projection image on the projection surface to obtain a second distortion feature;
[0009] S4: Determine correction parameters for the projection image based on the first distortion feature and the second distortion feature, and perform distortion correction on the projection image according to the correction parameters to obtain a target projection image.
[0010] Preferably, in S1, based on the laser radar and in combination with the size characteristics of the projection surface, determining the projection angle and projection focal length of the imaging device includes:
[0011] Based on the laser radar, determine the distance value and angle value between the projection device and the projection surface, and determine the center distance value and center angle value from the center point of the projection device to the projection surface;
[0012] Determine the distance weight based on the distance difference between the distance value and the center distance value, and determine the angle weight based on the angle difference between the angle value and the center angle value;
[0013] Based on the size characteristics of the projection surface, combined with the center distance value and the distance weight, the projection focal length of the projection device is determined, and combined with the center angle value and the angle weight, the projection angle of the projection device is determined.
[0014] Preferably, the determining of the projection focal length of the projection device based on the size characteristics of the projection surface in combination with the center distance value and the distance weight comprises:
[0015] Based on the size characteristics of the projection surface, determine the characteristics of the projection area and establish the coordinate values of key points in the projection area;
[0016] The projection point coordinate value of the projection device is obtained, a corresponding relationship between the key point coordinate value and the projection point coordinate value is established based on the center distance value and the distance weight, and the projection focal length of the projection device is determined based on the corresponding relationship.
[0017] Preferably, in S2, using a projection device to project the image formed by the imaging device according to the projection angle and projection focal length, and projecting the image onto a projection surface to obtain a projection image, includes:
[0018] Determining a first configuration parameter for an imaging device based on the projection focal length;
[0019] Determining a second configuration parameter for the projection device based on the projection angle;
[0020] Determine a simulated projection image under the first configuration parameters and the second configuration parameters, and judge whether the simulated projection image meets the basic projection requirements;
[0021] If so, projecting the image formed by the imaging device according to the first configuration parameter and the second configuration parameter onto a projection surface to obtain a projection image;
[0022] Otherwise, unsatisfied requirements are obtained from the basic projection requirements, and the first configuration parameter and the second configuration parameter are adjusted based on the unsatisfied requirements to finally obtain a projection image.
[0023] Preferably, obtaining unmet requirements from basic projection requirements, and adjusting the first configuration parameter and the second configuration parameter based on the unmet requirements to finally obtain a projection image includes:
[0024] Determining deviation characteristics of the simulated projected image based on the unmet needs;
[0025] Determine a parameter attribute corresponding to correcting the deviation feature, and determine a configuration parameter to be corrected from a first configuration parameter and a second configuration parameter based on the parameter attribute;
[0026] Based on the deviation value of the deviation feature, a correction amplitude of the configuration parameter to be corrected is determined, the configuration parameter to be corrected is corrected according to the correction amplitude, and a projection image is obtained based on the corrected configuration parameter.
[0027] Preferably, in S3, the imaging parameters of the imaging device during the projection process are identified to obtain the first distortion feature, including:
[0028] Acquire imaging resolution and distortion parameters from the imaging parameters, and determine the distortion scale and distortion coefficient sequence of the imaging device during projection based on the imaging resolution and distortion parameters;
[0029] Based on the size parameters of the projection image, the distortion scale and the distortion coefficient sequence are concretized to obtain a distortion value sequence, and the distortion value sequence is used as the first distortion feature.
[0030] Preferably, identifying the image feature of the projection image on the projection surface to obtain the second distortion feature includes:
[0031] Acquire a pixel matrix based on image features of the projection image on the projection surface, and acquire a standard pixel matrix acquired in advance through the projection image;
[0032] Acquire a first matrix region that satisfies the standard pixel matrix and a local distortion region that does not satisfy the standard pixel difference matrix in the pixel matrix;
[0033] Based on the projection angle, in combination with the distortion detection model, the first matrix region is subjected to overall distortion detection, and a distortion eigenvalue sequence is outputted to determine whether a median value of the distortion features in the distortion eigenvalue sequence is less than a preset distortion value;
[0034] If so, determine that there is no overall distortion of the projected image on the projection surface;
[0035] Otherwise, it is determined that the projection image on the projection surface has overall distortion, and the overall distortion feature is determined based on the median value of the distortion feature;
[0036] Determining to perform overall distortion elimination on the local distortion region based on the overall distortion feature to obtain a target local distortion region;
[0037] Based on the pixel matrix of the local distortion area of the target and the difference matrix between the pixel matrix of the local distortion area of the target and the standard pixel matrix, a local distortion feature is obtained;
[0038] Based on the overall distortion feature and the local distortion feature, a second distortion feature is obtained.
[0039] Preferably, in S4, based on the first distortion feature and the second distortion feature, determining correction parameters for the projection image, and performing distortion correction on the projection image according to the correction parameters to obtain a target projection image, includes:
[0040] Based on the first distortion feature, an imaging distortion image is generated; based on the distortion value of each pixel in the imaging distortion image, a calibration feature for the imaging distortion image is determined; based on the calibration feature and in combination with a corresponding relationship between imaging distortion calibration and correction parameters, a correction matrix for the imaging distortion image is generated; based on the correction matrix, the imaging distortion image is corrected to obtain imaging correction parameters;
[0041] Based on the second distortion feature, an image coordinate distortion feature of the projection image is obtained, and based on the projection device and the projection angle, the image coordinate distortion feature is converted into a view coordinate distortion feature based on the projection device;
[0042] Acquire an overall distortion feature and a local distortion feature based on the second distortion feature, and perform feature extraction on the view coordinate distortion feature based on the overall distortion feature and the local distortion feature to obtain an overall coordinate distortion feature and a local coordinate distortion feature;
[0043] Based on the overall distortion correction method and combined with the overall coordinate distortion characteristics, the overall projection correction parameters are determined; based on the local distortion correction method and combined with the local coordinate distortion characteristics, the local projection correction parameters are determined;
[0044] The imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are processed to obtain final correction parameters for the projection image, and the projection image is subjected to distortion correction according to the correction parameters to obtain a target projection image.
[0045] Preferably, the imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are processed to obtain the final correction parameters for the projected image, including:
[0046] Obtaining a first correction effect of an imaging correction parameter;
[0047] Obtaining a second correction effect of the overall projection correction parameter and the local projection correction parameter;
[0048] Obtaining a third correction effect of the overall projection correction parameter and the local projection correction parameter after the first correction effect;
[0049] determining whether a difference between the second correction effect and the third correction effect is a first correction effect;
[0050] If so, the imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are sequentially combined to obtain a correction parameter sequence, and the correction parameter sequence is used as the final correction parameter for the projection image;
[0051] Otherwise, obtaining a difference between the second correction effect and the third correction effect and an effect difference between the first correction effects;
[0052] When the effect difference is an overall effect difference, the overall projection correction parameters are adjusted; when the effect difference is a local effect difference, the local projection correction parameters are adjusted, and the adjusted parameters are used as the final correction parameters for the projected image.
[0053] A projector, comprising:
[0054] A laser radar device for determining a projection angle and a projection focal length;
[0055] An imaging device for generating an image;
[0056] The projection device is used to project the image generated by the imaging device.
[0057] Compared with the prior art, the present invention has achieved the following beneficial effects:
[0058] Firstly, based on laser radar and in combination with the size characteristics of the projection surface, the projection angle and projection focal length of the projection device are determined, and the image formed by the imaging device is projected by the projection device according to the projection angle and projection focal length, and the image is projected onto the projection surface to obtain a projection image, thereby achieving accurate projection of the projector. Then, the imaging parameters of the imaging device during the projection process are identified to obtain a first distortion feature, and the image features of the projection image on the projection surface are identified to obtain a second distortion feature. Based on the first distortion feature and the second distortion feature, correction parameters for the projection image are determined, and the projection image is corrected for distortion according to the correction parameters to obtain a target projection image. The distortion features are obtained from the imaging and projection processes to comprehensively perform distortion correction, thereby avoiding deformation of the target projection image and ensuring the projection effect.
[0059] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures specifically pointed out in this application document.
[0060] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0062] Figure 1This is a flow chart of a projector distortion correction method according to an embodiment of the present invention;
[0063] Figure 2 A flow chart of determining the projection angle and projection focal length of an imaging device in an embodiment of the present invention;
[0064] Figure 3 The figure is a structural diagram of a projector in an embodiment of the present invention. DETAILED DESCRIPTION
[0065] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0066] Embodiment 1:
[0067] The embodiment of the present invention provides a method for correcting distortion of a projector, such as Figure 1 As shown, including:
[0068] S1: Based on the laser radar and the size characteristics of the projection surface, determine the projection angle and projection focal length of the projection device;
[0069] S2: using a projection device to project the image formed by the imaging device according to the projection angle and projection focal length, and projecting it onto a projection surface to obtain a projection image;
[0070] S3: Identify imaging parameters of the imaging device during the projection process to obtain a first distortion feature, and identify image features of the projection image on the projection surface to obtain a second distortion feature;
[0071] S4: Determine correction parameters for the projection image based on the first distortion feature and the second distortion feature, and perform distortion correction on the projection image according to the correction parameters to obtain a target projection image.
[0072] In this embodiment, the first distortion feature is generated during the imaging process, and the second distortion feature is generated during the projection process.
[0073] The beneficial effects of the above-mentioned design scheme are as follows: first, based on laser radar and in combination with the size characteristics of the projection surface, the projection angle and projection focal length of the projection device are determined, and the image formed by the imaging device is projected by the projection device according to the projection angle and projection focal length, and is projected onto the projection surface to obtain a projection image, thereby achieving accurate projection of the projector; then, the imaging parameters of the imaging device during the projection process are identified to obtain a first distortion feature, and the image features of the projection image on the projection surface are identified to obtain a second distortion feature; based on the first distortion feature and the second distortion feature, correction parameters for the projection image are determined, and the projection image is distorted and corrected according to the correction parameters to obtain a target projection image; distortion features are obtained from the imaging and projection processes to comprehensively perform distortion correction, thereby avoiding deformation of the target projection image and ensuring the projection effect.
[0074] Embodiment 2:
[0075] Based on Example 1, the present invention provides a method for correcting distortion of a projector. Figure 2 As shown, in S1, based on the laser radar and in combination with the size characteristics of the projection surface, the projection angle and projection focal length of the imaging device are determined, including:
[0076] Based on the laser radar, determine the distance value and angle value between the projection device and the projection surface, and determine the center distance value and center angle value from the center point of the projection device to the projection surface;
[0077] Determine the distance weight based on the distance difference between the distance value and the center distance value, and determine the angle weight based on the angle difference between the angle value and the center angle value;
[0078] Based on the size characteristics of the projection surface, combined with the center distance value and the distance weight, the projection focal length of the projection device is determined, and combined with the center angle value and the angle weight, the projection angle of the projection device is determined.
[0079] The beneficial effect of the above design scheme is: by determining the projection angle and projection focal length of the imaging device based on laser radar and combining the size characteristics of the projection surface, a basis is provided for the accurate projection of the projector.
[0080] Embodiment 3:
[0081] Based on Example 2, an embodiment of the present invention provides a method for projector distortion correction, wherein the method determines the projection focal length of the projection device based on the size characteristics of the projection surface, in combination with the center distance value and the distance weight, and includes:
[0082] Based on the size characteristics of the projection surface, determine the characteristics of the projection area and establish the coordinate values of key points in the projection area;
[0083] The projection point coordinate value of the projection device is obtained, a corresponding relationship between the key point coordinate value and the projection point coordinate value is established based on the center distance value and the distance weight, and the projection focal length of the projection device is determined based on the corresponding relationship.
[0084] In this embodiment, the key point coordinate values are coordinate values established in the projection area, and the projection point coordinate values are coordinate values determined by the projection device.
[0085] The beneficial effect of the above design scheme is: by establishing a corresponding relationship between the key point coordinate value and the projection point coordinate value based on the center distance value and the distance weight, and determining the projection focal length of the projection device based on the corresponding relationship, the accuracy of the determined projection focal length is ensured, providing a basis for distortion correction.
[0086] Embodiment 4:
[0087] Based on Example 1, an embodiment of the present invention provides a method for correcting distortion of a projector, wherein in S2, a projection device is used to project an image formed by an imaging device according to the projection angle and the projection focal length, and the image is projected onto a projection surface to obtain a projection image, including:
[0088] Determining a first configuration parameter for an imaging device based on the projection focal length;
[0089] Determining a second configuration parameter for the projection device based on the projection angle;
[0090] Determine a simulated projection image under the first configuration parameters and the second configuration parameters, and judge whether the simulated projection image meets the basic projection requirements;
[0091] If so, projecting the image formed by the imaging device according to the first configuration parameter and the second configuration parameter onto a projection surface to obtain a projection image;
[0092] Otherwise, unsatisfied requirements are obtained from the basic projection requirements, and the first configuration parameter and the second configuration parameter are adjusted based on the unsatisfied requirements to finally obtain a projection image.
[0093] In this embodiment, the first configuration parameter is the resolution, brightness, contrast and color effect of the imaging device, and the best parameter under the projection focal length is determined as the first configuration parameter.
[0094] In this embodiment, the second configuration parameter is the magnification, distance, etc. of the projection device.
[0095] The beneficial effect of the above design scheme is: by configuring parameters of the imaging device and the projection device, and adjusting the parameters in combination with basic projection requirements, a projection image is finally obtained, and the projection effect of the obtained projection image is guaranteed.
[0096] Embodiment 5:
[0097] Based on Example 4, an embodiment of the present invention provides a method for projector distortion correction, wherein unmet needs are obtained from basic projection needs, and the first configuration parameter and the second configuration parameter are adjusted based on the unmet needs, so as to finally obtain a projected image, including:
[0098] Determining deviation characteristics of the simulated projected image based on the unmet needs;
[0099] Determine a parameter attribute corresponding to correcting the deviation feature, and determine a configuration parameter to be corrected from a first configuration parameter and a second configuration parameter based on the parameter attribute;
[0100] Based on the deviation value of the deviation feature, a correction amplitude of the configuration parameter to be corrected is determined, the configuration parameter to be corrected is corrected according to the correction amplitude, and a projection image is obtained based on the corrected configuration parameter.
[0101] The beneficial effect of the above design scheme is: by configuring the parameters of the imaging device and the projection device, and adjusting the parameters in combination with the basic projection requirements, a projection image is finally obtained, the projection effect of the obtained projection image is guaranteed, and a basis is provided for distortion correction.
[0102] Embodiment 6:
[0103] Based on Example 1, an embodiment of the present invention provides a method for projector distortion correction. In S3, imaging parameters of an imaging device during projection are identified to obtain a first distortion feature, including:
[0104] Acquire imaging resolution and distortion parameters from the imaging parameters, and determine the distortion scale and distortion coefficient sequence of the imaging device during projection based on the imaging resolution and distortion parameters;
[0105] Based on the size parameters of the projection image, the distortion scale and the distortion coefficient sequence are concretized to obtain a distortion value sequence, and the distortion value sequence is used as the first distortion feature.
[0106] In this embodiment, the distortion scale indicates the degree of distortion, and the distortion coefficient sequence indicates the probability of distortion occurring in each image portion.
[0107] In this embodiment, the distortion value sequence indicates specific distortion values where distortion occurs.
[0108] The beneficial effect of the above design scheme is: by acquiring the imaging resolution and the distortion parameters from the imaging parameters, based on the imaging resolution and the distortion parameters, the distortion scale and the distortion coefficient sequence of the imaging device during the projection process are determined; based on the size parameters of the projected image, the distortion scale and the distortion coefficient sequence are concretized to obtain a distortion value sequence; the distortion value sequence is used as the first distortion feature to ensure the accuracy of the obtained first distortion feature, thereby providing a basis for distortion correction.
[0109] Embodiment 7:
[0110] Based on Example 1, an embodiment of the present invention provides a method for projector distortion correction. In S3, the image feature of the projection image on the projection surface is identified to obtain a second distortion feature, including:
[0111] Acquire a pixel matrix based on image features of the projection image on the projection surface, and acquire a standard pixel matrix acquired in advance through the projection image;
[0112] Acquire a first matrix region that satisfies the standard pixel matrix and a local distortion region that does not satisfy the standard pixel difference matrix in the pixel matrix;
[0113] Based on the projection angle, in combination with the distortion detection model, the first matrix region is subjected to overall distortion detection, and a distortion eigenvalue sequence is outputted to determine whether a median value of the distortion features in the distortion eigenvalue sequence is less than a preset distortion value;
[0114] If so, determine that there is no overall distortion of the projected image on the projection surface;
[0115] Otherwise, it is determined that the projection image on the projection surface has overall distortion, and the overall distortion feature is determined based on the median value of the distortion feature;
[0116] Determining to perform overall distortion elimination on the local distortion region based on the overall distortion feature to obtain a target local distortion region;
[0117] Based on the pixel matrix of the local distortion area of the target and the difference matrix between the pixel matrix of the local distortion area of the target and the standard pixel matrix, a local distortion feature is obtained;
[0118] Based on the overall distortion feature and the local distortion feature, a second distortion feature is obtained.
[0119] In this embodiment, the standard pixel matrix is obtained in advance.
[0120] In this embodiment, the distortion detection model is used to detect whether the image is distorted overall, and is trained based on historical unified data.
[0121] The beneficial effect of the above design scheme is: by performing overall distortion detection and local distortion detection based on a standard pixel matrix and a distortion detection model, the integrity and accuracy of the obtained second distortion feature are ensured, thus providing a basis for distortion correction.
[0122] Embodiment 8:
[0123] Based on Example 1, an embodiment of the present invention provides a method for projector distortion correction. In S4, based on the first distortion feature and the second distortion feature, a correction parameter for the projected image is determined, and the projected image is subjected to distortion correction according to the correction parameter to obtain a target projected image, including:
[0124] Based on the first distortion feature, an imaging distortion image is generated; based on the distortion value of each pixel in the imaging distortion image, a calibration feature for the imaging distortion image is determined; based on the calibration feature and in combination with a corresponding relationship between imaging distortion calibration and correction parameters, a correction matrix for the imaging distortion image is generated; based on the correction matrix, the imaging distortion image is corrected to obtain imaging correction parameters;
[0125] Based on the second distortion feature, an image coordinate distortion feature of the projection image is obtained, and based on the projection device and the projection angle, the image coordinate distortion feature is converted into a view coordinate distortion feature based on the projection device;
[0126] Acquire an overall distortion feature and a local distortion feature based on the second distortion feature, and perform feature extraction on the view coordinate distortion feature based on the overall distortion feature and the local distortion feature to obtain an overall coordinate distortion feature and a local coordinate distortion feature;
[0127] Based on the overall distortion correction method and combined with the overall coordinate distortion characteristics, the overall projection correction parameters are determined; based on the local distortion correction method and combined with the local coordinate distortion characteristics, the local projection correction parameters are determined;
[0128] The imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are processed to obtain final correction parameters for the projection image, and the projection image is subjected to distortion correction according to the correction parameters to obtain a target projection image.
[0129] In this embodiment, the calibration feature is to calibrate the distortion value, so that the corresponding correction parameter can be automatically matched to the distortion value.
[0130] The beneficial effect of the above design scheme is: after determining the corresponding correction parameters by separately analyzing the first distortion feature and the second distortion feature, processing and integrating them to obtain the final correction parameters, the comprehensiveness and accuracy of the correction parameters are guaranteed, the distortion correction of the projector is realized, and the distortion features are obtained from the imaging and projection process to comprehensively perform distortion correction, avoid deformation of the target projection image, and ensure the projection effect.
[0131] Embodiment 9:
[0132] Based on Example 8, an embodiment of the present invention provides a method for projector distortion correction, wherein the imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are processed to obtain the final correction parameters for the projected image, including:
[0133] Acquire a first correction effect of an imaging correction parameter;
[0134] Obtaining a second correction effect of the overall projection correction parameter and the local projection correction parameter;
[0135] Obtaining a third correction effect of the overall projection correction parameter and the local projection correction parameter after the first correction effect;
[0136] determining whether a difference between the second correction effect and the third correction effect is a first correction effect;
[0137] If so, the imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are sequentially combined to obtain a correction parameter sequence, and the correction parameter sequence is used as the final correction parameter for the projection image;
[0138] Otherwise, obtaining a difference between the second correction effect and the third correction effect and an effect difference between the first correction effects;
[0139] When the effect difference is an overall effect difference, the overall projection correction parameters are adjusted; when the effect difference is a local effect difference, the local projection correction parameters are adjusted, and the adjusted parameters are used as the final correction parameters for the projected image.
[0140] The beneficial effect of the above design scheme is: by evaluating the projection effect during the imaging and projection process, determining the mutual influence between the correction parameters determined by the imaging and projection processes together, and adjusting them, the overall accuracy of the final correction parameters for the projected image is ensured, deformation of the target projection image is avoided, and the projection effect is guaranteed.
[0141] Embodiment 10:
[0142] Based on Embodiment 1, an embodiment of the present invention provides a projector, including:
[0143] A laser radar device for determining a projection angle and a projection focal length;
[0144] An imaging device for generating an image;
[0145] The projection device is used to project the image generated by the imaging device.
[0146] The beneficial effect of the above design scheme is: providing a projector and providing a basis for distortion correction of the projector.
[0147] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of this application document and its equivalent technology, the present invention is also intended to include these changes and variations.
Claims
1. A method for correcting projector distortion, characterized in that: include: S1: Based on the laser radar and the size characteristics of the projection surface, determine the projection angle and projection focal length of the projection device; S2: using a projection device to project the image formed by the imaging device according to the projection angle and projection focal length, and projecting it onto a projection surface to obtain a projection image; S3: Identify imaging parameters of the imaging device during the projection process to obtain a first distortion feature, and identify image features of the projection image on the projection surface to obtain a second distortion feature; S4: determining correction parameters for the projection image based on the first distortion feature and the second distortion feature, and performing distortion correction on the projection image according to the correction parameters to obtain a target projection image; In S3, the imaging parameters of the imaging device during the projection process are identified to obtain a first distortion feature, including: Acquire imaging resolution and distortion parameters from the imaging parameters, and determine the distortion scale and distortion coefficient sequence of the imaging device during projection based on the imaging resolution and distortion parameters; Based on the size parameter of the projection image, the distortion scale and the distortion coefficient sequence are concretized to obtain a distortion value sequence, and the distortion value sequence is used as a first distortion feature; In S3, the image features of the projection image on the projection surface are identified to obtain the second distortion features, including: Acquire a pixel matrix based on image features of the projection image on the projection surface, and acquire a standard pixel matrix acquired in advance through the projection image; Acquire a first matrix region that satisfies the standard pixel matrix and a local distortion region that does not satisfy the standard pixel difference matrix in the pixel matrix; Based on the projection angle, in combination with the distortion detection model, the first matrix region is subjected to overall distortion detection, and a distortion eigenvalue sequence is outputted to determine whether a median value of the distortion features in the distortion eigenvalue sequence is less than a preset distortion value; If so, determine that there is no overall distortion of the projected image on the projection surface; Otherwise, it is determined that the projection image on the projection surface has overall distortion, and the overall distortion feature is determined based on the median value of the distortion feature; Determining to perform overall distortion elimination on the local distortion region based on the overall distortion feature to obtain a target local distortion region; Based on the pixel matrix of the local distortion area of the target and the difference matrix between the pixel matrix of the local distortion area of the target and the standard pixel matrix, a local distortion feature is obtained; Based on the overall distortion feature and the local distortion feature, a second distortion feature is obtained.
2. A projector distortion correction method according to claim 1, characterized in that: In S1, based on the laser radar and in combination with the size characteristics of the projection surface, determining the projection angle and projection focal length of the imaging device includes: Based on the laser radar, determine the distance value and angle value between the projection device and the projection surface, and determine the center distance value and center angle value from the center point of the projection device to the projection surface; Determine the distance weight based on the distance difference between the distance value and the center distance value, and determine the angle weight based on the angle difference between the angle value and the center angle value; Based on the size characteristics of the projection surface, combined with the center distance value and the distance weight, the projection focal length of the projection device is determined, and combined with the center angle value and the angle weight, the projection angle of the projection device is determined.
3. A projector distortion correction method according to claim 2, characterized in that: The method of determining the projection focal length of the projection device based on the size characteristics of the projection surface in combination with the center distance value and the distance weight includes: Based on the size characteristics of the projection surface, determine the characteristics of the projection area and establish the coordinate values of key points in the projection area; The projection point coordinate value of the projection device is obtained, a corresponding relationship between the key point coordinate value and the projection point coordinate value is established based on the center distance value and the distance weight, and the projection focal length of the projection device is determined based on the corresponding relationship.
4. The projector distortion correction method according to claim 1, characterized in that: In S2, the image formed by the imaging device is projected onto a projection surface by using a projection device according to the projection angle and projection focal length to obtain a projection image, including: Determining a first configuration parameter for an imaging device based on the projection focal length; Determining a second configuration parameter for the projection device based on the projection angle; Determine a simulated projection image under the first configuration parameters and the second configuration parameters, and judge whether the simulated projection image meets the basic projection requirements; If so, projecting the image formed by the imaging device according to the first configuration parameter and the second configuration parameter onto a projection surface to obtain a projection image; Otherwise, unsatisfied requirements are obtained from the basic projection requirements, and the first configuration parameter and the second configuration parameter are adjusted based on the unsatisfied requirements to finally obtain a projection image.
5. A projector distortion correction method according to claim 4, characterized in that: The obtaining of unmet requirements from the basic projection requirements, and adjusting the first configuration parameter and the second configuration parameter based on the unmet requirements to finally obtain a projection image includes: Determining deviation characteristics of the simulated projected image based on the unmet needs; Determine a parameter attribute corresponding to correcting the deviation feature, and determine a configuration parameter to be corrected from a first configuration parameter and a second configuration parameter based on the parameter attribute; Based on the deviation value of the deviation feature, a correction amplitude of the configuration parameter to be corrected is determined, the configuration parameter to be corrected is corrected according to the correction amplitude, and a projection image is obtained based on the corrected configuration parameter.
6. The projector distortion correction method according to claim 1, characterized in that: In S4, based on the first distortion feature and the second distortion feature, a correction parameter for the projection image is determined, and the projection image is subjected to distortion correction according to the correction parameter to obtain a target projection image, including: Based on the first distortion feature, an imaging distortion image is generated; based on the distortion value of each pixel in the imaging distortion image, a calibration feature for the imaging distortion image is determined; based on the calibration feature and in combination with a corresponding relationship between imaging distortion calibration and correction parameters, a correction matrix for the imaging distortion image is generated; based on the correction matrix, the imaging distortion image is corrected to obtain imaging correction parameters; Based on the second distortion feature, an image coordinate distortion feature of the projection image is obtained, and based on the projection device and the projection angle, the image coordinate distortion feature is converted into a view coordinate distortion feature based on the projection device; Acquire an overall distortion feature and a local distortion feature based on the second distortion feature, and perform feature extraction on the view coordinate distortion feature based on the overall distortion feature and the local distortion feature to obtain an overall coordinate distortion feature and a local coordinate distortion feature; Based on the overall distortion correction method and combined with the overall coordinate distortion characteristics, the overall projection correction parameters are determined; based on the local distortion correction method and combined with the local coordinate distortion characteristics, the local projection correction parameters are determined; The imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are processed to obtain final correction parameters for the projection image, and the projection image is subjected to distortion correction according to the correction parameters to obtain a target projection image.
7. A method for correcting projector distortion according to claim 6, characterized in that: The imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are processed to obtain the final correction parameters for the projection image, including: Acquire a first correction effect of an imaging correction parameter; Obtaining a second correction effect of the overall projection correction parameter and the local projection correction parameter; Obtaining a third correction effect of the overall projection correction parameter and the local projection correction parameter after the first correction effect; determining whether a difference between the second correction effect and the third correction effect is a first correction effect; If so, the imaging correction parameters, the overall projection correction parameters and the local projection correction parameters are sequentially combined to obtain a correction parameter sequence, and the correction parameter sequence is used as the final correction parameter for the projection image; Otherwise, obtaining a difference between the second correction effect and the third correction effect and an effect difference between the first correction effects; When the effect difference is an overall effect difference, the overall projection correction parameters are adjusted; when the effect difference is a local effect difference, the local projection correction parameters are adjusted, and the adjusted parameters are used as the final correction parameters for the projected image.
8. A method for correcting distortion of a projector according to claim 1, providing a projector, characterized in that: include: A laser radar device for determining a projection angle and a projection focal length; An imaging device for generating an image; The projection device is used to project the image generated by the imaging device.
Citation Information
Patent Citations
A method and device for calibrating a projection apparatus
CN109257582A
Projection correction method and device, projector and readable storage medium
CN111083456A