[go: up one dir, main page]

TWI906985B - Dual-lens electronic apparatus and image consistency improvement method thereof - Google Patents

Dual-lens electronic apparatus and image consistency improvement method thereof

Info

Publication number
TWI906985B
TWI906985B TW113128675A TW113128675A TWI906985B TW I906985 B TWI906985 B TW I906985B TW 113128675 A TW113128675 A TW 113128675A TW 113128675 A TW113128675 A TW 113128675A TW I906985 B TWI906985 B TW I906985B
Authority
TW
Taiwan
Prior art keywords
lens module
lens
focus
lookup table
driving current
Prior art date
Application number
TW113128675A
Other languages
Chinese (zh)
Inventor
鄭珍如
Original Assignee
宏碁股份有限公司
Filing date
Publication date
Application filed by 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Application granted granted Critical
Publication of TWI906985B publication Critical patent/TWI906985B/en

Links

Abstract

The disclosure provides a dual-lens electronic apparatus and an image consistency improvement method thereof. The method is adapted to the dual-lens electronic apparatus including a first lens module and a second lens module, and includes the following steps. An autofocus procedure is executed using the first lens module to obtain a focusing object distance and a first target driving current for a first actuator motor of the first lens module. A second target driving current for a second actuator motor of the second lens module is determined based on the focusing object distance and a second focus lookup table of the second lens module. The second focus lookup table of the second lens module records mapping relationship between multiple preset focusing distances and multiple second driving currents of the second actuator motor. A first perspective image is captured through the first lens module by driving the first actuator motor according to the first target driving current. A second perspective image is captured through the second lens module by driving the second actuator motor according to the second target driving current.

Description

雙鏡頭電子裝置與其影像一致性提昇方法Methods for improving image consistency in dual-lens electronic devices

本發明是有關於一種電子裝置,且特別是有關於一種雙鏡頭電子裝置與其影像一致性提昇方法。 This invention relates to an electronic device, and more particularly to a dual-lens electronic device and a method for improving image consistency.

目前,基於雙目立體視覺技術的應用不斷擴展,雙鏡頭相機系統已成為獲取不同視角影像內容的關鍵配備。基於雙目立體視覺技術,雙鏡頭電子產品可透過雙鏡頭相機系統來獲取不同視角的影像內容,從而依據不同視角的影像內容產生拍攝場景的深度資訊。須注意的是,於雙目立體視覺技術的應用中,當不同鏡頭模組的鏡頭特性與成像品質落差太大,將對後續應用帶來不良影響。像是,造成深度估測結果不準確,或造成特徵匹配的匹配結果不佳致使的雙鏡頭空間校正無法順利進行。然而,由於雙鏡頭相機系統中的第一鏡頭模組與第二鏡頭模組的元件特性不一致或存在組裝公差,因此第一鏡頭模組的拍攝影像與第二鏡頭模組的拍攝 影像存在清晰度不一致的問題。 Currently, the applications of binocular stereo vision technology are constantly expanding, and dual-lens camera systems have become a key component for acquiring images from different perspectives. Based on binocular stereo vision technology, dual-lens electronic products can acquire images from different perspectives through a dual-lens camera system, thereby generating depth information for the shooting scene based on the image content from each perspective. It is important to note that in the application of binocular stereo vision technology, if the lens characteristics and image quality of different lens modules differ too much, it will have a negative impact on subsequent applications. For example, it may cause inaccurate depth estimation results or poor feature matching results, preventing successful dual-lens spatial correction. However, due to inconsistencies in component characteristics or assembly tolerances between the first and second lens modules in a dual-lens camera system, there is a discrepancy in image sharpness between the images captured by the first and second lens modules.

有鑑於此,本發明提供一種雙鏡頭電子裝置與其影像一致性提昇方法,其可用於解決上述技術問題。 In view of this, the present invention provides a method for improving the image consistency of a dual-lens electronic device, which can be used to solve the aforementioned technical problems.

本發明實施例提供一種影像一致性提昇方法,適於包括第一鏡頭模組與第二鏡頭模組的雙鏡頭電子裝置,所述方法包括下列步驟。利用第一鏡頭模組執行自動對焦程序,以獲取對焦物距與第一鏡頭模組的第一致動馬達的第一目標驅動電流。根據對焦物距與第二鏡頭模組的第二對焦查找表,決定第二鏡頭模組的第二致動馬達的第二目標驅動電流。第二鏡頭模組的第二對焦查找表記錄多個預設對焦物距與第二致動馬達的多個第二驅動電流之間的映射關係。依據第一目標驅動電流驅動第一致動馬達而透過第一鏡頭模組擷取第一視角影像。依據第二目標驅動電流驅動第二致動馬達而透過第二鏡頭模組擷取第二視角影像。 This invention provides an image consistency improvement method suitable for a dual-lens electronic device including a first lens module and a second lens module. The method includes the following steps: 1. Executing an autofocus procedure using the first lens module to obtain a focus distance and a first target driving current of a first actuation motor of the first lens module. 2. Determining a second target driving current of a second actuation motor of the second lens module according to a second focus lookup table of the second lens module. The second focus lookup table of the second lens module records mapping relationships between multiple preset focus distances and multiple second driving currents of the second actuation motor. 3. Capturing a first viewpoint image through the first lens module by driving the first actuation motor according to the first target driving current. A second-angle image is captured through a second camera module by driving a second actuator motor with a second target-driven current.

本發明實施例提供一種雙鏡頭電子裝置,其包括第一鏡頭模組、第二鏡頭模組、儲存裝置,以及處理器。處理器耦接至第一鏡頭模組、第二鏡頭模組與儲存裝置,並經配置以執行下列操作。利用第一鏡頭模組執行自動對焦程序,以獲取對焦物距與第一鏡頭模組的第一致動馬達的第一目標驅動電流。根據對焦物距與第二鏡頭模組的第二對焦查找表,決定第二鏡頭模組的第二致動馬達的第二目標驅動電流。第二鏡頭模組的第二對焦查找表記錄 多個預設對焦物距與第二致動馬達的多個第二驅動電流之間的映射關係。依據第一目標驅動電流驅動第一致動馬達而透過第一鏡頭模組擷取第一視角影像。依據第二目標驅動電流驅動第二致動馬達而透過第二鏡頭模組擷取第二視角影像。 This invention provides a dual-lens electronic device including a first lens module, a second lens module, a storage device, and a processor. The processor is coupled to the first lens module, the second lens module, and the storage device, and configured to perform the following operations: An autofocus procedure is executed using the first lens module to obtain the focusing distance and a first target driving current of a first actuation motor of the first lens module. A second target driving current of a second actuation motor of the second lens module is determined according to a second focus lookup table of the focusing distance and the second lens module. The second focus lookup table of the second lens module records a mapping relationship between multiple preset focusing distances and multiple second driving currents of the second actuation motor. A first viewpoint image is captured through a first lens module by driving a first actuator motor with a first target driving current. A second viewpoint image is captured through a second lens module by driving a second actuator motor with a second target driving current.

基於上述,於本發明的實施例中,透過使用基於鏡頭校準程序而事先建立的對焦查找表,可根據第一鏡頭模組的對焦結果來決定第二鏡頭模組所應用的馬達驅動電流。如此一來,可提昇不同視角影像的清晰度一致性,進而提昇雙目立體視覺技術的應用品質。 Based on the above, in an embodiment of the present invention, by using a focus lookup table pre-established based on a lens calibration procedure, the motor drive current applied to the second lens module can be determined according to the focusing result of the first lens module. This improves the consistency of image sharpness across different viewpoints, thereby enhancing the application quality of binocular stereoscopic vision technology.

100:雙鏡頭電子裝置 100: Dual-lens electronic device

110:第一鏡頭模組 110: First-person camera module

111:第一致動馬達 111: First Actuating Motor

120:第二鏡頭模組 120: Second Camera Module

121:第二致動馬達 121: Second Actuator

T1:第一對焦查找表 T1: First Focus Lookup Table T1: First Focus Lookup Table Taiwanese Focus Lookup Table ...

T2:第二對焦查找表 T2: Second Focus Lookup Table Taiwanese Focus Lookup Table

130:儲存裝置 130: Storage device

140:處理器 140: Processor

150:運動感測器 150: Motion Sensor

S210~S240,S310~S340,S410~S450,S510~S560:步驟 S210~S240, S310~S340, S410~S450, S510~S560: Steps

圖1A是依據本發明一實施例的雙鏡頭電子裝置的示意圖。 Figure 1A is a schematic diagram of a dual-lens electronic device according to an embodiment of the present invention.

圖1B是依據本發明一實施例的雙鏡頭配置的示意圖。 Figure 1B is a schematic diagram of a dual-lens configuration according to an embodiment of the present invention.

圖2是依據本發明一實施例的影像一致性提昇方法的流程圖。 Figure 2 is a flowchart of an image consistency improvement method according to an embodiment of the present invention.

圖3是依據本發明一實施例的鏡頭校準程序的流程圖。 Figure 3 is a flowchart of a lens calibration procedure according to an embodiment of the present invention.

圖4是依據本發明一實施例的影像一致性提昇方法的流程圖。 Figure 4 is a flowchart of an image consistency improvement method according to an embodiment of the present invention.

圖5是依據本發明一實施例的影像一致性提昇方法的流程圖。 Figure 5 is a flowchart of an image consistency improvement method according to an embodiment of the present invention.

本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的方法與裝置的範例。 Some embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Component symbols used in the following description are considered identical or similar components when the same component symbol appears in different accompanying drawings. These embodiments are only a part of the present invention and do not disclose all possible embodiments of the present invention. More precisely, these embodiments are merely examples of methods and apparatuses within the scope of the patent applications of the present invention.

圖1A是依據本發明一實施例的雙鏡頭電子裝置的示意圖。請參照圖1A,在不同的實施例中,雙鏡頭電子裝置100可例如為頭戴顯示裝置、筆記型電腦、智慧電視、平板電腦、遊戲機、手機等等,本發明對此不限制。在圖1A中,雙鏡頭電子裝置100可包括第一鏡頭模組110、第二鏡頭模組120、儲存裝置130、處理器140,以及運動感測器150。 Figure 1A is a schematic diagram of a dual-lens electronic device according to an embodiment of the present invention. Referring to Figure 1A, in different embodiments, the dual-lens electronic device 100 may be, for example, a head-mounted display, a laptop, a smart TV, a tablet computer, a game console, a mobile phone, etc., and the present invention is not limited thereto. In Figure 1A, the dual-lens electronic device 100 may include a first lens module 110, a second lens module 120, a storage device 130, a processor 140, and a motion sensor 150.

第一鏡頭模組110與第二可鏡頭模組120分別包括感光元件與鏡片。第一鏡頭模組110與第二可鏡頭模組120各自的感光元件用以感測進入對應鏡片的光線強度而分別產生影像。所述的感光元件例如是電荷耦合元件(Charge Coupled Device,CCD)、互補性氧化金屬半導體(Complementary Metal-Oxide Semiconductor,CMOS)元件或其他元件,本發明對此不限制。 The first lens module 110 and the second lens module 120 each include a photosensitive element and a lens. The photosensitive elements of each lens module 110 and the second lens module 120 are used to sense the intensity of light entering the corresponding lens and thus generate images. The photosensitive element may be, for example, a charge-coupled device (CCD), a complementary metal-oxide-semiconductor (CMOS) element, or other elements; this invention is not limited thereto.

第一鏡頭模組110包括第一致動馬達111,第一致動馬達111用以推動第一鏡頭模組110的鏡片。第二鏡頭模組120包括第二致動馬達121,第二致動馬達121用以推動第二鏡頭模組120的鏡片。透過控制提供給第一致動馬達111的馬達驅動電流, 可控制第一致動馬達111將第一鏡頭模組110的鏡片移動至指定位置。同理,透過控制提供給第二致動馬達121的馬達驅動電流,可控制第二致動馬達121將第二鏡頭模組120的鏡片移動至指定位置。 The first lens module 110 includes a first actuation motor 111 for pushing the lens of the first lens module 110. The second lens module 120 includes a second actuation motor 121 for pushing the lens of the second lens module 120. By controlling the motor drive current supplied to the first actuation motor 111, the first actuation motor 111 can be controlled to move the lens of the first lens module 110 to a designated position. Similarly, by controlling the motor drive current supplied to the second actuation motor 121, the second actuation motor 121 can be controlled to move the lens of the second lens module 120 to a designated position.

於一些實施例中,第一致動馬達111與第二致動馬達121分別為音圈馬達(Voice Coil Motor,VCM)。音圈馬達是一種利用電磁力進行直線運動的電機。當電流通過音圈馬達的馬達線圈時,馬達線圈在磁場中會受到一個力的作用而移動。 In some embodiments, the first actuating motor 111 and the second actuating motor 121 are both voice coil motors (VCMs). A voice coil motor is a type of motor that uses electromagnetic force to achieve linear motion. When an electric current flows through the motor coil of a voice coil motor, the motor coil is subjected to a force in the magnetic field and moves accordingly.

請參照圖1B,其是依據本發明一實施例的雙鏡頭配置的示意圖。第一鏡頭模組110用以擷取第一視角影像(例如左眼影像),而第二鏡頭模組120用以擷取第二視角影像(例如又眼影像)。第一視角影像與第二視角影像可應用於立體成像、立體攝影、全景攝影、虛擬實境(Virtual Reality,VR)或擴增實境(Augmented Reality,AR)等技術中。於一些實施例中,第一鏡頭模組110的鏡頭規格與第二鏡頭模組120的鏡頭規格彼此相同。於一些實施例中,第一鏡頭模組110的光軸與第二鏡頭模組120的光軸實質上平行於彼此。 Please refer to Figure 1B, which is a schematic diagram of a dual-lens configuration according to an embodiment of the present invention. A first lens module 110 is used to capture a first viewpoint image (e.g., a left-eye image), while a second lens module 120 is used to capture a second viewpoint image (e.g., a right-eye image). The first and second viewpoint images can be applied to technologies such as stereoscopic imaging, stereoscopic photography, panoramic photography, virtual reality (VR), or augmented reality (AR). In some embodiments, the lens specifications of the first lens module 110 and the second lens module 120 are identical. In some embodiments, the optical axes of the first lens module 110 and the second lens module 120 are substantially parallel to each other.

儲存裝置130可用以儲存影像、指令、程式碼、軟體模組等等資料,其可以例如是任意型式的固定式或可移動式隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟或其他類似裝置、積體電路或其組合。儲存裝置130記錄有第一鏡頭模組110 的第一對焦查找表T1,與第二鏡頭模組120的第二對焦查找表T2。第一對焦查找表T1與第二對焦查找表T2可於對第一鏡頭模組110與第二鏡頭模組120分別進行鏡頭校準程序而建立。關於第一對焦查找表T1與第二對焦查找表T2的細節將於後述實施例清楚說明。 Storage device 130 can be used to store data such as images, instructions, program code, and software modules. It can be, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory, hard disk, or other similar devices, integrated circuits, or combinations thereof. Storage device 130 records a first focus lookup table T1 for the first lens module 110 and a second focus lookup table T2 for the second lens module 120. The first focus lookup table T1 and the second focus lookup table T2 can be created by performing lens calibration procedures on the first lens module 110 and the second lens module 120 respectively. Details regarding the first focus lookup table T1 and the second focus lookup table T2 will be clearly explained in the embodiments described later.

運動感測器150用以感測雙鏡頭電子裝置100的拍攝方向。運動感測器150可包括重力感測器。舉例來說,運動感測器150可用以偵測雙鏡頭電子裝置100的拍攝方向是水平向上、水平向下或水平朝前。 Motion sensor 150 is used to sense the shooting direction of the dual-lens electronic device 100. Motion sensor 150 may include a gravity sensor. For example, motion sensor 150 can be used to detect whether the shooting direction of the dual-lens electronic device 100 is horizontally upward, horizontally downward, or horizontally forward.

處理器140耦接第一鏡頭模組110、第二鏡頭模組120、運動感測器150以及儲存裝置130,例如是中央處理單元(central processing unit,CPU)、應用處理器(application processor,AP),或是其他可程式化之一般用途或特殊用途的微處理器(microprocessor)、數位訊號處理器(digital signal processor,DSP)、影像訊號處理器(image signal processor,ISP)、圖形處理器(graphics processing unit,GPU)、網路神經處理器(NPU)或其他類似裝置、積體電路或其組合。 Processor 140 is coupled to first camera module 110, second camera module 120, motion sensor 150, and storage device 130, such as a central processing unit (CPU), application processor (AP), or other programmable general-purpose or special-purpose microprocessor, digital signal processor (DSP), image signal processor (ISP), graphics processing unit (GPU), neural network processor (NPU), or other similar device, integrated circuit, or combination thereof.

處理器140可存取並執行記錄在儲存裝置130中的軟體模組,以實現本發明實施例中的影像一致性提昇方法。上述軟體模組可廣泛地解釋為意謂指令、指令集、代碼、程式碼、程式、應用程式、軟體套件、執行緒、程序、功能等,而不管其是被稱作軟體、韌體、中間軟體、微碼、硬體描述語言亦或其他者。 Processor 140 can access and execute software modules recorded in storage device 130 to implement the image consistency improvement method in this embodiment of the invention. The aforementioned software modules can be broadly interpreted as instructions, instruction sets, code, program code, programs, applications, software suites, executable threads, procedures, functions, etc., regardless of whether they are called software, firmware, middleware, microcode, hardware description languages, or others.

圖2是依據本發明一實施例的影像一致性提昇方法的流程圖。請參照圖2,本實施例的方法可由圖1的雙鏡頭電子裝置100執行,以下即搭配圖1所示的元件說明圖2各步驟的細節。 Figure 2 is a flowchart of an image consistency improvement method according to an embodiment of the present invention. Referring to Figure 2, the method of this embodiment can be executed by the dual-lens electronic device 100 shown in Figure 1. The details of each step in Figure 2 are explained below with reference to the components shown in Figure 1.

於步驟S210,處理器140利用第一鏡頭模組110執行自動對焦程序,以獲取對焦物距與第一鏡頭模組110的第一致動馬達111的第一目標驅動電流。於不同實施例中,處理器140可應用各種不同的自動對焦演算法來實現自動對焦程序,本發明對於自動對焦演算法並不加以限制。舉例來說,自動對焦演算法可為對比度檢測對焦演算法、相位對焦演算法、深度學習對焦演算法或應用測距感測器的預測對焦演算法等等。 In step S210, processor 140 executes an autofocus procedure using the first lens module 110 to obtain the focusing object distance and the first target driving current of the first actuator motor 111 of the first lens module 110. In different embodiments, processor 140 may apply various autofocus algorithms to implement the autofocus procedure; this invention does not limit the autofocus algorithm. For example, the autofocus algorithm may be a contrast detection autofocus algorithm, a phase detection autofocus algorithm, a deep learning autofocus algorithm, or a predictive autofocus algorithm using a range sensor, etc.

換言之,在利用第一鏡頭模組110執行自動對焦程序之後,處理器140可獲取用以將第一鏡頭模組110的鏡片移動至最佳位置的第一目標驅動電流。此外,對焦物距為第一鏡頭模組110至對焦物體之間的距離。於不同實施例中,對焦物距可透過查表或使用測距感測器來獲取。 In other words, after executing the autofocus procedure using the first lens module 110, the processor 140 can acquire a first target driving current to move the lens of the first lens module 110 to the optimal position. Furthermore, the focusing object distance is the distance between the first lens module 110 and the object being focused on. In different embodiments, the focusing object distance can be obtained by looking up a table or using a rangefinder.

於步驟S220,處理器140根據對焦物距與第二鏡頭模組120的第二對焦查找表T2,決定第二鏡頭模組120的第二致動馬達121的第二目標驅動電流。具體來說,第二鏡頭模組120的第二對焦查找表T2可經過事先測試而獲取。第二鏡頭模組120的第二對焦查找表T2記錄多個預設對焦物距與第二致動馬達121的多個第二驅動電流之間的映射關係。第二鏡頭模組120的第二對焦查找表T2可記錄於儲存裝置130之中。 In step S220, processor 140 determines the second target driving current of the second actuator motor 121 of the second lens module 120 based on the focus distance and the second focus lookup table T2 of the second lens module 120. Specifically, the second focus lookup table T2 of the second lens module 120 can be obtained through prior testing. The second focus lookup table T2 of the second lens module 120 records the mapping relationship between multiple preset focus distances and multiple second driving currents of the second actuator motor 121. The second focus lookup table T2 of the second lens module 120 can be stored in storage device 130.

處理器140根據第一鏡頭模組110的對焦結果來對第二鏡頭模組120的第二對焦查找表T2進行查表,以根據第二對焦查找表T2中的至少一第二驅動電流來決定第二致動馬達121的第二目標驅動電流。當第一鏡頭模組110的對焦結果中的對焦物距等於第二對焦查找表T2中的多個預設對焦距離其中之一,處理器140可將多個預設對焦距離其中之一對應的某一第二驅動電流識別為第二目標驅動電流。當第一鏡頭模組110的對焦結果中的對焦物距不等於第二對焦查找表T2中的多個預設對焦距離其中之一,處理器140可根據多個預設對焦距離其中至少兩者對應的至少兩筆第二驅動電流進行插值處理而決定第二目標驅動電流。 The processor 140 looks up the second focus lookup table T2 of the second lens module 120 based on the focusing result of the first lens module 110, and determines the second target drive current of the second actuator 121 based on at least one second drive current in the second focus lookup table T2. When the focusing distance in the focusing result of the first lens module 110 is equal to one of the multiple preset focusing distances in the second focus lookup table T2, the processor 140 can identify a certain second drive current corresponding to one of the multiple preset focusing distances as the second target drive current. When the focusing distance in the focusing result of the first lens module 110 is not equal to one of the multiple preset focusing distances in the second focusing lookup table T2, the processor 140 can determine the second target driving current by interpolating at least two second driving currents corresponding to at least two of the multiple preset focusing distances.

於步驟S230,處理器140依據第一目標驅動電流驅動第一致動馬達111而透過第一鏡頭模組110擷取第一視角影像。於步驟S240,處理器140依據第二目標驅動電流驅動第二致動馬達121而透過第二鏡頭模組120擷取第二視角影像。須說明的是,基於第一鏡頭模組110與第二鏡頭模組120之間的硬體特性差異或組裝公差,第一目標驅動電流將相異於第二目標驅動電流。 In step S230, processor 140 drives first actuator 111 according to a first target driving current to capture a first viewpoint image through first lens module 110. In step S240, processor 140 drives second actuator 121 according to a second target driving current to capture a second viewpoint image through second lens module 120. It should be noted that, due to differences in hardware characteristics or assembly tolerances between the first lens module 110 and the second lens module 120, the first target driving current will differ from the second target driving current.

基此,透過根據第一鏡頭模組110的對焦結果進行查表而決定第二鏡頭模組120的第二目標驅動電流,不僅可達到良好的對焦效率,更可使第一視角影像與第二視角影像的清晰度一致。原因在於,用以獲取良好解析度的多個第二驅動電流與多個預設對焦物距之間的映射關係已經記錄於第二對焦查找表T2。在透過自動對焦程序讓第一視角影像具有良好解析度的情況下,可根據 第一鏡頭模組110的對焦結果查找第二對焦查找表T2,以使第二視角影像的解析度與第一視角影像達成一致。 Therefore, by determining the second target driving current of the second lens module 120 through a lookup table based on the focusing result of the first lens module 110, not only can good focusing efficiency be achieved, but the sharpness of the first and second viewpoint images can also be made consistent. This is because the mapping relationship between multiple second driving currents used to obtain good resolution and multiple preset focusing object distances is recorded in the second focus lookup table T2. When the first viewpoint image has good resolution through the autofocus program, the second focus lookup table T2 can be consulted based on the focusing result of the first lens module 110 to ensure that the resolution of the second viewpoint image is consistent with that of the first viewpoint image.

於一些實施例中,處理器140可對第一鏡頭模組110執行鏡頭校準程序,來建立第一鏡頭模組110的第一對焦查找表T1。第一鏡頭模組110的第一對焦查找表T1記錄多個預設對焦物距與第一致動馬達111的多個第一驅動電流之間的映射關係。相似的,處理器140可對第二鏡頭模組120執行鏡頭校準程序,來建立第二鏡頭模組120的第二對焦查找表T2。第二鏡頭模組120的第二對焦查找表T2記錄多個預設對焦物距與第二致動馬達121的多個第二驅動電流之間的映射關係。 In some embodiments, processor 140 may perform a lens calibration procedure on the first lens module 110 to establish a first focus lookup table T1 for the first lens module 110. The first focus lookup table T1 of the first lens module 110 records the mapping relationships between multiple preset focus distances and multiple first driving currents of the first actuator 111. Similarly, processor 140 may perform a lens calibration procedure on the second lens module 120 to establish a second focus lookup table T2 for the second lens module 120. The second focus lookup table T2 of the second lens module 120 records the mapping relationships between multiple preset focus distances and multiple second driving currents of the second actuator 121.

舉例而言,表1為第一鏡頭模組110的第一對焦查找表T1的範例,而表2為第二鏡頭模組120的第二對焦查找表T2的範例。但表1與表2僅用以作為範例說明,並非用以限定本發明。 For example, Table 1 is an example of the first focus lookup table T1 for the first lens module 110, and Table 2 is an example of the second focus lookup table T2 for the second lens module 120. However, Tables 1 and 2 are only used as illustrative examples and are not intended to limit the invention.

圖3是依據本發明一實施例的鏡頭校準程序的流程圖。須先說明的是,圖3所示流程可對第一鏡頭模組110與第二鏡頭模組120分別執行,以產生第一對焦查找表T1與第二對焦查找表T2。 Figure 3 is a flowchart of a lens calibration procedure according to an embodiment of the present invention. It should be noted that the flowchart shown in Figure 3 can be executed separately for the first lens module 110 and the second lens module 120 to generate a first focus lookup table T1 and a second focus lookup table T2.

請參照圖3,於步驟S310,根據一預設對焦物距配置鏡頭模組(即第一鏡頭模組110或第二鏡頭模組120)與校正圖樣。校正圖樣可為校正圖卡上的圖樣或由顯示螢幕來顯示的圖樣。舉例而言,當於預設對焦物距等於10cm的條件下進行鏡頭校準程序,測試人員或測試設備將配置鏡頭模組與校正圖像距離10cm。 Referring to Figure 3, in step S310, configure the lens module (i.e., the first lens module 110 or the second lens module 120) and calibration pattern according to a preset focus distance. The calibration pattern can be a pattern on a calibration chart or a pattern displayed on a screen. For example, when performing a lens calibration procedure with a preset focus distance of 10cm, the tester or test equipment will configure the lens module and calibration image at a distance of 10cm.

於步驟S320,處理器140控制鏡頭模組(即第一鏡頭模組110或第二鏡頭模組120)以多個候選驅動電流對校正圖樣進行拍攝而獲取多張標定圖像。亦即,鏡片將基於不同的候選驅動電流而移動至不同位置而拍攝多張標定圖像。於步驟S330,處理器140計算多張標定圖像的清晰度。處理器140例如可採用Brenner梯度 函數、Laplacian梯度函數或方差函數等方法對標定圖像的清晰度進行檢測。 In step S320, processor 140 controls the lens module (i.e., the first lens module 110 or the second lens module 120) to capture multiple calibration images of the calibration pattern using multiple candidate driving currents. That is, the lens moves to different positions based on different candidate driving currents to capture multiple calibration images. In step S330, processor 140 calculates the sharpness of the multiple calibration images. Processor 140 may use methods such as the Brenner gradient function, Laplacian gradient function, or variance function to detect the sharpness of the calibration images.

於步驟S340,處理器140將清晰度最高的標定圖像所對應的候選驅動電流紀錄為對應至該預設對焦物距的驅動電流。以表1的範例來說,當提供150mA的驅動電流給第一致動馬達111時,可在預設對焦物距為10cm的情況下擷取到最清晰的標定圖像。因此,處理器140將150mA記錄為對應於預設對焦物距10cm的第一驅動電流。以表2的範例來說,當提供155mA的驅動電流給第二致動馬達121時,可在預設對焦物距為10cm的情況下擷取到最清晰的標定圖像。因此,處理器將155mA記錄為對應於預設對焦物距10cm的第二驅動電流。 In step S340, processor 140 records the candidate drive current corresponding to the highest-resolution calibration image as the drive current corresponding to the preset focus distance. Using the example in Table 1, when a drive current of 150mA is provided to the first actuator 111, the sharpest calibration image can be captured at a preset focus distance of 10cm. Therefore, processor 140 records 150mA as the first drive current corresponding to the preset focus distance of 10cm. Using the example in Table 2, when a drive current of 155mA is provided to the second actuator 121, the sharpest calibration image can be captured at a preset focus distance of 10cm. Therefore, the processor records 155mA as a second drive current corresponding to a preset focus distance of 10cm.

也就是說,透過根據不同的預設對焦物距重複執行圖3所示的步驟,處理器140可獲取對應至不同預設對焦物距的多個第一驅動電流,以建立第一鏡頭模組110的第一對焦查找表T1。同理,透過根據不同的預設對焦物距重複執行圖3所示的步驟,處理器140可獲取對應至不同預設對焦物距的多個第二驅動電流,以建立第二鏡頭模組120的第二對焦查找表T2。 In other words, by repeatedly executing the steps shown in FIG3 according to different preset focus distances, the processor 140 can obtain multiple first driving currents corresponding to different preset focus distances to establish a first focus lookup table T1 for the first lens module 110. Similarly, by repeatedly executing the steps shown in FIG3 according to different preset focus distances, the processor 140 can obtain multiple second driving currents corresponding to different preset focus distances to establish a second focus lookup table T2 for the second lens module 120.

值得一提的是,第一鏡頭模組110與第二鏡頭模組120可能以不同拍攝方向來進行拍攝。上述拍攝方向可為鏡頭光軸與地平線之間的夾角。當拍攝方向為水平,鏡頭光軸與地平線之間的夾角大致上為0度。當拍攝方向為水平向上,鏡頭光軸與地平線之間的夾角大致上為90度。當拍攝方向為水平向下,鏡頭光軸與地 平線之間的夾角大致上為-90度。基於重力因素與馬達結構特性,第一鏡頭模組110與第二鏡頭模組120的拍攝方向將影響驅動電流與鏡片移動距離之間的關係。 It is worth noting that the first lens module 110 and the second lens module 120 may shoot from different directions. The shooting direction can be defined as the angle between the lens optical axis and the horizon. When the shooting direction is horizontal, the angle between the lens optical axis and the horizon is approximately 0 degrees. When the shooting direction is horizontally upward, the angle between the lens optical axis and the horizon is approximately 90 degrees. When the shooting direction is horizontally downward, the angle between the lens optical axis and the horizon is approximately -90 degrees. Due to gravity and motor structure characteristics, the shooting direction of the first lens module 110 and the second lens module 120 will affect the relationship between the driving current and the lens movement distance.

因此,處理器140可於第一鏡頭模組110以不同拍攝方向進行拍攝的情況下來分別進行鏡頭校準程序,而獲取對應至不同拍攝方向的第一鏡頭模組110的多個預設對焦表。舉例而言,當第一鏡頭模組110處於鏡頭朝上的狀況下,處理器140可根據不同的預設對焦物距重複執行圖3所示的步驟,而獲取對應於鏡頭朝上的一預設對焦表。當第一鏡頭模組110處於鏡頭朝下的狀況下,處理器140可根據不同的預設對焦物距重複執行圖3所示的步驟,而獲取對應於鏡頭朝下的另一預設對焦表。也就是說,表1範例所示的第一對焦表T1可例如為對應於鏡頭朝前的預設對焦表。相似的,處理器140也可於第二鏡頭模組120以不同拍攝方向進行拍攝的情況下來分別進行鏡頭校準程序,而獲取對應至不同拍攝方向的第二鏡頭模組120的多個預設對焦表。 Therefore, the processor 140 can perform lens calibration procedures separately when the first lens module 110 is shooting from different shooting directions, and obtain multiple preset focus tables corresponding to the first lens module 110 for different shooting directions. For example, when the first lens module 110 is in a lens-up position, the processor 140 can repeatedly execute the steps shown in FIG3 according to different preset focus distances, and obtain a preset focus table corresponding to the lens-up position. When the first lens module 110 is in a lens-down position, the processor 140 can repeatedly execute the steps shown in FIG3 according to different preset focus distances, and obtain another preset focus table corresponding to the lens-down position. In other words, the first focus table T1 shown in Table 1 example can be, for example, a preset focus table corresponding to the lens facing forward. Similarly, the processor 140 can also perform lens calibration procedures separately when the second lens module 120 is shooting from different shooting directions, thereby obtaining multiple preset focus tables corresponding to the second lens module 120 for different shooting directions.

圖4是依據本發明一實施例的影像一致性提昇方法的流程圖。請參照圖4,本實施例的方法可由圖1的雙鏡頭電子裝置100執行,以下即搭配圖1所示的元件說明圖4各步驟的細節。 Figure 4 is a flowchart of an image consistency improvement method according to an embodiment of the present invention. Referring to Figure 4, the method of this embodiment can be executed by the dual-lens electronic device 100 shown in Figure 1. The details of each step in Figure 4 are explained below with reference to the components shown in Figure 1.

於步驟S410,處理器140利用第一鏡頭模組110執行自動對焦程序,以獲取對焦物距與第一鏡頭模組110的第一致動馬達111的第一目標驅動電流。於一些實施例中,步驟S410可實施為步驟S411至S412。 In step S410, processor 140 executes an autofocus procedure using the first lens module 110 to obtain the focusing object distance and the first target driving current of the first actuation motor 111 of the first lens module 110. In some embodiments, step S410 may be implemented as steps S411 to S412.

於步驟S411,處理器140利用第一鏡頭模組110執行自動對焦程序而獲取第一致動馬達111的第一目標驅動電流。於步驟S412,處理器140根據第一目標驅動電流與第一鏡頭模組110的第一對焦查找表T1,決定對焦物距。 In step S411, processor 140 obtains the first target driving current of the first actuator motor 111 by executing an autofocus procedure using the first lens module 110. In step S412, processor 140 determines the focusing distance based on the first target driving current and the first focusing lookup table T1 of the first lens module 110.

詳細來說,當第一目標驅動電流等於第一對焦查找表T1中的某一第一驅動電流,處理器140可直接將該第一驅動電流對應的預設對焦物距識別為當前的對焦物距。當第一目標驅動電流不等於第一對焦查找表T1中的任一第一驅動電流,處理器140可根據第一對焦查找表T1中的兩筆預設對焦物距進行插值處理,來決定當前的對焦物距。 Specifically, when the first target driving current equals a first driving current in the first focus lookup table T1, the processor 140 can directly identify the preset focus distance corresponding to that first driving current as the current focus distance. When the first target driving current is not equal to any first driving current in the first focus lookup table T1, the processor 140 can perform interpolation processing based on the two preset focus distances in the first focus lookup table T1 to determine the current focus distance.

舉例而言,以表1為例,當第一致動馬達111的第一目標驅動電流等於120mA,處理器140可根據第一對焦查找表T1得知當前的對焦物距為20cm。當第一致動馬達111的第一目標驅動電流等於100mA,處理器140可根據第一對焦查找表T1而計算出當前的對焦物距為35cm。 For example, referring to Table 1, when the first target driving current of the first actuator 111 is 120mA, the processor 140 can determine the current focusing distance as 20cm based on the first focus lookup table T1. When the first target driving current of the first actuator 111 is 100mA, the processor 140 can calculate the current focusing distance as 35cm based on the first focus lookup table T1.

於步驟S420,處理器140根據對焦物距與第二鏡頭模組120的第二對焦查找表T2,決定第二鏡頭模組120的第二致動馬達121的第二目標驅動電流。於一些實施例中,步驟S420可實施為步驟S421至S422。 In step S420, processor 140 determines the second target driving current of the second actuator 121 of the second lens module 120 based on the focusing object distance and the second focus lookup table T2 of the second lens module 120. In some embodiments, step S420 may be implemented as steps S421 to S422.

於步驟S421,處理器140可獲取第二對焦查找表T2中與對焦物距最相近的多個預設對焦物距其中二者。於步驟S421,處理器140可對多個預設對焦物距其中二者所對應的多個驅動電 流其中二者進行一插值處理,以決定第二致動馬達121的第二目標驅動電流。 In step S421, processor 140 can obtain two of the multiple preset focus distances closest to the focus object distance in the second focus lookup table T2. In step S421, processor 140 can perform interpolation processing on two of the multiple driving currents corresponding to the two preset focus object distances to determine the second target driving current of the second actuator 121.

舉例而言,以表2為例,當對焦物距等於預設對焦物距20cm,則處理器140可決定第二致動馬達121的第二目標驅動電流等於123mA。當對焦物距等於35cm,則處理器140可決定第二致動馬達121的第二目標驅動電流等於105mA(即(123+87)/2))。 For example, referring to Table 2, when the focusing distance is equal to the preset focusing distance of 20cm, the processor 140 can determine that the second target driving current of the second actuator 121 is equal to 123mA. When the focusing distance is equal to 35cm, the processor 140 can determine that the second target driving current of the second actuator 121 is equal to 105mA (i.e., (123+87)/2)).

於步驟S430,處理器140依據第一目標驅動電流驅動第一致動馬達111而透過第一鏡頭模組110擷取第一視角影像。於步驟S440,處理器140依據第二目標驅動電流驅動第二致動馬達121而透過第二鏡頭模組120擷取第二視角影像。 In step S430, processor 140 drives first actuator 111 according to a first target driving current to capture a first viewpoint image through first lens module 110. In step S440, processor 140 drives second actuator 121 according to a second target driving current to capture a second viewpoint image through second lens module 120.

於步驟S450,處理器140利用相同的一銳化參數對第一視角影像與第二視角影像分別進行影像邊緣增強處理。舉例而言,銳化參數可為高提昇濾波(High Boost Filtering)的增強因子(boost factor)。處理器140根據相同的一銳化參數分別對第一視角影像與第二視角影像進行一邊緣增強處理,以產生第一視角影像的邊緣增強影像與第二視角影像的邊緣增強影像。邊緣增強處理可增強影像中的邊緣或細節而使影像更加清晰。於一些實施例中,邊緣增強處理例如是高提昇濾波(High Boost Filtering)處理,但可不限制於此。進一步來說,在第一視角影像與第二視角影像的清晰度一致的情況下,處理器140可使用同一銳化參數來進行邊緣增強影像,而提升邊緣增強處理的效率。 In step S450, processor 140 performs edge enhancement processing on both the first viewpoint image and the second viewpoint image using the same sharpening parameter. For example, the sharpening parameter could be a boost factor for High Boost Filtering. Processor 140 performs edge enhancement processing on both the first viewpoint image and the second viewpoint image according to the same sharpening parameter to generate edge-enhanced images of the first viewpoint image and the second viewpoint image. Edge enhancement processing can enhance edges or details in the image, making the image sharper. In some embodiments, edge enhancement processing is, for example, High Boost Filtering processing, but it is not limited to this. Furthermore, when the first-view image and the second-view image have the same sharpening resolution, the processor 140 can use the same sharpening parameters to perform edge enhancement, thereby improving the efficiency of edge enhancement processing.

圖5是依據本發明一實施例的影像一致性提昇方法的流程圖。請參照圖5,本實施例的方法可由圖1的雙鏡頭電子裝置100執行,以下即搭配圖1所示的元件說明圖2各步驟的細節。 Figure 5 is a flowchart of an image consistency improvement method according to an embodiment of the present invention. Referring to Figure 5, the method of this embodiment can be executed by the dual-lens electronic device 100 shown in Figure 1. The details of each step in Figure 2 are explained below with reference to the components shown in Figure 1.

於步驟S510,處理器140利用第一鏡頭模組110執行自動對焦程序,以獲取對焦物距與第一鏡頭模組110的第一致動馬達的第一目標驅動電流。 In step S510, the processor 140 executes an autofocus procedure using the first lens module 110 to obtain the focusing distance and the first target driving current of the first actuation motor of the first lens module 110.

於步驟S520,處理器140利用一運動感測器150偵測雙鏡頭電子裝置100的拍攝方向。如同前述,運動感測器150可用以感測雙鏡頭電子裝置100的裝置姿態,致使處理器140可獲取雙鏡頭電子裝置100的拍攝方向(即第一鏡頭模組110與第二鏡頭模組120的拍攝方向)。 In step S520, processor 140 uses a motion sensor 150 to detect the shooting direction of the dual-lens electronic device 100. As described above, motion sensor 150 can be used to sense the device attitude of the dual-lens electronic device 100, so that processor 140 can obtain the shooting direction of the dual-lens electronic device 100 (i.e., the shooting direction of the first lens module 110 and the second lens module 120).

於步驟S530,處理器140根據雙鏡頭電子裝置100的拍攝方向,從第二鏡頭模組120的多個預設對焦查找表中挑選出第二對焦查找表T2。基於前述實施例說明可知,這些預設對焦查找表可分別對應至不同的拍攝方向。處理器140可根據當前的拍攝方向而從多個預設對焦查找表中挑選出對應於當前拍攝方向的第二對焦查找表T2。 In step S530, the processor 140 selects a second focus lookup table T2 from multiple preset focus lookup tables in the second lens module 120 based on the shooting direction of the dual-lens electronics 100. As described in the foregoing embodiment, these preset focus lookup tables can correspond to different shooting directions. The processor 140 can select the second focus lookup table T2 corresponding to the current shooting direction from the multiple preset focus lookup tables based on the current shooting direction.

需特別說明的是,同理,在處理器140使用第一鏡頭模組110的第一對焦查找表T1之前,處理器140可根據雙鏡頭電子裝置100的拍攝方向從第一鏡頭模組110的多個預設對焦查找表中挑選出第一對焦查找表T1。 It should be noted that, similarly, before the processor 140 uses the first focus lookup table T1 of the first lens module 110, the processor 140 can select the first focus lookup table T1 from multiple preset focus lookup tables of the first lens module 110 according to the shooting direction of the dual-lens electronic device 100.

於步驟S540,處理器140根據對焦物距與第二鏡頭模組120的第二對焦查找表T2,決定第二鏡頭模組120的第二致動馬達121的第二目標驅動電流。於步驟S550,處理器140依據第一目標驅動電流驅動第一致動馬達111而透過第一鏡頭模組110擷取第一視角影像。於於步驟S560,處理器140依據第二目標驅動電流驅動第二致動馬達121而透過第二鏡頭模組120擷取第二視角影像。 In step S540, processor 140 determines the second target driving current of the second actuator motor 121 of the second lens module 120 based on the focusing object distance and the second focus lookup table T2 of the second lens module 120. In step S550, processor 140 drives the first actuator motor 111 according to the first target driving current to capture a first viewpoint image through the first lens module 110. In step S560, processor 140 drives the second actuator motor 121 according to the second target driving current to capture a second viewpoint image through the second lens module 120.

須說明的是,以至少一處理器執行之影像一致性提昇方法的處理程序並不限於上述實施形態。舉例而言,可以其他順序執行各步驟。又,可組合上述步驟中之任二個以上的步驟,亦可修正步驟之一部分。或者,亦可除了上述各步驟外還執行其他步驟。 It should be noted that the processing procedure of the image consistency improvement method executed by at least one processor is not limited to the above-described implementation. For example, the steps can be executed in other orders. Furthermore, any two or more of the above steps can be combined, or a portion of the steps can be modified. Alternatively, other steps can be performed in addition to the steps described above.

綜上所述,於本發明的實施例中,可根據第一鏡頭模組的對焦結果來決定第二鏡頭模組所應用的馬達驅動電流。如此一來,可提昇不同視角影像的清晰度一致性,進而提昇雙目立體視覺技術的應用品質。除此之外,還可提升對焦效率與影像邊緣增強處理的處理效率。 In summary, in the embodiments of the present invention, the motor drive current applied to the second lens module can be determined based on the focusing result of the first lens module. This improves the consistency of image sharpness across different viewpoints, thereby enhancing the application quality of binocular stereoscopic vision technology. Furthermore, it also improves focusing efficiency and image edge enhancement processing efficiency.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed above with examples, it is not intended to limit the invention. Anyone skilled in the art may make modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

S210~S240:步驟 S210~S240: Steps

Claims (10)

一種影像一致性提昇方法,適於包括第一鏡頭模組與第二鏡頭模組的雙鏡頭電子裝置,所述方法包括: 利用所述第一鏡頭模組執行一自動對焦程序,以獲取一對焦物距與所述第一鏡頭模組的第一致動馬達的第一目標驅動電流; 根據所述對焦物距與所述第二鏡頭模組的第二對焦查找表,決定所述第二鏡頭模組的第二致動馬達的第二目標驅動電流,其中所述第二鏡頭模組的所述第二對焦查找表記錄多個預設對焦物距與所述第二致動馬達的多個第二驅動電流之間的映射關係; 依據所述第一目標驅動電流驅動所述第一致動馬達而透過所述第一鏡頭模組擷取第一視角影像;以及 依據所述第二目標驅動電流驅動所述第二致動馬達而透過所述第二鏡頭模組擷取第二視角影像。 An image consistency improvement method is suitable for a dual-lens electronic device including a first lens module and a second lens module. The method includes: Executing an autofocus procedure using the first lens module to acquire a focus distance and a first target driving current of a first actuation motor of the first lens module; Determining a second target driving current of a second actuation motor of the second lens module according to the focus distance and a second focus lookup table of the second lens module, wherein the second focus lookup table of the second lens module records mapping relationships between multiple preset focus distances and multiple second driving currents of the second actuation motor; Capturing a first-angle image through the first lens module by driving the first actuation motor according to the first target driving current; and The second target driving current drives the second actuator motor, thereby capturing a second viewpoint image through the second camera module. 如請求項1所述的影像一致性提昇方法,其中利用所述第一鏡頭模組執行所述自動對焦程序,以獲取所述對焦物距與所述第一鏡頭模組的所述第一致動馬達的所述第一目標驅動電流的步驟包括: 利用所述第一鏡頭模組執行所述自動對焦程序而獲取所述第一致動馬達的所述第一目標驅動電流;以及 根據所述第一目標驅動電流與所述第一鏡頭模組的第一對焦查找表,決定所述對焦物距, 其中所述第一鏡頭模組的所述第一對焦查找表記錄所述多個預設對焦物距與所述第一致動馬達的多個第一驅動電流之間的映射關係。 The image consistency improvement method as described in claim 1, wherein the step of executing the autofocus procedure using the first lens module to obtain the focus distance and the first target driving current of the first actuation motor of the first lens module includes: obtaining the first target driving current of the first actuation motor by executing the autofocus procedure using the first lens module; and determining the focus distance according to the first target driving current and a first focus lookup table of the first lens module, wherein the first focus lookup table of the first lens module records the mapping relationship between the plurality of preset focus distances and the plurality of first driving currents of the first actuation motor. 如請求項2所述的影像一致性提昇方法,還包括: 對所述第一鏡頭模組執行鏡頭校準程序,來建立所述第一鏡頭模組的所述第一對焦查找表;以及 對所述第二鏡頭模組執行所述鏡頭校準程序,來建立所述第二鏡頭模組的所述第二對焦查找表。 The image consistency improvement method as described in claim 2 further includes: performing a lens calibration procedure on the first lens module to establish a first focus lookup table for the first lens module; and performing the lens calibration procedure on the second lens module to establish a second focus lookup table for the second lens module. 如請求項1所述的影像一致性提昇方法,其中根據所述對焦物距與所述第二鏡頭模組的所述第二對焦查找表,決定所述第二鏡頭模組的所述第二致動馬達的所述第二目標驅動電流的步驟包括: 獲取所述第二對焦查找表中與所述對焦物距最相近的所述多個預設對焦物距其中二者;以及 對所述多個預設對焦物距其中二者所對應的所述多個驅動電流其中二者進行一插值處理,以決定所述第二致動馬達的所述第二目標驅動電流。 The image consistency improvement method as described in claim 1, wherein the step of determining the second target driving current of the second actuator of the second lens module based on the focusing distance and the second focusing lookup table of the second lens module includes: obtaining two of the plurality of preset focusing distances in the second focusing lookup table that are closest to the focusing distance; and performing an interpolation process on two of the plurality of driving currents corresponding to the two of the plurality of preset focusing distances to determine the second target driving current of the second actuator. 如請求項1所述的影像一致性提昇方法,其中所述第一致動馬達與所述第二致動馬達分別為一音圈馬達。The image consistency improvement method as described in claim 1, wherein the first actuating motor and the second actuating motor are each a voice coil motor. 如請求項1所述的影像一致性提昇方法,還包括: 利用一運動感測器偵測所述雙鏡頭電子裝置的拍攝方向;以及 根據所述雙鏡頭電子裝置的所述拍攝方向,從所述第二鏡頭模組的多個預設對焦查找表中挑選出所述第二對焦查找表。 The image consistency improvement method as described in claim 1 further includes: detecting the shooting direction of the dual-lens electronic device using a motion sensor; and selecting a second focus lookup table from a plurality of preset focus lookup tables of the second lens module based on the shooting direction of the dual-lens electronic device. 如請求項1所述的影像一致性提昇方法,還包括: 利用相同的一銳化參數對所述第一視角影像與所述第二視角影像分別進行影像邊緣增強處理。 The image consistency enhancement method as described in claim 1 further includes: Performing image edge enhancement processing on both the first view image and the second view image using the same sharpening parameters. 一種雙鏡頭電子裝置,包括: 一第一鏡頭模組,包括一第一致動馬達; 一第二鏡頭模組,包括一第二致動馬達; 一儲存裝置;以及 一處理器,耦接於所述第一鏡頭模組、所述第二鏡頭模組與所述儲存裝置,並經配置以: 利用所述第一鏡頭模組執行一自動對焦程序,以獲取一對焦物距與所述第一致動馬達的第一目標驅動電流; 根據所述對焦物距與所述第二鏡頭模組的第二對焦查找表,決定所述第二致動馬達的第二目標驅動電流,其中所述第二鏡頭模組的所述第二對焦查找表記錄多個預設對焦物距與所述第二致動馬達的多個第二驅動電流之間的映射關係; 依據所述第一目標驅動電流驅動所述第一致動馬達而透過所述第一鏡頭模組擷取第一視角影像;以及 依據所述第二目標驅動電流驅動所述第二致動馬達而透過所述第二鏡頭模組擷取第二視角影像。 A dual-lens electronic device includes: a first lens module including a first actuation motor; a second lens module including a second actuation motor; a storage device; and a processor coupled to the first lens module, the second lens module, and the storage device, and configured to: execute an autofocus procedure using the first lens module to acquire a focus distance and a first target driving current of the first actuation motor; determine a second target driving current of the second actuation motor according to the focus distance and a second focus lookup table of the second lens module, wherein the second focus lookup table of the second lens module records mapping relationships between multiple preset focus distances and multiple second driving currents of the second actuation motor; A first-view image is captured through the first lens module by driving the first actuator motor with a first target driving current; and a second-view image is captured through the second lens module by driving the second actuator motor with a second target driving current. 如請求項8所述的雙鏡頭電子裝置,其中所述儲存裝置記錄所述第一鏡頭模組的第一對焦查找表與所述所述第二鏡頭模組的所述第二對焦查找表,且所述第一鏡頭模組的所述第一對焦查找表記錄所述多個預設對焦物距與所述第一致動馬達的多個第一驅動電流之間的映射關係。The dual-lens electronic device as claimed in claim 8, wherein the storage device records a first focus lookup table of the first lens module and a second focus lookup table of the second lens module, and the first focus lookup table of the first lens module records the mapping relationship between the plurality of preset focus distances and the plurality of first driving currents of the first actuating motor. 如請求項8所述的雙鏡頭電子裝置,還包括一運動感測器,用以感測所述雙鏡頭電子裝置的拍攝方向,其中所述處理器根據所述雙鏡頭電子裝置的所述拍攝方向從所述第二鏡頭模組的多個預設對焦查找表中挑選出所述第二對焦查找表。The dual-lens electronic device as claimed in claim 8 further includes a motion sensor for sensing the shooting direction of the dual-lens electronic device, wherein the processor selects a second focus lookup table from a plurality of preset focus lookup tables of the second lens module based on the shooting direction of the dual-lens electronic device.
TW113128675A 2024-08-01 Dual-lens electronic apparatus and image consistency improvement method thereof TWI906985B (en)

Publications (1)

Publication Number Publication Date
TWI906985B true TWI906985B (en) 2025-12-01

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220066286A1 (en) 2020-09-01 2022-03-03 Sorenson Ip Holdings, Llc System, Method, and Computer-Readable Medium for Autofocusing a Videophone Camera

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220066286A1 (en) 2020-09-01 2022-03-03 Sorenson Ip Holdings, Llc System, Method, and Computer-Readable Medium for Autofocusing a Videophone Camera

Similar Documents

Publication Publication Date Title
CN108076286B (en) Image blurring method and device, mobile terminal and storage medium
CN101713902B (en) Fast camera auto-focus
US9313419B2 (en) Image processing apparatus and image pickup apparatus where image processing is applied using an acquired depth map
JP4497211B2 (en) Imaging apparatus, imaging method, and program
JP5156837B2 (en) System and method for depth map extraction using region-based filtering
US8335393B2 (en) Image processing apparatus and image processing method
TWI538512B (en) Method and electronic device for adjusting focus position
CN108432230B (en) Imaging device and method for displaying an image of a scene
JP7584901B2 (en) Electronic device and control method thereof
CN108924428A (en) A kind of Atomatic focusing method, device and electronic equipment
CN102696219A (en) Imaging device, imaging method, program, and integrated circuit
CN107950018A (en) The shallow depth of field true to nature presented by focus stack
US20140307054A1 (en) Auto focus method and auto focus apparatus
JP2013026844A (en) Image generation method and device, program, recording medium, and electronic camera
WO2011014421A2 (en) Methods, systems, and computer-readable storage media for generating stereoscopic content via depth map creation
JP2017220885A (en) Image processing system, control method, and control program
JP5889022B2 (en) Imaging apparatus, image processing apparatus, image processing method, and program
JP2015111811A (en) Image processing apparatus and control method of the same
JP2023033355A (en) Image processing device and its control method
CN116456191A (en) Image generation method, device, equipment and computer readable storage medium
TWI906985B (en) Dual-lens electronic apparatus and image consistency improvement method thereof
US10084950B2 (en) Image capturing apparatus
CN111292380B (en) Image processing method and device
JP6645711B2 (en) Image processing apparatus, image processing method, and program
JP2012142729A (en) Camera