TWI290662B - Digital camera automatic white balance method and apparatus - Google Patents

Digital camera automatic white balance method and apparatus Download PDF

Info

Publication number
TWI290662B
TWI290662B TW93138205A TW93138205A TWI290662B TW I290662 B TWI290662 B TW I290662B TW 93138205 A TW93138205 A TW 93138205A TW 93138205 A TW93138205 A TW 93138205A TW I290662 B TWI290662 B TW I290662B
Authority
TW
Taiwan
Prior art keywords
digital camera
white balance
hood
image sensor
color temperature
Prior art date
Application number
TW93138205A
Other languages
Chinese (zh)
Other versions
TW200619825A (en
Inventor
Choan-Hui Liu
Original Assignee
Kinpo Elect 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 Kinpo Elect Inc filed Critical Kinpo Elect Inc
Priority to TW93138205A priority Critical patent/TWI290662B/en
Publication of TW200619825A publication Critical patent/TW200619825A/en
Application granted granted Critical
Publication of TWI290662B publication Critical patent/TWI290662B/en

Links

Landscapes

  • Processing Of Color Television Signals (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

A digital camera automatic white balance method and apparatus is to let the lens hood reach to the anti-dazzling location and filter the lights traveling from the light source onto the image sensor; next, to let CPU execute an image analysis software program to process on the image information measured by the image sensor to compute the light sourceíªs color temperature value; drive the lens hood away from the anti-dazzling location; and based on the color temperature value invoke a CPU to control the digital camera to perform white balance correction. Therefore, the digital camera can act as a color temperature meter capable of measuring and computing the environmental color temperature value, and the digital camera can use the color temperature value to automatically perform the white balance correction with high accuracy.

Description

本發明係有關數位相機,尤其是有關使數位相機自動 白平衡的方法及裝置。 【先前技術】The present invention relates to digital cameras, and more particularly to methods and apparatus for automatically white balancing digital cameras. [Prior Art]

一般數位相機以CCD或CMOS影像感測器擷取影像資訊 時’其所獲得之每一影像像素(Pixel )的r (紅)、G (綠)、β (藍)之色度值會受到環境光源色溫不同的影 響、’而產生顏色的偏移;例如白色物在光源色溫偏低時, $被掏取的影像呈現向紅黃偏移之色調,而光源色溫偏高 時青藍偏移之色調,造成影像色彩之失真;故需對所 $传每一影像像素之R、G、Β值進行白平衡處理,以調整 因光源不同所造成的顏色偏移。 ' —2004年4月11日公佈的台灣專利公告第58387〇號,揭 f 種影像操取裝置之自動白平衡校正方法,係先利用一 ^ 梅取裝置擷取一彩色影像,接著在RGB或γϋν色彩空間 各進行灰點搜尋,並計算每一灰點像素之紅綠藍三原色的 得別校正係數;再將所有灰點的校正係數組加以平均,以 ^ ^ 一校正平均值組;然後根據此校正平均值組在色彩空 谪2對该彩色影像之每一像素進行色彩校正,以調整出最 备的白平衡。 示—20 04年1月1 1日公佈的台灣專利公告第571 1 75號,揭 予^種白平衡自動校正方法及裝置,係透過將環境特徵給 所、型化’而事先建立可能發生之數種環境的模型,再將 。貝取之數位化影像資料進行調變並對應光模型之參數進When a digital camera captures image information with a CCD or CMOS image sensor, the chromaticity values of r (red), G (green), and β (blue) of each image pixel (Pixel) obtained by the digital camera are subject to the environment. The influence of the color temperature of the light source is different, and the color is shifted; for example, when the color temperature of the light source is low, the image captured by $ exhibits a hue shifted to red and yellow, and when the color temperature of the light source is high, the cyan shift is high. The color tone causes distortion of the image color; therefore, the R, G, and Β values of each image pixel are white balanced to adjust the color shift caused by the light source. '- Taiwan Patent Notice No. 58387, published on April 11, 2004, discloses an automatic white balance correction method for an image manipulation device, which first uses a device to capture a color image, followed by RGB or The γϋν color space performs gray point search, and calculates the correction coefficient of the red, green and blue primary colors of each gray point pixel; then averages the correction coefficient groups of all the gray points to ^^ a corrected average group; The corrected average group performs color correction on each pixel of the color image in color space 2 to adjust the most accurate white balance. Taiwan Patent Publication No. 571 1 75, published on January 1, 2004, discloses a method and apparatus for automatically correcting white balance, which may be established in advance by giving environmental characteristics to the model. Several models of the environment will be added. The digital image data of Beacon is modulated and corresponding to the parameters of the light model.

第5頁 1290662Page 5 1290662

,比對’最後選取機率最高之光㈣參數作為白平衡參 數。因此,可針對各個環境給予固定且正確的白平衡尺增 益值及B增益值,並可蔣读μ -欠 曰 七描* 〇 建好的資料庫隨時彈性地更換 仔可配合各種光機的色彩差異而提供校正之功 月b,以h升白平衡的品質。 上述已知利用運算方式使數位相機自動白平衡的方 法,仍不旎獲得正確的白平衡校正。 下的動Π衡的方式’係使用者需先知道目前環境 、狐 再進行數位相機的白平衡設定後,才進行拍 攝:二。但當使用者對色溫值的認定有異時 “ 正確的白平衡校正。 此後付 所有的自動或手動白平 能,最準確的方式莫過於使 後’再將白平衡校正值設定 可獲得最準確的白平衡校正 帶色溫計,每次攝影前均需 進行拍攝,使用上甚不方便 【發明内容】 衡方法’都有發生誤差的可 用色溫計,精確的測得色溫 入相機,然後再進行拍攝,即 。但使用者攝影時,需隨身攜 測得色溫,再設定相機後,才 為使數位相機能準確的自動進行白平衡校正,以改盖 目刖已知白平衡校正方式的各種缺失,而提出本發明。。 本發明的主要目的,在提供一種數位相機自動白 的方法及裝置,使數位相機能獲得準確的白平衡校正。、 本發明的另一目的,在提供一種數位相機自動白 的方法及裝置’可避免一般數位相機白平衡時矯枉過正的, the comparison 'final selection of the highest probability light (four) parameters as white balance parameters. Therefore, fixed and correct white balance gain value and B gain value can be given for each environment, and the data can be read at any time. The built-in database can be flexibly changed at any time to match the color of various optical machines. The difference is the difference between the power of the month b and the quality of the white balance. The above known method of using the arithmetic method to automatically white balance the digital camera still does not obtain the correct white balance correction. The way to move the balance is to let the user know the current environment, the fox and then set the white balance of the digital camera before shooting: II. However, when the user determines that the color temperature value is different, “the correct white balance correction. After all the automatic or manual white leveling is paid, the most accurate way is to make the white balance correction value set the most accurate. White balance correction with color temperature meter, you need to shoot before each shooting, it is not convenient to use [inventory content] Balance method 'has a color temperature meter with error, accurately measure the color temperature into the camera, and then shoot That is, when the user takes a photo, he or she needs to carry the measured color temperature with him, and then set the camera, so that the digital camera can automatically and automatically perform white balance correction to change the various missing details of the known white balance correction method. The present invention has been made. The main object of the present invention is to provide a digital camera automatic white method and apparatus for enabling an accurate white balance correction for a digital camera. Another object of the present invention is to provide a digital camera automatic white. Method and device' can avoid over-correction of white balance of general digital camera

第6頁 T290662Page 6 T290662

現象。 的方5發J的又一目的’在提供一種數位相機自動白平衡 的^估使用者無需使用色溫計’即可由數位相機^ 坆色/皿值,進而使相機自動白平衡。 衣 f明的其他目的、功效,請參閱圖式及實施例,詳 細說明如下。 π 【實施方式】 η ^ ί t,主要是使數位相機兼具有色溫計的功能,測量 斤"“ 兄的色溫值,並依據色溫值使數位相機自動進phenomenon. Another purpose of the square 5 is to provide a digital camera with an automatic white balance that allows the user to automatically white balance the digital camera by using a color thermometer. For other purposes and effects of the clothing, please refer to the drawings and examples, as detailed below. π [Embodiment] η ^ ί t, mainly to make the digital camera and the function of the color temperature meter, measure the color temperature value of the brother, and make the digital camera automatically enter according to the color temperature value.

打白=衡校正,使數位相機可獲得準確的白平衡校正。 請參閱圖1所示,本發明裝置的第一實施例,主要係 使光源10發射的光線經過一遮光罩21過濾後,才進入數位 相機的CCD影像感測器22或CMOS影像感測器,並使數位相 機内部的cpu,依據影像分析軟體及CCD影像感測器22測得 的影像資訊’計算光源1 〇的色溫值。再使cp[J依據該色溫 值使數位相機進行白平衡校正,或再控制數位相機的顯示 器顯示色溫值,使數位相機兼具有色溫計的功能。White = balance correction, so that the digital camera can get accurate white balance correction. Referring to FIG. 1 , the first embodiment of the device of the present invention mainly causes the light emitted by the light source 10 to pass through a hood 21 to enter the CCD image sensor 22 or the CMOS image sensor of the digital camera. And the cpu inside the digital camera calculates the color temperature value of the light source 1 according to the image information measured by the image analysis software and the CCD image sensor 22. Then let cp[J adjust the white balance of the digital camera according to the color temperature value, or control the display of the color temperature value of the digital camera to make the digital camera have the function of the color temperature meter.

在本實施例中,遮光罩21置於數位相機内部的鏡頭組 23與CCD影像感測器22之間,並有一動力構件24帶動遮光 罩21到達或離開遮光的位置,動力構件24電氣連接數位相 機的CPU。當要進行測光時,CPU即控制動力構件24帶動遮 光罩21到達遮光位置,過濾進入CCD影像感測器22的光 線,避免CCD影像感測器22過曝。當獲得色溫值後,CPU即 控制動力構件2 4帶動遮光罩2 1離開遮光的位置,使數位相In this embodiment, the hood 21 is disposed between the lens group 23 inside the digital camera and the CCD image sensor 22, and a power member 24 drives the hood 21 to or from the position where the hood is closed, and the power member 24 is electrically connected to the digital position. The camera's CPU. When metering is to be performed, the CPU controls the power member 24 to bring the mask 21 to the light-shielding position, and filters the light entering the CCD image sensor 22 to prevent the CCD image sensor 22 from being overexposed. When the color temperature value is obtained, the CPU controls the power member 24 to drive the hood 2 1 away from the shading position, so that the digital phase

第7頁 1290662 五、發明說明(4) 機可進行攝影。動力構件2 4可為一馬達結合一連桿以帶動 遮光罩21。 請參閱圖2所示。本發明裝置的第二實施例,不需動 力構件,可用手動方式使遮光罩25置於數位相機的鏡頭組 23外側,亦能達成過濾進入CCD影像感測器22的光線,避 免CCD影像感測器2 2過曝,並使數位相機計算色溫值的效 本發明數位相機自動白平衡裝置中的遮光罩,最好是Page 7 1290662 V. INSTRUCTIONS (4) The machine can perform photography. The power member 24 can be a motor coupled to a link to drive the hood 21. Please refer to Figure 2. In the second embodiment of the device of the present invention, the hood 25 can be manually placed outside the lens group 23 of the digital camera without the need for a power component, and the light entering the CCD image sensor 22 can be filtered to avoid CCD image sensing. 2 2 overexposed, and the digital camera calculates the color temperature value. The hood of the digital camera automatic white balance device of the present invention is preferably

白色遮光罩,可獲得較佳的遮光,並獲得較正確的光源色 溫值的效果。 請參閱圖3所示。本發明數位相機自動白平衡的方 法,係利用數位相機的CPU、CCD影像感測器、影像分析軟 體及一遮光罩、動力構件,使數位相機自動白平衡的方 法,包括如下步驟: (1) 使CPU控制動力構件,帶動遮光罩到達遮光位置,過濾 由光源進入CCD影像感測器的光線; (2) 使CPU依據影像分析軟體及[CD影像感測器測得的影像 資訊,計算該光源的色溫值;A white hood provides better shading and a better color temperature value. Please refer to Figure 3. The method for automatically white balancing the digital camera of the present invention is a method for automatically white balancing a digital camera by using a CPU of a digital camera, a CCD image sensor, an image analysis software, a hood, and a power component, including the following steps: (1) The CPU controls the power component to drive the hood to the shading position, and filters the light entering the CCD image sensor by the light source; (2) causing the CPU to calculate the light source according to the image analysis software and the image information measured by the CD image sensor. Color temperature value;

(3 )使C P U依據6玄色溫值控制數位相機進行白平衡校正,並 控制該動力構件,帶動該遮光罩脫離遮光位置; (4)使CPU控制數位相機的顯示器顯示該色溫值。 上述步驟(1 )的遮光罩的遮光位置,係位於數位相機 的鏡頭組與CCD影像感測器之間。本發明之方法亦可不需 以CPU控制動力構件帶動遮光罩,而用手動方式帶動遮光(3) The C P U controls the digital camera to perform white balance correction according to the 6 black temperature value, and controls the power component to drive the hood away from the shading position; (4) causes the CPU to control the display of the digital camera to display the color temperature value. The shading position of the hood of the above step (1) is between the lens group of the digital camera and the CCD image sensor. The method of the invention can also drive the hood without the CPU to control the power component, and manually shield the hood.

第8頁 1290662 五、發明說明(5) 罩’使遮光罩置於數位相機的鏡頭組外側,過濾、由光源進 入鏡頭組的光線。 本發明之方法也可不需上述步驟(4 ),使數位相機顯 不色溫值之設計。 本發明使數位相機兼具有色溫計的功能,能測量及計 算出環境的色溫值’並依據色溫值自動使數位相機進行白 平衡校正,使數位相機可獲得準確的白平衡校正。 以上所記載,僅為利用本發明技術内容之實施例,任 何熟悉本項技藝者運用本創作所為之修飾、變化,皆屬本 創作主張之專利範圍,而不限於實施例所揭示者。Page 8 1290662 V. INSTRUCTIONS (5) Cover The hood is placed outside the lens group of the digital camera to filter the light entering the lens group from the light source. The method of the present invention also does not require the above step (4) to cause the digital camera to display a color temperature value design. The present invention enables the digital camera to have the function of a color temperature meter, and can measure and calculate the ambient color temperature value' and automatically adjust the white balance of the digital camera according to the color temperature value, so that the digital camera can obtain accurate white balance correction. The above description is only for the embodiments of the present invention, and any modifications and variations made by those skilled in the art using the present invention are the scope of patents of the present invention, and are not limited to those disclosed in the embodiments.

1290662 圊式簡單說明 【圖示簡單說明】 圖1為實施本發明裝置的第一實施例示意圖。 圖2為實施本發明裝置的第二實施例示意圖。 圖3為貫施本發明的流程圖。 【主要元件符號說明】 10 光源 21、25遮光罩 2 2 CCD影像感測器 23 鏡頭組 24動力構件 1 步驟(1)BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic view showing a first embodiment of a device embodying the present invention. Figure 2 is a schematic illustration of a second embodiment of a device embodying the invention. Figure 3 is a flow chart for carrying out the invention. [Main component symbol description] 10 Light source 21, 25 hood 2 2 CCD image sensor 23 Lens group 24 Power components 1 Step (1)

2 步驟(2 ) 3 步驟(3 ) 4 步驟(4 )2 Step (2) 3 Step (3) 4 Step (4)

II

第10頁Page 10

Claims (1)

12906621290662 六、申請專利範圍 1 -種數位相機自動 CPU、影像感測器、^ 衡的方法,係利用數位相機的 機自動白平衡的方、去^像分析軟體及一遮光罩,使數位相 (1) 使遮光罩到達遮光位包番括如下步驟: 的光線; m置’過濾由光源進入影像感測器 (2) 使CPU依據影像分 訊,計篡兮# &幸人體及影像感測器測得的影像資 T异^九源的色溫值; (3) 帶動該遮光罩脫雜 ’ 生,丨去t 脱離遮光位置;並使CPU依據該色溫值控 制數位相機進行白平衡校正。 2 ·如申吻專利||圍第1項所述之數位相機自動白平衡的方 法’其中該遮光罩的遮光位置係位於數位相機的鏡頭組與 該影像感測器之間。 3·如申請專利範圍第1項所述之數位相機自動白平衡的方 辛’其中該遮光罩置於數位相機的鏡頭組外側。 4·如申請專利範圍第1項所述之數位相機自動白平衡的方 法,其中該步驟(1 )、(3)中,係使該CPU控制一動力構 件,帶動該遮光罩到達或脫離遮光位置。 5·如申請專利範圍第1項所述之數位相機自動白平衡的方 法,其中該遮光罩是白色遮光罩。 6.如申請專利範圍第3項所述之數位相機二白動平::光方罩 法,其中該步驟⑴、(3)中’係以手動方式帶動處罩 到達或脫離遮光位置。 任一述之數位相機自動 7·如申請專利範圍第1至 進〆步包括如下步 白平衡的方法,其中該少驟()後Sixth, the scope of application for patents 1 - a digital camera automatic CPU, image sensor, and balance method, the use of digital camera automatic white balance of the square, to the image analysis software and a hood to make the digital phase (1 The hood is brought to the opaque position to include the following steps: ray; m is set to filter from the light source into the image sensor (2) to make the CPU according to the image, 篡兮# & fortunate human body and image sensor The color temperature value of the measured image is different from that of the source; (3) driving the hood to remove the noise, and removing the light from the shading position; and causing the CPU to control the digital camera to perform white balance correction according to the color temperature value. 2 · The method of claiming a patent||The method of automatic white balance of the digital camera described in Item 1 wherein the hood of the hood is located between the lens group of the digital camera and the image sensor. 3. The square of the automatic white balance of the digital camera described in claim 1 wherein the hood is placed outside the lens group of the digital camera. 4. The method of claiming the automatic white balance of the digital camera according to claim 1, wherein in the steps (1) and (3), the CPU controls a power component to drive the hood to or from the light shielding position. . 5. The method of claiming the automatic white balance of the digital camera according to the first aspect of the patent, wherein the hood is a white hood. 6. The digital camera according to claim 3, wherein the step (1) and (3) manually drive the cover to or from the light-shielding position. Any of the digital cameras described above automatically. 7. If the patent application range is from 1 to 2, the following steps include a white balance method, in which the less than () 第11頁 __ 1290662 六、申請專利範圍 驟: 使CPU控制數位相機的顯示器顯示該色溫值。 8·如申請專利範圍第7項所述之數位相機自動白平衡的方 法’其中該影像感測器係CCD影像感測器。 9 ·如申請專利範圍第7項所述之數位相機自動白平衡的方 法’其中該影像感測器係CMOS影像感測器。Page 11 __ 1290662 VI. Scope of Application Patent Procedure: Cause the CPU to control the display of the digital camera to display the color temperature value. 8. The method of automatic white balance of a digital camera as described in claim 7 wherein the image sensor is a CCD image sensor. 9. The method of automatic white balance of a digital camera as described in claim 7 wherein the image sensor is a CMOS image sensor. 1 0 · —種數位相機自動白平衡的裝置,包括一數位相機結 合一動力構件,該動力構件結合一遮光罩;該動力構件電 氣連接該數位相機的CPlJ ;俾當要進行測光時,該CPU即控 制該動力構件帶動該遮光罩到達遮光位置,過濾由光源進 入該數位相機的影像感測器的光線,避免該影像感測器過 曝’再使該CPU依據影像分析軟體及該影像感測器測得的 影像資訊’計算該光源的色溫值,再使該“^依據該色溫 值控制數位相機進行白平衡校正,並控制該動力構件帶動 3亥遮光罩離開遮光的位置。 1 1 ·如申请專利範圍第1 〇項所述之數位相機自動白平衡的 裝置’其中該遮光罩的遮光位置係位於該數位相機的鏡 組與該影像感測器之間。1 0 · a digital camera automatic white balance device, comprising a digital camera combined with a power member, the power member is combined with a hood; the power member is electrically connected to the CPlJ of the digital camera; when the meter is to be metered, the CPU That is, controlling the power component to drive the hood to the light-shielding position, filtering the light entering the image sensor of the digital camera by the light source, preventing the image sensor from being overexposed, and then causing the CPU to sense the image according to the image analysis software and the image. The image information measured by the device 'calculates the color temperature value of the light source, and then controls the digital camera to perform white balance correction according to the color temperature value, and controls the power member to drive the 3 hood to leave the light shielding position. 1 1 ·如The device of claim 3, wherein the hood of the digital camera is disposed between the lens of the digital camera and the image sensor. 1 2 ·如申请專利範圍第11項所述之數位相機自動白平衡的 裝置,其中該遮光罩是白色遮光罩。 1 3·如申請專利範圍第1 2項所述之數位相機自動白平衡的 方法,其中該影像感測器係CCD影像感測器。 14·如申請專利範圍第1 2項所述之數位相機自動白平衡的 方法’其中該影像感測器係CMOS影像感測器。1 2 The apparatus for automatic white balance of a digital camera according to claim 11, wherein the hood is a white hood. 1 3 The method of automatic white balance of a digital camera according to claim 12, wherein the image sensor is a CCD image sensor. 14. A method of automatic white balance of a digital camera as claimed in claim 12 wherein the image sensor is a CMOS image sensor. 第12頁Page 12
TW93138205A 2004-12-10 2004-12-10 Digital camera automatic white balance method and apparatus TWI290662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW93138205A TWI290662B (en) 2004-12-10 2004-12-10 Digital camera automatic white balance method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW93138205A TWI290662B (en) 2004-12-10 2004-12-10 Digital camera automatic white balance method and apparatus

Publications (2)

Publication Number Publication Date
TW200619825A TW200619825A (en) 2006-06-16
TWI290662B true TWI290662B (en) 2007-12-01

Family

ID=39327553

Family Applications (1)

Application Number Title Priority Date Filing Date
TW93138205A TWI290662B (en) 2004-12-10 2004-12-10 Digital camera automatic white balance method and apparatus

Country Status (1)

Country Link
TW (1) TWI290662B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI514894B (en) * 2009-09-29 2015-12-21 Hewlett Packard Development Co White balance correction in a captured digital image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI514894B (en) * 2009-09-29 2015-12-21 Hewlett Packard Development Co White balance correction in a captured digital image

Also Published As

Publication number Publication date
TW200619825A (en) 2006-06-16

Similar Documents

Publication Publication Date Title
TWI462055B (en) Cfa image with synthetic panchromatic image
US7760955B2 (en) Method and system for producing formatted information related to defects of appliances
JP4815267B2 (en) White balance control method, imaging apparatus, and white balance control program
JP5195430B2 (en) Image processing method, image processing program, image processing apparatus, camera
TW200833089A (en) Camera module, electronic apparatus and method of manufacturing them
JP2001078202A (en) Digital photographing device, image data processing unit, digital photographing method and recording medium
JP2015072324A (en) Image processor, imaging device and image processing method
CN103200409B (en) Color correction method of multi-projector display system
JP2007208413A (en) Color correction apparatus, color correction method, and color correction program
JP2014122847A (en) Image correction device, image correction program and image correction method
JP4959237B2 (en) Imaging system and imaging program
JP2008011289A (en) Digital camera
GB2460241A (en) Correction of optical lateral chromatic aberration
JP5899894B2 (en) Imaging apparatus, image processing apparatus, image processing program, and image processing method
CN107534732A (en) Image processing apparatus, camera device, image processing method and image processing program
TWI290662B (en) Digital camera automatic white balance method and apparatus
CN108063933A (en) Image processing method and device, computer readable storage medium and computer equipment
Cerman et al. Exposure time estimation for high dynamic range imaging with hand held camera
JP2010154365A (en) Color correction device, camera, color correction method, and color correction program
JP2006054679A (en) White balance device and program thereof
JP2001142442A (en) System and method for preparing profile, and digital photographing device, recording medium, and display measuring method
JP4333478B2 (en) Imaging apparatus and image processing program
JP5858735B2 (en) Color correction apparatus and color correction method
JP2003322902A (en) Imaging unit and method for displaying luminance distribution chart
JP2021182673A (en) Image processing device, image processing method, and program

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees