Disclosure of Invention
The invention aims to solve the technical problem of the prior art and provides a thermal defocus compensation method, a storage medium and a projection device.
The technical scheme for solving the technical problems is as follows:
a method of thermal defocus compensation comprising the steps of:
acquiring a prestored thermal defocus curve of the projection equipment; the thermal defocus curve is obtained by obtaining parameter-time curves of parameters of a plurality of projection equipment sample machines changing along with the running time of the starting up in advance and fitting the parameter-time curves of all the projection equipment sample machines;
and determining a focusing scheme of the projection equipment according to the thermal defocusing curve.
The invention has the beneficial effects that: the method comprises the steps of obtaining a thermal defocus curve by fitting the obtained parameter-time curves of a plurality of projection equipment sample machines, determining a focusing scheme of the projection equipment according to the thermal defocus curve, predicting the thermal defocus degree of the projection equipment in advance, determining the projected focusing scheme according to the thermal defocus degree of the projection equipment in advance, preventing a user from seeing an unclear picture, avoiding interfering with normal use of the user and improving the satisfaction degree of the user.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the obtaining of the parameter-time curve of the parameters of the multiple projection apparatus sample machines changing with the startup running time specifically includes:
acquiring parameter values of a plurality of projection equipment sample machines in the process from starting to a thermal equilibrium state according to a first preset time interval;
the thermal equilibrium state is that the projection equipment sample machine is in the thermal equilibrium state when the temperature value change of the projection equipment sample machine is smaller than a preset temperature threshold value within a second preset time interval;
and drawing the parameter-time curve by taking the time from starting to the thermal equilibrium state of the projection equipment sample machine as an x axis and the parameter value as a y axis.
The beneficial effect of adopting the further scheme is that: the change of the parameters of the projection equipment sample machine in the period from starting to reaching the thermal equilibrium state is obtained, the parameter-time curve of the projection equipment is obtained according to the parameters of the projection equipment, the thermal defocusing degree of the projection equipment is accurately obtained, focusing compensation is carried out according to the thermal defocusing degree of the projection equipment, and the normal use of a user is prevented from being interfered.
Further, the parameters of the projection device include: image sharpness, pixel bandwidth, distance the mirror needs to be moved to adjust the picture to maximum sharpness, and/or the number of steps the stepper motor needs to be moved to adjust the picture to maximum sharpness.
The beneficial effect of adopting the further scheme is that: the acquired parameters of the projection equipment are not limited, different parameters can be selected according to the actual scene, and the parameter-time curve of the projection equipment is more convenient to determine.
Further, the determining a focusing scheme of the projection device according to the thermal defocus curve specifically includes:
discretizing the thermal defocusing curve to obtain at least two sampling points;
calculating the curvature of each sampling point on the thermal defocus curve;
counting the number of sampling points with curvatures larger than a preset curvature;
if the number of the sampling points larger than the preset curvature is larger than a preset number value, performing a first compensation focusing scheme on the projection equipment;
otherwise, performing a second compensation focusing scheme on the projection device.
The beneficial effect of adopting the further scheme is that: and determining a focusing scheme of the projection equipment based on the curvature of the thermal defocus curve, wherein the focusing scheme is determined according to the thermal defocus degree, accurately determining a compensation focusing scheme, and improving the efficiency of the focusing compensation scheme.
Further, the performing the first compensation focusing scheme on the projection device specifically includes:
setting the sampling point with the curvature larger than the preset curvature as a focus adjusting point;
determining the turned-on time T of the projection equipment corresponding to each focusing point on the thermal defocusing curve
iAnd said parameter value Y
i;
According to the parameter value Y
iDetermining the reverse compensation step number S of the focusing motor
i;
When the time of the projection equipment is T
iWhile driving the focus motor to compensate for the step number S in the reverse direction
iWherein i is a serial number that orders all the focus points by time and i>0。
The beneficial effect of adopting the further scheme is that: according to the sampling point which is larger than the preset curvature and is used as the focusing point, the focusing time and the step number of the stepping motor which needs to be adjusted can be accurately determined, the normal use of a user is not interfered, and the satisfaction degree of the user is improved.
Further, the performing a second compensation focusing scheme on the projection device specifically includes:
determining sampling points of which the parameter values in the thermal defocus curve are half of the peak value of the thermal defocus curve, and taking the sampling points as focus adjusting points;
determining the turned-on time T of the projection equipment corresponding to the focusing point on the thermal defocusing curve
1;
According to the parameter value Y corresponding to the peak value of the thermal defocus curve
1Determining the reverse compensation step number S of the focusing motor
1;
When the projection equipment is started for a time T
1While driving the focus motor to compensate for the step number S in the reverse direction
1。
The beneficial effect of adopting the further scheme is that: when the thermal defocusing degree of the projection equipment is low, a thermal defocusing compensation method can be carried out once, a point corresponding to a parameter value which is half of the peak value of a thermal defocusing curve is determined to be used as a focusing point, when the projection equipment reaches the starting time corresponding to a focusing point, a stepping motor is driven to adjust the step number, so that the picture is adjusted to the highest definition, the focusing is completed before a user finds that the picture is not clear, the normal use of the user cannot be interfered, and the satisfaction degree of the user is improved.
Further, the parameter value Y is used for measuring the parameter value
iDetermining the reverse compensation step number S of the focusing motor
iThe method specifically comprises the following steps:
when the parameter is image definition, pixel broadband or the distance of the lens to be moved when the picture is adjusted to the highest definition, the parameter value Y is adjusted
iConverting into the step number S of the step motor for adjusting the picture to the highest definition
i’;
When the parameter is the step number of the stepping motor to be moved for adjusting the picture to the highest definition, the step number S of the stepping motor to be moved for adjusting the picture to the highest definition
iIs equal to the parameter value Y
i;
When i is equal to 1, the focusing motor reversely compensates the step number S
1The step number S equal to the step number S of the step motor required to move the picture to the highest definition
1’;
Otherwise, the focusing motor reversely compensates the step number S
iThe step number S equal to the step number S of the step motor required to move the picture to the highest definition
i' adjustment of the picture to the highest resolution in the previous time requires moving the step number S of the stepping motor
i-1The difference of `, i.e. S
i=S
i’-S
i-1’。
Further, the parameter value Y corresponding to the peak value of the thermal defocus curve
1Determining the reverse compensation step number S of the focusing motor
1The method specifically comprises the following steps:
when the parameter is image definition, pixel broadband or the distance of the lens to be moved when the picture is adjusted to the highest definition, the parameter value Y is adjusted
1Converting into the step number S of the step motor for adjusting the picture to the highest definition
1;
When the parameter is the step number of the stepping motor to be moved for adjusting the picture to the highest definition, the step number S of the stepping motor to be moved for adjusting the picture to the highest definition
1Is equal to the parameter value Y
1。
Furthermore, the present invention provides a storage medium having stored therein instructions that, when read by a computer, cause the computer to execute the thermal defocus compensation method as described in any of the above embodiments.
The invention also provides a projection device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the thermal defocus compensation method as described in any of the above embodiments when executing the program.
The invention has the beneficial effects that: the projection equipment can obtain a thermal defocusing curve by fitting the acquired parameter-time curves of a plurality of projection equipment sample machines, determine a focusing scheme of the projection equipment according to the thermal defocusing curve, predict the thermal defocusing degree of the projection equipment in advance, determine the projected focusing scheme according to the thermal defocusing degree of the projection equipment in advance, prevent a user from seeing an unclear picture, avoid interfering normal use of the user and improve the satisfaction degree of the user.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
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 some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
As shown in fig. 1, a schematic step diagram of a thermal defocus compensation method provided by an embodiment of the present invention includes the following steps:
110. acquiring a prestored thermal defocus curve of the projection equipment; the thermal defocus curve is obtained by obtaining parameter-time curves of parameters of a plurality of projection equipment sample machines changing along with the running time of the starting up in advance and fitting the parameter-time curves of all the projection equipment sample machines.
Specifically, the method for obtaining the parameters of the projection device sample machine may be obtained in a simulation environment or in a prototype test mode. The parameters of the projection equipment can be image definition, pixel broadband, the distance of the lens to be moved when the picture is adjusted to the highest definition, or the step number of the stepping motor to be moved when the picture is adjusted to the highest definition.
The method of fitting all parameter-time curves can be processed by Matlab or Origin tools. In the application, an average curve of parameter-time curves of sample machines of all projection devices is obtained and used as a thermal defocus curve.
120. And determining a focusing scheme of the projection equipment according to the thermal defocusing curve.
Based on the embodiment, the thermal defocus curves are obtained by fitting the acquired parameter-time curves of the plurality of projection equipment sample machines, the focusing scheme of the projection equipment is determined according to the thermal defocus curves, the thermal defocus degree of the projection equipment can be predicted in advance, the projected focusing scheme is determined in advance according to the thermal defocus degree of the projection equipment, a user is prevented from seeing an unclear picture, the normal use of the user is prevented from being interfered, and the satisfaction degree of the user is improved.
As shown in fig. 2, a schematic step diagram of a thermal defocus compensation method according to another embodiment of the present invention is provided, wherein step 110 specifically includes the following steps:
210. and starting the computer.
The sample machine of the projection equipment is started.
220. And judging whether the first preset time interval is reached.
If yes, go to step 230; otherwise, step 220 is performed.
230. And acquiring parameter values of the sample machine of the projection equipment.
It should be understood that the parameter value of the sample machine of the projection apparatus may be selected from one of image sharpness, pixel bandwidth, a distance to move the lens to adjust the picture to the highest sharpness, or a step number to move the stepping motor to adjust the picture to the highest sharpness, or other parameters, and is selected according to the actual scene, and is not limited in the present application. In particular the first preset time interval may be chosen to be a time interval of 1 minute.
240. And judging whether the sample machine of the projection equipment is in a thermal equilibrium state or not.
If yes, go to step 250; otherwise, step 220 is performed.
And the thermal equilibrium state of the projection equipment sample machine is that the temperature value change of the projection equipment is smaller than a preset temperature threshold value in a second preset time interval.
250. And drawing a parameter-time curve by taking the time from starting to a thermal equilibrium state of the projection equipment sample machine as an x axis and the parameter value as a y axis.
Based on the embodiment, the change of the parameters of the projection equipment sample machine in the period from the starting to the reaching of the thermal equilibrium state is obtained, the parameter-time curve of the projection equipment sample machine is obtained according to the parameters of the projection equipment, the thermal defocusing degree of the projection equipment is accurately obtained, the focusing compensation is carried out according to the thermal defocusing degree of the projection equipment, and the normal use of a user is prevented from being interfered.
As shown in fig. 3, a schematic step diagram of a thermal defocus compensation method according to another embodiment of the present invention, wherein step 120 specifically includes the following steps:
310. and carrying out discretization treatment on the thermal defocusing curve to obtain at least two sampling points.
320. And calculating the curvature of each sampling point on the thermal defocusing curve.
330. And counting the number of the sampling points with the curvatures of the sampling points larger than the preset curvatures.
340. And judging whether the number of the sampling points with the curvature larger than the preset curvature is larger than a preset number value or not.
If yes, go to step 350; otherwise, step 360 is performed.
350. A first compensated focus scheme is performed on the projection device.
360. And performing a second compensation focusing scheme on the projection device.
The preset quantity value may be 1 or other positive integers, and the specific quantity value may be determined in practical applications.
Based on the embodiment, the curvature of the thermal defocus curve is adopted to determine the focusing scheme of the projection equipment, the focusing scheme is determined according to the thermal defocus degree, the compensation focusing scheme is accurately determined, and the efficiency of the focusing compensation scheme is improved.
As shown in fig. 4, a schematic step diagram of a thermal defocus compensation method according to another embodiment of the present invention, wherein step 350 specifically includes the following steps:
351. and setting the sampling points larger than the preset curvature as focusing points.
352. Determining the starting time T of the projection equipment corresponding to each focusing point on the thermal defocusing curve
iAnd a parameter value Y
iAnd according to the parameter value Y
iDetermining the reverse compensation step number S of the focusing motor
i。
If the parameters are image definition and pixel broadband, and the picture is adjusted to the highest definition by the distance of the lens to be moved, the parameter value needs to be converted into the step number of the stepping motor to be moved for adjusting the picture to the highest definition according to the existing formula.
Specifically, when the parameter is image definition, pixel broadband or the distance of the lens to be moved for adjusting the picture to the highest definition, the parameter value Y is adjusted
iConversion to the number of steps S required to move the stepping motor to adjust the picture to the highest resolution
i’。
When the parameter is the number of steps of the stepping motor to be moved for adjusting the picture to the highest definition, the number of steps S of the stepping motor to be moved for adjusting the picture to the highest definition
iIs equal to parameter value Y
i;
When i is equal to 1, the focus motor reversely compensates the step number S
1Equal to the number of steps S required to move the stepping motor to adjust the picture to maximum resolution
1’。
Otherwise, the focusing motor reversely compensates the step number S
iEqual to the number of steps S required to move the stepping motor to adjust the picture to maximum resolution
i' adjustment of the picture to the highest resolution in the previous time requires moving the step number S of the stepping motor
i-1The difference of `, i.e. S
i=S
i’-S
i-1’。
353. When the time of the projection equipment is T
iWhile driving the focus motor to compensate the step number S in the reverse direction
i。
Where i is a sequence number ordering all focus points by time and i > 0.
Based on the embodiment, the focusing motor comprises a voice coil motor, a stepping motor or a servo motor, the time for focusing for multiple times and the step number of the stepping motor to be adjusted are accurately determined according to the sampling point larger than the preset curvature as the focusing point, normal use of a user is not interfered, and the satisfaction degree of the user is improved.
Fig. 5 is a schematic step diagram of a thermal defocus compensation method according to another embodiment of the present invention, wherein step 360 specifically includes the following steps:
361. and determining a sampling point corresponding to a parameter value of half of the peak value of the thermal defocus curve in the thermal defocus curve as a focus adjusting point.
362. Determining the on-time T of the projection equipment corresponding to the focusing point on the thermal defocusing curve
1。
363. According to the parameter value Y corresponding to the peak value of the thermal defocus curve
1Determining the reverse compensation step number S of the focusing motor
1。
Specifically, when the parameter is image definition, pixel broadband or the distance of the lens to be moved for adjusting the picture to the highest definition, the parameter value Y is adjusted
1Conversion to the number of steps S required to move the stepping motor to adjust the picture to the highest resolution
1。
When the parameter is the number of steps of the stepping motor to be moved for adjusting the picture to the highest definition, the number of steps S of the stepping motor to be moved for adjusting the picture to the highest definition
1Is equal to the parameter value Y
1。
364. When the projection device has been turned on for a time T
1While driving the focus motor to compensate the step number S in the reverse direction
1。
Based on the embodiment, when the thermal defocus degree of the projection equipment is low, the thermal defocus compensation method can be performed once, the point corresponding to the parameter value which is half of the peak value of the thermal defocus curve is determined to be used as the focus adjustment point, and when the projection equipment reaches the starting time corresponding to the focus adjustment point, the stepping motor is driven to adjust the step number, so that the picture is adjusted to the highest definition, the focusing is completed before the picture is found to be unclear by a user, the normal use of the user is not interfered, and the satisfaction degree of the user is improved.
To achieve the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium, in which instructions are executed by a processor to enable the processor to execute the thermal defocus compensation method proposed by the foregoing embodiments of the present invention.
The structural schematic diagram of a projection device provided by the embodiment of the invention includes: a processor, and a memory for storing processor-executable instructions. Wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the thermal defocus compensation method as proposed by the foregoing embodiment of the present invention.
In this embodiment, the projection device may be a home theater type projector, a portable business type projector, an educational conference type projector, a mainstream engineering type projector, a professional theater type projector, and the like, and the application scenario of the projection device is not particularly limited in this embodiment.
Based on the projection equipment provided by the embodiment, a thermal defocus curve can be obtained by fitting the acquired parameter-time curves of the plurality of projection equipment, the focusing scheme of the projection equipment can be determined according to the thermal defocus curve, the thermal defocus degree of the projection equipment can be predicted in advance, the projected focusing scheme can be determined in advance according to the thermal defocus degree of the projection equipment, a user is prevented from seeing an unclear picture, the normal use of the user is prevented from being interfered, and the satisfaction degree of the user is improved.
For example, as shown in fig. 6, which is a schematic diagram of a thermal defocus curve provided by another embodiment of the present invention.
And the x axis in the thermal defocusing curve is the starting time, the y axis is the step number of moving the focusing motor when the picture is adjusted to the highest definition, a point corresponding to half 128 of a peak value 248 of the thermal defocusing curve in the thermal defocusing curve is determined as a focusing point, the starting time of the projection equipment corresponding to the focusing point is acquired for 33 minutes, and when the starting time of the projection equipment is 33 minutes, the focusing motor is driven to reversely compensate the step number 248.
For example, as shown in fig. 7, which is a schematic diagram of a thermal defocus curve provided by another embodiment of the present invention.
The x-axis in the thermal defocus curve is the on-time and the y-axis is the frameAdjustment to maximum resolution requires moving the focus motor by the number of steps when compensation is required n times, △ T
1At the time point, the number of steps for the reverse compensation of the focus motor is △ S
1At △ T
2At the time point, the number of steps for the reverse compensation of the focus motor is △ S
2Wherein, △ S
2Is the number of the reverse compensation steps newly added by the focusing motor.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.