Summary of the invention
Fundamental purpose of the present invention, for providing a kind of method of liquid crystal panel appearance detecting device lens correction, is intended to carry out camera lens automatic calibration to liquid crystal panel appearance detecting device.
The present invention also provides a kind of system of liquid crystal panel appearance detecting device lens correction, is intended to carry out camera lens automatic calibration to liquid crystal panel appearance detecting device.
A method for liquid crystal panel appearance detecting device lens correction, the method comprises: the method comprising the steps of: A, get the normal liquid crystal panel standard film of gamma characteristic value, automatically carries out capture to obtain the standard gray scale data of standard film; B, analyze the need of startup lens correction; C, needs start lens correction time, capture is carried out automatically to obtain the instant luma data of standard film to standard film; D, calculate the deviation of instant luma data and standard gray scale data; E, according to calculate deviation camera lens is corrected.
Preferably, the method also comprises: preset some correction time; Whether judge whether to need to start lens correction to some correction time by analyzing.
Preferably, described method also comprises further: detecting correction instruction; Judge whether when detecting correction instruction to need to start to correct.
Preferably, also comprise after described step e: preset a threshold values; After lens correction, again the luma data after correcting is obtained to standard film; And judge the luma data after the correction obtained and the deviation of standard gray scale data, whether be greater than pre-set threshold value; When luma data after the correction obtained and the deviation of standard gray scale data are greater than pre-set threshold value, proceed lens correction; When luma data after the correction obtained and the deviation of standard gray scale data are not more than pre-set threshold value, terminate lens correction.
Preferably, describedly to the mode that camera lens corrects be: the light source of camera lens or focal length are adjusted.
A system for liquid crystal panel appearance detecting device lens correction, this system comprises: standard sets up module, for after getting the normal liquid crystal panel standard film of gamma characteristic value, automatically carries out capture to obtain the standard gray scale data of standard film to standard film; Correction analysis module, for analyzing the need of startup lens correction, when needs start lens correction, automatically carrying out capture to obtain the instant luma data of standard film to standard film, calculating the deviation of instant luma data and standard gray scale data; Correction process module, for correcting camera lens according to the deviation calculated.
Preferably, this correction analysis module also for: preset correction time point; Whether judge whether to need to start lens correction to some correction time by analyzing.
Preferably, correction analysis module also for: detecting correction instruction; Judge whether when detecting correction instruction to need to start to correct.
Preferably, this correction analysis module is also further used for: preset a threshold values; After lens correction, again the luma data after correcting is obtained to standard film; And judge the luma data after the correction obtained and the deviation of standard gray scale data, whether be greater than pre-set threshold value; When luma data after the correction obtained and the deviation of standard gray scale data are greater than pre-set threshold value, proceed lens correction; When luma data after the correction obtained and the deviation of standard gray scale data are not more than pre-set threshold value, terminate lens correction.
Preferably, described correction process module to the mode that camera lens corrects is: adjust the light source of camera lens or focal length.
Hinge structure, the present invention is by setting up the standard gray scale data of the standard film of liquid crystal panel, the deviation of the instant data with GTG is found out based on the normal data set up, and then the correction realized liquid crystal panel appearance detecting device camera lens, effectively reduce the deviation of the camera lens caused because of the change in product line switch line, detection platform, camera lens lamp source, simultaneously by arranging automatic time correction point, realizing the automatic calibration of camera lens, improve board utilization factor and producing line production capacity.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, be the concrete implementing procedure figure of the first embodiment of liquid crystal panel appearance detecting device lens correction method of the present invention.
It is emphasized that: process flow diagram shown in Fig. 1 is only a preferred embodiment, those skilled in the art is when knowing, any embodiment built around inventive concept should not depart from the scope contained in following technical scheme:
Get the normal liquid crystal panel standard film of gray-level characteristic value, automatically carry out capture to obtain the standard gray scale data of standard film; Analyze the need of startup lens correction; When needs start lens correction, capture is carried out automatically to obtain the instant luma data of standard film to standard film; Calculate the deviation of instant luma data and standard gray scale data; Deviation according to calculating corrects camera lens.
Below the concrete steps that the present embodiment progressively realizes correcting liquid crystal panel detector lens:
Step S11, after getting the normal liquid crystal panel standard film of gray-level characteristic value, carries out capture automatically to obtain the standard gray scale data of standard film.In the present embodiment, liquid crystal panel standard film gets 2 pieces, and a slice is as calibration standard sheet, and another sheet is as secondary-confirmation standard film or standard film for subsequent use.In other embodiments of the invention, liquid crystal panel standard film gets 1, or gets more than 3 in case follow-uply to change whenever necessary.
Step S12, analyzes the need of startup lens correction.When needs start lens correction, perform following step S13, or when not needing to start lens correction, process ends.In the present embodiment, preset some correction time, whether judging whether to need to start lens correction to some correction time by analyzing, when putting to the correction time of presetting, starting lens correction; When not putting to the correction time of presetting, do not start lens correction.Detecting correction instruction, when detecting correction instruction, judges whether to need to start to correct; When needs start timing, the instant luma data that capture obtains standard film being carried out automatically to standard film, when not needing to start correction, continuing to detect normal crystal liquid substrate.The described instruction detected can be the correction instruction when putting to the correction time of presetting, can also be, the correction instruction that user assigns as required, can be such as produce at liquid crystal panel the correction instruction assigned when line switch line changes checkout equipment detection platform, also can be the correction instruction assigned when changing the lamp source of camera lens.
Step S13, carries out capture to obtain the instant luma data of standard film automatically to standard film.In the present embodiment, by automatically capture will be carried out to standard film, and the image obtained is carried out the GTG that binaryzation calculates standard film.The described two-value to image turns to: set a threshold value T, with T, the data of image are divided into two parts: be greater than the pixel group of T and be less than the pixel group of T.The pixel value of the pixel group being greater than T is set as white (or black), the pixel value being less than the pixel group of T is set as black (or white).
Step S14, calculates the deviation of instant luma data and standard gray scale data.
Step S15, the deviation according to calculating corrects camera lens.In the present embodiment, when instant luma data and standard gray scale data exist deviation, the deviation according to calculating corrects camera lens.In other embodiments of the present invention, a threshold values is preset; After lens correction, again the luma data after correcting is obtained to standard film; And the deviation of the luma data passed through after the correction that will obtain and standard gray scale data, whether be greater than pre-set threshold value; When luma data after the correction obtained and the deviation of standard gray scale data are greater than pre-set threshold value, the instant luma data returning step S13 acquisition standard film proceeds lens correction; Or the deviation of luma data and standard gray scale data after the correction obtained is when being not more than pre-set threshold value, end lens correction.
The present invention is by setting up the standard gray scale data of the standard film of liquid crystal panel, the deviation of the instant data with GTG is found out based on the normal data set up, and then the correction realized liquid crystal panel appearance detecting device camera lens, effectively reduce the deviation of the camera lens caused because of the change in product line switch line, detection platform, camera lens lamp source, simultaneously by arranging automatic time correction point, realize the automatic calibration of camera lens, improve board utilization factor and produce line production capacity.
As shown in Figure 2, be the particular flow sheet of method second embodiment of liquid crystal panel appearance detecting device lens correction of the present invention.
Based on method first embodiment of above-mentioned lens correction, the present embodiment also comprises after the step s 15:
Step S16, presets a threshold values; After lens correction, again the luma data after correcting is obtained to standard film; And the deviation of the luma data passed through after the correction that will obtain and standard gray scale data, whether be greater than pre-set threshold value; When luma data after the correction obtained and the deviation of standard gray scale data are greater than pre-set threshold value, the instant luma data returning step S13 acquisition standard film proceeds lens correction; Or the deviation of luma data and standard gray scale data after the correction obtained is when being not more than pre-set threshold value, end lens correction.
The present embodiment passes through the camera lens after to correction, again the instant luma data after correcting is obtained to standard film, and the instant luma data after correcting is compared with standard gray scale data calculate deviation and compare with pre-set threshold value, make camera lens fully carry out offset correction, correction more accurate.
As shown in Figure 3, be the Organization Chart of liquid crystal panel appearance detecting device lens correction system preferred embodiment operation of the present invention.The system 12 of this lens correction runs in checkout equipment 1.This checkout equipment 1 comprises: camera lens 11, storage unit 13, display unit 14, processing unit 15.This checkout equipment 1 carries out capture by camera lens 11 pairs of liquid crystal panels, and the image of acquisition is carried out the gray-level characteristic value that binaryzation calculates liquid crystal panel.The described two-value to image turns to: set a threshold value T, with T, the data of image are divided into two parts: be greater than the pixel group of T and be less than the pixel group of T.The pixel value of the pixel group being greater than T is set as white (or black), the pixel value being less than the pixel group of T is set as black (or white).Described checkout equipment can be that liquid crystal panel microdefect detects machine, and also can be that PSH (Photo spacerHeight, gap particles height) detects machine, can also be that other have arbitrarily the liquid crystal panel detection device of detector lens.
This storage unit 13 is for storing this lens correction system 12 and service data thereof.
This storage unit 13 is also for storing the view data of the acquisition of camera lens 11.
This display unit 14, for providing human-computer interaction interface, for user input instruction, and the response data of output detections equipment 1 pair of user instruction.In the present embodiment, this human-computer interaction interface includes, but not limited to the operation interface of camera lens 11 and the operation interface of lens correction system 12.
This processing unit 15, calls and performs this lens correction system 12, to realize the automatic calibration to liquid crystal panel appearance detecting device camera lens.
As shown in Figure 4, be the functional block diagram of lens correction system in Fig. 3.This lens correction system 12 comprises standard and sets up module 121, correction analysis module 122, correction process module 123.
Standard sets up module 121, for after getting the normal liquid crystal panel standard film of gamma characteristic value, automatically carries out capture to obtain the standard gray scale data of standard film to standard film.In the present embodiment, liquid crystal panel standard film gets 2 pieces, and a slice is as calibration standard sheet, and another sheet is as secondary-confirmation standard film or standard film for subsequent use.In other embodiments of the invention, liquid crystal panel standard film gets 1, or gets more than 3 in case follow-uply to change whenever necessary.
Correction analysis module 122, for analyzing the need of startup lens correction, when needs start lens correction, automatically carrying out capture to obtain the instant luma data of standard film to standard film, calculating the deviation of instant luma data and standard gray scale data.By automatically capture will be carried out to standard film, and the image obtained is carried out the GTG that binaryzation calculates standard film.The described two-value to image turns to: set a threshold value T, with T, the data of image are divided into two parts: be greater than the pixel group of T and be less than the pixel group of T.The pixel value of the pixel group being greater than T is set as white (or black), the pixel value being less than the pixel group of T is set as black (or white).
Concrete, whether correction analysis module 122, presets some correction time, judging whether to need to start lens correction, when putting to the correction time of presetting, starting lens correction by analyzing to some correction time; Or when not putting to the correction time of presetting, do not start lens correction.Detecting correction instruction, when detecting correction instruction, judges whether to need to start to correct; The described instruction detected can be the correction instruction when putting to the correction time of presetting, can also be, the correction instruction that user assigns as required, can be such as produce at liquid crystal panel the correction instruction assigned when line switch line changes checkout equipment detection platform, also can be the correction instruction assigned when changing the lamp source of camera lens.
Correction process module 123, for correcting camera lens according to the deviation calculated.
In the present embodiment, when instant luma data and standard gray scale data exist deviation, the deviation according to calculating corrects camera lens.In other embodiments of the present invention, a threshold values is preset; After lens correction, again the luma data after correcting is obtained to standard film; And the deviation of the luma data passed through after the correction that will obtain and standard gray scale data, whether be greater than pre-set threshold value; When luma data after the correction obtained and the deviation of standard gray scale data are greater than pre-set threshold value, the instant luma data returning step S13 acquisition standard film proceeds lens correction; Or the deviation of luma data and standard gray scale data after the correction obtained is when being not more than pre-set threshold value, end lens correction.
The present invention is by setting up the standard gray scale data of the standard film of liquid crystal panel, the deviation of the instant data with GTG is found out based on the normal data set up, and then the correction realized liquid crystal panel appearance detecting device camera lens, effectively reduce the deviation of the camera lens caused because of the change in product line switch line, detection platform, camera lens lamp source, simultaneously by arranging automatic time correction point, realize the automatic calibration of camera lens, improve board utilization factor and produce line production capacity.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.