Automatic parameter adjustment method and apparatus for OLED optical inspection device
By introducing the principle of similar triangles into OLED optical inspection equipment, the working distance and exposure time of the camera can be quickly adjusted, solving the problems of long time consumption and low efficiency in the existing technology. This achieves efficient automatic parameter adjustment and extends the service life of the equipment.
Patent Information
- Application Number
- PCT/CN2024/129274
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-26
- Filing Date
- 2024-11-01
- Publication Date
- 2026-01-29
AI Technical Summary
Existing automatic parameter adjustment methods for OLED optical inspection equipment are time-consuming, inefficient, and can easily affect the lifespan of the equipment.
By introducing the principle of similar triangles, and based on the relationship between the field of view and the camera working distance, a proportional relationship between the magnification value and the camera working distance is established, allowing for rapid adjustment of the camera working distance and exposure time until the preset standard is reached.
It greatly reduces adjustment time, improves adjustment efficiency, and extends the service life of the equipment.
Smart Images

Figure CN2024129274_29012026_PF_FP_ABST
Abstract
Description
Automatic parameter adjustment method and device of OLED optical detection equipment TECHNICAL FIELD
[0001] The present application relates to the technical field of OLED optical detection, in particular to an automatic parameter adjustment method and device of OLED optical detection equipment and OLED optical detection equipment. BACKGROUND
[0002] Automated Optical Inspection (AOI) of OLED display panel is a detection technology based on optical principle and using machine vision to replace manual visual inspection, which is widely used in the production process of OLED display panel to ensure the quality and yield of OLED display panel. The optical detection equipment is a high-speed and high-precision optical image detection system. As shown in FIG. 1, the OLED optical detection equipment includes an optical system (camera module, camera shaft, camera main shaft, lens module and lens shaft), a jig stage (for placing the OLED display panel to be detected) and an automatic parameter adjustment device, wherein the automatic parameter adjustment device is connected with the camera shaft, the lens shaft and the camera module in the optical system. In the detection process, the OLED display panel is powered on and lighted, and different colors and brightness of pictures are constantly switched. The automatic parameter adjustment device sends control instructions to the lens shaft to control the up and down movement of the lens shaft for picture focusing, and sends control instructions to the camera shaft to control the up and down movement of the camera shaft along the camera main shaft to adjust the camera working distance. At the same time, control instructions are sent to the camera module to adjust the exposure time, so as to complete the collection of the current OLED display panel picture. By analyzing whether there are defects such as points, lines and Mura in the collected picture, the display quality of the OLED display panel is judged.
[0003] Since the magnification value of the optical detection equipment determines the ability of the camera to capture the details of the OLED display panel, when the magnification value reaches the preset standard, the camera can image the tiny defects and abnormal points on the OLED screen more clearly, therefore, in the detection process, the automatic parameter adjustment device in the optical detection equipment often needs to continuously control the camera shaft to move 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 detection accuracy of the OLED display panel; the automatic parameter adjustment device of the existing OLED optical detection equipment adjusts the camera working distance randomly, and calculates the magnification value based on the pixels of the OLED display panel in the current focusing picture and the resolution of the OLED display panel once after each adjustment, until the magnification value reaches the preset standard, this method has long debugging time and low debugging efficiency; in addition, in order to make the average gray scale of each detection picture collected reach the set standard, so as to improve the accuracy of the detection result, the automatic parameter adjustment device also needs to continuously adjust the exposure time of the optical detection equipment during the detection process, and the automatic parameter adjustment device of the existing OLED optical detection equipment also adjusts the exposure time randomly until the average gray scale of the collected picture reaches the preset standard, which also has the problems of long debugging time and low debugging efficiency, and adjusting the exposure time of the camera using this way will also damage the camera module and affect the service life of the equipment.
[0004] In summary, the automatic parameter adjustment method of the existing OLED optical detection equipment is time-consuming, low in efficiency and easy to affect the service life of the optical detection equipment.
[0005] SUMMARY
[0006] Therefore, the technical problem to be solved by the present application is to overcome the problems of time-consuming, low efficiency and easy to affect the service life of the equipment in the automatic parameter adjustment method of the OLED optical detection equipment in the prior art.
[0007] To solve the above technical problems, the present application provides an automatic parameter adjustment method of an OLED optical detection equipment, applied to an automatic parameter adjustment device of an OLED optical detection equipment, comprising:
[0008] S1: adjusting the lens shaft to focus on the OLED display panel to be detected, obtaining the initial camera working distance and the initial focusing picture;
[0009] S2: obtaining the initial magnification value based on the ratio of the pixels of the OLED display panel in the initial focusing picture to the resolution of the OLED display panel to be detected;
[0010] S3: judging whether the initial magnification value is in a preset magnification value range, if the initial magnification value is not in the preset magnification value range, moving the camera axis to adjust the camera working distance, and obtaining a current camera working distance and a current focusing picture;
[0011] S4: obtaining a current magnification value based on a ratio of pixels of the OLED display panel in the current focusing picture to a resolution of the OLED display panel to be detected;
[0012] S5: calculating a first difference value of the current camera working distance and the initial camera working distance, and a second difference value of the current magnification value and the initial magnification value; obtaining a first proportion coefficient based on a ratio of the first difference value and the second difference value; obtaining a target camera working distance based on the first proportion coefficient and a preset standard magnification value, wherein the preset standard magnification value is in the preset magnification value range;
[0013] S6: moving the camera axis to make the camera working distance equal to the target camera working distance, and obtaining a target focusing picture; taking the target camera working distance as an initial camera working distance, and taking the target focusing picture as an initial focusing picture, and returning to execute step S2 until the initial magnification value is in the preset magnification value range, and completing adjustment of the camera working distance of the optical detection equipment.
[0014] Preferably, after step S6, the method further comprises:
[0015] S7: initializing i = 1;
[0016] S8: acquiring an initial detection image of the i-th detection picture of the OLED display panel to be detected based on an initial exposure time, and calculating an average gray value of the initial detection image;
[0017] S9: judging whether the average gray value is in a preset average gray value range, if the average gray value is not in the preset average gray value range, adjusting the exposure time;
[0018] S10: re-acquiring a current detection image of the i-th detection picture based on a current exposure time, and calculating an average gray value of the current detection image;
[0019] S11: calculating a third difference value of the current exposure time and the initial exposure time, and a fourth difference value of the average gray value of the current detection image and the average gray value of the initial detection image; obtaining a second proportion coefficient based on a ratio of the third difference value and the fourth difference value; obtaining a target exposure time based on the second proportion coefficient and a preset standard average gray value, wherein the preset standard average gray value is in the preset average gray value range;
[0020] S12: collecting a target detection image of the i-th detection picture based on the target exposure time; taking the target exposure time as an initial exposure time, taking the target detection image as an initial detection image, and returning to perform step S9 until the average gray scale of the initial detection image is in the preset average gray scale value range; updating i=i+1 and returning to perform step S8 until i=I, and completing the adjustment of the exposure time of the optical detection device; wherein I represents the number of detection pictures of the OLED display panel to be detected.
[0021] Preferably, if the initial magnification value is not in the preset magnification value range, moving the camera axis to adjust the camera working distance comprises:
[0022] 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;
[0023] If the initial magnification value is less than the minimum value of the preset magnification value range, moving the camera axis to increase the camera working distance.
[0024] 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.
[0025] Preferably, the preset magnification value range is [90% x, 110% x]; wherein x represents a preset standard magnification value.
[0026] Preferably, if the average gray scale is not in the preset average gray scale value range, adjusting the exposure time comprises:
[0027] If the average gray scale is less than the minimum value of the preset average gray scale value range, increasing the exposure time;
[0028] If the average gray scale is greater than the maximum value of the preset average gray scale value range, decreasing the exposure time.
[0029] Preferably, the preset average gray scale value range is [95% y, 105% y]; wherein y represents a preset standard average gray scale.
[0030] The application also provides an automatic parameter adjustment device of an OLED optical detection device, comprising:
[0031] A first data acquisition module is configured to focus on the OLED display panel to be detected by adjusting the lens axis, and acquire an initial camera working distance and an initial focus picture.
[0032] A first magnification value calculation module is configured to obtain an initial magnification value based on the ratio of the pixels of the OLED display panel in the initial focus picture to the resolution of the OLED display panel to be detected.
[0033] a second data acquisition module configured to determine whether the initial magnification value is within a preset magnification value range, and if the initial magnification value is not within the preset magnification value range, move the camera shaft to adjust the camera working distance, and acquire a current camera working distance and a current focusing picture;
[0034] a second magnification value calculation module configured to obtain a current magnification value based on a ratio of pixels of the OLED display panel in the current focusing picture to a resolution of the OLED display panel to be detected;
[0035] a target camera working distance acquisition module configured to calculate a first difference value of the current camera working distance and the initial camera working distance, and a second difference value of the current magnification value and the initial magnification value, obtain a first proportion coefficient based on a ratio of the first difference value and the second difference value, and obtain a target camera working distance based on the first proportion coefficient and a preset standard magnification value, wherein the preset standard magnification value is within the preset magnification value range;
[0036] a first parameter adjustment module configured to move the camera shaft to make the camera working distance equal to the target camera working distance, and acquire a target focusing picture, take the target camera working distance as an initial camera working distance, take the target focusing picture as an initial focusing picture, and return to execute step S2 until the initial magnification value is within the preset magnification value range, and complete adjustment of the camera working distance of the optical detection device.
[0037] Preferably, the first parameter adjustment module further comprises:
[0038] a data initialization module configured to initialize i = 1;
[0039] a first average gray value calculation module configured to acquire an initial detection image of an i-th detection picture of the OLED display panel to be detected based on an initial exposure time, and calculate an average gray value of the initial detection image;
[0040] an exposure time adjustment module configured to determine whether the average gray value is within a preset average gray value range, and if the average gray value is not within the preset average gray value range, adjust the exposure time;
[0041] a second average gray value calculation module configured to re-acquire a current detection image of the i-th detection picture based on a current exposure time, and calculate an average gray value of the current detection image;
[0042] The target exposure time acquisition module is configured to calculate a third difference value of the current exposure time and the initial exposure time, and a fourth difference value of the average gray scale of the current detection image and the average gray scale of the initial detection image; obtain a second proportional coefficient based on a ratio of the third difference value and the fourth difference value; and obtain the target exposure time based on the second proportional coefficient and a preset standard average gray scale, wherein the preset standard average gray scale is within the preset average gray scale value range.
[0043] The second parameter adjustment module is configured to acquire a target detection image of the i-th detection picture based on the target exposure time; take the target exposure time as the initial exposure time, take the target detection image as the initial detection image, and return to execute step S9 until the average gray scale of the initial detection image is within the preset average gray scale value range; update i=i+1, and return to execute step S8 until i=I, and complete adjustment of the exposure time of the optical detection device; wherein I represents the number of detection pictures of the OLED display panel to be detected.
[0044] The application further provides an OLED optical detection device comprising the automatic parameter adjustment device of the OLED optical detection device.
[0045] The automatic parameter adjustment method of the OLED optical detection device provided by the application has the following beneficial effects:
[0046] 1. At the beginning of detection, the initial camera working distance and the initial focusing picture are acquired first, and the initial magnification value is calculated; if the initial magnification value is not within the preset value range, the camera working distance is first coarsely adjusted to obtain the current camera working distance, the focusing picture and the 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, therefore, according to the principle of similar triangles, based on the difference between the camera working distances before and after coarse adjustment and the difference between the magnification values, the proportional relationship between the camera working distance and the magnification value is obtained, so that the target camera working distance required for accurate adjustment can be obtained according to the proportional relationship and the preset standard magnification value; after the camera shaft is moved 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 acquired, until the magnification value reaches the preset standard; by introducing the principle of similar triangles, the proportional relationship between the magnification value and the camera working distance is established based on the relationship between the field of view range and the camera working distance, which provides a basis for the adjustment of 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.
[0047] 2、The application also acquires the initial exposure time and the average gray scale of the initial detection image when adjusting the exposure time, and first coarsely adjusts the exposure time to obtain the current exposure time and the average gray scale of the current detection image. Based on the exposure time difference and the average gray scale difference before and after the coarse adjustment, the proportional relationship between the exposure time and the average gray scale is obtained, so that the exposure time required for accurate adjustment, i.e. the target exposure time, can be obtained according to the proportional relationship and the preset standard average gray scale. If the average gray scale is still not within the preset value range, the exposure time is coarsely adjusted again, and a new target exposure time is obtained. Until the average gray scale of the detection image reaches the preset standard, the adjustment of the exposure time is provided with a basis, so as to quickly adjust the average gray scale of the detection image to the preset standard, reduce the adjustment time, improve the debugging efficiency, and prolong the service life of the equipment. BRIEF DESCRIPTION OF DRAWINGS
[0048] In order to make the content of the application more easily understood, the application will be further described in detail below according to specific embodiments of the application and in conjunction with the drawings, in which:
[0049] Fig. 1 is a structural schematic diagram of an OLED optical detection equipment provided by the application;
[0050] Fig. 2 is a flow chart of an automatic parameter adjustment method of the OLED optical detection equipment provided by the application;
[0051] Fig. 3 is a schematic diagram of the automatic parameter adjustment principle of the OLED optical detection equipment provided by the application;
[0052] Fig. 4 is a structural schematic diagram of an automatic parameter adjustment device of the OLED optical detection equipment provided by the application. DETAILED DESCRIPTION
[0053] The application will be further described below in conjunction with the drawings and specific embodiments, so that those skilled in the art can better understand the application and implement it. However, the embodiments are not limiting to the application.
[0054] Please refer to Fig. 2, which is a flow chart of an automatic parameter adjustment method of the OLED optical detection equipment provided by the application, applied to an automatic parameter adjustment device of the OLED optical detection equipment. The method specifically includes:
[0055] S1: adjusting the lens shaft to focus on the to-be-detected OLED display panel, and acquiring the initial camera working distance and the initial focusing picture;
[0056] S2: obtaining the initial magnification value based on the ratio of the pixels of the OLED display panel in the initial focusing picture to the resolution of the to-be-detected OLED display panel;
[0057] S3: judging whether the initial magnification value is in the preset magnification value range, if the initial magnification value is not in the preset magnification value range, moving the camera axis to adjust the camera working distance, and obtaining the current camera working distance and the current focusing picture;
[0058] S4: obtaining the current magnification value based on the ratio of the pixels of the OLED display panel in the current focusing picture to the resolution of the OLED display panel to be detected;
[0059] S5: calculating the first difference value of the current camera working distance and the initial camera working distance, and the second difference value of the current magnification value and the initial magnification value; obtaining the first proportion coefficient based on the ratio of the first difference value and the second difference value; obtaining the target camera working distance based on the first proportion coefficient and the preset standard magnification value; wherein the preset standard magnification value is in the preset magnification value range;
[0060] S6: moving the camera axis so that the camera working distance is equal to the target camera working distance, and obtaining the target focusing picture; taking the target camera working distance as the initial camera working distance, and taking the target focusing picture as the initial focusing picture, and returning to execute step S2 until the initial magnification value is in the preset magnification value range, and completing the adjustment of the camera working distance of the optical detection equipment.
[0061] The automatic parameter adjustment method of the OLED optical detection equipment provided in the application first obtains the initial camera working distance and the initial focusing picture at the beginning of detection, and calculates the initial magnification value; if the initial magnification value is not in the preset value range, the camera working distance is first coarsely adjusted to obtain the current camera working distance, the focusing picture and the 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, therefore, according to the principle of similar triangles, based on the difference value of the camera working distance before and after the coarse adjustment and the difference value of the magnification value, the proportional relationship between the camera working distance and the magnification value is obtained, so that the camera working distance required for accurate adjustment, i.e. the target camera working distance, can be obtained according to the proportional relationship and the preset standard magnification value. 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 in 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. By introducing the principle of similar triangles, the proportional relationship between the magnification value and the camera working distance is established based on the relationship between the field of view range and the camera working distance, which provides a basis for the adjustment of 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.
[0062] Figure 3 shows a schematic diagram of the relationship between the working distance and field of view of an optical inspection device. Since different working distances (WD) correspond to different fields of view (FOV), and the FOV corresponds to the magnification value (Mapping), based on the principle of similar triangles, the first difference in the change of the working distance (WD) and the second difference in the change of the magnification value are calculated according to the working distance (WD) before and after coarse adjustment and the magnification value (Mapping). The specific proportional relationship between the working distance and the magnification value can be obtained based on the ratio of the first difference and the second difference. Thus, the working distance of the target camera can be calculated based on this proportional relationship and the preset standard magnification value.
[0063] Specifically, in step S3, if the initial magnification value is not within the preset magnification value range, moving the camera axis to adjust the camera working distance includes:
[0064] If the initial magnification value is greater than the maximum value of the preset magnification value range, then move the camera axis to reduce the camera working distance;
[0065] If the initial magnification value is less than the minimum value of the preset magnification value range, then move the camera axis to increase the camera working distance.
[0066] Specifically, when moving the camera axis to adjust the initial camera working distance, the moving 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.
[0067] 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.
[0068] Specifically, experiments have shown that using the automatic parameter adjustment method provided in this application, it is often only necessary to make one coarse adjustment and one precise adjustment to the camera working distance to make the magnification value reach the preset magnification value range, without having to frequently move the camera axis to repeatedly adjust the camera working distance, thus avoiding wear on the camera axis.
[0069] Furthermore, after adjusting the camera's working distance, the exposure time of the optical inspection equipment also needs to be adjusted to ensure that the brightness of each inspection image reaches the set standard, thereby ensuring that the average grayscale of the acquired image reaches the preset average grayscale standard and thus improving the accuracy of the inspection results.
[0070] Specifically, in some embodiments of this application, step S6 is followed by:
[0071] S7: Initialize i = 1;
[0072] S8: Acquire the initial detection image of the i-th detection frame of the OLED display panel to be tested based on the initial exposure time, and calculate the average gray level of the initial detection image;
[0073] Specifically, when the OLED display panel is lit, the captured detection image will contain non-screen areas in addition to the OLED display panel area. The OLED display panel area in the detection image can be obtained through image algorithms and the average gray level of the area can be calculated as the average gray level of the detection image.
[0074] S9: Determine whether the average gray level is within the preset average gray level range. If the average gray level is not within the preset average gray level range, adjust the exposure time.
[0075] S10: Reacquire the current detection image of the i-th detection frame based on the current exposure time, and calculate the average gray level of the current detection image;
[0076] S11: Calculate the third difference between the current exposure time and the initial exposure time, and the fourth difference between the average gray level of the current detected image and the average gray level of the initial detected image; obtain the second proportional coefficient based on the ratio of the third difference and the fourth difference; obtain the target exposure time based on the second proportional coefficient and the preset standard average gray level; wherein, the preset standard average gray level is within the range of preset average gray level values.
[0077] S12: Acquire the target detection image of the i-th detection frame 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 gray level of the initial detection image is within the preset average gray level 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 device; where I represents the number of detection frames of the OLED display panel to be detected.
[0078] Similar to the principle of adjusting the working distance of a camera, in the process of adjusting the exposure time to make the average gray level of the image reach the preset average gray level range, the third difference between the two exposure times and the fourth difference between the two average gray levels are calculated. Based on the ratio of the third difference and the fourth difference, the proportional relationship between the exposure time and the average gray level is determined. Thus, according to this proportional relationship and the preset standard average gray level, the target exposure time can be calculated, which greatly reduces the time required to adjust the exposure time and improves the detection efficiency.
[0079] Specifically, if the average gray level is not within the preset range of average gray level values, the exposure time adjustment includes:
[0080] If the average gray level is less than the minimum value of the preset average gray level range, then increase the exposure time;
[0081] If the average gray level is greater than the maximum value of the preset average gray level range, then reduce the exposure time.
[0082] Specifically, in some embodiments of this application, the preset average grayscale value range is [95%y, 105%y]; where y represents the preset standard average grayscale.
[0083] Experiments have shown that when adjusting the exposure time using the method provided in this application, for each detection image, only one coarse adjustment and one precise adjustment are usually needed to make the average gray level of the image reach the preset average gray level range. This avoids the wear and tear on the camera module caused by repeated adjustments of the exposure time and extends the service life of the equipment to the greatest extent.
[0084] Based on the automatic parameter adjustment method for OLED optical inspection equipment provided in the above embodiments, this application also provides an automatic parameter adjustment device for OLED optical inspection equipment, as shown in FIG4. The device specifically includes:
[0085] The first data acquisition module 10 is used to adjust the lens axis to focus on the OLED display panel to be tested, and to acquire the initial camera working distance and the initial focus image.
[0086] The first magnification value calculation module 20 is used to obtain the initial magnification value based on the ratio of the pixels of the OLED display panel in the initial focusing image to the resolution of the OLED display panel to be detected.
[0087] The second data acquisition module 30 is used to determine whether the initial magnification value is within the range of the preset magnification value. If the initial magnification value is not within the range of the preset magnification value, the camera axis is moved to adjust the camera working distance, and the current camera working distance and the current focus image are acquired.
[0088] The second magnification value calculation module 40 is used to obtain the current magnification value based on the ratio of the pixels of the OLED display panel in the current focusing image to the resolution of the OLED display panel to be detected.
[0089] The target camera working distance acquisition module 50 is used 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 proportional coefficient based on the ratio of the first difference and the second difference; and obtain the target camera working distance based on the first proportional coefficient and a preset standard magnification value; wherein the preset standard magnification value is within the range of preset magnification values.
[0090] 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 to acquire the target focusing image; the target camera working distance is used as the initial camera working distance, the target focusing image is used as the initial focusing image, and the process returns to step S2 until the initial magnification value is within the preset magnification value range, thus completing the adjustment of the working distance of the optical detection device camera.
[0091] In some embodiments of this application, the first parameter adjustment module 60 further includes:
[0092] The data initialization module is used to initialize i = 1;
[0093] The first average grayscale calculation module is used to acquire the initial detection image of the i-th detection frame of the OLED display panel to be detected based on the initial exposure time, and to calculate the average grayscale of the initial detection image.
[0094] The exposure time adjustment module is used to determine whether the average gray level is within the preset average gray level range. If the average gray level is not within the preset average gray level range, the exposure time is adjusted.
[0095] The second average grayscale calculation module is used to re-acquire the current detection image of the i-th detection frame based on the current exposure time, and calculate the average grayscale of the current detection image.
[0096] The target exposure time acquisition module is used to calculate the third difference between the current exposure time and the initial exposure time, and the fourth difference between the average gray level of the current detected image and the average gray level of the initial detected image; a second proportional coefficient is obtained based on the ratio of the third difference and the fourth difference; the target exposure time is obtained based on the second proportional coefficient and the preset standard average gray level; wherein the preset standard average gray level is within the preset average gray level value range.
[0097] The second parameter adjustment module is used to acquire the target detection image of the i-th detection frame based on the target exposure time; take the target exposure time as the initial exposure time, take the target detection image as the initial detection image, and return to execute step S9 until the average gray level of the initial detection image is within the preset average gray level 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 device; where I represents the number of detection frames of the OLED display panel to be detected.
[0098] This application also provides an OLED optical inspection device, which includes the automatic parameter adjustment device of the OLED optical inspection device described above.
[0099] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0100] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more flowchart illustrations and / or one or more block diagrams.
[0101] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0102] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0103] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.
Claims
1. A method for automatic parameter adjustment of an OLED optical detection device, characterized in that, An automatic parameter adjustment device applied to an OLED optical detection equipment, comprising: S1: adjusting a lens shaft to focus on a to-be-detected OLED display panel, obtaining an initial camera working distance and an initial focusing picture; S2: obtaining an initial magnification value based on a ratio of pixels of the OLED display panel in the initial focusing picture to a resolution of the to-be-detected OLED display panel; S3: judging 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 a camera shaft to adjust the camera working distance, and obtaining a current camera working distance and a current focusing picture; S4: obtaining a current magnification value based on a ratio of pixels of the OLED display panel in the current focusing picture to the resolution of the to-be-detected OLED display panel; S5: calculating a first difference value of the current camera working distance and the initial camera working distance, and a second difference value of the current magnification value and the initial magnification value; obtaining a first proportion coefficient based on a ratio of the first difference value and the second difference value; obtaining a target camera working distance based on the first proportion coefficient and a preset standard magnification value, wherein the preset standard magnification value is within the preset magnification value range; S6: moving the camera shaft to make the camera working distance equal to the target camera working distance, and obtaining a target focusing picture; taking the target camera working distance as the initial camera working distance, taking the target focusing picture as the initial focusing picture, and returning to execute step S2 until the initial magnification value is within the preset magnification value range, completing adjustment of the camera working distance of the optical detection equipment.
2. The method of automatic parameter adjustment of an OLED optical detection device according to claim 1, characterized in that, After step S6, further comprising: S7: initializing i=1; S8: acquiring an initial detection image of an i-th detection picture of the to-be-detected OLED display panel based on an initial exposure time, and calculating an average gray scale of the initial detection image; S9: judging whether the average gray scale is within a preset average gray scale value range, if the average gray scale is not within the preset average gray scale value range, adjusting the exposure time; S10: re-acquiring a current detection image of the i-th detection picture based on a current exposure time, and calculating an average gray scale of the current detection image; S11: calculating a third difference value of the current exposure time and the initial exposure time, and a fourth difference value of the average gray scale of the current detection image and the average gray scale of the initial detection image; obtaining a second proportion coefficient based on a ratio of the third difference value and the fourth difference value; obtaining a target exposure time based on the second proportion coefficient and a preset standard average gray scale, wherein the preset standard average gray scale is within the preset average gray scale value range; S12: collecting a target detection image of the i-th detection picture based on the target exposure time; taking the target exposure time as an initial exposure time, taking the target detection image as an initial detection image, and returning to execute step S9 until the average gray scale of the initial detection image is within the preset average gray scale value range; updating i=i+1 and returning to execute step S8 until i=I, and completing the adjustment of the exposure time of the optical detection device; wherein I represents the number of detection pictures of the OLED display panel to be detected.
3. The method of automatic parameter adjustment of an 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, moving the camera axis to increase the camera working distance.
4. The method of automatic parameter adjustment of an OLED optical detection device according to claim 1, characterized in that, 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.
5. The method of claim 1, wherein, The preset magnification value range is [90% x, 110% x]; wherein x represents a preset standard magnification value.
6. The method of claim 2, wherein the method further comprises: If the average gray scale is not within the preset average gray scale value range, adjusting the exposure time includes: If the average gray scale is less than the minimum value of the preset average gray scale value range, increasing the exposure time; If the average gray scale is greater than the maximum value of the preset average gray scale value range, decreasing the exposure time.
7. The method of claim 2, wherein the method further comprises: The preset average gray scale value range is [95% y, 105% y]; wherein y represents a preset standard average gray scale.
8. An automatic parameter adjustment device for an OLED optical detection apparatus, characterized in that, It includes: A first data acquisition module for adjusting the lens axis to focus on the OLED display panel to be detected to obtain an initial camera working distance and an initial focusing picture; A first magnification value calculation module for obtaining an initial magnification value based on the ratio of the pixels of the OLED display panel in the initial focusing picture to the resolution of the OLED display panel to be detected; A second data acquisition module for determining whether the initial magnification value is within the preset magnification value range, and if the initial magnification value is not within the preset magnification value range, moving the camera axis to adjust the camera working distance and obtaining a current camera working distance and a current focusing picture; A second magnification value calculation module for obtaining a current magnification value based on the ratio of the pixels of the OLED display panel in the current focusing picture to the resolution of the OLED display panel to be detected; A target camera working distance acquisition module for calculating a first difference value of the current camera working distance and the initial camera working distance, and a second difference value of the current magnification value and the initial magnification value; Obtaining a first proportion coefficient based on the ratio of the first difference value and the second difference value; Obtaining a target camera working distance based on the first proportion 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 for moving the camera axis so that the camera working distance is equal to the target camera working distance, and obtaining a target focusing picture; the target camera working distance is taken as an initial camera working distance, and the target focusing picture is taken as an initial focusing picture, and the step S2 is executed until the initial magnification value is in a preset magnification value range, and the adjustment of the camera working distance of the optical detection equipment is completed.
9. The automatic parameter adjustment device of an OLED optical detection apparatus according to claim 8, characterized in that, The first parameter adjustment module further comprises: A data initialization module is used for initializing i=1. A first average gray calculation module is used for acquiring an initial detection image of the i-th detection picture of the OLED display panel to be detected based on the initial exposure time, and calculating the average gray of the initial detection image. An exposure time adjustment module is used for judging whether the average gray is in a preset average gray value range, and if the average gray is not in the preset average gray value range, adjusting the exposure time. A second average gray calculation module is used for re-acquiring a current detection image of the i-th detection picture based on the current exposure time, and calculating the average gray of the current detection image. A target exposure time acquisition module is used for calculating a third difference value of the current exposure time and the initial exposure time, and a fourth difference value of the average gray of the current detection image and the average gray of the initial detection image; obtaining a second proportional coefficient based on the ratio of the third difference value and the fourth difference value; obtaining the target exposure time based on the second proportional coefficient and a preset standard average gray; wherein the preset standard average gray is in the preset average gray value range. A second parameter adjustment module is used for acquiring a target detection image of the i-th detection picture based on the target exposure time; taking the target exposure time as an initial exposure time, and taking the target detection image as an initial detection image, and executing the step S9 until the average gray of the initial detection image is in the preset average gray value range; updating i=i+1, and executing the step S8 until i=I, and the adjustment of the exposure time of the optical detection equipment is completed; wherein I represents the number of detection pictures of the OLED display panel to be detected. An automatic parameter adjustment device of the OLED optical detection equipment is provided.
10. An OLED optical detection device, characterized in that, An automatic parameter adjustment device of the OLED optical detection equipment is provided.
Citation Information
Patent Citations
Locating and focusing method of visual inspection system of liquid crystal display panel
CN104931421A
Focusing method and mobile terminal
CN105827944A
Automatic adjustment method, device and system for optical detection of LCD screen
CN106292003A
Automatic exposure method, electronic equipment and computer readable storage medium
CN112887630A
Method for adjusting optical inspecting system of flaw using one-dimensional ccd camera
JP1999218500A