TWI843048B - Visual alignment system and visual alignment method thereof - Google Patents
Visual alignment system and visual alignment method thereof Download PDFInfo
- Publication number
- TWI843048B TWI843048B TW111102728A TW111102728A TWI843048B TW I843048 B TWI843048 B TW I843048B TW 111102728 A TW111102728 A TW 111102728A TW 111102728 A TW111102728 A TW 111102728A TW I843048 B TWI843048 B TW I843048B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- image capture
- capture device
- camera
- alignment
- Prior art date
Links
Images
Landscapes
- Image Input (AREA)
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
本發明涉及一種對位系統及方法,特別是涉及一種視覺對位系統及其視覺對位方法。 The present invention relates to a positioning system and method, and in particular to a visual positioning system and a visual positioning method thereof.
現行自動化生產過程中,需要對物件進行對位。然而目前常使用的機械對位方式,並無法適用於不同類型的物件,例如晶圓、玻璃基板或PCB載板。 In the current automated production process, objects need to be aligned. However, the commonly used mechanical alignment method is not applicable to different types of objects, such as wafers, glass substrates or PCB carriers.
本發明所要解決的技術問題在於,針對現有技術的不足提供一種視覺對位系統及其法。 The technical problem to be solved by the present invention is to provide a visual alignment system and method to address the deficiencies of the existing technology.
本發明實施例提供一種視覺對位系統,包括一影像擷取設備及一移動設備。其中影像擷取設備具有一影像控制器及一影像擷取模組。影像控制器電性連接影像擷取模組。移動設備具有一移動控制器及一移動機台,移動控制器電性連接影像控制器與移動機台,移動控制器控制移動機台移動一物件至一對位區。 The present invention provides a visual alignment system, including an image capture device and a mobile device. The image capture device has an image controller and an image capture module. The image controller is electrically connected to the image capture module. The mobile device has a mobile controller and a mobile machine, the mobile controller is electrically connected to the image controller and the mobile machine, and the mobile controller controls the mobile machine to move an object to an alignment area.
其中影像控制器根據一設定參數以配置執行一自動對位:影像控制器控制影像擷取模組拍照位於對位區的物件的一物件影像;影像控制器根據物件影像取得物件影像中的一第一影像特徵的一第一影像特徵位置及一 第二影像特徵的一第二影像特徵位置;影像控制器根據第一影像特徵位置及第二影像特徵位置分別計算與一第一標準影像特徵位置及一第二標準影像特徵位置的一補正偏移量;影像控制器根據補正偏移量計算物件的一補正座標;影像控制器回傳補正座標給移動設備的移動控制器,使得移動控制器根據補正座標控制移動機台移動物件的位置,且物件移動後位置中的第一影像特徵位置相同於第一標準影像特徵位置及第二影像特徵位置相同於第二標準影像特徵位置。 The image controller is configured to perform an automatic alignment according to a setting parameter: the image controller controls the image capture module to take a picture of an object image of the object located in the alignment area; the image controller obtains a first image feature position of a first image feature and a second image feature position of a second image feature in the object image according to the object image; the image controller calculates a correction offset from a first standard image feature position and a second standard image feature position according to the first image feature position and the second image feature position; the image controller calculates a correction coordinate of the object according to the correction offset; the image controller returns the correction coordinate to the mobile controller of the mobile device, so that the mobile controller controls the mobile machine to move the position of the object according to the correction coordinate, and the first image feature position in the position after the object moves is the same as the first standard image feature position and the second image feature position is the same as the second standard image feature position.
本發明實施例提供一種視覺對位方法,適用於一影像擷取設備與一移動設備,包括:於移動設備移動一物件至一對位區時,影像擷取設備根據一設定參數配置執行一自動對位;影像擷取設備拍照位於對位區的物件的一物件影像;影像擷取設備根據物件影像取得物件中的一第一影像特徵的一第一影像特徵位置及一第二影像特徵的一第二影像特徵位置;影像擷取設備根據第一影像特徵位置及第二影像特徵位置分別計算與一第一標準影像特徵位置及一第二標準影像特徵位置的一補正偏移量;影像擷取設備根據補正偏移量計算物件的一補正座標;以及影像擷取設備回傳補正座標給移動設備,使得移動控制器根據補正座標移動物件的位置,且物件移動後位置中的第一影像特徵位置相同於第一標準影像特徵位置及第二影像特徵位置相同於第二標準影像特徵位置。 The present invention provides a visual alignment method applicable to an image capture device and a mobile device, comprising: when the mobile device moves an object to an alignment area, the image capture device performs an automatic alignment according to a setting parameter configuration; the image capture device takes a picture of an object image located in the alignment area; the image capture device obtains a first image feature position of a first image feature and a second image feature position of a second image feature in the object according to the object image; the image capture device performs an automatic alignment according to a setting parameter configuration; The image feature position and the second image feature position respectively calculate a correction offset with a first standard image feature position and a second standard image feature position; the image capture device calculates a correction coordinate of the object according to the correction offset; and the image capture device returns the correction coordinate to the mobile device, so that the mobile controller moves the position of the object according to the correction coordinate, and the first image feature position of the object after the movement is the same as the first standard image feature position and the second image feature position is the same as the second standard image feature position.
綜上所述,本發明實施例提供的視覺對位系統及其視覺對位方法,可廣泛應用各種對位場合且可快速精準對位,更無須複雜的對位機構設計,透過參數設定即可減少硬體調校時間。 In summary, the visual alignment system and visual alignment method provided by the embodiments of the present invention can be widely used in various alignment occasions and can be quickly and accurately aligned without the need for complex alignment mechanism design. The hardware adjustment time can be reduced through parameter setting.
為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。 To further understand the features and technical contents of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings provided are only for reference and description and are not used to limit the present invention.
1:視覺對位系統 1: Visual alignment system
10:移動設備 10: Mobile devices
101:移動控制器 101:Move controller
103:移動機台 103: Mobile machine
20:影像擷取設備 20: Image capture equipment
201:影像控制器 201: Image controller
203:影像擷取模組 203: Image capture module
2031:第一相機 2031: First Camera
2033:第二相機 2033: Second Camera
205:光源控制器 205: Light source controller
207:光源 207: Light source
D1:第一方向 D1: First direction
D2:第二方向 D2: Second direction
D3:第三方向 D3: Third direction
3:物件 3: Objects
31:第一影像特徵 31: First image feature
33:第二影像特徵 33: Second image feature
5:對位區 5: Positioning area
S801:載入系統設定參數 S801: Load system setting parameters
S803:載入視覺設定參數 S803: Load visual setting parameters
S805:接收移動設備通訊命令 S805: Receive mobile device communication command
S807:配方切換 S807: Recipe switching
S809:執行配方切換操作 S809: Execute recipe switching operation
S811:自動對焦 S811: Auto focus
S813:執行自動對焦操作 S813: Perform auto focus operation
S815:自動校正 S815: Automatic calibration
S817:執行自動校正操作 S817: Perform automatic calibration operation
S819:標準位置紀錄 S819: Standard position record
S821:執行標準位置紀錄操作 S821: Perform standard position recording operation
S823:自動對位 S823: Automatic alignment
S825:執行自動對位操作 S825: Perform automatic alignment operation
S901:接收移動設備配方資料 S901: Receive recipe data from mobile device
S903:判斷是否有對應資料 S903: Determine whether there is corresponding data
S905:變更配方資料 S905: Change recipe data
S907:回傳錯誤訊息 S907: Return error message
S909:完成 S909: Completed
S1001:接收移動設備位置資訊 S1001: Receive mobile device location information
S1003:相機取像 S1003: Camera capture
S1005:判斷相機取像是否成功 S1005: Determine whether the camera captures the image successfully
S1007:辨識影像對焦狀態 S1007: Identify image focus status
S1009:更新移動設備位置資訊 S1009: Update mobile device location information
S1011:等待移動設備移動完成 S1011: Wait for the mobile device to move to completion
S1013:判斷對焦是否完成 S1013: Determine whether focus is completed
S1015:回傳錯誤訊息 S1015: Return error message
S1017:完成 S1017: Completed
S1101:接收移動設備位置資訊 S1101: Receive mobile device location information
S1103:相機取像 S1103: Camera capture
S1105:判斷相機取像是否成功 S1105: Determine whether the camera captures the image successfully
S1107:紀錄影像特徵位置 S1107: Record image feature locations
S1109:更新移動設備位置資訊 S1109: Update mobile device location information
S1111:等待移動設備移動完成 S1111: Wait for the mobile device to move to completion
S1113:判斷校正是否完成 S1113: Determine whether the calibration is completed
S1115:儲存校正資訊 S1115: Save calibration information
S1117:回傳錯誤訊息 S1117: Return error message
S1119:完成 S1119: Completed
S1201:紀錄抓取標準位置 S1201: Record the standard position of the capture
S1203:相機取像 S1203: Camera capture
S1205:判斷相機是否取像成功 S1205: Determine whether the camera captures the image successfully
S1207:紀錄影像特徵位置 S1207: Record image feature locations
S1209:回傳錯誤訊息 S1209: Return error message
S1211:完成 S1211: Completed
S1301:接收移動設備對位命令 S1301: Receive mobile device alignment command
S1303:是否自動調整光源 S1303: Whether to automatically adjust the light source
S1305:調光完成 S1305: Dimming completed
S1307:判斷單相機 S1307: Determine single camera
S1309:單相機取像 S1309: Single camera imaging
S1311:雙相機取像 S1311: Dual-camera imaging
S1313:判斷相機是否取像成功 S1313: Determine whether the camera captures the image successfully
S1315:判斷相機是否為固定式 S1315: Determine whether the camera is fixed
S1317:相機固定式計算 S1317: Camera fixed calculation
S1319:判斷是否為全景 S1319: Determine whether it is a panoramic view
S1321:取得全景圖像中的特徵位置 S1321: Get the feature position in the panoramic image
S1323:計算補正偏移量 S1323: Calculate the offset correction
S1325:取得雙圖像特徵位置 S1325: Get the dual image feature position
S1327:計算補正偏移量 S1327: Calculate the offset
S1329:計算物件需補正座標 S1329: Calculation of objects requires correction of coordinates
S1331:相機移動式計算 S1331: Camera mobile computing
S1333:取得雙圖像特徵位置 S1333: Get the dual image feature position
S1335:計算補正偏移量 S1335: Calculate the offset correction
S1337:計算抓取所需補正座標 S1337: Calculate the correct coordinates required for grabbing
S1339:回傳計算結果 S1339: Return calculation results
S1341:完成 S1341: Completed
S1343:回傳錯誤訊息 S1343: Return error message
圖1為本發明實施例提供視覺對位系統的方塊示意圖。 Figure 1 is a block diagram of a visual alignment system provided in an embodiment of the present invention.
圖2為本發明實施例提供第一雙視覺對位模式的系統架構圖。 Figure 2 is a system architecture diagram of the first dual vision alignment mode provided by an embodiment of the present invention.
圖3為本發明實施例提供第二雙視覺對位模式的系統架構圖。 Figure 3 is a system architecture diagram of the second binaural alignment mode provided by the embodiment of the present invention.
圖4為本發明實施例提供第三雙視覺對位模式的系統架構圖。 Figure 4 is a system architecture diagram of the third binocular vision alignment mode provided by the embodiment of the present invention.
圖5為本發明實施例提供第一單視覺對位模式的系統架構圖。 Figure 5 is a system architecture diagram of the first single-vision alignment mode provided in an embodiment of the present invention.
圖6為本發明實施例提供第二單視覺對位模式的系統架構圖。 Figure 6 is a system architecture diagram of the second single-vision alignment mode provided in an embodiment of the present invention.
圖7為本發明實施例提供第三單視覺對位模式的系統架構圖。 FIG7 is a system architecture diagram of the third single-vision alignment mode provided in an embodiment of the present invention.
圖8為本發明實施例提供視覺對位方法的流程圖。 Figure 8 is a flow chart of a visual alignment method provided in an embodiment of the present invention.
圖9為本發明實施例提供配方切換操作的流程圖。 Figure 9 is a flow chart of the recipe switching operation provided in the embodiment of the present invention.
圖10為本發明實施例提供自動對焦操作的流程圖。 Figure 10 is a flowchart of the automatic focus operation provided in the embodiment of the present invention.
圖11為本發明實施例提供自動校正操作的流程圖。 Figure 11 is a flow chart of the automatic correction operation provided in the embodiment of the present invention.
圖12為本發明實施例提供標準位置紀錄操作的流程圖。 Figure 12 is a flow chart of a standard location recording operation provided in an embodiment of the present invention.
圖13為本發明實施例提供自動對位操作的流程圖。 Figure 13 is a flow chart of the automatic alignment operation provided in the embodiment of the present invention.
以下是通過特定的具體實施例來說明本發明的實施方式,本領域技術人員可由本說明書所提供的內容瞭解本發明的優點與效果。本發明可通過其他不同的具體實施例加以施行或應用,本說明書中的各項細節也可基於不同觀點與應用,在不悖離本發明的構思下進行各種修改與變更。另外,本發明的附圖僅為簡單示意說明,並非依實際尺寸的描繪,事先聲明。以下的實施方式將進一步詳細說明本發明的相關技術內容,但所提供的內容並非用以限制本發明的保護範圍。 The following is a specific embodiment to illustrate the implementation of the present invention. The technical personnel in this field can understand the advantages and effects of the present invention from the content provided in this manual. The present invention can be implemented or applied through other different specific embodiments. The details in this manual can also be modified and changed based on different viewpoints and applications without deviating from the concept of the present invention. In addition, the attached drawings of the present invention are only for simple schematic illustration and are not depicted according to actual size. Please note in advance. The following implementation will further explain the relevant technical content of the present invention in detail, but the content provided is not intended to limit the scope of protection of the present invention.
應當可以理解的是,雖然本文中可能會使用到“第一”、“第二”、“第三”等術語來描述各種元件或者訊號,但這些元件或者訊號不應受這些術語的限制。這些術語主要是用以區分一元件與另一元件,或者一 訊號與另一訊號。另外,本文中所使用的術語“或”,應視實際情況可能包含相關聯的列出項目中的任一個或者多個的組合。 It should be understood that although the terms "first", "second", "third" and so on may be used in this article to describe various components or signals, these components or signals should not be limited by these terms. These terms are mainly used to distinguish one component from another component, or one signal from another signal. In addition, the term "or" used in this article may include any one or more combinations of the related listed items depending on the actual situation.
本發明實施例提供一種視覺對位系統及視覺對位方法,在此所述的視覺對位是透過視覺影像判斷一物件的擺放位置是否有符合標準位置,若未符合則可進一步計算目前物件的擺放位置與標準位置的偏移量,之後再根據此偏移量自動移動物件的擺放位置與標準位置對位,如此即可使多個物件以此方式被依序擺放整齊。在此所述的物件例如為晶圓、玻璃基板或PCB載板,但並不以此為限。 The present invention provides a visual alignment system and a visual alignment method. The visual alignment described herein is to determine whether the placement position of an object meets the standard position through visual images. If not, the offset between the current placement position of the object and the standard position can be further calculated, and then the placement position of the object is automatically moved and aligned with the standard position according to the offset, so that multiple objects can be placed in order in this way. The objects described herein are, for example, wafers, glass substrates or PCB carriers, but are not limited to them.
[視覺對位系統的硬體架構] [Hardware architecture of visual alignment system]
請參照圖1,圖1為本發明實施例提供視覺對位系統的方塊示意圖。本實施例所述視覺對位系統1例如包括移動設備10及影像擷取設備20,其中移動設備10及影像擷取設備20可透過連線以相互傳輸資料,例如以有線或無線方式連接。移動設備10例如是對一物件進行移動,在此所述移動方向例如是三維座標系的X軸、Y軸及Z軸,進一步來說移動設備10除了可以控制物件在X軸、Y軸及Z軸的移動,更可對物件進行旋轉。影像擷取設備20例如是對物件進行影像擷取,據此取得物件的物件影像,再根據此物件影像進行影像分析比對以取得補正偏移量,之後即可根據此補正偏移量相對計算物件所需的補正座標,而此補正座標即可由影像擷取設備20提供給移動設備10。移動設備10最後即可根據此補正座標對物件進行對位移動,並使得物件能被移動到標準位置。
Please refer to FIG. 1 , which is a block diagram of a visual alignment system provided in an embodiment of the present invention. The
在一實施例中,移動設備10例如步包括移動控制器101及移動機台103,其中移動控制器101電性連接移動機台103。影像擷取設備20例如包括影像控制器201、影像擷取模組203、光源控制器205及光源207,其中影像控制器201電性連接影像擷取模組203及光源控制器205,光源控
制器205電性連接光源207。
In one embodiment, the
移動控制器101與影像控制器201可以相互傳輸資料,移動控制器101並可控制移動機台103對物件的移動方向進行控制。移動機台103例如是機械手臂,機械手臂即可透過抓取、吸取或夾取的方式移動物件。影像控制器201可控制影像擷取模組203對物件拍照。影像擷取模組203例如是一或多個相機。光源控制器205根據影像控制器201的控制,進而控制光源207的亮度大小。
The
進一步來說,影像控制器201可根據一設定參數配置執行一自動對位。例如影像控制器201控制影像擷取模組203拍照物件以取得一物件影像,接著影像控制器201分析物件影像中以取得物件影像中的一第一影像特徵的一第一影像特徵位置及一第二影像特徵的一第二影像特徵位置。之後影像控制器201再根據第一影像特徵位置及第二影像特徵位置分別計算與一第一標準影像特徵位置及一第二標準影像特徵位置之間的位置差異以取得一補正偏移量。再由影像控制器201根據補正偏移量計算物件需要被移動的一補正座標。然後影像控制器201回傳補正座標給移動控制器101,移動控制器101即可根據補正座標移動物件的位置,並且物件被移動後位置中的第一影像特徵位置相同於第一標準影像特徵位置及第二影像特徵位置相同於第二標準影像特徵位置,藉此達成對物件的對位控制。
Furthermore, the
值得注意的是,上述設定參數可供人員實際需求而輸入於影像擷取設備20,進而相對控制視覺對位系統1可以應用於各種產業的不同對位方式。進一步來說設定參數例如包括一系統設定參數及一視覺設定參數,其中系統設定參數為關聯於影像擷取模組203的一架設模式,視覺設定參數為關聯於影像擷取模組203取得物件影像的一工作參數。
It is worth noting that the above-mentioned setting parameters can be input into the
在一實施例中,影像擷取模組203的架設模式例如為一第一雙視覺對位模式、一第二雙視覺對位模式、一第三雙視覺對位模式、一第四單視覺對位模式、一第五單視覺對位模式或一第六單視覺對位模式,下述將對各架設模式舉例說明。
In one embodiment, the setting mode of the
請參照圖2,圖2為本發明實施例提供第一雙視覺對位模式的系統架構圖。在此所述第一雙視覺對位模式是指影像擷取設備20固定設置於移動設備10,且影像擷取模組203包括一第一相機2031及一第二相機2033。也就是說當移動設備10在第一方向D1移動、第二方向D2移動或是在旋轉方向D3旋轉一角度時,影像擷取模組203都是同步移動或是旋轉。
Please refer to FIG. 2, which is a system architecture diagram of the first dual-vision alignment mode provided by the embodiment of the present invention. Here, the first dual-vision alignment mode means that the
另外,當物件3被移動設備10移動到對位區5後,物件3是相對放置於影像擷取模組203下方的對位區5,以供第一相機2031及第二相機2033可順利對物件3拍照。此外值得注意的是,物件3本身是包括有第一影像特徵31及第二影像特徵33,此第一影像特徵31及第二影像特徵33例如設置於物件3的兩側,且第一相機2031及第二相機2033的設置位置大致對應於物件3中的第一影像特徵31及第二影像特徵33,以使得第一相機2031對物件3拍照時可以取得此第一影像特徵31,以及第二相機2033對物件3拍照時可以取得此第二影像特徵33。
In addition, after the
請參照圖3,圖3為本發明實施例提供第二雙視覺對位模式的系統架構圖。在此所述第二雙視覺對位模式是指影像擷取設備20分離設置於移動設備10外,在此影像擷取模組203包括一第一相機2031及一第二相機2033。也就是說當移動設備10在第一方向D1移動、第二方向D2移動或是在旋轉方向D3旋轉一角度時,影像擷取模組203是固定不會移動。
Please refer to FIG. 3, which is a system architecture diagram of the second dual-vision alignment mode provided by the embodiment of the present invention. Here, the second dual-vision alignment mode means that the
另外,物件3同樣是放置於影像擷取模組203下方的對位區5,以供第一相機2031及第二相機2033可順利對物件3拍照。物件3本身同
樣是包括有第一影像特徵31及第二影像特徵33,此第一影像特徵31及第二影像特徵33例如設置於物件3的兩側,且第一相機2031及第二相機2033的設置位置大致對應於物件3中的第一影像特徵31及第二影像特徵33,以使得第一相機2031對物件3拍照時可以取得此第一影像特徵31,以及第二相機2033對物件3拍照時可以取得此第二影像特徵33。
In addition, the
請參照圖4,圖4為本發明實施例提供第三雙視覺對位模式的系統架構圖。在此所述第三雙視覺對位模式是指影像擷取設備20分離設置於移動設備10外,且影像擷取模組203包括一第一相機2031及一第二相機2033。移動設備10透過抓取物件3方式且配合移動物件3以供影像擷取模組203同時對物件3取像後對位。
Please refer to FIG. 4, which is a system architecture diagram of the third dual-vision alignment mode provided by the embodiment of the present invention. The third dual-vision alignment mode described herein refers to the
具體來說,圖4所述的第一相機2031及第二相機2033是固定設置於移動設備10下方,且物件3是位於影像擷取模組203可拍照的位置。例如移動設備10抓取物件3後可在第一方向D1移動、第二方向D2移動或是在旋轉方向D3旋轉一角度時,此時影像擷取模組203都是固定不動。此外第一相機2031及第二相機2033的設置位置大致對應於物件3中的第一影像特徵31及第二影像特徵33,使得第一相機2031對物件3拍照時可以取得此第一影像特徵31,以及第二相機2033對物件3拍照時可以取得此第二影像特徵33。
Specifically, the
請參照圖5,圖5為本發明實施例提供第一單視覺對位模式的系統架構圖。在此所述第一單視覺對位模式是指影像擷取設備20固定設置於移動設備10,且影像擷取模組203包括一第一相機2031。也就是說當移動設備10在第一方向D1移動、第二方向D2移動或是在旋轉方向D3旋轉一角度時,影像擷取模組203都是同步移動或是旋轉。
Please refer to FIG. 5, which is a system architecture diagram of the first single vision alignment mode provided by the embodiment of the present invention. Here, the first single vision alignment mode means that the
另外,物件3是相對放置於影像擷取模組203下方的對位區
5,以供第一相機2031可順利對物件3拍照。此外值得注意的是,物件3本身是包括有第一影像特徵31及第二影像特徵33,此第一影像特徵31及第二影像特徵33例如設置於物件3的兩側,且經由移動設備10對第一相機2031的移動控制,使得第一相機2031對物件3拍照時可以分別取得第一影像特徵31以及第二影像特徵33。
In addition, the
請參照圖6,圖6為本發明實施例提供第二單視覺對位模式的系統架構圖。在此所述第二單視覺對位模式是指影像擷取設備20分離設置於移動設備10外,且影像擷取模組203包括一第一相機2031。也就是說當移動設備10移動時,影像擷取模組203則是在固定不動。
Please refer to FIG. 6, which is a system architecture diagram of the second single-vision alignment mode provided in the embodiment of the present invention. Here, the second single-vision alignment mode means that the
另外,物件3是被移動設備10抓取,且跟隨移動設備10移動。具體來說物件3是位於影像擷取模組203的可拍照位置。例如移動設備10抓取物件3後可在第一方向D1移動、第二方向D2移動或是在旋轉方向D3旋轉一角度時,此時第一相機2031對物件3拍照時可以分別取得其中的第一影像特徵31以及第二影像特徵33。
In addition, the
請參照圖7,圖7為本發明實施例提供第三單視覺對位模式的系統架構圖。在此所述第三單視覺對位模式是指影像擷取設備20分離設置於移動設備10外,且影像擷取模組203包括一第一相機2031。在此所述移動設備10透過抓取物件後,將此物件3放置於對位區5,此對位區5例如是設置於第一相機2031拍照角度的下方。具體來說,圖7所述的第一相機2031是以全景拍照物件,也就是說第一相機2031可在一次拍照中取得物件3中的第一影像特徵31及第二影像特徵33。
Please refer to FIG. 7, which is a system architecture diagram of the third single-vision alignment mode provided by the embodiment of the present invention. The third single-vision alignment mode described herein refers to that the
[視覺對位的控制實施例] [Visual alignment control implementation example]
請參照圖8。圖8為本發明實施例提供視覺對位方法的流程圖。圖8所示的流程圖是以圖1的架構舉例說明,但並不以此為限。圖8所 示流程例如包括如下步驟。 Please refer to Figure 8. Figure 8 is a flow chart of a visual alignment method provided in an embodiment of the present invention. The flow chart shown in Figure 8 is illustrated by the structure of Figure 1, but is not limited thereto. The process shown in Figure 8 includes the following steps, for example.
於步驟S801中,影像擷取設備20載入系統設定參數。
In step S801, the
於步驟S803中,影像擷取設備20載入視覺設定參數。
In step S803, the
於步驟S805中,接收移動設備10通訊命令。
In step S805, a communication command from the
於步驟S807中,判斷是否為配方切換。當判斷為是則執行步驟S809,當判斷為否則執行步驟S811。在此所述的配方切換例如是影像擷取設備20根據移動設備10提供的配方切換指令以選擇相對於符合目前物件3的一對位參考資料,後續影像擷取設備20即可根據此對位參考資料及前述S801及S803的相關設定參數控制移動設備10進而對物件3進行自動對焦、自動校正、標準位置紀錄或自動對位的相關操作。
In step S807, it is determined whether it is a recipe switch. If it is determined to be yes, step S809 is executed, and if it is determined to be no, step S811 is executed. The recipe switch described herein is, for example, that the
於步驟S809中,影像擷取設備20執行配方切換操作。關於配方切換操作將於後續說明。
In step S809, the
於步驟S811中,判斷是否為自動對焦。當判斷為是則執行步驟S813,當判斷為否則執行步驟S815。在此所述自動對焦是指影像擷取設備20中的影像擷取模組203對物件3進行自動對焦作業,以供後續對物件3進行自動對位時可使用。
In step S811, it is determined whether it is auto focus. If it is determined to be yes, step S813 is executed, and if it is determined to be no, step S815 is executed. The auto focus mentioned here refers to the
於步驟S813中,影像擷取設備20執行自動對焦操作。關於自動對焦操作將於後續說明。
In step S813, the
於步驟S815中,判斷是否為自動校正。當判斷為是則執行步驟S817,當判斷為否則執行步驟S819。在此所述自動校正是指對影像擷取模組203執行相機拍照校正的相關作業。
In step S815, it is determined whether it is automatic calibration. If it is determined to be yes, step S817 is executed, and if it is determined to be no, step S819 is executed. The automatic calibration mentioned here refers to the related operations of performing camera calibration on the
於步驟S817中,影像擷取設備20執行自動校正操作。關於自動校正操作將於後續說明。
In step S817, the
於步驟S819中,判斷是否為標準位置紀錄。當判斷為是則執
行步驟S821,當判斷為否則執行步驟S823。在此所述的標準位置紀錄是指物件3需要被擺放到正確位置以後續對位比對使用。
In step S819, determine whether it is a standard position record. If it is determined to be yes, execute step S821, and if it is determined to be no, execute step S823. The standard position record mentioned here means that
於步驟S821中,影像擷取設備20執行標準位置紀錄操作。關於標準位置紀錄將於後續說明。
In step S821, the
於步驟S823中,判斷是否為自動對位。當判斷為是則執行步驟S825,當判斷為否則執行步驟S805。在此所述自動對位是指對目前物件3計算需要被調整至標準位置相對所需的補正座標。
In step S823, it is determined whether it is automatic alignment. If it is determined to be yes, step S825 is executed, and if it is determined to be no, step S805 is executed. The automatic alignment mentioned here refers to calculating the correction coordinates required for the
於步驟S825中,影像擷取設備20執行自動對位操作。關於自動對位操作將於後續說明。
In step S825, the
值得注意的是,視覺對位系統1於執行對位相關操作時,可先透過設定參數(如系統設定參數及視覺設定參數)以決定好需要使用的對位架構。其中系統設定參數例如為關聯於影像擷取模組203的一架設模式(如圖2至圖7所示架構),視覺設定參數為例如關聯於影像擷取模組203取得物件影像的一工作參數,工作參數例如為第一影像特徵31及第二影像特徵33設置於物件3的位置、尺寸或形狀,或者是工作參數也可以是影像擷取模組203與物件3的對位高度。而當設定參數設定完成後,移動設備10與影像擷取設備20即可相互通訊,例如影像擷取設備20可判斷是否接收到移動設備10發出的配方切換指令、自動對焦指令、自動校正指令、標準位置紀錄指令或自動對位指令,進而達成視覺對位系統1可使用於各種不同對位場合及有效簡化人員在對位操作的複雜性。
It is worth noting that when the
請參照圖9。圖9為本發明實施例提供配方切換操作的流程圖。圖9所示的流程圖是以圖1的架構舉例說明,但並不以此為限。圖9所示流程執行於影像擷取設備20例如包括如下步驟。
Please refer to Figure 9. Figure 9 is a flow chart of a recipe switching operation provided in an embodiment of the present invention. The flow chart shown in Figure 9 is illustrated by the structure of Figure 1, but is not limited thereto. The process shown in Figure 9 is executed on the
於步驟S901,影像擷取設備20接收移動設備10的配方資料。
在此所述配方資料例如是指物件3的尺寸大小。
In step S901, the
於步驟S903中,影像擷取設備20判斷是否有對應資料。當判斷為是執行步驟S905,當判斷為否執行步驟S907。
In step S903, the
於步驟S905中,影像擷取設備20變更配方資料。
In step S905, the
於步驟S907中,影像擷取設備20回傳錯誤訊息。
In step S907, the
於步驟S909中,影像擷取設備20完成配方切換操作。
In step S909, the
請參照圖10。圖10為本發明實施例提供自動對焦操作的流程圖。圖10所示的流程圖是以圖1的架構舉例說明,但並不以此為限。圖10所示流程為執行於影像擷取設備20,例如包括如下步驟。
Please refer to Figure 10. Figure 10 is a flowchart of an autofocus operation provided in an embodiment of the present invention. The flowchart shown in Figure 10 is illustrated by the structure of Figure 1, but is not limited thereto. The process shown in Figure 10 is executed on the
於步驟S1001中,接收移動設備10位置資訊。當影像擷取模組203是設置於移動模組10時,則影像擷取模組203與物件3之間的距離會因移動設備10的移動而產生變化。
In step S1001, the location information of the
於步驟S1003中,相機取像。當影像擷取模組203是操作於雙視覺對位模式時,此時相機是包括第一相機2031及第二相機2033。當影像擷取模組203是操作於單視覺對位模式時,此時相機是包括第一相機2031。
In step S1003, the camera captures an image. When the
於步驟S1005中,判斷相機取像是否成功。當判斷為是執行步驟S1007,當判斷為否執行步驟S1015。在此所述取像成功是指順利對物件拍照。 In step S1005, it is determined whether the camera captures the image successfully. If it is determined to be yes, step S1007 is executed, and if it is determined to be no, step S1015 is executed. The successful capture mentioned here means that the object is photographed successfully.
於步驟S1007中,辨識影像對焦狀態。 In step S1007, the image focus state is identified.
於步驟S1009中,更新移動設備10位置資訊。
In step S1009, the location information of the
於步驟S1011中,等待移動設備10移動完成。
In step S1011, wait for the
於步驟S1013中,判斷對焦是否完成。當判斷為是執行步驟S1017,當判斷為否執行步驟S1003。 In step S1013, determine whether the focus is completed. If it is determined to be yes, execute step S1017, and if it is determined to be no, execute step S1003.
於步驟S1015中,回傳錯誤訊息。 In step S1015, an error message is returned.
於步驟S1017中,完成。 In step S1017, complete.
請參照圖11。圖11為本發明實施例提供自動校正操作的流程圖。圖11所示的流程圖是以圖1的架構舉例說明,但並不以此為限。圖11所示流程為執行於影像擷取設備20,例如包括如下步驟。
Please refer to Figure 11. Figure 11 is a flowchart of the automatic correction operation provided by the embodiment of the present invention. The flowchart shown in Figure 11 is illustrated by the structure of Figure 1, but is not limited thereto. The process shown in Figure 11 is executed on the
於步驟S1101中,接收移動設備10位置資訊。
In step S1101, the location information of the
於步驟S1103中,相機取像。 In step S1103, the camera captures an image.
於步驟S1105中,判斷相機取像是否成功。當判斷為是執行步驟S1107,當判斷為否執行步驟S1117。 In step S1105, determine whether the camera captures the image successfully. If it is determined to be yes, execute step S1107, and if it is determined to be no, execute step S1117.
於步驟S1107中,紀錄影像特徵位置。在此所述影像特徵為例如為第一影像特徵31的第一影像特徵位置或第二影像特徵33的一第二影像特徵位置。
In step S1107, the image feature position is recorded. Here, the image feature is, for example, a first image feature position of the
於步驟S1109中,更新移動設備10位置資訊。
In step S1109, the location information of the
於步驟S1111中,等待移動設備10移動完成。
In step S1111, wait for the
於步驟S1113,判斷校正是否完成。當判斷為是執行步驟S1115,當判斷為否執行步驟S1101。在此所述校正完成例如是指相機內部參數、相機外部參數及畸變參數,相機內部參數例如為處理相機座標系到影像座標系的投影,相機外部參數例如為處理世界座標系到相機座標系的座標轉換。 In step S1113, it is determined whether the calibration is completed. If it is determined to be yes, step S1115 is executed, and if it is determined to be no, step S1101 is executed. The calibration completion mentioned here refers to, for example, camera internal parameters, camera external parameters and distortion parameters. The camera internal parameters are, for example, the projection of the camera coordinate system to the image coordinate system, and the camera external parameters are, for example, the coordinate conversion of the world coordinate system to the camera coordinate system.
於步驟S1115中,儲存校正資訊。據此影像擷取模組203即可根據此校正資訊進行後續正常的拍照。
In step S1115, the calibration information is stored. Based on this calibration information, the
於步驟S1117中,回傳錯誤訊息。 In step S1117, an error message is returned.
於步驟S1119中,完成。 In step S1119, complete.
請參照圖12。圖12為本發明實施例提供標準位置紀錄操作的流程圖。圖12所示的流程圖是以圖1的架構舉例說明,但並不以此為限。
圖12所示流程為執行於影像擷取設備20,例如包括如下步驟。
Please refer to FIG. 12. FIG. 12 is a flowchart of a standard position recording operation provided in an embodiment of the present invention. The flowchart shown in FIG. 12 is illustrated by taking the structure of FIG. 1 as an example, but is not limited thereto.
The process shown in FIG. 12 is executed on the
於步驟S1201中,紀錄抓取標準位置。在此透過啟動影像擷取模組203以進行後續取像使用。
In step S1201, the capture standard position is recorded. Here, the
於步驟S1203中,相機取像。 In step S1203, the camera captures an image.
於步驟S1205中,判斷相機是否取像成功。當判斷為是執行步驟S1207,當判斷為否執行步驟S1209。 In step S1205, determine whether the camera has successfully captured the image. If it is determined to be yes, execute step S1207, and if it is determined to be no, execute step S1209.
於步驟S1207中,紀錄影像特徵位置。在此例如是透過影像擷取模組203中的相機對物件3進行拍照,以取得物件3中影像特徵位置,並以此影像特徵位置作為後續其他物件對位使用的標準位置。進一步來說,此影像特徵位置例如為物件3中的第一影像特徵31的第一標準影像特徵位置及第二影像特徵33的第二標準影像特徵位置。
In step S1207, the image feature position is recorded. Here, for example, the camera in the
於步驟S1209中,回傳錯誤訊息。 In step S1209, an error message is returned.
於步驟S1211中,完成。 In step S1211, complete.
請參照圖13。圖13為本發明實施例提供自動對位操作的流程圖。圖13所示的流程圖是以圖1的架構舉例說明,但並不以此為限。圖13所示流程為執行於影像擷取設備20,例如包括如下步驟。
Please refer to Figure 13. Figure 13 is a flowchart of the automatic alignment operation provided by the embodiment of the present invention. The flowchart shown in Figure 13 is illustrated by the structure of Figure 1, but is not limited thereto. The process shown in Figure 13 is executed on the
於步驟S1301中,接收移動設備10對位命令。當影像擷取設備20收到移動設備10提供的對位命令,即為自動啟動後續對位操作。
In step S1301, the alignment command of the
於步驟S1303中,判斷是否自動調整光源207。當判斷為是執行步驟S1305,當判斷為否執行步驟S1307。當影像擷取設備20開啟自動調整光源207時,影像控制器201即可透過控制光源控制器205調整光源207的亮度。
In step S1303, it is determined whether the
於步驟S1305中,調光完成。在此所述調光完成是指光源控制器205調整光源207的亮度符合一預設亮度或是符合現場環境所需的亮
度。
In step S1305, dimming is completed. Here, dimming completion means that the
於步驟S1307中,判斷是否為單相機。當判斷為是執行步驟S1309,當判斷為否執行步驟S1311。在此影像擷取設備20可根據系統設定參數得知影像擷取設備20為使用單相機或是雙相機。
In step S1307, determine whether it is a single-camera camera. If it is determined to be yes, execute step S1309, and if it is determined to be no, execute step S1311. In this case, the
於步驟S1309中,單相機取像。在此影像控制器201控制第一相機2031拍照取像。
In step S1309, a single camera captures an image. Here, the
於步驟S1311中,雙相機取像。在此影像控制器201控制第一相機2031及第二相機2033拍照取像。
In step S1311, dual cameras capture images. Here, the
於步驟S1313中,判斷相機是否取像成功。當判斷為是執行步驟S1315,當判斷為否執行步驟S1343。 In step S1313, determine whether the camera successfully captures the image. If it is determined to be yes, execute step S1315, and if it is determined to be no, execute step S1343.
於步驟S1315中,判斷相機是否為固定式。當判斷為是執行步驟S1317,當判斷為否執行步驟S1331。在此影像擷取設備20可根據系統設定參數得知影像擷取設備20中的相機架式方式是否為固定不動。
In step S1315, it is determined whether the camera is fixed. If it is determined to be yes, step S1317 is executed, and if it is determined to be no, step S1331 is executed. In this case, the
於步驟S1317中,相機固定式計算。 In step S1317, the camera is fixed for calculation.
於步驟S1319中,判斷是否為全景。當判斷為是執行步驟S1321,當判斷為否執行步驟S1325。在此影像控制器201根據系統設定參數可得知視覺對位系統1的系統架構是否屬於全景拍照,如前述圖7所示架構。
In step S1319, it is determined whether it is a panoramic view. If it is determined to be yes, step S1321 is executed, and if it is determined to be no, step S1325 is executed. In this case, the
於步驟S1321中,取得全景圖像中的特徵位置。在此影像控制器201透過第一相機2031全景拍照取得物件3中的特徵位置,此特徵位置為物件影像中的第一影像特徵31的第一影像特徵位置及第二影像特徵33的第二影像特徵位置。
In step S1321, the feature position in the panoramic image is obtained. Here, the
於步驟S1323中,計算補正偏移量。在此影像控制器201分別計算第一影像特徵位置與第一標準影像特徵位置的距離差以及第二影像
特徵位置與第二標準影像特徵位置的距離差,以得到補正偏移量。
In step S1323, the correction offset is calculated. Here, the
於步驟S1325中,取得雙圖像特徵位置。影像控制器201分別透過第一相機2031取得物件3中第一影像特徵31的第一影像特徵位置及第二相機2033取得第二影像特徵33的第二影像特徵位置。
In step S1325, the dual image feature positions are obtained. The
於步驟S1327中,計算補正偏移量。此計算方式同步驟S1323。 In step S1327, the offset correction is calculated. This calculation method is synchronized with step S1323.
於S1329中,計算物件3需補正座標。影像控制器201根據補正偏移量來計算物件3的補正座標,此補正座標主要是由用來控制移動物件的位置,使得物件3移動後位置中的第一影像特徵位置相同於第一標準影像特徵位置及第二影像特徵位置相同於第二標準影像特徵位置。
In S1329, the coordinates required to be corrected for
於步驟S1331中,相機移動式計算。影像控制器201根據移動設備10的移動相對計算第一相機2031及第二相機2033的拍照位置移動變化。
In step S1331, the camera movement is calculated. The
於步驟S1333中,取得雙圖像特徵位置。當為雙相機取像時,影像控制器201分別透過第一相機2031取得物件3中第一影像特徵31的第一影像特徵位置及第二相機2033取得第二影像特徵33的第二影像特徵位置。或者當為單相機取像時,影像控制器201根據透過第一相機2031取得物件3中第一影像特徵31的第一影像特徵位置,再透過移動設備10移動第一相機2031至第二影像特徵以取得第二影像特徵33的第二影像特徵位置。
In step S1333, the dual image feature position is obtained. When dual cameras are used for image capture, the
於步驟S1335中,計算補正偏移量。此計算方式同步驟S1323。 In step S1335, the offset correction is calculated. This calculation method is synchronized with step S1323.
於步驟S1337中,計算抓取所需補正座標。此計算方式同步驟S1329。 In step S1337, the correction coordinates required for grabbing are calculated. This calculation method is synchronized with step S1329.
於步驟S1339中,回傳計算結果。當影像控制器201計算得知
補正座標後,影像控制器201即可回傳此補正座標給移動控制器101,並由移動控制器101根據此補正座標控制移動機台103對物件3進行移動對位至標準位置。
In step S1339, the calculation result is returned. After the
於步驟S1341中,完成。 In step S1341, complete.
在一實施例中,影像控制器201、移動控制器101可例如為特定應用積體電路(ASIC)、現場可規劃閘陣列(FPGA)或系統單晶片(SOC)的其中之一或任意組合,並可配合其他相關電路元件以及配合韌體以實現上述功能流程。
In one embodiment, the
[實施例的有益效果] [Beneficial effects of the embodiment]
本發明所提供視覺對位系統及視覺對位方法,透過影像比對以找出物件需要被對位至標準位置的補正座標,可使得對位應用的場所更廣泛且多元,再者透過設定參數可以有效簡化人員於硬體調校的諸多不便,進而有效提升對位工作的執行效率。 The visual alignment system and visual alignment method provided by the present invention can find the correction coordinates of the object that needs to be aligned to the standard position through image comparison, which can make the alignment application places wider and more diverse. Furthermore, by setting parameters, it can effectively simplify the inconvenience of hardware adjustment for personnel, thereby effectively improving the execution efficiency of the alignment work.
以上所提供的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及圖式內容所做的等效技術變化,均包含於本發明的申請專利範圍內。 The above contents are only the preferred feasible embodiments of the present invention, and do not limit the scope of the patent application of the present invention. Therefore, all equivalent technical changes made by using the contents of the description and drawings of the present invention are included in the scope of the patent application of the present invention.
1:視覺對位系統 1: Visual alignment system
10:移動設備 10: Mobile devices
101:移動控制器 101:Move controller
103:移動機台 103: Mobile machine
20:影像擷取設備 20: Image capture equipment
201:影像控制器 201: Image controller
203:影像擷取模組 203: Image capture module
205:光源控制器 205: Light source controller
207:光源 207: Light source
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW111102728A TWI843048B (en) | 2022-01-22 | 2022-01-22 | Visual alignment system and visual alignment method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW111102728A TWI843048B (en) | 2022-01-22 | 2022-01-22 | Visual alignment system and visual alignment method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202331656A TW202331656A (en) | 2023-08-01 |
| TWI843048B true TWI843048B (en) | 2024-05-21 |
Family
ID=88559004
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW111102728A TWI843048B (en) | 2022-01-22 | 2022-01-22 | Visual alignment system and visual alignment method thereof |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI843048B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI699525B (en) * | 2019-05-21 | 2020-07-21 | 中華學校財團法人中華科技大學 | Three-dimensional phase shift defect detection method and system |
| TWI701123B (en) * | 2019-12-18 | 2020-08-11 | 財團法人工業技術研究院 | Automated calibration system and method for workpiece coordinate frame of a robot |
| TWM629412U (en) * | 2022-01-22 | 2022-07-11 | 迅得機械股份有限公司 | visual alignment system |
-
2022
- 2022-01-22 TW TW111102728A patent/TWI843048B/en active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI699525B (en) * | 2019-05-21 | 2020-07-21 | 中華學校財團法人中華科技大學 | Three-dimensional phase shift defect detection method and system |
| TWI701123B (en) * | 2019-12-18 | 2020-08-11 | 財團法人工業技術研究院 | Automated calibration system and method for workpiece coordinate frame of a robot |
| TWM629412U (en) * | 2022-01-22 | 2022-07-11 | 迅得機械股份有限公司 | visual alignment system |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202331656A (en) | 2023-08-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA2952449C (en) | Autofocus for folded optic array cameras | |
| US9632395B2 (en) | Method and apparatus for controlling interchangeable lens system camera having reduced delay time to detect lens and accessory device information | |
| TWI471630B (en) | Auto-focus system and method of a digital camera | |
| JP2013246313A (en) | Camera and portable terminal apparatus | |
| JP2004056581A (en) | Image pickup device and method for acquiring centering information | |
| JP2013088261A (en) | Three-dimensional shape measuring instrument, method for controlling three-dimensional shape measuring instrument, and program | |
| CN103852954B (en) | A kind of method for realizing phase focusing | |
| CN104853105A (en) | Three-dimensional fast autofocus method based on camera device with controllable lens tilt | |
| CN104079837A (en) | Focusing method and device based on image sensor | |
| TWM629412U (en) | visual alignment system | |
| TWI843048B (en) | Visual alignment system and visual alignment method thereof | |
| JP2014116790A (en) | Imaging apparatus | |
| WO2016015540A1 (en) | External electronic viewfinder for single lens reflex camera | |
| WO2019041905A1 (en) | Photography method, photography apparatus and mobile terminal | |
| CN110076764A (en) | A kind of the pose automatic identification equipment and method of micromation miniaturization material | |
| WO2019183808A1 (en) | Control method, control device, imaging system, aircraft and storage medium | |
| JP2011146815A (en) | Deviation correcting device, three-dimensional digital camera with the same, deviation correcting method and deviation correcting program | |
| CN211403487U (en) | Calibration equipment for RGB-D module | |
| CN106054495A (en) | Focusing method, device and electronic equipment | |
| KR20100052842A (en) | Camera device | |
| JP2018004904A (en) | Subject tracking device and imaging device | |
| US20240337905A1 (en) | Lens apparatus and image pickup apparatus | |
| WO2021203421A1 (en) | Motor system and tilt correction method and apparatus therefor, camera module, and electronic device | |
| JP2004194075A (en) | Shooting system | |
| CN110599550A (en) | Calibration system of RGB-D module and equipment and method thereof |