1 Derivation of the optical algorithm of the fully automatic focal meter
1.1 Working principle of the fully automatic focal meter
Figure 1 is a schematic diagram of the optical path of the automatic focal meter. The light emitted by the point light source is collimated by the collimator, irradiated on the lens to be tested, deflected, and then projected onto the CCD through the beam splitter and the measuring lens. An image containing a mathematical model is obtained on the CCD. Due to the different refractive states of the tested lens, the size, position and shape of the image on the CCD will change. The relevant parameters of the tested lens can be obtained by receiving the CCD and processing the image position and shape by the microcomputer.
1.2 16-point mathematical model
Figure 2 is the image distribution diagram on the CCD when there is no measuring lens, that is, OD. When the measured lens is a negative spherical mirror, the sixteen light spots expand symmetrically relative to the initial position; when the measured lens is a positive spherical mirror, the sixteen light spots shrink symmetrically relative to the initial position. Divide the 16 light spots into four groups as shown by the dotted lines in Figure 3. Calculate the distance between the two image points in the X direction or the Y direction respectively, and you can get the vertex power S value of the measured spherical mirror. Assume that the vertex power values obtained by the four groups of light spots are S1, S2, S3 and S4, then the S value is
When the lens under test is a cylindrical lens, the light spot distribution diagram on the CCD is shown in Figure 3. Since the cylindrical lens has two main vertex focal lengths, the 16 light spots are asymmetrically distributed. Taking one group of light spots (4 measurement points) as an example, the calculation method of the main vertex focal length of the cylindrical lens is derived. Let the distance between point A and point C in the X-axis direction be x2, and the distance in the Y-axis direction be y1; let the distance between point B and point D in the X-axis direction be x1, and the distance in the Y-axis direction be y2. Assume that D1 and D2 are the two main vertex focal lengths of the cylindrical lens, and θ is the axial angle of the cylindrical lens. The following equations hold
The calculation methods for the other three groups of light spots are the same as above and will not be repeated here. Suppose the vertex power values of the cylindrical lens calculated by the four groups of light spots are C1, C2, C3 and C4, and the axis angles are θ1, θ2, θ3 and θ4, then the vertex power C value and axis angle of the cylindrical lens are
2 Image Processing System of Fully Automatic Lens Meter
The hardware system is designed according to the working principle of the automatic focal meter and the functions to be realized by the system. The system consists of two parts: data acquisition system and data processing system. The data acquisition system consists of CCD, A/D, AVR microcontroller and FIFO memory, which is mainly responsible for collecting data and storing it in FIFO memory; the data processing system consists of FPGA, LCD, FIFO memory, keyboard, and LED light source, which is mainly responsible for analyzing and calculating the collected data, and outputting the calculation results for display or printing.
CCD is a surface array sensitive element. During the integration time, charge accumulates on the CCD sensitive element. When the integration is completed, the charge data is shifted out in sequence. Since the charge data is a weak analog quantity, it must be amplified and then converted by A/D to obtain the digital quantity required by this system. In order to reduce the CPU occupancy rate of the FPGA, a memory is set on the CCD sampling board to temporarily store the converted data for the FPGA system to read. When there is no measuring lens in the optical path, the FPGA reads the collected data of the CCD, calculates the center position of the light spot, and uses the calculation result as the initial parameter of the system. When the measured lens is inserted into the optical path, the imaging position of the graticule on the CCD will change, and the change in position has a corresponding proportional relationship with the spherical and cylindrical powers of the measured lens. The FPGA receives the position information of the image and calculates the relevant parameters of the measured lens after transformation.
3 Image Binarization
It can be seen from the above system that the quality of image processing will directly affect the accuracy and stability of the measurement. Since the image acquisition device CCD adopts the PAL system, the system requires that the FPGA process a frame of image in no more than 20ms. The selection criteria for the image binarization algorithm are simple, effective and easy to implement. Therefore, this system adopts the maximum inter-class variance threshold segmentation algorithm. The basic idea of the maximum inter-class variance method is to divide the pixels in the image into two categories A and B according to the grayscale value using the threshold t. A is composed of pixels with grayscale values between 0-t, and B is composed of pixels with grayscale values between t+1-L-1 (L is the grayscale level of the image). The inter-class variance between A and B is calculated according to the following formula.
Where wA(t) is the number of pixels in A, wB(t) is the number of pixels in B. uA(t) is the average grayscale value of all pixels in A, and uB(t) is the average grayscale value of all pixels in B. u(t) is the average grayscale value of the entire image.
Change the t value from 0 to L-1 in sequence, and take the t value that makes δ(t) the largest as the optimal threshold T.
Usually, the center coordinate of a light spot should be the center of the circle of the light spot. However, the image processed by FPGA is discretized and no longer arranged regularly, so the center of the light spot is calculated by the centroid calculation method. First, assume that the light spot is composed of n pixels, the spatial coordinates corresponding to each pixel are (xi, yi), and the gray value is p(xi, yi), then the centroid coordinates of the light spot are
Since xi and yi are the centroid coordinates of the FPGA memory image, they can be converted into the center coordinates of the light spot in the actual image through a certain equivalent conversion. Substituting the center coordinates of each point into equations (7)-(10), the relevant parameters of the tested lens can be obtained.
4 Conclusion
This paper proposes a new measurement image of the fully automatic focal meter and establishes the corresponding calculation method. The system is used to measure a series of standard lenses, and the technical indicators have reached the relevant national inspection standards.
Previous article:A Design Scheme for Digital Signal Processing System
Next article:Design of six-port technology based on power divider coupler
Recommended ReadingLatest update time:2024-11-16 19:39
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- GC0308 camera circuit
- Disassembling a Highly Advanced Negative Ion Air Purifier
- GD32E231 Learning 5: Color Sensor Module GY-31 Test
- Help
- Can modules be used in electric racing?
- Understanding of TIMERA timing interrupt of MSP430F149
- Live broadcast has ended | ST wide bandgap high-performance silicon carbide and gallium nitride product technology and different application cases
- Huawei P50 series released: the world's first 3D nano-crystal mobile phone
- How to test the continuity of the communication harness?
- 422 to Ethernet