CN107395921B - Difference detection method and device - Google Patents

Difference detection method and device Download PDF

Info

Publication number
CN107395921B
CN107395921B CN201710691202.9A CN201710691202A CN107395921B CN 107395921 B CN107395921 B CN 107395921B CN 201710691202 A CN201710691202 A CN 201710691202A CN 107395921 B CN107395921 B CN 107395921B
Authority
CN
China
Prior art keywords
image data
parameter
mean value
exposure duration
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710691202.9A
Other languages
Chinese (zh)
Other versions
CN107395921A (en
Inventor
杨博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201710691202.9A priority Critical patent/CN107395921B/en
Publication of CN107395921A publication Critical patent/CN107395921A/en
Application granted granted Critical
Publication of CN107395921B publication Critical patent/CN107395921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/81Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/76Addressed sensors, e.g. MOS or CMOS sensors
    • H04N25/77Pixel circuitry, e.g. memories, A/D converters, pixel amplifiers, shared circuits or shared components

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

The invention discloses a difference detection method and device. The method comprises the following steps: fixing an AD register parameter and a constant current source current parameter, and acquiring image data by adopting any CIS image sensor and acquiring a first pixel mean value of the currently acquired image data when the constant current source exposure duration parameter is adjusted to be a first exposure duration parameter; when the constant current source exposure duration parameter is adjusted to be a second exposure duration parameter, acquiring image data and obtaining a second pixel mean value of the currently acquired image data; acquiring an image data slope value corresponding to the CIS image sensor according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter and the second pixel mean value; according to the image data slope value corresponding to the CIS image sensor and the image data slope value corresponding to the preset reference CIS image sensor, the difference rate between the CIS image sensor and the preset reference CIS image sensor is obtained, the time for adjusting parameters before image acquisition is shortened, and the accuracy of subsequent image acquisition is improved.

Description

Difference detection method and device
Technical Field
The embodiment of the invention relates to the field of quality control, in particular to a difference detection method and device.
Background
An image sensor, also called a photosensitive element, is a device that converts an optical image into an electronic signal, and is widely used in various electro-optical devices. Currently, Image sensors are mainly classified into Charge Coupled Devices (CCDs) and Contact Image Sensors (CIS). The CIS image sensor has the advantages of good light source brightness, small distortion degree, small power consumption, small volume, light weight, low failure rate, good shock resistance, low requirement on use environment and the like, so that the CIS image sensor is widely applied.
However, the CIS image sensors vary greatly from batch to batch due to environmental and process factors during the production process. In the prior art, an enterprise using a CIS image sensor can represent the difference between CIS in a very poor way by acquiring white paper image data and calculating the image data in the process of flow control.
However, characterization in a range mode can only eliminate CIS image sensors that do not meet a preset range threshold. When dimension data is generated subsequently, differences between CIS image sensors in different batches are not quantified, so that parameter values of the CIS image sensors still need to be adjusted repeatedly before the CIS image sensors are used, and a large amount of time is wasted. Meanwhile, due to the inherent difference of the CIS image sensor, dimension data acquired each time are different, and the accuracy of subsequent image acquisition is influenced.
Disclosure of Invention
The invention provides a difference detection method and device, which are used for quantifying the difference rate of CIS image sensors in different batches.
In a first aspect, an embodiment of the present invention provides a difference detection method, where the method includes:
acquiring image data through any CIS image sensor according to a preset AD register parameter, a preset constant current source current parameter and a first exposure duration parameter, and acquiring a first pixel mean value of the currently acquired image data;
acquiring image data through any CIS image sensor according to the preset AD register parameter, the preset constant current source current parameter and a second exposure duration parameter, and acquiring a second pixel mean value of the currently acquired image data;
acquiring an image data slope value corresponding to any CIS image sensor according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter and the second pixel mean value;
and acquiring the difference rate between any one CIS image sensor and a preset reference CIS image sensor according to the image data slope value corresponding to the CIS image sensor and the image data slope value corresponding to the preset reference CIS image sensor.
In a second aspect, an embodiment of the present invention further provides a difference detecting apparatus, where the apparatus includes:
the device comprises a first pixel mean value acquisition module, a second pixel mean value acquisition module and a third pixel mean value acquisition module, wherein the first pixel mean value acquisition module is used for acquiring image data through any CIS (contact image sensor) according to a preset AD register parameter, a preset constant current source current parameter and a first exposure duration parameter which are set by any CIS image sensor, and acquiring a first pixel mean value of the currently acquired image data;
the second pixel mean value acquisition module is used for acquiring image data according to the preset AD register parameter, the preset constant current source current parameter and the second exposure duration parameter through any one CIS image sensor and acquiring a second pixel mean value of the currently acquired image data;
an image data slope value obtaining module, configured to obtain an image data slope value corresponding to the CIS image sensor according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter, and the second pixel mean value;
and the difference rate acquisition module is used for acquiring the difference rate between any one CIS image sensor and a preset reference CIS image sensor according to the image data slope rate value corresponding to the CIS image sensor and the image data slope rate value corresponding to the preset reference CIS image sensor.
According to the embodiment of the invention, by fixing the AD register parameter and the constant current source current parameter, when the constant current source exposure duration parameter is adjusted to be the first exposure duration parameter, any CIS image sensor is adopted to acquire image data and obtain the first pixel average value of the currently acquired image data; acquiring image data by adopting the CIS image sensor and acquiring a second pixel mean value of the currently acquired image data by adjusting the constant current source exposure duration parameter as a second exposure duration parameter; acquiring an image data slope value corresponding to the CIS image sensor according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter and the second pixel mean value; the method has the advantages that the difference rate between the CIS image sensor and the preset reference CIS image sensor is obtained according to the image data slope value corresponding to the CIS image sensor and the image data slope value corresponding to the preset reference CIS image sensor, the problems that the differences of the CIS image sensors in different batches are not quantified, the parameters of an AD chip and a constant current source chip need to be adjusted repeatedly before the CIS image sensors are used for collecting images, a large amount of time is wasted, the subsequent image collecting precision is influenced are solved, the parameter adjusting time is shortened, and the subsequent image collecting precision is improved.
Drawings
Fig. 1 is a schematic flow chart of a difference detection method according to a first embodiment of the present invention.
Fig. 2 is a schematic flow chart of a difference detection method according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a difference detection apparatus according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a difference detection method according to an embodiment of the present invention, where the embodiment is applicable to a situation of difference detection of a CIS image sensor, and the method can be executed by a difference detection device, where the difference detection device can be implemented by software and/or hardware, and specifically includes the following steps:
step 110, acquiring image data through any CIS image sensor according to a preset AD register parameter, a preset constant current source current parameter and a first exposure duration parameter, and acquiring a first pixel mean value of the currently acquired image data;
when a CIS image sensor is used for image acquisition, an AD chip is required to complete sampling and analog-to-digital conversion, and a constant current source chip is required to provide current and exposure time for the CIS image sensor. The AD chip comprises two registers of gain and offset. Therefore, the AD gain parameter and the AD bias parameter are referred to as AD register parameters.
In the step, the AD register parameter is set as a preset AD register parameter, the constant current source current parameter is set as a preset constant current source current parameter, and the constant current source exposure duration parameter is set as a first exposure duration parameter. Under the parameter conditions, the image of the reference medium is acquired through any CIS image sensor to acquire corresponding image data. Wherein the reference medium may be white paper. The acquired image data may be gray scale data or RGB image data. Calculating the sum of pixel values of all pixel points in the obtained gray level image data according to the obtained image data, dividing the sum by the number of the pixel points to obtain an image data mean value, and recording the image data mean value as a first pixel mean value; or after summing the pixel values of the pixels corresponding to the RGB image data, dividing by 3 to obtain mixed image data, calculating the sum of the pixel values of all the pixels of the obtained mixed image data, dividing by the number of the pixels to obtain an image data mean value, and recording the image data mean value as a first pixel mean value.
The preset AD register parameters comprise a preset AD gain parameter and a preset AD offset parameter. The specific value of the preset AD gain parameter is not limited at all, and can be set as a conventional AD gain value, or can be adjusted correspondingly according to the brightness requirement of the acquired image; the specific numerical value of the preset AD offset parameter is not limited at all, and the numerical value can be adjusted correspondingly according to the actual acquisition requirement; the current parameters of the preset constant current source are not limited at all, and can be adjusted correspondingly according to the brightness of the collected image. Preferably, the AD offset parameter is preset to be neither forward nor reverse biased. Preferably, the preset constant current source current parameter is 30% to 80% of the maximum current parameter of the constant current source. Preferably, the constant current source current parameter is preset to be 50% of the constant current source current parameter.
Step 120, acquiring image data through any CIS image sensor according to the preset AD register parameter, the preset constant current source current parameter and the second exposure duration parameter, and acquiring a second pixel mean value of the currently acquired image data;
in this step, the fixed AD register parameter remains unchanged based on step 110, that is, the AD gain parameter is set as the preset AD gain parameter in step 110, and the AD offset parameter is set as the preset AD offset parameter in step 110. The fixed constant current source current parameter remains unchanged based on step 110, that is, the constant current source current parameter is set as the preset constant current source current parameter in step 110. And adjusting the constant current source exposure duration parameter to be a second exposure duration parameter. Under the above parameter conditions, image data of the same reference medium as that in step 110 is acquired by the CIS image sensor, and a corresponding image data mean value is calculated and recorded as a second pixel mean value.
Step 130, obtaining an image data slope value corresponding to any CIS image sensor according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter and the second pixel mean value;
preferably, according to the formula k ═ (p)2-p1)/(gs2-gs1) Acquiring an image data slope value corresponding to any CIS image sensor;
wherein k is an image data slope value corresponding to any CIS image sensor, p2Is the second pixel mean value, p1Is the first pixel mean value, gs2Is said second exposure duration parameter, gs1Is the first exposure duration parameter.
And 140, acquiring a difference rate between any one CIS image sensor and a preset reference CIS image sensor according to an image data slope value corresponding to the CIS image sensor and an image data slope value corresponding to the preset reference CIS image sensor.
Preferably according to a formula
Figure BDA0001377923960000061
Acquiring a difference rate between any one CIS image sensor and the preset reference CIS image sensor;
wherein α is the differenceThe difference rate k is the image data slope rate value corresponding to any CIS image sensor, k0And setting the image data slope value corresponding to the preset reference CIS image sensor.
The preset reference CIS image sensor may select any one of the CIS image sensors, and obtains a corresponding image data slope value according to the steps 110 to 130.
According to the embodiment of the invention, by fixing the AD register parameter and the constant current source current parameter, when the constant current source exposure duration parameter is adjusted to be the first exposure duration parameter, any CIS image sensor is adopted to acquire image data and obtain the first pixel average value of the currently acquired image data; acquiring a second pixel mean value of the currently acquired image data by adjusting the constant current source exposure duration parameter as a second exposure duration parameter; acquiring an image data slope value corresponding to the CIS image sensor according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter and the second pixel mean value; and acquiring the difference rate between the CIS image sensor and a preset reference CIS image sensor according to the image data slope value corresponding to the CIS image sensor and the image data slope value corresponding to the preset reference CIS image sensor. By the technical scheme, the problems that parameters of an AD chip and a constant current source chip need to be adjusted repeatedly before the CIS image sensor is used for collecting images due to the fact that differences of CIS image sensors in different batches are not quantified, a large amount of time is wasted, and the subsequent image collecting precision is influenced are solved, the parameter adjusting time is shortened, and the subsequent image collecting precision is improved.
Example two
Fig. 2 is a schematic flow chart of a difference detection method according to a second embodiment of the present invention, which is further optimized based on the above embodiments. The method specifically comprises the following steps:
step 210, acquiring image data through any CIS image sensor according to a preset AD register parameter, a preset constant current source current parameter and a first exposure duration parameter, and acquiring a first pixel mean value of the currently acquired image data;
step 220, acquiring image data through any CIS image sensor according to the preset AD register parameter, the preset constant current source current parameter and the second exposure duration parameter, and acquiring a second pixel mean value of the currently acquired image data;
preferably, acquiring image data according to the preset AD register parameter, the preset constant current source current parameter and the second exposure duration parameter by using any CIS image sensor, and acquiring a second pixel mean value of the currently acquired image data includes:
step 221, adjusting the constant current source exposure duration parameter adopted when image data is acquired last time according to a preset step length to obtain a current exposure duration parameter;
step 222, acquiring image data according to the preset AD register parameter, the preset constant current source current parameter and the current exposure duration parameter, and acquiring a current pixel mean value of the currently acquired image data;
step 223, judging whether the current pixel mean value meets a preset condition;
step 224, determining the current exposure duration parameter as the second exposure duration parameter, and the current pixel mean value as the second pixel mean value; or
And returning to execute the step of adjusting the exposure duration parameter adopted when the image data is acquired last time according to the preset step length.
Illustratively, the AD gain parameter is set to 1, the AD offset parameter is set to neither positive nor negative, the constant current source current parameter is set to 50% of the maximum current value of the constant current source, and the constant current source exposure duration parameter is set to 0 (i.e., the first exposure duration parameter gs)10), collecting gray level image data of the white paper, calculating the sum of pixel values of all pixel points in the obtained gray level image data, dividing the sum by the number of the pixel points to obtain an image data mean value, and recording the image data mean value as a first pixel mean value p1
And (3) keeping the fixed AD gain parameter, the AD bias parameter and the constant current source current parameter unchanged, and adjusting the constant current source exposure duration parameter by taking 20 as a preset step length. I represents the times of adjusting the constant current source exposure time length parameter, and the corresponding current exposure time length parameter is (20 ini) In that respect Under the parameter conditions, the CIS image sensor is used for collecting image data and calculating the mean value P of the current pixeli
Judging the current pixel mean value PiWhether the preset condition 190 is not more than PiLess than or equal to 210. When P is presenti< 190 or PiWhen the pixel mean value P is more than 210, a preset step length is added on the basis of the exposure duration parameter adopted when the image data is acquired last time, and the next pixel mean value P is obtainedi+1And continuously judging whether the preset conditions are met. When 190 is less than or equal to PiWhen the average value is less than or equal to 210, the current pixel mean value P is recordediIs p2And recording the current exposure time length parameter (20 × i) as a second exposure time length parameter gs2
Step 230, according to the formula k ═ (p)2-p1)/(gs2-gs1) Acquiring an image data slope value corresponding to any CIS image sensor;
wherein k is an image data slope value corresponding to any CIS image sensor, p2Is the second pixel mean value, p1Is the first pixel mean value, gs2Is said second exposure duration parameter, gs1Is the first exposure duration parameter.
Step 240, according to the formula
Figure BDA0001377923960000091
Acquiring a difference rate between any one CIS image sensor and the preset reference CIS image sensor;
wherein α is the difference rate, k is the image data slope value corresponding to any CIS image sensor, and k is0And setting the image data slope value corresponding to the preset reference CIS image sensor.
According to the method, when the AD register parameter and the constant current source current parameter are fixed and the constant current source exposure duration parameter is adjusted to be the first exposure duration parameter, any CIS image sensor is adopted to acquire image data and a first pixel mean value of the currently acquired image data is acquired; acquiring a current exposure duration parameter by dynamically adjusting the constant current source exposure duration parameter, acquiring a current pixel mean value of current acquired image data, and finally determining a second pixel mean value and a second exposure duration parameter according to a preset condition; calculating an image data slope value corresponding to the CIS image sensor according to a corresponding formula; and calculating the difference rate between the CIS image sensor and a preset reference CIS image sensor according to a corresponding formula. The problems that the parameters of an AD chip and a constant current source chip need to be adjusted repeatedly before the CIS image sensor is used for collecting images due to the fact that the differences of different batches of CIS image sensors are not quantified, a large amount of time is wasted, and the subsequent image collecting precision is influenced are solved, the parameter adjusting time is shortened, and the subsequent image collecting precision is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a difference detection apparatus according to a third embodiment of the present invention, which is applicable to a CIS image sensor for difference detection, and includes: a first pixel mean value obtaining module 310, a second pixel mean value obtaining module 320, an image data slope value obtaining module 330, and a difference rate obtaining module 340.
The first pixel mean value obtaining module 310 is configured to obtain, by using any one CIS image sensor, image data according to a preset AD register parameter, a preset constant current source current parameter, and a first exposure duration parameter set by the any one CIS image sensor, and obtain a first pixel mean value of currently-collected image data;
a second pixel mean value obtaining module 320, configured to obtain, by using the any CIS image sensor, image data according to the preset AD register parameter, the preset constant current source current parameter, and the second exposure duration parameter, and obtain a second pixel mean value of currently-collected image data;
an image data slope value obtaining module 330, configured to obtain an image data slope value corresponding to any CIS image sensor according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter, and the second pixel mean value;
a difference rate obtaining module 340, configured to obtain a difference rate between the any CIS image sensor and a preset reference CIS image sensor according to an image data slope value corresponding to the any CIS image sensor and an image data slope value corresponding to the preset reference CIS image sensor.
In the embodiment of the invention, the first pixel mean value obtaining module 310 is used for collecting image data and obtaining a first pixel mean value of the currently collected image data under the parameter conditions of the preset AD register parameter, the preset constant current source current parameter and the first exposure duration; acquiring image data and acquiring a second pixel mean value of the currently acquired image data by a second pixel mean value acquisition module 320 under the parameter conditions of presetting an AD register parameter, a constant current source parameter and a second exposure time; acquiring an image data slope value corresponding to the corresponding CIS image sensor according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter and the second pixel mean value by the image data slope value acquisition module 330; the difference rate between the CIS image sensor and the preset reference CIS image sensor is obtained by the difference rate obtaining module 340 according to the image data slope value corresponding to the CIS image sensor and the image data slope value corresponding to the preset reference CIS image sensor. The problems that the parameters of an AD chip and a constant current source chip need to be adjusted repeatedly before the CIS image sensor is used for collecting images due to the fact that the differences of different batches of CIS image sensors are not quantified, a large amount of time is wasted, and the subsequent image collecting precision is influenced are solved, the parameter adjusting time is shortened, and the subsequent image collecting precision is improved.
Specifically, the second pixel mean value obtaining module includes:
the exposure duration parameter adjusting unit is used for adjusting the exposure duration parameter adopted when the image data is acquired last time according to a preset step length to obtain a current exposure duration parameter;
a current pixel mean value obtaining unit, configured to obtain current pixel mean values of currently-collected image data according to the preset AD register parameter, the preset constant current source current parameter, and the current exposure duration parameter;
the judging unit is used for judging whether the current pixel mean value meets a preset condition or not; a determining unit, configured to determine that the current exposure duration parameter is the second exposure duration parameter when the current pixel mean value meets a preset condition, where the current pixel mean value is the second pixel mean value;
and the returning unit is used for returning to execute the step of adjusting the exposure duration parameter adopted when the image data is acquired last time according to the preset step length when the current pixel mean value does not meet the preset condition.
Preferably, the preset condition is that the image data mean is 190 or more and 210 or less.
Specifically, the image data slope value obtaining module is configured to:
according to the formula k ═ p2-p1)/(gs2-gs1) Acquiring an image data slope value corresponding to any CIS image sensor;
wherein k is an image data slope value corresponding to any CIS image sensor, p2Is the second pixel mean value, p1Is the first pixel mean value, gs2Is said second exposure duration parameter, gs1Is the first exposure duration parameter.
Specifically, the difference rate obtaining module is configured to:
according to the formula
Figure BDA0001377923960000121
Acquiring a difference rate between any one CIS image sensor and the preset reference CIS image sensor;
wherein α is the difference rate, k is the image data slope value corresponding to any CIS image sensor, and k is0And setting the image data slope value corresponding to the preset reference CIS image sensor.
The product can execute the difference detection method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the difference detection method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (6)

1. A method of discrepancy detection, comprising:
acquiring image data through any CIS image sensor according to a preset AD register parameter, a preset constant current source current parameter and a first exposure duration parameter, and acquiring a first pixel mean value of the currently acquired image data;
acquiring image data through any CIS image sensor according to the preset AD register parameter, the preset constant current source current parameter and a second exposure duration parameter, and acquiring a second pixel mean value of the currently acquired image data;
according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter and the second pixel mean value, according to the formula k ═ (p)2-p1)/(gs2-gs1) Acquiring an image data slope value corresponding to any CIS image sensor; wherein k is an image data slope value corresponding to any CIS image sensor, p2Is the second pixel mean value, p1Is the first pixel mean value, gs2Is said second exposure duration parameter, gs1The first exposure time length parameter is obtained;
according to the image data slope value corresponding to any CIS image sensor and the image data slope value corresponding to a preset reference CIS image sensor, according to a formula
Figure FDA0002246172790000011
Acquiring the difference rate between any one CIS image sensor and the preset reference CIS image sensor, wherein α isThe difference rate k is an image data slope rate value corresponding to any CIS image sensor0And setting the image data slope value corresponding to the preset reference CIS image sensor.
2. The difference detection method according to claim 1, wherein the acquiring, by the CIS image sensor, the image data according to the preset AD register parameter, the preset constant current source current parameter, and the second exposure duration parameter, to obtain a second pixel average value of the currently acquired image data comprises:
adjusting the exposure duration parameter adopted when image data is acquired last time according to a preset step length to obtain a current exposure duration parameter;
acquiring image data according to the preset AD register parameter, the preset constant current source current parameter and the current exposure duration parameter, and acquiring a current pixel mean value of the currently acquired image data;
judging whether the current pixel mean value meets a preset condition or not;
if so, determining that the current exposure duration parameter is the second exposure duration parameter, and the current pixel mean value is the second pixel mean value;
if not, returning to the step of adjusting the exposure duration parameter adopted in the last image data acquisition according to the preset step length.
3. The difference detection method according to claim 2, wherein the preset condition is that the current pixel mean is greater than or equal to 190 and less than or equal to 210.
4. A discrepancy detecting device, comprising:
the first pixel mean value acquisition module is used for acquiring image data according to a preset AD register parameter, a preset constant current source current parameter and a first exposure duration parameter through any CIS image sensor and acquiring a first pixel mean value of the currently acquired image data;
the second pixel mean value acquisition module is used for acquiring image data according to the preset AD register parameter, the preset constant current source current parameter and the second exposure duration parameter through any one CIS image sensor and acquiring a second pixel mean value of the currently acquired image data;
an image data slope value obtaining module, configured to obtain (p) according to a formula k according to the first exposure duration parameter, the first pixel mean value, the second exposure duration parameter, and the second pixel mean value2-p1)/(gs2-gs1) Acquiring an image data slope value corresponding to any CIS image sensor; wherein k is an image data slope value corresponding to any CIS image sensor, p2Is the second pixel mean value, p1Is the first pixel mean value, gs2Is said second exposure duration parameter, gs1The first exposure time length parameter is obtained;
a difference rate obtaining module, configured to obtain, according to a formula, an image data slope value corresponding to any one of the CIS image sensors and an image data slope value corresponding to a preset reference CIS image sensor
Figure FDA0002246172790000031
Obtaining a difference rate between any one CIS image sensor and the preset reference CIS image sensor, wherein α is the difference rate, k is an image data slope value corresponding to any one CIS image sensor, and k is0And setting the image data slope value corresponding to the preset reference CIS image sensor.
5. The difference detection device according to claim 4, wherein the second pixel mean value obtaining module comprises:
the exposure duration parameter adjusting unit is used for adjusting the exposure duration parameter adopted when the image data is acquired last time according to a preset step length to obtain a current exposure duration parameter;
a current pixel mean value obtaining unit, configured to obtain current pixel mean values of currently-collected image data according to the preset AD register parameter, the preset constant current source current parameter, and the current exposure duration parameter;
the judging unit is used for judging whether the current pixel mean value meets a preset condition or not; a determining unit, configured to determine that the current exposure duration parameter is the second exposure duration parameter when the current pixel mean value meets a preset condition, where the current pixel mean value is the second pixel mean value;
and the returning unit is used for returning to execute the step of adjusting the exposure duration parameter adopted when the image data is acquired last time according to the preset step length when the current pixel mean value does not meet the preset condition.
6. The difference detection apparatus according to claim 5, wherein the preset condition is that the image data mean is 190 or more and 210 or less.
CN201710691202.9A 2017-08-14 2017-08-14 Difference detection method and device Active CN107395921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710691202.9A CN107395921B (en) 2017-08-14 2017-08-14 Difference detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710691202.9A CN107395921B (en) 2017-08-14 2017-08-14 Difference detection method and device

Publications (2)

Publication Number Publication Date
CN107395921A CN107395921A (en) 2017-11-24
CN107395921B true CN107395921B (en) 2020-03-27

Family

ID=60355709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710691202.9A Active CN107395921B (en) 2017-08-14 2017-08-14 Difference detection method and device

Country Status (1)

Country Link
CN (1) CN107395921B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0384414A (en) * 1989-08-28 1991-04-10 Matsushita Electric Ind Co Ltd On-vehicle navigation device
CN1981514A (en) * 2003-07-07 2007-06-13 卓然公司 Dynamic identification and correction of defective pixels
CN101893563A (en) * 2010-04-19 2010-11-24 清华大学 Phase measurement method of variable exposure time imaging phase shift
CN103297654A (en) * 2013-06-28 2013-09-11 电子科技大学 Image correction method based on multiple-contact image sensor (CIS) large-format scanner
CN103632433A (en) * 2013-12-23 2014-03-12 尤新革 Multispectral image acquisition and processing method for contact image sensor
CN104125456A (en) * 2014-07-15 2014-10-29 中国电子科技集团公司第四十一研究所 CCD (Charge Coupled Device) system gain measurement device and method
CN105872532A (en) * 2016-03-23 2016-08-17 深圳怡化电脑股份有限公司 Method and system for detecting image sensor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002176653A (en) * 2000-12-05 2002-06-21 Konica Corp Pixel defect detecting method and electronic camera

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0384414A (en) * 1989-08-28 1991-04-10 Matsushita Electric Ind Co Ltd On-vehicle navigation device
CN1981514A (en) * 2003-07-07 2007-06-13 卓然公司 Dynamic identification and correction of defective pixels
CN101893563A (en) * 2010-04-19 2010-11-24 清华大学 Phase measurement method of variable exposure time imaging phase shift
CN103297654A (en) * 2013-06-28 2013-09-11 电子科技大学 Image correction method based on multiple-contact image sensor (CIS) large-format scanner
CN103632433A (en) * 2013-12-23 2014-03-12 尤新革 Multispectral image acquisition and processing method for contact image sensor
CN104125456A (en) * 2014-07-15 2014-10-29 中国电子科技集团公司第四十一研究所 CCD (Charge Coupled Device) system gain measurement device and method
CN105872532A (en) * 2016-03-23 2016-08-17 深圳怡化电脑股份有限公司 Method and system for detecting image sensor

Also Published As

Publication number Publication date
CN107395921A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
TWI395958B (en) Defective pixel detection and correction devices, systems, and methods for detecting and correcting defective pixel
US9883178B2 (en) Method for measuring performance parameters and detecting bad pixels of an infrared focal plane array module
CN102724405A (en) Method and device for automatic exposure compensation of backlit scenes in video imaging system
CN102238339B (en) Method for compensating backlight
CN103226819A (en) Segmental counting-based relative radiation correction method
CN110686783B (en) Blind pixel detection method and image processing method for InGaAs short-wave infrared imager
CN102508145B (en) Method for measuring CCD (Charge Coupled Device) chip dark current and double temperature constant
CN106791506B (en) A kind of asymmetric correction method of cmos detector
CN107454388B (en) Image processing method and apparatus using the same
CN107395921B (en) Difference detection method and device
CN111207833B (en) Temperature measurement method based on image data normalization technology
CN202721740U (en) Automatic exposure compensation device of backlight type scenes in video imaging system
JP2006157599A5 (en)
CN107277379B (en) Parameter configuration method and device
US11861814B2 (en) Apparatus and method for sensing image based on event
US11490011B2 (en) Blur correction device, imaging apparatus, monitoring system, and program
JP6827838B2 (en) Imaging equipment and image processing equipment, their control methods, and programs
US11317041B1 (en) Image-sensing device and method of black-level calibration thereof
US9185310B2 (en) Solid-state imaging device, illuminance measuring method performed by solid-state imaging device, and camera module
CN117714905B (en) Method for correcting radiation response characteristic of CMOS image sensor
CN115967861B (en) Image processing method and device
US20240070826A1 (en) Image processing method, image processing apparatus, and storage medium
US20240163562A1 (en) Ambient light sensing using image sensor
JP5653178B2 (en) Imaging apparatus and control method thereof
JP4784397B2 (en) Imaging device

Legal Events

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