[go: up one dir, main page]

CN114143421B - Dual-sensor camera system and calibration method thereof - Google Patents

Dual-sensor camera system and calibration method thereof Download PDF

Info

Publication number
CN114143421B
CN114143421B CN202011625552.3A CN202011625552A CN114143421B CN 114143421 B CN114143421 B CN 114143421B CN 202011625552 A CN202011625552 A CN 202011625552A CN 114143421 B CN114143421 B CN 114143421B
Authority
CN
China
Prior art keywords
infrared
image
color
sensor
brightness
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202011625552.3A
Other languages
Chinese (zh)
Other versions
CN114143421A (en
Inventor
彭诗渊
郑书峻
黄旭鍊
李运锦
赖国铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Altek Semiconductor Corp
Original Assignee
Altek Semiconductor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Altek Semiconductor Corp filed Critical Altek Semiconductor Corp
Publication of CN114143421A publication Critical patent/CN114143421A/en
Application granted granted Critical
Publication of CN114143421B publication Critical patent/CN114143421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/743Bracketing, i.e. taking a series of images with varying exposure conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Color Television Image Signal Generators (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)
  • Traffic Control Systems (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)
  • Cameras In General (AREA)
  • Burglar Alarm Systems (AREA)
  • Air Bags (AREA)
  • Measurement Of Optical Distance (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

一种双传感器摄像系统及其校准方法。双传感器摄像系统包括至少一个色彩传感器、至少一个红外线传感器、存储装置及处理器。处理器经配置以加载并执行存储在存储装置中的计算机程序以:控制色彩传感器及红外线传感器采用多个拍摄条件分别获取一摄像场景的多张色彩图像及多张红外线图像;计算在各拍摄条件下获取的色彩图像的多个色彩图像参数以及在各拍摄条件下获取的红外线图像的多个红外线图像参数,用以计算色彩图像的亮度及红外线图像的亮度之间的差异;以及根据所计算的差异,决定适于色彩传感器及红外线传感器的曝光设定。

A dual-sensor camera system and a calibration method thereof. The dual-sensor camera system includes at least one color sensor, at least one infrared sensor, a storage device, and a processor. The processor is configured to load and execute a computer program stored in the storage device to: control the color sensor and the infrared sensor to respectively acquire multiple color images and multiple infrared images of a camera scene using multiple shooting conditions; calculate multiple color image parameters of the color image acquired under each shooting condition and multiple infrared image parameters of the infrared image acquired under each shooting condition to calculate the difference between the brightness of the color image and the brightness of the infrared image; and determine exposure settings suitable for the color sensor and the infrared sensor according to the calculated difference.

Description

双传感器摄像系统及其校准方法Dual sensor camera system and calibration method thereof

技术领域Technical Field

本公开涉及一种摄像系统及方法,尤其涉及一种双传感器摄像系统及其校准方法。The present disclosure relates to a camera system and method, and more particularly to a dual-sensor camera system and a calibration method thereof.

背景技术Background technique

相机的曝光条件(包括光圈、快门、感亮度)会影响所拍摄图像的质量,因此许多相机在拍摄图像的过程中会自动调整曝光条件,以获得清晰且明亮的图像。然而,在低光源或是背光等高反差的场景中,相机调整曝光条件的结果可能会产生噪声过高或是部分区域过曝的结果,无法兼顾所有区域的图像质量。The camera's exposure conditions (including aperture, shutter speed, and brightness) will affect the quality of the captured image, so many cameras will automatically adjust the exposure conditions during the image capture process to obtain a clear and bright image. However, in high-contrast scenes such as low light or backlight, the camera's adjustment of the exposure conditions may result in excessive noise or overexposure in some areas, and the image quality of all areas cannot be taken into account.

对此,目前技术有采用一种新的图像传感器架构,其是利用红外线(IR)传感器高光敏感度的特性,在图像传感器的色彩像素中穿插配置IR像素,以辅助亮度检测。举例来说,图1是现有使用图像传感器获取图像的示意图。请参照图1,现有的图像传感器10中除了配置有红(R)、绿(G)、蓝(B)等颜色像素外,还穿插配置有红外线(I)像素。因此,图像传感器10能够将R、G、B颜色像素所获取的色彩信息12与I像素所获取的亮度信息14结合,而获得色彩及亮度适中的图像16。In this regard, current technology has adopted a new image sensor architecture, which utilizes the high light sensitivity of infrared (IR) sensors to intersperse IR pixels in the color pixels of the image sensor to assist in brightness detection. For example, FIG1 is a schematic diagram of an existing image sensor for acquiring an image. Referring to FIG1 , in addition to being configured with red (R), green (G), blue (B) and other color pixels, the existing image sensor 10 is also interspersed with infrared (I) pixels. Therefore, the image sensor 10 can combine the color information 12 obtained by the R, G, B color pixels with the brightness information 14 obtained by the I pixel to obtain an image 16 with moderate color and brightness.

然而,在上述单一图像传感器的架构下,图像传感器中每个像素的曝光条件相同,因此只能选择较适用于颜色像素或红外线像素的曝光条件来获取图像,结果仍无法有效地利用两种像素的特性来改善所获取图像的图像质量。However, under the above-mentioned single image sensor architecture, the exposure conditions of each pixel in the image sensor are the same, so only the exposure conditions that are more suitable for color pixels or infrared pixels can be selected to acquire images. As a result, the characteristics of the two pixels cannot be effectively utilized to improve the image quality of the acquired image.

发明内容Summary of the invention

本发明提供一种双传感器摄像系统及其校准方法,利用独立配置的色彩及红外线传感器分别获取不同拍摄条件下的多张图像,据以进行图像对准及亮度匹配,并应用于后续获取的图像,因此可提高所获取图像的图像质量。The present invention provides a dual-sensor camera system and a calibration method thereof, which utilizes independently configured color and infrared sensors to respectively acquire multiple images under different shooting conditions, and performs image alignment and brightness matching based on the images, and applies the results to subsequently acquired images, thereby improving the image quality of the acquired images.

本发明的双传感器摄像系统包括至少一个色彩传感器、至少一个红外线传感器、存储装置以及耦接所述色彩传感器、红外光传感器及存储装置的处理器。所述处理器经配置以加载并执行存储在存储装置中的计算机程序以:控制色彩传感器及红外线传感器采用多个拍摄条件分别获取一摄像场景的多张色彩图像及多张红外线图像;计算在各拍摄条件下获取的色彩图像的多个色彩图像参数以及在各拍摄条件下获取的红外线图像的多个红外线图像参数,用以计算色彩图像的亮度及红外线图像的亮度之间的差异;以及根据所计算的差异,决定适于色彩传感器及红外线传感器的曝光设定。The dual sensor camera system of the present invention comprises at least one color sensor, at least one infrared sensor, a storage device, and a processor coupled to the color sensor, the infrared light sensor, and the storage device. The processor is configured to load and execute a computer program stored in the storage device to: control the color sensor and the infrared sensor to respectively acquire multiple color images and multiple infrared images of a camera scene using multiple shooting conditions; calculate multiple color image parameters of the color image acquired under each shooting condition and multiple infrared image parameters of the infrared image acquired under each shooting condition to calculate the difference between the brightness of the color image and the brightness of the infrared image; and determine exposure settings suitable for the color sensor and the infrared sensor according to the calculated difference.

本发明的双传感器摄像系统的校准方法,适用于包括至少一个色彩传感器、至少一个红外线传感器及处理器的双传感器摄像系统。所述方法包括下列步骤:控制色彩传感器及红外线传感器采用多个拍摄条件分别获取一摄像场景的多张色彩图像及多张红外线图像;计算在各拍摄条件下获取的色彩图像的多个色彩图像参数以及在各拍摄条件下获取的红外线图像的多个红外线图像参数,用以计算色彩图像的亮度及红外线图像的亮度之间的差异;以及根据所计算的差异,决定适于色彩传感器及红外线传感器的曝光设定。The dual-sensor camera system calibration method of the present invention is applicable to a dual-sensor camera system including at least one color sensor, at least one infrared sensor and a processor. The method includes the following steps: controlling the color sensor and the infrared sensor to respectively acquire multiple color images and multiple infrared images of a camera scene using multiple shooting conditions; calculating multiple color image parameters of the color images acquired under each shooting condition and multiple infrared image parameters of the infrared images acquired under each shooting condition to calculate the difference between the brightness of the color image and the brightness of the infrared image; and determining exposure settings suitable for the color sensor and the infrared sensor based on the calculated difference.

基于上述,本发明的双传感器摄像系统及其校准方法,在独立配置的色彩传感器及红外线传感器上采用不同拍摄条件获取多张图像,并根据这些图像中对应像素的位置关系和这些图像之间的亮度差异,决定适于色彩传感器及红外线传感器的曝光及对准设定,用以对后续获取的图像进行图像对准及亮度匹配,而可提高所摄图像的图像质量。Based on the above, the dual-sensor camera system and calibration method thereof of the present invention adopt different shooting conditions on independently configured color sensors and infrared sensors to acquire multiple images, and determine the exposure and alignment settings suitable for the color sensor and infrared sensor according to the positional relationship of corresponding pixels in these images and the brightness difference between these images, so as to perform image alignment and brightness matching on subsequently acquired images, thereby improving the image quality of the captured images.

为让本公开能还明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the present disclosure more clearly understood, embodiments are specifically cited below and described in detail with reference to the accompanying drawings.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是现有使用图像传感器获取图像的示意图;FIG1 is a schematic diagram of a conventional method of acquiring an image using an image sensor;

图2是依照本发明一实施例所示出的使用图像传感器获取图像的示意图;FIG2 is a schematic diagram of using an image sensor to acquire an image according to an embodiment of the present invention;

图3是依照本发明一实施例所示出的双传感器摄像系统的方块图;FIG3 is a block diagram of a dual-sensor camera system according to an embodiment of the present invention;

图4是依照本发明一实施例所示出的双传感器摄像系统的校准方法的流程图;FIG4 is a flow chart of a calibration method for a dual-sensor camera system according to an embodiment of the present invention;

图5是依照本发明一实施例所示出的双传感器摄像系统的对准校准方法的流程图;FIG5 is a flow chart of an alignment and calibration method of a dual-sensor camera system according to an embodiment of the present invention;

图6是依照本发明一实施例所示出的双传感器摄像系统的亮度匹配校准方法的流程图;FIG6 is a flow chart of a brightness matching calibration method for a dual-sensor camera system according to an embodiment of the present invention;

图7是依照本发明一实施例所示出的双传感器摄像系统的校准方法的流程图。FIG. 7 is a flow chart of a calibration method for a dual-sensor camera system according to an embodiment of the present invention.

符号说明Symbol Description

10、20:图像传感器10, 20: Image sensor

12:色彩信息12: Color information

14:亮度信息14: Brightness information

16:图像16: Image

22:色彩传感器22: Color sensor

22a:色彩图像22a: Color Image

24:红外线传感器24: Infrared sensor

24a:红外线图像24a: Infrared image

26:场景图像26: Scene Image

30:双传感器摄像系统30: Dual sensor camera system

32:色彩传感器32: Color sensor

34:红外线传感器34: Infrared sensor

36:存储装置36: Storage device

38:处理器38: Processor

R、G、B、I:像素R, G, B, I: pixels

S402~S406、S502~S506、S602~S606、S702~S706:步骤S402~S406, S502~S506, S602~S606, S702~S706: Steps

具体实施方式Detailed ways

图2是依照本发明一实施例所示出的使用图像传感器获取图像的示意图。请参照图2,本发明实施例的图像传感器20采用独立配置色彩传感器22与红外线(IR)传感器24的双传感器架构,利用色彩传感器22与红外线传感器24各自的特性,采用适于当前摄像场景的多个曝光条件分别获取多张图像,并从中选择曝光条件适当的色彩图像22a与红外线图像24a,通过图像融合的方式,使用红外线图像24a来补足色彩图像22a中缺乏的纹理细节,从而获得色彩及纹理细节均佳的场景图像26。FIG2 is a schematic diagram of using an image sensor to obtain an image according to an embodiment of the present invention. Referring to FIG2, the image sensor 20 of the embodiment of the present invention adopts a dual sensor architecture of independently configuring a color sensor 22 and an infrared (IR) sensor 24, and uses the respective characteristics of the color sensor 22 and the infrared sensor 24 to respectively obtain multiple images using multiple exposure conditions suitable for the current camera scene, and selects a color image 22a and an infrared image 24a with appropriate exposure conditions, and uses the infrared image 24a to supplement the texture details lacking in the color image 22a through image fusion, thereby obtaining a scene image 26 with good color and texture details.

图3是依照本发明一实施例所示出的双传感器摄像系统的方块图。请参照图3,本实施例的双传感器摄像系统30可配置于手机、平板计算机、笔记本电脑、导航装置、行车纪录器、数字相机、数字摄影机等电子装置中,用以提供摄像功能。双传感器摄像系统30包括至少一个色彩传感器32、至少一个红外线传感器34、存储装置36及处理器38,其功能分述如下:FIG3 is a block diagram of a dual sensor camera system according to an embodiment of the present invention. Referring to FIG3 , the dual sensor camera system 30 of this embodiment can be configured in electronic devices such as mobile phones, tablet computers, laptop computers, navigation devices, driving recorders, digital cameras, digital video cameras, etc. to provide camera functions. The dual sensor camera system 30 includes at least one color sensor 32, at least one infrared sensor 34, a storage device 36, and a processor 38, and its functions are described as follows:

色彩传感器32例如包括电荷耦合器件(Charge Coupled Device,CCD)、互补金属氧化物半导体(Complementary Metal-Oxide Semiconductor,CMOS)器件或其他种类的感光器件,而可感测光线强度以产生摄像场景的图像。色彩传感器32例如是红绿蓝(RGB)图像传感器,其中包括红(R)、绿(G)、蓝(B)颜色像素,用以获取摄像场景中的红光、绿光、蓝光等色彩信息,并将这些色彩信息合成以生成摄像场景的色彩图像。The color sensor 32 includes, for example, a charge coupled device (CCD), a complementary metal oxide semiconductor (CMOS) device, or other types of photosensitive devices, and can sense light intensity to generate an image of the camera scene. The color sensor 32 is, for example, a red, green, and blue (RGB) image sensor, which includes red (R), green (G), and blue (B) color pixels to obtain color information such as red light, green light, and blue light in the camera scene, and synthesize these color information to generate a color image of the camera scene.

红外线传感器34例如包括CCD、CMOS器件或其他种类的感光器件,其经由调整感光器件的波长感测范围,而能够感测红外光。红外线传感器34例如是以上述感光器件作为像素来获取摄像场景中的红外光信息,并将这些红外光信息合成以生成摄像场景的红外线图像。The infrared sensor 34 includes, for example, a CCD, a CMOS device, or other types of photosensitive devices, which can sense infrared light by adjusting the wavelength sensing range of the photosensitive device. The infrared sensor 34 uses, for example, the above-mentioned photosensitive devices as pixels to obtain infrared light information in the camera scene, and synthesizes the infrared light information to generate an infrared image of the camera scene.

存储装置36例如是任意型式的固定式或可移动式随机存取存储器(RandomAccess Memory,RAM)、只读存储器(Read-Only Memory,ROM)、闪存(Flash memory)、硬盘或类似器件或上述器件的组合,而用以存储可由处理器38执行的计算机程序。在一些实施例中,存储装置36例如还可存储由色彩传感器32所获取的色彩图像及红外线传感器34所获取的红外线图像。The storage device 36 is, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory, hard disk or similar device or a combination of the above devices, and is used to store computer programs executable by the processor 38. In some embodiments, the storage device 36 can also store, for example, color images acquired by the color sensor 32 and infrared images acquired by the infrared sensor 34.

处理器38例如是中央处理器(Central Processing Unit,CPU),或是其他可编程的一般用途或特殊用途的微处理器(Microprocessor)、微控制器(Microcontroller)、数字信号处理器(Digital Signal Processor,DSP)、可编程控制器、专用集成电路(Application Specific Integrated Circuits,ASIC)、可编程逻辑器件(ProgrammableLogic Device,PLD)或其他类似装置或这些装置的组合,本发明不在此限制。在本实施例中,处理器38可从存储装置36加载计算机程序,以执行本发明实施例的双传感器摄像系统的校准方法。The processor 38 is, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose microprocessor, microcontroller, digital signal processor (DSP), programmable controller, application specific integrated circuit (ASIC), programmable logic device (PLD) or other similar devices or combinations of these devices, and the present invention is not limited thereto. In this embodiment, the processor 38 can load a computer program from the storage device 36 to execute the calibration method of the dual-sensor camera system of the embodiment of the present invention.

基于色彩传感器32与红外线传感器34的特性(例如分辨率、波长范围、视野(fieldof view,FOV))不同,本发明实施例提供一种校准方法,可在生产阶段(production stage)对装配在双传感器摄像系统30上的色彩传感器32与红外线传感器34进行校准,以平衡色彩传感器32与红外线传感器34在不同拍摄条件下的差异,此校准结果将存储于存储装置36,而可在后续运行时间(run stage)中用以作为对获取图像进行调整的依据。Based on the different characteristics (e.g., resolution, wavelength range, field of view (FOV)) of the color sensor 32 and the infrared sensor 34, an embodiment of the present invention provides a calibration method, which can calibrate the color sensor 32 and the infrared sensor 34 mounted on the dual-sensor camera system 30 in the production stage to balance the differences between the color sensor 32 and the infrared sensor 34 under different shooting conditions. The calibration result will be stored in the storage device 36 and can be used as a basis for adjusting the acquired image in the subsequent run stage.

图4是依照本发明一实施例所示出的双传感器摄像系统的校准方法的流程图。请同时参照图3及图4,本实施例的方法适用于上述的双传感器摄像系统30,适于在生产阶段对双传感器摄像系统30的色彩传感器32与红外线传感器34进行校准,以下即搭配双传感器摄像系统30的各项器件说明本实施例的校准方法的详细步骤。FIG4 is a flow chart of a calibration method for a dual sensor camera system according to an embodiment of the present invention. Please refer to FIG3 and FIG4 simultaneously. The method of this embodiment is applicable to the dual sensor camera system 30 described above, and is suitable for calibrating the color sensor 32 and the infrared sensor 34 of the dual sensor camera system 30 during the production stage. The following is a detailed description of the calibration method of this embodiment with various components of the dual sensor camera system 30.

在步骤S402中,将至少一个色彩传感器32及至少一个红外线传感器34装配于双传感器摄像系统30。其中,色彩传感器32及红外线传感器34例如是由机械人装配于图像传感器中,例如图2所示的装配在图像传感器20中的色彩传感器22与红外线传感器24。In step S402, at least one color sensor 32 and at least one infrared sensor 34 are assembled in the dual sensor camera system 30. The color sensor 32 and the infrared sensor 34 are assembled in the image sensor by a robot, for example, the color sensor 22 and the infrared sensor 24 assembled in the image sensor 20 shown in FIG.

在步骤S404中,由处理器38执行色彩传感器32及红外线传感器34之间对准的校准。其中,处理器38例如会执行暴力法(bruteforce)、光流法(optical flow)、单应性变换法(homography)或局部翘曲法(local warping)等图像对准算法,以对色彩传感器32所获取的色彩图像与红外线传感器34所获取的红外线图像进行对准,后文将描述其详细的实施方式。In step S404, the processor 38 performs alignment calibration between the color sensor 32 and the infrared sensor 34. The processor 38 may perform an image alignment algorithm such as brute force, optical flow, homography, or local warping to align the color image acquired by the color sensor 32 with the infrared image acquired by the infrared sensor 34, and its detailed implementation will be described below.

在步骤S406中,由处理器38执行色彩传感器32及红外线传感器34在不同拍摄条件下的亮度匹配的校准。其中,处理器38例如会计算在不同拍摄条件下获取的色彩图像及红外线图像之间的差异,据以决定适于色彩传感器32及红外线传感器34的曝光设定,后文将描述其详细的实施方式。In step S406, the processor 38 performs calibration for brightness matching of the color sensor 32 and the infrared sensor 34 under different shooting conditions. The processor 38, for example, calculates the difference between the color image and the infrared image acquired under different shooting conditions, and determines exposure settings suitable for the color sensor 32 and the infrared sensor 34 accordingly, and its detailed implementation will be described later.

对于上述对准的校准,图5是依照本发明一实施例所示出的双传感器摄像系统的对准校准方法的流程图。请同时参照图3及图5,本实施例的方法适用于上述的双传感器摄像系统30,以下即搭配双传感器摄像系统30的各项器件说明本实施例的对准校准方法的详细步骤。For the above alignment calibration, FIG5 is a flow chart of an alignment calibration method of a dual sensor camera system according to an embodiment of the present invention. Please refer to FIG3 and FIG5 simultaneously. The method of this embodiment is applicable to the above dual sensor camera system 30. The following is a detailed description of the alignment calibration method of this embodiment with various components of the dual sensor camera system 30.

在步骤S502中,由处理器38控制色彩传感器32及红外线传感器34分别拍摄具有特殊图案的测试图(test chart),以获得一色彩测试图像及一红外线测试图像。其中,所述特殊图案例如是黑白棋盘图案,或是其他可明显区别出特征的图案,在此不设限。In step S502, the processor 38 controls the color sensor 32 and the infrared sensor 34 to respectively capture a test chart having a special pattern to obtain a color test image and an infrared test image. The special pattern may be a black and white chessboard pattern, or other patterns that can clearly distinguish features, which are not limited here.

在步骤S504中,由处理器38检测色彩测试图像及红外线测试图像中的特殊图案的多个特征点。In step S504 , the processor 38 detects a plurality of feature points of the special pattern in the color test image and the infrared test image.

在一些实施例中,处理器38例如会将每张色彩测试图像及红外线测试图像切割为多个块,并执行一特征检测算法以检测各个块内的至少一个特征点。其中,处理器38例如是根据自身的计算能力决定从各个块检测出特征点的数目,而所述的特征检测算法例如是哈里斯边角检测法(Harris corner detection)。在一些实施例中,处理器38例如会选择每个块中的边缘像素,或是每个块中具有高局域偏差(local deviation)的像素,作为所检测的特征点,在此不设限。In some embodiments, the processor 38, for example, cuts each color test image and infrared test image into multiple blocks, and executes a feature detection algorithm to detect at least one feature point in each block. The processor 38, for example, determines the number of feature points to be detected from each block based on its own computing power, and the feature detection algorithm is, for example, Harris corner detection. In some embodiments, the processor 38, for example, selects edge pixels in each block, or pixels with high local deviation in each block as the detected feature points, which are not limited here.

在步骤S506中,由处理器38执行图像对准算法以根据色彩测试图像及红外线测试图像中相对应的特征点之间的位置关系,计算色彩测试图像及红外线测试图像之间的匹配关系,用以对后续获取的色彩图像及红外线图像进行对准。其中,在执行图像对准时,处理器38例如会取得色彩图像中的所有特征点以及红外线图像中的所有特征点,从而针对这些特征点执行图像对准算法。In step S506, the processor 38 executes an image alignment algorithm to calculate the matching relationship between the color test image and the infrared test image according to the positional relationship between the corresponding feature points in the color test image and the infrared test image, so as to align the color image and the infrared image acquired subsequently. When performing the image alignment, the processor 38, for example, obtains all feature points in the color image and all feature points in the infrared image, and then executes the image alignment algorithm for these feature points.

在一些实施例中,当所摄像场景为平面场景时,处理器38会针对从色彩测试图像中检测出的特征点中的一个指定特征点,在红外线测试图像中的对应位置移动一个包括多个像素的面片(patch),来搜寻红外线测试图像中对应于此指定特征点的对应特征点。其中,处理器38例如是以红外线测试图像中对应于此指定特征点的像素为中心,在其周围移动面片,并将位于面片内的像素与色彩测试图像中位于指定特征点周围的像素进行比较,直到面片内的像素与指定特征点周围的像素匹配(例如所有像素的像素值的差值总和小于预定门坎值)为止。最终,处理器38即可将达成匹配时面片所在位置的中心点像素判定为对应于指定特征点的对应特征点。处理器38将重复执行上述匹配动作,直到获得所有特征点的对应关系。In some embodiments, when the captured scene is a planar scene, the processor 38 moves a patch including a plurality of pixels at a corresponding position in the infrared test image for a designated feature point among the feature points detected from the color test image, to search for a corresponding feature point in the infrared test image corresponding to the designated feature point. The processor 38, for example, moves the patch around the pixel corresponding to the designated feature point in the infrared test image as the center, and compares the pixels in the patch with the pixels around the designated feature point in the color test image until the pixels in the patch match the pixels around the designated feature point (for example, the sum of the differences in the pixel values of all pixels is less than a predetermined threshold value). Finally, the processor 38 can determine the center point pixel of the patch at the location where the match is achieved as the corresponding feature point corresponding to the designated feature point. The processor 38 will repeat the above matching action until the correspondence between all feature points is obtained.

之后,处理器38例如会执行随机抽样一致(RANdom SAmple Consensus,RANSAC)算法以建立单应性变换矩阵(homography transformation matrix),如下:Afterwards, the processor 38 executes, for example, a RANSAC (random sampling consensus) algorithm to establish a homography transformation matrix, as follows:

其中,(x,y)代表色彩测试图像中的指定特征点的位置,(x’,y’)则代表红外线测试图像中的对应特征点的位置,a~h代表变量。处理器38例如会将色彩测试图像中的各个特征点与红外线测试图像中的对应特征点的位置带入上述的单应性变换矩阵求解,从而以所求得的解作为色彩测试图像及红外线测试图像之间的匹配关系。Wherein, (x, y) represents the position of the designated feature point in the color test image, (x', y') represents the position of the corresponding feature point in the infrared test image, and a-h represent variables. The processor 38, for example, brings the positions of each feature point in the color test image and the corresponding feature point in the infrared test image into the above-mentioned homography transformation matrix for solution, and uses the obtained solution as the matching relationship between the color test image and the infrared test image.

在一些实施例中,当所摄像场景为具有多个深度的场景时,由于色彩传感器32及红外线传感器34之间具有视差(parallax),其所获取的图像会有像差(aberration),因此需要针对不同深度的图像平面计算其匹配关系。此时,处理器38会利用色彩测试图像及红外线测试图像计算摄像场景的多个深度,据以将摄像场景区分为不同深度的多个深度场景(例如区分为近景和远景)。其中,处理器38例如会针对各个深度场景,建立一个二次方程(quadratic equation),如下:In some embodiments, when the captured scene is a scene with multiple depths, the image obtained by the color sensor 32 and the infrared sensor 34 will have aberration due to parallax between them, so it is necessary to calculate the matching relationship for the image planes at different depths. At this time, the processor 38 will use the color test image and the infrared test image to calculate the multiple depths of the captured scene, and divide the captured scene into multiple depth scenes of different depths (for example, into near view and distant view). Among them, the processor 38 will, for example, establish a quadratic equation for each depth scene, as follows:

其中,(x,y)代表色彩测试图像中的指定特征点的位置,(x’,y’)则代表红外线测试图像中的对应特征点的位置,a~f代表变量。处理器38例如会将色彩测试图像中的各个特征点与红外线测试图像中的对应特征点的位置带入上述的二次方程式求解,从而以所求得的解作为色彩测试图像及红外线测试图像之间的匹配关系。Wherein, (x, y) represents the position of the designated feature point in the color test image, (x', y') represents the position of the corresponding feature point in the infrared test image, and a-f represent variables. The processor 38, for example, substitutes the positions of each feature point in the color test image and the corresponding feature point in the infrared test image into the above quadratic equation for solution, and uses the obtained solution as the matching relationship between the color test image and the infrared test image.

另一方面,对于上述亮度匹配的校准,图6是依照本发明一实施例所示出的双传感器摄像系统的亮度匹配校准方法的流程图。请同时参照图3及图6,本实施例的方法适用于上述的双传感器摄像系统30,以下即搭配双传感器摄像系统30的各项器件说明本实施例的亮度匹配校准方法的详细步骤。On the other hand, for the calibration of the brightness matching, FIG6 is a flow chart of a brightness matching calibration method of a dual sensor camera system according to an embodiment of the present invention. Please refer to FIG3 and FIG6 simultaneously. The method of this embodiment is applicable to the dual sensor camera system 30 described above. The following is a description of the detailed steps of the brightness matching calibration method of this embodiment with various components of the dual sensor camera system 30.

在步骤S602中,由处理器38控制色彩传感器32及红外线传感器34采用多个拍摄条件分别获取一摄像场景的多张色彩图像及多张红外线图像。所述的拍摄条件例如包括环境光(ambient light)的波长范围、亮度,与摄像场景中的主体、背景的距离其中之一或其组合,在此不设限。In step S602, the processor 38 controls the color sensor 32 and the infrared sensor 34 to respectively acquire multiple color images and multiple infrared images of a camera scene using multiple shooting conditions. The shooting conditions include, for example, the wavelength range and brightness of the ambient light, and the distance from the subject and the background in the camera scene, or a combination thereof, which are not limited here.

在步骤S604中,由处理器38计算在各拍摄条件下获取的色彩图像的多个色彩图像参数以及在各拍摄条件下获取的红外线图像的多个红外线图像参数,并用以计算色彩图像的亮度及红外线图像的亮度之间的差异。In step S604, the processor 38 calculates a plurality of color image parameters of the color image acquired under each shooting condition and a plurality of infrared image parameters of the infrared image acquired under each shooting condition, and uses them to calculate the difference between the brightness of the color image and the brightness of the infrared image.

在一些实施例中,对于在不同拍摄条件下拍摄的图像,处理器38例如会计算每张图像的3A(包括自动对焦(Auto Focus,AF)、自动曝光(Auto Exposure,AE)、自动白平衡(Auto White Balance,AWB))统计值,并用以计算所述图像亮度之间的差异(例如为差值或比值)。In some embodiments, for images taken under different shooting conditions, the processor 38, for example, calculates 3A (including auto focus (AF), auto exposure (AE), and auto white balance (AWB)) statistics for each image, and uses them to calculate the difference between the brightness of the images (for example, a difference or a ratio).

在一些实施例中,处理器38例如会将各张色彩图像及各张红外线图像切割为多个块(block),并计算各个块内所有像素的像素值平均,从而计算相对应块的像素值平均的差异,用以作为色彩图像的亮度及红外线图像的亮度之间的差异。In some embodiments, the processor 38, for example, cuts each color image and each infrared image into multiple blocks, and calculates the average pixel value of all pixels in each block, thereby calculating the difference in the average pixel values of corresponding blocks, which is used as the difference between the brightness of the color image and the brightness of the infrared image.

在一些实施例中,处理器38例如会计算各张色彩图像及各张红外线图像的图像直方图(histogram),从而计算色彩图像及红外线图像的图像直方图的差异,用以作为色彩图像的亮度及红外线图像的亮度之间的差异。In some embodiments, the processor 38 calculates the image histogram of each color image and each infrared image, and calculates the difference between the image histograms of the color image and the infrared image as the difference between the brightness of the color image and the brightness of the infrared image.

回到图6的流程,在步骤S606中,由处理器38根据所计算的差异,决定适于色彩传感器32及红外线传感器34的曝光设定。Returning to the process of FIG. 6 , in step S606 , the processor 38 determines exposure settings suitable for the color sensor 32 and the infrared sensor 34 based on the calculated differences.

在一些实施例中,为了达到画面同步,处理器38例如会控制色彩传感器32及红外线传感器34采用相同的曝光时间分别获取摄像场景的色彩图像及红外线图像,并计算色彩图像及红外线图像之间的亮度差异,从而计算用以调整色彩图像的亮度和/或红外线图像的亮度的增益(gain)。即,处理器38会计算可补偿色彩图像及红外线图像的亮度差异的增益,其可以是针对色彩图像的增益、针对于红外线图像的增益,或是针对上述两者的增益,在此不设限。In some embodiments, in order to achieve image synchronization, the processor 38, for example, controls the color sensor 32 and the infrared sensor 34 to respectively acquire the color image and the infrared image of the camera scene using the same exposure time, and calculates the brightness difference between the color image and the infrared image, thereby calculating the gain for adjusting the brightness of the color image and/or the brightness of the infrared image. That is, the processor 38 calculates the gain that can compensate for the brightness difference between the color image and the infrared image, which can be a gain for the color image, a gain for the infrared image, or a gain for both of the above, without limitation.

举例来说,若采用相同曝光时间获取的色彩图像较亮,则可计算用以调整红外线图像的亮度的增益,使得红外线图像的亮度乘上该增益后,与色彩图像的亮度相当。所计算的增益例如会连同其对应的拍摄条件存储于存储装置36中,从而在后续的运行时间中,每当获取色彩图像和红外线图像时,处理器38即可通过识别拍摄条件,从存储装置36中取得应对于该拍摄条件的增益,并将所获取的色彩图像或红外线图像的像素值乘上所取得的增益,从而使得色彩图像的亮度能够与红外线图像的亮度匹配。For example, if the color image acquired with the same exposure time is brighter, the gain for adjusting the brightness of the infrared image can be calculated so that the brightness of the infrared image multiplied by the gain is equivalent to the brightness of the color image. The calculated gain is, for example, stored in the storage device 36 together with the corresponding shooting conditions, so that in the subsequent running time, whenever the color image and the infrared image are acquired, the processor 38 can obtain the gain corresponding to the shooting condition from the storage device 36 by identifying the shooting condition, and multiply the pixel value of the acquired color image or infrared image by the obtained gain, so that the brightness of the color image can match the brightness of the infrared image.

在一些实施例中,双传感器摄像系统30中可额外配置一个红外线投射器(IRprojector),从而搭配红外线传感器34来辅助处理器38计算双传感器摄像系统30与摄像场景中的主体和背景之间的距离。In some embodiments, the dual-sensor camera system 30 may be additionally configured with an infrared projector, so as to cooperate with the infrared sensor 34 to assist the processor 38 in calculating the distance between the dual-sensor camera system 30 and the subject and background in the camera scene.

详言之,图7是依照本发明一实施例所示出的双传感器摄像系统的校准方法的流程图。请同时参照图3及图7,本实施例的方法适用于上述的双传感器摄像系统30,以下即搭配双传感器摄像系统30的各项器件说明本实施例的校准方法的详细步骤。Specifically, FIG7 is a flow chart of a calibration method for a dual sensor camera system according to an embodiment of the present invention. Please refer to FIG3 and FIG7 simultaneously. The method of this embodiment is applicable to the dual sensor camera system 30 described above. The following is a detailed description of the calibration method of this embodiment with reference to the various components of the dual sensor camera system 30.

在步骤S702中,由处理器38控制红外线投射器投射具有特殊图案的不可见光至摄像场景。In step S702 , the processor 38 controls the infrared projector to project invisible light with a special pattern onto the camera scene.

在步骤S704中,由处理器38控制红外线传感器34中的两个红外线传感器分别获取具有特殊图案的摄像场景的多张红外线图像。In step S704, the processor 38 controls two infrared sensors in the infrared sensor 34 to respectively acquire a plurality of infrared images of the camera scene having the special pattern.

在步骤S706中,由处理器38根据所获取的红外线图像中的特殊图案以及两个红外线传感器之间的视差(parallax),分别计算双传感器摄像系统30与摄像场景中的主体和背景之间的距离。其中,由于由红外线投射器投射到摄像场景的特殊图案不易受到环境的影响,因此通过上述方法可取得较精确的拍摄主体和/或背景的距离,并用以识别拍摄条件来作为后续进行图像补偿的依据。In step S706, the processor 38 calculates the distance between the dual-sensor camera system 30 and the subject and background in the camera scene according to the special pattern in the acquired infrared image and the parallax between the two infrared sensors. Since the special pattern projected by the infrared projector to the camera scene is not easily affected by the environment, the above method can obtain a more accurate distance of the subject and/or background, and is used to identify the shooting conditions as a basis for subsequent image compensation.

综上所述,本发明的双传感器摄像系统及其校准方法针对配置于双传感器摄像系统上的色彩传感器与红外线传感器,采用不同的拍摄条件分别获取多张图像,从而对色彩传感器与红外线传感器进行图像对准及亮度匹配的校准,并将校准结果用以作为对后续获取图像进行调整的依据。因此,可提高双传感器摄像系统所获取图像的图像质量。In summary, the dual-sensor camera system and calibration method of the present invention respectively acquire multiple images using different shooting conditions for the color sensor and infrared sensor configured on the dual-sensor camera system, thereby calibrating the color sensor and the infrared sensor for image alignment and brightness matching, and using the calibration result as a basis for adjusting the subsequently acquired images. Therefore, the image quality of the images acquired by the dual-sensor camera system can be improved.

然本公开已以实施例揭示如上,然其并非用以限定本公开,任何本领域技术人员,在不脱离本公开的精神和范围内,当可作些许的还动与润饰,因此本公开的保护范围当视后附的权利要求及其均等范围所界定的为准。Although the present disclosure has been disclosed as above by way of embodiments, they are not intended to limit the present disclosure. Any person skilled in the art may make some modifications and improvements without departing from the spirit and scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be determined by the appended claims and their equivalent scope.

Claims (20)

1.一种双传感器摄像系统,包括:1. A dual-sensor camera system, comprising: 至少一色彩传感器;at least one color sensor; 至少一红外线传感器;at least one infrared sensor; 存储装置,存储计算机程序;以及a storage device storing a computer program; and 处理器,耦接所述至少一色彩传感器、所述至少一红外线传感器及所述存储装置,经配置以加载并执行所述计算机程序以:A processor, coupled to the at least one color sensor, the at least one infrared sensor and the storage device, is configured to load and execute the computer program to: 控制所述至少一色彩传感器及所述至少一红外线传感器采用多个拍摄条件分别获取一摄像场景的多张色彩图像及多张红外线图像;Controlling the at least one color sensor and the at least one infrared sensor to respectively acquire a plurality of color images and a plurality of infrared images of a camera scene using a plurality of shooting conditions; 计算在各所述拍摄条件下获取的所述色彩图像的多个色彩图像参数以及在各所述拍摄条件下获取的所述红外线图像的多个红外线图像参数,用以计算所述色彩图像的亮度及所述红外线图像的亮度之间的差异;以及Calculating a plurality of color image parameters of the color image acquired under each of the shooting conditions and a plurality of infrared image parameters of the infrared image acquired under each of the shooting conditions to calculate a difference between the brightness of the color image and the brightness of the infrared image; and 根据所计算所述色彩图像的亮度及所述红外线图像的亮度之间的差异,决定适于所述至少一色彩传感器及所述至少一红外线传感器的曝光设定,从而使得所述色彩图像的亮度与所述红外线图像的亮度匹配。Exposure settings suitable for the at least one color sensor and the at least one infrared sensor are determined according to the calculated difference between the brightness of the color image and the brightness of the infrared image, so that the brightness of the color image matches the brightness of the infrared image. 2.根据权利要求1所述的双传感器摄像系统,其中所述处理器包括:2. The dual sensor camera system of claim 1, wherein the processor comprises: 将各所述色彩图像及各所述红外线图像切割为多个块,并计算各所述块内所有像素的像素值平均;以及Cutting each of the color images and each of the infrared images into a plurality of blocks, and calculating an average of pixel values of all pixels in each of the blocks; and 计算相对应的所述块的所述像素值平均的差异作为所述色彩图像的亮度及所述红外线图像的亮度之间的差异。The average difference of the pixel values of the corresponding blocks is calculated as the difference between the brightness of the color image and the brightness of the infrared image. 3.根据权利要求1所述的双传感器摄像系统,其中所述处理器包括:3. The dual sensor camera system of claim 1 , wherein the processor comprises: 计算各所述色彩图像及各所述红外线图像的图像直方图;以及Calculating an image histogram of each of the color images and each of the infrared images; and 计算所述色彩图像及所述红外线图像的所述图像直方图的差异作为所述色彩图像的亮度及所述红外线图像的亮度之间的差异。A difference between the image histograms of the color image and the infrared image is calculated as a difference between the brightness of the color image and the brightness of the infrared image. 4.根据权利要求1所述的双传感器摄像系统,其中所述处理器包括:4. The dual sensor camera system of claim 1, wherein the processor comprises: 控制所述至少一色彩传感器及所述至少一红外线传感器采用相同的曝光时间分别获取所述摄像场景的所述色彩图像及所述红外线图像;以及Controlling the at least one color sensor and the at least one infrared sensor to respectively acquire the color image and the infrared image of the camera scene using the same exposure time; and 根据所计算的所述色彩图像的亮度及所述红外线图像的亮度之间的差异,计算用以调整所述色彩图像的亮度或所述红外线图像的亮度的增益。A gain for adjusting the brightness of the color image or the brightness of the infrared image is calculated according to the calculated difference between the brightness of the color image and the brightness of the infrared image. 5.根据权利要求1所述的双传感器摄像系统,其中所述处理器还包括:5. The dual sensor camera system of claim 1 , wherein the processor further comprises: 控制所述至少一色彩传感器及所述至少一红外线传感器分别拍摄具有特殊图案的测试图,以获得一色彩测试图像及一红外线测试图像;Controlling the at least one color sensor and the at least one infrared sensor to respectively photograph a test image having a special pattern to obtain a color test image and an infrared test image; 检测所述色彩测试图像及所述红外线测试图像中的所述特殊图案的多个特征点;以及Detecting a plurality of feature points of the special pattern in the color test image and the infrared test image; and 执行图像对准算法以根据所述色彩测试图像及所述红外线测试图像中相对应的所述特征点之间的位置关系,计算所述色彩测试图像及所述红外线测试图像之间的匹配关系,用以对后续获取的所述色彩图像及所述红外线图像进行对准。An image alignment algorithm is executed to calculate a matching relationship between the color test image and the infrared test image according to a positional relationship between the corresponding feature points in the color test image and the infrared test image, so as to align the subsequently acquired color image and infrared image. 6.根据权利要求5所述的双传感器摄像系统,其中所述处理器包括:6. The dual sensor camera system of claim 5, wherein the processor comprises: 将所述色彩测试图像及所述红外线测试图像切割为多个块,并执行一特征检测算法以检测各所述块内的至少一个所述特征点,其中所述特征检测算法包括哈里斯边角检测法。The color test image and the infrared test image are cut into a plurality of blocks, and a feature detection algorithm is executed to detect at least one feature point in each of the blocks, wherein the feature detection algorithm includes a Harris corner detection method. 7.根据权利要求5所述的双传感器摄像系统,其中所述处理器包括:7. The dual sensor camera system of claim 5, wherein the processor comprises: 针对从所述色彩测试图像中检测出的所述特征点中的一指定特征点,以所述红外线测试图像中对应于所述指定特征点的像素为中心移动包括多个像素的面片来搜寻所述红外线测试图像中对应于所述指定特征点的对应特征点;以及For a designated feature point among the feature points detected from the color test image, a patch including a plurality of pixels is moved around a pixel corresponding to the designated feature point in the infrared test image to search for a corresponding feature point in the infrared test image corresponding to the designated feature point; and 执行随机抽样一致算法以建立单应性变换矩阵,并将所述色彩测试图像中的所述特征点与所述红外线测试图像中的所述对应特征点的位置带入所述单应性变换矩阵求解,而以所求得的解作为所述色彩测试图像及所述红外线测试图像之间的所述匹配关系。A random sampling consensus algorithm is executed to establish a homography transformation matrix, and the positions of the feature points in the color test image and the corresponding feature points in the infrared test image are brought into the homography transformation matrix for solution, and the obtained solution is used as the matching relationship between the color test image and the infrared test image. 8.根据权利要求5所述的双传感器摄像系统,其中所述处理器包括:8. The dual sensor camera system of claim 5, wherein the processor comprises: 利用所述色彩测试图像及所述红外线测试图像计算摄像场景的多个深度,据以将所述摄像场景区分为多个深度场景;以及Calculating multiple depths of a camera scene using the color test image and the infrared test image, thereby dividing the camera scene into multiple depth scenes; and 针对各所述深度场景建立二次方程式,并将位于各所述深度场景内的所述色彩测试图像中的所述特征点与所述红外线测试图像中的所述对应特征点的位置带入对应的所述二次方程式求解,而以所求得的解作为所述色彩测试图像及所述红外线测试图像之间的所述匹配关系。A quadratic equation is established for each of the depth scenes, and the positions of the feature points in the color test image and the corresponding feature points in the infrared test image within each of the depth scenes are substituted into the corresponding quadratic equation for solution, and the obtained solution is used as the matching relationship between the color test image and the infrared test image. 9.根据权利要求5所述的双传感器摄像系统,其中所述图像对准算法包括暴力法、光流法、单应性变换法或局部翘曲法。9 . The dual-sensor camera system of claim 5 , wherein the image alignment algorithm comprises a brute force method, an optical flow method, a homography transformation method, or a local warping method. 10.根据权利要求1所述的双传感器摄像系统,还包括红外线投射器,其中所述处理器还包括:10. The dual sensor camera system of claim 1, further comprising an infrared projector, wherein the processor further comprises: 控制所述红外线投射器投射具有特殊图案的不可见光至所述摄像场景;Controlling the infrared projector to project invisible light with a special pattern onto the camera scene; 控制所述至少一红外线传感器中的两个红外线传感器分别获取具有所述特殊图案的摄像场景的多张红外线图像;以及Controlling two infrared sensors of the at least one infrared sensor to respectively acquire a plurality of infrared images of the camera scene having the special pattern; and 根据所获取的所述红外线图像中的所述特殊图案以及所述两个红外线传感器的视差,分别计算所述双传感器摄像系统与所述摄像场景中的主体和背景之间的距离。According to the special pattern in the acquired infrared image and the parallax of the two infrared sensors, the distances between the dual-sensor camera system and the subject and the background in the camera scene are calculated respectively. 11.一种双传感器摄像系统的校准方法,所述双传感器摄像系统包括至少一色彩传感器、至少一红外线传感器及处理器,所述方法包括下列步骤:11. A calibration method for a dual-sensor camera system, the dual-sensor camera system comprising at least one color sensor, at least one infrared sensor and a processor, the method comprising the following steps: 控制所述至少一色彩传感器及所述至少一红外线传感器采用多个拍摄条件分别获取一摄像场景的多张色彩图像及多张红外线图像;Controlling the at least one color sensor and the at least one infrared sensor to respectively acquire a plurality of color images and a plurality of infrared images of a camera scene using a plurality of shooting conditions; 计算在各所述拍摄条件下获取的所述色彩图像的多个色彩图像参数以及在各所述拍摄条件下获取的所述红外线图像的多个红外线图像参数,用以计算所述色彩图像的亮度及所述红外线图像的亮度之间的差异;以及Calculating a plurality of color image parameters of the color image acquired under each of the shooting conditions and a plurality of infrared image parameters of the infrared image acquired under each of the shooting conditions to calculate a difference between the brightness of the color image and the brightness of the infrared image; and 根据所计算所述色彩图像的亮度及所述红外线图像的亮度之间的差异,决定适于所述至少一色彩传感器及所述至少一红外线传感器的曝光设定,从而使得所述色彩图像的亮度与所述红外线图像的亮度匹配。Exposure settings suitable for the at least one color sensor and the at least one infrared sensor are determined based on the calculated difference between the brightness of the color image and the brightness of the infrared image, so that the brightness of the color image matches the brightness of the infrared image. 12.根据权利要求11所述的方法,其中计算所述色彩图像的亮度及所述红外线图像的亮度之间的差异的步骤包括:12. The method according to claim 11, wherein the step of calculating the difference between the brightness of the color image and the brightness of the infrared image comprises: 将各所述色彩图像及各所述红外线图像切割为多个块,并计算各所述块内所有像素的像素值平均;以及Cutting each of the color images and each of the infrared images into a plurality of blocks, and calculating the average pixel value of all pixels in each of the blocks; and 计算相对应的所述块的所述像素值平均的差异作为所述色彩图像的亮度及所述红外线图像的亮度之间的差异。The average difference of the pixel values of the corresponding blocks is calculated as the difference between the brightness of the color image and the brightness of the infrared image. 13.根据权利要求11所述的方法,其中计算所述色彩图像的亮度及所述红外线图像的亮度之间的差异的步骤包括:13. The method according to claim 11, wherein the step of calculating the difference between the brightness of the color image and the brightness of the infrared image comprises: 计算各所述色彩图像及各所述红外线图像的图像直方图;以及Calculating an image histogram of each of the color images and each of the infrared images; and 计算所述色彩图像及所述红外线图像的所述图像直方图的差异作为所述色彩图像的亮度及所述红外线图像的亮度之间的差异。A difference between the image histograms of the color image and the infrared image is calculated as a difference between the brightness of the color image and the brightness of the infrared image. 14.根据权利要求11所述的方法,还包括:14. The method according to claim 11, further comprising: 控制所述至少一色彩传感器及所述至少一红外线传感器采用相同的曝光时间分别获取所述摄像场景的所述色彩图像及所述红外线图像;以及Controlling the at least one color sensor and the at least one infrared sensor to respectively acquire the color image and the infrared image of the camera scene using the same exposure time; and 根据所计算的所述色彩图像的亮度及所述红外线图像的亮度之间的差异,计算用以调整所述色彩图像的亮度或所述红外线图像的亮度的增益。A gain for adjusting the brightness of the color image or the brightness of the infrared image is calculated according to the calculated difference between the brightness of the color image and the brightness of the infrared image. 15.根据权利要求11所述的方法,还包括:15. The method according to claim 11, further comprising: 控制所述至少一色彩传感器及所述至少一红外线传感器分别拍摄具有特殊图案的测试图,以获得一色彩测试图像及一红外线测试图像;Controlling the at least one color sensor and the at least one infrared sensor to respectively photograph a test image having a special pattern to obtain a color test image and an infrared test image; 检测所述色彩测试图像及所述红外线测试图像中的所述特殊图案的多个特征点;以及Detecting a plurality of feature points of the special pattern in the color test image and the infrared test image; and 执行图像对准算法以根据所述色彩测试图像及所述红外线测试图像中相对应的所述特征点之间的位置关系,计算所述色彩测试图像及所述红外线测试图像之间的匹配关系,用以对后续获取的所述色彩图像及所述红外线图像进行对准。An image alignment algorithm is executed to calculate a matching relationship between the color test image and the infrared test image according to a positional relationship between the corresponding feature points in the color test image and the infrared test image, so as to align the subsequently acquired color image and infrared image. 16.根据权利要求15所述的方法,其中检测所述色彩测试图像及所述红外线测试图像中的所述特殊图案的多个特征点的步骤包括:16. The method according to claim 15, wherein the step of detecting a plurality of feature points of the special pattern in the color test image and the infrared test image comprises: 将所述色彩测试图像及所述红外线测试图像切割为多个块,并执行一特征检测算法以检测各所述块内的至少一个所述特征点,其中所述特征检测算法包括哈里斯边角检测法。The color test image and the infrared test image are cut into a plurality of blocks, and a feature detection algorithm is executed to detect at least one feature point in each of the blocks, wherein the feature detection algorithm includes a Harris corner detection method. 17.根据权利要求15所述的方法,其中计算所述色彩测试图像及所述红外线测试图像之间的匹配关系的步骤包括:17. The method according to claim 15, wherein the step of calculating the matching relationship between the color test image and the infrared test image comprises: 针对从所述色彩测试图像中检测出的所述特征点中的一指定特征点,以所述红外线测试图像中对应于所述指定特征点的像素为中心移动包括多个像素的面片来搜寻所述红外线测试图像中对应于所述指定特征点的对应特征点;以及For a designated feature point among the feature points detected from the color test image, a patch including a plurality of pixels is moved around a pixel corresponding to the designated feature point in the infrared test image to search for a corresponding feature point in the infrared test image corresponding to the designated feature point; and 执行随机抽样一致算法以建立单应性变换矩阵,并将所述色彩测试图像中的所述特征点与所述红外线测试图像中的所述对应特征点的位置带入所述单应性变换矩阵求解,而以所求得的解作为所述色彩测试图像及所述红外线测试图像之间的所述匹配关系。A random sampling consensus algorithm is executed to establish a homography transformation matrix, and the positions of the feature points in the color test image and the corresponding feature points in the infrared test image are brought into the homography transformation matrix for solution, and the obtained solution is used as the matching relationship between the color test image and the infrared test image. 18.根据权利要求15所述的方法,其中计算所述色彩测试图像及所述红外线测试图像之间的匹配关系的步骤包括:18. The method according to claim 15, wherein the step of calculating the matching relationship between the color test image and the infrared test image comprises: 利用所述色彩测试图像及所述红外线测试图像计算摄像场景的多个深度,据以将所述摄像场景区分为多个深度场景;以及Calculating multiple depths of a camera scene using the color test image and the infrared test image, thereby dividing the camera scene into multiple depth scenes; and 针对各所述深度场景建立二次方程式,并将位于各所述深度场景内的所述色彩测试图像中的所述特征点与所述红外线测试图像中的所述对应特征点的位置带入对应的所述二次方程式求解,而以所求得的解作为所述色彩测试图像及所述红外线测试图像之间的所述匹配关系。A quadratic equation is established for each of the depth scenes, and the positions of the feature points in the color test image and the corresponding feature points in the infrared test image within each of the depth scenes are substituted into the corresponding quadratic equation for solution, and the obtained solution is used as the matching relationship between the color test image and the infrared test image. 19.根据权利要求15所述的方法,其中所述图像对准算法包括暴力法、光流法、单应性变换法或局部翘曲法。19. The method of claim 15, wherein the image alignment algorithm comprises a brute force method, an optical flow method, a homography transformation method, or a local warping method. 20.根据权利要求11所述的方法,其中所述双传感器摄像系统还包括红外线投射器,所述方法还包括:20. The method of claim 11, wherein the dual sensor camera system further comprises an infrared projector, the method further comprising: 控制所述红外线投射器投射具有特殊图案的不可见光至所述摄像场景;Controlling the infrared projector to project invisible light with a special pattern onto the camera scene; 控制所述至少一红外线传感器中的两个红外线传感器分别获取具有所述特殊图案的摄像场景的多张红外线图像;以及Controlling two infrared sensors of the at least one infrared sensor to respectively acquire a plurality of infrared images of the camera scene having the special pattern; and 根据所获取的所述红外线图像中的所述特殊图案以及所述两个红外线传感器的视差,分别计算所述双传感器摄像系统与所述摄像场景中的主体和背景之间的距离。According to the special pattern in the acquired infrared image and the parallax of the two infrared sensors, the distances between the dual-sensor camera system and the subject and the background in the camera scene are calculated respectively.
CN202011625552.3A 2020-09-04 2020-12-30 Dual-sensor camera system and calibration method thereof Active CN114143421B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US202063074477P 2020-09-04 2020-09-04
US63/074,477 2020-09-04

Publications (2)

Publication Number Publication Date
CN114143421A CN114143421A (en) 2022-03-04
CN114143421B true CN114143421B (en) 2024-04-05

Family

ID=80438521

Family Applications (5)

Application Number Title Priority Date Filing Date
CN202011541300.2A Active CN114143418B (en) 2020-09-04 2020-12-23 Dual-sensor imaging system and imaging method thereof
CN202011540274.1A Active CN114143443B (en) 2020-09-04 2020-12-23 Dual sensor camera system and camera method thereof
CN202011622478.XA Active CN114143419B (en) 2020-09-04 2020-12-30 Dual-sensor camera system and depth map calculation method thereof
CN202011625515.2A Active CN114143420B (en) 2020-09-04 2020-12-30 Dual sensor camera system and privacy protection camera method thereof
CN202011625552.3A Active CN114143421B (en) 2020-09-04 2020-12-30 Dual-sensor camera system and calibration method thereof

Family Applications Before (4)

Application Number Title Priority Date Filing Date
CN202011541300.2A Active CN114143418B (en) 2020-09-04 2020-12-23 Dual-sensor imaging system and imaging method thereof
CN202011540274.1A Active CN114143443B (en) 2020-09-04 2020-12-23 Dual sensor camera system and camera method thereof
CN202011622478.XA Active CN114143419B (en) 2020-09-04 2020-12-30 Dual-sensor camera system and depth map calculation method thereof
CN202011625515.2A Active CN114143420B (en) 2020-09-04 2020-12-30 Dual sensor camera system and privacy protection camera method thereof

Country Status (2)

Country Link
CN (5) CN114143418B (en)
TW (5) TWI767468B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116091341B (en) * 2022-12-15 2024-04-02 南京信息工程大学 Exposure difference enhancement method and device for low-light image
CN116962897A (en) * 2023-07-07 2023-10-27 浙江大华技术股份有限公司 Image acquisition method, device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246252A (en) * 2003-02-17 2004-09-02 Takenaka Komuten Co Ltd Apparatus and method for collecting image information
CN104661008A (en) * 2013-11-18 2015-05-27 深圳中兴力维技术有限公司 Processing method and device for improving colorful image quality under condition of low-light level
CN105009568A (en) * 2012-12-21 2015-10-28 菲力尔系统公司 Compact multi-spectrum imaging with fusion
JP2017011634A (en) * 2015-06-26 2017-01-12 キヤノン株式会社 Imaging device, control method for the same and program
JP2017163297A (en) * 2016-03-09 2017-09-14 キヤノン株式会社 Imaging apparatus
CN110248105A (en) * 2018-12-10 2019-09-17 浙江大华技术股份有限公司 A kind of image processing method, video camera and computer storage medium
WO2020051898A1 (en) * 2018-09-14 2020-03-19 浙江宇视科技有限公司 Automatic exposure method and apparatus for dual-light image, and dual-light image camera and machine storage medium
CN111586314A (en) * 2020-05-25 2020-08-25 浙江大华技术股份有限公司 Image fusion method and device and computer storage medium

Family Cites Families (62)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005091434A (en) * 2003-09-12 2005-04-07 Noritsu Koki Co Ltd Position adjustment method and image reading apparatus with flaw correction function using the method
JP4244018B2 (en) * 2004-03-25 2009-03-25 ノーリツ鋼機株式会社 Defective pixel correction method, program, and defective pixel correction system for implementing the method
JP4341680B2 (en) * 2007-01-22 2009-10-07 セイコーエプソン株式会社 projector
US9307212B2 (en) * 2007-03-05 2016-04-05 Fotonation Limited Tone mapping for low-light video frame enhancement
US8902321B2 (en) * 2008-05-20 2014-12-02 Pelican Imaging Corporation Capturing and processing of images using monolithic camera array with heterogeneous imagers
US8866920B2 (en) * 2008-05-20 2014-10-21 Pelican Imaging Corporation Capturing and processing of images using monolithic camera array with heterogeneous imagers
CN101404060B (en) * 2008-11-10 2010-06-30 北京航空航天大学 A face recognition method based on the fusion of visible light and near-infrared Gabor information
US8749635B2 (en) * 2009-06-03 2014-06-10 Flir Systems, Inc. Infrared camera systems and methods for dual sensor applications
US8681216B2 (en) * 2009-03-12 2014-03-25 Hewlett-Packard Development Company, L.P. Depth-sensing camera system
US20120154596A1 (en) * 2009-08-25 2012-06-21 Andrew Augustine Wajs Reducing noise in a color image
US8478123B2 (en) * 2011-01-25 2013-07-02 Aptina Imaging Corporation Imaging devices having arrays of image sensors and lenses with multiple aperture sizes
JP2013115679A (en) * 2011-11-30 2013-06-10 Fujitsu General Ltd Imaging apparatus
US10848731B2 (en) * 2012-02-24 2020-11-24 Matterport, Inc. Capturing and aligning panoramic image and depth data
TW201401186A (en) * 2012-06-25 2014-01-01 盈泰安股份有限公司 Face judgment system and method
CN104662897A (en) * 2012-09-25 2015-05-27 日本电信电话株式会社 Image encoding method, image decoding method, image encoding device, image decoding device, image encoding program, image decoding program, and recording medium
KR102086509B1 (en) * 2012-11-23 2020-03-09 엘지전자 주식회사 Apparatus and method for obtaining 3d image
TWM458748U (en) * 2012-12-26 2013-08-01 Chunghwa Telecom Co Ltd Image type depth information retrieval device
JP6055681B2 (en) * 2013-01-10 2016-12-27 株式会社 日立産業制御ソリューションズ Imaging device
CN104021548A (en) * 2014-05-16 2014-09-03 中国科学院西安光学精密机械研究所 Method for acquiring scene 4D information
US9516295B2 (en) * 2014-06-30 2016-12-06 Aquifi, Inc. Systems and methods for multi-channel imaging based on multiple exposure settings
JP6450107B2 (en) * 2014-08-05 2019-01-09 キヤノン株式会社 Image processing apparatus, image processing method, program, and storage medium
CN107005639B (en) * 2014-12-10 2020-04-14 索尼公司 Image pickup apparatus, image pickup method, and image processing apparatus
CN107431760B (en) * 2015-03-31 2018-08-28 富士胶片株式会社 The image processing method and storage medium of photographic device, photographic device
WO2016192437A1 (en) * 2015-06-05 2016-12-08 深圳奥比中光科技有限公司 3d image capturing apparatus and capturing method, and 3d image system
CN105049829B (en) * 2015-07-10 2018-12-25 上海图漾信息科技有限公司 Optical filter, imaging sensor, imaging device and 3-D imaging system
CN105069768B (en) * 2015-08-05 2017-12-29 武汉高德红外股份有限公司 A kind of visible images and infrared image fusion processing system and fusion method
US10523855B2 (en) * 2015-09-24 2019-12-31 Intel Corporation Infrared and visible light dual sensor imaging system
TW201721269A (en) * 2015-12-11 2017-06-16 宏碁股份有限公司 Automatic exposure system and auto exposure method thereof
JP2017112401A (en) * 2015-12-14 2017-06-22 ソニー株式会社 Imaging device, apparatus and method for image processing, and program
CN206117865U (en) * 2016-01-16 2017-04-19 上海图漾信息科技有限公司 Range data monitoring device
KR101747603B1 (en) * 2016-05-11 2017-06-16 재단법인 다차원 스마트 아이티 융합시스템 연구단 Color night vision system and operation method thereof
CN106815826A (en) * 2016-12-27 2017-06-09 上海交通大学 Night vision image Color Fusion based on scene Recognition
CN108280807A (en) * 2017-01-05 2018-07-13 浙江舜宇智能光学技术有限公司 Monocular depth image collecting device and system and its image processing method
ES2747387B1 (en) * 2017-02-06 2021-07-27 Photonic Sensors & Algorithms S L DEVICE AND METHOD TO OBTAIN DEPTH INFORMATION FROM A SCENE.
CN108419062B (en) * 2017-02-10 2020-10-02 杭州海康威视数字技术股份有限公司 Image fusion device and image fusion method
CN109474770B (en) * 2017-09-07 2021-09-14 华为技术有限公司 Imaging device and imaging method
CN109712102B (en) * 2017-10-25 2020-11-27 杭州海康威视数字技术股份有限公司 Image fusion method, device and image acquisition device
CN107846537B (en) * 2017-11-08 2019-11-26 维沃移动通信有限公司 A kind of CCD camera assembly, image acquiring method and mobile terminal
CN112788249B (en) * 2017-12-20 2022-12-06 杭州海康威视数字技术股份有限公司 Image fusion method and device, electronic equipment and computer readable storage medium
US10748247B2 (en) * 2017-12-26 2020-08-18 Facebook, Inc. Computing high-resolution depth images using machine learning techniques
US10757320B2 (en) * 2017-12-28 2020-08-25 Waymo Llc Multiple operating modes to expand dynamic range
TWI661726B (en) * 2018-01-09 2019-06-01 呂官諭 Image sensor with enhanced image recognition and application
CN110136183B (en) * 2018-02-09 2021-05-18 华为技术有限公司 An image processing method, device and camera device
CN108965654B (en) * 2018-02-11 2020-12-25 浙江宇视科技有限公司 Double-spectrum camera system based on single sensor and image processing method
CN110572583A (en) * 2018-05-18 2019-12-13 杭州海康威视数字技术股份有限公司 Image capturing method and camera
CN108961195B (en) * 2018-06-06 2021-03-23 Oppo广东移动通信有限公司 Image processing method and device, image acquisition device, readable storage medium and computer equipment
JP6574878B2 (en) * 2018-07-19 2019-09-11 キヤノン株式会社 Image processing apparatus, image processing method, imaging apparatus, program, and storage medium
JP7254461B2 (en) * 2018-08-01 2023-04-10 キヤノン株式会社 IMAGING DEVICE, CONTROL METHOD, RECORDING MEDIUM, AND INFORMATION PROCESSING DEVICE
CN109035193A (en) * 2018-08-29 2018-12-18 成都臻识科技发展有限公司 A kind of image processing method and imaging processing system based on binocular solid camera
JP2020052001A (en) * 2018-09-28 2020-04-02 パナソニックIpマネジメント株式会社 Depth acquisition device, depth acquisition method, and program
US11176694B2 (en) * 2018-10-19 2021-11-16 Samsung Electronics Co., Ltd Method and apparatus for active depth sensing and calibration method thereof
CN109636732B (en) * 2018-10-24 2023-06-23 深圳先进技术研究院 Hole repairing method of depth image and image processing device
US11120536B2 (en) * 2018-12-12 2021-09-14 Samsung Electronics Co., Ltd Apparatus and method for determining image sharpness
CN113170048A (en) * 2019-02-19 2021-07-23 华为技术有限公司 Image processing device and method
US10972649B2 (en) * 2019-02-27 2021-04-06 X Development Llc Infrared and visible imaging system for device identification and tracking
JP7316809B2 (en) * 2019-03-11 2023-07-28 キヤノン株式会社 Image processing device, image processing device control method, system, and program
CN110349117B (en) * 2019-06-28 2023-02-28 重庆工商大学 A fusion method, device and storage medium of an infrared image and a visible light image
CN110706178B (en) * 2019-09-30 2023-01-06 杭州海康威视数字技术股份有限公司 Image fusion device, method, equipment and storage medium
CN111524175A (en) * 2020-04-16 2020-08-11 东莞市东全智能科技有限公司 Asymmetric multi-camera depth reconstruction and eye tracking method and system
CN111540003A (en) * 2020-04-27 2020-08-14 浙江光珀智能科技有限公司 Depth image generation method and device
CN111383206B (en) * 2020-06-01 2020-09-29 浙江大华技术股份有限公司 Image processing method and device, electronic equipment and storage medium
IN202021032940A (en) * 2020-07-31 2020-08-28 .Us Priyadarsan

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246252A (en) * 2003-02-17 2004-09-02 Takenaka Komuten Co Ltd Apparatus and method for collecting image information
CN105009568A (en) * 2012-12-21 2015-10-28 菲力尔系统公司 Compact multi-spectrum imaging with fusion
CN104661008A (en) * 2013-11-18 2015-05-27 深圳中兴力维技术有限公司 Processing method and device for improving colorful image quality under condition of low-light level
JP2017011634A (en) * 2015-06-26 2017-01-12 キヤノン株式会社 Imaging device, control method for the same and program
JP2017163297A (en) * 2016-03-09 2017-09-14 キヤノン株式会社 Imaging apparatus
WO2020051898A1 (en) * 2018-09-14 2020-03-19 浙江宇视科技有限公司 Automatic exposure method and apparatus for dual-light image, and dual-light image camera and machine storage medium
CN110248105A (en) * 2018-12-10 2019-09-17 浙江大华技术股份有限公司 A kind of image processing method, video camera and computer storage medium
CN111586314A (en) * 2020-05-25 2020-08-25 浙江大华技术股份有限公司 Image fusion method and device and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于环境光检测的场景融合系统;董月;陈跃庭;冯华君;徐之海;李奇;;光子学报(01);全文 *

Also Published As

Publication number Publication date
TWI767484B (en) 2022-06-11
TWI764484B (en) 2022-05-11
TWI767468B (en) 2022-06-11
CN114143420B (en) 2024-05-03
TW202211674A (en) 2022-03-16
CN114143419A (en) 2022-03-04
CN114143421A (en) 2022-03-04
CN114143418B (en) 2023-12-01
TW202211165A (en) 2022-03-16
TW202211160A (en) 2022-03-16
TW202211161A (en) 2022-03-16
CN114143443B (en) 2024-04-05
CN114143443A (en) 2022-03-04
TWI778476B (en) 2022-09-21
CN114143419B (en) 2023-12-26
CN114143420A (en) 2022-03-04
TWI797528B (en) 2023-04-01
CN114143418A (en) 2022-03-04
TW202211673A (en) 2022-03-16

Similar Documents

Publication Publication Date Title
US7868915B2 (en) Photographing apparatus, method and computer program product
US11503262B2 (en) Image processing method and device for auto white balance
CN110708463B (en) Focusing method, device, storage medium and electronic device
US20170318240A1 (en) Methods and apparatus for automated noise and texture optimization of digital image sensors
JP2009212853A (en) White balance controller, its control method, and imaging apparatus
US10764550B2 (en) Image processing apparatus, image processing method, and storage medium
JP6412386B2 (en) Image processing apparatus, control method therefor, program, and recording medium
CN114143421B (en) Dual-sensor camera system and calibration method thereof
US11496660B2 (en) Dual sensor imaging system and depth map calculation method thereof
JP6525503B2 (en) Image processing apparatus and imaging apparatus
US11418719B2 (en) Dual sensor imaging system and calibration method which includes a color sensor and an infrared ray sensor to perform image alignment and brightness matching
US11405598B2 (en) Image processing apparatus, image processing method, and storage medium
JP6718253B2 (en) Image processing apparatus and image processing method
JP2021153229A (en) Information processing apparatus, imaging apparatus, method, program, and storage medium
JP2013012940A (en) Tracking apparatus and tracking method
JP6702752B2 (en) Image processing device, imaging device, control method, and program
CN111885371A (en) Image occlusion detection method and device, electronic equipment and computer readable medium
JP6541416B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, AND STORAGE MEDIUM
CN114298951A (en) Image processing method, related device, equipment and storage medium
US11611726B2 (en) Apparatus, method and computer program for image capturing
JP2019106215A (en) Data processor, imaging device, and data processing method
US20230209187A1 (en) Image pickup system that performs automatic shooting using multiple image pickup apparatuses, image pickup apparatus, control method therefor, and storage medium
CN116847066A (en) Method, device, storage medium and chip for detecting consistency of module lens
JP2004274482A (en) Image processing apparatus and imaging system
TW200950532A (en) White balance method and its application on a digital photographing apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant