Disclosure of Invention
The invention aims to provide a correction system for projection geometric deformation of an optical fiber scanning imaging device and the optical fiber scanning imaging device comprising the correction system, which are used for solving the technical problem that an image is inclined when an XY type laser scanning imaging device is used for projection in the prior art.
In order to achieve the above object, the present invention provides a system for correcting projection geometric deformation of an optical fiber scanning imaging device, the system is suitable for an optical fiber scanning imaging device in which an optical fiber scanner is an XY type two-dimensional scanner, the system comprises a test image output device, an image acquisition device and a processor, wherein:
the test image output device is used for outputting a preset rectangular detection image to the optical fiber scanning imaging equipment;
the image collector is used for collecting a projection image output by the optical fiber scanning imaging equipment;
the computer program stored in the processor, when executed by the processor, comprises the steps of:
judging whether the projected image acquired by the image acquisition device is a parallelogram with an obtuse angle or not, if so, respectively taking two pause angle vertexes as starting points and making a vertical line towards opposite sides to obtain a new rectangular area;
taking the new rectangular area as an effective display area to perform laser modulation;
comparing the projected image acquired by the image collector with a standard image of a detected image to obtain an inclination angle between the projected image and the standard image in the horizontal direction;
calculating and correcting a driving signal corresponding to the effective display area according to the inclination angle to enable the effective display area to be a horizontal rectangle; or calculating and correcting the deflection angle of the optical path turner corresponding to the effective display area according to the inclination angle so that the effective display area becomes a horizontal rectangle after the optical path turner deflects according to the deflection angle.
Preferably, the driving signal corresponding to the effective display area is calculated and corrected according to the tilt angle, so that the effective display area becomes a horizontal rectangle, specifically: calculating the track to be scanned after the optical fiber scanning imaging equipment is corrected according to the inclination angle; and calculating a driving signal corresponding to the track to be scanned according to the track to be scanned.
Preferably, a calculation formula for calculating the trajectory to be scanned after the optical fiber scanning imaging device is corrected according to the inclination angle is as follows:
wherein x and y are standard scanning tracks of the XY type two-dimensional scanner, α is the inclination angle, and x 'and y' are corrected tracks to be scanned.
Preferably, according to the track to be scanned, a driving signal corresponding to the track to be scanned is calculated, specifically: according to the displacement amplitude in the track to be scanned and the frequency response coefficient k of a scanning driver in the optical fiber scanner, calculating the excitation voltage corresponding to the driving frequency component in the x direction and the excitation voltage corresponding to the driving frequency component in the y direction in the track x 'to be scanned, and the excitation voltage corresponding to the driving frequency component in the x direction and the excitation voltage corresponding to the driving frequency component in the y direction in the track y' to be scanned, so as to determine the driving signal corresponding to the track to be scanned.
Preferably, when the inclination angle is greater than a set threshold, the driving voltage in the X direction is increased as a whole according to the inclination angle value.
Correspondingly, the invention also provides optical fiber scanning imaging equipment, which comprises any one of the optical fiber scanning imaging equipment projection geometric deformation correction systems.
Preferably, when the optical fiber scanning imaging device is provided with the optical path diverter, the optical path diverter is a rotating image prism.
Preferably, the rotational image prism is a dove prism, a Pechan prism or an Abbe prism.
The system for correcting the projection geometric deformation of the optical fiber scanning imaging equipment can effectively solve the problem that the optical fiber scanning imaging equipment of which the optical fiber scanner is an XY type two-dimensional scanner is easy to generate the geometric deformation, can effectively improve the user experience of the optical fiber scanning imaging equipment and enable the optical fiber scanning imaging equipment to have the possibility of mass production.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The biggest difference between the optical fiber scanning display and the traditional display is that the optical fiber scanning display is free from the limitation of material pixels, pixel grids of the optical fiber scanning display are artificially divided spatial areas, and the optical fiber scanning display is modulated by laser according to preset modulation time, so that uniform and preset image display is realized. Therefore, the laser modulation parameters can be changed to deform the image, such as various deformation forms like optical distortion, fish-eye effect, and the like, pixel size non-uniformity, display area irregularity, and the like.
Based on the technical characteristics of optical fiber scanning, the inventor provides a correction system for the projection geometric deformation of an optical fiber scanning imaging device aiming at the geometric deformation easily generated by optical fiber scanning, the correction system is suitable for the optical fiber scanning imaging device of which the optical fiber scanner is an XY type two-dimensional scanner, the scanning directions of the XY type two-dimensional scanner comprise the x direction and the y direction which are mutually vertical, when an XY type scanning driver scans images, the fast axis scans along the x direction, and the slow axis scans along the y direction which is vertical to the x direction.
The correction system of the embodiment of the invention comprises a test image output device, an image collector and a processor, wherein the processor can be an independent processor or a shared processor of the optical fiber scanning imaging device, and a corresponding computer program is stored in the processor, wherein:
the test image output device is used for outputting a preset rectangular detection image to the optical fiber scanning imaging device, and in the embodiment, the rectangular detection image is assumed to be a standard horizontal rectangular image after passing through an ideal optical fiber scanning imaging device, and the standard horizontal matrix image is a standard image of the detection image;
the image collector is used for collecting a projection image output by the optical fiber scanning imaging equipment; if the optical fiber scanning imaging device is in an ideal state, the projected image output by the optical fiber scanning imaging device is consistent with the shape of the preset rectangular detection image output by the test image output device; when the projected image output by the optical fiber scanning imaging device is inconsistent with the shape of the preset rectangular detection image output by the test image output device, the optical fiber scanning imaging device is proved to be deformed in the image scanning process. The present application mainly solves the geometrical distortion of the fiber scanning imaging device, so that the computer program stored in the processor and corresponding to the correction system comprises the following steps when executed by the processor:
s101: judging whether the projected image acquired by the image acquisition device is a parallelogram with an obtuse angle, if so, respectively taking two pause angle vertexes as starting points and making a vertical line towards the opposite side to obtain a new rectangular area, referring to a first diagram on the left side of FIG. 2, wherein the vertical line is made towards the opposite side by a dotted line to obtain a new rectangular area;
s102: performing laser modulation on the new rectangular area as an effective display area to obtain a rectangle as shown in the middle of FIG. 2;
s103: comparing the projected image acquired by the image collector with a standard image of a detected image to obtain an inclination angle between the projected image and the standard image in the horizontal direction;
s104: calculating and correcting a driving signal corresponding to the effective display area according to the inclination angle to enable the effective display area to be a horizontal rectangle; or calculating and correcting the deflection angle of the optical path diverter corresponding to the effective display area according to the inclination angle, so that the effective display area becomes a horizontal rectangle after the optical path diverter deflects according to the deflection angle, as shown in the rightmost diagram of fig. 2.
In step S104 of the above embodiment, two rotation modes are included, and when the optical fiber scanning imaging device includes the optical path diverter, the deflection angle of the optical path diverter corresponding to the effective display area may be calculated and corrected according to the inclination angle, so that the effective display area becomes a horizontal rectangle after the optical path diverter deflects according to the deflection angle. In this embodiment, the optical path turning device may be a rotational image prism, specifically, a dove prism, a Pechan prism or an Abbe prism.
The following will illustrate how to calculate and correct the deflection angle of the optical path diverter corresponding to the effective display area according to the tilt angle by using the optical path diverter as a dove prism.
Referring to fig. 3, fig. 3 is a schematic diagram of an angular deflection ratio of a dove prism according to an embodiment of the present invention, as shown in fig. 3, a scanning beam enters from a left side of the dove prism 31 and exits from a right side of the dove prism 31, and an angular deflection ratio of the dove prism 31 is that the dove prism rotates around an optical axis by β degrees, and a reflection image passing through the dove prism 31 rotates by 2 β degrees in the same direction, that is, the angular deflection ratio of the dove prism is 2.
Certainly, in other embodiments, a person skilled in the art can select other deflection prisms with image rotation functions according to actual conditions to meet the needs of the actual conditions, and certainly, the rotation angles of the prisms and the rotation angles of the images in different image rotation prisms may be different, and for a specific image rotation system, as long as the adopted correction angle meets the image rotation angle relationship of the system, the details are not described here.
In another embodiment, step S104 integrated with the above embodiments is: and calculating and correcting the driving signal corresponding to the effective display area according to the inclination angle, wherein when the effective display area becomes a horizontal rectangle, the specific calculation mode of the driving signal comprises the following steps: :
a1: calculating the trajectory to be scanned after the optical fiber scanning imaging device is corrected according to the inclination angle, wherein the calculation formula can be as follows:
wherein x and y are standard scanning tracks of the XY type two-dimensional scanner, α is the inclination angle, α is the inclination angle in the x direction in the embodiment of the invention, and x 'and y' are corrected tracks to be scanned.
A2: calculating a driving signal corresponding to the track to be scanned according to the track to be scanned, specifically:
according to the displacement amplitude in the track to be scanned and the frequency response coefficient k of a scanning driver in the optical fiber scanner, calculating the excitation voltage corresponding to the driving frequency component in the x direction and the excitation voltage corresponding to the driving frequency component in the y direction in the track x 'to be scanned, and the excitation voltage corresponding to the driving frequency component in the x direction and the excitation voltage corresponding to the driving frequency component in the y direction in the track y' to be scanned, so as to determine the driving signal corresponding to the track to be scanned.
In the above embodiment, when the tilt angle is greater than the set threshold, the display size is obviously reduced by directly modulating the tilt angle into the rectangular area.
For a more detailed description of the embodiments of the present invention, a detailed description of a calculation manner of the following driving signals will be given by way of example with reference to a calculation formula:
the optical fiber driving signal may be a sine signal, a cosine signal, or a triangular signal, and the like, and in the embodiment of the present invention, the driving signal is taken as a sine signal as an example to describe: the drive signals for the fiber scanner in the x-direction and the y-direction can be expressed as:
wherein A isxAmplitude of displacement of the spot in the x-direction, AyAmplitude of displacement of the spot in the y-direction, kfxFor an excitation frequency of fxAmplitude of response, k, of a scan driver in a fiber optic scanner at a voltage of 1VfyFor an excitation frequency of fyAmplitude of the response of the scan driver at a voltage of 1V, fxFrequency of the drive signal in the x-direction, fyIs the frequency of the drive signal in the y direction, phixIs the x direction to the frequency fxPhase delay of response, phiyIn the y direction against the frequency fyThe phase of the response is delayed. Since the motion trajectory of the light spot has a direct relationship with the motion of the scan driver, the two-dimensional motion of the light spot can be expressed in the earth's inertial coordinate system as:
wherein, x and y are the motion tracks of the light spot in the x direction and the y direction respectively.
To enable the scanning driver to scan in the x 'direction and the y' direction, the tracks to be scanned in the x 'direction and the y' direction of the light spot satisfy the following relationship according to equation (2):
the calculation formula for solving the to-be-scanned track is as follows:
as can be seen from the formula (3),the displacement of the scan driver in both the x 'and y' directions includes an x-direction frequency component fxAnd a y-direction frequency component fyFor a voltage-controlled vibration device (i.e., an optical fiber in the present embodiment), the harmonic component (sinusoidal portion in the present embodiment) of the vibration displacement can be realized by the excitation voltage corresponding to the frequency component, and therefore, the correction of the image tilt can be converted into the adjustment of the excitation voltage of the scan driver, in which the change of the tilt angle α is reflected in the control of the excitation voltage.
Specifically, during the calibration process of the scan driver, the scan driver tests the spectral characteristics of the scan driver to obtain the spectral response of the scan driver, that is, the frequency response coefficient k related to the excitation frequency is obtained, where the frequency is f, and the value of k indicates that the excitation frequency is f, the amplitude of the response of the vibration device is at a voltage of 1V, and the frequency response coefficients of the vibration device are different at different excitation frequencies, taking the x' direction as an example, assuming that the excitation frequency is fxWhen the frequency response coefficient is kfxExcitation frequency of fyWhen the frequency response coefficient is kfyThen, the x' direction trajectory to be scanned can be expressed as:
according to equations (4) and (5), the excitation voltages of different spectral components in the driving signal of the scan driver in a single direction (i.e., the x 'direction or the y' direction in the embodiment of the present invention) can be obtained, thereby achieving the correction of the image tilt.
Specifically, in the embodiment of the present invention, the excitation voltage amplitude of each frequency component in the x' direction is:
similarly, the excitation voltage of each frequency component in the y' direction can be obtained, and the driving signal corresponding to the track to be scanned can be expressed as:
φ1is the x' direction to the frequency fxPhase delay of response, phi2Is the x' direction to the frequency fyPhase delay of response, phi3In the y' direction against the frequency fxPhase delay of response, phi4In the y' direction against the frequency fyThe phase of the response is delayed. Then, the laser scanning device is driven according to the driving signal, so that the composite track of the tracks of the laser scanning device in the x 'direction and the y' direction in the standard scanning direction is the same as the standard scanning track, and the scanned image is kept stable and is not inclined along with the inclination of the laser scanning device.
Correspondingly, the embodiment of the invention also provides an optical fiber scanning imaging device, which comprises the system for correcting the projection geometric deformation of the optical fiber scanning imaging device in the embodiment. That is, in the embodiment of the present invention, the correction system for the projection geometric deformation of the optical fiber scanning imaging device may be an independent correction system, which is used for the pre-factory correction or the maintenance correction of the optical fiber scanning imaging device, and when the correction system is an independent correction system, the correction parameters are stored in the optical fiber scanning imaging device after the correction and leave the factory; the optical fiber scanning imaging device can also be directly integrated into the optical fiber scanning imaging device, so that a user can control correction by command. When a user corrects, the optical fiber scanning imaging device needs to be horizontally placed first.
The invention
All of the features disclosed in this specification, or all of the steps in any method or process so disclosed, may be combined in any combination, except combinations of features and/or steps that are mutually exclusive.
Any feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
The invention is not limited to the foregoing embodiments. The invention extends to any novel feature or any novel combination of features disclosed in this specification and any novel method or process steps or any novel combination of features disclosed.