TWI424738B - The method of adjusting the resolution - Google Patents

The method of adjusting the resolution Download PDF

Info

Publication number
TWI424738B
TWI424738B TW99119980A TW99119980A TWI424738B TW I424738 B TWI424738 B TW I424738B TW 99119980 A TW99119980 A TW 99119980A TW 99119980 A TW99119980 A TW 99119980A TW I424738 B TWI424738 B TW I424738B
Authority
TW
Taiwan
Prior art keywords
resolution
image
amount
adjusting
capturing device
Prior art date
Application number
TW99119980A
Other languages
Chinese (zh)
Other versions
TW201201571A (en
Inventor
Hsiu Hung Pien
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 TW99119980A priority Critical patent/TWI424738B/en
Publication of TW201201571A publication Critical patent/TW201201571A/en
Application granted granted Critical
Publication of TWI424738B publication Critical patent/TWI424738B/en

Links

Description

解析度的調整方法Resolution adjustment method

本發明係關於一種影像處理方法,特別是一種解析度的調整方法。The invention relates to an image processing method, in particular to a method for adjusting the resolution.

隨著數位相機的發展,使得攝影不再是昂貴的消費。使用者可以隨意的拍攝所要的影像,用以記錄值得紀念的一刻或景象。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.

在拍攝得的影像的解析度上,還是只能由使用者於拍照前自行透過數位相機所提供相關選單來進行調整。In the resolution of the captured image, it can only be adjusted by the user through the relevant menu provided by the digital camera before taking the photo.

若使用者未變更解析度設定,此時針對每種場合、每種主題、或每個主角所拍攝得的影像都會具有相同解析度。If the user has not changed the resolution setting, the images captured for each occasion, each theme, or each of the main characters will have the same resolution.

由於數位相機的儲存空間有限,當解析度設定較高時,可拍攝的影像張數則會相對較少。並且,於事後整理時,常會發現有許多取之無用、棄之可惜的照片被留下來佔據了儲存資源,例如:相機上的記憶卡、電腦上的硬碟、燒錄光碟或網路上的個人相簿。Due to the limited storage space of digital cameras, when the resolution setting is high, the number of images that can be taken is relatively small. Moreover, when sorting out afterwards, it is often found that many photos that are useless and abandoned are occupied to occupy storage resources, such as: memory cards on cameras, hard disks on computers, burned discs or individuals on the Internet. Album.

反之,當為了節省儲存空間的空間,而選擇使用較低的解析度時,則會犧牲了好照片的細節。Conversely, when you choose to use a lower resolution in order to save space in your storage space, you will sacrifice the details of a good photo.

為了不遺漏任何細節,選擇使用最高解析度時,效果次等、較差或極差的照片,則會較無或極無價值的佔據了相機儲存媒體的空間,大大影響了可拍張數。In order not to miss any details, when using the highest resolution, the photos with inferior, poor or very poor results will occupy the space of the camera storage media, which is less or less valuable, which greatly affects the number of shots that can be taken.

鑒於以上的問題,本發明提供一種解析度的調整方法,藉由解決習知技術所存在的一個或多個問題。In view of the above problems, the present invention provides a method of adjusting the resolution by solving one or more problems of the prior art.

本發明所揭露之解析度的調整方法,其應用於一影像擷取裝置。此影像擷取裝置包括一攝像模組與一儲存單元。The method for adjusting the resolution disclosed in the present invention is applied to an image capturing device. The image capturing device comprises a camera module and a storage unit.

首先,利用攝像模組擷取具有第一解析度的影像,並分析擷取得之影像中的物件量。First, the image with the first resolution is captured by the camera module, and the amount of the object in the captured image is analyzed.

然後,將分析得的物件量與一個或多個門檻值相比。The analyzed object amount is then compared to one or more threshold values.

當分析得的物件量小於一個或多個門檻值時,相應小於的門檻值將影像的解析度;或者,將影像擷取裝置的解析度從第一解析度調低為第二解析度,並重新擷取具有第二解析度的影像。然後,將具有第二解析度的影像儲存在儲存單元中。When the analyzed object quantity is less than one or more threshold values, the corresponding threshold value is less than the resolution of the image; or the resolution of the image capturing device is lowered from the first resolution to the second resolution, and Recapture the image with the second resolution. Then, the image with the second resolution is stored in the storage unit.

當分析得的物件量大於或等於所有門檻值時,將具有第一解析度的影像儲存在儲存單元中。When the analyzed object quantity is greater than or equal to all threshold values, the image with the first resolution is stored in the storage unit.

影像中的物件量可透過先執行邊緣化程序,以將擷取得之影像邊緣化,計算邊緣化後之影像中圖塊的數量或邊緣成份的含量,藉以將計算得的圖塊的數量或邊緣成分的含量作為物件量。The amount of objects in the image can be marginalized by first performing a marginalization process to calculate the number of tiles or the content of edge components in the image after the edged image, thereby calculating the number or edge of the calculated tiles. The content of the component is taken as the amount of the article.

根據本發明之解析度的調整方法可應用於一影像擷取裝置,其係透過分析擷取得的影像中物件的多寡來決定影像儲存時的解析度,即,判定是否縮放擷取得的影像或是判定是否調低影像擷取裝置的解析,進而有效地利用儲存資源。The method for adjusting the resolution according to the present invention can be applied to an image capturing device, which determines the resolution of image storage by analyzing the number of objects in the image obtained by the image, that is, determining whether to scale the image obtained or It is determined whether the resolution of the image capturing device is lowered, and the storage resources are effectively utilized.

以上之關於本發明內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。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.

根據本發明之解析度的調整方法可應用於一影像擷取裝置,使其可透過分析擷取得的影像中物件的多寡來決定影像儲存時的解析度,即,判定是否縮放擷取得的影像或是判定是否調低影像擷取裝置的解析,進而有效地利用儲存資源。其中,影像擷取裝置可為數位相機、數位攝影機或具有攝像模組的電子裝置(例如:手機或電腦等)。The method for adjusting the resolution according to the present invention can be applied to an image capturing device, which can determine the resolution of image storage by analyzing the number of objects in the image obtained by the image, that is, determining whether to scale the acquired image or It is determined whether or not the analysis of the image capturing device is lowered, and the storage resource is effectively utilized. The image capturing device may be a digital camera, a digital camera or an electronic device having a camera module (for example, a mobile phone or a computer).

請參照「第1圖」,影像擷取裝置100可包括:攝像模組110、儲存單元130和處理單元150。攝像模組110包括鏡頭組112和感光元件114。Please refer to FIG. 1 , the image capturing device 100 can include a camera module 110 , a storage unit 130 , and a processing unit 150 . The camera module 110 includes a lens group 112 and a photosensitive element 114.

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

感光元件114對應鏡頭組112而設置。感光元件114可透過鏡頭組112接收相應於目標物及其週遭景色的光訊號,並根據所接收到的光訊號轉換成數位影像的電訊號以得到相應於目標物的影像。換言之,感光元件114可經由鏡頭組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 an image of the framing screen via the lens group 112.

處理單元150電性連接於感光元件114與儲存單元130。處理單元150可控制鏡頭組112和感光元件114的運作,並將擷取到的影像儲存於儲存單元130中。The processing unit 150 is electrically connected to the photosensitive element 114 and the storage unit 130. The processing unit 150 can control the operation of the lens group 112 and the photosensitive element 114, and store the captured image in the storage unit 130.

於此,處理單元150還可分析擷取到的影像的物件量並根據擷取到的影像的物件量選擇性地調整擷取到的影像的解析度或影像擷取裝置的解析度的設定。Here, the processing unit 150 may also analyze the amount of the captured image and selectively adjust the resolution of the captured image or the resolution of the image capturing device according to the amount of the captured image.

換言之,根據本發明之解析度的調整方法可以軟體或韌體程式實現在影像擷取裝置100上。即,用以實施根據本發明之解析度的調整方法之一程式碼可以儲存於影像擷取裝置100中,再由影像擷取裝置100的處理單元150讀取並執行儲存的程式碼,以使影像擷取裝置100執行根據本發明之解析度的調整方法。In other words, the method of adjusting the resolution according to the present invention can be implemented on the image capturing device 100 in a software or firmware program. That is, one of the codes for implementing the adjustment method according to the present invention can be stored in the image capturing device 100, and then the processing unit 150 of the image capturing device 100 reads and executes the stored code, so that The image capturing device 100 performs a method of adjusting the resolution according to the present invention.

其中,處理單元150可由一個或多個處理器,例如:數位訊號處理器(digital signal processor;DSP)等,實現。儲存單元130可由一個或多個儲存器實現。儲存器可為非揮發性記憶體或為揮發性記憶體。The processing unit 150 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.

於此,進行分的影像可為預覽影像或為拍攝影像。預覽影像係指影像擷取裝置100於預覽階段或對焦階段中所擷取到的影像。拍攝影像係指影像擷取裝置100於拍攝階段所擷取到的影像。Here, the image to be divided may be a preview image or a captured image. The preview image refers to an image captured by the image capturing device 100 during the preview phase or the focusing phase. The captured image refers to the image captured by the image capturing device 100 during the shooting phase.

一般來說,影像擷取裝置100的運作可區分為預覽階段(live view)、對焦階段(auto focusing)與拍攝階段。In general, the operation of the image capturing device 100 can be divided into a live view, an auto focusing, and a shooting phase.

預覽階段是指使用者按壓影像擷取裝置100的快門鍵之前的時刻。於預覽階段中,使用者可透過影像擷取裝置100的顯示器(圖中未示)預覽取景畫面。The preview phase refers to the time before the user presses the shutter button of the image capturing device 100. During the preview phase, the user can preview the framing screen through the display (not shown) of the image capturing device 100.

對焦階段是指使用者在半按影像擷取裝置100的快門鍵的時刻。於對焦階段中,影像擷取裝置100會以取景畫面中的標的物中之一個或多個作為目標物,並調整鏡頭組112與目標物的物距,並且使用者可透過影像擷取裝置100的顯示器(圖中未示)預覽對焦後(即,物距調整完成後)的取景畫面。The focus phase refers to the moment when the user half-presses the shutter button of the image capture device 100. In the focusing stage, the image capturing device 100 uses 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 object, and the user can pass through the image capturing device 100. The display (not shown) previews the framing screen after focusing (ie, after the object distance adjustment is completed).

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

「第2A及2B圖」係為根據本發明二實施例之解析度的調整方法的流程圖。"2A and 2B" is a flowchart of a method of adjusting the resolution according to the second embodiment of the present invention.

參照「第1、2A及2B圖」,首先,利用攝像模組110進行拍攝以擷取相應於在影像擷取裝置100前方之多個標的物的一影像(步驟210)。此影像具有第一解析度。此第一解析度可為影像擷取裝置100當前設定的解析度或為影像擷取裝置100的解析度的上限(此上限可由影像擷取裝置100的能力決定)。此些標的物可為人臉、建築物、動物、植物、山、雲、石頭、流水、交通工具、標誌和特定物品中之至少一種特徵物件。Referring to "1, 2A, and 2B", first, the camera module 110 performs imaging to capture an image corresponding to a plurality of objects in front of the image capturing device 100 (step 210). This image has a first resolution. The first resolution may be the resolution currently set by the image capture device 100 or the upper limit of the resolution of the image capture device 100 (this upper limit may be determined by the capabilities of the image capture device 100). Such subject matter may be at least one feature item of a face, a building, an animal, a plant, a mountain, a cloud, a stone, a flowing water, a vehicle, a sign, and a specific item.

然後,分析擷取到之影像中的物件量(步驟220)。Then, the amount of the object in the captured image is analyzed (step 220).

並利用分析得之物件量判斷影像的複雜度,即物件量是否符合設定條件(步驟230)。於此,影像的複雜度係指影像中顯現出的細節部分(即,標的物)的多寡。And using the analyzed object quantity to judge the complexity of the image, that is, whether the object quantity meets the set condition (step 230). Here, the complexity of the image refers to the amount of detail (ie, the subject matter) that appears in the image.

當影像的複雜度相對高時,則將具有第一解析度的影像儲存在儲存單元130中(步驟240)。When the complexity of the image is relatively high, the image having the first resolution is stored in the storage unit 130 (step 240).

當影像的複雜度相對低時,則將擷取到的影像的解析度從第一解析度調低為第二解析度(步驟250);或者,將影像擷取裝置的解析度的設定從第一解析度調低為第二解析度(步驟252),並於調整後利用攝像模組110再次擷取影像(步驟254)。此時,影像則具有第二解析度。When the complexity of the image is relatively low, the resolution of the captured image is lowered from the first resolution to the second resolution (step 250); or the resolution of the image capturing device is set from the first The resolution is lowered to the second resolution (step 252), and after the adjustment, the image is captured by the camera module 110 (step 254). At this point, the image has a second resolution.

然後,再將具有第二解析度的影像儲存在儲存單元130中(步驟260)。Then, the image with the second resolution is stored in the storage unit 130 (step 260).

參照「第3A及3B圖」,於步驟220中,可藉由處理單元150執行邊緣化程序,以將擷取得之影像邊緣化(步驟222),然後計算邊緣化後之影像中圖塊的數量或邊緣成分的含量(步驟224或步驟226),並以計算得的圖塊的數量或邊緣成分的含量作為物件量。Referring to "3A and 3B", in step 220, the edge processing can be performed by the processing unit 150 to marginalize the captured image (step 222), and then the number of tiles in the edged image is calculated. Or the content of the edge component (step 224 or step 226), and the amount of the calculated block or the content of the edge component is taken as the amount of the object.

參照「第4圖」,圖塊B即是指邊緣成分L所區分出的區塊。其中,邊緣成分的含量可為屬於邊緣成分的畫素的數量或邊緣成分於整張影像中所佔據的比例。Referring to "Fig. 4", the block B refers to the block distinguished by the edge component L. The content of the edge component may be the number of pixels belonging to the edge component or the proportion of the edge component occupied in the entire image.

此外,於步驟220中,亦可藉由處理單元150執行辨識程序,以辨識且計算擷取得之影像中的標的物的數量,藉以將計算得的標的物的數量作為物件量。In addition, in step 220, the identification process may be performed by the processing unit 150 to identify and calculate the number of objects in the captured image, thereby using the calculated number of objects as the object amount.

於步驟230中,可利用一門檻值或具有多個門檻值和其各自對應之解析度調整資料的一關係資訊(例如:門檻值與解析度調整資料的對應關係表)與分析得之物件量相比較,藉以判定影像的複雜度。In step 230, a threshold value or a relationship information having a plurality of threshold values and their respective resolution adjustment data (for example, a correspondence table between threshold values and resolution adjustment data) and an analyzed object amount may be utilized. In comparison, the complexity of the image is determined.

以單一門檻值來說,參照「第5A及5B圖」,可將得到的物件量與門檻值相比較(步驟232)。In the case of a single threshold value, referring to "5A and 5B", the obtained object amount can be compared with the threshold value (step 232).

當物件量大於或等於門檻值時,表示影像的複雜度高,即不進行解析度(影像的解析度或影像擷取裝置100的解析度的設定)的調整(步驟240)。When the amount of the object is greater than or equal to the threshold value, it indicates that the complexity of the image is high, that is, the resolution (the resolution of the image or the setting of the resolution of the image capturing device 100) is not adjusted (step 240).

當物件量小於門檻值時,表示影像的複雜度低,則將影像的解析度從第一解析度調低為第二解析度(步驟250)。或者,將影像擷取裝置的解析度的設定從第一解析度調低為第二解析度(步驟252),並重新擷取具有第二解析度的影像(步驟254)。When the object amount is less than the threshold value, indicating that the complexity of the image is low, the resolution of the image is lowered from the first resolution to the second resolution (step 250). Alternatively, the resolution setting of the image capturing device is lowered from the first resolution to the second resolution (step 252), and the image having the second resolution is retrieved (step 254).

於步驟250及步驟252中,可在確定在影像的複雜度低時,以特定倍率將當前的解析度(影像的解析度或影像擷取裝置100的解析度的設定)調低。換言之,第一解析度可為第二解析度的特定倍率,例如:一倍、二倍或三倍以上等。In steps 250 and 252, when the complexity of the image is determined to be low, the current resolution (the resolution of the image or the resolution of the image capturing device 100) can be lowered at a specific magnification. In other words, the first resolution may be a specific magnification of the second resolution, for example, one, two or three times or more.

舉例來說,假設影像擷取裝置100當前的解析度(即,第一解析度)設定為6 MP,且特定倍率預設為一倍。此時,影像擷取裝置100利用攝像模組110擷取得的影像的解析度為6 MP。For example, it is assumed that the current resolution (ie, the first resolution) of the image capturing device 100 is set to 6 MP, and the specific magnification is preset to be doubled. At this time, the resolution of the image acquired by the image capturing device 100 by the image capturing module 110 is 6 MP.

當分析且判斷得到的結果為影像的複雜度低時,則處理單元150執行解析度調整程序,以將影像的解析度由6 MP(即,第一解析度)調低為3 MP(即,第二解析度)。或是,處理單元150執行解析度調整程序,以將影像擷取裝置100當前的解析度(即,第一解析度)從設定為6 MP調低成設定為3 MP(即,第二解析度)。When the result of the analysis and the judgment is that the complexity of the image is low, the processing unit 150 performs a resolution adjustment procedure to lower the resolution of the image from 6 MP (ie, the first resolution) to 3 MP (ie, Second resolution). Alternatively, the processing unit 150 performs a resolution adjustment program to set the current resolution (ie, the first resolution) of the image capturing device 100 from being set to 6 MP to 3 MP (ie, the second resolution). ).

於步驟250及步驟252中,亦可依據影像擷取裝置100的解析度的設定選項以一特定等級的差距來將影像的解析度或影像擷取裝置100的解析度的設定從第一解析度調整低為第二解析度。換言之,第一解析度與第二解析度相差一特定等級,例如:一個等級、二個等級或三個等級以上等。In step 250 and step 252, the resolution of the image or the resolution of the image capturing device 100 may be set from the first resolution according to a certain level of difference according to the setting option of the resolution of the image capturing device 100. Adjust the low to the second resolution. In other words, the first resolution differs from the second resolution by a specific level, for example, one level, two levels, or three levels or more.

舉例來說,假設影像擷取裝置100所提供之解析度的設定選項為10 MP(百萬畫素)、8 MP、6 MP、4 MP、3 MP、2 MP和1 MP,當前的解析度(即,第一解析度)設定為8 MP,且特定等級預設為一個等級。For example, assume that the resolution setting options provided by the image capturing device 100 are 10 MP (million pixels), 8 MP, 6 MP, 4 MP, 3 MP, 2 MP, and 1 MP, the current resolution. (ie, the first resolution) is set to 8 MP, and the specific level is preset to one level.

此時,當確定影像的複雜度低時,則處理單元150執行解析度調整程序,以將影像的解析度由8 MP(即,第一解析度)調低為6 MP(即,第二解析度)或是將影像擷取裝置100當前的解析度(即,第一解析度)從設定為8 MP調低成設定為6 MP(即,第二解析度)。At this time, when it is determined that the complexity of the image is low, the processing unit 150 performs a resolution adjustment procedure to lower the resolution of the image from 8 MP (ie, the first resolution) to 6 MP (ie, the second resolution). The degree of resolution (ie, the first resolution) of the image capture device 100 is set from 8 MP to 6 MP (ie, the second resolution).

在此,影像擷取裝置100可額外設定調整後的解析度(即,第二解析度)不可小於影像擷取裝置100的解析度的下限(此下限可由影像擷取裝置100的能力決定)。Here, the image capturing device 100 can additionally set the adjusted resolution (ie, the second resolution) not to be lower than the lower limit of the resolution of the image capturing device 100 (this lower limit can be determined by the capability of the image capturing device 100).

再者,亦可由使用者自行根據所提供之解析度的設定選項來設定可調整的解析度的最小值(即,第二解析度)。Furthermore, the minimum value of the adjustable resolution (ie, the second resolution) may be set by the user according to the setting options of the resolution provided.

當預定調整的第二解析度的值小於影像擷取裝置100的解析度的下限或設定之可調整的解析度的最小值時,則直接以影像擷取裝置100的解析度的下限或設定之可調整的解析度的最小值做為第二解析度的值。換言之,當預定調整的第二解析度的值小於影像擷取裝置100的解析度的下限或設定之可調整的解析度的最小值時,進行解析度調整時則是將解析度從第一解析度調低為影像擷取裝置100的解析度的下限或設定之可調整的解析度的最小值。When the value of the second adjusted degree of the predetermined adjustment is smaller than the lower limit of the resolution of the image capturing device 100 or the minimum value of the set adjustable resolution, the lower limit of the resolution of the image capturing device 100 or the setting is directly adopted. The minimum value of the adjustable resolution is taken as the value of the second resolution. In other words, when the value of the second resolution of the predetermined adjustment is smaller than the lower limit of the resolution of the image capturing apparatus 100 or the minimum value of the set adjustable resolution, the resolution is adjusted from the first resolution when the resolution is adjusted. The degree is reduced to the lower limit of the resolution of the image capture device 100 or the minimum value of the set adjustable resolution.

另參照「第6A及6B圖」,亦可以分析得的物件量搜尋一關係資訊(步驟234)。此關係資訊包括彼此相異之多個門檻值以及各門檻值所對應之解析度調整資料。Referring to "6A and 6B", it is also possible to search for a relationship information by the amount of objects analyzed (step 234). The relationship information includes multiple threshold values that differ from each other and resolution adjustment data corresponding to each threshold value.

其中,解析度調整資料則代表不同的調整結果(即,調整出不同數值的第二解析度)。於此,門檻值可為一數值或為一狀態標記。調整結果可為特定數值、特定倍率或特定等級(基於影像擷取裝置100的解析度的設定選項)。The resolution adjustment data represents different adjustment results (ie, the second resolution of different values is adjusted). Here, the threshold value can be a value or a status flag. The adjustment result may be a specific value, a specific magnification, or a specific level (a setting option based on the resolution of the image capturing apparatus 100).

為了方便描述,以三個門檻值為例,並且三個門檻值由大到小依序稱之為第一門檻值、第二門檻值和第三門檻值。For convenience of description, the three threshold values are taken as examples, and the three threshold values are sequentially referred to as the first threshold value, the second threshold value, and the third threshold value from large to small.

當分析得的物件量大於或等於第一門檻值時,不調整解析度並將具第一解析度的影像儲存在儲存單元130中(步驟240)。由於第一門檻值大於第二門檻值和第三門檻值,因此分析得的物件量同樣大於第二門檻值和第三門檻值。When the analyzed object amount is greater than or equal to the first threshold, the resolution is not adjusted and the image with the first resolution is stored in the storage unit 130 (step 240). Since the first threshold value is greater than the second threshold value and the third threshold value, the analyzed object amount is also greater than the second threshold value and the third threshold value.

當分析得的物件量小於第一門檻值但大於或等於第二門檻值時,根據第一門檻值對應之解析度調整資料,將解析度從第一解析度調低為第二解析度(步驟250-1及步驟252-1)。此時,第二解析度係相應於第一門檻值所對應之解析度調整資料。When the analyzed object quantity is less than the first threshold value but greater than or equal to the second threshold value, the resolution is adjusted according to the resolution corresponding to the first threshold value, and the resolution is lowered from the first resolution to the second resolution (step 250-1 and step 252-1). At this time, the second resolution is adjusted according to the resolution corresponding to the first threshold value.

當分析得的物件量小於第二門檻值但大於或等於第三門檻值時,根據第二門檻值對應之解析度調整資料,將解析度從第一解析度調低為第二解析度(步驟250-2及步驟252-2)。此時,第二解析度係相應於第二門檻值所對應之解析度調整資料。When the analyzed object quantity is less than the second threshold value but greater than or equal to the third threshold value, the resolution is adjusted according to the resolution corresponding to the second threshold value, and the resolution is lowered from the first resolution to the second resolution (step 250-2 and step 252-2). At this time, the second resolution is adjusted according to the resolution corresponding to the second threshold value.

當分析得的物件量小於第三門檻值時,根據第二門檻值對應之解析度調整資料,將解析度從第一解析度調低為第二解析度(步驟250-3及步驟252-3)。此時,第二解析度係相應於第三門檻值所對應之解析度調整資料。When the analyzed object quantity is less than the third threshold value, the resolution is adjusted according to the resolution corresponding to the second threshold value, and the resolution is lowered from the first resolution to the second resolution (steps 250-3 and 252-3). ). At this time, the second resolution is adjusted according to the resolution corresponding to the third threshold value.

換言之,當分析得的物件量小於至少一個門檻值時,處理單元150會根據小於的門檻值中最小的門檻值所對應的小於至少一個門檻值(步驟250及步驟252)。In other words, when the analyzed object quantity is less than the at least one threshold value, the processing unit 150 may be less than the at least one threshold value according to the minimum threshold value among the smaller threshold values (steps 250 and 252).

於此,當預定調整的第二解析度的值小於影像擷取裝置100的解析度的下限或設定之可調整的解析度的最小值時,則直接以影像擷取裝置100的解析度的下限或設定之可調整的解析度的最小值做為第二解析度的值。換言之,當預定調整的第二解析度的值小於影像擷取裝置100的解析度的下限或設定之可調整的解析度的最小值時,進行調整的影像則從第一解析度調低為影像擷取裝置100的解析度的下限或設定之可調整的解析度的最小值。Here, when the value of the second adjusted degree of the predetermined adjustment is smaller than the lower limit of the resolution of the image capturing apparatus 100 or the minimum value of the set adjustable resolution, the lower limit of the resolution of the image capturing apparatus 100 is directly adopted. Or set the minimum value of the adjustable resolution as the value of the second resolution. In other words, when the value of the second adjusted degree of the predetermined adjustment is smaller than the lower limit of the resolution of the image capturing apparatus 100 or the minimum value of the set adjustable resolution, the adjusted image is lowered from the first resolution to the image. The lower limit of the resolution of the capture device 100 or the minimum value of the set adjustable resolution.

為清楚說明,於此以三個門檻值為例,門檻值及其對應之解析度調整資料可如同下表一的關係。但此數量非本發明之限制。For the sake of clarity, the threshold value and its corresponding resolution adjustment data can be as shown in the following table. However, this amount is not a limitation of the present invention.

換言之,關係資訊可為門檻值與解析度調整資料的對應關係表。In other words, the relationship information can be a correspondence table between the threshold value and the resolution adjustment data.

舉例來說,第一門檻值可設定為50%,且第二門檻值可設定為30%。於此,數值愈大表示複雜度越高,然此非本發明之限制。而第一調整結果可設定為調低一個等級,且第二調整結果可設定為調低二個等級。For example, the first threshold can be set to 50% and the second threshold can be set to 30%. Here, the larger the numerical value, the higher the complexity, but this is not a limitation of the present invention. The first adjustment result can be set to be lowered by one level, and the second adjustment result can be set to be lowered by two levels.

假設影像擷取裝置100所提供之解析度的設定選項為10 MP(百萬畫素)、8 MP、6 MP、4 MP、3 MP、2 MP和1 MP,且當前的解析度(即,第一解析度)設定為8 MP。It is assumed that the resolution setting options provided by the image capturing device 100 are 10 MP (million pixels), 8 MP, 6 MP, 4 MP, 3 MP, 2 MP, and 1 MP, and the current resolution (ie, The first resolution is set to 8 MP.

當分析得的物件量大於或等於第一門檻值時,則不調整影像的解析度,並將擷取得具有8 MP的影像儲存在儲存單元130中。When the analyzed object quantity is greater than or equal to the first threshold value, the resolution of the image is not adjusted, and the image with 8 MP is obtained and stored in the storage unit 130.

當分析得的物件量小於第一門檻值但大於或等於第二門檻值時,處理單元150執行解析度調整程序,以根據第一門檻值對應之解析度調整資料,將影像的解析度由8 MP(即,第一解析度)調低為6 MP(即,第二解析度),並將具有6 MP的影像儲存在儲存單元130中。或者是,將影像擷取裝置100當前的解析度設定從影像擷取裝置100,並重新擷取具有4 MP的影像。When the analyzed object quantity is less than the first threshold but greater than or equal to the second threshold, the processing unit 150 performs a resolution adjustment procedure to adjust the data according to the resolution corresponding to the first threshold, and the resolution of the image is determined by 8 The MP (i.e., the first resolution) is lowered to 6 MP (i.e., the second resolution), and an image having 6 MP is stored in the storage unit 130. Alternatively, the current resolution of the image capturing device 100 is set from the image capturing device 100, and the image having 4 MP is retrieved.

當分析得的物件量小於第二門檻值時,處理單元150執行解析度調整程序,以根據第二門檻值對應之解析度調整資料,將影像的解析度由8 MP(即,第一解析度)調低為4 MP(即,第二解析度),並將具有4 MP的影像儲存在儲存單元130中。或者是,將影像擷取裝置100當前的解析度設定從影像擷取裝置100,並重新擷取具有4 MP的影像。When the analyzed object quantity is less than the second threshold value, the processing unit 150 performs a resolution adjustment procedure to adjust the data according to the resolution corresponding to the second threshold value, and the resolution of the image is 8 MP (ie, the first resolution) ) is lowered to 4 MP (ie, second resolution), and an image having 4 MP is stored in the storage unit 130. Alternatively, the current resolution of the image capturing device 100 is set from the image capturing device 100, and the image having 4 MP is retrieved.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。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. . . Image capture device

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

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

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

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

150...處理單元150. . . Processing unit

B...圖塊B. . . Tile

L...邊緣成份L. . . Edge component

第1圖為一影像擷取裝置的概要示意圖。Figure 1 is a schematic diagram of an image capture device.

第2A圖為根據本發明第一實施例之解析度的調整方法的流程圖。Fig. 2A is a flow chart showing a method of adjusting the resolution according to the first embodiment of the present invention.

第2B圖為根據本發明第二實施例之解析度的調整方法的流程圖。2B is a flow chart showing a method of adjusting the resolution according to the second embodiment of the present invention.

第3A圖為一實施例之步驟220的細部流程圖。Figure 3A is a detailed flow diagram of step 220 of an embodiment.

第3B圖為另一實施例之步驟220的細部流程圖。Figure 3B is a detailed flow diagram of step 220 of another embodiment.

第4圖為一實施例之影像邊緣化的示意圖。Figure 4 is a schematic illustration of image margination in an embodiment.

第5A圖為根據本發明第三實施例之解析度的調整方法的流程圖。Fig. 5A is a flow chart showing a method of adjusting the resolution according to the third embodiment of the present invention.

第5B圖為根據本發明第四實施例之解析度的調整方法的流程圖。Fig. 5B is a flow chart showing a method of adjusting the resolution according to the fourth embodiment of the present invention.

第6A圖為根據本發明第五實施例之解析度的調整方法的流程圖。Fig. 6A is a flow chart showing a method of adjusting the resolution according to the fifth embodiment of the present invention.

第6B圖為根據本發明第六實施例之解析度的調整方法的流程圖。Fig. 6B is a flow chart showing a method of adjusting the resolution according to the sixth embodiment of the present invention.

Claims (12)

一種解析度的調整方法,應用於一影像擷取裝置,該影像擷取裝置包括一攝像模組與一儲存單元,該解析度的調整方法包括:利用該攝像模組擷取具有一第一解析度的一影像;分析擷取得之該影像中的物件量;比較該物件量與至少一門檻值;當該物件量小於該至少一門檻值中之至少一個時,相應小於的該至少一門檻值將該影像的解析度從該第一解析度調低為一第二解析度,並將具有該第二解析度的該影像儲存在該儲存單元中;以及當該物件量大於或等於所有該門檻值時,將具有該第一解析度的該影像儲存在該儲存單元中。A method for adjusting the resolution is applied to an image capturing device, the image capturing device includes a camera module and a storage unit, and the method for adjusting the resolution includes: using the camera module to capture a first resolution An image of the degree; analyzing the amount of the object in the image obtained by comparing the object; comparing the amount of the object with the at least one threshold; and when the amount of the object is less than at least one of the at least one threshold, the at least one threshold is correspondingly smaller And lowering the resolution of the image from the first resolution to a second resolution, and storing the image having the second resolution in the storage unit; and when the amount of the object is greater than or equal to all the thresholds In the case of the value, the image having the first resolution is stored in the storage unit. 如請求項1所述之解析度的調整方法,其中該分析擷取得之該影像中的物件量的步驟包括:執行一邊緣化程序,以將擷取得之該影像邊緣化;以及計算邊緣化後之該影像中圖塊的數量,藉以將計算得的該圖塊的該數量作為該物件量。The method for adjusting the resolution according to claim 1, wherein the step of analyzing the amount of the object in the image is: performing an edge program to marginalize the image obtained by the image; and calculating the edged image The number of tiles in the image, whereby the calculated number of tiles is used as the object amount. 如請求項1所述之解析度的調整方法,其中該分析擷取得之該影像中的物件量的步驟包括:執行一邊緣化程序,以將擷取得之該影像邊緣化;以及計算邊緣化後之該影像中邊緣成分的含量,藉以將計算得的該邊緣成分的該含量作為該物件量。The method for adjusting the resolution according to claim 1, wherein the step of analyzing the amount of the object in the image is: performing an edge program to marginalize the image obtained by the image; and calculating the edged image The content of the edge component in the image is used to calculate the content of the edge component as the amount of the object. 如請求項1所述之解析度的調整方法,其中該分析擷取得之該影像中的物件量的步驟包括:執行一辨識程序,以辨識且計算擷取得之該影像中的標的物的數量,藉以將計算得的該標的物的該數量作為該物件量。The method for adjusting the resolution according to claim 1, wherein the step of analyzing the amount of the object in the image comprises: performing an identification process to identify and calculate the number of objects in the image obtained by the image, The calculated amount of the subject matter is used as the amount of the object. 如請求項1所述之解析度的調整方法,其中該第一解析度與該第二解析度相差一特定倍率。The method for adjusting the resolution according to claim 1, wherein the first resolution is different from the second resolution by a specific magnification. 如請求項1所述之解析度的調整方法,其中該第一解析度與該第二解析度係為該影像擷取裝置的該解析度的設定選項中之二種解析度,且該第一解析度與該第二解析度相差一特定等級。The method for adjusting the resolution according to claim 1, wherein the first resolution and the second resolution are two resolutions of the resolution setting of the image capturing device, and the first The resolution differs from the second resolution by a specific level. 一種解析度的調整方法,應用於一影像擷取裝置,該影像擷取裝置包括一攝像模組與一儲存單元,該解析度的調整方法包括:利用該攝像模組擷取具有一第一解析度的一影像;分析擷取得之該影像中的物件量;比較該物件量與至少一門檻值;當該物件量小於該至少一門檻值中之至少一個時,相應小於的該至少一門檻值將該影像擷取裝置的解析度的設定從該第一解析度調低為一第二解析度;於該影像擷取裝置的解析度調整之後,利用該攝像模組再次擷取具有該第二解析度的一影像,並將具有該第二解析度的一該影像儲存在該儲存單元中;以及當該物件量大於或等於該至少一門檻值時,將具有該第一解析度的該影像儲存在該儲存單元中。A method for adjusting the resolution is applied to an image capturing device, the image capturing device includes a camera module and a storage unit, and the method for adjusting the resolution includes: using the camera module to capture a first resolution An image of the degree; analyzing the amount of the object in the image obtained by comparing the object; comparing the amount of the object with the at least one threshold; and when the amount of the object is less than at least one of the at least one threshold, the at least one threshold is correspondingly smaller And setting the resolution of the image capturing device from the first resolution to a second resolution; after adjusting the resolution of the image capturing device, capturing, by the camera module, the second An image of the resolution, and storing the image having the second resolution in the storage unit; and when the amount of the object is greater than or equal to the at least one threshold, the image having the first resolution Stored in the storage unit. 如請求項7所述之解析度的調整方法,其中該分析擷取得之該影像中的物件量的步驟包括:執行一邊緣化程序,以將擷取得之該影像邊緣化;以及計算邊緣化後之該影像中圖塊的數量,藉以將計算得的該圖塊的該數量作為該物件量。The method for adjusting the resolution according to claim 7, wherein the step of analyzing the amount of the object in the image comprises: performing an edge program to marginalize the image obtained by the image; and calculating the edged image The number of tiles in the image, whereby the calculated number of tiles is used as the object amount. 如請求項7所述之解析度的調整方法,其中該分析擷取得之該影像中的物件量的步驟包括:執行一邊緣化程序,以將擷取得之該影像邊緣化;以及計算邊緣化後之該影像中邊緣成分的含量,藉以將計算得的該邊緣成分的該含量作為該物件量。The method for adjusting the resolution according to claim 7, wherein the step of analyzing the amount of the object in the image comprises: performing an edge program to marginalize the image obtained by the image; and calculating the edged image The content of the edge component in the image is used to calculate the content of the edge component as the amount of the object. 如請求項7所述之解析度的調整方法,其中該分析擷取得之該影像中的物件量的步驟包括:執行一辨識程序,以辨識且計算擷取得之該影像中的標的物的數量,藉以將計算得的該標的物的該數量作為該物件量。The method for adjusting the resolution according to claim 7, wherein the step of analyzing the amount of the object in the image comprises: performing an identification process to identify and calculate the number of objects in the image obtained by the image, The calculated amount of the subject matter is used as the amount of the object. 如請求項7所述之解析度的調整方法,其中該第一解析度與該第二解析度相差一特定倍率。The method for adjusting the resolution according to claim 7, wherein the first resolution is different from the second resolution by a specific magnification. 如請求項7所述之解析度的調整方法,其中該第一解析度與該第二解析度係為該影像擷取裝置的該解析度的設定選項中之二種解析度,且該第一解析度與該第二解析度相差一特定等級。The method for adjusting the resolution according to claim 7, wherein the first resolution and the second resolution are two resolutions of the resolution setting of the image capturing device, and the first The resolution differs from the second resolution by a specific level.
TW99119980A 2010-06-18 2010-06-18 The method of adjusting the resolution TWI424738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99119980A TWI424738B (en) 2010-06-18 2010-06-18 The method of adjusting the resolution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99119980A TWI424738B (en) 2010-06-18 2010-06-18 The method of adjusting the resolution

Publications (2)

Publication Number Publication Date
TW201201571A TW201201571A (en) 2012-01-01
TWI424738B true TWI424738B (en) 2014-01-21

Family

ID=46755855

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99119980A TWI424738B (en) 2010-06-18 2010-06-18 The method of adjusting the resolution

Country Status (1)

Country Link
TW (1) TWI424738B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI496109B (en) * 2013-07-12 2015-08-11 Vivotek Inc Image processor and image merging method thereof
TWI690899B (en) * 2018-08-30 2020-04-11 圓展科技股份有限公司 Face detection system and face detection method
CN112040090A (en) * 2020-08-10 2020-12-04 浙江大华技术股份有限公司 Video stream processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050200727A1 (en) * 1997-04-30 2005-09-15 Shigeo Yoshida Portable electronic apparatus, image processing method, photographing apparatus, and computer readable recording medium
US20060088218A1 (en) * 2004-10-27 2006-04-27 Canon Kabushiki Kaisha Image processing method and image processing apparatus
US20080192129A1 (en) * 2003-12-24 2008-08-14 Walker Jay S Method and Apparatus for Automatically Capturing and Managing Images

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050200727A1 (en) * 1997-04-30 2005-09-15 Shigeo Yoshida Portable electronic apparatus, image processing method, photographing apparatus, and computer readable recording medium
US20080192129A1 (en) * 2003-12-24 2008-08-14 Walker Jay S Method and Apparatus for Automatically Capturing and Managing Images
US20060088218A1 (en) * 2004-10-27 2006-04-27 Canon Kabushiki Kaisha Image processing method and image processing apparatus

Also Published As

Publication number Publication date
TW201201571A (en) 2012-01-01

Similar Documents

Publication Publication Date Title
US8493464B2 (en) Resolution adjusting method
US20130141604A1 (en) Image capturing device and method for capturing details of entire shooting scene
CN101334578B (en) Image photographing apparatus, image photographing method, and computer program
US7868922B2 (en) Foreground/background segmentation in digital images
EP2768214A2 (en) Method of tracking object using camera and camera system for object tracking
JP5821457B2 (en) Image processing apparatus, image processing apparatus control method, and program for causing computer to execute the method
WO2017045558A1 (en) Depth-of-field adjustment method and apparatus, and terminal
CN101998048A (en) Digital image signal processing method, medium for recording the method, digital image signal pocessing apparatus
WO2017047012A1 (en) Imaging device and system including imaging device and server
CN101213828A (en) Method and apparatus for incorporating iris color in red-eye correction
JP2010252236A (en) Image capturing apparatus and data structure of image file
TWI543615B (en) Image processing method and electronic apparatus using the same
US20150116471A1 (en) Method, apparatus and storage medium for passerby detection
US9674496B2 (en) Method for selecting metering mode and image capturing device thereof
US8953067B2 (en) Method, device, and machine readable medium for image capture and selection
TWI424738B (en) The method of adjusting the resolution
WO2015196681A1 (en) Picture processing method and electronic device
JPWO2012093663A1 (en) Image processing apparatus, imaging apparatus, and image processing program
WO2017071560A1 (en) Picture processing method and device
US20110310263A1 (en) Image resolution adjusting method
US20160323490A1 (en) Extensible, automatically-selected computational photography scenarios
JP2006039254A (en) Camera
JP2009077175A (en) Electronic camera
TW201201143A (en) Image resolution adjustment method
WO2011024356A1 (en) Semiconductor integrated circuit and still image display method

Legal Events

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