TWI405458B - Digital camera sensitivity adjustment method - Google Patents

Digital camera sensitivity adjustment method Download PDF

Info

Publication number
TWI405458B
TWI405458B TW99121945A TW99121945A TWI405458B TW I405458 B TWI405458 B TW I405458B TW 99121945 A TW99121945 A TW 99121945A TW 99121945 A TW99121945 A TW 99121945A TW I405458 B TWI405458 B TW I405458B
Authority
TW
Taiwan
Prior art keywords
image
sensitivity
flash
objects
adjusting
Prior art date
Application number
TW99121945A
Other languages
Chinese (zh)
Other versions
TW201204018A (en
Inventor
Chan Min Chou
Tsung Pin Lu
Original Assignee
Altek Corp
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 Altek Corp filed Critical Altek Corp
Priority to TW99121945A priority Critical patent/TWI405458B/en
Publication of TW201204018A publication Critical patent/TW201204018A/en
Application granted granted Critical
Publication of TWI405458B publication Critical patent/TWI405458B/en

Links

Landscapes

  • Studio Devices (AREA)

Abstract

A method for adjusting photo-sensitiveness is able to determine a relative distance of an object in an image capture area through images captured before and after the pre-flash of a flash lamp, so that the relative distance serves as a reference for adjusting current photo-sensitiveness of the digital camera, thereby capturing an image having a better quality when the flash lamp provides a fill light. The digital camera comprises a flash lamp and a photographing module. The method for adjusting photo-sensitiveness of a digital camera comprises: capturing a live view image corresponding to a plurality of objects by the photographing module; enabling the flash lamp to emit a pre-flash light, and capturing a pre-flash image corresponding to the objects by the photographing module; calculating a reflection image through the live view image and the pre-flash image; judging appearance positions of the objects in the pre-flash image through reflection information of all position points on the reflection image; performing a recognition procedure according to the appearance positions, so as to find image information that presents the objects in the pre-flash image; determining whether the objects are at more than two different depths of field (DOFs) according to the image information of the objects; and when the objects are at more than two different DOFs, adjusting current photo-sensitiveness of the photographing module.

Description

數位相機的感光度的調整方法Method for adjusting the sensitivity of a digital camera

本發明係關於一種數位相機的攝像參數的調整方法,特別是一種數位相機的感光度的調整方法。The invention relates to a method for adjusting imaging parameters of a digital camera, in particular to a method for adjusting the sensitivity of a digital camera.

隨著數位相機的發展,使得攝影不再是昂貴的消費。使用者可以隨意的拍攝所要的影像,用以記錄值得紀念的一刻或景象。With the development of digital cameras, photography is no longer an expensive purchase. The user can take the desired image at will to record a memorable moment or scene.

在進行拍攝時,一般使用者都希望所拍攝到的照片是清晰可見的。所以,在拍攝目標物(可以是風景、人物或物品)時,對於目標物的焦距與亮度都要調整適當,才能拍到滿意的照片。When shooting, the average user wants the captured photo to be clearly visible. Therefore, when shooting a target (which can be a landscape, a person, or an item), adjust the focus and brightness of the target to be able to take a satisfactory picture.

隨著科技的進步,數位相機多半提供有自動設定攝像參數的功能。一般來講,數位相機針對目標物計算出適當的攝像參數。With the advancement of technology, digital cameras mostly provide the function of automatically setting camera parameters. In general, a digital camera calculates appropriate imaging parameters for a target.

其中,數位相機的閃光燈所發射的光量可根據數位相機與目標物之間的距離進行調整。Among them, the amount of light emitted by the digital camera's flash can be adjusted according to the distance between the digital camera and the target.

閃光燈的閃光強度與目標物的距離及光圈係數值的關係可表示為:GN=f×L。其中,GN代表閃光強度(亦即閃光指數GN,Guide Number),f為光圈係數,L為目標物與數位相機之間的距離。閃光指數是評量閃光燈的發光強度的量值,並且是表示閃光燈性能的一個主要的基本指標。The relationship between the flash intensity of the flash and the distance of the target and the aperture coefficient value can be expressed as: GN = f × L. Where GN represents the flash intensity (ie, the flash index GN, Guide Number), f is the aperture coefficient, and L is the distance between the target and the digital camera. The flash index is a measure of the luminous intensity of a flash and is a major basic indicator of flash performance.

在數位相機的拍攝範圍中,通常都會有多個標的物。一般來講,數位相機都是以其中一個標的物作為目標物。由於數位相機在拍攝時是針對目標物進行補光,因此所拍攝得的影像中,相對於目標物,距離數位相機較遠的標的物的影像都會較為模糊和/或亮度相對過暗。In the shooting range of a digital camera, there are usually multiple objects. In general, digital cameras use one of the targets as a target. Since the digital camera fills the target while shooting, the image of the target that is farther away from the digital camera is more blurred and/or the brightness is relatively dark relative to the target.

鑒於以上的問題,本發明提供一種數位相機的感光度的調整方法,藉由解決習知技術所存在的至少一問題。In view of the above problems, the present invention provides a method of adjusting the sensitivity of a digital camera by solving at least one of the problems of the prior art.

本發明所揭露之數位相機的感光度的調整方法應用於一數位相機。此數位相機包括一閃光燈與一攝像模組。The method for adjusting the sensitivity of the digital camera disclosed in the present invention is applied to a digital camera. The digital camera includes a flash and a camera module.

首先,利用攝像模組擷取相應於多個標的物的一預覽影像。然後,致使閃光燈發出預閃閃光,並利用攝像模組擷取相應於此些標的物的一預閃影像。接著,透過預覽影像和預閃影像計算一反射影像,並藉由反射影像上的各個位置點的反射資訊判別出預閃影像中標的物的顯現位置。再針對得到的顯現位置執行一辨識程序,以找出預閃影像中顯現出標的物的影像資訊,並根據找出的標的物的影像資訊判斷此些標的物是否屬於兩種以上之不同的景深。First, the camera module captures a preview image corresponding to the plurality of objects. Then, the flash is caused to emit a pre-flash, and the camera module is used to capture a pre-flash image corresponding to the objects. Then, a reflected image is calculated through the preview image and the pre-flash image, and the display position of the target object in the pre-flash image is discriminated by the reflection information of each position point on the reflected image. And performing an identification process on the obtained display position to find the image information of the target object in the pre-flash image, and determining whether the target objects belong to two or more different depth of fields according to the image information of the found target object. .

當此些標的物屬於兩種以上之不同的景深時,調整攝像模組當前的感光度。在調整攝像模組當前的感光度之後,可致使閃光燈再次發出預閃閃光,並利用攝像模組再次擷取標的物的預閃影像,以作為其他攝像參數的參考。When the target objects belong to more than two different depth of field, adjust the current sensitivity of the camera module. After adjusting the current sensitivity of the camera module, the flash can be pre-flashed again, and the pre-flash image of the target object is captured again by the camera module as a reference for other camera parameters.

當在數位相機前方之標的物均屬於相同的景深時,則不進行攝像模組當前的感光度的調整,並以預閃影像計算出主閃閃光的閃光強度。When the objects in front of the digital camera belong to the same depth of field, the current sensitivity of the camera module is not adjusted, and the flash intensity of the main flash is calculated from the pre-flash image.

其中,各標的物可為一人臉,且辨識程序可為一人臉辨識程序。Wherein, each object can be a face, and the identification program can be a face recognition program.

於此,可透過比較預覽影像的亮度資訊和預閃影像的亮度資訊來得到反射影像。Here, the reflected image can be obtained by comparing the brightness information of the preview image with the brightness information of the pre-flash image.

於感光度的調整上,可直接將攝像模組的感光度調高為當前的感光度的一倍。再者,亦可依據攝像模組的感光度的設定選項或特定標的物來進行調整。In the sensitivity adjustment, the sensitivity of the camera module can be directly increased to twice the current sensitivity. Furthermore, it can also be adjusted according to the setting option of the sensitivity of the camera module or the specific target.

根據本發明之數位相機的感光度的調整方法可透過閃光燈執行預閃前後所擷取得之影像來判斷影像擷取範圍中之標的物的相對距離,以作為調整數位相機當前的感光度的參考,進而可在閃光燈進行補光的狀態下擷取到品質較佳的影像。The method for adjusting the sensitivity of the digital camera according to the present invention can determine the relative distance of the target object in the image capturing range by using the image obtained by the flash before and after the pre-flashing, as a reference for adjusting the current sensitivity of the digital camera. In addition, a better quality image can be captured while the flash is being filled.

以上之關於本發明內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the present invention and the following description of the embodiments of the present invention are intended to illustrate and explain the spirit and principles of the invention.

於此,根據本發明之數位相機的感光度的調整方法可透過閃光燈執行預閃前後所擷取得之影像(預覽影像及預閃影像)來判斷影像擷取範圍中之標的物的相對距離,以作為調整數位相機當前的感光度的參考,進而可在閃光燈進行補光的狀態下擷取到品質較佳的影像。In this manner, the method for adjusting the sensitivity of the digital camera according to the present invention can determine the relative distance of the target object in the image capturing range by performing the image (preview image and pre-flash image) acquired before and after the pre-flash. As a reference for adjusting the current sensitivity of the digital camera, it is possible to capture a better quality image while the flash is being filled.

請參照「第1圖」,數位相機100可包括:攝像模組110、閃光燈120、儲存單元130、處理單元140和顯示器150。攝像模組110包括鏡頭組112和感光元件114。Referring to FIG. 1 , the digital camera 100 may include a camera module 110 , a flash 120 , a storage unit 130 , a processing unit 140 , and a display 150 . The camera module 110 includes a lens group 112 and a photosensitive element 114.

數位相機100的運作可區分為預覽階段(live view)、對焦階段(auto focusing)、預閃階段與拍攝階段。The operation of the digital camera 100 can be divided into a live view, an auto focusing, a pre-flash phase, and a shooting phase.

預覽階段是指使用者按壓數位相機100的快門鍵之前的時刻。於預覽階段中,使用者可透過數位相機100的顯示器150預覽取景畫面。The preview phase refers to the time before the user presses the shutter button of the digital camera 100. In the preview phase, the user can preview the viewfinder through the display 150 of the digital camera 100.

對焦階段是指使用者在半按數位相機100的快門鍵的時刻。於對焦階段中,數位相機100會以取景畫面中的標的物中之一個或多個作為目標物,並調整鏡頭組112與目標物的物距,並且使用者可透過數位相機100的顯示器150預覽對焦後(即,物距調整完成後)的取景畫面。The focus phase refers to the moment when the user presses the shutter button of the digital camera 100 halfway. In the focusing phase, the digital camera 100 takes one or more of the objects in the framing picture as the target, and adjusts the object distance between the lens group 112 and the target, and the user can preview through the display 150 of the digital camera 100. The framing screen after focusing (ie, after the object distance adjustment is completed).

預閃階段是指在對焦後閃光燈120會發出一預閃閃光,並且數位相機100透過攝像模組110擷取對應當前的取景畫面的影像,以作為拍攝階段的閃光強度的參考。The pre-flash phase means that the flash 120 emits a pre-flashing light after focusing, and the digital camera 100 captures an image corresponding to the current viewing frame through the camera module 110 as a reference for the flash intensity of the shooting phase.

拍攝階段是指使用者全按下數位相機100的快門鍵的時刻。於拍攝階段中,數位相機100透過攝像模組110拍攝當前的取景畫面並將拍攝得的取景畫面記錄為一影像。The shooting phase refers to the moment when the user fully presses the shutter button of the digital camera 100. During the shooting phase, the digital camera 100 captures the current viewfinder image through the camera module 110 and records the captured viewfinder image as an image.

於此,預覽影像係指數位相機100於預覽階段或對焦階段中所擷取到的影像。預閃影像則係指數位相機100於預閃階段所擷取到的影像。Here, the preview image is an image captured by the index camera 100 during the preview phase or the focusing phase. The pre-flash image is the image captured by the index camera 100 during the pre-flash phase.

鏡頭組112用以調整對被攝物之焦距。The lens group 112 is used to adjust the focal length of the subject.

感光元件114對應鏡頭組112而設置。感光元件114可透過鏡頭組112接收相應於目標物及其週遭景色的光訊號,並根據所接收到的光訊號轉換成數位影像的電訊號以得到相應於目標物的影像。換言之,感光元件114可於數位相機100的預覽階段和對焦階段經由鏡頭組112擷取預覽影像、於數位相機100的預閃階段經由鏡頭組112擷取預閃影像,並且及於數位相機100的拍攝階段經由鏡頭組112擷取數位影像。The photosensitive element 114 is provided corresponding to the lens group 112. The photosensitive element 114 can receive the optical signal corresponding to the target and its surrounding scenery through the lens group 112, and convert the received optical signal into the electrical signal of the digital image to obtain an image corresponding to the target. In other words, the photosensitive element 114 can capture the preview image via the lens group 112 during the preview phase and the focusing phase of the digital camera 100, capture the pre-flash image through the lens group 112 during the pre-flash phase of the digital camera 100, and the digital camera 100 The digital image is captured through the lens group 112 during the shooting phase.

處理單元140電性連接於感光元件114與儲存單元130。處理單元140可控制鏡頭組112和感光元件114的運作。並且,處理單元140可根據擷取到的預覽影像和預閃影像判斷數位相機100前方各個標的物的距離,進而選擇性調整數位相機當前的感光度。The processing unit 140 is electrically connected to the photosensitive element 114 and the storage unit 130. The processing unit 140 can control the operation of the lens group 112 and the photosensitive element 114. Moreover, the processing unit 140 can determine the distance between each target object in front of the digital camera 100 according to the captured preview image and the pre-flash image, thereby selectively adjusting the current sensitivity of the digital camera.

換言之,根據本發明之數位相機的感光度的調整方法可以軟體或韌體程式實現在數位相機100上。即,用以執行根據本發明之數位相機的感光度的調整方法之一程式碼可以儲存於數位相機100的儲存單元130中,再由數位相機100的處理單元140讀取並執行儲存的程式碼,以使數位相機100執行根據本發明之數位相機的感光度的調整方法而選擇性調整其感光度。In other words, the method of adjusting the sensitivity of the digital camera according to the present invention can be implemented on the digital camera 100 in a software or firmware program. That is, one of the codes for adjusting the sensitivity of the digital camera according to the present invention may be stored in the storage unit 130 of the digital camera 100, and the processing unit 140 of the digital camera 100 reads and executes the stored code. In order to cause the digital camera 100 to perform the adjustment method of the sensitivity of the digital camera according to the present invention, the sensitivity thereof is selectively adjusted.

其中,處理單元140可由一個或多個處理器,例如:數位訊號處理器(digital signal processor;DSP)等,實現。儲存單元130可由一個或多個儲存器實現。儲存器可為非揮發性記憶體或為揮發性記憶體。The processing unit 140 can be implemented by one or more processors, such as a digital signal processor (DSP). The storage unit 130 can be implemented by one or more storages. The reservoir can be non-volatile memory or volatile memory.

「第2圖」係為根據本發明一實施例之數位相機的感光度的調整方法的流程圖。Fig. 2 is a flow chart showing a method of adjusting the sensitivity of a digital camera according to an embodiment of the present invention.

參照「第1及2圖」,首先,利用攝像模組110擷取相應於在數位相機100前方之多個標的物的一預覽影像(步驟210)。Referring to "1st and 2nd views", first, a preview image corresponding to a plurality of objects in front of the digital camera 100 is captured by the camera module 110 (step 210).

然後,致使閃光燈120發出預閃閃光,並在預閃閃光的補光下利用攝像模組110擷取相應於此些標的物的一預閃影像(步驟220)。Then, the flash 120 is caused to emit a pre-flash, and a pre-flash image corresponding to the objects is captured by the camera module 110 under the pre-flashing fill light (step 220).

透過擷取到的預覽影像和預閃影像計算出一反射影像(步驟230)。於此,可透過比較預覽影像的亮度資訊和預閃影像的亮度資訊來得到反射影像,換言之,反射影像是相應於預覽影像的亮度資訊和預閃影像的亮度資訊之間的差異。A reflected image is calculated from the captured preview image and the pre-flash image (step 230). In this case, the reflected image can be obtained by comparing the brightness information of the preview image with the brightness information of the pre-flash image. In other words, the reflected image is the difference between the brightness information corresponding to the preview image and the brightness information of the pre-flash image.

藉由反射影像上的各個位置點的反射資訊判別出預閃影像中標的物的顯現位置(步驟240)。也就是說,可透過觀察反射影像上各個位置點的反射資訊來判別出預閃影像中可能屬於標的物的影像的區塊。其中反射資訊可為反射量(即,預覽影像和預閃影像相同位置的亮度資訊的差值)或反射率。其中,每個位置點可為一像素或是一特定尺寸的影像區塊。The appearance position of the object in the pre-flash image is discriminated by the reflection information of each position point on the reflected image (step 240). That is to say, the block of the image of the pre-flash image that may belong to the target object can be discriminated by observing the reflection information of each position point on the reflected image. The reflection information may be the amount of reflection (ie, the difference between the brightness information of the preview image and the same position of the pre-flash image) or the reflectance. Each location point can be one pixel or a specific size image block.

針對判別出顯現位置執行一辨識程序,以找出預閃影像中顯現出標的物的影像資訊(步驟250)。換言之,利用辨識程序對於預閃影像的顯現位置上的局部影像進行標的物的辨識,以找出屬於標的物的影像區塊(即,影像資訊)。An identification process is performed for determining the appearance position to find image information of the object in the pre-flash image (step 250). In other words, the identification program is used to identify the target image on the local image of the pre-flash image to find the image block (ie, image information) belonging to the target object.

根據找出的標的物的影像資訊判斷標的物是否屬於兩種以上之不同的景深(步驟260)。於此,可透過計算標的物的影像資訊來得知在數位相機100前方之多個標的物是否落在數位相機100的兩種不同的對焦範圍上。It is judged based on the image information of the found object that the object belongs to two or more different depths of field (step 260). Here, by calculating the image information of the object, it can be known whether the plurality of objects in front of the digital camera 100 fall on two different focusing ranges of the digital camera 100.

當在數位相機100前方之標的物屬於兩種不同的景深時,則調整攝像模組110當前的感光度(步驟270),以增加位於相對較遠的標的物的影像的亮度。也就是說,當在數位相機100前方之多個標的物落在數位相機100的兩種不同的對焦範圍上時,數位相機100則會調整當前的感光度,以考慮到相對較遠的標的物的亮度。When the subject matter in front of the digital camera 100 belongs to two different depths of field, the current sensitivity of the camera module 110 is adjusted (step 270) to increase the brightness of the image of the object located at a relatively distant object. That is, when a plurality of objects in front of the digital camera 100 fall on two different focus ranges of the digital camera 100, the digital camera 100 adjusts the current sensitivity to take into account relatively distant objects. Brightness.

並且,在調整攝像模組110當前的感光度後,可致使閃光燈120再次發出預閃閃光,並利用攝像模組110再次擷取標的物的預閃影像,以作為其他攝像參數的參考(步驟280)。例如:可根據再次取得的預閃影像計算出主閃閃光的閃光強度(步驟290)。Moreover, after adjusting the current sensitivity of the camera module 110, the flash 120 can be caused to emit pre-flashing again, and the pre-flash image of the target object is captured again by the camera module 110 as a reference for other imaging parameters (step 280). ). For example, the flash intensity of the main flash can be calculated from the pre-flash image acquired again (step 290).

當在數位相機100前方之標的物均屬於相同的景深時,則不進行攝像模組110當前的感光度的調整,並以預閃影像計算出主閃閃光的閃光強度(步驟290)。When the objects in front of the digital camera 100 all belong to the same depth of field, the current sensitivity of the camera module 110 is not adjusted, and the flash intensity of the main flash is calculated as the pre-flash image (step 290).

於拍攝時,則致使閃光燈120發出具有計算得之閃光強度的主閃閃光,並利用攝像模組110擷取標的物的數位影像。At the time of shooting, the flash 120 emits a main flash having a calculated flash intensity, and the camera module 110 captures the digital image of the subject.

其中,標的物可為一人臉,此時辨識程序則為人臉辨識程序。然而,此並非本發明之限制。可依據實際需求,而將標的物設定為人臉、建築物、動物、植物、交通工具、標誌和特定物品中至少一種特徵物件。Among them, the subject matter can be a face, and the recognition program is a face recognition program. However, this is not a limitation of the present invention. The subject matter may be set as at least one characteristic object of a face, a building, an animal, a plant, a vehicle, a sign, and a specific item according to actual needs.

參照「第3圖」,於步驟240中,可利用一第一閥值來與反射影像上的各個位置點的反射資訊相比較(步驟241)。Referring to "Fig. 3", in step 240, a first threshold value can be used to compare the reflection information at each of the position points on the reflected image (step 241).

當反射資訊大於第一閥值時,則將對應之位置點(即,其反射資訊大於閥值的位置點)判定為標的物的顯現位置(步驟242)。When the reflection information is greater than the first threshold, the corresponding position point (ie, the position point whose reflection information is greater than the threshold value) is determined as the appearance position of the target object (step 242).

而當反射資訊小於或等於第一閥值時,則將對應之位置點(即,其反射資訊小於或等於閥值的位置點)判定不為標的物的顯現位置(步驟243)。When the reflection information is less than or equal to the first threshold value, the corresponding position point (ie, the position point whose reflection information is less than or equal to the threshold value) is determined as the display position of the target object (step 243).

參照「第4圖」,於步驟260中,可將找出的標的物的影像資訊所對應的反射資訊相互比較(步驟261),並且將比較結果與一第二閥值相比(步驟262)。於此,可將任意兩個標的物的影像資訊所對應的反射資訊相互比較,以得到所有標的物兩兩相比的結果。或者是,將攝像模組110所對焦的標的物的影像資訊所對應的反射資訊逐一與其他標的物的影像資訊所對應的反射資訊相比。Referring to FIG. 4, in step 260, the reflection information corresponding to the image information of the found object can be compared with each other (step 261), and the comparison result is compared with a second threshold (step 262). . In this case, the reflection information corresponding to the image information of any two objects can be compared with each other to obtain the result of comparing all the objects. Alternatively, the reflection information corresponding to the image information of the target object focused by the camera module 110 is compared with the reflection information corresponding to the image information of the other target objects.

當任兩標的物所對應的反射資訊的差異性(即,比較結果)大於第二閥值時,判定在數位相機100前方之多個標的物屬於兩種以上之不同的景深(步驟263)。When the difference of the reflection information corresponding to the two objects (ie, the comparison result) is greater than the second threshold, it is determined that the plurality of objects in front of the digital camera 100 belong to two or more different depths of fields (step 263).

當所有之兩標的物所對應的反射資訊的差異性(即,比較結果)均小於或等第二閥值時,判定在數位相機100前方之多個標的物屬於單一景深(步驟264)。When the difference of the reflection information corresponding to all the two objects (ie, the comparison result) is less than or equal to the second threshold, it is determined that the plurality of objects in front of the digital camera 100 belong to a single depth of field (step 264).

於此以人臉作為標的物進行說明。參照「第5圖」,影像中的影像區塊A、B、C、D分別屬於4個標的物。於預覽影像與預閃影像中的同一影像區塊A/B/C/D會於相同的相對位置上。Here, the face is described as a subject. Referring to "figure 5", the image blocks A, B, C, and D in the image belong to four objects. The same image block A/B/C/D in the preview image and the pre-flash image will be in the same relative position.

相較於屬於非標的物(如,背景)的影像區塊E來說,於預覽影像中標的物的影像區塊A/B/C/D的亮度資訊與預閃影像中相同之影像區塊A/B/C/D的亮度資訊之間的差異較為大。換言之,相對非標的物(如,背景)的影像區塊E,同一影像區塊A/B/C/D於預覽影像中的亮度資訊和預閃影像中的亮度資訊之間的變化(差異性)較大。因此,將反射影像中各位置點的反射資訊與第二閥值相比,即可透過找出反射資訊大於第二閥值的位置點來得到可能為影像區塊A、B、C、D的位置。進而再針對找出的位置進行人臉辨視程序以確定影像區塊A、B、C、D(即,4張人臉)。Compared with the image block E belonging to the non-standard object (for example, the background), the brightness information of the image block A/B/C/D of the target object in the preview image is the same as that in the pre-flash image. The difference between the brightness information of A/B/C/D is relatively large. In other words, the change between the brightness information in the preview image and the brightness information in the pre-flash image of the same image block A/B/C/D relative to the image block E of the non-standard object (eg, background) (difference) ) Larger. Therefore, comparing the reflection information of each position point in the reflected image with the second threshold value, the position of the reflection information greater than the second threshold value can be found to obtain the image blocks A, B, C, and D. position. Further, a face recognition program is performed for the found position to determine image blocks A, B, C, and D (ie, four faces).

然後,比較影像區塊A、B、C、D的亮度資訊,以確定影像區塊A、B、C、D是否在不相同的景深。Then, the brightness information of the image blocks A, B, C, and D is compared to determine whether the image blocks A, B, C, and D are in different depth of field.

舉例來說,可將影像區塊A、B、C、D的亮度資訊兩兩相比,以得到影像區塊A、B的亮度資訊的差值、影像區塊A、C的亮度資訊的差值、影像區塊A、D的亮度資訊的差值、影像區塊B、C的亮度資訊的差值、影像區塊B、D的亮度資訊的差值和、影像區塊C、D的亮度資訊的差值。再將得到的六個差值與第二閥值相比,以確認是否有差值大於第二閥值。若有差值大於第二閥值即表示影像區塊A、B、C、D是屬於兩種以上之不同的景深。以「第5圖」來說,影像區塊A、B、C、D則屬於三種不同的景深。即,影像區塊A與其他三者(影像區塊B、C、D)屬於不同的景深,且影像區塊D亦與其他三者(影像區塊A、B、C)屬於不同的景深。For example, the brightness information of the image blocks A, B, C, and D can be compared to each other to obtain the difference between the brightness information of the image blocks A and B, and the difference between the brightness information of the image blocks A and C. The difference between the value, the brightness information of the image blocks A and D, the difference of the brightness information of the image blocks B and C, the difference between the brightness information of the image blocks B and D, and the brightness of the image blocks C and D. The difference in information. The resulting six differences are then compared to a second threshold to determine if there is a difference greater than the second threshold. If the difference is greater than the second threshold, it means that the image blocks A, B, C, and D belong to two or more different depths of field. In the "figure 5", the image blocks A, B, C, and D belong to three different depths of field. That is, the image block A and the other three (image blocks B, C, D) belong to different depths of field, and the image block D also has different depth of field from the other three (image blocks A, B, C).

在另一實施例中,假設數位相機100是對焦於影像區塊D所對應的標的物上,則以影像區塊D的亮度資訊與其他三者(影像區塊A、B、C)相比,以得到影像區塊D、A的亮度資訊的差值、影像區塊D、B的亮度資訊的差值和影像區塊D、C的亮度資訊的差值。再將得到的三個差值與第二閥值相比,以確認是否有差值大於第二閥值。若有差值大於第二閥值即表示影像區塊A、B、C、D是屬於兩種以上之不同的景深。In another embodiment, if the digital camera 100 is focused on the target object corresponding to the image block D, the brightness information of the image block D is compared with the other three (image blocks A, B, and C). In order to obtain the difference between the brightness information of the image blocks D and A, the difference between the brightness information of the image blocks D and B, and the difference between the brightness information of the image blocks D and C. The resulting three differences are compared to a second threshold to determine if there is a difference greater than the second threshold. If the difference is greater than the second threshold, it means that the image blocks A, B, C, and D belong to two or more different depths of field.

於步驟270中,可在確定在數位相機100前方之標的物屬於兩種不同的景深時,直接將攝像模組110的感光度調高為當前的感光度的一倍。再者,亦可選擇依據攝像模組110的感光度的設定選項或特定標的物來進行調整。In step 270, when the subject matter in front of the digital camera 100 is determined to belong to two different depths of field, the sensitivity of the camera module 110 can be directly increased to twice the current sensitivity. Furthermore, it is also possible to select an adjustment according to the setting option of the sensitivity of the camera module 110 or a specific target.

就依據攝像模組110的感光度的設定選項進行調整來說,當確定在數位相機100前方之標的物屬於兩種不同的景深時,可依據攝像模組110的感光度的設定選項依序將當前的感光度提高一級別。舉例來說,假設數位相機100提供之攝像模組110的感光度的設定選項為50、100、200、400、800和1600,並且當前的感光度設定為100。當確定在數位相機100前方之標的物屬於兩種不同的景深時,則將攝像模組110的感光度從100調高為200。In the adjustment according to the setting option of the sensitivity of the camera module 110, when it is determined that the subject matter in front of the digital camera 100 belongs to two different depths of field, the setting options of the sensitivity of the camera module 110 may be sequentially The current sensitivity is increased by one level. For example, assume that the sensitivity settings of the camera module 110 provided by the digital camera 100 are 50, 100, 200, 400, 800, and 1600, and the current sensitivity is set to 100. When it is determined that the subject matter in front of the digital camera 100 belongs to two different depths of field, the sensitivity of the camera module 110 is increased from 100 to 200.

就依據特定標的物來說,可從在數位相機100前方之所有標的物中選擇一個或多個在標的物作為計算調整值的參考,進而再以計算得的調整值調整攝像模組110當前的感光度。According to the specific target, one or more of the objects in the front of the digital camera 100 can be selected as a reference for calculating the adjustment value, and then the current adjustment of the camera module 110 is adjusted with the calculated adjustment value. Sensitivity.

其中,可選擇景深最深的標的物作為計算調整值的參考,即以景深最深的標的物的影像資訊計算感光度的調整值。Among them, the object with the deepest depth of field can be selected as a reference for calculating the adjustment value, that is, the adjustment value of the sensitivity is calculated from the image information of the object with the deepest depth of field.

抑或是,可選擇目標物以外的標的物作為計算調整值的參考,即依據落於攝像模組110所對焦的景深以外之景深的標的物的影像資訊計算感光度的調整值。於此,可選擇景深大於目標物之景深的標的物的影像資訊計算感光度的調整值。Alternatively, the target object other than the target object may be selected as a reference for calculating the adjustment value, that is, the adjustment value of the sensitivity is calculated based on the image information of the target object falling in the depth of field other than the depth of field in which the camera module 110 is focused. Here, the image information of the object whose depth of field is larger than the depth of field of the target object can be selected to calculate the adjustment value of the sensitivity.

以「第5圖」所示的標的物來說,假設標的物為人臉且數位相機100是對焦於影像區塊D所對應的標的物上。此時,可選擇影像區塊A的影像資訊計算感光度的調整值,或是選擇影像區塊A、B、C中之一個或兩個影像區塊的影像資訊來計算感光度的調整值。In the case of the object shown in "Fig. 5", it is assumed that the subject matter is a human face and the digital camera 100 is focused on the object corresponding to the image block D. At this time, the image information of the image block A can be selected to calculate the sensitivity adjustment value, or the image information of one or two image blocks of the image blocks A, B, and C can be selected to calculate the sensitivity adjustment value.

在以上描述中,「第一」和「第二」僅用以標示二元件(二閥值),並非用以限定指稱特定元件或順序。In the above description, "first" and "second" are used only to identify two elements (two thresholds), and are not intended to limit the specific elements or order.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention has been disclosed above in the foregoing embodiments, it is not intended to limit the 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.

100...數位相機100. . . Digital camera

110...攝像模組110. . . Camera module

112...鏡頭組112. . . Lens group

114...感光元件114. . . Photosensitive element

120...閃光燈120. . . flash

130...儲存單元130. . . Storage unit

140...處理單元140. . . Processing unit

150...顯示器150. . . monitor

A...影像區塊A. . . Image block

B...影像區塊B. . . Image block

C...影像區塊C. . . Image block

D...影像區塊D. . . Image block

E...影像區塊E. . . Image block

第1圖為根據本發明一數位相機的概要示意圖。Figure 1 is a schematic diagram of a digital camera in accordance with the present invention.

第2圖為根據本發明一實施例之數位相機的感光度的調整方法的流程圖。2 is a flow chart showing a method of adjusting the sensitivity of a digital camera according to an embodiment of the present invention.

第3圖為根據本發明一實施例之步驟240的細部流程圖。FIG. 3 is a detailed flow diagram of step 240 in accordance with an embodiment of the present invention.

第4圖為根據本發明一實施例之步驟260的細部流程圖。Figure 4 is a detailed flow diagram of step 260 in accordance with an embodiment of the present invention.

第5圖為根據本發明一實施例之取景畫面的示意圖。Fig. 5 is a schematic diagram of a view screen according to an embodiment of the present invention.

Claims (10)

一種數位相機的感光度的調整方法,該數位相機包括一閃光燈與一攝像模組,該數位相機的感光度的調整方法包括:利用該攝像模組擷取相應於複數個標的物的一預覽影像;致使該閃光燈發出一預閃閃光,並利用該攝像模組擷取相應於該些標的物的一預閃影像;透過該預覽影像和該預閃影像計算一反射影像;藉由該反射影像上的各個位置點的反射資訊判別出該預閃影像中該些標的物的顯現位置;針對該些顯現位置執行一辨識程序,以找出該預閃影像中顯現出該些標的物的影像資訊;根據該些標的物的該些影像資訊判斷該些標的物是否屬於兩種以上之不同的景深;以及當該些標的物屬於兩種以上之不同的該景深時,調整該攝像模組當前的感光度。A method for adjusting the sensitivity of a digital camera, the digital camera includes a flash and a camera module, and the method for adjusting the sensitivity of the digital camera comprises: using the camera module to capture a preview image corresponding to the plurality of objects Causing the flash to emit a pre-flash, and using the camera module to capture a pre-flash image corresponding to the objects; calculating a reflected image through the preview image and the pre-flash image; The reflection information of each of the position points determines the appearance position of the objects in the pre-flash image; and performs an identification process for the display positions to find image information of the target objects in the pre-flash image; Determining, according to the image information of the objects, whether the objects belong to two or more different depth of field; and adjusting the current sensitivity of the camera module when the objects belong to two or more different depths of field degree. 如請求項1所述之數位相機的感光度的調整方法,其中各該標的物係為一人臉,且該辨識程序係為一人臉辨識程序。The method for adjusting the sensitivity of the digital camera according to claim 1, wherein each of the target objects is a human face, and the identification program is a face recognition program. 如請求項1所述之數位相機的感光度的調整方法,其中該透過該預覽影像和該預閃影像計算一反射影像的步驟包括:透過比較該預覽影像的亮度資訊和該預閃影像的亮度資訊來得到該反射影像,其中該反射影像是相應於該預覽影像的亮度資訊和該預閃影像的亮度資訊之間的差異。The method for adjusting the sensitivity of the digital camera according to claim 1, wherein the step of calculating a reflected image through the preview image and the pre-flash image comprises: comparing brightness information of the preview image with brightness of the pre-flash image Information to obtain the reflected image, wherein the reflected image is a difference between brightness information corresponding to the preview image and brightness information of the pre-flash image. 如請求項1所述之數位相機的感光度的調整方法,其中該藉由該反射影像上的各個位置點的反射資訊判別出該預閃影像中該些標的物的顯現位置的步驟包括:將該些反射資訊與一閥值相比較;當該反射資訊大於該閥值時,對應之該位置點判定為該些標的物的顯現位置;以及當該反射資訊小於或等於該閥值時,對應之該位置點判定不為該些標的物的顯現位置。The method for adjusting the sensitivity of the digital camera according to claim 1, wherein the step of discriminating the appearance positions of the objects in the pre-flash image by using the reflection information of each position point on the reflected image comprises: The reflection information is compared with a threshold value; when the reflection information is greater than the threshold value, the corresponding position point is determined as the appearance position of the target objects; and when the reflection information is less than or equal to the threshold value, corresponding The position point determination is not the appearance position of the objects. 如請求項1所述之數位相機的感光度的調整方法,其中該根據該些標的物的該些影像資訊判斷該些標的物是否屬於兩種以上之不同的景深的步驟包括:將該些標的物的影像資訊所對應的該些反射資訊相互比較;以及當該些標的物中兩該標的物所對應的該些反射資訊的差異性大於一閥值時,判定該些標的物屬於兩種以上之不同的該景深。The method for adjusting the sensitivity of the digital camera according to claim 1, wherein the step of determining, according to the image information of the objects, whether the objects belong to two or more different depths of field comprises: The reflection information corresponding to the image information of the object is compared with each other; and when the difference between the reflection information corresponding to the two objects in the object is greater than a threshold, determining that the objects belong to more than two types The difference in depth of field. 如請求項1所述之數位相機的感光度的調整方法,其中該調整該攝像模組當前的感光度的步驟包括:依據該攝像模組的該感光度的設定選項依序將當前的該感光度提高一級別。The method for adjusting the sensitivity of the digital camera according to claim 1, wherein the step of adjusting the current sensitivity of the camera module comprises: sequentially, according to the setting option of the sensitivity of the camera module, the current sensitivity. Increase the level by one. 如請求項1所述之數位相機的感光度的調整方法,其中該調整該攝像模組當前的感光度的步驟包括:將該攝像模組的該感光度調高為當前的該感光度的一倍。The method for adjusting the sensitivity of the digital camera according to claim 1, wherein the step of adjusting the current sensitivity of the camera module comprises: adjusting the sensitivity of the camera module to a current sensitivity of the camera. Times. 如請求項1所述之數位相機的感光度的調整方法,其中該調整該攝像模組當前的感光度的步驟包括:依據屬於該些標的物所屬的該些景深中最深的該景深的至少一該標的物的該影像資訊計算該感光度的一調整值;以及以該調整值調整該攝像模組當前的該感光度。The method for adjusting the sensitivity of the digital camera of claim 1, wherein the step of adjusting the current sensitivity of the camera module comprises: at least one of the deepest depths of the depths of the scenes to which the objects belong. The image information of the target object calculates an adjustment value of the sensitivity; and adjusts the current sensitivity of the camera module with the adjustment value. 如請求項1所述之數位相機的感光度的調整方法,其中該調整該攝像模組當前的感光度的步驟包括:依據屬於該些標的物所屬的該些景深中該攝像模組所對焦的該景深以外之至少一該景深的至少一該標的物的該影像資訊計算該感光度的一調整值;以及以該調整值調整該攝像模組當前的該感光度。The method for adjusting the sensitivity of the digital camera according to claim 1, wherein the step of adjusting the current sensitivity of the camera module comprises: focusing on the camera module in the depth of field to which the target objects belong The image information of at least one of the objects of the depth of field other than the depth of field calculates an adjustment value of the sensitivity; and the current sensitivity of the camera module is adjusted by the adjustment value. 如請求項1所述之數位相機的感光度的調整方法,更包括:於調整該攝像模組當前的感光度後,再次致使該閃光燈發出該預閃閃光,並利用該攝像模組再次擷取該些標的物的該預閃影像。The method for adjusting the sensitivity of the digital camera according to claim 1, further comprising: after adjusting the current sensitivity of the camera module, causing the flash to emit the pre-flash, and using the camera module to capture again The pre-flash image of the objects.
TW99121945A 2010-07-02 2010-07-02 Digital camera sensitivity adjustment method TWI405458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99121945A TWI405458B (en) 2010-07-02 2010-07-02 Digital camera sensitivity adjustment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99121945A TWI405458B (en) 2010-07-02 2010-07-02 Digital camera sensitivity adjustment method

Publications (2)

Publication Number Publication Date
TW201204018A TW201204018A (en) 2012-01-16
TWI405458B true TWI405458B (en) 2013-08-11

Family

ID=46756497

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99121945A TWI405458B (en) 2010-07-02 2010-07-02 Digital camera sensitivity adjustment method

Country Status (1)

Country Link
TW (1) TWI405458B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4998128A (en) * 1989-09-29 1991-03-05 Polaroid Corporation Preflash measurement technique
US5315342A (en) * 1992-12-28 1994-05-24 Eastman Kodak Company Automatic focus and indirect illumination camera system
US20040234259A1 (en) * 2003-05-21 2004-11-25 Nikon Corporation Camera and multiple flash photographing system
US20050157206A1 (en) * 2004-01-16 2005-07-21 Casio Computer Co., Ltd. Image capture device with automatic adjusting function for sensitivity
US20050219381A1 (en) * 2004-04-06 2005-10-06 Nikon Corporation Electronic camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4998128A (en) * 1989-09-29 1991-03-05 Polaroid Corporation Preflash measurement technique
US5315342A (en) * 1992-12-28 1994-05-24 Eastman Kodak Company Automatic focus and indirect illumination camera system
US20040234259A1 (en) * 2003-05-21 2004-11-25 Nikon Corporation Camera and multiple flash photographing system
US20050157206A1 (en) * 2004-01-16 2005-07-21 Casio Computer Co., Ltd. Image capture device with automatic adjusting function for sensitivity
US20050219381A1 (en) * 2004-04-06 2005-10-06 Nikon Corporation Electronic camera

Also Published As

Publication number Publication date
TW201204018A (en) 2012-01-16

Similar Documents

Publication Publication Date Title
CN107743590B (en) Method and apparatus for performing exposure estimation using time-of-flight sensor
US8294785B2 (en) Method for adjusting photosensitiveness of digital camera
CN107948538B (en) Imaging method, imaging device, mobile terminal and storage medium
JP5885416B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
CN107846556B (en) Imaging method, imaging device, mobile terminal and storage medium
JP6046905B2 (en) Imaging apparatus, exposure control method, and program
KR20200031689A (en) Image processing methods, devices and devices
US20060044422A1 (en) Image capture apparatus and control method therefor
KR20090098197A (en) Digital photographing apparatus to control flash lighting, controlling method for the same, and recording medium which records the program for carrying the same method
US8223258B2 (en) Backlight photographing method
US10063795B2 (en) Image capturing apparatus, method for controlling the same, and storage medium
CN101867716A (en) Adjusting method for digital image capturing conditions and digital photographing device
JP6467190B2 (en) EXPOSURE CONTROL DEVICE AND ITS CONTROL METHOD, IMAGING DEVICE, PROGRAM, AND STORAGE MEDIUM
TW201349854A (en) Image pickup device and image synthesis method thereof
JP2010072619A (en) Exposure operation device and camera
CN102316261B (en) Method for regulating light sensitivity of digital camera
TWI472222B (en) Image brightness compensation method and digital image pickup device with image brightness compensation
JP2015034850A (en) Photographing device and photographing method
JP6336337B2 (en) Imaging apparatus, control method therefor, program, and storage medium
JP4300936B2 (en) Imaging device
JP2006217413A (en) Electronic camera
JP5849515B2 (en) Exposure calculation device and camera
JP2012163679A (en) Imaging device, stroboscope control method, and stroboscope control program
TWI405458B (en) Digital camera sensitivity adjustment method
JP5822479B2 (en) Imaging device