[go: up one dir, main page]

TWI427508B - An optical sensing device and a method of adjusting an exposure condition for the same - Google Patents

An optical sensing device and a method of adjusting an exposure condition for the same Download PDF

Info

Publication number
TWI427508B
TWI427508B TW99141710A TW99141710A TWI427508B TW I427508 B TWI427508 B TW I427508B TW 99141710 A TW99141710 A TW 99141710A TW 99141710 A TW99141710 A TW 99141710A TW I427508 B TWI427508 B TW I427508B
Authority
TW
Taiwan
Prior art keywords
signal
optical sensing
signals
brightness
sensing module
Prior art date
Application number
TW99141710A
Other languages
Chinese (zh)
Other versions
TW201224858A (en
Inventor
Shu Sian Yang
Hsin Chia Chen
Tsung Min Su
Original Assignee
Pixart Imaging Inc
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 Pixart Imaging Inc filed Critical Pixart Imaging Inc
Priority to TW99141710A priority Critical patent/TWI427508B/en
Priority to US13/080,563 priority patent/US8531588B2/en
Publication of TW201224858A publication Critical patent/TW201224858A/en
Application granted granted Critical
Publication of TWI427508B publication Critical patent/TWI427508B/en

Links

Landscapes

  • Studio Devices (AREA)

Description

調整光學感應模組的曝光條件的方法與其光學感應模組Method for adjusting exposure condition of optical sensing module and optical sensing module thereof

本發明係關於一種調整曝光條件方法與其光學感應模組,特別是一種調整光學感應模組的曝光條件的方法與運用此方法之光學感應模組。The invention relates to a method for adjusting an exposure condition and an optical sensing module thereof, in particular to a method for adjusting an exposure condition of an optical sensing module and an optical sensing module using the same.

在現今的日常生活中,影像擷取裝置已經被廣泛的使用於日常生活中。影像擷取裝置利用光感測器擷取影像並轉換為數位訊號後,這些數位訊號可被儲存下來。藉由影像擷取裝置擷取到的數位訊號,再配合數位影像處理的技術,即可設計出各種形形色色的應用。In today's daily life, image capture devices have been widely used in everyday life. After the image capturing device captures the image by using the light sensor and converts it into a digital signal, the digital signals can be stored. The digital signals captured by the image capture device, combined with the digital image processing technology, can be used to design a variety of applications.

影像擷取裝置亦可使用於一般的指向裝置,比如說滑鼠。指向裝置可發射光線一表面,並由影像擷取裝置擷取從此表面反射的光線。在經過適當的取樣後,指向裝置可獲得多個時間點上的影像。指向裝置中的數位處理器,可比對相鄰時間點上的影像,根據影像中畫素的亮度差值作為基礎,以判斷指向裝置移動的方向與距離。The image capture device can also be used with general pointing devices, such as a mouse. The pointing device emits a surface of light and the image capturing device extracts light reflected from the surface. After proper sampling, the pointing device can obtain images at multiple points in time. The digital processor in the pointing device can compare the images at adjacent time points according to the brightness difference of the pixels in the image to determine the direction and distance of the pointing device.

然而,當指向裝置工作於不同表面時,這些不同的表面反射光線的強度也都會因為表面的材質而有所不同。因此,指向裝置所接收到的反射光的強度也會隨之不同。若是以相同的光學條件進行反射光的擷取,可能會產生明亮不均的現象,使得指向裝置在判斷移動方向與距離時產生偏差。However, when the pointing device works on different surfaces, the intensity of the reflected light from these different surfaces will also vary depending on the material of the surface. Therefore, the intensity of the reflected light received by the pointing device will also vary. If the reflected light is extracted under the same optical conditions, a phenomenon of uneven brightness may occur, causing the pointing device to deviate when judging the moving direction and the distance.

鑒於以上的問題,本發明係提出一種調整一光學感應模組的曝光條件的方法。光學感應模組用於一指向裝置。此方法包括:(A)接收由一工作面所反射之一反射光;(B)根據反射光照射光學感應模組而產生一影像訊號,影像訊號包含複數亮度訊號以及一影像品質訊號;(C)根據部份亮度訊號,設定光學感應模組的一曝光條件;(D)重複步驟(B)與步驟(C),以不同的曝光條件,使光學感應模組產生複數個影像品質訊號;(E)根據不同的曝光條件下的影像品質訊號,設定對應工作面的最佳曝光條件。In view of the above problems, the present invention provides a method of adjusting the exposure conditions of an optical sensing module. The optical sensing module is used for a pointing device. The method includes: (A) receiving a reflected light reflected by a working surface; (B) generating an image signal by irradiating the optical sensing module according to the reflected light, the image signal comprising a plurality of brightness signals and an image quality signal; Setting an exposure condition of the optical sensing module according to part of the brightness signal; (D) repeating steps (B) and (C) to cause the optical sensing module to generate a plurality of image quality signals under different exposure conditions; E) According to the image quality signal under different exposure conditions, set the optimal exposure conditions for the corresponding working surface.

此一方法更包括以下步驟:(F)根據複數個影像訊號,進行運動估測程序,以產生一可靠度值訊號;(G)當可靠度值訊號低於一門檻值時,重新執行步驟(A)至步驟(E)。The method further comprises the steps of: (F) performing a motion estimation procedure according to the plurality of image signals to generate a reliability value signal; (G) re-executing the step when the reliability value signal is below a threshold value ( A) to step (E).

本發明係另提出一種光學感應模組,用於一指向裝置。指向裝置藉由與一工作面發生相對運動,並利用光學感應模組偵測相對運動而產生一位移訊號。光學感應模組包括複數個光學感應單元與處理器。The invention further provides an optical sensing module for a pointing device. The pointing device generates a displacement signal by moving relative to a working surface and detecting the relative motion by using the optical sensing module. The optical sensing module includes a plurality of optical sensing units and a processor.

複數個光學感應單元用以週期性地接收由工作面反射之反射光,並依序產生複數個影像訊號。每一影像訊號包含複數亮度訊號以及影像品質訊號。A plurality of optical sensing units are configured to periodically receive the reflected light reflected by the working surface and sequentially generate a plurality of image signals. Each image signal includes a plurality of luminance signals and image quality signals.

處理器用以根據每個影像訊號的部份亮度訊號,依序設定該光學感應模組之一曝光條件,以及根據不同曝光條件下的該影像品質訊號,設定對應該工作面的一最佳曝光條件。The processor is configured to sequentially set an exposure condition of the optical sensing module according to a part of the brightness signal of each image signal, and set an optimal exposure condition corresponding to the working surface according to the image quality signal under different exposure conditions. .

其中,曝光條件係為光學感應模組之曝光時間及曝光強度其中之一,或是為反射光之光強度。The exposure condition is one of an exposure time and an exposure intensity of the optical sensing module, or is a light intensity of the reflected light.

藉由以上之流程與裝置,光學感應模組可自動調整其曝光條件,以使光學感應模組可適應不同的工作面,減低因為工作面所反射的光線明亮不均,而造成判斷移動方向與距離時產生偏差的機率。Through the above processes and devices, the optical sensing module can automatically adjust its exposure conditions, so that the optical sensing module can adapt to different working faces, and reduce the brightness of the light reflected by the working surface, thereby determining the moving direction and The probability of deviation in distance.

以下在實施方式中係進一步詳細說明本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。The detailed features and advantages of the present invention are described in the following detailed description of the embodiments of the present invention. The related objects and advantages of the present invention will be readily understood by those skilled in the art.

『第1圖』係為根據本發明所適用之影像擷取裝置的架構示意圖。關於本發明所適用之影像擷取裝置可以是但不限於『第1圖』所示之架構。Fig. 1 is a schematic view showing the structure of an image capturing device to which the present invention is applied. The image capturing device to which the present invention is applied may be, but not limited to, the structure shown in FIG. 1.

請參考『第1圖』,光學感應模組10可包括發光裝置12、多個光學感應單元14、記憶體16以及處理器18。Referring to FIG. 1 , the optical sensor module 10 can include a light emitting device 12 , a plurality of optical sensing units 14 , a memory 16 , and a processor 18 .

發光裝置12係發出光線至一工作表面,發光裝置12可為發光二極體或是雷射發光裝置。光線被發射至工作表面後,且被反射,此反射光線係可被多個光學感應單元14所接收。The illuminating device 12 emits light to a working surface, and the illuminating device 12 can be a light emitting diode or a laser illuminating device. After the light is emitted to the working surface and reflected, the reflected light is received by the plurality of optical sensing units 14.

多個光學感應單元14係固定週期地或是非固定週期地接收反射光。多個光學感應單元14可為電荷耦合元件(Charge-coupled Device,CCD)或是互補式金屬氧化層半導體(Complementary Metal-Oxide-Semiconductor,CMOS),多個光學感應單元14之中的每一個係代表一個畫素(pixel)。多個光學感應單元14在接收到反射光,並經過類比數位轉換後,即可在時間上依序產生多個影像訊號。每一個影像訊號包含多個亮度訊號與影像品質訊號。亮度訊號可為多個位元的灰階值或是二值化的影像訊號。多個光學感應單元14可藉由調整曝光時間的長短或是曝光強度,來改變影像訊號的亮度值。The plurality of optical sensing units 14 receive the reflected light in a fixed period or a non-fixed period. The plurality of optical sensing units 14 may be a Charge-coupled Device (CCD) or a Complementary Metal-Oxide-Semiconductor (CMOS), each of the plurality of optical sensing units 14. Represents a pixel. After receiving the reflected light and performing the analog digital conversion, the plurality of optical sensing units 14 can sequentially generate a plurality of image signals in time. Each image signal contains multiple brightness signals and image quality signals. The luminance signal can be a grayscale value of a plurality of bits or a binarized image signal. The plurality of optical sensing units 14 can change the brightness value of the image signal by adjusting the length of the exposure time or the exposure intensity.

記憶體16可用以儲存多個影像訊號。處理器18可為微處理器、微控制器、特定應用積體電路(Application-specific integrated circuit,ASIC)或是場效可程式化閘陣列(Field Programmable Gate Array,FPGA),處理器18除了可用來控制發光裝置12、光學感應單元14與記憶體16之外,並且可用以執行本發明所提出之拍攝參數調整方法。The memory 16 can be used to store a plurality of video signals. The processor 18 can be a microprocessor, a microcontroller, an application-specific integrated circuit (ASIC), or a Field Programmable Gate Array (FPGA). The illumination device 12, the optical sensing unit 14 and the memory 16 are controlled, and can be used to perform the shooting parameter adjustment method proposed by the present invention.

在本發明中,處理器18用以根據每個影像訊號中的部份等亮度訊號,依序設定光學感應模組10之一曝光條件。光學感應模組10根據多個不同的曝光條件產生多個影像訊號。並從這些影像訊號之中,根據影像品質訊號,選取其中一個影像的曝光條件作為最佳曝光條件。In the present invention, the processor 18 is configured to sequentially set an exposure condition of the optical sensing module 10 according to a brightness signal of a portion of each image signal. The optical sensing module 10 generates a plurality of image signals according to a plurality of different exposure conditions. And from these image signals, according to the image quality signal, the exposure condition of one of the images is selected as the optimal exposure condition.

以上述敘了本發明裝置上的特徵,至於詳細步驟,係茲說明如下。The features of the device of the present invention are described above, and the detailed steps are as follows.

請參照『第2圖』,係為本發明所揭露之調整一光學感應模組的曝光條件的方法之第一實施例之流程圖。Please refer to FIG. 2, which is a flowchart of a first embodiment of a method for adjusting exposure conditions of an optical sensor module disclosed in the present invention.

在步驟S101中,係由先由發光裝置12係發出光線至一工作表面,再由光學感應模組10中的多個光學感應單元14接收反射光。In step S101, the light is emitted from the light-emitting device 12 to a working surface, and the reflected light is received by the plurality of optical sensing units 14 in the optical sensing module 10.

在步驟S103中,在接收反射光後,光學感應模組10將反射光經過處理而產生影像訊號。每個影像訊號包括多個亮度訊號與一個影像品質訊號。影像訊號係由多個畫素所組成,每個畫素係對應一個亮度訊號。影像品質訊號係代表影像訊號的對比值,對比值定義為亮度訊號中的最大值(或是畫素分組後的平均值最大的一組)與最小值(或是畫素分組後的平均值最小的一組)彼此之間的比值。In step S103, after receiving the reflected light, the optical sensing module 10 processes the reflected light to generate an image signal. Each image signal includes a plurality of luminance signals and an image quality signal. The image signal is composed of multiple pixels, and each pixel corresponds to a luminance signal. The image quality signal represents the contrast value of the image signal. The contrast value is defined as the maximum value in the luminance signal (or the group with the largest average value after the pixel grouping) and the minimum value (or the minimum average value after the pixel grouping). Group of) the ratio between each other.

在步驟S105中,係將光學感應單元14係被區分成多個區塊,也就是將上述的多個影像訊號區分成多組。每個區塊較佳為方格。處理器18根據分割好的多個區塊,分別計算每個區塊的亮度平均值。每個區塊的亮度平均值定義為此區塊內的所有畫素的亮度訊號的算數平均值或是加權平均值。In step S105, the optical sensing unit 14 is divided into a plurality of blocks, that is, the plurality of image signals are divided into a plurality of groups. Each block is preferably a square. The processor 18 calculates the average value of the brightness of each block based on the plurality of divided blocks. The average of the brightness of each block is defined as the arithmetic mean or weighted average of the luminance signals of all the pixels in the block.

在此實施例中,可將上述的區塊依據亮度值的大小排列進行排列。處理器18從這些區塊中,選取一個或是多個區塊,將選取區塊中所有畫素的亮度訊號的進行平均,以得到亮度訊號的平均值。In this embodiment, the blocks described above may be arranged in accordance with the size of the brightness values. The processor 18 selects one or more blocks from the blocks, and averages the luminance signals of all the pixels in the selected block to obtain an average value of the luminance signals.

之後,處理器18再根據一個設定的目標亮度值,藉由比較目標亮度值與亮度訊號的平均值,產生差異訊號。差異訊號可為目標亮度值與亮度訊號平均值相減後所得到的數值。利用差異訊號,光學感應模組10的曝光條件即可被調整。此處所述的調整曝光條件可為調整光學感應單元14的曝光時間、曝光強度或是調整曝光時間與曝光強度的組合,亦或是改變發光裝置12發出光線的大小,以調整反射光之光強度。Then, the processor 18 generates a difference signal by comparing the target brightness value with the average value of the brightness signal according to a set target brightness value. The difference signal can be the value obtained by subtracting the target brightness value from the average value of the brightness signal. With the difference signal, the exposure conditions of the optical sensing module 10 can be adjusted. The adjustment of the exposure conditions described herein may be to adjust the exposure time of the optical sensing unit 14, the exposure intensity, or to adjust the combination of the exposure time and the exposure intensity, or to change the amount of light emitted by the illumination device 12 to adjust the light of the reflected light. strength.

舉例而言,假設影像訊號區分成25個區塊,每個區塊依據亮度平均值排列,由高至低分別命名為B1、B2、B3、...、B25。在此種方法中,選取排序後的連續數個區塊,比如說選取區塊B1至B5。再計算區塊B1至B5中所有畫素亮度訊號的平均值,並根據此平均值調整曝光條件。而在下一次執行此步驟時,則是選取B2至B6,且計算區塊B2至B6中所有畫素亮度訊號的平均值,並根據此平均值調整曝光條件。此步驟可重複被執行,一直至選取到區塊B21至B25為止。For example, suppose the image signal is divided into 25 blocks, and each block is arranged according to the average value of brightness, and is named B1, B2, B3, ..., B25 from high to low. In this method, a plurality of consecutive blocks after sorting are selected, for example, blocks B1 to B5 are selected. The average of all the pixel luminance signals in the blocks B1 to B5 is calculated, and the exposure conditions are adjusted according to the average value. On the next execution of this step, B2 to B6 are selected, and the average values of all the pixel luminance signals in the blocks B2 to B6 are calculated, and the exposure conditions are adjusted according to the average value. This step can be repeated until the block B21 to B25 is selected.

若是區塊B1至B5中所有畫素亮度訊號的平均值為”100”,而設定的目標亮度值為”150”。此時的差異訊號為”+50”,亦即代表被選取的區塊的亮度偏暗。處理器18可加長光學感應單元14的曝光時間、加強光學感應單元14的曝光強度或是增加發光裝置12發光強度。If the average value of all the pixel luminance signals in the blocks B1 to B5 is "100", the set target luminance value is "150". The difference signal at this time is "+50", which means that the brightness of the selected block is dark. The processor 18 can lengthen the exposure time of the optical sensing unit 14, enhance the exposure intensity of the optical sensing unit 14, or increase the luminous intensity of the illumination device 12.

若是區塊B21至B25中所有畫素亮度訊號的平均值為”200”,而設定的目標亮度值為”150”。此時的差異訊號為”-50”,亦即代表被選取的區塊的亮度偏亮。處理器18可減短光學感應單元14的曝光時間、減低光學感應單元14的曝光強度或是減少發光裝置12發光強度。If the average value of all the pixel luminance signals in the blocks B21 to B25 is "200", the set target luminance value is "150". The difference signal at this time is "-50", which means that the brightness of the selected block is bright. The processor 18 can reduce the exposure time of the optical sensing unit 14, reduce the exposure intensity of the optical sensing unit 14, or reduce the luminous intensity of the illumination device 12.

調整拍攝參數時,可設定在時間上相鄰的一張即調整完成或是以多階段的方式完成。若是以多階段的方式,可以設定多個漸進增加或減少的目標值。舉例而言,若是平均值為”50”,而最後的目標值為”180”。在第一次調整時,先將亮度值調整至”100”,之後,再調整至”140”,最後,才調整至目標值”180”。也就是說,需要經過擷取三張影像的時間後,影像的亮度才可調整至目標值。When adjusting the shooting parameters, you can set one of the adjacent ones in time to be adjusted or in a multi-stage manner. If it is in a multi-stage manner, multiple progressive increase or decrease target values can be set. For example, if the average is "50" and the final target value is "180". In the first adjustment, the brightness value is first adjusted to "100", then adjusted to "140", and finally, to the target value "180". In other words, the brightness of the image can be adjusted to the target value after the time of capturing three images.

再調整完曝光條件之後,光學感應模組10即可用新的曝光條件擷取一個新的影像訊號。並且,光學感應模組10可分析此影像訊號,以得到對應此影像訊號的影像品質訊號。After adjusting the exposure conditions, the optical sensing module 10 can capture a new image signal with the new exposure conditions. Moreover, the optical sensing module 10 can analyze the image signal to obtain an image quality signal corresponding to the image signal.

之後,在步驟S107中,係為重複S103與S105,即可以得到多個影像訊號以及對應此多個影像訊號的多個影像品質訊號。Then, in step S107, by repeating S103 and S105, a plurality of image signals and a plurality of image quality signals corresponding to the plurality of image signals are obtained.

承上述之例,光學感應模組10可根據不同區塊(比如說區塊B1-B5,區塊B2-B6,區塊B3-B7...區塊B21-B25)調整不同的曝光條件。在不同的曝光條件下,光學感應模組10可擷取到多個影像訊號,並且對應產生不同的影像品質訊號。In the above example, the optical sensing module 10 can adjust different exposure conditions according to different blocks (for example, blocks B1-B5, blocks B2-B6, blocks B3-B7...blocks B21-B25). Under different exposure conditions, the optical sensing module 10 can capture a plurality of image signals and correspondingly generate different image quality signals.

最後,在步驟S109中,待產生了多組不同的影像訊號後,可在這些影像訊號中,選取具有最佳影像品質訊號的其中一個影像訊號,並且利用此影像訊號的曝光條件,做為設定對應該工作面的一最佳曝光條件。Finally, in step S109, after a plurality of different image signals are generated, one of the image signals having the best image quality signal can be selected, and the exposure condition of the image signal is used as the setting. An optimal exposure condition for the working surface.

藉由以上之步驟,光學感應模組10可自動調整其曝光條件,以使光學感應模組10可適應不同的工作面,減低因為工作面所反射的光線明亮不均,而判斷移動方向與距離時產生偏差的機率。Through the above steps, the optical sensing module 10 can automatically adjust its exposure conditions, so that the optical sensing module 10 can adapt to different working surfaces, and reduce the brightness and unevenness of the light reflected by the working surface, and determine the moving direction and distance. The probability of deviation.

為了進一步提高判斷移動方向與距離的準確率,本發明係另提出一實施例。請參照『第3圖』,係為本發明所揭露之調整一光學感應模組的曝光條件的方法之第二實施例之流程圖。In order to further improve the accuracy of determining the moving direction and distance, the present invention further proposes an embodiment. Please refer to FIG. 3 , which is a flowchart of a second embodiment of a method for adjusting exposure conditions of an optical sensor module disclosed in the present invention.

步驟S201至步驟S209與步驟S101至步驟S109相同,因此不在此贅述。Steps S201 to S209 are the same as steps S101 to S109, and therefore are not described herein.

在步驟S211中,處理器18係根據多個影像訊號,進行一運動估測程序,以產生一可靠度值訊號。運動估側程序係會針對時間順序上前後相鄰的影像訊號進行處理。處理器18可在時間順序上位於前者的影像訊號找尋出一影像特徵,並且在位於後者的影像訊號中搜尋與此影像特徵相近似的辨識結果。這些辨識結果與影像特徵的差異可轉換為成本函數。處理器18會根據成本函數,選擇出最近似的辨識結果與次近似的辨識結果,並且計算最近似的辨識結果的成本函數與次近似的辨識結果的成本函數之間的差距,做為可靠度值訊號。若是成本函數之間的差距越大,則代表可靠度值越高,反之亦然。In step S211, the processor 18 performs a motion estimation process based on the plurality of video signals to generate a reliability value signal. The motion estimation side program processes the image signals adjacent to each other in time series. The processor 18 can find an image feature in the chronologically located image signal of the former, and search for the identification result similar to the image feature in the image signal located in the latter. The difference between these identification results and image features can be converted into a cost function. The processor 18 selects the most approximate identification result and the second approximation identification result according to the cost function, and calculates the difference between the cost function of the most approximate identification result and the cost function of the sub-approximation identification result as reliability. Value signal. If the difference between the cost functions is greater, it means that the reliability value is higher, and vice versa.

在步驟S213中,處理器18會根據一個預設的門檻值,判斷可靠度值訊號與門檻值相對大小。若是可靠度值訊號小於門檻值,即有代表目前的曝光條件可能已經不適合此時的工作面。因此,處理器18會重新執行步驟S201至步驟S209,以產生另外一個曝光條件,以適應此時的工作面。In step S213, the processor 18 determines the relative magnitude of the reliability value signal and the threshold according to a preset threshold value. If the reliability value signal is less than the threshold value, it means that the current exposure condition may not be suitable for the working surface at this time. Therefore, the processor 18 re-executes steps S201 through S209 to generate another exposure condition to accommodate the work surface at this time.

藉由上述之方法,進一步提高判斷移動方向與距離的準確率雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。The accuracy of determining the direction and distance of movement is further improved by the above-described method. Although the present invention has been disclosed above in the foregoing embodiments, it is not intended to limit the present invention. It is within the scope of the invention to be modified and modified without departing from the spirit and scope of the invention. Please refer to the attached patent application for the scope of protection defined by the present invention.

10...光學感應模組10. . . Optical sensor module

12...發光裝置12. . . Illuminating device

14...光學感應單元14. . . Optical sensing unit

16...記憶體16. . . Memory

18...處理器18. . . processor

『第1圖』係為根據本發明所適用之影像擷取裝置的架構示意圖;FIG. 1 is a schematic structural view of an image capturing device according to the present invention;

『第2圖』係為本發明所揭露之調整一光學感應模組的曝光條件的方法之第一實施例之流程圖;以及2 is a flowchart of a first embodiment of a method for adjusting exposure conditions of an optical sensing module disclosed in the present invention;

『第3圖』係為本發明所揭露之調整一光學感應模組的曝光條件的方法之第二實施例之流程圖。FIG. 3 is a flow chart of a second embodiment of a method for adjusting exposure conditions of an optical sensing module disclosed in the present invention.

Claims (12)

一種調整光學感應模組的曝光條件的方法,該光學感應模組用於一指向裝置,該方法包括:(A)接收由一工作面所反射之一反射光;(B)根據該反射光照射該光學感應模組而產生一影像訊號,包含複數亮度訊號以及一影像品質訊號,其中該步驟(B)包括:將該影像訊號區分成複數個區塊,對應該複數亮度訊號;以及依據一亮度大小,排列該等亮度訊號;(C)根據部份該等亮度訊號,設定該光學感應模組的一曝光條件,其中該步驟(C)包括:依該等亮度訊號的一排列順序,選取部份該等亮度訊號;平均該等亮度訊號;以及根據該等亮度訊號之一平均值,設定該光學感應模組的該曝光條件;(D)重複該步驟(B)與該步驟(C),以不同的該曝光條件,使該光學感應模組產生複數個該影像品質訊號,其中該步驟(D)包括:依該等亮度訊號的該排列順序,每次選取不同部份該等亮度訊號以設定不同的該曝光條件;以及在不同的該曝光條件下,對應產生不同的該影像品質 訊號;以及(E)根據不同的該曝光條件下的該影像品質訊號,設定對應該工作面的一最佳曝光條件。 A method for adjusting an exposure condition of an optical sensing module, the optical sensing module being used for a pointing device, the method comprising: (A) receiving a reflected light reflected by a working surface; (B) illuminating according to the reflected light The optical sensing module generates an image signal, comprising a plurality of brightness signals and an image quality signal, wherein the step (B) comprises: dividing the image signal into a plurality of blocks, corresponding to the plurality of brightness signals; and according to a brightness And arranging the brightness signals; (C) setting an exposure condition of the optical sensor module according to the plurality of brightness signals, wherein the step (C) comprises: selecting a portion according to an arrangement order of the brightness signals And averaging the brightness signals; and setting the exposure condition of the optical sensor module according to an average value of the brightness signals; (D) repeating the step (B) and the step (C), The optical sensing module generates a plurality of the image quality signals according to the different exposure conditions, wherein the step (D) comprises: selecting different portions each time according to the arrangement order of the brightness signals Of the signal to set different exposure conditions; and in the different exposure conditions, the image corresponding to produce different quality The signal; and (E) setting an optimal exposure condition corresponding to the working surface according to the image quality signal under the different exposure conditions. 如請求項1所述之方法,其中該步驟(C)更包括:設定一目標亮度值;比較該目標亮度值與該等亮度訊號之該平均值,以產生一差異訊號;以及根據該差異訊號,設定該光學感應模組的該曝光條件。 The method of claim 1, wherein the step (C) further comprises: setting a target brightness value; comparing the target brightness value with the average of the brightness signals to generate a difference signal; and according to the difference signal Setting the exposure condition of the optical sensing module. 如請求項1所述之方法,其中該曝光條件,係為該光學感應模組之一曝光時間及一曝光強度其中之一。 The method of claim 1, wherein the exposure condition is one of an exposure time and an exposure intensity of the optical sensing module. 如請求項1所述之方法,其中該曝光條件,係為該反射光之一光強度。 The method of claim 1, wherein the exposure condition is a light intensity of the reflected light. 如請求項1所述之方法,其中該影像品質訊號係代表該影像訊號的一平均對比度。 The method of claim 1, wherein the image quality signal represents an average contrast of the image signal. 如請求項1所述之方法,更包括:(F)根據該複數個影像訊號,進行一運動估測程序,以產生一可靠度值訊號;以及(G)當該可靠度值訊號低於一門檻值時,重新執行該步驟(A)至該步驟(E)。 The method of claim 1, further comprising: (F) performing a motion estimation procedure based on the plurality of video signals to generate a reliability value signal; and (G) when the reliability value signal is lower than one When the threshold is exceeded, perform step (A) to step (E) again. 一種光學感應模組,用於一指向裝置,該指向裝置藉由與一工作面發生一相對運動,並利用該光學感應模組偵測該相對運動而產生一位移訊號,該光學感應模組包括: 複數個光學感應單元,用以週期性地接收由該工作面反射之一反射光,並依序產生複數個影像訊號,每一該影像訊號包含複數亮度訊號以及一影像品質訊號;以及一處理器,用以根據該每個影像訊號的部份該等亮度訊號,依序設定該光學感應模組之一曝光條件,以及根據不同曝光條件下的該影像品質訊號,設定對應該工作面的一最佳曝光條件;其中該等光學感應單元係被區分成複數個區塊,對應該複數亮度訊號,該處理器用以依據一亮度大小,排列該等亮度訊號,並依照該等亮度訊號的一排列順序,選取並平均部份該等亮度訊號,而後再根據該等亮度訊號之一平均值,設定該光學感應模組的該曝光條件;其中該處理器依該等亮度訊號的該排列順序,每次選取不同部份該等亮度訊號以設定不同的該曝光條件;以及在不同的該曝光條件下,對應產生不同的該影像品質訊號。 An optical sensing module is used for a pointing device. The pointing device generates a displacement signal by detecting a relative motion with a working surface, and the optical sensing module includes a displacement signal. The optical sensing module includes: : a plurality of optical sensing units for periodically receiving light reflected by the working surface and sequentially generating a plurality of image signals, each of the image signals comprising a plurality of brightness signals and an image quality signal; and a processor And according to the brightness signal of each of the image signals, sequentially setting an exposure condition of the optical sensing module, and setting a maximum corresponding to the working surface according to the image quality signal under different exposure conditions. Preferably, the optical sensing unit is divided into a plurality of blocks, corresponding to the plurality of brightness signals, the processor is configured to arrange the brightness signals according to a brightness level, and according to a sequence of the brightness signals Selecting and averaging a portion of the brightness signals, and then setting the exposure conditions of the optical sensor module according to an average value of the brightness signals; wherein the processor is in accordance with the order of the brightness signals, each time Selecting different portions of the brightness signals to set different exposure conditions; and under different exposure conditions, correspondingly generating no The quality of the image signal. 如請求項7所述之光學感應模組,其中該處理器比較一目標亮度值與該等亮度訊號之該平均值,以產生一差異訊號;並根據該差異訊號,設定該光學感應模組的該曝光條件。 The optical sensor module of claim 7, wherein the processor compares a target brightness value with the average of the brightness signals to generate a difference signal; and, according to the difference signal, sets the optical sensor module The exposure conditions. 如請求項7所述之光學感應模組,其中該曝光條件,係為該光學感應模組之一曝光時間及一曝光強度其中之一。 The optical sensing module of claim 7, wherein the exposure condition is one of an exposure time and an exposure intensity of the optical sensing module. 如請求項7所述之光學感應模組,其中該曝光條件,係為該反射光之一光強度。 The optical sensing module of claim 7, wherein the exposure condition is a light intensity of the reflected light. 如請求項7所述之光學感應模組,其中該影像品質訊號係代表該影像訊號的一平均對比度。 The optical sensing module of claim 7, wherein the image quality signal represents an average contrast of the image signal. 如請求項7所述之光學感應模組,其中該處理器更用以根據該複數個影像訊號,進行一運動估測程序,以產生一可靠度值訊號;以及當該可靠度值訊號低於一門檻值時,該光學感應模組重新設定另一最佳曝光條件。 The optical sensor module of claim 7, wherein the processor is further configured to perform a motion estimation process based on the plurality of image signals to generate a reliability value signal; and when the reliability value signal is lower than The optical sensing module resets another optimal exposure condition at a threshold.
TW99141710A 2009-06-25 2010-12-01 An optical sensing device and a method of adjusting an exposure condition for the same TWI427508B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW99141710A TWI427508B (en) 2010-12-01 2010-12-01 An optical sensing device and a method of adjusting an exposure condition for the same
US13/080,563 US8531588B2 (en) 2009-06-25 2011-04-05 Method for adjusting exposure condition of optical sensor module and optical sensor module thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99141710A TWI427508B (en) 2010-12-01 2010-12-01 An optical sensing device and a method of adjusting an exposure condition for the same

Publications (2)

Publication Number Publication Date
TW201224858A TW201224858A (en) 2012-06-16
TWI427508B true TWI427508B (en) 2014-02-21

Family

ID=46725986

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99141710A TWI427508B (en) 2009-06-25 2010-12-01 An optical sensing device and a method of adjusting an exposure condition for the same

Country Status (1)

Country Link
TW (1) TWI427508B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399090A (en) * 2019-08-14 2021-02-23 原相科技股份有限公司 Camera with two exposure modes and camera system using same

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050110776A1 (en) * 2003-11-21 2005-05-26 Tan Shan C. Pointing device with adaptive illumination level
US6906753B1 (en) * 1998-06-23 2005-06-14 Mitsubishi Denki Kabushiki Kaisha Image processing unit and image processing method with simplified exposure, gain and white balance control
TW200530930A (en) * 2004-03-05 2005-09-16 Sunplus Technology Co Ltd Brightness control device of the light source in optical mouse
TW200701042A (en) * 2005-05-06 2007-01-01 Avago Technologies General Ip Light source control in optical pointing device
US7230606B2 (en) * 2002-12-17 2007-06-12 Atlab Inc. Optical mouse and method for preventing abnormal operation of the same
TW201032093A (en) * 2009-02-18 2010-09-01 Elan Microelectronics Corp Inspection device and associated method for optical mouse device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6906753B1 (en) * 1998-06-23 2005-06-14 Mitsubishi Denki Kabushiki Kaisha Image processing unit and image processing method with simplified exposure, gain and white balance control
US7230606B2 (en) * 2002-12-17 2007-06-12 Atlab Inc. Optical mouse and method for preventing abnormal operation of the same
US20050110776A1 (en) * 2003-11-21 2005-05-26 Tan Shan C. Pointing device with adaptive illumination level
TW200530930A (en) * 2004-03-05 2005-09-16 Sunplus Technology Co Ltd Brightness control device of the light source in optical mouse
TW200701042A (en) * 2005-05-06 2007-01-01 Avago Technologies General Ip Light source control in optical pointing device
TW201032093A (en) * 2009-02-18 2010-09-01 Elan Microelectronics Corp Inspection device and associated method for optical mouse device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399090A (en) * 2019-08-14 2021-02-23 原相科技股份有限公司 Camera with two exposure modes and camera system using same
CN112399090B (en) * 2019-08-14 2022-04-15 原相科技股份有限公司 A camera with two exposure modes and a camera system using the camera

Also Published As

Publication number Publication date
TW201224858A (en) 2012-06-16

Similar Documents

Publication Publication Date Title
CN102298452A (en) Method for adjusting exposure conditions of optical sensing module and its optical sensing module
CN104281288B (en) navigation device with adjustable tracking parameters
US10257428B2 (en) Image processing apparatus and image processing method that adjust, based on a target object distance, at least one of brightness of emitted pattern light and an exposure amount
US8477234B2 (en) Brightness sensing system and illumination system using the same
JP6566737B2 (en) Information processing apparatus, information processing method, and program
US10928931B2 (en) Navigation device with adjustable sample period
CN109905610B (en) Exposure time adjustment method of optical ranging system
TWI647661B (en) Image depth sensing method and image depth sensing device
US8531588B2 (en) Method for adjusting exposure condition of optical sensor module and optical sensor module thereof
TWI427508B (en) An optical sensing device and a method of adjusting an exposure condition for the same
JP6267486B2 (en) Image processing apparatus and image processing method
US10628951B2 (en) Distance measurement system applicable to different reflecting surfaces and computer system
US10089731B2 (en) Image processing device to reduce an influence of reflected light for capturing and processing images
JP5212195B2 (en) Image processing apparatus and image processing method
CN113079322B (en) Imaging system and flicker elimination method thereof
CN104954662A (en) Sensor and control system using same
JP5081186B2 (en) Method for detecting shooting position of shooting object
JP2012198337A (en) Imaging apparatus
US7362912B2 (en) Method and system for immediately determining incorrect pixel values of a captured image
JP7748864B2 (en) Image processing device and picking system
TWI442764B (en) Image processing methods and modules for the same
KR20140016527A (en) Apparatus for image processing based histogram and method thereof
WO2025192342A1 (en) Distance measurement device, distance measurement method, and storage medium
CN110536063A (en) Automobile-used image-taking device and image acquisition method
CN115079844A (en) Optical mouse and lifting state judgment method thereof