TWI836187B - Image processing method, program, and image processing system - Google Patents

Image processing method, program, and image processing system Download PDF

Info

Publication number
TWI836187B
TWI836187B TW110105725A TW110105725A TWI836187B TW I836187 B TWI836187 B TW I836187B TW 110105725 A TW110105725 A TW 110105725A TW 110105725 A TW110105725 A TW 110105725A TW I836187 B TWI836187 B TW I836187B
Authority
TW
Taiwan
Prior art keywords
image
candidate
search
sub
compression rate
Prior art date
Application number
TW110105725A
Other languages
Chinese (zh)
Other versions
TW202145145A (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 日商松下知識產權經營股份有限公司
Publication of TW202145145A publication Critical patent/TW202145145A/en
Application granted granted Critical
Publication of TWI836187B publication Critical patent/TWI836187B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本揭露目的在於使處理高速化。在第k+1次的影像搜尋中,係從壓縮率小於第k壓縮率的第k+1壓縮率之對象影像之中,限縮出第k+1次的影像搜尋用的預備候補;從第k+1次的影像搜尋用的預備候補之中,探索出第k+1候補影像,將第k+1候補影像,加入至抽出影像之新的候補。影像處理方法,係含有:搜尋處理、取得處理、子探索處理。搜尋處理,係進行複數次影像搜尋。取得處理,係取得表示第N候補影像與子候補影像之相關的相關資訊。子探索處理,係基於第N次的影像搜尋中所被求出之第N候補影像、與取得處理中所被取得之相關資訊,而求出子候補影像,將子候補影像,加入至第M次的影像搜尋用的預備候補。The purpose of the present disclosure is to speed up the processing. In the k+1th image search, the preliminary candidates for the k+1th image search are limited from the target images with the k+1th compression rate less than the kth compression rate; the k+1th candidate image is explored from the preliminary candidates for the k+1th image search, and the k+1th candidate image is added to the new candidate of the extracted image. The image processing method includes: search processing, acquisition processing, and sub-exploration processing. The search processing is to perform multiple image searches. The acquisition processing is to obtain relevant information indicating the correlation between the Nth candidate image and the sub-candidate image. The sub-exploration process is to obtain a sub-candidate image based on the N-th candidate image obtained in the N-th image search and the related information obtained in the acquisition process, and add the sub-candidate image to the reserve candidate for the M-th image search.

Description

影像處理方法、程式及影像處理系統Image processing methods, programs and image processing systems

本揭露係有關於一般的影像處理方法、程式及影像處理系統,更詳言之係有關於,從對象影像之中探索出含有模型影像之特徵的影像的影像處理方法、程式及影像處理系統。The present disclosure relates to general image processing methods, programs and image processing systems, and more specifically to image processing methods, programs and image processing systems for discovering images containing the characteristics of model images from object images.

文獻1(JP2012-178106A)中所記載之影像檢查裝置,係藉由使用金字塔演算法的影像匹配,來偵測檢查影像(模型影像)是與對象影像的哪個部分類似。於金字塔演算法中,係進行已被壓縮之對象影像與已被壓縮之檢查影像的影像匹配,而特定出影像類似度高的部分(以下稱作「候補領域」)。其後,針對壓縮率較低的影像,進行以候補領域之週邊領域為對象的影像匹配。在金字塔演算法中,由於不需要以壓縮率較低的影像之全體為對象來進行影像匹配,因此可使處理高速化。The image inspection device described in document 1 (JP2012-178106A) detects which part of the object image the inspection image (model image) is similar to by using image matching using a pyramid algorithm. In the pyramid algorithm, image matching is performed between a compressed object image and a compressed inspection image to identify a portion with a high image similarity (hereinafter referred to as a "candidate domain"). Subsequently, image matching is performed with respect to the peripheral areas of the candidate domain for an image with a lower compression rate. In the pyramid algorithm, since image matching does not need to be performed with respect to the entire image with a lower compression rate, processing speed can be increased.

如文獻1所記載的影像檢查裝置中,期望處理的更加高速化。In the imaging inspection apparatus described in Document 1, it is desired to further speed up the processing.

本揭露目的在於提供可使處理高速化的影像處理方法、程式及影像處理系統。The purpose of this disclosure is to provide image processing methods, programs and image processing systems that can speed up processing.

本揭露之一態樣所述之影像處理方法,係進行複數次影像搜尋,從對象影像之中,探索出含有模型影像之特徵的影像也就是抽出影像。令k為自然數之變數。令N、M為自然數之定數且M大於N。在第1次的前記影像搜尋中,係從第1壓縮率之前記對象影像之中,探索出第1候補影像,將前記第1候補影像,加入至前記抽出影像之候補。前記第1候補影像,係含有前記第1壓縮率之前記模型影像之特徵。在第k+1次的前記影像搜尋中,係從壓縮率小於第k壓縮率的第k+1壓縮率之前記對象影像之中,限縮出第k+1次的前記影像搜尋用的預備候補。第k+1次的前記影像搜尋用的前記預備候補,係含有第k次的前記影像搜尋中所被求出之前記抽出影像之候補。然後,在第k+1次的前記影像搜尋中,係從第k+1次的前記影像搜尋用的前記預備候補之中,探索出第k+1候補影像,將前記第k+1候補影像,加入至前記抽出影像之新的候補。前記第k+1候補影像,係含有前記第k+1壓縮率之前記模型影像之特徵。前記影像處理方法,係含有:搜尋處理、取得處理、子探索處理。前記搜尋處理,係進行複數次前記影像搜尋。前記取得處理,係取得表示第N候補影像與子候補影像之相關的相關資訊。前記子探索處理,係基於第N次的前記影像搜尋中所被求出之第N候補影像、與前記取得處理中所被取得之前記相關資訊,而求出前記子候補影像,將前記子候補影像,加入至第M次的前記影像搜尋用的前記預備候補。The image processing method described in one aspect of the present disclosure performs a plurality of image searches to find an image containing the characteristics of the model image from the object image, that is, to extract the image. Let k be a variable of natural numbers. Let N and M be definite numbers of natural numbers and M is greater than N. In the first search for the first image, the first candidate image is found from the first target image with the first compression rate, and the first candidate image is added to the candidates for the extracted image. The first candidate image mentioned above contains the characteristics of the model image mentioned above with the first compression rate. In the k+1th preamble image search, the k+1th compression rate preamble target image whose compression rate is smaller than the kth compression rate is limited to the k+1th preamble image search preparation. Alternate. The prescript preparation candidates for the k+1th prescript image search include candidates for the prescript extraction image obtained in the k-th prescript image search. Then, in the k+1th foreword image search, the k+1th candidate image is searched out from among the foreword preliminary candidates used for the k+1th foreshadowing image search, and the k+1th candidate image is searched for , added to the preface to extract new candidates for the image. The k+1th candidate image mentioned above contains the characteristics of the model image with the k+1th compression rate mentioned above. The aforementioned image processing methods include: search processing, acquisition processing, and sub-exploration processing. The foreword search processing is to perform a plurality of foreword image searches. The aforementioned acquisition process is to acquire relevant information indicating the correlation between the Nth candidate image and the sub-candidate image. The prefix sub-search process is to obtain the prefix sub-candidate image based on the N-th candidate image obtained in the N-th prefix image search and the prefix sub-candidate information obtained in the prefix acquisition process. The image is added to the preamble candidate for the Mth preamble image search.

本揭露之一態樣所述之程式,係為用來令1個以上之處理器,執行前記影像處理方法。The program described in one aspect of the present disclosure is used to enable one or more processors to execute the aforementioned image processing method.

本揭露之一態樣所述之影像處理系統,係進行複數次影像搜尋,從對象影像之中,探索出含有模型影像之特徵的影像也就是抽出影像。令k為自然數之變數。令N、M為自然數之定數且M大於N。在第1次的前記影像搜尋中,係從第1壓縮率之前記對象影像之中,探索出第1候補影像,將前記第1候補影像,加入至前記抽出影像之候補。前記第1候補影像,係含有前記第1壓縮率之前記模型影像之特徵。在第k+1次的前記影像搜尋中,係從壓縮率小於第k壓縮率的第k+1壓縮率之前記對象影像之中,限縮出第k+1次的前記影像搜尋用的預備候補。第k+1次的前記影像搜尋用的前記預備候補,係含有第k次的前記影像搜尋中所被求出之前記抽出影像之候補。然後,在第k+1次的前記影像搜尋中,係從第k+1次的前記影像搜尋用的前記預備候補之中,探索出第k+1候補影像,將前記第k+1候補影像,加入至前記抽出影像之新的候補。前記第k+1候補影像,係含有前記第k+1壓縮率之前記模型影像之特徵。前記影像處理系統係具備:搜尋處理部、取得部、子探索部。前記搜尋處理部,係進行複數次前記影像搜尋。前記取得部,係取得表示第N候補影像與子候補影像之相關的相關資訊。前記子探索部,係基於第N次的前記影像搜尋中所被求出之第N候補影像、與已被前記取得部所取得之前記相關資訊,而求出前記子候補影像,將前記子候補影像,加入至第M次的前記影像搜尋用的前記預備候補。The image processing system described in one aspect of the present disclosure performs multiple image searches to search for images containing features of a model image from an object image, that is, to extract an image. Let k be a natural number variable. Let N and M be natural number constants and M be greater than N. In the first pre-record image search, the first candidate image is searched from the pre-record object image at the first compression rate, and the pre-record first candidate image is added to the candidate of the pre-record extracted image. The pre-record first candidate image contains features of the pre-record model image at the first compression rate. In the k+1th pre-record image search, the reserve candidate for the k+1th pre-record image search is narrowed down from the pre-record object image at the k+1th compression rate whose compression rate is less than the kth compression rate. The preceding reserve candidate for the k+1th preceding image search includes the candidate of the preceding extracted image found in the kth preceding image search. Then, in the k+1th preceding image search, the k+1th candidate image is searched out from the preceding reserve candidates for the k+1th preceding image search, and the preceding k+1th candidate image is added to the new candidate of the preceding extracted image. The preceding k+1th candidate image includes the characteristics of the preceding model image at the preceding k+1th compression rate. The preceding image processing system includes: a search processing unit, an acquisition unit, and a sub-exploration unit. The preceding search processing unit performs multiple preceding image searches. The preceding acquisition unit acquires relevant information indicating the correlation between the Nth candidate image and the sub-candidate image. The previous record sub-exploration unit obtains a previous record sub-candidate image based on the Nth candidate image obtained in the Nth previous record image search and the previous record related information obtained by the previous record acquisition unit, and adds the previous record sub-candidate image to the previous record reserve candidate for the Mth previous record image search.

以下,使用圖式來說明實施形態所述之影像處理方法、程式及影像處理系統X1。但是,下記的實施形態,係僅為本揭露的各種實施形態之1者。下記的實施形態,係只要能夠達成本揭露之目的,則可隨應於設計等而做各種變更。又,於下記的實施形態中所說明的各圖,係為模式性的圖,圖中的各構成要素之大小及厚度甚至各自的比例,並不一定反映出實際的尺寸。The following uses drawings to illustrate the image processing method, program, and image processing system X1 described in the implementation form. However, the implementation form described below is only one of the various implementation forms disclosed herein. The implementation form described below can be modified in various ways according to the design, etc. as long as the purpose of the disclosure can be achieved. In addition, the various drawings described in the implementation forms described below are schematic drawings, and the size and thickness of each component in the drawing and even the proportion of each component do not necessarily reflect the actual size.

(1)概要 在影像處理方法中,會執行影像搜尋。影像搜尋係為,將拍攝檢查對象所生成的對象影像,與預先準備的模型影像進行比較的處理。藉由進行影像搜尋,可判定檢查對象的形狀、位置、及方向等。作為一例,影像處理方法,係在工廠中的產品等之構件(檢查對象)的製造工程中,以檢查構件外觀為目的而被執行。作為另一例,影像處理方法係為了將某個構件與其他構件做識別而被執行。(1) Summary In the image processing method, an image search is performed. Image search is a process of comparing an object image generated by photographing an inspection object with a model image prepared in advance. By performing image search, the shape, position, and direction of the inspection object can be determined. As an example, the image processing method is executed for the purpose of inspecting the appearance of components (inspection objects) such as products in a factory. As another example, image processing methods are performed to identify certain components from other components.

又,影像搜尋,係會被執行複數次。將影像搜尋的次數,假設為F(F係為自然數之定數)。在複數次的影像搜尋之其中至少一部分的影像搜尋中,為了使處理高速化,會使用對象影像及模型影像之各者的壓縮影像。每重複一次影像搜尋,對象影像及模型影像之各者的壓縮率就會降低。換言之,每重複一致影像搜尋,對象影像及模型影像之各者的解析度就會提高。Furthermore, the image search is performed multiple times. The number of image searches is assumed to be F (F is a natural number constant). In at least a portion of the multiple image searches, compressed images of the object image and the model image are used to speed up the processing. Each time the image search is repeated, the compression rate of each of the object image and the model image decreases. In other words, each time the consistent image search is repeated, the resolution of each of the object image and the model image increases.

藉由第1次的影像搜尋,對象影像之中,含有模型影像之特徵的影像也就是抽出影像的位置及方向之候補會被做某種程度的限縮。抽出影像,係為藉由複數次(F次)之影像搜尋而最終所被求出之對象。換言之,藉由第F次(最後)的影像搜尋,就會求出抽出影像。第k+1次(k係為自然數之變數。亦即,k=1、2、3、……、F)的影像搜尋中,會限定成第k次的影像搜尋中所被限縮之位置的週邊、及第k次的影像搜尋中所被限縮之方向的相近之方向等,而做更進一步的限縮。藉此,相較於針對非壓縮(高解析度)之對象影像之全體而進行影像搜尋的情況,可縮短抽出影像被特定出來為止之處理所需要的時間。Through the first image search, among the target images, the images that contain the characteristics of the model image, that is, the candidates for extracting the position and direction of the image, will be restricted to a certain extent. The extracted image is the object finally found through multiple (F) image searches. In other words, through the F-th (final) image search, the extracted image will be found. In the k+1th image search (k is a natural number variable. That is, k=1, 2, 3,...,F), the image search will be limited to the value narrowed in the k-th image search. The surrounding area of the position and the direction similar to the direction restricted in the k-th image search are further restricted. This makes it possible to shorten the time required for processing until the extracted image is specified, compared to a case where an image search is performed on all uncompressed (high-resolution) target images.

圖1係為本實施形態之影像處理方法的流程圖。本實施形態之影像處理方法,係進行複數次影像搜尋,從對象影像之中,探索出含有模型影像之特徵的影像也就是抽出影像。令k為自然數之變數。令N、M為自然數之定數且M大於N。在第1次的影像搜尋(步驟ST4)中,係從第1壓縮率之對象影像之中,探索出第1候補影像,將第1候補影像,加入至抽出影像之候補。第1候補影像,係含有第1壓縮率之模型影像之特徵。在第k+1次的影像搜尋中,係從壓縮率小於第k壓縮率的第k+1壓縮率之對象影像之中,限縮出第k+1次的影像搜尋用的預備候補。第k+1次的影像搜尋用的預備候補,係含有第k次的影像搜尋中所被求出之抽出影像之候補。然後,在第k+1次的影像搜尋中,係從第k+1次的影像搜尋用的預備候補之中,探索出第k+1候補影像,將第k+1候補影像,加入至抽出影像之新的候補。第k+1候補影像,係含有第k+1壓縮率之模型影像之特徵。影像處理方法,係含有:搜尋處理、取得處理、子探索處理。搜尋處理,係進行複數次影像搜尋。取得處理,係取得表示第N候補影像與子候補影像之相關的相關資訊(步驟ST1)。子探索處理,係基於第N次的影像搜尋中所被求出之第N候補影像、與取得處理中所被取得之相關資訊,而求出子候補影像,將子候補影像,加入至第M次的影像搜尋用的預備候補(步驟ST6)。相關資訊係含有例如:關於第N候補影像與子候補影像之旋轉角度差之資訊。此情況下,所謂子候補影像,係將第N候補影像予以旋轉了上記旋轉角度差而成的影像。FIG. 1 is a flow chart of the image processing method of this embodiment. The image processing method of this embodiment performs a plurality of image searches to find an image containing the characteristics of the model image from the target image, that is, to extract the image. Let k be a variable of natural numbers. Let N and M be definite numbers of natural numbers and M is greater than N. In the first image search (step ST4), the first candidate image is found from the target image with the first compression rate, and the first candidate image is added to the candidates for the extracted image. The first candidate image contains the characteristics of the model image with the first compression rate. In the k+1-th image search, preliminary candidates for the k+1-th image search are narrowed out from target images with a compression rate of k+1 that is smaller than the k-th compression rate. The preliminary candidates for the k+1-th image search include candidates for the extracted images found in the k-th image search. Then, in the k+1th image search, the k+1th candidate image is discovered from among the preliminary candidates for the k+1th image search, and the k+1th candidate image is added to the extracted A new candidate for the image. The k+1th candidate image contains the characteristics of the model image with the k+1th compression rate. The image processing method includes: search processing, acquisition processing, and sub-exploration processing. Search processing involves performing multiple image searches. The acquisition process is to acquire related information indicating the correlation between the N-th candidate image and the sub-candidate image (step ST1). The sub-exploration process is to obtain the sub-candidate image based on the N-th candidate image obtained in the N-th image search and the related information obtained in the acquisition process, and add the sub-candidate image to the M-th candidate image. Preliminary candidates for image search (step ST6). The relevant information includes, for example, information about the rotation angle difference between the Nth candidate image and the sub-candidate image. In this case, the so-called sub-candidate image is an image obtained by rotating the N-th candidate image by the above-mentioned rotation angle difference.

重點是,藉由第k次的影像搜尋,第k候補影像(主要之預備候補)會被求出,第k候補影像,係被加入至第k+1次的影像搜尋用的預備候補。k+1=M的情況下,子候補影像也會被加入至第k+1次的影像搜尋用的預備候補。在第k+1次的影像搜尋中,係從第k+1次的影像搜尋用的預備候補之中,求出第k+1候補影像。第k次的影像搜尋是最後之影像搜尋的情況(亦即k=F的情況)下,第k候補影像,係作為最終的搜尋結果(抽出影像)而被輸出。The key point is that through the k-th image search, the k-th candidate image (the main preliminary candidate) will be obtained, and the k-th candidate image is added to the preliminary candidate for the k+1-th image search. When k+1=M, the sub-candidate images will also be added to the preliminary candidates for the k+1th image search. In the k+1th image search, the k+1th candidate image is obtained from the preliminary candidates for the k+1th image search. When the k-th image search is the final image search (that is, when k=F), the k-th candidate image is output as the final search result (extracted image).

若依據本實施形態,則相較於針對非壓縮之對象影像之全體而進行影像搜尋的情況,可縮短抽出影像被特定出來為止之處理所需要的時間。According to this embodiment, compared with the case where an image search is performed on all uncompressed target images, the time required for processing until the extracted image is specified can be shortened.

又,在第N次的影像搜尋中,由於對象影像及模型影像之壓縮率是比較大,因此非壓縮之對象影像與非壓縮之模型影像之間的差異中,會有欠缺該當資料的情況。因此,在非壓縮之狀態下與模型影像不相符的影像,會有被當作第N候補影像而求出的可能性。此情況下,第N候補影像,係變成第N+1次的影像搜尋用的預備候補(第N+1次的影像搜尋之搜尋範圍)之1者,第N候補影像,係在第N+1次以後的影像搜尋中,會被判斷為與模型影像不相符。然而,在較第N次的影像搜尋還後面的第M次的影像搜尋中,不只前一次影像搜尋中所被求出之候補影像,就連子候補影像也會被當作第M次的影像搜尋用的預備候補而被使用,因此子候補影像會被特定成為抽出影像。亦即,即使在非壓縮之狀態下第N候補影像與模型影像不相符的情況下,在非壓縮之狀態下子候補影像與模型影像仍會有相符的可能性。在本實施形態的影像處理方法中,相較於不進行把子候補影像加入至預備候補之處理的情況,可縮短發現子候補影像為止所需要的時間,因此可縮短將抽出影像予以特定為止所需要的時間。Furthermore, in the Nth image search, since the compression rate of the object image and the model image is relatively large, the difference between the uncompressed object image and the uncompressed model image may lack the necessary data. Therefore, an image that does not match the model image in the uncompressed state may be obtained as the Nth candidate image. In this case, the Nth candidate image becomes one of the backup candidates for the N+1th image search (the search range of the N+1th image search), and the Nth candidate image is judged to be inconsistent with the model image in the image search after the N+1th. However, in the Mth image search which is later than the Nth image search, not only the candidate image obtained in the previous image search but also the sub-candidate image is used as a reserve candidate for the Mth image search, so the sub-candidate image is specified as an extracted image. That is, even if the Nth candidate image does not match the model image in a non-compressed state, there is still a possibility that the sub-candidate image and the model image match in a non-compressed state. In the image processing method of this embodiment, compared with the case where the sub-candidate image is not added to the reserve candidate, the time required to find the sub-candidate image can be shortened, and therefore the time required to specify the extracted image can be shortened.

此外,N=1為理想。在本實施形態中,是令N=1來做說明。亦即,基於第1次的影像搜尋中所被求出之第1候補影像、與相關資訊,而求出子候補影像。子候補影像,係被加入至第M次的影像搜尋時所使用的預備候補中。在第M次的影像搜尋中,係從第M-1次的影像搜尋中所被求出之第M-1候補影像、與預備候補之中,探索出抽出影像之新的候補(第M候補影像)。在本實施形態中,是令M=4來做說明。又,在本實施形態中,第M次的影像搜尋,係為被進行複數次的影像搜尋之中,最後的影像搜尋。亦即,在本實施形態中,F=M。In addition, N=1 is ideal. In the present embodiment, N=1 is used for explanation. That is, a sub-candidate supplementary image is obtained based on the 1st candidate image obtained in the 1st image search and related information. The sub-candidate supplementary image is added to the reserve candidate used in the Mth image search. In the Mth image search, a new candidate (Mth candidate supplementary image) for extracting an image is explored from the M-1th candidate image obtained in the M-1th image search and the reserve candidate. In the present embodiment, M=4 is used for explanation. Furthermore, in the present embodiment, the Mth image search is the last image search among multiple image searches. That is, in the present embodiment, F=M.

圖1所示的流程圖,係僅為影像處理方法之一例,亦可適宜變更處理的順序,亦可適宜追加或省略處理。The flowchart shown in FIG. 1 is only an example of the image processing method, and the processing order may be changed as appropriate, and processing may be added or omitted as appropriate.

影像處理方法,係藉由影像處理系統X1而被執行。如圖2所示,影像處理系統X1係具備:搜尋處理部S1、取得部51、子探索部52。搜尋處理部S1,係進行複數次影像搜尋。取得部51,係取得表示第N候補影像與子候補影像之相關的相關資訊。子探索部52,係基於第N次的影像搜尋中所被求出之第N候補影像、與已被取得部51所取得之相關資訊,而求出子候補影像,將子候補影像,加入至第M次的影像搜尋用的預備候補。The image processing method is executed by the image processing system X1. As shown in FIG. 2 , the image processing system X1 includes a search processing unit S1, an acquisition unit 51, and a sub-search unit 52. The search processing unit S1 performs a plurality of image searches. The acquisition unit 51 acquires relevant information indicating the correlation between the N-th candidate image and the sub-candidate image. The sub-exploration unit 52 obtains sub-candidate images based on the N-th candidate image obtained in the N-th image search and the related information obtained by the acquisition unit 51, and adds the sub-candidate images to A candidate for the Mth image search.

藉由使用影像處理系統X1,就可縮短將抽出影像予以特定為止的處理所需要的時間。By using the image processing system X1, the time required to process the extracted images to a specific level can be shortened.

(2)影像處理系統 影像處理系統X1係含有:具有1個以上之處理器及記憶體的電腦系統。電腦系統的記憶體中所被記錄的程式,藉由電腦系統的處理器加以執行,就可實現影像處理系統X1的至少一部分之功能。程式係亦可被記錄在記憶體中,亦可透過網際網路等之電性通訊線路而被提供,亦可被記錄在記憶卡等之非暫時性記錄媒體而被提供。(2)Image processing system The image processing system X1 includes: a computer system with more than one processor and memory. The program recorded in the memory of the computer system is executed by the processor of the computer system to realize at least part of the functions of the image processing system X1. The program may also be recorded in a memory, may be provided through an electrical communication line such as the Internet, or may be recorded on a non-transitory recording medium such as a memory card and provided.

影像處理系統X1係具備:搜尋處理部S1、取得部51、子探索部52、生成處理部53、記憶部54、控制部55、影像加工部56。搜尋處理部S1係含有:第1搜尋部1、第2搜尋部2、第3搜尋部3、第4搜尋部4。此外,這些係僅為例示藉由影像處理系統X1而被實現的功能,並非表示其必為具有實體的構成。The image processing system X1 includes a search processing unit S1, an acquisition unit 51, a sub-search unit 52, a generation processing unit 53, a storage unit 54, a control unit 55, and an image processing unit 56. The search processing unit S1 includes a first search unit 1, a second search unit 2, a third search unit 3, and a fourth search unit 4. In addition, these are merely examples of functions implemented by the image processing system X1, and do not necessarily represent actual structures.

在圖2中,作為影像處理系統X1的外部之構成,設有:攝像部61、驅動機構62、操作部63。此外,攝像部61、驅動機構62、操作部63之其中至少1者,係亦可為影像處理系統X1之構成。In FIG. 2 , as external components of the image processing system X1, an imaging unit 61, a drive mechanism 62, and an operation unit 63 are provided. In addition, at least one of the imaging unit 61, the driving mechanism 62, and the operating unit 63 may be a component of the image processing system X1.

(3)攝像部 攝像部61係為例如CCD(Charge Coupled Devices)影像感測器、或CMOS(Complementary Metal-Oxide Semiconductor)影像感測器等之二維影像感測器。攝像部61,係拍攝檢查對象(構件)。藉此,攝像部61係生成拍攝到檢查對象的影像也就是對象影像。檢查對象,係藉由移動裝置而被搬運至攝像部61的攝像範圍內。移動裝置係為例如輸送帶。攝像部61進行攝像的時序,係被控制部55所控制。(3) Imaging unit The imaging unit 61 is a two-dimensional image sensor such as a CCD (Charge Coupled Devices) image sensor or a CMOS (Complementary Metal-Oxide Semiconductor) image sensor. The imaging unit 61 photographs the inspection object (component). In this way, the imaging unit 61 generates an image of the inspection object, that is, an object image. The inspection object is transported to the imaging range of the imaging unit 61 by a moving device. The moving device is, for example, a conveyor belt. The timing of the imaging unit 61 performing imaging is controlled by the control unit 55.

(4)驅動機構 驅動機構62係含有例如:機器手臂或空氣產生裝置。驅動機構62係使檢查對象移動。例如,一旦某個檢查對象被影像處理系統X1判定為適合品,則機器手臂係將檢查對象予以保持(拾取),而將其移動至下個工程所被進行的場所。又,例如,一旦某個檢查對象被影像處理系統X1判定為不適合品,則空氣產生裝置,係將檢查對象藉由噴氣而予以去除。驅動機構62的動作,係被控制部55所控制。(4)Driving mechanism The driving mechanism 62 includes, for example, a robot arm or an air generating device. The drive mechanism 62 moves the inspection object. For example, once an inspection object is determined to be a suitable product by the image processing system X1, the robot arm holds (picks up) the inspection object and moves it to a location where the next process is performed. For example, once a certain inspection object is determined to be unsuitable by the image processing system X1, the air generating device removes the inspection object by blowing air. The operation of the driving mechanism 62 is controlled by the control unit 55 .

(5)記憶部 記憶部54係為例如:ROM(Read Only Memory)、RAM(Random Access Memory)或EEPROM(Electrically Erasable Programmable Read Only Memory)等。記憶部54,係記憶著模型影像。又,記憶部54,係記憶著影像處理方法中所被使用的各種參數。(5)Memory department The memory unit 54 is, for example, ROM (Read Only Memory), RAM (Random Access Memory), or EEPROM (Electrically Erasable Programmable Read Only Memory). The memory unit 54 stores model images. In addition, the storage unit 54 stores various parameters used in the image processing method.

(6)影像加工部 影像加工部56,係將已被攝像部61所生成之對象影像予以壓縮(壓縮處理)。又,影像加工部56,係從記憶部54取得模型影像,並將模型影像予以壓縮(壓縮處理)。更詳言之,影像加工部56,係將對象影像及模型影像,分別轉換成像素數較小的影像(壓縮影像)。(6)Image processing department The image processing unit 56 compresses (compresses) the target image generated by the imaging unit 61 . Furthermore, the image processing unit 56 obtains the model image from the storage unit 54 and compresses the model image (compression processing). More specifically, the image processing unit 56 converts the object image and the model image into images with a smaller number of pixels (compressed images).

對象影像及模型影像係分別為二維影像。又,對象影像及模型影像係分別為數位影像。在本實施形態中,是想定對象影像及模型影像分別為黑白影像的情況來做說明。但是,對象影像及模型影像係亦可分別為灰階影像或彩色影像。The object image and the model image are two-dimensional images. In addition, the object image and the model image are digital images. In this embodiment, the description is made based on the assumption that the object image and the model image are black and white images. However, the object image and the model image may also be grayscale images or color images.

影像加工部56係生成例如,將原本的影像(對象影像及模型影像)之縱橫各自的像素數變成1/2i倍(i係為自然數之變數)的1/2i壓縮影像。在本實施形態中,影像加工部56係生成1/2壓縮影像、1/4壓縮影像、1/8壓縮影像。The image processing unit 56 generates, for example, a 1/2i compressed image by multiplying the number of pixels in the vertical and horizontal directions of the original image (the object image and the model image) by 1/2i (i is a variable of a natural number). In the present embodiment, the image processing unit 56 generates a 1/2 compressed image, a 1/4 compressed image, and a 1/8 compressed image.

又,影像加工部56,係從對象影像及模型影像之各者的壓縮影像及非壓縮影像,抽出輪廓線。作為將輪廓線予以抽出的演算法係可採用例如,索貝爾法或高斯的拉普拉斯法等。此外,模型影像係亦可為,從一開始就以只由輪廓線所成之影像的方式而被提供。The image processing unit 56 extracts contours from the compressed image and the uncompressed image of each of the object image and the model image. For example, the Sobel method or the Laplace method of Gauss can be used as an algorithm for extracting contours. In addition, the model image can be provided as an image consisting of only contours from the beginning.

(7)操作部 操作部63係為受理使用者之操作的使用者介面。操作部63係含有例如:按鈕、開關、DIP開關、觸控板及觸控顯示器等之其中至少1者。(7)Operation Department The operation unit 63 is a user interface that accepts user operations. The operation unit 63 includes, for example, at least one of a button, a switch, a DIP switch, a touch panel, a touch display, and the like.

操作部63係將用來決定相關資訊所需之使用者之操作,予以受理。The operation unit 63 accepts the user's operations required for determining relevant information.

又,操作部63係將後述的用來決定設定角度(令第k候補影像或子候補影像進行旋轉的旋轉角度)所需之使用者之操作,予以受理。Furthermore, the operation unit 63 receives a user operation required to determine a setting angle (a rotation angle for rotating the k-th candidate image or the sub-candidate image) described later.

然後,操作部63係將用來決定影像搜尋之次數所需之使用者之操作,予以受理。Then, the operation unit 63 accepts the user's operation required to determine the number of image searches.

此外,操作部63係只要至少能接受來自使用者的操作即可,實際將操作部63進行的主體,並不限於使用者。操作部63係亦可受理來自使用者以外者的操作。Furthermore, the operation unit 63 only needs to be able to receive at least an operation from the user, and the subject who actually operates the operation unit 63 is not limited to the user. The operation unit 63 may also receive an operation from someone other than the user.

(8)取得部 取得部51係從操作部63取得相關資訊。亦即,用來決定相關資訊所需之操作一旦對操作部63進行,則操作部63係輸出相應於操作內容的訊號,取得部51會將該訊號當作相關資訊而加以取得。(8) Acquisition Department The acquisition unit 51 acquires relevant information from the operation unit 63 . That is, once the operation required to determine the relevant information is performed on the operation unit 63, the operation unit 63 outputs a signal corresponding to the operation content, and the acquisition unit 51 obtains the signal as the relevant information.

亦即,本實施形態的影像處理方法,係含有藉由取得部51而被執行的相關資訊決定處理,相關資訊決定處理,係為隨應於使用者之操作而決定相關資訊的處理。That is, the image processing method of this embodiment includes the relevant information determination processing executed by the acquisition unit 51, and the relevant information determination processing is a processing for determining relevant information in response to the user's operation.

又,取得部51,係從操作部63取得關於設定角度之資訊。亦即,用來決定設定角度所需之操作一旦對操作部63進行,則操作部63係輸出相應於操作內容的訊號,取得部51會將該訊號當作關於設定角度之資訊而加以取得。Furthermore, the acquisition unit 51 acquires information about the setting angle from the operation unit 63. That is, once the operation required to determine the setting angle is performed on the operation unit 63, the operation unit 63 outputs a signal corresponding to the operation content, and the acquisition unit 51 acquires the signal as information about the setting angle.

亦即,本實施形態的影像處理方法,係含有藉由取得部51而被執行的設定處理,設定處理係為取得關於設定角度之資訊的處理。又,本實施形態的影像處理方法,係含有藉由取得部51而被執行的設定角度決定處理,設定角度決定處理,係為隨應於使用者之操作而決定設定角度的處理。設定角度係為例如,使用者操作操作部63所指定的角度本身。That is, the image processing method of this embodiment includes a setting process executed by the acquisition unit 51, and the setting process is a process of acquiring information on the setting angle. In addition, the image processing method of this embodiment includes a set angle determination process executed by the acquisition unit 51. The set angle determination process is a process of determining the set angle in accordance with the user's operation. The set angle is, for example, the angle itself designated by the user operating the operation unit 63 .

(9)搜尋處理部 搜尋處理部S1係含有複數個搜尋部。在本實施形態中,搜尋部的個數係為4個。亦即,搜尋處理部S1,作為複數個搜尋部是含有:第1搜尋部1、第2搜尋部2、第3搜尋部3、第4搜尋部4。(9) Search processing unit The search processing unit S1 includes a plurality of search units. In the present embodiment, the number of search units is 4. That is, the search processing unit S1 includes, as a plurality of search units: a first search unit 1, a second search unit 2, a third search unit 3, and a fourth search unit 4.

複數個搜尋部之每一者,係進行影像搜尋。影像搜尋係為,將拍攝檢查對象所生成的對象影像,與預先準備的模型影像進行比較的處理。對於1個模型影像,複數個搜尋部係各自進行1次影像搜尋。第1搜尋部1、第2搜尋部2、第3搜尋部3、第4搜尋部4係按此順序而進行影像搜尋。影像搜尋的次數,係3次以上為理想。換言之,在搜尋處理(進行複數次影像搜尋的處理)中,將影像搜尋進行3次以上為理想。影像搜尋的次數,在本實施形態雖然是4次,但不限定於4次,只要為2次以上即可。Each of the plurality of search units performs an image search. Image search is a process of comparing an object image generated by photographing the inspection object with a pre-prepared model image. For one model image, the plurality of search units each perform one image search. The first search unit 1, the second search unit 2, the third search unit 3, and the fourth search unit 4 perform image searches in this order. The number of image searches is ideally three or more. In other words, in the search process (processing of performing multiple image searches), it is ideal to perform the image search three or more times. The number of image searches is four in the present embodiment, but is not limited to four, and may be two or more.

複數個搜尋部,係分別使用不同之壓縮率的對象影像及模型影像,來進行影像搜尋。在本實施形態的影像處理方法中,每重複一次影像搜尋,就將對象影像及模型影像的壓縮率予以降低。亦即,第1搜尋部1係使用第1壓縮率的對象影像及模型影像來進行第1次的影像搜尋,第2搜尋部2係使用第2壓縮率的對象影像及模型影像來進行第2次的影像搜尋。第3搜尋部3係使用第3壓縮率的對象影像及模型影像來進行第3次的影像搜尋,第4搜尋部4係使用第4壓縮率的對象影像及模型影像來進行第4次的影像搜尋。第k+1壓縮率,係為小於第k壓縮率的壓縮率。例如,在第1次的影像搜尋中是使用1/8壓縮影像,在第2次的影像搜尋中是使用1/4壓縮影像,在第3次的影像搜尋中是使用1/2壓縮影像,在第4次(最後)的影像搜尋中是使用非壓縮影像。亦即,壓縮率係亦可包含0(非壓縮)。A plurality of search units use object images and model images with different compression rates to perform image search. In the image processing method of this embodiment, the compression rate of the object image and the model image is reduced each time the image search is repeated. That is, the first search unit 1 uses the object image and the model image with the first compression rate to perform the first image search, and the second search unit 2 uses the object image and the model image with the second compression rate to perform the second image search. The third search unit 3 uses the object image and the model image with the third compression rate to perform the third image search, and the fourth search unit 4 uses the object image and the model image with the fourth compression rate to perform the fourth image search. The k+1th compression rate is a compression rate less than the kth compression rate. For example, a 1/8 compressed image is used in the first image search, a 1/4 compressed image is used in the second image search, a 1/2 compressed image is used in the third image search, and a non-compressed image is used in the fourth (last) image search. That is, the compression rate may also include 0 (non-compressed).

(10)子探索部 子探索部52,係基於第1次(第N次)之影像搜尋中所被求出之第1(第N)候補影像、與已被取得部51所取得之相關資訊,而求出子候補影像。作為一例,相關資訊係含有關於第1(第N)候補影像與子候補影像之旋轉角度差的資訊。此情況下,子探索部52,係生成將第1(第N)候補影像予以旋轉了上記旋轉角度差而成的影像,將已生成之影像,當作子候補影像。上記關於旋轉角度差之資訊係例如,藉由生成處理部53而被生成。上記關於旋轉角度差之資訊,係亦可藉由對操作部63的使用者之操作而被提供。例如,只把1種類之構件視為檢查對象的情況下,由於上記關於旋轉角度差之資訊不需要之後再做變更,因此即使使用者預先提供上記關於旋轉角度差之資訊也無妨。(10) Sub-exploration unit The sub-exploration unit 52 obtains a sub-candidate supplementary image based on the first (Nth) candidate image obtained in the first (Nth) image search and the related information obtained by the acquisition unit 51. As an example, the related information includes information about the rotation angle difference between the first (Nth) candidate image and the sub-candidate supplementary image. In this case, the sub-exploration unit 52 generates an image in which the first (Nth) candidate image is rotated by the above-mentioned rotation angle difference, and regards the generated image as the sub-candidate supplementary image. The above-mentioned information about the rotation angle difference is generated, for example, by the generation processing unit 53. The above-mentioned information about the rotation angle difference can also be provided by the user's operation on the operation unit 63. For example, when only one type of component is considered as the inspection object, since the above information on the rotation angle difference does not need to be changed later, it is not a problem even if the user provides the above information on the rotation angle difference in advance.

作為上記旋轉角度差,亦可只使用1個角度差,亦可使用複數個角度差。例如,作為上記旋轉角度差,亦可使用90度、180度及270度之3個角度差。此情況下,子探索部52,係將第1候補影像分別旋轉了90度、180度及270度而生成3個子候補影像。As the rotation angle difference, only one angle difference may be used, or a plurality of angle differences may be used. For example, three angle differences of 90 degrees, 180 degrees, and 270 degrees may be used as the rotation angle difference. In this case, the sub-searching unit 52 rotates the first candidate image by 90 degrees, 180 degrees, and 270 degrees, respectively, to generate three sub-candidate images.

(11)生成處理部 本實施形態的影像處理方法,係含有藉由生成處理部53而被執行的生成處理,生成處理係為,基於模型影像之被攝體之旋轉對稱性而生成上記關於旋轉角度差之資訊的處理。例如,模型影像之被攝體係為L次旋轉對稱(L係為自然數之定數)的情況下,生成處理部53係將上記旋轉角度差決定成360/L[度]。(11)Generation processing department The image processing method of this embodiment includes a generation process executed by the generation processing unit 53. The generation process is a process of generating the above-mentioned information on the rotation angle difference based on the rotational symmetry of the subject in the model image. . For example, when the subject system of the model image has L-order rotational symmetry (L is a fixed number of natural numbers), the generation processing unit 53 determines the above-mentioned rotation angle difference to 360/L [degree].

例如,圖3所示的模型影像之被攝體(檢查對象Ob1)係為2次旋轉對稱,因此生成處理部53係將上記旋轉角度差決定成180度。For example, the object (inspection object Ob1) of the model image shown in FIG. 3 is twice rotationally symmetric, so the generation processing unit 53 determines the above-mentioned rotation angle difference to be 180 degrees.

關於模型影像之被攝體之旋轉對稱性的資訊,係亦可藉由對操作部63的使用者之操作而被提供。或者,生成處理部53係亦可藉由解析模型影像,而生成關於模型影像之被攝體之旋轉對稱性的資訊。The information on the rotational symmetry of the object of the model image may also be provided by the user's operation on the operation unit 63. Alternatively, the generation processing unit 53 may generate the information on the rotational symmetry of the object of the model image by analyzing the model image.

例如,某個檢查對象Ob1被搬運到攝像部61之攝像範圍內的時序、與另一形狀之檢查對象被搬運到攝像部61之攝像範圍內的時序,是被預先決定。於是,生成處理部53,係將上記關於旋轉角度差之資訊,隨應於時間而加以變更。For example, the timing at which a certain inspection object Ob1 is transported into the imaging range of the imaging unit 61 and the timing at which an inspection object of another shape is transported into the imaging range of the imaging unit 61 are determined in advance. Therefore, the generation processing unit 53 changes the above-mentioned information about the rotation angle difference according to time.

又,在被攝體為非旋轉對稱的情況下,則表示該意旨的資訊,會被生成處理部53所輸出。In addition, when the object is not rotationally symmetrical, information indicating this is output by the generation processing unit 53 .

(12)第1例 關於以影像處理方法來檢查檢查對象的程序之第1例,參照圖1、圖3~圖6B來加以說明。(12)Example 1 A first example of a program for inspecting an inspection object using an image processing method will be described with reference to FIGS. 1, 3 to 6B.

首先,使用者係操作操作部63而輸入相關資訊。取得部51係從操作部63取得相關資訊(步驟ST1)。攝像部61係拍攝檢查對象Ob1而生成對象影像(步驟ST2)。First, the user operates the operation unit 63 to input relevant information. The acquisition unit 51 acquires relevant information from the operation unit 63 (step ST1). The imaging unit 61 captures the inspection object Ob1 to generate an object image (step ST2).

圖3係表示第1壓縮率的模型影像。圖4係表示第1壓縮率的對象影像。圖5係表示第4壓縮率(非壓縮)的模型影像。圖6A、圖6B係表示第4壓縮率(非壓縮)的對象影像。但是,於圖3~圖6B之任一者中,模型影像及對象影像都是只由輪廓線(圖中的網點部分)所成之影像。影像加工部56,係將對象影像因應需要而進行壓縮,並抽出輪廓線,以生成對象影像(步驟ST3)。又,模型影像係為長方形或正方形之影像,是將模型影像之中不含輪廓線的行及列,預先予以去除而成。Figure 3 shows a model image of the first compression ratio. FIG. 4 shows the target image of the first compression rate. Figure 5 shows a model image at the fourth compression ratio (uncompressed). 6A and 6B show target images at the fourth compression rate (uncompressed). However, in any of Figures 3 to 6B, the model image and the object image are images composed only of contour lines (dot portions in the figure). The image processing unit 56 compresses the target image as necessary and extracts the contour lines to generate the target image (step ST3). In addition, the model image is a rectangular or square image, which is obtained by removing rows and columns without outlines in the model image in advance.

此外,模型影像及對象影像,其解析度係高於圖3~圖6B所示之解析度為理想,但為了簡化說明,在圖3~圖6B中是以解析度較低的影像來表示。In addition, it is ideal that the resolution of the model image and the object image is higher than the resolution shown in FIG. 3 to FIG. 6B , but in order to simplify the description, the images are shown in FIG. 3 to FIG. 6B as images with lower resolution.

如圖5所示,檢查對象Ob1的2維形狀,係為十字形。檢查對象Ob1係具有中心部Ob10、和4個凸出部Ob11~Ob14。4個凸出部Ob11~Ob14,係從中心部Ob10凸出。凸出部Ob11、Ob12,係夾著中心部Ob10而被設在彼此相反側。凸出部Ob13、Ob14,係夾著中心部Ob10而被設在彼此相反側。凸出部Ob11、Ob12的凸出方向,係相對於凸出部Ob13、Ob14的凸出方向而呈正交。As shown in Fig. 5, the two-dimensional shape of the inspection object Ob1 is a cross shape. The inspection object Ob1 has a center portion Ob10 and four protruding portions Ob11 to Ob14. The four protruding portions Ob11 to Ob14 protrude from the center portion Ob10. The protruding portions Ob11 and Ob12 are provided on opposite sides of the center portion Ob10. The protruding portions Ob13 and Ob14 are provided on opposite sides of the central portion Ob10. The protruding directions of the protruding portions Ob11 and Ob12 are orthogonal to the protruding directions of the protruding portions Ob13 and Ob14.

於圖5中,4個凸出部Ob11~Ob14的長度係分別為8[pix]、9[pix]、6[pix]、6[pix]。若將圖5的模型影像壓縮成第1壓縮率,則如圖3所示,4個凸出部Ob11~Ob14的長度係分別變成4[pix]、4[pix]、3[pix]、3[pix]。亦即,在圖3中,凸出部Ob11、Ob12的長度係為相等。在圖3中,檢查對象Ob1的2維形狀,係為2次旋轉對稱。In Figure 5, the lengths of the four protruding parts Ob11~Ob14 are 8[pix], 9[pix], 6[pix], and 6[pix] respectively. If the model image in Figure 5 is compressed to the first compression ratio, as shown in Figure 3, the lengths of the four protruding parts Ob11~Ob14 become 4[pix], 4[pix], 3[pix], and 3 respectively. [pix]. That is, in FIG. 3 , the lengths of the protruding portions Ob11 and Ob12 are equal. In Fig. 3, the two-dimensional shape of the inspection object Ob1 is twice rotationally symmetric.

圖6B,係對圖6A,將檢查對象Ob1旋轉了180度而成的圖。圖6A、圖6B之任一對象影像被壓縮成第1壓縮率的情況下,都會變成圖4所示的影像。亦即,在圖3、圖4所示的第1壓縮率的模型影像及對象影像中,相對於中心部Ob10而凸出部Ob11是位於紙面上的狀態、與位於紙面下的狀態,是無法區別。FIG. 6B is a view obtained by rotating the inspection object Ob1 by 180 degrees with respect to FIG. 6A . When any of the target images in FIG. 6A and FIG. 6B is compressed to the first compression rate, it will become the image shown in FIG. 4 . That is, in the model image and the object image of the first compression rate shown in FIGS. 3 and 4 , the protruding portion Ob11 is located on the paper surface with respect to the center portion Ob10 and is located below the paper surface. difference.

在影像搜尋中,係藉由將對象影像進行掃描,而將模型影像與對象影像進行比較。In image search, the model image is compared with the object image by scanning the object image.

(12-1)第1次的影像搜尋 在第1次的影像搜尋(步驟ST4)中,第1搜尋部1係將圖3的模型影像與圖4的對象影像,進行比較。首先,第1搜尋部1係將對象影像之中的左上角之領域,當作比較對象(比較領域R1)。比較領域R1之大小,係與模型影像之大小相等。第1搜尋部1,係將比較領域R1之影像之各像素,與模型影像之各像素進行比較。比較領域R1之影像與模型影像的一致率若為閾值以上,則第1搜尋部1係判斷為,比較領域R1之影像是含有模型影像之特徵的第1候補影像。亦即,此情況下,第1搜尋部1係將比較領域R1之影像,加入至抽出影像之候補。另一方面,若比較領域R1之影像與模型影像之一致率是未滿閾值,則第1搜尋部1係判斷為,比較領域R1之影像不是第1候補影像。(12-1) The first image search In the first image search (step ST4), the first search unit 1 compares the model image of FIG. 3 with the object image of FIG. 4. First, the first search unit 1 regards the area in the upper left corner of the object image as the comparison object (comparison area R1). The size of the comparison area R1 is equal to the size of the model image. The first search unit 1 compares each pixel of the image of the comparison area R1 with each pixel of the model image. If the consistency rate between the image of the comparison area R1 and the model image is above the threshold, the first search unit 1 determines that the image of the comparison area R1 is the first candidate image containing the features of the model image. That is, in this case, the first search unit 1 adds the image of the comparison area R1 to the candidate of the extracted image. On the other hand, if the consistency rate between the image of the comparison area R1 and the model image is less than the threshold, the first search unit 1 determines that the image of the comparison area R1 is not the first candidate image.

閾值係被預先記憶在記憶部54。在本實施形態中,是假定閾值為100%而進行說明。亦即,在本實施形態中,只有在比較領域R1之影像與模型影像是完全一致的情況下,第1搜尋部1才會判斷為,比較領域R1之影像是第1候補影像。The threshold is pre-stored in the memory unit 54. In this embodiment, the threshold is assumed to be 100% for explanation. That is, in this embodiment, only when the image of the comparison area R1 is completely consistent with the model image, the first search unit 1 will determine that the image of the comparison area R1 is the first candidate image.

第1搜尋部1,係將比較領域R1每次平移1[pix],而每平移1[pix]時,就將比較領域R1之影像與模型影像進行比較。例如,將比較領域R1往列方向(圖4的紙面左右方向)逐次平移1[pix],一旦比較領域R1抵達對象影像之一端(右端或左端),則將比較領域R1往行方向平移1[pix],將如此的過程視為1組。藉由將此過程重複進行複數組,第1搜尋部1就會將對象影像的所有領域,與模型影像進行比較。在圖4中,領域R11被選擇作為比較領域R1之際,第1搜尋部1係判斷為,比較領域R1之影像是第1候補影像。The first search unit 1 translates the comparison area R1 by 1 [pix] at a time, and each time it translates by 1 [pix], it compares the image of the comparison area R1 with the model image. For example, the comparison area R1 is translated by 1 [pix] in the column direction (left-right direction of the paper of FIG. 4 ), and once the comparison area R1 reaches one end (right end or left end) of the object image, the comparison area R1 is translated by 1 [pix] in the row direction, and this process is regarded as 1 set. By repeating this process for multiple sets, the first search unit 1 compares all areas of the object image with the model image. In FIG. 4 , when area R11 is selected as the comparison area R1, the first search unit 1 determines that the image of the comparison area R1 is the first candidate image.

又,第1搜尋部1係將複數個旋轉影像,與對象影像進行比較。複數個旋轉影像係分別為,將模型影像做了階段性旋轉而成的影像。例如,藉由將模型影像以1度的單位而順時鐘或逆時鐘地旋轉360度,就會生成複數個旋轉影像。藉由對各旋轉影像也將上記過程重複進行複數組,第1搜尋部1係就會將對象影像的所有領域與旋轉影像進行比較,並探索第1候補影像。Furthermore, the first search unit 1 compares a plurality of rotated images with the object image. The plurality of rotated images are images obtained by performing a phased rotation of the model image. For example, by rotating the model image 360 degrees clockwise or counterclockwise in units of 1 degree, a plurality of rotated images are generated. By repeating the above process for each rotated image a plurality of times, the first search unit 1 compares all areas of the object image with the rotated image and searches for the first candidate image.

此處,於某個位置上找到第1(第N)候補影像的情況下,則該位置上的旋轉影像,係亦可從第1次(第N次)之影像搜尋中的搜尋範圍而被排除。亦即,該位置上的旋轉影像,係即使不被選擇成為第1(第N)候補影像也無妨。藉此,可縮短影像搜尋所需要的時間。該位置上的旋轉影像,係在第4次的影像搜尋中會被與模型影像進行比較,並判定是否相當於抽出影像。Here, when the 1st (Nth) candidate image is found at a certain position, the rotated image at that position can also be excluded from the search range in the 1st (Nth) image search. In other words, it does not matter if the rotated image at that position is not selected as the 1st (Nth) candidate image. This can shorten the time required for the image search. The rotated image at that position is compared with the model image in the 4th image search to determine whether it is equivalent to the extracted image.

一旦藉由第1次的影像搜尋而找到至少1個第1候補影像,則記憶部54係將關於第1候補影像之資訊,加以記憶。關於第1候補影像之資訊,係至少含有第1候補影像的位置及方向之資訊。關於第1候補影像之資訊,係亦可含有第1候補影像與模型影像的一致率。Once at least one first candidate image is found by the first image search, the memory unit 54 stores information about the first candidate image. The information about the first candidate image includes at least information about the position and direction of the first candidate image. The information about the first candidate image may also include the consistency rate between the first candidate image and the model image.

如上述,在圖3、圖4所示的第1壓縮率的模型影像及對象影像中,相對於中心部Ob10而凸出部Ob11是位於紙面的上側的狀態、與位於紙面的下側的狀態,是沒有區別。無論在哪種狀態的情況下,領域R11被選擇作為比較領域R1之際,第1搜尋部1係判斷為,比較領域R1之影像是第1候補影像。As described above, in the model image and the object image of the first compression ratio shown in FIGS. 3 and 4 , the protruding portion Ob11 is located on the upper side of the paper with respect to the center portion Ob10 , and the state is located on the lower side of the paper. , there is no difference. In either case, when the area R11 is selected as the comparison area R1, the first search unit 1 determines that the image in the comparison area R1 is the first candidate image.

一旦針對至少1個領域,判斷該當領域之影像是第1候補影像(步驟ST5:YES),則子探索部52係生成子候補影像(步驟ST6:子探索處理)。具體而言,子探索部52係將令第1候補影像旋轉了180度而成的影像,當作子候補影像。Once it is determined that the image of at least one region is the first candidate image (step ST5: YES), the sub-exploration unit 52 generates a sub-candidate image (step ST6: sub-exploration processing). Specifically, the sub-exploration unit 52 uses the image obtained by rotating the first candidate image by 180 degrees as the sub-candidate image.

(12-2)第2次以後的影像搜尋 接著,第2搜尋部2,係使用第2壓縮率的對象影像及第2壓縮率的模型影像,來進行第2次的影像搜尋(步驟ST7)。在第2次的影像搜尋中,首先,限縮出第2次的影像搜尋用的預備候補。第2次的影像搜尋用的預備候補,係含有第1次的影像搜尋中所被求出之第1候補影像。在此例中,係藉由第1次的影像搜尋,領域R11(參照圖4)所對應之影像,係被求出而當作第1候補影像。記憶部54中係記憶有第1候補影像的位置及方向之資訊。於是,使用該資訊,第2搜尋部2,係在第2壓縮率的對象影像之中,將領域R11所對應之領域予以特定,將領域R11所對應之領域之影像,當作第2次的影像搜尋用的預備候補。第2搜尋部2,係從第2次的影像搜尋用的預備候補之中,探索出第2壓縮率的含有模型影像之特徵的第2候補影像。(12-2) Image search after the second time Next, the second search unit 2 performs a second image search using the target image with the second compression rate and the model image with the second compression rate (step ST7). In the second image search, first, the preliminary candidates for the second image search are narrowed down. The preliminary candidates for the second image search include the first candidate images obtained in the first image search. In this example, through the first image search, the image corresponding to the area R11 (see FIG. 4 ) is obtained and used as the first candidate image. The memory unit 54 stores information on the position and direction of the first candidate image. Therefore, using this information, the second search unit 2 specifies the area corresponding to the area R11 among the target images of the second compression rate, and treats the image of the area corresponding to the area R11 as the second A candidate for image search. The second search unit 2 searches for a second candidate image containing the characteristics of the model image at a second compression rate from among the preliminary candidates for the second image search.

第3次及第4次的影像搜尋(步驟ST9、ST11)也是同樣地,從前一次影像搜尋中所被求出之領域之影像(預備候補)之中,探索出候補影像。亦即,在第k+1次(此處係為k=1、2、3)之影像搜尋中,係從第k+1壓縮率的對象影像之中,限縮出第k+1次的影像搜尋用的預備候補(第k+1次的影像搜尋之搜尋範圍)。然後,從第k+1次的影像搜尋用的預備候補之中,探索出第k+1壓縮率的含有模型影像之特徵的第k+1候補影像。In the same manner, the third and fourth image searches (steps ST9 and ST11) search for candidate images from the images (preparatory candidates) in the area found in the previous image search. That is, in the k+1th image search (here, k=1, 2, 3), the k+1th image is compressed from the target image with the k+1th compression rate. Preparatory candidates for image search (search range of the k+1th image search). Then, from the preliminary candidates for the k+1th image search, the k+1th candidate image containing the characteristics of the model image with the k+1th compression rate is searched for.

第k+1次的影像搜尋用的預備候補,係除了第k次的影像搜尋中所被求出之抽出影像之候補(第k候補影像)以外,還含有第k次的影像搜尋中所被求出之抽出影像之候補之週邊的影像。例如,在圖6A之中,將第3次的影像搜尋中所被求出之抽出影像之候補所對應之領域,令作領域R41。第4次的影像搜尋用的預備候補,係包含有領域R41之影像、與領域R41之週邊的影像。在第4次的影像搜尋中,係從領域R41之影像、與領域R41之週邊的影像之中,探索出第4候補影像。The preliminary candidates for the k+1th image search include, in addition to the candidates for the extracted images found in the k-th image search (k-th candidate image), they also include the candidates used in the k-th image search. Find the surrounding images of the extracted image candidates. For example, in FIG. 6A , let the area corresponding to the extracted image candidate found in the third image search be area R41. The preliminary candidates for the fourth image search include images of area R41 and images surrounding area R41. In the fourth image search, the fourth candidate image was discovered from the images of area R41 and the images surrounding area R41.

所謂領域R41之週邊的影像,係為對領域R41移動了所定量之領域的影像。更具體而言,所謂領域R41之週邊的影像係為,令領域R41平行移動達所定像素數以下之量、與令領域R41旋轉達所定之旋轉角以下之旋轉角,藉由進行其中至少一方而被形成的領域之影像。The image surrounding the area R41 is an image of the area moved by a predetermined amount relative to the area R41. More specifically, the image surrounding the area R41 is generated by performing at least one of the following: parallel movement of the area R41 by an amount equal to or less than a predetermined number of pixels, and rotation of the area R41 by an amount equal to or less than a predetermined rotation angle. The image of the formed field.

k=1或2時,第k+1次的影像搜尋用的預備候補,係只含有第k次的影像搜尋中所被求出之抽出影像之候補、和其週邊之影像。k=3時,第k+1次(第M次)之影像搜尋用的預備候補,係除了含有第k次的影像搜尋中所被求出之抽出影像之候補、其週邊之影像,還含有子候補影像。在此例中,子候補影像係為,令第1候補影像旋轉了180度而成的影像。亦即,第4次的影像搜尋用的預備候補係至少含有:圖6A之領域R41之影像、與令領域R41之影像旋轉了180度而成的影像,亦即圖6B之領域R42之影像。When k=1 or 2, the preliminary candidates for the k+1th image search only include the extracted image candidates found in the k-th image search and their surrounding images. When k=3, the preliminary candidates for the k+1th (Mth) image search include, in addition to the extracted image candidates found in the k-th image search, their surrounding images, and Sub-candidate images. In this example, the sub-candidate image is an image obtained by rotating the first candidate image by 180 degrees. That is, the preliminary candidates for the fourth image search include at least the image of the area R41 in Figure 6A and the image obtained by rotating the image of the area R41 by 180 degrees, that is, the image of the area R42 of Figure 6B.

又,k=3時,第k+1次(第M次)之影像搜尋用的預備候補,係還含有複數個旋轉影像。複數個旋轉影像係分別為,將第k候補影像或子候補影像從0度在設定角度(第1設定值)以下之範圍內做了階段性旋轉而成的影像。亦即,本實施形態的影像處理方法,係含有範圍擴張處理,範圍擴張處理係為,將複數個旋轉影像,加入至第k+1次的影像搜尋用的預備候補的處理。範圍擴張處理係例如,藉由第4搜尋部4而被執行。基於第k候補影像及子候補影像之每一者,而生成複數個旋轉影像。In addition, when k=3, the preliminary candidates for the k+1th (Mth) image search also include a plurality of rotated images. The plurality of rotated images are images obtained by rotating the k-th candidate image or sub-candidate image in stages from 0 degrees to a range below a set angle (first set value). That is, the image processing method of this embodiment includes range expansion processing. The range expansion processing is a process of adding a plurality of rotated images to the preliminary candidates for the k+1th image search. The range expansion process is executed by, for example, the fourth search unit 4 . A plurality of rotated images are generated based on each of the k-th candidate image and the sub-candidate image.

例如,將第3候補影像(第k候補影像)或子候補影像,以第2設定值(表示角度的值)單位進行順時鐘及逆時鐘,而生成複數個旋轉影像。又,第3候補影像或子候補影像與旋轉影像的旋轉角度差之上限值也就是第1設定值,係被預先指定。第1設定值及第2設定值,係隨應於對操作部63的操作而被決定。亦即,用來決定第1設定值及第2設定值之其中至少一方所需之操作一旦對操作部63進行,則操作部63係輸出相應於操作內容的訊號,而隨應於該訊號,第4搜尋部4就會決定第1設定值及第2設定值。For example, the third candidate image (kth candidate image) or the sub-candidate image is rotated clockwise and counterclockwise in units of the second setting value (value representing an angle) to generate a plurality of rotated images. In addition, the upper limit of the rotation angle difference between the third candidate image or the sub-candidate image and the rotated image, that is, the first setting value, is pre-specified. The first setting value and the second setting value are determined in response to the operation of the operating unit 63. That is, once the operation required to determine at least one of the first setting value and the second setting value is performed on the operating unit 63, the operating unit 63 outputs a signal corresponding to the operation content, and in response to the signal, the fourth search unit 4 determines the first setting value and the second setting value.

第1設定值,係小於第1(第N)候補影像與子候補影像的旋轉角度差的1/2倍之值。第1設定值係例如,可從複數個值之中選擇出來。第1設定值係可從例如5度、15度、及45度之中選擇出來。The first setting value is less than 1/2 times the difference in rotation angle between the first (Nth) candidate image and the sub-candidate image. The first set value can be selected from a plurality of values, for example. The first setting value can be selected from, for example, 5 degrees, 15 degrees, and 45 degrees.

第2設定值,係小於第1設定值。第2設定值係為例如1度。The second setting value is smaller than the first setting value. The second setting value is, for example, 1 degree.

於最後(第4次)的影像搜尋中若找到(第4)候補影像(步驟ST12:YES),則搜尋處理部S1係將該當候補影像,當作最終的搜尋結果。亦即,搜尋處理部S1係將該當候補影像,視為含有模型影像之特徵的影像也就是抽出影像。搜尋處理部S1,係將關於抽出影像之資訊,予以輸出。例如,搜尋處理部S1,係將關於抽出影像之資訊,輸出至控制部55。關於抽出影像之資訊係含有例如:抽出影像的位置及方向之資訊。基於關於抽出影像之資訊,就可特定出對象影像之攝像對象也就是檢查對象Ob1的位置及方向等。關於抽出影像之資訊,係亦可含有抽出影像與模型影像的一致率。If a (4th) candidate image is found in the last (4th) image search (step ST12: YES), the search processing unit S1 treats the candidate image as the final search result. That is, the search processing unit S1 regards the candidate image as an image containing the characteristics of the model image, that is, as an extracted image. The search processing unit S1 outputs information about the extracted images. For example, the search processing unit S1 outputs information about the extracted image to the control unit 55 . The information about the extracted image includes, for example, information about the position and direction of the extracted image. Based on the information about the extracted image, the position and direction of the imaging object of the target image, that is, the inspection object Ob1, etc. can be specified. Information about the extracted image may also include the consistency rate between the extracted image and the model image.

控制部55,係基於關於抽出影像之資訊,而控制驅動機構62。驅動機構62係例如,將檢查對象Ob1予以保持(拾取),並將其移動至下個工程所被進行的場所(步驟ST13)。又,驅動機構62,係基於表示檢查對象Ob1之方向的資訊,而將檢查對象Ob1之方向予以補正。The control unit 55 controls the drive mechanism 62 based on the information about the extracted image. The drive mechanism 62 holds (picks up) the inspection object Ob1 and moves it to a place where the next process is performed (step ST13). Furthermore, the drive mechanism 62 corrects the direction of the inspection object Ob1 based on the information indicating the direction of the inspection object Ob1.

又,於第1次的影像搜尋與最後(第4次)之影像搜尋之間的(第2次及第3次的)影像搜尋中未找到候補影像的情況下(步驟ST8或ST10:NO),則至少將子候補影像含入至第4次的影像搜尋用的預備候補中,進行第4次的影像搜尋(步驟ST14)。亦即,將子候補影像與模型影像進行比較,探索出第4候補影像。此處,除了子候補影像以外,亦可還把令子候補影像做了旋轉的旋轉影像,含入至第4次的影像搜尋用的預備候補。Also, when no candidate image is found in the image search (the second and third times) between the first image search and the last (fourth) image search (step ST8 or ST10: NO) , then at least the sub-candidate images are included in the preliminary candidates for the fourth image search, and the fourth image search is performed (step ST14). That is, the sub-candidate image is compared with the model image to find the fourth candidate image. Here, in addition to the sub-candidate images, a rotated image in which the sub-candidate images are rotated may also be included in the preliminary candidates for the fourth image search.

(12-3)優點 於第1例中,在第2次及第3次的影像搜尋中,是只把前一次影像搜尋中所被求出之抽出影像之候補、和其週邊的影像,當作搜尋範圍(預備候補)。因此,相較於把對象影像之全體當作搜尋範圍的情況,可縮短第2次及第3次的影像搜尋所需要的時間。此外,於第2次及第3次的影像搜尋中,亦可只把前一次影像搜尋中所被求出之抽出影像之候補當作搜尋範圍,而抽出影像之候補之週邊的影像則是從搜尋範圍排除。(12-3) Advantages In the first example, in the second and third image searches, only the candidate for the extracted image found in the previous image search and the images surrounding it are used as the search range (reserve candidates). Therefore, compared with the case where the entire target image is used as the search range, the time required for the second and third image searches can be shortened. In addition, in the second and third image searches, only the candidate for the extracted image found in the previous image search can be used as the search range, and the images surrounding the candidate for the extracted image are excluded from the search range.

又,於第1例中,在第4次的影像搜尋中,子候補影像也會被加入至搜尋範圍(預備候補)中。子候補影像,並非藉由影像搜尋而被直接求出,是從第1候補影像而被求出,因此可以縮短到發現子候補影像為止所需要的時間。因此,子候補影像是被當作最終的搜尋結果(抽出影像)而被輸出的情況下,可縮短到特定出抽出影像為止所需要的時間。Furthermore, in the first example, in the fourth image search, the sub-candidate image is also added to the search range (preliminary candidate). The sub-candidate image is not directly obtained by the image search, but is obtained from the first candidate image, so the time required to find the sub-candidate image can be shortened. Therefore, when the sub-candidate image is output as the final search result (extracted image), the time required to identify the extracted image can be shortened.

又,本實施形態的影像處理方法,係基於1個模型影像而探索抽出影像。亦即,將1個模型影像予以轉換而生成複數個旋轉影像。因此,相較於預先準備複數個旋轉影像的情況,可減少模型影像所佔用的記憶容量。Furthermore, the image processing method of this embodiment searches for extracted images based on one model image. That is, one model image is transformed to generate a plurality of rotated images. Therefore, compared with the case of preparing a plurality of rotated images in advance, the memory capacity occupied by the model image can be reduced.

(13)第2例 關於以影像處理方法來檢查檢查對象的程序之第2例,參照圖7、圖8來加以說明。圖7係表示某個壓縮率的模型影像。圖8係表示某個壓縮率的對象影像。(13)Example 2 A second example of a program for inspecting an inspection object using an image processing method will be described with reference to FIGS. 7 and 8 . Figure 7 shows a model image of a certain compression ratio. Figure 8 shows an object image with a certain compression ratio.

在第2例中,檢查對象Ob2的2維形狀,係為齒輪的形狀。檢查對象Ob2係具有:圓盤狀的圓盤部Ob20、複數個(圖7中係為18個)齒Ob21。複數個齒Ob21,係在圓盤部Ob20之外緣呈等間隔配置。複數個齒Ob21之中的1個齒Ob210,係比其他齒Ob21的長度還短。In the second example, the two-dimensional shape of the inspection object Ob2 is the shape of a gear. The inspection object Ob2 has a disc-shaped disc portion Ob20 and a plurality (18 in FIG. 7 ) of teeth Ob21. A plurality of teeth Ob21 are arranged at equal intervals on the outer edge of the disc portion Ob20. One tooth Ob210 among the plurality of teeth Ob21 is shorter than the other teeth Ob21.

於圖8中,領域R8係為對應於對象影像之全體的領域。作為影像搜尋中所被探索的抽出影像而為正確的影像,是領域R81之影像。In FIG. 8 , area R8 is an area corresponding to the entire object image. The image that is correct as the extracted image being searched for in the image search is the image of domain R81.

然而,在第1次的影像搜尋中,係使用第1壓縮率的對象影像及第1壓縮率的模型影像,第1壓縮率係為比較高的壓縮率。因此,複數個齒Ob21之中長度較短的齒Ob210與其他齒Ob21的形狀之差異,可能會變小。其結果為,在第1次的影像搜尋中,領域R82之影像有可能被當成抽出影像之候補(第1候補影像)而被輸出。領域R82之影像,係為相對於領域R81之影像而旋轉了所定角度的影像。However, in the first image search, the target image with the first compression rate and the model image with the first compression rate are used, and the first compression rate is a relatively high compression rate. Therefore, the difference in shape between the shorter tooth Ob210 and the other teeth Ob21 among the plurality of teeth Ob21 may become smaller. As a result, in the first image search, the image in the area R82 may be output as a candidate for the extracted image (the first candidate image). The image in area R82 is an image rotated by a predetermined angle relative to the image in area R81.

於是,子探索部52係生成令第1候補影像(領域R81之影像)做了旋轉而成的複數個影像,將已生成之複數個影像分當作子候補影像。複數個子候補影像係為例如,將第1候補影像以360/NA[度]單位進行旋轉而成的影像。NA係為齒Ob21的數量。亦即,複數個子候補影像係為,將第1候補影像做了20度、40度、60度、……、340度旋轉而成的影像。Therefore, the sub-exploration unit 52 generates a plurality of images obtained by rotating the first candidate image (the image of the area R81), and divides the generated plurality of images into sub-candidate images. The plurality of sub-candidate images are, for example, images obtained by rotating the first candidate image by 360/NA [degrees]. NA is the number of teeth Ob21. That is, the plurality of sub-candidate images are images obtained by rotating the first candidate image by 20 degrees, 40 degrees, 60 degrees, ..., 340 degrees.

此處,齒Ob21的數量NA,係為關於模型影像之被攝體(檢查對象Ob2)之旋轉對稱性的資訊。齒Ob21的數量NA之資訊,係亦可藉由對操作部63的使用者之操作而被提供。或者,生成處理部53係亦可藉由解析第1(第N)之壓縮率的模型影像而求出齒Ob21的數量NA。Here, the number NA of teeth Ob21 is information about the rotational symmetry of the object (inspection object Ob2) of the model image. The information of the number NA of teeth Ob21 can also be provided by the user's operation on the operation unit 63. Alternatively, the generation processing unit 53 can also obtain the number NA of teeth Ob21 by analyzing the model image of the first (Nth) compression rate.

複數個子候補影像之中的1個,係為領域R81之影像。因此,將複數個子候補影像含入至搜尋範圍(預備候補)的第4次的影像搜尋中,領域R81之影像係被當作抽出影像而被特定。One of the plurality of sub-candidate supplementary images is an image of the area R81. Therefore, in the fourth image search including the plurality of sub-candidate supplementary images in the search range (preliminary candidates), the image of the area R81 is identified as an extracted image.

在第2例中也是,和第1例同樣地,可縮短影像搜尋所需要的時間。The same applies to the second example. Like the first example, the time required for image search can be shortened.

(實施形態的變形例) 以下列舉實施形態的變形例。以下的變形例,係亦可適宜組合而被實現。(Variations of the implementation form) The following are variations of the implementation form. The following variations can also be implemented by combining them as appropriate.

在實施形態中,是只有在複數次(F次)之影像搜尋之中最後1次(第4次)的影像搜尋中,子候補影像會被加入至預備候補。相對於此,在比第N次(實施形態中,N=1)之影像搜尋還後面且比最後的影像搜尋還前面的(第2次或第3次的)影像搜尋中,子候補影像亦可被加入至預備候補。又,亦可在複數次的影像搜尋之中2以上之影像搜尋中,子候補影像會被加入至預備候補。例如,亦可在比第N次(實施形態中,N=1)之影像搜尋還後面的(第2~4次的)影像搜尋之全部中,子候補影像都被加入至預備候補。In the implementation form, the sub-candidate image is added to the preliminary candidate only in the last (4th) image search among multiple (F) image searches. In contrast, the sub-candidate image may be added to the preliminary candidate in an image search that is later than the Nth (in the implementation form, N=1) image search and earlier than the last image search (the second or third time). Furthermore, the sub-candidate image may be added to the preliminary candidate in two or more image searches among multiple image searches. For example, the sub-candidate image may be added to the preliminary candidate in all image searches (the second to fourth times) that are later than the Nth (in the implementation form, N=1) image search.

使用於影像搜尋的影像,係不限於已抽出輪廓線的影像。使用於影像搜尋的影像,係亦可為攝像部61所生成的原始資料,亦可為對原始資料進行過適宜轉換的資料。The image used for image search is not limited to the image from which the contour has been extracted. The image used for image search may be the original data generated by the imaging unit 61 or may be data after appropriate conversion of the original data.

藉由影像處理方法,抽出影像會被求出。但是,藉由影像處理方法而最終所被輸出的資訊,係亦可不是抽出影像,例如,亦可只含有抽出影像之位置(座標)資訊與方向之資訊。The extracted image is obtained by the image processing method. However, the information finally output by the image processing method may not be the extracted image, for example, it may only contain the position (coordinate) information and direction information of the extracted image.

在模型影像之被攝體是非旋轉對稱的情況下,亦可將生成子候補影像的處理予以無效化。In the case where the subject of the model image is not rotationally symmetric, the process of generating the candidate image can be invalidated.

影像處理方法,係亦可藉由(電腦)程式、或記錄程式的非暫時性記錄媒體等,而被具體實現。亦即,一態樣所述之程式,係為用來令1個以上的處理器執行影像處理方法所需之程式。The image processing method can also be specifically implemented by a (computer) program or a non-transitory recording medium that records the program. That is, the program described in one aspect is a program required to cause one or more processors to execute the image processing method.

本揭露中的影像處理系統X1,係含有電腦系統。電腦系統,係以作為硬體的處理器及記憶體為主要構成。藉由處理器來執行電腦系統的記憶體中所被記錄的程式,就可實現本揭露中的作為影像處理系統X1之功能。程式係亦可預先被記錄在電腦系統的記憶體,亦可透過電性通訊線路而被提供,亦可被記錄在可以電腦系統進行讀取的記憶卡、光碟片、硬碟機等之非暫時性記錄媒體中而被提供。電腦系統的處理器,係由含有半導體積體電路(IC)或大規模積體電路(LSI)的1乃至複數個電子電路所構成。這裡所謂的IC或LSI等之積體電路,係隨著集縮的程度而有不同的稱呼,包含被稱為系統LSI、VLSI(Very Large Scale Integration)、或ULSI(Ultra Large Scale Integration)的積體電路。再者,關於在LSI的製造後可被程式化的FPGA(Field-Programmable Gate Array)、或LSI內部之接合關係之重新組態或是LSI內部之電路區塊之重新組態為可能的邏輯裝置,也可當作處理器而採用。複數個電子電路,係亦可被集縮在1個晶片中,亦可被分散設在複數個晶片中。複數個晶片,係亦可被集縮成1個裝置,亦可被分散成複數個裝置。這裡所謂的電腦系統係包含,具有1個以上的處理器及1個以上的記憶體的微控制器。因此,關於微控制器也是,由含有半導體積體電路或大規模積體電路的1乃至複數個電子電路所構成。The image processing system X1 disclosed herein includes a computer system. The computer system is mainly composed of a processor and a memory as hardware. The functions of the image processing system X1 disclosed herein can be realized by executing the program recorded in the memory of the computer system by the processor. The program can be pre-recorded in the memory of the computer system, provided through an electrical communication line, or recorded in a non-temporary recording medium such as a memory card, optical disk, hard disk drive, etc. that can be read by the computer system. The processor of the computer system is composed of one or more electronic circuits including a semiconductor integrated circuit (IC) or a large-scale integrated circuit (LSI). The integrated circuits such as IC or LSI mentioned here have different names depending on the degree of integration, including integrated circuits called system LSI, VLSI (Very Large Scale Integration), or ULSI (Ultra Large Scale Integration). Furthermore, FPGA (Field-Programmable Gate Array) that can be programmed after the manufacture of LSI, or logical devices that can reconfigure the connection relationship within LSI or reconfigure the circuit blocks within LSI can also be used as processors. Multiple electronic circuits can be integrated into one chip or dispersed into multiple chips. Multiple chips can be integrated into one device or dispersed into multiple devices. The computer system mentioned here includes a microcontroller having one or more processors and one or more memories. Therefore, the microcontroller is also composed of one or more electronic circuits including semiconductor integrated circuits or large-scale integrated circuits.

又,影像處理系統X1中的複數個功能被集中在1個裝置這件事情並非影像處理系統X1所必須之構成,影像處理系統X1的構成要素係亦可被分散設置在複數個裝置。再者,影像處理系統X1的至少一部分之功能,例如搜尋處理部S1的至少一部分之功能,亦可藉由雲端(雲端運算)等而被實現。In addition, the fact that a plurality of functions in the image processing system X1 are concentrated in one device is not an essential configuration of the image processing system X1. The constituent elements of the image processing system X1 may be distributed in a plurality of devices. Furthermore, at least part of the functions of the image processing system X1, such as at least part of the functions of the search processing unit S1, can also be realized through the cloud (cloud computing) or the like.

相反地,於實施形態中,被分散至複數個裝置的影像處理系統X1等的至少一部分之功能,亦可被集中在1個裝置。例如,被分散至影像處理系統X1與驅動機構62的功能,亦可被集中在1個裝置。On the contrary, in the embodiment, at least a part of the functions of the image processing system X1 and the like which are distributed to a plurality of devices may be integrated into one device. For example, the functions which are distributed to the image processing system X1 and the drive mechanism 62 may be integrated into one device.

(總結) 根據以上說明的實施形態等,揭露了以下的態樣。(Summary) Based on the above-described embodiments and the like, the following aspects are disclosed.

第1態樣所述之影像處理方法,係進行複數次影像搜尋,從對象影像之中,探索出含有模型影像之特徵的影像也就是抽出影像。令k為自然數之變數。令N、M為自然數之定數且M大於N。在第1次的影像搜尋中,係從第1壓縮率之對象影像之中,探索出第1候補影像,將第1候補影像,加入至抽出影像之候補。第1候補影像,係含有第1壓縮率之模型影像之特徵。在第k+1次的影像搜尋中,係從壓縮率小於第k壓縮率的第k+1壓縮率之對象影像之中,限縮出第k+1次的影像搜尋用的預備候補。第k+1次的影像搜尋用的預備候補,係含有第k次的影像搜尋中所被求出之抽出影像之候補。然後,在第k+1次的影像搜尋中,係從第k+1次的影像搜尋用的預備候補之中,探索出第k+1候補影像,將第k+1候補影像,加入至抽出影像之新的候補。第k+1候補影像,係含有第k+1壓縮率之模型影像之特徵。影像處理方法,係含有:搜尋處理、取得處理、子探索處理。搜尋處理,係進行複數次影像搜尋。取得處理,係取得表示第N候補影像與子候補影像之相關的相關資訊。子探索處理,係基於第N次的影像搜尋中所被求出之第N候補影像、與取得處理中所被取得之相關資訊,而求出子候補影像,將子候補影像,加入至第M次的影像搜尋用的預備候補。The image processing method described in the first aspect is to perform multiple image searches to find an image containing the features of the model image from the object image, that is, to extract the image. Let k be a natural number variable. Let N and M be natural number constants and M be greater than N. In the first image search, the first candidate image is found from the object image of the first compression rate, and the first candidate image is added to the candidate of the extracted image. The first candidate image contains the features of the model image of the first compression rate. In the k+1th image search, the reserve candidate for the k+1th image search is narrowed down from the object image of the k+1th compression rate whose compression rate is less than the kth compression rate. The preliminary candidate for the k+1th image search includes the candidate for the extracted image found in the kth image search. Then, in the k+1th image search, the k+1th candidate image is explored from the preliminary candidate for the k+1th image search, and the k+1th candidate image is added to the new candidate for the extracted image. The k+1th candidate image includes the characteristics of the model image of the k+1th compression rate. The image processing method includes: search processing, acquisition processing, and sub-exploration processing. The search processing is to perform multiple image searches. The acquisition processing is to obtain relevant information indicating the correlation between the Nth candidate image and the sub-candidate image. The sub-exploration process is to obtain a sub-candidate image based on the N-th candidate image obtained in the N-th image search and the related information obtained in the acquisition process, and add the sub-candidate image to the reserve candidate for the M-th image search.

若依據上記的構成,則可使得用來特定抽出影像所需之處理高速化。According to the above-mentioned structure, the processing required for extracting a specific image can be accelerated.

又,第2態樣所述之影像處理方法中,係於第1態樣中,相關資訊係包含有關於第N候補影像與子候補影像之旋轉角度差之資訊。Furthermore, in the image processing method described in the second aspect, in the first aspect, the relevant information includes information on the rotation angle difference between the Nth candidate image and the sub-candidate image.

若依據上記的構成,則可高速地求出含有旋轉對稱之被攝體的抽出影像。According to the above-mentioned structure, an extracted image containing a rotationally symmetric subject can be obtained at high speed.

又,第3態樣所述之影像處理方法,係於第2態樣中,還包含有生成處理。在生成處理中,係基於模型影像之被攝體之旋轉對稱性而生成關於旋轉角度差之資訊。Furthermore, the image processing method according to the third aspect, in the second aspect, further includes a generation process. In the generation process, information on the rotation angle difference is generated based on the rotation symmetry of the object photographed in the model image.

若依據上記之構成,則可減少輸入旋轉角度差的麻煩。If the above structure is followed, the trouble of inputting the rotation angle difference can be reduced.

又,第4態樣所述之影像處理方法,係於第1~3之態樣之任1者中,還包含有相關資訊決定處理。在相關資訊決定處理中,係隨應於使用者之操作而決定相關資訊。Furthermore, the image processing method according to the fourth aspect is, in any one of the first to third aspects, further comprising a related information determination process. In the related information determination process, related information is determined in response to a user's operation.

若依據上記之構成,則可隨應於狀況而變更相關資訊。Based on the above structure, the relevant information may be changed according to the circumstances.

又,第5態樣所述之影像處理方法,係於第1~4之態樣之任1者中,還包含有範圍擴張處理、和設定處理。在範圍擴張處理中,係將複數個旋轉影像,加入至第k+1次的影像搜尋用的預備候補。複數個旋轉影像,係分別為將第k候補影像或子候補影像以0度至設定角度以下之範圍進行階段性旋轉而成的影像。在設定處理中,係取得關於設定角度之資訊。Furthermore, the image processing method described in the fifth aspect is in any one of the first to fourth aspects, and further includes range expansion processing and setting processing. In the range expansion process, a plurality of rotated images are added to the preliminary candidates for the k+1th image search. The plurality of rotated images are images obtained by rotating the k-th candidate image or sub-candidate image in stages within a range from 0 degrees to a set angle. In the setting process, information about the setting angle is obtained.

若依據上記之構成,則可提高影像搜尋之精度。If the above composition is followed, the accuracy of image search can be improved.

又,第6態樣所述之影像處理方法,係於第5態樣中,還包含有設定角度決定處理。在設定角度決定處理中,係隨應於使用者之操作而決定設定角度。Furthermore, the image processing method described in the sixth aspect is, in the fifth aspect, further comprising a setting angle determination process. In the setting angle determination process, the setting angle is determined in response to the user's operation.

若依據上記之構成,則可隨應於狀況而變更設定角度。If the above configuration is followed, the setting angle can be changed according to the situation.

又,在第7態樣所述之影像處理方法中,係於第1~6之態樣之任1者中,N=1。Furthermore, in the image processing method described in the seventh aspect, in any one of the first to sixth aspects, N=1.

若依據上記之構成,則作為進行了第1次的影像搜尋的結果,第1候補影像與子候補影像係被加入至預備候補。因此,可降低在第1次的影像搜尋中發生預備候補不足的可能性,可提高影像搜尋之精度。According to the above configuration, as a result of the first image search, the first candidate image and the sub-candidate image are added to the reserve candidate. Therefore, the possibility of shortage of reserve candidates in the first image search can be reduced, and the accuracy of the image search can be improved.

又,在第8態樣所述之影像處理方法中,係於第1~7之態樣之任1者中,在搜尋處理中係將影像搜尋進行3次以上。Furthermore, in the image processing method described in aspect 8, in any one of aspects 1 to 7, the image search is performed three or more times in the search process.

若依據上記之構成,則可提高影像搜尋之精度。If the above structure is followed, the accuracy of image search can be improved.

又,第9態樣所述之影像處理方法,係於第1~8之態樣之任1者中,基於1個模型影像而探索抽出影像。Furthermore, the image processing method described in the ninth aspect is, in any one of the first to eighth aspects, a search for an extracted image based on a model image.

若依據上記之構成,則可減少模型影像所佔用的記憶容量。If the above composition is followed, the memory capacity occupied by the model image can be reduced.

關於第1態樣以外之構成,並非影像處理方法所必須之構成,可適宜地省略。The components other than the first aspect are not necessary for the image processing method and may be omitted as appropriate.

又,第10態樣所述之程式係為,令1個以上的處理器執行第1~9之態樣之任1者所述之影像處理方法所需之程式。Furthermore, the program described in the tenth aspect is a program required to cause one or more processors to execute the image processing method described in any one of the first to ninth aspects.

若依據上記的構成,則可使得用來特定抽出影像所需之處理高速化。According to the above-mentioned structure, the processing required for extracting a specific image can be accelerated.

又,第11態樣所述之影像處理系統(X1),係進行複數次影像搜尋,從對象影像之中,探索出含有模型影像之特徵的影像也就是抽出影像。令k為自然數之變數。令N、M為自然數之定數且M大於N。在第1次的影像搜尋中,係從第1壓縮率之對象影像之中,探索出第1候補影像,將第1候補影像,加入至抽出影像之候補。第1候補影像,係含有第1壓縮率之模型影像之特徵。在第k+1次的影像搜尋中,係從壓縮率小於第k壓縮率的第k+1壓縮率之對象影像之中,限縮出第k+1次的影像搜尋用的預備候補。第k+1次的影像搜尋用的預備候補,係含有第k次的影像搜尋中所被求出之抽出影像之候補。然後,在第k+1次的影像搜尋中,係從第k+1次的影像搜尋用的預備候補之中,探索出第k+1候補影像,將第k+1候補影像,加入至抽出影像之新的候補。第k+1候補影像,係含有第k+1壓縮率之模型影像之特徵。影像處理系統(X1)係具備:搜尋處理部(S1)、取得部(51)、子探索部(52)。搜尋處理部(S1),係進行複數次影像搜尋。取得部(51),係取得表示第N候補影像與子候補影像之相關的相關資訊。子探索部(52),係基於第N次的影像搜尋中所被求出之第N候補影像、與已被取得部(51)所取得之相關資訊,而求出子候補影像,將子候補影像,加入至第M次的影像搜尋用的預備候補。In addition, the image processing system (X1) described in the eleventh aspect performs a plurality of image searches to find an image containing the characteristics of the model image from the target image, that is, to extract the image. Let k be a variable of natural numbers. Let N and M be definite numbers of natural numbers and M is greater than N. In the first image search, the first candidate image is found from the target image with the first compression rate, and the first candidate image is added to the candidates for the extracted image. The first candidate image contains the characteristics of the model image with the first compression rate. In the k+1-th image search, preliminary candidates for the k+1-th image search are narrowed out from target images with a compression rate of k+1 that is smaller than the k-th compression rate. The preliminary candidates for the k+1-th image search include candidates for the extracted images found in the k-th image search. Then, in the k+1th image search, the k+1th candidate image is discovered from the preliminary candidates for the k+1th image search, and the k+1th candidate image is added to the extracted A new candidate for the image. The k+1th candidate image contains the characteristics of the model image with the k+1th compression rate. The image processing system (X1) includes a search processing unit (S1), an acquisition unit (51), and a sub-exploration unit (52). The search processing unit (S1) performs multiple image searches. The acquisition unit (51) acquires relevant information indicating the correlation between the Nth candidate image and the sub-candidate image. The sub-exploration part (52) obtains the sub-candidate images based on the N-th candidate image obtained in the N-th image search and the related information obtained by the acquisition part (51), and converts the sub-candidate images into The image is added to the preliminary candidates for the M-th image search.

若依據上記的構成,則可使得用來特定抽出影像所需之處理高速化。According to the above-mentioned structure, the processing required for extracting a specific image can be accelerated.

不限於上記態樣,實施形態所述之影像處理系統(X1)之各種構成(包含變形例),都可藉由影像處理方法及程式而具體實現。Not limited to the above aspects, various structures (including variations) of the image processing system (X1) described in the implementation aspects can be specifically implemented by image processing methods and programs.

S1:搜尋處理部 X1:影像處理系統 1:第1搜尋部 2:第2搜尋部 3:第3搜尋部 4:第4搜尋部 51:取得部 52:子探索部 53:生成處理部 54:記憶部 55:控制部 56:影像加工部 61:攝像部 62:驅動機構 63:操作部S1:Search processing department X1:Image processing system 1:Search Department 1 2:Second Search Department 3:Search Department 3 4:Search Department 4 51: Acquisition Department 52: Sub-exploration department 53:Generation processing department 54:Memory Department 55:Control Department 56:Image processing department 61:Camera Department 62:Driving mechanism 63:Operation Department

[圖1]圖1係為一實施形態所述之影像處理方法的流程圖。 [圖2]圖2係為實現同上之影像處理方法的影像處理系統的區塊圖。 [圖3]圖3係為同上之影像處理方法之第1例中所被使用的第1壓縮率之模型影像。 [圖4]圖4係為同上之影像處理方法之第1例中所被使用的第1壓縮率之對象影像。 [圖5]圖5係為同上之影像處理方法之第1例中所被使用的第4壓縮率之模型影像。 [圖6A]圖6A係為同上之影像處理方法之第1例中所被使用的第4壓縮率之對象影像。 [圖6B]圖6B係為同上之影像處理方法之第1例中所被使用的第4壓縮率之對象影像。 [圖7]圖7係為同上之影像處理方法之第2例中所被使用的模型影像。 [圖8]圖8係為同上之影像處理方法之第2例中所被使用的對象影像。[Figure 1] Figure 1 is a flow chart of an image processing method according to an embodiment. [Figure 2] Figure 2 is a block diagram of an image processing system for implementing the above image processing method. [Figure 3] Figure 3 is a model image of the first compression rate used in the first example of the above image processing method. [Figure 4] Figure 4 is an object image of the first compression rate used in the first example of the above image processing method. [Figure 5] Figure 5 is a model image of the fourth compression rate used in the first example of the above image processing method. [Figure 6A] Figure 6A is an object image of the fourth compression rate used in the first example of the above image processing method. [Figure 6B] Figure 6B is an object image of the fourth compression rate used in the first example of the above image processing method. [Figure 7] Figure 7 is a model image used in the second example of the above image processing method. [Figure 8] Figure 8 is an object image used in the second example of the above image processing method.

Claims (11)

一種影像處理方法,係為進行複數次影像搜尋,從對象影像之中,探索出含有模型影像之特徵的影像也就是抽出影像的影像處理方法,其中,令k為自然數之變數,令N、M為自然數之定數且M大於N;在第1次的前記影像搜尋中,係從第1壓縮率的前記對象影像之中,探索出含有前記第1壓縮率的前記模型影像之特徵的第1候補影像,將前記第1候補影像,加入至前記抽出影像之候補;在第k+1次的前記影像搜尋中,從壓縮率小於第k壓縮率的第k+1壓縮率的前記對象影像之中,限縮出含有第k次的前記影像搜尋中所被求出之前記抽出影像之候補的第k+1次的前記影像搜尋用的預備候補,從第k+1次的前記影像搜尋用的前記預備候補之中,探索出含有前記第k+1壓縮率的前記模型影像之特徵的第k+1候補影像,將前記第k+1候補影像,加入至前記抽出影像之新的候補;前記影像處理方法係含有:搜尋處理,係進行複數次前記影像搜尋;和取得處理,係取得表示第N候補影像與子候補影像之相關的相關資訊;和子探索處理,係基於第N次的前記影像搜尋中所被求出之第N候補影像、與前記取得處理中所被取得之前記相關資訊,而求出前記子候補影像,將前記子候補影像, 加入至第M次的前記影像搜尋用的前記預備候補;前記子候補影像係為,相對於前記第N候補影像而被辨識成旋轉對稱之影像。 An image processing method is an image processing method that performs multiple image searches to find images containing the characteristics of the model image from the target image, that is, to extract the image. Among them, let k be a natural number variable, let N, M is a definite number of natural numbers and M is greater than N; in the first search of the prefix image, the characteristics of the prefix model image containing the first compression rate are found from the prefix target image of the first compression rate. For the first candidate image, add the first candidate image mentioned above to the candidates for the extracted image; in the k+1th foregoing image search, the first candidate image is selected from the k+1th compression rate object whose compression rate is smaller than the kth compression rate. Among the images, the preliminary candidates for the k+1th foreword image search including candidates for the preamble extraction image found in the kth foreword image search are narrowed down, and the preliminary candidates for the k+1th foreword image are Among the preliminary candidates for searching, find the k+1th candidate image that contains the characteristics of the preceding model image with the k+1th compression rate mentioned above, and add the k+1th candidate image mentioned above to the new extracted image of the preceding paragraph. candidate; the aforementioned image processing method includes: search processing, which performs a plurality of searches for the aforementioned image; and acquisition processing, which obtains relevant information indicating the correlation between the N-th candidate image and the sub-candidate image; and sub-exploration processing, which is based on the N-th candidate image The Nth candidate image obtained in the search for the prefix image and the prefix related information obtained in the prefix acquisition process are used to obtain the prefix sub-candidate image, and the prefix sub-candidate image is obtained. The first candidate is added to the Mth previous image search; the first sub-candidate image is an image recognized as rotationally symmetrical with respect to the Nth candidate image. 如請求項1所記載之影像處理方法,其中,前記相關資訊係含有:關於前記第N候補影像與前記子候補影像之旋轉角度差之資訊。 As described in claim 1, the image processing method, wherein the aforementioned related information includes: information about the rotation angle difference between the aforementioned Nth candidate image and the aforementioned sub-candidate image. 如請求項2所記載之影像處理方法,其中,還含有:生成處理,係基於前記模型影像之被攝體之旋轉對稱性,而生成關於前記旋轉角度差之資訊。 The image processing method described in claim 2 further includes: generating processing to generate information about the rotation angle difference based on the rotational symmetry of the object in the aforementioned model image. 如請求項1~3之任一項所記載之影像處理方法,其中,還含有:相關資訊決定處理,係隨應於使用者之操作而決定前記相關資訊。 The image processing method described in any one of claim items 1 to 3 further includes: related information determination processing, which determines the aforementioned related information in response to the user's operation. 如請求項1~3之任一項所記載之影像處理方法,其中,還含有:範圍擴張處理,係將複數個旋轉影像其係分別為將前記第k候補影像或前記子候補影像在0度至設定角度以下之範圍內做階段性旋轉而成的影像,加入至第k+1次的前記影像搜尋用的前記預備候補;和設定處理,係將關於前記設定角度之資訊,加以取得。 The image processing method as described in any one of claims 1 to 3, which further includes: range expansion processing, which is to rotate a plurality of rotated images, which are respectively the aforementioned k-th candidate image or the aforementioned sub-candidate image at 0 degrees. The image formed by performing stepwise rotation within the range below the set angle is added to the foregoing candidate for the k+1th foregoing image search; and the setting process is to obtain information about the foregoing set angle. 如請求項5所記載之影像處理方法,其中,還含有:設定角度決定處理,係隨應於使用者之操作而決定前記設定角度。 The image processing method described in Claim 5 further includes: a setting angle determination process that determines the setting angle in response to the user's operation. 如請求項1~3之任一項所記載之影像處理方法,其中,N=1。 An image processing method as described in any one of claim items 1 to 3, wherein N=1. 如請求項1~3之任一項所記載之影像處理方法,其中,在前記搜尋處理中,是將前記影像搜尋進行3次以上。 The image processing method described in any one of Claims 1 to 3, wherein in the preamble search processing, the preamble image search is performed three or more times. 如請求項1~3之任一項所記載之影像處理方法,其中,前記影像處理方法,係基於1個前記模型影像而探索前記抽出影像。 An image processing method as described in any one of claim items 1 to 3, wherein the aforementioned image processing method is to explore the aforementioned extracted image based on a aforementioned model image. 一種影像處理程式,係用來令1個以上的處理器,執行如請求項1~9之任一項所記載之影像處理方法。 An image processing program is used to cause more than one processor to execute the image processing method described in any one of claims 1 to 9. 一種影像處理系統,係為進行複數次影像搜尋,從對象影像之中,探索出含有模型影像之特徵的影像也就是抽出影像的影像處理系統,其中,令k為自然數之變數,令N、M為自然數之定數且M大於N;在第1次的前記影像搜尋中,係從第1壓縮率的前記對 象影像之中,探索出含有前記第1壓縮率的前記模型影像之特徵的第1候補影像,將前記第1候補影像,加入至前記抽出影像之候補;在第k+1次的前記影像搜尋中,從壓縮率小於第k壓縮率的第k+1壓縮率的前記對象影像之中,限縮出含有第k次的前記影像搜尋中所被求出之前記抽出影像之候補的第k+1次的前記影像搜尋用的預備候補,從第k+1次的前記影像搜尋用的前記預備候補之中,探索出含有前記第k+1壓縮率的前記模型影像之特徵的第k+1候補影像,將前記第k+1候補影像,加入至前記抽出影像之新的候補;前記影像處理系統係具備:搜尋處理部,係進行複數次前記影像搜尋;和取得部,係取得表示第N候補影像與子候補影像之相關的相關資訊;和子探索部,係基於第N次的前記影像搜尋中所被求出之第N候補影像、與已被前記取得部所取得之前記相關資訊,而求出前記子候補影像,將前記子候補影像,加入至第M次的前記影像搜尋用的前記預備候補;前記子候補影像係為,相對於前記第N候補影像而被辨識成旋轉對稱之影像。 An image processing system is an image processing system that performs multiple image searches to find images containing the characteristics of model images from target images, that is, to extract images. Among them, let k be a natural number variable, let N, M is a definite number of natural numbers and M is greater than N; in the first preamble image search, the preamble pair of the first compression rate is Among the image images, the first candidate image containing the characteristics of the aforementioned model image with the first compression rate is discovered, and the first candidate image is added to the candidates of the aforementioned extracted images; in the k+1th search for the aforementioned image , from the k+1th compression target image with a compression rate smaller than the k-th compression rate, limit the k+th candidate image containing the prefix extraction image found in the k-th preceding image search. From the preliminary candidates for the k+1th preamble image search, the k+1 th preamble model image containing the characteristics of the preamble model image with the k+1th compression rate is searched out. The candidate image adds the k+1th candidate image mentioned above to the new candidate of the extracted image mentioned above; the image processing system mentioned above includes: a search processing unit that performs a plurality of searches for the aforementioned image; and an acquisition unit that obtains the Nth candidate image. The relevant information related to the candidate image and the sub-candidate image; and the sub-exploration part is based on the N-th candidate image found in the N-th foreshadowing image search and the foregoing relevant information obtained by the foregoing acquisition part, and Obtain the prefix sub-candidate image, and add the prefix sub-candidate image to the prefix sub-candidates for the Mth prefix image search; the prefix sub-candidate image is an image recognized as rotationally symmetrical with respect to the N-th candidate image of the prefix .
TW110105725A 2020-05-28 2021-02-19 Image processing method, program, and image processing system TWI836187B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2020093719A JP7496546B2 (en) 2020-05-28 2020-05-28 IMAGE PROCESSING METHOD, PROGRAM, AND IMAGE PROCESSING SYSTEM
JP2020-093719 2020-05-28

Publications (2)

Publication Number Publication Date
TW202145145A TW202145145A (en) 2021-12-01
TWI836187B true TWI836187B (en) 2024-03-21

Family

ID=78728160

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110105725A TWI836187B (en) 2020-05-28 2021-02-19 Image processing method, program, and image processing system

Country Status (4)

Country Link
JP (1) JP7496546B2 (en)
KR (1) KR102609108B1 (en)
CN (1) CN113744180A (en)
TW (1) TWI836187B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930858A (en) * 2016-04-06 2016-09-07 吴晓军 Fast high-precision geometric template matching method enabling rotation and scaling functions

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0737893B2 (en) * 1992-07-24 1995-04-26 松下電器産業株式会社 Pattern matching method
JPH1021389A (en) * 1996-07-03 1998-01-23 Mitsubishi Electric Corp Template matching method and device for the method
CN1161710C (en) * 1998-05-18 2004-08-11 数据立方公司 Image tecognition and correlation system
JP4598887B2 (en) * 2001-09-28 2010-12-15 株式会社キーエンス Pattern matching method using pyramid structure search, image detection circuit, image processing program, and computer-readable storage medium
JP4670722B2 (en) 2006-04-24 2011-04-13 パナソニック電工株式会社 Image processing device
WO2014002813A1 (en) 2012-06-26 2014-01-03 コニカミノルタ株式会社 Image processing device, image processing method, and image processing program
RU2530220C1 (en) 2013-03-18 2014-10-10 Корпорация "САМСУНГ ЭЛЕКТРОНИКС Ко., Лтд." System and method for automatic detection of anatomical points in three-dimensional medical images
JP6642968B2 (en) 2014-03-20 2020-02-12 キヤノン株式会社 Information processing apparatus, information processing method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930858A (en) * 2016-04-06 2016-09-07 吴晓军 Fast high-precision geometric template matching method enabling rotation and scaling functions

Also Published As

Publication number Publication date
JP7496546B2 (en) 2024-06-07
CN113744180A (en) 2021-12-03
JP2021189697A (en) 2021-12-13
KR20210147863A (en) 2021-12-07
KR102609108B1 (en) 2023-12-01
TW202145145A (en) 2021-12-01

Similar Documents

Publication Publication Date Title
US20210158017A1 (en) Method for 3d object recognition based on 3d primitives
Fuhrmann et al. Mve-a multi-view reconstruction environment.
US11620757B2 (en) Dense optical flow processing in a computer vision system
US20210044787A1 (en) Three-dimensional reconstruction method, three-dimensional reconstruction device, and computer
CN111080776B (en) Human body action three-dimensional data acquisition and reproduction processing method and system
WO2021178419A1 (en) Method and system for performing image segmentation
US11682212B2 (en) Hierarchical data organization for dense optical flow processing in a computer vision system
WO2018080533A1 (en) Real-time generation of synthetic data from structured light sensors for 3d object pose estimation
US7113652B2 (en) System and method for using normalized gray scale pattern find
US9171227B2 (en) Apparatus and method extracting feature information of a source image
TWI836187B (en) Image processing method, program, and image processing system
Pintus et al. A fast and robust framework for semiautomatic and automatic registration of photographs to 3D geometry
CN117612153A (en) Three-dimensional target identification and positioning method based on image and point cloud information completion
CN110827309B (en) Super-pixel-based polaroid appearance defect segmentation method
Selver A robotic system for warped stitching based compressive strength prediction of marbles
DE102018129135A1 (en) USE OF REST VIDEO DATA RESULTING FROM A COMPRESSION OF ORIGINAL VIDEO DATA TO IMPROVE A DECOMPRESSION OF ORIGINAL VIDEO DATA
JPH0962838A (en) High speed pattern matching method
CN114463405A (en) Method, device and system for accelerating surface scanning line laser 3D camera and FPGA
CN114638748A (en) Image processing method, image restoration method, computer device, and storage medium
Rahal et al. Object oriented structure from motion: Can a scribble help?
Bieron et al. Single Image Neural Material Relighting
US20230196523A1 (en) Image Dewarping Device and Method
CN112967398B (en) Three-dimensional data reconstruction method and device and electronic equipment
Nguyen Lightweight Low-Poly Photogrammetry with Object Classification Validation Using OpenCV and PointNet
Dudhane et al. Dynamic Pre-training: Towards Efficient and Scalable All-in-One Image Restoration