200915145 九、發明說明: 【發明所屬之技術領域】 本發明有關於一種光學位移偵測裝置及方法,其可根 據所偵測之物件反射光狀況來適應性地調整光源光譜,以 達到更精確的位移偵測結果。 【先前技術】 光學位移偵測裝置有各種應用方式,其中最常見的應 用方式就是光學滑鼠。在光學滑鼠中,光源發出的光線被 導引至桌面或其他表面,反射後為滑鼠内部的感測晶片所 接收’感測晶片將光學訊號轉換為電子訊號輸出,再由後 級處理器針對電子訊號加以運算,以決定滑鼠的位移。 光學滑鼠可概分為兩類,一種係使用一般發光二極體 (最常見為紅光二極體)來發光;另一種為雷射滑鼠,使 用雷射二極體來發光。本說明書文中,使用一般發光二極 體的滑鼠稱為「-般辨滑鼠」;使时射二鐘的滑鼠稱 為「雷射滑鼠」;兩者總稱「光學滑鼠」。 一般光學滑鼠和雷射滑鼠兩者的基本工作原理相同, 但其差別在於光_賴,以及騎偵·_辨識力。 身又光予⑺鼠主要在辨識所偵測表面的圖案,雷射滑鼠則 主要在辨識所_表面的粗糙度。因此,兩種滑鼠都各有 其辨識上的優點與弱點。 詳言之,就-般光學滑氣而言,當受债測表面的顏色 與發光4_顏色相近時’由於光線散射(嫌邮過 強’相對地’感測晶片對受偵測表面的圖案紋理差異,敏 200915145 感度便會降低,科易萃取出正確轉 夠顯著,後續的位移計算也就容易產生錯誤:'。特徵不200915145 IX. Description of the Invention: [Technical Field] The present invention relates to an optical displacement detecting device and method, which can adaptively adjust a spectrum of a light source according to a detected light condition of an object to achieve a more accurate Displacement detection results. [Prior Art] Optical displacement detecting devices have various application methods, and the most common application method is an optical mouse. In an optical mouse, the light from the light source is directed to a tabletop or other surface. After reflection, the sensing chip inside the mouse receives the 'sensing chip, which converts the optical signal into an electronic signal output, and then the latter processor. The electronic signal is calculated to determine the displacement of the mouse. Optical mice can be divided into two categories, one using a general light-emitting diode (most commonly a red light diode) to emit light; the other is a laser mouse, which uses a laser diode to emit light. In this manual, a mouse that uses a general light-emitting diode is called a "normal mouse"; a mouse that shoots two hours is called a "laser mouse"; the two are collectively called "optical mouse." The basic working principle of both the optical mouse and the laser mouse is the same, but the difference lies in the light _ _, and the riding _ _ discriminating power. The body is also given the pattern of the detected surface, and the laser mouse is mainly to identify the roughness of the surface. Therefore, both types of mice have their own advantages and weaknesses in identification. In more detail, in the case of general optical slippery, when the color of the surface of the debt measurement is close to the color of the illuminating 4_' due to light scattering (sense is too strong 'relatively' senses the pattern of the wafer on the detected surface Texture difference, Min 200915145 sensitivity will be reduced, Ke Yi extraction is correct enough to turn significant, subsequent displacement calculation is easy to produce errors: '. Features are not
:射滑鼠而言,當受偵測表面的二度不足時 使有很b晰的圖案,也可能產生誤判。 P 美_彳第6,船,㈣餘提出—觀縣源強 乍法,但改變光源強度並不能解決前述問題。 、 本案係針對以上先前技術的缺點,提出解決之道。 【發明内容】 本發明之第一目的在提供一種光學位移偵測裝置,其 :根據所偵測之物件反射光狀況來適應性地調整光源ς 睹’以達到更精確的位移偵測結果。 本發明之第二目的在提供一種相關的光學位移偵測方 法。 ' 為達上述之目的,就本發明的其中一個觀點而言,提 供了-種光學位移細懷置,包含:至少兩個光源,可分 別對一受偵測表面投射不同頻譜的光線;影像擷取單元, 其接收從該受偵測表面反射的光線,並將其轉換為電子訊 號’·以及處理控制裝置,其根據影像擷取單元所輸出之電 子號’計算位移。 上述裝置中,光源可以是不同顏色的一般發光二極 體,亦可為一般發光二極體與雷射二極體之組合。 此外,就本發明的另一個觀點而言,提供了一種光學 位移偵測裝置,包含:光源,可對一受偵測表面投射混合 200915145 光,該混合光包括至少兩種不同的主要波長;影像擷取單 元,其接收從该受偵測表面反射的光線,並可根據該不同 的主要波長而轉換為不同的電子訊號;以及處理控制裝 置,其根據影像擷取單元所輸出之電子訊號,計算位移。 上述裝置中,影像擷取單元的内部可設置兩感測電 路’各具林雌色㈣光層,歧各與職的不同顏色 之濾色透鏡搭配,以接收不同波長的光線。 此外,就本發明的再一個觀點而言,提供了一種光學 位移偵測方法,包含:提供至少兩個光源,可分別發射不 同頻譜的絲;以其巾—健紐射親;接收該光線所 構成之影像;判斷該影像之品質;當該影像品質良好時, 使用該影像計算位移;以及當該影像品f不良時,切換另 一個光源發光。 、 上述方法中,當影像中不足以取得有意義的特徵時, 表示影像品質不良。 又,就本發明的再另一個觀點而言,提供了—種光學 位移偵測方法,包含:發射包括至少兩種不同主要波長= 混合光;感測該至少兩種不同波長的光線,以分別掏^該 光線所構成之至少兩個對應影像;至少判斷其中—個^ 的品質’當該影像品質良好時’使用該影像計算位移丨以 及當該影像品質不良時,使用另一影像計算位移。, 、上述方法中,可以同步接收兩個影像、判斷其σ 並根據影像品質相對較佳的訊號來計算位移。戋者σ 一種實施魏中,可以於單-時點僅判斷其中—個影2 7 200915145 品質,當該影像品質不佳時,即切換使用另一影像。 此外,根據本發明的再另一個實施例,也提供一種。: For the mouse, when the second surface of the detected surface is insufficient, it has a very clear pattern, which may also lead to misjudgment. P US _ 彳 6th, ship, (4) Yu proposed - Guanxian source strong 乍 method, but changing the light source strength can not solve the above problems. This case is based on the shortcomings of the above prior art and proposes a solution. SUMMARY OF THE INVENTION A first object of the present invention is to provide an optical displacement detecting device that adaptively adjusts a light source ς 睹 according to a detected light condition of an object to achieve a more accurate displacement detection result. A second object of the present invention is to provide a related optical displacement detecting method. For the purposes of the above, in one aspect of the present invention, an optical displacement arrangement is provided, comprising: at least two light sources respectively projecting different spectra of light onto a detected surface; And taking a unit that receives the light reflected from the detected surface and converts it into an electronic signal '· and a processing control device that calculates the displacement according to the electronic number 'output by the image capturing unit. In the above device, the light source may be a general light emitting diode of different colors, or may be a combination of a general light emitting diode and a laser diode. In addition, in another aspect of the present invention, an optical displacement detecting apparatus includes: a light source capable of projecting and mixing 200915145 light to a detected surface, the mixed light including at least two different main wavelengths; a capturing unit that receives light reflected from the detected surface and converts to different electronic signals according to the different main wavelengths; and a processing control device that calculates the electronic signal output by the image capturing unit Displacement. In the above device, the image sensing unit may be provided with two sensing circuits each having a light color (4) light layer, which is matched with different color filter lenses of different colors to receive light of different wavelengths. In addition, in another aspect of the present invention, an optical displacement detecting method includes: providing at least two light sources, respectively, which can respectively emit different spectrums of filaments; Forming the image; determining the quality of the image; when the image quality is good, using the image to calculate the displacement; and when the image product f is bad, switching the other source to illuminate. In the above method, when the image is insufficient to obtain a meaningful feature, the image quality is poor. Moreover, in still another aspect of the present invention, there is provided an optical displacement detecting method comprising: transmitting at least two different dominant wavelengths = mixed light; sensing at least two different wavelengths of light, respectively掏^ at least two corresponding images composed of the light; at least judge the quality of the one of the 'when the image quality is good', calculate the displacement using the image, and when the image quality is poor, calculate the displacement using another image. In the above method, two images can be simultaneously received, the σ is determined, and the displacement is calculated according to a signal with relatively better image quality. One of the implementations of Wei zhong can only judge the quality of the one-time point at the single-time point. When the image quality is not good, the other image is switched. Further, according to still another embodiment of the present invention, one is also provided.
底下藉由具體實施例詳加說明,當更容易瞭解本發明 之目的、技術内容、特點及其所達成之功效。 X 【實施方式】 請參閱第1圖,此為本發明的第一個實施例。本實施 例所顯示的滑鼠10,在其外殼u之内,提供了兩種光= 12與13 ’可根據需要來切換。此兩光源可以分別為兩種不 同顏色的一般發光二極體,例如紅光與綠光二極體,亦可 為一般發光二極體與雷射二極體之組合。如是紅光與綠光 一極體H号可參閱第2圖;如是一般發光二極體與雷 射二極體,其頻譜可參閱第3圖。如圖所示,使用兩種二 同的發光二極體時,其賴巾之魏細偏她) 度(Iightsensitivity)並不相同。 /、破感 清參閱第1圖並對照第4圖之流程圖,當滑鼠10啟動 時’可任意選擇光源之一,例如選擇光源π (步驟糾)。 f原f所發出的光線’經過第―透鏡14聚光後,通過滑 执外:又上的開孔15,投射在桌面或任意之受偵測表面上 (未不出)°光線經該表面反射後,通過第三透鏡16,而 為:像!1取單元所接收(步驟s42);此影像擷取單元例如 ^ ^、日片17,但也可以為其他能狗擷取影像的裝置。感 測曰曰片η將光學訊號轉換為電子訊號, 電路18進行分析(步驟S43)。 ^ 200915145 當感測晶片17所接收的反射影像,足以萃取出特 日^理^空制電路18即根㈣知方法,來計算滑鼠的位移 (y驟S45)。例如,若光源12為一般發光二極體,可 過比對前後兩張聽_絲計算位移;若光源12為 極體了透過比對刖後兩張影像的粗链度特徵來&曾 移,此部份非為本案重點,在此不贅予說明。 #立 r 表面的顏色與光源12_色相近,以致 日日片Π所接收的反射影像,不足以萃取出特徵時 制電路18即送出訊號,切換至另一個光源13 (步驟: 由於頻譜改變’因此可糊目顏色相近歸過強所造成的 困擾。或是’若光源12為雷射二極體,當受偵測表且 粗糙度以致❹㈣丨7所接收的反娜像,不足以萃 特徵時,處理控制電路18也同樣送出訊號,切換至另一個 光源13 (步驟S46)。當所得的影像足以萃取出特 户 理控制電路18即根據之而計算滑鼠的位移(步驟处 以上所述「萃取特徵」,其方式例如為:根據反射影像 的亮度分布,萃取亮度值之絕對值或相賴大於既定臨限 值的區域’定為特徵。根據前後兩張影像的特徵比對,即 可計算位移。反面言之,當無法取得有意義的特徵時,例 如影像中含有過高或過低比例的特徵區域,即為影像品質 不良。 。 第5Α與5Β圖說明處理控制電路18的内部電路钍 構。若光源12與13同為-般發光二極體時,僅需要一^ 感測電路以及相對應的處理單元181 ; #光源12愈 9 200915145 -般發光二極體與雷射二極體之組合時,則需要能夠感測 一般光線與雷射光之兩組感測電路171、172,以及針對不 同之特徵萃取对’以不同方絲計算娜㈣組處理單 元⑻、182。當然,以上圖示僅為示例,如將兩感測電路 17卜172整合成單一電路,或使用單獨一個處理單元,但 根據不同的軟體程式來運算,都屬可行。 弟6圖示出本發明的另一個實施例。本實施例所顯示 的滑鼠20,僅具有一個光源22。此光源22所發出的光線 為此合光,包括兩種以上的主要波長。例如,光源η可為 白光二極體’或其他可發出混合光的光源。 光源22所發出的光線,經過第一透鏡14聚光後,通 過滑鼠外殼上的開孔15,投射在受偵測表面上(未示出), 再反射回到滑鼠内部。與前一實施例不同地,在本實施例 中影像擷取單元27内設有兩個感測電路271、272,以分 別感測不同波長的光線。感測不同波長光線的方式,例如 可如圖所示設置不同顏色的兩組濾光透鏡161、162,以分 別過滤出所欲的色光。或者,亦可仍採單一透鏡,但在兩 個感測電路271、272中分別設置不同顏色的濾光層(color filter,未示出)。兩個感測電路27卜272感測不同波長光 線’將其轉換為電子訊號,傳遞給處理控制電路18。處理 控制電路18可以根據其中一個感測電路的訊號,來計算滑 鼠的位移。詳言之,在其中一種實施型態中,處理控制電 路18可以同步接收兩個感測電路271、272的訊號,並根 據影像品質相對較佳的訊號來計算滑鼠的位移。或者,在 200915145 另一種實施型態中’處理控制電路18可以切換接收任—個 感測電路的訊號,於單一時點僅根據所接收的感測電路訊 號來判斷其影像的品質,當其中一個感測電路的影像品質 不佳時,即切換至另一個感測電路,如第7圖的步驟 S71-S76 所示。 藉由切換對不同波長光線的感測訊號,本實施例同樣 fThe purpose, technical contents, features and effects achieved by the present invention will be more readily understood by the detailed description of the embodiments. X [Embodiment] Please refer to Fig. 1, which is a first embodiment of the present invention. The mouse 10 shown in this embodiment, within its housing u, provides two types of light = 12 and 13 ' that can be switched as needed. The two light sources may be two kinds of general light-emitting diodes of different colors, such as red light and green light diodes, or a combination of a general light-emitting diode and a laser diode. For example, red and green light can be seen in Figure 2; for general LEDs and laser diodes, the spectrum can be seen in Figure 3. As shown in the figure, when two identical light-emitting diodes are used, the Iightsensitivity of the towel is not the same. /, Sense of sensation Referring to Figure 1 and in contrast to the flowchart of Figure 4, one of the light sources can be arbitrarily selected when the mouse 10 is activated, for example, the light source π is selected (step correction). The light emitted by the original f is condensed by the first lens 14 and then passed through the sliding opening 15 and projected on the table top or any detected surface (not shown). After the reflection, it passes through the third lens 16, and is received by the unit like the !1 step (step s42); the image capturing unit is, for example, the photo film 17, but may be another device capable of capturing images by the dog. The sensing cymbal η converts the optical signal into an electronic signal, and the circuit 18 performs analysis (step S43). ^ 200915145 When the reflected image received by the sensing wafer 17 is sufficiently extracted, the root circuit (four) method is extracted to calculate the displacement of the mouse (y step S45). For example, if the light source 12 is a general light-emitting diode, the displacement can be calculated by comparing the two front and back listening wires; if the light source 12 is a polar body, the thick chain characteristics of the two images are compared. This part is not the focus of this case and will not be explained here. The color of the surface of the #立R is similar to that of the light source 12_, so that the reflected image received by the daytime film is not enough to extract the characteristic time circuit 18 to send the signal, and switch to another light source 13 (step: due to spectrum change' It can be caused by the fact that the color of the paste is too strong or too strong. Or if the light source 12 is a laser diode, when the surface is detected and the roughness is such that the inverse image received by ❹(4)丨7 is insufficient, The processing control circuit 18 also sends a signal to switch to another light source 13 (step S46). When the resulting image is sufficient to extract the special household control circuit 18, the displacement of the mouse is calculated (steps are as described above). The extraction feature is, for example, based on the brightness distribution of the reflected image, and the absolute value of the extracted brightness value or the area corresponding to the predetermined threshold value is determined as a feature. According to the feature comparison of the two images before and after, the calculation can be performed. Displacement. On the other hand, when a meaningful feature cannot be obtained, such as a feature area that contains an image that is too high or too low, the image quality is poor. 5th and 5th drawings The internal circuit structure of the control circuit 18. If the light sources 12 and 13 are the same as the light-emitting diode, only one sensing circuit and the corresponding processing unit 181 are needed; #光光12越9 200915145 When a polar body is combined with a laser diode, two sets of sensing circuits 171 and 172 capable of sensing general light and laser light are required, and a pair of different square wires are used to calculate the Na (four) group processing unit for different feature lines. (8), 182. Of course, the above illustration is only an example, such as integrating the two sensing circuits 17 172 into a single circuit, or using a single processing unit, but according to different software programs, it is feasible. Another embodiment of the present invention is shown. The mouse 20 shown in this embodiment has only one light source 22. The light emitted by the light source 22 is combined for this purpose, including two or more main wavelengths. For example, the light source η It can be a white light diode' or other light source that can emit mixed light. The light emitted by the light source 22 is condensed by the first lens 14 and projected onto the detected surface through the opening 15 in the mouse casing ( Not shown) In the present embodiment, two sensing circuits 271 and 272 are respectively disposed in the image capturing unit 27 to sense light of different wavelengths. The sensing is different. In the manner of wavelength light, for example, two sets of filter lenses 161 and 162 of different colors may be disposed as shown in the figure to filter out the desired color light respectively. Alternatively, a single lens may be used, but in the two sensing circuits 271, Different color filter layers (not shown) are respectively disposed in 272. The two sensing circuits 27 272 sense different wavelengths of light 'converted into electronic signals and transmit them to the processing control circuit 18. Processing control circuit 18 can calculate the displacement of the mouse based on the signal of one of the sensing circuits. In detail, in one embodiment, the process control circuit 18 can synchronously receive the signals of the two sensing circuits 271, 272 and calculate the displacement of the mouse based on the relatively better image quality. Alternatively, in another embodiment of 200915145, the processing control circuit 18 can switch the signals of any of the sensing circuits, and judge the quality of the image based on the received sensing circuit signals at a single time. When the image quality of the circuit is not good, it is switched to another sensing circuit, as shown in steps S71-S76 of FIG. By switching the sensing signals for different wavelengths of light, this embodiment is the same f
可避開因受_表面與光_色相近、散射過騎造成的 困擾。 本發明之絲位移侧裝置及方法不隨使用在滑鼠 中’亦可細於任何以絲方式追雜難置變化的裝置。 以上已針對齡實補來說明本發明,唯以上所述 者’僅係為使縣本技術者祕了解本發賴内容而已, 並非用來限定本發明之權利範圍。對於熟悉本技術者,當 可在本發明精_,立即思及各鮮賴化。舉例而言, 各實施例巾所示之透鏡,鱗絕對必要。又如,所示之各 ?路17、18、171、172、18卜182、183、27卜 272,未必 的方式各自成為獨立的電路,而可以各種方 ί: = :個電路或構成積體電路。除以上所述外,還 變化的可能。故凡依本發明之概念與精神 ^之均^化或修飾,均應包括於本發明之申請專利範 固内。 【圖式簡單說明] 第1圖示出本發明的第—個實施例。 η 200915145 第2圖與第3圖示出使用兩種不同發光二極體時之頻譜。 第4圖示出與第一實施例對應的流程。 第5A與5B圖示出處理控制電路18的兩個實施例。 第6圖示出本發明的另一個實施例。 第7圖示出與第6圖實施例對應的流程。 【主要元件符號說明】 10滑鼠 11滑鼠外殼 12光源 13光源 14第一透鏡 15開孔 16第二透鏡 161, 162濾光透鏡 17感測晶片 171第一感測電路 172第二感測電路 18處理控制電路 181第一處理單元 182第二處理單元 183光源頻譜控制單元 20滑鼠 22混合光源 27影像擷取單元 271第一感測電路 272第二感測電路 S41-S46 步驟 S71-S76 步驟 12It can avoid the trouble caused by the _ surface being close to the light_color and scattering over riding. The wire displacement side device and method of the present invention are not used in a mouse and can be finer than any wire-to-wire device that is difficult to change. The present invention has been described above with respect to the stipulations of the present invention, and the above description is only for the purpose of understanding the content of the present invention, and is not intended to limit the scope of the present invention. For those skilled in the art, when it is possible to clarify in the present invention, it is immediately considered to be different. For example, the lenses shown in the various embodiments are absolutely necessary. For example, each of the illustrated paths 17, 18, 171, 172, 18, 182, 183, and 27 272 may not be independent circuits, but may be various types of circuits: or circuits. Circuit. In addition to the above, there is also the possibility of change. All of the concepts and spirits of the present invention should be included in the scope of the patent application of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 shows a first embodiment of the present invention. η 200915145 Figures 2 and 3 show the spectrum when two different light-emitting diodes are used. Fig. 4 shows the flow corresponding to the first embodiment. 5A and 5B illustrate two embodiments of the process control circuit 18. Fig. 6 shows another embodiment of the present invention. Fig. 7 shows the flow corresponding to the embodiment of Fig. 6. [Main component symbol description] 10 mouse 11 mouse housing 12 light source 13 light source 14 first lens 15 opening 16 second lens 161, 162 filter lens 17 sensing wafer 171 first sensing circuit 172 second sensing circuit 18 Process Control Circuit 181 First Processing Unit 182 Second Processing Unit 183 Light Source Spectrum Control Unit 20 Mouse 22 Mixed Light Source 27 Image Capture Unit 271 First Sensing Circuit 272 Second Sensing Circuit S41-S46 Steps S71-S76 12