JP2006058945A - Method and device for correcting rolling shutter image - Google Patents

Method and device for correcting rolling shutter image Download PDF

Info

Publication number
JP2006058945A
JP2006058945A JP2004237252A JP2004237252A JP2006058945A JP 2006058945 A JP2006058945 A JP 2006058945A JP 2004237252 A JP2004237252 A JP 2004237252A JP 2004237252 A JP2004237252 A JP 2004237252A JP 2006058945 A JP2006058945 A JP 2006058945A
Authority
JP
Japan
Prior art keywords
image
product
coefficients
coordinate
rolling shutter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004237252A
Other languages
Japanese (ja)
Inventor
Tasuku Yuguchi
翼 湯口
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.)
Optex FA Co Ltd
Original Assignee
Optex FA Co Ltd
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 Optex FA Co Ltd filed Critical Optex FA Co Ltd
Priority to JP2004237252A priority Critical patent/JP2006058945A/en
Publication of JP2006058945A publication Critical patent/JP2006058945A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method and device for correcting a rolling shutter image for accurately correcting the distortion of a photographic image to be generated according to the conveyance of a product at the time of photographing a product under line conveyance by using a CMOS image sensor with a rolling shutter. <P>SOLUTION: The correction image of a photographic image generated by successively changing coefficients B and D of X1=X+BY and Y1=DY of a coordinate conversion system (1) is compared with a preliminarily registered reference image, and the difference of those images is decided, and coefficients B and D when the difference of the correction image and the registered reference image is the minimum value are detected so that even when the moving speed of the product is not measured, the distortion of a rolling shutter image to be generated according to the conveyance of the product to an X direction or Y direction can be accurately corrected so as to be restored to the original image. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、ライン搬送中の製品をローリングシャッタ付きCMOSイメージセンサで撮影したローリングシャッタ画像を補正する方法および装置に関する。       The present invention relates to a method and apparatus for correcting a rolling shutter image obtained by photographing a product in line conveyance with a CMOS image sensor with a rolling shutter.

生産ラインで次々に搬送される製品を撮影し、撮影した画像と登録した基準画像とを比較して、製品の形状または製品の表面に表れた文字や図形などの良、不良を判定する場合に、製品をローリングシャッタ(ERS)付きCMOSイメージセンサ(撮像素子)で撮像したとき、図4(A)のように、例えばシャッタは画面の上から下に(Y方向に)順番に開いていく。製品は通常コンベアなどでX方向およびY方向のいずれか1つの方向に搬送される。このため、製品がX方向またはY方向に搬送された状態で製品を撮影すると、図4(B)のように、方向1(上から下)、方向2(下から上)、方向3(左から右)、方向4(右から左)に製品が移動した場合、図4(C)のように、各方向1〜4の移動に伴って実際に撮影した画像がそれぞれ歪む。例えば、方向3の場合、製品30の右下角部30aは、n−1行目が撮影されたときには、右方向に移動済みであるから、図4(C)のように、ひし形に歪む。   When shooting products that are transported one after another on the production line and comparing the captured images with registered reference images to determine whether the shape of the product or the characters and figures that appear on the surface of the product is good or bad When the product is imaged by a CMOS image sensor (imaging device) with a rolling shutter (ERS), for example, the shutters are sequentially opened from the top to the bottom (in the Y direction) as shown in FIG. The product is usually conveyed in one of the X direction and the Y direction by a conveyor or the like. For this reason, when the product is photographed in a state where the product is conveyed in the X direction or the Y direction, as shown in FIG. 4B, direction 1 (from top to bottom), direction 2 (from bottom to top), direction 3 (left) When the product moves in the direction 4 (from right to left) and in the direction 4 (from right to left), as shown in FIG. For example, in the case of the direction 3, since the lower right corner 30a of the product 30 has been moved to the right when the (n-1) th row is photographed, it is distorted into a rhombus as shown in FIG.

画像の歪みが発生すると、製品の良/不良(OK/NG)を判定する際に正しい判定ができない。このため、従来は、全画面(全画素)同時にシャッタが開くCCDイメージセンサを用いるか、全画素を同一のタイミングで露光を行うグローバルシャッタ機能を持ったCMOSイメージセンサを使用していた。   If image distortion occurs, correct determination cannot be made when determining whether the product is good or bad (OK / NG). For this reason, conventionally, a CCD image sensor whose shutter is opened simultaneously on all screens (all pixels) or a CMOS image sensor having a global shutter function that exposes all pixels at the same timing has been used.

一方、ハンディ式画像スキャナの場合、手動でスキャナを動かして順番に画像を取り込む(例えば、特許文献1)が、このような用途にローリングシャッタ付きCMOSイメージセンサを使用すると、同様に画像が変形してしまう。   On the other hand, in the case of a hand-held image scanner, images are sequentially captured by moving the scanner manually (for example, Patent Document 1). However, when a CMOS image sensor with a rolling shutter is used for such a purpose, the image is similarly deformed. End up.

しかし、CCDイメージセンサは素子そのものが高価で、複数の電源を要し、消費電力が大きいという欠点がある。また、グローバルシャッタ機能付きのCMOSイメージセンサは、グローバルシャッタ機能をチップ上に搭載するため、受光素子の面積が小さくなり、感度が下がりノイズの多い画面になったり、チップ面積が大きくなるためコストが高くなる。   However, the CCD image sensor has a drawback that the element itself is expensive, requires a plurality of power supplies, and consumes a large amount of power. In addition, a CMOS image sensor with a global shutter function is equipped with a global shutter function on the chip, so that the area of the light receiving element is reduced, resulting in a screen with a lot of sensitivity and noise, and the chip area is increased. Get higher.

本発明は、前記の問題点を解決して、ローリングシャッタ付きCMOSイメージセンサを用いてライン搬送中の製品を撮影するときに、製品の搬送に伴って生じる撮影画像の歪みを正確に補正できるローリングシャッタ画像の補正方法および装置を提供することを目的としている。   The present invention solves the above-described problems, and can accurately correct a distortion of a photographed image caused by product transportation when photographing a product during line transportation using a CMOS image sensor with a rolling shutter. It is an object of the present invention to provide a shutter image correction method and apparatus.

前記目的を達成するために、本発明の一構成にかかるローリングシャッタ画像の補正方法および装置は、ライン搬送中の製品を、ローリングシャッタ付きCMOSイメージセンサを用いてY(縦)方向に順次露光を行って撮影するときに、製品のX(横)方向またはY方向の搬送に伴って生じる画像の歪みを座標変換によって補正するものであって、下記の座標変換式(1)により、撮影画像の読み出された座標XまたはYを、係数B、Dに基づいて、座標X1またはY1に座標変換して画像を補正する際に、
X1=X+BY、 Y1=DY …(1)
前記係数B、Dを順次変化させて生成した撮影画像の補正画像と、予め登録した基準画像とをそれぞれ比較して、両画像の違いを判定し、前記補正画像と登録基準画像の違いが最小値であるときの前記係数B、Dを検出するものである。
In order to achieve the above object, a rolling shutter image correction method and apparatus according to one configuration of the present invention sequentially exposes a product being conveyed in a Y (vertical) direction using a CMOS image sensor with a rolling shutter. When the image is taken, the image distortion caused by the conveyance of the product in the X (horizontal) direction or the Y direction is corrected by coordinate conversion. When the image is corrected by converting the read coordinates X or Y into coordinates X1 or Y1 based on the coefficients B and D,
X1 = X + BY, Y1 = DY (1)
The correction image of the photographed image generated by sequentially changing the coefficients B and D is compared with the reference image registered in advance to determine the difference between the two images, and the difference between the correction image and the registered reference image is minimized. The coefficients B and D when they are values are detected.

この構成によれば、座標変換式(1)の係数B、Dを順次変化させて生成した撮影画像の補正画像と、予め登録した基準画像とをそれぞれ比較して、両画像の違いを判定し、補正画像と登録基準画像の違いが最小値であるときの係数B、Dを検出するので、製品の移動速度を計測しなくとも、製品のX方向またはY方向の搬送に伴って生じるローリングシャッタ画像の歪みを元の画像に戻すように正確に補正できる。   According to this configuration, the correction image of the captured image generated by sequentially changing the coefficients B and D of the coordinate conversion formula (1) is compared with the reference image registered in advance, and the difference between the two images is determined. Since the coefficients B and D when the difference between the corrected image and the registered reference image is the minimum value are detected, the rolling shutter that occurs when the product is transported in the X or Y direction without measuring the moving speed. It is possible to accurately correct the image distortion so as to restore the original image.

本発明の他の構成にかかるローリングシャッタ画像の補正方法および装置は、ライン搬送中の製品を、ローリングシャッタ付きCMOSイメージセンサを用いてY(縦)方向に順次露光を行って撮影するときに、製品のX(横)方向またはY方向の搬送に伴って生じる画像の歪みを座標変換によって補正するものであって、前記の座標変換式(1)により、撮影画像の読み出された座標XまたはYを、係数B、Dに基づいて、座標X1またはY1に座標変換して画像を補正する際に、
前記CMOSイメージセンサの1行の転送時間をT、製品の搬送速度に対応する製品が1画素を通過する時間をPとしたとき、下記の式(2)により係数B、Dを演算するものである。
B=T/P、 D=T/(T−P) …(2)
A rolling shutter image correction method and apparatus according to another configuration of the present invention, when shooting a product in line conveyance by sequentially exposing in the Y (vertical) direction using a CMOS image sensor with a rolling shutter, The image distortion caused by the conveyance of the product in the X (horizontal) direction or the Y direction is corrected by coordinate transformation, and the coordinates X or When correcting the image by converting Y into coordinates X1 or Y1 based on the coefficients B and D,
When the transfer time for one row of the CMOS image sensor is T and the time for a product corresponding to the product conveyance speed to pass one pixel is P, the coefficients B and D are calculated by the following equation (2). is there.
B = T / P, D = T / (TP) (2)

この構成によれば、CMOSイメージセンサの1行の転送時間をT、製品の移動速度に対応する製品が1画素を通過する時間をPとしたとき、前記の式(2)により座標変換式(1)の係数B、Dを演算するので、製品の移動速度に応じて、製品のX方向またはY方向の搬送に伴って生じるローリングシャッタ画像の歪みを元の画像に戻すように正確に補正できる。   According to this configuration, when the transfer time for one row of the CMOS image sensor is T and the time for the product corresponding to the moving speed of the product to pass one pixel is P, the coordinate conversion formula ( Since the coefficients B and D of 1) are calculated, the distortion of the rolling shutter image caused by the conveyance of the product in the X direction or the Y direction can be accurately corrected according to the moving speed of the product so as to return to the original image. .

以下、本発明の実施形態を図面にしたがって説明する。図1は、本発明の一実施形態に係るローリングシャッタ画像の補正装置を示すブロック図である。本装置は、例えば生産ラインで次々に搬送される製品を撮影し、撮影した画像と登録した基準画像とを比較して、製品の形状または製品の表面に表れた文字や図形などの良/不良(OK/NG)を判定する場合、ローリングシャッタ付きCMOSイメージセンサを用いて、Y(縦)方向に例えば上から下に順次露光を行って撮影するときに、製品のX(横)方向またはY方向の搬送に応じて歪む撮影画像を元の形状の画像に戻す補正を行うものである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a rolling shutter image correction apparatus according to an embodiment of the present invention. This device, for example, captures products that are transported one after another on a production line, compares the captured images with registered reference images, and determines whether the product shape or the characters and figures that appear on the surface of the product are good / bad. When determining (OK / NG), using a CMOS image sensor with a rolling shutter, for example, in the Y (vertical) direction, for example, exposure is performed sequentially from top to bottom in the X (horizontal) direction or Y Correction is performed to return a captured image that is distorted in accordance with direction conveyance to an original shape image.

図1の本装置は、ローリングシャッタ付きCMOSイメージセンサ1、画像メモリ2、登録画像メモリ3、読み出し番地計算手段4、座標カウンタ5、移動方向設定値保存メモリ6、係数カウンタ7、画像重ね合わせ手段8、違い判定手段9、および違い最小値検出手段10を備えている。   1 includes a CMOS image sensor 1 with a rolling shutter, an image memory 2, a registered image memory 3, a read address calculation means 4, a coordinate counter 5, a moving direction set value storage memory 6, a coefficient counter 7, and an image superimposing means. 8. A difference determination unit 9 and a difference minimum value detection unit 10 are provided.

前記ローリングシャッタ付きCMOSイメージセンサ1は、シャッタがY(縦)方向に上から下に順次開いて露光し、製品を撮影する。画像メモリ2はライン搬送中の製品を撮影した画像を記憶する。登録画像メモリ3は、登録指示により、予め基準となる製品を撮影した登録基準画像を記憶する。   In the CMOS image sensor 1 with a rolling shutter, the shutter is sequentially opened from the top to the bottom in the Y (vertical) direction to expose and image the product. The image memory 2 stores an image obtained by photographing the product being conveyed. The registered image memory 3 stores a registered reference image obtained by photographing a reference product in advance according to a registration instruction.

前記読み出し番地計算手段4は、下記の座標変換式(1)によって、座標カウンタ5によりカウントされる撮影画像の読み出し番地である座標(X、Y)ごとに、係数B、Dに基づいて、座標X1またはY1に座標変換して、画像メモリ2に記憶された撮影画像を補正する計算を行う。製品がX方向に移動せずY方向にのみ移動する場合には、係数B=0であり、製品がY方向に移動せずX方向にのみ移動する場合には、係数D=1である。
X1=X+BY、 Y1=DY …(1)
The read address calculation means 4 uses the following coordinate conversion formula (1) to calculate the coordinates based on the coefficients B and D for each coordinate (X, Y) that is the read address of the captured image counted by the coordinate counter 5. A calculation is performed to correct the captured image stored in the image memory 2 by converting the coordinates to X1 or Y1. When the product does not move in the X direction and moves only in the Y direction, the coefficient B = 0, and when the product does not move in the Y direction and moves only in the X direction, the coefficient D = 1.
X1 = X + BY, Y1 = DY (1)

図2に、撮影画像の読み出し番地の座標(X、Y)を示す。同図のとおり、X方向のm−1列目でY方向のn−1行目の読み出し番地の座標(Xm−1、Yn−1)で表される。上記の座標変換計算により、画像メモリ2から係数B、Dを順次変化させて生成した撮影画像の補正画像が読み出される。 FIG. 2 shows the coordinates (X, Y) of the read address of the captured image. As shown in the figure, it is represented by the coordinates (X m−1 , Y n−1 ) of the read address in the ( m −1 ) th column in the X direction and the ( n−1 ) th row in the Y direction. Through the above coordinate conversion calculation, a corrected image of the captured image generated by sequentially changing the coefficients B and D is read from the image memory 2.

前記移動方向設定値保存メモリ6で、X方向またはY方向の移動方向および移動速度の設定値が保存され、この設定値に対応して順次変化される係数B、Dが係数カウンタ7により、読み出し番地計算手段4に与えられる。   The moving direction set value storage memory 6 stores setting values for the moving direction and moving speed in the X direction or Y direction, and the coefficients B and D that are sequentially changed corresponding to the set values are read by the coefficient counter 7. This is given to the address calculation means 4.

画像重ね合わせ手段8は、係数B、Dを順次変化させて生成した補正画像と、予め登録した基準画像とをそれぞれ比較するために、両画像を重ね合わせる。そして、それぞれ両画像の違いが違い判定手段9により判定される。これら読み出し番地計算手段4、座標カウンタ5、移動方向設定値保存メモリ6、係数カウンタ7、画像重ね合わせ手段8および違い判定手段9により、判定手段20が構成される。   The image superimposing means 8 superimposes both images in order to compare the corrected image generated by sequentially changing the coefficients B and D with the reference image registered in advance. Then, the difference determination unit 9 determines the difference between the two images. The read address calculation means 4, the coordinate counter 5, the moving direction set value storage memory 6, the coefficient counter 7, the image superposition means 8 and the difference determination means 9 constitute a determination means 20.

そして、係数カウンタ5で係数B、Dを順次変化させて生成した撮影画像の補正画像と登録基準画像との違いの最小値が、違い最小値検出手段(係数検出手段)10により検出されて、このときの係数B、Dが検出される。   Then, the minimum value of the difference between the corrected image of the captured image generated by sequentially changing the coefficients B and D by the coefficient counter 5 and the registered reference image is detected by the difference minimum value detecting means (coefficient detecting means) 10, Coefficients B and D at this time are detected.

以下に、上記構成のローリングシャッタ画像の補正装置の動作を、図3に基づいて説明する。この例では、製品はX方向に移動せず、Y方向の上から下にのみ移動(図4の方向1)するものとする。
(1)補正画像と登録基準画像の比較
まず、ローリングシャッタ付きCMOSイメージセンサにより、製品が撮影され、図3(B)のように、画像メモリ2にライン搬送中の製品30を撮影した画像が記憶される。図3(A)のように、登録画像メモリ3には、予め基準となる製品30を撮影した登録基準画像が記憶される。
The operation of the rolling shutter image correcting apparatus having the above-described configuration will be described below with reference to FIG. In this example, it is assumed that the product does not move in the X direction, but only moves from the top to the bottom in the Y direction (direction 1 in FIG. 4).
(1) Comparison between the corrected image and the registered reference image First, a product is photographed by a CMOS image sensor with a rolling shutter, and an image obtained by photographing the product 30 being conveyed into the image memory 2 as shown in FIG. Remembered. As shown in FIG. 3A, the registered image memory 3 stores a registered reference image obtained by photographing the product 30 as a reference in advance.

製品30はY方向に上から下に移動するので、上記の座標変換式(1)のうちY1=DYにより、撮影画像の読み出された座標Yを、順次変化させた係数Dに基づいて、座標Y1に座標変換して、撮影画像の補正画像が生成されて、画像メモリ2から読み出される。この場合、係数Dは1以上となる。なお、この例では、製品30はX方向に移動しないので、座標変換式(1)のうちX1=X+BYは、係数Bが0であり、X1=Xとなる。   Since the product 30 moves from top to bottom in the Y direction, Y1 = DY in the coordinate conversion formula (1) above, and based on the coefficient D obtained by sequentially changing the coordinates Y read out of the captured image, A corrected image of the captured image is generated by converting the coordinate to the coordinate Y1, and is read from the image memory 2. In this case, the coefficient D is 1 or more. In this example, since the product 30 does not move in the X direction, in the coordinate conversion formula (1), X1 = X + BY has a coefficient B of 0 and X1 = X.

図3(C)はD=1で読み出された補正画像、図3(D)はD=1.1で読み出された補正画像、図3(E)はD=1.2で読み出された補正画像、図3(F)はD=1.3で読み出された補正画像である。図3(C)〜(F)の各補正画像と、図3(A)の登録基準画像とがそれぞれ重ね合わされて比較され、両画像の違いが判定される。   3C is a corrected image read at D = 1, FIG. 3D is a corrected image read at D = 1.1, and FIG. 3E is read at D = 1.2. FIG. 3F shows a corrected image read out with D = 1.3. Each of the corrected images in FIGS. 3C to 3F and the registration reference image in FIG. 3A are overlaid and compared, and the difference between the two images is determined.

(2)係数検出
各補正画像と登録基準画像の違いが判定されて、それぞれの違いが得られる結果、登録基準画像と図3(E)の補正画像との違いが最小(両画像が一致)であるので、このときの係数D=1.2が検出される。
(2) Coefficient detection As a result of determining the difference between each corrected image and the registered reference image and obtaining each difference, the difference between the registered reference image and the corrected image in FIG. Therefore, the coefficient D = 1.2 at this time is detected.

同様に、製品がY方向に下から上に移動する場合には、係数B=0で、係数D=1以下で、係数Dが検出される。   Similarly, when the product moves from bottom to top in the Y direction, the coefficient D is detected when the coefficient B = 0 and the coefficient D = 1 or less.

製品がX方向に左から右に移動する場合には、係数B=0以上で、係数D=1となり、X方向に右から左に移動する場合には、係数B=0以下(負の値)で、係数D=1となって、それぞれ係数Bが検出される。   When the product moves from left to right in the X direction, the coefficient B = 0 or more and the coefficient D = 1, and when the product moves from right to left in the X direction, the coefficient B = 0 or less (negative value) ), The coefficient D = 1, and the coefficient B is detected.

このように、本発明では、座標変換式(1)の係数B、Dを順次変化させて生成した撮影画像の補正画像と、予め登録した画像とをそれぞれ比較して、それぞれ両画像の違いを判定し、補正画像と登録画像の違いが最小値であるときの係数B、Dを検出するので、製品の移動速度を計測しなくとも、製品のX方向またはY方向の搬送に伴って生じるローリングシャッタ画像の歪みを元の画像に戻すように正確に補正できる。   As described above, in the present invention, the correction image of the captured image generated by sequentially changing the coefficients B and D of the coordinate conversion equation (1) is compared with the pre-registered image, and the difference between the two images is determined. Judgment and detection of the coefficients B and D when the difference between the corrected image and the registered image is the minimum value, so that the rolling caused by the conveyance of the product in the X direction or the Y direction can be performed without measuring the moving speed of the product. The distortion of the shutter image can be accurately corrected so as to return to the original image.

なお、上記した実施形態では係数B、Dを検出しているが、製品の移動速度が明確に知得されている場合、以下のように、製品の移動速度に基づいて、係数B、Dを演算してもよい。すなわち、係数演算手段が前記CMOSイメージセンサの1行の転送時間をT、製品の移動速度に対応する製品が1画素を通過する時間をPとしたとき、下記の式(2)により係数B、Dを演算する。
B=T/P、 D=T/(T−P) …(2)
演算された係数B、Dを用いて、座標変換式(1)により撮影画像の正確な補正画像を生成することができる。
In the above-described embodiment, the coefficients B and D are detected. However, when the moving speed of the product is clearly known, the coefficients B and D are calculated based on the moving speed of the product as follows. You may calculate. That is, when the coefficient calculation means is T for the transfer time of one row of the CMOS image sensor and P is the time for the product corresponding to the moving speed of the product to pass one pixel, the coefficient B, D is calculated.
B = T / P, D = T / (TP) (2)
Using the calculated coefficients B and D, an accurate corrected image of the captured image can be generated by the coordinate conversion equation (1).

このように、CMOSイメージセンサの1行の転送時間をT、製品の移動速度に対応する製品が1画素を通過する時間をPとしたとき、前記の式(2)により座標変換式(1)の係数B、Dを演算するので、製品の移動速度に応じて、製品のX方向またはY方向の搬送に伴って生じるローリングシャッタ画像の歪みを元の画像に戻すように正確に補正できる。   Thus, when the transfer time for one row of the CMOS image sensor is T and the time for the product corresponding to the moving speed of the product to pass through one pixel is P, the coordinate conversion equation (1) is obtained by the above equation (2). Therefore, the distortion of the rolling shutter image caused by the conveyance of the product in the X direction or the Y direction can be accurately corrected so as to return to the original image according to the moving speed of the product.

なお、本発明において、ローリングシャッタ付きCMOSイメージセンサを用いてY(縦)方向に順次露光を行って撮影しているが、X(横)方向に順次露光を行って撮影してもよい。   In the present invention, a CMOS image sensor with a rolling shutter is used for sequential exposure in the Y (vertical) direction. However, exposure may be performed for sequential exposure in the X (horizontal) direction.

本発明の一実施形態に係るローリングシャッタ画像の補正装置を示すブロック図である。It is a block diagram which shows the correction apparatus of the rolling shutter image which concerns on one Embodiment of this invention. 座標(X、Y)を示す図である。It is a figure which shows a coordinate (X, Y). 座標変換式の係数を検出する動作を示す図である。It is a figure which shows the operation | movement which detects the coefficient of a coordinate transformation type | formula. 製品の移動方向に伴う撮影画像の歪みを示す図である。It is a figure which shows the distortion of the picked-up image accompanying the movement direction of a product.

符号の説明Explanation of symbols

1:ローリングシャッタ付きCMOSイメージセンサ
3:登録画像メモリ
10:係数検出手段
20:判定手段
1: CMOS image sensor with rolling shutter 3: Registered image memory 10: Coefficient detection means 20: Determination means

Claims (4)

ライン搬送中の製品を、ローリングシャッタ付きCMOSイメージセンサを用いてY(縦)方向に順次露光を行って撮影するときに、製品のX(横)方向またはY方向の搬送に伴って生じる画像の歪みを座標変換によって補正する方法であって、
下記の座標変換式(1)により、撮影画像の読み出された座標XまたはYを、係数B、Dに基づいて、座標X1またはY1に座標変換して画像を補正する際に、
X1=X+BY、 Y1=DY …(1)
前記係数B、Dを順次変化させて生成した撮影画像の補正画像と、予め登録した基準画像とをそれぞれ比較して、両画像の違いを判定し、前記補正画像と登録基準画像の違いが最小値であるときの前記係数B、Dを検出する、ローリングシャッタ画像の補正方法。
When a product in line is photographed by sequentially exposing the product in the Y (vertical) direction using a CMOS image sensor with a rolling shutter, the image generated when the product is conveyed in the X (horizontal) or Y direction. A method of correcting distortion by coordinate transformation,
When correcting the image by converting the coordinate X or Y read out of the captured image into the coordinate X1 or Y1 based on the coefficients B and D by the following coordinate conversion formula (1),
X1 = X + BY, Y1 = DY (1)
The correction image of the photographed image generated by sequentially changing the coefficients B and D is compared with the reference image registered in advance to determine the difference between the two images, and the difference between the correction image and the registered reference image is minimized. A method for correcting a rolling shutter image, wherein the coefficients B and D when the value is a value are detected.
ライン搬送中の製品を、ローリングシャッタ付きCMOSイメージセンサを用いてY(縦)方向に順次露光を行って撮影するときに、製品のX(横)方向またはY方向の搬送に伴って生じる画像の歪みを座標変換によって補正する方法であって、
下記の座標変換式(1)により、撮影画像の読み出された座標XまたはYを、係数B、Dに基づいて、座標X1またはY1に座標変換して画像を補正する際に、
X1=X+BY、 Y1=DY …(1)
前記CMOSイメージセンサの1行の転送時間をT、製品の移動速度に対応する製品が1画素を通過する時間をPとしたとき、下記の式(2)により係数B、Dを演算する、ローリングシャッタ画像の補正方法。
B=T/P、 D=T/(T−P) …(2)
When a product in line is photographed by sequentially exposing the product in the Y (vertical) direction using a CMOS image sensor with a rolling shutter, the image generated when the product is conveyed in the X (horizontal) or Y direction. A method of correcting distortion by coordinate transformation,
When correcting the image by converting the coordinate X or Y read out of the captured image into the coordinate X1 or Y1 based on the coefficients B and D by the following coordinate conversion formula (1),
X1 = X + BY, Y1 = DY (1)
When the transfer time for one row of the CMOS image sensor is T and the time for the product corresponding to the moving speed of the product to pass one pixel is P, the coefficients B and D are calculated by the following equation (2). A method for correcting a shutter image.
B = T / P, D = T / (TP) (2)
ライン搬送中の製品を、ローリングシャッタ付きCMOSイメージセンサを用いてY(縦)方向に順次露光を行って撮像するときに、製品のX(横)方向またはY方向の搬送に伴って生じる画像の歪みを座標変換によって補正する装置であって、
下記の座標変換式(1)により、撮影画像の読み出された座標XまたはYを、係数B、Dに基づいて、座標X1またはY1に座標変換して画像を補正する際に、
X1=X+BY、 Y1=DY …(1)
前記座標変換式の係数B、Dを順次変化させて生成した撮影画像の補正画像と、予め登録した基準画像とをそれぞれ比較して、両画像の違いを判定する判定手段と、
前記補正画像と登録基準画像の違いが最小値であるときの前記係数B、Dを検出する係数検出手段とを備えている、ローリングシャッタ画像の補正装置。
When a product in line conveyance is imaged by sequentially exposing the product in the Y (vertical) direction using a CMOS image sensor with a rolling shutter, the image generated when the product is conveyed in the X (horizontal) direction or the Y direction. An apparatus for correcting distortion by coordinate transformation,
When correcting the image by converting the coordinate X or Y read out of the captured image into the coordinate X1 or Y1 based on the coefficients B and D by the following coordinate conversion formula (1),
X1 = X + BY, Y1 = DY (1)
A determination unit that compares a corrected image of a captured image generated by sequentially changing the coefficients B and D of the coordinate conversion formula and a reference image registered in advance, and determines a difference between the two images;
A rolling shutter image correction apparatus, comprising: coefficient detection means for detecting the coefficients B and D when the difference between the correction image and the registered reference image is a minimum value.
ライン搬送中の製品を、ローリングシャッタ付きCMOSイメージセンサを用いてY(縦)方向に順次露光を行って撮像するときに、製品のX(横)方向またはY方向の搬送に伴って生じる画像の歪みを座標変換によって補正する装置であって、
下記の座標変換式(1)により、撮影画像の読み出された座標XまたはYを、係数B、Dに基づいて、座標X1またはY1に座標変換して画像を補正する際に、
X1=X+BY、 Y1=DY …(1)
前記CMOSイメージセンサの1行の転送時間をT、製品の移動速度に対応する製品が1画素を通過する時間をPとしたとき、下記の式(2)により係数B、Dを演算する係数演算手段を備えている、ローリングシャッタ画像の補正装置。
B=T/P、 D=T/(T−P) …(2)
When a product in line conveyance is imaged by sequentially exposing the product in the Y (vertical) direction using a CMOS image sensor with a rolling shutter, the image generated when the product is conveyed in the X (horizontal) direction or the Y direction. An apparatus for correcting distortion by coordinate transformation,
When correcting the image by converting the coordinate X or Y read out of the captured image into the coordinate X1 or Y1 based on the coefficients B and D by the following coordinate conversion formula (1),
X1 = X + BY, Y1 = DY (1)
Coefficient calculation for calculating coefficients B and D according to the following equation (2), where T is the transfer time for one row of the CMOS image sensor and P is the time for the product corresponding to the moving speed of the product to pass one pixel. A rolling shutter image correction device comprising means.
B = T / P, D = T / (TP) (2)
JP2004237252A 2004-08-17 2004-08-17 Method and device for correcting rolling shutter image Pending JP2006058945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004237252A JP2006058945A (en) 2004-08-17 2004-08-17 Method and device for correcting rolling shutter image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004237252A JP2006058945A (en) 2004-08-17 2004-08-17 Method and device for correcting rolling shutter image

Publications (1)

Publication Number Publication Date
JP2006058945A true JP2006058945A (en) 2006-03-02

Family

ID=36106390

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004237252A Pending JP2006058945A (en) 2004-08-17 2004-08-17 Method and device for correcting rolling shutter image

Country Status (1)

Country Link
JP (1) JP2006058945A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007263868A (en) * 2006-03-29 2007-10-11 Toray Eng Co Ltd Automatic visual inspection apparatus and automatic visual inspection method
JP2007336314A (en) * 2006-06-16 2007-12-27 Sony Corp Device and method for processing image, recording medium, and program
JP2008064624A (en) * 2006-09-07 2008-03-21 Toyo Inspections Kk Imaging apparatus and method
JP2009089037A (en) * 2007-09-28 2009-04-23 Fujifilm Corp Photographing controller, photographing control method, photographing control program and photographing device
US7720309B2 (en) 2005-12-27 2010-05-18 Megachips Corporation Image processor and camera system, image processing method, and motion picture displaying method
US7884871B2 (en) 2007-06-15 2011-02-08 Aptina Imaging Corporation Images with high speed digital frame transfer and frame processing
US7999856B2 (en) 2007-03-12 2011-08-16 Samsung Electronics Co., Ltd. Digital image stabilization method for correcting horizontal inclination distortion and vertical scaling distortion
JP2013026994A (en) * 2011-07-26 2013-02-04 Canon Inc Image measurement device, image measurement method, program and recording medium
KR20150024733A (en) * 2013-08-27 2015-03-09 삼성테크윈 주식회사 Device and Method for dewobbling
US9105100B2 (en) 2013-02-08 2015-08-11 Samsung Electronics Co., Ltd. Motion estimation device and motion estimation method
CN109379536A (en) * 2018-12-29 2019-02-22 深圳看到科技有限公司 Screen generating method, device, terminal and corresponding storage medium
CN113470093A (en) * 2021-09-01 2021-10-01 启东市德立神起重运输机械有限公司 Video jelly effect detection method, device and equipment based on aerial image processing
CN114205525A (en) * 2021-12-02 2022-03-18 信利光电股份有限公司 Image correction method and device for roller shutter exposure and readable storage medium
CN114205525B (en) * 2021-12-02 2024-05-31 信利光电股份有限公司 Roller shutter exposure image correction method and device and readable storage medium

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7720309B2 (en) 2005-12-27 2010-05-18 Megachips Corporation Image processor and camera system, image processing method, and motion picture displaying method
JP4641275B2 (en) * 2006-03-29 2011-03-02 東レエンジニアリング株式会社 Automatic visual inspection apparatus and automatic visual inspection method
JP2007263868A (en) * 2006-03-29 2007-10-11 Toray Eng Co Ltd Automatic visual inspection apparatus and automatic visual inspection method
JP2007336314A (en) * 2006-06-16 2007-12-27 Sony Corp Device and method for processing image, recording medium, and program
US8379111B2 (en) 2006-06-16 2013-02-19 Sony Corporation Image processing device, image processing method recording medium, and program
US7791662B2 (en) 2006-06-16 2010-09-07 Sony Corporation Image processing device, image processing method, recording medium, and program
JP2008064624A (en) * 2006-09-07 2008-03-21 Toyo Inspections Kk Imaging apparatus and method
US7999856B2 (en) 2007-03-12 2011-08-16 Samsung Electronics Co., Ltd. Digital image stabilization method for correcting horizontal inclination distortion and vertical scaling distortion
US7884871B2 (en) 2007-06-15 2011-02-08 Aptina Imaging Corporation Images with high speed digital frame transfer and frame processing
JP2009089037A (en) * 2007-09-28 2009-04-23 Fujifilm Corp Photographing controller, photographing control method, photographing control program and photographing device
JP2013026994A (en) * 2011-07-26 2013-02-04 Canon Inc Image measurement device, image measurement method, program and recording medium
US9105100B2 (en) 2013-02-08 2015-08-11 Samsung Electronics Co., Ltd. Motion estimation device and motion estimation method
KR20150024733A (en) * 2013-08-27 2015-03-09 삼성테크윈 주식회사 Device and Method for dewobbling
KR102003460B1 (en) * 2013-08-27 2019-07-24 한화테크윈 주식회사 Device and Method for dewobbling
CN109379536A (en) * 2018-12-29 2019-02-22 深圳看到科技有限公司 Screen generating method, device, terminal and corresponding storage medium
WO2020135577A1 (en) * 2018-12-29 2020-07-02 深圳看到科技有限公司 Picture generation method and apparatus, and terminal and corresponding storage medium
CN113470093A (en) * 2021-09-01 2021-10-01 启东市德立神起重运输机械有限公司 Video jelly effect detection method, device and equipment based on aerial image processing
CN114205525A (en) * 2021-12-02 2022-03-18 信利光电股份有限公司 Image correction method and device for roller shutter exposure and readable storage medium
CN114205525B (en) * 2021-12-02 2024-05-31 信利光电股份有限公司 Roller shutter exposure image correction method and device and readable storage medium

Similar Documents

Publication Publication Date Title
EP2981062B1 (en) Image-capturing device, solid-state image-capturing element, camera module, electronic device, and image-capturing method
CN101562704B (en) Image processing apparatus and image processing method
JP2003022440A5 (en)
US8310553B2 (en) Image capturing device, image capturing method, and storage medium having stored therein image capturing program
JP2006058945A (en) Method and device for correcting rolling shutter image
JP2009182527A (en) Method and apparatus for capturing image
US9661236B2 (en) Motion picture scanning system
JP2005045552A5 (en)
TW200917832A (en) De-parallax methods and apparatuses for lateral sensor arrays
CN106603937A (en) image stitching method and image stitching device
JP2000284363A (en) Image projecting device and method
JP2001175878A (en) Device and method for image feature extraction, monitor and inspection system, semiconductor exposure system, and interface system
JP3465264B2 (en) Apparatus and method for detecting motion of video data
TWI496465B (en) Solid-state imaging device
JP2952793B2 (en) Web meandering recognition method and apparatus
JP2841961B2 (en) Visual recognition device
JP2005309782A (en) Image processor
JP2008235958A (en) Imaging apparatus
JP2733958B2 (en) Long sheet defect inspection equipment
JP2008172606A (en) Solid-state imaging apparatus and camera system
JP4121605B2 (en) Captured image composite distortion detector
JP4752515B2 (en) Imaging device and multi-element detector sensitivity correction method
JP2007114923A (en) Image processing apparatus and method
JP2006099811A (en) Fingerprint detecting method
JP2000227962A (en) Image processor