TW201042243A - Color identification module and calibrating method therein - Google Patents
Color identification module and calibrating method therein Download PDFInfo
- Publication number
- TW201042243A TW201042243A TW98117386A TW98117386A TW201042243A TW 201042243 A TW201042243 A TW 201042243A TW 98117386 A TW98117386 A TW 98117386A TW 98117386 A TW98117386 A TW 98117386A TW 201042243 A TW201042243 A TW 201042243A
- Authority
- TW
- Taiwan
- Prior art keywords
- color
- light
- basic
- calibration
- parameter
- Prior art date
Links
Landscapes
- Spectrometry And Color Measurement (AREA)
- Image Processing (AREA)
Abstract
Description
201042243 六、發明說明: 【發明所屬之技術領域】 本發明係關於一種顏色辨識的技術,更進一步來說, 本發明係關於一種顏色識別模組的校準方法 石从及使用此 校準方法的顏色識別模組。 龜 • 【先前技術】 使用電子技術實現色彩識別是一項在不斷發展的技 Ο術,其應用領域不斷擴展。例如為盲人或色盲患者識別顏 色提供方便,在玩具中設置色彩識別功能以增加教育性: 趣味性等。 現有技術大多採用互補金屬氧化物半導體感測器 (CMOS SENSOR)實現色彩識別,其利用集成的㈤⑽ 光電耦合器件感應普通白光照射下的待測物體的反射信 號,獲得電信號;隨後根據該電信號獲得外界光特性,據 此分析其中所包含的各個色彩的參量。此種技術通過複雜 〇的數位信號處理實現色彩的檢測,具有較高的可靠性。但 ,由於成本高昂,其應用範圍受到限制。 巾國大陸專财請第別G9539號公開—種顏色識 別設傷,其採用可發出紅、綠、藍三基本色光的發光源, 通過發出上述三個基本色的探測光,在待測物上獲得對應 於紅、綠、藍三個基本色的反射光,並使用感測器依序進 行檢測,得到對應於紅、綠、藍三個基本色的電子參數。 接下來,根據所獲得的對應於三個基本色的探測資料,查 4 201042243 詢標準顏色參數表,獲得對應於每_基本色的顏色㈣結 果’並將出現最多的判斷結果作為最終的顏色識別結果。 另外,上述案件也揭露了其校準方法,此校準方法主 要是在出廠前,㈣感光元件做以下校準。第2圖為習知 中國大陸專利申請第20051009539號公開的校準方法的流 程圖。請參考第i圖,此校準方法包括以下步驟: 步驟S 101 :開始。 Ο 步驟_ :點亮廠内部提供的三個標準基本色光 源’以照亮一標準白色待測物。 步驟s Η) 3 ··感測此標準白色待測物的反射光以得到 此環境亮度下的電子參數。 步驟S104:將得到的電子參數與儲存的標準顏色參數 :白色參數相比較,計算線性比例,來校正記憶體所儲存 的基準參數表。 步驟S105 :結束。201042243 VI. Description of the Invention: [Technical Field] The present invention relates to a technique for color recognition, and more particularly to a method for calibrating a color recognition module and color recognition using the calibration method Module. Turtle • [Prior Art] The use of electronic technology for color recognition is an evolving technology that continues to expand in applications. For example, it is convenient for blind or color-blind patients to identify colors, and color recognition is added to toys to increase educational: fun and so on. Most of the prior art uses a complementary metal oxide semiconductor sensor (CMOS SENSOR) to realize color recognition, which uses an integrated (5) (10) optocoupler device to sense a reflected signal of an object to be measured under ordinary white light illumination to obtain an electrical signal; and then according to the electrical signal The external light characteristics are obtained, and the parameters of the respective colors contained therein are analyzed accordingly. This technology achieves color detection through complex digital signal processing and has high reliability. However, due to the high cost, its application range is limited. The country's special wealth in the country is disclosed in G9539. It is a kind of color recognition and injury. It uses a light source that emits three basic colors of red, green and blue. It emits the above three basic colors of the probe light on the object to be tested. The reflected light corresponding to the three basic colors of red, green and blue is obtained, and the sensors are sequentially detected using the sensor to obtain electronic parameters corresponding to the three basic colors of red, green and blue. Next, based on the obtained probe data corresponding to the three basic colors, check 4 201042243 to query the standard color parameter table, obtain the color corresponding to each _ basic color (four) result ' and the most judged result as the final color recognition result. In addition, the above method also reveals its calibration method. This calibration method is mainly performed at the factory, and (4) the photosensitive element is calibrated as follows. Fig. 2 is a flow chart showing the calibration method disclosed in the Chinese Patent Application No. 20051009539. Please refer to the i-th diagram. The calibration method includes the following steps: Step S101: Start. Ο Step _: Light up the three standard basic color sources provided inside the factory to illuminate a standard white object to be tested. Step s Η) 3 ·· Detect the reflected light of this standard white analyte to obtain the electronic parameters at this ambient brightness. Step S104: Comparing the obtained electronic parameters with the stored standard color parameter: white parameter, and calculating a linear ratio to correct the reference parameter table stored in the memory. Step S105: End.
然而’上述發明的缺陷在於: !顏 等要求精 統。 色探測:對於其所選元件,包括發光源、感測器 確度較高,因此無法滿足供電電壓波動較大的系 2. 白色光為混色光’因此’感光元件在此種條件測試 ’會有誤差產生。 3. 僅針對感光元件的元件漂移作校準。由於沒有作全 有、:測4 ’因此若組裝完成後’發光元件所發出的光線若 有味移’將會影響感測結果。 5 201042243 【發明内容】 本發明的一目的在於提供一種校準方法,適用於一顏 色識別模組’其結構簡單’對於元器件要求低,運算過程 簡單,成本低,可以獲得廣泛的應用及滿足實際工廠量產 要求。 Ο 〇 本發明的另一目的在於提供一種顏色識別模組,藉由 上述校準方法,使顏色識別更加準確。 有鑒於此,本發明提供一種顏色識別模組的校準方 法,其中此顏色模組包括用以發射多種基本色的一發光電 路以及儲存多種顏色的一基準參數表,此校準方法包括下 列步驟.點亮發光電路以發出一特定基本色,以照射一標 準灰階色;獲取發光電路所發射的反射光,以獲得特定美 本色的-探測資料;由基準參數表,取出標準灰階色的2 7中肖定基本色的一特定基本色參數;另字特定基本 色的探别貝料與特定基本色參數作比對,以獲得—校準比 ο因數’以及根據校準比例因數’調整基準參數表 一儲存的顏舍+ " 母 數。 貝枓中的特定基本色成份的特定基本色參 發明另外提供_種顏色 此顏色模纽包括用校準方:其中 儲存多種顏色的一λ準參色的-發光電路以及 驟··點亮發光電敗 校準方法包括下列步 灰階色;獲取發光雷分別發"個基本色,以照射-標準 電路發出的每一基本色的反射光,以獲 6 201042243 得每一基本色所對應的一探測資料;由基準參數表,取出 標準灰階色的一基色參數;將探測資料與該基色參數作比 對,以獲得一校準比例因數;以及根據校準比例因數,調 整基準參數表中,每一儲存的顏色資料中的基本色成份的 基本色參數。 本發明另外提供一種顏色識別模組,此顏色識別模組 ' 包括一發光電路、一儲存單元、一感測器以及一控制單 元。發光電路用以發射出多種基本色光。儲存單元儲存— 〇基準參數表,其中此基準參數表包括多種顏色對應於上述 基本色的標準發光數據。感測器用以接收發光電路所發射 出的光線之反射光。控制單元耦接感測器、發光電路以及 儲存單元w進行一校準程序時,控制單元控制發光電路 發出一特定基本色光以照射一標準灰階色,接下來,感測 器感測發光電路的反射光,以獲得特定基本色的一探測資 料。控制單70由基準參數表中取出標準灰階色所對應的基 色參數中,特定基本色的一特定基本色參數,並將特定基 〇本色的探測資料與特定基本色參數作比對,以獲得一校準 .比例因數。最後。控制單元根據校準比例因數,調整基準 參數表中’每一顏色中的特定基本色成份的特定基本色參 依照本發明較佳實施例所述之顏色識別模組以 色識別模組的校準方法,前述由基準參數表1出標準灰 階色的基色參數中,特定基本色的-特定基本色參數的步 驟包括:將探測資料除以特定基本色參數,以獲得校準: 7 201042243 口數纟特定較佳實施例中,前述根 數,《基準參數表中,每一該些顏色中的該特=因色 的特疋基本色參數的步驟包括:將校準比例 =中的特定基本色的特定基本色參數,並利用 ^ 數,更新基準參數表。在一較佳實施例中,前述二= 色包括紅色、綠色、藍色=特疋基本 …务s 者其中之一,且前述標準灰階 色為白色。料,前述發光電路可以用—個紅綠藍三 Ο 光二極體或是分別使用紅色發光二極體、綠色發光二極體 以及藍色發光二極體實施。感測器則可以用紐電 敏二極體實施。 本發明之精神是在於利用分時點亮不同基本色光,來 對一個標準灰階色照射,以獲取其反射光的電子參數。之 後,在將此電子參數與儲存在儲存單元内的標準電子參數 作比較,得到兩者的比例,此比例可以被視為是不同元件 的誤差所造成。最後,利用此比例,對每一個儲存在儲存 單兀内之顏色作校正。此種校正的機制簡單,且可以降低 〇 對於元件的準確度之要求,運算過程簡單,成本低,可以 .獲得廣泛的應用及滿足實際工廠量產要求。 為讓本發明之上述和其他目的、特徵和優點能更明顯 易懂’下文特舉較佳實施例,並配合所附圖式,作詳細說 明如下。 【實施方式】 第2圖是本發明實施例的顏色識別模組的結構方塊 8 201042243 圖。請參考楚,rsi 2圖’此顏色識別模組包括一發光電路2〇 j、 = 控制早兀203、一儲存單元204以及顏 色識U輪出單元2G5。發光電路2G1用以發射出多種 基本色光,例如紅色光、綠色光以及藍色光,一般來說, . 可以用一個紅綠藍三基色發光二極體或者是一紅色發光 二極體、一綠色發光二極體以及一藍色發光二極體來實 施。感測器202用以接收發光電路2〇1照射一待測物體 2〇6的反射光,一般來說,可以利用光敏電阻或光敏二極 Ο體實施。控制單元203用以耦接並控制感測器2〇2、發光 電路201以及儲存單元204。儲存單元2〇4用以儲存一基 準參數表,此基準參數表包括多種顏色對應於上述基本色 的標準發光數據。表一是本發明實施例的基準參數表。請 參考以下表一: ❹ 顏色序號 M, 1 墨綠 R參數 0x0021 0x0026However, the drawbacks of the above invention are: • The requirements such as beauty are fine. Color detection: For its selected components, including the illumination source and the sensor, the accuracy is high, so it can not meet the fluctuation of the supply voltage. 2. The white light is the mixed color 'so the 'photo sensor is tested in this condition' The error is generated. 3. Calibrate only for component drift of the sensor. Since there is no total, the measurement 4 ′, if the light emitted by the illuminating element after the assembly is completed, the sensation will be affected. 5 201042243 SUMMARY OF THE INVENTION An object of the present invention is to provide a calibration method suitable for a color recognition module, which has a simple structure, has low requirements for components, is simple in operation, and has low cost, and can be widely applied and meets actual needs. Factory mass production requirements. Ο 另一 Another object of the present invention is to provide a color recognition module which is more accurate in color recognition by the above calibration method. In view of the above, the present invention provides a calibration method for a color recognition module, wherein the color module includes a light emitting circuit for emitting a plurality of basic colors and a reference parameter table for storing a plurality of colors, and the calibration method includes the following steps. Illuminating the light emitting circuit to emit a specific basic color to illuminate a standard grayscale color; obtaining the reflected light emitted by the light emitting circuit to obtain a specific beauty-detection data; and extracting the standard grayscale color from the reference parameter table. a specific basic color parameter of the basic color; the different specific color of the specific basic color is compared with a specific basic color parameter to obtain - calibration ratio ο factor ' and adjust the reference parameter table according to the calibration scaling factor Stored face + " mother number. The specific basic color ginseng of the specific basic color component in the Bessie is additionally provided with _ color. The color modulo includes a calibrator: a λ-parameter-light-emitting circuit in which a plurality of colors are stored, and a luminescence The failure calibration method includes the following steps of gray scale color; obtaining the illuminating ray separately and " a basic color, to illuminate the reflected light of each basic color emitted by the standard circuit, to obtain a detection corresponding to each basic color of 6 201042243 Data; a primary color parameter of the standard grayscale color is taken from the reference parameter table; the detected data is compared with the primary color parameter to obtain a calibration scaling factor; and the reference parameter table is adjusted according to the calibration scaling factor, each storage The basic color parameters of the basic color components in the color data. The invention further provides a color recognition module, which comprises a lighting circuit, a storage unit, a sensor and a control unit. The lighting circuit is used to emit a plurality of basic color lights. The storage unit stores - a reference parameter table, wherein the reference parameter table includes standard illuminating data of a plurality of colors corresponding to the above basic colors. The sensor is configured to receive reflected light of the light emitted by the light emitting circuit. When the control unit is coupled to the sensor, the light-emitting circuit, and the storage unit w to perform a calibration procedure, the control unit controls the light-emitting circuit to emit a specific basic color light to illuminate a standard gray-scale color, and then, the sensor senses the reflection of the light-emitting circuit. Light to obtain a probe data for a particular base color. The control unit 70 extracts a specific basic color parameter of a specific basic color from the primary color parameter corresponding to the standard gray color according to the reference parameter table, and compares the detection data of the specific base color with the specific basic color parameter to obtain A calibration. Scale factor. At last. The control unit adjusts the specific basic color gradation of the specific basic color component in each color in the reference parameter table according to the calibration scaling factor, according to the calibration method of the color recognition module of the color recognition module according to the preferred embodiment of the present invention. In the foregoing primary color parameter of the standard gray-scale color from the reference parameter table 1, the step of the specific basic color-specific basic color parameter includes: dividing the detection data by a specific basic color parameter to obtain a calibration: 7 201042243 In a preferred embodiment, the foregoing root number, in the reference parameter table, the step of the characteristic basic color parameter of the special color factor in each of the colors includes: a specific basic color of a specific basic color in the calibration ratio= Parameters, and use the ^ number to update the benchmark parameter table. In a preferred embodiment, the aforementioned two color includes one of red, green, and blue=characteristics, and the aforementioned standard grayscale color is white. The light-emitting circuit can be implemented by using a red, green, and blue light-emitting diode or a red light-emitting diode, a green light-emitting diode, and a blue light-emitting diode. The sensor can be implemented with a neon-sensitive diode. The spirit of the present invention is to illuminate a standard grayscale color by illuminating different basic color lights with time division to obtain electronic parameters of the reflected light. Thereafter, the electronic parameters are compared to standard electronic parameters stored in the storage unit to obtain a ratio of the two, which can be considered as a result of errors in different components. Finally, using this ratio, the color stored in each of the storage units is corrected. The mechanism of such correction is simple, and can reduce the accuracy requirement of the component, the calculation process is simple, the cost is low, and the wide application can be obtained and the actual factory mass production requirements can be met. The above and other objects, features, and advantages of the present invention will become more apparent <RTIgt; Embodiment 2 FIG. 2 is a structural block diagram of a color recognition module according to an embodiment of the present invention. Please refer to CC, rsi 2 diagram' This color recognition module includes a lighting circuit 2〇 j, = control early 203, a storage unit 204, and a color recognition U wheeling unit 2G5. The illuminating circuit 2G1 is configured to emit a plurality of basic color lights, such as red light, green light, and blue light. Generally, a red, green, and blue primary light emitting diode or a red light emitting diode or a green light emitting light can be used. The diode and a blue light emitting diode are implemented. The sensor 202 is configured to receive the reflected light of the object to be tested 2〇6 by the light-emitting circuit 2〇1, and generally can be implemented by using a photoresistor or a photosensitive diode. The control unit 203 is configured to couple and control the sensor 2, the light emitting circuit 201, and the storage unit 204. The storage unit 2〇4 is configured to store a reference parameter table including a plurality of standard illuminating data corresponding to the basic colors. Table 1 is a table of reference parameters of an embodiment of the present invention. Please refer to the following Table 1: ❹ Color No. M, 1 Dark Green R Parameter 0x0021 0x0026
0x002E G參數 0x0022 0x0046 0x00800x002E G parameter 0x0022 0x0046 0x0080
B參數 0x005C 0x0128B parameter 0x005C 0x0128
0x014C 綠色4 咖啡 土黃 0x0029 0x00580x014C Green 4 Coffee Earth Yellow 0x0029 0x0058
0x006B0x006B
0x008B 0x0038 0x00760x008B 0x0038 0x0076
QxQOAQ 0x0070 OxOOAO 粉藍 淡藍 0x0067 0x0081 0x00F7 Qx01C8 0x02C8QxQOAQ 0x0070 OxOOAO Pink Blue Light Blue 0x0067 0x0081 0x00F7 Qx01C8 0x02C8
9 201042243 淡土黃10 0x00C9 OxOODC OxOOEO 灰色11 0x00C9 OxOOEF 0x0250 黃綠12 0x0098 OxOOFB OxOODC 天藍13 ΟχΟΟΑδ 0x012C 0x0318 紅色14 0χ00Α7 0x002E 0x0068 紫色15 ΟχΟΟΒΑ 0x002C OxOOAC 粉紅16 OxOOEC 0x0062 0x013C 皮膚色17 OxOllC 0x00B6 0x0140 粉紫18 0x0116 OxOOBO 0x0228 黃色1 9 0x0154 0x0138 OxOlOC 白色20 0x0158 0x0177 0x03D8 表一 表二則是每一個顏色以標準255灰階表示的顏色表: 顏色序號 R灰階 G灰階 B灰階 黑色1 0 0 0 藍色2 0 0 255 墨綠3 0 127 127 綠色4 0 255 0 咖1# 5 127 63 0 土黃6 127 127 0 粉藍7 127 127 191 淡藍8 127 255 255 紫色9 191 63 255 10 201042243 淡土黃1 〇 191 r ---- 191 0 灰色11 191 191 191 黃綠12 191 255 63 天藍13 191 255 —----------- 255 紅色14 255 0 0 紫色15 255 63 255 粉紅16 255 127 191 皮膚色17 255 191 127 粉紫18 255 --—-------- 255 黃色19 255 255 63 白色20 255 255 255 表二 一般來說,此表一的基準參數表是針對表二的顏色, 預設的偵測數值。換句話說’用標準的三色光,分別檢測 黑色(顏色序號1 )時,理論上會得到紅色偵測數值是十 ❹ 六進位的0x0021 (也就是十進位的33 ),綠色偵測數值是 •十六進位的0x0022 (也就是十進位的34 ),藍色偵測數值 . 是十六進位的0x005C (也就是十進位的92 )。上述表二黑 色的灰階是(0,0,0 ),此表示光線照射到黑色應當全部 被吸收。但是,實際上並不存在此種表面,也就是說,實 際上,照射到黑色表面仍會有些微的反射光被偵測出來。 另外’要發射出單頻的紅色光、綠色光或藍色光,在技術 上也不易實現。 11 201042243 上述的基準參數表所儲存的數值是工裎師利用多次 實驗所給予的數值。然而’發光電路201、感測器2〇2、 外界電壓以及其他使用零零總總的元件,都會有些微的誤 差。這些誤差總和起來,可能會對顏色的偵測造成影響,' 使顏色偵測不準確。 因此,以下校正方法可以在此產品出廠前,作一次最 • 後校正,或是使用者可以在使用一段時間後,利用此方法 進行校正。 〇 第3圖是本發明實施例的顏色識別模組的校正方法的 流程圖。請參考第2圖以及第3圖,此校正方法包括 步驟: 步驟S301 :開始。 步驟S302 :控制發光電路發出一特定基本色光以照射 —標準灰階色。使肖者操作該純識㈣組,使顏色識別 模組的發光電路發射出一基本色光,例如紅色、綠色或藍 色,並且使用者操作該顏色識別模組照射一個標準灰階 色,較為常用的是白色。然而,白色僅是一個較佳的實施 ‘=正只要是基準參數表裡面有儲存的灰色,亦可以拿來作 步驟S303 :感測發光電路的反射光,以獲得特定基本 探測資料。感測器202將感測到的反射光,轉為電 子參數。 … 表步驟S304:進行比對運算。控制單元2〇3由基準參數 中取出標準灰階色所對應的基色參數中,特定基本色的 12 Ο Ο 201042243 一特定基本色參數,並將特 , Λ Λ , 本色的探測資料與該特定 基本色參數作比對,以獲得__校 Η…亥特疋 以以下列方式計算而得: 數。比例因數可 紅(綠或藍)色校準比例因數= 光二極體發光照射該標準 、.(、4或藍)色發 表中,《準灰階色的紅( 早參數 H _ 尺監·^色基色的資料。 步驟S305 :進行校正程序。控π _ 準比例因數,調整基準參數表令f :: 203根據上述校 色成份的特定基本色參數。 /色中的特定基本 =或藍)色校準後的資_ =基準參數表中每一 =的顏色之紅(綠或藍)色成份* 準比例因數。 、T 4監J已才乂 步驟S 3 0 6 ::蔣卜;七叫_曾,, 到指定位^出校準後顏色參數表倚存 巧扣疋位置的儲存單元2〇4。 步驟S307 :判斷是否還有 谁杆牛跑。 巴禾進仃杈正。若有,則 /驟S308。若無,則進行S3〇9。 步驟S308 :排除上述特定美 色来 本色先’取出一新的基本 巴九回到步驟S302。 步驟S309 :結束。 式,2實施例是以一次一個顏色分開來作校正的方 3太欢3外提出一個顏色識別模組的校準方法。第4圖 疋發明另一實施例的顏务$免丨嫂έβ > 圖。这 ^』们顧邑識別模組的校正方法的流程 流程^ M 4圖,對於任意顏色識別模組,其校準具體 13 201042243 步驟S401 :開始。 步驟S402 :依次點亮發光電路的紅、綠、藍三基本色 光’分別照射一標準灰階色塊。 胃步驟S403:分別獲取紅、綠、藍三基本色光的反射光, 獲得紅、綠、藍三基本色所對應的電子參數。 步驟S404 :進行比對運算。將採集到的紅、綠、藍三 ’基本色的電子參數與上述基準參數表中的白色的紅、綠、 ^二基本色參數分別相除,得到紅、,綠、藍三基本色的校 >比例因數。同樣的道理,紅、綠、藍三基本色的校準比 例因數具體演算法公式如下: Μ ώ A (故準比例因數)=校準模組的紅色二極體發光照9 201042243 Adipose yellow 10 0x00C9 OxOODC OxOOEO Gray 11 0x00C9 OxOOEF 0x0250 Yellow green 12 0x0098 OxOOFB OxOODC Sky blue 13 ΟχΟΟΑδ 0x012C 0x0318 Red 14 0χ00Α7 0x002E 0x0068 Purple 15 ΟχΟΟΒΑ 0x002C OxOOAC Pink 16 OxOOEC 0x0062 0x013C Skin color 17 OxOllC 0x00B6 0x0140 Pink purple 18 0x0116 OxOOBO 0x0228 Yellow 1 9 0x0154 0x0138 OxOlOC White 20 0x0158 0x0177 0x03D8 Table 1 and Table 2 are the color tables in each color in the standard 255 gray scale: Color No. R Grayscale G Grayscale B Grayscale Black 1 0 0 0 Blue 2 0 0 255 Dark green 3 0 127 127 Green 4 0 255 0 Coffee 1# 5 127 63 0 Earth yellow 6 127 127 0 Pink blue 7 127 127 191 Light blue 8 127 255 255 Purple 9 191 63 255 10 201042243 Alight yellow 1 〇 191 r ---- 191 0 Gray 11 191 191 191 Yellow Green 12 191 255 63 Sky Blue 13 191 255 —----------- 255 Red 14 255 0 0 Purple 15 255 63 255 Pink 16 255 127 191 Skin Color 17 255 191 127 pink purple 18 255 ----------- 255 yellow 19 255 255 63 white 20 255 255 255 Table 2 In general, the benchmark parameter table of this table is for Color, preset detection value two. In other words, when using standard three-color light to detect black (color number 1), the theoretical red value is 0x0021 (that is, the decimal digit of 33), and the green detection value is • The hexadecimal 0x0022 (that is, the decimal digit of 34), the blue detection value. It is the hexadecimal 0x005C (that is, the decimal 92). The gray scale of the above table 2 is (0,0,0), which means that the light should be completely absorbed when it is irradiated to black. However, there is actually no such surface, that is, in fact, some of the reflected light is still detected when it is irradiated onto the black surface. In addition, it is technically difficult to achieve a single-frequency red, green or blue light. 11 201042243 The values stored in the above reference parameter table are the values given by the engineer using multiple experiments. However, the 'light-emitting circuit 201, the sensor 2', the external voltage, and other components using zero-to-zero totals have slight errors. These errors sum up and may affect color detection, 'making color detection inaccurate. Therefore, the following calibration method can be used to make the most correction after the product is shipped from the factory, or the user can use this method to correct it after using it for a period of time. Figure 3 is a flow chart showing a method of correcting the color recognition module of the embodiment of the present invention. Referring to FIG. 2 and FIG. 3, the correction method includes the following steps: Step S301: Start. Step S302: Control the lighting circuit to emit a specific basic color light to illuminate the standard grayscale color. The viewer operates the pure knowledge (4) group, so that the light-emitting circuit of the color recognition module emits a basic color light, such as red, green or blue, and the user operates the color recognition module to illuminate a standard gray-scale color, which is more commonly used. It is white. However, white is only a preferred implementation. ‘= As long as there is stored gray in the reference parameter table, it can also be used as step S303: sensing the reflected light of the light-emitting circuit to obtain specific basic detection data. The sensor 202 converts the sensed reflected light into an electronic parameter. ... Table step S304: Perform an alignment operation. The control unit 2〇3 takes out the basic color parameter corresponding to the standard gray color from the reference parameter, 12 Ο Ο 201042243 of a specific basic color, and a specific basic color parameter, and the special, Λ Λ, natural color detection data and the specific basic The color parameters are compared to obtain __calibration...Hite is calculated in the following manner: Number. The scale factor can be red (green or blue) color calibration scale factor = light diode illuminating the standard, . (, 4 or blue) color published, "quasi-grey color red (early parameter H _ 尺 监 · ^ color Step S305: Perform calibration procedure. Control π _ quasi-scale factor, adjust the reference parameter table f :: 203 according to the specific basic color parameters of the above color correction components. / Specific basic = or blue) color calibration After the capital _ = the red (green or blue) color component of each = in the benchmark parameter table * quasi-scale factor. , T 4 supervisor J has been 乂 Step S 3 0 6 :: Jiang Bu; seven calls _ Zeng,, to the specified position ^ after calibration, the color parameter table depends on the storage unit 2〇4. Step S307: It is judged whether there is any other cow running. Bahe entered the Zhengzheng. If yes, then /S308. If not, proceed to S3〇9. Step S308: Excluding the specific beauty from the above-mentioned specific color first to take out a new basic step back to step S302. Step S309: End. For example, the second embodiment proposes a calibration method for a color recognition module by using one color to be corrected at a time. Figure 4 is a diagram of another embodiment of the invention $free 丨嫂έ β > The process flow of the correction method of the identification module is shown in the figure ^ M 4 diagram, for any color recognition module, the calibration specific 13 201042243 step S401: start. Step S402: sequentially illuminating the three basic color lights of red, green and blue of the light-emitting circuit respectively to illuminate a standard gray-scale color block. The stomach step S403: respectively obtaining the reflected light of the three basic colors of red, green and blue, and obtaining the electronic parameters corresponding to the three basic colors of red, green and blue. Step S404: Perform an alignment operation. The collected electronic parameters of the red, green and blue basic colors are respectively separated from the white red, green and ^ basic color parameters in the above reference parameter table to obtain the three basic colors of red, green and blue. >Scale factor. By the same token, the calibration factor of the three basic colors of red, green and blue is as follows: Μ ώ A (so the proportional factor) = the red LED illumination of the calibration module
剥白色的探測資料/ A n 基準參數表中白色的紅色基色的資 G (校準比例因數) 校準模組的綠色二極體發光照 Z色的探測資料/基準參數表中白色的綠色基色的資 〇 射白色(二:比資:因數丄;::模組的藍色二極體發光照 料; 基準參數表中白色的藍色基色的資 # 驟 S405 :進杆 Μ τ & _ 色的每—個=其士义正程序。將基準參數表中二十種顏 因數,得至二色參數分別乘以紅、綠、藍的校準比例 上個校準後的二十種顏色的三基本色參數表。 的探測資:丰二表已經採集的二十種顏色的三基本色 以下疋其運算數學表示式: 14 201042243Peeling white detection data / A n The reference color of the white red color of the reference parameter table (calibration scale factor) The green diode of the calibration module is illuminated by the Z color detection data / the white green color of the reference parameter table 〇射白 (2: ratio: factor 丄;:: module's blue diode illuminating; the white color of the base color table in the reference parameter table S405: enter Μ τ & _ color each One = the righteousness program. The twenty color factors in the reference parameter table are obtained by multiplying the two color parameters by the calibration ratio of red, green and blue respectively. The three basic color parameters of the last 20 colors after calibration Table. The survey capital: the two basic colors of the twenty colors that have been collected by Feng Er Table are below the mathematical expression of the operation: 14 201042243
Rx (校準後的資料)=Rx (基準參數表)* 比例因數); & (校準後的資料)=Gx(基準參數表” 比例因數);Rx (calibrated data) = Rx (reference parameter table) * scale factor); & (calibrated data) = Gx (reference parameter table) scale factor);
Bx 準後的資料)=Βχ (基準參數表)* ' 比例因數); 、仅羊 其中,X表不20種顏色的序號,範圍是i ^ d &纟驟S4G6 .將上述4算出的校準後顏色參數表存儲到 U 指定位置的儲存單元204。 步驟S407 .結束。完成顏色識別模組的校準及顏色表 數表更新。 〃 〃 綜上所述,本發明之精神是在於利用分時點亮不同基 本色光,來對-個標準灰階色照射,以獲取其反射光的電 子參數。之後,在將此電子參數與儲存在儲存單元内的標 準電子參數作比較,得到兩者的比例,此比例可以被視為 是不同元件的誤差所造成。最後,利用此比例,對每一個 〇儲存在儲存單元内之顏色作校正。此種校正的機制簡單, • 且可以降低對於元件的準確度之要求,運算過程簡單,成 * 本低,可以獲得廣泛的應用及滿足實際工廠量產要求。 在較佳實施例之詳細說明中所提出之具體實施例僅 用以方便說明本發明之技術内容,而非將本發明狹義地限 2於上述實施例,在不超出本發明之精神及以下申請專利 範圍之情況,所做之種種變化實施,皆屬於本發明之範 圍因此本發明之保護範圍當視後附之申請專利範圍所界 15 201042243 定者為準。 【圖式簡單說明】 第1圖為習知中國大陸專利申請第20051009539號公 開的校準方法的流程圖。 第2圖是本發明實施例的顏色識別模組的結構方塊 * 圖。 第3圖是本發明實施例的顏色識別模組的校正方法的 〇 流程圖。 第4圖疋本發明另一實施例的顏色識別模組的校正方 法的流程圖。 【主要元件符號說明】 S101〜S1〇5:習知中國大陸專利申請第20051009539 號公開的校準方法的流程步驟 2 〇 1 :發光電路 〇 202 :感測器 . 203 :控制單元 204 :儲存單元 205 :輸出單元 206 :待測物體 S301〜S309:本發明實施例的各步驟 S4CH〜_:本發明實施例的各步驟 16Bx after-sales data) = Βχ (reference parameter table) * 'scale factor';; only sheep, X table is not 20 color serial number, the range is i ^ d & step S4G6. The above 4 calculated calibration The post color parameter table is stored to the storage unit 204 at the U designated location. Step S407. End. Complete the calibration of the color recognition module and update the color table. In summary, the spirit of the present invention is to illuminate a standard grayscale color by using different time-division lights to obtain the electronic parameters of the reflected light. Thereafter, the electronic parameters are compared to standard electronic parameters stored in the storage unit to obtain a ratio of the two, which can be considered as a result of errors in different components. Finally, using this ratio, the color stored in each storage unit is corrected. The mechanism of such correction is simple, and the requirement for accuracy of the component can be reduced, the calculation process is simple, the cost is low, and a wide range of applications can be obtained and the actual mass production requirements of the factory can be met. The specific embodiments of the present invention are intended to be illustrative only and not to limit the scope of the invention to the above embodiments, without departing from the spirit and scope of the invention. The scope of the invention and the various modifications are intended to be within the scope of the invention, and the scope of the invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flow chart showing a calibration method disclosed in the Chinese Patent Application No. 20051009539. FIG. 2 is a structural block diagram of a color recognition module according to an embodiment of the present invention. Fig. 3 is a flow chart showing a method of correcting the color recognition module of the embodiment of the present invention. Fig. 4 is a flow chart showing a method of correcting the color recognition module of another embodiment of the present invention. [Description of main component symbols] S101~S1〇5: Flow of the calibration method disclosed in the Chinese Patent Application No. 20051009539, 21: illuminating circuit 〇202: sensor. 203: control unit 204: storage unit 205 The output unit 206: the objects to be tested S301 to S309: each step S4CH~_ of the embodiment of the present invention: each step 16 of the embodiment of the present invention
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98117386A TW201042243A (en) | 2009-05-26 | 2009-05-26 | Color identification module and calibrating method therein |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98117386A TW201042243A (en) | 2009-05-26 | 2009-05-26 | Color identification module and calibrating method therein |
Publications (1)
Publication Number | Publication Date |
---|---|
TW201042243A true TW201042243A (en) | 2010-12-01 |
Family
ID=45000476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW98117386A TW201042243A (en) | 2009-05-26 | 2009-05-26 | Color identification module and calibrating method therein |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW201042243A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102117590A (en) * | 2011-03-31 | 2011-07-06 | 广东威创视讯科技股份有限公司 | Color adjustment device for display screen and color adjustment method thereof |
-
2009
- 2009-05-26 TW TW98117386A patent/TW201042243A/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102117590A (en) * | 2011-03-31 | 2011-07-06 | 广东威创视讯科技股份有限公司 | Color adjustment device for display screen and color adjustment method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101521014B1 (en) | Method and apparatus for display calibration | |
KR101428366B1 (en) | Method and apparatus for adaptive display calibration | |
US9829375B2 (en) | Light sensing system, and method for calibrating a light sensing device | |
JP4067973B2 (en) | Chromaticity coordinate measuring device | |
US8860819B2 (en) | Automated lighting system characterization device and system | |
CN102331301B (en) | Dental shade mapping | |
RU2369035C2 (en) | Method and device for calibration of colours in chamber and/or display design, and for correction of digital image colour defects | |
RU2019121249A (en) | System and method for capturing measurement images of a measured object | |
CN106611583B (en) | Gamma voltage debugging method and device for electroluminescent display device | |
TWI539812B (en) | Automatic white balance methods for electronic cameras | |
US11410412B2 (en) | Anti-counterfeiting method and system for under-screen fingerprint identification | |
US20140265868A1 (en) | Lighting Calibration for Intensity and Color | |
US8737731B2 (en) | Method and apparatus for correcting light | |
CN101001520B (en) | Measuring method and apparatus using color images | |
JP2013505552A (en) | Lighting system color control | |
TW200915293A (en) | Chrominance compensation method and panel lightening method in a display apparatus | |
JP2007059179A (en) | Calibration method, calibration device, calibration program, of illumination device, recording medium, illumination device, and image processing device | |
JP2009244340A (en) | Correction method, display and computer program | |
JP2010009821A (en) | Liquid crystal display device, light emitting apparatus, emission balance control device, and emission intensity detection device | |
JP2009020115A (en) | Method for determining appropriate mixture of phosphor | |
TW201042243A (en) | Color identification module and calibrating method therein | |
JP6555276B2 (en) | Stimulus value reading type colorimetry photometer | |
TW201721111A (en) | Chromatic detector of LED light source | |
US20130250299A1 (en) | Methods of calibrating color measurement devices | |
CN110726644B (en) | Photosensitive film density detection system, method, device, equipment and readable medium |