TWI526070B - An aperture control system for an image pickup apparatus and a method thereof - Google Patents

An aperture control system for an image pickup apparatus and a method thereof Download PDF

Info

Publication number
TWI526070B
TWI526070B TW101127662A TW101127662A TWI526070B TW I526070 B TWI526070 B TW I526070B TW 101127662 A TW101127662 A TW 101127662A TW 101127662 A TW101127662 A TW 101127662A TW I526070 B TWI526070 B TW I526070B
Authority
TW
Taiwan
Prior art keywords
image
iris lens
value
block
isp
Prior art date
Application number
TW101127662A
Other languages
Chinese (zh)
Other versions
TW201406148A (en
Inventor
ya-hui Zhang
Guo-Wei Wu
Original Assignee
Everfocus Electronics 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 Everfocus Electronics Corp filed Critical Everfocus Electronics Corp
Priority to TW101127662A priority Critical patent/TWI526070B/en
Publication of TW201406148A publication Critical patent/TW201406148A/en
Application granted granted Critical
Publication of TWI526070B publication Critical patent/TWI526070B/en

Links

Landscapes

  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)

Description

攝像裝置之光圈控制系統及其方法 Optical aperture control system of camera device and method thereof

本發明係關於一種攝像裝置之光圈控制系統及其方法,尤指一種能有效率的進行影像分析,且能將過亮光源視為雜訊並將之濾除,使光圈鏡頭(Iris Lens)能停在光學特性較佳的位置,並具有強光、前光或背光等補償作用,而適用於相機、監視器、攝影機或類似之攝像裝置者。 The invention relates to an aperture control system and a method thereof for an image pickup device, in particular to an image analysis capable of performing efficiency, and can treat an over-bright light source as noise and filter it, so that the iris lens (Iris Lens) can be It is placed in a position with better optical characteristics and has compensating effects such as strong light, front light or backlight, and is suitable for cameras, monitors, cameras or the like.

近年來用於攝錄影像之光學鏡頭(Lens)的解析度越來越高,因此除了光學鏡頭(Lens)的高解析度外,其影像畫質也要求越來越高,尤其是不管是近拍或遠拍時都希望其影像都能看得清清楚楚的。 In recent years, the resolution of the optical lens (Lens) for recording images has become higher and higher, so in addition to the high resolution of the optical lens (Lens), the image quality is also required to be higher and higher, especially whether it is near When shooting or taking a long shot, you want your image to be clearly visible.

然而,目前常用的光學鏡頭(Lens)有固定式鏡頭(Fix Lens)、手動鏡頭(Manual Lens)或是自動鏡頭(Audio iris:DC irisor Video Iris)等,對於光圈的放大或縮小之控制有者不同的使用限制,因此無法精準地控制出良好的影像品質。 However, the currently used optical lens (Lens) has a fixed lens (Fix Lens), a manual lens (Manual Lens) or an automatic lens (Audio iris: DC irisor Video Iris), etc., for controlling the enlargement or reduction of the aperture. Different usage restrictions make it impossible to accurately control good image quality.

因此,本發明人有鑑於上述缺失,期能提出精準調整至最佳狀態來進行影像攝錄的攝像裝置之光圈控制系統及其方法,以降低硬體的負擔,讓攝像裝置運行更為流暢,乃潛心研思、設計組製,以提供消費大眾使用。 Therefore, in view of the above-mentioned deficiencies, the present inventors have been able to propose an aperture control system and method for an image pickup apparatus that accurately adjusts to an optimum state to perform image recording, thereby reducing the burden on the hardware and making the imaging apparatus run more smoothly. It is a research and design system to provide consumer use.

本發明之主要目的在提供一種攝像裝置之光圈控制系統及其方法,透過對該張靜態影像進行影像分析,先於影像中顯示其灰階值並切割成複數個子區塊,再將子區塊之灰階值分成複數個灰階區間,再統計子區塊內每個灰階區間之像素總數(N1),再根據上述之影像分析步驟來進行計算該子區塊之平均灰階值減去整體畫面平均灰階值,且將過亮光源視為雜訊並將之濾除,當判斷出明暗時,即透過控制邏輯程式進行影像處理器(ISP)之控制調整或馬達驅動電路之控制調整,讓光圈鏡頭(Iris Lens)能停在光學特性較佳的位置,同時也能用於低照度或是強光的環境,達到適當的補光效果,進而增加整體之實用性及優異性者。 The main object of the present invention is to provide an aperture control system for a camera device and a method thereof, by performing image analysis on the static image, displaying the grayscale value in the image and cutting into a plurality of sub-blocks, and then sub-blocking The grayscale value is divided into a plurality of grayscale intervals, and then the total number of pixels (N1) of each grayscale interval in the subblock is counted, and then the average grayscale value of the subblock is calculated according to the image analysis step described above. The average grayscale value of the overall picture, and the over-bright light source is regarded as noise and filtered. When the brightness is judged, the control of the image processor (ISP) or the control adjustment of the motor drive circuit is performed through the control logic program. The iris lens (Iris Lens) can be stopped at a position with better optical characteristics, and can also be used in a low illumination or strong light environment to achieve an appropriate light filling effect, thereby increasing the overall practicality and superiority.

本發明之次一目的係在提供一種攝像裝置之光圈控制系統及其方法,係包括有一光圈鏡頭(Iris Lens)、一馬達驅動電路、一影像感測器、一影像處理器(ISP)及一作動控制器之設計,讓作動控制器係與影像處理器(ISP)及馬達驅動電路連接,以能取得光圈鏡頭(Iris Lens)內之光學資訊及馬達所在位置,而該作動控制器內設有影像分析程式及控制邏輯程式,並透過控制邏輯程式來進行影像處理器(ISP)之控制調整及馬達驅動電路之控制調整,讓光圈鏡頭(Iris Lens)及影像處理器(ISP)能精準調整至最佳狀態來進行影像攝錄之效果,進而增加整體之操作性及穩定性者。 A second object of the present invention is to provide an aperture control system for a camera device and a method thereof, including an aperture lens (Iris Lens), a motor drive circuit, an image sensor, an image processor (ISP), and a The actuation controller is designed to connect the actuation controller to the image processor (ISP) and the motor drive circuit to obtain the optical information and the position of the motor in the iris lens (Iris Lens), and the actuation controller is provided The image analysis program and control logic program, through the control logic program for image processor (ISP) control adjustment and motor drive circuit control adjustment, the iris lens (Iris Lens) and image processor (ISP) can be precisely adjusted to The best condition for image recording, which increases overall operability and stability.

為達上述之目的,本發明攝像裝置之光圈控制系統及其方法其主要步驟係包括:影像攝錄:該光圈鏡頭(Iris Len s)係採用馬達驅動,而馬達係以馬達驅動電路進行驅動,且以光圈鏡頭(Iris Lens)攝錄影像並傳輸到影像感測器中;取得一張影像:該影像感測器係連接至影像處理器(ISP),而影像處理器(ISP)再與作動控制器連接,而該作動控制器內係設有影像分析程式及控制邏輯程式,且影像分析程式係從影像感測器中擷取出一張靜態影像;取得影像處理器(ISP)資訊:而作動控制器於影像處理器(ISP)中取得影像處理器(ISP)內之資訊;取得光圈鏡頭(Iris Lens)資訊及位置:而作動控制器於光圈鏡頭(Iris Lens)內取得光圈鏡頭(Iris Lens)之光學資訊及馬達所在位置;影像分析:當從影像感測器中擷取出一張靜態影像後即對該張靜態影像進行影像分析,先於影像中顯示其灰階值並切割成複數個子區塊,再將子區塊之灰階值分成複數個灰階區間,再統計子區塊內每個灰階區間之像素總數(N1);判斷影像亮度明暗:根據上述之影像分析步驟來進行計算該子區塊之平均灰階值減去整體畫面平均灰階值;以及光圈鏡頭(Iris Lens)作動:當經由上述判斷影像亮度明暗步驟判斷出明暗時,即透過控制邏輯程式進行影像處理器(ISP)之控制調整或馬達驅動電路之控制調整,讓光圈鏡頭(Iris Lens)及影像處理器(ISP)能進行影像攝錄者。 For the above purposes, the main steps of the aperture control system and method of the camera device of the present invention include: image recording: the aperture lens (Iris Len) s) is driven by a motor, and the motor is driven by a motor drive circuit, and the image is recorded by an iris lens (Iris Lens) and transmitted to the image sensor; an image is obtained: the image sensor is connected to An image processor (ISP), and an image processor (ISP) is connected to the actuation controller, and the actuation controller is provided with an image analysis program and a control logic program, and the image analysis program is from the image sensor. Take a static image; obtain image processor (ISP) information: and actuate the controller to obtain information in the image processor (ISP) in the image processor (ISP); obtain the information and position of the iris lens (Iris Lens): The actuating controller obtains the optical information of the iris lens (Iris Lens) and the position of the motor in the iris lens (Iris Lens); image analysis: when the static image is taken out from the image sensor, the static image is performed Image analysis, displaying the grayscale value before the image and cutting into a plurality of sub-blocks, then dividing the grayscale value of the sub-block into a plurality of gray-scale intervals, and then counting the total number of pixels of each gray-scale interval in the sub-block (N 1); determining the brightness of the image: according to the image analysis step described above, calculating the average gray level value of the sub-block minus the average gray level value of the overall picture; and the iris lens (Iris Lens) actuation: when determining the brightness of the image through the above When the light and dark steps determine the brightness and darkness, the image processor (ISP) control adjustment or the motor drive circuit control adjustment is performed through the control logic program, so that the iris lens (Iris Lens) and the image processor (ISP) can perform image capture. .

本發明之其他特點及具體實施例,可於以下列配合附圖之詳細說明中,進一步瞭解。 Other features and embodiments of the present invention will be further understood from the following detailed description taken in conjunction with the drawings.

10‧‧‧光圈鏡頭(Iris Lens) 10‧‧‧ aperture lens (Iris Lens)

20‧‧‧馬達驅動電路 20‧‧‧Motor drive circuit

30‧‧‧影像感測器(Image Sensor) 30‧‧‧Image Sensor (Image Sensor)

40‧‧‧影像處理器(ISP) 40‧‧‧Image Processor (ISP)

50‧‧‧作動控制器(controller) 50‧‧‧ actuation controller (controller)

51‧‧‧影像分析程式 51‧‧‧Image Analysis Program

52‧‧‧控制邏輯程式 52‧‧‧Control logic program

步驟S100‧‧‧影像攝錄 Step S100‧‧‧Video Recording

步驟S110‧‧‧取得一張影像 Step S110‧‧‧Get an image

步驟S120‧‧‧取得影像處理器(ISP)資訊 Step S120‧‧‧Get Image Processor (ISP) Information

步驟S130‧‧‧取得光圈鏡頭(Iris Lens)資訊及位置 Step S130‧‧‧Get the iris lens (Iris Lens) information and location

步驟S140‧‧‧影像分析 Step S140‧‧‧ Image Analysis

步驟S1411‧‧‧搜尋最亮點 Step S1411‧‧ Search for the brightest spot

步驟S1412‧‧‧進行臨界值之判斷 Step S1412‧‧‧ judgment of critical value

步驟S1421‧‧‧加總灰階值 Step S1421‧‧·Adding the grayscale value

步驟S1422‧‧‧取平均亮度 Step S1422‧‧‧ Take the average brightness

步驟S150‧‧‧判斷影像亮度明暗 Step S150‧‧‧Determination of image brightness

步驟S151‧‧‧比對是否大於臨界值 Step S151‧‧‧ Is the comparison greater than the critical value?

步驟S152‧‧‧進行統計 Step S152‧‧‧ Statistics

步驟S153‧‧‧判斷是否為過度曝光區塊 Step S153‧‧‧Determine whether it is an overexposed block

步驟S160‧‧‧光圈鏡頭(Iris Lens)作動 Step S160‧‧‧ aperture lens (Iris Lens) actuation

第1圖為本發明之主要步驟流程示意圖。 Figure 1 is a schematic flow chart of the main steps of the present invention.

第2圖為本發明之最亮點亮度步驟流程示意圖。 Figure 2 is a schematic flow chart of the brightness step of the brightest point of the present invention.

第3圖為本發明之平均亮度步驟流程示意圖。 Figure 3 is a flow chart showing the steps of the average brightness step of the present invention.

第4圖為本發明之判斷是否為過度曝光區塊步驟流程示意圖。 Figure 4 is a flow chart showing the steps of the present invention for determining whether it is an overexposed block.

第5圖為本發明之控制系統架構示意圖。 Figure 5 is a schematic diagram of the architecture of the control system of the present invention.

請參考第1~5圖所示,係為本發明攝像裝置之光圈控制系統及其方法之方法流程示意圖及架構示意圖。而本發明之控制方法主要步驟係包括:步驟S100影像攝錄:該光圈鏡頭(Iris Lens)10係採用馬達驅動,而馬達係以馬達驅動電路20進行驅動,且以光圈鏡頭(Iris Lens)10攝錄影像並傳輸到影像感測器30中;步驟S110取得一張影像:該影像感測器30係連接至影像處理器(ISP)40,而影像處理器(ISP)40再與作動控制器50連接,而該作動控制器50內係設有影像分析程式51及控制邏輯程式52,且影像分析程式51係從影像感測器30中擷取出一張靜態影像;步驟S120取得影像處理器(ISP)資訊:而作動控制器50於影像處理器(ISP)40中取得影像處理器(ISP)40內之資訊;步驟S130取得光圈鏡頭(Iris Lens)資訊及位置:而作動控制器50於光圈鏡頭(Iris Lens)10內取得光圈鏡頭(Iris Lens)10之光學資訊及馬達所在位置; 步驟S140影像分析:當從影像感測器30中擷取出一張靜態影像後即對該張靜態影像進行影像分析,先於影像中顯示其灰階值並切割成複數個子區塊,再將子區塊之灰階值分成複數個灰階區間,再統計子區塊內每個灰階區間之像素總數(N1);步驟S150判斷影像亮度明暗:根據上述之步驟S140影像分析步驟來進行計算該子區塊之平均灰階值減去整體畫面平均灰階值;以及步驟S160光圈鏡頭(Iris Lens)作動:當經由上述步驟S150判斷影像亮度明暗步驟判斷出明暗時,即透過控制邏輯程式52進行影像處理器(ISP)40之控制調整或馬達驅動電路20之控制調整,讓光圈鏡頭(Iris Lens)10及影像處理器(ISP)40能進行影像攝錄者。 Please refer to FIG. 1 to FIG. 5 , which are schematic diagrams and schematic diagrams of the method of the aperture control system and method of the camera device of the present invention. The main steps of the control method of the present invention include: step S100 video recording: the iris lens (Iris Lens) 10 is driven by a motor, and the motor is driven by the motor drive circuit 20, and the aperture lens (Iris Lens) 10 The image is recorded and transmitted to the image sensor 30; in step S110, an image is obtained: the image sensor 30 is connected to an image processor (ISP) 40, and the image processor (ISP) 40 is further coupled to the actuation controller. 50 is connected, and the motion controller 50 is provided with an image analysis program 51 and a control logic program 52, and the image analysis program 51 extracts a static image from the image sensor 30; and the image processor is obtained in step S120 ( ISP) information: the actuation controller 50 obtains information in the image processor (ISP) 40 in the image processor (ISP) 40; the step S130 acquires information and position of the aperture lens (Iris Lens): and the actuation controller 50 is in the aperture The optical information of the iris lens (Iris Lens) 10 and the position of the motor are obtained in the lens (Iris Lens) 10; Step S140 image analysis: after extracting a static image from the image sensor 30, the image is analyzed by the static image, and the grayscale value is displayed in the image and cut into a plurality of sub-blocks, and then the sub-block is The grayscale value of the block is divided into a plurality of grayscale intervals, and then the total number of pixels (N1) of each grayscale interval in the subblock is counted; in step S150, the brightness of the image is determined: according to the image analysis step of step S140 described above, the calculation is performed. The average grayscale value of the sub-block is subtracted from the average grayscale value of the overall picture; and the iris lens (Iris Lens) is activated in step S160: when it is determined through the above step S150 that the brightness of the image is determined to be bright or dark, that is, through the control logic program 52. The control adjustment of the image processor (ISP) 40 or the control adjustment of the motor drive circuit 20 allows the iris lens (Iris Lens) 10 and the image processor (ISP) 40 to perform image capture.

另本發明之該控制系統係包括:一光圈鏡頭(Iris Lens)10,該光圈鏡頭10係採用馬達驅動;一馬達驅動電路20,該馬達驅動電路20係與光圈鏡頭(Iris Lens)10連接以驅動馬達;一影像感測器30,該影像感測器30係與光圈鏡頭10連接,以能攝錄影像;一影像處理器(ISP)40,該影像處理器(ISP)40係與影像感測器30連接;以及一作動控制器50,該作動控制器50係與影像處理器(ISP)40及馬達驅動電路20連接,以能取得光圈鏡頭(Iris Lens)10內之光學資訊及馬達所在位置,而該作動控制器50內設有影像分析程式51及控制邏輯程式52,並透過控制邏輯程式52來進行影像處理器(ISP)40之控制調整及馬達驅動電路20之控制調整,讓光圈鏡頭(Iris Lens)10及影像處理器(ISP)40能進行影像攝錄者。 In addition, the control system of the present invention comprises: an aperture lens (Iris Lens) 10, which is driven by a motor; a motor drive circuit 20, which is connected to the aperture lens (Iris Lens) 10 a driving sensor; an image sensor 30 connected to the aperture lens 10 for recording images; an image processor (ISP) 40, the image processor (ISP) 40 and image sense The detector 30 is connected; and an actuation controller 50 is connected to the image processor (ISP) 40 and the motor drive circuit 20 to obtain the optical information and the motor in the aperture lens (Iris Lens) 10. Positioning, the actuation controller 50 is provided with an image analysis program 51 and a control logic program 52, and the control logic program 52 controls the adjustment of the image processor (ISP) 40 and the control of the motor drive circuit 20 to make the aperture Lens (Iris The Lens 10 and Image Processor (ISP) 40 can perform image capture.

其中該步驟S140影像分析中係進一步含有下列步驟:步驟S1411搜尋最亮點:向灰階值比較小之灰階區間搜尋最亮點;以及步驟S1412進行臨界值之判斷:進行判斷該灰階區間之像素總數(N1)是否大於臨界值(Th1),當像素總數(N1)大於臨界值(Th1)即為最亮點,若像素總數(N1)小於臨界值(Th1)則回到上一步驟搜尋最亮點進行重新搜尋;另該步驟S140影像分析中係進一步含有下列步驟:步驟S1421加總灰階值:加總影像中每個像素之灰階值令其為X;以及步驟S1422取平均亮度:將加總灰階值X除以影像中像素總數即取得平均亮度;另該步驟S150判斷影像亮度明暗中係進一步含有下列步驟:步驟S151比對是否大於臨界值:該子區塊之平均灰階值減去整體畫面平均灰階值來判斷是否大於臨界值(Th2),若大於臨界值(Th2)時即將該子區塊視為雜訊區塊不列入考慮;步驟S152進行統計:若比對小於臨界值(Th2),則統計該子區塊內其灰階值大於臨界值(Th3)之像素總數(N2);以及步驟S153判斷是否為過度曝光區塊:當像素總數(N2)大於臨界值(Th4)時該子區塊則為過度曝光區塊,而當像素總數(N2)小於臨界值(Th4)時該子區塊則為非過度曝光區塊;另該作動控制器50即進一步透過控制邏輯程式52來調整影像處理器(ISP)40的自動模式(AUTO Mode)的自動曝光(AE)及自動增益控制(AGC)極限值,並確認是否達到最小極限(MIN V alue)或最大極限(MAX Value)之狀態,當在極限值內時其自動模式(AUTO Mode)即保持光圈鏡頭(Iris Lens)10在預定位置上,而達到極限值且可以調整時即修正自動模式(AUTO Mode)的自動曝光(AE)及自動增益控制(AGC)使用範圍相關參數;另該自動模式(AUTO Mode)係進一步達到極限值且無法調整時,即將自動模式(AUTO Mode)切換成手動控制模式,以能改變光圈鏡頭(Iris Lens)10的開啟或關閉狀態,並手動控制快門時間(Shutter Time)及增益值(Gain Value)來決定馬達移動速度並防止光圈鏡頭(Iris Lens)10震盪者。 The image analysis in the step S140 further includes the following steps: searching for the brightest point in step S1411: searching for the brightest point in the grayscale interval where the grayscale value is relatively small; and determining the critical value in step S1412: determining the pixel of the grayscale interval Whether the total number (N1) is greater than the critical value (Th1), when the total number of pixels (N1) is greater than the critical value (Th1), it is the brightest point. If the total number of pixels (N1) is less than the critical value (Th1), return to the previous step to search for the brightest point. Performing a re-search; in another step S140, the image analysis further includes the following steps: Step S1421 adds the grayscale value: the grayscale value of each pixel in the total image is X; and the average luminance in step S1422: The total grayscale value X is divided by the total number of pixels in the image to obtain an average brightness; and the step S150 determines that the brightness of the image further includes the following steps: whether the comparison in step S151 is greater than a critical value: the average grayscale value of the sub-block is reduced Go to the average grayscale value of the overall picture to determine whether it is greater than the critical value (Th2). If it is greater than the critical value (Th2), the sub-block is regarded as a noise block and is not considered; step S152 is performed: For less than the critical value (Th2), the total number of pixels (N2) whose grayscale value is greater than the critical value (Th3) in the sub-block is counted; and step S153 determines whether it is an overexposed block: when the total number of pixels (N2) is greater than The sub-block is an overexposed block when the threshold value is (Th4), and the sub-block is a non-overexposure block when the total number of pixels (N2) is less than the threshold (Th4); the actuation controller 50 is Further, through the control logic program 52, the automatic exposure (AE) and automatic gain control (AGC) limits of the automatic mode (AUTO Mode) of the image processor (ISP) 40 are adjusted, and it is confirmed whether the minimum limit (MIN V is reached). The state of the alue) or the maximum value (MAX Value), when in the limit value, its automatic mode (AUTO Mode) keeps the iris lens (Iris Lens) 10 at a predetermined position, and when the limit value is reached and can be adjusted, the automatic correction is performed. Automatic exposure (AE) and automatic gain control (AGC) of the mode (AUTO Mode) use range-related parameters; when the automatic mode (AUTO Mode) further reaches the limit value and cannot be adjusted, the automatic mode (AUTO Mode) is switched to Manual control mode to change the opening or closing state of the iris lens (Iris Lens) 10, and manually control the shutter time (Shutter Time) and gain value (Gain Value) to determine the motor moving speed and prevent the iris lens (Iris Lens) 10 Concussion.

請參考第1~5圖所示,係為本發明攝像裝置之光圈控制系統及其方法之方法流程示意圖及架構示意圖。本發明最佳操作原理係為應用在使用馬達的光圈鏡頭(Iris Lens)10上,透過以程式之方式來準確地控制光圈大小,使能停在影像品質較佳之位置,且能依環境光源的變化適當地進行光圈鏡頭(Iris Lens)10的放大或縮小,且搭配影像資料之統計分析以優化光源補償機制;因此,本發明之光圈控制系統(如第5圖所示)係包括有一光圈鏡頭(Iris Lens)10、一馬達驅動電路20、一影像感測器30、及一影像處理器(ISP)40、一作動控制器50之設計,其中該光圈鏡頭(Iris Lens)10係採用馬達來驅動,而該馬達係採步進達、直流馬達或是其它能傳動之馬達者,且該光圈鏡頭(Iris Lens)10係連接馬達驅動電路20以能驅動馬達作動, 而馬達驅動電路20內設有控制IC以能精準地進行微調之作動,或是用其他方式的馬達驅動加上其它原件用來確認光圈位置,例如直流馬達加入光學尺或編碼器等,另該光圈鏡頭(Iris Lens)10亦連接影像感測器(Image Sensor)30(如CCDSensor或CMOS Sensor)以能攝錄影像,而該影像感測器(Image Sensor)30係根據光圈鏡頭(Iris Lens)10傳來的圖像亮度的強弱轉變為影像感測器(Image Sensor)30的數位電壓信號(即光信號轉為電信號),另該影像感測器與影像處理器(ISP)40連接,其中該影像處理器(ISP)40也能與影像感測器30設計在一起或是與作動控制器50設計在一起,以能將影像在不同的光學條件下還原出攝錄之現場細節,其中該影像處理器(ISP)40主要功能有自動白平衡(AWB)、自動曝光(AE)及自動聚焦(AF),藉以調整光圈鏡頭(Iris Lens)10之大小及改變入光量,且影像感測器30的快門時間(Shutter Time)及影像處理器(ISP)40及增益值(Gain Value)也能調整,再者,該影像處理器(ISP)40及馬達驅動電路20皆與一作動控制器(controller)50連接,以能取得光圈鏡頭(Iris Lens)10內之光學資訊及馬達所在位置,而該作動控制器50內設有影像分析程式51及控制邏輯程式52,使該影像分析程式51能將影像感測器(Image Sensor)30之影像進行影像分析,其中該影像分析係為取得最亮點亮度、平均亮度及亮度區塊分布之資訊,並根據上述之影像分析、取得影像處理器(ISP)40資訊和取得光 圈鏡頭(Iris Lens)10資訊及位置來綜合進行判斷影像亮度明暗,且將過亮光源視為雜訊以濾除,當經由上述判斷影像亮度明暗判斷出明暗時,即透過控制邏輯程式52來進行影像處理器(ISP)40之控制調整或馬達驅動電路20之控制調整,讓光圈鏡頭(Iris Lens)10及影像處理器(ISP)40能精準調整至最佳狀態來進行影像攝錄,其中該作動控制器50即進一步透過控制邏輯程式52來調整影像處理器(ISP)40的自動模式(AUTO Mode)的自動曝光(AE)及自動增益控制(AGC)極限值,並確認是否達到最小極限(MIN Value)或最大極限(MAX Value)之狀態,當在極限值內時其自動模式(AUTO Mode)即保持光圈鏡頭(Iris Lens)10在預定位置上,而達到極限值且可以調整時即修正自動模式(AUTO Mode)的自動曝光(AE)及自動增益控制(AGC)使用範圍相關參數,以使影像亮度能適當,另該自動模式(AUTO Mode)係進一步達到極限值且無法調整時,即將自動模式(AUTO Mode)切換成手動控制模式,以能改變光圈鏡頭(Iris Lens)10的開啟或關閉狀態,並手動控制快門時間(Shutter Time)及增益值(Gain Value)來決定馬達移動速度並防止光圈鏡頭(Iris Lens)10震盪者。 Please refer to FIG. 1 to FIG. 5 , which are schematic diagrams and schematic diagrams of the method of the aperture control system and method of the camera device of the present invention. The best operating principle of the present invention is applied to an iris lens (Iris Lens) 10 using a motor, which can accurately control the aperture size by means of a program, so as to be able to stop at a position where the image quality is better, and can be adapted to the ambient light source. The change is appropriately performed to enlarge or reduce the iris lens (Iris Lens) 10, and statistical analysis of the image data is used to optimize the light source compensation mechanism; therefore, the aperture control system of the present invention (as shown in FIG. 5) includes a diaphragm lens (Iris Lens) 10, a motor drive circuit 20, an image sensor 30, and an image processor (ISP) 40, an actuation controller 50, wherein the iris lens (Iris Lens) 10 is a motor Driving, and the motor is a stepper, DC motor or other power-driven motor, and the iris lens (Iris Lens) 10 is connected to the motor drive circuit 20 to drive the motor to operate, The motor drive circuit 20 is provided with a control IC for precise fine-tuning, or other motor drive plus other originals for confirming the aperture position, such as a DC motor added to an optical scale or an encoder, etc. The iris lens (Iris Lens) 10 is also connected to an Image Sensor 30 (such as a CCDSensor or CMOS Sensor) to record images, and the Image Sensor 30 is based on an aperture lens (Iris Lens). The brightness of the image transmitted from 10 is converted into a digital voltage signal of the image sensor 30 (ie, the optical signal is converted into an electrical signal), and the image sensor is connected to the image processor (ISP) 40. The image processor (ISP) 40 can also be designed with the image sensor 30 or with the actuation controller 50 to restore the image to the scene details under different optical conditions. The main functions of the image processor (ISP) 40 are automatic white balance (AWB), automatic exposure (AE) and auto focus (AF), in order to adjust the size of the iris lens (Iris Lens) 10 and change the amount of light incident, and image sensing Shutter Time and Shadow of the Device 30 The image processor (ISP) 40 and the gain value (Gain Value) can also be adjusted. Furthermore, the image processor (ISP) 40 and the motor drive circuit 20 are connected to an actuation controller 50 to obtain the aperture. The optical information and the position of the motor in the lens (Iris Lens) 10, and the image analysis program 51 and the control logic program 52 are provided in the actuation controller 50, so that the image analysis program 51 can display the image sensor (Image Sensor) The image of 30 is used for image analysis, wherein the image analysis is to obtain the information of the brightness, average brightness and brightness block distribution of the brightest point, and obtain image processor (ISP) 40 information and obtain light according to the above image analysis. Iris Lens 10 information and position to comprehensively determine the brightness of the image, and the over-bright light source as noise to filter out, when the brightness is judged by the above-mentioned judgment of the brightness of the image, that is, through the control logic program 52 Perform control adjustment of the image processor (ISP) 40 or control adjustment of the motor drive circuit 20, so that the iris lens (Iris Lens) 10 and the image processor (ISP) 40 can be accurately adjusted to the optimal state for image recording, wherein The actuation controller 50 further adjusts the automatic exposure (AE) and automatic gain control (AGC) limits of the automatic mode (AUTO Mode) of the image processor (ISP) 40 through the control logic program 52, and confirms whether the minimum limit is reached. (MIN Value) or the maximum value (MAX Value), when in the limit value, its automatic mode (AUTO Mode) keeps the iris lens (Iris Lens) 10 at a predetermined position, and when the limit value is reached and can be adjusted Correct the automatic exposure (AE) and automatic gain control (AGC) of the automatic mode to use the range-related parameters to make the image brightness appropriate, and the automatic mode (AUTO Mode) further reaches the limit and no When adjusting, the automatic mode (AUTO Mode) is switched to the manual control mode to change the opening or closing state of the iris lens (Iris Lens) 10, and manually control the shutter time (Shutter Time) and the gain value (Gain Value) to determine The motor moves at a speed and prevents the iris lens (Iris Lens) from oscillating.

另透過本發明攝像裝置之光圈控制方法(如第1圖所示)能有效率地進行影像分析,並同時做去雜訊等影像處理,以達到強光、前光、背光等補償作用,首先進行步驟S100影像攝錄: 該光圈鏡頭(Iris Lens)10係採用馬達驅動,而馬達係以馬達驅動電路進行驅動,且以光圈鏡頭(Iris Lens)10攝錄影像並傳輸到影像感測器中30;其中該影像感測器(Image Sensor)30能根據光圈鏡頭(Iris Lens)10傳來的圖像亮度的強弱轉變為影像感測器(Image Sensor)30的數位電壓信號(即光信號轉為電信號),而完成步驟S100影像攝錄後再進行下一步驟。 In addition, the aperture control method of the camera device of the present invention (as shown in FIG. 1) can perform image analysis efficiently, and simultaneously perform image processing such as noise removal to achieve compensation effects such as strong light, front light, and backlight. Perform step S100 video recording: The Iris Lens 10 series is driven by a motor, and the motor is driven by a motor drive circuit, and the image is recorded by an iris lens (Iris Lens) 10 and transmitted to the image sensor 30; wherein the image sensing The image sensor 30 can be converted into a digital voltage signal of the image sensor 30 (ie, the optical signal is converted into an electrical signal) according to the brightness of the image transmitted from the iris lens (Iris Lens) 10. Step S100: After the video recording, the next step is performed.

下一步驟為步驟S110取得一張影像:該影像感測器(Image Sensor)30係連接至影像處理器(ISP)40,而影像處理器(ISP)40再與作動控制器(controller)50連接,而該作動控制器(controller)50內係設有影像分析程式51及控制邏輯程式52,且影像分析程式51係從影像感測器30中擷取出一張靜態影像,藉此,讓影像分析程式51能開始進行後續分析流程,而完成步驟S110取得一張影像後再進入下一步驟中。 The next step is to obtain an image for step S110: the image sensor (Image Sensor) 30 is connected to the image processor (ISP) 40, and the image processor (ISP) 40 is connected to the controller 50. The image controller 51 and the control logic program 52 are provided in the controller 50, and the image analysis program 51 extracts a static image from the image sensor 30, thereby allowing image analysis. The program 51 can start the subsequent analysis process, and completes the step S110 to obtain an image and then proceeds to the next step.

下一步驟為該步驟S120取得影像處理器(ISP)資訊:而作動控制器50於影像處理器(ISP)40中取得影像處理器(ISP)40內之資訊;藉此,讓影像在不同的光學條件下還原出攝錄之現場細節,其中該影像處理器(ISP)40主要功能有自動白平衡(AWB)、自動曝光(AE)及自動聚焦(AF),藉以能進行光圈鏡頭(Iris Lens)10之快門時間(Shutter Time)的調整,另能在進行分析流程時,能提供該張靜態影像攝錄時的光圈鏡頭(Iris Lens)10之大小、影像感測器的快門時間(Shutter Time)及影像處理器(ISP)增益值(Gain Value)的數值供判斷使用,而完成步驟S120取得影像處理器(ISP)資訊後再進行下一步驟。 The next step is to obtain image processor (ISP) information for the step S120: the actuation controller 50 obtains information in the image processor (ISP) 40 in the image processor (ISP) 40; thereby, the images are made different. The optical details restore the scene details of the recording. The main functions of the image processor (ISP) 40 are automatic white balance (AWB), automatic exposure (AE) and auto focus (AF), which enables the aperture lens (Iris Lens). ) 10 Shutter Time adjustment, can also provide the aperture lens when the still image is recorded during the analysis process (Iris The size of the Lens) 10, the shutter time of the image sensor (Shutter Time), and the value of the image processor (ISP) gain value (Gain Value) are used for judging, and after completing the step S120 to obtain the image processor (ISP) information, Go to the next step.

下一步驟為該步驟S130取得光圈鏡頭(Iris Lens)資訊及位置:而作動控制器50於光圈鏡頭(Iris Lens)10內取得光圈鏡頭(Iris Lens)之光學資訊及馬達所在位置;藉此,能在進行分析流程時,能提供該張靜態影像攝錄時的光圈鏡頭(Iris Lens)10的調制轉換函數(MTF)及景深(DOF)等光學資訊與現在馬達所在位置的相對關係,還有使用者預期的光圈目標位置及使用者預期達到的亮度值來提供判斷使用,而完成步驟S130取得光圈鏡頭(Iris Lens)資訊及位置後再進行下一步驟。 The next step is to obtain the iris lens (Iris Lens) information and position in the step S130: the actuation controller 50 obtains the optical information of the iris lens (Iris Lens) and the position of the motor in the iris lens (Iris Lens) 10; It can provide the relative relationship between the optical information such as the modulation conversion function (MTF) and depth of field (DOF) of the iris lens (Iris Lens) 10 and the position of the current motor when the still image is recorded during the analysis process. The position of the aperture target expected by the user and the brightness value expected by the user are used to provide the judgment, and the step S130 is performed to obtain the information and position of the iris lens (Iris Lens) and then proceed to the next step.

下一步驟為該步驟S140影像分析:當從影像感測器30中擷取出一張靜態影像後即對該張靜態影像進行影像分析,先於影像中顯示其灰階值並切割成複數個子區塊,再將子區塊之灰階值分成複數個灰階區間,再統計子區塊內每個灰階區間之像素總數(N1);藉此,本步驟S140影像分析主要是利用變異數之觀念,也就是團體中資料分散情形為統計數,亦即用來表示個別差異大小的指標,簡而言之,若單體之值與整體平均值差異愈大,則為雜訊之機率愈高,因此,本步驟S140影像分析乃是利用一種可以將過亮光源視為雜訊並將之濾處的演算法,先於影像中進行擷取Y值來顯示其灰階值,並切割成複數個子區塊,再將子區塊之灰階值分成複數個灰階區間,再統計子區塊內每個灰階 區間之像素總數(N1),其中該步驟S140影像分析中(如第2圖所示)含有下列步驟以能取得最亮點亮度資訊,首先進行步驟S1411搜尋最亮點:向灰階值比較小之灰階區間搜尋最亮點;以及步驟S1412進行臨界值之判斷:進行判斷該灰階區間之像素總數(N1)是否大於臨界值(Th1),當像素總數(N1)大於臨界值(Th1)即為最亮點,若像素總數(N1)小於臨界值(Th1)則回到上一步驟S1411搜尋最亮點進行重新搜尋;另該步驟S140影像分析中含有下列步驟(如第3圖所示),首先進行步驟S1421加總灰階值:加總影像中每個像素之灰階值令其為X;以及步驟S1422取平均亮度:將加總灰階值X除以影像中像素總數即取得平均亮度;藉此,完成步驟S140影像分析結果後再進行下一步驟。 The next step is the image analysis in step S140: after extracting a still image from the image sensor 30, the image is analyzed for the still image, and the grayscale value is displayed in the image and cut into a plurality of sub-regions. Block, then divide the gray scale value of the sub-block into a plurality of gray-scale intervals, and then count the total number of pixels (N1) of each gray-scale interval in the sub-block; thereby, the image analysis in this step S140 mainly uses the variance number The concept, that is, the dispersal of information in a group is a statistic, that is, an indicator used to indicate the size of an individual difference. In short, if the value of a single element differs from the overall average, the probability of being a noise is higher. Therefore, in step S140, the image analysis uses an algorithm that can treat the over-bright light source as noise and filter it, and captures the Y value before the image to display the gray-scale value, and cuts into a complex number. Sub-block, then divide the gray-scale value of the sub-block into a plurality of gray-scale intervals, and then count each gray-scale in the sub-block The total number of pixels in the interval (N1), wherein the image analysis in step S140 (as shown in FIG. 2) includes the following steps to obtain the brightness information of the brightest point, first performing step S1411 to search for the brightest point: comparing the gray level to the gray level Searching for the brightest point in the interval; and determining the threshold value in step S1412: determining whether the total number of pixels (N1) of the gray interval is greater than a threshold (Th1), and when the total number of pixels (N1) is greater than a threshold (Th1) If the total number of pixels (N1) is less than the threshold (Th1), return to the previous step S1411 to search for the brightest point for re-search; in addition, the step S140 includes the following steps in the image analysis (as shown in FIG. 3), and the first step is performed. S1421 adds the grayscale value: the grayscale value of each pixel in the total image is X; and the average luminance in step S1422: dividing the total grayscale value X by the total number of pixels in the image to obtain an average brightness; After the image analysis result of step S140 is completed, the next step is performed.

下一步驟為該步驟S150判斷影像亮度明暗:根據上述之步驟S140影像分析步驟來進行計算該子區塊之平均灰階值減去整體畫面平均灰階值;藉此,於影像中進行擷取Y值來顯示其灰階值,並切割成複數個子區塊,且進行計算該子區塊之平均灰階值減去整體畫面平均灰階值,其中該步驟S150判斷亮度明暗中係進一步含有下列步驟(如第4圖所示),步驟S151比對是否大於臨界值:該子區塊之平均灰階值減去整體畫面平均灰階值來判斷是否大於臨界值(Th2),若大於臨界值(Th2)時即將該子區塊視為雜訊區塊不列入考慮;再進行步驟S152進行統計:若比對小於臨界值(Th2),則統計該子區塊內其灰階值大於臨界值(Th3)之像素總數(N2);以及步驟S153判斷是否為過度曝光區塊:當像素總數(N2)大於臨 界值(Th4)時該子區塊則為過度曝光區塊,而當像素總數(N2)小於臨界值(Th4)時該子區塊則為非過度曝光區塊;以能將大於臨界值的子區塊視為雜訊區塊不列考慮,其餘再進行該子區塊判斷為過度曝光區塊或非過度曝光區塊,以能進行後續之調整作動。 The next step is to determine the brightness of the image in the step S150: calculating the average gray level value of the sub-block minus the average gray level value of the overall picture according to the image analyzing step of step S140 described above; thereby capturing in the image The Y value is used to display the gray scale value, and is cut into a plurality of sub-blocks, and the average gray scale value of the sub-block is calculated by subtracting the overall picture average gray-scale value, wherein the step S150 determines that the brightness and the brightness further contain the following Step (as shown in FIG. 4), whether the comparison in step S151 is greater than a critical value: the average grayscale value of the sub-block minus the overall grayscale value of the overall image to determine whether it is greater than a critical value (Th2), if greater than a critical value (Th2), the sub-block is regarded as a noise block and is not considered; and then step S152 is performed for statistics: if the comparison is smaller than the threshold (Th2), the gray-scale value in the sub-block is statistically greater than the critical value. The total number of pixels of the value (Th3) (N2); and the step S153 determine whether it is an overexposed block: when the total number of pixels (N2) is greater than When the threshold value (Th4) is used, the sub-block is an over-exposed block, and when the total number of pixels (N2) is less than the critical value (Th4), the sub-block is a non-overexposed block; The sub-block is considered as a noise block, and the remaining sub-blocks are judged to be over-exposed blocks or non-overexposed blocks to enable subsequent adjustment operations.

當判斷影像亮度不適當時,即透過作動控制器50之控制邏輯程式51來調整影像處理器(ISP)40的自動模式(AUTO Mode)的自動曝光(AE)及自動增益控制(AGC)極限值,並確認是否達到最小極限(MIN Value)或最大極限(MAX Value)之狀態,當在極限值內時其自動模式(AUTO Mode)即保持光圈鏡頭(Iris Lens)10在預定位置上,而達到極限值且可以調整時即修正自動模式(AUTO Mode)的自動曝光(AE)及自動增益控制(AGC)使用範圍相關參數,以使影像亮度能適當;另該自動模式(AUTO Mode)係進一步達到極限值且無法調整時,即將自動模式(AUTO Mode)切換成手動控制模式,以能改變光圈鏡頭(Iris Lens)10的開啟或關閉狀態,並手動控制快門時間(Shutter Time)及增益值(Gain Value)來決定馬達移動速度並防止光圈鏡頭(Iris Lens)10震盪者,因此,不管影像亮度是過度曝光、過亮或過暗,皆能透過作動控制器(controller)50來啟動對影像處理器(ISP)40進行快門時間(Shutter Time)及增益值(Gain Value)調整,或啟動馬達驅動電路20對馬達進行速度快慢 之調整,讓光圈鏡頭(Iris Lens)10能精準調整至最佳狀態來進行影像攝錄。 When it is determined that the brightness of the image is not appropriate, the automatic exposure (AE) and automatic gain control (AGC) limits of the automatic mode (AUTO Mode) of the image processor (ISP) 40 are adjusted by the control logic program 51 of the actuation controller 50. And confirm whether the state of the minimum limit (MIN Value) or the maximum limit (MAX Value) is reached, and when it is within the limit value, its automatic mode (AUTO Mode) keeps the iris lens (Iris Lens) 10 at a predetermined position and reaches the limit. The value can be adjusted to correct the automatic exposure (AE) and automatic gain control (AGC) range parameters of the automatic mode (AUC mode) to make the image brightness appropriate; and the automatic mode (AUTO Mode) further reaches the limit. When the value cannot be adjusted, the AUTO mode is switched to the manual control mode to change the opening or closing state of the iris lens (Iris Lens) 10, and manually control the shutter time (Shutter Time) and the gain value (Gain Value). ) to determine the motor movement speed and prevent the iris lens (Iris Lens) 10 oscillator, therefore, regardless of the image brightness is over-exposed, too bright or too dark, can be through the controller 50 Moving the video processor (ISP) 40 for a shutter time (Shutter Time) and the gain (Gain Value) adjustment, or the motor driving circuit 20 to start the motor speed of the speed The adjustment allows the iris lens (Iris Lens) 10 to be accurately adjusted to the best condition for video recording.

由以上可知,本發明之攝像裝置之光圈控制系統及其方法,具有如下之優點: As apparent from the above, the aperture control system and method of the image pickup apparatus of the present invention have the following advantages:

1、能準確地操控光圈鏡頭(Iris Lens)放大或縮小,來停在影像品質較佳位置者。 1. It can accurately control the iris lens (Iris Lens) to zoom in or out to stop at the better image quality.

2、配合環境光源的變化,能適時地調整光圈鏡頭(Iris Lens)放大或縮小者。 2. With the change of the ambient light source, the iris lens (Iris Lens) can be adjusted to zoom in or out at the right time.

3、透過影像資料統計分析,使能優化光源補償機制者。 3. Through the statistical analysis of image data, enable the optimization of the light source compensation mechanism.

藉由以上詳細說明,可使熟知本項技藝者明瞭本發明的確可達成前述目的,已符合專利法之規定,爰提出專利申請。 From the above detailed description, those skilled in the art can understand that the present invention can achieve the foregoing objects, and has met the requirements of the patent law and filed a patent application.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍;故,凡依本發明申請專利範圍及說明書內容所作之簡單的等效變化與修飾,皆應仍屬本發明專利涵蓋之範圍內。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto; therefore, the simple equivalent changes and modifications made by the scope of the present invention and the contents of the specification, All should remain within the scope of the invention patent.

步驟S100‧‧‧影像攝錄 Step S100‧‧‧Video Recording

步驟S110‧‧‧取得一張影像 Step S110‧‧‧Get an image

步驟S120‧‧‧取得影像處理器(ISP)資訊 Step S120‧‧‧Get Image Processor (ISP) Information

步驟S130‧‧‧取得光圈鏡頭(Iris Lens)資訊及位置 Step S130‧‧‧Get the iris lens (Iris Lens) information and location

步驟S140‧‧‧影像分析 Step S140‧‧‧ Image Analysis

步驟S150‧‧‧判斷影像亮度明暗 Step S150‧‧‧Determination of image brightness

步驟S160‧‧‧光圈鏡頭(Iris Lens)作動 Step S160‧‧‧ aperture lens (Iris Lens) actuation

Claims (6)

一種攝像裝置之光圈控制方法,該控制方法主要步驟係包括:影像攝錄:該光圈鏡頭(Iris Lens)係採用馬達驅動,而馬達係以馬達驅動電路進行驅動,且以光圈鏡頭(Iris Lens)攝錄影像並傳輸到影像感測器中;取得一張影像:該影像感測器係連接至影像處理器(ISP),而影像處理器(ISP)再與作動控制器連接,而該作動控制器內係設有影像分析程式及控制邏輯程式,且影像分析程式係從影像感測器中擷取出一張靜態影像;取得影像處理器(ISP)資訊:而作動控制器於影像處理器(ISP)中取得影像處理器(ISP)內之資訊;取得光圈鏡頭(Iris Lens)資訊及位置:而作動控制器於光圈鏡頭(Iris Lens)內取得光圈鏡頭(Iris Lens)之光學資訊及馬達所在位置,影像分析:當從影像感測器中擷取出一張靜態影像後即對該張靜態影像進行影像分析,先於影像中顯示其灰階值並切割成複數個子區塊,再將子區塊之灰階值分成複數個灰階區間,再統計子區塊內每個灰階區間之像素總數(N1);判斷影像亮度明暗:根據上述之影像分析步驟來進行計算該子區塊之平均灰階值減去整體畫面平均灰階值;以及光圈鏡頭(Iris Lens)作動:當經由上述判斷影像亮度明暗步驟判斷出明暗時,即透過控制邏輯程式進行影像處 理器(ISP)之控制調整或馬達驅動電路之控制調整,讓光圈鏡頭(Iris Lens)及影像處理器(ISP)能進行影像攝錄者。 The aperture control method of the camera device, the main steps of the control method include: image recording: the iris lens (Iris Lens) is driven by a motor, and the motor is driven by a motor drive circuit, and the aperture lens (Iris Lens) Recording images and transmitting them to the image sensor; obtaining an image: the image sensor is connected to an image processor (ISP), and the image processor (ISP) is connected to the actuation controller, and the actuation control The image analysis program and the control logic program are provided in the device, and the image analysis program extracts a static image from the image sensor; obtains image processor (ISP) information: and acts on the image processor (ISP) Get the information in the image processor (ISP); get the information and position of the iris lens (Iris Lens): and actuate the controller to obtain the optical information of the iris lens (Iris Lens) and the position of the motor in the iris lens (Iris Lens) Image analysis: When a static image is taken out from the image sensor, the image is analyzed for the still image, and the grayscale value is displayed before the image and cut into a plurality of images. Block, then divide the grayscale value of the sub-block into a plurality of gray-scale intervals, and then count the total number of pixels (N1) of each gray-scale interval in the sub-block; determine the brightness of the image: according to the image analysis step described above The average grayscale value of the sub-block is subtracted from the average grayscale value of the overall picture; and the iris lens (Iris Lens) is activated: when the brightness is determined through the above-mentioned determination of the brightness of the image brightness, the image is transmitted through the control logic program. Control adjustment of the ISP (ISP) or control adjustment of the motor drive circuit allows the iris lens (Iris Lens) and image processor (ISP) to perform image capture. 如申請專利範圍第1項所述之攝像裝置之光圈控制方法,其中該影像分析步驟中係進一步含有下列步驟:搜尋最亮點:向灰階值比較小之灰階區間搜尋最亮點;以及進行臨界值之判斷:進行判斷該灰階區間之像素總數(N1)是否大於臨界值(Th1),當像素總數(N1)大於臨界值(Th1)即為最亮點,若像素總數(N1)小於臨界值(Th1)則回到上一步驟搜尋最亮點進行重新搜尋者。 The aperture control method of the camera device according to claim 1, wherein the image analysis step further comprises the steps of: searching for the brightest point: searching for the brightest point in the grayscale interval with a smaller grayscale value; and performing the criticality Judging the value: determining whether the total number of pixels (N1) of the gray-scale interval is greater than a critical value (Th1), and the brightest point when the total number of pixels (N1) is greater than a critical value (Th1), if the total number of pixels (N1) is less than a critical value (Th1) Go back to the previous step and search for the brightest spot to re-search. 申請專利範圍第1項所述之攝像裝置之光圈控制方法,其中該影像分析步驟中係進一步含有下列步驟:加總灰階值:加總影像中每個像素之灰階值令其為X;以及取平均亮度:將加總灰階值X除以影像中像素總數即取得平均亮度者。 The aperture control method of the camera device according to the first aspect of the invention, wherein the image analysis step further comprises the following steps: adding a grayscale value: adding a grayscale value of each pixel in the image to X; And the average brightness is obtained by dividing the total grayscale value X by the total number of pixels in the image to obtain the average brightness. 如申請專利範圍第1項所述之攝像裝置之光圈控制方法,其中該判斷影像亮度明暗步驟中係進一步含有下列步驟:比對是否大於臨界值:該子區塊之平均灰階值減去整體畫面平均灰階值來判斷是否大於臨界值(Th2),若大於臨界值(Th2)時即將該子區塊視為雜訊區塊不列入考慮;進行統計:若比對小於臨界值(Th2),則統計該子區塊內其灰階值大於臨界值(Th3)之像素總數(N2);以及判斷是否為過度曝光區塊:當像素總數(N2)大於臨界值(Th4)時該子區塊則為過度曝光區塊,而當像素總數(N2)小於臨界值(Th4)時該子區塊則為非過度曝光區塊者。 The aperture control method of the camera device according to claim 1, wherein the step of determining the brightness of the image further comprises the step of: comparing whether the comparison is greater than a critical value: an average grayscale value of the sub-block minus the whole The average grayscale value of the picture is used to determine whether it is greater than the critical value (Th2). If it is greater than the critical value (Th2), the sub-block is regarded as a noise block and is not considered; statistics are performed: if the comparison is smaller than the critical value (Th2) And counting the total number of pixels (N2) whose grayscale value is greater than the critical value (Th3) in the sub-block; and determining whether it is an overexposed block: when the total number of pixels (N2) is greater than a critical value (Th4) The block is an overexposed block, and when the total number of pixels (N2) is less than the threshold (Th4), the sub-block is a non-overexposed block. 如申請專利範圍第1項所述之攝像裝置之光圈控制方法,其中該作動控制器即進一步透過控制邏輯程式來調整影像處理器(ISP)的自動模式(AUTO Mode)的自動曝光(AE)及自動增益控制(AGC)極限值,並確認是否達到最小極限(MIN Value)或最大極限(MAX Value)之狀態,當在極限值內時其自動模式(AUTO Mode)即保持光圈鏡頭(Iris Lens)在預定位置上,而達到極限值且可以調整時即修正自動模式(AUTO Mode)的自動曝光(AE)及自動增益控制(AGC)使用範圍相關參數者。 The aperture control method of the camera device according to the first aspect of the invention, wherein the actuation controller further adjusts an automatic exposure (AE) of an automatic mode (AUTO Mode) of an image processor (ISP) through a control logic program. The automatic gain control (AGC) limit value and confirm whether the state of the minimum limit (MIN Value) or the maximum limit (MAX Value) is reached. When it is within the limit value, its automatic mode (AUTO Mode) holds the iris lens (Iris Lens). In the predetermined position, when the limit value is reached and the adjustment can be made, the automatic exposure (AE) and automatic gain control (AGC) use range related parameters of the automatic mode (AUTO Mode) are corrected. 如申請專利範圍第5項所述之攝像裝置之光圈控制方法,其中該自動模式(AUTO Mode)係進一步達到極限值且無法調整時,即將自動模式(AUTO Mode)切換成手動控制模式,以能改變光圈鏡頭(Iris Lens)的開啟或關閉狀態,並手動控制快門時間(Shutter Time)及增益值(Gain Value)來決定馬達移動速度並防止光圈鏡頭(Iris Lens)震盪者。 The aperture control method of the camera device according to claim 5, wherein the automatic mode (AUTO Mode) further reaches the limit value and cannot be adjusted, that is, the automatic mode (AUTO Mode) is switched to the manual control mode to enable Change the opening or closing state of the iris lens (Iris Lens) and manually control the Shutter Time and Gain Value to determine the motor movement speed and prevent the iris lens (Iris Lens) from oscillating.
TW101127662A 2012-07-31 2012-07-31 An aperture control system for an image pickup apparatus and a method thereof TWI526070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101127662A TWI526070B (en) 2012-07-31 2012-07-31 An aperture control system for an image pickup apparatus and a method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101127662A TWI526070B (en) 2012-07-31 2012-07-31 An aperture control system for an image pickup apparatus and a method thereof

Publications (2)

Publication Number Publication Date
TW201406148A TW201406148A (en) 2014-02-01
TWI526070B true TWI526070B (en) 2016-03-11

Family

ID=50550199

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101127662A TWI526070B (en) 2012-07-31 2012-07-31 An aperture control system for an image pickup apparatus and a method thereof

Country Status (1)

Country Link
TW (1) TWI526070B (en)

Also Published As

Publication number Publication date
TW201406148A (en) 2014-02-01

Similar Documents

Publication Publication Date Title
US8937677B2 (en) Digital photographing apparatus, method of controlling the same, and computer-readable medium
US8390736B2 (en) Shooting parameter adjustment method for face detection and image capturing device for face detection
US8106965B2 (en) Image capturing device which corrects a target luminance, based on which an exposure condition is determined
KR101625893B1 (en) Image pickup apparatus that periodically changes exposure condition, a method of controlling image pickup apparatus, and storage medium
CN104754240B (en) Cmos image sensor automatic explosion method and device
CN108616689B (en) Portrait-based high dynamic range image acquisition method, device and equipment
US9961269B2 (en) Imaging device, imaging device body, and lens barrel that can prevent an image diaphragm value from frequently changing
JP4600684B2 (en) Imaging apparatus and imaging method
JP2009177472A (en) Image processing method, image processor and imaging device
US10122934B2 (en) Imaging apparatus having an apodization filter and capable of selecting first and second program diagrams
CN108337449A (en) High-dynamic-range image acquisition method, device based on dual camera and equipment
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
US8223258B2 (en) Backlight photographing method
US9071766B2 (en) Image capturing apparatus and control method thereof
JP5759190B2 (en) Imaging apparatus and control method thereof
KR20150078275A (en) Digital Photographing Apparatus And Method For Capturing a Moving Subject
JP2011119944A (en) Imaging apparatus and method of controlling the same
JP2014179920A (en) Imaging apparatus, control method thereof, program, and storage medium
CN108551555B (en) Automatic exposure method of industrial camera using CMOS detector
CN103581564B (en) The aperture control system of camera head and method thereof
TWI526070B (en) An aperture control system for an image pickup apparatus and a method thereof
JP5621335B2 (en) Image processing apparatus, image processing method, and image pickup apparatus
KR20130011201A (en) Apparatus and method for adjusting auto focus in image taking device
JP2008271227A (en) Image sensing device
JP4789776B2 (en) Imaging apparatus and imaging method

Legal Events

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