JP2011118539A - Image processing method and image processing device - Google Patents

Image processing method and image processing device Download PDF

Info

Publication number
JP2011118539A
JP2011118539A JP2009273731A JP2009273731A JP2011118539A JP 2011118539 A JP2011118539 A JP 2011118539A JP 2009273731 A JP2009273731 A JP 2009273731A JP 2009273731 A JP2009273731 A JP 2009273731A JP 2011118539 A JP2011118539 A JP 2011118539A
Authority
JP
Japan
Prior art keywords
image processing
containers
conveyor
image
container
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.)
Granted
Application number
JP2009273731A
Other languages
Japanese (ja)
Other versions
JP5418185B2 (en
Inventor
Takayuki Matsumura
貴之 松村
Masaru Kidoguchi
賢 木戸口
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.)
Shibuya Corp
Original Assignee
Shibuya Kogyo 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 Shibuya Kogyo Co Ltd filed Critical Shibuya Kogyo Co Ltd
Priority to JP2009273731A priority Critical patent/JP5418185B2/en
Publication of JP2011118539A publication Critical patent/JP2011118539A/en
Application granted granted Critical
Publication of JP5418185B2 publication Critical patent/JP5418185B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To correctly grasp the number of containers 2 by photographing by cameras 10, 12, and counting the number of the containers 2 conveyed in a multi-lined and a random state. <P>SOLUTION: Two cameras 10, 12 installed on an imaging conveyor 6 image the containers 2 that are conveyed. A detection region G is set in the imaged image, and furthermore, a count region H is set in the detection region G. The images photographed by the cameras 10, 12 are sent to an image processing unit 18 and the containers 2 entering the count region H are counted and checked. The containers are kept checked even if the checked containers 2 are returned to the detection region J at the upstream side, so that the number of containers 2 that are conveyed can be correctly grasped by preventing the containers re-entering the count region H from being counted. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、コンベヤ上をランダムな状態で多列搬送されている物品を、カメラによって撮影して本数をカウントする技術に関し、特にカメラで撮影した画像の処理に特徴を有する画像処理方法および画像処理装置に関するものである。   The present invention relates to a technique for counting the number of articles that are conveyed in multiple rows on a conveyor in a random state by using a camera, and in particular, an image processing method and image processing characterized by processing of images captured by a camera. It relates to the device.

コンベヤ上をランダムな状態で多列で搬送されている容器をカメラによって撮影し、容器の本数をカウントする技術はすでに知られている(特許文献1参照)。   There is already known a technique in which containers conveyed in multiple rows on a conveyor in a random state are photographed by a camera and the number of containers is counted (see Patent Document 1).

特許文献1に記載された発明では、フィラー・キャッパに結合する第1幅広コンベヤは容器がランダム分布で搬送され、この第1幅広コンベヤの下流側の第2幅広コンベヤは、第1幅広コンベヤから受けた容器をコンベヤの幅と長さ方向に密接して搬送する同じ幅のコンベヤであり、さらに、第2幅広コンベヤの上方に容器計数手段となるカメラが設置された構成を有している。   In the invention described in Patent Document 1, containers are transported in a random distribution in the first wide conveyor coupled to the filler capper, and the second wide conveyor on the downstream side of the first wide conveyor is received from the first wide conveyor. The containers having the same width convey the containers in close contact with the width and length of the conveyor, and further have a configuration in which a camera serving as a container counting means is installed above the second wide conveyor.

第2幅広コンベヤの上方に設置されたCCDカメラは、第2幅広コンベヤの幅一杯の送行方向の一定長さの範囲の容器を上方から撮影することができる。そして、CCDカメラが撮影した映像を走査し、容器数を計数し、単位長さあたりの容器数に換算するようになっている。   The CCD camera installed above the second wide conveyor can photograph a container within a certain length in the feeding direction full of the width of the second wide conveyor from above. The image captured by the CCD camera is scanned, the number of containers is counted, and converted into the number of containers per unit length.

特開2006−56693号公報JP 2006-56793 A

特許文献1に記載された発明では、CCDカメラが撮影した映像を走査し、容器数を計数するというだけの構成であり、容器が不規則な動作をした場合には正確なカウントができないという問題がある。例えば、容器が密集した状態で搬送されているため、一度カメラの撮影領域に入った容器が他の容器にぶつかって撮影領域から出た後、再び撮影領域に入ってきた場合には、2回のカウントが行われることとなり容器の正確な数を測定することができないという問題が発生する。
本発明は、搬送中の容器が撮影領域で不規則な動きをした場合でも正確にカウントすることができる画像処理方法を提供することを目的とするものである。
The invention described in Patent Document 1 has a configuration in which the image taken by the CCD camera is scanned and the number of containers is counted, and there is a problem that accurate counting cannot be performed when the container performs an irregular operation. There is. For example, since the containers are transported in a dense state, a container once entering the imaging area of the camera hits another container and exits the imaging area, and then enters the imaging area twice. This causes the problem that the exact number of containers cannot be measured.
An object of the present invention is to provide an image processing method capable of accurately counting even when a container being transported moves irregularly in an imaging region.

本発明は、搬送コンベヤによって搬送されている物品を撮影手段によって上方から撮影し、この撮影手段によって得られた画像を画像処理手段によって処理して物品の本数をカウントする画像処理方法において、前記撮影手段によって撮影された画像内に、前記画像処理手段によって検出領域を設定し、さらに、この検出領域内にカウント領域を設定し、カウント領域内に存在する物品をカウントするとともに、チェックを付与し、一度チェックが付与された物品は再度カウント領域に入ってきてもカウントしないことを特徴とするものである。   The present invention provides an image processing method in which an article conveyed by a conveyor is photographed from above by an imaging means, and an image obtained by the imaging means is processed by an image processing means to count the number of articles. In the image photographed by the means, a detection area is set by the image processing means, and further, a count area is set in the detection area, the articles present in the count area are counted, and a check is given, Articles once checked are not counted even if they enter the count area again.

また、請求項2に記載の発明は、物品を搬送する搬送コンベヤと、搬送コンベヤの上方に配置されて搬送されている物品を撮影する撮影手段と、この撮影手段から得られた画像を処理する画像処理手段とを備え、前記撮影手段によって得られた画像を画像処理手段によって処理して物品の本数をカウントする画像処理装置において、前記画像処理手段は、前記撮影手段によって撮影された画像内に検出領域を設定し、さらに、この検出領域内にカウント領域を設定し、カウント領域内に存在する物品をカウントするとともに、チェックを付与し、一度チェックが付与された物品は再度カウント領域に入ってきてもカウントしないことを特徴とするものである。   According to a second aspect of the present invention, there is provided a conveyor for conveying an article, an imaging unit for imaging an article placed and conveyed above the conveyor, and an image obtained from the imaging unit. An image processing means for processing the image obtained by the photographing means by the image processing means and counting the number of articles, wherein the image processing means is included in the image photographed by the photographing means. A detection area is set, a count area is set in the detection area, articles existing in the count area are counted, a check is given, and the article once checked enters the count area again. However, they are not counted.

本発明の画像処理方法は、カウント領域内に存在する物品をカウントするとともに、チェックを付与し、カウント領域から出た物品が再度カウント領域に入ってきてもカウントしないようにしたので、搬送中の物品が不規則な動きをした場合でも、誤ってカウントすることがなく正確な数を把握することが可能である。   The image processing method according to the present invention counts articles existing in the count area, adds a check, and does not count even if articles coming out of the count area enter the count area again. Even if the article moves irregularly, it is possible to grasp an accurate number without erroneously counting.

図1は搬送コンベヤの一部を省略して示す平面図である。(実施例1)FIG. 1 is a plan view in which a part of the conveyor is omitted. Example 1 図2は図1のII−II線に沿う断面図である。FIG. 2 is a sectional view taken along line II-II in FIG. 図3は撮影手段による撮影範囲を示す説明図である。FIG. 3 is an explanatory diagram showing a photographing range by the photographing means. 図4は制御手段の構成を説明する図である。FIG. 4 is a diagram illustrating the configuration of the control means. 図5(a)、(b)は検出領域とカウント領域における物品の移動状態を説明する図である。FIGS. 5A and 5B are diagrams illustrating the movement state of articles in the detection area and the count area. 図6(a)〜(d)は検出領域とカウント領域内で不規則な動きをした物品のカウント処理を行う場合を説明する図である。FIGS. 6A to 6D are diagrams for explaining a case where the count process is performed on an article that moves irregularly in the detection area and the count area.

搬送コンベヤの上方に、このコンベヤ上を搬送される容器を撮影する撮影手段を設け、この撮影手段によって撮影された画像を画像処理手段に送って処理を行うものであり、前記画像処理手段は、撮影された画像内に検出領域を設け、さらに、この検出領域内に容器の数をカウントするカウント領域を設定し、カウント領域内に存在する容器をカウントするとともにその容器にチェックを付与するようにして、チェックを付与された容器が一度カウント領域から出て再度カウント領域に入ってきた場合でも、カウントしないようにするという構成にしたことにより、搬送される容器が不規則な動きをした場合でも正確にカウントするという目的を達成する。   Provided above the transport conveyor is a photographing means for photographing the container conveyed on the conveyor, and performs processing by sending an image photographed by the photographing means to the image processing means, A detection area is provided in the photographed image, a count area for counting the number of containers is set in the detection area, and containers existing in the count area are counted and a check is added to the container. Even if the checked container once exits the count area and enters the count area again, even if the container being transported moves irregularly, it is configured not to count. Achieve the goal of counting accurately.

以下、図面に示す実施例により本発明を説明する。図1は上流側から多数の物品(この実施例では容器2)をランダムな状態で、かつ、多列で搬送する搬送コンベヤ(全体として符号1で示す)であり、同一の搬送方向を向けて直列に配置され、同一の幅を有する供給コンベヤ4、撮影コンベヤ6およびアキュームコンベヤ8を備えている。この搬送コンベヤ1によって搬送される容器2は、例えば、上流側のフィラ(図示せず)で液体が充填され、キャッパにおいてキャッピングが行われた後、供給コンベヤ4によって搬送されて、撮影コンベヤ6に受け渡される。   Hereinafter, the present invention will be described with reference to embodiments shown in the drawings. FIG. 1 is a transport conveyor (indicated by reference numeral 1 as a whole) for transporting a large number of articles (containers 2 in this embodiment) in a random state and in multiple rows from the upstream side, and facing the same transport direction. A supply conveyor 4, an imaging conveyor 6 and an accumulation conveyor 8 which are arranged in series and have the same width are provided. The container 2 transported by the transport conveyor 1 is filled with, for example, an upstream filler (not shown), capped in the capper, and then transported by the supply conveyor 4 to the imaging conveyor 6. Delivered.

撮影コンベヤ6の上方には、この撮影コンベヤ6上の容器2を撮影する撮影手段としての2台のカメラ(第1カメラ10、第2カメラ12)が設置されている。これら2台のカメラ10、12によって、撮影コンベヤ6の幅全体と搬送方向(図1の矢印参照)に所定の長さの範囲の撮影を行う。撮影コンベヤ6上でカメラ10、12によって上方から撮影された容器2は、次のアキュームコンベヤ8に受け渡されて下流側の容器処理装置(図示せず)に送られる。また、下流側の容器処理装置がトラブル等により停止し、あるいは減速した場合には、アキュームコンベヤ8上に容器2を貯留して下流側への容器2の供給を停止し、または供給量を制御する。この実施例では、通常の運転を行っている間は、搬送コンベヤ1を構成する供給コンベヤ4、撮影コンベヤ6およびアキュームコンベヤ8の3本のコンベヤは等速で運転されており、アキューム時には各コンベヤ4、6、8の搬送速度を適宜制御する。   Two cameras (a first camera 10 and a second camera 12) are installed above the imaging conveyor 6 as imaging means for imaging the containers 2 on the imaging conveyor 6. These two cameras 10 and 12 perform imaging within a predetermined length in the entire width of the imaging conveyor 6 and in the conveying direction (see arrows in FIG. 1). The container 2 photographed from above by the cameras 10 and 12 on the photographing conveyor 6 is transferred to the next accumulation conveyor 8 and sent to a downstream container processing apparatus (not shown). Further, when the downstream container processing apparatus stops due to trouble or slows down, the container 2 is stored on the accumulator 8 and the supply of the container 2 to the downstream side is stopped or the supply amount is controlled. To do. In this embodiment, during normal operation, the three conveyors of the supply conveyor 4, the imaging conveyor 6, and the accumulator conveyor 8 constituting the conveyor 1 are operated at a constant speed. The conveyance speeds of 4, 6, and 8 are appropriately controlled.

2台のカメラ10、12は、図2に示すように、撮影コンベヤ6の上方にこの撮影コンベヤを横断する方向を向けて設置された取付体14に取り付けられている。これら2台のカメラ10、12は、後に説明するように、一部をオーバーラップさせて撮影コンベヤ6の幅全体を撮影する(図3参照)。2台のカメラ10、12で撮影された画像データは、制御装置16に送られて画像処理が行われる。なお、この実施例では、水やお茶等の液体を充填した容器2の撮影を行っており、容器本体2aは反射せずキャップ2bだけが反射して認識可能なので、キャップ2bを認識して容器2の本数をカウントするようになっている。   As shown in FIG. 2, the two cameras 10 and 12 are attached to an attachment body 14 that is installed above the imaging conveyor 6 so as to face the direction crossing the imaging conveyor. As will be described later, these two cameras 10 and 12 are partially overlapped to capture the entire width of the imaging conveyor 6 (see FIG. 3). Image data photographed by the two cameras 10 and 12 are sent to the control device 16 for image processing. In this embodiment, the container 2 filled with a liquid such as water or tea is photographed, and the container body 2a is not reflected and only the cap 2b is reflected and can be recognized. The number of 2 is counted.

制御装置16には、図4に示すように、前記カメラ10、12によって撮影された画像を処理する画像処理部18、この画像処理部18で得られた容器2の位置データ等を記憶する記憶部20、前記カメラ10、12に撮影信号を出力し、搬送されている容器2を撮影するタイミングを指示する指令部22等が設けられており、第1カメラ10および第2カメラ12の撮影した画像を画像処理部18で処理することにより、撮影コンベヤ6上を搬送されてアキュームコンベヤ8に送られた容器2の本数をカウントする。   As shown in FIG. 4, the control device 16 stores an image processing unit 18 that processes images taken by the cameras 10 and 12, and a storage that stores position data of the container 2 obtained by the image processing unit 18. A command unit 22 that outputs a shooting signal to the unit 20 and the cameras 10 and 12 and instructs the timing of shooting the container 2 being transported is provided, and is shot by the first camera 10 and the second camera 12. By processing the image by the image processing unit 18, the number of containers 2 conveyed on the imaging conveyor 6 and sent to the accumulation conveyor 8 is counted.

2台のカメラ10、12は、図3に示すように、それぞれが、撮影コンベヤ6の幅方向の一方の端部から中央部をやや越えた位置までの範囲を撮影し、これら2台のカメラ10、12によって撮影コンベヤ6の幅全体の撮影を行う。第1カメラ10が一方の端部Aから幅方向の中央を越えた位置Cまでの範囲を、そして、第2カメラ12が他方の端部Bから中央を越えた位置Dまでの範囲の撮影を行う。従って、撮影コンベヤ6の幅方向の中央付近の位置CからDまでの間は、2台のカメラ10、12によって重複して撮影される。なお、図3の上部は、2台のカメラ10、12による撮影コンベヤ6上の幅方向の撮影範囲を示す正面図であり、同図の下部は、2台のカメラ10、12のそれぞれの撮影範囲を示す平面図である。   As shown in FIG. 3, each of the two cameras 10 and 12 takes an image of a range from one end in the width direction of the imaging conveyor 6 to a position slightly beyond the center, and these two cameras 10 and 12 are used to image the entire width of the imaging conveyor 6. The first camera 10 captures a range from one end A to a position C beyond the center in the width direction, and the second camera 12 captures a range from the other end B to a position D beyond the center. Do. Accordingly, the two cameras 10 and 12 are used to capture images between positions C to D near the center in the width direction of the imaging conveyor 6. 3 is a front view showing the imaging range in the width direction on the imaging conveyor 6 by the two cameras 10 and 12, and the lower part of FIG. 3 is the imaging of the two cameras 10 and 12, respectively. It is a top view which shows a range.

2台のカメラ10、12の撮影範囲を一部重複させて配置した場合には、例えば、図3の上部に示すように、重複範囲の中央(撮影コンベヤ6の幅方向の中央)を通過する容器2B、第1カメラ10による撮影範囲の限界位置Cを通過する容器2Cおよび第2カメラ12による撮影範囲の限界位置Dを通過する容器2Aを撮影すると、両カメラ10、12の撮影範囲の限界を通過する容器2C、2Aは、キャップ2bが撮影されないので認識されず(容器2Cは第1カメラ10では認識できず第2カメラ12によって撮影されて検出可能であり、逆に、容器2Aは第2カメラ12では認識できず第1カメラ10によって撮影されて検出可能である)、中央を通過する容器2Bが各カメラ10、12の認識可能な限界となる。従って、カメラ10、12によって撮影し認識可能な範囲(A〜EおよびF〜B)の外側の領域(E〜CおよびD〜Fの領域)では、後に説明するカウント領域でも容器2のカウントを行わない。   When the shooting ranges of the two cameras 10 and 12 are partially overlapped, for example, as shown in the upper part of FIG. 3, the center of the overlapping range (the center in the width direction of the shooting conveyor 6) passes. When the container 2B, the container 2C passing through the limit position C of the shooting range by the first camera 10 and the container 2A passing through the limit position D of the shooting range by the second camera 12, are photographed, the limits of the shooting ranges of both the cameras 10 and 12 The containers 2C and 2A that pass through are not recognized because the cap 2b is not photographed (the container 2C cannot be recognized by the first camera 10, but can be photographed and detected by the second camera 12, and conversely, the container 2A The two cameras 12 cannot be recognized and can be detected by being photographed by the first camera 10), and the container 2 </ b> B passing through the center is a recognizable limit of the cameras 10 and 12. Accordingly, in the area outside the range (A to E and F to B) that can be photographed and recognized by the cameras 10 and 12 (the areas E to C and D to F), the container 2 is counted in the count area described later. Not performed.

さらに、この実施例では、2台のカメラ10、12によって撮影した画像内に、搬送されている容器2を検出する検出領域(図3および図5(a)に符号Gで示す領域)を設定し、さらにその検出領域Gの内部に、搬送される容器2をカウントするカウント領域(同図に符号Hで示す領域)を設定する。カウント領域Hは検出領域Gの内部に設定されており、このカウント領域Hの上流側と下流側にそれぞれカウント領域Hではない上流側検出領域Jと下流側検出領域Kが設けられている。   Further, in this embodiment, a detection region (region indicated by symbol G in FIGS. 3 and 5A) for detecting the container 2 being transported is set in the images taken by the two cameras 10 and 12. Further, a count area (area indicated by symbol H in the figure) for counting the containers 2 to be conveyed is set inside the detection area G. The count area H is set inside the detection area G, and an upstream detection area J and a downstream detection area K that are not the count area H are provided on the upstream and downstream sides of the count area H, respectively.

また、カメラ10、12による撮影は一定の周期毎に行われる。この撮影周期は、物品の移動量が物品のサイズよりも短くなる間隔とする。なお、この実施例では、前述のように、水やお茶等の液体を充填した容器2の撮影を行っており、容器本体2aが反射せずキャップ2bだけが反射して認識可能なので、キャップ2bを認識してカウントするようにしている。従って、カメラ10、12による撮影のタイミングも、1回の撮影をした後、容器2がキャップ2bのサイズ分だけ移動しない間に次の撮影を行うように設定されている。この撮影タイミングは、キャップの径をAmm、撮影コンベヤ6の速度をVmm/secとすると、タイミングTsec≦Amm÷Vmm/secとなるように設定する。図5(b)は、この撮影タイミングによりカメラ10、12が撮影した画像を示す図であり、破線で示す容器2(この実施例ではキャップ2b)がn回目の撮影であると、n+1回目の撮影容器2(キャップ2b)が実線で示す位置にあり、キャップ1個分移動する前に次の撮影を行うようになっている。この撮影のタイミングは、制御装置16の指令部20からカメラ10、12に対して撮影信号が出力されることにより指示される。   In addition, photographing by the cameras 10 and 12 is performed at regular intervals. This photographing cycle is an interval at which the amount of movement of the article is shorter than the size of the article. In this embodiment, as described above, the container 2 filled with a liquid such as water or tea is photographed. Since the container body 2a is not reflected and only the cap 2b is reflected, the cap 2b can be recognized. Is recognized and counted. Therefore, the timing of shooting by the cameras 10 and 12 is also set so that the next shooting is performed while the container 2 does not move by the size of the cap 2b after shooting once. The photographing timing is set to satisfy the timing Tsec ≦ Amm ÷ Vmm / sec, where the diameter of the cap is Amm and the speed of the photographing conveyor 6 is Vmm / sec. FIG. 5B is a diagram showing images taken by the cameras 10 and 12 at this photographing timing. When the container 2 (cap 2b in this embodiment) indicated by a broken line is the n-th photographing, the (n + 1) -th photographing is performed. The imaging container 2 (cap 2b) is in a position indicated by a solid line, and the next imaging is performed before moving by one cap. The timing of this shooting is instructed by outputting shooting signals from the command unit 20 of the control device 16 to the cameras 10 and 12.

両カメラ10、12によって撮影された画像は、前記制御装置16の画像処理部18に送られる。画像処理部18には、座標算出部24、移動位置認識部26およびチェック付与部28が設けられており、先ず、画像処理部18に送られた画像からキャップ2bを認識し、このキャップ2bの画像を座標算出部24で二値化処理を行いその中心座標(Xn,Yn)を算出する。算出されたキャップ2bの中心座標(Xn,Yn)は記憶部20に記憶される。さらに、次に撮影された画像が画像処理部18に送られて、座標算出部24で二値化処理を行い中心座標(Xn+1,Yn+1)が算出されると、移動位置認識部26において、この新たに算出された中心座標(Xn+1,Yn+1)を記憶部20に記憶されている前回のデータと比較し、容器2の移動位置を認識する。一定の間隔でカメラ10、12により撮影され、移動位置が認識されている容器2が、上流側検出領域Jからカウント領域Hに入ると、画像処理部18においてカウントされるとともに、チェック部28においてチェックが付与される。   Images taken by both cameras 10 and 12 are sent to the image processing unit 18 of the control device 16. The image processing unit 18 includes a coordinate calculation unit 24, a movement position recognition unit 26, and a check addition unit 28. First, the cap 2b is recognized from the image sent to the image processing unit 18, and the cap 2b The image is binarized by the coordinate calculation unit 24 to calculate the center coordinates (Xn, Yn). The calculated center coordinates (Xn, Yn) of the cap 2b are stored in the storage unit 20. Further, when the next photographed image is sent to the image processing unit 18 and binarization processing is performed by the coordinate calculation unit 24 to calculate the center coordinates (Xn + 1, Yn + 1), the movement position recognition unit 26 The newly calculated center coordinates (Xn + 1, Yn + 1) are compared with the previous data stored in the storage unit 20, and the movement position of the container 2 is recognized. When the container 2 photographed by the cameras 10 and 12 at a predetermined interval and whose movement position is recognized enters the count area H from the upstream detection area J, it is counted in the image processing section 18 and in the check section 28. A check is given.

以上の構成に係る装置による物品撮影方法について説明する。図示しない上流側の容器処理装置によって処理された多数の容器2が、供給コンベヤ4により、起立した姿勢で、多列で、かつランダムな状態で搬送される。この供給コンベヤ4から撮影コンベヤ6に乗り移った容器2は、この撮影コンベヤ6の上方に設置されている撮影手段(2台のカメラ10、12)の下方に到達すると、両カメラ10、12によって撮影される。検出領域Gに入ってきた容器2が撮影されると、その画像データが制御装置16に送られ、画像処理部18の座標算出部24で二値化処理が行われて中心座標(Xn,Yn)が算出され(図5(a)参照)、記憶部20に記憶される。カメラ10、12による撮影は、容器2(この実施例ではキャップ2bを認識しているのでキャップ2b)の径以上移動しないタイミングで繰り返し行われる。   An article photographing method using the apparatus according to the above configuration will be described. A number of containers 2 processed by an upstream container processing apparatus (not shown) are conveyed by the supply conveyor 4 in a standing posture, in multiple rows, and in a random state. When the container 2 transferred from the supply conveyor 4 to the photographing conveyor 6 reaches below the photographing means (two cameras 10 and 12) installed above the photographing conveyor 6, the two cameras 10 and 12 photograph it. Is done. When the container 2 that has entered the detection region G is photographed, the image data is sent to the control device 16, and binarization processing is performed by the coordinate calculation unit 24 of the image processing unit 18, so that the center coordinates (Xn, Yn) are processed. ) Is calculated (see FIG. 5A) and stored in the storage unit 20. Photographing by the cameras 10 and 12 is repeatedly performed at a timing that does not move more than the diameter of the container 2 (the cap 2b in this embodiment because the cap 2b is recognized).

前回(n回目)の撮影画像が図5(a)であると、次(n+1回目)の撮影は、容器2がキャップ2bの径の大きさだけ移動しないタイミングで行われる。その画像では、図5(b)に実線で示す位置にキャップ2bが移動しており、連続する2回の撮影ではキャップ2bの画像の一部が搬送方向に重なり合う状態になっている(図5(b)に破線で示すキャップ2bがn回目の画像である)。この次(n+1回目)の撮影データも、座標算出部24で二値化処理が行われ中心座標(Xn+1,Yn+1)が算出される。この中心座標(Xn+1,Yn+1)は、記憶部20に記憶されている前回の中心座標データ(Xn,Yn)と比較されて、最も中心座標の距離が近いデータとリンクされる。この実施例では、前回撮影時からの移動距離が物品(キャップ2b)の長さ(径)以下となる間隔で撮影をするように撮影手段(カメラ10、12)を制御しているので、前回の中心座標データ(Xn,Yn)と今回の中心座標データ(Xn+1,Yn+1)とを確実にリンクさせることができ、容器2の数を正確にカウントすることができる   If the previous (n-th) photographed image is shown in FIG. 5A, the next (n + 1) -th photograph is performed at a timing when the container 2 does not move by the size of the diameter of the cap 2b. In the image, the cap 2b has moved to the position indicated by the solid line in FIG. 5B, and a part of the image of the cap 2b is overlapped in the transport direction in two consecutive photographing operations (FIG. 5). The cap 2b shown by a broken line in (b) is the nth image). The next (n + 1) th shooting data is also binarized by the coordinate calculation unit 24 to calculate center coordinates (Xn + 1, Yn + 1). The center coordinates (Xn + 1, Yn + 1) are compared with the previous center coordinate data (Xn, Yn) stored in the storage unit 20 and linked to data having the closest center coordinate distance. In this embodiment, since the photographing means (cameras 10 and 12) are controlled so that the movement distance from the previous photographing is less than the length (diameter) of the article (cap 2b), Center coordinate data (Xn, Yn) and current center coordinate data (Xn + 1, Yn + 1) can be reliably linked, and the number of containers 2 can be accurately counted.

搬送されてきた容器2のキャップ2bの中心座標がカウント領域Hに入っている場合には、この容器2をカウントするとともに、チェック付与部28においてチェックを付与する(図5(b)中の十字が記されたキャップ2bA参照)。図6(a)〜(d)の各図において、横方向の直線の上部が上流側の検出領域J、下部側がカウント領域Hであり、図6(a)の状態(キャップ2bがカウント領域Hよりも上流側の検出領域Jに位置している状態)から図6(b)の状態(キャップ2bがカウント領域Hに入った状態)になると、この容器2をカウントするとともに、チェックを付与する(チェックを付与した状態を十字で示す)。そして、この容器2が他の容器2にぶつかる等の原因によって、再びカウント領域Hの上流側の検出領域Jに戻ってしまった場合でも、キャップ2b(2bA)に付与されたチェックは外さない(図6(c)参照)。この容器2は、その後、再度カウント領域Hに入るが、チェックがついているのでカウントしない。このように初めてカウント領域Hに入ってカウントされた容器2が、一度上流側に戻った後、再度カウント領域Hに入った場合でも、一度カウントされた容器2のキャップ2bにはチェックがついているので(図5(b)および図6の符号2bAで示すキャップ参照)、再度カウントされるおそれはなく、搬送される容器2の数を正確にカウントすることができる。なお、カウント領域Hに入ってカウントされた容器2が、一度下流側の検出領域Kに搬送された後、再度カウント領域Hに戻った場合でも、上流側の検出領域Jに戻ってしまった場合と同様に再度カウントされることはない。また、前記実施例では、検出領域全体Gの中央部にカウント領域Hを設定し、その上流側と下流側にそれぞれカウントをしない領域J、Kを設定したが、必ずしもこのような構成に限定されるものではなく、例えば、検出領域全体の上流側にカウント領域を設定し、下流側にカウントをしない領域を設定してもよく、また、検出領域全体の下流側にカウント領域を設定し、上流側にカウントをしない領域を設定するようにしてもよい。   When the center coordinates of the cap 2b of the container 2 that has been conveyed are within the count area H, the container 2 is counted and a check is given by the check giving unit 28 (the cross in FIG. 5B). (Refer to the cap 2bA). 6A to 6D, the upper side of the horizontal straight line is the detection area J on the upstream side, the lower side is the count area H, and the state shown in FIG. 6A (the cap 2b is the count area H). 6B (a state where the cap 2b enters the count area H) is changed to a state where the container 2 is counted and a check is given. (Check mark is shown with a cross). Even if the container 2 hits another container 2 and returns to the detection area J upstream of the count area H, the check given to the cap 2b (2bA) is not removed ( (Refer FIG.6 (c)). The container 2 then enters the count area H again, but does not count because it is checked. Thus, even when the container 2 counted for the first time in the count area H returns to the upstream side once and then enters the count area H again, the cap 2b of the container 2 once counted is checked. Therefore (see the cap indicated by reference numeral 2bA in FIG. 5B and FIG. 6), there is no fear of being counted again, and the number of containers 2 to be conveyed can be accurately counted. When the container 2 counted in the count area H is once transported to the downstream detection area K and then returned to the count area H again, it returns to the upstream detection area J. Will not be counted again. In the above embodiment, the count area H is set at the center of the entire detection area G, and the areas J and K that are not counted are set on the upstream side and the downstream side, respectively. For example, a count area may be set on the upstream side of the entire detection area, and a non-counting area may be set on the downstream side, or a count area may be set on the downstream side of the entire detection area and An area not counted may be set on the side.

G 検出領域
H カウント領域
1 搬送コンベヤ
2 容器
10 撮影手段(第1カメラ)
12 撮影手段(第2カメラ)
18 画像処理手段(画像処理部)
G detection area H count area 1 transport conveyor 2 container 10 imaging means (first camera)
12 Shooting means (second camera)
18 Image processing means (image processing unit)

Claims (2)

搬送コンベヤによって搬送されている物品を撮影手段によって上方から撮影し、この撮影手段によって得られた画像を画像処理手段によって処理して物品の本数をカウントする画像処理方法において、
前記撮影手段によって撮影された画像内に、前記画像処理手段によって検出領域を設定し、さらに、この検出領域内にカウント領域を設定し、カウント領域内に存在する物品をカウントするとともに、チェックを付与し、一度チェックが付与された物品は再度カウント領域に入ってきてもカウントしないことを特徴とする画像処理方法。
In an image processing method for photographing an article being conveyed by a conveyer from above by an imaging unit, processing an image obtained by the imaging unit by an image processing unit, and counting the number of articles,
In the image photographed by the photographing means, a detection area is set by the image processing means, and further, a count area is set in the detection area, and an article existing in the count area is counted and a check is added. An article that has been checked once is not counted even if it enters the count area again.
物品を搬送する搬送コンベヤと、搬送コンベヤの上方に配置されて搬送されている物品を撮影する撮影手段と、この撮影手段から得られた画像を処理する画像処理手段とを備え、前記撮影手段によって得られた画像を画像処理手段によって処理して物品の本数をカウントする画像処理装置において、
前記画像処理手段は、前記撮影手段によって撮影された画像内に検出領域を設定し、さらに、この検出領域内にカウント領域を設定し、カウント領域内に存在する物品をカウントするとともに、チェックを付与し、一度チェックが付与された物品は再度カウント領域に入ってきてもカウントしないことを特徴とする画像処理装置。
A conveyance conveyor for conveying the article, an imaging unit for imaging the article arranged and conveyed above the conveyor, and an image processing unit for processing an image obtained from the imaging unit. In the image processing apparatus that processes the obtained image by the image processing means and counts the number of articles,
The image processing means sets a detection area in the image photographed by the photographing means, further sets a count area in the detection area, counts articles present in the count area, and gives a check The image processing apparatus is characterized in that an article once checked is not counted even if it enters the count area again.
JP2009273731A 2009-12-01 2009-12-01 Image processing method and image processing apparatus Active JP5418185B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009273731A JP5418185B2 (en) 2009-12-01 2009-12-01 Image processing method and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009273731A JP5418185B2 (en) 2009-12-01 2009-12-01 Image processing method and image processing apparatus

Publications (2)

Publication Number Publication Date
JP2011118539A true JP2011118539A (en) 2011-06-16
JP5418185B2 JP5418185B2 (en) 2014-02-19

Family

ID=44283812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009273731A Active JP5418185B2 (en) 2009-12-01 2009-12-01 Image processing method and image processing apparatus

Country Status (1)

Country Link
JP (1) JP5418185B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03125272A (en) * 1989-10-09 1991-05-28 Fuji Electric Co Ltd Image pickup device
JPH08221578A (en) * 1995-02-20 1996-08-30 Fujitsu General Ltd Moving object counter
JPH1063861A (en) * 1996-08-21 1998-03-06 Nippon Telegr & Teleph Corp <Ntt> Device for counting mobile object
JP2003083718A (en) * 2001-09-14 2003-03-19 Mitsubishi Electric Engineering Co Ltd Visual inspection system for high-speed moving body

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03125272A (en) * 1989-10-09 1991-05-28 Fuji Electric Co Ltd Image pickup device
JPH08221578A (en) * 1995-02-20 1996-08-30 Fujitsu General Ltd Moving object counter
JPH1063861A (en) * 1996-08-21 1998-03-06 Nippon Telegr & Teleph Corp <Ntt> Device for counting mobile object
JP2003083718A (en) * 2001-09-14 2003-03-19 Mitsubishi Electric Engineering Co Ltd Visual inspection system for high-speed moving body

Also Published As

Publication number Publication date
JP5418185B2 (en) 2014-02-19

Similar Documents

Publication Publication Date Title
US10102645B2 (en) Method and apparatus for counting and aggregating a pre-determined number of articles
JP6734306B2 (en) Article transport system and robot system
JP2013137754A5 (en)
WO2000033024A1 (en) Information reader
CN109108959B (en) Robot system
EP1057545B1 (en) Automatic inspecting apparatus by image processing
US10882701B2 (en) Method and apparatus for detecting faults during object transport
JP2015030566A (en) Speed detection device for part feeder, and part feeder
JP2011088741A (en) Vessel carrying device
EP2755006A1 (en) Container liquid leak inspection device
TW568872B (en) Component appearance inspection device
CN114632722B (en) Pickup device
JP2019069459A5 (en)
JP5418185B2 (en) Image processing method and image processing apparatus
JP2011117772A (en) Method and apparatus for photographing article
CN105270688B (en) A kind of Electroniccountinggrainmachine of view-based access control model monitoring
JP6373225B2 (en) Article processing equipment
JP2007033328A (en) Image processing method and picking operation correcting method using the same
JP5554312B2 (en) Article arrangement inspection method and article arrangement inspection apparatus
TW201522085A (en) The anti-jam automatic document feeder
JP6669818B2 (en) Foreign matter inspection device and foreign matter inspection method
KR101582896B1 (en) Apparatus for inspecting state of atached element
CN216728312U (en) Tank body code-free detection device
JP4152128B2 (en) Inspection equipment for rectangular parallelepiped articles
JP5811348B2 (en) Article conveying device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120725

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131022

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131104

R150 Certificate of patent or registration of utility model

Ref document number: 5418185

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150