Image acquisition parameter adjusting method and device and computer readable storage medium

文档序号:1008060 发布日期:2020-10-23 浏览:10次 中文

阅读说明:本技术 一种图像采集参数调整方法、装置及计算机可读存储介质 (Image acquisition parameter adjusting method and device and computer readable storage medium ) 是由 冯继雄 田志民 王长海 李保梁 陈子轩 宋子明 陈世林 于 2020-07-15 设计创作,主要内容包括:一种图像采集参数调整方法,包括以下步骤:1)在无光环境中进行图像采集,对创建的采图模型进行训练;2)在有光环境中进行图像采集,计算出新的图像采集参数;3)使用新的图像采集参数进行图像采集;4)重复步骤2)-3),在不同环境中进行图像采集。本发明还提供一种图像采集参数调整装置,在每次采集图像时,通过参数自动调整得到最优的图像采集参数进行图像采集;采集的图像能够充分利用模数转换器的有效比特,提高图像质量。(An image acquisition parameter adjusting method comprises the following steps: 1) acquiring images in a dark environment, and training the created image acquisition model; 2) carrying out image acquisition in a light environment, and calculating new image acquisition parameters; 3) acquiring images by using the new image acquisition parameters; 4) and repeating the steps 2) -3), and carrying out image acquisition in different environments. The invention also provides an image acquisition parameter adjusting device, which is used for acquiring images by automatically adjusting parameters to obtain optimal image acquisition parameters when the images are acquired each time; the collected image can fully utilize the effective bit of the analog-to-digital converter, and the image quality is improved.)

1. An image acquisition parameter adjusting method comprises the following steps:

1) acquiring images in a dark environment, and training the created image acquisition model;

2) carrying out image acquisition in a light environment, and calculating new image acquisition parameters;

3) acquiring images by using the new image acquisition parameters;

4) and repeating the steps 2) -3), and carrying out image acquisition in different environments.

2. The image acquisition parameter adjustment method according to claim 1, wherein the step 1) further comprises the steps of:

under the set gain value, the light source is turned off and the lightless images with different compensation values are collected;

fitting the model parameters of the image-taking model;

wherein the gain value is a magnification factor; the compensation value is a voltage compensation value, a current compensation value or a charge compensation value.

3. The method of adjusting image acquisition parameters according to claim 2, wherein the step of fitting the model parameters of the atlas model further comprises obtaining the model parameters by a least squares method using the atlas model.

4. The image acquisition parameter adjustment method according to claim 1, wherein the step 2) further comprises the steps of:

under the set gain value, the light source is started and collects a light image with a compensation value of zero;

acquiring the average value of the gray scale of the whole image, the maximum gray scale value and the minimum gray scale value of the luminous image;

acquiring a new gain value and a new compensation value;

wherein the gain value is a magnification factor; the compensation value is a voltage compensation value, a current compensation value or a charge compensation value.

5. The method according to claim 4, wherein the obtaining of the new gain value is performed according to a maximum gray-level value and a minimum gray-level value of the bright image.

6. The method according to claim 5, wherein the obtaining of the new compensation value is based on a new gain value, a gain value set for collecting the non-light image, a full-image gray-scale average value of the light image, and a model parameter.

7. The method according to claim 1, wherein the step 3) further comprises acquiring an image by using the updated gain value and the new compensation value;

wherein the gain value is a magnification factor; the compensation value is a voltage compensation value, a current compensation value or a charge compensation value.

8. An image acquisition parameter adjusting device comprises a controller module, a compensation module, an adder circuit and a gain amplifier, wherein,

the controller module is used for training the constructed image acquisition model; acquiring new image acquisition parameters, controlling the compensation module and the gain amplifier, and acquiring an image under the optimal parameters; the image acquisition parameters comprise a compensation value and a gain value;

the compensation module converts the compensation value sent by the controller module into a compensation signal and sends the compensation signal to the adder circuit;

the adder circuit adds the image signal output by the image sensor and the compensation signal;

the gain amplifier is used for amplifying the output signal from the adder circuit according to the gain value sent by the controller module;

the compensation value is a compensation signal output by the compensation module and comprises a voltage compensation value, a current compensation value or a charge compensation value;

the gain value is the amplification factor of the gain amplifier.

9. The image acquisition parameter adjustment device of claim 8, wherein the controller module fits model parameters of the scout model to obtain the model parameters of the scout model.

10. The apparatus of claim 8, wherein the controller module obtains a new gain value and a new compensation value according to the global gray average, the maximum gray value and the minimum gray value of the bright image, and sends the new gain value and the new compensation value to the gain amplifier and the compensation module, respectively.

11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the image acquisition parameter adjustment method according to any one of claims 1 to 7.

12. An image acquisition parameter adjustment device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the computer program to perform the steps of the image acquisition parameter adjustment method according to any of claims 1-7.

Technical Field

The invention relates to the technical field of image processing, in particular to an image acquisition parameter adjusting method.

Background

The digital image acquisition technology is a process of putting optical signals into a memory through optical conversion (lens imaging), photoelectric conversion (CMOS/CCD sensor), circuit processing (amplification and filtering) and analog-to-digital conversion. High quality digital images tend to have large dynamic range and sharp details, but are limited in digital image acquisition by the bit limitations of the digital equipment (analog to digital converters and memory).

Fig. 5 is a schematic structural diagram of an existing image acquisition circuit, and as shown in fig. 5, the existing image acquisition circuit includes a compensation module, a gain module, and an analog-to-digital converter, and performs image acquisition on an object to be acquired by presetting a compensation value (including a voltage compensation value, a current compensation value, or a charge compensation value) of the compensation module and an amplification factor of the gain module. Fig. 6 is a schematic diagram of an image acquired by using a conventional image acquisition circuit, and as shown in fig. 6, when the illumination of an object to be acquired changes, the conventional image acquisition circuit acquires an image (a compensation value and a gain value) by using preset image acquisition parameters, which may cause a defect of overexposure or underexposure, and how to avoid the above-mentioned defect in image acquisition becomes a problem to be solved urgently.

Disclosure of Invention

In order to solve the defects in the prior art, the invention provides an image acquisition parameter adjusting method, an image acquisition parameter adjusting device and a computer readable storage medium.

In order to achieve the above object, the present invention provides an image acquisition parameter adjusting method, including the following steps:

1) acquiring images in a dark environment, and training the created image acquisition model;

2) carrying out image acquisition in a light environment, and calculating new image acquisition parameters;

3) acquiring images by using the new image acquisition parameters;

4) and repeating the steps 2) -3), and carrying out image acquisition in different environments.

Further, the step 1) further comprises the following steps:

under the set gain value, the light source is turned off and the lightless images with different compensation values are collected;

fitting the model parameters of the image-taking model;

wherein the gain value is a magnification factor; the compensation value is a voltage compensation value, a current compensation value or a charge compensation value.

Further, the step of fitting the model parameters of the sampling model further includes obtaining the model parameters by a least square method using the sampling model.

Further, the step 2) further comprises the following steps:

under the set gain value, the light source is started and collects a light image with a compensation value of zero;

acquiring the average value of the gray scale of the whole image, the maximum gray scale value and the minimum gray scale value of the luminous image;

acquiring a new gain value and a new compensation value;

wherein the gain value is a magnification factor; the compensation value is a voltage compensation value, a current compensation value or a charge compensation value.

Further, the obtaining of the new gain value is to obtain a new gain value according to the maximum gray value and the minimum gray value of the light image.

Further, the new compensation value is obtained according to the new gain value, the gain value set by collecting the non-light image, the full-image gray level average value of the light image, and the model parameter.

Further, the step 3) further comprises acquiring an image by using the updated gain value and the new compensation value;

wherein the gain value is a magnification factor; the compensation value is a voltage compensation value, a current compensation value or a charge compensation value.

In order to achieve the above object, the present invention further provides an image capturing parameter adjusting apparatus, comprising a controller module, a compensation module, an adder circuit, and a gain amplifier, wherein,

the controller module is used for training the constructed image acquisition model; acquiring new image acquisition parameters, controlling the compensation module and the gain amplifier, and acquiring an image under the optimal parameters; the image acquisition parameters comprise a compensation value and a gain value;

the compensation module converts the compensation value sent by the controller module into a compensation signal and sends the compensation signal to the adder circuit;

the adder circuit adds the image signal output by the image sensor and the compensation signal;

the gain amplifier is used for amplifying the output signal from the adder circuit according to the gain value sent by the controller module;

the compensation value is a compensation signal output by the compensation module and comprises a voltage compensation value, a current compensation value or a charge compensation value;

the gain value is the amplification factor of the gain amplifier.

Further, the controller module fits the image-taking model parameters to obtain model parameters of the image-taking model.

Further, the controller module obtains a new gain value and a new compensation value according to the full-image gray-scale average value, the maximum gray-scale value and the minimum gray-scale value of the bright image, and sends the new gain value and the new compensation value to the gain amplifier and the compensation module, respectively.

In order to achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the image acquisition parameter adjustment method described above.

In order to achieve the above object, the present invention further provides an image capturing parameter adjusting apparatus, which includes a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps of the image capturing parameter adjusting method.

Compared with the prior art, the image acquisition parameter adjusting method, the image acquisition parameter adjusting device and the computer readable storage medium have the following technical effects:

when an image is acquired each time, acquiring an optimal image acquisition parameter by automatically adjusting the parameter to acquire the image;

the acquisition is rapid, and when the image is actually acquired, the optimal image acquisition parameter can be obtained only by additionally acquiring 1 frame of image;

the collected image can fully utilize the effective bit of the analog-to-digital converter, and the image quality is improved;

the method can be widely applied to various image acquisition devices.

Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

Drawings

The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:

FIG. 1 is a flow chart of a method for adjusting image acquisition parameters according to the present invention;

FIG. 2 is a flow chart of image acquisition parameter extraction according to the present invention;

FIG. 3 is a block diagram of an image acquisition parameter adjustment apparatus according to the present invention;

FIG. 4 is a schematic structural diagram of an image acquisition parameter adjustment apparatus according to the present invention;

FIG. 5 is a schematic diagram of a conventional image acquisition circuit;

fig. 6 is a schematic diagram of an image acquired by using a conventional image acquisition circuit.

Detailed Description

The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:摄像元件及电子相机

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类