‘ 九、發明說明: 【發明所屬之技術領域】 本發明係有關於一種訊號補正系統及方法,且特別有 關於一種可以判斷感測器’如傾角信號感測器之感測訊號 是否發生飄移且進行相關補正之系統及方法。 【先前技術】 魯、 近年來,由於攝像裝置,如數位相機的體積輕薄及其 所拍攝出數位照片可以方便地在相關裝置,如電腦系統中 進行檢視與處理的特性,數位相機已經成為現代人生活令 的必備品之一。 在所有的攝像裝置中都存在著手振的問題,特別是體 積輕薄的數位相機中。由於使用者手持數位相機的穩定性 不夠’因此,常常會在按下快門的瞬間,因為使用者手握 持時的抖動或手指按快門的施力而造成了相機的震動,從 鲁 而拍攝出模糊的影像。因此,一般攝像裝置中通常提供了 防手振的技術。美國專利US 5,878,286與US 5,617,177的 防手振技術中,攝像裝置中通常會設置一個角速度感測 器,如陀螺儀(Gyro)感測器來偵測微小的移動。攝像裝置 的處理器可以依據偵測出的資料來計算需要補償的位移 量’並透過補償鏡片組’根據鏡頭的抖動方向及位移量加 以補償,從而解決相機的振動問題。 當感測器,如角速度感測器持續偵測攝像裝置移動的 角度變化時,可以得到顯示角速度變化之感測訊號’如第 0757-A21661 TWF(N2);E0106071 ;YIANH0U 5 (§/ 1320153 1圖所示。在第1圖中,偵測出之角速度β)變化為一個以 〇軸為基準線之弦波變化。然而,大部分感測器通常都會 有溫度漂移的效應發生。舉例來說,當環境溫度改變時, 即使感測益具有相同的設定,其輸出的感測訊號也會有偏 差,從而使得感測器降低偵測的準確性。第2圖顯示角速 度感測器偵測之具有溫度飄移的感測訊號。如第2圖所 示,偵測出之角速度變化與〇轴偏移了 c,使得偵測出的 資料缺乏準確性。 【發明内容】 有鐘於此,本發明提供訊號補正系統及方法。 本發明貫施例之訊號補正系統,包括一感測器與一處 理模、、且感測盗持續偵測一攝像裝置的移動資料,以產生 感測訊號。處理模組取得感測訊號之一相對極大值與一相 對極小值,且依據相對極大值與相對極小值計算一絕對偏 差i ’其中該絕對偏差量係該相對極大值與該相對極小值 相加之一絕對值。處理模組判斷絕對偏差量是否大於一既 定值。若是’判定感測訊號發生飄移,且依據絕對偏差量 對於感測訊號進行補正。 本發明實施例之訊號補正方法。首先,取得感測訊號’ 其中感測訊號係一攝像裝置的移動資料,並取得感測訊號 之一相對極大值與一相對極小值。依據相對極大值與相對 極小值計算一絕對偏差量,其中絕對偏差量係相對極大值 與相對極小值相加之一絕對值。之後,判斯絕對偏差量是 6IX. Description of the Invention: [Technical Field] The present invention relates to a signal correction system and method, and more particularly to a method for determining whether a sensor's sensing signal such as a tilt signal sensor has drifted and System and method for making related corrections. [Prior Art] Lu, in recent years, digital cameras have become modern people due to the thinness of the camera, such as digital cameras, and the digital photos they can take, which can be easily viewed and processed in related devices, such as computer systems. One of the must-have items of life. There is a problem of hand vibration in all camera devices, especially in a compact digital camera. Since the stability of the user's handheld digital camera is not sufficient, it is often caused by the shaking of the user's hand or the force of the finger pressing the shutter when the shutter is pressed, causing the camera to vibrate. Blurred image. Therefore, a technique for preventing hand vibration is generally provided in a general image pickup apparatus. In the anti-shake technology of U.S. Patent No. 5,878,286 and U.S. Patent No. 5,617,177, an angular velocity sensor such as a Gyro sensor is typically provided in the camera to detect minute movements. The processor of the camera device can calculate the displacement amount to be compensated based on the detected data and compensate by the compensation lens group according to the lens shaking direction and the displacement amount, thereby solving the camera vibration problem. When a sensor, such as an angular velocity sensor, continuously detects a change in the angle of movement of the camera, a sensing signal showing a change in angular velocity can be obtained as in 0757-A21661 TWF(N2); E0106071; YIANH0U 5 (§/1320153 1 As shown in the figure, in Fig. 1, the detected angular velocity β) changes to a sine wave change with the 〇 axis as the reference line. However, most sensors typically have the effect of temperature drift. For example, when the ambient temperature changes, even if the sensing benefits have the same setting, the output sensing signal will be biased, so that the sensor reduces the accuracy of the detection. Figure 2 shows the sensed signal with temperature drift detected by the angular velocity sensor. As shown in Figure 2, the detected angular velocity change is offset from the x-axis, resulting in a lack of accuracy in the detected data. SUMMARY OF THE INVENTION The present invention provides a signal correction system and method. The signal correction system of the embodiment of the present invention includes a sensor and a processing module, and the sensing data of the camera is continuously detected to generate a sensing signal. The processing module obtains a relative maximum value and a relative minimum value of the sensing signal, and calculates an absolute deviation i′ according to the relative maximum value and the relative minimum value, wherein the absolute deviation amount is the relative maximum value added to the relative minimum value One of the absolute values. The processing module determines whether the absolute deviation is greater than a predetermined value. If it is determined that the sensing signal has drifted, and the sensing signal is corrected according to the absolute deviation amount. The signal correction method of the embodiment of the invention. First, the sensing signal is obtained. The sensing signal is a moving data of a camera device, and a relative maximum value and a relative minimum value of the sensing signal are obtained. An absolute deviation is calculated based on the relative maximum value and the relative minimum value, wherein the absolute deviation amount is an absolute value added to the relative maximum value and the relative minimum value. After that, the absolute deviation of the judgment is 6
0757-A21661TWF{N2);E01〇6071;YIANHOU (i 1320153 ”大於既疋值。若是,判定感測訊號發生飄移,且依據 絕對偏差量對於感測訊號進行補正。 、,本發明貫施例之訊號補正方法。首先,取得感測訊號, 並取得感測訊號之一相對極大值與一相對極小值。依據相 .$極大值與相對極小值計算—絕對偏差量,其中絕對偏差 量係相對極大值與相對極小值相加之一絕_值。之後,判 斷系巴對偏差罝是否大於一既定值。若是,判定感測訊號發 _ 、生飄移,且依據絕對偏差量對於感測訊號進行補正。 本發明上述方法可以透過程式碼方式收錄於實體媒體 中。當程式碼被機ϋ载人且執行時,機器變成用以實行本 發明之裝置。 ' 為使本發明之上述目的、特徵和優點能更明顯易懂, 下文特舉實施例,並配合所附圖示,詳細說明如下。 【實施方式】 第3圖顯示依據本發明實施例之訊號補正系統。 訊,補正系統300可以是一攝像裝置,例如數位相 機’或疋需要進行溫度補正的相關裝置。如圖所示,依據 :發=咖虎補正系統刚至少包括一感測器31〇 與一處理挺組320。0757-A21661TWF{N2); E01〇6071; YIANHOU (i 1320153 ′′ is greater than the 疋 value. If yes, it is determined that the sensing signal is drifting, and the sensing signal is corrected according to the absolute deviation amount. Signal correction method. First, the sensing signal is obtained, and a relative maximum value and a relative minimum value of the sensing signal are obtained. According to the phase .maximum value and the relative minimum value, the absolute deviation amount is relatively large. The value is added to the relative minimum value as one absolute value. After that, it is determined whether the deviation is greater than a predetermined value. If yes, the sensing signal is determined to be _, the drift is generated, and the sensing signal is corrected according to the absolute deviation amount. The above method of the present invention can be recorded in a physical medium by means of a code. When the code is carried and executed by the machine, the machine becomes a device for carrying out the invention. 'To achieve the above objects, features and advantages of the present invention It can be more clearly understood, and the following detailed description of the embodiments, together with the accompanying drawings, will be described in detail below. [Embodiment] FIG. 3 shows an embodiment according to the present invention. No. Correction system. The correction system 300 can be a camera device, such as a digital camera' or a related device that needs to perform temperature correction. As shown in the figure, according to the following: the hair coffee correction system has just included at least one sensor 31. 〇 and one handle the group 320.
可以是任何的感剩器’如傾 斋、位置感測器與水平感測器等。其中,傾角信 = 可以疋設置於攝像裝置内之一_儀感測器:丄: S—,用以偵測攝像裝置作動期間内之移動二 〇757-A21661TWF(N2);^〇l〇6〇71 .YIANHOU (1/ 1320153 化資料或位置變化資料’並產生相應的感測訊號。傾角传 號感測器偵測出的感測訊號係在不同時間下的角度變化、 角速度變化或角加速度變化。位置感測器可以是一個霍爾 感測器(Hall Effect S ensor) ’用以/[貞測攝像裝置作動期間内 之移動的位置移動量、速度或加速度,並產生相應的感測 訊號。位置感測器價測出的感測訊號係在不同時間下的位 置變化。水平感測器可以偵測感測器所在平面的角度,並 產生相應的感測訊號。必須說明的是,在本實施例中,將 以角速度感測器進行說明。- 處理模組320中可以事先設定訊號補正系統3〇〇内部 的一雜訊位準(Noise Level)。處理模組320由感測器31〇 接收感測訊號,並以一既定頻率對於感測訊號進行採樣,It can be any sensory device such as dumping, position sensor and level sensor. Wherein, the dip letter = can be set in one of the camera devices _ instrument sensor: 丄: S-, used to detect the movement of the camera during the operation of the second 757-A21661TWF (N2); ^ 〇 l 〇 6 〇 71 .YIANHOU (1/ 1320153 data or position change data) and generate corresponding sensing signals. The sensing signals detected by the dip sensor are angle changes, angular velocity changes or angular accelerations at different times. The position sensor can be a Hall Effect Sensor 'Used/[Detects the amount of positional movement, velocity or acceleration of the movement during the operation of the camera and generates corresponding sensing signals. The position sensor sensor detects the change of the position of the sensor at different times. The level sensor can detect the angle of the plane of the sensor and generate corresponding sensing signals. It must be stated that In this embodiment, an angular velocity sensor will be described. - A noise level inside the signal correction system 3 can be set in advance in the processing module 320. The processing module 320 is provided by the sensor 31. 〇 Receive sensing signals And sampling the sensing signal at a predetermined frequency,
從而取得感測訊號之複數個感.測值,並將每一感測值進行 比對’從而付到感測值中的相對極大值與相對極小值。處 理模組320可以依據雜訊位準以及感測值中的相對極大值 與相對極小值來判斷感測訊號是否發生飄移,並對於感測 訊號進行補正。處理模組320的細節將於後進行說明: 第4圖顯示依據本發明實施例之感測訊號採樣方法。 如步驟S410’角速度感測器持續偵測攝像裝置移動的 角度變化資料’以產生感測訊號。如步驟討2〇,以既定頻 率對於感測訊號進行採樣’從而取得感測訊號之於不^採 樣點的複數個感測值,其中第5圖中顯示的每一個虛線八 別表示每-個採H如步驟S43〇將每一採樣點 值進行比對,從而得到感測值中的相對極大值鱼相極7 0757-A21661 TWF(N2);E0106071 ;YIANHOU 8 1320153 值。 第6圖顯示依據本發明實施例之訊號補正方法。請同 ^鮮6 例之職補正方法將 說明於下。 如步驟S610,依據感測值中的相對極大值與相對極小 值計算-絕對偏差量。其中,絕對偏差㈣相對極大值與 相對極小值相加之一絕對值。計算絕對偏差量的公式如下: A=|(Peak V.)+(Deep V.)|, 其中,A係絕對偏差量,Peakv•係感測值中的相對極 大值,且Deep V·係感測值中的相對極小值。 如步驟S62G ’判斷絕對偏差量是否大於—既定值,如 訊號補正系統内部的雜訊位準。若絕對偏差量並未大於雜 訊位準,則判定感測訊號並未發生偏移,並結束流程。若 絕對偏差量大於雜訊位準,如步驟S63〇,判定 生飄移,且如步驟S640,判斷相對極大值與相對極小值\2 加後是否為正值。若相對極大值與相對極小值相加後為正 值,如步驟S650,將感測訊號(感測值)減去絕對偏差量, 以補正感測訊號(感測值)。若相對極大值與相對極小值相 加後為負值,如步驟S660 ’將感測訊號(感測值)加上絕對 偏差量,以補正感測訊號(感測值)。 因此,本發明可以在裝置雜訊的影響之外,判定感測 訊號是否發生飄移,並對於感測訊號進行補正,從而提高 感測器的準確度。 本發明之方法,或特定型態或其部份,可以以程式碼 0757-A21661TWF(N2);E0106071;YIANHOU 9 1320153 ^ 的型態包含於實體媒體,如軟碟、光碟片、硬碟、或是任 何其他機器可讀取(如電腦可讀取)儲存媒體,其中,當程 式碼被機器,如電腦載入且執行時,此機器變成用以參與 本發明之裝置。本發明之方法與裝置也可以以程式碼型態 透過一些傳送媒體,如電線或電纜、光纖、或是任何傳輸 型態進行傳送,其中,當程式碼被機器,如電腦接收、載 -入且執行時,此機器變成用以參與本發明之裝置。當在一 .般用途處理器實作時,程式碼結合處理器提供一操作類似 鲁 於應用特定邏輯電路之獨特裝置。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟悉此項技藝者,在不脫離本發明之精 神和範圍内,當可做些許更動與潤飾,因此本發明之保護 範圍當視後附之申請專利範圍所界定者為準。 0757-A21661 TWF(N2);E0106071 ΎΙΑΝΗΟϋ 10 1320153 .. 【圖式簡單說明】 第1圖為一示意圖係顯示角速度感測器偵測之感測訊 號。 第2圖為一示意圖係顯示角速度感測器偵測之具有溫 度飄移的感測訊號。 第3圖為一示意圖係顯示依據本發明實施例之訊號補 正系統。 第4圖為一流程圖係顯示依據本發明實施例之感測訊 • 號採樣方法。 第5圖為一示意圖係顯示依據本發明實施例之感測值 採樣。 第6圖為一流程圖係顯示依據本發明實施例之訊號補 正方法。 【主要元件符號說明】 ®〜角速度; 鲁 C〜飄移; 300〜訊號補正系統; 310〜感測器; 320〜處理模組; S410、S420、S430〜步驟; △〜絕對偏差量;Thereby, a plurality of sensed values of the sensing signals are obtained, and each sensed value is compared ′ to be added to the relative maximum value and the relative minimum value in the sensed value. The processing module 320 can determine whether the sensing signal is drifted according to the relative level and the relative minimum value of the noise level and the sensing value, and correct the sensing signal. Details of the processing module 320 will be described later: Figure 4 shows a sensing signal sampling method in accordance with an embodiment of the present invention. In step S410, the angular velocity sensor continuously detects the angle change data of the moving of the camera to generate a sensing signal. If the step is 2, the sensing signal is sampled at a predetermined frequency to obtain a plurality of sensing values of the sensing signal at the sampling point, wherein each dotted line shown in FIG. 5 indicates each one. The H is compared with each sample point value in step S43, thereby obtaining a relative maximum value of the fish phase pole 7 0757-A21661 TWF(N2); E0106071; YIANHOU 8 1320153 value in the sensed value. Figure 6 shows a signal correction method in accordance with an embodiment of the present invention. Please refer to the following 6 ways to correct the problem. In step S610, an absolute deviation amount is calculated based on the relative maximum value and the relative minimum value in the sensed value. Among them, the absolute deviation (4) is the absolute value added to the relative maximum value and the relative minimum value. The formula for calculating the absolute deviation is as follows: A=|(Peak V.)+(Deep V.)|, where A is the absolute deviation, the relative maximum in the Peakv• sensed value, and Deep V·Sense The relative minimum value in the measured value. In step S62G', it is determined whether the absolute deviation amount is greater than - a predetermined value, such as a noise level inside the signal correction system. If the absolute deviation is not greater than the noise level, it is determined that the sensing signal has not been shifted, and the process ends. If the absolute deviation amount is greater than the noise level, as in step S63, the drift is determined, and in step S640, it is determined whether the relative maximum value and the relative minimum value \2 are positive. If the relative maximum value and the relative minimum value are added to be positive values, in step S650, the sensing signal (sensing value) is subtracted from the absolute deviation amount to correct the sensing signal (sensing value). If the relative maximum value and the relative minimum value are added to be negative values, the sensing signal (sensing value) is added to the absolute deviation amount in step S660' to correct the sensing signal (sensing value). Therefore, in addition to the influence of the device noise, the present invention can determine whether the sensing signal is drifting and correct the sensing signal, thereby improving the accuracy of the sensor. The method of the present invention, or a specific type or part thereof, may be included in a physical medium such as a floppy disk, a compact disc, a hard disk, or the like in the form of code 0757-A21661TWF(N2); E0106071; YIANHOU 9 1320153 ^ Is any other machine readable (e.g., computer readable) storage medium in which the device becomes a device for participating in the present invention when the code is loaded and executed by a machine, such as a computer. The method and apparatus of the present invention can also be transmitted in a code format through some transmission medium such as a wire or cable, an optical fiber, or any transmission type, wherein the code is received, loaded, and loaded by a machine such as a computer. When executed, the machine becomes a device for participating in the present invention. When implemented in a general purpose processor, the code in combination with the processor provides a unique means of operation similar to application specific logic. While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application. 0757-A21661 TWF(N2); E0106071 ΎΙΑΝΗΟϋ 10 1320153 .. [Simple description of the diagram] Figure 1 is a schematic diagram showing the sensing signals detected by the angular velocity sensor. Figure 2 is a schematic diagram showing the sensing signal with temperature drift detected by the angular velocity sensor. Figure 3 is a schematic diagram showing a signal correction system in accordance with an embodiment of the present invention. Figure 4 is a flow chart showing a sensing signal sampling method in accordance with an embodiment of the present invention. Figure 5 is a schematic diagram showing the sensing value sampling in accordance with an embodiment of the present invention. Figure 6 is a flow chart showing a signal correction method in accordance with an embodiment of the present invention. [Main component symbol description] ® ~ angular velocity; Lu C ~ drift; 300 ~ signal correction system; 310 ~ sensor; 320 ~ processing module; S410, S420, S430 ~ steps; △ ~ absolute deviation;
Peak V.〜相對極大值;Peak V.~ relative maximum;
Deep V.〜相對極小值; 0757-A21661 TWF(N2);E0106071 ;YIANHOU 11 1320153 S610、S620、…、S660〜步驟。Deep V.~ Relative minimum value; 0757-A21661 TWF(N2); E0106071; YIANHOU 11 1320153 S610, S620, ..., S660~ steps.
0757-A21661TWF(N2);E0106071 ;YIANHOU 120757-A21661TWF(N2); E0106071 ;YIANHOU 12