TWI603060B - Automatic object alignment method and automatic alignment inspection device thereof - Google Patents

Automatic object alignment method and automatic alignment inspection device thereof Download PDF

Info

Publication number
TWI603060B
TWI603060B TW105120628A TW105120628A TWI603060B TW I603060 B TWI603060 B TW I603060B TW 105120628 A TW105120628 A TW 105120628A TW 105120628 A TW105120628 A TW 105120628A TW I603060 B TWI603060 B TW I603060B
Authority
TW
Taiwan
Prior art keywords
axis
camera unit
features
size difference
along
Prior art date
Application number
TW105120628A
Other languages
Chinese (zh)
Other versions
TW201732250A (en
Inventor
鄒嘉駿
方志恆
古振男
Original Assignee
由田新技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 由田新技股份有限公司 filed Critical 由田新技股份有限公司
Priority to CN201610597071.3A priority Critical patent/CN107155058B/en
Priority to JP2016241861A priority patent/JP6368766B2/en
Publication of TW201732250A publication Critical patent/TW201732250A/en
Application granted granted Critical
Publication of TWI603060B publication Critical patent/TWI603060B/en

Links

Description

物件自動校正方法及其自動校正檢測裝置Object automatic correction method and automatic correction detecting device thereof

本發明是有關於一種物件自動校正的技術領域,特別是關於一種應用自動光學檢測的物件自動校正方法及其自動校正檢測裝置。The invention relates to the technical field of automatic correction of an object, in particular to an automatic correction method for an object using automatic optical detection and an automatic correction detecting device thereof.

在習知的顯示面板的光學檢測中,大多須先進行一校正動作,以使顯示面板正對於光學檢測的攝像單元,藉此以排除顯示面板未正對於攝像單元時所可能產生的摩爾紋(Moiré pattern),其原因在於若攝像單元時所擷取的影像產生摩爾紋時可能造成顯示面板的誤判定。In the optical detection of the conventional display panel, it is often necessary to perform a corrective action to make the display panel face the optical detection unit, thereby eliminating the moiré that may occur when the display panel is not facing the camera unit ( Moiré pattern), because the image captured by the camera unit may cause erroneous determination of the display panel when the moiré is generated.

在習知的上述校正動作,大多使用人為方式進行。舉例來說,先將顯示面板固定於工作台上,並透過顯示單元觀看攝像單元時所擷取的影像,再依據人為判斷方式手動的調整攝像單元的位置。此種人為校正的方式往往須花費許多的時間來進行。另外,由於為人為進行判斷校正,因此不同的校正人員,其所校正出的結果亦不相同,從而產生了校正標準的再現性問題。此外,對於培養出一個可適當進行校正的校正人員亦須花費許多的時間及人力。Most of the above-mentioned corrective actions are performed using an artificial method. For example, the display panel is first fixed on the workbench, and the image captured by the display unit is viewed through the display unit, and the position of the camera unit is manually adjusted according to the human judgment mode. This type of artificial correction often takes a lot of time. In addition, since the correction is performed artificially, the corrected results of the different correctors are also different, resulting in reproducibility of the correction standard. In addition, it takes a lot of time and manpower to develop a corrector who can properly correct it.

綜觀前所述,本發明之發明人經多年潛心研究,設計了一種物件自動校正方法及其自動校正檢測裝置,以針對現有技術之缺失加以改善,進而增進產業上之實施利用。As described above, the inventors of the present invention have designed an automatic correction method for an object and an automatic correction detecting device thereof through years of painstaking research to improve the lack of the prior art, thereby enhancing the implementation and utilization of the industry.

有鑑於上述習知技藝之問題,本發明之目的就是在於提供一種物件自動校正方法及其自動校正檢測裝置,以改善上述習知技術所產生的問題。In view of the above-mentioned problems of the prior art, it is an object of the present invention to provide an automatic object correction method and an automatic correction detecting device thereof to improve the problems caused by the above-described conventional techniques.

根據本發明之目的,提供一種物件自動校正方法,以應用於攝像單元對準於待測物件,其包含下列步驟:利用攝像單元擷取固定於工作台的待測物件以獲得複數個影像;使攝像單元對焦於待測物件,並依據影像中整體之對焦值與局部的對焦值使攝像單元於X軸向及Y軸向位移,使攝像單元的感光元件與待測物件之間呈平行對位關係;根據物件沿Y軸向排列的複數個特徵以形成假想線,並依據假想線偏離Y軸的傾斜度轉動攝像單元的Z軸向的角度,以使傾斜度趨近於0;根據物件沿Y軸向排列的複數個特徵以獲得的複數個特徵的第一尺寸差異趨勢,並依據第一尺寸差異趨勢轉動攝像單元的X軸向的角度,以使第一尺寸差異趨勢趨近於0;根據物件沿X軸向排列的複數個特徵以獲得的複數個特徵的第二尺寸差異趨勢,並依據第二尺寸差異趨勢轉動攝像單元的Y軸向的角度,以使第二尺寸差異趨勢趨近於0;以及調整攝像單元之焦距,使待測物件沿X軸及Y軸向排列的複數個特徵的數量與該攝像單元之感光元件符合一映射(Mapping)值。According to an object of the present invention, an object automatic correction method is provided for the image unit to be aligned with an object to be tested, and the method includes the following steps: capturing an object to be tested fixed to the worktable by using an image capturing unit to obtain a plurality of images; The camera unit focuses on the object to be tested, and causes the camera unit to be displaced in the X-axis and the Y-axis according to the overall focus value and the local focus value in the image, so that the photosensitive element of the camera unit and the object to be tested are parallel aligned. Relationship; according to a plurality of features arranged along the Y-axis of the object to form an imaginary line, and rotating the angle of the Z-axis of the imaging unit according to the inclination of the imaginary line deviating from the Y-axis, so that the inclination approaches 0; according to the object along the edge Y-axis-arranged plurality of features to obtain a first dimension difference trend of the plurality of features, and rotating the X-axis angle of the camera unit according to the first dimension difference trend, so that the first dimension difference trend approaches 0; a second dimension difference trend of the plurality of features obtained according to the plurality of features arranged along the X-axis of the object, and rotating the Y-axis of the camera unit according to the second dimension difference trend Degree, such that the second size difference trend approaches 0; and adjusts the focal length of the camera unit such that the number of features of the object to be tested arranged along the X-axis and the Y-axis coincides with a mapping of the photosensitive elements of the camera unit ( Mapping) value.

較佳地,依據影像中整體之對焦值與局部的對焦值使攝像單元於X軸向及Y軸向位移,更包含下列步驟:以使影像中整體之對焦值與局部的對焦值的差異趨近於0,進而影像中待測物件皆於攝像單元之合焦範圍內。Preferably, the camera unit is displaced in the X-axis and the Y-axis according to the overall focus value and the local focus value in the image, and further includes the following steps: the difference between the overall focus value and the local focus value in the image Near to 0, the object to be tested in the image is within the focus range of the camera unit.

較佳地,所述使攝像單元對焦於待測物件的步驟之後更可包含下列步驟:調整攝像單元之焦距並使攝像單元於Z軸位移,以局部取樣待測物件,而使沿X軸及Y軸向排列的複數個特徵的數量與攝像單元之感光元件符合映射(Mapping)值範圍,進而使攝像單元的感光元件與待測物件在XY象限上對準。Preferably, after the step of focusing the imaging unit on the object to be tested, the method further comprises the steps of: adjusting the focal length of the imaging unit and displaces the imaging unit on the Z axis to locally sample the object to be tested, and The number of the plurality of features arranged in the Y-axis is in accordance with the mapping value of the photosensitive element of the imaging unit, thereby aligning the photosensitive element of the imaging unit with the object to be tested in the XY quadrant.

根據本發明之目的,另提供一種物件自動校正方法,以應用於攝像單元對準於待測物件,其包含下列步驟:利用攝像單元擷取固定於工作台的待測物件以獲得複數個影像;根據待測物件沿Y軸向排列的複數個特徵以形成假想線,並依據假想線偏離Y軸的傾斜度轉動攝像單元的Z軸向的角度,以使傾斜度趨近於0;根據待測物件沿Y軸向排列的複數個特徵以獲得的複數個特徵的第一尺寸差異趨勢,並依據第一尺寸差異趨勢轉動攝像單元的X軸的角度,以使第一尺寸差異趨勢趨近於0;以及根據待測物件沿X軸向排列的複數個特徵以獲得的複數個特徵的第二尺寸差異趨勢,並依據第二尺寸差異趨勢轉動攝像單元的Y軸的角度,以使第二尺寸差異趨勢趨近於0。According to another aspect of the present invention, an object automatic correction method is provided for applying an image capturing unit to an object to be tested, and the method includes the following steps: capturing an object to be tested fixed to a workbench by using an image capturing unit to obtain a plurality of images; According to a plurality of features arranged along the Y-axis of the object to be tested to form an imaginary line, and rotating the angle of the Z-axis of the imaging unit according to the inclination of the imaginary line deviating from the Y-axis, so that the inclination approaches 0; according to the test a plurality of features arranged along the Y-axis to obtain a first dimension difference trend of the plurality of features, and rotating the X-axis angle of the camera unit according to the first dimension difference trend, so that the first dimension difference trend approaches 0 And a second dimension difference trend of the plurality of features obtained according to the plurality of features arranged along the X axis of the object to be tested, and rotating the angle of the Y axis of the camera unit according to the second size difference trend, so that the second size difference The trend approaches zero.

較佳地,更可包含下列步驟:判斷傾斜度大於0時,控制攝像單元沿Z軸向往逆時針方向轉動;或,判斷傾斜度小於0時,控制攝像單元沿Z軸向往順時針方向轉動。Preferably, the method further comprises the steps of: controlling the camera unit to rotate counterclockwise along the Z axis when the inclination is greater than 0; or controlling the camera unit to rotate clockwise along the Z axis when the inclination is less than 0.

較佳地,更可包含下列步驟:判斷第一尺寸差異趨勢為複數個特徵由畫面中下至上逐漸變大時,控制攝像單元沿X軸往順時針方向轉動;或,判斷第一尺寸差異趨勢為複數個特徵由畫面中下至上逐漸變小時,控制攝像單元沿X軸向往逆時針方向轉動。Preferably, the method further comprises the steps of: determining that the first size difference trend is such that when the plurality of features gradually become larger from the bottom to the top of the screen, controlling the camera unit to rotate clockwise along the X axis; or determining the first size difference trend The plurality of features are gradually turned from the bottom to the top of the screen, and the camera unit is controlled to rotate counterclockwise along the X axis.

較佳地,更可包含下列步驟:判斷第二尺寸差異趨勢為複數個特徵由畫面中左至右逐漸變大時,控制攝像單元沿Y軸往順時針方向轉動;或,判斷第二尺寸差異趨勢為複數個特徵由畫面中左至右逐漸變小時,控制攝像單元沿Y軸向往逆時針方向轉動。Preferably, the method further comprises the steps of: determining that the second size difference trend is when the plurality of features gradually become larger from left to right in the screen, and controlling the camera unit to rotate clockwise along the Y axis; or determining the second size difference The trend is that the plurality of features gradually decrease from left to right in the picture, and the camera unit is controlled to rotate counterclockwise along the Y axis.

根據本發明之目的,再提供一種自動校正檢測裝置,以應用於檢測一顯示面板。自動校正檢測裝置包含工作台、攝像單元、位移模組以及處理模組。其中,工作台配置以固定顯示面板。攝像單元相對於顯示面板設置,以擷取顯示面板而獲得複數個影像。位移模組連接攝像單元,以帶動攝像單元分別沿X、Y、Z軸向進行移動或轉動。處理模組連接攝像單元及位移模組;處理模組由複數個影像中辨識出顯示面板沿Y軸向排列的複數個特徵以形成假想線,並依據假想線偏離Y軸的傾斜度轉動攝像單元的Z軸向的角度,以使傾斜度趨近於0;處理模組辨識出顯示面板沿Y軸向排列的複數個特徵以獲得的複數個特徵的一第一尺寸差異趨勢,並依據第一尺寸差異趨勢轉動攝像單元的X軸的角度,以使第一尺寸差異趨勢趨近於0;處理模組辨識出顯示面板沿X軸向排列的複數個特徵以獲得的複數個特徵的第二尺寸差異趨勢,並依據第二尺寸差異趨勢轉動攝像單元的Y軸的角度,以使第二尺寸差異趨勢趨近於0。According to an object of the present invention, an automatic correction detecting device is further provided for detecting a display panel. The automatic calibration detecting device comprises a work table, a camera unit, a displacement module and a processing module. Among them, the workbench is configured to fix the display panel. The camera unit is disposed relative to the display panel to capture the display panel to obtain a plurality of images. The displacement module is connected to the camera unit to drive the camera unit to move or rotate along the X, Y, and Z axes, respectively. The processing module is connected to the camera unit and the displacement module; the processing module identifies a plurality of features of the display panel arranged along the Y-axis from the plurality of images to form an imaginary line, and rotates the camera unit according to the inclination of the imaginary line deviating from the Y-axis. The Z-axis angle is such that the inclination approaches 0; the processing module recognizes a plurality of features of the display panel along the Y-axis to obtain a first dimension difference trend of the plurality of features, and according to the first The dimension difference trend rotates the angle of the X-axis of the camera unit such that the first dimension difference trend approaches 0; the processing module recognizes the plurality of features of the display panel arranged along the X-axis to obtain the second dimension of the plurality of features The difference trend is, and the angle of the Y-axis of the camera unit is rotated according to the second size difference trend, so that the second size difference trend approaches zero.

較佳地,處理模組判斷傾斜度大於0時控制位移模組使攝像單元沿Z軸向往逆時針方向轉動,而判斷該傾斜度小於0時控制位移模組使攝像單元沿Z軸向往順時針方向轉動。Preferably, when the processing module determines that the inclination is greater than 0, the control displacement module rotates the imaging unit in the counterclockwise direction along the Z axis, and when the inclination is less than 0, the control displacement module controls the displacement unit to make the imaging unit clockwise along the Z axis. The direction is rotated.

較佳地,處理模組判斷第一尺寸差異趨勢為複數個特徵由畫面中下至上逐漸變大時控制位移模組使攝像單元沿X軸往順時針方向轉動,而判斷第一尺寸差異趨勢為複數個特徵由畫面中下至上逐漸變小時控制位移模組使攝像單元沿X軸向往逆時針方向轉動。Preferably, the processing module determines that the first size difference trend is that when the plurality of features gradually become larger from the bottom to the top of the screen, the control displacement module rotates the camera unit clockwise along the X axis, and determines that the first size difference trend is The plurality of features are gradually changed from the bottom to the top of the screen to control the displacement module to rotate the camera unit in the counterclockwise direction along the X axis.

較佳地,處理模組判斷第二尺寸差異趨勢為複數個特徵由畫面中左至右逐漸變大時控制位移模組使攝像單元沿Y軸往順時針方向轉動,而判斷第二尺寸差異趨勢為複數個特徵由畫面中左至右逐漸變小時控制位移模組使攝像單元沿Y軸向往逆時針方向轉動。Preferably, the processing module determines that the second size difference trend is that the plurality of features are gradually increased from left to right in the screen, and the displacement module is controlled to rotate the camera unit clockwise along the Y axis, and the second size difference trend is determined. The plurality of features are gradually changed from left to right in the screen to control the displacement module to rotate the camera unit in the counterclockwise direction along the Y axis.

較佳地,處理模組控制該攝像單元分別擷取顯示面板的複數個區域,以獲得複數個區域影像,且處理模組將複數個區域影像拼接為拼接影像。Preferably, the processing module controls the camera unit to capture a plurality of regions of the display panel to obtain a plurality of region images, and the processing module splices the plurality of region images into the stitched image.

較佳地,處理模組對拼接影像進行一亮度均勻化,以使拼接影像亮度一致。Preferably, the processing module performs uniform brightness on the spliced image to make the spliced image brightness uniform.

較佳地,處理模組對拼接影像進行一灰度融合,以消除複數個區域影像拼接時產生於拼接影像中的一拼接線。Preferably, the processing module performs a gradation fusion on the spliced image to eliminate a splicing line generated in the spliced image when the plurality of regional images are spliced.

較佳地,自動校正檢測裝置更可包含除塵模組,其設置於工作台以清除顯示面板上的異物。Preferably, the automatic calibration detecting device further includes a dust removing module disposed on the workbench to remove foreign matter on the display panel.

較佳地,除塵模組包含一吹氣單元,其對顯示面板吹氣以清除顯示面板上的異物。Preferably, the dust removing module includes a blowing unit that blows the display panel to remove foreign matter on the display panel.

較佳地,除塵模組包含一滾刷單元,其配置以往復地於顯示面板上移動以刷除或黏除顯示面板上的異物。Preferably, the dust removing module comprises a brushing unit configured to reciprocally move on the display panel to wipe or stick foreign matter on the display panel.

以下將以具體之實施例配合所附的圖式詳加說明本發明之技術特徵,以使所屬技術領域具有通常知識者可易於瞭解本發明之目的、技術特徵、及其優點。The technical features of the present invention will be described in detail with reference to the accompanying drawings.

為利貴審查員瞭解本創作之技術特徵、內容與優點及其所能達成之功效,茲將本發明配合附圖,並以實施例之表達形式詳細說明如下,而其中所使用之圖式,其主旨僅為示意及輔助說明書之用,未必為本發明實施後之真實比例與精準配置,故不應就所附之圖式的比例與配置關係解讀、侷限本發明於實際實施上的權利範圍,合先敘明。To understand the technical features, contents and advantages of the present invention and the effects thereof, the present invention will be described in detail with reference to the accompanying drawings, and the drawings used therein, The subject matter is only for the purpose of illustration and description. It is not intended to be a true proportion and precise configuration after the implementation of the present invention. Therefore, the scope and configuration relationship of the attached drawings should not be interpreted or limited. First described.

以下將參照相關圖式,說明依本發明的物件自動校正方法及其自動校正檢測裝置的實施例,為使便於理解,下述實施例中之相同元件係以相同之符號標示來說明。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the embodiments of the automatic correction method of the object and the automatic correction detecting apparatus according to the present invention will be described with reference to the related drawings. For the sake of easy understanding, the same components in the following embodiments are denoted by the same reference numerals.

請參閱第1圖,其為本發明的物件自動校正方法的第一實施例的步驟圖。本發明的物件自動校正方法用於使攝像單元對準於待測物件,特別是使攝像單元的感光元件的感光面平行並正對與待測物件的預定表面,以供進行相關的光學檢測之用。物件自動校正方法包含下列步驟:(S11)利用攝像單元擷取固定於工作台的待測物件以獲得複數個影像;(S12)使攝像單元對焦於待測物件,並依據影像中整體之對焦值與局部的對焦值使攝像單元於X軸向及Y軸向位移,使攝像單元的感光元件與待測物件之間的呈平行對位關係;(S13)調整攝像單元之焦距並使攝像單元於Z軸向位移,以局部取樣待測物件,而使沿X軸向及Y軸向排列的複數個特徵的數量與攝像單元之感光元件符合一映射(Mapping)值範圍,進而使攝像單元的感光元件與待測物件之間在XY象限上對準;(S14)根據待測物件沿Y軸向排列的複數個特徵以形成假想線,並依據假想線偏離Y軸的傾斜度轉動攝像單元的Z軸向的角度,以使傾斜度趨近於0;(S15)根據物件沿Y軸向排列的複數個特徵以獲得的複數個特徵的一第一尺寸差異趨勢,並依據第一尺寸差異趨勢轉動攝像單元的X軸向的角度,以使第一尺寸差異趨勢趨近於0;(S16)根據物件沿X軸向排列的複數個特徵以獲得的複數個特徵的一第二尺寸差異趨勢,並依據第二尺寸差異趨勢轉動攝像單元的Y軸向的角度,以使第二尺寸差異趨勢趨近於0;以及(S17)調整攝像單元之焦距,使待測物件沿X軸及Y軸向排列的複數個特徵的數量與攝像單元之感光元件符合映射(Mapping)值。Please refer to FIG. 1 , which is a step diagram of a first embodiment of an automatic object correction method according to the present invention. The object automatic correction method of the present invention is used for aligning the image capturing unit with the object to be tested, in particular, the photosensitive surface of the photosensitive element of the image capturing unit is parallel and facing the predetermined surface of the object to be tested for related optical detection. use. The object automatic correction method comprises the following steps: (S11) using the camera unit to capture the object to be tested fixed on the workbench to obtain a plurality of images; (S12) causing the camera unit to focus on the object to be tested, and according to the overall focus value in the image. And the local focus value causes the imaging unit to be displaced in the X-axis and the Y-axis, so that the photosensitive element of the imaging unit and the object to be tested are in a parallel alignment relationship; (S13) adjusting the focal length of the imaging unit and causing the imaging unit to The Z axial displacement is to locally sample the object to be tested, and the number of the plurality of features arranged along the X axis and the Y axis is matched with the photosensitive element of the imaging unit to a range of mapping values, thereby sensitizing the imaging unit. Aligning the component with the object to be tested on the XY quadrant; (S14) forming a imaginary line according to the plurality of features arranged along the Y axis of the object to be tested, and rotating the Z of the camera unit according to the inclination of the imaginary line deviating from the Y axis The axial angle is such that the inclination approaches 0; (S15) a first dimension difference trend of the plurality of features obtained according to the plurality of features arranged along the Y axis of the object, and according to the first ruler The inch difference trend rotates the X-axis angle of the camera unit such that the first size difference trend approaches 0; (S16) a second size of the plurality of features obtained according to the plurality of features arranged along the X-axis of the object Differentiating the trend, and rotating the Y-axis angle of the camera unit according to the second size difference trend, so that the second size difference trend approaches 0; and (S17) adjusting the focal length of the camera unit so that the object to be tested is along the X-axis and The number of the plurality of features arranged in the Y axis is in accordance with the mapping value of the photosensitive element of the image pickup unit.

本發明的物件自動校正方法藉由上述的步驟可快速的使攝像單元對準於物件,且檢測標準的再現性高而可避免人為校正時標準不一所產生的種種問題。The object automatic correction method of the present invention can quickly align the image pickup unit to the object by the above steps, and the detection standard has high reproducibility and can avoid various problems caused by the standard deviation during the artificial correction.

請配合參閱第2圖。值得特別說明的是,上述中步驟(S12)所述的依據影像中整體之對焦值與局部的對焦值使攝像單元於X軸向及Y軸向位移的粗調整,其係指依據影像中整體之對焦值與局部的對焦值,使攝像單元於X軸向及Y軸向進行順時針或逆時針的旋轉位移,從而讓影像中整體之對焦值與局部的對焦值盡量的接近。也就是說,在進行X軸向及Y軸向的粗調整後,攝像單元所擷取的影像中的待測物件皆位於攝像單元的合焦範圍(或稱對焦範圍)內,從而達到呈平行對位關係。Please refer to Figure 2. It should be particularly noted that the coarse adjustment of the imaging unit in the X-axis and the Y-axis according to the overall focus value and the local focus value in the above-mentioned step (S12) refers to the overall image based on the image. The focus value and the local focus value cause the camera unit to rotate clockwise or counterclockwise in the X-axis and the Y-axis, so that the overall focus value of the image is as close as possible to the local focus value. That is to say, after the coarse adjustment of the X-axis and the Y-axis, the objects to be tested in the image captured by the camera unit are located in the focus range (or the focus range) of the camera unit, thereby achieving parallelism. Alignment relationship.

此外,上述中步驟(S13)所述的調整攝像單元之焦距並使攝像單元於Z軸向位移,其中若攝像單元為具有定焦鏡頭時,Z軸向位移可包含攝像單元與待測物件之間的距離的縮短或變長的位移及攝像單元自身沿著Z軸向旋轉的位移,而若攝像單元為具有變焦鏡頭時,Z軸向位移則包含攝像單元自身沿著Z軸向旋轉的位移。值得一提的是,上述中步驟(13)在實際運用中可予以省略,故應不何僅以上述作為侷限。In addition, the focal length of the imaging unit is adjusted and the imaging unit is displaced in the Z-axis as described in the above step (S13). If the imaging unit has a fixed-focus lens, the Z-axis displacement may include the imaging unit and the object to be tested. The shortened or lengthened displacement of the distance and the displacement of the imaging unit itself along the Z-axis, and if the imaging unit has a zoom lens, the Z-axis displacement includes the displacement of the imaging unit itself along the Z-axis. . It is worth mentioning that the above step (13) can be omitted in practical use, so it should not be limited to the above.

上述中,映射(Mapping)值是指影像中顯示的待測物件所具有的複數個特徵,其數量與攝像單元的感光元件(例如影像擷取範圍或像素)呈比例配置,例如呈一預定比例配置。其中,若攝像單元與待測物之間的Z軸向關係差異過大時,可能使得影像中具有無法完整顯示出某一個特徵,此時即無法完整的算出區塊的映射值,因此藉由Z軸向旋轉的位移,而使影像中沒有無法完整顯示出的特徵,以完整算出區塊之映射值,而藉此亦可對於攝像單元與待測物之間的Z軸向關係進行粗調整。In the above, the mapping value refers to a plurality of features of the object to be tested displayed in the image, and the number thereof is proportional to the photosensitive element of the imaging unit (for example, an image capturing range or a pixel), for example, in a predetermined ratio. Configuration. If the difference in the Z-axis relationship between the camera unit and the object to be tested is too large, the image may not be able to completely display a certain feature. In this case, the mapping value of the block cannot be completely calculated, so The displacement of the axial rotation causes there is no feature in the image that cannot be completely displayed, so as to completely calculate the mapped value of the block, and thereby the coarse adjustment of the Z-axis relationship between the imaging unit and the object to be tested can be performed.

上述中仍未進行說明的部分,將結合下一個實施例一併進行說明。The parts which have not been described above will be described in conjunction with the next embodiment.

請參閱第3圖,其為本發明的物件自動校正方法的第二實施例的步驟圖。於本實施例中僅揭示前一實施例中的步驟(S14)、(S15)及(S16)。也就是說,本發明的物件自動校正方法,即便在沒有前一實施例的步驟(S12)及(S13)的條件下,亦能進行實施例。Please refer to FIG. 3, which is a step diagram of a second embodiment of the automatic object correction method of the present invention. Only steps (S14), (S15) and (S16) in the previous embodiment are disclosed in this embodiment. That is, the object automatic correction method of the present invention can be carried out even without the conditions of the steps (S12) and (S13) of the previous embodiment.

本實施例的物件自動校正方法包含下列步驟:(S31)利用攝像單元擷取固定於工作台的待測物件以獲得複數個影像;(S32)根據待測物件沿Y軸向排列的複數個特徵以形成假想線,並依據假想線偏離Y軸的傾斜度轉動攝像單元的Z軸向的角度,以使傾斜度趨近於0;(S33)根據待測物件沿Y軸向排列的複數個特徵以獲得的複數個特徵的第一尺寸差異趨勢,並依據第一尺寸差異趨勢轉動攝像單元的X軸的角度,以使第一尺寸差異趨勢趨近於0;以及(S34)根據待測物件沿X軸向排列的複數個特徵以獲得的複數個特徵的第二尺寸差異趨勢,並依據第二尺寸差異趨勢轉動攝像單元的Y軸的角度,以使第二尺寸差異趨勢趨近於0。The object automatic correction method of the embodiment includes the following steps: (S31) capturing an object to be tested fixed to the worktable by the image capturing unit to obtain a plurality of images; (S32) a plurality of features arranged along the Y axis according to the object to be tested. To form an imaginary line, and rotate the angle of the Z-axis of the imaging unit according to the inclination of the imaginary line from the Y-axis so that the inclination approaches 0; (S33) a plurality of features arranged along the Y-axis according to the object to be tested. Obtaining a first dimension difference trend of the plurality of features, and rotating the angle of the X axis of the camera unit according to the first size difference trend, so that the first size difference trend approaches 0; and (S34) according to the object to be tested The X-axis axially arranged plurality of features obtains a second size difference trend of the plurality of features, and rotates the angle of the Y-axis of the imaging unit according to the second size difference trend, so that the second size difference trend approaches zero.

本發明的物件自動校正方法藉由上述的步驟可快速的使攝像單元對準於待測物件,且檢測標準的再現性高而可避免人為校正時標準不一所產生的種種問題。The object automatic correction method of the present invention can quickly align the imaging unit to the object to be tested by the above steps, and the detection standard has high reproducibility, and various problems caused by the standard deviation during the artificial correction can be avoided.

請參閱第4圖,其為本發明的物件自動校正方法的Z軸向校正示意圖。如圖所示,就上述步驟(S14)及(S32)更進一步來說,由於攝像單元擷取固定於工作台的待測物件而獲得複數個影像,因此可利用適當元件,例如處理模組,由複數個影像中的一個影像或複數個影像辨識出沿Y軸向排列的複數個特徵,接著再利用辨識出的複數個特徵形成一假想線並作進一步的判斷假想線相對於Y軸的傾斜度。其中,當判斷傾斜度大於0時,控制攝像單元沿Z軸向往逆時針方向轉動以使傾斜度趨近於0,而當判斷傾斜度小於0時,控制攝像單元沿Z軸向往順時針方向轉動以使傾斜度趨近於0。Please refer to FIG. 4, which is a schematic diagram of Z-axis correction of the object automatic correction method of the present invention. As shown in the figure, in the above steps (S14) and (S32), since the image capturing unit captures a plurality of images obtained by the object to be tested fixed to the table, an appropriate component such as a processing module can be utilized. Identifying a plurality of features arranged along the Y-axis from one of the plurality of images or a plurality of images, and then forming an imaginary line using the identified plurality of features and further determining the inclination of the imaginary line relative to the Y-axis degree. Wherein, when it is judged that the inclination is greater than 0, the control camera unit is rotated counterclockwise along the Z axis to make the inclination approach 0, and when it is judged that the inclination is less than 0, the imaging unit is controlled to rotate clockwise along the Z axis. So that the slope approaches zero.

上述中傾斜度大於0,其例如為假想線為由右上往左下傾斜,而上述中傾斜度小於0,其例如為假想線為由左上往右下傾斜。藉由控制攝像單元沿Z軸向往預定方向轉動,從而可使待測物件的預定表面正對於攝像單元的感光元件。也就是說,假設待測物件的預定表面為四邊形,藉此可使四邊形的四邊平行於感光元件的四邊。上述中雖指為平行,然而在實際運用中,亦可設置允許範圍,例如待測物件的預定表面與攝像單元的感光元件在Z軸向上的偏移量為±10度的允許範圍。The above intermediate inclination is greater than 0, for example, the imaginary line is inclined from the upper right to the lower left, and the intermediate inclination is less than 0, for example, the imaginary line is inclined from the upper left to the lower right. By controlling the imaging unit to rotate in the predetermined direction along the Z-axis, the predetermined surface of the object to be tested can be directed to the photosensitive element of the imaging unit. That is, it is assumed that the predetermined surface of the object to be tested is quadrilateral, whereby the four sides of the quadrangle can be made parallel to the four sides of the photosensitive member. Although the above is referred to as parallel, in practice, an allowable range may also be set, for example, an allowable range in which the predetermined surface of the object to be tested and the photosensitive element of the image pickup unit are offset in the Z-axis by ±10 degrees.

請參閱第5圖,其為本發明的物件自動校正方法的X軸向校正示意圖。如圖所示,就上述步驟(S15)及(S33)更進一步來說,可利用如處理模組等的適當元件由複數個影像中的一個影像或複數個影像辨識出沿Y軸向排列的複數個特徵,並利用獲得的複數個特徵決定出各特徵的第一尺寸差異趨勢以作進一步的判斷。其中,當判斷第一尺寸差異趨勢為複數個特徵由畫面中下至上逐漸變大(如第5圖的(a)所示)時,控制攝像單元沿X軸往順時針方向轉動以使第一尺寸差異趨勢趨近於0,而當判斷第一尺寸差異趨勢為複數個特徵由畫面中下至上逐漸變小(如第5圖的(b)所示)時,控制攝像單元沿X軸向往逆時針方向轉動使第一尺寸差異趨勢趨近於0。Please refer to FIG. 5, which is a schematic diagram of X-axis correction of the automatic object correction method of the present invention. As shown in the figure, in the above steps (S15) and (S33), an appropriate component such as a processing module can be used to identify one image or a plurality of images in a plurality of images arranged along the Y-axis. A plurality of features are used, and the obtained plurality of features are used to determine the first size difference trend of each feature for further judgment. Wherein, when it is determined that the first size difference trend is that the plurality of features gradually become larger from the bottom to the top of the screen (as shown in (a) of FIG. 5), the camera unit is controlled to rotate clockwise along the X axis to make the first The size difference trend approaches 0, and when it is judged that the first size difference trend is such that the plurality of features gradually become smaller from the bottom to the top of the screen (as shown in (b) of FIG. 5), the control camera unit is reversed along the X axis. The clockwise rotation causes the first dimensional difference trend to approach zero.

請參閱第6圖,其為本發明的物件自動校正方法的Y軸向校正示意圖。如圖所示,就上述步驟(S16)及(S34)更進一步來說,可利用如處理模組等的適當元件由複數個影像中的一個影像或複數個影像辨識出沿X軸向排列的複數個特徵,並利用獲得的複數個特徵決定出各特徵的第二尺寸差異趨勢以作進一步的判斷。其中,當判斷第二尺寸差異趨勢為複數個特徵由畫面中左至右逐漸變大(如第6圖的(a)所示)時,控制攝像單元沿Y軸往順時針方向轉動,以使第二尺寸差異趨勢趨近於0;或,判斷第二尺寸差異趨勢為複數個特徵由畫面中左至右逐漸變小(如第6圖的(b)所示)時,控制攝像單元沿Y軸向往逆時針方向轉動,以使第二尺寸差異趨勢趨近於0。Please refer to FIG. 6 , which is a schematic diagram of Y-axis correction of the object automatic correction method of the present invention. As shown in the figure, in the above steps (S16) and (S34), an appropriate component such as a processing module can be used to identify one image or a plurality of images in a plurality of images arranged along the X-axis. A plurality of features are used, and the obtained plurality of features are used to determine a second size difference trend of each feature for further judgment. Wherein, when it is judged that the second size difference trend is that the plurality of features gradually become larger from left to right in the screen (as shown in (a) of FIG. 6), the camera unit is controlled to rotate clockwise along the Y axis, so that The second size difference trend approaches 0; or, the second size difference trend is judged to be a plurality of features gradually decreasing from left to right in the picture (as shown in (b) of FIG. 6), controlling the camera unit along Y The axial direction is rotated counterclockwise so that the second dimensional difference trend approaches zero.

就上述步驟(S15)及(S33)與步驟(S16)及(S34)來說,其同樣地可設置允許範圍,例如待測物件的預定表面與攝像單元的感光元件在X軸向及Y軸向上的偏移量為±6度的允許範圍。With respect to the above steps (S15) and (S33) and steps (S16) and (S34), the allowable range can be set similarly, for example, the predetermined surface of the object to be tested and the photosensitive element of the image pickup unit are in the X-axis and the Y-axis. The upward offset is an allowable range of ±6 degrees.

本發明的物件自動校正方法藉上影像擷取與辨識,從而控制攝像單元分別對X、Y、Z軸向作預定方向的旋轉,其可使攝像單元快速且確實地對準於待測物件。The object automatic correction method of the present invention controls the imaging unit to rotate the X, Y, and Z axes in a predetermined direction by the image capturing and recognizing, which can make the imaging unit quickly and surely align with the object to be tested.

值得特別一提的是,上述對X、Y、Z軸向的偏移判斷,可利用標準差法(standard deviation)結合線性廻歸(linear regression)加以實施。It is worth mentioning that the above-mentioned deviation judgment of the X, Y, and Z axes can be carried out by using standard deviation combined with linear regression.

以下將本發明的物件自動校正方法應用於一自動校正檢測裝置作進一步說明。The automatic correction method of the object of the present invention is further applied to an automatic correction detecting device for further explanation.

請參閱第7、8圖,其為本發明的自動校正檢測裝置的方塊示意圖及結構示意圖。如圖所示,自動校正檢測裝置100應用於檢測待測物件,即顯示面板9,以使顯示面板9的顯示面正對於光學檢測單元,如攝像單元20,或使光學檢測單元,如攝像單元20的感光元件的感光面,正對於顯示面板9的顯示面。也就是說,本發明的物件自動校正方法中的物件,其在不同的運用情況之下,可指待測物件(如顯示面板9),或光學檢測單元(如攝像單元20),故不可僅以本實施例中的應用作為侷限。Please refer to FIGS. 7 and 8 , which are block diagrams and structural diagrams of the automatic calibration detecting device of the present invention. As shown, the automatic correction detecting device 100 is applied to detect an object to be tested, that is, the display panel 9, such that the display surface of the display panel 9 faces the optical detecting unit, such as the image capturing unit 20, or an optical detecting unit such as an image capturing unit. The photosensitive surface of the photosensitive element of 20 is facing the display surface of the display panel 9. That is to say, the object in the automatic object correction method of the present invention may refer to the object to be tested (such as the display panel 9) or the optical detecting unit (such as the camera unit 20) under different operational conditions, so The application in this embodiment is limited.

自動校正檢測裝置100包含了工作台10、攝像單元20、位移模組30以及處理模組40。其中,工作台10配置以固定顯示面板9,其中工作台10可利用複數個壓制塊,並以顯示面板9的其中相鄰兩邊作為基準邊,而穩定地壓制固定顯示面板9於工作台10上。攝像單元20可為線性(line-scan)攝影機或陣列(array)攝影機,其配置於工作台10的上方,以相對於顯示面板9,從而可對著顯示面板9的顯示面擷取出複數個影像。位移模組30可包含複數個如馬達的驅動單元及複數個如螺桿的驅動桿,並使攝像單元20固定於其上,從而帶動攝像單元20分別沿X、Y、Z軸向進行移動或轉動。其中,攝像單元20設置於位移模組30,且藉由位移模組30使攝像單元20沿X、Y、Z軸向進行移動或轉動的進一步實施方式為所屬技術領域的通常知識者所熟知,於此便不再加以贅述。The automatic calibration detecting device 100 includes a table 10, an imaging unit 20, a displacement module 30, and a processing module 40. The workbench 10 is configured to fix the display panel 9, wherein the workbench 10 can utilize a plurality of press blocks and stably press the fixed display panel 9 on the workbench 10 with the adjacent two sides of the display panel 9 as reference sides. . The camera unit 20 can be a line-scan camera or an array camera, which is disposed above the table 10 so as to be opposite to the display panel 9 so that a plurality of images can be taken out against the display surface of the display panel 9. . The displacement module 30 can include a plurality of driving units such as motors and a plurality of driving rods such as screws, and the imaging unit 20 is fixed thereon, thereby driving the imaging unit 20 to move or rotate along the X, Y, and Z axes, respectively. . Further, an embodiment in which the imaging unit 20 is disposed in the displacement module 30 and the imaging unit 20 is moved or rotated in the X, Y, and Z directions by the displacement module 30 is well known to those skilled in the art. This will not be repeated here.

處理模組40可為中央處理器、微處理器等元件,亦可為一台完整電腦中的處理器,或可為中央處理器、微處理器等元件整合軟體、韌體而加以實施。處理模組40電性連接攝像單元20以獲得其所擷取的複數個影像,且電性連接位移模組30以控制其運作。其中,處理模組40可分別不限定順序地對X、Y、Z軸向進行校正,較佳地可以Z軸向校正作為優先,而不限定順序地對X、Y軸向進行校正。The processing module 40 can be a component such as a central processing unit, a microprocessor, or the like, or can be a processor in a complete computer, or can be implemented by integrating software and firmware into components such as a central processing unit and a microprocessor. The processing module 40 is electrically connected to the camera unit 20 to obtain a plurality of images captured by the processing module 40, and is electrically connected to the displacement module 30 to control its operation. The processing module 40 can correct the X, Y, and Z axes in a sequence without limiting, and preferably the Z axis correction is preferred, and the X and Y axes are not sequentially limited.

在實際運用中,先點亮顯示面板9以使其運作,較佳地可使顯示面板9僅顯示單色畫面。接著,再利用攝像單元20連續地對著顯示面板9擷取影像,從而處理模組40可經由攝像單元20獲得複數個影像,其中此影像,例如可為實際拍攝的影像,或供即時觀看的暫時影像。接著再依據獲得的複數個影像進行物件對準的粗調整及細調整,粗調整如上述步驟(S12)、(S13),而細調整如上述步驟(S14)~(S16)。In actual use, the display panel 9 is first illuminated to operate, and preferably the display panel 9 can display only a monochrome image. Then, the image capturing unit 20 continuously captures the image from the display panel 9 , so that the processing module 40 can obtain a plurality of images through the image capturing unit 20 , wherein the image can be, for example, an actual captured image or for instant viewing. Temporary image. Then, coarse adjustment and fine adjustment of the object alignment are performed according to the obtained plurality of images, and the steps (S12) and (S13) are coarsely adjusted, and the above steps (S14) to (S16) are finely adjusted.

就粗調整方面而言,處理模組40可控制攝像單元20對顯示面板9進行對焦,而由影像中獲得顯示面板9的顯示面的整體之對焦值與局部的對焦值,據以使攝像單元20沿著X軸向、Y軸向進行位移,從而使顯示面板9的整個顯示面均落於合焦範圍之內,即可完成X軸向及Y軸向的粗調整。接著,處理模組40可控制位移模組30及攝像單元20,以調整攝像單元20與顯示面板9之間的焦距距離,且可同時或分段進行地,使攝像單元20於Z軸向位移,以使影像中的顯示面板9的顯示面上沿著X軸向及Y軸向排列複數個特徵的數量,與攝像單元20的影像擷取範圍或像素等呈比例範圍配置,同時地,為了使影像中可完整顯示出各特徵,處理模組40可控制使沿著Z軸向旋轉的位移。因此,亦可對於攝像單元20與顯示面板9之間的Z軸向關係進行粗調整。In terms of the coarse adjustment, the processing module 40 can control the imaging unit 20 to focus on the display panel 9, and obtain the overall focus value and the local focus value of the display surface of the display panel 9 from the image, so as to make the imaging unit 20 is displaced along the X-axis and the Y-axis, so that the entire display surface of the display panel 9 falls within the focus range, and the coarse adjustment of the X-axis and the Y-axis is completed. Then, the processing module 40 can control the displacement module 30 and the imaging unit 20 to adjust the focal length distance between the imaging unit 20 and the display panel 9, and can simultaneously or segmentally perform the displacement of the imaging unit 20 in the Z-axis. The number of the plurality of features arranged along the X-axis and the Y-axis on the display surface of the display panel 9 in the image is arranged in a proportional range with the image capturing range or the pixel of the image capturing unit 20, and at the same time, The features can be fully displayed in the image, and the processing module 40 can control the displacement of the rotation along the Z-axis. Therefore, the Z-axis relationship between the image pickup unit 20 and the display panel 9 can also be roughly adjusted.

就細調整方而言,處理模組40可由複數個影像中辨識出顯示面板9沿Y軸向排列的複數個特徵,例如像素,以形成假想線,並依據假想線偏離Y軸的傾斜度轉動攝像單元的Z軸向的角度,以使傾斜度趨近於0。在Z軸向校正後,處理模組40可再由複數個影像中辨識出顯示面板9沿Y軸向排列的複數個特徵以獲得的複數個特徵的一第一尺寸差異趨勢,並依據第一尺寸差異趨勢控制位移模組30轉動攝像單元的X軸的角度,以使第一尺寸差異趨勢趨近於0,以進行X軸向的校正。最後,處理模組40再由複數個影像中辨識出顯示面板9沿X軸向排列的複數個特徵以獲得的複數個特徵的第二尺寸差異趨勢,並依據第二尺寸差異趨勢控制位移模組30轉動攝像單元的Y軸的角度,以使第二尺寸差異趨勢趨近於0,以進行Y軸向的校正。For fine adjustment, the processing module 40 can recognize a plurality of features, such as pixels, of the display panel 9 arranged along the Y-axis from a plurality of images to form an imaginary line, and rotate according to the imaginary line deviating from the Y-axis. The angle of the Z-axis of the camera unit is such that the inclination approaches zero. After the Z-axis correction, the processing module 40 can further identify a first size difference trend of the plurality of features obtained by the plurality of features of the display panel 9 along the Y-axis, and according to the first The dimensional difference trend control displacement module 30 rotates the angle of the X-axis of the imaging unit such that the first dimensional difference trend approaches zero to perform the X-axis correction. Finally, the processing module 40 further identifies a second size difference trend of the plurality of features obtained by the plurality of features arranged by the display panel 9 along the X-axis, and controls the displacement module according to the second size difference trend. 30 rotates the angle of the Y-axis of the imaging unit such that the second dimensional difference trend approaches 0 to perform the Y-axis correction.

上述中對X、Y、Z軸向進行校正已於本發明的物件自動校正方法中進行說明,於此便不再加以贅述。The correction of the X, Y, and Z axes in the above has been described in the automatic correction method of the object of the present invention, and will not be further described herein.

值得特別說明的是,自動校正檢測裝置100可包含一顯示單元50,以顯示攝像單元20所擷取的影像,且其可以LCD影像或CCD影像的方式進行顯示。另外,在進行X、Y、Z軸向校正之前,處理模組40可控制攝像單元20獨自地進行對焦,或搭配位移模組30進行對焦,以使欲合焦區域具有較高的對焦值,從而進行預定Mapping值的局部取樣,以進行X、Y、Z軸向校正。It should be noted that the automatic calibration detecting device 100 can include a display unit 50 for displaying the image captured by the imaging unit 20, and can display the image in the form of an LCD image or a CCD image. In addition, before the X, Y, and Z axis corrections are performed, the processing module 40 can control the image capturing unit 20 to focus on its own, or use the displacement module 30 to perform focusing, so that the focus area has a higher focusing value. Thereby, local sampling of a predetermined mapping value is performed to perform X, Y, Z axial correction.

此外,在進行X、Y、Z軸向校正之前,可先進行顯示面板9的顯示面上異物清除的程序。進一步來說,自動校正檢測裝置100可包含一除塵模組60,其可為如噴嘴等吹氣單元,或為刷子或具黏性的滾刷單元。其中,當除塵模組60為吹氣單元時,其可設置於工作台10上且位於顯示面板9的周圍,以對顯示面板9吹氣,從而清除顯示面板9上的異物。而當除塵模組60為滾刷單元時,其可搭配齒條或螺桿及馬達等元件,以往復地於顯示面板9上移動以刷除或黏除顯示面板9上的異物。藉由顯示面板9的異物清除,其可利於後續的X、Y、Z軸向的校正作業及更後續的顯示面板9的檢測作業。Further, the program for removing foreign matter on the display surface of the display panel 9 may be performed before the X, Y, and Z axis corrections are performed. Further, the automatic calibration detecting device 100 may include a dust removing module 60, which may be a blowing unit such as a nozzle, or a brush or a viscous roller brush unit. When the dust removing module 60 is a blowing unit, it can be disposed on the table 10 and located around the display panel 9 to blow the display panel 9 to remove foreign matter on the display panel 9. When the dust removing module 60 is a roller brushing unit, it can be matched with a rack or a screw and a motor to reciprocally move on the display panel 9 to wipe or stick the foreign matter on the display panel 9. By the foreign matter removal of the display panel 9, it can facilitate the subsequent X, Y, Z axis correction work and the subsequent detection operation of the display panel 9.

在X、Y、Z軸向校正完成後,自動校正檢測裝置100可進一步的進行影像拼接等程序,以利於後續的顯示面板9的檢測作業。After the X, Y, and Z axis corrections are completed, the automatic correction detecting apparatus 100 can further perform a program such as image stitching to facilitate the subsequent detection operation of the display panel 9.

進一步來說,處理模組40可控制位移模組30使攝像單元20移動,以控制攝像單元20分別擷取顯示面板9的複數個區域,以獲得複數個區域影像。舉例來說,可將顯示面板9區分為左半邊與右半邊,以分別擷取左半邊的區域影像及右半邊的區域影像;或者是,在尺寸較大的顯示面板9時將顯示面板9區分為2x2的區域,以分別擷取各區域的區域影像。接著,處理模組40將所獲得的複數個區域影像拼接為一拼接影像,以作為後續顯示面板9的檢測作業之用。Further, the processing module 40 can control the displacement module 30 to move the imaging unit 20 to control the imaging unit 20 to capture a plurality of regions of the display panel 9, respectively, to obtain a plurality of regional images. For example, the display panel 9 can be divided into a left half and a right half to respectively capture the area image of the left half and the area image of the right half; or, the display panel 9 is distinguished when the display panel 9 is larger in size. It is a 2x2 area to capture the area image of each area separately. Then, the processing module 40 splices the obtained plurality of area images into a spliced image for use as a detection operation of the subsequent display panel 9.

在上述中,處理模組40可進一步地利用影像灰度校正演算法以進行亮度均勻化,以使拼接影像亮度一致;另外,利用影像拼接演算法以進行一灰度融合,消除複數個區域影像拼接時產生於拼接影像中的一拼接線。In the above, the processing module 40 can further utilize the image gamma correction algorithm to perform brightness uniformity to make the spliced image brightness uniform. In addition, the image splicing algorithm is used to perform a gradation fusion to eliminate a plurality of regional images. A stitching line generated in the stitched image when stitching.

以上所述僅為舉例性,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.

100:自動校正檢測裝置 10:工作台 20:攝像單元 30:位移模組 40:處理模組 50:顯示單元 60:除塵模組 9:顯示面板 S11~S17:步驟 S31~S34:步驟100: automatic correction detecting device 10: workbench 20: camera unit 30: displacement module 40: processing module 50: display unit 60: dust removal module 9: display panel S11 to S17: steps S31 to S34: steps

第1圖 係為本發明的物件自動校正方法的第一實施例的步驟圖。 第2圖 係為本發明的物件自動校正方法的X軸向及Y軸向粗調整的校正示意圖。 第3圖 係為本發明的物件自動校正方法的第二實施例的步驟圖。 第4圖 係為本發明的物件自動校正方法的Z軸向校正示意圖。 第5圖 係為本發明的物件自動校正方法的X軸向校正示意圖。 第6圖 係為本發明的物件自動校正方法的Y軸向校正示意圖。 第7圖 係為本發明的自動校正檢測裝置的方塊示意圖。 第8圖 係為本發明的自動校正檢測裝置的結構示意圖。Fig. 1 is a flow chart showing the first embodiment of the automatic object correction method of the present invention. Fig. 2 is a schematic view showing the correction of the X-axis and Y-axis coarse adjustment of the object automatic correction method of the present invention. Fig. 3 is a flow chart showing the second embodiment of the automatic object correction method of the present invention. Fig. 4 is a schematic view showing the Z-axis correction of the object automatic correction method of the present invention. Fig. 5 is a schematic view showing the X-axis correction of the automatic correction method of the object of the present invention. Figure 6 is a schematic diagram of the Y-axis correction of the automatic correction method of the object of the present invention. Figure 7 is a block diagram showing the automatic correction detecting device of the present invention. Figure 8 is a schematic view showing the structure of the automatic correction detecting device of the present invention.

S11~S17:步驟S11~S17: Steps

Claims (20)

一種物件自動校正方法,係應用於使一攝像單元對準於一待測物件,其包含下列步驟: 利用該攝像單元擷取固定於一工作台的該待測物件以獲得複數個影像; 使該攝像單元對焦於該待測物件,並依據該影像中整體之對焦值與局部的對焦值使該攝像單元於X軸及Y軸位移,使該攝像單元的感光元件與該待測物件之間呈平行對位關係; 根據該待測物件沿Y軸向排列的該複數個特徵以形成一假想線,並依據該假想線偏離Y軸的傾斜度轉動該攝像單元的Z軸向的角度,以使該傾斜度趨近於0; 根據該物件沿Y軸向排列的該複數個特徵以獲得的該複數個特徵的一第一尺寸差異趨勢,並依據該第一尺寸差異趨勢轉動該攝像單元的X軸的角度,以使該第一尺寸差異趨勢趨近於0; 根據該物件沿X軸向排列的該複數個特徵以獲得的該複數個特徵的一第二尺寸差異趨勢,並依據該第二尺寸差異趨勢轉動該攝像單元的Y軸的角度,以使該第二尺寸差異趨勢趨近於0;以及 調整該攝像單元之焦距,使該待測物件沿X軸及Y軸向排列的複數個特徵的數量與該攝像單元之感光元件符合一映射(Mapping)值。An object automatic correction method is applied to align an imaging unit to an object to be tested, and the method includes the following steps:: capturing, by the camera unit, the object to be tested fixed to a work station to obtain a plurality of images; The camera unit focuses on the object to be tested, and according to the overall focus value and the local focus value of the image, the camera unit is displaced on the X-axis and the Y-axis, so that the photosensitive element of the imaging unit and the object to be tested are Parallel alignment relationship; forming the imaginary line according to the plurality of features arranged along the Y-axis of the object to be tested, and rotating the angle of the Z-axis of the imaging unit according to the inclination of the imaginary line from the Y-axis, so that The inclination approaches 0; a first size difference trend of the plurality of features obtained according to the plurality of features arranged along the Y axis of the object, and the X of the camera unit is rotated according to the first size difference trend An angle of the axis such that the first dimension difference trend approaches 0; a second dimension difference trend of the plurality of features obtained according to the plurality of features arranged along the X axis of the object, and The second size difference trend rotates the angle of the Y axis of the camera unit such that the second size difference trend approaches 0; and adjusts the focal length of the camera unit to arrange the object to be tested along the X axis and the Y axis The number of the plurality of features conforms to a mapping value of the photosensitive element of the camera unit. 如申請專利範圍第1項所述的物件自動校正方法,其中依據該影像中整體之對焦值與局部的對焦值使該攝像單元於X軸及Y軸位移,更包含下列步驟: 以使該影像中整體之對焦值與局部的對焦值的差異趨近於0,進而該影像中該待測物件皆於該攝像單元之合焦範圍內。The method for automatically correcting an object according to claim 1, wherein the camera unit is displaced on the X-axis and the Y-axis according to the overall focus value and the local focus value in the image, and the following steps are further included: The difference between the overall focus value and the local focus value approaches 0, and the object to be tested in the image is within the focus range of the camera unit. 如申請專利範圍第1項所述的物件自動校正方法,其更包含下列步驟: 判斷該傾斜度大於0時,控制該攝像單元沿Z軸向往逆時針方向轉動; 或,判斷該傾斜度小於0時,控制該攝像單元沿Z軸向往順時針方向轉動。The method for automatically correcting an object according to claim 1, further comprising the steps of: determining that the tilting degree is greater than 0, controlling the camera unit to rotate counterclockwise along the Z axis; or determining that the tilt is less than 0 At the same time, the camera unit is controlled to rotate clockwise in the Z-axis direction. 如申請專利範圍第1項所述的物件自動校正方法,其更包含下列步驟: 判斷該第一尺寸差異趨勢為該複數個特徵由畫面中下至上逐漸變大時,控制該攝像單元沿X軸往順時針方向轉動; 或,判斷該第一尺寸差異趨勢為該複數個特徵由畫面中下至上逐漸變小時,控制該攝像單元沿X軸向往逆時針方向轉動。The method for automatically correcting an object according to claim 1, further comprising the steps of: determining that the first size difference trend is that the plurality of features gradually become larger from the bottom to the top of the screen, and controlling the camera unit along the X axis Rotating in a clockwise direction; or, determining that the first size difference trend is that the plurality of features gradually decrease from the bottom to the top of the screen, and controlling the camera unit to rotate counterclockwise along the X axis. 如申請專利範圍第1項所述的物件自動校正方法,其更包含下列步驟: 判斷該第二尺寸差異趨勢為該複數個特徵由畫面中左至右逐漸變大時,控制該攝像單元沿Y軸往順時針方向轉動; 或,判斷該第二尺寸差異趨勢為該複數個特徵由畫面中左至右逐漸變小時,控制該攝像單元沿Y軸向往逆時針方向轉動。The method for automatically correcting an object according to claim 1, further comprising the following steps: determining that the second size difference trend is that the plurality of features gradually become larger from left to right in the screen, and the camera unit is controlled along Y The axis rotates in a clockwise direction; or, it is determined that the second size difference trend is that the plurality of features gradually decrease from left to right in the screen, and the camera unit is controlled to rotate counterclockwise along the Y axis. 如申請專利範圍第1項所述的物件自動校正方法,其中所述使該攝像單元對焦於該待測物件的步驟之後更包含下列步驟: 調整該攝像單元之焦距並使該攝像單元於Z軸位移,以局部取樣該待測物件,而使沿X軸及Y軸向排列的複數個特徵的數量與該攝像單元之感光元件符合一映射(Mapping)值範圍,進而使該攝像單元與該待測物件在XY象限上對準。The method for automatically correcting an object according to claim 1, wherein the step of causing the camera unit to focus on the object to be tested further comprises the steps of: adjusting a focal length of the camera unit and causing the camera unit to be in a Z-axis; Displacement, to locally sample the object to be tested, and to make the number of the plurality of features arranged along the X-axis and the Y-axis conform to a mapping value range of the photosensitive element of the imaging unit, thereby causing the imaging unit to The object is aligned on the XY quadrant. 一種物件自動校正方法,係應用於使一攝像單元對準於一待測物件,其包含下列步驟: 利用該攝像單元擷取固定於一工作台的該待測物件以獲得複數個影像; 根據該待測物件沿Y軸向排列的複數個特徵以形成一假想線,並依據該假想線偏離Y軸的傾斜度轉動該攝像單元的Z軸向的角度,以使該傾斜度趨近於0; 根據該待測物件沿Y軸向排列的該複數個特徵以獲得的該複數個特徵的一第一尺寸差異趨勢,並依據該第一尺寸差異趨勢轉動該攝像單元的X軸的角度,以使該第一尺寸差異趨勢趨近於0;以及 根據該待測物件沿X軸向排列的該複數個特徵以獲得的該複數個特徵的一第二尺寸差異趨勢,並依據該第二尺寸差異趨勢轉動該攝像單元的Y軸的角度,以使該第二尺寸差異趨勢趨近於0。An object automatic correction method is applied to align an imaging unit to an object to be tested, and the method includes the following steps:: capturing, by the camera unit, the object to be tested fixed to a work station to obtain a plurality of images; The plurality of features of the object to be tested are arranged along the Y axis to form an imaginary line, and the angle of the Z axis of the camera unit is rotated according to the inclination of the imaginary line from the Y axis, so that the inclination approaches 0; And a first dimension difference trend of the plurality of features obtained by the plurality of features arranged along the Y axis of the object to be tested, and rotating an angle of the X axis of the camera unit according to the first size difference trend, so that The first size difference trend approaches 0; and a second size difference trend of the plurality of features obtained according to the plurality of features arranged along the X axis of the object to be tested, and according to the second size difference trend The angle of the Y-axis of the camera unit is rotated such that the second size difference trend approaches zero. 如申請專利範圍第7項所述的物件自動校正方法,其更包含下列步驟: 判斷該傾斜度大於0時,控制該攝像單元沿Z軸向往逆時針方向轉動; 或,判斷該傾斜度小於0時,控制該攝像單元沿Z軸向往順時針方向轉動。The method for automatically correcting an object according to claim 7, further comprising the steps of: determining that the tilting degree is greater than 0, controlling the camera unit to rotate counterclockwise along the Z axis; or determining that the tilt is less than 0 At the same time, the camera unit is controlled to rotate clockwise in the Z-axis direction. 如申請專利範圍第7項所述的物件自動校正方法,其更包含下列步驟: 判斷該第一尺寸差異趨勢為該複數個特徵由畫面中下至上逐漸變大時,控制該攝像單元沿X軸往順時針方向轉動; 或,判斷該第一尺寸差異趨勢為該複數個特徵由畫面中下至上逐漸變小時,控制該攝像單元沿X軸向往逆時針方向轉動。The method for automatically correcting an object according to claim 7, further comprising the steps of: determining that the first size difference trend is that the plurality of features gradually become larger from the bottom to the top of the screen, and controlling the camera unit along the X axis Rotating in a clockwise direction; or, determining that the first size difference trend is that the plurality of features gradually decrease from the bottom to the top of the screen, and controlling the camera unit to rotate counterclockwise along the X axis. 如申請專利範圍第7項所述的物件自動校正方法,其更包含下列步驟: 判斷該第二尺寸差異趨勢為該複數個特徵由畫面中左至右逐漸變大時,控制該攝像單元沿Y軸往順時針方向轉動; 或,判斷該第二尺寸差異趨勢為該複數個特徵由畫面中左至右逐漸變小時,控制該攝像單元沿Y軸向往逆時針方向轉動。The method for automatically correcting an object according to claim 7 further includes the following steps: determining that the second size difference trend is that the plurality of features gradually become larger from left to right in the screen, and the camera unit is controlled along Y The axis rotates in a clockwise direction; or, it is determined that the second size difference trend is that the plurality of features gradually decrease from left to right in the screen, and the camera unit is controlled to rotate counterclockwise along the Y axis. 一種自動校正檢測裝置,係應用於檢測一顯示面板,其包含: 一工作台,係配置以固定該顯示面板; 一攝像單元,係相對於該顯示面板設置,以擷取該顯示面板以獲得複數個影像; 一位移模組,係連接該攝像單元,以帶動該攝像單元分別沿X、Y、Z軸向進行移動或轉動;以及 一處理模組,係連接該攝像單元及該位移模組,該處理模組由該複數個影像中辨識出該顯示面板沿Y軸向排列的複數個特徵以形成一假想線,並依據該假想線偏離Y軸的傾斜度轉動該攝像單元的Z軸向的角度,以使該傾斜度趨近於0,並辨識出該顯示面板沿Y軸向排列的該複數個特徵以獲得的該複數個特徵的一第一尺寸差異趨勢,並依據該第一尺寸差異趨勢轉動該攝像單元的X軸的角度,以使該第一尺寸差異趨勢趨近於0,且辨識出該顯示面板沿X軸向排列的該複數個特徵以獲得的該複數個特徵的一第二尺寸差異趨勢,並依據該第二尺寸差異趨勢轉動該攝像單元的Y軸的角度,以使該第二尺寸差異趨勢趨近於0。An automatic correction detecting device is used for detecting a display panel, comprising: a working platform configured to fix the display panel; an imaging unit disposed relative to the display panel to capture the display panel to obtain a plurality of a displacement module is connected to the camera unit to drive the camera unit to move or rotate along the X, Y, and Z axes, respectively; and a processing module that connects the camera unit and the displacement module. The processing module identifies a plurality of features arranged along the Y-axis of the display panel from the plurality of images to form an imaginary line, and rotates the Z-axis of the imaging unit according to the inclination of the imaginary line from the Y-axis. An angle such that the inclination approaches 0, and the plurality of features of the display panel aligned along the Y-axis are identified to obtain a first size difference trend of the plurality of features, and according to the first size difference The trend rotates an angle of the X-axis of the camera unit such that the first size difference trend approaches 0, and the plurality of features arranged along the X-axis of the display panel are recognized to obtain the complex number A second Y-axis angular difference in size of the trend characteristics, and rotation of the second image pickup unit according to the trend of size difference, that the second size difference close to 0 trend. 如申請專利範圍第11項所述的自動校正檢測裝置,其中該處理模組判斷該傾斜度大於0時控制該位移模組使該攝像單元沿Z軸向往逆時針方向轉動,而判斷該傾斜度小於0時控制該位移模組使該攝像單元沿Z軸向往順時針方向轉動。The automatic calibration detecting device according to claim 11, wherein the processing module determines that the tilting module is greater than 0, and controls the displacement module to rotate the camera unit in a counterclockwise direction along the Z axis, and determines the tilt. When less than 0, the displacement module is controlled to rotate the camera unit clockwise along the Z axis. 如申請專利範圍第11項所述的自動校正檢測裝置,其中該處理模組判斷該第一尺寸差異趨勢為該複數個特徵由畫面中下至上逐漸變大時控制該位移模組使該攝像單元沿X軸往順時針方向轉動,而判斷該第一尺寸差異趨勢為該複數個特徵由畫面中下至上逐漸變小時控制該位移模組使該攝像單元沿X軸向往逆時針方向轉動。The automatic calibration detecting device according to claim 11, wherein the processing module determines that the first size difference trend is that the plurality of features are gradually increased from bottom to top in the screen to control the displacement module to make the camera unit Rotating clockwise along the X axis, and determining that the first size difference trend is that the plurality of features are gradually changed from bottom to top in the picture to control the displacement module to rotate the camera unit in the counterclockwise direction along the X axis. 如申請專利範圍第11項所述的自動校正檢測裝置,其中該處理模組判斷該第二尺寸差異趨勢為該複數個特徵由畫面中左至右逐漸變大時控制該位移模組使該攝像單元沿Y軸往順時針方向轉動,而判斷該第二尺寸差異趨勢為該複數個特徵由畫面中左至右逐漸變小時控制該位移模組使該攝像單元沿Y軸向往逆時針方向轉動。The automatic calibration detecting device according to claim 11, wherein the processing module determines that the second size difference trend is that the plurality of features are gradually increased from left to right in the screen to control the displacement module to make the camera. The unit rotates clockwise along the Y axis, and determines that the second size difference trend is that the plurality of features are gradually changed from left to right in the screen to control the displacement module to rotate the camera unit in the counterclockwise direction along the Y axis. 如申請專利範圍第11項所述的自動校正檢測裝置,其中該處理模組控制該攝像單元分別擷取該顯示面板的複數個區域,以獲得複數個區域影像,且該處理模組將該複數個區域影像拼接為一拼接影像。The automatic calibration detecting device according to claim 11, wherein the processing module controls the camera unit to respectively capture a plurality of regions of the display panel to obtain a plurality of region images, and the processing module uses the plurality of regions The area images are stitched together into a mosaic image. 如申請專利範圍第15項所述的自動校正檢測裝置,其中該處理模組對該拼接影像進行一亮度均勻化,以使該拼接影像亮度一致。The automatic calibration detecting device of claim 15, wherein the processing module performs uniform brightness on the spliced image to make the spliced image brightness uniform. 如申請專利範圍第15項所述的自動校正檢測裝置,其中該處理模組對該拼接影像進行一灰度融合,以消除該複數個區域影像拼接時產生於該拼接影像中的一拼接線。The automatic calibration detecting device of claim 15, wherein the processing module performs a grayscale fusion on the mosaic image to eliminate a stitching line generated in the stitched image when the plurality of region images are stitched. 如申請專利範圍第11項所述的自動校正檢測裝置,其中更包含一除塵模組,其設置於該工作台以清除該顯示面板上的異物。The automatic calibration detecting device of claim 11, further comprising a dust removing module disposed on the working table to remove foreign matter on the display panel. 如申請專利範圍第18項所述的自動校正檢測裝置,其中該除塵模組包含一吹氣單元,其對該顯示面板吹氣以清除該顯示面板上的異物。The automatic calibration detecting device of claim 18, wherein the dust removing module comprises a blowing unit that blows the display panel to remove foreign matter on the display panel. 如申請專利範圍第18項所述的自動校正檢測裝置,其中該除塵模組包含一滾刷單元,其配置以往復地於該顯示面板上移動以刷除或黏除該顯示面板上的異物。The automatic calibration detecting device of claim 18, wherein the dust removing module comprises a brushing unit configured to reciprocally move on the display panel to wipe or stick foreign matter on the display panel.
TW105120628A 2016-03-02 2016-06-29 Automatic object alignment method and automatic alignment inspection device thereof TWI603060B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610597071.3A CN107155058B (en) 2016-03-02 2016-07-27 Object automatic correction method and automatic correction detection device thereof
JP2016241861A JP6368766B2 (en) 2016-03-02 2016-12-14 Automatic alignment method of object and automatic alignment detection apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105106244 2016-03-02

Publications (2)

Publication Number Publication Date
TW201732250A TW201732250A (en) 2017-09-16
TWI603060B true TWI603060B (en) 2017-10-21

Family

ID=60480092

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105120628A TWI603060B (en) 2016-03-02 2016-06-29 Automatic object alignment method and automatic alignment inspection device thereof

Country Status (1)

Country Link
TW (1) TWI603060B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6072570A (en) * 1997-07-24 2000-06-06 Innotech Image quality mapper for progressive eyeglasses
TW200413831A (en) * 2003-01-30 2004-08-01 Tekom Technologies Inc Verification method for digital imaging optical axis deviation
US20040213449A1 (en) * 2003-02-03 2004-10-28 Photon Dynamics, Inc. Method and apparatus for optical inspection of a display
CN105025290A (en) * 2014-04-23 2015-11-04 宁波舜宇光电信息有限公司 Method for automatically adjusting inclination between image photographing module group sensor and lens

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6072570A (en) * 1997-07-24 2000-06-06 Innotech Image quality mapper for progressive eyeglasses
TW200413831A (en) * 2003-01-30 2004-08-01 Tekom Technologies Inc Verification method for digital imaging optical axis deviation
US20040213449A1 (en) * 2003-02-03 2004-10-28 Photon Dynamics, Inc. Method and apparatus for optical inspection of a display
CN105025290A (en) * 2014-04-23 2015-11-04 宁波舜宇光电信息有限公司 Method for automatically adjusting inclination between image photographing module group sensor and lens

Also Published As

Publication number Publication date
TW201732250A (en) 2017-09-16

Similar Documents

Publication Publication Date Title
CN107155058B (en) Object automatic correction method and automatic correction detection device thereof
WO2017088469A1 (en) High-precision automatic optical detection system and method based on mechanical arm
TWI390195B (en) Inspection method and inspection apparatus of display panel
US20050270496A1 (en) Projector with a device for measuring angle of inclination
US7924418B2 (en) Inspection apparatus and method
JP2006242821A (en) Imaging method of optical panel, inspection method of optical panel, imaging device of optical panel and inspection device of optical panel
CN101021489A (en) Visual inspection apparatus
TWI552598B (en) Automatic calibration system and related automatic calibration method applied to a camera
US20120093363A1 (en) Image processing apparatus and image processing method
TWI746289B (en) Apparatus, method and computer program product for inspection of at least side faces of semiconductor devices
WO2019184410A1 (en) Method and apparatus for measuring distortion parameters of virtual reality device, and measuring system
US10643350B1 (en) Autofocus detecting device
CN104880803B (en) Adjusting device and adjusting method for full-focus camera vision field
TWI603060B (en) Automatic object alignment method and automatic alignment inspection device thereof
JP4234661B2 (en) Ball inspection method in wire bonding
WO2024055662A1 (en) Near-eye display module inspection method and inspection system
JPH11132720A (en) Point defect detecting device and method therefor
JP2010243212A (en) Tilt detection method and device of the same
JPH11132750A (en) Point defect detecting device and method therefor
JP2006343143A (en) Inspection system for imaging device
TWI601952B (en) Wafer edge measurement module (a)
CN1796987A (en) Optical detection device and detection method
JP6196148B2 (en) Defocus control device and defocus control method
TWI432712B (en) Lens calibration system with imaging technology and calibration method thereof
KR100549169B1 (en) A multi camera photographing and identifing method by using line lasers