Automatic parameter adjusting method and device for OLED optical detection equipment
By introducing the principle of similar triangles into OLED optical inspection equipment, and based on the proportional relationship between the field of view and the camera working distance, the camera working distance and exposure time can be quickly adjusted, solving the problems of long time consumption and low efficiency in existing technologies. This achieves efficient automatic parameter adjustment and extends the equipment life.
Patent Information
- Application Number
- CN202411009510.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-07-18
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-26
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 proportional relationship between the field of view and the camera working distance, the camera working distance and exposure time can be quickly adjusted to achieve the preset standard, reducing adjustment time and improving efficiency.
This greatly reduces the adjustment time for camera working distance and exposure time, improves detection efficiency, and extends the service life of the equipment.
Smart Images

Figure CN118936848A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical 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, wherein 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 lit, and the images of different colors and brightness are continuously switched. The automatic parameter adjustment device controls the lens axis to move up and down to focus the image by sending control instructions to the lens axis, and then controls the camera axis to move up and down along the camera spindle by sending control instructions to the camera axis 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, and 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 adjusts the working distance of the camera based on the magnification value of the OLED display panel in the current focus picture after each adjustment. The resolution of the pixel and the OLED display panel is used to calculate the magnification value once 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 detection 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 damage 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 of the automatic parameter adjustment method of the OLED optical detection equipment in the prior art being time-consuming, inefficient and easily affecting the service life of the equipment.
[0006] In order to solve the above technical problems, the present invention provides an automatic parameter adjustment method of an OLED optical detection device, which is applied to an automatic parameter adjustment device of 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 picture to a resolution of the OLED display panel to be detected;
[0009] S3: 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 obtaining the current camera working distance and the current focus picture;
[0010] S4: obtaining a current magnification value based on a ratio of a pixel of the OLED display panel in the current focus picture to a resolution of the OLED display panel to be detected;
[0011] S5: 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 and the second difference; 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;
[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: 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; 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;
[0019] S12: Based on the target exposure time, a target detection image of the i-th detection screen is acquired; 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=i+1 is updated, 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, the camera axis is moved 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 an initial camera working distance and an initial focus picture;
[0031] A first magnification value calculation module, used to obtain an initial magnification value based on a 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;
[0032] A second data acquisition module is used 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, the camera axis is moved to adjust the camera working distance, and the current camera working distance and the current focus picture are acquired;
[0033] A second magnification value calculation module, used to obtain a current magnification value based on a ratio of the pixels of the OLED display panel in the current focus picture to the resolution of the OLED display panel to be detected;
[0034] A target camera working distance acquisition module 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 proportionality coefficient based on the ratio of the first difference and the second difference; 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 detection 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 is used to collect 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 calculate the average grayscale of the initial detection image;
[0039] An exposure time adjustment module, 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;
[0040] A second average grayscale calculation module is used to re-collect 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 is used 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 and the fourth difference; 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 of the OLED optical detection device provided in this application has the following beneficial effects:
[0045] 1. At the beginning of the detection, first obtain the initial camera working distance and the initial focus screen, and calculate the initial magnification value; if the initial magnification value is not within the preset value range, first roughly adjust the camera working distance to obtain the current camera working distance, focus screen and current magnification value. Since the field of view 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 camera working distance difference and the magnification value difference before and after the rough 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, 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 roughly adjusted again, and a new target camera working distance is obtained until the magnification value reaches the preset standard; the 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, so as to provide a basis for adjusting the camera working distance, so that the magnification value can be quickly adjusted to the preset standard, which greatly reduces the adjustment time of the camera working distance and improves 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, that is, the target exposure time, can be obtained according to the proportional relationship and the preset standard average grayscale. 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, thereby providing a basis for adjusting the exposure time, so as to quickly adjust the average grayscale of the detection image to the preset standard, thereby 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 according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:
[0048] Figure 1 A schematic diagram of the structure of the OLED optical detection equipment provided in this application;
[0049] Figure 2 A flow chart of the automatic parameter adjustment method of the OLED optical detection device provided in this application;
[0050] Figure 3 A schematic diagram of the automatic parameter adjustment principle of the OLED optical detection device 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 is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but 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 device provided in the present application is applied to the automatic parameter adjustment device of the OLED optical detection device. 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 pixels of the OLED display panel in the initial focus image to a resolution of the OLED display panel to be detected;
[0056] S3: 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 obtaining the current camera working distance and the current focus image;
[0057] 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;
[0058] S5: 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 and the second difference; 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 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 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.
[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, the focus 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, 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 camera working distance difference and the magnification value difference before and after the rough adjustment, so that the proportional relationship and the preset standard can be used to adjust the field of view range. The magnification value is used 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 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 to establish 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, so that the magnification value can be quickly adjusted to the preset standard, which greatly reduces the adjustment time of the camera working distance and improves the adjustment efficiency.
[0061] like Figure 3 The figure shows a curve diagram of the relationship between the camera working distance and the field of view of the optical detection 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 distance WD before and after coarse adjustment and the magnification value Mapping, the first difference of the change in the camera working distance and the second difference of the change in the magnification value are calculated. The specific proportional relationship between the camera working distance and the magnification value can be obtained according to the ratio of the first difference to the second difference, and the target camera working distance can be calculated according to 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]; wherein 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 moving 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 moving distance of the camera axis is 10% h to 20% h;
[0067] Specifically, experiments have proved that when using the automatic parameter adjustment method provided in the present application, it is often only necessary to perform one coarse adjustment and one precise 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, in addition to the OLED display panel part, there will be a non-screen area in the collected detection image. The OLED display panel area in the detection image can be obtained through the image algorithm and the average grayscale of the area can be calculated 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: 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 and the fourth difference; 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;
[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 duration of exposure time adjustment and improves 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, thereby avoiding the wear and tear of 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 picture;
[0085] A first magnification value calculation module 20, used to obtain an initial magnification value based on a 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;
[0086] The second data acquisition module 30 is used 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, the camera axis is moved to adjust the camera working distance, and the current camera working distance and the current focus image are acquired;
[0087] A second magnification value calculation module 40, used to obtain a current magnification value based on a ratio of a pixel of the OLED display panel in the current focus picture to a resolution of the OLED display panel to be detected;
[0088] 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 proportionality coefficient based on the ratio of the first difference and the second difference; 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 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 detection 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 is used to collect 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 calculate the average grayscale of the initial detection image;
[0093] An exposure time adjustment module, 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 re-collect 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 is used 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 and the fourth difference; 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 a 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 may be provided as methods, systems, or computer program products. Therefore, the present application may 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 may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include 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 generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. 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 capable of directing a computer or other programmable data processing device to operate 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 A 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 operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0102] Obviously, the above embodiments are merely examples for the purpose of clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still 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 picture to a resolution of the OLED display panel to be detected; S3: 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 obtaining the current camera working distance and the current focus picture; S4: obtaining a current magnification value based on a ratio of a pixel of the OLED display panel in the current focus picture to a resolution of the OLED display panel to be detected; S5: 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 and the second difference; 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; 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 method further includes: 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: 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 and the fourth difference; 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; S12: Based on the target exposure time, a target detection image of the i-th detection screen is acquired; 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=i+1 is updated, 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.
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, the camera axis is moved 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 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 automatic parameter adjustment method of OLED optical detection equipment according to claim 1, characterized in that: The preset magnification value range is [90%x, 110%x]; wherein x represents the preset standard magnification value.
6. The automatic parameter adjustment method of the OLED optical detection device 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 [95% y, 105% y]; wherein y represents the preset standard average grayscale.
8. An automatic parameter adjustment device for an OLED optical detection device, characterized in that: include: The first data acquisition module 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 picture; A first magnification value calculation module, used to obtain an initial magnification value based on a 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; A second data acquisition module is used 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, the camera axis is moved to adjust the camera working distance, and the current camera working distance and the current focus picture are acquired; A second magnification value calculation module, used to obtain a current magnification value based on a ratio of the pixels of the OLED display panel in the current focus picture to the resolution of the OLED display panel to be detected; A target camera working distance acquisition module, used for 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; Based on the first proportionality coefficient and a preset standard magnification value, a target camera working distance is obtained; 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 detection equipment.
9. The automatic parameter adjustment device of the OLED optical detection equipment according to claim 8, characterized in that: The first parameter adjustment module also includes: Data initialization module, used to initialize i=1; A first average grayscale calculation module is used to collect 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 calculate the average grayscale of the initial detection image; An exposure time adjustment module, 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; A second average grayscale calculation module is used to re-collect 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 is used 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 and the fourth difference; 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 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.
10. An OLED optical detection device, characterized in that: An automatic parameter adjustment device comprising the OLED optical detection device as described in any one of claims 8 to 9.
Citation Information
Patent Citations
Locating and focusing method of visual inspection system of liquid crystal display panel
CN104931421A
Automatic adjustment method, device and system for optical detection of LCD screen
CN106292003A
Method for automatically adjusting imaging resolution of camera in AOI detection system
CN112839168A
Automatic exposure method, electronic equipment and computer readable storage medium
CN112887630A
Camera, continuous zooming control method and device thereof and storage medium
CN115002299A
Cited By
Exposure adjustment method, device and system and computer readable storage medium
CN120692477A
Imaging lens magnification adjusting system and adjusting method
CN121165279A
