Method and system for testing the sway stabilization accuracy of optoelectronic devices based on image processing
Through the image processing-based photoelectric device swing and image stabilization accuracy test system, which uses collimator light tubes, Z-axis instruments and image acquisition devices, the problem of difficult operation of photoelectric device performance testing in the existing technology is solved, and automatic calculation and quality recording are realized. Improved test accuracy and objectivity.
Patent Information
- Application Number
- CN202210709959.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology lacks an easy-to-operate method for testing the performance of optoelectronic devices and cannot record the quality of the formation process of the optoelectronic devices, resulting in the inability to trace the performance adjustment and measurement results of the optoelectronic devices.
A photoelectric device swing stabilization accuracy test system based on image processing is used, including a collimator, a Z-axis instrument and an image acquisition device. The received digital image is processed through the computer system to obtain the swing accuracy test data and performance data of the optoelectronic device. Realize automatic calculation and recording.
It improves the objectivity and accuracy of the image stabilization accuracy test of optoelectronic devices, simplifies the test process, avoids manual observation errors, and enables the recording and traceability of the quality of the optoelectronic device assembly and adjustment process.
Smart Images

Figure CN115144159B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optoelectronic device testing, and in particular to an image processing-based method and system for testing the sway stabilization accuracy of an optoelectronic device. Background Art
[0002] An optoelectronic device is a product with highly integrated optics, mechanics and electronics. During the installation and commissioning of the optoelectronic device, it is necessary to calibrate, measure, calculate and judge the optical, mechanical and electrical performance of the device to obtain the performance of the device and adjust the device to suit the application scenario.
[0003] The prior art does not have an easy-to-operate method for testing the performance of optoelectronic devices, nor can it record the results of each process when adjusting, measuring, calculating, and judging the optoelectronic devices, and cannot trace the quality of the optoelectronic device formation process. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a method and system for testing the swing stabilization accuracy of an optoelectronic device based on image processing. The method and system are used to solve the technical problems in the prior art that there is no easy-to-operate method for testing the performance of optoelectronic devices and that the quality of the formation process of the optoelectronic devices cannot be traced.
[0005] According to a first aspect of the present invention, there is provided a photoelectric device sway stabilization accuracy test system based on image processing, the system comprising a collimator, a Z-axis instrument, an image acquisition device and a computer system;
[0006] The collimator is a target generating device of the swing stabilization precision test system. The collimator is imaged at infinity to provide a reference mark for the measurement and calibration of the optoelectronic device swing stabilization precision test system.
[0007] The Z-axis instrument is used to drive the photoelectric device to be tested to rotate stably around the visual axis, providing a swing test condition for the image stabilization accuracy test; when the Z-axis instrument is working, it drives the photoelectric device to be tested to rotate around the visual axis;
[0008] The image acquisition device is used to acquire a digital image of the observed field of view during the installation, adjustment and testing of the optoelectronic device, and transmit the acquired digital image to the computer system in real time through a data interface; the image acquisition device includes mounting accessories and a camera, and the mounting accessories include a support rod, an adjustment seat and a camera box; the image acquisition device moves synchronously with the optoelectronic device to be tested around the Z-axis instrument rotation axis without relative displacement;
[0009] The computer system is used to process the received digital image, obtain the motion vector of the photoelectric device division relative to the collimator cross division, fit the relative motion curve, and then obtain the swing accuracy test data of the photoelectric device and various performance data of the photoelectric device.
[0010] Furthermore, the optoelectronic device to be tested is a sight.
[0011] Furthermore, the collimator has a collimator bracket, which is used to fix the collimator and ensure that the height, tilt and pitch of the collimator can be smoothly adjusted within a preset range, so as to provide a test height and parallel cross-scale markings for the sight to be tested; the collimator is placed horizontally indoors and is stationary relative to the earth.
[0012] Furthermore, the sight is installed on the Z-axis instrument, the optical axis of the main aiming light path of the sight coincides with the rotation axis of the Z-axis instrument and the optical axis of the parallel light tube, and the vertex of the triangle in the aiming scale coincides with the center of the cross scale of the parallel light tube; when testing, the sight is in a stable image working state, and when the Z-axis instrument is rotated, the sight rotates around the rotation axis of the Z-axis instrument.
[0013] Furthermore, the thread at the front end of the camera box is engaged with the thread ring of the eyepiece of the sight to be tested and is installed behind the sight; the image acquisition device is installed behind the sight, the adjustment mechanism of the camera makes the central axis of the camera field of view coincide with the optical axis of the main light path of the daytime vision of the sight, and the image acquisition device rotates synchronously with the sight around the Z-axis instrument rotation axis without relative displacement; the light beam emitted from the eyepiece of the sight enters the camera objective lens, and the generated image is transmitted to the computer system to measure the movement of the collimator cross scale relative to the quasi-scale of the sight, and then calculate and analyze the stability accuracy of the aiming line.
[0014] Furthermore, the computer system includes an image processing module, a test data analysis module and a database management module; the image processing module filters the received digital image, extracts edge features, detects cross scales, and locates the center point of the cross scales to obtain the motion vector of the collimator cross scale relative to the sight scale; the test data analysis module uses the real-time coordinates of the center point of the collimator cross scale and the vertices of the sight scale triangle to calculate the horizontal and vertical motion offsets of the two in real time, then calculates the angular motion vector of the sight scale relative to the cross line, and fits the relative motion curve to obtain test data, thereby obtaining the image stabilization performance parameters of the sight; the database management module is used to store and manage images and test data, and provides a printing function.
[0015] Furthermore, the image processing module performs filtering, edge feature extraction, cross-scale detection and cross-scale center point positioning on the received digital image;
[0016] The average or Gaussian smoothing filtering algorithm is used for filtering, the adaptive edge extraction algorithm is used to realize edge feature extraction, the Hough transform algorithm is used to realize cross division detection and fit the polar coordinate expression of two straight lines, and the cross division center point is located by calculating the intersection coordinates of the two straight lines.
[0017] Furthermore, the edge feature extraction method specifically includes: using adaptive threshold segmentation to extract edge features, the crosshairs and sight reticle lines in the image are originally black; using grayscale threshold segmentation to extract edge features of the crosshairs and sight reticle lines; using an adaptive threshold method to achieve stable extraction of edge features;
[0018] The cross-grain detection method specifically includes:
[0019] Detecting the line with the strongest straight line feature from the acquired edge feature image by using the Hough algorithm to obtain a first cross-line; and using the orthogonal constraint method to obtain a second cross-line perpendicular to the first cross-line;
[0020] The cross-scale center point positioning method specifically includes:
[0021] The cross-reticle center point is determined by solving the intersection point of the first cross-reticle line and the second cross-reticle line polar coordinate expression.
[0022] According to a second aspect of the present invention, there is provided an operation method of a photoelectric device swaying and image stabilization accuracy test system based on image processing, which is performed using the photoelectric device swaying and image stabilization accuracy test system based on image processing as described above, and the method performs the following steps:
[0023] Step S301: placing the collimator on a workbench plane, turning the bottom adjustment bolt of the collimator to level it, and making the cross-reflection image clear;
[0024] Step S302: placing the sight to be tested on the Z-axis instrument so that the main optical axis of the daylight view coincides with the rotation axis of the Z-axis instrument and the optical axis of the collimator;
[0025] Step S303: installing the image acquisition device on the forehead protector of the sight, connecting it to the eyepiece of the sight through the eyepiece hood thread, adjusting the bolts to make the connection reliable and stable, and connecting the camera data cable to the computer system;
[0026] Step S304: starting the computer system, observing the aiming differentiation and cross-scale in the image collected by the image acquisition device through the computer system screen, and adjusting the camera horizontal and vertical adjustment knobs to make the main axis of the camera imaging system coincide with the main optical axis of the sight;
[0027] Step S305: rotating the Z-axis instrument rotation axis to adjust the Z-axis instrument;
[0028] Step S306: The computer system processes the received digital image of the field of view to be tested, obtains the motion vector of the collimator cross scale relative to the scale of the sight to be tested, fits the relative motion curve, and obtains the swing accuracy test data of the sight to be tested and the image stabilization accuracy parameters of the sight to be tested;
[0029] Step S307: The computer system records the digital image and the test data, generates a test report and outputs the test report through a printer.
[0030] According to a third aspect of the present invention, there is provided a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium; the plurality of instructions are used for a processor to load and execute the aforementioned operating method.
[0031] According to the above scheme of the present invention, an image acquisition device is installed at the eyepiece of the photoelectric device to be tested, such as a sight, to obtain image information of the aiming scale in the sight and the cross scale in the collimator, collect, record and process the motion vector of the quasi-scale of the sight relative to the cross scale of the collimator under the specified test conditions to measure the image stabilization accuracy of the sight, realize the calibration and measurement of the relevant indicators of the image stabilization observation of the photoelectric device to be tested, control the quality of the installation and adjustment process of the photoelectric device to be tested, and generate a quality record file synchronously. The test of the photoelectric device to be tested is easy to operate, and there is no need for the human eye to directly observe the sight. The image stabilization accuracy test is automatically calculated and completed by the computer system, avoiding the observation errors introduced by vision, fatigue, lack of experience, etc. during manual observation, and improving the objectivity and accuracy of the image stabilization accuracy test. In the test process, the computer system records the test images and test data in real time, and the management of the test images and test data through the database facilitates the retrieval, comparison and analysis of historical data.
[0032] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention, and the present invention is described by providing the following accompanying drawings. In the accompanying drawings:
[0034] Figure 1 The overall architecture of a photoelectric device sway stabilization accuracy test system based on image processing according to one embodiment of the present invention;
[0035] Figure 2A structural diagram of an image acquisition device according to an embodiment of the present invention;
[0036] Figure 3 The flowchart of the operation method of the photoelectric device sway stabilization accuracy testing system based on image processing according to one embodiment of the present invention is shown. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0038] definition:
[0039] Image stabilization accuracy: refers to the performance index of the optical image formed by shaking the photoelectric device within a preset range and keeping it still, that is, image stabilization accuracy.
[0040] First combine Figure 1 The overall structure of the optical-electric device sway image stabilization accuracy test system based on image processing is described. Figure 1 FIG. 1 shows the overall architecture of a photoelectric device sway stabilization accuracy test system based on image processing according to an embodiment of the present invention. Figure 1 As shown:
[0041] Description of reference numerals:
[0042] 1: collimator (cross scale); 2: Z-axis instrument rotation axis; 3: sight to be tested; 4: Z-axis instrument; 5: thread; 6: horizontal adjustment knob; 7: vertical adjustment knob; 8: camera (fixed focus lens); 9: camera box; 10: adjustment seat (locking screw); 11: support rod (fixed on the forehead protector); 12: computer; 13: lens focus container; 14: eyepiece; 15: lens; 16: thread; 17: camera.
[0043] The photoelectric device swaying and image stabilization accuracy test system based on image processing includes a collimator, a Z-axis instrument, an image acquisition device and a computer system;
[0044] The collimator is a target generating device of the swaying and stabilizing image precision testing system. The crosshairs on the reticle of the collimator are imaged at infinity through the collimator, providing a reference mark for the measurement and calibration of the swaying and stabilizing image precision testing system of the photoelectric device.
[0045] The Z-axis instrument is used to drive the photoelectric device to be tested to rotate stably around the visual axis, providing a swing test condition for the image stabilization accuracy test; when the Z-axis instrument is working, it drives the photoelectric device to be tested to rotate around the visual axis, and the swing frequency and amplitude are optional. In this embodiment, the tilt amplitude is 2° and the swing frequency is 1HZ;
[0046] The image acquisition device is used to acquire a digital image of the observed field of view during the installation, adjustment and testing of the optoelectronic device, and transmit the acquired image to the computer system in real time through a data interface; the image acquisition device includes mounting accessories and a camera, and the mounting accessories include a support rod, an adjustment seat, and a camera box; the image acquisition device moves synchronously with the optoelectronic device to be tested around the Z-axis instrument rotation axis without relative displacement; the camera can be a CCD camera or a CMOS camera.
[0047] The computer system includes an image processing module, a test data analysis module and a database management module; the image processing module filters the received digital image, extracts edge features, detects cross scales, and locates the center point of the cross scales to obtain the motion vector of the collimator cross scale relative to the sight scale; the test data analysis module uses the real-time coordinates of the center point of the collimator cross scale and the vertices of the sight scale triangle to calculate the horizontal and vertical motion offsets of the two in real time, then calculates the angular motion vector of the sight scale relative to the cross line, and fits the relative motion curve to obtain test data, thereby obtaining the image stabilization performance parameters of the sight; the database management module is used to store and manage images and test data, and provides a printing function.
[0048] The collimator is a target generating device of the swaying and stabilizing image precision testing system. The crosshairs on the reticle of the collimator are imaged at infinity through the collimator, providing a reference mark for the measurement and calibration of the swaying and stabilizing image precision testing system of the photoelectric device.
[0049] Furthermore, there is a collimator bracket, which is used to fix the collimator and ensure that the height, tilt and pitch of the collimator can be smoothly adjusted within a preset range, so as to provide a suitable test height and parallel cross-scale markings for the photoelectric device to be tested, such as a sight to be tested. All embodiments of the present application applicable to the photoelectric device are applicable to the sight. The collimator is placed horizontally indoors and is stationary relative to the ground.
[0050] The technical indicators and appearance parameters of the collimator are as follows:
[0051] Focal length: 1300mm
[0052] Diameter: 130mm
[0053] Relative aperture 1:10
[0054] Resolution: ≤2”
[0055] Field of view: 2°
[0056] Graticule: Cross graticule (including 0.12mil border)
[0057] Graticule lighting: Green LED light source, irradiation uniformity ≤ 5%
[0058] Instrument dimensions: 140*30*70mm
[0059] Weight: ≤100Kg
[0060] The collimator is customized according to the above specifications.
[0061] The Z-axis instrument is used to drive the photoelectric device to be tested to rotate stably around the rotation axis of the Z-axis instrument, providing a swing test condition for the image stabilization accuracy test; when the Z-axis instrument is working, the tilt amplitude is optionally 2° and the swing frequency is 1HZ;
[0062] The photoelectric device to be tested is installed on the Z-axis instrument. When testing, the photoelectric device to be tested is in a stable image working state; when the Z-axis instrument is rotated, the photoelectric device to be tested rotates around the rotation axis of the Z-axis instrument.
[0063] Furthermore, the optoelectronic device of this embodiment is a direct-view optoelectronic device with an image stabilization function, and may be a sight. Taking the sight as an example, the sight is installed on the Z-axis instrument, the optical axis of the main aiming optical path of the sight coincides with the rotation axis of the Z-axis instrument and the optical axis of the collimator, and the vertex of the triangle in the aiming scale coincides with the center of the cross scale of the collimator. When testing, the sight is in an image stabilization working state, and when the Z-axis instrument is rotated, the sight rotates around the rotation axis of the Z-axis instrument.
[0064] Due to the working principle of the image-stabilized sight, the reflector deflects in the horizontal and vertical directions, and the aiming scale in the sight rotates and displaces relative to the cross-scale center of the parallel light tube. The motion vector of the triangle vertex relative to the cross-scale center reflects the image stabilization accuracy when the sight is shaking.
[0065] The image acquisition device is used to acquire a digital image of the observed field of view during the installation, adjustment and testing of the optoelectronic device, and transmit the acquired image to the computer system in real time through a data interface; the image acquisition device includes mounting accessories and a camera, and the mounting accessories include a support rod, an adjustment seat, and a camera box; the image acquisition device moves synchronously with the optoelectronic device to be tested around the Z-axis instrument rotation axis without relative displacement.
[0066] The following combination Figure 2 A diagram showing the structure of an image acquisition device according to one embodiment of the present invention.
[0067] Furthermore, the camera is installed in the camera box, and the camera can be adjusted horizontally and vertically; the thread at the front end of the camera box is engaged with the photoelectric device to be tested, and the camera box is installed behind the photoelectric device to be tested; the camera box is connected to the adjustment seat on the support rod through a locking screw. The support rod is fixed in the forehead protector to bear the gravity of the image acquisition device.
[0068] Furthermore, the photoelectric device to be tested is a sight, and the thread at the front end of the camera box is meshed with the thread ring of the eyepiece of the sight to be tested, and is installed behind the sight. The image acquisition device is installed behind the sight, and the adjustment mechanism of the camera can make the central axis of the camera field of view coincide with the optical axis of the main optical path of the sight during daytime vision, and the image acquisition device rotates synchronously with the sight around the Z-axis instrument rotation axis without relative displacement. The light beam emitted from the eyepiece of the sight is projected into the objective lens of the camera, and the generated image is transmitted to the computer to measure the movement of the sight's quasi-scale relative to the collimator cross scale, and then calculate and analyze the accuracy of the aiming line stability.
[0069] Furthermore, the image acquisition device is installed behind the sight, and is adapted to the image stabilization sight. The camera is a fixed-focus camera, which acquires the image of the observed field of view and transmits it to the computer system in real time, and is subsequently processed by the image processing and analysis module.
[0070] Furthermore, the camera indicators are:
[0071] Focal length: f c ' am =50mm
[0072] Pixels: 2048×2048
[0073] Frame rate: ≥10f / s
[0074] Scanning mode: progressive scan
[0075] Output mode: USB3.0
[0076] In addition, the camera should be as small as possible because of its large focal length. The optical system of the camera is not less than 80% of the light emitted from the sight eyepiece, and the camera lens adopts a high-resolution fixed-focus lens of 10 million.
[0077] Preferably, in order to improve the image quality used for detection, after repeated experiments, the CCD pixel size is 5μm. Considering that the focal length of the system is too long, relative displacement is prone to occur during the test, affecting the test accuracy. The camera uses a 50mm fixed-focus lens. At this time, the computer system interpretation error is the pixel quantization error:
[0078]
[0079] The computer system is used to install the dedicated module for the photoelectric device sway and image stabilization accuracy test, process the received digital image of the tested field of view, obtain the motion vector of the photoelectric device division relative to the collimator cross division, fit the relative motion curve, and then obtain the sway accuracy test data of the photoelectric device and various performance data of the photoelectric device, and has data storage, management and printing functions;
[0080] Furthermore, the computer system receives high-definition digital images in real time through a data interface, and has the functions of testing the sway stabilization accuracy of the photoelectric device and storing, managing and printing data. The computer system uses a high-performance CPU, SSD electronic hard disk and USB3.0 serial port to meet the needs of high-speed transmission, storage and real-time calculation and analysis of high-definition digital images of 2048*2048 pixels.
[0081] The computer system includes an image processing module, a test data analysis module and a database management module. The image processing module filters the received image, extracts edge features, detects cross scales, and locates the center point of the cross scale to obtain the motion vector of the collimator cross scale relative to the sight scale; the test data analysis module uses the real-time coordinates of the center point of the collimator cross scale and the vertex of the sight scale triangle to calculate the horizontal and vertical motion offsets of the two in real time, and fits the relative motion curve to obtain test data, thereby obtaining the image stabilization accuracy of the sight; the database management module is used to store and manage images and test data, and provides a printing function. The image processing module filters the received image, extracts edge features, detects cross scales, and locates the center point of the cross scale. In this embodiment, the image filtering method is:
[0082] The use of high-resolution lenses and cameras greatly suppresses the interference of background noise. However, the actual system field brightness is only the light in the collimator that passes through the frosted glass and the system optical path. The overall brightness of the image acquired by the image acquisition device is low. In addition to the effective information such as the cross scale in the collimator and the aiming scale in the sight, the acquired image inevitably contains a large amount of noise in the background information. For the pixels connected within the neighborhood of the scale mark, after being interfered by noise, it has a great impact on the subsequent feature extraction and precise positioning. Therefore, before processing the acquired image, it is necessary to filter and pre-process the image.
[0083] Morphological filtering is a filter composed of basic operations of mathematical morphology, which can selectively suppress noise in images and effectively separate adhesion areas and remove isolated points by using basic operations of mathematical morphology. The most basic operators of mathematical morphology are dilation and erosion, and other operators are combinations of these two basic operators.
[0084] If two objects in an image are connected, the two objects can be separated by the erosion operator. The expression of the erosion operator is:
[0085] (fΘB)(x,y)=min{f(x+i,y+j)-B(i,j)|(xi,yj)∈D f ; (i,j)∈D B}
[0086] If the distance between two objects is very close, less than the preset threshold, then dilation may connect the two objects together. Dilation is very useful for filling the holes of objects after image segmentation. The dilation operator expression is as follows:
[0087]
[0088] In image processing operations, dilation and erosion are often used in combination. For example, the operation of first corroding and then dilating an image using the same structural element is called an opening operation. It can remove isolated small dots, burrs and small bridges (that is, small dots connecting two areas), eliminate small objects, and smooth the boundaries of larger objects without significantly changing their area, thereby ensuring that the accuracy of subsequent segmentation extraction is basically unaffected.
[0089] In this embodiment, the edge feature extraction method is:
[0090] Adaptive threshold segmentation is used to extract edge features. In the image, the crosshairs and the scope reticle are black in color, so the grayscale value of the image is low; the grayscale value of the blank background image is high. Therefore, grayscale threshold segmentation is used to extract the edge features of the crosshairs and the scope reticle. Due to the uneven illumination of the field of view, the grayscale difference in different areas of the image is large, and it is difficult to obtain a good segmentation effect using a single threshold. Therefore, an adaptive threshold is used to overcome the influence of uneven illumination and achieve stable extraction of edge features.
[0091] In this embodiment, the cross-scale detection method is:
[0092] The hough transform algorithm is used to determine the two cross-reticles on the collimator reticle from the acquired edge feature image.
[0093] The principle of Hough transform is to transform the spatial domain of the image into the parameter space. By setting the accumulator for accumulation, the point corresponding to the peak is obtained, which represents the dividing line with the strongest straight line feature; in the edge feature binary image, the two cross dividing lines of the parallel light tube have strong straight line features. By detecting the line with the strongest straight line feature through the hough change algorithm, a cross dividing line can be obtained; because the two cross dividing lines are perpendicular to each other, the orthogonal constraint is adopted to obtain the second cross dividing line perpendicular to them. For the situation where the boundary of the area is disturbed by noise or covered by other targets, causing some discontinuity in the boundary, the above improved Hough transform algorithm has good fault tolerance and robustness.
[0094] In this embodiment, the cross-scale center point positioning method is:
[0095] In actual measurement, the image of the center point of the cross scale in the digital image is not a single pixel, but a small range composed of several pixels. Therefore, the precise positioning of the center point coordinates determines the final accuracy of the measurement system. By solving the intersection of two cross scale lines in polar coordinates, the center coordinates of the cross scale center point can be accurately determined to avoid positioning errors caused by incomplete lines and image noise, and the positioning accuracy of the cross scale center line point can reach the sub-pixel level to meet the requirements of image stabilization accuracy testing.
[0096] The image compression module, image processing module, test data analysis module and database management module are developed using Windows XP or other operating systems and C++ or other programming languages.
[0097] Furthermore, the angular motion vector of the collimator crosshairs relative to the sight division is calculated by obtaining the physical parameters of the collimator, the Z-axis instrument, and the image acquisition device.
[0098] Furthermore, the various performance data of the sight obtained can be used to determine whether the sight meets the quality requirements and quality standards.
[0099] Further, a test report is generated based on the stored test data, and the test report can be printed.
[0100] The following combination Figure 3 The operation method of the photoelectric device sway stabilization accuracy test system based on image processing of the present invention is described, wherein the photoelectric device is a sight. Figure 3 The flowchart of the operation method of the photoelectric device sway stabilization accuracy test system based on image processing according to the present invention is shown. Figure 3 As shown, the method includes:
[0101] Step S301: placing the collimator on a workbench plane, turning the bottom adjustment bolt of the collimator to level it, and making the cross-reflection image clear;
[0102] Step S302: placing the sight to be tested on the Z-axis instrument so that the main optical axis of the daylight view coincides with the rotation axis of the Z-axis instrument and the optical axis of the collimator;
[0103] Step S303: installing the image acquisition device on the forehead protector of the sight, connecting it to the eyepiece of the sight through the eyepiece hood thread, adjusting the bolts to make the connection reliable and stable, and connecting the camera data cable to the computer system;
[0104] Step S304: starting the computer system, observing the aiming differentiation and cross-scale in the image collected by the image acquisition device through the computer system screen, and adjusting the camera horizontal and vertical adjustment knobs to make the main axis of the camera imaging system coincide with the main optical axis of the sight;
[0105] At this point, the initial alignment is completed.
[0106] Step S305: rotating the Z-axis instrument rotation axis to adjust the Z-axis instrument;
[0107] In this embodiment, the Z-axis instrument tilt amplitude is set to 2° and the swing frequency is set to 1HZ;
[0108] Step S306: The computer system processes the received digital image of the field of view to be tested, obtains the motion vector of the collimator cross scale relative to the scale of the sight to be tested, fits the relative motion curve, and obtains the swing accuracy test data of the sight to be tested and the image stabilization accuracy parameters of the sight to be tested;
[0109] Step S307: The computer system records the digital image and the test data, generates a test report and outputs the test report through a printer.
[0110] An embodiment of the present invention further provides a computer-readable storage medium, in which a plurality of instructions are stored; the plurality of instructions are used by a processor to load and execute the operating method of the optoelectronic device sway stabilization accuracy test system based on image processing as described above.
[0111] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0112] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0114] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0115] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a physical server, or a network cloud server, etc., which needs to be installed with Windows or Windows Server operating system) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (RandomAccess Memory, RAM), disk or optical disk and other media that can store program codes.
[0116] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. A photoelectric device sway stabilization accuracy test system based on image processing, characterized in that: The system includes a collimator, a Z-axis instrument, an image acquisition device and a computer system; The collimator is a target generating device of the swing stabilization precision test system. The collimator is imaged at infinity to provide a reference mark for the measurement and calibration of the optoelectronic device swing stabilization precision test system. The Z-axis instrument is used to drive the photoelectric device to be tested to rotate stably around the visual axis, providing a swing test condition for the image stabilization accuracy test; when the Z-axis instrument is working, it drives the photoelectric device to be tested to rotate around the visual axis; The image acquisition device is used to acquire a digital image of the observed field of view during the installation, adjustment and testing of the optoelectronic device, and transmit the acquired digital image to the computer system in real time through a data interface; the image acquisition device includes mounting accessories and a camera, and the mounting accessories include a support rod, an adjustment seat and a camera box; the image acquisition device moves synchronously with the optoelectronic device to be tested around the Z-axis instrument rotation axis without relative displacement; The computer system is used to process the received digital image, obtain the motion vector of the photoelectric device division relative to the collimator cross division, fit the relative motion curve, and then obtain the swing accuracy test data of the photoelectric device and various performance data of the photoelectric device; The photoelectric device to be tested is a sight; The thread at the front end of the camera box meshes with the thread ring of the eyepiece of the sight to be tested, and is installed behind the sight; the image acquisition device is installed behind the sight, the adjustment mechanism of the camera makes the central axis of the camera field of view coincide with the optical axis of the main light path of the daytime vision of the sight, and the image acquisition device rotates synchronously with the sight around the Z-axis instrument rotation axis without relative displacement; the light beam emitted from the eyepiece of the sight enters the camera objective lens, and the generated image is transmitted to the computer system to measure the movement of the cross scale of the parallel light tube relative to the quasi-scale of the sight, and then calculate and analyze the stability accuracy of the aiming line.
2. The photoelectric device sway stabilization accuracy test system based on image processing according to claim 1, characterized in that: The collimator has a collimator bracket, which is used to fix the collimator and ensure that the height, tilt and pitch of the collimator can be smoothly adjusted within a preset range, so as to provide a test height and parallel cross-scale markings for the sight to be tested; the collimator is placed horizontally indoors and is stationary relative to the earth.
3. The photoelectric device sway stabilization accuracy test system based on image processing according to claim 1, characterized in that: The sight is installed on the Z-axis instrument, the optical axis of the main aiming light path of the sight coincides with the rotation axis of the Z-axis instrument and the optical axis of the parallel light tube, and the triangle vertex in the aiming scale coincides with the center of the cross scale of the parallel light tube; when testing, the sight is in a stable image working state, and when the Z-axis instrument is rotated, the sight rotates around the rotation axis of the Z-axis instrument.
4. The photoelectric device sway stabilization accuracy test system based on image processing according to claim 1, characterized in that: The computer system includes an image processing module, a test data analysis module and a database management module; the image processing module filters the received digital image, extracts edge features, detects cross scales, and locates the center point of the cross scales to obtain the motion vector of the collimator cross scale relative to the sight scale; the test data analysis module uses the real-time coordinates of the center point of the collimator cross scale and the vertices of the sight scale triangle to calculate the horizontal and vertical motion offsets of the two in real time, then calculates the angular motion vector of the sight scale relative to the cross line, and fits the relative motion curve to obtain test data, thereby obtaining the image stabilization performance parameters of the sight; the database management module is used to store and manage images and test data, and provides a printing function.
5. The photoelectric device sway stabilization accuracy test system based on image processing according to claim 4, characterized in that: The image processing module performs filtering, edge feature extraction, cross-scale detection and cross-scale center point positioning on the received digital image; The average or Gaussian smoothing filtering algorithm is used for filtering, the adaptive edge extraction algorithm is used to realize edge feature extraction, the Hough transform algorithm is used to realize cross division detection and fit the polar coordinate expression of two straight lines, and the cross division center point is located by calculating the intersection coordinates of the two straight lines.
6. The photoelectric device sway image stabilization accuracy test system based on image processing as claimed in claim 5, characterized in that: The method for edge feature extraction specifically includes: using adaptive threshold segmentation to extract edge features, the crosshairs and sight reticle lines in the image are originally black; using grayscale threshold segmentation to extract edge features of the crosshairs and sight reticle lines; using an adaptive threshold method to achieve stable extraction of edge features; The cross-grain detection method specifically includes: Detecting the line with the strongest straight line feature from the acquired edge feature image by using the Hough algorithm to obtain a first cross-line; and using the orthogonal constraint method to obtain a second cross-line perpendicular to the first cross-line; The cross-scale center point positioning method specifically includes: The cross-reticle center point is determined by solving the intersection point of the first cross-reticle line and the second cross-reticle line polar coordinate expression.
7. An operating method of a photoelectric device swaying and image stabilization accuracy test system based on image processing, the method being performed by the photoelectric device swaying and image stabilization accuracy test system based on image processing according to any one of claims 1 to 6, the method performing the following steps: Step S301: placing the collimator on a workbench plane, turning the bottom adjustment bolt of the collimator to level it, and making the cross-reflection image clear; Step S302: placing the sight to be tested on the Z-axis instrument so that the main optical axis of the daylight view coincides with the rotation axis of the Z-axis instrument and the optical axis of the collimator; Step S303: installing the image acquisition device on the forehead protector of the sight, connecting it to the eyepiece of the sight through the eyepiece hood thread, adjusting the bolts to make the connection reliable and stable, and connecting the camera data cable to the computer system; Step S304: starting the computer system, observing the aiming differentiation and cross-scale in the image collected by the image acquisition device through the computer system screen, and adjusting the camera horizontal and vertical adjustment knobs to make the main axis of the camera imaging system coincide with the main optical axis of the sight; Step S305: rotating the Z-axis instrument rotation axis to adjust the Z-axis instrument; Step S306: The computer system processes the received digital image of the field of view to be tested, obtains the motion vector of the collimator cross scale relative to the scale of the sight to be tested, fits the relative motion curve, and obtains the swing accuracy test data of the sight to be tested and the image stabilization accuracy parameters of the sight to be tested; Step S307: The computer system records the digital image and the test data, generates a test report and outputs the test report through a printer.
8. A computer-readable storage medium, characterized in that: The storage medium stores a plurality of instructions, and the plurality of instructions are used for the processor to load and execute the operating method of the optoelectronic device sway stabilization accuracy test system based on image processing as described in claim 7.
