WO2022246950A1 - Imaging correction method and apparatus, and intelligent terminal - Google Patents

Imaging correction method and apparatus, and intelligent terminal Download PDF

Info

Publication number
WO2022246950A1
WO2022246950A1 PCT/CN2021/103646 CN2021103646W WO2022246950A1 WO 2022246950 A1 WO2022246950 A1 WO 2022246950A1 CN 2021103646 W CN2021103646 W CN 2021103646W WO 2022246950 A1 WO2022246950 A1 WO 2022246950A1
Authority
WO
WIPO (PCT)
Prior art keywords
temperature
dark current
image sensor
preset
current
Prior art date
Application number
PCT/CN2021/103646
Other languages
French (fr)
Chinese (zh)
Inventor
胡泽
Original Assignee
东莞市小精灵教育软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 东莞市小精灵教育软件有限公司 filed Critical 东莞市小精灵教育软件有限公司
Publication of WO2022246950A1 publication Critical patent/WO2022246950A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/63Noise processing, e.g. detecting, correcting, reducing or removing noise applied to dark current

Definitions

  • the invention relates to the technical field of intelligent terminals, in particular to an imaging correction method and device, and an intelligent terminal.
  • Portable smart terminals such as smart watches and smart phones, have become indispensable in daily life. Taking photos/video calls and the like are very important functions in the smart terminal, so the smart terminal is usually equipped with a camera.
  • the image sensor (such as CMOS sensor, CCD sensor) in the camera will also generate charge when there is no light shining on the pixel unit.
  • the current generated by these charges is called dark current. Among them, the dark current and the charge generated by light are difficult to distinguish.
  • the dark current of each pixel is not the same, some are low, some are high. Dark current may overwhelm the real light signal, causing image quality degradation.
  • the method of background subtraction is currently used to correct the imaging. Acquire an image in a non-illuminated environment (that is, under total darkness), that is, an image caused by dark current, as a background image. The pixel value of each pixel unit in the background image is the corresponding dark current value. When taking a sample, automatically subtract the background image and output the image after background subtraction.
  • the magnitude of the dark current is closely related to the temperature, the higher the temperature, the greater the dark current. Due to some operations on the smart terminal, such as long call time, playing games, watching videos, etc., the temperature of the device is high. Even if the camera is far away from the processor, the temperature of the image sensor will be high and the dark current will be large. If you shoot at this time, Even with a fixed background image, the image quality will still be poor. This phenomenon is even more serious in small devices, such as smart watches.
  • One of the objectives of the present invention is to provide an imaging correction method and device, and an intelligent terminal in order to overcome at least some of the deficiencies in the prior art.
  • An imaging correction method for an intelligent terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
  • the imaging correction method includes: monitoring the current temperature of the image sensor through the temperature sensor;
  • the preset temperature is changed, and the above process is repeated to obtain dark current calibration values at several preset temperatures.
  • the adjustment value of the background image is obtained, including:
  • the dark current value corresponding to the current temperature is calculated.
  • the monitoring the current temperature of the image sensor by the temperature sensor includes: obtaining the current temperature of the image sensor according to the temperature measured by the temperature sensor and a temperature distribution model inside the smart terminal.
  • the present invention also provides an imaging correction device for an intelligent terminal, the intelligent terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
  • the imaging correction device includes: a temperature monitoring module, configured to monitor the current temperature of the image sensor through the temperature sensor;
  • the imaging correction module is configured to optimize the original image collected by the image sensor according to the background image and the adjustment value of the background image, and output a target image.
  • a measurement module configured to adjust the temperature of the image sensor to a preset temperature; measure a dark current value at a preset point of the image sensor at the preset temperature, and use it as a dark current calibration value at the preset temperature ; Change the preset temperature, repeat the above process, and obtain dark current calibration values of several preset temperatures.
  • the dark current adjustment module is further configured to apply an interpolation algorithm to calculate the dark current calibration value of the stored preset temperature if the current temperature of the image sensor is not equal to the stored preset temperature.
  • the dark current value corresponding to the current temperature; the adjustment value of the background image is obtained according to the dark current value corresponding to the current temperature.
  • the dark current adjustment module is also used to obtain the first two stored preset temperatures closest to the current temperature; and calculate the current temperature according to the dark current calibration values of the two preset temperatures. The dark current value corresponding to the temperature.
  • the imaging correction method and device and the intelligent terminal provided by the present invention can at least bring about the following beneficial effects: by monitoring the working temperature of the image sensor chip in the camera and combining the temperature-dark current characteristics of the chip, the background image can be adaptively adjusted , by subtracting the background image from the original image collected by the image sensor, thereby eliminating the influence of dark current and obtaining a better imaging effect.
  • Fig. 2 is a flow chart of another embodiment of an imaging correction method of the present invention.
  • Fig. 3 is a structural schematic diagram of an embodiment of an imaging correction device of the present invention.
  • Fig. 4 is a schematic structural diagram of another embodiment of an imaging correction device of the present invention.
  • Fig. 5 is a schematic structural diagram of an embodiment of an intelligent terminal according to the present invention.
  • an imaging correction method is used in a smart terminal, the smart terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
  • the imaging correction method includes:
  • Step S200 monitors the current temperature of the image sensor through the temperature sensor.
  • a temperature sensor In order to monitor the working temperature of the image sensor, a temperature sensor can be specially provided, but this will increase the cost of the smart terminal.
  • the heat source point is generally a CPU (Central Processing Unit) chip.
  • the image sensor is generally set on the edge of the smart terminal, and there may be a certain distance from the temperature sensor.
  • the current temperature of the image sensor can be obtained according to the temperature distribution model inside the smart terminal and the temperature of the heat source point measured by the temperature sensor.
  • the temperature distribution model can be obtained according to the internal structure of the smart terminal and historical temperature distribution data. In this way, it is unnecessary to add a temperature sensor specially for monitoring the image sensor, thereby not increasing the cost of the smart terminal.
  • Step S300 obtains the adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures.
  • the background image refers to an image collected by the image sensor at a default temperature in an environment without light, and the image is caused by dark current.
  • a normal operating temperature of the image sensor can be used as the default temperature.
  • the dark current calibration value or dark current value may be an average dark current value of the image sensor at a corresponding temperature.
  • a temperature-dark current fitting curve is obtained according to the stored preset temperature and its dark current calibration value, and the dark current value corresponding to the current temperature is calculated using a function expressing the fitting curve.
  • a simpler and more effective method is to obtain the first two stored preset temperatures closest to the current temperature; and calculate the dark current value corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. For example, linear interpolation is used to obtain a straight line according to the two preset temperatures and their dark current calibration values, and the dark current value corresponding to the current temperature is calculated according to the straight line.
  • the adjustment value of the background image is obtained.
  • the dark current deviation value caused by temperature is obtained, and the pixels of the background image are adjusted according to the dark current deviation value.
  • Step S400 optimizes the original image collected by the image sensor according to the background image and the adjustment value of the background image, and outputs the target image.
  • the pixels of the background image are adjusted to obtain an updated background image. Then subtract the updated background image from the original image collected by the image sensor, so as to obtain the target image that eliminates the influence of dark current.
  • the background image is adaptively adjusted, and then the adjusted background image is deducted from the original image collected by the image sensor, thereby eliminating The effect of dark current can get better imaging effect.
  • an imaging correction method is used in a smart terminal, the smart terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
  • the imaging correction method includes:
  • Step S100 adjusts the temperature of the image sensor to a preset temperature
  • Step S110 Measure the dark current value of a preset point of the image sensor at a preset temperature, and use it as the corresponding dark current calibration value;
  • Step S120 changes the preset temperature, repeats the above process, and obtains dark current calibration values at several preset temperatures.
  • the temperature of the image sensor can be changed by adjusting the ambient temperature around the image sensor to reach a preset temperature.
  • a preset point in the image sensor for example, an area most affected by dark current, and measure its dark current value at a preset temperature.
  • the dark current value needs to be measured in an environment without light.
  • Step S210 obtains the current temperature of the image sensor according to the temperature measured by the temperature sensor and the temperature distribution model inside the smart terminal.
  • the heat source point is usually a CPU (central processing unit) chip.
  • the image sensor is generally set on the edge of the smart terminal, and there may be a certain distance from the temperature sensor.
  • the current temperature of the image sensor can be obtained according to the temperature distribution model inside the smart terminal and the temperature of the heat source point measured by the temperature sensor.
  • the temperature distribution model can be obtained according to the internal structure of the smart terminal and historical temperature distribution data. In this way, it is unnecessary to add a temperature sensor specially for monitoring the image sensor, thereby not increasing the cost of the smart terminal.
  • Step S300 obtains the adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures.
  • the background image refers to an image collected by the image sensor at a default temperature in an environment without light, and the image is caused by dark current.
  • a normal operating temperature of the image sensor can be used as the default temperature.
  • the background image is the dark current representation of the image sensor at the default temperature. Therefore, the pixels of the background image need to be adjusted according to the current temperature of the image sensor.
  • the dark current calibration value or dark current value may be an average dark current value of the image sensor at a corresponding temperature.
  • the dark current value corresponding to the current temperature is equal to the dark current calibration value of the preset temperature.
  • a temperature-dark current fitting curve is obtained according to the stored preset temperature and its dark current calibration value, and the dark current value corresponding to the current temperature is calculated using a function expressing the fitting curve.
  • a simpler and more effective method is to obtain the first two stored preset temperatures closest to the current temperature; calculate the dark current value corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. For example, linear interpolation is used to obtain a straight line according to the two preset temperatures and their dark current calibration values, and the dark current value corresponding to the current temperature is calculated according to the straight line.
  • the adjustment value of the background image is obtained.
  • the dark current deviation value caused by temperature is obtained, and the pixels of the background image are adjusted according to the dark current deviation value.
  • Step S400 optimizes the original image collected by the image sensor according to the background image and the adjustment value of the background image, and outputs the target image.
  • the pixels of the background image are adjusted to obtain an updated background image. Then subtract the updated background image from the original image collected by the image sensor, so as to obtain the target image that eliminates the influence of dark current.
  • an imaging correction device is used in a smart terminal, the smart terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
  • the image correction device includes:
  • the temperature monitoring module 100 is configured to monitor the current temperature of the image sensor through the temperature sensor.
  • a temperature sensor In order to monitor the working temperature of the image sensor, a temperature sensor can be specially provided, but this will increase the cost of the smart terminal.
  • the heat source point is generally a CPU (Central Processing Unit) chip.
  • the image sensor is generally set on the edge of the smart terminal, and may have a certain distance from the temperature sensor.
  • the temperature monitoring module 100 can obtain the current temperature of the image sensor according to the temperature distribution model inside the smart terminal and the temperature of the heat source point measured by the temperature sensor. temperature.
  • the temperature distribution model can be obtained according to the internal structure of the smart terminal and historical temperature distribution data. In this way, it is unnecessary to add a temperature sensor specially for monitoring the image sensor, thereby not increasing the cost of the smart terminal.
  • the dark current adjustment module 200 is configured to obtain an adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures.
  • the background image refers to an image collected by the image sensor at a default temperature in an environment without light, and the image is caused by dark current.
  • a normal operating temperature of the image sensor can be used as the default temperature.
  • the background image is the dark current representation of the image sensor at the default temperature. Therefore, the pixels of the background image need to be adjusted according to the current temperature of the image sensor.
  • the dark current calibration value or dark current value may be an average dark current value of the image sensor at a corresponding temperature.
  • the dark current value corresponding to the current temperature is equal to the dark current calibration value of the preset temperature.
  • an interpolation algorithm is applied to calculate the dark current value corresponding to the current temperature according to the stored dark current calibration value of the preset temperature.
  • a temperature-dark current fitting curve is obtained according to the stored preset temperature and its dark current calibration value, and the dark current value corresponding to the current temperature is calculated using a function expressing the fitting curve.
  • a simpler and more effective method is to obtain the first two stored preset temperatures closest to the current temperature; and calculate the dark current value corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. For example, linear interpolation is used to obtain a straight line according to the two preset temperatures and their dark current calibration values, and the dark current value corresponding to the current temperature is calculated according to the straight line.
  • the adjustment value of the background image is obtained.
  • the dark current deviation value caused by temperature is obtained, and the pixels of the background image are adjusted according to the dark current deviation value.
  • the imaging correction module 300 is configured to optimize the original image collected by the image sensor and output the target image according to the background image and the adjustment value of the background image.
  • the pixels of the background image are adjusted to obtain an updated background image. Then subtract the updated background image from the original image collected by the image sensor, so as to obtain the target image that eliminates the influence of dark current.
  • the background image is adaptively adjusted, and then the adjusted background image is deducted from the original image collected by the image sensor, thereby eliminating The effect of dark current can get better imaging effect.
  • an imaging correction device is used in a smart terminal, the smart terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
  • the image correction device includes:
  • the measurement module 400 is used to adjust the temperature of the image sensor to a preset temperature; measure the dark current value of a preset point of the image sensor at the preset temperature, and use it as the corresponding dark current calibration value; change the preset temperature, and repeat the above process , to get the dark current calibration value of several preset temperatures.
  • the temperature of the image sensor can be changed by adjusting the ambient temperature around the image sensor to reach a preset temperature.
  • a preset point in the image sensor for example, an area most affected by dark current, and measure its dark current value at a preset temperature.
  • the dark current value needs to be measured in an environment without light.
  • the latter way can more accurately reflect the temperature-dark current characteristics of the image sensor.
  • the temperature monitoring module 100 is configured to obtain the current temperature of the image sensor according to the temperature measured by the temperature sensor and the temperature distribution model inside the smart terminal.
  • the dark current adjustment module 200 is configured to obtain an adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures.
  • the background image is the dark current representation of the image sensor at the default temperature. Therefore, the pixels of the background image need to be adjusted according to the current temperature of the image sensor.
  • the dark current value corresponding to the current temperature is equal to the dark current calibration value of the preset temperature.
  • a simpler and more effective method is to obtain the first two stored preset temperatures closest to the current temperature; and calculate the dark current value corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. For example, linear interpolation is used to obtain a straight line according to the two preset temperatures and their dark current calibration values, and the dark current value corresponding to the current temperature is calculated according to the straight line.
  • the imaging correction module 300 is configured to optimize the original image collected by the image sensor and output the target image according to the background image and the adjustment value of the background image.
  • the temperature-dark current characteristics of the image sensor are obtained through multiple measurements, and stored in the smart terminal; the smart terminal monitors the temperature of the image sensor in the camera, combined with the stored temperature-dark current characteristics of the image sensor, Adaptively adjust the background image, and then subtract the adjusted background image from the original image collected by the image sensor, thereby eliminating the influence of dark current and obtaining better imaging results.
  • the embodiment of the imaging correction device provided by the present invention is based on the same inventive concept as the embodiment of the imaging correction method provided above, and can achieve the same technical effect. Therefore, other specific content of the embodiment of the imaging correction device can refer to the description of the content of the embodiment of the aforementioned imaging correction method.
  • the smart terminal 20 can be a smart watch, a smart phone, and the like.
  • the computer program can be divided into one or more modules/units according to the specific requirements for implementing the present invention.
  • Each module/unit can be a series of computer program instruction segments capable of performing a specific function.
  • the computer program instruction segment is used to describe the execution process of the computer program in the imaging correction device.
  • the computer program may be divided into various modules/units in the virtual device, such as a temperature monitoring module, a dark current adjustment module, and an imaging correction module.
  • the processor is configured to realize imaging correction by executing the computer program.
  • the processor can be a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a general purpose processor or other logic devices, etc.
  • the memory may be any internal storage unit and/or external storage device capable of storing data and programs.
  • the memory may be a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, or a flash memory card.
  • SMC smart memory card
  • SD secure digital
  • flash memory card any type of memory card.
  • the memory is used to store computer programs and data.
  • the smart terminal 20 may also include input and output devices, display devices, network access devices, buses, and the like.
  • the smart terminal 20 can also be a single-chip microcomputer, or a computing device integrating a central processing unit (CPU) and a graphics processing unit (GPU).
  • CPU central processing unit
  • GPU graphics processing unit
  • the units and modules in the above embodiments may be separate physical units, or two or more units and modules may be integrated into one physical unit.
  • Each unit and module of the above-mentioned embodiments may use hardware and/or software functional units to implement corresponding functions.
  • the direct coupling, indirect coupling or communication connection between multiple units, components and modules in the above embodiments can be realized through buses or interfaces; the coupling and connection between multiple units or devices can be electrical, mechanical or similar way.
  • the specific names of the various units and modules in the above embodiments are only for convenience of description and distinction, and do not limit the protection scope of the present application.

Abstract

An imaging correction method and apparatus, and an intelligent terminal. The method comprises: monitoring the current temperature of an image sensor by means of a temperature sensor; obtaining an adjustment value for a background image according to the current temperature of the image sensor and stored dark current calibration values of a plurality of preset temperatures; and according to the background image and the adjustment value for the background image, optimizing an original image collected by the image sensor, and outputting a target image. The influence of a dark current can be adaptively adjusted according to the temperature of an image sensor, thereby improving the quality of a formed image.

Description

一种成像校正方法及装置、智能终端An imaging correction method and device, and an intelligent terminal 技术领域technical field
本发明涉及智能终端技术领域,尤指一种成像校正方法及装置、智能终端。The invention relates to the technical field of intelligent terminals, in particular to an imaging correction method and device, and an intelligent terminal.
背景技术Background technique
便携式的智能终端,如智能手表、智能手机等,已经成为日常生活中不可或缺的用品。拍照/视频通话等又是智能终端中非常重要的功能,所以智能终端通常配有摄像头。Portable smart terminals, such as smart watches and smart phones, have become indispensable in daily life. Taking photos/video calls and the like are very important functions in the smart terminal, so the smart terminal is usually equipped with a camera.
由于杂质、受热等原因的影响,物理器件不可能是绝对理想的。摄像头中的图像传感器(比如CMOS传感器、CCD传感器)在没有光照射到像素单元上,也会产生电荷。将这些电荷所产生的电流叫暗电流。其中,暗电流和光照产生的电荷很难区分。Due to the influence of impurities, heat, etc., physical devices cannot be absolutely ideal. The image sensor (such as CMOS sensor, CCD sensor) in the camera will also generate charge when there is no light shining on the pixel unit. The current generated by these charges is called dark current. Among them, the dark current and the charge generated by light are difficult to distinguish.
同一图像传感器上,每个像素的暗电流并不相同,有的低,有的高。暗电流可能淹没真实的光信号,造成成像质量下降。On the same image sensor, the dark current of each pixel is not the same, some are low, some are high. Dark current may overwhelm the real light signal, causing image quality degradation.
为了消除暗电流的影响,目前采用背景扣除的方法对成像进行校正。预先获取一张在没有光照环境下(即全黑下)的图像,即暗电流引起的成像,做为背景图像。背景图像中每个像素单元的像素值即对应的暗电流值。在拍摄样品时,自动减去背景图像输出背景扣除后的图片。In order to eliminate the influence of dark current, the method of background subtraction is currently used to correct the imaging. Acquire an image in a non-illuminated environment (that is, under total darkness), that is, an image caused by dark current, as a background image. The pixel value of each pixel unit in the background image is the corresponding dark current value. When taking a sample, automatically subtract the background image and output the image after background subtraction.
暗电流的大小与温度的关系极为密切,温度越高,暗电流越大。智能终端因一些操作,比如通话时间长、玩游戏、看视频等,导致设备温度较高,即使摄像头远离处理器,也会导致图像传感器的温度较高,暗电流较大,若此时拍摄,即使按固定的背景图像进行扣除,图像质量仍然会比较差。这在体积小的设备中,比如智能手表,这个现象会更严重。The magnitude of the dark current is closely related to the temperature, the higher the temperature, the greater the dark current. Due to some operations on the smart terminal, such as long call time, playing games, watching videos, etc., the temperature of the device is high. Even if the camera is far away from the processor, the temperature of the image sensor will be high and the dark current will be large. If you shoot at this time, Even with a fixed background image, the image quality will still be poor. This phenomenon is even more serious in small devices, such as smart watches.
因此有必要提供一种更好的方法,用于解决当前智能手表或手机等智能终 端上摄像头采集的图像受温度的影响,失真效果严重,获取的图片不够清晰的问题。Therefore, it is necessary to provide a better method to solve the problem that the images collected by cameras on smart terminals such as smart watches or mobile phones are affected by temperature, the distortion effect is serious, and the obtained pictures are not clear enough.
发明内容Contents of the invention
本发明的目的之一是为了克服现有技术中存在的至少部分不足,提供一种成像校正方法及装置、智能终端。One of the objectives of the present invention is to provide an imaging correction method and device, and an intelligent terminal in order to overcome at least some of the deficiencies in the prior art.
本发明提供的技术方案如下:The technical scheme provided by the invention is as follows:
一种成像校正方法,用于智能终端,所述智能终端包括一摄像头和一温度传感器,所述摄像头包括图像传感器。所述成像校正方法包括:通过所述温度传感器监测所述图像传感器的当前温度;An imaging correction method for an intelligent terminal, the intelligent terminal includes a camera and a temperature sensor, and the camera includes an image sensor. The imaging correction method includes: monitoring the current temperature of the image sensor through the temperature sensor;
根据所述图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值;Obtain an adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures;
根据所述背景图像和所述背景图像的调整值,优化所述图像传感器采集的原始图像,输出目标图像。Optimizing the original image collected by the image sensor according to the background image and the adjustment value of the background image, and outputting a target image.
进一步地,在所述的得到背景图像的调整值之前还包括:Further, before obtaining the adjustment value of the background image, it also includes:
调整所述图像传感器的温度到预设温度;adjusting the temperature of the image sensor to a preset temperature;
测量所述预设温度下所述图像传感器一预设点的暗电流值,将其作为所述预设温度的暗电流标定值;measuring a dark current value at a preset point of the image sensor at the preset temperature, and using it as a dark current calibration value at the preset temperature;
改变所述预设温度,重复上述过程,得到若干预设温度的暗电流标定值。The preset temperature is changed, and the above process is repeated to obtain dark current calibration values at several preset temperatures.
进一步地,根据所述图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值,包括:Further, according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures, the adjustment value of the background image is obtained, including:
若所述图像传感器的当前温度不等于已存储的预设温度,则根据已存储的预设温度的暗电流标定值,应用插值算法计算出所述当前温度对应的暗电流值;根据所述当前温度对应的暗电流值,得到背景图像的调整值。If the current temperature of the image sensor is not equal to the stored preset temperature, then apply an interpolation algorithm to calculate the dark current value corresponding to the current temperature according to the dark current calibration value of the stored preset temperature; The dark current value corresponding to the temperature is used to obtain the adjusted value of the background image.
进一步地,所述的根据已存储的预设温度的暗电流标定值,应用插值算法 计算出所述当前温度对应的暗电流值,包括:Further, the dark current value corresponding to the current temperature is calculated by applying an interpolation algorithm according to the stored dark current calibration value of the preset temperature, including:
获取与所述当前温度距离最近的前两个已存储的预设温度;Obtaining the first two stored preset temperatures closest to the current temperature;
根据这两个预设温度的暗电流标定值,计算出所述当前温度对应的暗电流值。According to the dark current calibration values of the two preset temperatures, the dark current value corresponding to the current temperature is calculated.
进一步地,所述的通过所述温度传感器监测所述图像传感器的当前温度,包括:根据所述温度传感器测量的温度和所述智能终端内部的温度分布模型,得到所述图像传感器的当前温度。Further, the monitoring the current temperature of the image sensor by the temperature sensor includes: obtaining the current temperature of the image sensor according to the temperature measured by the temperature sensor and a temperature distribution model inside the smart terminal.
本发明还提供一种成像校正装置,用于智能终端,所述智能终端包括一摄像头和一温度传感器,所述摄像头包括图像传感器。所述成像校正装置包括:温度监测模块,用于通过所述温度传感器监测所述图像传感器的当前温度;The present invention also provides an imaging correction device for an intelligent terminal, the intelligent terminal includes a camera and a temperature sensor, and the camera includes an image sensor. The imaging correction device includes: a temperature monitoring module, configured to monitor the current temperature of the image sensor through the temperature sensor;
暗电流调整模块,用于根据所述图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值;A dark current adjustment module, configured to obtain an adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures;
成像校正模块,用于根据所述背景图像和所述背景图像的调整值,优化所述图像传感器采集的原始图像,输出目标图像。The imaging correction module is configured to optimize the original image collected by the image sensor according to the background image and the adjustment value of the background image, and output a target image.
进一步地,还包括:Further, it also includes:
测量模块,用于调整所述图像传感器的温度到预设温度;测量所述预设温度下所述图像传感器一预设点的暗电流值,将其作为所述预设温度的暗电流标定值;改变所述预设温度,重复上述过程,得到若干预设温度的暗电流标定值。A measurement module, configured to adjust the temperature of the image sensor to a preset temperature; measure a dark current value at a preset point of the image sensor at the preset temperature, and use it as a dark current calibration value at the preset temperature ; Change the preset temperature, repeat the above process, and obtain dark current calibration values of several preset temperatures.
进一步地,所述暗电流调整模块,还用于若所述图像传感器的当前温度不等于已存储的预设温度,则根据已存储的预设温度的暗电流标定值,应用插值算法计算出所述当前温度对应的暗电流值;根据所述当前温度对应的暗电流值,得到背景图像的调整值。Further, the dark current adjustment module is further configured to apply an interpolation algorithm to calculate the dark current calibration value of the stored preset temperature if the current temperature of the image sensor is not equal to the stored preset temperature. The dark current value corresponding to the current temperature; the adjustment value of the background image is obtained according to the dark current value corresponding to the current temperature.
进一步地,所述暗电流调整模块,还用于获取与所述当前温度距离最近的前两个已存储的预设温度;根据这两个预设温度的暗电流标定值,计算出所述当前温度对应的暗电流值。Further, the dark current adjustment module is also used to obtain the first two stored preset temperatures closest to the current temperature; and calculate the current temperature according to the dark current calibration values of the two preset temperatures. The dark current value corresponding to the temperature.
本发明还提供一种智能终端,包括:存储器,用于存储计算机程序;处理器,用于运行所述计算机程序时实现前述的成像校正方法。The present invention also provides an intelligent terminal, including: a memory for storing a computer program; and a processor for implementing the aforementioned imaging correction method when running the computer program.
通过本发明提供的一种成像校正方法及装置、智能终端,至少能够带来以下有益效果:通过监测摄像头中图像传感器芯片的工作温度,结合该芯片的温度-暗电流特性,自适应调整背景图像,通过对图像传感器采集的原始图像扣除背景图像,从而消除暗电流的影响,得到更好的成像效果。The imaging correction method and device and the intelligent terminal provided by the present invention can at least bring about the following beneficial effects: by monitoring the working temperature of the image sensor chip in the camera and combining the temperature-dark current characteristics of the chip, the background image can be adaptively adjusted , by subtracting the background image from the original image collected by the image sensor, thereby eliminating the influence of dark current and obtaining a better imaging effect.
附图说明Description of drawings
下面将以明确易懂的方式,结合附图说明优选实施方式,对一种成像校正方法及装置、智能终端的上述特性、技术特征、优点及其实现方式予以进一步说明。In the following, preferred embodiments will be described in a clear and understandable manner with reference to the accompanying drawings, and the above-mentioned characteristics, technical features, advantages and implementation methods of an imaging correction method and device, and an intelligent terminal will be further described.
图1是本发明的一种成像校正方法的一个实施例的流程图;Fig. 1 is a flowchart of an embodiment of an imaging correction method of the present invention;
图2是本发明的一种成像校正方法的另一个实施例的流程图;Fig. 2 is a flow chart of another embodiment of an imaging correction method of the present invention;
图3是本发明的一种成像校正装置的一个实施例的结构示意图;Fig. 3 is a structural schematic diagram of an embodiment of an imaging correction device of the present invention;
图4是本发明的一种成像校正装置的另一个实施例的结构示意图;Fig. 4 is a schematic structural diagram of another embodiment of an imaging correction device of the present invention;
图5是本发明的一种智能终端的一个实施例的结构示意图。Fig. 5 is a schematic structural diagram of an embodiment of an intelligent terminal according to the present invention.
附图标号说明:Explanation of reference numbers:
100.温度监测模块,200.暗电流调整模块,300.成像校正模块,400.测量模块,20.智能终端,21.存储器,22.处理器,23.计算机程序。100. Temperature monitoring module, 200. Dark current adjustment module, 300. Imaging correction module, 400. Measurement module, 20. Intelligent terminal, 21. Memory, 22. Processor, 23. Computer program.
具体实施方式Detailed ways
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation manners of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other accompanying drawings based on these drawings and obtain other implementations.
为使图面简洁,各图中只示意性地表示出了与本发明相关的部分,它们并不代表其作为产品的实际结构。另外,以使图面简洁便于理解,在有些图中具有相同结构或功能的部件,仅示意性地绘制了其中的一个,或仅标出了其中的一个。在本文中,“一个”不仅表示“仅此一个”,也可以表示“多于一个”的情形。In order to make the drawing concise, each drawing only schematically shows the parts related to the present invention, and they do not represent the actual structure of the product. In addition, to make the drawings concise and easy to understand, in some drawings, only one of the components having the same structure or function is schematically drawn or only one of them is marked. Herein, "a" not only means "only one", but also means "more than one".
在本发明的一个实施例,如图1所示,一种成像校正方法,用于智能终端,该智能终端包括一摄像头和一温度传感器,该摄像头包括图像传感器。该成像校正方法包括:In one embodiment of the present invention, as shown in FIG. 1 , an imaging correction method is used in a smart terminal, the smart terminal includes a camera and a temperature sensor, and the camera includes an image sensor. The imaging correction method includes:
步骤S200通过温度传感器监测图像传感器的当前温度。Step S200 monitors the current temperature of the image sensor through the temperature sensor.
为了监测图像传感器的工作温度可专门设置一温度传感器,但这样会增加智能终端的成本。In order to monitor the working temperature of the image sensor, a temperature sensor can be specially provided, but this will increase the cost of the smart terminal.
智能终端中通常有一温度传感器用于监测热源点的温度,热源点一般是CPU(中央处理器)芯片。图像传感器一般设置在智能终端的边缘,与该温度传感器可能有一定距离,此时可根据智能终端内部的温度分布模型和温度传感器测得的热源点的温度,得到图像传感器的当前温度。温度分布模型可根据智能终端内部的结构和历史温度分布数据得到。如此可不用增加专门监测图像传感器的温度传感器,从而不增加智能终端的成本。There is usually a temperature sensor in the smart terminal for monitoring the temperature of the heat source point, and the heat source point is generally a CPU (Central Processing Unit) chip. The image sensor is generally set on the edge of the smart terminal, and there may be a certain distance from the temperature sensor. At this time, the current temperature of the image sensor can be obtained according to the temperature distribution model inside the smart terminal and the temperature of the heat source point measured by the temperature sensor. The temperature distribution model can be obtained according to the internal structure of the smart terminal and historical temperature distribution data. In this way, it is unnecessary to add a temperature sensor specially for monitoring the image sensor, thereby not increasing the cost of the smart terminal.
步骤S300根据图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值。Step S300 obtains the adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures.
背景图像是指在没有光照环境下图像传感器处于一缺省温度下所采集的图像,该图像是由于暗电流引起。可采用图像传感器的一常规工作温度作为缺省温度。The background image refers to an image collected by the image sensor at a default temperature in an environment without light, and the image is caused by dark current. A normal operating temperature of the image sensor can be used as the default temperature.
由于暗电流的大小与温度的关系较为密切,温度越高,暗电流越大。背景图像是图像传感器在缺省温度下的暗电流体现。所以需要根据图像传感器的当前温度对背景图像的像素进行调整。Since the magnitude of the dark current is closely related to the temperature, the higher the temperature, the greater the dark current. The background image is the dark current representation of the image sensor at the default temperature. Therefore, the pixels of the background image need to be adjusted according to the current temperature of the image sensor.
在智能终端内部预先存储了若干温度点以及这些温度点的暗电流标定值。根据存储的这些数据,得到图像传感器的当前温度对应的暗电流值。暗电流标定值或暗电流值可以是图像传感器在对应温度下的平均暗电流值。Several temperature points and dark current calibration values of these temperature points are pre-stored inside the smart terminal. According to these stored data, the dark current value corresponding to the current temperature of the image sensor is obtained. The dark current calibration value or dark current value may be an average dark current value of the image sensor at a corresponding temperature.
通过存储若干温度点及其暗电流标定值,相当于在智能终端内部存储了图像传感器的温度-暗电流特性。By storing several temperature points and their dark current calibration values, it is equivalent to storing the temperature-dark current characteristics of the image sensor inside the smart terminal.
若图像传感器的当前温度等于一已存储的预设温度,则当前温度对应的暗电流值就等于该预设温度的暗电流标定值。If the current temperature of the image sensor is equal to a stored preset temperature, the dark current value corresponding to the current temperature is equal to the dark current calibration value of the preset temperature.
若图像传感器的当前温度不等于任何已存储的预设温度,则根据已存储的预设温度的暗电流标定值,应用插值算法计算出当前温度对应的暗电流值。If the current temperature of the image sensor is not equal to any stored preset temperature, an interpolation algorithm is applied to calculate the dark current value corresponding to the current temperature according to the stored dark current calibration value of the preset temperature.
比如,根据已存储的预设温度及其暗电流标定值得到一条温度-暗电流的拟合曲线,使用表达该拟合曲线的函数来计算当前温度对应的暗电流值。For example, a temperature-dark current fitting curve is obtained according to the stored preset temperature and its dark current calibration value, and the dark current value corresponding to the current temperature is calculated using a function expressing the fitting curve.
更为简单有效的方法是,获取与当前温度距离最近的前两个已存储的预设温度;根据这两个预设温度的暗电流标定值,计算出当前温度对应的暗电流值。比如,采用直线插值,根据这两个预设温度及其暗电流标定值得到一条直线,根据该直线计算出当前温度对应的暗电流值。A simpler and more effective method is to obtain the first two stored preset temperatures closest to the current temperature; and calculate the dark current value corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. For example, linear interpolation is used to obtain a straight line according to the two preset temperatures and their dark current calibration values, and the dark current value corresponding to the current temperature is calculated according to the straight line.
根据当前温度对应的暗电流值,得到背景图像的调整值。According to the dark current value corresponding to the current temperature, the adjustment value of the background image is obtained.
具体地,根据当前温度对应的暗电流值与缺省温度下的暗电流值,得到由于温度引起的暗电流偏差值,根据该暗电流偏差值对背景图像的像素进行调整。Specifically, according to the dark current value corresponding to the current temperature and the dark current value at the default temperature, the dark current deviation value caused by temperature is obtained, and the pixels of the background image are adjusted according to the dark current deviation value.
步骤S400根据背景图像和背景图像的调整值,优化图像传感器采集的原始图像,输出目标图像。Step S400 optimizes the original image collected by the image sensor according to the background image and the adjustment value of the background image, and outputs the target image.
具体地,根据背景图像的调整值,对背景图像的像素进行调整,得到更新后的背景图像。再将图像传感器采集的原始图像扣除更新后的背景图像,从而得到消除暗电流影响的目标图像。Specifically, according to the adjustment value of the background image, the pixels of the background image are adjusted to obtain an updated background image. Then subtract the updated background image from the original image collected by the image sensor, so as to obtain the target image that eliminates the influence of dark current.
本实施例,通过监测摄像头中图像传感器的温度,结合已存储的图像传感 器的温度-暗电流特性,自适应调整背景图像,再从图像传感器采集的原始图像中扣除调整后的背景图像,从而消除暗电流的影响,得到更好的成像效果。In this embodiment, by monitoring the temperature of the image sensor in the camera, combined with the stored temperature-dark current characteristics of the image sensor, the background image is adaptively adjusted, and then the adjusted background image is deducted from the original image collected by the image sensor, thereby eliminating The effect of dark current can get better imaging effect.
在本发明的另一个实施例,如图2所示,一种成像校正方法,用于智能终端,该智能终端包括一摄像头和一温度传感器,该摄像头包括图像传感器。In another embodiment of the present invention, as shown in FIG. 2 , an imaging correction method is used in a smart terminal, the smart terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
该成像校正方法包括:The imaging correction method includes:
步骤S100调整图像传感器的温度到预设温度;Step S100 adjusts the temperature of the image sensor to a preset temperature;
步骤S110测量预设温度下图像传感器一预设点的暗电流值,将其作为对应的暗电流标定值;Step S110 Measure the dark current value of a preset point of the image sensor at a preset temperature, and use it as the corresponding dark current calibration value;
步骤S120改变预设温度,重复上述过程,得到若干预设温度的暗电流标定值。Step S120 changes the preset temperature, repeats the above process, and obtains dark current calibration values at several preset temperatures.
具体地,可以通过调整图像传感器周围的环境温度来改变图像传感器的温度,使之达到预设温度。Specifically, the temperature of the image sensor can be changed by adjusting the ambient temperature around the image sensor to reach a preset temperature.
选择图像传感器中一预设点,比如,受暗电流影响最大的区域,测量其在预设温度下的暗电流值。暗电流值需要无光照环境下测量。Select a preset point in the image sensor, for example, an area most affected by dark current, and measure its dark current value at a preset temperature. The dark current value needs to be measured in an environment without light.
改变预设温度,测量新的预设温度下该预设点的暗电流值。重复上述过程,得到若干预设温度的暗电流标定值,相当于得到了图像传感器的温度-暗电流特性。Change the preset temperature, and measure the dark current value at the preset point under the new preset temperature. By repeating the above process, dark current calibration values at several preset temperatures are obtained, which is equivalent to obtaining the temperature-dark current characteristic of the image sensor.
也可以在图像传感器中选择多个预设点,比如,受暗电流影响最大的点、受暗电流影响中等的点、受暗电流影响小的点,分别测量这些预设点的暗电流值,对这些预设点的暗电流值求平均,将平均值作为预设温度的暗电流标定值。改变预设温度,重复上述过程,得到若干预设温度的暗电流标定值。It is also possible to select multiple preset points in the image sensor, for example, the point most affected by dark current, the point moderately affected by dark current, and the point slightly affected by dark current, and measure the dark current values of these preset points respectively, The dark current values at these preset points are averaged, and the average value is used as the dark current calibration value at the preset temperature. Change the preset temperature and repeat the above process to obtain dark current calibration values for several preset temperatures.
后一种方式可以更准确地反映图像传感器的温度-暗电流特性。The latter way can more accurately reflect the temperature-dark current characteristics of the image sensor.
步骤S210根据温度传感器测量的温度和智能终端内部的温度分布模型,得到图像传感器的当前温度。Step S210 obtains the current temperature of the image sensor according to the temperature measured by the temperature sensor and the temperature distribution model inside the smart terminal.
智能终端中通常有一温度传感器用于监测热源点的温度,热源点一般是 CPU(中央处理器)芯片。图像传感器一般设置在智能终端的边缘,与该温度传感器可能有一定距离,此时可根据智能终端内部的温度分布模型和温度传感器测得的热源点的温度,得到图像传感器的当前温度。温度分布模型可根据智能终端内部的结构和历史温度分布数据得到。这样可不用增加专门监测图像传感器的温度传感器,从而不增加智能终端的成本。There is usually a temperature sensor in the smart terminal to monitor the temperature of the heat source point, and the heat source point is usually a CPU (central processing unit) chip. The image sensor is generally set on the edge of the smart terminal, and there may be a certain distance from the temperature sensor. At this time, the current temperature of the image sensor can be obtained according to the temperature distribution model inside the smart terminal and the temperature of the heat source point measured by the temperature sensor. The temperature distribution model can be obtained according to the internal structure of the smart terminal and historical temperature distribution data. In this way, it is unnecessary to add a temperature sensor specially for monitoring the image sensor, thereby not increasing the cost of the smart terminal.
步骤S300根据图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值。Step S300 obtains the adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures.
背景图像是指在没有光照环境下图像传感器处于一缺省温度下所采集的图像,该图像是由于暗电流引起。可采用图像传感器的一常规工作温度作为缺省温度。The background image refers to an image collected by the image sensor at a default temperature in an environment without light, and the image is caused by dark current. A normal operating temperature of the image sensor can be used as the default temperature.
由于暗电流的大小与温度的关系较为密切,温度越高,暗电流越大。背景图像是图像传感器在缺省温度下的暗电流体现。所以需要根据图像传感器的当前温度对背景图像的像素进行调整。Since the magnitude of the dark current is closely related to the temperature, the higher the temperature, the greater the dark current. The background image is the dark current representation of the image sensor at the default temperature. Therefore, the pixels of the background image need to be adjusted according to the current temperature of the image sensor.
在智能终端内部预先存储了若干温度点以及这些温度点的暗电流标定值。根据存储的这些数据,得到图像传感器的当前温度对应的暗电流值。暗电流标定值或暗电流值可以是图像传感器在对应温度下的平均暗电流值。Several temperature points and dark current calibration values of these temperature points are pre-stored inside the smart terminal. According to these stored data, the dark current value corresponding to the current temperature of the image sensor is obtained. The dark current calibration value or dark current value may be an average dark current value of the image sensor at a corresponding temperature.
通过存储若干温度点及其暗电流标定值,相当于在智能终端内部存储了图像传感器的温度-暗电流特性。By storing several temperature points and their dark current calibration values, it is equivalent to storing the temperature-dark current characteristics of the image sensor inside the smart terminal.
若图像传感器的当前温度等于一已存储的预设温度,则当前温度对应的暗电流值就等于该预设温度的暗电流标定值。If the current temperature of the image sensor is equal to a stored preset temperature, the dark current value corresponding to the current temperature is equal to the dark current calibration value of the preset temperature.
若图像传感器的当前温度不等于任何已存储的预设温度,则根据已存储的预设温度的暗电流标定值,应用插值算法计算出当前温度对应的暗电流值。If the current temperature of the image sensor is not equal to any stored preset temperature, an interpolation algorithm is applied to calculate the dark current value corresponding to the current temperature according to the stored dark current calibration value of the preset temperature.
比如,根据已存储的预设温度及其暗电流标定值得到一条温度-暗电流的拟合曲线,使用表达该拟合曲线的函数来计算当前温度对应的暗电流值。For example, a temperature-dark current fitting curve is obtained according to the stored preset temperature and its dark current calibration value, and the dark current value corresponding to the current temperature is calculated using a function expressing the fitting curve.
更为简单有效的方法是,获取与当前温度距离最近的前两个已存储的预设 温度;根据这两个预设温度的暗电流标定值,计算出当前温度对应的暗电流值。比如,采用直线插值,根据这两个预设温度及其暗电流标定值得到一条直线,根据该直线计算出当前温度对应的暗电流值。A simpler and more effective method is to obtain the first two stored preset temperatures closest to the current temperature; calculate the dark current value corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. For example, linear interpolation is used to obtain a straight line according to the two preset temperatures and their dark current calibration values, and the dark current value corresponding to the current temperature is calculated according to the straight line.
根据当前温度对应的暗电流值,得到背景图像的调整值。According to the dark current value corresponding to the current temperature, the adjustment value of the background image is obtained.
具体地,根据当前温度对应的暗电流值与缺省温度下的暗电流值,得到由于温度引起的暗电流偏差值,根据该暗电流偏差值对背景图像的像素进行调整。Specifically, according to the dark current value corresponding to the current temperature and the dark current value at the default temperature, the dark current deviation value caused by temperature is obtained, and the pixels of the background image are adjusted according to the dark current deviation value.
步骤S400根据背景图像和背景图像的调整值,优化图像传感器采集的原始图像,输出目标图像。Step S400 optimizes the original image collected by the image sensor according to the background image and the adjustment value of the background image, and outputs the target image.
具体地,根据背景图像的调整值,对背景图像的像素进行调整,得到更新后的背景图像。再将图像传感器采集的原始图像扣除更新后的背景图像,从而得到消除暗电流影响的目标图像。Specifically, according to the adjustment value of the background image, the pixels of the background image are adjusted to obtain an updated background image. Then subtract the updated background image from the original image collected by the image sensor, so as to obtain the target image that eliminates the influence of dark current.
本实施例,通过多次测量得到图像传感器的温度-暗电流特性,并将其存储在智能终端中;智能终端监测摄像头中图像传感器的温度,结合已存储的图像传感器的温度-暗电流特性,自适应调整背景图像,再从图像传感器采集的原始图像中扣除调整后的背景图像,从而消除暗电流的影响,得到更好的成像效果。In this embodiment, the temperature-dark current characteristics of the image sensor are obtained through multiple measurements, and stored in the smart terminal; the smart terminal monitors the temperature of the image sensor in the camera, combined with the stored temperature-dark current characteristics of the image sensor, Adaptively adjust the background image, and then subtract the adjusted background image from the original image collected by the image sensor, thereby eliminating the influence of dark current and obtaining better imaging results.
在本发明的一个实施例,如图3所示,一种成像校正装置,用于智能终端,该智能终端包括一摄像头和一温度传感器,该摄像头包括图像传感器。In one embodiment of the present invention, as shown in FIG. 3 , an imaging correction device is used in a smart terminal, the smart terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
该成像校正装置包括:The image correction device includes:
温度监测模块100,用于通过温度传感器监测图像传感器的当前温度。The temperature monitoring module 100 is configured to monitor the current temperature of the image sensor through the temperature sensor.
为了监测图像传感器的工作温度可专门设置一温度传感器,但这样会增加智能终端的成本。In order to monitor the working temperature of the image sensor, a temperature sensor can be specially provided, but this will increase the cost of the smart terminal.
智能终端中通常有一温度传感器用于监测热源点的温度,热源点一般是CPU(中央处理器)芯片。图像传感器一般设置在智能终端的边缘,与该温度 传感器可能有一定距离,此时温度监测模块100可根据智能终端内部的温度分布模型和温度传感器测得的热源点的温度,得到图像传感器的当前温度。温度分布模型可根据智能终端内部的结构和历史温度分布数据得到。如此可不用增加专门监测图像传感器的温度传感器,从而不增加智能终端的成本。There is usually a temperature sensor in the smart terminal for monitoring the temperature of the heat source point, and the heat source point is generally a CPU (Central Processing Unit) chip. The image sensor is generally set on the edge of the smart terminal, and may have a certain distance from the temperature sensor. At this time, the temperature monitoring module 100 can obtain the current temperature of the image sensor according to the temperature distribution model inside the smart terminal and the temperature of the heat source point measured by the temperature sensor. temperature. The temperature distribution model can be obtained according to the internal structure of the smart terminal and historical temperature distribution data. In this way, it is unnecessary to add a temperature sensor specially for monitoring the image sensor, thereby not increasing the cost of the smart terminal.
暗电流调整模块200,用于根据图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值。The dark current adjustment module 200 is configured to obtain an adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures.
背景图像是指在没有光照环境下图像传感器处于一缺省温度下所采集的图像,该图像是由于暗电流引起。可采用图像传感器的一常规工作温度作为缺省温度。The background image refers to an image collected by the image sensor at a default temperature in an environment without light, and the image is caused by dark current. A normal operating temperature of the image sensor can be used as the default temperature.
由于暗电流的大小与温度的关系较为密切,温度越高,暗电流越大。背景图像是图像传感器在缺省温度下的暗电流体现。所以需要根据图像传感器的当前温度对背景图像的像素进行调整。Since the magnitude of the dark current is closely related to the temperature, the higher the temperature, the greater the dark current. The background image is the dark current representation of the image sensor at the default temperature. Therefore, the pixels of the background image need to be adjusted according to the current temperature of the image sensor.
在智能终端内部预先存储了若干温度点以及这些温度点的暗电流标定值。根据存储的这些数据,得到图像传感器的当前温度对应的暗电流值。暗电流标定值或暗电流值可以是图像传感器在对应温度下的平均暗电流值。Several temperature points and dark current calibration values of these temperature points are pre-stored inside the smart terminal. According to these stored data, the dark current value corresponding to the current temperature of the image sensor is obtained. The dark current calibration value or dark current value may be an average dark current value of the image sensor at a corresponding temperature.
通过存储若干温度点及其暗电流标定值,相当于在智能终端内部存储了图像传感器的温度-暗电流特性。By storing several temperature points and their dark current calibration values, it is equivalent to storing the temperature-dark current characteristics of the image sensor inside the smart terminal.
若图像传感器的当前温度等于一已存储的预设温度,则当前温度对应的暗电流值就等于该预设温度的暗电流标定值。If the current temperature of the image sensor is equal to a stored preset temperature, the dark current value corresponding to the current temperature is equal to the dark current calibration value of the preset temperature.
若图像传感器的当前温度不等于任何已存储的预设温度,则根据已存储的预设温度的暗电流标定值,应用插值算法计算出当前温度对应的暗电流值。If the current temperature of the image sensor is not equal to any stored preset temperature, an interpolation algorithm is applied to calculate the dark current value corresponding to the current temperature according to the stored dark current calibration value of the preset temperature.
比如,根据已存储的预设温度及其暗电流标定值得到一条温度-暗电流的拟合曲线,使用表达该拟合曲线的函数来计算当前温度对应的暗电流值。For example, a temperature-dark current fitting curve is obtained according to the stored preset temperature and its dark current calibration value, and the dark current value corresponding to the current temperature is calculated using a function expressing the fitting curve.
更为简单有效的方法是,获取与当前温度距离最近的前两个已存储的预设温度;根据这两个预设温度的暗电流标定值,计算出当前温度对应的暗电流值。 比如,采用直线插值,根据这两个预设温度及其暗电流标定值得到一条直线,根据该直线计算出当前温度对应的暗电流值。A simpler and more effective method is to obtain the first two stored preset temperatures closest to the current temperature; and calculate the dark current value corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. For example, linear interpolation is used to obtain a straight line according to the two preset temperatures and their dark current calibration values, and the dark current value corresponding to the current temperature is calculated according to the straight line.
根据当前温度对应的暗电流值,得到背景图像的调整值。According to the dark current value corresponding to the current temperature, the adjustment value of the background image is obtained.
具体地,根据当前温度对应的暗电流值与缺省温度下的暗电流值,得到由于温度引起的暗电流偏差值,根据该暗电流偏差值对背景图像的像素进行调整。Specifically, according to the dark current value corresponding to the current temperature and the dark current value at the default temperature, the dark current deviation value caused by temperature is obtained, and the pixels of the background image are adjusted according to the dark current deviation value.
成像校正模块300,用于根据背景图像和背景图像的调整值,优化图像传感器采集的原始图像,输出目标图像。The imaging correction module 300 is configured to optimize the original image collected by the image sensor and output the target image according to the background image and the adjustment value of the background image.
具体地,根据背景图像的调整值,对背景图像的像素进行调整,得到更新后的背景图像。再将图像传感器采集的原始图像扣除更新后的背景图像,从而得到消除暗电流影响的目标图像。Specifically, according to the adjustment value of the background image, the pixels of the background image are adjusted to obtain an updated background image. Then subtract the updated background image from the original image collected by the image sensor, so as to obtain the target image that eliminates the influence of dark current.
本实施例,通过监测摄像头中图像传感器的温度,结合已存储的图像传感器的温度-暗电流特性,自适应调整背景图像,再从图像传感器采集的原始图像中扣除调整后的背景图像,从而消除暗电流的影响,得到更好的成像效果。In this embodiment, by monitoring the temperature of the image sensor in the camera, combined with the stored temperature-dark current characteristics of the image sensor, the background image is adaptively adjusted, and then the adjusted background image is deducted from the original image collected by the image sensor, thereby eliminating The effect of dark current can get better imaging effect.
在本发明的另一个实施例,如图4所示,一种成像校正装置,用于智能终端,该智能终端包括一摄像头和一温度传感器,该摄像头包括图像传感器。In another embodiment of the present invention, as shown in FIG. 4 , an imaging correction device is used in a smart terminal, the smart terminal includes a camera and a temperature sensor, and the camera includes an image sensor.
该成像校正装置包括:The image correction device includes:
测量模块400,用于调整图像传感器的温度到预设温度;测量预设温度下图像传感器一预设点的暗电流值,将其作为对应的暗电流标定值;改变预设温度,重复上述过程,得到若干预设温度的暗电流标定值。The measurement module 400 is used to adjust the temperature of the image sensor to a preset temperature; measure the dark current value of a preset point of the image sensor at the preset temperature, and use it as the corresponding dark current calibration value; change the preset temperature, and repeat the above process , to get the dark current calibration value of several preset temperatures.
具体地,可以通过调整图像传感器周围的环境温度来改变图像传感器的温度,使之达到预设温度。Specifically, the temperature of the image sensor can be changed by adjusting the ambient temperature around the image sensor to reach a preset temperature.
选择图像传感器中一预设点,比如,受暗电流影响最大的区域,测量其在预设温度下的暗电流值。暗电流值需要无光照环境下测量。Select a preset point in the image sensor, for example, an area most affected by dark current, and measure its dark current value at a preset temperature. The dark current value needs to be measured in an environment without light.
改变预设温度,测量新的预设温度下该预设点的暗电流值。重复上述过程, 得到若干预设温度的暗电流标定值,相当于得到了图像传感器的温度-暗电流特性。Change the preset temperature, and measure the dark current value at the preset point under the new preset temperature. By repeating the above process, dark current calibration values at several preset temperatures are obtained, which is equivalent to obtaining the temperature-dark current characteristic of the image sensor.
也可以在图像传感器中选择多个预设点,比如,受暗电流影响最大的点、受暗电流影响中等的点、受暗电流影响小的点,分别测量这些预设点的暗电流值,对这些预设点的暗电流值求平均,将平均值作为预设温度的暗电流标定值。改变预设温度,重复上述过程,得到若干预设温度的暗电流标定值。It is also possible to select multiple preset points in the image sensor, for example, the point most affected by dark current, the point moderately affected by dark current, and the point slightly affected by dark current, and measure the dark current values of these preset points respectively, The dark current values at these preset points are averaged, and the average value is used as the dark current calibration value at the preset temperature. Change the preset temperature and repeat the above process to obtain dark current calibration values for several preset temperatures.
后一种方式可以更准确地反映图像传感器的温度-暗电流特性。The latter way can more accurately reflect the temperature-dark current characteristics of the image sensor.
温度监测模块100,用于根据温度传感器测量的温度和智能终端内部的温度分布模型,得到图像传感器的当前温度。The temperature monitoring module 100 is configured to obtain the current temperature of the image sensor according to the temperature measured by the temperature sensor and the temperature distribution model inside the smart terminal.
智能终端中通常有一温度传感器用于监测热源点的温度,热源点一般是CPU(中央处理器)芯片。图像传感器一般设置在智能终端的边缘,与该温度传感器可能有一定距离,此时可根据智能终端内部的温度分布模型和温度传感器测得的热源点的温度,得到图像传感器的当前温度。温度分布模型可根据智能终端内部的结构和历史温度分布数据得到。这样可不用增加专门监测图像传感器的温度传感器,从而不增加智能终端的成本。There is usually a temperature sensor in the smart terminal for monitoring the temperature of the heat source point, and the heat source point is generally a CPU (Central Processing Unit) chip. The image sensor is generally set on the edge of the smart terminal, and there may be a certain distance from the temperature sensor. At this time, the current temperature of the image sensor can be obtained according to the temperature distribution model inside the smart terminal and the temperature of the heat source point measured by the temperature sensor. The temperature distribution model can be obtained according to the internal structure of the smart terminal and historical temperature distribution data. In this way, it is unnecessary to add a temperature sensor specially for monitoring the image sensor, thereby not increasing the cost of the smart terminal.
暗电流调整模块200,用于根据图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值。The dark current adjustment module 200 is configured to obtain an adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures.
背景图像是指在没有光照环境下图像传感器处于一缺省温度下所采集的图像,该图像是由于暗电流引起。可采用图像传感器的一常规工作温度作为缺省温度。The background image refers to an image collected by the image sensor at a default temperature in an environment without light, and the image is caused by dark current. A normal operating temperature of the image sensor can be used as the default temperature.
由于暗电流的大小与温度的关系较为密切,温度越高,暗电流越大。背景图像是图像传感器在缺省温度下的暗电流体现。所以需要根据图像传感器的当前温度对背景图像的像素进行调整。Since the magnitude of the dark current is closely related to the temperature, the higher the temperature, the greater the dark current. The background image is the dark current representation of the image sensor at the default temperature. Therefore, the pixels of the background image need to be adjusted according to the current temperature of the image sensor.
在智能终端内部预先存储了若干温度点以及这些温度点的暗电流标定值。根据存储的这些数据,得到图像传感器的当前温度对应的暗电流值。通过存储 若干温度点及其暗电流标定值,相当于在智能终端内部存储了图像传感器的温度-暗电流特性。Several temperature points and dark current calibration values of these temperature points are pre-stored inside the smart terminal. According to these stored data, the dark current value corresponding to the current temperature of the image sensor is obtained. By storing several temperature points and their dark current calibration values, it is equivalent to storing the temperature-dark current characteristics of the image sensor inside the smart terminal.
若图像传感器的当前温度等于一已存储的预设温度,则当前温度对应的暗电流值就等于该预设温度的暗电流标定值。If the current temperature of the image sensor is equal to a stored preset temperature, the dark current value corresponding to the current temperature is equal to the dark current calibration value of the preset temperature.
若图像传感器的当前温度不等于任何已存储的预设温度,则根据已存储的预设温度的暗电流标定值,应用插值算法计算出当前温度对应的暗电流值。If the current temperature of the image sensor is not equal to any stored preset temperature, an interpolation algorithm is applied to calculate the dark current value corresponding to the current temperature according to the stored dark current calibration value of the preset temperature.
比如,根据已存储的预设温度及其暗电流标定值得到一条温度-暗电流的拟合曲线,使用表达该拟合曲线的函数来计算当前温度对应的暗电流值。For example, a temperature-dark current fitting curve is obtained according to the stored preset temperature and its dark current calibration value, and the dark current value corresponding to the current temperature is calculated using a function expressing the fitting curve.
更为简单有效的方法是,获取与当前温度距离最近的前两个已存储的预设温度;根据这两个预设温度的暗电流标定值,计算出当前温度对应的暗电流值。比如,采用直线插值,根据这两个预设温度及其暗电流标定值得到一条直线,根据该直线计算出当前温度对应的暗电流值。A simpler and more effective method is to obtain the first two stored preset temperatures closest to the current temperature; and calculate the dark current value corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. For example, linear interpolation is used to obtain a straight line according to the two preset temperatures and their dark current calibration values, and the dark current value corresponding to the current temperature is calculated according to the straight line.
根据当前温度对应的暗电流值,得到背景图像的调整值。According to the dark current value corresponding to the current temperature, the adjustment value of the background image is obtained.
成像校正模块300,用于根据背景图像和背景图像的调整值,优化图像传感器采集的原始图像,输出目标图像。The imaging correction module 300 is configured to optimize the original image collected by the image sensor and output the target image according to the background image and the adjustment value of the background image.
具体地,根据背景图像的调整值,对背景图像的像素进行调整,得到更新后的背景图像。再将图像传感器采集的原始图像扣除更新后的背景图像,从而得到消除暗电流影响的目标图像。Specifically, according to the adjustment value of the background image, the pixels of the background image are adjusted to obtain an updated background image. Then subtract the updated background image from the original image collected by the image sensor, so as to obtain the target image that eliminates the influence of dark current.
本实施例,通过多次测量得到图像传感器的温度-暗电流特性,并将其存储在智能终端中;智能终端监测摄像头中图像传感器的温度,结合已存储的图像传感器的温度-暗电流特性,自适应调整背景图像,再从图像传感器采集的原始图像中扣除调整后的背景图像,从而消除暗电流的影响,得到更好的成像效果。In this embodiment, the temperature-dark current characteristics of the image sensor are obtained through multiple measurements, and stored in the smart terminal; the smart terminal monitors the temperature of the image sensor in the camera, combined with the stored temperature-dark current characteristics of the image sensor, Adaptively adjust the background image, and then subtract the adjusted background image from the original image collected by the image sensor, thereby eliminating the influence of dark current and obtaining better imaging results.
需要说明的是,本发明提供的成像校正装置的实施例与前述提供的成像校正方法的实施例均基于同一发明构思,能够取得相同的技术效果。因而,成像 校正装置的实施例的其它具体内容可以参照前述成像校正方法的实施例内容的记载。It should be noted that the embodiment of the imaging correction device provided by the present invention is based on the same inventive concept as the embodiment of the imaging correction method provided above, and can achieve the same technical effect. Therefore, other specific content of the embodiment of the imaging correction device can refer to the description of the content of the embodiment of the aforementioned imaging correction method.
在本发明的一个实施例,如图5所示,一种智能终端20,包括存储器21、处理器22。存储器21用于存储计算机程序23。处理器22运行计算机程序23时实现如前述记载的成像校正方法。In an embodiment of the present invention, as shown in FIG. 5 , an intelligent terminal 20 includes a memory 21 and a processor 22 . The memory 21 is used to store a computer program 23 . When the processor 22 runs the computer program 23, the imaging correction method as described above is implemented.
智能终端20可以为智能手表、智能手机等。The smart terminal 20 can be a smart watch, a smart phone, and the like.
作为一个示例,处理器21执行计算机程序时实现根据前述记载的步骤S200至S400。另外地,处理器21执行计算机程序时实现前述记载的成像校正装置中的各模块的功能。作为又一个示例,所述处理器执行计算机程序时实现温度监测模块100、暗电流调整模块200、成像校正模块300的功能。As an example, when the processor 21 executes the computer program, the steps S200 to S400 according to the foregoing description are realized. In addition, when the processor 21 executes the computer program, it realizes the functions of the various modules in the aforementioned imaging correction device. As yet another example, the processor implements the functions of the temperature monitoring module 100 , the dark current adjustment module 200 , and the imaging correction module 300 when executing the computer program.
可选地,根据完成本发明的具体需要,所述计算机程序可以被分割为一个或多个模块/单元。每个模块/单元可以为能够完成特定功能的一系列计算机程序指令段。该计算机程序指令段用于描述所述计算机程序在成像校正装置中的执行过程。Optionally, the computer program can be divided into one or more modules/units according to the specific requirements for implementing the present invention. Each module/unit can be a series of computer program instruction segments capable of performing a specific function. The computer program instruction segment is used to describe the execution process of the computer program in the imaging correction device.
作为示例,所述计算机程序可以被分割为虚拟装置中的各个模块/单元,譬如温度监测模块、暗电流调整模块、成像校正模块。As an example, the computer program may be divided into various modules/units in the virtual device, such as a temperature monitoring module, a dark current adjustment module, and an imaging correction module.
所述处理器用于通过执行所述计算机程序从而实现成像校正。根据需要,所述处理器可以是中央处理单元(CPU)、图形处理单元(GPU)、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)、通用处理器或其他逻辑器件等。The processor is configured to realize imaging correction by executing the computer program. As required, the processor can be a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a general purpose processor or other logic devices, etc.
所述存储器可以为任意能够实现数据、程序存储的内部存储单元和/或外部存储设备。譬如,所述存储器可以为插接式硬盘、智能存储卡(SMC)、安全数字(SD)卡或闪存卡等。所述存储器用于存储计算机程序及数据。The memory may be any internal storage unit and/or external storage device capable of storing data and programs. For example, the memory may be a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, or a flash memory card. The memory is used to store computer programs and data.
根据需要,所述智能终端20还可以包括输入输出设备、显示设备、网络接入设备及总线等。According to needs, the smart terminal 20 may also include input and output devices, display devices, network access devices, buses, and the like.
所述智能终端20还可以是单片机,或集成了中央处理单元(CPU)及图形处理单元(GPU)的计算设备。The smart terminal 20 can also be a single-chip microcomputer, or a computing device integrating a central processing unit (CPU) and a graphics processing unit (GPU).
本领域技术人员可以理解的是,上述用于实现相应功能的单元、模块的划分是出于便利于说明、叙述的目的,根据应用需求,将上述单元、模块做进一步的划分或者组合,即将装置/设备的内部结构重新进行划分、组合,以实现的上述记载的功能。Those skilled in the art can understand that the division of the above-mentioned units and modules for realizing corresponding functions is for the purpose of convenience of description and description, and according to application requirements, the above-mentioned units and modules are further divided or combined, that is, the device / The internal structure of the equipment is re-divided and combined to realize the above-mentioned functions.
上述实施例的各个单元、模块可以分别采用单独的物理单元,也可以将两个或两个以上的单元、模块集成在一个物理单元。上述实施例的各个单元、模块可以采用硬件和/或软件功能单元的实现对应的功能。上述实施例的多个单元、组件、模块之间可以的直接耦合、间接耦合或通讯连接可以通过总线或者接口实现;多个单元或装置的之间的耦合、连接,可以是电性、机械或类似的方式。相应地,上述实施例的各个单元、模块的具体名称也只是为了便于叙述及区分,并不用限制本申请的保护范围。The units and modules in the above embodiments may be separate physical units, or two or more units and modules may be integrated into one physical unit. Each unit and module of the above-mentioned embodiments may use hardware and/or software functional units to implement corresponding functions. The direct coupling, indirect coupling or communication connection between multiple units, components and modules in the above embodiments can be realized through buses or interfaces; the coupling and connection between multiple units or devices can be electrical, mechanical or similar way. Correspondingly, the specific names of the various units and modules in the above embodiments are only for convenience of description and distinction, and do not limit the protection scope of the present application.
应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。It should be noted that the above embodiments can be freely combined as required. The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (10)

  1. 一种成像校正方法,用于智能终端,所述智能终端包括一摄像头和一温度传感器,所述摄像头包括图像传感器,其特征在于,所述成像校正方法包括:An imaging correction method for an intelligent terminal, the intelligent terminal comprising a camera and a temperature sensor, the camera comprising an image sensor, characterized in that the imaging correction method comprises:
    通过所述温度传感器监测所述图像传感器的当前温度;monitoring the current temperature of the image sensor through the temperature sensor;
    根据所述图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值;Obtain an adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures;
    根据所述背景图像和所述背景图像的调整值,优化所述图像传感器采集的原始图像,输出目标图像。Optimizing the original image collected by the image sensor according to the background image and the adjustment value of the background image, and outputting a target image.
  2. 根据权利要求1所述的成像校正方法,其特征在于,在所述的得到背景图像的调整值之前还包括:The imaging correction method according to claim 1, further comprising: before said obtaining the adjustment value of the background image:
    调整所述图像传感器的温度到预设温度;adjusting the temperature of the image sensor to a preset temperature;
    测量所述预设温度下所述图像传感器一预设点的暗电流值,将其作为所述预设温度的暗电流标定值;measuring a dark current value at a preset point of the image sensor at the preset temperature, and using it as a dark current calibration value at the preset temperature;
    改变所述预设温度,重复上述过程,得到若干预设温度的暗电流标定值。The preset temperature is changed, and the above process is repeated to obtain dark current calibration values at several preset temperatures.
  3. 根据权利要求1所述的成像校正方法,其特征在于,根据所述图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值,包括:The imaging correction method according to claim 1, wherein the adjustment value of the background image is obtained according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures, including:
    若所述图像传感器的当前温度不等于已存储的预设温度,则根据已存储的预设温度的暗电流标定值,应用插值算法计算出所述当前温度对应的暗电流值;If the current temperature of the image sensor is not equal to the stored preset temperature, an interpolation algorithm is applied to calculate the dark current value corresponding to the current temperature according to the stored dark current calibration value of the preset temperature;
    根据所述当前温度对应的暗电流值,得到背景图像的调整值。The adjustment value of the background image is obtained according to the dark current value corresponding to the current temperature.
  4. 根据权利要求3所述的成像校正方法,其特征在于,所述的根据已存储的预设温度的暗电流标定值,应用插值算法计算出所述当前温度对应的暗电流值,包括:The imaging correction method according to claim 3, wherein the dark current value corresponding to the current temperature is calculated by applying an interpolation algorithm according to the stored dark current calibration value of the preset temperature, including:
    获取与所述当前温度距离最近的前两个已存储的预设温度;Obtaining the first two stored preset temperatures closest to the current temperature;
    根据这两个预设温度的暗电流标定值,计算出所述当前温度对应的暗电流值。According to the dark current calibration values of the two preset temperatures, the dark current value corresponding to the current temperature is calculated.
  5. 根据权利要求1所述的成像校正方法,其特征在于,所述的通过所述温度传感器监测所述图像传感器的当前温度,包括:The imaging correction method according to claim 1, wherein the monitoring the current temperature of the image sensor through the temperature sensor comprises:
    根据所述温度传感器测量的温度和所述智能终端内部的温度分布模型,得到所述图像传感器的当前温度。The current temperature of the image sensor is obtained according to the temperature measured by the temperature sensor and the temperature distribution model inside the smart terminal.
  6. 一种成像校正装置,用于智能终端,所述智能终端包括一摄像头和一温度传感器,所述摄像头包括图像传感器,其特征在于,所述成像校正装置包括:An imaging correction device for an intelligent terminal, the intelligent terminal comprising a camera and a temperature sensor, the camera comprising an image sensor, characterized in that the imaging correction device comprises:
    温度监测模块,用于通过所述温度传感器监测所述图像传感器的当前温度;a temperature monitoring module, configured to monitor the current temperature of the image sensor through the temperature sensor;
    暗电流调整模块,用于根据所述图像传感器的当前温度和已存储的若干预设温度的暗电流标定值,得到背景图像的调整值;A dark current adjustment module, configured to obtain an adjustment value of the background image according to the current temperature of the image sensor and stored dark current calibration values of several preset temperatures;
    成像校正模块,用于根据所述背景图像和所述背景图像的调整值,优化所述图像传感器采集的原始图像,输出目标图像。The imaging correction module is configured to optimize the original image collected by the image sensor according to the background image and the adjustment value of the background image, and output a target image.
  7. 根据权利要求6所述的成像校正装置,其特征在于,还包括:The imaging correction device according to claim 6, further comprising:
    测量模块,用于调整所述图像传感器的温度到预设温度;测量所述预设温度下所述图像传感器一预设点的暗电流值,将其作为所述预设温度的暗电 流标定值;改变所述预设温度,重复上述过程,得到若干预设温度的暗电流标定值。A measurement module, configured to adjust the temperature of the image sensor to a preset temperature; measure a dark current value at a preset point of the image sensor at the preset temperature, and use it as a dark current calibration value at the preset temperature ; Change the preset temperature, repeat the above process, and obtain dark current calibration values of several preset temperatures.
  8. 根据权利要求6所述的成像校正装置,其特征在于:The imaging correction device according to claim 6, characterized in that:
    所述暗电流调整模块,还用于若所述图像传感器的当前温度不等于已存储的预设温度,则根据已存储的预设温度的暗电流标定值,应用插值算法计算出所述当前温度对应的暗电流值;根据所述当前温度对应的暗电流值,得到背景图像的调整值。The dark current adjustment module is further configured to apply an interpolation algorithm to calculate the current temperature according to the stored dark current calibration value of the preset temperature if the current temperature of the image sensor is not equal to the stored preset temperature The corresponding dark current value; according to the dark current value corresponding to the current temperature, an adjustment value of the background image is obtained.
  9. 根据权利要求8所述的成像校正装置,其特征在于:The imaging correction device according to claim 8, characterized in that:
    所述暗电流调整模块,还用于获取与所述当前温度距离最近的前两个已存储的预设温度;根据这两个预设温度的暗电流标定值,计算出所述当前温度对应的暗电流值。The dark current adjustment module is also used to obtain the first two stored preset temperatures closest to the current temperature; and calculate the current temperature corresponding to the current temperature according to the dark current calibration values of the two preset temperatures. dark current value.
  10. 一种智能终端,其特征在于,包括:An intelligent terminal is characterized in that it comprises:
    存储器,用于存储计算机程序;memory for storing computer programs;
    处理器,用于运行所述计算机程序时实现根据权利要求1至5中任一项所述的成像校正方法。A processor configured to implement the imaging correction method according to any one of claims 1 to 5 when running the computer program.
PCT/CN2021/103646 2021-05-28 2021-06-30 Imaging correction method and apparatus, and intelligent terminal WO2022246950A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110591255.XA CN113301222B (en) 2021-05-28 2021-05-28 Imaging correction method and device and intelligent terminal
CN202110591255.X 2021-05-28

Publications (1)

Publication Number Publication Date
WO2022246950A1 true WO2022246950A1 (en) 2022-12-01

Family

ID=77326066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/103646 WO2022246950A1 (en) 2021-05-28 2021-06-30 Imaging correction method and apparatus, and intelligent terminal

Country Status (2)

Country Link
CN (1) CN113301222B (en)
WO (1) WO2022246950A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000184292A (en) * 1998-12-17 2000-06-30 Olympus Optical Co Ltd Digital camera and camera system
US20050083419A1 (en) * 2003-10-21 2005-04-21 Konica Minolta Camera, Inc. Image sensing apparatus and image sensor for use in image sensing apparatus
CN101350886A (en) * 2007-07-17 2009-01-21 索尼株式会社 Image pickup apparatus, image processing method, and computer program
CN101448078A (en) * 2008-12-15 2009-06-03 昆山锐芯微电子有限公司 Image sensor and image signal processing method
JP2016152445A (en) * 2015-02-16 2016-08-22 株式会社日立国際電気 Imaging apparatus
CN107454323A (en) * 2017-08-02 2017-12-08 上海青橙实业有限公司 Image generating method and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130271628A1 (en) * 2012-04-17 2013-10-17 Skybox Imaging, Inc. Sensor dark pixel offset estimation
CN107465874B (en) * 2017-09-07 2019-05-17 维沃移动通信有限公司 A kind of dark current processing method and mobile terminal
US10750108B2 (en) * 2018-09-25 2020-08-18 Omnivision Technologies, Inc. Image sensor with correction of non-uniform dark current
CN110855915B (en) * 2019-11-29 2020-12-08 中国科学院长春光学精密机械与物理研究所 CCD camera response non-uniformity correction method and device for realizing dark current compensation
CN111432093B (en) * 2020-03-19 2021-05-25 成都微光集电科技有限公司 Dark current correction method of CMOS image sensor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000184292A (en) * 1998-12-17 2000-06-30 Olympus Optical Co Ltd Digital camera and camera system
US20050083419A1 (en) * 2003-10-21 2005-04-21 Konica Minolta Camera, Inc. Image sensing apparatus and image sensor for use in image sensing apparatus
CN101350886A (en) * 2007-07-17 2009-01-21 索尼株式会社 Image pickup apparatus, image processing method, and computer program
CN101448078A (en) * 2008-12-15 2009-06-03 昆山锐芯微电子有限公司 Image sensor and image signal processing method
JP2016152445A (en) * 2015-02-16 2016-08-22 株式会社日立国際電気 Imaging apparatus
CN107454323A (en) * 2017-08-02 2017-12-08 上海青橙实业有限公司 Image generating method and mobile terminal

Also Published As

Publication number Publication date
CN113301222A (en) 2021-08-24
CN113301222B (en) 2022-09-30

Similar Documents

Publication Publication Date Title
AU2019326496B2 (en) Method for capturing images at night, apparatus, electronic device, and storage medium
US11765466B2 (en) Imaging control method and apparatus, electronic device, and computer readable storage medium
CN106504278B (en) High dynamic range tone mapping
WO2020034737A1 (en) Imaging control method, apparatus, electronic device, and computer-readable storage medium
CN109256096B (en) Display brightness compensation method, device and equipment
WO2020034735A1 (en) Imaging control method and electronic device
TWI433533B (en) Image capturing device and image synthesis method thereof
US9532041B2 (en) Method and system for automatic focus with self-calibration
US20160352996A1 (en) Terminal, image processing method, and image acquisition method
EP3308534A1 (en) Color filter array scaler
CN110784660B (en) Method, system, equipment and medium for controlling camera brightness
CN112202986B (en) Image processing method, image processing apparatus, readable medium and electronic device thereof
WO2020034702A1 (en) Control method, device, electronic equipment and computer readable storage medium
TWI383673B (en) Method and device for adjusting weighting values in light metering
WO2022087973A1 (en) Image processing method and apparatus, computer-readable medium, and electronic device
US20130070128A1 (en) Image processing device that performs image processing
US20150365612A1 (en) Image capture apparatus and image compensating method thereof
US20200137334A1 (en) Image noise calibration method and apparatus, image noise reduction method and apparatus, and image processing apparatus
WO2020034739A1 (en) Control method and apparatus, electronic device, and computer readable storage medium
US20220174222A1 (en) Method for marking focused pixel, electronic device, storage medium, and chip
CN110445986A (en) Image processing method, device, storage medium and electronic equipment
WO2023005870A1 (en) Image processing method and related device
GB2543456A (en) Display device, display correction device, display correction system, and display correction method
WO2022246950A1 (en) Imaging correction method and apparatus, and intelligent terminal
US10413156B2 (en) Endoscope device, endoscopic system, method, and computer-readable storage device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21942519

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE