Projection device and automatic focusing method thereof

By analyzing the spectrum of the projector's dummy-focus picture image, the defocus distance is directly obtained and the lens group is driven to move, which solves the problems of large calculation volume and low efficiency in the prior art, and achieves fast and accurate automatic focus.

CN113766193BActive Publication Date: 2024-11-15APPOTRONICS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010488775.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-02
Publication Date
2024-11-15
Estimated Expiration
2040-06-02

AI Technical Summary

Technical Problem

The existing projector autofocus method has a large amount of calculation, low efficiency and is prone to overshooting, which increases the response time of autofocus.

Method used

By obtaining the virtual focus image after the structured light pattern projection, performing spectrum analysis, obtaining the spectrum information of the virtual focus spot, and finding matches from the pre-stored spectrum information of the preset virtual focus spot, obtaining the defocus distance, and controlling the motor Drive the lens group to move to achieve focus.

Benefits of technology

It greatly improves focus efficiency and response speed, reduces calculation performance requirements, and avoids repeated contrast calculations and meticulous control of motor pace.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113766193B_ABST
    Figure CN113766193B_ABST
Patent Text Reader

Abstract

The present application discloses a projection device and an automatic focusing method thereof, in which the method performs spectrum analysis on a currently projected defocused picture image, and then obtains spectrum information of a current defocused light spot according to the spectrum information of the current defocused picture image, wherein the current defocused light spot is a light spot formed by any pixel point of the current defocused picture image, and then searches for spectrum information matching the spectrum information of the current defocused light spot from the spectrum information of a plurality of pre-stored preset defocused light spots to obtain target spectrum information, and then obtains a defocus distance corresponding to the target spectrum information, and then controls a motor to drive a lens group to move the target defocus distance to achieve focusing. In the above manner, the present application can reduce the computational performance requirements of the focusing process, and improve the efficiency of automatic focusing and the response speed of automatic focusing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of projection technology, and in particular to a projection device and an automatic focusing method thereof. Background Art

[0002] When the projector is in use, the distance between the projector and the projection surface varies due to different usage scenarios. In order to obtain a clearer projection image, the focal length of the lens group generally needs to be adjusted accordingly.

[0003] Existing focusing methods usually use contrast focusing to achieve automatic focusing, that is, a small area of ​​the out-of-focus projection image is captured, and the image area contained in the small area has a higher original contrast, such as the edge area of ​​the color block. Since the out-of-focus will reduce the contrast of the image, the contrast is calculated and the motor is driven to move the lens group to find the position of the lens group when the image contrast is maximum, thereby completing automatic focusing.

[0004] However, in the above-mentioned focusing method, it is necessary to continuously calculate the image contrast, and the motor must be driven once each calculation result is obtained until the maximum contrast of the image is found. This not only has a large amount of calculation and low efficiency, but is also prone to overshoot, which increases the response time of autofocus. Summary of the invention

[0005] The main technical problem solved by the present application is to provide a projection device and an autofocus method thereof, which can reduce the computing performance requirements of the focusing process and improve the efficiency of autofocus and the response speed of autofocus.

[0006] The embodiment of the present application provides an automatic focusing method for a projection device, comprising:

[0007] Acquire a projection screen image after the structured light pattern is projected onto the plane as a current defocused screen image;

[0008] Performing spectrum analysis on the current out-of-focus picture image to obtain first spectrum information of the current out-of-focus picture image;

[0009] Acquire second spectrum information of a current defocused light spot according to the first spectrum information, where the current defocused light spot is a light spot formed by any pixel point of the current defocused picture image;

[0010] Searching for spectrum information matching the second spectrum information from pre-stored spectrum information of a plurality of preset defocused light spots to obtain target spectrum information, wherein the spectrum information of each preset defocused light spot corresponds to a defocus distance, and then obtaining the defocus distance corresponding to the target spectrum information, thereby obtaining the target defocus distance;

[0011] The motor is controlled to drive the lens group to move the target defocus distance to achieve focusing.

[0012] The embodiment of the present application further provides a projection device, comprising:

[0013] A first acquisition module is used to acquire a projection screen image after the structured light pattern is projected onto the plane, as a current defocused screen image;

[0014] An analysis module, used for performing spectrum analysis on the current out-of-focus picture image to obtain first spectrum information of the current out-of-focus picture image;

[0015] A second acquisition module, configured to acquire second spectrum information of a current defocused light spot according to the first spectrum information, wherein the current defocused light spot is a light spot formed by any pixel point of the current defocused picture image;

[0016] A third acquisition module is used to search for spectrum information matching the second spectrum information from the pre-stored spectrum information of multiple preset defocused light spots to obtain target spectrum information, wherein the spectrum information of each preset defocused light spot corresponds to a defocus distance, and then obtain the defocus distance corresponding to the target spectrum information, thereby obtaining the target defocus distance;

[0017] The control module is used to control the motor to drive the lens group to move the target defocus distance to achieve focusing.

[0018] In the autofocus method of the present application, a spectrum analysis is performed on the currently projected defocused picture image, and then the spectrum information of the current defocused light spot is obtained according to the spectrum information of the current defocused picture image. The current defocused light spot is a light spot formed by any pixel point of the current defocused picture image. Then, the spectrum information matching the spectrum information of the current defocused light spot is searched from the spectrum information of multiple preset defocused light spots stored in advance to obtain the target spectrum information, and then the defocus distance corresponding to the target spectrum information can be obtained, and then the motor is controlled to drive the lens group to move the target defocus distance to achieve focusing. Therefore, this scheme directly obtains the defocus distance of the current defocused picture image by performing a spectrum analysis on the current defocused picture image, so that the motor controls the lens group to move to the target position (i.e., the position after moving the target defocus distance) in one step to complete the focusing, without the need to make the motor control the movement of the lens group step by step, which can greatly improve the focusing efficiency, is conducive to improving the response rate of automatic focus, and does not need to repeatedly perform contrast calculations, which can reduce the computing performance requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of an automatic focusing method for a projection device provided in an embodiment of the present application;

[0020] Figure 2It is a schematic diagram of the structure of the projection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0022] See also Figure 1 , the automatic focusing method of the projection device in the embodiment of the present application includes the following steps:

[0023] S1. Acquire a projection screen image after the structured light pattern is projected onto a plane, as a current out-of-focus screen image.

[0024] When the projection device is turned on, the projection device projects structured light onto the plane, thereby projecting a picture of the structured light pattern onto the plane, which is the projection picture image after the structured light pattern is projected onto the plane. In the embodiment of the present application, a shooting mechanism is provided in the projection device, which is used to shoot the projection picture to obtain the projection picture image, and the projection picture image obtained by shooting is used as the current defocused picture image.

[0025] The structured light pattern may be, for example, a cosine structured light pattern, or may be other structured light patterns with a simple spectrum and controllable frequency components. Cosine structured light is structured light whose light intensity is cosine-distributed in the horizontal direction.

[0026] S2. Perform spectrum analysis on the current out-of-focus picture image to obtain first spectrum information of the current out-of-focus picture image.

[0027] An image is actually a two-dimensional matrix with spatial information. The spectrum of an image is its two-dimensional discrete Fourier transform. The spectrum analysis of an image is to analyze the amplitude of the spectrum of the image. Therefore, in the embodiment of the present application, the first spectrum information obtained includes the amplitude spectrum of the current out-of-focus image.

[0028] S3. Acquire second spectrum information of a current defocused light spot according to the first spectrum information. The current defocused light spot is a light spot formed by any pixel point of the current defocused picture image.

[0029] The projection screen is out of focus, that is, the projection screen is blurred, that is, each pixel in the out-of-focus screen forms a light spot larger than the actual size of the pixel, and because the illumination of the projection range is relatively uniform, the expansion law of the light spot formed by each pixel is basically the same, and is distributed in the form of a Gaussian light spot. The out-of-focus screen image can be considered as a clear screen image convolved with a convolution kernel of a certain size, and the size of the convolution kernel is related to the defocus degree of the out-of-focus screen. The distribution form of the convolution kernel is related to the intensity distribution of the light beam, which is generally a Gaussian kernel. In other words, the out-of-focus screen image is a clear screen image convolved with a Gaussian kernel, and the out-of-focus light spot is a Gaussian light spot. Therefore, the out-of-focus of the out-of-focus screen image can be expressed in mathematical form as the convolution of the out-of-focus light spot and the clear screen image, and more specifically, as the spatial convolution of the Gaussian light spot and the clear screen image.

[0030] According to the Fourier analysis principle, the spectrum of the result of spatial convolution is equivalent to the product of the two spectra of the convolution. Therefore, the spectrum of the defocused image is equal to the product of the spectrum of the Gaussian spot and the spectrum of the clear image. Therefore, after determining the spectrum information of the defocused image and the spectrum information of the clear image, the spectrum information of the Gaussian spot can be obtained in reverse.

[0031] Therefore, in step S1, obtaining the second spectrum information of the current defocused light spot according to the first spectrum information may specifically include the following sub-steps:

[0032] (11) Obtaining third spectrum information of a predetermined clear picture image.

[0033] In the embodiment of the present application, the predetermined clear picture image is a clear cosine structured light pattern picture image. The spectrum information of a clear picture image can be pre-stored as the third spectrum information, so that the third spectrum information of the pre-stored clear picture image can be directly obtained; or a clear picture image can be pre-set, and the clear picture image is obtained during the focusing process and the spectrum analysis is performed on it to obtain the spectrum information of the clear picture image as the third spectrum information.

[0034] (12) Obtaining a first extreme value of a spectrum of a current out-of-focus image according to the first spectrum information, and obtaining a second extreme value of a spectrum of a predetermined clear image according to the third spectrum information.

[0035] The first extreme value and the second extreme value may be maximum values ​​of the amplitude spectrum.

[0036] (13) According to the ratio of the second extreme value to the first extreme value, obtain the second spectrum information of the current defocused light spot.

[0037] Therefore, the spectrum information of the defocused light spot, that is, the second spectrum information, can be reversely inferred through the ratio of the first extreme value to the second extreme value.

[0038] S4. Searching for spectrum information matching the second spectrum information from the pre-stored spectrum information of multiple preset defocused light spots to obtain target spectrum information, wherein the spectrum information of each preset defocused light spot corresponds to a defocus distance, and then obtaining the defocus distance corresponding to the target spectrum information, thereby obtaining the target defocus distance.

[0039] Before step S4, the method further includes the following steps:

[0040] (21) In a dark environment, multiple preset defocused light spots are projected onto a plane in sequence.

[0041] Among them, pixel point projection can be performed by controlling the projection device, and the position of the lens group can be changed by moving the motor, so as to obtain different out-of-focus light spots.

[0042] (22) Obtain each preset defocused light spot image.

[0043] Wherein, each time a preset defocused light spot is projected, an image of the preset defocused light spot is acquired through a shooting mechanism.

[0044] (23) Performing spectrum analysis on each preset defocused light spot image to obtain spectrum information of each preset defocused light spot.

[0045] (24) Calculating the defocus distance corresponding to each preset defocus spot according to the spectrum information of each preset defocus spot, and establishing a corresponding relationship between the spectrum information of each preset defocus spot and the defocus distance corresponding to each preset defocus spot.

[0046] Specifically, the pixel points on the projection plane can be considered to be formed by the convergence of a very small light cone, and the defocused light spot is the light spot formed after the pixel points are blurred. Therefore, the defocused light spot is also formed by the convergence of the light cone, and the expansion law of the defocused light spot is related to the light cone angle. According to the principle of conservation of optical etendue, the light cone angle on the defocused light spot is determined by the size of the spatial light modulator, the light cone angle on the spatial light modulator, and the size of the projection screen where the preset defocused light spot is located. Therefore, first obtain the light cone angle on the spatial light modulator, the size of the spatial light modulator, and the size of the projection screen where the preset defocused light spot is located, and then according to the formula , calculate the light cone angle on the preset defocused spot, where Indicates the light cone angle of the preset defocused light spot, Indicates the size of the projection screen where the preset defocused light spot is located. represents the light cone angle on the spatial light modulator, Indicates the size of the spatial light modulator.

[0047] Afterwards, the defocus distance corresponding to each preset defocus spot is calculated according to the spectrum information of each preset defocus spot and the light cone angle on the corresponding preset defocus spot. Specifically, the Gaussian function used to represent each preset defocus spot is determined according to the spectrum information of each preset defocus spot, and then according to the formula , calculate the defocus distance corresponding to each preset defocus spot, where d represents the defocus distance corresponding to the preset defocus spot, Indicates the standard deviation of the Gaussian function corresponding to the preset defocused light spot.

[0048] (25) Storing the spectrum information of each preset defocused light spot and its corresponding defocus distance.

[0049] In the above manner, the defocus distances corresponding to a series of preset defocus spots can be calculated, and then the spectrum information and the corresponding defocus distance of each preset defocus spot are stored, and a corresponding relationship between the two is established.

[0050] Therefore, in step S4, after determining the second spectral information of the current defocused spot, the second spectral information is matched with the spectral information of multiple preset defocused spots stored in advance. When the second spectral information matches the spectral information of one of the preset defocused spots, the defocus distance corresponding to the matched spectral information is used as the target defocus distance.

[0051] S5, controlling the motor to drive the lens group to move the target defocus distance to achieve focusing.

[0052] Therefore, in the embodiment of the present application, by performing spectral analysis on the current out-of-focus image, the defocus distance of the current out-of-focus image can be directly obtained, so that the motor controls the lens group to move to the target position (i.e., the position after moving the target defocus distance) in one step to complete the focusing, without the need to control the movement of the lens group by the motor step by step. This can greatly improve the focusing efficiency, which is beneficial to improving the response rate of autofocus, and does not require repeated contrast calculations, which can reduce computing performance requirements.

[0053] See also Figure 2 The embodiment of the present application further provides a projection device, including a first acquisition module 201, an analysis module 202, a second acquisition module 203, a third acquisition module 204 and a control module 205.

[0054] The first acquisition module 201 may be, for example, a shooting mechanism, such as a camera, for acquiring a projection screen image after the structured light pattern is projected onto a plane, as a current out-of-focus screen image.

[0055] When the projection device is turned on, the projection device projects structured light onto the plane, thereby projecting a picture of the structured light pattern onto the plane, which is the projection picture image after the structured light pattern is projected onto the plane. The first acquisition module 201 captures the projection picture image to obtain the projection picture image, and the captured projection picture image is used as the current defocused picture image.

[0056] The structured light pattern may be, for example, a cosine structured light pattern, or may be other structured light patterns with a simple spectrum and controllable frequency components. Cosine structured light is structured light whose light intensity is cosine-distributed in the horizontal direction.

[0057] The analysis module 202 is used to perform spectrum analysis on the current out-of-focus picture image to obtain first spectrum information of the current out-of-focus picture image.

[0058] An image is actually a two-dimensional matrix with spatial information. The spectrum of an image is its two-dimensional discrete Fourier transform. The spectrum analysis of an image is to analyze the amplitude of the spectrum of the image. Therefore, in the embodiment of the present application, the first spectrum information obtained includes the amplitude spectrum of the current out-of-focus image.

[0059] The second acquisition module 203 is used to acquire second spectrum information of the current defocused light spot according to the first spectrum information. The current defocused light spot is a light spot formed by any pixel point of the current defocused picture image.

[0060] The defocused image is obtained by convolving the clear image with a Gaussian kernel, and the defocused spot is a Gaussian spot. Therefore, the defocus of the defocused image can be mathematically expressed as the convolution of the defocused spot and the clear image. To be more specific, it is the spatial convolution of the Gaussian spot and the clear image. According to the Fourier analysis principle, the result of the spatial convolution is equivalent to the product of the spectra of both sides of the convolution. Therefore, the spectrum of the defocused image is equal to the product of the spectrum of the Gaussian spot and the spectrum of the clear image. Therefore, after determining the spectrum information of the defocused image and the spectrum information of the clear image, the spectrum information of the Gaussian spot can be obtained in reverse.

[0061] Therefore, the second acquisition module 203 is specifically used to obtain the third spectrum information of the predetermined clear picture image; then, the first extreme value of the spectrum of the current defocused picture image is obtained according to the first spectrum information, and the second extreme value of the spectrum of the predetermined clear picture image is obtained according to the third spectrum information, so as to obtain the second spectrum information of the current defocused light spot according to the ratio of the second extreme value to the first extreme value.

[0062] The third acquisition module 204 is used to search for spectrum information matching the second spectrum information from the pre-stored spectrum information of multiple preset defocused light spots to obtain target spectrum information, wherein the spectrum information of each preset defocused light spot corresponds to a defocus distance, and then obtain the defocus distance corresponding to the target spectrum information, thereby obtaining the target defocus distance.

[0063] Furthermore, the projection device further includes a calculation module 206 and a storage module 207. Before the third acquisition module 204 acquires the target spectrum information, the first acquisition module 201 is also used to acquire a plurality of preset defocused light spot screen images, where the plurality of preset defocused light spot screens are screens formed by the projection device in a dark environment sequentially projecting a plurality of preset defocused light spots onto a plane. The analysis module 202 is also used to perform spectrum analysis on each preset defocused light spot screen image to acquire the spectrum information of each preset defocused light spot.

[0064] The calculation module 206 is used to calculate the defocus distance corresponding to each preset defocus spot according to the spectrum information of each preset defocus spot, and establish a corresponding relationship between the spectrum information of each preset defocus spot and the defocus distance corresponding to each preset defocus spot.

[0065] Specifically, the pixel points on the projection plane can be considered to be formed by the convergence of a very small light cone, and the defocused light spot is the light spot formed after the pixel points are blurred. Therefore, the defocused light spot is also formed by the convergence of the light cone, and the expansion law of the defocused light spot is related to the light cone angle. According to the principle of conservation of optical extension, the light cone angle on the defocused light spot is determined by the size of the spatial light modulator, the light cone angle on the spatial light modulator, and the size of the projection screen where the preset defocused light spot is located. Therefore, the calculation module 206 is specifically used to obtain the light cone angle on the spatial light modulator, the size of the spatial light modulator, and the size of the projection screen where the preset defocused light spot is located, and then according to the formula , calculate the light cone angle on the preset defocused spot, where Indicates the light cone angle of the preset defocused light spot, Indicates the size of the projection screen where the preset defocused light spot is located. represents the light cone angle on the spatial light modulator, Indicates the size of the spatial light modulator.

[0066] Afterwards, the calculation module 206 calculates the defocus distance corresponding to each preset defocus spot according to the spectrum information of each preset defocus spot and the light cone angle on the corresponding preset defocus spot. Specifically, the Gaussian function used to represent each preset defocus spot is determined according to the spectrum information of each preset defocus spot, and then according to the formula , calculate the defocus distance corresponding to each preset defocus spot, where d represents the defocus distance corresponding to the preset defocus spot, Indicates the standard deviation of the Gaussian function corresponding to the preset defocused light spot.

[0067] The storage module 207 is used to store the spectrum information of each preset defocused light spot and the corresponding defocus distance.

[0068] Thus, the third acquisition module 203 can search for spectrum information matching the second spectrum information from the pre-stored spectrum information of multiple preset defocused light spots to obtain target spectrum information, and obtain the defocus distance corresponding to the target spectrum information to obtain the target defocus distance.

[0069] The control module 205 is used to control the motor to drive the lens group to move the target defocus distance to achieve focusing.

[0070] Therefore, in this embodiment, by performing spectral analysis on the current out-of-focus image, the defocus distance of the current out-of-focus image can be directly obtained, so that the motor controls the lens group to move to the target position (i.e., the position after moving the target defocus distance) in one step to complete the focusing, without the need to control the movement of the lens group by the motor step by step. This can greatly improve the focusing efficiency, which is beneficial to improving the response rate of autofocus, and does not require repeated contrast calculations, which can reduce computing performance requirements.

[0071] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An automatic focusing method for a projection device, It is characterized in that include: Acquire a projection screen image after the structured light pattern is projected onto the plane as a current defocused screen image; Performing spectrum analysis on the current out-of-focus picture image to obtain first spectrum information of the current out-of-focus picture image; Acquire third spectrum information of a predetermined clear picture image; acquire a first extreme value of a spectrum of a current out-of-focus picture image according to the first spectrum information, and acquire a second extreme value of a spectrum of a predetermined clear picture image according to the third spectrum information; According to the ratio of the second extreme value to the first extreme value, second spectrum information of the current defocused light spot is obtained, where the current defocused light spot is a light spot formed by any pixel point of the current defocused picture image; Searching for spectrum information matching the second spectrum information from pre-stored spectrum information of a plurality of preset defocused light spots to obtain target spectrum information, wherein the spectrum information of each preset defocused light spot corresponds to a defocus distance, and then obtaining the defocus distance corresponding to the target spectrum information, thereby obtaining the target defocus distance; The motor is controlled to drive the lens group to move the target defocus distance to achieve focusing.

2. The method according to claim 1, It is characterized in that Before acquiring the projection screen image after the structured light pattern is projected onto the plane, the method further includes: In a dark environment, multiple preset defocused light spots are projected onto the plane in sequence; Obtain each preset defocused light spot image; Performing spectrum analysis on each preset defocused light spot image to obtain spectrum information of each preset defocused light spot; Calculating the defocus distance corresponding to each preset defocus spot according to the spectrum information of each preset defocus spot, and establishing a corresponding relationship between the spectrum information of each preset defocus spot and the defocus distance corresponding to each preset defocus spot; The spectrum information of each preset defocused light spot and the corresponding defocus distance are stored.

3. The method according to claim 2, It is characterized in that The calculating the defocus distance corresponding to each preset defocus spot according to the spectrum information of each preset defocus spot includes: Obtaining the light cone angle on the spatial light modulator, the size of the spatial light modulator, and the size of the projection screen where the preset defocused light spot is located; According to the formula , calculate the light cone angle on the preset defocused spot, where Indicates the light cone angle of the preset defocused light spot, Indicates the size of the projection screen where the preset defocused light spot is located. represents the light cone angle on the spatial light modulator, represents the size of the spatial light modulator; According to the frequency spectrum information of each preset defocused light spot and the light cone angle on the corresponding preset defocused light spot, the defocus distance corresponding to each preset defocused light spot is calculated.

4. The method according to claim 3, It is characterized in that The calculating the defocus distance corresponding to each preset defocus spot according to the spectrum information of each preset defocus spot and the light cone angle on the corresponding preset defocus spot includes: Determine a Gaussian function for representing each preset defocused light spot according to the frequency spectrum information of each preset defocused light spot, According to the formula , calculate the defocus distance corresponding to each preset defocus spot, where d represents the defocus distance corresponding to the preset defocus spot, Indicates the standard deviation of the Gaussian function corresponding to the preset defocused light spot.

5. A projection device, It is characterized in that include: A first acquisition module is used to acquire a projection screen image after the structured light pattern is projected onto the plane, as a current defocused screen image; An analysis module, used for performing spectrum analysis on the current out-of-focus picture image to obtain first spectrum information of the current out-of-focus picture image; A second acquisition module is used to acquire third spectrum information of a predetermined clear picture image; acquire a first extreme value of a spectrum of a current out-of-focus picture image according to the first spectrum information, and acquire a second extreme value of a spectrum of a predetermined clear picture image according to the third spectrum information; According to the ratio of the second extreme value to the first extreme value, second spectrum information of the current defocused light spot is obtained, where the current defocused light spot is a light spot formed by any pixel point of the current defocused picture image; A third acquisition module is used to search for spectrum information matching the second spectrum information from the pre-stored spectrum information of multiple preset defocused light spots to obtain target spectrum information, wherein the spectrum information of each preset defocused light spot corresponds to a defocus distance, and then obtain the defocus distance corresponding to the target spectrum information, thereby obtaining the target defocus distance; The control module is used to control the motor to drive the lens group to move the target defocus distance to achieve focusing.

6. The projection device according to claim 5, It is characterized in that Also includes a computing module and a storage module; The first acquisition module is further used to acquire a plurality of preset defocused light spot picture images, wherein the plurality of preset defocused light spot pictures are pictures formed by the projection device sequentially projecting a plurality of preset defocused light spots onto a plane in a dark environment; The analysis module is also used to perform spectrum analysis on each preset defocused light spot image to obtain spectrum information of each preset defocused light spot; The calculation module is used to calculate the defocus distance corresponding to each preset defocus spot according to the spectrum information of each preset defocus spot, and establish a corresponding relationship between the spectrum information of each preset defocus spot and the defocus distance corresponding to each preset defocus spot; The storage module stores the spectrum information of each preset defocused light spot and the corresponding defocus distance.

7. The projection device according to claim 6, It is characterized in that The calculation module is specifically used for: Obtaining the size and light cone angle of the spatial light modulator, and obtaining the size of the projection screen image where the preset defocused light spot is located; According to the formula , calculate the light cone angle of the preset defocused light spot, where Indicates the light cone angle of the preset defocused light spot, Indicates the size of the projected image where the preset defocused light spot is located. represents the light cone angle of the spatial light modulator, represents the size of the spatial light modulator; According to the frequency spectrum information of each preset defocused light spot and the light cone angle on the corresponding preset defocused light spot, the defocus distance corresponding to each preset defocused light spot is calculated.

8. The projection device according to claim 7, It is characterized in that The calculation module is specifically used for: Determine a Gaussian function for representing each preset defocused light spot according to the frequency spectrum information of each preset defocused light spot, According to the formula , calculate the defocus distance corresponding to each preset defocus spot, where d represents the defocus distance corresponding to the preset defocus spot, Indicates the standard deviation of the Gaussian function corresponding to the preset defocused light spot.