CN117647885A - Light source design and production method and device of optical system and electronic equipment - Google Patents

Light source design and production method and device of optical system and electronic equipment Download PDF

Info

Publication number
CN117647885A
CN117647885A CN202311543586.1A CN202311543586A CN117647885A CN 117647885 A CN117647885 A CN 117647885A CN 202311543586 A CN202311543586 A CN 202311543586A CN 117647885 A CN117647885 A CN 117647885A
Authority
CN
China
Prior art keywords
image
light source
optical system
target
design parameters
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
Application number
CN202311543586.1A
Other languages
Chinese (zh)
Inventor
陆俊杰
吴昌力
郑军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Matrixtime Robotics Shanghai Co ltd
Original Assignee
Matrixtime Robotics Shanghai Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Matrixtime Robotics Shanghai Co ltd filed Critical Matrixtime Robotics Shanghai Co ltd
Priority to CN202311543586.1A priority Critical patent/CN117647885A/en
Publication of CN117647885A publication Critical patent/CN117647885A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a light source design and production method, a device and electronic equipment of an optical system, wherein the method comprises the following steps: obtaining a standard image; obtaining a theoretical image according to design parameters of the initial light source and the imaging module; adjusting design parameters of the initial light source according to the difference between the standard image and the theoretical image until the difference meets the illumination uniformity requirement, and obtaining target design parameters; the target design parameters are used to fabricate the target light source. According to the invention, the design parameters of the initial light source are dynamically adjusted according to the difference between the standard image and the theoretical image, the comparison between the standard image and the theoretical image is performed for a new round after each parameter adjustment, the comparison result is fed back, and the iteration is circulated until the optimal target design parameters are obtained, so that the method can be directly used for manufacturing the actual light source, the labor participation cost is greatly reduced in the whole realization process, and the design efficiency is improved.

Description

Light source design and production method and device of optical system and electronic equipment
Technical Field
The invention relates to the technical field of visual imaging, in particular to a light source design and production method and device of an optical system and electronic equipment.
Background
The light source, the camera and the lens serve as three components of machine vision basic imaging, and play a vital role in a vision imaging system. As the production process becomes more complex and diverse, requirements such as uniformity of illumination intensity and the like of the visual imaging system are continuously improved. Whether new energy devices or the semiconductor industry, large-field applications requiring simultaneous detection of multiple products or processing of imaging splices, or small-field applications requiring detection of detailed features, all place high demands on maintaining uniformity of the illumination intensity distribution within a visual imaging system across the field of view. If the illumination is uneven, defects can be difficult to identify, the processing time of an image algorithm is prolonged, the difficulty is increased, and the like.
At present, the main factors influencing the illumination uniformity of a visual imaging system comprise camera quality such as signal-to-noise ratio, light-dark field uniformity and the like; lens field and aperture, etc.; a vision system operating environment; light source properties such as operating angle size, lamp bead type, and light distribution curve. Wherein, the light source attribute has the biggest influence on uniformity, and the design degree of difficulty is big. The flat field correction under a single illumination condition cannot be performed on the complex light source. Some applications also require regional or gradient designs of the field illumination. In addition, it is difficult for both design and manufacturing parties to understand parameters required by the other party, and it is difficult for the light source to simulate illuminance distribution during customization, resulting in frequent reworking and increased cost.
Therefore, how to provide a rapid and accurate design method for customizing the combined light source, which reduces the design and improves the time efficiency, is a technical problem to be solved.
Disclosure of Invention
The invention aims to provide a light source design and production method and device of an optical system and electronic equipment, which are used for quickly and accurately realizing the light source design and production. The invention can be realized as follows:
in a first aspect, the present invention provides a light source design method of an optical system, the method comprising: obtaining a standard image; obtaining a theoretical image according to design parameters of the initial light source and the imaging module; according to the difference between the standard image and the theoretical image, adjusting the design parameters of the initial light source until the difference meets the illumination uniformity requirement to obtain target design parameters; the target design parameters are used for manufacturing the target light source.
In a second aspect, the present invention provides a method of producing a light source for an optical system, the method comprising: obtaining target design parameters of a target light source; the target design parameter is obtained according to the light source design method of the optical system of the first aspect; and manufacturing a target light source according to the target design parameters.
In a third aspect, the present invention provides a light source design apparatus of an optical system, comprising: the device comprises an acquisition module and an adjustment module; the acquisition module is used for acquiring a standard image; the method is also used for obtaining theoretical images according to design parameters of the initial light source and the imaging module; the adjusting module is used for adjusting the design parameters of the initial light source according to the difference between the standard image and the theoretical image until the difference meets the illumination uniformity requirement to obtain target design parameters; the target design parameters are used for manufacturing the target light source.
In a fourth aspect, the present invention provides a light source production apparatus of an optical system, comprising: the device comprises an acquisition module and a manufacturing module; the acquisition module is used for acquiring target design parameters of the target light source; the target design parameter is obtained according to the light source design method of the optical system of the first aspect; and the manufacturing module is used for manufacturing the target light source according to the target design parameters.
In a fifth aspect, the present invention provides an electronic device comprising a processor and a memory, the memory storing a computer program executable by the processor, the processor being executable to implement the method of the first or second aspect.
The invention provides a light source design and production method, a device and electronic equipment of an optical system, wherein the method comprises the following steps: and obtaining a standard image and a theoretical image obtained according to design parameters of the initial light source and the imaging module, dynamically adjusting the design parameters of the initial light source according to the difference between the standard image and the theoretical image, repeating the process, and after each parameter adjustment, comparing the standard image with the theoretical image in a new round by the program, and feeding back an adjustment result. And performing parameter optimization in a circulating iteration mode until the standard image and the theoretical image do not generate difference, namely, the illuminance errors of the two images can meet the preset illuminance uniformity requirement. At this time, the obtained design parameter set is the optimal target design parameter, and can be directly used for manufacturing an actual light source, and the whole realization process is automatically carried out on a computer, so that the labor participation cost is greatly reduced, and the design efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a light source design method of an optical system according to an embodiment of the present invention;
FIG. 2 is a diagram of various examples of images provided in accordance with an embodiment of the present invention;
FIG. 3 is a schematic view of a light source structure according to an embodiment of the present invention;
FIG. 4 is a theoretical image provided by an embodiment of the present invention;
fig. 5 is a schematic diagram of an illuminance uniformity result corresponding to the image E in fig. 2 according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an illuminance uniformity result corresponding to the theoretical image in FIG. 4 according to an embodiment of the present invention;
FIG. 7 is a theoretical image of an embodiment of the present invention after updating design parameters of a light source;
FIG. 8 is a schematic diagram of illuminance uniformity corresponding to a theoretical image after updating design parameters of a light source according to an embodiment of the present invention;
FIG. 9 is a functional block diagram of a light source design device of an optical system according to an embodiment of the present invention;
fig. 10 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present invention, it should be noted that, if the terms "upper", "lower", "inner", "outer", and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or the azimuth or the positional relationship in which the inventive product is conventionally put in use, it is merely for convenience of describing the present invention and simplifying the description, and it is not indicated or implied that the apparatus or element referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus it should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Currently, the illuminance uniformity of a visual imaging system is affected by a plurality of hardware factors, mainly including the following four aspects:
1) Signal-to-noise ratio and bright-dark field uniformity of the camera;
2) A lens field stop, an aperture stop, etc.;
3) A working environment of the vision system;
4) The working angle and the outline dimension of the light source, the type of the light source lamp bead, the light distribution curve attribute and the like.
In practical application, for the first three hardware factors, the first three hardware factors can be directly measured and corrected through the inside of the hardware, or the output fixed deviation value is compensated through a light source, so that the influence degree of the first three hardware factors is weakened; the fourth influencing factor has the greatest influence on the uniformity of the visual imaging system, and the difficulty in accurately designing the light source is also high. Additionally, for complex or combined light source systems, flat field correction of the camera under a single illumination condition may result in uniformity failure of other illumination conditions. In addition, in some special application scenarios, it is necessary to divide the illumination in the field of view into areas or gradient. For example, in order to solve the problems of high reflection of light in a partial area and the like, so as to adapt to low illuminance, an accurate illuminance simulation design is required for the light source at this time.
In addition, some unavoidable objective factors may also affect the design accuracy of the illuminance simulation. For example, the design party does not know parameters such as the lamp bead attribute, the lamp distribution interval and the like of the manufacturing party; the manufacturing party does not know parameters such as the working environment of the light source of the design party, the imaging capability of the camera lens and the like. And most light sources do not simulate the illuminance distribution of the light source when customized.
The above problems all lead to customized light sources that do not achieve the desired uniformity of illumination. In addition, the custom light source is high in price, and once the angle and the size of the shell are shaped, the shell cannot be modified, and the cost is greatly increased during repair. Therefore, how to provide a rapid and accurate method for designing a customized combined light source, reducing design and improving time efficiency is a problem to be considered.
In order to solve the above problems, an embodiment of the present invention provides a light source design method of an optical system, referring to fig. 1, fig. 1 is a schematic flowchart of the light source design method of the optical system provided in the embodiment of the present invention, and the method may include the following steps:
s101: obtaining a standard image;
s102: and obtaining theoretical images according to design parameters of the initial light source and the imaging module.
In the embodiment of the invention, the design parameters of the initial light source can be determined by a user in combination with factors such as target illuminance uniformity, application scene of the target light source, arrangement space and the like, and include, but are not limited to, structural modeling, outline dimension, type, color, working angle, quantity and the like of the target light source. After the design parameters are preliminarily determined, the light distribution curve data of the lamp beads of the type can be tested through a luminosity distribution tester according to the lamp bead type, and an illuminance calculation file (Illuminating Engineering Society file, IES) of the lamp beads of the type can be generated. The light source design parameters including IES are introduced into the illumination design software to perform preliminary illuminance simulation to obtain a theoretical image, so that, in the step S102, the design parameters of the initial light source and the imaging module are taken as input, and the theoretical image is obtained by simulating the simulation image obtained by the optical system through the simulation software and is recorded as an image a.
S103: according to the difference between the standard image and the theoretical image, adjusting the design parameters of the initial light source until the difference meets the illumination uniformity requirement, and obtaining target design parameters; the target design parameters are used for manufacturing the target light source.
In the embodiment of the invention, the illumination uniformity requirement may be that there is no difference between the standard image and the theoretical image or that the difference is within a preset error range.
In the light source design method of the optical system shown in the steps S101 to 103, the embodiment of the invention firstly obtains the standard image and the theoretical image corresponding to the initial light source under the design parameters of the initial light source and the imaging module, then dynamically adjusts the design parameters of the initial light source according to the difference between the standard image and the theoretical image, repeats the above process, and after each parameter adjustment, the program compares the standard image and the theoretical image for a new round and feeds back the adjustment result. And performing parameter optimization in a circulating iteration mode until the standard image and the theoretical image do not generate difference, namely, the illuminance errors of the two images can meet the preset illuminance uniformity requirement. At this time, the obtained design parameters are the optimal target design parameters, and can be directly used for manufacturing the actual light source, and the whole realization process is automatically carried out on a computer, so that the labor participation cost is greatly reduced, and the design efficiency is improved.
The above steps are described in detail below.
In step S101, in one of the alternative embodiments, a target image (denoted as image D) under the target uniformity distribution may be obtained through the optical system according to the target uniformity, and the target image may be used as a standard image in the embodiment of the present invention, where the standard image includes an illuminance uniformity influencing factor. For example, the target uniformity is 100%, and an image D of the target uniformity distribution is generated as a standard image using matlab.
In another embodiment, the target image may be corrected by an image acquired under the illumination uniformity influencing factor to obtain a standard image that does not include the illumination uniformity influencing factor.
The second embodiment will be described in detail.
According to the embodiment of the invention, the image acquired under the illumination uniformity influence factor is taken as the influence image. In the process of acquiring the influence image, considering the influence of the imaging capability of the camera and the lens on the actual illuminance distribution and the influence of the ambient light in the working condition, the factors can cause the non-uniformity of the light response of the vision system. Thus, step S101 may include the steps of:
step a1: acquiring an influence image under the illumination uniformity influence factor;
The illumination uniformity influencing factors in the embodiment of the invention can comprise illumination non-uniformity caused by one or more of an optical system and ambient light; the optical system includes: the imaging lens group and the camera, so the implementation of obtaining the image affected by the illumination uniformity influence factor provided by the embodiment of the invention can be as follows:
step a1-1: under the condition that an optical system enters ambient light, acquiring an bright field image to obtain a first type of influence image;
step a1-2: and acquiring dark field images under the condition that the optical system does not enter ambient light, and obtaining a second type of influence images.
For the first type of influence image, the implementation of step a1-1 may specifically be:
under the condition that the optical system enters ambient light, a test light source is utilized to emit bright field illumination light to the optical system, and a bright field image is acquired through a camera; and acquiring a first kind of influence image according to the bright field image.
The embodiment of the invention provides different implementation modes for carrying out bright field image acquisition.
In a first embodiment: taking the test light source as a backlight source, emitting bright field illumination light to an imaging lens group of the optical system, and enabling the bright field illumination light to reach a camera after being imaged by the imaging lens group; the camera forms a bright field image from the collected bright field illumination light.
In a second embodiment, bright field illumination is emitted to the standard sheet by the test light source; the bright field illumination light is reflected by the standard sheet and then imaged by the imaging lens group to reach the camera; the camera forms a bright field image from the collected bright field illumination light.
In the embodiment of the invention, the acquired multiple Zhang Mingchang images all meet the first gray scale conditions, and the first gray scale conditions comprise: the gray maximum value or the gray value of the preset position is in the first preset gray value range. For example, the middle gray value is 150DN and the peripheral gray value is about 135DN.
The manner of acquiring the first type of influence image according to the bright field image can be as follows: collecting a plurality of dark field images meeting a first gray scale condition, averaging the plurality of Zhang Mingchang images to obtain a first type of influence image, eliminating transient noise in a time domain by averaging to obtain fixed position noise of a camera in space, wherein the gray scale distribution of the obtained first type of influence image is the non-uniformity distribution of light response under the actual working condition.
For the second type of influence image, the implementation of step a1-2 may be specifically:
acquiring a dark field image through a camera under the condition that the optical system does not enter ambient light; and acquiring a second type of influence image according to the dark field image.
In the process of dark field image acquisition, the camera cover can be kept tightly closed under the condition that the camera has no lens, or a photoresist filter is used on the lens under the condition that the camera has no lens; and then the camera is in a covered state so that no environment light enters the camera, the exposure time of the camera is controlled to reach a preset duration under the condition of no irradiation of the test light source, and a dark field image is formed according to a basic noise signal inside a sensor of the camera.
The plurality of dark field images acquired by the embodiment of the invention all meet the second gray scale conditions, and the second gray scale conditions comprise: and taking the average value of the plurality of dark field images in a second preset gray value range by using the gray minimum value or the gray value of the preset position to obtain a second type of influence image.
In the process of acquiring the bright field image and the dark field image, the following conditions need to be satisfied: the brightness of the light source is a preset brightness value, and the exposure time of the camera is matched with the light condition of the actual shooting environment.
That is, in the process of collecting the bright field image, after the camera lens is assembled according to the actual working condition, under the condition of the ambient light of the actual working condition, the exposure time of the camera is ensured to be consistent with that of the actual working scene, and the relative consistency of dark current noise of the camera is controlled; then adjusting the brightness of the light source, and collecting a plurality of Zhang Mingchang images; and then, the acquired bright field images are averaged to obtain an image B. As shown in fig. 2 (b). The transient noise in the time domain can be eliminated by averaging, the noise of the fixed position of the camera in space is obtained, and the gray distribution of the image in the obtained image B is the non-uniformity distribution of the light response under the actual working condition.
Similarly, in the process of acquiring a dark field image, the embodiment of the invention considers that in actual situations, the camera itself has dark signal non-uniformity, and the main source is non-uniformity of dark current among pixels, and the dark current is integrated into dark charge and stored in charge storage nodes in the pixels. The amount of dark charge is related to the integration time and temperature, especially when the exposure time is long. It is therefore necessary to quantify the impact factor. Therefore, when the camera is not provided with a lens, the camera cover is tightly covered under the condition of no ambient light, no light is ensured to enter the camera, under the actual working condition, the exposure time of the camera is ensured to be consistent with that of an actual working scene, a plurality of dark field images are collected, and then the average value of the plurality of dark field images is calculated, so that an image C is obtained, as shown in (C) in fig. 2.
After the images B and C are obtained in the above embodiment, the image D can be corrected. See in particular step a2.
Step a2: and correcting the target image through the influence image, so that the target image does not contain illumination uniformity influence factors, and obtaining the standard image.
Specifically, a difference image between the target image and the influence image is taken as a standard image. That is, after obtaining the target image, the first-type influence image, and the second-type influence image in the target illuminance distribution, the difference image between the image B, the image C, and the image D is calculated, that is, according to the relation: e=d-B-C can give a standard image as shown in (D) of fig. 2.
By the embodiment, the standard image under uniform distribution of the target illumination can be quickly obtained, and the standard image is a reference standard for the subsequent adjustment of the design parameters of the light source.
In step S102, the type, the external dimension and the working distance of the light source can be determined according to the actual space size and the imaging effect. As shown in fig. 3, fig. 3 is a schematic diagram of a light source structure according to an embodiment of the present invention, in which a second layer of light sources from bottom to top may be used for performing design comparison, and an initial illuminance simulation is performed according to initial light source design parameters by using lighting design software to obtain a theoretical image a, as shown in fig. 4, and fig. 4 is a theoretical image obtained according to the light source design parameters according to an embodiment of the present invention.
It should be noted that, before comparing the data of the image E with the data of the image a, the area of the field of view of the illuminated surface needs to be set larger than the actual field of view during the simulation, so that the image a is larger than the image E. In order to ensure the accuracy of the simulation result, the image A can be subjected to data cutting processing.
Before step S103 is performed, in order to quantify the difference between the image a and the image E, the implementation manner provided by the embodiment of the present invention is: and respectively calculating the illumination uniformity of the standard image and the theoretical image, and taking the difference of the illumination uniformity as the difference.
In the embodiment of the invention, for standard images, illuminance uniformity can be calculated in the following ways:
step b1, determining a plurality of sampling areas from a standard image;
step b2, calculating the gray average value in each sampling area;
and b3, taking the ratio of the sum of the gray average values to the gray average value corresponding to the sampling area positioned at the center of the standard image as the illuminance uniformity.
Similarly, for a theoretical image, a plurality of sampling regions may be determined from the theoretical image; calculating the gray average value in each sampling area; the ratio of the sum of the gradation averages to the gradation average corresponding to the sampling area located at the center of the theoretical image is taken as the illuminance uniformity of the theoretical image.
For ease of understanding, the above embodiments may be expressed as: unitedness=average (a) 1 :a n )/a center Wherein uniformity represents illuminance uniformity, a 1 To a n Represents the sampling area, a center Representing the sampling area at the center of the image. Then, the image E is processed in this embodiment to obtain the result shown in FIG. 5, and FIG. 5 is the image E in FIG. 2 provided by the embodiment of the present inventionA corresponding illumination uniformity result is shown in the image E, wherein a is shown in the image E 1 To a 9 Sampling regions, a 5 Is the sampling area, a, located at the center of the image E 1 To a 9 The average gray value corresponding to each sampling region is shown in fig. 5, and finally, luminance uniformity (E) = 105.84% corresponding to the image E is obtained. Similarly, with reference to fig. 6, fig. 6 is a schematic diagram of illuminance uniformity results corresponding to the theoretical image in fig. 4 provided by the embodiment of the present invention, using the uniformity (a) = 101.78% in the embodiment.
As shown in fig. 5 and 6, it can be seen that the difference between the illuminance uniformity of the image a and the illuminance uniformity of the image E is large, so that the initial light source design parameters can be adjusted. The adjustment mode can be defined according to actual needs, and in an alternative embodiment, the size and working distance of the light source can be controlled to be invariable, and adjustable variables such as the attribute of the light beads, the arrangement mode of the light beads, the working angle of the light source, the working distance of the light source and the like are modified to redetermine new design simulation parameters. For example, as shown in fig. 7, fig. 7 is a theoretical image obtained by updating the light source design parameters according to the embodiment of the present invention, and fig. 8 is a schematic view of illuminance uniformity corresponding to the image in fig. 7, where uniformity (a')= 105.64% and uniformity (E) are almost identical, the light source design parameters determined at this time may be used as optimal target design parameters to produce a target light source according to the target illuminance uniformity distribution.
The light source design method of the optical system provided by the embodiment of the invention can obtain the target parameters for manufacturing the light source, so the embodiment of the invention also provides a light source production method of the optical system, comprising the following steps:
obtaining target design parameters of a target light source; the target design parameters are obtained by the light source design method of the optical system provided by the embodiment of the invention;
and manufacturing the target light source according to the target design parameters.
The method can rapidly complete the light source production task of the optical system, and improves the production efficiency.
In an alternative embodiment, the obtained target design parameters include a type parameter of the lamp beads and an arrangement parameter of the lamp beads in the target light source; in order to ensure the accuracy of the light source design, the embodiment of the invention also provides an implementation method for manufacturing the target light source according to the target design parameters, which comprises the following steps:
step c-1, acquiring first light distribution curve data of the lamp beads according to target design parameters of a target light source;
c-2, obtaining lamp beads which accord with target design parameters, and testing second light distribution curve data of the lamp beads;
step c-3: and when the correlation between the first light distribution curve data and the second light distribution curve data is greater than a preset threshold value, manufacturing a target light source according to the target design parameters.
In the embodiment of the invention, the type of the lamp beads used for production is checked, the light distribution curve data of the lamp beads in the type are tested by using a light intensity distribution tester, the light distribution curve data of the lamp beads in the type are compared with the configured lamp bead light distribution curve data in the light source design parameters, and if the correlation of the light distribution curve data and the configured lamp bead light distribution curve data is greater than a preset threshold value, such as 0.99 or other specified values, the production can be performed, so that the produced target light source can meet the requirements.
In alternative embodiments, the target design parameters further comprise operating parameters of the light source, the operating parameters comprising one or more combinations of operating distances or angles; after the target light source is fabricated according to the target design parameters, the light source may be installed according to the operating parameters.
It can be understood that after the target light source is manufactured, a user can perform illuminance uniformity test in the optical module according to the working distance configured in the light source design parameters, and the test result is basically consistent with the target uniformity distribution, so that the target light source is indicated to meet the uniformity requirement; if the measured result does not meet the requirement of target uniformity distribution, the size, angle, lamp bead IES file and the like of the light source real object need to be checked for repair optimization.
According to the light source design method of the optical system, the influence of cameras, lenses and ambient light on the uniformity of the light is comprehensively considered according to the application experience of the product. Meanwhile, the transient random noise influence of the target visual system in the time domain is eliminated by the mean value obtaining method, so that the noise of the target visual system in the fixed position in the space domain is calculated, and is corrected by an algorithm, the matching performance of a design result and an actual application scene is improved, and a universal and comprehensive precise simulation method for the illuminance uniformity of the visual imaging system is provided from the hardware design level, so that precise references are provided for the subsequent light source design. In the whole implementation mode, the embodiment of the invention focuses on the influence degree of the lamp bead attribute on the actual effect of the light source, and the actual measurement and confirmation of the lamp bead attribute file before design and before manufacture are clarified, so that the consistency of the lamp bead attribute file and the lamp bead attribute file is ensured, and the problem that the design result is matched with the actual result is often ignored by the design party and the manufacture party at present. The rapid and accurate design method for customizing the combined light source can reduce the direct communication cost of a design party and a manufacturing party, reduce the repair cost and greatly improve the time efficiency.
Based on the same inventive concept as fig. 1, an embodiment of the present invention further provides a light source design device of an optical system, referring to fig. 9, fig. 9 is a functional block diagram of the light source design device of the optical system provided in the embodiment of the present invention, where the light source design device 200 of the optical system may include a first obtaining module 210 and an adjusting module 220.
A first acquiring module 210, configured to acquire a standard image; the method is also used for obtaining theoretical images according to design parameters of the initial light source and the imaging module;
the adjusting module 220 is configured to adjust the design parameters of the initial light source according to the difference between the standard image and the theoretical image until the difference meets the illuminance uniformity requirement, thereby obtaining target design parameters; the target design parameters are used for manufacturing the target light source.
It is understood that the first obtaining module 210 and the adjusting module 220 may cooperatively perform the steps in fig. 1 to achieve corresponding technical effects.
In an alternative embodiment, the first obtaining module 210 is further configured to perform steps a1 to a2, steps a1-1 to a1-2, step a1, and the adjusting module 220 is further configured to perform steps b1 to b3, so as to achieve corresponding technical effects.
Based on the same technical conception as the light source production method of the optical system, the embodiment of the invention also provides a light source production device of the optical system, which comprises: the second acquisition module and the manufacturing module;
The second acquisition module is used for acquiring target design parameters of the target light source; the target design parameters are obtained by the light source design method of the optical system provided by the embodiment of the invention;
and the manufacturing module is used for manufacturing the target light source according to the target design parameters.
In an alternative embodiment, the target design parameters include a type parameter of the beads and an arrangement parameter of the beads in the target light source; the manufacturing module is specifically used for acquiring first light distribution curve data of the lamp beads according to target design parameters of the target light source; obtaining lamp beads which accord with target design parameters, and testing second light distribution curve data of the lamp beads; and when the correlation between the first light distribution curve data and the second light distribution curve data is greater than a preset threshold value, manufacturing a target light source according to the target design parameters.
In alternative embodiments, the target design parameters further comprise operating parameters of the light source, the operating parameters comprising one or more combinations of operating distances or angles; the light source production device of the optical system may further include a mounting module for mounting the light source according to the operation parameter.
It should be noted that, in the above embodiments of the present application, the division of the modules is merely schematic, and there may be another division manner in actual implementation, and in addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or may exist separately and physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all or part of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, including several instructions to cause an electronic device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Based on the foregoing embodiments, the embodiment of the present invention further provides an electronic device, referring to fig. 10, fig. 10 is a block diagram of an electronic device provided in the embodiment of the present invention, where the electronic device is configured to execute the light source design method of the optical system or the light source production method of the optical system provided in the embodiment of the present invention, and the electronic device 300 includes: the memory 301, the processor 302, the communication interface 303, and the bus 304 are electrically connected directly or indirectly to each other, so as to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
Alternatively, bus 304 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 10, but not only one bus or one type of bus.
In an embodiment of the present invention, the processor 302 may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, where the methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software module may be located in the memory 301 and the processor 302 reads the program instructions in the memory 301 to perform the steps of the method described above in connection with its hardware.
In the embodiment of the present invention, the memory 301 may be a nonvolatile memory, such as a hard disk (HDD) or a Solid State Drive (SSD), or may be a volatile memory (RAM). The memory may also be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory in embodiments of the present invention may also be circuitry or any other device capable of performing memory functions for storing instructions and/or data.
The memory 301 may be used to store software programs and modules, such as instructions/modules of the light source design apparatus 200 of an optical system or the light source production apparatus of an optical system provided in the embodiment of the present invention, may be stored in the memory 301 in the form of software or firmware (firmware) or be solidified in an Operating System (OS) of the electronic device 300, and the processor 302 executes the software programs and modules stored in the memory 301, thereby executing various functional applications and data processing. The communication interface 303 may be used for communication of signaling or data with other node devices.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and units described above may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
It is to be understood that the configuration shown in fig. 10 is illustrative only, and that the electronic device 300 may also include more or fewer components than shown in fig. 10, or have a different configuration than shown in fig. 10. The components shown in fig. 10 may be implemented in hardware, software, or a combination thereof.
The electronic device 300 may be any electronic product that can interact with a user, such as a personal computer, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), etc.
The electronic device 300 may also include network devices and/or user devices. Network devices include, but are not limited to, a single network server, a server group of multiple network servers, or a Cloud based Cloud Computing (Cloud Computing) composed of a large number of hosts or network servers.
The network in which the electronic device 300 is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
Based on the above embodiments, the present application also provides a storage medium in which a computer program is stored, which when executed by a computer, causes the computer to execute the light source design method of the optical system or the light source production method of the optical system provided by the above embodiments.
Based on the above embodiments, the present embodiments also provide a computer program, which when run on a computer, causes the computer to execute the light source design method of the optical system or the light source production method of the optical system provided by the above embodiments.
Based on the above embodiments, the embodiments of the present invention further provide a chip for reading a computer program stored in a memory, for executing the light source design method of the optical system or the light source production method of the optical system provided in the above embodiments.
Embodiments of the present invention also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the light source design method of the bulk optical system or the light source production method of the optical system provided in the above embodiments.
The present invention is not limited to the above embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (23)

1. A light source design method of an optical system, wherein the optical system includes an imaging module and a target light source, the method comprising:
obtaining a standard image;
obtaining a theoretical image according to design parameters of the initial light source and the imaging module;
according to the difference between the standard image and the theoretical image, adjusting the design parameters of the initial light source until the difference meets the illumination uniformity requirement to obtain target design parameters; the target design parameters are used for manufacturing the target light source.
2. The method of designing a light source for an optical system according to claim 1, wherein the standard image contains or does not contain an illuminance uniformity influence factor.
3. The method of designing a light source of an optical system according to claim 2, wherein acquiring the standard image includes:
the standard image is a target image which can be acquired by the optical system, and the target image is an image with preset illumination uniformity; or,
acquiring an influence image under the illumination uniformity influence factor;
and correcting the target image through the influence image, so that the target image does not contain illumination uniformity influence factors, and obtaining the standard image.
4. A light source design method for an optical system according to claim 3,
correcting the target image through the influence image to enable the target image not to contain illumination uniformity influence factors, and obtaining the standard image, wherein the method comprises the following steps of:
and taking a difference image between the target image and the influence image as the standard image.
5. The method of claim 4, wherein the illumination uniformity influencing factor comprises illumination non-uniformity caused by one or more of the combination of the optical system and ambient light; the optical system includes: imaging lens group and camera.
6. The method of claim 5, wherein the influence image includes one or a combination of a first type of influence image and a second type of influence image, and acquiring the influence image under the illuminance uniformity influence factor includes:
under the condition that the optical system enters the ambient light, bright field image acquisition is carried out, and the first type of influence image is obtained; and acquiring a dark field image under the condition that the optical system does not enter the ambient light, and obtaining the second type of influence image.
7. The method for designing a light source of an optical system according to claim 6, wherein,
under the condition that the optical system enters the ambient light, performing bright field image acquisition to obtain the first type of influence image, wherein the method comprises the following steps of:
under the condition that an optical system enters the ambient light, a test light source is utilized to emit bright field illumination light to the optical system, and bright field images are collected through the camera; acquiring a first type of influence image according to the bright field image;
and acquiring a dark field image under the condition that the optical system does not enter the ambient light, and acquiring the second type of influence image, wherein the method comprises the following steps:
acquiring a dark field image by the camera under the condition that the optical system does not enter the ambient light; and acquiring a second type of influence image according to the dark field image.
8. The method of designing a light source for an optical system according to claim 7, wherein the step of emitting bright-field illumination light to the optical system using a test light source and collecting bright-field images by the camera includes:
the test light source is used as a backlight source, bright field illumination light is emitted to the imaging lens group of the optical system, and the bright field illumination light reaches the camera after being imaged by the imaging lens group; the camera forms the bright field image according to the collected bright field illumination light;
Emitting bright field illumination light to the standard sheet through the test light source; the bright field illumination light is reflected by the standard sheet and then imaged by the imaging lens group to reach the camera; the camera forms the bright field image according to the collected bright field illumination light.
9. The method for designing a light source of an optical system according to claim 7, wherein acquiring a dark field image by the camera under a condition that the optical system does not enter the ambient light, comprises:
and under the condition that the camera does not have a lens, keeping a camera cover tightly closed and enabling the camera to be in a covered state so as to enable no environment light in the camera to enter, controlling the exposure time of the camera to reach a preset duration under the condition that no test light source irradiates, and forming the dark field image according to a basic noise signal in a sensor of the camera.
10. The method for designing a light source of an optical system according to claim 7, wherein acquiring a first type of influence image from the bright-field image comprises:
collecting a plurality of bright field images which accord with a first gray scale condition, and taking an average value of the bright field images to obtain the first type of influence image, wherein the first gray scale condition comprises: the gray level maximum value or the gray level value of the preset position is in a first preset gray level value range;
Acquiring a second type of influence image according to the dark field image, wherein the second type of influence image comprises:
collecting a plurality of dark field images conforming to a second gray scale condition, and taking an average value of the plurality of dark field images to obtain the second type of influence image, wherein the second gray scale condition comprises: the gray level minimum value or the gray level value of the preset position is in the second preset gray level value range.
11. The method of designing a light source of an optical system according to claim 9, wherein the number of dark field images is equal to the number of bright field images.
12. The method according to claim 7, wherein the exposure time of the camera is matched with the light condition of the actual shooting environment in the process of collecting the bright field image and the dark field image; and the brightness of the light source is a preset brightness value in the process of collecting the bright field image.
13. The method for designing a light source of an optical system according to claim 1, wherein after obtaining a theoretical image based on design parameters of an initial light source and an imaging module, the method further comprises:
and respectively calculating the illumination uniformity of each of the standard image and the theoretical image, and taking the difference of the illumination uniformity as the difference.
14. The method for designing a light source of an optical system according to claim 13, wherein the calculation method for illuminance uniformity of the standard image includes:
determining a plurality of sampling areas from the standard image; calculating the gray average value in each sampling area; and taking the ratio of the sum of the gray average values to the gray average value corresponding to the sampling area positioned at the center of the standard image as the illumination uniformity of the standard image.
15. The method for designing a light source of an optical system according to claim 13, wherein the calculation of the illuminance uniformity of the theoretical image includes:
determining a plurality of sampling regions from the theoretical image; calculating the gray average value in each sampling area; and taking the ratio of the sum of the gray average values to the gray average value corresponding to the sampling area positioned at the center of the theoretical image as the illuminance uniformity of the theoretical image.
16. The method of claim 1, wherein the illuminance uniformity requirement is that the difference is within a predetermined error range.
17. The method of claim 1, wherein obtaining theoretical images based on design parameters of the initial light source and the imaging module comprises:
And taking design parameters of the initial light source and the imaging module as input, and simulating a simulation image obtained by an optical system through simulation software to obtain the theoretical image.
18. A method of producing a light source for an optical system, the method comprising:
obtaining target design parameters of a target light source; the target design parameter is obtained according to the light source design method of the optical system of any one of claims 1 to 17;
and manufacturing a target light source according to the target design parameters.
19. The method of claim 18, wherein the target design parameters include a type parameter of the beads and an arrangement parameter of the beads in the target light source;
the manufacturing the target light source according to the target design parameters comprises the following steps:
acquiring first light distribution curve data of the lamp beads according to target design parameters of the target light source;
obtaining a lamp bead conforming to the target design parameters, and testing second light distribution curve data of the lamp bead;
and when the correlation between the first light distribution curve data and the second light distribution curve data is greater than a preset threshold, manufacturing the target light source according to the target design parameters.
20. The method of claim 18, wherein the target design parameters further comprise operating parameters of the light source, the operating parameters comprising one or more combinations of working distances or angles; after the target light source is manufactured according to the target design parameters, the production method further comprises the following steps: and installing the light source according to the working parameters.
21. A light source design device of an optical system, comprising: the device comprises an acquisition module and an adjustment module;
the acquisition module is used for acquiring a standard image;
the acquisition module is also used for acquiring theoretical images according to design parameters of the initial light source and the imaging module;
the adjusting module is used for adjusting the design parameters of the initial light source according to the difference between the standard image and the theoretical image until the difference meets the illumination uniformity requirement to obtain target design parameters; the target design parameters are used for manufacturing the target light source.
22. A light source production apparatus of an optical system, comprising: the device comprises an acquisition module and a manufacturing module;
the acquisition module is used for acquiring target design parameters of the target light source; the target design parameter is obtained according to the light source design method of the optical system of any one of claims 1 to 17;
And the manufacturing module is used for manufacturing the target light source according to the target design parameters.
23. An electronic device comprising a processor and a memory, the memory storing a computer program executable by the processor, the processor being executable to implement the light source design method of the optical system of any one of claims 1 to 17 or the light source production method of the optical system of any one of claims 18-20.
CN202311543586.1A 2023-11-17 2023-11-17 Light source design and production method and device of optical system and electronic equipment Pending CN117647885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311543586.1A CN117647885A (en) 2023-11-17 2023-11-17 Light source design and production method and device of optical system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311543586.1A CN117647885A (en) 2023-11-17 2023-11-17 Light source design and production method and device of optical system and electronic equipment

Publications (1)

Publication Number Publication Date
CN117647885A true CN117647885A (en) 2024-03-05

Family

ID=90048769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311543586.1A Pending CN117647885A (en) 2023-11-17 2023-11-17 Light source design and production method and device of optical system and electronic equipment

Country Status (1)

Country Link
CN (1) CN117647885A (en)

Similar Documents

Publication Publication Date Title
KR100809349B1 (en) Apparatus and method for compensating brightness of image
US11587257B1 (en) Camera calibration system
CN106713887A (en) Mobile terminal, and white balance adjustment method
US20230410369A1 (en) Method and apparatus for adjusting an image acquisition apparatus, compensation method of a display panel, device and medium
CN111145138B (en) Detection method, device and equipment for LED lamp panel and storage medium
CN112848281B (en) Light compensation method for photocuring 3D printer
CN113352618A (en) Gray level setting method and device of 3D printer and 3D printer
CN110310245B (en) Correction method and correction device for image illumination distribution and terminal
US10520424B2 (en) Adaptive method for a light source for inspecting an article
CN112070682A (en) Method and device for compensating image brightness
CN112801948B (en) Method, system and storage medium for detecting board line defect of printed circuit board
CN115423808B (en) Quality detection method for speckle projector, electronic device, and storage medium
CN117647885A (en) Light source design and production method and device of optical system and electronic equipment
CN116067671B (en) Method, system and medium for testing vehicle paint quality
CN116862810A (en) Brightness adjusting method and device
CN110335219A (en) A kind of bearing calibration, means for correcting and the terminal of pixel distortion
CN114697433A (en) Under screen phase machine
CN112165616B (en) Camera module testing method and device, electronic equipment and storage medium
CN114841943A (en) Part detection method, device, equipment and storage medium
CN112051037B (en) Lens detection method and device and terminal equipment
CN113793291A (en) Image fusion method and device, electronic equipment and storage medium
CN110428793B (en) Brightness correction system and method
CN114689604A (en) Image processing method for optical detection of object to be detected with smooth surface and detection system thereof
CN117132589B (en) Fringe pattern correction method, optical detection device and storage medium
CN112468803B (en) Exposure calibration method, device, equipment and medium for camera module

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