201044099 六、發明說明: 【發明所屬之技術領Μ [0001] 本發明涉及一種取像裝置及偵測物體運動的方法。 [先前技術] [0002] 隨著3D遊戲的發展,使用傳統的遙控器、鍵盤或/骨氣等 [0003] 來操縱遊戲有點落伍’越來越希望能身臨其境地參與到 遊戲中去。 先前技術中採用紅外線反射技術偵測物體的運動方向’ 〇 其包括發射紅外光的發射器和一個.接受紅外光的接收器 ,物體上貼上具有反射紅外光功能的反射裝置。發光二 極體發出的紅外光被物體上的反射裂置反射後被接收器 所接收,根據接收到紅外光的時間差可以偵測到物體的 運動方向和運動形態。但是’採用該方法需要發出紅外 線,並且物體需要附帶反射裝置,從而使得該方法較為 複雜。 Q [〇〇〇4] 【發明内容】 有鑒於此,有必要提供一種結構簡單取像裝置及偵測物 體運動的方法。 [0005] 種取像裝置’其包括鏡頭模組和影像感測器,光線通 過所述鏡頭模組後在所述影像感測器上成像,所述鏡頭 模組保留至少兩種波長光線的縱向色差。 [0006] —種债測物體運動的方法,其包括以下步驟:在非單_ 波長光源的照射下,在L,湘取縣置取得物 體的第-㈣,所述取像裝置包括鏡頭模組和影像感測 098118390 表單編號A0101 第3頁/共10頁 0982031179-0 201044099 器,所述鏡頭模組保留兩種波長光線的縱向色差,不同 波長的光線對應不同最佳物平面;比較第一影像中第一 波長光線的影像和第二波長光線的影像的清晰度以判斷 物體靠近第一波長光線的最佳物平面或第二波長光線的 最佳物平面;在非單一波長光源的照射下,在第二時間 ,利用取像裝置取得物體的第二影像;比較第二影像中 第一波長光線的影像和第二波長光線的影像的清晰度以 判斷物體靠近第一波長光線的最佳物平面或第二波長光 線的最佳物平面;根據第一時間和第二時間物體的位置 關係得出物體運動方向。 [0007] 與先前技術相比,本發明實施例利用鏡頭模組保留兩種 光線色差的特性,使得非單一波長光源中不同波長的光 線在影像感測器的影像具有清晰度具有差別,通過比較 同一位置上兩種波長光線影像的清晰度以判斷物體所在 位置與取向裝置之間的距離,進而可以偵測物體的運動 方向,因此,該方法簡單。 【實施方式】 [0008] 下面將結合附圖對本發明作進一步詳細說明。 [0009] 如圖1所示,本發明取像裝置10包括鏡頭模組11、影像感 測器12和影像處理單元13,該取像裝置用來偵測物體20 的運動方向。201044099 VI. Description of the Invention: [Technology] [0001] The present invention relates to an image capturing device and a method of detecting motion of an object. [Prior Art] [0002] With the development of 3D games, it is a bit out of date to use traditional remote controls, keyboards, or bones [0003] to manipulate games. It is increasingly desirable to be able to participate in the game in an immersive manner. In the prior art, infrared reflection technology is used to detect the moving direction of an object. 〇 It includes a transmitter that emits infrared light and a receiver that receives infrared light, and a reflective device that reflects infrared light is attached to the object. The infrared light emitted by the LED is reflected by the reflection on the object and received by the receiver. The direction of motion and motion of the object can be detected according to the time difference of the received infrared light. However, the method requires infrared rays to be emitted, and the object needs to be attached with a reflecting device, which makes the method more complicated. Q [〇〇〇4] [Summary of the Invention] In view of the above, it is necessary to provide a structure simple image capturing device and a method of detecting object motion. [0005] The image capturing device includes a lens module and an image sensor. The light is imaged on the image sensor after passing through the lens module, and the lens module retains a longitudinal direction of at least two wavelengths of light. Color difference. [0006] A method for measuring the motion of an object, comprising the steps of: in the illumination of a non-single-wavelength source, in the L, the acquisition of the object - (four), the image capturing device comprises a lens module And image sensing 098118390 Form No. A0101 Page 3 / 10 pages 0982031179-0 201044099, the lens module retains the longitudinal chromatic aberration of the two wavelengths of light, the different wavelengths of light correspond to different optimal object plane; compare the first image The image of the first wavelength of light and the image of the second wavelength of light are used to determine the optimal object plane of the object near the first wavelength or the optimal object plane of the second wavelength of light; under illumination of a non-single wavelength source, In the second time, the second image of the object is obtained by using the image capturing device; the image of the first wavelength light and the image of the second wavelength light in the second image are compared to determine an optimal object plane of the object near the first wavelength light. Or the optimal object plane of the second wavelength ray; the direction of motion of the object is obtained according to the positional relationship of the object at the first time and the second time. Compared with the prior art, the embodiment of the present invention utilizes the lens module to preserve the characteristics of two kinds of light chromatic aberrations, so that the light of different wavelengths in the non-single-wavelength light source has different definitions in the image of the image sensor, by comparing The sharpness of the two wavelengths of the light image at the same position can be used to determine the distance between the position of the object and the orientation device, thereby detecting the direction of motion of the object. Therefore, the method is simple. [Embodiment] The present invention will be further described in detail below with reference to the accompanying drawings. As shown in FIG. 1, the image capturing apparatus 10 of the present invention includes a lens module 11, an image sensor 12, and an image processing unit 13, which is used to detect the moving direction of the object 20.
[0010] 鏡頭模組11可以保留任意兩種波長的光線的縱向色差, 而消除其他光線的縱向色差,例如保留藍光色差和紅光 的色差。鏡頭模組11包括複數鏡片,至少一個鏡片為高 色散材料製成,如聚礙酸酯(polycarbonate,簡稱PC 098118390 表單編號A0101 第4頁/共10頁 0982031179-0 201044099[0010] The lens module 11 can retain the longitudinal chromatic aberration of light of any two wavelengths, and eliminate the longitudinal chromatic aberration of other rays, such as the chromatic aberration of blue chromatic aberration and red light. The lens module 11 includes a plurality of lenses, and at least one of the lenses is made of a high-dispersion material, such as a polycarbonate (referred to as PC 098118390, Form No. A0101, Page 4 of 10, 0982031179-0 201044099)
[0011] [0012] Ο 、 [0013] [0014] ❾ [0015] 影像感測器 12可以為CCD(Charge c〇upled Device, 電荷耦合器件)影像感測器或者CM〇s (c〇mplenientary Metal Oxide Semiconductor,互補金屬氧化物半導 體)影像感測器。 物體20在自然光照射下,經過鏡頭模組丨丨後成像在影像 感測器12上。由於自然光是多波長的光線,各種波長的 光線對應的焦距不同,所以,光線所成像的位置就不同 ,按照波長由短到長,像點離開鏡頭模組u由近到遠地 排列在光轴上。 當然,也可以採用至少兩種顏色光線的混合光照射物體 2〇 ’即採用非單一波長光源照射。 因此,為使得不同波長的光線在同一位置得到清晰的像 點’那麼’不同的光線應該距離鏡頭模組11有不同的距 離,按照波長由短到長,相.應波長的物點離開鏡頭模組 11由近到遠地排列在光軸上,即波長越長距離鏡頭彳莫級 11越遠,波長越短距離鏡頭模組11越近。 為摇述方便,定義在某一個位置波長的光線得到清晰$ 像時,該位置為該波長光線的最佳物平面。相對於短& 長(例如藍光)光線和長波長(例如紅光)光線分別步 及短波長最佳物平面和長波長最佳物平面。 例如’在時間1,影像感測器12得到位於A點的物趙2〇 影像 ^ 098118390 表單編號A0101[0012] [0014] The image sensor 12 may be a CCD (Charge C〇upled Device) image sensor or a CM〇s (c〇mplenientary Metal) Oxide Semiconductor, Complementary Metal Oxide Semiconductor) Image Sensor. The object 20 is imaged on the image sensor 12 after being irradiated by natural light through the lens module. Since natural light is multi-wavelength light, the focal lengths of light of different wavelengths are different, so the position where the light is imaged is different, according to the wavelength from short to long, the image points are separated from the lens module u from near to far on the optical axis. . Of course, it is also possible to illuminate the object with a mixture of at least two colors of light, i.e., using a non-single wavelength source. Therefore, in order to make the light of different wavelengths get clear image points at the same position, then the different light should have different distances from the lens module 11, according to the wavelength from short to long, the object point of the wavelength should leave the lens mode. The group 11 is arranged on the optical axis from near to far, that is, the longer the wavelength is, the farther the lens is from the step 11, the shorter the wavelength is, the closer it is to the lens module 11. For the convenience of the description, when the light of a certain wavelength is defined to obtain a clear image, the position is the optimal object plane of the light of the wavelength. Relative to short & long (e.g., blue) light and long wavelength (e.g., red) light, respectively, a short wavelength optimal object plane and a long wavelength optimum object plane. For example, 'At time 1, image sensor 12 gets the object at point A. Zhao 2〇 image ^ 098118390 Form No. A0101
Pi 第5頁/共10頁 〇982〇31179~〇 [0016] 201044099 ,影像處理單元13將影像Pi Page 5 of 10 〇982〇31179~〇 [0016] 201044099, image processing unit 13 will image
Pi 中藍光的影像和紅光的影像提取,然後將藍光的影像和 紅光的影像分別進行傅立葉轉換,然後根據轉換結果得 知藍光的影像較紅光的影像清晰,此時可得出,物體20 應該靠近藍光的最佳物平面,由於藍光的波長短,因此 ,物體20靠近鏡頭模組11,也就是靠近取像裝置10。 [0017] 在時間2,影像感測器12得到位於B點的物體20的影像, 影像處理單元13將影像 〇 P2 中藍光的影像和紅光的影像提取,然後將藍光的影像和 紅光的影像分別進行傅立葉轉換,然後根據轉換結果得 知紅光的影像較紅光的藍光的像清晰,此時可得出,物 體20應該靠近紅光的最佳物平面,由於紅光的波長比藍 光的波長要長,因此,位置B相對於位置A遠離鏡頭模組 11,也就是遠離取像裝置10。此可判斷出,物體向遠離 ϋ 取像裝置10的方向運動。 [0018] 如果,在影像The image of the blue light in the Pi and the image of the red light are extracted, and then the image of the blue light and the red light are respectively subjected to Fourier transform, and then according to the conversion result, the image of the blue light is clearer than the red light image, and the object can be obtained at this time. 20 should be close to the optimal object plane of the blue light. Since the wavelength of the blue light is short, the object 20 is close to the lens module 11, that is, close to the image capturing device 10. [0017] At time 2, the image sensor 12 obtains an image of the object 20 located at point B, and the image processing unit 13 extracts the image of the blue light and the red light of the image 〇P2, and then images the blue light and the red light. The image is separately subjected to Fourier transform, and then according to the conversion result, the image of the red light is clearer than the image of the red light of the red light. At this time, it can be concluded that the object 20 should be close to the optimal object plane of the red light, because the wavelength of the red light is blue light. The wavelength is longer, and therefore, the position B is away from the lens module 11 with respect to the position A, that is, away from the image taking device 10. It can be judged that the object moves in a direction away from the image pickup device 10. [0018] If, in the image
Pi 中,紅光的影像較藍光的影像清晰,則位置A遠離取像裝 置10 ;在影像 P2 中,藍光的影像較紅光的影像清晰,則位置B靠近取像裝 098118390 表單編號A0101 第6頁/共10頁 0982031179-0 201044099 [⑻ 19] [0020] Ο [0021] [0022] 〇 [0023] 置10,那麼,物體20向靠近取像裝置1〇的方向運動。 當然,也可以採用 CTF (Contrast Transfer Function , 對比傳遞函數 ) 值或者 MTf (Modulati〇n Transfer Function,調製傳遞函數)值表示影像的清 晰度。 另外,本領域技術人員還可以在本發明精神内做其他變 化,當然,這些依據本發明精神所做的變化,都應包含 在本發明所要求保遵的範圍之内。 綜上所述,本發明確简合發明專利之要件,遂依法提 出專利中請。惟,以上所述者僅為本發明之較佳實施方 式,自不能以此限制本案之申請專利範圍,舉凡熟悉本 案技藝之人士援依本發明之精神所作之等效修飾或變化 ,皆應涵蓋於以下申請專利範圍内。 【圖式簡單說明】 圖1是利用本發明實施例取像裝置偵測物體運動的示意圖 【主要元件符號說明】 ---------——_ 取像裝置 ----------—— 10 鏡頭模組 -----—--—^ 11 影像感測器 ------------------ 影像處理單元 * — ' ~| 12 13 物體 --—----— -- 20 L-- 098118390 表單編號A0101 第7頁/共1〇頁 0982031179-0In the Pi, the red light image is clearer than the blue light image, and the position A is far away from the image capturing device 10; in the image P2, the blue light image is clearer than the red light image, and the position B is close to the image capturing device 098118390. Form No. A0101 No. 6 Page / Total 10 pages 0982031179-0 201044099 [(8) 19] [0020] 002 [0023] 10 [0023] 10, then, the object 20 moves in the direction close to the image taking device 1 。. Of course, the CTF (Contrast Transfer Function) value or the MTf (Modulati〇n Transfer Function) value can also be used to indicate the sharpness of the image. In addition, those skilled in the art can make other changes in the spirit of the present invention. Of course, the changes made in accordance with the spirit of the present invention should be included in the scope of the present invention. In summary, the present invention is indeed a simple element of the invention patent, and the patent is requested in accordance with the law. However, the above description is only a preferred embodiment of the present invention, and the scope of the patent application is not limited thereto, and equivalent modifications or variations made by those skilled in the art to the spirit of the present invention should be covered. It is within the scope of the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of detecting an object motion by an image capturing apparatus according to an embodiment of the present invention. [Main component symbol description] ---------——_ Image capturing device ------ ----—— 10 Lens Module---------^ 11 Image Sensor ------------------ Image Processing Unit* — ' ~ 12 13 Object-------- -- 20 L-- 098118390 Form No. A0101 Page 7 of 1 Page 0982031179-0