TWI342710B - System and method for automatically focusing for camera - Google Patents

System and method for automatically focusing for camera Download PDF

Info

Publication number
TWI342710B
TWI342710B TW96135523A TW96135523A TWI342710B TW I342710 B TWI342710 B TW I342710B TW 96135523 A TW96135523 A TW 96135523A TW 96135523 A TW96135523 A TW 96135523A TW I342710 B TWI342710 B TW I342710B
Authority
TW
Taiwan
Prior art keywords
picture
rectangular frame
coordinates
focus
face
Prior art date
Application number
TW96135523A
Other languages
Chinese (zh)
Other versions
TW200915851A (en
Inventor
Chao Lien Tsai
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW96135523A priority Critical patent/TWI342710B/en
Publication of TW200915851A publication Critical patent/TW200915851A/en
Application granted granted Critical
Publication of TWI342710B publication Critical patent/TWI342710B/en

Links

Landscapes

  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Description

1342710 九、發明說明: 【發明所屬之技術領域】 本發明涉及一種相機自動對焦系統及方法。 【先前技術】 在拍攝照片時,人物通常是畫面的主體,因此所有的 對焦、測光都應該基於人物臉部進行。對於普通相機,這 需要曝光鎖定的焦點鎖定操作,普通用戶不太容易掌握。 目前市場上,人臉對焦技術已非常普及,這一技術能夠讓 相機自動識別畫面中是否有人的臉部,並自動將人臉作為 拍攝的主體。相機在對焦和曝光控制方面都將針對人臉的 狀況來調整。這樣,拍攝者就可以專注於構圖和拍攝時機 的把握,不會再被煩瑣的操作分散精力。 但是,當開啟連續對焦功能拍攝在移動中的人的照片 時,人的位置不停改變,則需要隨時改變對焦範圍,這時 對焦馬達不能判斷人的移動方向執跡,需要不斷前後掃描 對焦和改變對焦範圍,直到掃描到人臉,浪費很多時間, 不能及時並且清晰地捕捉移動中的人的暫態清晰照片。 【發明内容】 鑒於以上内容,有必要提供一種相機自動對焦系統及 方法,利用人臉相對於整個晝面的大小變化和位置判斷連 續對焦的方向和軌跡,來減少對焦的時間。 一種相機自動對焦系統,用於拍攝移動的人體照片時 進行自動對焦,該系統包括自動連續對焦程式及運行該自 動連續對焦程式的數位信號處理系統,該數位信號處理系 13427101342710 IX. Description of the Invention: [Technical Field of the Invention] The present invention relates to a camera autofocus system and method. [Prior Art] When taking a picture, the person is usually the subject of the picture, so all focus and metering should be based on the face of the person. For a normal camera, this requires an exposure-locked focus lock operation that is not easily grasped by the average user. Face-focusing technology is now very popular on the market. This technology allows the camera to automatically recognize the face of someone in the picture and automatically use the face as the subject of the shot. The camera will adjust for focus and exposure control for the condition of the face. In this way, the photographer can focus on the composition and timing of the shooting, and will not be distracted by the cumbersome operation. However, when the continuous focus function is turned on to take a picture of a person moving, the position of the person keeps changing, the focus range needs to be changed at any time. At this time, the focus motor cannot judge the direction of movement of the person, and it is necessary to continuously scan the focus and change. The focus range is not wasted until the face is scanned, and it is not possible to capture the transient clear photos of the moving person in time and clearly. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a camera autofocus system and method for reducing the focus time by using the size and position of a face relative to the entire face to determine the direction and trajectory of continuous focus. A camera autofocus system for autofocusing when photographing a moving human body, the system comprising an automatic continuous focus program and a digital signal processing system running the automatic continuous focus program, the digital signal processing system 1342710

統存儲有第一晝面和第二晝面, 被拍攝者移動時連續抓去的兩張 旦面和第二晝面分別用矩形框框住人臉,該自動連續對焦 程式包括:偵測模組,用於偵測人臉在第一畫面中的相^ 位置’取該晝面中的矩形框的—條對角線,得到該對角綠The first and second sides of the system are stored, and the two faces and the second side that are continuously captured by the photographer are respectively framed by a rectangular frame, and the automatic continuous focus program includes: a detection module. For detecting the position of the face in the first picture, 'take the diagonal of the rectangle in the face, and get the diagonal green

晝面和第二當而合另,丨用拓极柄/士,ηΛν _ . 五a,— ^對角綠,得到該對角線的 兩個頂點的錢;料計算漁,用於根制述第二畫面 中的對角線兩個頂點的座標,計算該矩形框的面積s2;判 斷模組’用於判斷第二畫面中的矩形框的面積52是否大於 第-畫面中的矩形框的面積S1 ;及對焦模組,用於當幻大 於si時,控制相機朝著近攝方向對焦掃描;當§2小於Μ 時,控制相機朝著無限遠處對焦掃描。 # —種相機自動對焦方法,用於拍攝移財的人體昭片昼 和 和 和 和 和 和 和 和 和 和 和 和 和 和 和 和 Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ Λ The coordinates of the two vertices of the diagonal line in the second picture are calculated, and the area s2 of the rectangular frame is calculated; the determining module 'is used to determine whether the area 52 of the rectangular frame in the second picture is larger than the rectangular frame in the first picture Area S1; and focus module, used to control the camera to focus scan in the close-up direction when the illusion is greater than si; control the camera to focus on the infinity scan when § 2 is less than Μ. #—A kind of camera autofocus method, used to shoot the human body

時進行自動對焦,該方法包括如下步驟:偵測人臉在第一 畫面中的相對位置,取該畫面中的矩形框的一條對角線, 得到該對角線的兩個頂點的座標;根據所述第-畫面中對 角線的兩個頂點的座標計算第一畫面中矩形框的面積 1,谓測人臉在第二畫面中的相對位置,取該畫面中矩形 王的條對角線,得到該對角線的兩個頂點的座標;根據 所述第一畫面中的對角線兩個頂點的座標計算該矩形拒的 1342710 晝面中的矩形框的面積S1 ;若52大於S1,則判斷被拍攝者 朝著近攝方向移動控制相機朝著近攝方向對焦掃描;當幻 小於S1時,控制相機朝著無限遠處對焦掃描。 相較於習知技術’本發明利用人臉相對於整個畫面的 大小變化和位置判斷連續對焦的方向和軌跡,來減少自動 對焦的時間。 【實施方式】 如圖1所示’是本發明相機自動對焦系統的硬體架構 圖。該系統包括:自動連續對焦程式10,該自動連續對焦 程式10運行於一數位信號處理系統(Digital Signal Process,簡稱DSP) 12,該DSP系統12存儲有所拍攝移動 中的人的連續動作的畫面。 如圖2所示’是本發明相機自動對焦方法較佳實施例 的示意圖。所示第一畫面1(以下簡稱畫面1)和第二畫面2 (以下簡稱晝面2)為兩張人臉對焦晝面,且該人臉對焦畫 面為被拍攝者的連續動作的畫面,每一畫面中分別用一矩 形框框住人臉。 如圖3所示’是圖1中自動連續對焦程式1〇的功能模組 圖。該自動連續對焦程式包括:偵測模組20、計算模組22、 判斷模組24、對焦楔組26。 偵測模組20 ’用於偵測人臉在晝面1中的相對位置, 所述矩形框框住人臉,取該矩形對焦框的其中一條對角 線’得到該對角線的兩個頂點的座標,如點Μ,點N,如 圖2所示。 1342710 计算核組22,用於根據所要拍攝的物體的大小將晝面 :平均劃分成若干個小方格,本實施例中,以劃分十六個小 方格為例進行說明。 所述計算模組22,還用於計算畫面1中矩形框的面積 S1,並計算該框的中心點〇的座標,該矩形框的中心點〇 即為人臉的中心點,點A在一小方格ABCD内,計算該方格 的四個頂點:點A、點B、點c及點D的座標,如圖2所示, 當前對焦區域為方格ABCD所在的區域。 # 所述偵測模組20,還用於偵測人臉在畫面2中的相對 位置,矩形框框住該晝面2中的人臉,取該矩形的—條對角 線’得到該對角線的兩個頂點的座標,如點M、,、,如 圖2所示。 所述計算模組22,還用於計算畫面2中的該矩形框的 面積S2,並計鼻該矩形框的中心點〇、的座標,點〇、在—小 方格A、B、C、D、内’計算該方格的四個頂點:點a、、點B、、 點C'及點D的座標’如圖2所示。 • 判斷模組24,用於判斷點A、點B、點C及點D的座標 與點A、點B、點C及點D的座標是否分別對應相等;^ 不相等,則判斷所拍攝的人已經離開對焦範圍,需要重新 對焦。 對焦模組26,用於當所述判斷模組24判斷人已經離開 對焦範圍時’則將對焦區域設為方格A、B、C、D、所在的區 域。 所述判斷模組24,還用於判斷S2是否大於S1。 11 1342710 所述對焦模組26,還用於當S2大於S1時,朝著macr〇 (近攝)方向對焦掃描,當S2小於S1時,朝著無限遠處對 焦掃描。 如圖4所示’是本發明相機自動對焦方法的較佳實施 例的流程圖。 首先’步驟S30 ’計算模組22根據被拍攝者的大小將 第一畫面和第二晝面平均劃分成多個方格,偵測模組2〇做 人臉偵測找出人臉在畫面1中的相對位置,所述矩形框框住 人臉,取該矩形對焦框的其中一條對角線,得到該對角線 的兩個頂點的座標,如點Μ,點N,如圖2所示。 步驟S32 ’計算模組22計算畫面1中矩形框的面積$ 1, 並計算該框的中心點Ο的座標,該矩形框的中心點〇即為人 臉的中心點’點Α在一小方格ABCD内,計算該方格的四個 頂點:點A、點B、點C及點D的座標,如圖2所示,當前對 焦區域為方格ABCD。 步驟S34,偵測模組20偵測人臉在畫面2中的相對位 置,矩形框框住該畫面2中的人臉’取該矩形的一條對角 線,得到該對角線的兩個頂點的座標,如點M、,點N、,如 圖2所示。 步驟S36,所述計算模組22計算晝面2中的該矩形框的 面積S2,並計算該矩形框的中心點的座標’點〇、在一小 方格A、B、C、D、内’計算該方格的四個頂點:點A、、點B、、 點C、及點D、的座楳’如圖2所示。 步驟S38 ’判斷模組24判斷點A、點B、點C及點D的 12 1342710 座標與點A、、點B、、點C、及點D、的座標是否分別對應相 等,若不相等,則判斷所拍攝的人已經離開對焦範圍,需 要重新對焦。 步驟S40,判斷模組24分別判斷所述晝面2中的矩形框 的面積S2是否大於畫面1中的矩形框的面積S1。 步驟S42 ’若S2大於S1 ’則對焦模組26往macro方向對 焦掃描。 步驟S44,上述步驟S38中,當所述判斷模組24判斷人 已經離開對焦範圍時,則改變對焦中心位置,將對焦區 域移到方格A'B'CTD'。 步驟S46,上述步驟S40中,若S2小於S1,則所述對焦 模組26往無限遠處對焦掃描。 以上所述僅為本發明之較佳實施例而已,且已達廣泛 之使用功效,凡其他未脫離本發明所揭示之精神下所完成 之均等變化或修飾,均應包含在下述之申請專利範圍内。 【圖式簡單說明】 圖1係本發明相機自動對焦系統之硬體架構圖。 圖2係本發明相機自動對焦方法較佳實施例之示意 圖。 圖3係圖1中自動連續對焦程式之功能模組圖。 圖4係本發明相機自動對焦方法的較佳實施例之流程 圖。 【主要元件符號說明】 自動連續對焦程式 10 13 1342710 數位信號處理系統 12 偵測模組 20 計算模組 22 判斷模組 24 對焦模組 26Performing autofocusing, the method includes the following steps: detecting a relative position of a human face in the first picture, taking a diagonal line of the rectangular frame in the picture, and obtaining coordinates of two vertices of the diagonal line; The coordinates of the two vertices of the diagonal line in the first picture calculate the area 1 of the rectangular frame in the first picture, and the relative position of the human face in the second picture is measured, and the diagonal line of the rectangular king in the picture is taken. Obtaining coordinates of two vertices of the diagonal line; calculating an area S1 of the rectangular frame in the 1342710 昼 plane of the rectangle according to the coordinates of the two vertices of the diagonal line in the first picture; if 52 is greater than S1, Then, it is judged that the subject moves toward the close-up direction to control the camera to focus scan toward the close-up direction; when the illusion is smaller than S1, the camera is controlled to focus on the infinity scan. Compared with the prior art, the present invention uses the face size and position of the face relative to the entire picture to determine the direction and trajectory of continuous focus to reduce the time of autofocus. [Embodiment] As shown in Fig. 1, the hardware architecture of the camera autofocus system of the present invention is shown. The system includes an automatic continuous focus program 10 that operates on a Digital Signal Process (DSP) 12 that stores a picture of a continuous motion of a person moving in motion. . Figure 2 is a schematic view of a preferred embodiment of the camera autofocus method of the present invention. The first screen 1 (hereinafter referred to as screen 1) and the second screen 2 (hereinafter referred to as the surface 2) are two face-focusing faces, and the face-focused image is a continuous motion of the photographer. A rectangular frame is used to frame the face in a picture. As shown in Fig. 3, it is a functional module diagram of the automatic continuous focus program 1〇 in Fig. 1. The automatic continuous focus program includes a detection module 20, a calculation module 22, a determination module 24, and a focus wedge group 26. The detecting module 20 ′ is configured to detect a relative position of the face in the face 1 , the rectangular frame framing the face, and taking one diagonal of the rectangular focus frame to obtain the two vertices of the diagonal Coordinates, such as point, point N, as shown in Figure 2. 1342710 The calculation core group 22 is configured to divide the kneading surface into a plurality of small squares according to the size of the object to be photographed. In this embodiment, a description is made by taking sixteen small squares as an example. The calculation module 22 is further configured to calculate an area S1 of a rectangular frame in the screen 1, and calculate a coordinate of a center point 该 of the frame, where a center point of the rectangular frame is a center point of the face, and the point A is in a In the small square ABCD, the coordinates of the four vertices of the square are calculated: point A, point B, point c, and point D. As shown in Fig. 2, the current focus area is the area where the square ABCD is located. The detecting module 20 is further configured to detect a relative position of the face in the screen 2, and the rectangular frame frames the face in the face 2, and the diagonal of the rectangle is taken to obtain the diagonal The coordinates of the two vertices of the line, such as points M, ,, are shown in Figure 2. The calculation module 22 is further configured to calculate the area S2 of the rectangular frame in the screen 2, and calculate the coordinates of the center point of the rectangular frame, the point 〇, the small squares A, B, C, D. Inside 'calculates the four vertices of the square: the coordinates of point a, point B, point C' and point D are as shown in Fig. 2. • The judging module 24 is configured to determine whether the coordinates of the points A, B, C, and D are equal to the coordinates of the points A, B, C, and D; ^ if they are not equal, the photographed The person has left the focus range and needs to refocus. The focusing module 26 is configured to set the focus area to the area where the squares A, B, C, D are located when the determining module 24 determines that the person has left the focus range. The determining module 24 is further configured to determine whether S2 is greater than S1. 11 1342710 The focus module 26 is further configured to focus scan toward the macr〇 (close-up) direction when S2 is greater than S1, and to focus at infinity when S2 is less than S1. Figure 4 is a flow chart of a preferred embodiment of the camera autofocus method of the present invention. First, the 'step S30' calculation module 22 divides the first picture and the second picture into a plurality of squares according to the size of the subject, and the detection module 2 performs face detection to find the face in the picture 1. The relative position, the rectangular frame frames the face, takes one of the diagonal lines of the rectangular focus frame, and obtains the coordinates of the two vertices of the diagonal line, such as point Μ, point N, as shown in FIG. 2 . Step S32 'The calculation module 22 calculates the area $1 of the rectangular frame in the screen 1, and calculates the coordinates of the center point 该 of the frame, and the center point of the rectangular frame is the center point of the face' point in a small square Within the ABCD, calculate the coordinates of the four vertices of the square: point A, point B, point C, and point D. As shown in Figure 2, the current focus area is the square ABCD. In step S34, the detecting module 20 detects the relative position of the face in the screen 2, and the rectangular frame frames the face in the picture 2 to take a diagonal line of the rectangle to obtain the two vertices of the diagonal line. The coordinates, such as point M, point N, are shown in Figure 2. Step S36, the calculation module 22 calculates the area S2 of the rectangular frame in the facet 2, and calculates the coordinate 'point 中心 of the center point of the rectangular frame, in a small square A, B, C, D, 'Calculating the four vertices of the square: point A, point B, point C, and point D, as shown in Figure 2. Step S38 'The determination module 24 determines whether the coordinates of the 12 1342710 coordinates of the points A, B, C, and D are equal to the coordinates of the points A, B, C, and D, respectively. If they are not equal, Then it is judged that the person who has taken the photo has left the focus range and needs to refocus. In step S40, the determination module 24 determines whether the area S2 of the rectangular frame in the facet 2 is larger than the area S1 of the rectangular frame in the picture 1. In step S42', if S2 is larger than S1', the focus module 26 scans the focus in the macro direction. In step S44, in the above step S38, when the determining module 24 determines that the person has left the focus range, the focus center position is changed, and the focus area is moved to the square A'B'CTD'. In step S46, in the above step S40, if S2 is smaller than S1, the focus module 26 performs in-focus scanning at infinity. The above is only the preferred embodiment of the present invention, and has been used in a wide range of applications. Any other equivalent changes or modifications which are not departing from the spirit of the present invention should be included in the following claims. Inside. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a hardware structural diagram of a camera autofocus system of the present invention. Fig. 2 is a schematic view showing a preferred embodiment of the camera autofocus method of the present invention. Figure 3 is a functional block diagram of the automatic continuous focus program of Figure 1. Fig. 4 is a flow chart showing a preferred embodiment of the camera autofocus method of the present invention. [Main component symbol description] Automatic continuous focus program 10 13 1342710 Digital signal processing system 12 Detection module 20 Calculation module 22 Judgment module 24 Focus module 26

1414

Claims (1)

十、申請專利範圍: 1.種相機自動對焦系統,用於拍攝移動的人體照片時 進行自動對焦,該系統包括自動連續對焦程式及運行 該自動連續對焦程式的數位信號處理系統,該數位信 號處理系統存儲有第一畫面和第二畫面,該第一畫面 和第一畫面為被拍攝者移動時連續抓去的兩張人臉 對“、、旦面’所述第一畫面和第二畫面分別用矩形框框 住人臉,該自動連續對焦程式包括: 偵測模,’且,用於偵測人臉在第一畫面中的相對位置, 取該畫面中的矩形框的一條對角線,得到該對角線的 兩個頂點的座標; 計算模組,用於根據所述第一畫面中對角線兩個頂 點的座標計算第一晝面中矩形框的面積S1; 所述偵測模組’還用於偵測人臉在第二晝面中的相對 位置,取該晝面中矩形框的一條對角線,得到該對角 線的兩個頂點的座標; 所述計算模組,用於根據所述第二晝面中的對角線 兩個頂點的座標,計算該矩形框的面積S2 ; ,斷杈組,用於判斷第二畫面中的矩形框的面積S2 疋否大於第一畫面中的矩形框的面積S1;及 對焦模組’用於當S2大於,控制相機朝著近攝 方向對焦掃描;當S2小於S1時,控制相機朝著無限 遠處對焦掃描。 2‘如申請專利範圍第1項所述之相機自動難系統,其 α‘/ιυ 中所述計算模組還用於根據被拍攝者的大小將第一 晝面和第二畫面平均劃分成多個方格,計算第一晝面 中的矩形框的中心點的賴和該中^點所在方格的 四個頂點的座標,及計算第二畫面中矩形框的中心點 的座標和該中心點所在方格的四個頂點的座標。 3·如申請專利範圍第1項所述之相機自動對焦系統,其 中所述判斷模組’還用於判斷第一畫面中矩形框的中 心點所在方格的四個頂點的座標和第二畫面中矩形 框的中心點所在方格的四個頂點對應的座標是否分 別相等’若相等’則不改變對焦範圍,對焦範圍仍在 第里面中矩开> 框的中心點所在的方格内;若不相 等,則將對焦區域移到第二畫面中矩形框的中心點所 在的方格内。 4·種相機自動董十焦方法,用於拍攝移動中的人體照片 時進行自動對焦,該方法包括步驟: 制人臉在第-晝面中的相對位置,取該畫面中的矩 形框的條對角線,得到該對角線的兩個頂點的座 標; 根據所述第—晝面中對角線的兩個頂點的座標計算 第一畫面中矩形框的面積Si ; 制人臉在第二晝面中的相對位置,取該晝面中矩形 框的-條對角線,得到該對角線的兩個頂點的座標; 根據所述m中的對祕兩個頂點的座標計算 該矩形框的面積S2 ; 16 1342710 判斷第二畫面中的矩形框的面積52是否大於第一畫 : 面中的矩形框的面積si ; 若S2大於S1,則判斷被拍攝者朝著近攝方向移動控 制相機朝著近攝方向對焦掃描; 當S2小於S1時’控制相機朝著無限遠處對焦掃描。 5.如申請專利範圍第4項所述之相機自動對焦方法,其 中該方法在偵測人臉在第一畫面中的相對位置的步 鲁 驟之刖還包括:根據被拍攝者的大小將第一晝面和第 一晝面平均劃分成多個方格。 6·如申請專利範圍第5項所述之相機自動對焦方法,其 中所述步驟計算第-畫面中矩形框的面積S1還包括 步驟:計算第一畫面中的矩形框的中心點的座標和該 ^心點所在的方格的四個頂點的座標;所述步驟計算 第二晝面中矩形框的面積S2還包括步驟:計算第二畫 面中矩形框的中心點的座標和該中心點所:方格二 • 四個頂點的座標。 7.如申請專利範圍第6項所述之相機自動❹方法,盆 中該方法在判斷第二畫面中的矩形框的面積幻是^ 大於第畫面中的矩形框的面積S1步驟之前還包 括:判斷第一畫面中矩形框的中心點所在的方格的四 個頂點的座標和第二畫面t矩形㈣中心點所在的 方格的四個頂點對應的座標是否分別相等;若相等, 則不改變對焦範圍,對焦範圍仍在第一晝面中矩形框 的中心點所在的方格内;若不相等,則將對焦區域移 17 1342710 到第二畫面中矩形框的中心點所在的方格内。X. Patent application scope: 1. A camera autofocus system for autofocusing when shooting a moving human body photograph, the system includes an automatic continuous focus program and a digital signal processing system running the automatic continuous focus program, the digital signal processing The system stores a first picture and a second picture, where the first picture and the first picture are consecutively captured by the photographer when the two faces are facing, and the first picture and the second picture are respectively The face is framed by a rectangular frame, and the automatic continuous focus program includes: a detection mode, 'and, for detecting a relative position of the face in the first picture, taking a diagonal line of the rectangular frame in the picture, obtaining the a coordinate of the two vertices of the diagonal; a calculation module, configured to calculate an area S1 of the rectangular frame in the first side according to the coordinates of the two vertices in the first picture; the detecting module The method is further configured to detect a relative position of the face in the second face, take a diagonal line of the rectangular frame in the face, and obtain coordinates of the two vertices of the diagonal; root Calculating the area S2 of the rectangular frame according to the coordinates of the two vertices of the diagonal line in the second plane, and the breaking group is used to determine whether the area S2 of the rectangular frame in the second picture is larger than the first picture. The area of the rectangular frame S1; and the focus module 'for when S2 is greater than, control the camera to focus scan toward the close-up direction; when S2 is smaller than S1, control the camera to focus scan at infinity. 2' The camera auto-hard system according to the first item, wherein the calculation module in α'/ιυ is further configured to divide the first pupil plane and the second screen into a plurality of squares according to the size of the photographer, and calculate The coordinates of the center point of the rectangular frame in the first plane and the coordinates of the four vertices of the square in which the middle point is located, and the coordinates of the center point of the rectangular frame in the second picture and the square of the square in which the center point is located The camera autofocus system of claim 1, wherein the judging module is further configured to determine four vertices of a square of a center point of the rectangular frame in the first picture. Coordinates and rectangular frames in the second frame Whether the coordinates corresponding to the four vertices of the square in which the center point is located are equal to 'if equal', then the focus range is not changed, and the focus range is still within the square of the center of the box in the middle; if not, Then move the focus area to the square where the center point of the rectangular frame in the second picture is located. 4. The automatic camera ten-focus method is used for autofocusing when taking pictures of a moving human body. The method includes the following steps: The relative position of the face in the first face, taking the diagonal of the rectangle in the picture, obtaining the coordinates of the two vertices of the diagonal; according to the two diagonals in the first face The coordinates of the vertices calculate the area Si of the rectangular frame in the first picture; the relative position of the human face in the second face, taking the diagonal of the rectangle in the face, and obtaining the two diagonals The coordinates of the vertices; the area S2 of the rectangular frame is calculated according to the coordinates of the two vertices in the m; 16 1342710 determining whether the area 52 of the rectangular frame in the second picture is larger than the first picture: the rectangular frame in the face Area si ; if S2 is large At S1, it is judged that the subject moves the control camera toward the close-up direction to focus the focus scan in the close-up direction; when S2 is smaller than S1, the camera is controlled to focus on the infinity scan. 5. The camera autofocus method according to claim 4, wherein the method further comprises: detecting the relative position of the face in the first picture, further comprising: according to the size of the subject The one face and the first face are equally divided into a plurality of squares. 6. The camera autofocus method of claim 5, wherein the step of calculating the area S1 of the rectangular frame in the first picture further comprises the steps of: calculating a coordinate of a center point of the rectangular frame in the first picture and the ^ The coordinates of the four vertices of the square in which the heart point is located; the step of calculating the area S2 of the rectangular frame in the second side surface further comprises the step of: calculating the coordinates of the center point of the rectangular frame in the second picture and the center point: Square 2 • The coordinates of the four vertices. 7. The method according to claim 6, wherein the method further comprises: before determining that the area of the rectangular frame in the second picture is greater than the area S1 of the rectangular frame in the first picture: Determining whether the coordinates of the four vertices of the square in which the center point of the rectangular frame in the first picture is located and the coordinates corresponding to the four vertices of the square in which the center point of the second picture t rectangle (4) is located are equal; if they are equal, they are not changed. Focus range, the focus range is still in the square of the center point of the rectangle in the first side; if not, move the focus area 17 1342710 to the square of the center point of the rectangle in the second picture. 1818
TW96135523A 2007-09-21 2007-09-21 System and method for automatically focusing for camera TWI342710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96135523A TWI342710B (en) 2007-09-21 2007-09-21 System and method for automatically focusing for camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96135523A TWI342710B (en) 2007-09-21 2007-09-21 System and method for automatically focusing for camera

Publications (2)

Publication Number Publication Date
TW200915851A TW200915851A (en) 2009-04-01
TWI342710B true TWI342710B (en) 2011-05-21

Family

ID=44725854

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96135523A TWI342710B (en) 2007-09-21 2007-09-21 System and method for automatically focusing for camera

Country Status (1)

Country Link
TW (1) TWI342710B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI511550B (en) * 2012-07-26 2015-12-01 Altek Corp Auto focus method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI413846B (en) * 2009-09-16 2013-11-01 Altek Corp Continuous focus method of digital camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI511550B (en) * 2012-07-26 2015-12-01 Altek Corp Auto focus method

Also Published As

Publication number Publication date
TW200915851A (en) 2009-04-01

Similar Documents

Publication Publication Date Title
US11172133B2 (en) Zoom control device, control method of zoom control device, and recording medium
JP3823921B2 (en) Imaging device
TW200908710A (en) Imaging apparatus having focus control function
JP2009200560A (en) Imaging apparatus, imaging method, and program
JP2010226157A (en) Camera, and image correction method
TW201030631A (en) Automatic photographing method for panoramic image of digital imaging apparatus
JP2007086269A (en) Camera system and focal length adjusting method of zoom lens optical system of camera system
JP3732665B2 (en) Automatic focus control device and focusing operation determination method thereof
JP2012039591A (en) Imaging apparatus
JP2007293337A (en) Method and apparatus for reducing shutter lag in digital imaging device
TWI516113B (en) Image capture device and image synthesis method thereof
JP2003244520A (en) Photographing device
JP2003075883A (en) Digital camera and method for minimizing motion blur in the same
JP2015106116A (en) Imaging apparatus
TWI342710B (en) System and method for automatically focusing for camera
JP2021132383A (en) Imaging device, imaging method, program, and recording medium
JP2010141609A (en) Imaging apparatus
US20110279649A1 (en) Digital photographing apparatus, method of controlling the same, and computer-readable storage medium
TW201236448A (en) Auto-focusing camera and method for automatically focusing of the camera
US20110032390A1 (en) Digital photographing apparatus and moving picture capturing method performed by the same
JP2009092961A (en) Focusing position control device, focusing position control method, and focusing position control program
JP2007139819A (en) Imaging apparatus
JP2015118274A (en) Imaging device, imaging device control method, and program
JP4239954B2 (en) Camera device and focusing area control program
TW201005657A (en) Method of automatic photo taking by facial recognition

Legal Events

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