CN115170676A - Sensor calibration and image correction method and device, electronic equipment and storage medium - Google Patents
Sensor calibration and image correction method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115170676A CN115170676A CN202210879467.2A CN202210879467A CN115170676A CN 115170676 A CN115170676 A CN 115170676A CN 202210879467 A CN202210879467 A CN 202210879467A CN 115170676 A CN115170676 A CN 115170676A
- Authority
- CN
- China
- Prior art keywords
- sensor
- image
- pixel
- calibration
- compensation value
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 83
- 238000003860 storage Methods 0.000 title claims abstract description 25
- 238000003702 image correction Methods 0.000 title claims description 26
- 230000004298 light response Effects 0.000 claims abstract description 118
- 238000004590 computer program Methods 0.000 claims abstract description 31
- 230000004044 response Effects 0.000 claims description 67
- 230000003287 optical effect Effects 0.000 claims description 65
- 238000012545 processing Methods 0.000 claims description 18
- 238000012937 correction Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000003384 imaging method Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000005286 illumination Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003705 background correction Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005669 field effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 108091008695 photoreceptors Proteins 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/80—Geometric correction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Input (AREA)
Abstract
本申请涉及一种传感器标定方法、装置、计算机设备、存储介质和计算机程序产品。所述方法包括:获取各个传感器拍摄的标定图像;根据同一所述传感器拍摄的标定图像,得到所述传感器对应的第一图像;根据各个传感器对应的第一图像,得到第二图像;针对每个传感器,根据所述传感器对应的第一图像和所述第二图像确定所述传感器的光响应不均匀性补偿值。该方法可以很大程度上屏蔽除PRNU之外的噪声,进而根据传感器对应的第一图像和第二图像可以准确确定该传感器的光响应不均匀性补偿值。
The present application relates to a sensor calibration method, apparatus, computer equipment, storage medium and computer program product. The method includes: acquiring a calibration image captured by each sensor; obtaining a first image corresponding to the sensor according to the calibration image captured by the same sensor; obtaining a second image according to the first image corresponding to each sensor; for each sensor a sensor, and a compensation value of the light response non-uniformity of the sensor is determined according to the first image and the second image corresponding to the sensor. The method can shield noises other than PRNU to a large extent, and then can accurately determine the light response non-uniformity compensation value of the sensor according to the first image and the second image corresponding to the sensor.
Description
技术领域technical field
本申请涉及影像技术领域,特别是涉及一种传感器标定及图像校正方法、装置、电子设备和计算机可读存储介质。The present application relates to the field of imaging technologies, and in particular, to a sensor calibration and image correction method, device, electronic device, and computer-readable storage medium.
背景技术Background technique
随着智能手机、平板电脑等电子设备的迅速普及,电子设备成为生活中不可或缺的一部分。电子设备的一项重要功能是实现拍照,随着摄像技术的发展,人们对拍摄图像的成像质量要求也越来越高。With the rapid popularization of electronic devices such as smartphones and tablet computers, electronic devices have become an indispensable part of life. An important function of electronic devices is to take pictures. With the development of camera technology, people have higher and higher requirements on the imaging quality of the captured images.
为了实现更好的成像质量,提供更多的动态范围和图像细节,成像传感器上的FWC(Full Well Capacity,满阱电容)也在不断增大。相同情况下,FWC越大,接受的电子数越多,电信号越强,信噪比越高,图像的质量也会越好。In order to achieve better imaging quality and provide more dynamic range and image details, the FWC (Full Well Capacity, full well capacitance) on the imaging sensor is also increasing. In the same situation, the larger the FWC, the more electrons it accepts, the stronger the electrical signal, the higher the signal-to-noise ratio, and the better the image quality.
但是在FWC不断增大的同时,由于成像传感器存在的PRNU(Photo Response Non-Uniformity,光响应不均匀性)影响,对应产生的噪声也会变大。However, while the FWC continues to increase, due to the influence of the PRNU (Photo Response Non-Uniformity) existing in the imaging sensor, the corresponding noise will also increase.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种传感器标定和图像校正方法、装置、电子设备、计算机可读存储介质,可以降低由于PRNU产生的噪声。Embodiments of the present application provide a sensor calibration and image correction method, apparatus, electronic device, and computer-readable storage medium, which can reduce noise generated by PRNU.
第一方面,本申请提供了一种传感器标定方法。所述方法包括:In a first aspect, the present application provides a sensor calibration method. The method includes:
获取各个传感器拍摄的标定图像;Obtain the calibration images captured by each sensor;
根据同一所述传感器拍摄的标定图像,得到所述传感器对应的第一图像;obtaining a first image corresponding to the sensor according to the calibration image captured by the same sensor;
根据各个传感器对应的第一图像,得到第二图像;obtaining a second image according to the first image corresponding to each sensor;
针对每个传感器,根据所述传感器对应的第一图像和所述第二图像确定所述传感器的光响应不均匀性补偿值。For each sensor, a light response non-uniformity compensation value of the sensor is determined according to the first image and the second image corresponding to the sensor.
第二方面,本申请还提供了一种传感器标定装置。所述装置包括:In a second aspect, the present application also provides a sensor calibration device. The device includes:
标定图像获取模块,用于获取各个传感器拍摄的标定图像;The calibration image acquisition module is used to acquire the calibration images captured by each sensor;
第一数据处理模块,用于根据同一所述传感器拍摄的标定图像,得到所述传感器对应的第一图像;a first data processing module, configured to obtain a first image corresponding to the sensor according to the calibration image captured by the same sensor;
第二数据处理模块,用于根据各个传感器对应的第一图像,得到第二图像;a second data processing module, configured to obtain a second image according to the first image corresponding to each sensor;
补偿数据确定模块,用于针对每个传感器,根据所述传感器对应的第一图像和所述第二图像,确定所述传感器的光响应不均匀性补偿值。The compensation data determination module is configured to, for each sensor, determine the compensation value of the light response non-uniformity of the sensor according to the first image and the second image corresponding to the sensor.
第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
获取各个传感器拍摄的标定图像;Obtain the calibration images captured by each sensor;
根据同一所述传感器拍摄的标定图像,得到所述传感器对应的第一图像;obtaining a first image corresponding to the sensor according to the calibration image captured by the same sensor;
根据各个传感器对应的第一图像,得到第二图像;obtaining a second image according to the first image corresponding to each sensor;
针对每个传感器,根据所述传感器对应的第一图像和所述第二图像确定所述传感器的光响应不均匀性补偿值。For each sensor, a light response non-uniformity compensation value of the sensor is determined according to the first image and the second image corresponding to the sensor.
第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by the processor, the following steps are implemented:
获取各个传感器拍摄的标定图像;Obtain the calibration images captured by each sensor;
根据同一所述传感器拍摄的标定图像,得到所述传感器对应的第一图像;obtaining a first image corresponding to the sensor according to the calibration image captured by the same sensor;
根据各个传感器对应的第一图像,得到第二图像;obtaining a second image according to the first image corresponding to each sensor;
针对每个传感器,根据所述传感器对应的第一图像和所述第二图像确定所述传感器的光响应不均匀性补偿值。For each sensor, a light response non-uniformity compensation value of the sensor is determined according to the first image and the second image corresponding to the sensor.
第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:
获取各个传感器拍摄的标定图像;Obtain the calibration images captured by each sensor;
根据同一所述传感器拍摄的标定图像,得到所述传感器对应的第一图像;obtaining a first image corresponding to the sensor according to the calibration image captured by the same sensor;
根据各个传感器对应的第一图像,得到第二图像;obtaining a second image according to the first image corresponding to each sensor;
针对每个传感器,根据所述传感器对应的第一图像和所述第二图像确定所述传感器的光响应不均匀性补偿值。For each sensor, a light response non-uniformity compensation value of the sensor is determined according to the first image and the second image corresponding to the sensor.
上述传感器标定方法、装置、电子设备、可读存储介质及计算机程序产品,通过获取各个传感器拍摄的标定图像,根据同一传感器拍摄的标定图像,得到传感器对应的第一图像,根据各个传感器对应的第一图像,得到第二图像,针对每个传感器,根据传感器对应的第一图像和第二图像确定该传感器的光响应不均匀性补偿值。本申请针对获取的各个传感器拍摄的标定图像,先对同一传感器拍摄的标定图像处理得到第一图像,然后再对各个传感器对应的第一图像进行处理得到第二图像,可以很大程度上屏蔽除PRNU之外的噪声,进而根据传感器对应的第一图像和第二图像可以准确确定该传感器的光响应不均匀性补偿值。The above-mentioned sensor calibration method, device, electronic device, readable storage medium and computer program product, by acquiring the calibration image captured by each sensor, and according to the calibration image captured by the same sensor, the first image corresponding to the sensor is obtained, and the first image corresponding to each sensor is obtained according to the first image corresponding to each sensor. An image is obtained to obtain a second image, and for each sensor, the compensation value of the light response non-uniformity of the sensor is determined according to the first image and the second image corresponding to the sensor. For the calibration images captured by each sensor, the present application first processes the calibration images captured by the same sensor to obtain a first image, and then processes the first images corresponding to each sensor to obtain a second image, which can largely shield and remove the Noise other than PRNU, and then the compensation value of the light response non-uniformity of the sensor can be accurately determined according to the first image and the second image corresponding to the sensor.
第六方面,本申请提供了一种图像校正方法。所述方法包括:In a sixth aspect, the present application provides an image correction method. The method includes:
获取传感器标识以及传感器标定数据,所述传感器标定数据包括标定传感器标识及所述标定传感器标识对应的光响应不均匀性补偿值;Acquiring a sensor identification and sensor calibration data, the sensor calibration data including a calibration sensor identification and a light response inhomogeneity compensation value corresponding to the calibration sensor identification;
当所述传感器标识与所述标定传感器标识相同时,则根据所述标定传感器标识对应的光响应不均匀性补偿值对所述传感器获取的初始图像进行校正,得到目标图像;When the sensor identification is the same as the calibration sensor identification, correcting the initial image obtained by the sensor according to the light response inhomogeneity compensation value corresponding to the calibration sensor identification to obtain a target image;
当所述传感器标识与所述标定传感器标识不同时,则获取默认补偿数据并根据所述默认补偿数据对所述传感器获取的初始图像进行校正,得到目标图像;When the sensor identification is different from the calibration sensor identification, obtain default compensation data and correct the initial image obtained by the sensor according to the default compensation data to obtain a target image;
根据所述传感器标识向服务器发送标定数据更新请求;Send a calibration data update request to the server according to the sensor identification;
接收所述服务器根据所述标定数据更新请求发送的与所述传感器标识相匹配的光响应不均匀性补偿值,并保存所述光响应不均匀性补偿值;所述标定传感器标识对应的光响应不均匀性补偿值和所述服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。Receive the optical response non-uniformity compensation value that matches the sensor identification sent by the server according to the calibration data update request, and save the optical response non-uniformity compensation value; the optical response corresponding to the calibration sensor identification Both the non-uniformity compensation value and the optical response non-uniformity compensation value sent by the server are obtained according to the above sensor calibration method.
第七方面,本申请还提供了一种图像校正装置。所述装置包括:In a seventh aspect, the present application further provides an image correction device. The device includes:
标定数据获取模块,用于获取传感器标识以及传感器标定数据,所述传感器标定数据包括标定传感器标识及所述标定传感器标识对应的光响应不均匀性补偿值;a calibration data acquisition module, used for acquiring a sensor identification and sensor calibration data, the sensor calibration data including a calibration sensor identification and a light response inhomogeneity compensation value corresponding to the calibration sensor identification;
第一校正模块,用于当所述传感器标识与所述标定传感器标识相同时,则根据所述标定传感器标识对应的光响应不均匀性补偿值对所述传感器获取的初始图像进行校正,得到目标图像;a first correction module, configured to correct the initial image obtained by the sensor according to the light response inhomogeneity compensation value corresponding to the calibration sensor identification when the sensor identification is the same as the calibration sensor identification to obtain a target image;
第二校正模块,用于当所述传感器标识与所述标定传感器标识不同时,则获取默认补偿数据并根据所述默认补偿数据对所述传感器获取的初始图像进行校正,得到目标图像;a second correction module, configured to acquire default compensation data when the sensor identification is different from the calibration sensor identification, and correct the initial image obtained by the sensor according to the default compensation data to obtain a target image;
更新请求发送模块,用于根据所述传感器标识向服务器发送标定数据更新请求;an update request sending module, configured to send a calibration data update request to the server according to the sensor identifier;
更新数据接收模块,用于接收所述服务器根据所述标定数据更新请求发送的与所述传感器标识相匹配的光响应不均匀性补偿值,并保存所述光响应不均匀性补偿值;所述标定传感器标识对应的光响应不均匀性补偿值和所述服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。an update data receiving module, configured to receive the optical response non-uniformity compensation value that matches the sensor identifier and sent by the server according to the calibration data update request, and save the optical response non-uniformity compensation value; the Both the optical response non-uniformity compensation value corresponding to the calibration sensor identification and the optical response non-uniformity compensation value sent by the server are obtained according to the above sensor calibration method.
第八方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In an eighth aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
获取传感器标识以及传感器标定数据,所述传感器标定数据包括标定传感器标识及所述标定传感器标识对应的光响应不均匀性补偿值;Acquiring a sensor identification and sensor calibration data, the sensor calibration data including a calibration sensor identification and a light response inhomogeneity compensation value corresponding to the calibration sensor identification;
当所述传感器标识与所述标定传感器标识相同时,则根据所述标定传感器标识对应的光响应不均匀性补偿值对所述传感器获取的初始图像进行校正,得到目标图像;When the sensor identification is the same as the calibration sensor identification, correcting the initial image obtained by the sensor according to the light response inhomogeneity compensation value corresponding to the calibration sensor identification to obtain a target image;
当所述传感器标识与所述标定传感器标识不同时,则获取默认补偿数据并根据所述默认补偿数据对所述传感器获取的初始图像进行校正,得到目标图像;When the sensor identification is different from the calibration sensor identification, obtain default compensation data and correct the initial image obtained by the sensor according to the default compensation data to obtain a target image;
根据所述传感器标识向服务器发送标定数据更新请求;Send a calibration data update request to the server according to the sensor identification;
接收所述服务器根据所述标定数据更新请求发送的与所述传感器标识相匹配的光响应不均匀性补偿值,并保存所述光响应不均匀性补偿值;所述标定传感器标识对应的光响应不均匀性补偿值和所述服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。Receive the optical response non-uniformity compensation value that matches the sensor identification sent by the server according to the calibration data update request, and save the optical response non-uniformity compensation value; the optical response corresponding to the calibration sensor identification Both the non-uniformity compensation value and the optical response non-uniformity compensation value sent by the server are obtained according to the above sensor calibration method.
第九方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a ninth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by the processor, the following steps are implemented:
获取传感器标识以及传感器标定数据,所述传感器标定数据包括标定传感器标识及所述标定传感器标识对应的光响应不均匀性补偿值;Acquiring a sensor identification and sensor calibration data, the sensor calibration data including a calibration sensor identification and a light response inhomogeneity compensation value corresponding to the calibration sensor identification;
当所述传感器标识与所述标定传感器标识相同时,则根据所述标定传感器标识对应的光响应不均匀性补偿值对所述传感器获取的初始图像进行校正,得到目标图像;When the sensor identification is the same as the calibration sensor identification, correcting the initial image obtained by the sensor according to the light response inhomogeneity compensation value corresponding to the calibration sensor identification to obtain a target image;
当所述传感器标识与所述标定传感器标识不同时,则获取默认补偿数据并根据所述默认补偿数据对所述传感器获取的初始图像进行校正,得到目标图像;When the sensor identification is different from the calibration sensor identification, obtain default compensation data and correct the initial image obtained by the sensor according to the default compensation data to obtain a target image;
根据所述传感器标识向服务器发送标定数据更新请求;Send a calibration data update request to the server according to the sensor identification;
接收所述服务器根据所述标定数据更新请求发送的与所述传感器标识相匹配的光响应不均匀性补偿值,并保存所述光响应不均匀性补偿值;所述标定传感器标识对应的光响应不均匀性补偿值和所述服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。Receive the optical response non-uniformity compensation value that matches the sensor identification sent by the server according to the calibration data update request, and save the optical response non-uniformity compensation value; the optical response corresponding to the calibration sensor identification Both the non-uniformity compensation value and the optical response non-uniformity compensation value sent by the server are obtained according to the above sensor calibration method.
第十方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a tenth aspect, the present application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:
获取传感器标识以及传感器标定数据,所述传感器标定数据包括标定传感器标识及所述标定传感器标识对应的光响应不均匀性补偿值;Acquiring a sensor identification and sensor calibration data, the sensor calibration data including a calibration sensor identification and a light response inhomogeneity compensation value corresponding to the calibration sensor identification;
当所述传感器标识与所述标定传感器标识相同时,则根据所述标定传感器标识对应的光响应不均匀性补偿值对所述传感器获取的初始图像进行校正,得到目标图像;When the sensor identification is the same as the calibration sensor identification, correcting the initial image obtained by the sensor according to the light response inhomogeneity compensation value corresponding to the calibration sensor identification to obtain a target image;
当所述传感器标识与所述标定传感器标识不同时,则获取默认补偿数据并根据所述默认补偿数据对所述传感器获取的初始图像进行校正,得到目标图像;When the sensor identification is different from the calibration sensor identification, obtain default compensation data and correct the initial image obtained by the sensor according to the default compensation data to obtain a target image;
根据所述传感器标识向服务器发送标定数据更新请求;Send a calibration data update request to the server according to the sensor identification;
接收所述服务器根据所述标定数据更新请求发送的与所述传感器标识相匹配的光响应不均匀性补偿值,并保存所述光响应不均匀性补偿值;所述标定传感器标识对应的光响应不均匀性补偿值和所述服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。Receive the optical response non-uniformity compensation value that matches the sensor identification sent by the server according to the calibration data update request, and save the optical response non-uniformity compensation value; the optical response corresponding to the calibration sensor identification Both the non-uniformity compensation value and the optical response non-uniformity compensation value sent by the server are obtained according to the above sensor calibration method.
上述图像校正方法、装置、电子设备、可读存储介质及计算机程序产品,通过获取传感器标识以及传感器标定数据,其中,传感器标定数据包括标定传感器标识及标定传感器标识对应的光响应不均匀性补偿值;当传感器标识与标定传感器标识相同时,则根据标定传感器标识对应的光响应不均匀性补偿值对传感器获取的初始图像进行校正,得到目标图像;当传感器标识与标定传感器标识不同时,则获取默认补偿数据并根据默认补偿数据对传感器获取的初始图像进行校正,得到目标图像;根据传感器标识向服务器发送标定数据更新请求;接收服务器根据标定数据更新请求发送的与传感器标识相匹配的光响应不均匀性补偿值,并保存光响应不均匀性补偿值;其中,标定传感器标识对应的光响应不均匀性补偿值和服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。本申请通过本地保存以及服务器发送的方式,能够及时获取与传感器标识对应的光响应不均匀性补偿值,通过准确的光响应不均匀性补偿值对传感器获取的初始图像进行校正,从而能够较好提升目标图像的画质。The above-mentioned image correction method, device, electronic device, readable storage medium and computer program product, by acquiring the sensor identification and sensor calibration data, wherein the sensor calibration data includes the calibration sensor identification and the calibration sensor identification corresponding to the light response inhomogeneity compensation value ; When the sensor identification is the same as the calibration sensor identification, the initial image obtained by the sensor is corrected according to the light response inhomogeneity compensation value corresponding to the calibration sensor identification, and the target image is obtained; when the sensor identification and the calibration sensor identification are different, the Default compensation data and correct the initial image obtained by the sensor according to the default compensation data to obtain the target image; send a calibration data update request to the server according to the sensor identification; receive the optical response that matches the sensor identification sent by the server according to the calibration data update request. The uniformity compensation value is stored, and the optical response non-uniformity compensation value is saved; wherein, the optical response non-uniformity compensation value corresponding to the calibration sensor identification and the optical response non-uniformity compensation value sent by the server are obtained according to the above sensor calibration method. In the present application, the light response non-uniformity compensation value corresponding to the sensor identification can be obtained in time by means of local storage and server transmission, and the initial image obtained by the sensor can be corrected by the accurate light response non-uniformity compensation value, so that it can better Improve the quality of the target image.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为一个实施例中不同PRNU对应的信噪比对比示意图;Fig. 1 is a schematic diagram of the comparison of signal-to-noise ratios corresponding to different PRNUs in one embodiment;
图2为一个实施例中传感器标定方法和图像校正方法的应用环境图;2 is an application environment diagram of a sensor calibration method and an image correction method in one embodiment;
图3为一个实施例中传感器标定方法的流程图;3 is a flowchart of a sensor calibration method in one embodiment;
图4为一个实施例中标定图像的拍摄示意图;Fig. 4 is the photographing schematic diagram of the calibration image in one embodiment;
图5为一个实施例中步骤304的流程图;5 is a flowchart of
图6为一个实施例中步骤306的流程图;6 is a flowchart of
图7为一个实施例中步骤308的流程图;Figure 7 is a flowchart of
图8为一个实施例中步骤702的流程图;8 is a flowchart of
图9为一个实施例中步骤704的流程图;Figure 9 is a flowchart of
图10为一个实施例中图像校正方法的流程图;10 is a flowchart of an image correction method in one embodiment;
图11为一个实施例中步骤1004的流程图;Figure 11 is a flowchart of
图12为另一个实施例中传感器标定方法的流程图;12 is a flowchart of a sensor calibration method in another embodiment;
图13为另一个实施例中传感器标定方法的流程图;13 is a flowchart of a sensor calibration method in another embodiment;
图14为另一个实施例中图像校正方法的流程图;14 is a flowchart of an image correction method in another embodiment;
图15为一个实施例中传感器标定装置的结构框图;Fig. 15 is a structural block diagram of a sensor calibration device in one embodiment;
图16为一个实施例中图像校正装置的结构框图;16 is a structural block diagram of an image correction apparatus in one embodiment;
图17为一个实施例中计算机设备的内部结构图。Figure 17 is a diagram of the internal structure of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
电子设备由于体积因素的限制,不能无限制地增加感光元件体积以及相应硬件处理结构来增强成像的画质,因此,传统方法大多通过获取多帧图像进行融合进而提升成像画质,本质上是从两方面进行,一方面提升清晰度,另外一方面是提升SNR(Signal-NoiseRatio,信噪比)。但是,随着传感器的FWC不断增大,由PRNU引起的Nfp(fixed patternnoise,固定噪声)也会变成主要噪声,从而阻碍画质进一步提升。Due to the limitation of the volume factor of electronic equipment, it is not possible to increase the volume of the photosensitive element and the corresponding hardware processing structure to enhance the image quality. Therefore, most of the traditional methods improve the image quality by acquiring multiple frames of images for fusion. Two aspects are carried out, one is to improve the clarity, and the other is to improve the SNR (Signal-Noise Ratio, signal-to-noise ratio). However, as the FWC of the sensor continues to increase, the Nfp (fixed patternnoise, fixed noise) caused by the PRNU will also become the main noise, thereby hindering further improvement of the image quality.
在一个示例中,信噪比SNR的计算方式如下公式(1)所示。In an example, the calculation method of the signal-to-noise ratio SNR is shown in the following formula (1).
SNR=20×log10(Signal/Noise_total) 公式(1)SNR=20×log 10 (Signal/Noise_total) Formula (1)
Nfp≈Signal×PRNU 公式(3)Nfp≈Signal×PRNU Formula (3)
其中,Signal表征图像信号值,Noise_total表征图像的噪声值,图像的噪声值包括Nrd(read noise,读出噪声)、Nps(photon shot noise,光子噪声)、Nfp(fixed patternnoise,固定噪声),PRNU表征图像的光响应不均匀性。Among them, Signal represents the image signal value, Noise_total represents the noise value of the image, and the noise value of the image includes Nrd (read noise, read noise), Nps (photon shot noise, photon noise), Nfp (fixed patternnoise, fixed noise), PRNU Characterize the photoresponse inhomogeneity of an image.
需要说明的是,读出噪声Nrd是读取探测光子量的误差;光子噪声Nps是由于到达传感器的光子数目发生变化,导致实际情况与理论情况发生偏差而产生的噪声;固定噪声Nfp,通常用均匀光照条件下单个像素输出的信号变化表示,在图像的高亮区域,Nfp主要来源于PRNU的影响。由于感光元件的每个感光二极管都搭配一个ADC(Analog-to-DigitalConverter,模数转换)放大器,如果以百万像素计,那么就需要百万个以上的ADC放大器。虽然是统一制造下的产品,但是每个像素结构中的光电二极管的尺寸、掺杂浓度、生产过程中的尘污以及场效应管(MOS)参数的偏差等都会造成像素输出信号的变化。在其他条件相同的情况下,PRNU分别为1%和2%的图像信噪比SNR情况如图1所示,由图1可知,随着亮度的增大,1%PRNU对应的信噪比与2%PRNU对应的信噪比之间的差距逐渐增大,即,在图像的高亮区域,PRNU对SNR的影响较大。因此,有必要针对传感器的PRNU进行补偿。It should be noted that the readout noise Nrd is the error of reading the amount of detected photons; the photon noise Nps is the noise generated by the deviation of the actual situation from the theoretical situation due to the change in the number of photons reaching the sensor; the fixed noise Nfp is usually used. The signal change of a single pixel output under uniform lighting conditions indicates that in the highlighted areas of the image, Nfp mainly comes from the influence of PRNU. Since each photodiode of the photosensitive element is matched with an ADC (Analog-to-Digital Converter, analog-to-digital conversion) amplifier, if it is counted in megapixels, more than one million ADC amplifiers are required. Although it is a product manufactured in a unified manner, the size of the photodiode in each pixel structure, doping concentration, dust in the production process, and deviation of field effect transistor (MOS) parameters will cause changes in pixel output signals. Under the same other conditions, the SNR of the images with PRNU of 1% and 2% respectively is shown in Figure 1. It can be seen from Figure 1 that with the increase of brightness, the signal-to-noise ratio corresponding to 1% PRNU is the same as The gap between the signal-to-noise ratios corresponding to 2% PRNU gradually increases, that is, in the highlighted area of the image, the PRNU has a greater impact on the SNR. Therefore, it is necessary to compensate for the PRNU of the sensor.
本申请实施例提供的传感器标定方法,可以应用于如图2所示的应用环境中,其中,终端202通过网络与服务器204进行通信。数据存储系统可以存储服务器204需要处理的数据。数据存储系统可以集成在服务器204上,也可以放在云上或其他网络服务器上。可以通过终端202获取各个传感器拍摄的标定图像后发送至服务器204,服务器204根据同一传感器拍摄的标定图像,得到传感器对应的第一图像;根据各个传感器对应的第一图像,得到第二图像;针对每个传感器,根据传感器对应的第一图像和第二图像确定传感器的光响应不均匀性补偿值。其中,终端202可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、摄像机、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。服务器204可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The sensor calibration method provided in the embodiment of the present application can be applied to the application environment shown in FIG. 2 , in which the terminal 202 communicates with the
需要说明的是,本申请实施例提供的传感器标定方法,不局限于上述图2所示的应用环境中,也可以单独应用于终端202,或者单独应用于服务器204。It should be noted that the sensor calibration method provided by the embodiments of the present application is not limited to the application environment shown in FIG. 2 , and may also be applied to the terminal 202 or the
本申请实施例提供的图像校正方法,也可以应用于图2所示的应用环境中。终端202获取传感器标识以及传感器标定数据,其中,传感器标定数据包括标定传感器标识及标定传感器标识对应的光响应不均匀性补偿值;当传感器标识与标定传感器标识相同时,则根据标定传感器标识对应的光响应不均匀性补偿值对传感器获取的初始图像进行校正,得到目标图像;当传感器标识与标定传感器标识不同时,则获取默认补偿数据并根据默认补偿数据对传感器获取的初始图像进行校正,得到目标图像;终端202根据传感器标识向服务器204发送标定数据更新请求;终端202接收服务器204根据标定数据更新请求发送的与传感器标识相匹配的光响应不均匀性补偿值,并保存光响应不均匀性补偿值;其中,标定传感器标识对应的光响应不均匀性补偿值和服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。The image correction method provided by the embodiment of the present application can also be applied to the application environment shown in FIG. 2 . The terminal 202 obtains the sensor identification and the sensor calibration data, wherein the sensor calibration data includes the calibration sensor identification and the light response inhomogeneity compensation value corresponding to the calibration sensor identification; when the sensor identification is the same as the calibration sensor identification, then according to the calibration sensor identification corresponding The optical response non-uniformity compensation value is used to correct the initial image obtained by the sensor to obtain the target image; when the sensor identification is different from the calibration sensor identification, the default compensation data is obtained and the initial image obtained by the sensor is corrected according to the default compensation data to obtain The target image; the terminal 202 sends a calibration data update request to the
在一个实施例中,如图3所示,提供了一种传感器标定方法,以该方法应用于图2中的服务器为例进行说明,包括以下步骤302至步骤308。In one embodiment, as shown in FIG. 3 , a sensor calibration method is provided, which is described by taking the method applied to the server in FIG. 2 as an example, including the following
步骤302,获取各个传感器拍摄的标定图像。
本实施例中,可以由终端将各个传感器拍摄的标定图像发送至服务器,服务器获取终端发送的各个传感器拍摄的标定图像。其中,标定图像可以是传感器面对标定板进行拍摄得到的图像,也可以是传感器面对一块光滑平面进行拍摄得到的图像,例如,一块墙面、一片空地等。本实施例中,是各个传感器在同一位置面对同一场景在相同条件下进行拍摄得到对应的标定图像,也就是说,除了传感器不同之外,其他因素都相同。通常情况下,进行标定的传感器为同一型号的同一批生产的多个传感器。每个传感器可以拍摄多帧标定图像。In this embodiment, the terminal may send the calibration image captured by each sensor to the server, and the server obtains the calibration image captured by each sensor sent by the terminal. The calibration image may be an image captured by the sensor facing the calibration plate, or may be an image captured by the sensor facing a smooth plane, for example, a wall, an open space, and the like. In this embodiment, each sensor faces the same scene at the same position and shoots under the same conditions to obtain the corresponding calibration image, that is, except for the different sensors, other factors are the same. Usually, the sensors to be calibrated are multiple sensors of the same model produced in the same batch. Each sensor can capture multiple frames of calibration images.
在一个示例中,通常使用单个传感器进行标定,但是由于传感器不具备直接拍摄测试的条件,因此,通常需要将传感器组装成对应传感器模组进行拍摄,也就是需要配置对应的镜头、马达等拍摄配件,有助于对标定图像的拍摄。In an example, a single sensor is usually used for calibration, but since the sensor does not have the conditions for direct shooting and testing, it is usually necessary to assemble the sensor into a corresponding sensor module for shooting, that is, it needs to configure the corresponding lens, motor and other shooting accessories , which is helpful for shooting the calibration image.
在一个示例中,可以通过如图4所示的拍摄示意图得到各个传感器拍摄的标定图像。将传感器对应的传感器模组402面对带定位标志的标定板404进行拍摄,得到该传感器对应的标定图像。将其他的传感器放置在同一位置,即以同样的角度面对标定板404,从而得到其他传感器对应的标定图像。In one example, the calibration images captured by each sensor can be obtained through the capturing schematic diagram shown in FIG. 4 . The
步骤304,根据同一传感器拍摄的标定图像,得到传感器对应的第一图像。Step 304: Obtain a first image corresponding to the sensor according to the calibration image captured by the same sensor.
服务器根据同一传感器拍摄的标定图像,得到传感器对应的第一图像。本实施例中,每个传感器具有唯一的传感器标识,服务器可以根据同一传感器标识对应的标定图像,得到该传感器标识对应的第一图像。The server obtains the first image corresponding to the sensor according to the calibration image captured by the same sensor. In this embodiment, each sensor has a unique sensor identifier, and the server may obtain the first image corresponding to the sensor identifier according to the calibration image corresponding to the same sensor identifier.
可选地,可以根据同一传感器标识对应的多帧标定图像,得到该传感器标识对应的第一图像。例如,可以根据同一传感器标识对应的多帧标定图像中像素的像素值平均值,得到该传感器标识对应的第一图像。Optionally, the first image corresponding to the sensor identification may be obtained according to multiple frames of calibration images corresponding to the same sensor identification. For example, the first image corresponding to the sensor identification can be obtained according to the average value of the pixel values of pixels in multiple frames of calibration images corresponding to the same sensor identification.
步骤306,根据各个传感器对应的第一图像,得到第二图像。Step 306: Obtain a second image according to the first image corresponding to each sensor.
服务器根据各个传感器对应的第一图像,得到第二图像。一般地,每个传感器对应一帧第一图像,多个传感器对应多帧第一图像,根据多个传感器对应的多帧第一图像,得到一帧第二图像。The server obtains the second image according to the first image corresponding to each sensor. Generally, each sensor corresponds to one frame of the first image, multiple sensors correspond to multiple frames of the first image, and one frame of the second image is obtained according to the multiple frames of the first image corresponding to the multiple sensors.
可选地,可以根据各个传感器对应的多帧第一图像中像素的像素值平均值,得到第二图像。其中,第二图像可以表征各个传感器的像素平均情况,像素平均情况包括像素信号值和噪声值,因此,第二图像可以消除第一图像的随机噪声。Optionally, the second image may be obtained according to an average value of pixel values of pixels in multiple frames of the first image corresponding to each sensor. Wherein, the second image can represent the pixel average condition of each sensor, and the pixel average condition includes pixel signal value and noise value. Therefore, the second image can eliminate random noise of the first image.
步骤308,针对每个传感器,根据传感器对应的第一图像和第二图像确定传感器的光响应不均匀性补偿值。
针对每个传感器,服务器根据传感器对应的第一图像和第二图像确定该传感器的光响应不均匀性补偿值。其中,光响应不均匀性(PRNU)是数码相机模式噪声的一个来源,被看作是感光元件上在照明下像素响应率的变化。光响应不均匀性补偿值,是针对传感器的光响应不均匀性进行补偿的数据,通过光响应不均匀性补偿值对传感器的光响应不均匀性进行补偿后,可以规避光响应不均匀性对传感器成像画质的影响。For each sensor, the server determines a light response non-uniformity compensation value of the sensor according to the first image and the second image corresponding to the sensor. Among them, photoresponse non-uniformity (PRNU) is a source of pattern noise in digital cameras, which is regarded as the variation of pixel responsivity under illumination on the photoreceptor. The light response non-uniformity compensation value is the data for compensating the light response non-uniformity of the sensor. After compensating the light response non-uniformity of the sensor by the light response non-uniformity compensation value, the light response non-uniformity can be avoided. The effect of the image quality of the sensor.
可选地,可以根据传感器对应的第一图像和第二图像,得到传感器PRNU噪声对应的第三图像,然后根据第一图像和第三图像,可确定传感器的光响应不均匀性补偿值。例如,根据传感器对应的第一图像和第二图像的差值,得到传感器PRNU噪声对应的第三图像。可选地,可以将第一图像和第二图像中相同位置的像素的像素值差值,作为第三图像中对应位置的像素的像素值,根据第三图像中各位置的像素的像素值,得到传感器PRNU噪声对应的第三图像。Optionally, a third image corresponding to the PRNU noise of the sensor can be obtained according to the first image and the second image corresponding to the sensor, and then the compensation value of the light response non-uniformity of the sensor can be determined according to the first image and the third image. For example, according to the difference between the first image and the second image corresponding to the sensor, a third image corresponding to the PRNU noise of the sensor is obtained. Optionally, the pixel value difference of the pixel at the same position in the first image and the second image can be used as the pixel value of the pixel at the corresponding position in the third image, and according to the pixel value of the pixel at each position in the third image, A third image corresponding to the sensor PRNU noise is obtained.
可选地,可根据第三图像与第一图像的比值,确定传感器的光响应不均匀性补偿值。例如,根据第三图像中的像素与第一图像中对应位置的像素的比值,确定相应像素位置对应的光响应不均匀性补偿值,根据各个像素位置对应的光响应不均匀性补偿值,可确定传感器对应的光响应不均匀性补偿值。Optionally, the compensation value of the light response non-uniformity of the sensor may be determined according to the ratio of the third image to the first image. For example, according to the ratio of the pixel in the third image to the pixel at the corresponding position in the first image, the light response non-uniformity compensation value corresponding to the corresponding pixel position is determined, and according to the light response non-uniformity compensation value corresponding to each pixel position, the Determine the light response non-uniformity compensation value corresponding to the sensor.
在此需要说明的是,本实施例中,在对标定图像进行处理时,是将各个传感器拍摄的标定图像放置在同一坐标系中,而且各个传感器拍摄的标定图像中包含的像素数量及像素分布情况均相同。通常使用坐标系中的坐标描述标定图像中像素的位置,可以理解地,不同标定图像中相同位置处的像素对应的坐标相同。It should be noted here that, in this embodiment, when the calibration images are processed, the calibration images captured by each sensor are placed in the same coordinate system, and the calibration images captured by each sensor include the number of pixels and the pixel distribution. The situation is the same. Usually, the coordinates in the coordinate system are used to describe the position of the pixel in the calibration image. It is understandable that the coordinates corresponding to the pixel at the same position in different calibration images are the same.
上述传感器标定方法中,通过获取各个传感器拍摄的标定图像,根据同一传感器拍摄的标定图像,得到传感器对应的第一图像,根据各个传感器对应的第一图像,得到第二图像,针对每个传感器,根据传感器对应的第一图像和第二图像确定该传感器的光响应不均匀性补偿值。本实施例针对获取的各个传感器拍摄的标定图像,先对同一传感器拍摄的标定图像处理得到第一图像,然后对各个传感器对应的第一图像进行处理得到第二图像,可以很大程度上屏蔽除PRNU之外的噪声,进而根据传感器对应的第一图像和第二图像可以准确确定该传感器的光响应不均匀性补偿值。In the above sensor calibration method, the calibration images captured by each sensor are acquired, the first image corresponding to the sensor is obtained according to the calibration image captured by the same sensor, and the second image is obtained according to the first image corresponding to each sensor, and for each sensor, The compensation value of the light response non-uniformity of the sensor is determined according to the first image and the second image corresponding to the sensor. In this embodiment, for the obtained calibration images captured by each sensor, the calibration images captured by the same sensor are first processed to obtain a first image, and then the first images corresponding to each sensor are processed to obtain a second image, which can largely shield the Noise other than PRNU, and then the compensation value of the light response non-uniformity of the sensor can be accurately determined according to the first image and the second image corresponding to the sensor.
在一些实施例中,如图5所示,根据同一传感器拍摄的标定图像,得到传感器对应的第一图像的步骤304包括以下步骤502至步骤504。In some embodiments, as shown in FIG. 5 , the
步骤502,将同一传感器拍摄的标定图像中相同位置的像素的像素值平均值,作为第一图像中对应位置的像素的像素值。
针对同一传感器拍摄的多帧标定图像,将多帧标定图像中相同位置的像素的像素值的平均值,作为第一图像中对应位置的像素的像素值。在一个示例中,同一传感器A拍摄了10帧标定图像,将这10帧图像中每帧图像的第一个像素的像素值平均值,作为第一图像中第一个像素的像素值,将这10帧图像中每帧图像的第二个像素的像素值平均值,作为第一图像中对应位置的第二个像素的像素值,传感器A对应的第一图像中其他像素的像素值依此类推得到。For multiple frames of calibration images captured by the same sensor, the average value of pixel values of pixels at the same position in the multiple frames of calibration images is taken as the pixel value of the pixel at the corresponding position in the first image. In an example, 10 frames of calibration images are taken by the same sensor A, and the average value of the pixel values of the first pixel of each frame of the 10 frames of images is taken as the pixel value of the first pixel in the first image, and this The average value of the pixel value of the second pixel of each frame of the 10-frame image is taken as the pixel value of the second pixel in the corresponding position in the first image, the pixel value of other pixels in the first image corresponding to sensor A, and so on get.
在一个示例中,第一图像中像素的像素值可根据下述公式(4)得到,In one example, the pixel value of the pixel in the first image can be obtained according to the following formula (4),
公式(4)中,m表示标定图像的帧数,p_m_i表示第m帧标定图像中第i个像素的像素值,image_average_i表征第一图像中第i个像素的像素值。In formula (4), m represents the frame number of the calibration image, p_m_i represents the pixel value of the ith pixel in the mth frame of the calibration image, and image_average_i represents the pixel value of the ith pixel in the first image.
步骤504,根据第一图像中各位置的像素的像素值,得到第一图像。Step 504: Obtain a first image according to pixel values of pixels at each position in the first image.
在得到第一图像中各位置的像素的像素值后,由所有像素的像素值得到第一图像。由于标定图像中包含有读出噪声Nrd和光子噪声Nps,由于光子噪声属于随机噪声,在光子噪声进行平均后,理论值会变为原来的其中m表示标定图像的帧数,因此可以有效减少光子噪声,同时也削减了读出噪声。After the pixel values of the pixels at each position in the first image are obtained, the first image is obtained from the pixel values of all the pixels. Since the calibration image contains readout noise Nrd and photon noise Nps, since the photon noise is random noise, after the photon noise is averaged, the theoretical value will become the original Among them, m represents the frame number of the calibration image, so it can effectively reduce the photon noise and also reduce the readout noise.
本实施例中,将同一传感器拍摄的标定图像中相同位置的像素的像素值平均值,作为第一图像中对应位置的像素的像素值,从而得到第一图像中所有像素的像素值,继而得到第一图像,通过标定图像的像素值平均值得到第一图像的方式可以有效减少传感器对应的读出噪声和光子噪声。In this embodiment, the average value of the pixel values of the pixels at the same position in the calibration image captured by the same sensor is used as the pixel value of the pixel at the corresponding position in the first image, so as to obtain the pixel values of all the pixels in the first image, and then obtain For the first image, the first image is obtained by calibrating the average value of the pixel values of the image, which can effectively reduce the readout noise and photon noise corresponding to the sensor.
在一些实施例中,如图6所示,根据各个传感器对应的第一图像,得到第二图像的步骤306,包括以下步骤602至步骤604。In some embodiments, as shown in FIG. 6 , the
步骤602,将各个传感器对应的第一图像中相同位置的像素的像素值平均值,作为第二图像中对应位置的像素的像素值。
每个传感器对应一帧第一图像,多个传感器则对应有多帧第一图像,将多帧第一图像中相同位置的像素的像素值平均值,作为第二图像中对应位置的像素的像素值。其中,多个传感器通常是指同类型同一批次生产的传感器。Each sensor corresponds to one frame of the first image, and multiple sensors correspond to multiple frames of the first image. The average value of the pixel values of the pixels at the same position in the multiple frames of the first image is taken as the pixel of the pixel at the corresponding position in the second image. value. Among them, multiple sensors usually refer to sensors of the same type and produced in the same batch.
在一个示例中,第二图像中像素的像素值可根据下述公式(5)得到,In one example, the pixel value of the pixel in the second image can be obtained according to the following formula (5),
公式(5)中,n表示传感器的数量,也即是第一图像的帧数,image_average_i′表示第二图像中第i个像素的像素值,image_average_n_i表示第n帧第一图像中第i个像素的像素值。In formula (5), n represents the number of sensors, that is, the number of frames of the first image, image_average_i' represents the pixel value of the ith pixel in the second image, and image_average_n_i represents the ith pixel in the nth frame of the first image pixel value.
步骤604,根据第二图像中各位置的像素的像素值,得到第二图像。Step 604: Obtain a second image according to pixel values of pixels at each position in the second image.
在得到第二图像中各位置的像素的像素值后,根据所有像素的像素值得到第二图像。After the pixel values of the pixels at each position in the second image are obtained, the second image is obtained according to the pixel values of all the pixels.
上述传感器标定方法中,将各个传感器对应的第一图像中相同位置的像素的像素值平均值,作为第二图像中对应位置的像素的像素值,从而得到第二图像中所有像素的像素值,从而削减了PRNU导致的噪声,使得第二图像中只剩下环境噪声,这样有利于提取PRNU噪声,从而更准确地确定传感器的光响应不均匀性补偿值。In the above sensor calibration method, the average value of the pixel values of the pixels at the same position in the first image corresponding to each sensor is taken as the pixel value of the pixel at the corresponding position in the second image, so as to obtain the pixel values of all pixels in the second image, Therefore, the noise caused by PRNU is reduced, so that only ambient noise remains in the second image, which is beneficial to extracting the PRNU noise, so as to more accurately determine the compensation value of the light response inhomogeneity of the sensor.
在一个实施例中,如图7所示,针对每个传感器,根据传感器对应的第一图像和第二图像,确定传感器的光响应不均匀性补偿值的步骤308,包括以下步骤702至步骤704。In one embodiment, as shown in FIG. 7 , for each sensor, according to the first image and the second image corresponding to the sensor, the
步骤702,针对每个传感器,根据传感器对应的第一图像和第二图像,得到传感器对应的第三图像。
针对每个传感器,服务器根据传感器对应的第一图像和第二图像,得到传感器对应的第三图像。其中,第三图像可以理解为传感器的光响应不均匀性导致的噪声模型,一个传感器对应一帧第三图像。For each sensor, the server obtains a third image corresponding to the sensor according to the first image and the second image corresponding to the sensor. The third image can be understood as a noise model caused by the unevenness of the light response of the sensor, and one sensor corresponds to one frame of the third image.
可选地,可根据传感器对应的第一图像和二图像的差值,得到传感器对应的第三图像。具体地,可将第一图像和第二图像中相同位置的像素的像素值差值,作为第三图像中对应位置的像素的像素值,根据第三图像中各位置的像素的像素值,得到传感器对应的第三图像。Optionally, the third image corresponding to the sensor may be obtained according to the difference between the first image and the second image corresponding to the sensor. Specifically, the pixel value difference of the pixel at the same position in the first image and the second image can be used as the pixel value of the pixel at the corresponding position in the third image, and according to the pixel value of the pixel at each position in the third image, we can obtain The third image corresponding to the sensor.
步骤704,根据第一图像和第三图像,确定传感器的光响应不均匀性补偿值。
服务器根据第一图像和第三图像,确定传感器的光响应不均匀性补偿值。可选地,根据第三图像与第一图像的比值,确定第一图像对应的传感器的光响应不均匀性补偿值。例如,针对第一图像中的第一目标像素,将与第一目标像素的位置相同的第三图像中的像素作为第二目标像素,根据第二目标像素和第一目标像素的比值,作为第一目标像素位置所对应的光响应不均匀性补偿值,根据各个第一目标像素位置所对应的光响应不均匀性补偿值,确定所述传感器的光响应不均匀性补偿值。其中,第一目标像素可以是第一图像中的任意一个像素。According to the first image and the third image, the server determines a compensation value of the light response non-uniformity of the sensor. Optionally, according to the ratio of the third image to the first image, a compensation value of the light response non-uniformity of the sensor corresponding to the first image is determined. For example, for the first target pixel in the first image, the pixel in the third image with the same position as the first target pixel is used as the second target pixel, and the ratio of the second target pixel to the first target pixel is used as the first target pixel. A light response non-uniformity compensation value corresponding to a target pixel position, and the light response non-uniformity compensation value of the sensor is determined according to the light response non-uniformity compensation value corresponding to each first target pixel position. The first target pixel may be any pixel in the first image.
上述传感器标定方法中,将每个传感器对应的第一图像和第二图像,得到传感器的第三图像,第三图像表征传感器的光响应不均匀性导致的噪声模型,因此,根据第一图像和第三图像,可以更加准确地确定传感器的光响应不均匀性补偿值。In the above sensor calibration method, the first image and the second image corresponding to each sensor are used to obtain the third image of the sensor, and the third image represents the noise model caused by the non-uniformity of the light response of the sensor. For the third image, the compensation value of the light response non-uniformity of the sensor can be determined more accurately.
在一些实施例中,如图8所示,根据传感器对应的第一图像和第二图像,得到传感器对应的第三图像的步骤702,包括以下步骤802至步骤804。In some embodiments, as shown in FIG. 8 , the
步骤802,将第一图像和第二图像中相同位置的像素的像素值差值,作为第三图像中对应位置的像素的像素值。Step 802: Use the pixel value difference of the pixel at the same position in the first image and the second image as the pixel value of the pixel at the corresponding position in the third image.
服务器可以将第一图像和第二图像中相同位置的像素的像素值差值,作为第三图像中对应位置的像素的像素值。也就是说,可以将第一图像和第二图像中相同位置的像素作差,得到的差值作为第三图像中同一位置的像素的像素值。The server may use the pixel value difference of the pixel at the same position in the first image and the second image as the pixel value of the pixel at the corresponding position in the third image. That is to say, the pixels at the same position in the first image and the second image can be made difference, and the obtained difference value can be used as the pixel value of the pixel at the same position in the third image.
可选地,将第一图像和第二图像中相同位置的像素的像素值差值的绝对值,作为第三图像中对应位置的像素的像素值。Optionally, the absolute value of the pixel value difference of the pixel at the same position in the first image and the second image is used as the pixel value of the pixel at the corresponding position in the third image.
步骤804,根据第三图像中各位置的像素的像素值,得到传感器对应的第三图像。Step 804: Obtain a third image corresponding to the sensor according to the pixel value of the pixel at each position in the third image.
在得到第三图像中各位置的像素的像素值后,也就是得到第三图像中所有像素的像素值后,由所有像素的像素值得到传感器对应的第三图像。After obtaining the pixel values of the pixels at each position in the third image, that is, after obtaining the pixel values of all the pixels in the third image, the third image corresponding to the sensor is obtained from the pixel values of all the pixels.
上述传感器标定方法,通过将第一图像和第二图像中相同位置的像素的像素值差值,作为第三图像中对应位置的像素的像素值,根据第三图像中各位置的像素的像素值,得到传感器对应的第三图像,可以准确得到第三图像表征的光响应不均匀性导致的噪声模型,从而有利于对传感器的光响应不均匀性进行准确标定。The above sensor calibration method, by taking the pixel value difference of the pixel at the same position in the first image and the second image as the pixel value of the pixel at the corresponding position in the third image, according to the pixel value of the pixel at each position in the third image , the third image corresponding to the sensor is obtained, and the noise model caused by the unevenness of the light response represented by the third image can be accurately obtained, which is beneficial to the accurate calibration of the unevenness of the light response of the sensor.
在一些实施例中,如图9所示,根据第一图像和第三图像,确定传感器的光响应不均匀性补偿值的步骤704,可以包括以下步骤902至步骤904。In some embodiments, as shown in FIG. 9 , the
步骤902,针对第一图像中的第一目标像素,将与第一目标像素的位置相同的第三图像中的像素作为第二目标像素;根据第一目标像素和第二目标像素,确定第一目标像素位置所对应的光响应不均匀性补偿值。
本实施例中,服务器针对第一图像中的第一目标像素,将与第一目标像素的位置相同的第三图像中的像素作为第二目标像素,根据第一目标像素和第二目标像素,确定第一目标像素位置对应的光响应不均匀性补偿值。具体地,先确定第一图像中的第一目标像素,其中,第一目标像素可以是第一图像中的任意一个像素,然后确定第三图像中与第一目标像素的位置相同的第二目标像素,进而根据第一目标像素和第二目标像素确定第一目标像素位置对应的光响应不均匀性补偿值。In this embodiment, for the first target pixel in the first image, the server uses the pixel in the third image that is at the same position as the first target pixel as the second target pixel, and according to the first target pixel and the second target pixel, Determine the light response non-uniformity compensation value corresponding to the first target pixel position. Specifically, first determine the first target pixel in the first image, where the first target pixel can be any pixel in the first image, and then determine the second target in the third image that has the same position as the first target pixel pixel, and then determine the light response non-uniformity compensation value corresponding to the position of the first target pixel according to the first target pixel and the second target pixel.
步骤904,根据各个第一目标像素位置所对应的光响应不均匀性补偿值,确定传感器的光响应不均匀性补偿值。
在得到第一图像中各个第一目标像素对应的光响应不均匀性补偿值后,根据所有第一目标像素对应的光响应不均匀性补偿值,得到传感器的光响应不均匀性补偿值。After obtaining the light response non-uniformity compensation values corresponding to each first target pixel in the first image, the light response non-uniformity compensation values of the sensor are obtained according to the light response non-uniformity compensation values corresponding to all the first target pixels.
本实施例中,通过第一图像中的第一目标像素以及与第一目标像素的位置相同的第三图像中的第二目标像素,确定第一目标像素位置对应的光响应不均匀性补偿值,从而得到传感器的光响应不均匀性补偿值,即,先通过每个像素对应的光响应不均匀性补偿值来确定传感器的光响应不均匀性补偿值,能够对传感器成像的最小单位像素的光响应不均匀性进行补偿,从而大大增加了传感器的光响应不均匀性补偿值的精度。In this embodiment, the compensation value of the light response non-uniformity corresponding to the position of the first target pixel is determined by the first target pixel in the first image and the second target pixel in the third image having the same position as the first target pixel , so as to obtain the photoresponse non-uniformity compensation value of the sensor, that is, first determine the photoresponse non-uniformity compensation value of the sensor by the photoresponse non-uniformity compensation value corresponding to each pixel, and the smallest unit pixel that can image the sensor can be imaged. The light response non-uniformity is compensated, thereby greatly increasing the accuracy of the sensor's light response non-uniformity compensation value.
在一些实施例中,步骤902中根据第一目标像素和第二目标像素,确定第一目标像素位置所对应的光响应不均匀性补偿值,包括:将第二目标像素和第一目标像素的比值,作为第一目标像素位置所对应的光响应不均匀性补偿值。In some embodiments, in
本实施例中,可以将第二目标像素与第一目标像素的比值,作为第一目标像素位置所对应的光响应不均匀性补偿值。可选地,将第二目标像素的像素值和第一目标像素的像素值的比值,作为第一目标像素位置所对应的光响应不均匀性补偿值。在实际应用时,第一目标像素的像素值可以是第一图像中的任意一个像素的像素值,也可以是第一图像中与第一目标像素同一通道的多个像素的像素值平均值,例如是同一通道中N×N像素的像素值平均值,如N=5。In this embodiment, the ratio of the second target pixel to the first target pixel may be used as the compensation value of the light response non-uniformity corresponding to the position of the first target pixel. Optionally, the ratio of the pixel value of the second target pixel to the pixel value of the first target pixel is used as the compensation value of the light response inhomogeneity corresponding to the position of the first target pixel. In practical application, the pixel value of the first target pixel may be the pixel value of any pixel in the first image, or may be the average value of the pixel values of multiple pixels in the same channel as the first target pixel in the first image, For example, it is the average value of pixel values of N×N pixels in the same channel, such as N=5.
可以理解地,一个第一目标像素位置对应一个光响应不均匀性补偿值,该光响应不均匀性补偿值可对相应的第一目标像素位置的光响应不均匀性进行补偿。不同第一目标像素位置对应的光响应不均匀性补偿值可以相同也可以不同。It can be understood that a first target pixel position corresponds to a light response non-uniformity compensation value, and the light response non-uniformity compensation value can compensate for the light response non-uniformity of the corresponding first target pixel position. The light response non-uniformity compensation values corresponding to different first target pixel positions may be the same or different.
在一个示例中,第一目标像素位置所对应的光响应不均匀性补偿值R可通过下述公式(6)得到:In an example, the light response non-uniformity compensation value R corresponding to the first target pixel position can be obtained by the following formula (6):
R=p2/p1 公式(6)R=p 2 /p 1 Formula (6)
其中,p1代表第一目标像素的像素值,p2代表第二目标像素的像素值。Wherein, p 1 represents the pixel value of the first target pixel, and p 2 represents the pixel value of the second target pixel.
本实施例中,将第二目标像素与第一目标像素的比值,作为第一目标像素位置所对应的光响应不均匀性补偿值,可以得到第一目标像素位置对应的光响应不均匀性噪声值与信号值的比值,更能准确反映第一目标像素位置对应的光响应不均匀性补偿值,从而得到更准确的传感器的光响应不均匀性补偿值。In this embodiment, the ratio of the second target pixel to the first target pixel is used as the light response non-uniformity compensation value corresponding to the first target pixel position, and the light response non-uniformity noise corresponding to the first target pixel position can be obtained. The ratio of the value to the signal value can more accurately reflect the light response non-uniformity compensation value corresponding to the first target pixel position, thereby obtaining a more accurate light response non-uniformity compensation value of the sensor.
在一个实施例中,如图10所示,提供了一种图像校正方法,以该方法应用于图2中的终端为例进行说明,包括以下步骤1002至步骤1010。In one embodiment, as shown in FIG. 10 , an image correction method is provided, which is described by taking the method applied to the terminal in FIG. 2 as an example, including the following
步骤1002,获取传感器标识以及传感器标定数据,其中,传感器标定数据包括标定传感器标识及标定传感器标识对应的光响应不均匀性补偿值。Step 1002: Acquire a sensor identification and sensor calibration data, wherein the sensor calibration data includes a calibration sensor identification and a light response inhomogeneity compensation value corresponding to the calibration sensor identification.
终端在出厂时,通常会将终端中传感器标识及传感器标识对应的光响应不均匀性补偿值等传感器标定数据烧录在终端的存储单元中,在终端开机后,从存储单元中读取传感器标定数据,从而对终端的传感器进行补偿,也就是对传感器获取的初始图像进行校正。When the terminal is shipped from the factory, the sensor calibration data such as the sensor identification in the terminal and the optical response non-uniformity compensation value corresponding to the sensor identification are usually programmed into the storage unit of the terminal. After the terminal is turned on, the sensor calibration is read from the storage unit. data, so as to compensate the sensor of the terminal, that is, to correct the initial image acquired by the sensor.
终端可以从本地获取传感器标识以及传感器标定数据,其中,传感器标识是终端中的传感器标识,传感器标定数据包括标定传感器标识及标定传感器标识对应的光响应不均匀性补偿值,标定传感器标识是指已经根据上述传感器标定方法标定过的传感器对应的标识。通常情况下,为了使得传感器标定数据能够及时对终端的传感器获取的初始图像进行校正,得到画质较好的目标图像,终端的传感器标识与标定传感器标识是相同的。The terminal can obtain the sensor identification and sensor calibration data locally, where the sensor identification is the sensor identification in the terminal, and the sensor calibration data includes the calibration sensor identification and the light response inhomogeneity compensation value corresponding to the calibration sensor identification. The identifier corresponding to the sensor calibrated according to the above sensor calibration method. Usually, in order to enable the sensor calibration data to correct the initial image acquired by the terminal's sensor in time and obtain a target image with better image quality, the terminal's sensor identification and the calibration sensor identification are the same.
步骤1004,当传感器标识与标定传感器标识相同时,则根据标定传感器标识对应的光响应不均匀性补偿值对传感器获取的初始图像进行校正,得到目标图像。
当终端识别到终端的传感器标识与标定传感器标识相同时,说明标定传感器对应的光响应不均匀性补偿值与终端的传感器标识相匹配,则根据从本地获取的标定传感器标识对应的光响应不均匀性补偿值对终端的传感器获取的初始图像进行校正,从而得到目标图像。When the terminal recognizes that the sensor identification of the terminal is the same as that of the calibration sensor, it means that the optical response non-uniformity compensation value corresponding to the calibration sensor matches the sensor identification of the terminal. The initial image obtained by the sensor of the terminal is corrected by the compensation value, so as to obtain the target image.
可选地,可以根据标定传感器标识对应的光响应不均匀性补偿值对初始图像的部分像素或者全部像素进行校正,得到目标图像。Optionally, some or all pixels of the initial image may be corrected according to the light response non-uniformity compensation value corresponding to the calibration sensor identification to obtain the target image.
可选地,可以将初始图像中的像素和与该像素对应的光响应不均匀性补偿值相乘,得到目标图像中对应位置的像素。Optionally, a pixel in the initial image may be multiplied by a light response non-uniformity compensation value corresponding to the pixel to obtain a pixel at a corresponding position in the target image.
步骤1006,当传感器标识与标定传感器标识不同时,则获取默认补偿数据并根据默认补偿数据对传感器获取的初始图像进行校正,得到目标图像。
当终端的传感器标识与标定传感器标识不同时,则从本地获取默认补偿数据,并根据默认补偿数据对传感器获取的初始图像进行校正,得到目标图像。本实施例中,默认补偿数据可以提前存储在终端上,例如终端的拍摄模组中,默认补偿数据可以是同一批次的标定传感器对应的光响应不均匀性补偿值的平均值,也可以是根据各标定传感器对应的光响应不均匀性补偿值进行处理得到的光响应不均匀性补偿值。When the sensor identification of the terminal is different from the calibration sensor identification, the default compensation data is obtained locally, and the initial image obtained by the sensor is corrected according to the default compensation data to obtain the target image. In this embodiment, the default compensation data may be stored in the terminal in advance, for example, in the shooting module of the terminal, the default compensation data may be the average value of the compensation values of the optical response non-uniformity corresponding to the calibration sensors of the same batch, or it may be The optical response non-uniformity compensation value obtained by processing according to the optical response non-uniformity compensation value corresponding to each calibration sensor.
步骤1008,根据传感器标识向服务器发送标定数据更新请求。Step 1008: Send a calibration data update request to the server according to the sensor identifier.
在终端识别到终端的传感器标识与标定传感器标识不同时,根据传感器标识向服务器发送标定数据更新请求。其中,标定数据更新请求是用来向服务器申请与传感器标识相匹配的光响应不均匀性补偿值的,以使得终端下次开启拍摄应用时,使用与传感器标识相匹配的光响应不均匀性补偿值对终端的传感器获取的初始图像进行校正得到目标图像。When the terminal recognizes that the sensor identification of the terminal is different from the calibration sensor identification, a calibration data update request is sent to the server according to the sensor identification. The calibration data update request is used to apply to the server for a compensation value of light response non-uniformity that matches the sensor identification, so that the terminal uses the light response non-uniformity compensation that matches the sensor identification when the terminal starts the shooting application next time. The target image is obtained by correcting the initial image obtained by the sensor of the terminal.
步骤1010,接收服务器根据标定数据更新请求发送的与传感器标识相匹配的光响应不均匀性补偿值,并保存光响应不均匀性补偿值;其中,标定传感器标识对应的光响应不均匀性补偿值和服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。Step 1010: Receive the optical response non-uniformity compensation value that matches the sensor identification sent by the server according to the calibration data update request, and save the optical response non-uniformity compensation value; wherein, calibrate the optical response non-uniformity compensation value corresponding to the sensor identification Both the optical response non-uniformity compensation value sent by the server and the server are obtained according to the above-mentioned sensor calibration method.
终端接收服务器根据标定数据更新请求发送的与传感器标识相匹配的光响应不均匀性补偿值,并保存光响应不均匀性补偿值,例如,可以保存在终端的存储单元或者拍摄模组的存储单元等,针对存储位置本申请不作具体限定。其中,存储在本地的标定传感器标识对应的光响应不均匀性补偿值和服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。The terminal receives the optical response non-uniformity compensation value that matches the sensor identification sent by the server according to the calibration data update request, and saves the optical response non-uniformity compensation value, for example, it can be stored in the storage unit of the terminal or the storage unit of the shooting module etc., the application does not specifically limit the storage location. Wherein, the optical response non-uniformity compensation value corresponding to the locally calibrated sensor identification and the optical response non-uniformity compensation value sent by the server are both obtained according to the above sensor calibration method.
本实施例中,通过本地保存以及服务器发送的方式,能够及时获取与传感器标识对应的光响应不均匀性补偿值,通过准确的光响应不均匀性补偿值对传感器获取的初始图像进行校正,从而能够较好提升目标图像的画质。In this embodiment, the optical response non-uniformity compensation value corresponding to the sensor identification can be acquired in time by means of local storage and server transmission, and the initial image acquired by the sensor is corrected by the accurate optical response non-uniformity compensation value, thereby It can better improve the quality of the target image.
在一些实施例中,如图11所示,步骤1004中根据标定传感器标识对应的光响应不均匀性补偿值对传感器获取的初始图像进行校正,得到目标图像,包括以下步骤1102至步骤1106。In some embodiments, as shown in FIG. 11 , in
步骤1102,获取初始图像中大于预设亮度阈值的第一像素。Step 1102: Acquire a first pixel in the initial image that is greater than a preset brightness threshold.
针对传感器获取的初始图像,选取像素亮度大于预设亮度阈值的像素作为第一像素。第一像素可以是初始图像中的所有像素。其中,预设亮度阈值可以根据传感器使用场景的不同而不同,也就是说,不同场景下的预设亮度阈值可以不相同,预设亮度阈值可以根据实际处理需要进行设置,在此本申请不作进一步限定。For the initial image acquired by the sensor, a pixel whose pixel brightness is greater than a preset brightness threshold is selected as the first pixel. The first pixel can be all the pixels in the original image. Among them, the preset brightness threshold may be different according to different usage scenarios of the sensor, that is, the preset brightness threshold may be different in different scenarios, and the preset brightness threshold may be set according to actual processing needs, which is not further described in this application. limited.
步骤1104,根据光响应不均匀性补偿值中与第一像素位置对应的光响应不均匀性补偿值,对第一像素进行校正,得到校正后的第一像素。Step 1104: Correct the first pixel according to the optical response non-uniformity compensation value corresponding to the position of the first pixel in the optical response non-uniformity compensation value to obtain the corrected first pixel.
在标定传感器标识对应的光响应不均匀性补偿值中,选取与第一像素位置对应的光响应不均匀性补偿值,对应对第一像素进行校正,从而得到校正后的第一像素。可选地,可以将与第一像素位置对应的光响应不均匀性补偿值和第一像素的像素值的乘积,作为校正后的第一像素的像素值,从而实现对第一像素的校正。In the light response non-uniformity compensation value corresponding to the calibration sensor identification, the light response non-uniformity compensation value corresponding to the first pixel position is selected, and the first pixel is corrected accordingly, thereby obtaining the corrected first pixel. Optionally, the product of the light response non-uniformity compensation value corresponding to the first pixel position and the pixel value of the first pixel may be used as the corrected pixel value of the first pixel, thereby realizing the correction of the first pixel.
步骤1106,根据第二像素和校正后的第一像素,得到目标图像;其中,第二像素是初始图像中除第一像素之外的像素。Step 1106: Obtain a target image according to the second pixel and the corrected first pixel, wherein the second pixel is a pixel other than the first pixel in the initial image.
终端根据第二像素和校正后的第一像素,得到目标图像,其中,第二像素是初始图像中除第一像素之外的像素。可以理解地,第二像素保持原来的位置不变,校正后的第一像素的位置与第一像素的位置相同,则第二像素和校正后的第一像素对应位置放置即可得到目标图像。The terminal obtains the target image according to the second pixel and the corrected first pixel, where the second pixel is a pixel other than the first pixel in the initial image. It can be understood that the original position of the second pixel remains unchanged, the position of the corrected first pixel is the same as that of the first pixel, and the target image can be obtained by placing the second pixel and the corrected first pixel at the corresponding positions.
本实施例中,通过预设亮度阈值选取初始图像中的部分第一像素,根据对应位置的光响应不均匀性补偿值对亮度较高的第一像素进行校正,得到校正后的目标图像,可以在提高对初始图像的校正精度的同时降低计算复杂度,从而可以更快速地得到画质较优的目标图像。In this embodiment, some first pixels in the initial image are selected by a preset brightness threshold, and the first pixels with higher brightness are corrected according to the light response non-uniformity compensation value at the corresponding position to obtain the corrected target image, which can be While improving the correction accuracy of the initial image, the computational complexity is reduced, so that a target image with better image quality can be obtained more quickly.
在一个实施例中,图像校正方法如图12所示,应用于终端,当终端第一次开机时,获取终端的传感器标识及存储在终端的传感器标定数据,其中,传感器标定数据包括标定传感器标识及标定传感器标识对应的PRNU补偿值。当终端识别到传感器标识与标定传感器标识相同时,则使用标定传感器标识对应的PRNU补偿值对传感器进行补偿,也就是对传感器获取的初始图像进行校正,得到目标图像;当终端识别到传感器标识与标定传感器标识不同时,则使用默认补偿数据对传感器的PRNU进行补偿,同时向服务器发送标定数据更新请求,从服务器接收到根据数据更新请求发送的与传感器标识匹配的PRNU补偿值并保存。当终端第二次开机时,可直接获取保存在终端的与传感器标识相一致的标定传感器标识对应的PRNU补偿值,进而对传感器的PRNU进行补偿。本实施例中针对终端使用过程中更换传感器,从而改变传感器标识的情况时,可以实现对传感器获取的初始图像进行及时并准确的校正,从而得到画质较好的目标图像。In one embodiment, the image correction method is shown in FIG. 12 and is applied to a terminal. When the terminal is powered on for the first time, the sensor identification of the terminal and the sensor calibration data stored in the terminal are obtained, wherein the sensor calibration data includes the calibration sensor identification. And the PRNU compensation value corresponding to the calibration sensor identification. When the terminal recognizes that the sensor ID is the same as the calibration sensor ID, it uses the PRNU compensation value corresponding to the calibration sensor ID to compensate the sensor, that is, corrects the initial image obtained by the sensor to obtain the target image; When the calibration sensor identification is different, the default compensation data is used to compensate the PRNU of the sensor, and the calibration data update request is sent to the server at the same time, and the PRNU compensation value matching the sensor identification sent according to the data update request is received from the server and saved. When the terminal is powered on for the second time, the PRNU compensation value corresponding to the calibrated sensor identification stored in the terminal and consistent with the sensor identification can be directly obtained, and then the PRNU of the sensor is compensated. In this embodiment, when the sensor is replaced during use of the terminal, thereby changing the sensor identification, the initial image acquired by the sensor can be corrected in a timely and accurate manner, thereby obtaining a target image with better image quality.
在一个示例中,传感器标定及图像校正方法可以通过以下步骤1302至步骤1314及步骤1402至步骤1410实现。其中,传感器标定方法的流程示意图如图13所示,图像校正方法的流程示意图如图14所示。In one example, the sensor calibration and image correction method may be implemented through the following
步骤1302,在预设条件下,获取各个传感器拍摄的标定图像。
本实施例中的预设条件可以如下:色温:6500K(开尔文);标定板光源照度:400lux(勒克斯);标定板与传感器之间的距离:10-20厘米;传感器对焦距离为无穷远;传感器的快门时间满足拍摄的标定图像的亮度为800LSB(最低有效位),每个传感器拍摄20帧标定图像。在预设条件下,将传感器组装为传感器模组,即传感器模组还包括了镜头、马达等拍摄配件,各个传感器模组在同一位置以相同的角度面对同一标定板进行拍摄,得到对应的标定图像。其中,标定板为带定位标志的均匀面光源。The preset conditions in this embodiment may be as follows: color temperature: 6500K (Kelvin); light source illumination of calibration board: 400lux (lux); distance between calibration board and sensor: 10-20 cm; sensor focusing distance is infinite; sensor The shutter time satisfies that the brightness of the captured calibration image is 800LSB (least significant bit), and each sensor captures 20 frames of calibration images. Under the preset conditions, the sensor is assembled into a sensor module, that is, the sensor module also includes shooting accessories such as a lens and a motor. Calibration image. The calibration plate is a uniform surface light source with positioning marks.
步骤1304,对获取的各个传感器拍摄的标定图像进行预处理。Step 1304: Perform preprocessing on the acquired calibration images captured by each sensor.
例如,对标定图像进行坏点校正(Defect Pixel Correction,DPC),坏点可以指在均匀照明条件下经过传感器感光之后输出的图像中亮度与周围有明显差异的点。如果是拜耳传感器的话,需要对标定图像进行拜耳阵列补偿处理。现有的预处理方法均可以用于本实施例中,在此不作限定。For example, to perform Defect Pixel Correction (DPC) on the calibration image, a dead pixel may refer to a point in an image output after being exposed by a sensor under uniform lighting conditions that has a significant difference in brightness from its surroundings. If it is a Bayer sensor, it is necessary to perform Bayer array compensation processing on the calibration image. All existing preprocessing methods can be used in this embodiment, which is not limited here.
步骤1306,将同一传感器拍摄的标定图像中相同位置的像素的像素值平均值,作为第一图像中对应位置的像素的像素值;根据第一图像中各位置的像素的像素值,得到所述第一图像。
步骤1308,将不同传感器对应的标定图像对齐。
可以根据标定板上的定位标志,确定标定图像的中心像素,从而将不同传感器对应的标定图像对齐,使得不同传感器对应的标定图像中对应位置的像素的坐标相同。The center pixel of the calibration image can be determined according to the positioning marks on the calibration board, so that the calibration images corresponding to different sensors are aligned, so that the coordinates of the pixels at the corresponding positions in the calibration images corresponding to different sensors are the same.
步骤1310,将各个传感器对应的第一图像中相同位置的像素的像素值平均值,作为第二图像中对应位置的像素的像素值;根据第二图像中各位置的像素的像素值,得到第二图像。Step 1310: Take the average value of the pixel values of the pixels at the same position in the first image corresponding to each sensor as the pixel value of the pixel at the corresponding position in the second image; obtain the first pixel value according to the pixel value of the pixel at each position in the second image. Second image.
步骤1312,将第一图像和第二图像中相同位置的像素的像素值差值,作为第三图像中对应位置的像素的像素值;根据第三图像中各位置的像素的像素值,得到传感器对应的第三图像。Step 1312: Use the pixel value difference of the pixel at the same position in the first image and the second image as the pixel value of the pixel at the corresponding position in the third image; obtain the sensor according to the pixel value of the pixel at each position in the third image The corresponding third image.
步骤1314,针对第一图像中的第一目标像素,将与第一目标像素的位置相同的第三图像中的像素作为第二目标像素;将第二目标像素和第一目标像素的比值,作为第一目标像素位置所对应的光响应不均匀性补偿值;根据各个第一目标像素位置所对应的光响应不均匀性补偿值,得到传感器的光响应不均匀性补偿值。
步骤1402,终端获取传感器标识以及传感器标定数据,其中,传感器标定数据包括标定传感器标识及标定传感器标识对应的光响应不均匀性补偿值。
步骤1404,当传感器标识与标定传感器标识相同时,则将标定传感器标识对应的光响应不均匀性补偿值与传感器获取的初始图像中亮度为400LSB以上对应位置的像素的乘积,作为目标图像中对应位置的像素。
步骤1406,当传感器标识与标定传感器标识不同时,则获取默认补偿数据并根据默认补偿数据对传感器获取的初始图像进行校正,得到目标图像。
步骤1408,终端根据传感器标识向服务器发送标定数据更新请求。
步骤1410,终端接收服务器根据标定数据更新请求发送的与传感器标识相匹配的光响应不均匀性补偿值,并保存所述光响应不均匀性补偿值。Step 1410: The terminal receives the optical response non-uniformity compensation value that matches the sensor identifier and is sent by the server according to the calibration data update request, and saves the optical response non-uniformity compensation value.
其中,标定传感器标识对应的光响应不均匀性补偿值和服务器发送的光响应不均匀性补偿值均是根据步骤1302至步骤1314得到。The optical response non-uniformity compensation value corresponding to the calibration sensor identifier and the optical response non-uniformity compensation value sent by the server are both obtained according to
在此需要说明的是,步骤1302至步骤1314可以由终端进行处理,也可以由服务器进行处理。可选地,如果是由终端处理,可以将得到的光响应不均匀性补偿值导出并保存至各个传感器标识对应的终端,同时上传服务器进行保存;如果是由服务器处理,则需要从服务器下载并导出光响应不均匀性补偿值保存至各个传感器标识对应的终端。It should be noted here that, steps 1302 to 1314 may be processed by the terminal, or may be processed by the server. Optionally, if it is processed by the terminal, the obtained optical response non-uniformity compensation value can be exported and saved to the terminal corresponding to each sensor identification, and uploaded to the server for saving; if it is processed by the server, it needs to be downloaded from the server and saved. The derived light response non-uniformity compensation value is saved to the terminal corresponding to each sensor identification.
可选地,在得到目标图像的处理过程中,在根据光响应不均匀性补偿值对初始图像进行校正之前,可以先去除传感器获取图像中的坏点,即经过DPC模块的处理,然后根据光响应不均匀性补偿值对初始图像进行校正,继而再经过LSC(Lens Shade Correction,镜头阴影校正)模块处理,得到目标图像。Optionally, in the process of obtaining the target image, before correcting the initial image according to the light response non-uniformity compensation value, the dead pixels in the image obtained by the sensor can be removed first, that is, after processing by the DPC module, and then according to the light response. The initial image is corrected in response to the non-uniformity compensation value, and then processed by an LSC (Lens Shade Correction, lens shading correction) module to obtain a target image.
上述传感器标定及图像校正方法,针对预设条件下获取的各个传感器拍摄的标定图像,先对同一传感器拍摄的标定图像处理得到第一图像,去除光子噪声和读出噪声,然后再对各个传感器对应的第一图像进行处理得到第二图像,可以很大程度上屏蔽除PRNU之外的噪声,根据传感器对应的第一图像和第二图像得到PRNU导致的噪声值,根据PRNU噪声值与第一图像中对应像素的比值,可以准确确定该传感器的光响应不均匀性补偿值;终端可以通过本地保存以及服务器发送的方式,及时获取与传感器标识对应的光响应不均匀性补偿值,通过准确的光响应不均匀性补偿值对传感器获取的初始图像进行校正,从而能够较好提升目标图像的画质。The above sensor calibration and image correction method, for the calibration images captured by each sensor obtained under preset conditions, firstly process the calibration images captured by the same sensor to obtain a first image, remove photon noise and readout noise, and then correspond to each sensor. The first image is processed to obtain the second image, which can largely shield the noise except PRNU. The noise value caused by PRNU is obtained according to the first image and the second image corresponding to the sensor. According to the noise value of PRNU and the first image The ratio of the corresponding pixels in the sensor can accurately determine the light response non-uniformity compensation value of the sensor; the terminal can obtain the light response non-uniformity compensation value corresponding to the sensor identification in time through local storage and server sending. The initial image acquired by the sensor is corrected in response to the non-uniformity compensation value, so that the image quality of the target image can be better improved.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be performed at different times The execution order of these steps or phases is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or phases in the other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的传感器标定方法的传感器标定装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多传感器标定装置实施例中的具体限定可以参见上文中对于传感器标定方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application also provides a sensor calibration device for implementing the above-mentioned sensor calibration method. The solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in the embodiments of one or more sensor calibration devices provided below can refer to the above limitations on the sensor calibration method. This will not be repeated here.
在一个实施例中,如图15所示,提供了一种传感器标定装置,包括:标定图像获取模块1502、第一数据处理模块1504、第二数据处理模块1506和补偿数据确定模块1508,其中:In one embodiment, as shown in FIG. 15, a sensor calibration device is provided, including: a calibration
标定图像获取模块1502,用于获取各个传感器拍摄的标定图像;A calibration
第一数据处理模块1504,用于根据同一所述传感器拍摄的标定图像,得到所述传感器对应的第一图像;a first
第二数据处理模块1506,用于根据各个传感器对应的第一图像,得到第二图像;The second
补偿数据确定模块1508,用于针对每个传感器,根据所述传感器对应的第一图像和所述第二图像,确定所述传感器的光响应不均匀性补偿值。The compensation
在一个实施例中,第一数据处理模块1504,还用于:将同一所述传感器拍摄的标定图像中相同位置的像素的像素值平均值,作为所述第一图像中对应位置的像素的像素值;根据所述第一图像中各位置的像素的像素值,得到所述第一图像。In one embodiment, the first
在一个实施例中,第二数据处理模块1506,还用于:将各个传感器对应的第一图像中相同位置的像素的像素值平均值,作为所述第二图像中对应位置的像素的像素值;根据所述第二图像中各位置的像素的像素值,得到所述第二图像。In one embodiment, the second
在一个实施例中,补偿数据确定模块1508,还用于:针对每个传感器,根据所述传感器对应的第一图像和所述第二图像,得到所述传感器对应的第三图像;根据所述第一图像和所述第三图像,确定所述传感器的光响应不均匀性补偿值。In one embodiment, the compensation
在一个实施例中,补偿数据确定模块1508,还用于:将所述第一图像和所述第二图像中相同位置的像素的像素值差值,作为所述第三图像中对应位置的像素的像素值;根据所述第三图像中各位置的像素的像素值,得到所述传感器对应的第三图像。In one embodiment, the compensation
在一个实施例中,补偿数据确定模块1508,还用于:针对所述第一图像中的第一目标像素,将与所述第一目标像素的位置相同的所述第三图像中的像素作为第二目标像素;根据所述第一目标像素和所述第二目标像素,确定所述第一目标像素位置所对应的光响应不均匀性补偿值;根据各个所述第一目标像素位置所对应的光响应不均匀性补偿值,确定所述传感器的光响应不均匀性补偿值。In one embodiment, the compensation
在一个实施例中,补偿数据确定模块1508,还用于:将所述第二目标像素和所述第一目标像素的比值,作为所述第一目标像素位置所对应的光响应不均匀性补偿值。In one embodiment, the compensation
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的图像校正方法的图像校正装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或图像校正装置实施例中的具体限定可以参见上文中对于图像校正方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application also provides an image correction device for implementing the above-mentioned image correction method. The solution to the problem provided by the device is similar to the solution described in the above method, so the specific limitations in one of the embodiments provided below or the image correction device can refer to the above limitations on the image correction method, here No longer.
在一个实施例中,如图16所示,提供了一种图像校正装置,包括:标定数据获取模块1602、第一校正模块1604、第二校正模块1606、更新请求发送模块1608和更新数据接收模块1610,其中:In one embodiment, as shown in FIG. 16, an image correction apparatus is provided, including: a calibration
标定数据获取模块1602,用于获取传感器标识以及传感器标定数据,所述传感器标定数据包括标定传感器标识及所述标定传感器标识对应的光响应不均匀性补偿值;A calibration
第一校正模块1604,用于当所述传感器标识与所述标定传感器标识相同时,则根据所述标定传感器标识对应的光响应不均匀性补偿值对所述传感器获取的初始图像进行校正,得到目标图像;The
第二校正模块1606,用于当所述传感器标识与所述标定传感器标识不同时,则获取默认补偿数据并根据所述默认补偿数据对所述传感器获取的初始图像进行校正,得到目标图像;The
更新请求发送模块1608,用于根据所述传感器标识向服务器发送标定数据更新请求;an update
更新数据接收模块1610,用于接收所述服务器根据所述标定数据更新请求发送的与所述传感器标识相匹配的光响应不均匀性补偿值,并保存所述光响应不均匀性补偿值;所述标定传感器标识对应的光响应不均匀性补偿值和所述服务器发送的光响应不均匀性补偿值均是根据上述传感器标定方法得到。The update
在一个实施例中,第一校正模块1604,还用于:获取所述初始图像中大于预设亮度阈值的第一像素;根据所述光响应不均匀性补偿值中与所述第一像素位置对应的光响应不均匀性补偿值,对所述第一像素进行校正,得到校正后的第一像素;根据第二像素和所述校正后的第一像素,得到所述目标图像;所述第二像素是所述初始图像中除第一像素之外的像素。In one embodiment, the
上述传感器标定装置或图像校正装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned sensor calibration device or image correction device can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图17所示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种传感器标定方法或者一种图像校正方法。该计算机设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置。显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 17 . The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. Wherein, the processor, the memory and the input/output interface are connected through the system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The input/output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer equipment is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program, when executed by the processor, implements a sensor calibration method or an image correction method. The display unit of the computer equipment is used to form a visually visible picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment, or a An external keyboard, trackpad, or mouse, etc.
本领域技术人员可以理解,图17中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 17 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行传感器标定方法或图像校正方法的步骤。Embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform a sensor calibration method or an image correction method A step of.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行传感器标定方法或图像校正方法。Embodiments of the present application also provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute a sensor calibration method or an image correction method.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all It is the information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to a memory, a database or other media used in the various embodiments provided in this application may include at least one of a non-volatile memory and a volatile memory. Non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Memory) Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The database involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the present application should be determined by the appended claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210879467.2A CN115170676A (en) | 2022-07-25 | 2022-07-25 | Sensor calibration and image correction method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210879467.2A CN115170676A (en) | 2022-07-25 | 2022-07-25 | Sensor calibration and image correction method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115170676A true CN115170676A (en) | 2022-10-11 |
Family
ID=83497582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210879467.2A Pending CN115170676A (en) | 2022-07-25 | 2022-07-25 | Sensor calibration and image correction method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115170676A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115760653A (en) * | 2023-01-09 | 2023-03-07 | 武汉中导光电设备有限公司 | Image correction method, device, equipment and readable storage medium |
-
2022
- 2022-07-25 CN CN202210879467.2A patent/CN115170676A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115760653A (en) * | 2023-01-09 | 2023-03-07 | 武汉中导光电设备有限公司 | Image correction method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8004566B2 (en) | Self calibration of white balance for a digital camera device using correlated color temperature data | |
CN112202986B (en) | Image processing method, image processing apparatus, readable medium and electronic device thereof | |
US9451187B2 (en) | Lens shading calibration for cameras | |
CN107704798B (en) | Image blurring method, apparatus, computer-readable storage medium, and computer device | |
US9412154B2 (en) | Depth information based optical distortion correction circuit and method | |
CN109685853B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN109598763B (en) | Camera calibration method, apparatus, electronic device and computer-readable storage medium | |
CN113132695B (en) | Lens shading correction method and device and electronic equipment | |
JP7385711B2 (en) | Optical sensor module, optical sensing data acquisition method, electronic equipment, storage medium | |
CN114331907A (en) | Color shading correction method and device | |
WO2022036539A1 (en) | Color consistency correction method and device for multiple cameras | |
CN105306913B (en) | Image acquisition device and image compensation method thereof | |
CN115170676A (en) | Sensor calibration and image correction method and device, electronic equipment and storage medium | |
CN107071274B (en) | Distortion processing method and terminal | |
US12166959B2 (en) | Anomalous pixel detection systems and methods | |
CN114972100A (en) | Noise model estimation method and device, and image processing method and device | |
CN115965675A (en) | Image processing method and device, electronic device and storage medium | |
US20220239810A1 (en) | Image Sensor and Image Photographing Apparatus and Method | |
CN114972047B (en) | Image processing method, device and storage medium | |
CN105393529A (en) | Optical modules and methods | |
JP2015095867A (en) | Color reproduction characteristic creation device, color reproduction characteristic creation system, program, and color reproduction characteristic creation method | |
CN115037915B (en) | Video processing method and processing device | |
CN115665557B (en) | Image processing method and device and image acquisition equipment | |
CN115278001B (en) | Image sensor, camera module, electronic device and shooting method | |
CN105282401B (en) | Image acquisition device and vignetting compensation method thereof |
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 |