Automatic parameter adjustment method and device for OLED optical detection equipment
By applying similar triangle principles in OLED optical detection equipment, the camera working distance and exposure time are quickly adjusted, and the problem of time-consuming and low efficiency in the existing technology is solved, efficient automatic parameter adjustment is achieved, and the service life of the equipment is extended.
Patent Information
- Application Number
- CN202411009510.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2024-07-18
- Filing Date
- 2024-07-26
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2044-07-26
AI Technical Summary
The existing automatic parameter adjustment method of OLED optical detection equipment is time-consuming, low efficiency and easy to affect the service life of the equipment.
By introducing similar triangle principles, the camera working distance and exposure time are quickly adjusted based on the proportional relationship between the field of view and the camera working distance to achieve the preset standard magnification value and average grayscale, reducing the adjustment time and improving efficiency.
It greatly reduces the adjustment time of camera working distance and exposure time, improves detection efficiency, and extends the service life of the equipment.
Smart Images

Figure CN118936848B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of OLED optical detection technology, and in particular to an automatic parameter adjustment method and device for OLED optical detection equipment, and OLED optical detection equipment. Background Art
[0002] Automated Optical Inspection (AOI) of OLED display panels is an inspection technology based on optical principles that uses machine vision to replace manual visual inspection. It is widely used in the production process of OLED display panels to ensure the quality and yield of OLED display panels. Optical inspection equipment is a high-speed and high-precision optical image inspection system, such as Figure 1 As shown, the OLED optical inspection equipment includes an optical system (camera module, camera axis, camera spindle, lens module and lens axis), a fixture carrier (for placing the OLED display panel to be inspected) and an automatic parameter adjustment device. The automatic parameter adjustment device is connected to the camera axis, lens axis and camera module in the optical system. During the inspection process, the OLED display panel is powered on and lights up, and continuously switches between images of different colors and brightness. The automatic parameter adjustment device sends control instructions to the lens axis to control the lens axis to move up and down to focus the image, and then sends control instructions to the camera axis to control the camera axis to move up and down along the camera spindle to adjust the camera working distance. At the same time, the exposure time is adjusted by sending control instructions to the camera module to complete the acquisition of the current OLED display panel image. The display quality of the OLED display panel is judged by analyzing whether the acquired image has defects such as dots, lines and Mura.
[0003] Since the magnification value of the optical inspection equipment determines the ability of the camera to capture details of the OLED display panel, when the magnification value reaches the preset standard, the camera can more clearly image tiny defects and abnormal points on the OLED screen. Therefore, during the inspection process, the automatic parameter adjustment device in the optical inspection equipment often needs to continuously control the movement of the camera axis to adjust the camera working distance, so that the magnification value reaches the preset standard, so that the camera can capture more details on the OLED display panel, thereby improving the inspection accuracy of the OLED display panel; the automatic parameter adjustment device of the existing OLED optical inspection equipment randomly adjusts the camera working distance, and after each adjustment, adjusts the camera working distance based on the current focus image of the OLED display panel. The magnification value is calculated once based on the resolution of the pixel and the OLED display panel until the magnification value reaches the preset standard. This method has a long debugging time and low debugging efficiency. In addition, in order to make the average grayscale of each detected image collected reach the set standard to improve the accuracy of the detection result, the automatic parameter adjustment device needs to continuously adjust the exposure time of the optical detection device during the detection process. The automatic parameter adjustment device of the existing OLED optical detection device also randomly adjusts the exposure time until the average grayscale of the collected image reaches the preset standard. It also has the problems of long debugging time and low debugging efficiency. In addition, using this method to adjust the exposure time of the camera will also cause damage to the camera module and affect the service life of the equipment.
[0004] In summary, the existing automatic parameter adjustment method of OLED optical inspection equipment is time-consuming, inefficient, and easily affects the service life of the optical inspection equipment. Summary of the Invention
[0005] Therefore, the technical problem to be solved by the present invention is to overcome the problems in the prior art of the automatic parameter adjustment method of OLED optical detection equipment, which is time-consuming, inefficient and easily affects the service life of the equipment.
[0006] To solve the above technical problems, the present invention provides an automatic parameter adjustment method for an OLED optical detection device, which is applied to an automatic parameter adjustment device for an OLED optical detection device, comprising:
[0007] S1: Adjust the lens axis to focus on the OLED display panel to be inspected, and obtain the initial camera working distance and initial focus image;
[0008] S2: obtaining an initial magnification value based on a ratio of a pixel of the OLED display panel in the initial focus image to a resolution of the OLED display panel to be detected;
[0009] S3: Determine whether the initial magnification value is within a preset magnification value range. If the initial magnification value is not within the preset magnification value range, move the camera axis to adjust the camera working distance, and obtain the current camera working distance and the current focus image.
[0010] S4: obtaining a current magnification value based on a ratio of a pixel of the OLED display panel in the current focus image to a resolution of the OLED display panel to be detected;
[0011] S5: Calculating a first difference between the current camera working distance and the initial camera working distance, and a second difference between the current magnification value and the initial magnification value; obtaining a first proportionality coefficient based on a ratio of the first difference to the second difference; and obtaining a target camera working distance based on the first proportionality coefficient and a preset standard magnification value; wherein the preset standard magnification value is within the preset magnification value range;
[0012] S6: Move the camera axis so that the camera working distance is equal to the target camera working distance, and obtain the target focus picture; use the target camera working distance as the initial camera working distance, use the target focus picture as the initial focus picture, and return to execute step S2 until the initial magnification value is within the preset magnification value range, thereby completing the adjustment of the camera working distance of the optical inspection equipment.
[0013] Preferably, after step S6, the following steps are further included:
[0014] S7: Initialize i=1;
[0015] S8: collecting an initial detection image of the i-th detection screen of the OLED display panel to be detected based on the initial exposure time, and calculating the average grayscale of the initial detection image;
[0016] S9: Determine whether the average grayscale is within a preset average grayscale value range, and if the average grayscale is not within the preset average grayscale value range, adjust the exposure time;
[0017] S10: re-collecting the current detection image of the i-th detection screen based on the current exposure time, and calculating the average grayscale of the current detection image;
[0018] S11: Calculating a third difference between the current exposure time and the initial exposure time, and a fourth difference between the average grayscale of the current detection image and the average grayscale of the initial detection image; obtaining a second proportional coefficient based on a ratio of the third difference and the fourth difference; and obtaining a target exposure time based on the second proportional coefficient and a preset standard average grayscale; wherein the preset standard average grayscale is within the preset average grayscale value range;
[0019] S12: Based on the target exposure time, a target detection image of the i-th detection screen is captured; the target exposure time is used as the initial exposure time, the target detection image is used as the initial detection image, and the process returns to step S9 until the average grayscale of the initial detection image is within the preset average grayscale value range; i is updated to i+1, and the process returns to step S8 until i=I, thereby completing the adjustment of the exposure time of the optical detection device; wherein I represents the number of detection screens of the OLED display panel to be detected.
[0020] Preferably, if the initial magnification value is not within a preset magnification value range, moving the camera axis to adjust the camera working distance includes:
[0021] If the initial magnification value is greater than the maximum value of the preset magnification value range, moving the camera axis to reduce the camera working distance;
[0022] If the initial magnification value is less than the minimum value of the preset magnification value range, the camera axis is moved to increase the camera working distance.
[0023] Preferably, when the camera axis is moved to adjust the camera working distance, the moving distance of the camera axis is 10% to 20% of the initial camera working distance.
[0024] Preferably, the preset magnification value range is [90%x, 110%x]; wherein x represents the preset standard magnification value.
[0025] Preferably, if the average grayscale is not within a preset average grayscale value range, adjusting the exposure time includes:
[0026] If the average grayscale is less than the minimum value of the preset average grayscale value range, increasing the exposure time;
[0027] If the average grayscale is greater than the maximum value of the preset average grayscale value range, the exposure time is reduced.
[0028] Preferably, the preset average grayscale value range is [95% y, 105% y]; wherein y represents the preset standard average grayscale.
[0029] The present invention also provides an automatic parameter adjustment device for an OLED optical detection device, comprising:
[0030] The first data acquisition module is used to adjust the lens axis to focus on the OLED display panel to be inspected, and obtain the initial camera working distance and the initial focus image;
[0031] a first magnification value calculation module, configured to obtain an initial magnification value based on a ratio of a pixel of the OLED display panel in the initial focus image to a resolution of the OLED display panel to be detected;
[0032] a second data acquisition module, configured to determine whether the initial magnification value is within a preset magnification value range; if the initial magnification value is not within the preset magnification value range, move the camera axis to adjust the camera working distance, and acquire the current camera working distance and the current focus image;
[0033] a second magnification value calculation module, configured to obtain a current magnification value based on a ratio of a pixel of the OLED display panel in the current focus image to a resolution of the OLED display panel to be detected;
[0034] a target camera working distance acquisition module, configured to calculate a first difference between the current camera working distance and the initial camera working distance, and a second difference between the current magnification value and the initial magnification value; obtain a first proportionality coefficient based on a ratio of the first difference to the second difference; and obtain a target camera working distance based on the first proportionality coefficient and a preset standard magnification value; wherein the preset standard magnification value is within the preset magnification value range;
[0035] The first parameter adjustment module is used to move the camera axis so that the camera working distance is equal to the target camera working distance and obtain the target focus picture; use the target camera working distance as the initial camera working distance, use the target focus picture as the initial focus picture, and return to execute step S2 until the initial magnification value is within the preset magnification value range, thereby completing the adjustment of the camera working distance of the optical inspection equipment.
[0036] Preferably, the first parameter adjustment module further includes:
[0037] Data initialization module, used to initialize i=1;
[0038] a first average grayscale calculation module, configured to collect an initial detection image of an i-th detection screen of the OLED display panel to be detected based on an initial exposure time, and calculate an average grayscale of the initial detection image;
[0039] an exposure time adjustment module, configured to determine whether the average grayscale is within a preset average grayscale value range, and adjust the exposure time if the average grayscale is not within the preset average grayscale value range;
[0040] A second average grayscale calculation module is used to recapture the current detection image of the i-th detection screen based on the current exposure time and calculate the average grayscale of the current detection image;
[0041] a target exposure time acquisition module, configured to calculate a third difference between the current exposure time and the initial exposure time, and a fourth difference between the average grayscale of the current detection image and the average grayscale of the initial detection image; obtain a second proportionality coefficient based on the ratio of the third difference to the fourth difference; and obtain a target exposure time based on the second proportionality coefficient and a preset standard average grayscale; wherein the preset standard average grayscale is within the preset average grayscale value range;
[0042] The second parameter adjustment module is used to collect the target detection image of the i-th detection screen based on the target exposure time; use the target exposure time as the initial exposure time, use the target detection image as the initial detection image, and return to execute step S9 until the average grayscale of the initial detection image is within the preset average grayscale value range; update i=i+1, and return to execute step S8 until i=I, completing the adjustment of the exposure time of the optical detection equipment; wherein I represents the number of detection screens of the OLED display panel to be detected.
[0043] The present invention also provides an OLED optical detection device, comprising the automatic parameter adjustment device of the above-mentioned OLED optical detection device.
[0044] The automatic parameter adjustment method for OLED optical detection equipment provided in this application has the following beneficial effects:
[0045] 1. When starting the test, first obtain the initial camera working distance and the initial focus image, and calculate the initial magnification value; if the initial magnification value is not within the preset value range, first perform a coarse adjustment on the camera working distance to obtain the current camera working distance, focus image, and current magnification value. Since the field of view range corresponds to the magnification value, and different camera working distances correspond to different field of view ranges, this application, based on the principle of similar triangles, obtains the proportional relationship between the camera working distance and the magnification value difference based on the difference in camera working distance and magnification value before and after the coarse adjustment, so that the required precise adjustment can be obtained according to the proportional relationship and the preset standard magnification value. The desired camera working distance, i.e., the target camera working distance, is obtained. After moving the camera axis so that the camera working distance is equal to the target camera working distance, if the magnification value is still not within the preset value range, the camera working distance is roughly adjusted again, and a new target camera working distance is obtained until the magnification value reaches the preset standard. The present application introduces the principle of similar triangles and establishes a proportional relationship between the magnification value and the camera working distance based on the relationship between the field of view and the camera working distance, thereby providing a basis for adjusting the camera working distance. This enables the magnification value to be quickly adjusted to the preset standard, greatly reducing the adjustment time of the camera working distance and improving the adjustment efficiency.
[0046] 2. When adjusting the exposure time, the present application also first obtains the initial exposure time and the average grayscale of the initial detection image, and first roughly adjusts the exposure time to obtain the current exposure time and the average grayscale of the current detection image. Based on the exposure time difference and the average grayscale difference before and after the rough adjustment, the proportional relationship between the exposure time and the average grayscale is obtained, so that the exposure time required for precise adjustment can be obtained according to the proportional relationship and the preset standard average grayscale, that is, the target exposure time. If the average grayscale is still not within the preset value range, the exposure time is roughly adjusted again, and a new target exposure time is obtained until the average grayscale of the detection image reaches the preset standard, providing a basis for adjusting the exposure time, so as to quickly adjust the average grayscale of the detection image to the preset standard, reducing the adjustment time, improving the debugging efficiency, and extending the service life of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:
[0048] Figure 1 Schematic diagram of the structure of the OLED optical detection equipment provided in this application;
[0049] Figure 2 Flowchart of the automatic parameter adjustment method for the OLED optical detection equipment provided in this application;
[0050] Figure 3 Schematic diagram of the automatic parameter adjustment principle of the OLED optical detection equipment provided in this application;
[0051] Figure 4 This is a schematic diagram of the structure of the automatic parameter adjustment device of the OLED optical detection equipment provided in this application. DETAILED DESCRIPTION
[0052] The present invention will be further described below with reference to the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention.
[0053] See also Figure 2 , Figure 2 The flowchart of the automatic parameter adjustment method of the OLED optical detection equipment provided in this application is applied to the automatic parameter adjustment device of the OLED optical detection equipment. The method specifically includes:
[0054] S1: Adjust the lens axis to focus on the OLED display panel to be inspected, and obtain the initial camera working distance and initial focus image;
[0055] S2: obtaining an initial magnification value based on a ratio of the pixels of the OLED display panel in the initial focus image to the resolution of the OLED display panel to be detected;
[0056] S3: Determine whether the initial magnification value is within a preset magnification value range. If the initial magnification value is not within the preset magnification value range, move the camera axis to adjust the camera working distance, and obtain the current camera working distance and the current focus image.
[0057] S4: obtaining a current magnification value based on a ratio of pixels of the OLED display panel in the current focus image to a resolution of the OLED display panel to be detected;
[0058] S5: Calculating a first difference between the current camera working distance and the initial camera working distance, and a second difference between the current magnification value and the initial magnification value; obtaining a first proportionality coefficient based on a ratio of the first difference and the second difference; and obtaining a target camera working distance based on the first proportionality coefficient and a preset standard magnification value; wherein the preset standard magnification value is within a preset magnification value range;
[0059] S6: Move the camera axis so that the camera working distance is equal to the target camera working distance, and obtain the target focus image; use the target camera working distance as the initial camera working distance, use the target focus image as the initial focus image, and return to execute step S2 until the initial magnification value is within the preset magnification value range, completing the adjustment of the camera working distance of the optical inspection equipment.
[0060] The automatic parameter adjustment method for OLED optical inspection equipment provided by the present application first obtains the initial camera working distance and the initial focus picture when starting the inspection, and calculates the initial magnification value; if the initial magnification value is not within the preset value range, the camera working distance is first roughly adjusted to obtain the current camera working distance, focus picture and current magnification value. Since the field of view range corresponds to the magnification value, and different camera working distances correspond to different field of view ranges, the present application, based on the principle of similar triangles, obtains the proportional relationship between the camera working distance and the magnification value difference based on the difference in camera working distance and magnification value before and after coarse adjustment, so that the proportional relationship can be obtained according to the preset standard. The magnification value is accurately adjusted to obtain the camera working distance required for precise adjustment, that is, the target camera working distance. After moving the camera axis so that the camera working distance is equal to the target camera working distance, if the magnification value is still not within the preset value range, the camera working distance is coarsely adjusted again, and a new target camera working distance is obtained until the magnification value reaches the preset standard. The present application introduces the principle of similar triangles and establishes a proportional relationship between the magnification value and the camera working distance based on the relationship between the field of view and the camera working distance, providing a basis for adjusting the camera working distance, so that the magnification value can be quickly adjusted to the preset standard, greatly reducing the adjustment time of the camera working distance and improving the adjustment efficiency.
[0061] like Figure 3 The figure shows a schematic diagram of the relationship curve between the camera working distance and the field of view of the optical inspection equipment. Since different camera working distances WD correspond to different fields of view FOV, and the field of view FOV corresponds to the magnification value Mapping, according to the principle of similar triangles, based on the working distances WD before and after coarse adjustment and the magnification value Mapping, the first difference in the change of the camera working distance and the second difference in the change of the magnification value are calculated. The specific proportional relationship between the camera working distance and the magnification value can be obtained based on the ratio of the first difference to the second difference, and the target camera working distance can be calculated based on the proportional relationship and the preset standard magnification value.
[0062] Specifically, if the initial magnification value is not within the preset magnification value range in step S3, moving the camera axis to adjust the camera working distance includes:
[0063] If the initial magnification value is greater than the maximum value of the preset magnification value range, the camera axis is moved to reduce the camera working distance;
[0064] If the initial magnification value is less than the minimum value of the preset magnification value range, the camera axis is moved to increase the camera working distance.
[0065] Specifically, when the camera axis is moved to adjust the initial camera working distance, the movement distance of the camera axis is 10% to 20% of the initial camera working distance; the preset magnification value range is expressed as [90% x, 110% x]; where x represents the preset standard magnification value.
[0066] For example, if the initial camera working distance is h, when the initial magnification value is greater than 110% x, the camera axis is moved downward to reduce the camera working distance, and the movement distance of the camera axis is 10% h to 20% h; when the initial magnification value is less than 90% x, the camera axis is moved upward to increase the camera working distance, and the movement distance of the camera axis is 10% h to 20% h;
[0067] Specifically, experiments have shown that using the automatic parameter adjustment method provided in this application, it is often only necessary to perform one coarse adjustment and one fine adjustment on the camera working distance to make the magnification value reach the preset magnification value range. There is no need to frequently move the camera axis to repeatedly adjust the camera working distance, thereby avoiding wear on the camera axis.
[0068] Furthermore, after adjusting the camera working distance, the exposure time of the optical detection equipment also needs to be adjusted so that the brightness of each detection screen reaches the set standard, ensuring that the average grayscale of the collected screen reaches the preset average grayscale standard, thereby improving the accuracy of the detection results.
[0069] Specifically, in some embodiments of the present application, step S6 further includes:
[0070] S7: Initialize i=1;
[0071] S8: collecting an initial detection image of the i-th detection screen of the OLED display panel to be detected based on the initial exposure time, and calculating the average grayscale of the initial detection image;
[0072] Specifically, when the OLED display panel is turned on, the collected detection image will contain non-screen areas in addition to the OLED display panel part. The image algorithm can be used to obtain the OLED display panel area in the detection image and calculate the average grayscale of the area as the average grayscale of the detection image.
[0073] S9: Determine whether the average grayscale is within a preset average grayscale value range. If the average grayscale is not within the preset average grayscale value range, adjust the exposure time.
[0074] S10: re-collecting the current detection image of the i-th detection screen based on the current exposure time, and calculating the average grayscale of the current detection image;
[0075] S11: Calculating a third difference between the current exposure time and the initial exposure time, and a fourth difference between the average grayscale of the current detection image and the average grayscale of the initial detection image; obtaining a second proportionality coefficient based on a ratio of the third difference and the fourth difference; and obtaining a target exposure time based on the second proportionality coefficient and a preset standard average grayscale; wherein the preset standard average grayscale is within a preset average grayscale value range;
[0076] S12: Capture the target detection image of the i-th detection screen based on the target exposure time; use the target exposure time as the initial exposure time, use the target detection image as the initial detection image, and return to execute step S9 until the average grayscale of the initial detection image is within the preset average grayscale value range; update i=i+1, and return to execute step S8 until i=I, completing the adjustment of the exposure time of the optical detection equipment; wherein I represents the number of detection screens of the OLED display panel to be detected.
[0077] Similar to the adjustment principle of the camera working distance, in the process of adjusting the exposure time so that the average grayscale of the picture reaches the preset average grayscale value range, the third difference between the two exposure times and the fourth difference between the two average grayscales are calculated, and the proportional relationship between the exposure time and the average grayscale is determined based on the ratio of the third difference to the fourth difference. Therefore, the target exposure time can be calculated based on the proportional relationship and the preset standard average grayscale, which greatly reduces the exposure time adjustment time and improves the detection efficiency.
[0078] Specifically, if the average grayscale is not within the preset average grayscale value range, adjusting the exposure time includes:
[0079] If the average grayscale is less than the minimum value of the preset average grayscale value range, increase the exposure time;
[0080] If the average grayscale is greater than the maximum value of the preset average grayscale value range, the exposure time is reduced.
[0081] Specifically, in some embodiments of the present application, the preset average grayscale value range is [95% y, 105% y]; wherein y represents the preset standard average grayscale.
[0082] Experiments have shown that when using the method provided in this application to adjust the exposure time, for each detection screen, usually only one coarse adjustment and one fine adjustment are required to make the average grayscale of the image reach the preset average grayscale value range, avoiding the wear and tear on the camera module caused by repeated adjustment of the exposure time, and extending the service life of the equipment to the greatest extent.
[0083] Based on the automatic parameter adjustment method of the OLED optical detection device provided in the above embodiment, the embodiment of the present application also provides an automatic parameter adjustment device of the OLED optical detection device, such as Figure 4 As shown, the device specifically includes:
[0084] The first data acquisition module 10 is used to adjust the lens axis to focus on the OLED display panel to be inspected, and obtain an initial camera working distance and an initial focus image;
[0085] A first magnification value calculation module 20 is configured to obtain an initial magnification value based on a ratio of the pixels of the OLED display panel in the initial focus image to the resolution of the OLED display panel to be detected;
[0086] a second data acquisition module 30 for determining whether the initial magnification value is within a preset magnification value range; if the initial magnification value is not within the preset magnification value range, moving the camera axis to adjust the camera working distance, and acquiring the current camera working distance and the current focus image;
[0087] A second magnification value calculation module 40 is configured to obtain a current magnification value based on a ratio of the pixels of the OLED display panel in the current focus image to the resolution of the OLED display panel to be detected;
[0088] The target camera working distance acquisition module 50 is configured to calculate a first difference between the current camera working distance and the initial camera working distance, and a second difference between the current magnification value and the initial magnification value; obtain a first proportionality coefficient based on the ratio of the first difference to the second difference; and obtain the target camera working distance based on the first proportionality coefficient and a preset standard magnification value, wherein the preset standard magnification value is within a preset magnification value range.
[0089] The first parameter adjustment module 60 is used to move the camera axis so that the camera working distance is equal to the target camera working distance, and obtain the target focus image; use the target camera working distance as the initial camera working distance, use the target focus image as the initial focus image, and return to execute step S2 until the initial magnification value is within the preset magnification value range, thereby completing the adjustment of the camera working distance of the optical inspection equipment.
[0090] In some embodiments of the present application, the first parameter adjustment module 60 further includes:
[0091] Data initialization module, used to initialize i=1;
[0092] a first average grayscale calculation module, configured to collect an initial detection image of an i-th detection screen of the OLED display panel to be detected based on an initial exposure time, and calculate an average grayscale of the initial detection image;
[0093] An exposure time adjustment module is used to determine whether the average grayscale is within a preset average grayscale value range, and if the average grayscale is not within the preset average grayscale value range, adjust the exposure time;
[0094] A second average grayscale calculation module is used to recapture the current detection image of the i-th detection screen based on the current exposure time and calculate the average grayscale of the current detection image;
[0095] a target exposure time acquisition module, configured to calculate a third difference between the current exposure time and the initial exposure time, and a fourth difference between the average grayscale of the current detection image and the average grayscale of the initial detection image; obtain a second proportionality coefficient based on the ratio of the third difference to the fourth difference; and obtain a target exposure time based on the second proportionality coefficient and a preset standard average grayscale, wherein the preset standard average grayscale is within a preset average grayscale value range;
[0096] The second parameter adjustment module is used to collect the target detection image of the i-th detection screen based on the target exposure time; use the target exposure time as the initial exposure time, use the target detection image as the initial detection image, and return to execute step S9 until the average grayscale of the initial detection image is within the preset average grayscale value range; update i=i+1, and return to execute step S8 until i=I, completing the adjustment of the exposure time of the optical detection equipment; wherein I represents the number of detection screens of the OLED display panel to be detected.
[0097] An embodiment of the present application further provides an OLED optical detection device, which includes the automatic parameter adjustment device of the above-mentioned OLED optical detection device.
[0098] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0099] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0100] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0102] Obviously, the above embodiments are merely examples for clarity of explanation and are not intended to limit the implementation methods. Those skilled in the art will readily appreciate that other variations or modifications based on the above descriptions are possible. It is not necessary and impossible to enumerate all implementation methods here. Obvious variations or modifications arising therefrom remain within the scope of protection of the present invention.
Claims
1. An automatic parameter adjustment method for an OLED optical detection device, characterized in that: Automatic parameter adjustment device for OLED optical inspection equipment, including: S1: Adjust the lens axis to focus on the OLED display panel to be inspected, and obtain the initial camera working distance and initial focus image; S2: obtaining an initial magnification value based on a ratio of a pixel of the OLED display panel in the initial focus image to a resolution of the OLED display panel to be detected; S3: Determine whether the initial magnification value is within a preset magnification value range. If the initial magnification value is not within the preset magnification value range, move the camera axis to adjust the camera working distance, and obtain the current camera working distance and the current focus image. S4: obtaining a current magnification value based on a ratio of a pixel of the OLED display panel in the current focus image to a resolution of the OLED display panel to be detected; S5: Calculating a first difference between the current camera working distance and the initial camera working distance, and a second difference between the current magnification value and the initial magnification value; obtaining a first proportionality coefficient based on a ratio of the first difference to the second difference; and obtaining a target camera working distance based on the first proportionality coefficient and a preset standard magnification value; wherein the preset standard magnification value is within the preset magnification value range; S6: Move the camera axis so that the camera working distance is equal to the target camera working distance, and obtain the target focus picture; use the target camera working distance as the initial camera working distance, use the target focus picture as the initial focus picture, and return to execute step S2 until the initial magnification value is within the preset magnification value range, thereby completing the adjustment of the camera working distance of the optical inspection equipment.
2. The automatic parameter adjustment method of the OLED optical detection device according to claim 1, characterized in that: After step S6, the following steps are also included: S7: Initialize i=1; S8: collecting an initial detection image of the i-th detection screen of the OLED display panel to be detected based on the initial exposure time, and calculating the average grayscale of the initial detection image; S9: Determine whether the average grayscale is within a preset average grayscale value range, and if the average grayscale is not within the preset average grayscale value range, adjust the exposure time; S10: re-collecting the current detection image of the i-th detection screen based on the current exposure time, and calculating the average grayscale of the current detection image; S11: Calculating a third difference between the current exposure time and the initial exposure time, and a fourth difference between the average grayscale of the current detection image and the average grayscale of the initial detection image; obtaining a second proportional coefficient based on a ratio of the third difference and the fourth difference; and obtaining a target exposure time based on the second proportional coefficient and a preset standard average grayscale; wherein the preset standard average grayscale is within the preset average grayscale value range; S12: Capture the target detection image of the i-th detection screen based on the target exposure time; use the target exposure time as the initial exposure time, use the target detection image as the initial detection image, and return to execute step S9 until the average grayscale of the initial detection image is within the preset average grayscale value range; update i=i+1, and return to execute step S8 until i=I, completing the adjustment of the exposure time of the optical detection equipment; wherein I represents the number of detection screens of the OLED display panel to be detected.
3. The automatic parameter adjustment method of the OLED optical detection device according to claim 1, characterized in that: If the initial magnification value is not within the preset magnification value range, moving the camera axis to adjust the camera working distance includes: If the initial magnification value is greater than the maximum value of the preset magnification value range, moving the camera axis to reduce the camera working distance; If the initial magnification value is less than the minimum value of the preset magnification value range, the camera axis is moved to increase the camera working distance.
4. The automatic parameter adjustment method of the OLED optical detection device according to claim 1, characterized in that: When moving the camera axis to adjust the camera working distance, the moving distance of the camera axis is 10%~20% of the initial camera working distance.
5. The automatic parameter adjustment method of OLED optical detection equipment according to claim 1, characterized in that: The preset magnification value range is ;in, Indicates the preset standard magnification value.
6. The automatic parameter adjustment method of OLED optical detection equipment according to claim 2, characterized in that: If the average grayscale is not within the preset average grayscale value range, adjusting the exposure time includes: If the average grayscale is less than the minimum value of the preset average grayscale value range, increasing the exposure time; If the average grayscale is greater than the maximum value of the preset average grayscale value range, the exposure time is reduced.
7. The automatic parameter adjustment method of OLED optical detection equipment according to claim 2, characterized in that: The preset average grayscale value range is ;in, Indicates the preset standard average grayscale.
8. An automatic parameter adjustment device for OLED optical detection equipment, characterized in that: The device is used to implement the automatic parameter adjustment method of the OLED optical detection equipment according to claim 1, comprising: The first data acquisition module is used to adjust the lens axis to focus on the OLED display panel to be inspected, and obtain the initial camera working distance and the initial focus image; a first magnification value calculation module, configured to obtain an initial magnification value based on a ratio of a pixel of the OLED display panel in the initial focus image to a resolution of the OLED display panel to be detected; a second data acquisition module, configured to determine whether the initial magnification value is within a preset magnification value range; if the initial magnification value is not within the preset magnification value range, move the camera axis to adjust the camera working distance, and acquire the current camera working distance and the current focus image; a second magnification value calculation module, configured to obtain a current magnification value based on a ratio of a pixel of the OLED display panel in the current focus image to a resolution of the OLED display panel to be detected; a target camera working distance acquisition module, configured to calculate a first difference between the current camera working distance and the initial camera working distance, and a second difference between the current magnification value and the initial magnification value; obtain a first proportionality coefficient based on a ratio of the first difference to the second difference; and obtain a target camera working distance based on the first proportionality coefficient and a preset standard magnification value; wherein the preset standard magnification value is within the preset magnification value range; The first parameter adjustment module is used to move the camera axis so that the camera working distance is equal to the target camera working distance and obtain the target focus picture; use the target camera working distance as the initial camera working distance, use the target focus picture as the initial focus picture, and return to execute step S2 until the initial magnification value is within the preset magnification value range, thereby completing the adjustment of the camera working distance of the optical inspection equipment.
9. The automatic parameter adjustment device for OLED optical detection equipment according to claim 8, characterized in that: The device is further used to implement the automatic parameter adjustment method of the OLED optical detection device according to claim 2, further comprising: Data initialization module, used to initialize i=1; a first average grayscale calculation module, configured to collect an initial detection image of an i-th detection screen of the OLED display panel to be detected based on an initial exposure time, and calculate an average grayscale of the initial detection image; an exposure time adjustment module, configured to determine whether the average grayscale is within a preset average grayscale value range, and adjust the exposure time if the average grayscale is not within the preset average grayscale value range; A second average grayscale calculation module is used to recapture the current detection image of the i-th detection screen based on the current exposure time and calculate the average grayscale of the current detection image; a target exposure time acquisition module, configured to calculate a third difference between the current exposure time and the initial exposure time, and a fourth difference between the average grayscale of the current detection image and the average grayscale of the initial detection image; obtain a second proportionality coefficient based on the ratio of the third difference to the fourth difference; and obtain a target exposure time based on the second proportionality coefficient and a preset standard average grayscale; wherein the preset standard average grayscale is within the preset average grayscale value range; The second parameter adjustment module is used to capture the target detection image of the i-th detection screen based on the target exposure time; use the target exposure time as the initial exposure time, use the target detection image as the initial detection image, and return to execute step S9 until the average grayscale of the initial detection image is within the preset average grayscale value range; update i=i+1, and return to execute step S8 until i=I, completing the adjustment of the exposure time of the optical detection equipment; wherein I represents the number of detection screens of the OLED display panel to be detected.
10. An OLED optical detection device, characterized in that: The automatic parameter adjustment device comprising the OLED optical detection device according to any one of claims 8 to 9.
Citation Information
Patent Citations
Automatic adjustment method, device and system for optical detection of LCD screen
CN106292003A
Automatic focusing method
JP1988068805A