TWI595444B - Image capturing device, depth information generation method and auto-calibration method thereof - Google Patents

Image capturing device, depth information generation method and auto-calibration method thereof Download PDF

Info

Publication number
TWI595444B
TWI595444B TW104144379A TW104144379A TWI595444B TW I595444 B TWI595444 B TW I595444B TW 104144379 A TW104144379 A TW 104144379A TW 104144379 A TW104144379 A TW 104144379A TW I595444 B TWI595444 B TW I595444B
Authority
TW
Taiwan
Prior art keywords
image
lens
resolution
feature points
scene
Prior art date
Application number
TW104144379A
Other languages
Chinese (zh)
Other versions
TW201719579A (en
Inventor
簡永飛
王煜智
周宏隆
莊哲綸
王耀笙
Original Assignee
聚晶半導體股份有限公司
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 聚晶半導體股份有限公司 filed Critical 聚晶半導體股份有限公司
Priority to US15/015,141 priority Critical patent/US20170155889A1/en
Publication of TW201719579A publication Critical patent/TW201719579A/en
Application granted granted Critical
Publication of TWI595444B publication Critical patent/TWI595444B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/271Image signal generators wherein the generated image signals comprise depth maps or disparity maps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/128Adjusting depth or disparity

Description

影像擷取裝置及其產生深度資訊的方法與自動校正的方法Image capturing device and method for generating depth information thereof and method for automatically correcting

本發明是有關於一種影像擷取裝置,且特別是有關於一種影像擷取裝置及其產生深度資訊的方法與自動校正的方法。The present invention relates to an image capturing device, and more particularly to an image capturing device and a method for generating depth information and a method for automatically correcting the same.

隨著科技的發展,各式各樣的智慧型影像擷取裝置,舉凡平板型電腦、個人數位化助理、智慧型手機等,已成為現代人不可或缺的工具。其中,高階款的智慧型影像擷取裝置所搭載的相機鏡頭已經與傳統消費型相機不相上下,甚至可以取而代之,少數高階款更具有接近數位單眼的畫素和畫質或是拍攝三維影像的功能。With the development of science and technology, a variety of intelligent image capture devices, such as tablet computers, personal digital assistants, smart phones, etc., have become indispensable tools for modern people. Among them, the high-end smart image capture device is equipped with a camera lens that is comparable to a traditional consumer camera, and can even be replaced by a few high-end models with near-digit monocular pixels and image quality or 3D images. Features.

一般而言,工廠在生產具有雙鏡頭的影像擷取裝置時,雙鏡頭各自對應的空間位置無法精準地設置於預設的位置。因此,於生產的過程中,工廠往往會預先針對已設置的雙鏡頭模組進行測試以及校正,從而獲取一組工廠預設的校正參數。爾後,當使用者在使用影像擷取裝置的過程中,影像擷取裝置可利用工廠預設的校正參數來校正雙鏡頭所擷取的影像,以克服製程不夠精密的缺失。In general, when a factory produces a two-lens image capturing device, the corresponding spatial position of the two lenses cannot be accurately set to a preset position. Therefore, during the production process, the factory often tests and calibrates the set dual lens module in advance to obtain a set of factory preset calibration parameters. Then, when the user uses the image capturing device, the image capturing device can use the factory preset calibration parameters to correct the image captured by the dual lens to overcome the lack of precision of the process.

然而,上述的測試以及校正程序往往會耗費大量的生產成本。此外,一般使用者在實際地使用上述影像擷取裝置時,影像擷取裝置往往會由於不慎摔落、撞擊、擠壓、溫度或濕度的變化等外在因素而導致雙鏡頭產生位移或旋轉等空間位置上的改變。一旦鏡頭產生位移或旋轉,工廠內部所預設的校正參數已經不再符合當前的應用狀況,影像擷取裝置也就無法獲取正確的深度資訊。舉例來說,如果立體影像擷取裝置的雙鏡頭間產生水平失衡的問題時,由於失衡之後拍攝出來的左右畫面水平不匹配,將進一步導致三維立體拍攝效果不佳。However, the above tests and calibration procedures often cost a lot of production costs. In addition, when the above-mentioned image capturing device is actually used by a general user, the image capturing device often causes displacement or rotation of the double lens due to external factors such as accidental dropping, impact, extrusion, temperature or humidity change. Changes in the position of the space. Once the lens is displaced or rotated, the preset calibration parameters in the factory no longer conform to the current application, and the image capture device cannot obtain the correct depth information. For example, if the horizontal imbalance occurs between the two lenses of the stereoscopic image capturing device, the left and right picture levels that are captured after the imbalance are not matched, which may further result in poor three-dimensional stereo shooting.

有鑑於此,本發明提供一種影像擷取裝置及其產生深度資訊的方法與自動校正的方法,其可在無須經過影像擷取裝置的出廠前調校的前提下,即時地產生拍攝場景的深度資訊以及產生自動校正後的立體影像。In view of the above, the present invention provides an image capturing device, a method for generating depth information thereof, and a method for automatically correcting, which can instantly generate a depth of a shooting scene without pre-factoring adjustment of the image capturing device. Information and the generation of automatically corrected stereo images.

本發明提出一種影像擷取裝置產生深度資訊的方法,適用於具有第一鏡頭以及第二鏡頭並且無須預先校正的影像擷取裝置,包括下列步驟。首先,利用第一鏡頭以及第二鏡頭擷取一場景的影像,以產生此場景的第一影像及第二影像。偵測第一影像中的多個第一特徵點以及第二影像中的多個第二特徵點,以計算第一影像與第二影像之間的畫素偏移資訊,從而取得第一影像與第二影像之間的旋轉角度。根據畫素偏移資訊及旋轉角度,針對第一影像以及第二影像進行影像扭轉程序,以分別產生相互對準的第一參考影像及第二參考影像。根據第一參考影像以及第二參考影像,計算上述場景的深度資訊。The invention provides a method for generating depth information by an image capturing device, which is suitable for an image capturing device having a first lens and a second lens without prior correction, and includes the following steps. First, the first lens and the second lens are used to capture an image of a scene to generate a first image and a second image of the scene. Detecting a plurality of first feature points in the first image and a plurality of second feature points in the second image to calculate pixel offset information between the first image and the second image, thereby obtaining the first image and The angle of rotation between the second images. The image torsion procedure is performed on the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image and the second reference image that are aligned with each other. Calculating depth information of the scene according to the first reference image and the second reference image.

本發明提出一種影像擷取裝置自動校正的方法,適用於具有第一鏡頭以及第二鏡頭並且無須預先校正的影像擷取裝置,包括下列步驟。首先,利用第一鏡頭以及第二鏡頭擷取一場景的影像,以產生此場景的第一影像及第二影像。偵測第一影像中的多個第一特徵點以及第二影像中的多個第二特徵點,以計算第一影像與第二影像之間的畫素偏移資訊,從而取得第一影像與第二影像之間的旋轉角度。根據畫素偏移資訊及旋轉角度,針對第一影像以及第二影像進行影像扭轉程序,以分別產生相互對準的第一參考影像及第二參考影像。利用第一參考影像以及第二參考影像,產生上述場景的立體影像。The invention provides a method for automatically correcting an image capturing device, which is suitable for an image capturing device having a first lens and a second lens without prior correction, and includes the following steps. First, the first lens and the second lens are used to capture an image of a scene to generate a first image and a second image of the scene. Detecting a plurality of first feature points in the first image and a plurality of second feature points in the second image to calculate pixel offset information between the first image and the second image, thereby obtaining the first image and The angle of rotation between the second images. The image torsion procedure is performed on the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image and the second reference image that are aligned with each other. A stereoscopic image of the scene is generated by using the first reference image and the second reference image.

在本發明的一實施例中,上述偵測第一影像中的多個第一特徵點以及第二影像中的多個第二特徵點,以計算第一影像與第二影像之間的畫素偏移資訊的步驟包括先偵測第一影像以及第二影像中的多個特徵點,又比對第一影像以及第二影像中的各個特徵點,以取得多個對應特徵點組合,再取得各個第一特徵點以及各個第二特徵點分別於第一影像以及第二影像中的畫素座標,據以計算第一影像與第二影像之間的畫素偏移資訊,其中各個對應特徵點組合包括各個第一特徵點以及各個第一特徵點所對應的第二特徵點。In an embodiment of the invention, the detecting a plurality of first feature points in the first image and the plurality of second feature points in the second image to calculate a pixel between the first image and the second image The step of offsetting information includes first detecting a plurality of feature points in the first image and the second image, and comparing each feature point in the first image and the second image to obtain a plurality of corresponding feature point combinations, and then obtaining Each of the first feature points and each of the second feature points is respectively a pixel coordinate in the first image and the second image, and the pixel offset information between the first image and the second image is calculated, wherein each corresponding feature point is calculated. The combination includes each of the first feature points and a second feature point corresponding to each of the first feature points.

在本發明的一實施例中,上述取得第一影像與第二影像之間的旋轉角度的步驟包括根據各個第一特徵點以及各個第二特徵點分別於第一影像以及第二影像中的畫素座標以及畫素偏移資訊,計算第一影像與第二影像之間的旋轉角度。In an embodiment of the invention, the step of obtaining the rotation angle between the first image and the second image includes: painting each of the first image and the second image according to each of the first feature points and the second feature points. The pixel coordinates and the pixel offset information calculate a rotation angle between the first image and the second image.

在本發明的一實施例中,上述根據畫素偏移資訊及旋轉角度,針對第一影像以及第二影像進行影像扭轉程序,以分別產生相互對準的第一參考影像及第二參考影像的步驟包括根據畫素偏移資訊以及旋轉角度,校正第一影像以及第二影像至少之一者的畫素座標,以分別產生第一參考影像以及第二參考影像。In an embodiment of the invention, the image torsion procedure is performed on the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image and the second reference image that are aligned with each other. The step includes correcting the pixel coordinates of at least one of the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image and the second reference image.

在本發明的一實施例中,上述根據第一參考影像以及第二參考影像,計算上述場景的深度資訊的步驟包括利用第一參考影像以及第二參考影像進行三維深度估測,以產生上述場景的深度資訊。In an embodiment of the invention, the step of calculating depth information of the scene according to the first reference image and the second reference image comprises performing third-dimensional depth estimation by using the first reference image and the second reference image to generate the scenario. Depth information.

在本發明的一實施例中,當第一影像的解析度不等於第二影像的解析度時,在分別產生上述場景的第一影像以及第二影像的步驟之後,更包括調整第一影像的解析度以及第二影像的解析度其中至少之一者,以使第一影像的解析度與第二影像的解析度相同。In an embodiment of the present invention, when the resolution of the first image is not equal to the resolution of the second image, after the step of respectively generating the first image and the second image of the scene, the method further includes: adjusting the first image. At least one of the resolution and the resolution of the second image is such that the resolution of the first image is the same as the resolution of the second image.

本發明另提出一種無須預先校正的影像擷取裝置,包括第一鏡頭、第二鏡頭、儲存單元以及一或多個處理單元。儲存單元耦接第一鏡頭以及第二鏡頭,用以儲存第一鏡頭以及第二鏡頭所擷取的影像。處理器耦接第一鏡頭、第二鏡頭以及記憶體,並且包括多個模組,其中所述模組包括影像擷取模組、特徵點偵測模組、影像扭轉模組以及影像處理模組。影像擷取模組用以利用第一鏡頭以及第二鏡頭擷取一場景的影像,以產生此場景的第一影像及第二影像。特徵點偵測模組用以偵測第一影像中的多個第一特徵點以及第二影像中的多個第二特徵點,以計算第一影像與第二影像之間的畫素偏移資訊,從而取得第一影像與第二影像之間的旋轉角度。影像扭轉模組用以根據畫素偏移資訊及旋轉角度,針對第一影像以及第二影像進行影像扭轉程序,以分別產生相互對準的第一參考影像及第二參考影像。深度計算模組用以根據第一參考影像以及第二參考影像,計算上述場景的深度資訊。The invention further provides an image capturing device without prior correction, comprising a first lens, a second lens, a storage unit and one or more processing units. The storage unit is coupled to the first lens and the second lens for storing images captured by the first lens and the second lens. The processor is coupled to the first lens, the second lens, and the memory, and includes a plurality of modules, wherein the module includes an image capturing module, a feature point detecting module, an image torsion module, and an image processing module. . The image capturing module is configured to capture an image of a scene by using the first lens and the second lens to generate a first image and a second image of the scene. The feature point detection module is configured to detect a plurality of first feature points in the first image and a plurality of second feature points in the second image to calculate a pixel offset between the first image and the second image Information to obtain a rotation angle between the first image and the second image. The image torsion module is configured to perform an image torsion process on the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image and the second reference image that are aligned with each other. The depth calculation module is configured to calculate depth information of the scene according to the first reference image and the second reference image.

在本發明的一實施例中,上述的影像擷取裝置更包括影像調整模組,當第一影像的解析度不等於第二影像的解析度時,影像調整模組用以調整第一影像的解析度以及第二影像的解析度其中至少之一者,以使第一影像的解析度與第二影像的解析度相同。In an embodiment of the invention, the image capturing device further includes an image adjusting module. When the resolution of the first image is not equal to the resolution of the second image, the image adjusting module is configured to adjust the first image. At least one of the resolution and the resolution of the second image is such that the resolution of the first image is the same as the resolution of the second image.

在本發明的一實施例中,上述的影像擷取裝置更包括深度計算模組,用以根據第一參考影像以及第二參考影像,計算上述場景的深度資訊。In an embodiment of the present invention, the image capturing device further includes a depth calculation module, configured to calculate depth information of the scene according to the first reference image and the second reference image.

在本發明的一實施例中,上述第一鏡頭與第二鏡頭具有不同的光學特性或是不同的解析度。In an embodiment of the invention, the first lens and the second lens have different optical characteristics or different resolutions.

在本發明的一實施例中,上述第一鏡頭與第二鏡頭具有相同的光學特性以及相同的解析度。In an embodiment of the invention, the first lens and the second lens have the same optical characteristics and the same resolution.

基於上述,本發明所提出的影像擷取裝置及其產生深度資訊的方法與自動校正的方法中,其可在影像擷取裝置利用雙鏡頭擷取兩張影像後,利用特徵點的偵測來取得兩張影像之間的畫素偏移資訊以及旋轉角度,據以對準兩張影像,從而取得拍攝場景的深度資訊以及產生立體影像。本發明的影像擷取裝置無須經過出廠前校正,即可即時地產生拍攝場景的深度資訊以及產生自動校正後的立體影像,以節省大量的生產成本。Based on the above, the image capturing device and the method for generating the depth information and the method for automatically correcting the image capture device can use the feature point detection after the image capturing device captures two images by using the dual lens. The pixel offset information and the rotation angle between the two images are obtained, and the two images are aligned to obtain depth information of the shooting scene and generate a stereo image. The image capturing device of the invention can generate the depth information of the shooting scene and generate the automatically corrected stereo image in real time without the need of the factory calibration, thereby saving a large production cost.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.

本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的裝置與方法的範例。The components of the present invention will be described in detail in the following description in conjunction with the accompanying drawings. These examples are only a part of the invention and do not disclose all of the embodiments of the invention. Rather, these embodiments are merely examples of devices and methods within the scope of the patent application of the present invention.

圖1是根據本發明一實施例所繪示之影像擷取裝置的方塊圖,但此僅是為了方便說明,並不用以限制本發明。首先圖1先介紹影像擷取裝置之所有構件以及配置關係,詳細功能將配合圖2一併揭露。本發明的影像擷取裝置無須經過模組廠調校,即可即時地產生拍攝場景的深度資訊以及產生自動校正後的立體影像,以節省大量的生產成本。1 is a block diagram of an image capture device according to an embodiment of the invention, but is for convenience of description and is not intended to limit the present invention. First, all components and configuration relationships of the image capturing device will be described first in FIG. 1. The detailed functions will be disclosed in conjunction with FIG. The image capturing device of the invention can instantly generate the depth information of the shooting scene and generate the automatically corrected stereo image without the need of adjustment by the module factory, thereby saving a large production cost.

請參照圖1,影像擷取裝置100包括第一鏡頭110a、第二鏡頭110b、記憶體115以及一或多個處理器120。在本實施例中,影像擷取裝置100例如是數位相機、單眼相機、數位攝影機或是其他具有影像擷取功能的智慧型手機、平板電腦、個人數位助理等電子裝置,本發明不以此為限。Referring to FIG. 1 , the image capturing device 100 includes a first lens 110 a , a second lens 110 b , a memory 115 , and one or more processors 120 . In this embodiment, the image capturing device 100 is, for example, a digital camera, a monocular camera, a digital camera, or other electronic device having a video capturing function, such as a smart phone, a tablet computer, and a personal digital assistant. limit.

第一鏡頭110a以及第二鏡頭110b包括感光元件,用以分別感測進入第一鏡頭110a以及第二鏡頭110b的光線強度,進而分別產生影像。所述的感光元件例如是電荷耦合元件(Charge Coupled Device,CCD)、互補性氧化金屬半導體(Complementary Metal-Oxide Semiconductor,CMOS)元件或其他元件。在本實施例中,第一鏡頭110a以及第二鏡頭110b為具有相同解析度以及相同光學特性的兩個鏡頭。然而,在其它的實施例中,第一鏡頭110a以及第二鏡頭110b為具有不同解析度或者是不同焦段、感光尺寸、變形程度等光學特性的兩個鏡頭。舉例來說,第一鏡頭110a可以是遠攝鏡頭(Telephoto Lens),而第二鏡頭110b可以是廣角鏡頭(Wide-angle Lens);或者第一鏡頭110a可以是具有高解析度的鏡頭,而第二鏡頭110b可以是具有低解析度的鏡頭。The first lens 110a and the second lens 110b include photosensitive elements for respectively sensing the light intensities entering the first lens 110a and the second lens 110b, thereby respectively generating images. The photosensitive element is, for example, a Charge Coupled Device (CCD), a Complementary Metal-Oxide Semiconductor (CMOS) element, or other components. In the present embodiment, the first lens 110a and the second lens 110b are two lenses having the same resolution and the same optical characteristics. However, in other embodiments, the first lens 110a and the second lens 110b are two lenses having different resolutions or optical characteristics such as different focal lengths, photosensitive dimensions, and degree of deformation. For example, the first lens 110a may be a telephoto lens (Telephoto Lens), and the second lens 110b may be a wide-angle lens (Wide-angle Lens); or the first lens 110a may be a lens with high resolution, and the second lens The lens 110b may be a lens having a low resolution.

記憶體115例如是任意型式的固定式或可移動式隨機存取記憶體(Random Access Memory,RAM)、唯讀記憶體(Read-Only Memory,ROM)、快閃記憶體(Flash Memory)、硬碟或其他類似裝置或這些裝置的組合。記憶體115耦接至第一鏡頭110a以及第二鏡頭110b,用以儲存第一鏡頭110a以及第二鏡頭110b所擷取的影像。The memory 115 is, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory, and hard memory. Disc or other similar device or a combination of these devices. The memory 115 is coupled to the first lens 110a and the second lens 110b for storing images captured by the first lens 110a and the second lens 110b.

處理器120可以例如是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)或其他類似裝置或這些裝置的組合。處理器120耦接第一鏡頭110a、第二鏡頭110b以及記憶體115,其例如包括影像擷取模組122、特徵點偵測模組124、影像扭轉模組126以及深度計算模組128,以根據影像擷取裝置100所擷取的影像產生深度資訊。以下即列舉實施例說明針對影像擷取裝置100產生深度資訊的方法的詳細步驟。The processor 120 can be, for example, a central processing unit (CPU), or other programmable general purpose or special purpose microprocessor (Microprocessor), digital signal processor (DSP), Programmable controllers, Application Specific Integrated Circuits (ASICs), Programmable Logic Devices (PLDs), or other similar devices or combinations of these devices. The processor 120 is coupled to the first lens 110a, the second lens 110b, and the memory 115, and includes, for example, an image capturing module 122, a feature point detecting module 124, an image twisting module 126, and a depth calculating module 128. The depth information is generated according to the image captured by the image capturing device 100. The following is a detailed description of the detailed steps of the method for generating depth information for the image capturing device 100.

圖2為根據本發明之一實施例所繪示的影像擷取裝置的影像對準及產生深度資訊的方法流程圖,而圖2的方法可以圖1的影像擷取裝置100的各元件實現。2 is a flow chart of a method for image alignment and depth information generation of an image capture device according to an embodiment of the invention, and the method of FIG. 2 may be implemented by various components of the image capture device 100 of FIG.

請同時參照圖1以及圖2,首先,影像擷取裝置100的影像擷取模組122將利用第一鏡頭110a以及第二鏡頭110b擷取一場景的影像,以分別產生上述場景的第一影像以及第二影像(步驟S202)。詳細來說,影像擷取模組122分別利用第一鏡頭110a以及第二鏡頭110b所擷取的第一影像以及第二影像為利用不同視角針對同一場景所擷取的兩張影像,其可以例如是預覽狀態下所擷取的即時預覽影像(Live-view Image)。在此,第一鏡頭110a以及第二鏡頭110b例如是採用相同的參數擷取影像,而所述參數包括焦距、光圈、快門、白平衡等,本實施例並不設限。Referring to FIG. 1 and FIG. 2, first, the image capturing module 122 of the image capturing device 100 captures images of a scene by using the first lens 110a and the second lens 110b to respectively generate the first image of the scene. And a second image (step S202). In detail, the first image and the second image captured by the image capturing module 122 by using the first lens 110a and the second lens 110b are two images captured by the different viewing angles for the same scene, which may be, for example, It is a Live-view Image captured in the preview state. Here, the first lens 110a and the second lens 110b capture images by using the same parameters, for example, and the parameters include a focal length, an aperture, a shutter, a white balance, and the like, which are not limited in this embodiment.

接著,特徵點偵測模組124將偵測第一影像中的多個第一特徵點以及第二影像中的多個第二特徵點,以計算第一影像與第二影像之間的畫素偏移資訊,從而取得第一影像與第二影像之間的旋轉角度(步驟S204),其中前述的各個第一特徵點具有與其所相對應的第二特徵點。Then, the feature point detection module 124 detects a plurality of first feature points in the first image and a plurality of second feature points in the second image to calculate a pixel between the first image and the second image. The information is offset to obtain a rotation angle between the first image and the second image (step S204), wherein each of the foregoing first feature points has a second feature point corresponding thereto.

詳細來說,特徵點偵測模組124可利用邊緣偵測(Edge Detection)、角偵測(Corner Detection)、區域偵測(Blob Detection) 或其它特徵點偵測演算法(Feature Detection Algorithm)來偵測出第一影像以及第二影像中的多個特徵點。接著,特徵點偵測模組124將會自第一影像以及第二影像中所偵測出的特徵點進行比對,以依據特徵點與鄰近點的色彩資訊從第一影像以及第二影像中找出多組對應特徵點組合。特徵點偵測模組124在比對出每一組對應特徵點組合的第一特徵點以及第二特徵點後,將取得其在第一影像以及第二影像中的畫素座標,據以計算第一影像與第二影像之間的畫素偏移資訊。在此,第一影像與第二影像之間的畫素偏移資訊即代表第一鏡頭110a以及/或第二鏡頭110b的位移程度。In detail, the feature point detection module 124 can use Edge Detection, Corner Detection, Blob Detection or other Feature Detection Algorithm. A plurality of feature points in the first image and the second image are detected. Then, the feature point detection module 124 compares the feature points detected by the first image and the second image, so as to be from the first image and the second image according to the color information of the feature point and the adjacent point. Find multiple sets of corresponding feature point combinations. After comparing the first feature point and the second feature point of each set of corresponding feature points, the feature point detection module 124 obtains the pixel coordinates in the first image and the second image, and calculates The pixel offset information between the first image and the second image. Here, the pixel offset information between the first image and the second image represents the degree of displacement of the first lens 110a and/or the second lens 110b.

具體來說,由於第一影像以及第二影像是利用具有不同視角的第一鏡頭110a以及第二鏡頭110b所擷取的影像,在理想狀態下,第一影像以及第二影像中相對應的第一特徵點以及第二特徵點在經由座標轉換後將投影至參考座標系統下的相同座標點。反之,若第一影像以及第二影像上相對應的特徵點未投影至參考座標系統下的相同座標點,則特徵點偵測模組124將會取得每組對應特徵點組合的偏移量,以在後續的步驟中依此進行影像對準的程序。Specifically, since the first image and the second image are images captured by the first lens 110a and the second lens 110b having different viewing angles, in an ideal state, the corresponding image in the first image and the second image A feature point and a second feature point will be projected to the same coordinate point under the reference coordinate system after being converted via coordinates. On the other hand, if the corresponding feature points on the first image and the second image are not projected to the same coordinate point under the reference coordinate system, the feature point detection module 124 will obtain the offset of the corresponding feature point combination of each group. The program for image alignment is performed in the subsequent steps.

以另一觀點來看,由於第一鏡頭110a以及第二鏡頭110b的位置設置,在理想狀態下的第一影像以及第二影像中僅會存在水平像差或是垂直像差。假設第一鏡頭110a以及第二鏡頭110b為分別設置於同一取像平面的左右鏡頭,則第一影像以及第二影像應當僅存在水平位置的差異。因此,若第一影像以及第二影像上相對應的特徵點存在垂直位置的差異,則特徵點偵測模組124將會取得每組對應特徵點組合的垂直偏移量,以在後續的步驟中依此進行影像對準的程序。From another point of view, due to the positional setting of the first lens 110a and the second lens 110b, only horizontal aberration or vertical aberration may exist in the first image and the second image in an ideal state. Assuming that the first lens 110a and the second lens 110b are left and right lenses respectively disposed on the same image capturing plane, the first image and the second image should have only a difference in horizontal position. Therefore, if there is a difference in vertical position between the corresponding feature points on the first image and the second image, the feature point detection module 124 will obtain a vertical offset of each set of corresponding feature point combinations for subsequent steps. The program for image alignment is performed accordingly.

一般而言,鏡頭在發生位移時,往往會伴隨著旋轉。因此,特徵點偵測模組124在取得第一影像與第二影像的畫素座標以及兩者之間的畫素偏移資訊,會更進一步地計算出第一影像與第二影像之間的旋轉角度,以得知第一鏡頭110a以及/或第二鏡頭110b的旋轉程度。In general, when the lens is displaced, it tends to rotate. Therefore, the feature point detection module 124 obtains the pixel coordinates of the first image and the second image and the pixel offset information between the two, and further calculates the relationship between the first image and the second image. The angle of rotation is used to know the degree of rotation of the first lens 110a and/or the second lens 110b.

之後,影像扭轉模組126將根據畫素偏移資訊以及旋轉角度,針對第一影像以及第二影像進行影像扭轉程序,以分別產生第一參考影像以及第二參考影像,其中第一參考影像與第二參考影像互相對準(步驟S206)。換句話說,影像扭轉模組126將根據畫素偏移資訊以及旋轉角度,校正第一影像以及/或第二影像的影像座標,以使校正後的影像得以對準。亦即,校正後所產生的第一參考影像以及第二參考影像在經由座標轉換後將投影至參考座標系統下的相同座標點。以另一觀點來看,假設第一鏡頭110a以及第二鏡頭110b為分別設置於同一取像平面的左右鏡頭,影像扭轉後所產生的第一參考影像以及第二參考影像僅會存在水平像差。Afterwards, the image torsion module 126 performs an image torsion process for the first image and the second image according to the pixel offset information and the rotation angle to respectively generate a first reference image and a second reference image, wherein the first reference image and the first reference image are respectively The second reference images are aligned with each other (step S206). In other words, the image torsion module 126 will correct the image coordinates of the first image and/or the second image according to the pixel offset information and the rotation angle to align the corrected image. That is, the first reference image and the second reference image generated after the correction are projected to the same coordinate point under the reference coordinate system after being converted by coordinates. From another point of view, it is assumed that the first lens 110a and the second lens 110b are left and right lenses respectively disposed on the same image capturing plane, and the first reference image and the second reference image generated after the image is twisted only have horizontal aberrations. .

接著,深度計算模組128將利用第一參考影像以及第二參考影像進行三維深度估測,以產生前述場景的深度資訊(步驟S208)。具體來說,深度計算模組128可針對第一參考影像以及第二參考影像中的各個畫素進行立體比對(Stereo Matching),以取得各個畫素所對應的深度資訊。此外,深度計算模組128更可以例如是深度圖(Depth Map)的形式將深度資訊記錄於記憶體115中,以做為影像處理的應用。Next, the depth calculation module 128 performs three-dimensional depth estimation using the first reference image and the second reference image to generate depth information of the foregoing scene (step S208). Specifically, the depth calculation module 128 may perform Stereo Matching on each pixel in the first reference image and the second reference image to obtain depth information corresponding to each pixel. In addition, the depth calculation module 128 can record the depth information in the memory 115 in the form of, for example, a depth map (Depth Map), as an application for image processing.

附帶一提的是,在另一實施例中,當第一鏡頭110a不同於第二鏡頭110b時,影像擷取裝置100更包括影像調整模組(未繪示),用以調整第一影像以及第二影像。舉例來說,當第一影像的解析度與第二影像的解析度不相同時,影像調整模組可以在影像擷取模組122於步驟S202中擷取第一影像以及第二影像後,將第一影像以及第二影像調整為相同解析度的兩張影像,以利於後續步驟的偵測以及計算更為精準。It is to be noted that, in another embodiment, when the first lens 110a is different from the second lens 110b, the image capturing device 100 further includes an image adjusting module (not shown) for adjusting the first image and Second image. For example, when the resolution of the first image is different from the resolution of the second image, the image adjustment module may capture the first image and the second image in step S202 after the image capturing module 122 captures the first image and the second image. The first image and the second image are adjusted to two images of the same resolution to facilitate detection and calculation of subsequent steps.

圖3是根據本發明另一實施例所繪示之影像擷取裝置的方塊圖,但此僅是為了方便說明,並不用以限制本發明。FIG. 3 is a block diagram of an image capture device according to another embodiment of the present invention, but is for convenience of description and is not intended to limit the present invention.

請參照圖3,影像擷取裝置300包括第一鏡頭310a、第二鏡頭310b、記憶體315以及處理器320,其類似於圖1中的第一鏡頭310a、第二鏡頭310b、記憶體315以及處理器320,詳細說明請參照前述相關段落,於此不再贅述。影像擷取裝置300的處理器320包括影像擷取模組322、特徵點偵測模組324、影像扭轉模組326以及影像處理模組328,以針對影像擷取裝置300所擷取的影像進行即時的自動校正。以下即列舉實施例說明針對影像擷取裝置300進行自動校正的方法的詳細步驟。Referring to FIG. 3 , the image capturing device 300 includes a first lens 310 a , a second lens 310 b , a memory 315 , and a processor 320 , which are similar to the first lens 310 a , the second lens 310 b , and the memory 315 in FIG. 1 . For detailed description of the processor 320, please refer to the related paragraphs mentioned above, and details are not described herein again. The processor 320 of the image capturing device 300 includes an image capturing module 322, a feature point detecting module 324, an image twisting module 326, and an image processing module 328 for performing images captured by the image capturing device 300. Instant automatic correction. The following is a detailed description of the detailed steps of the method for automatically correcting the image capturing device 300.

圖4為根據本發明之一實施例所繪示的影像擷取裝置的自動校正的方法流程圖,而圖4的方法可以圖3的影像擷取裝置300的各元件實現。4 is a flow chart of a method for automatically correcting an image capturing device according to an embodiment of the present invention, and the method of FIG. 4 may be implemented by various components of the image capturing device 300 of FIG.

首先,影像擷取裝置300的影像擷取模組322將利用第一鏡頭310a以及第二鏡頭310b擷取一場景的影像,以分別產生上述場景的第一影像以及第二影像(步驟S402)。接著,特徵點偵測模組324將偵測第一影像中的多個第一特徵點以及第二影像中的多個第二特徵點,以計算第一影像與第二影像之間的畫素偏移資訊,從而取得第一影像與第二影像之間的旋轉角度(步驟S404)。之後,影像扭轉模組326將根據畫素偏移資訊以及旋轉角度,針對第一影像以及第二影像進行影像扭轉程序,以分別產生第一參考影像以及第二參考影像,其中第一參考影像與第二參考影像互相對準(步驟S406)。步驟S402、S404以及S406的處理方式請參照前述段落有關於步驟S202、S204以及S206的相關說明,於此不再贅述。First, the image capturing module 322 of the image capturing device 300 captures the image of a scene by using the first lens 310a and the second lens 310b to generate the first image and the second image of the scene respectively (step S402). Then, the feature point detection module 324 detects a plurality of first feature points in the first image and a plurality of second feature points in the second image to calculate a pixel between the first image and the second image. The information is shifted to obtain a rotation angle between the first image and the second image (step S404). Afterwards, the image torsion module 326 performs an image torsion process for the first image and the second image according to the pixel offset information and the rotation angle to respectively generate a first reference image and a second reference image, wherein the first reference image and the first reference image are respectively The second reference images are aligned with each other (step S406). For the processing of steps S402, S404, and S406, refer to the related descriptions of steps S202, S204, and S206 in the foregoing paragraphs, and details are not described herein again.

接著,影像處理模組328將利用第一參考影像以及第二參考影像,產生上述場景的立體影像(步驟S408)。在本實施例中,第一參考影像與第二參考影像相互對準後,影像處理模組328可以是直接輸出第一參考影像以及第二參考影像來做為立體影像。在另一實施例中,影像處理模組328更可進一步地調整第一參考影像以及/或第二參考影像的色彩、亮度等參數,以產生兩張色彩、亮度上相匹配的影像,從而產生出自然調和的立體影像。Next, the image processing module 328 will generate a stereoscopic image of the scene by using the first reference image and the second reference image (step S408). In this embodiment, after the first reference image and the second reference image are aligned with each other, the image processing module 328 may directly output the first reference image and the second reference image as a stereo image. In another embodiment, the image processing module 328 can further adjust parameters such as color, brightness, and the like of the first reference image and/or the second reference image to generate two colors and brightness matching images, thereby generating A natural stereoscopic image.

類似於圖2的實施例,影像擷取裝置300更可包括影像調整模組(未繪示),其功能與影像擷取裝置300的影像調整模組相同,於此不再贅述。Similar to the embodiment of FIG. 2, the image capturing device 300 may further include an image adjusting module (not shown), and the function of the image capturing device 300 is the same as that of the image capturing device 300, and details are not described herein.

前述產生深度資訊的方法以及自動校正的方法可利用圖5依據本發明一實施例所繪示的功能方塊圖來進行總結。The foregoing method for generating depth information and the method for automatically correcting can be summarized by using FIG. 5 according to a functional block diagram of an embodiment of the present invention.

首先,在影像擷取程序502中,將利用雙鏡頭擷取一場景的影像,以分別產生第一影像A以及第二影像B。接著,在特徵點偵測程序504中,將偵測出第一影像A與第二影像B中相對應的特徵點,以計算出第一影像A與第二影像B之間的畫素偏移資訊以及旋轉角度,其中特徵點a1~a3分別對應特徵點b1~b3。在影像扭轉程序506中,將根據第一影像A與第二影像B之間的畫素偏移資訊以及旋轉角度,分別產生相互對準的第一參考影像A’以及第二參考影像B’。First, in the image capturing program 502, the image of one scene is captured by the dual lens to generate the first image A and the second image B, respectively. Then, in the feature point detection program 504, the feature points corresponding to the first image A and the second image B are detected to calculate the pixel offset between the first image A and the second image B. Information and rotation angle, wherein the feature points a1 to a3 correspond to the feature points b1 to b3, respectively. In the image reversal program 506, the first reference image A' and the second reference image B' which are aligned with each other are generated based on the pixel offset information and the rotation angle between the first image A and the second image B, respectively.

在一實施例中,在產生第一參考影像A’以及第二參考影像B’後,將進入深度計算程序508,以根據第一參考影像A’以及第二參考影像B’計算上述場景的深度資訊d。In an embodiment, after the first reference image A' and the second reference image B' are generated, the depth calculation program 508 is entered to calculate the depth of the scene according to the first reference image A' and the second reference image B'. Information d.

在另一實施例中,在產生第一參考影像A’以及第二參考影像B’後,將進入影像處理程序510,以利用第一參考影像A’以及第二參考影像B’產生立體影像S。In another embodiment, after the first reference image A′ and the second reference image B′ are generated, the image processing program 510 is entered to generate the stereo image S by using the first reference image A′ and the second reference image B′. .

在又一實施例中,影像處理程序610亦可接續於深度計算程序608之後,也就是說深度資訊d亦可做為產生立體影像S的依據之一。以另一觀點來看,此實施例亦是影像擷取裝置100與影像擷取裝置300的整合。In another embodiment, the image processing program 610 can also be followed by the depth calculation program 608, that is, the depth information d can also be used as one of the basis for generating the stereoscopic image S. From another point of view, this embodiment is also an integration of the image capturing device 100 and the image capturing device 300.

綜上所述,本發明所提出的影像擷取裝置及其產生深度資訊的方法與自動校正的方法中,其可在影像擷取裝置利用雙鏡頭擷取兩張影像後,利用特徵點的偵測來取得兩張影像之間的畫素偏移資訊以及旋轉角度,據以對準兩張影像,從而取得拍攝場景的深度資訊以及產生立體影像。本發明的影像擷取裝置無須經過模組廠調校,即可即時地產生拍攝場景的深度資訊以及產生自動校正後的立體影像,以節省大量的生產成本。In summary, the image capturing device and the method for generating depth information and the method for automatically correcting the same in the present invention can utilize the feature point detection after the image capturing device captures two images by using two lenses. The camera obtains the pixel offset information and the rotation angle between the two images, thereby aligning the two images, thereby obtaining depth information of the shooting scene and generating a stereo image. The image capturing device of the invention can instantly generate the depth information of the shooting scene and generate the automatically corrected stereo image without the need of adjustment by the module factory, thereby saving a large production cost.

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

100、300:影像擷取裝置 110a、310a:第一鏡頭 110b、310b:第二鏡頭 115、315:記憶體 120、320:處理器 122、322:影像擷取模組 124、324:特徵點偵測模組 126、326:影像扭轉模組 128:深度計算模組 328:影像處理模組 S202~S208:產生深度資訊的方法流程 S402~S408:自動校正的方法流程 602~610:產生深度資訊以及自動校正的方法流程 A:第一影像 B:第二影像 a1~a3、b1~b3:特徵點 A’:第一參考影像 B’:第二參考影像 d:深度資訊 S:立體影像100, 300: image capturing device 110a, 310a: first lens 110b, 310b: second lens 115, 315: memory 120, 320: processor 122, 322: image capturing module 124, 324: feature point detection Measurement module 126, 326: image torsion module 128: depth calculation module 328: image processing module S202 to S208: method for generating depth information, S402 to S408: automatic correction method flow 602 to 610: generating depth information and Automatic correction method flow A: first image B: second image a1 ~ a3, b1 ~ b3: feature point A': first reference image B': second reference image d: depth information S: stereo image

圖1是根據本發明一實施例所繪示之影像擷取裝置的方塊圖。 圖2為根據本發明之一實施例所繪示的影像擷取裝置的產生深度資訊的方法流程圖。 圖3是根據本發明另一實施例所繪示之影像擷取裝置的方塊圖。 圖4為根據本發明之一實施例所繪示的影像擷取裝置的自動校正的方法流程圖。 圖5為根據本發明之一實施例所繪示的影像擷取裝置的產生深度資訊的方法以及自動校正的方法功能方塊圖。FIG. 1 is a block diagram of an image capture device according to an embodiment of the invention. 2 is a flow chart of a method for generating depth information of an image capturing device according to an embodiment of the invention. FIG. 3 is a block diagram of an image capture device according to another embodiment of the invention. FIG. 4 is a flow chart of a method for automatically correcting an image capturing device according to an embodiment of the invention. FIG. 5 is a functional block diagram of a method for generating depth information and a method for automatically correcting an image capturing device according to an embodiment of the invention.

S202~S208:產生深度資訊的方法流程S202~S208: Method flow for generating depth information

Claims (20)

一種產生深度資訊的方法,適用於具有第一鏡頭以及第二鏡頭並且無須經過模組廠調校(alignment)的影像擷取裝置,該方法包括下列步驟: 利用該第一鏡頭以及該第二鏡頭擷取一場景的影像,以分別產生該場景的第一影像以及第二影像; 偵測該第一影像中的多個第一特徵點以及該第二影像中的多個第二特徵點,以計算該第一影像與該第二影像之間的畫素偏移資訊,從而取得該第一影像與該第二影像之間的旋轉角度,其中所述第一特徵點對應於所述第二特徵點; 根據該畫素偏移資訊以及該旋轉角度,針對該第一影像以及該第二影像進行影像扭轉(warping)程序,以分別產生第一參考影像以及第二參考影像,其中該第一參考影像與該第二參考影像互相對準;以及 根據該第一參考影像以及該第二參考影像,計算該場景的深度資訊。A method for generating depth information, which is suitable for an image capturing device having a first lens and a second lens without alignment by a module factory, the method comprising the steps of: utilizing the first lens and the second lens An image of a scene is captured to generate a first image and a second image of the scene, and a plurality of first feature points in the first image and a plurality of second feature points in the second image are detected to Calculating pixel offset information between the first image and the second image to obtain a rotation angle between the first image and the second image, wherein the first feature point corresponds to the second feature And performing an image warping procedure on the first image and the second image to generate a first reference image and a second reference image, wherein the first reference is generated according to the pixel offset information and the rotation angle The image and the second reference image are aligned with each other; and the depth information of the scene is calculated according to the first reference image and the second reference image. 如申請專利範圍第1項所述的方法,其中偵測該第一影像中的所述第一特徵點以及該第二影像中的所述第二特徵點,以計算該第一影像與該第二影像之間的該畫素偏移資訊的步驟包括:   偵測該第一影像以及該第二影像中的多個特徵點; 比對該第一影像以及該第二影像中的各所述特徵點,以取得多個對應特徵點組合,其中各所述對應特徵點組合包括各所述第一特徵點以及各所述第一特徵點所對應的該第二特徵點;以及 取得各所述第一特徵點以及各所述第二特徵點分別於該第一影像以及該第二影像中的畫素座標,據以計算該第一影像與該第二影像之間的該畫素偏移資訊。The method of claim 1, wherein the first feature point in the first image and the second feature point in the second image are detected to calculate the first image and the first The step of the pixel offset information between the two images includes: detecting the first image and the plurality of feature points in the second image; comparing the first image and each of the features in the second image a point to obtain a plurality of corresponding feature point combinations, wherein each of the corresponding feature point combinations includes each of the first feature points and the second feature points corresponding to each of the first feature points; A feature point and each of the second feature points are respectively corresponding to pixel coordinates in the first image and the second image, and the pixel offset information between the first image and the second image is calculated. 如申請專利範圍第2項所述的方法,其中取得該第一影像與該第二影像之間的該旋轉角度的步驟包括:   根據各所述第一特徵點以及各所述第二特徵點分別於該第一影像以及該第二影像中的所述畫素座標以及該畫素偏移資訊,計算該第一影像與該第二影像之間的該旋轉角度。The method of claim 2, wherein the step of obtaining the rotation angle between the first image and the second image comprises: respectively, according to each of the first feature points and each of the second feature points Calculating the rotation angle between the first image and the second image in the first image and the pixel coordinates in the second image and the pixel offset information. 如申請專利範圍第2項所述的方法,其中根據該畫素偏移資訊以及該旋轉角度,針對該第一影像以及該第二影像進行該影像扭轉程序,以分別產生該第一參考影像以及該第二參考影像的步驟包括:   根據該畫素偏移資訊以及該旋轉角度,校正該第一影像以及該第二影像至少之一者的所述畫素座標,以分別產生該第一參考影像以及該第二參考影像。The method of claim 2, wherein the image reversal process is performed on the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image and The step of the second reference image includes: correcting the pixel coordinates of at least one of the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image And the second reference image. 如申請專利範圍第1項所述的方法,其中根據該第一參考影像以及該第二參考影像,計算該場景的該深度資訊的步驟包括: 利用該第一參考影像以及該第二參考影像進行三維深度估測,以產生該場景的該深度資訊。The method of claim 1, wherein the calculating the depth information of the scene according to the first reference image and the second reference image comprises: using the first reference image and the second reference image A three-dimensional depth estimate is used to generate the depth information for the scene. 如申請專利範圍第1項所述的方法,其中當該第一影像的解析度不等於該第二影像的解析度時,在分別產生該場景的該第一影像以及該第二影像的步驟之後,該方法更包括:   調整該第一影像的解析度以及該第二影像的解析度其中至少之一者,以使該第一影像的該解析度與該第二影像的該解析度相同。The method of claim 1, wherein when the resolution of the first image is not equal to the resolution of the second image, after the step of respectively generating the first image and the second image of the scene The method further includes: adjusting at least one of a resolution of the first image and a resolution of the second image such that the resolution of the first image is the same as the resolution of the second image. 如申請專利範圍第1項所述的方法,其中該第一鏡頭與該第二鏡頭具有不同的光學特性或是不同的解析度。The method of claim 1, wherein the first lens and the second lens have different optical characteristics or different resolutions. 如申請專利範圍第1項所述的方法,其中該第一鏡頭與該第二鏡頭具有相同的光學特性以及相同的解析度。The method of claim 1, wherein the first lens and the second lens have the same optical characteristics and the same resolution. 一種自動校正的方法,適用於具有第一鏡頭以及第二鏡頭並且無須預經過模組廠調校(alignment)的影像擷取裝置,該方法包括下列步驟: 利用該第一鏡頭以及該第二鏡頭擷取一場景的影像,以分別產生該場景的第一影像以及第二影像; 偵測該第一影像中的多個第一特徵點以及該第二影像中的多個第二特徵點,以計算該第一影像與該第二影像之間的畫素偏移資訊,從而取得該第一影像與該第二影像之間的旋轉角度,其中所述第一特徵點對應於所述第二特徵點; 根據該畫素偏移資訊以及該旋轉角度,針對該第一影像以及該第二影像進行影像扭轉程序,以分別產生第一參考影像以及第二參考影像,其中該第一參考影像與該第二參考影像互相對準;以及 利用該第一參考影像以及該第二參考影像,產生該場景的立體影像。An automatic correction method is applicable to an image capturing device having a first lens and a second lens without pre-modulation by a module factory, the method comprising the following steps: using the first lens and the second lens An image of a scene is captured to generate a first image and a second image of the scene, and a plurality of first feature points in the first image and a plurality of second feature points in the second image are detected to Calculating pixel offset information between the first image and the second image to obtain a rotation angle between the first image and the second image, wherein the first feature point corresponds to the second feature And performing an image torsion process on the first image and the second image to generate a first reference image and a second reference image, wherein the first reference image and the The second reference images are aligned with each other; and the first reference image and the second reference image are used to generate a stereoscopic image of the scene. 如申請專利範圍第9項所述的方法,其中偵測該第一影像中的所述第一特徵點以及該第二影像中的所述第二特徵點,以計算該第一影像與該第二影像之間的該畫素偏移資訊的步驟包括:   偵測該第一影像以及該第二影像中的多個特徵點; 比對該第一影像以及該第二影像中的各所述特徵點,以取得多個對應特徵點組合,其中各所述對應特徵點組合包括各所述第一特徵點以及各所述第一特徵點所對應的該第二特徵點;以及 取得各所述第一特徵點以及各所述第二特徵點分別於該第一影像以及該第二影像中的畫素座標,據以計算該第一影像與該第二影像之間的該畫素偏移資訊。The method of claim 9, wherein the first feature point in the first image and the second feature point in the second image are detected to calculate the first image and the first The step of the pixel offset information between the two images includes: detecting the first image and the plurality of feature points in the second image; comparing the first image and each of the features in the second image a point to obtain a plurality of corresponding feature point combinations, wherein each of the corresponding feature point combinations includes each of the first feature points and the second feature points corresponding to each of the first feature points; A feature point and each of the second feature points are respectively corresponding to pixel coordinates in the first image and the second image, and the pixel offset information between the first image and the second image is calculated. 如申請專利範圍第10項所述的方法,其中取得該第一影像與該第二影像之間的該旋轉角度的步驟包括:   根據各所述第一特徵點以及各所述第二特徵點分別於該第一影像以及該第二影像中的所述畫素座標以及該畫素偏移資訊,計算該第一影像與該第二影像之間的該旋轉角度。The method of claim 10, wherein the step of obtaining the rotation angle between the first image and the second image comprises: respectively, according to each of the first feature points and each of the second feature points Calculating the rotation angle between the first image and the second image in the first image and the pixel coordinates in the second image and the pixel offset information. 如申請專利範圍第10項所述的方法,其中根據該畫素偏移資訊以及該旋轉角度,針對該第一影像以及該第二影像進行該影像扭轉程序,以分別產生該第一參考影像以及該第二參考影像的步驟包括:   根據該畫素偏移資訊以及該旋轉角度,校正該第一影像以及該第二影像至少之一者的所述畫素座標,以分別產生該第一參考影像以及該第二參考影像。The method of claim 10, wherein the image reversal process is performed on the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image and The step of the second reference image includes: correcting the pixel coordinates of at least one of the first image and the second image according to the pixel offset information and the rotation angle to respectively generate the first reference image And the second reference image. 如申請專利範圍第9項所述的方法,其中當該第一影像的解析度不等於該第二影像的解析度時,在分別產生該場景的該第一影像以及該第二影像的步驟之後,該方法更包括:   調整該第一影像的解析度以及該第二影像的解析度其中至少之一者,以使該第一影像的該解析度與該第二影像的該解析度相同。The method of claim 9, wherein when the resolution of the first image is not equal to the resolution of the second image, after the step of respectively generating the first image and the second image of the scene The method further includes: adjusting at least one of a resolution of the first image and a resolution of the second image such that the resolution of the first image is the same as the resolution of the second image. 如申請專利範圍第9項所述的方法,其中該第一鏡頭與該第二鏡頭具有不同的光學特性或是不同的解析度。The method of claim 9, wherein the first lens and the second lens have different optical characteristics or different resolutions. 如申請專利範圍第9項所述的方法,其中該第一鏡頭與該第二鏡頭具有相同的光學特性以及相同的解析度。The method of claim 9, wherein the first lens and the second lens have the same optical characteristics and the same resolution. 一種無須經過模組廠調校的影像擷取裝置,包括:   第一鏡頭;   第二鏡頭;   記憶體,儲存該第一鏡頭以及該第二鏡頭所擷取的影像;以及;   處理器,耦接該第一鏡頭、該第二鏡頭以及該記憶體,並且包括多個模組,所述模組包括:     影像擷取模組,利用該第一鏡頭以及該第二鏡頭擷取一場景的影像,以分別產生該場景的第一影像以及第二影像;     特徵點偵測模組,偵測該第一影像中的多個第一特徵點以及該第二影像中的多個第二特徵點,以計算該第一影像與該第二影像之間的畫素偏移資訊,從而取得該第一影像與該第二影像之間的旋轉角度,其中所述第一特徵點對應於所述第二特徵點;     影像扭轉模組,根據該畫素偏移資訊以及該旋轉角度,針對該第一影像以及該第二影像進行影像扭轉程序,以分別產生第一參考影像以及第二參考影像,其中該第一參考影像與該第二參考影像互相對準;以及     影像處理模組,利用該第一參考影像以及該第二參考影像,產生該場景的立體影像。An image capturing device that does not need to be calibrated by a module factory, comprising: a first lens; a second lens; a memory for storing the image captured by the first lens and the second lens; and; a processor coupled The first lens, the second lens, and the memory, and including a plurality of modules, the module includes: an image capturing module, wherein the first lens and the second lens capture an image of a scene, The first image and the second image are respectively generated by the feature point detection module, and the plurality of first feature points in the first image and the plurality of second feature points in the second image are detected to Calculating pixel offset information between the first image and the second image to obtain a rotation angle between the first image and the second image, wherein the first feature point corresponds to the second feature The image torsion module performs image reversal processing on the first image and the second image according to the pixel offset information and the rotation angle to generate a a reference image and a second reference image, wherein the first reference image and the second reference image are aligned with each other; and the image processing module generates a stereo image of the scene by using the first reference image and the second reference image . 如申請專利範圍第16項所述的影像擷取裝置更包括: 影像調整模組,當該第一影像的解析度不等於該第二影像的解析度時,調整該第一影像的解析度以及該第二影像的解析度其中至少之一者,以使該第一影像的該解析度與該第二影像的該解析度相同。The image capturing device of claim 16, further comprising: an image adjustment module, when the resolution of the first image is not equal to the resolution of the second image, adjusting the resolution of the first image and At least one of the resolutions of the second image is such that the resolution of the first image is the same as the resolution of the second image. 如申請專利範圍第16項所述的影像擷取裝置更包括:   深度計算模組,根據該第一參考影像以及該第二參考影像,計算該場景的深度資訊。The image capturing device of claim 16, further comprising: a depth calculation module, configured to calculate depth information of the scene according to the first reference image and the second reference image. 如申請專利範圍第16項所述的影像擷取裝置,其中該第一鏡頭與該第二鏡頭具有不同的光學特性或是不同的解析度。The image capturing device of claim 16, wherein the first lens and the second lens have different optical characteristics or different resolutions. 如申請專利範圍第16項所述的影像擷取裝置,其中該第一鏡頭與該第二鏡頭具有相同的光學特性以及相同的解析度。The image capturing device of claim 16, wherein the first lens and the second lens have the same optical characteristics and the same resolution.
TW104144379A 2015-11-30 2015-12-30 Image capturing device, depth information generation method and auto-calibration method thereof TWI595444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/015,141 US20170155889A1 (en) 2015-11-30 2016-02-04 Image capturing device, depth information generation method and auto-calibration method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US201562260645P 2015-11-30 2015-11-30

Publications (2)

Publication Number Publication Date
TW201719579A TW201719579A (en) 2017-06-01
TWI595444B true TWI595444B (en) 2017-08-11

Family

ID=59106549

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104144379A TWI595444B (en) 2015-11-30 2015-12-30 Image capturing device, depth information generation method and auto-calibration method thereof

Country Status (2)

Country Link
CN (1) CN106817575A (en)
TW (1) TWI595444B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391764A (en) * 2017-08-10 2019-02-26 聚晶半导体股份有限公司 Dual camera image acquiring device and its image capture method
TWI680436B (en) 2018-12-07 2019-12-21 財團法人工業技術研究院 Depth camera calibration device and method thereof
CN111405214B (en) * 2019-01-02 2022-05-24 奇景光电股份有限公司 Image processing circuit
TWI761128B (en) * 2019-09-02 2022-04-11 宏達國際電子股份有限公司 Dual lens imaging module and capturing method thereof
TWI784330B (en) 2020-10-21 2022-11-21 財團法人工業技術研究院 Method, procsesing device, and system for object tracking

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201145978A (en) * 2010-02-01 2011-12-16 Casio Computer Co Ltd Image capture apparatus, computer readable recording medium and control method
TW201216203A (en) * 2010-10-14 2012-04-16 Altek Corp Method and apparatus for generating image with shallow depth of field
CN102769763A (en) * 2011-05-05 2012-11-07 晨星软件研发(深圳)有限公司 Three-dimensional image camera and relevant control method thereof
TW201333621A (en) * 2012-02-02 2013-08-16 Himax Tech Ltd Multi-view image generating method and apparatus using the same

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI462569B (en) * 2011-04-22 2014-11-21 Mstar Semiconductor Inc 3d video camera and associated control method
JP5843751B2 (en) * 2012-12-27 2016-01-13 株式会社ソニー・コンピュータエンタテインメント Information processing apparatus, information processing system, and information processing method
US20140347350A1 (en) * 2013-05-23 2014-11-27 Htc Corporation Image Processing Method and Image Processing System for Generating 3D Images
CN104811680B (en) * 2014-01-28 2017-04-12 聚晶半导体股份有限公司 image obtaining device and image deformation correction method thereof
CN104977795A (en) * 2014-04-08 2015-10-14 立普思股份有限公司 Stereo photography system and stereo photography method thereof
KR102224716B1 (en) * 2014-05-13 2021-03-08 삼성전자주식회사 Method and apparatus for calibrating stereo source images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201145978A (en) * 2010-02-01 2011-12-16 Casio Computer Co Ltd Image capture apparatus, computer readable recording medium and control method
TW201216203A (en) * 2010-10-14 2012-04-16 Altek Corp Method and apparatus for generating image with shallow depth of field
CN102769763A (en) * 2011-05-05 2012-11-07 晨星软件研发(深圳)有限公司 Three-dimensional image camera and relevant control method thereof
TW201333621A (en) * 2012-02-02 2013-08-16 Himax Tech Ltd Multi-view image generating method and apparatus using the same

Also Published As

Publication number Publication date
TW201719579A (en) 2017-06-01
CN106817575A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
US20200288059A1 (en) Image processor, image processing method and program, and imaging system
TWI595444B (en) Image capturing device, depth information generation method and auto-calibration method thereof
TWI520098B (en) Image capturing device and method for detecting image deformation thereof
CN106875339B (en) Fisheye image splicing method based on strip-shaped calibration plate
TWI554103B (en) Image capturing device and digital zooming method thereof
TWI511081B (en) Image capturing device and method for calibrating image deformation thereof
US9774837B2 (en) System for performing distortion correction and calibration using pattern projection, and method using the same
TWI494680B (en) Image capturing device and method for calibrating image deformation thereof
US20170155889A1 (en) Image capturing device, depth information generation method and auto-calibration method thereof
CN109712192B (en) Camera module calibration method and device, electronic equipment and computer readable storage medium
TWI761684B (en) Calibration method of an image device and related image device and operational device thereof
Micušık et al. Para-catadioptric camera auto-calibration from epipolar geometry
TWI616715B (en) Method and system for multi-lens module alignment
TWI599809B (en) Lens module array, image sensing device and fusing method for digital zoomed images
WO2021129437A1 (en) Method and system for light calibration field camera without requiring white image
TWI545936B (en) Electronic device and calibration method thereof
TWI538476B (en) System and method for stereoscopic photography
CN111292380B (en) Image processing method and device
Ueno et al. Compound-Eye Camera Module as Small as 8.5$\times $8.5$\times $6.0 mm for 26 k-Resolution Depth Map and 2-Mpix 2D Imaging
CN104811688B (en) Image acquiring device and its image deformation detection method
KR102430726B1 (en) Apparatus and method for processing information of multi camera
TW202038185A (en) Method for correcting distortion image and apparatus thereof
TW201642008A (en) Image capturing device and dynamic focus method thereof
CN112634337B (en) Image processing method and device
CN107544205B (en) Method and system for adjusting multiple lens modules