CN115524903A - Projection lens adjusting method and device, electronic equipment and readable storage medium - Google Patents
Projection lens adjusting method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN115524903A CN115524903A CN202211152753.5A CN202211152753A CN115524903A CN 115524903 A CN115524903 A CN 115524903A CN 202211152753 A CN202211152753 A CN 202211152753A CN 115524903 A CN115524903 A CN 115524903A
- Authority
- CN
- China
- Prior art keywords
- lens
- projection lens
- projection
- focus position
- real
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000003287 optical effect Effects 0.000 claims description 26
- 239000000463 material Substances 0.000 claims description 25
- 239000011159 matrix material Substances 0.000 claims description 12
- 230000000694 effects Effects 0.000 abstract description 11
- 238000004590 computer program Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 10
- 230000009286 beneficial effect Effects 0.000 description 7
- 230000007547 defect Effects 0.000 description 6
- 238000012549 training Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 239000011521 glass Substances 0.000 description 4
- 238000013507 mapping Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000007423 decrease Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000005286 illumination Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 241000699670 Mus sp. Species 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B21/00—Projectors or projection-type viewers; Accessories therefor
- G03B21/14—Details
- G03B21/142—Adjusting of projection optics
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B21/00—Projectors or projection-type viewers; Accessories therefor
- G03B21/14—Details
- G03B21/147—Optical correction of image distortions, e.g. keystone
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Projection Apparatus (AREA)
Abstract
The application discloses a projection lens adjusting method, a projection lens adjusting device, electronic equipment and a readable storage medium, which are applied to the technical field of projection, wherein the projection lens adjusting method comprises the following steps: acquiring real-time temperature and lens parameters of a projection lens; inquiring a preset configuration file according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens, wherein the preset configuration file comprises a corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters; and if the lens focus position deviates from the preset focus position, adjusting the lens position of the projection lens according to the lens focus position. The application solves the technical problem that the display effect of the projection picture is poor.
Description
Technical Field
The present disclosure relates to the field of projection technologies, and in particular, to a method and an apparatus for adjusting a projection lens, an electronic device, and a readable storage medium.
Background
Along with the high-speed development of science and technology, the projection technology is also developed more and more mature, at present, for saving the cost, most projection lens adopt one or more plastic lenses to replace the glass lens, but when the projecting apparatus adopted this projection lens broadcast, the light energy converted to heat energy for projection lens temperature rises, because the high thermal expansion coefficient of plastic lens among the projection lens, the condition that the resolution of picture descends appears easily, promptly, projection lens's hot virtual burnt phenomenon, and then lead to the display effect of projection picture poor.
Disclosure of Invention
The present application mainly aims to provide a method and an apparatus for adjusting a projection lens, an electronic device, and a readable storage medium, and aims to solve the technical problem in the prior art that a projection image has a poor display effect.
In order to achieve the above object, the present application provides a projection lens adjusting method applied to a projection lens adjusting apparatus, where the projection lens adjusting method includes:
acquiring real-time temperature and lens parameters of a projection lens;
inquiring a preset configuration file according to the real-time temperature and the lens parameters to obtain the lens focus position of the projection lens, wherein the preset configuration file comprises the corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters;
and if the lens focus position deviates from the preset focus position, adjusting the lens position of the projection lens according to the lens focus position.
Optionally, the projection lens includes at least one projection lens, and the lens parameter includes at least one of a lens material, a curvature radius, an optical surface type, a lens thickness, a half-aperture of the projection lens, and a lens distance between adjacent projection lenses.
Optionally, acquiring the real-time temperature of the projection lens includes:
determining a light source of the projection lens, and acquiring the spacing distance between each projection lens and the light source; collecting the real-time temperature of the target projection lens of which the spacing distance is smaller than a preset distance threshold; or,
and acquiring the real-time temperature of each projection lens forming the projection lens.
Optionally, before the step of querying a preset configuration file according to the real-time temperature to obtain a lens focus position of the projection lens, where the preset configuration file includes a corresponding relationship between the temperature of the projection lens and the lens focus position, the method further includes:
acquiring the lens focus position of the projection lens when the target projection lens is at different temperatures under the lens parameters;
and generating the preset configuration file according to the corresponding relation between the temperature and the lens focus position when the target projection lens is at different temperatures under the lens parameters of the projection lens.
Optionally, the method for adjusting a projection lens further includes:
constructing projection lens characteristics corresponding to the projection lens according to the real-time temperature and the lens parameters;
and predicting to obtain the lens focus position of the projection lens according to the projection lens characteristic and a preset lens focus model.
Optionally, the projection lens includes at least one projection lens, the lens parameter at least includes one of a lens material, a curvature radius, an optical surface type, a lens thickness, a half-aperture of the projection lens, and a lens distance between adjacent projection lenses, and the step of constructing the projection lens characteristic corresponding to the projection lens according to the real-time temperature and the lens parameter includes:
constructing a lens characteristic matrix of the projection lens according to the lens material, the curvature radius, the optical surface type, the lens thickness, the half caliber and the lens distance between adjacent projection lenses of the projection lens;
and splicing the lens characteristic matrix and the real-time temperature to obtain the projection lens characteristic of the projection lens.
Optionally, the step of adjusting the lens position of the projection lens according to the lens focus position includes:
determining the position deviation size and the position deviation direction between the lens focus position and the preset focus position;
and adjusting the lens position of the projection lens according to the position deviation and the position deviation direction.
In order to achieve the above object, the present application also provides a projection lens adjusting apparatus applied to a projection lens adjusting device, the projection lens adjusting apparatus including:
the acquisition module is used for acquiring the real-time temperature and the lens parameters of the projection lens;
the query module is used for querying a preset configuration file according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens, wherein the preset configuration file comprises a corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters;
and the adjusting module is used for adjusting the lens position of the projection lens according to the lens focus position if the lens focus position deviates from a preset focus position.
Optionally, the projection lens includes at least one projection lens, and the lens parameter includes at least one of a lens material, a curvature radius, an optical surface type, a lens thickness, a half-aperture of the projection lens, and a lens distance between adjacent projection lenses.
Optionally, the obtaining module is further configured to:
determining a light source of the projection lens, and acquiring the spacing distance between each projection lens and the light source; collecting the real-time temperature of the target projection lens of which the spacing distance is smaller than a preset distance threshold; or,
and acquiring the real-time temperature of each projection lens forming the projection lens.
Optionally, before the step of querying a preset configuration file according to the real-time temperature to obtain a lens focus position of the projection lens, where the preset configuration file includes a corresponding relationship between the temperature of the projection lens and the lens focus position, the projection lens adjusting device is further configured to:
acquiring the lens focus position of the projection lens when the target projection lens is at different temperatures under the lens parameters;
and generating the preset configuration file according to the corresponding relation between the temperature and the lens focus position when the target projection lens is at different temperatures under the lens parameters of the projection lens.
Optionally, the projection lens adjusting apparatus is further configured to:
constructing projection lens characteristics corresponding to the projection lens according to the real-time temperature and the lens parameters;
and predicting to obtain the lens focus position of the projection lens according to the projection lens characteristic and a preset lens focus model.
Optionally, the projection lens includes at least one projection lens, the lens parameters at least include one of lens material, curvature radius, optical surface type, lens thickness, half aperture and lens distance between adjacent projection lenses of the projection lens, and the projection lens adjusting device is further configured to:
constructing a lens characteristic matrix of the projection lens according to the lens material, the curvature radius, the optical surface type, the lens thickness, the half caliber and the lens distance between adjacent projection lenses of the projection lens;
and splicing the lens characteristic matrix and the real-time temperature to obtain the projection lens characteristic of the projection lens.
Optionally, the adjusting module is further configured to:
determining the position deviation size and the position deviation direction between the lens focus position and the preset focus position;
and adjusting the lens position of the projection lens according to the position deviation and the position deviation direction.
The present application further provides an electronic device, including: a memory, a processor and a program of the projection lens adjustment method stored on the memory and executable on the processor, the program of the projection lens adjustment method being executable by the processor to implement the steps of the projection lens adjustment method as described above.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a projection lens adjustment method, which when executed by a processor, implements the steps of the projection lens adjustment method as described above.
The present application further provides a computer program product comprising a computer program, which when executed by a processor, implements the steps of the projection lens adjustment method as described above.
The application provides a projection lens adjusting method, a projection lens adjusting device, electronic equipment and a readable storage medium, and due to the fact that cost is saved, most of projection lenses adopt one or more plastic lenses to replace glass lenses, and the real-time temperature and lens parameters of the projection lenses are obtained; inquiring a preset configuration file according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens, wherein the preset configuration file comprises a corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters; if the focal position of the lens deviates from the preset focal position, the lens position of the projection lens is adjusted according to the focal position of the lens, and the lens position is adjusted according to the real-time temperature of the projection lens, so that the automatic solution of the phenomenon of hot virtual focus of the projection lens is realized, the technical defect that the resolution of a picture is easy to decline due to the high thermal expansion coefficient of a plastic lens in the projection lens when a projector adopts the projection lens for playing is overcome, and the display effect of the projection picture is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart illustrating a first embodiment of a projection lens adjustment method according to the present application;
FIG. 2 is a diagram illustrating an exemplary scenario of a projection lens adjustment method according to the present application;
FIG. 3 is a diagram illustrating another exemplary scenario of a projection lens adjustment method according to the present application;
fig. 4 is a schematic structural diagram of an apparatus related to a method for adjusting a projection lens in an embodiment of the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to a projection lens adjustment method in an embodiment of the present application.
The implementation of the objectives, functional features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying figures are described in detail below. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all 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 application.
Example one
In a first embodiment of the projection lens adjustment method of the present application, referring to fig. 1, the projection lens adjustment method includes:
step S10, acquiring real-time temperature and lens parameters of a projection lens;
step S20, inquiring a preset configuration file according to the real-time temperature and the lens parameters to obtain the lens focus position of the projection lens, wherein the preset configuration file comprises the corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters;
and step S30, if the lens focus position deviates from a preset focus position, adjusting the lens position of the projection lens according to the lens focus position.
In this embodiment, it should be noted that the preset focus position is a standard position of a preset lens focus.
It can be understood that, in order to solve the technical defect that the resolution of a projection picture is low due to the fact that focusing cannot be easily caused when a projector is started up in the prior art, an identification result is obtained by performing image identification on a picture group analyzed by a projection lens, whether the projection lens has a hot virtual focus phenomenon or not is judged according to the identification result, and if the projection lens has the hot virtual focus phenomenon, the projection lens is moved according to the picture group so as to improve the resolution of the projection picture. Due to the limitation of image recognition, the method is only suitable for the situation that the resolution of a projection picture is obviously reduced, and the technical defects that when a projector adopts a projection lens with a plastic lens for playing, light energy is converted into heat energy, so that the temperature of the projection lens is increased, and the situation that the resolution of the picture is reduced easily occurs due to the high thermal expansion coefficient of the plastic lens in the projection lens are overcome.
As an example, steps S10 to S30 include: acquiring real-time temperature of the projection lens through a temperature sensor placed at a preset focus position of the projection lens, wherein the preset focus position can be above the projection lens or below the projection lens, the number of the temperature sensors can be one or more, and lens parameters of the projection lens are acquired; inquiring a preset configuration file in a projection lens adjusting system or a cloud server according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens; judging whether the focus position of the lens deviates from a preset focus position; if the focal position of the lens deviates from a preset focal position, adjusting the lens position of the projection lens according to the focal position of the lens; and if the focal position of the lens does not deviate from the preset focal position, keeping the lens position of the projection lens unchanged.
As an example, steps S10 to S30 include: acquiring real-time temperature and lens parameters of a projection lens; determining a preset configuration file corresponding to the projection lens according to the lens parameters; inquiring the preset configuration file according to the real-time temperature to obtain the lens focus position of the projection lens; and adjusting the lens position of the projection lens according to the lens focus position.
As an example, steps S10 to S30 include: acquiring real-time temperature and lens parameters of a projection lens; inquiring a preset mapping relation according to the lens parameters and the real-time temperature to obtain a lens adjusting distance corresponding to the projection lens, wherein the preset mapping relation comprises a mapping relation between the temperature of the projection lens and the lens adjusting distance; and adjusting the lens position of the projection lens according to the lens adjusting distance.
Optionally, before the step of determining whether the focal position of the lens deviates from a preset focal position, the method further includes:
judging whether the lens focus position meets a preset focus position range or not; if the lens focus position meets the preset focus position range, judging that the lens focus position does not deviate from the preset focus position; and if the lens focus position does not meet a preset focus position range, determining that the lens focus position deviates from the preset focus position, wherein the preset focus position range is a preset range of the lens focus position for determining the deviation condition of the lens focus, and the preset focus position range can be (-0.01mm, 0.01mm).
In step S10, the projection lens includes at least one projection lens, and the lens parameters at least include one of lens material, curvature radius, optical surface type, lens thickness, half-aperture, and lens distance between adjacent projection lenses of the projection lens.
In this embodiment, it should be noted that the optical surface type may be a standard surface or an even aspheric surface.
Illustratively, acquiring lens parameters of the projection lens comprises: acquiring the refractive index, abbe number and lens material of each projection lens forming the projection lens, and integrating the refractive index, the Abbe number and the lens material to obtain the lens material of each projection lens; measuring the radius of curvature of each projection lens by a keratometer; acquiring lens images carrying the characteristics of each projection lens, and identifying the lens images to obtain the type of an optical surface corresponding to each projection lens; measuring the radial aperture of each projection lens through a measuring device to obtain the half aperture of each projection lens; measuring each projection lens through the measuring device to obtain the lens thickness of each projection lens; and measuring the distance between every two adjacent projection lenses by the measuring device to obtain the lens distance between every two adjacent projection lenses, and integrating the lens material, the curvature radius, the optical surface type, the lens thickness, the semi-caliber and the lens distance into the lens parameters of the projection lens.
In step S10, acquiring a real-time temperature of the projection lens includes:
step A10, determining a light source of the projection lens, and acquiring the spacing distance between each projection lens and the light source; collecting the real-time temperature of the target projection lens of which the spacing distance is smaller than a preset distance threshold; or,
step A20, acquiring real-time temperature of each projection lens forming the projection lens.
In this embodiment, it should be noted that the preset distance threshold is a preset critical value for selecting a distance between the projection lens closest to the light source and the light source.
Exemplarily, the steps a10 to a20 include: acquiring an illumination light path of the projection lens, determining a light source of the projection lens according to the illumination light path, and acquiring the distance between each projection lens and the light source; selecting a target projection lens with the distance smaller than a preset distance threshold value from each projection lens, acquiring the real-time temperature of the target projection lens through a movable temperature sensor or a fixed temperature sensor, and replacing the real-time temperature of each projection lens with the real-time temperature of the target projection lens close to a light source, so that unnecessary energy cost consumption can be reduced, and the determining efficiency of the focal position of a lens can be improved; or, the real-time temperature of each projection lens is collected through each fixed temperature sensor fixed on each projection lens forming the projection lens, or the real-time temperature of each projection lens is collected through each movable temperature sensor.
In step S20, querying a preset configuration file according to the real-time temperature to obtain a lens focus position of the projection lens, where the preset configuration file includes a correspondence between the temperature of the projection lens and the lens focus position, and before the step of:
step B10, acquiring the lens focus positions of the projection lens when the target projection lens is at different temperatures under the lens parameters;
and step B20, generating the preset configuration file according to the corresponding relation between the temperature and the lens focus position when the target projection lens is at different temperatures under the lens parameters of the projection lens.
Exemplarily, the steps B10 to B20 include: acquiring the field sizes of the projection lens when the target projection lens is at different temperatures under the lens parameters, and calculating to obtain the lens focus position of the projection lens according to the lens position and the field sizes; and generating the preset configuration file according to the corresponding relation between the temperature and the lens focus position when the target projection lens is at different temperatures under the lens parameters of the projection lens, and writing the preset configuration file into a projection lens adjusting system or a cloud server.
As an example, referring to fig. 2, fig. 2 includes: memory, motor and temperature sensor. The method comprises the steps of calibrating the relation between the temperature and the focal position of a lens (the focal point of the lens shown in the figure) in advance, storing the relation in a memory, acquiring the real-time temperature of the projection lens through a temperature sensor, inquiring the relation in the memory according to the real-time temperature to obtain the focal position of the lens corresponding to the projection lens, sending the adjustment information of the projection lens corresponding to the focal position of the lens to a motor, wherein the adjustment information comprises an adjustment amount and an adjustment direction, and driving the lens to move through the motor according to the adjustment information.
As an example, referring to fig. 3, fig. 3 includes: temperature sensor, motor control circuit, projection lens, illumination light path and image device. And the real-time temperature obtained by measurement is sent to the motor control circuit through the temperature sensor, and the projection lens is adjusted according to the real-time temperature through the motor control circuit.
The embodiment of the application provides a projection lens adjusting method, because the cost is saved, most projection lenses adopt one or more plastic lenses to replace glass lenses, and the embodiment of the application acquires the real-time temperature and the lens parameters of the projection lenses; inquiring a preset configuration file according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens, wherein the preset configuration file comprises a corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters; if the focal position of the lens deviates from the preset focal position, the lens position of the projection lens is adjusted according to the focal position of the lens, and the lens position is adjusted according to the real-time temperature of the projection lens, so that the automatic solution of the phenomenon of hot virtual focus of the projection lens is realized, the technical defect that the resolution of a picture is easy to decline due to the high thermal expansion coefficient of a plastic lens in the projection lens when a projector adopts the projection lens for playing is overcome, and the display effect of the projection picture is improved.
Example two
Further, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated herein. On this basis, the method for adjusting a projection lens further includes:
step C10, constructing projection lens characteristics corresponding to the projection lens according to the real-time temperature and the lens parameters;
and step C20, predicting to obtain the lens focus position of the projection lens according to the projection lens characteristics and a preset lens focus model.
In this embodiment, it should be noted that the preset lens focus model is a trained model for predicting the lens focus.
Exemplarily, the steps C10 to C20 include: extracting lens parameter characteristics corresponding to the lens parameters through a preset characteristic extractor, and constructing projection lens characteristics corresponding to the projection lens according to the real-time temperature and the lens parameter characteristics corresponding to the lens parameters; and mapping the projection lens characteristics into the lens focus position of the projection lens through a preset lens focus model.
In step C10, the projection lens includes at least one projection lens, the lens parameter at least includes one of a lens material, a curvature radius, an optical surface type, a lens thickness, a half-aperture of the projection lens, and a lens distance between adjacent projection lenses, and the step of constructing the projection lens characteristic corresponding to the projection lens according to the real-time temperature and the lens parameter includes:
step C11, constructing a lens characteristic matrix of the projection lens according to the lens material, the curvature radius, the optical surface type, the lens thickness, the half caliber and the lens distance between adjacent projection lenses of the projection lens;
and step C12, splicing the lens characteristic matrix and the real-time temperature to obtain the projection lens characteristic of the projection lens.
Exemplarily, the steps C11 to C12 include: the preset feature extractor comprises a lens material feature extractor and an optical surface feature extractor, and the lens material feature extractor is used for extracting features of the lens image to obtain lens material features corresponding to the projection lenses; carrying out feature extraction on the lens image through the optical surface feature extractor to obtain optical surface features corresponding to the projection lenses; splicing the lens material characteristics, the optical surface characteristics, the curvature radius, the lens thickness, the semi-caliber and the lens distance between each two adjacent projection lenses into a lens characteristic matrix of the projection lens; and splicing the lens characteristic matrix and the real-time temperature to obtain the projection lens characteristic of the projection lens.
Because the lens focal position of the projection lens is influenced by various factors, according to the embodiment of the application, the lens material, the curvature radius, the optical surface type, the lens thickness, the semi-caliber, the lens distance between the adjacent projection lenses and the real-time temperature of the projection lens of each projection lens forming the projection lens are matched with the corresponding projection lens characteristics for the projection lens, the influence of various factors on the lens focal position of the projection lens is fully considered, and the projection lens characteristics are input values for predicting the lens focal position, so that more decision bases are provided for predicting the lens focal position of the projection lens, the prediction accuracy of the lens focal position of the projection lens is improved, the lens position adjustment of the projection lens is influenced by the prediction accuracy, the position adjustment accuracy of the projection lens is further improved, and the display effect of a projection picture is further improved.
In step S30, the step of adjusting the lens position of the projection lens according to the lens focus position includes:
step S31, determining the position deviation size and the position deviation direction between the lens focus position and the preset focus position;
and step S32, adjusting the lens position of the projection lens according to the position deviation size and the position deviation direction.
Exemplarily, steps S31 to S32 include: determining a position difference between the lens focus position and the preset focus position, determining position deviation information of the lens focus position and the preset focus position according to the position difference, wherein the position deviation information comprises a position deviation size and a position deviation direction, and adjusting the lens position of the projection lens according to the position deviation size and the position deviation direction.
As an example, steps S31 to S32 include: taking the position difference between the lens focal position and the preset focal position as the position deviation of the lens focal position and the preset focal position, determining the position deviation direction of the lens focal position and the preset focal position according to the position difference symbol between the lens focal position and the preset focal position, determining the adjustment direction of the projection lens according to the position deviation direction, determining the adjustment amount of the projection lens according to the position deviation, adjusting the lens position of the projection lens according to the adjustment direction and the adjustment amount, for example, adjusting the projection lens to the right by 0.02mm when the position difference is +0.02mm, and adjusting the projection lens to the left by 0.03mm when the position deviation is-0.03 mm.
As an example, steps S31 to S32 include: determining the adjustment direction of the projection lens according to the position deviation direction of the lens focus position and the preset focus position, determining the fine adjustment amount of the projection lens according to the position deviation, adjusting the lens position of the projection lens according to the adjustment direction and the fine adjustment amount, and returning to the execution step: judging whether the focal position of the lens deviates from a preset focal position or not until the focal position of the lens does not deviate from the preset focal position, for example, when the position difference is +0.04mm, adjusting the projection lens to the right by 0.01mm, and returning to the execution step: judging whether the focal position of the lens deviates from a preset focal position, adjusting the projection lens to the right by 0.01mm when the position difference is changed to +0.03mm, and returning to the execution step: whether the lens focal position deviates from the preset focal position or not is judged until the lens focal position does not deviate from the preset focal position, and the technical defect of low adjustment accuracy caused by low adjustment accuracy when the lens position of the projection lens is adjusted at one time is overcome by adjusting the lens position of the projection lens a small number of times, so that the adjustment accuracy of the lens position of the projection lens is improved.
Optionally, before the step of predicting a lens focus position of the projection lens according to the projection lens characteristic and a preset lens focus model, the method further includes:
acquiring a lens focus model to be trained, a training sample and a real label corresponding to the training sample, and performing iterative optimization on the lens focus model to be trained according to the training sample and the real label to obtain a preset lens focus model, wherein the training sample is a training projection lens at each temperature, and the real label is a real lens focus position of the training projection lens at each temperature.
The embodiment of the application provides a projection lens adjusting method, and due to the fact that cost is saved, most of projection lenses adopt one or more plastic lenses to replace glass lenses, and the real-time temperature and lens parameters of the projection lenses are obtained; inquiring a preset configuration file according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens, wherein the preset configuration file comprises a corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters; if the focal position of the lens deviates from the preset focal position, the lens position of the projection lens is adjusted according to the focal position of the lens, and the lens position is adjusted according to the real-time temperature of the projection lens, so that the automatic solution of the phenomenon of hot virtual focus of the projection lens is realized, the technical defect that the resolution of a picture is easy to decline due to the high thermal expansion coefficient of a plastic lens in the projection lens when a projector adopts the projection lens for playing is overcome, and the display effect of the projection picture is improved.
EXAMPLE III
The embodiment of the present application further provides a projection lens adjusting device, where the projection lens adjusting device is applied to a projection lens adjusting device, with reference to fig. 4, the projection lens adjusting device includes:
the acquisition module is used for acquiring the real-time temperature and lens parameters of the projection lens;
the query module is used for querying a preset configuration file according to the real-time temperature and the lens parameters to obtain the lens focus position of the projection lens, wherein the preset configuration file comprises the corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters;
and the adjusting module is used for adjusting the lens position of the projection lens according to the lens focus position if the lens focus position deviates from a preset focus position.
Optionally, the projection lens includes at least one projection lens, and the lens parameter includes at least one of a lens material, a curvature radius, an optical surface type, a lens thickness, a half-aperture of the projection lens, and a lens distance between adjacent projection lenses.
Optionally, the obtaining module is further configured to:
determining a light source of the projection lens, and acquiring the spacing distance between each projection lens and the light source; collecting the real-time temperature of the target projection lens of which the spacing distance is smaller than a preset distance threshold; or,
and acquiring the real-time temperature of each projection lens forming the projection lens.
Optionally, before the step of querying a preset configuration file according to the real-time temperature to obtain a lens focus position of the projection lens, where the preset configuration file includes a corresponding relationship between the temperature of the projection lens and the lens focus position, the projection lens adjusting device is further configured to:
acquiring the lens focus position of the projection lens when the target projection lens is at different temperatures under the lens parameters;
and generating the preset configuration file according to the corresponding relation between the temperature and the lens focus position when the target projection lens is at different temperatures under the lens parameters of the projection lens.
Optionally, the projection lens adjusting apparatus is further configured to:
constructing projection lens characteristics corresponding to the projection lens according to the real-time temperature and the lens parameters;
and predicting to obtain the lens focus position of the projection lens according to the projection lens characteristic and a preset lens focus model.
Optionally, the projection lens includes at least one projection lens, the lens parameters include at least one of lens material, curvature radius, optical surface type, lens thickness, half-aperture of the projection lens, and lens distance between adjacent projection lenses, and the projection lens adjusting device is further configured to:
constructing a lens characteristic matrix of the projection lens according to the lens material, the curvature radius, the optical surface type, the lens thickness, the half caliber and the lens distance between adjacent projection lenses of the projection lens;
and splicing the lens characteristic matrix and the real-time temperature to obtain the projection lens characteristic of the projection lens.
Optionally, the adjusting module is further configured to:
determining the position deviation size and the position deviation direction between the lens focus position and the preset focus position;
and adjusting the lens position of the projection lens according to the position deviation size and the position deviation direction.
The projection lens adjusting device provided by the application adopts the projection lens adjusting method in the embodiment, and the technical problem of poor display effect of a projection picture is solved. Compared with the prior art, the beneficial effects of the projection lens adjusting device provided by the embodiment of the application are the same as those of the projection lens adjusting method provided by the embodiment, and other technical features of the projection lens adjusting device are the same as those disclosed by the embodiment method, which are not repeated herein.
Example four
An embodiment of the present application provides an electronic device, which includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the projection lens adjustment method in the above embodiments.
Referring now to FIG. 5, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the application adopts the projection lens adjusting method in the above embodiment, so that the technical problem of poor display effect of a projection picture is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the projection lens adjustment method provided by the above embodiment, and other technical features of the electronic device are the same as those disclosed in the above embodiment method, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
EXAMPLE five
The present embodiment provides a computer-readable storage medium having stored thereon computer-readable program instructions for executing the method of the projection lens adjustment method in the above-described embodiments.
The computer readable storage medium provided by the embodiments of the present application may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring real-time temperature and lens parameters of a projection lens; inquiring a preset configuration file according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens, wherein the preset configuration file comprises a corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters; and if the focal position of the lens deviates from the preset focal position, adjusting the lens position of the projection lens according to the focal position of the lens.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the application stores computer-readable program instructions for executing the projection lens adjusting method, and solves the technical problem of poor display effect of a projection picture. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the application are the same as the beneficial effects of the projection lens adjustment method provided by the implementation, and are not repeated herein.
Example six
The present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the projection lens adjustment method as described above.
The computer program product solves the technical problem that the display effect of a projection picture is poor. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the projection lens adjustment method provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.
Claims (10)
1. A method for adjusting a projection lens is characterized by comprising the following steps:
acquiring real-time temperature and lens parameters of a projection lens;
inquiring a preset configuration file according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens, wherein the preset configuration file comprises a corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters;
and if the lens focus position deviates from the preset focus position, adjusting the lens position of the projection lens according to the lens focus position.
2. The method for adjusting a projection lens of claim 1, wherein the projection lens comprises at least one projection lens, and the lens parameters comprise at least one of lens material, curvature radius, optical surface type, lens thickness, half-aperture and lens distance between adjacent projection lenses.
3. The method for adjusting a projection lens of claim 1, wherein obtaining the real-time temperature of the projection lens comprises:
determining a light source of the projection lens, and acquiring the spacing distance between each projection lens and the light source; collecting the real-time temperature of the target projection lens of which the spacing distance is smaller than a preset distance threshold; or,
and acquiring real-time temperature of each projection lens forming the projection lens.
4. The method for adjusting a projection lens of claim 3, wherein before the step of querying a preset configuration file according to the real-time temperature to obtain the lens focus position of the projection lens, wherein the preset configuration file includes a corresponding relationship between the temperature of the projection lens and the lens focus position, the method further comprises:
acquiring the lens focus position of the projection lens when the target projection lens is at different temperatures under the lens parameters;
and generating the preset configuration file according to the corresponding relation between the temperature and the lens focus position when the target projection lens is at different temperatures under the lens parameters of the projection lens.
5. The projection lens adjustment method of claim 1, wherein the projection lens adjustment method further comprises:
constructing projection lens characteristics corresponding to the projection lens according to the real-time temperature and the lens parameters;
and predicting to obtain the lens focus position of the projection lens according to the projection lens characteristic and a preset lens focus model.
6. The method for adjusting a projection lens of claim 5, wherein the projection lens comprises at least one projection lens, the lens parameters comprise at least one of lens material, curvature radius, optical surface type, lens thickness, half-aperture and lens distance between adjacent projection lenses, and the step of constructing the projection lens corresponding projection lens characteristics according to the real-time temperature and the lens parameters comprises:
constructing a lens characteristic matrix of the projection lens according to the lens material, the curvature radius, the optical surface type, the lens thickness, the half caliber and the lens distance between adjacent projection lenses of the projection lens;
and splicing the lens characteristic matrix and the real-time temperature to obtain the projection lens characteristic of the projection lens.
7. The projection lens adjusting method according to claim 1, wherein the step of adjusting the lens position of the projection lens according to the lens focus position comprises:
determining the position deviation size and the position deviation direction between the lens focus position and the preset focus position;
and adjusting the lens position of the projection lens according to the position deviation and the position deviation direction.
8. A projection lens adjusting apparatus, comprising:
the acquisition module is used for acquiring the real-time temperature and the lens parameters of the projection lens;
the query module is used for querying a preset configuration file according to the real-time temperature and the lens parameters to obtain a lens focus position of the projection lens, wherein the preset configuration file comprises a corresponding relation between the temperature of the projection lens and the lens focus position under the lens parameters;
and the adjusting module is used for adjusting the lens position of the projection lens according to the lens focus position if the lens focus position deviates from a preset focus position.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the projection lens adjustment method of any one of claims 1 to 7.
10. A computer-readable storage medium, having a program for implementing a projection lens adjustment method stored thereon, the program being executed by a processor to implement the steps of the projection lens adjustment method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211152753.5A CN115524903A (en) | 2022-09-21 | 2022-09-21 | Projection lens adjusting method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211152753.5A CN115524903A (en) | 2022-09-21 | 2022-09-21 | Projection lens adjusting method and device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115524903A true CN115524903A (en) | 2022-12-27 |
Family
ID=84698803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211152753.5A Pending CN115524903A (en) | 2022-09-21 | 2022-09-21 | Projection lens adjusting method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115524903A (en) |
-
2022
- 2022-09-21 CN CN202211152753.5A patent/CN115524903A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9392153B2 (en) | Plenoptic camera resolution | |
CN110288036B (en) | Image restoration method and device and electronic equipment | |
CN111860300A (en) | Key point detection method and device, terminal equipment and storage medium | |
CN109668742A (en) | The test method and device of vehicle based on laser radar | |
EP3985610A1 (en) | Audio collection device positioning method and apparatus, and speaker recognition method and system | |
CN111738316B (en) | Zero sample learning image classification method and device and electronic equipment | |
CN112631947B (en) | Test control method and device for application program, electronic equipment and storage medium | |
CN112950523B (en) | Definition evaluation value calculation method, device, camera and storage medium | |
CN110909804B (en) | Method, device, server and storage medium for detecting abnormal data of base station | |
CN115641306A (en) | Product defect detection method and device, electronic equipment and readable storage medium | |
US11495021B2 (en) | Picture annotation method, apparatus, processing device, and system | |
CN113674424B (en) | Method and device for drawing electronic map | |
CN115937147A (en) | Defect detection parameter determination method, device, equipment and storage medium | |
CN115524903A (en) | Projection lens adjusting method and device, electronic equipment and readable storage medium | |
CN112200183B (en) | Image processing method, device, apparatus and computer readable medium | |
CN115460353B (en) | Teaching tracking camera equipment configuration method and device, electronic equipment and medium | |
CN116821647A (en) | Optimization method, device and equipment for data annotation based on sample deviation evaluation | |
CN111860074A (en) | Target object detection method and device and driving control method and device | |
CN109446356A (en) | A kind of multimedia document retrieval method and device | |
CN111832354A (en) | Target object age identification method and device and electronic equipment | |
CN116248855A (en) | Camera parameter testing method, device, computer equipment and storage medium | |
CN111124862A (en) | Intelligent equipment performance testing method and device and intelligent equipment | |
CN110348374B (en) | Vehicle detection method and device, electronic equipment and storage medium | |
CN113360690A (en) | Picture screening method, system, equipment and storage medium | |
CN113283345B (en) | Blackboard writing behavior detection methods, training methods, devices, media and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |