TWI780623B - Optical mouse and its lifted state determining method - Google Patents

Optical mouse and its lifted state determining method Download PDF

Info

Publication number
TWI780623B
TWI780623B TW110109222A TW110109222A TWI780623B TW I780623 B TWI780623 B TW I780623B TW 110109222 A TW110109222 A TW 110109222A TW 110109222 A TW110109222 A TW 110109222A TW I780623 B TWI780623 B TW I780623B
Authority
TW
Taiwan
Prior art keywords
optical mouse
light signal
light
reference value
time
Prior art date
Application number
TW110109222A
Other languages
Chinese (zh)
Other versions
TW202238340A (en
Inventor
洪澤倫
黃榮壽
Original Assignee
義隆電子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 義隆電子股份有限公司 filed Critical 義隆電子股份有限公司
Priority to TW110109222A priority Critical patent/TWI780623B/en
Priority to CN202110312932.XA priority patent/CN115079844A/en
Publication of TW202238340A publication Critical patent/TW202238340A/en
Application granted granted Critical
Publication of TWI780623B publication Critical patent/TWI780623B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03541Mouse/trackball convertible devices, in which the same ball is used to track the 2D relative movement

Abstract

The present invention relates to an optical mouse and its lifting state determining method. A first light signal and a second light signal of different magnitudes are emitted during the light-emitting period of the optical mouse. Corresponding to the first optical signal, the first reflected image is received. Corresponding to the second optical signal, the second reflected image is received. Comparing the illuminance reference values of the first and second reflected images to obtain a comparison result, and use the comparison result to determine whether the optical mouse is in a lifted state. Since the magnitude of the first optical signal and the second optical signal are different, it can be preset that the illuminance reference values of the received first and second reflected images are significantly different. If there is no significant difference in the comparison results, it can be clearly judged as a lifted state. Therefore, the accuracy of determining the lifted state of the optical mouse is effectively improved, and no additional components are required.

Description

光學滑鼠及其抬起狀態判斷方法Optical mouse and its lifting state judging method

本發明係為一種光學滑鼠,特指關於判斷光學滑鼠是否為抬起狀態的技術。 The invention relates to an optical mouse, in particular to the technology for judging whether the optical mouse is in a raised state.

光學滑鼠為常見搭配電子裝置使用之輸入裝置,請參閱圖14所示,當光學滑鼠90使用時,係置於工作表面91上移動,光學滑鼠90之內部光源所發射的光線92照射到工作表面91之對應位置93,光線92相對於該對應位置93所產生之反射光94係反射進入光學滑鼠90,再由光學滑鼠90內部之感測單元擷取對應位置93的影像,透過分析影像來判斷光學滑鼠90的移動路徑,以對應控制電子裝置所顯示之游標位置。 The optical mouse is a common input device used with electronic devices. Please refer to FIG. 14. When the optical mouse 90 is used, it is placed on the work surface 91 to move, and the light 92 emitted by the internal light source of the optical mouse 90 is irradiated. To the corresponding position 93 of the work surface 91, the reflected light 94 generated by the light 92 relative to the corresponding position 93 is reflected into the optical mouse 90, and then the sensing unit inside the optical mouse 90 captures the image of the corresponding position 93, The moving path of the optical mouse 90 is judged by analyzing the image, so as to correspond to the position of the cursor displayed on the control electronic device.

然而,請參閱圖15所示,當使用者在移動過程中抬起光學滑鼠90而使其底面未貼附於工作表面91時,光源所發射的光線92將隨著光學滑鼠90被抬起的角度發散無法聚焦於一處,而非聚焦照射到工作表面91上對應於光學滑鼠90之處,此時感測單元受限於其角度及對應位置限制,所擷取到的影像模糊或亮度下降,容易導致電子裝置誤判該光學滑鼠90的移動路徑,而使所顯示的游標產生非使用者所控制的移動。因此,如何判斷光學滑鼠為抬起狀態,而 使得電子裝置能排除在抬起狀態下所擷取到的影像,來避免造成移動路徑的誤判,係為現有技術的光學滑鼠的必備功能。然而,現有技術的光學滑鼠用以判斷抬起狀態的偵測方法各有其缺點。 However, as shown in FIG. 15 , when the user lifts the optical mouse 90 during the movement and its bottom surface is not attached to the work surface 91, the light 92 emitted by the light source will be lifted along with the optical mouse 90. The divergence of the angle cannot be focused on one place, and the unfocused light is irradiated on the work surface 91 corresponding to the optical mouse 90. At this time, the sensing unit is limited by its angle and corresponding position, and the captured image is blurred. Or the brightness decreases, which will easily cause the electronic device to misjudge the moving path of the optical mouse 90 , and cause the displayed cursor to move uncontrolled by the user. Therefore, how to judge that the optical mouse is lifted, and It is an essential function of the optical mouse in the prior art that the electronic device can exclude the images captured in the lifted state to avoid misjudgment of the moving path. However, the detection methods used for judging the lifting state of the optical mouse in the prior art each have their own disadvantages.

在其中一現有技術中,為利用所擷取到的影像之亮度變化來判斷是否為抬起狀態,但若光學滑鼠所依附移動的工作表面為對比度較高的表面以黑白相間的桌面為例,當由白色處移動到黑色處時,亮度同樣會急遽下降,此時光學滑鼠將可能因為所擷取到的影像之亮度下降而誤判為抬起狀態,導致使用者所進行的滑鼠移動無法即時反應在電子裝置的游標上。 In one of the existing technologies, the brightness change of the captured image is used to determine whether it is in the lifted state. However, if the work surface on which the optical mouse is attached and moved is a surface with high contrast, take a black and white desktop as an example. , when moving from a white place to a black place, the brightness will also drop sharply. At this time, the optical mouse may be misjudged as a lifted state due to the brightness drop of the captured image, resulting in the user's mouse movement Unable to react immediately on the cursor of the electronic device.

在另一現有技術中,係利用所擷取到的影像模糊特徵來判斷是否為抬起狀態,但若光學滑鼠所依附移動的工作表面為紋理特徵較為明顯的表面時,光學滑鼠須抬高到一定程度才能得到模糊的影像;又若光學滑鼠所依附移動的工作表面為紋理特徵較不明顯的表面時,則無論是否抬高均有可能獲得模糊的影像,導致難以判斷是否為抬起狀態。 In another prior art, the blurred feature of the captured image is used to determine whether it is in the lifted state. However, if the working surface on which the optical mouse is attached and moved is a surface with obvious texture features, the optical mouse must be lifted. Blurred images can only be obtained when the temperature is high enough to a certain level; and if the working surface on which the optical mouse moves is a surface with less obvious texture features, blurred images may be obtained no matter whether it is raised or not, making it difficult to judge whether it is raised or not. up state.

又在另一現有技術中,係於現有技術之光學滑鼠設有一距離感測器(proximity sensor),距離感測器獨立發射光線至工作表面而產生反射光,藉由發射光線及接收反射光的時間來判斷光學滑鼠與工作表面之間的距離,以所判斷的距離即可得知滑鼠是否為抬起狀態。然而,增設距離感測器雖能準確偵測是否抬起,但增加額外元件將導致此技術之光學滑鼠的製造成本將大幅提昇。 In yet another prior art, the optical mouse of the prior art is equipped with a proximity sensor, and the proximity sensor independently emits light to the work surface to generate reflected light, by emitting light and receiving reflected light The time to judge the distance between the optical mouse and the work surface, and the judged distance can be used to know whether the mouse is lifted. However, although the addition of a distance sensor can accurately detect whether it is lifted, the addition of additional components will lead to a significant increase in the manufacturing cost of the optical mouse with this technology.

有鑑於此,本發明係針對現有技術中判斷不夠精準或成本過高的缺點加以改進。 In view of this, the present invention improves on the shortcomings of the prior art that the judgment is not accurate enough or the cost is too high.

為達到前述之發明目的,本發明提供一種光學滑鼠的抬起狀態判斷方法,其包含至少一發光週期,其中:在各所述發光週期中,發射一第一光訊號以獲得一第一反射圖像,以及一第二光訊號以獲得一第二反射圖像,所述第一光訊號的大小與所述第二光訊號的大小不同;計算所述第一反射圖像的一第一照度參考值以及所述第二反射圖像的一第二照度參考值且獲得一比對結果;及依據該比對結果判斷該光學滑鼠是否為抬起狀態。 In order to achieve the aforementioned object of the invention, the present invention provides a method for judging the lifting state of an optical mouse, which includes at least one light-emitting period, wherein: in each of the light-emitting periods, a first light signal is emitted to obtain a first reflection image, and a second light signal to obtain a second reflection image, the magnitude of the first light signal is different from the magnitude of the second light signal; calculating a first illuminance of the first reflection image The reference value and a second illuminance reference value of the second reflection image are obtained, and a comparison result is obtained; and according to the comparison result, it is judged whether the optical mouse is in a lifted state.

本發明另提供一種光學滑鼠,其包括:一殼體;一光源,其設置於該殼體中並朝該殼體外提供光訊號;一感測單元,其設置於該殼體中並接收所述光訊號之反射光訊號;一控制單元,其設置於該殼體中,該控制單元控制該光源提供該光訊號,並依據該感測單元所接收到之反射光訊號產生對應之反射圖像,其中該控制單元執行至少一發光週期,其中該控制單元執行前述之控制方法。 The present invention further provides an optical mouse, which includes: a casing; a light source, which is arranged in the casing and provides light signals to the outside of the casing; a sensing unit, which is arranged in the casing and receives the light signal. The reflected light signal of the light signal; a control unit, which is arranged in the casing, the control unit controls the light source to provide the light signal, and generates a corresponding reflection image according to the reflected light signal received by the sensing unit , wherein the control unit executes at least one lighting cycle, wherein the control unit executes the aforementioned control method.

本發明的優點在於,藉由在發光週期中發射具有不同大小的光訊號,則將對應不同大小的光訊號所擷取到的反射圖像之照度參考值加以比對,所獲得之比對結果可加以判斷此時該光學滑鼠是否為抬起狀態,則本發明可在不額外增加元件成本的前提下,仍能維持抬起狀態判斷的準確度。 The advantage of the present invention is that, by emitting light signals with different magnitudes during the light-emitting period, the illuminance reference values of the reflected images captured corresponding to the light signals of different magnitudes are compared, and the obtained comparison results It can be judged whether the optical mouse is in the lifted state at this time, and the present invention can still maintain the accuracy of judging the lifted state without additional cost of components.

10:外殼 10: Shell

20:光源 20: light source

21:光線 21: light

30:控制單元 30: Control unit

40:感測單元 40: Sensing unit

50:工作表面 50: work surface

T:發光週期 T: light cycle

S11、S12:第一光訊號 S 11 , S 12 : the first light signal

S21、S22:第二光訊號 S 21 , S 22 : the second light signal

t11、t12:第一時間 t 11 , t 12 : the first time

t21、t22:第二時間 t 21 , t 22 : second time

Φ11、Φ12:第一光通量 Φ 11 , Φ 12 : the first luminous flux

Φ21、Φ22:第二光通量 Φ 21 , Φ 22 : Second luminous flux

I11、I12:第一反射圖像 I 11 , I 12 : first reflection image

I21、I22:第二反射圖像 I 21 , I 22 : second reflected image

90:光學滑鼠 90: Optical mouse

91:工作表面 91: work surface

92:光線 92: light

93:對應位置 93: Corresponding position

94:反射光 94: reflected light

圖1為本發明之光學滑鼠在未抬起狀態的側視剖面示意圖;圖2為本發明之光學滑鼠的部份元件方塊圖;圖3為本發明之光學滑鼠的控制方法之第一實施例的發光時序圖;圖4為本發明之光學滑鼠的控制方法之第二實施例的發光時序圖;圖5為本發明之光學滑鼠的控制方法之第三實施例的發光時序圖;圖6為本發明之光學滑鼠的控制方法之第四實施例的發光時序圖;圖7為本發明之光學滑鼠在未抬起狀態下之其中一實施態樣的發光時序及反射圖像對照示意圖;圖8為本發明之光學滑鼠在抬起狀態的側視剖面示意圖;圖9為本發明之光學滑鼠在抬起狀態下之其中一實施態樣的發光時序及反射圖像對照示意圖;圖10至圖13為本發明所擷取之反射圖像的各像素照度示意圖;圖14為現有技術之光學滑鼠在未抬起狀態的側視剖面示意圖;圖15為現有技術之光學滑鼠在抬起狀態的側視剖面示意圖。 Fig. 1 is a schematic side view sectional view of the optical mouse of the present invention in a non-lifted state; Fig. 2 is a block diagram of some components of the optical mouse of the present invention; Fig. 3 is the first step of the control method of the optical mouse of the present invention The light-emitting sequence diagram of an embodiment; FIG. 4 is the light-emitting sequence diagram of the second embodiment of the control method of the optical mouse of the present invention; FIG. 5 is the light-emitting sequence of the third embodiment of the control method of the optical mouse of the present invention Figures; Figure 6 is a light-emitting sequence diagram of the fourth embodiment of the control method of the optical mouse of the present invention; Figure 7 is the light-emitting sequence and reflection of one of the implementations of the optical mouse in the non-lifted state Schematic diagram of image comparison; FIG. 8 is a side view cross-sectional schematic diagram of the optical mouse of the present invention in the lifted state; FIG. 9 is a light-emitting timing and reflection diagram of an embodiment of the optical mouse of the present invention in the lifted state Figure 10 to Figure 13 is a schematic diagram of the illuminance of each pixel of the reflected image captured by the present invention; Figure 14 is a side view schematic diagram of an optical mouse in the prior art in a non-lifted state; Figure 15 is a schematic diagram of the prior art Schematic diagram of the side view of the optical mouse in the lifted state.

以下配合圖式及本發明之實施例,進一步闡述本發明為達成預定發明目的所採取的技術手段,其中圖式僅為了說明目的而已被簡化,並通過描述本發明的元件和組件之間的關係來說明本發明的結構或方法發明,因此, 圖中所示的元件不以實際數量、實際形狀、實際尺寸以及實際比例呈現,尺寸或尺寸比例已被放大或簡化,藉此提供更好的說明,已選擇性地設計和配置實際數量、實際形狀或實際尺寸比例,而詳細的元件佈局可能更複雜。 The technical means adopted by the present invention to achieve the intended purpose of the invention are further elaborated below in conjunction with the drawings and embodiments of the present invention, wherein the drawings are simplified for illustrative purposes only, and by describing the relationship between elements and components of the present invention To illustrate the structure or method invention of the present invention, therefore, The components shown in the drawings are not presented in actual numbers, actual shapes, actual sizes, and actual ratios, and the sizes or size ratios have been enlarged or simplified to provide better illustrations, and the actual numbers, actual numbers, and actual ratios have been selectively designed and configured. shape or actual size ratio, while detailed component layouts may be more complex.

請參閱圖1及圖2所示,本發明之光學滑鼠1包含有一殼體10、一光源20、一控制單元30及一感測單元40。該光源20、該控制單元30及該感測單元40均設置於該殼體10中,該光源20及該感測單元40電連接於該控制單元30,該光源20所發射之光線21朝向該殼體10外,亦即該光源20朝該殼體10外提供光訊號,當光線21照射到該殼體10之底面所置放的工作表面50後,反射光由該感測單元40接收,進而產生對應的反射圖像,藉由該反射圖像判斷該光學滑鼠1之移動行程。 Please refer to FIG. 1 and FIG. 2 , the optical mouse 1 of the present invention includes a casing 10 , a light source 20 , a control unit 30 and a sensing unit 40 . The light source 20, the control unit 30 and the sensing unit 40 are all arranged in the housing 10, the light source 20 and the sensing unit 40 are electrically connected to the control unit 30, and the light 21 emitted by the light source 20 is directed toward the Outside the casing 10, that is, the light source 20 provides light signals to the outside of the casing 10. When the light 21 hits the working surface 50 placed on the bottom surface of the casing 10, the reflected light is received by the sensing unit 40, Then a corresponding reflected image is generated, and the moving distance of the optical mouse 1 is judged by the reflected image.

請參閱圖2及圖3所示,該控制單元30係控制該光源20執行至少一發光週期T,在各所述發光週期T中,該光源20發射多個第一光訊號S11及至少一第二光訊號S21,其中發射該第一光訊號S11的時間長度為一第一時間t11,且該第一光訊號S11具有一第一光通量Φ11,發射該第二光訊號S21的時間長度為一第二時間t21,且該第二光訊號S21具有一第二光通量Φ21。又,該第一光訊號S11的大小與該第二光訊號S21的大小不同,在一實施例中,該大小係指光訊號的光能,亦即光訊號的光通量與發射時間的乘積,該第一光訊號S11的光能等於該第一時間t11與該第一光通量Φ11的乘積,該第二光訊號S21的光能等於該第二時間t21與該第二光通量Φ21的乘積。請參閱如圖3所示之實施例,該第一光通量Φ11等於該第二光通量Φ21,但由於該第一時間t11大於該第二時間t21,故該第一時間t11與該第一光通量Φ11的乘積大於該第二時間t21與第二光通量Φ21的乘積,因此該第一光訊號S11的大小與該第二光訊號S21的大小不同。請參閱如圖4所示之實施 例,該第一時間t12等於該第二時間t22,但該第一光通量Φ12大於該第二光通量Φ22,故該第一時間t12與該第一光通量Φ12的乘積大於該第二時間t22與第二光通量Φ22的乘積,因此該第一光訊號S12的大小與該第二光訊號S22的大小不同。在其餘實施例中,亦可使該第一時間不同於該第二時間、該第一光通量不同於該第二光通量,但使該第一時間與該第一光通量的乘積大於或小於該第二時間與該第二光通量的乘積,即可符合該第一光訊號的大小與該第二光訊號的大小不同。 Please refer to FIG. 2 and FIG. 3, the control unit 30 controls the light source 20 to perform at least one lighting period T, and in each lighting period T, the light source 20 emits a plurality of first light signals S11 and at least one The second optical signal S 21 , wherein the time length for emitting the first optical signal S 11 is a first time t 11 , and the first optical signal S 11 has a first luminous flux Φ 11 , and the second optical signal S is emitted The time length of 21 is a second time t 21 , and the second optical signal S 21 has a second luminous flux Φ 21 . Moreover, the magnitude of the first optical signal S11 is different from that of the second optical signal S21 . In one embodiment, the magnitude refers to the optical energy of the optical signal, that is, the product of the luminous flux of the optical signal and the emission time , the luminous energy of the first optical signal S 11 is equal to the product of the first time t 11 and the first luminous flux Φ 11 , and the luminous energy of the second optical signal S 21 is equal to the second time t 21 and the second luminous flux The product of Φ 21 . Please refer to the embodiment shown in FIG. 3 , the first luminous flux Φ 11 is equal to the second luminous flux Φ 21 , but since the first time t 11 is greater than the second time t 21 , the first time t 11 and the The product of the first light flux Φ11 is greater than the product of the second time t21 and the second light flux Φ21 , so the magnitude of the first light signal S11 is different from that of the second light signal S21 . Please refer to the embodiment shown in Figure 4, the first time t 12 is equal to the second time t 22 , but the first luminous flux Φ 12 is greater than the second luminous flux Φ 22 , so the first time t 12 and the second luminous flux Φ 22 The product of a luminous flux Φ12 is larger than the product of the second time t22 and the second luminous flux Φ22 , so the magnitude of the first light signal S12 is different from that of the second light signal S22 . In other embodiments, it is also possible to make the first time different from the second time, the first luminous flux different from the second luminous flux, but make the product of the first time and the first luminous flux greater or smaller than the second The product of time and the second luminous flux can correspond to the difference between the magnitude of the first light signal and the magnitude of the second light signal.

進一步而言,在各所述發光週期T中,發射該第一光訊號及第二光訊號的次數及方式可有不同實施態樣。請參閱如圖3所示之實施例,係發射多次第一光訊號S11及多次第二光訊號S21(如圖3所示為兩次第一光訊號S11及兩次第二光訊號S21),且所述第一光訊號S11與所述第二光訊號S12係交替發射。請參閱如圖5所示之實施例,係發射多次第一光訊號S11及一次第二光訊號S21(如圖5所示為三次第一光訊號S11及一次第二光訊號S21)。請參閱如圖6所示之實施例,係發射多次第二光訊號S21及一次第一光訊號S11(如圖6所示為一次第一光訊號S11及三次第二光訊號S21)。 Furthermore, in each of the light-emitting periods T, the times and ways of emitting the first light signal and the second light signal may have different implementations. Please refer to the embodiment shown in Figure 3, which is to emit multiple first light signals S11 and multiple second light signals S21 (as shown in Figure 3 , two first light signals S11 and two second light signals light signal S 21 ), and the first light signal S 11 and the second light signal S 12 are alternately emitted. Please refer to the embodiment shown in Figure 5, which is to emit multiple first light signals S11 and one second light signal S21 (as shown in Figure 5 , three first light signals S11 and one second light signal S 21 ). Please refer to the embodiment shown in Figure 6, which is to emit multiple second light signals S 21 and one first light signal S 11 (as shown in Figure 6, one first light signal S 11 and three second light signals S 21 ).

請參閱圖1及圖7所示,當光學滑鼠1正常放置於工作表面50使用時,當光源20發射該第一光訊號S11時,對應的反射光由該感測單元40接收產生一第一反射圖像I11;當光源20發射該第二光訊號S21時,對應的反射光由該感測單元40接收產生一第二反射圖像I21。由於該第一光訊號S11與該第二光訊號S21具有不同大小,故當照射到工作表面50時,該第一光訊號S11與該第二光訊號S21所對應的反射光也會有不同大小,則所產生之該第一反射圖像I11與該第二反射圖像I21將具有不同的照度參考值。以圖7為例,該第一光訊號S11之大小大於該第 二光訊號S21之大小,故係預設所對應產生之第一反射圖像I11之第一照度參考值將大於第二反射圖像I21之第二照度參考值。此時,將該第一反射圖像I11之第一照度參考值該第二反射圖像I21之第二照度參考值加以運算後獲得一比對結果,該比對結果倘若符合第一反射圖像I11之第一照度參考值大於第二反射圖像I21之第二照度參考值的結果,則可判斷該光學滑鼠1係置放於工作表面50,而非抬起狀態。縱使工作表面50的對比度較大、或工作表面50的紋理特徵不明顯,但由於該第一光訊號S11與該第二光訊號S21的大小已有所不同,故當光學滑鼠1所擷取到的反射圖像之照度參考值仍會受到該第一光訊號S11與該第二光訊號S21的大小影響,來產生符合於預設結果的差異。 1 and 7, when the optical mouse 1 is normally placed on the work surface 50 for use, when the light source 20 emits the first light signal S11 , the corresponding reflected light is received by the sensing unit 40 to generate a The first reflected image I 11 ; when the light source 20 emits the second light signal S 21 , the corresponding reflected light is received by the sensing unit 40 to generate a second reflected image I 21 . Since the first light signal S11 and the second light signal S21 have different magnitudes, when irradiating the working surface 50, the reflected light corresponding to the first light signal S11 and the second light signal S21 is also If there are different sizes, the generated first reflected image I11 and the second reflected image I21 will have different illumination reference values. Taking Fig. 7 as an example, the magnitude of the first light signal S11 is larger than the magnitude of the second light signal S21, so it is preset that the first illuminance reference value of the first reflection image I11 generated correspondingly will be greater than the first The second illuminance reference value of the reflection image I21 . At this time, after calculating the first illuminance reference value of the first reflection image I11 and the second illuminance reference value of the second reflection image I21 , a comparison result is obtained. If the comparison result conforms to the first reflection If the first illuminance reference value of the image I 11 is greater than the second illuminance reference value of the second reflection image I 21 , it can be determined that the optical mouse 1 is placed on the work surface 50 instead of lifted. Even though the contrast of the working surface 50 is relatively high, or the texture features of the working surface 50 are not obvious, since the magnitudes of the first light signal S11 and the second light signal S21 are different, when the optical mouse 1 The illuminance reference value of the captured reflection image will still be affected by the magnitudes of the first light signal S11 and the second light signal S21 , so as to produce a difference in line with the preset result.

請參閱圖8及圖9所示,當光學滑鼠1被抬起而並非貼附於工作表面50時,因為該第一光訊號S11與該第二光訊號S21已發散且未形成反射光,使得該第一光訊號S11與該第二光訊號S21的大小不影響該該第一反射圖像I12及該第二反射圖像I22的照度參考值,故無論是對應該第一光訊號S11所產生的該第一反射圖像I12、或對應該第二光訊號S21所產生該第二反射圖像I22,照度參考值僅對應當下工作表面50上對應位置的亮度。因此,此時將該第一反射圖像I11之第一照度參考值該第二反射圖像I21之第二照度參考值加以運算後所獲得之比對結果,其二者會得到相近之照度參考值,無法符合該第一反射圖像I11之第一照度參考值大於第二反射圖像I21之第二照度參考值的結果,故可判斷該光學滑鼠1當下係離開工作表面50,呈抬起狀態。 Please refer to FIG. 8 and FIG. 9, when the optical mouse 1 is lifted and not attached to the work surface 50, because the first light signal S11 and the second light signal S21 have diverged and no reflection is formed. light, so that the magnitudes of the first light signal S11 and the second light signal S21 do not affect the illuminance reference values of the first reflected image I12 and the second reflected image I22 , so no matter the For the first reflected image I 12 generated by the first light signal S 11 , or the second reflected image I 22 generated corresponding to the second light signal S 21 , the illuminance reference value only corresponds to the corresponding position on the current working surface 50 brightness. Therefore, at this time, the comparison result obtained after calculating the first illuminance reference value of the first reflection image I11 and the second illuminance reference value of the second reflection image I21 will be similar to each other. The illuminance reference value cannot meet the result that the first illuminance reference value of the first reflected image I11 is greater than the second illuminance reference value of the second reflected image I21 , so it can be judged that the optical mouse 1 is currently leaving the work surface 50, in a raised state.

所述照度參考值係可指與所述反射圖像中所有或部份像素之照度有關的運算數值,舉例而言,若圖7中所示之第一反射圖像I11中各像素的照度如圖10所示、若圖7中所示之第二反射圖像I21中各像素的照度如圖11所示、 若圖9中所示之第一反射圖像I12中各像素的照度如圖12所示、若圖9中所示之第二反射圖像I22中各像素的照度如圖13所示,圖10至13中所示之照度僅為例示說明用,而非用以限制本發明。 The illuminance reference value may refer to an operational value related to the illuminance of all or some pixels in the reflected image, for example, if the illuminance of each pixel in the first reflected image I11 shown in FIG. 7 As shown in Figure 10, if the illuminance of each pixel in the second reflected image I 21 shown in Figure 7 is shown in Figure 11, if the illuminance of each pixel in the first reflected image I 12 shown in Figure 9 As shown in FIG. 12, if the illuminance of each pixel in the second reflection image I22 shown in FIG. 9 is as shown in FIG. 13, the illuminance shown in FIGS. limit the invention.

在一實施例中,所述照度參考值為該反射圖像之所有像素的照度總和,該比對結果可為所述第一反射圖像之所有像素的照度總和與所述第二反射圖像之所有像素的照度總和的差值或比值,若判斷該比對結果小於一門檻值,則判斷該光學滑鼠為抬起狀態。假設差值的門檻值為5000、比值的門檻值為5,以光學滑鼠1於圖1及圖7狀態下所獲得反射圖像來看,該第一反射圖像I11之所有像素的的照度總和為60649(如圖10所示)、該第二反射圖像I21之所有像素的的照度總和為6164(如圖11所示),則其差值為54485,其比值為9.84,顯示兩者的照度總和差異相當大,其比對結果大於所預設的門檻值,則判斷光學滑鼠1並非抬起狀態;以光學滑鼠1於圖8及圖9狀態下所獲得反射圖像來看,該第一反射圖像I12之所有像素的的照度總和為17844(如圖12所示)、該第二反射圖像I22之所有像素的的照度總和為16942(如圖13所示),則其差值為902,其比值為1.05,顯示兩者的照度總和差異極微,其比對結果小於所預設的門檻值,則判斷光學滑鼠1為抬起狀態。 In one embodiment, the illuminance reference value is the sum of the illuminances of all the pixels of the reflected image, and the comparison result can be the sum of the illuminances of all the pixels of the first reflected image and the sum of the illuminances of all the pixels of the second reflected image. If the difference or ratio of the sum of the illuminances of all pixels is judged to be less than a threshold value, the optical mouse is judged to be in a raised state. Assuming that the threshold value of the difference is 5000 and the threshold value of the ratio is 5, from the reflection images obtained by the optical mouse 1 in the state of Fig. 1 and Fig. 7 , the values of all pixels of the first reflection image I11 are The sum of the illuminance is 60649 (as shown in Figure 10), the sum of the illuminance of all the pixels of the second reflection image I21 is 6164 (as shown in Figure 11), then its difference is 54485, and its ratio is 9.84, showing The difference between the total illuminance of the two is quite large, and the comparison result is greater than the preset threshold value, then it is judged that the optical mouse 1 is not in the lifted state; the reflection image obtained by the optical mouse 1 in the state shown in Figure 8 and Figure 9 From the point of view, the sum of the illuminance of all the pixels of the first reflected image I12 is 17844 (as shown in FIG. 12 ), and the sum of the illuminance of all the pixels of the second reflected image I22 is 16942 (as shown in FIG. 13 As shown), the difference is 902, and the ratio is 1.05, which shows that the difference between the total illuminance of the two is very small, and the comparison result is less than the preset threshold value, and the optical mouse 1 is judged to be in the raised state.

在一實施例中,所述照度參考值為該反射圖像之所有像素的照度平均值,該比對結果可為所述第一反射圖像之所有像素的照度總和與所述第二反射圖像之所有像素的照度平均值的差值或比值,若判斷該比對結果小於一門檻值,則判斷該光學滑鼠為抬起狀態。假設差值的門檻值為500、比值的門檻值為2,以光學滑鼠1於圖1及圖7狀態下所獲得反射圖像來看,該第一反射圖像I11之所有像素的照度平均值為6738.78(如圖10所示)、該第二反射圖像I21之 所有像素的照度平均值為684.89(如圖11所示),則其差值為6053.89,其比值為9.84,顯示兩者的照度平均值差異相當大,其比對結果大於所預設的門檻值,則判斷光學滑鼠1並非抬起狀態;以光學滑鼠1於圖8及圖9狀態下所獲得反射圖像來看,該第一反射圖像I12之所有像素的照度平均值為1982.67(如圖12所示)、該第二反射圖像I22之所有像素的照度總和為1882.44(如圖13所示),則其差值為100.23,其比值為1.05,顯示兩者的照度平均值差異極微,其比對結果小於所預設的門檻值,則判斷光學滑鼠1為抬起狀態。 In one embodiment, the illuminance reference value is the average illuminance value of all pixels in the reflected image, and the comparison result can be the sum of the illuminances of all pixels in the first reflected image and the second reflected image If the difference or ratio of the average illuminance values of all pixels in the image is judged to be less than a threshold value, it is judged that the optical mouse is in a raised state. Assuming that the threshold value of the difference is 500 and the threshold value of the ratio is 2, the illuminance of all pixels of the first reflected image I 11 can be seen from the reflected images obtained by the optical mouse 1 in the state shown in Fig. 1 and Fig. 7 The average value is 6738.78 (as shown in Figure 10), the illuminance average value of all pixels of the second reflection image I21 is 684.89 (as shown in Figure 11), then its difference is 6053.89, and its ratio is 9.84, showing The difference in the average illuminance between the two is quite large, and the comparison result is greater than the preset threshold value, then it is judged that the optical mouse 1 is not in the lifted state; the reflection images obtained by the optical mouse 1 in the state shown in Figure 8 and Figure 9 From the perspective of the image, the average illuminance of all pixels of the first reflected image I12 is 1982.67 (as shown in Figure 12 ), and the sum of the illuminance of all pixels of the second reflected image I22 is 1882.44 (as shown in Figure 13 ), the difference is 100.23, and the ratio is 1.05, which shows that the difference between the average illuminance values of the two is very small, and the comparison result is less than the preset threshold value, and the optical mouse 1 is judged to be in the lifted state.

在一實施例中,所述照度參考值可為該反射圖像之部份像素的照度總和或照度平均值,而該比對結果亦可隨之調整。 In one embodiment, the illuminance reference value may be the sum or average illuminance of some pixels of the reflection image, and the comparison result may be adjusted accordingly.

在一實施例中,所述比對結果可比對相鄰時序所發射之第一光訊號及第二光訊號、或比對同一週期中的任一第一光訊號與任一第二光訊號、或比對不同週期中的第一光訊號與第二光訊號。 In one embodiment, the comparison result can be compared with the first optical signal and the second optical signal emitted in adjacent time sequences, or compared with any first optical signal and any second optical signal in the same period, Or compare the first light signal and the second light signal in different periods.

綜上所述,藉由比對相對於不同大小之光訊號的反射圖像之照度參考值,來判斷其是否符合預設的比對結果,若符合,則判斷該光學滑鼠並非在抬起狀態,而為正常貼附於工作表面之使用狀態;若不符合,則判斷該光學滑鼠為抬起狀態,此時可進一步忽略所擷取到的反射圖像,以避免誤判光學滑鼠的移動軌跡。因此,在無須增加額外的偵測元件下,本發明之光學滑鼠仍可準確的判斷是否為抬起狀態,也不受工作表面的對比度及紋理之影響。 To sum up, by comparing the illuminance reference values of the reflected images of light signals of different sizes, it is judged whether it meets the preset comparison result, and if so, it is judged that the optical mouse is not in the lifted state , which is the normal use state attached to the work surface; if it does not match, it is judged that the optical mouse is in a raised state. At this time, the captured reflection image can be further ignored to avoid misjudging the movement of the optical mouse track. Therefore, without adding additional detection components, the optical mouse of the present invention can still accurately determine whether it is in a lifted state, and is not affected by the contrast and texture of the working surface.

以上所述僅是本發明的實施例而已,並非對本發明做任何形式上的限制,雖然本發明已以實施例揭露如上,然而並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明技術方案的範圍內,當可利用上述揭示的技術內容作出些許更動或修飾為等同變化的等效實施例,但凡是 未脫離本發明技術方案的內容,依據本發明的技術實質對以上實施例所作的任何簡單修改、等同變化與修飾,均仍屬於本發明技術方案的範圍內。 The above description is only an embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as above with the embodiment, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field, Without departing from the scope of the technical solution of the present invention, when the technical content disclosed above can be used to make some changes or modifications to equivalent embodiments with equivalent changes, any Without departing from the content of the technical solution of the present invention, any simple modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention still belong to the scope of the technical solution of the present invention.

T:發光週期 S 11:第一光訊號 S 21:第二光訊號 t 11:第一時間 t 21:第二時間 Φ 11:第一光通量 Φ 21:第二光通量 T: lighting period S 11 : first light signal S 21 : second light signal t 11 : first time t 21 : second time Φ 11 : first luminous flux Φ 21 : second luminous flux

Claims (18)

一種光學滑鼠的抬起狀態判斷方法,其包含至少一發光週期,其中:在各所述發光週期中,發射一第一光訊號以獲得一第一反射圖像,以及發射一第二光訊號以獲得一第二反射圖像,所述第一光訊號的大小與所述第二光訊號的大小不同;計算所述第一反射圖像的一第一照度參考值以及所述第二反射圖像的一第二照度參考值且獲得一比對結果;及依據該比對結果判斷該光學滑鼠是否為抬起狀態。 A method for judging the lifting state of an optical mouse, which includes at least one light-emitting period, wherein: in each of the light-emitting periods, a first light signal is emitted to obtain a first reflection image, and a second light signal is emitted obtaining a second reflection image, the magnitude of the first light signal is different from the magnitude of the second light signal; calculating a first illuminance reference value of the first reflection image and the second reflection image a second illumination reference value of the image and obtain a comparison result; and judge whether the optical mouse is in a raised state according to the comparison result. 如請求項1所述之光學滑鼠的抬起狀態判斷方法,其中該第一照度參考值與該第二照度參考值係分別於不同的發光週期中取得。 The method for judging the lifting state of an optical mouse as described in claim 1, wherein the first reference value of illumination and the second reference value of illumination are respectively obtained in different light-emitting periods. 如請求項1或2所述之光學滑鼠的抬起狀態判斷方法,其中該第二反射圖像與該第一反射圖像係在時序上為相鄰關係。 The method for judging the lift state of an optical mouse according to claim 1 or 2, wherein the second reflection image and the first reflection image are adjacent in time sequence. 如請求項1所述之光學滑鼠的抬起狀態判斷方法,其中在各發光週期中,係分別發射多次該第一光訊號以及該第二光訊號,且所述第一光訊號與所述第二光訊號係交替發射。 The method for judging the lifting state of an optical mouse as described in Claim 1, wherein in each light-emitting cycle, the first light signal and the second light signal are respectively emitted multiple times, and the first light signal and the second light signal are The second light signal is alternately emitted. 如請求項1所述之光學滑鼠的抬起狀態判斷方法,其中:所述第一光訊號的發射時間為一第一時間,且所述第一光訊號提供一第一光通量;所述第二光訊號的發射時間為一第二時間,且所述第二光訊號提供一第二光通量。 The method for judging the lifting state of an optical mouse as described in claim 1, wherein: the emission time of the first light signal is a first time, and the first light signal provides a first luminous flux; the first light signal The emission time of the two light signals is a second time, and the second light signal provides a second luminous flux. 如請求項5所述之光學滑鼠的抬起狀態判斷方法,其中該第一時間大於該第二時間,該第一光通量等於該第二光通量。 The method for judging the lifting state of an optical mouse according to claim 5, wherein the first time is longer than the second time, and the first luminous flux is equal to the second luminous flux. 如請求項5所述之光學滑鼠的抬起狀態判斷方法,其中該第一時間等於該第二時間,該第一光通量大於該第二光通量。 The method for judging the lifting state of an optical mouse according to claim 5, wherein the first time is equal to the second time, and the first luminous flux is greater than the second luminous flux. 如請求項1所述之光學滑鼠的抬起狀態判斷方法,其中所述第一照度參考值係指該第一反射圖像之所有或部份像素的照度總和或平均值,所述第二照度參考值係指該第二反射圖像之所有或部份像素的照度總和或平均值。 The method for judging the lifting state of an optical mouse as described in claim 1, wherein the first illuminance reference value refers to the sum or average of the illuminance of all or some pixels of the first reflected image, and the second The illuminance reference value refers to the sum or average of the illuminance of all or some pixels of the second reflection image. 如請求項8所述之光學滑鼠的抬起狀態判斷方法,其中該比對結果為所述第一照度參考值與所述第二照度參考值的差值或比值,若判斷該比對結果小於一門檻值,則判斷該光學滑鼠為抬起狀態。 The method for judging the lifting state of an optical mouse as described in claim 8, wherein the comparison result is the difference or ratio between the first illuminance reference value and the second illuminance reference value, if the comparison result is judged If it is less than a threshold value, it is judged that the optical mouse is in a raised state. 一種光學滑鼠,其包括:一殼體;一光源,其設置於該殼體中並朝該殼體外提供光訊號;一感測單元,其設置於該殼體中並接收所述光訊號之反射光訊號;一控制單元,其設置於該殼體中,該控制單元控制該光源提供該光訊號,並依據該感測單元所接收到之反射光訊號產生對應之反射圖像,其中該控制單元執行步驟包含:控制該光源發射一第一光訊號以獲得一第一反射圖像,以及控制該光源發射一第二光訊號以獲得一第二反射圖像,所述第一光訊號的大小與所述第二光訊號的大小不同; 計算所述第一反射圖像的第一照度參考值以及所述第二反射圖像的第二照度參考值且獲得一比對結果;及依據該比對結果判斷該光學滑鼠是否為抬起狀態。 An optical mouse, which includes: a casing; a light source, which is arranged in the casing and provides an optical signal to the outside of the casing; a sensing unit, which is arranged in the casing and receives the light signal Reflected light signal; a control unit, which is arranged in the housing, the control unit controls the light source to provide the light signal, and generates a corresponding reflection image according to the reflected light signal received by the sensing unit, wherein the control unit The unit execution steps include: controlling the light source to emit a first light signal to obtain a first reflection image, and controlling the light source to emit a second light signal to obtain a second reflection image, the magnitude of the first light signal different from the magnitude of the second optical signal; calculating a first illuminance reference value of the first reflected image and a second illuminance reference value of the second reflected image and obtaining a comparison result; and judging whether the optical mouse is lifted according to the comparison result state. 如請求項10所述之光學滑鼠,其中該第一照度參考值與該第二照度參考值係分別於不同的發光週期中取得。 The optical mouse according to claim 10, wherein the first illuminance reference value and the second illuminance reference value are respectively obtained in different lighting cycles. 如請求項10或11所述之光學滑鼠,其中該第二反射圖像與該第一反射圖像係在時序上為相鄰關係。 The optical mouse according to claim 10 or 11, wherein the second reflection image and the first reflection image are adjacent in time sequence. 如請求項10所述之光學滑鼠,其中該控制單元在執行各發光週期中,係分別發射多次該第一光訊號以及該第二光訊號,且所述第一光訊號與所述第二光訊號係交替發射。 The optical mouse as described in claim 10, wherein the control unit emits the first light signal and the second light signal multiple times during each light-emitting cycle, and the first light signal and the second light signal The two light signals are emitted alternately. 如請求項10所述之光學滑鼠,其中:所述第一光訊號的每次發射時間為一第一時間,且所述第一光訊號提供一第一光通量;所述第二光訊號的每次發射時間為一第二時間,且所述第二光訊號提供一第二光通量。 The optical mouse as described in claim 10, wherein: each emission time of the first optical signal is a first time, and the first optical signal provides a first luminous flux; the second optical signal Each emission time is a second time, and the second light signal provides a second luminous flux. 如請求項14所述之光學滑鼠,其中該第一時間大於該第二時間,該第一光通量等於該第二光通量。 The optical mouse according to claim 14, wherein the first time is greater than the second time, and the first luminous flux is equal to the second luminous flux. 如請求項14所述之光學滑鼠,其中該第一時間等於該第二時間,該第一光通量大於該第二光通量。 The optical mouse according to claim 14, wherein the first time is equal to the second time, and the first luminous flux is greater than the second luminous flux. 如請求項10所述之光學滑鼠,其中所述第一照度參考值係指該第一反射圖像之所有或部份像素的照度總和或平均值,所述第二照度參考值係指該第二反射圖像之所有或部份像素的照度總和或平均值。 The optical mouse as described in claim item 10, wherein the first reference value of illumination refers to the sum or average value of the illumination of all or some pixels of the first reflected image, and the second reference value of illumination refers to the The sum or average of the illuminance of all or some pixels of the second reflection image. 如請求項17所述之光學滑鼠,其中該比對結果為所述第一照度參考值與所述第二照度參考值的差值或比值,若判斷該比對結果小於一門檻值,則判斷該光學滑鼠為抬起狀態。 The optical mouse as described in claim 17, wherein the comparison result is the difference or ratio between the first illuminance reference value and the second illuminance reference value, if it is judged that the comparison result is less than a threshold value, then It is judged that the optical mouse is lifted.
TW110109222A 2021-03-15 2021-03-15 Optical mouse and its lifted state determining method TWI780623B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW110109222A TWI780623B (en) 2021-03-15 2021-03-15 Optical mouse and its lifted state determining method
CN202110312932.XA CN115079844A (en) 2021-03-15 2021-03-24 Optical mouse and lifting state judgment method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110109222A TWI780623B (en) 2021-03-15 2021-03-15 Optical mouse and its lifted state determining method

Publications (2)

Publication Number Publication Date
TW202238340A TW202238340A (en) 2022-10-01
TWI780623B true TWI780623B (en) 2022-10-11

Family

ID=83245624

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110109222A TWI780623B (en) 2021-03-15 2021-03-15 Optical mouse and its lifted state determining method

Country Status (2)

Country Link
CN (1) CN115079844A (en)
TW (1) TWI780623B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200825848A (en) * 2006-12-13 2008-06-16 Darfon Electronics Corp Cursor control apparatus
TW201005595A (en) * 2008-07-23 2010-02-01 guo-shu Zheng Mouse with tremble-eliminating function when moved away from working desk
TW201428558A (en) * 2013-01-04 2014-07-16 Pixart Imaging Inc Optical mouse apparatus and method used in optical mouse apparatus
TW201430631A (en) * 2013-01-30 2014-08-01 Pixart Imaging Inc Optical mouse apparatus and method used in optical mouse apparatus
TW201835727A (en) * 2017-03-15 2018-10-01 原相科技股份有限公司 Optical mouse and parameter calibration method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200825848A (en) * 2006-12-13 2008-06-16 Darfon Electronics Corp Cursor control apparatus
TW201005595A (en) * 2008-07-23 2010-02-01 guo-shu Zheng Mouse with tremble-eliminating function when moved away from working desk
TW201428558A (en) * 2013-01-04 2014-07-16 Pixart Imaging Inc Optical mouse apparatus and method used in optical mouse apparatus
TW201430631A (en) * 2013-01-30 2014-08-01 Pixart Imaging Inc Optical mouse apparatus and method used in optical mouse apparatus
TW201835727A (en) * 2017-03-15 2018-10-01 原相科技股份有限公司 Optical mouse and parameter calibration method thereof

Also Published As

Publication number Publication date
CN115079844A (en) 2022-09-20
TW202238340A (en) 2022-10-01

Similar Documents

Publication Publication Date Title
CN106055172B (en) Optical navigation chip, optical navigation module and optical encoder
US8569679B2 (en) System and circuit including multiple photo detectors and at least one optical barrier
US9223442B2 (en) Proximity and touch sensing surface for integration with a display
TWI533224B (en) Eye detecting device and methodes of detecting pupil and identifying iris
KR101180027B1 (en) Optical sensor and sensing method using the same
TW201335802A (en) Optical navigation device
JP5138657B2 (en) Touch screen display device and driving method thereof
JP6623812B2 (en) Position detecting device and contrast adjusting method thereof
TWI434028B (en) Enhanced lift detection technique for a laser illuminated optical mouse sensor
WO2014162675A1 (en) Motion-sensor device having multiple light sources
TWI460395B (en) Flatness measurement device and measuring method thereof
RU2011129424A (en) METHOD OF MEASUREMENT BASED ON LIGHT STRUCTURING
KR20130061147A (en) Laser scanning projector device for interactive screen applications
TWI520032B (en) Optical navigation system with object detection
TWI441060B (en) Image processing method for optical touch system
TWI496057B (en) Optical touch system and touch sensing method
KR101679205B1 (en) Device for detecting defect of device
TW201633077A (en) Image processing method capable of detecting noise and related navigation device
US10325377B2 (en) Image depth sensing method and image depth sensing apparatus
TWI780623B (en) Optical mouse and its lifted state determining method
TWI522870B (en) Click event detection device
US20150185321A1 (en) Image Display Device
JP2019082333A (en) Inspection device, inspection system, and inspection method
TW201816557A (en) Computer readable recoding media can perform optical movement quality determining method and optical movement detecting apparatus applying the optical movement quality determining method
KR20120000234A (en) The method of auto-exposure control for white light 3d scanner using an illuminometer

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent