JP6334215B2 - Image processing system, image processing method, and image processing program - Google Patents

Image processing system, image processing method, and image processing program Download PDF

Info

Publication number
JP6334215B2
JP6334215B2 JP2014049038A JP2014049038A JP6334215B2 JP 6334215 B2 JP6334215 B2 JP 6334215B2 JP 2014049038 A JP2014049038 A JP 2014049038A JP 2014049038 A JP2014049038 A JP 2014049038A JP 6334215 B2 JP6334215 B2 JP 6334215B2
Authority
JP
Japan
Prior art keywords
imaging
image processing
background
image
circuit
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.)
Expired - Fee Related
Application number
JP2014049038A
Other languages
Japanese (ja)
Other versions
JP2015173410A (en
Inventor
博 村井
博 村井
Original Assignee
地方独立行政法人青森県産業技術センター
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 地方独立行政法人青森県産業技術センター filed Critical 地方独立行政法人青森県産業技術センター
Priority to JP2014049038A priority Critical patent/JP6334215B2/en
Publication of JP2015173410A publication Critical patent/JP2015173410A/en
Application granted granted Critical
Publication of JP6334215B2 publication Critical patent/JP6334215B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、ベルトコンベアのような搬送帯の上に撮像対象物が搭載された場合、搬送帯のパターンを画像データから消去し、撮像対象物の位置及び大きさを認識する画像処理システム、画像処理方法及び画像処理プログラムに関する。   The present invention relates to an image processing system that recognizes the position and size of an imaging object by erasing the pattern of the transportation band from image data when the imaging object is mounted on a conveyance band such as a belt conveyor. The present invention relates to a processing method and an image processing program.

生鮮物の自動加工処理装置等においては、耐久性、滑りにくさ、水の溜まりの抑制などの観点から、生鮮物を搭載し搬送するためのベルトコンベアに金属網等を使うことがある。金属網等の孔の開いた形態のベルトコンベアを用意し、ベルトコンベアの背景から処理対象物を抽出する手法として、金網に何らかの色の塗装を施してベルトコンベアと処理対象物の光学的特性を異なるものにするアイデアがある。しかしながら、食品衛生の観点からベルトコンベアに塗装を施すことは許されないことがある。   In an apparatus for automatically processing fresh food, etc., a metal net or the like is sometimes used for a belt conveyor for carrying and transporting fresh food from the viewpoints of durability, resistance to slipping, and suppression of water accumulation. As a method of preparing a belt conveyor with a hole in the form of a metal mesh and extracting the object to be processed from the background of the belt conveyor, the wire mesh is coated with some color and the optical characteristics of the belt conveyor and the object to be processed are determined. I have an idea to make it different. However, it may not be allowed to paint the belt conveyor from the viewpoint of food hygiene.

更に無塗装の金網は無彩色であるが、処理対象物も同様に無彩色の場合も発生する。このような状況では一般的な輝度情報を基にした2値化処理などではベルトコンベアと処理対象物を識別することは極めて困難である。
一方、檻やネット越しに撮像対象物が存在する場合に撮像対象物のみを撮影する画像処理装置として、画像データの中から画像中に存在する2次元的に繰り返される繰り返しパターンを検出し、繰り返しパターンを画像から消去し、更に、画像から消去した繰り返しパターンの周辺画素を用いて、繰り返しパターンの領域に対し画素を補間する発明が提案されている(特許文献1参照。)
Further, although the unpainted wire mesh is achromatic, the object to be processed is also achromatic. In such a situation, it is extremely difficult to identify the belt conveyor and the object to be processed by binarization processing based on general luminance information.
On the other hand, as an image processing apparatus that captures only an imaging target when there is an imaging target over a bag or the net, a two-dimensionally repeated pattern existing in the image is detected from the image data, and repeated An invention has been proposed in which a pattern is erased from an image and pixels are interpolated with respect to a region of the repetitive pattern using peripheral pixels of the repetitive pattern erased from the image (see Patent Document 1).

しかしながら、特許文献1に記載された発明では、画像データに対応する画像の中から撮像対象物よりも撮像装置(カメラ)に近い側に、撮像の障害物として撮像対象物の上に存在する直線及び/又は曲線からなるパターンを検出している。具体的には、金網検知用テンプレート記憶部から金網パターンを示す金網検知用テンプレートを取得し、取得した金網検知用テンプレートを用いてテンプレートマッチング等により、画像の中から直線及び/又は曲線からなるパターンを2次元的に繰り返される繰り返しパターンを検出している。特許文献1に記載された発明は、檻やネットよりも撮像装置から遠い側に撮像対象物が障害物として存在する場合には有効であるが、ベルトコンベアの上に撮像対象物が搭載されているように、撮像対象物の方が撮像装置に近い場合は、背景像として存在する金属網の繰り返しパターンは撮像対象物の陰になり、直線及び/又は曲線からなるパターンが、撮像対象物が占める面積の箇所では、消滅しているので、撮像対象物の相対的面積が大きい場合は、有効な繰り返しパターンの検出ができなくなる。   However, in the invention described in Patent Document 1, a straight line existing on the imaging target as an imaging obstacle on the side closer to the imaging device (camera) than the imaging target in the image corresponding to the image data. And / or a pattern consisting of a curve is detected. Specifically, a wire mesh detection template indicating a wire mesh pattern is acquired from the wire mesh detection template storage unit, and a pattern consisting of a straight line and / or a curve from an image is obtained by template matching using the acquired wire mesh detection template. Is detected in a two-dimensionally repeated pattern. The invention described in Patent Document 1 is effective when the imaging object is present as an obstacle on the side farther from the imaging device than the bag or the net, but the imaging object is mounted on the belt conveyor. As shown, when the object to be imaged is closer to the image capturing apparatus, the repetitive pattern of the metal net that exists as the background image is behind the object to be imaged, and the pattern consisting of straight lines and / or curves is Since the portion of the occupied area has disappeared, if the relative area of the object to be imaged is large, it becomes impossible to detect an effective repetitive pattern.

又、ベルトコンベアとして用いている金属網の上に一定の重量を有する撮像対象物が搭載された場合、撮像対象物の重量により、撮像対象物が搭載された箇所で金属網が撓むため、撮像対象物の近傍において金属網の周期性が乱れる。このため、撮像対象物に一番近い箇所での金属網の繰り返しパターンの消去が困難になる問題があった。又、特にホタテ、サバ、イカ等の魚介類等の生鮮物が撮像対象物である場合は、ベルトコンベアに水滴が付着して、水滴が付着した箇所での金属網の周期性が乱れるので、金属網の繰り返しパターンの消去が困難になる問題があった。   In addition, when an imaging object having a certain weight is mounted on a metal net used as a belt conveyor, the metal net bends at the location where the imaging object is mounted due to the weight of the imaging object. The periodicity of the metal net is disturbed in the vicinity of the imaging object. For this reason, there has been a problem that it becomes difficult to erase the repetitive pattern of the metal net at the location closest to the imaging object. Also, especially when fresh products such as scallops, mackerel, squid and other fish and shellfish are imaging objects, water droplets adhere to the belt conveyor, and the periodicity of the metal net at the location where the water droplets are attached is disturbed. There was a problem that it was difficult to erase the repeated pattern of the metal net.

以上のように、特に、生鮮物を含む処理対象物を撮像対象物とする状況において、金属網等の孔が開いたベルトコンベアで撮像対象物が搬送される場合において、撮像対象物と撮像対象物の背景としてのベルトコンベアのパターンの像とを識別することが困難であった。   As described above, in particular, in a situation where a processing object including fresh food is an imaging object, when the imaging object is transported by a belt conveyor having a hole such as a metal net, the imaging object and the imaging object It was difficult to distinguish the pattern image of the belt conveyor as the background of the object.

特開2013−55378号公報JP 2013-55378 A

上記事情を鑑み、本発明は、撮像対象物の方が撮像装置に近い配置関係となるように撮像対象物が水平方向に走行する網目状の搬送帯の上に搭載された状況において、背景側に位置する搬送帯のパターンを消去して、撮像対象物の位置及び大きさを正確に認識できる画像処理システム、画像処理方法及び画像処理プログラムを提供することを目的とする。   In view of the above circumstances, the present invention provides a background side in a situation where the imaging object is mounted on a mesh-like transport belt that travels in the horizontal direction so that the imaging object is closer to the imaging device. It is an object of the present invention to provide an image processing system, an image processing method, and an image processing program capable of erasing the pattern of the transport belt located at the position and accurately recognizing the position and size of the imaging object.

上記目的を達成するために、本発明の第1の態様は、(a)撮像対象物を上面に搭載して搬送する網目状の搬送帯と、(b)搬送帯の上方に配置され、撮像対象物の全景を含む領域を撮像する撮像装置と、(c)搬送帯の下方に配置され、搬送帯及び撮像対象物とは、明度、色相又は色度の少なくともいずれかが異なる光学特性の背景板と、(d)撮像装置に接続され、撮像装置から出力される画像データから、撮像対象物の周りに写り込まれている搬送帯の網目のパターンを消去して、撮像対象物の重心位置及び大きさを算出する画像処理装置とを備える画像処理システムであることを要旨とする。   In order to achieve the above object, according to a first aspect of the present invention, there is provided (a) a mesh-shaped transport band on which an imaging target is mounted and transported, and (b) disposed above the transport band. An imaging device that captures an area including the entire view of the object; and (c) a background having optical characteristics that is arranged below the transport band, and at least one of brightness, hue, or chromaticity is different from the transport band and the imaging target object. The center of gravity position of the imaging object by erasing the mesh pattern of the carrier band reflected around the imaging object from the image data output from the imaging apparatus and (d) imaging device connected to the board And an image processing system including an image processing device that calculates a size.

本発明の第2の態様は、(a)網目状の搬送帯の上面に撮像対象物を搭載し、搬送帯の下方に搬送帯及び撮像対象物とは、明度、色相又は色度の少なくともいずれかが異なる光学特性の背景板を配置し、搬送帯の上方に配置された撮像装置によって、撮像対象物の全景を含む領域を撮像するステップと、(b)撮像装置から出力される画像データから、撮像対象物の周りに写り込まれている搬送帯の網目のパターンを消去して、撮像対象物の重心位置及び大きさを算出するステップとを含む画像処理方法であることを要旨とする。   According to a second aspect of the present invention, (a) an imaging target is mounted on the upper surface of a mesh-shaped transporting band, and the transporting band and the imaging target are at least one of brightness, hue, and chromaticity below the transporting band. A step of imaging a region including the entire view of the object to be imaged by an imaging device arranged with a background plate having different optical characteristics and arranged above the transport band, and (b) from image data output from the imaging device The gist of the present invention is that the image processing method includes a step of erasing the mesh pattern of the transport band reflected around the imaging object and calculating the position and size of the center of gravity of the imaging object.

本発明の第2の態様で述べた画像処理方法を実現するためのコンピュータソフトウェアプログラムは、コンピュータ読取り可能な記録媒体に保存し、この記録媒体をコンピュータシステムによって読み込ませることにより、本発明の画像処理方法を実行することができる。
即ち、本発明の第3の態様は、(a)網目状の搬送帯の上面に撮像対象物を搭載し、搬送帯の下方に搬送帯及び撮像対象物とは、明度、色相又は色度の少なくともいずれかが異なる光学特性の背景板を配置し、搬送帯の上方に配置された撮像装置に対し、撮像対象物の全景を含む領域を撮像させる命令と、(b)画像処理装置に対し、撮像装置から出力される画像データから、撮像対象物の周りに写り込まれている搬送帯の網目のパターンを消去させ、撮像対象物の重心位置及び大きさを算出させる命令とを含む一連の命令を画像処理装置を備えるコンピュータシステムに実行させる画像処理プログラムであることを要旨とする。ここで、「記録媒体」とは、例えばコンピュータの外部メモリ装置、半導体メモリ、磁気ディスク、光ディスク、光磁気ディスク、磁気テープなどのプログラムを記録することができるような媒体などを意味する。具体的には、フレキシブルディスク、CD−ROM,MOディスク、カセットテープ、オープンリールテープなどが「記録媒体」に含まれる。
The computer software program for realizing the image processing method described in the second aspect of the present invention is stored in a computer-readable recording medium, and this recording medium is read by a computer system, whereby the image processing of the present invention is performed. The method can be carried out.
That is, according to the third aspect of the present invention, (a) an imaging target is mounted on the upper surface of a mesh-shaped transport band, and the transport band and the imaging target have a lightness, hue, or chromaticity below the transport band. At least one of the background plates having different optical characteristics is arranged, and an instruction for imaging an area including the entire view of the imaging target for the imaging device arranged above the transport zone, and (b) the image processing device, A series of instructions including an instruction to erase the pattern of the mesh of the transport band reflected around the imaging object from the image data output from the imaging apparatus, and to calculate the position and size of the center of gravity of the imaging object Is an image processing program that causes a computer system including an image processing apparatus to execute the above. Here, the “recording medium” means a medium capable of recording a program such as an external memory device of a computer, a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, and a magnetic tape. Specifically, the “recording medium” includes a flexible disk, a CD-ROM, an MO disk, a cassette tape, an open reel tape, and the like.

本発明によれば、撮像対象物の方が撮像装置に近い配置関係となるように撮像対象物が水平方向に走行する網目状の搬送帯の上に搭載された状況において、背景側に位置する搬送帯のパターンを消去して、撮像対象物の位置及び大きさを正確に認識できる画像処理システム、画像処理方法及び画像処理プログラムを提供することができる。   According to the present invention, the imaging object is positioned on the background side in a situation where the imaging object is mounted on a mesh-like transport belt that travels in the horizontal direction so that the imaging object is closer to the imaging device. It is possible to provide an image processing system, an image processing method, and an image processing program capable of erasing the pattern of the transport band and accurately recognizing the position and size of the imaging target.

本発明の第1の実施の形態に係る画像処理システムの主要部の概略を説明する模式的な鳥瞰ブロック図である。It is a typical bird's-eye block diagram explaining the outline of the principal part of the image processing system which concerns on the 1st Embodiment of this invention. 第1の実施の形態に係る画像処理システムに用いられる画像処理装置の内部構造を、論理的なハードウェア資源の組み合わせとして概念的に説明する図である。It is a figure which illustrates notionally the internal structure of the image processing apparatus used for the image processing system which concerns on 1st Embodiment as a combination of a logical hardware resource. 本発明の第1の実施の形態に係る画像処理方法の一例を説明する概念的なフローチャートである。It is a notional flow chart explaining an example of an image processing method concerning a 1st embodiment of the present invention. 第1の実施の形態に係る画像処理方法において、撮像データ受信回路が撮像装置から受信し、取得した撮像対象物を含む撮像データの一例を示す図である。In an image processing method concerning a 1st embodiment, an imaging data receiving circuit is a figure showing an example of imaging data containing an imaging subject received and acquired from an imaging device. 図4に対応する撮像対象物を含む撮像データを、説明の便宜上、拡大した矩形の画素(ピクセル)によって模式的に誇張表現する図である。FIG. 5 is a diagram schematically illustrating exaggerated imaging data including an imaging target corresponding to FIG. 4 with enlarged rectangular pixels for convenience of explanation. RGB色空間とHSV色空間の関係を説明する図である。It is a figure explaining the relationship between RGB color space and HSV color space. 第1の実施の形態に係る画像処理方法におけるRGB色空間のデータからHSV色空間のデータへの変換を説明する模式図である。It is a schematic diagram explaining conversion from RGB color space data to HSV color space data in the image processing method according to the first embodiment. 第1の実施の形態に係る画像処理方法における2値化の処理に必要なHSV色空間における閾値を説明する図である。It is a figure explaining the threshold value in HSV color space required for the binarization process in the image processing method according to the first embodiment. 第1の実施の形態に係る画像処理方法における背景領域における各画素の2値化の処理を説明する模式図である。It is a schematic diagram explaining the binarization process of each pixel in the background area in the image processing method according to the first embodiment. 第1の実施の形態に係る画像処理方法における膨張処理前の画像を示す模式図である。It is a schematic diagram which shows the image before the expansion process in the image processing method which concerns on 1st Embodiment. 第1の実施の形態に係る画像処理方法における膨張処理後の画像を示す模式図である。It is a schematic diagram which shows the image after the expansion process in the image processing method which concerns on 1st Embodiment. 図12(a)は偶発的なノイズがある場合の画像で、図12(b)は図12(a)に対し縮小処理をして、背景部のパタンーンを縮小した状態を説明する図である。12A is an image in the case where there is an accidental noise, and FIG. 12B is a diagram for explaining a state in which the background pattern is reduced by performing the reduction process on FIG. 12A. . 図13(a)は、図12(a)の画像に対し、直接膨張処理をすることにより、偶発的なノイズの領域が拡大されることを説明する図で、図13(b)は図12(a)に対し、先に縮小処理をしてから膨張処理をする手順を繰り返すことにより、搬送帯のパターンが消去されることを説明する図である。FIG. 13A is a diagram for explaining that the area of accidental noise is enlarged by directly expanding the image of FIG. 12A, and FIG. It is a figure explaining that the pattern of a conveyance belt is erase | eliminated by repeating the procedure which performs an expansion process after performing a reduction process previously with respect to (a). 収縮処理で消滅しない背景領域の大きさを説明するために、5×5の画素領域を示す図である。It is a figure which shows a 5 * 5 pixel area | region in order to demonstrate the magnitude | size of the background area | region which does not lose | disappear with shrinkage | contraction processing. 図15(a)は、図14のXV−XV方向(X方向)に1次元だけ取り出した場合の彩度の強度分布を説明する図で、図15(b)は、図15(a)のような彩度の強度分布がある場合、揺らぎによる2値化の境界のずれがあり、更に左右で2ピクセル幅分が収縮処理により消えることを説明する図である。FIG. 15A is a diagram for explaining the intensity distribution of saturation when only one dimension is extracted in the XV-XV direction (X direction) of FIG. 14, and FIG. 15B is a diagram of FIG. 15A. When there is such an intensity distribution of saturation, there is a shift in the binarization boundary due to fluctuation, and further, it is a diagram for explaining that the two-pixel width on the left and right disappears by the contraction process. 第1の実施の形態に係る画像処理方法において、背景板を示す画素を"1"に符号化し、撮像対象物の像と網状搬送帯の網目のパターンとを合成した背景以外の領域(非背景領域)を示す画素を"0"に符号化した段階の画像を説明する模式図である。In the image processing method according to the first embodiment, a pixel other than the background (non-background) in which the pixel indicating the background plate is encoded as “1” and the image of the imaging target and the mesh pattern of the mesh-like transport belt are synthesized. It is a schematic diagram explaining the image of the stage which encoded the pixel which shows (area | region) to "0". 第1の実施の形態に係る画像処理方法において、背景板を示す画素と、網状搬送帯の網目のパターンを示す画素が、共に"1"に符号化されて、網状搬送帯の網目のパターンが消去された段階の画像を説明する模式図である。In the image processing method according to the first embodiment, the pixels indicating the background plate and the pixels indicating the mesh pattern of the mesh transport band are both encoded as “1”, so that the mesh pattern of the mesh transport band is It is a schematic diagram explaining the image of the erased stage. 図17の模式図に対応する、現実の網状搬送帯の網目のパターンが消去された段階の画像を説明する図である。It is a figure explaining the image of the stage in which the mesh pattern of the actual reticulated conveyance belt corresponding to the schematic diagram of Drawing 17 was erased. 第1の実施の形態に係る画像処理方法において、撮像対象物を示す、画素値"0"に符号化された画素が占有している画素領域のX方向の重心位置とY方向の重心位置を決定し、画素値"0"に符号化された画素が占有している画素領域の画素数を算出し、更に画素値"0"に符号化された画素が占有している領域の半径を算出する段階の画像を説明する模式図である。In the image processing method according to the first embodiment, the centroid position in the X direction and the centroid position in the Y direction of the pixel region occupied by the pixel encoded with the pixel value “0” indicating the imaging target are determined. Determine the number of pixels in the pixel area occupied by the pixel encoded with pixel value “0”, and further calculate the radius of the area occupied by the pixel encoded with pixel value “0” It is a schematic diagram explaining the image of the stage to do. 図19の模式図の段階に対応する、現実の画像における重心位置の決定、画素数の算出、半径の算出の処理を説明する図である。It is a figure explaining the process of determination of the gravity center position in an actual image, calculation of the number of pixels, and calculation of a radius corresponding to the stage of the schematic diagram of FIG. 本発明の他の実施の形態に係る画像処理システムに用いられる画像処理装置の一例として、画像処理装置の内部構造の一部をフィールド・プログラマブル・ゲート・アレイ(FPGA)で構成した場合の構造を例示するブロック図である。As an example of an image processing apparatus used in an image processing system according to another embodiment of the present invention, a structure in which a part of the internal structure of the image processing apparatus is configured by a field programmable gate array (FPGA). It is a block diagram illustrated.

次に、図面を参照して、本発明の第1の実施の形態を説明する。以下の図面の記載において、同一又は類似の部分には同一又は類似の符号を付している。ただし、図面は模式的なものであり、具体的な厚みや寸法は以下の説明を参酌して判断すべきものである。又、図面相互間においても互いの寸法の関係や比率が異なる部分が含まれていることは勿論である。   Next, a first embodiment of the present invention will be described with reference to the drawings. In the following description of the drawings, the same or similar parts are denoted by the same or similar reference numerals. However, the drawings are schematic, and specific thicknesses and dimensions should be determined in consideration of the following description. Moreover, it is a matter of course that portions having different dimensional relationships and ratios are included between the drawings.

又、以下に示す第1の実施の形態は、本発明の技術的思想を具体化するための装置や方法を例示するものであって、本発明の技術的思想は、符号化のビット数、構成部品の材料、形状、構造、配置等を下記のものに特定するもので
ない。例えば、以下の説明では、8ビット=256階調の色空間における処理を説明するが、例示に過ぎず、10ビットによる符号化やプラス・マイナスの符号化の処理であっても、本発明の技術的思想が適用可能であることは勿論である。更に、以下に示す第1の実施の形態においては、説明の便宜上、撮像対象物17の外径が円形で近似できる場合について例示的に説明するが、撮像対象物17の形状は円形以外のいかなる形状であっても構わないことも勿論である。このように、本発明の技術的思想は、特許請求の範囲に記載された請求項が規定する技術的範囲内において、種々の変更を加えることができる。
The first embodiment shown below exemplifies an apparatus and method for embodying the technical idea of the present invention, and the technical idea of the present invention is the number of bits for encoding, The material, shape, structure, arrangement, etc. of the component parts are not specified as follows. For example, in the following description, processing in a color space of 8 bits = 256 gradations is described. However, the processing is merely an example, and even in the case of 10-bit encoding or plus / minus encoding processing, Of course, technical ideas are applicable. Furthermore, in the first embodiment described below, for convenience of explanation, a case where the outer diameter of the imaging target 17 can be approximated by a circle will be described as an example, but the shape of the imaging target 17 is any shape other than a circle. Of course, it may be a shape. Thus, the technical idea of the present invention can be variously modified within the technical scope defined by the claims set forth in the claims.

(画像処理システムの構成)
本発明の第1の実施の形態に係る画像処理システムは、図1に示すように、撮像対象物17を水平な主面の上面に搭載して搬送する網目状の搬送帯11と、搬送帯11の上方に配置され、撮像対象物17の全景を含む領域を撮像する撮像装置22と、搬送帯11の下方に配置され、搬送帯11及び撮像対象物17とは、明度、色相又は色度の少なくともいずれかが異なる光学特性の背景板15と、撮像装置22に接続され、撮像装置22から出力される画像データから、撮像対象物17の周りに写り込まれている搬送帯11の網目のパターンを消去して撮像対象物17の重心位置及び大きさを算出する画像処理装置23とを備えるコンピュータシステムである。画像処理装置23は、特許文献1に記載された発明のように、画像パターンの周期性を抽出して、搬送帯11の網目状のパターンを除去するのではなく、撮像対象物17と搬送帯11の網目のパターンの相対的な大きさや太さの違い、或いは撮像装置22から出力された画像データ全体の大域的な均一性に立脚して、搬送帯11の網目のパターンを抽出して消去している。撮像対象物17には、水分を含んだホタテ、サバ、イカ等の魚介類や野菜等の生鮮物の他、加工済みの食品、工業製品の種々の物体が代表例として含まれる。
(Configuration of image processing system)
As shown in FIG. 1, the image processing system according to the first embodiment of the present invention includes a mesh-like transport band 11 that transports an imaging target 17 mounted on the upper surface of a horizontal main surface, and a transport band. 11, an imaging device 22 that captures an area including the entire view of the imaging target 17, and a transportation band 11 and the imaging target 17 that are arranged below the transportation band 11 are lightness, hue, or chromaticity. Are connected to the imaging device 22 and image data output from the imaging device 22, and the mesh of the transport belt 11 reflected around the imaging target 17. This is a computer system including an image processing device 23 that erases the pattern and calculates the position and size of the center of gravity of the imaging target 17. The image processing apparatus 23 does not extract the periodicity of the image pattern and remove the mesh pattern of the transport band 11 as in the invention described in Patent Document 1, but the imaging object 17 and the transport band. The mesh pattern of the transport band 11 is extracted and erased based on the difference in the relative size and thickness of the mesh pattern of 11 or the global uniformity of the entire image data output from the imaging device 22. doing. Representative examples of the imaging object 17 include various objects such as processed foods and industrial products, as well as fresh seafood such as scallops, mackerel, and squid containing water, and fresh products such as vegetables.

図1においては、搬送帯11と撮像装置22の間に矩形の枠状をなす透過型の光源21が配置されている。図1に示すとおり、主面を水平にして水平方向に走行する搬送帯11の下に搬送帯11とも撮像対象物17とも明度、色相又は色度の少なくともいずれかが異なる光学特性を呈する素材を背景板15として水平方向に敷かれている。図1に示す構成では搬送帯11に高さ方向の厚みがあったり、撮像対象物17が水に濡れた状態であったりすることを想定すると、画像処理装置23に入力される撮像対象物17の画像情報に影や光沢反射が映らないような留意が必要である。このため、光源21は、通常のLED光源ではなく、矩形の額縁形状により、撮像対象物17が含まれる撮像範囲全体を様々な方向のベクトルを持った光で包むことで、撮像対象物17に影と光沢を発生させないように設定されている。   In FIG. 1, a transmissive light source 21 having a rectangular frame shape is disposed between the transport band 11 and the imaging device 22. As shown in FIG. 1, a material exhibiting optical characteristics in which at least one of lightness, hue, and chromaticity is different from the conveyance band 11 and the imaging target object 17 below the conveyance band 11 that travels in the horizontal direction with the main surface horizontal. A background plate 15 is laid horizontally. In the configuration illustrated in FIG. 1, when it is assumed that the transport belt 11 has a thickness in the height direction or the imaging target 17 is in a wet state, the imaging target 17 input to the image processing device 23. It is necessary to pay attention so that no shadows or glossy reflections appear in the image information. For this reason, the light source 21 is not a normal LED light source but a rectangular frame shape that wraps the entire imaging range including the imaging object 17 with light having vectors in various directions, so that the imaging object 17 It is set not to generate shadows and gloss.

搬送帯11の右側には、円筒状形状をなし回転することにより、搬送帯11をベルトコンベアとして水平方向に移動させる第1の搬送帯駆動部12が設けられている。図示を省略しているが、搬送帯11の左側にも、同様な円筒状形状をなし回転することにより、搬送帯11をベルトコンベアとして移動させる第2の搬送帯駆動部が設けられている。第1の搬送帯駆動部12及び第2の搬送帯駆動部の回転運動は、搬送帯制御装置13によって制御される。   On the right side of the transport band 11, there is provided a first transport band drive unit 12 that moves in the horizontal direction as a belt conveyor by rotating in a cylindrical shape. Although not shown in the drawings, a second transport band drive unit that moves the transport band 11 as a belt conveyor by rotating in a similar cylindrical shape on the left side of the transport band 11 is also provided. The rotational movements of the first transport band drive unit 12 and the second transport band drive unit are controlled by the transport band control device 13.

撮像装置22、光源21及び搬送帯制御装置13は、画像処理装置23にそれぞれ接続され、画像処理装置23との間で信号の授受を行う。画像処理装置23には、データ記憶装置24、プログラム記憶装置25及び表示装置26が接続されている。なお、図1にはデータ記憶装置24及びプログラム記憶装置25が、便宜上、それぞれ単独のハードウェア資源であるかのように図示されているが、現実の物理的ハードウェア資源としては、データ記憶装置24及びプログラム記憶装置25が、それぞれ、機能及び規模を異にする複数の記憶装置の集合として構成されている構成を否定するものではない。   The imaging device 22, the light source 21, and the transport band control device 13 are respectively connected to the image processing device 23 and exchange signals with the image processing device 23. A data storage device 24, a program storage device 25, and a display device 26 are connected to the image processing device 23. In FIG. 1, the data storage device 24 and the program storage device 25 are illustrated as if they were individual hardware resources for convenience, but the actual physical hardware resources include data storage devices. 24 and the program storage device 25 do not deny the configuration configured as a set of a plurality of storage devices having different functions and scales.

例えば、図1に示すコンピュータシステムにおいて、データ記憶装置24は、複数のレジスタ、複数のキャッシュメモリ、主記憶装置、補助記憶装置を含む一群の内から適宜選択された任意の組み合わせとすることも可能である。又、キャッシュメモリは1次キャッシュメモリと2次キャッシュメモリの組み合わせとしてもよく、更に3次キャッシュメモリを備えるヒエラルキーを有しても構わない。   For example, in the computer system shown in FIG. 1, the data storage device 24 can be any combination appropriately selected from a group including a plurality of registers, a plurality of cache memories, a main storage device, and an auxiliary storage device. It is. The cache memory may be a combination of a primary cache memory and a secondary cache memory, and may further have a hierarchy including a tertiary cache memory.

図1に示すコンピュータシステムを構成する画像処理装置23の論理的なハードウェア資源の構成は、図2のように表現される。画像処理装置23には、マイクロチップとして実装されたマイクロプロセッサ(MPU)等を使用してコンピュータシステムを構成することが可能である。又、コンピュータシステムを構成する画像処理装置23として、算術演算機能を強化し信号処理に特化したデジタルシグナルプロセッサ(DSP)や、メモリや周辺回路を搭載し組込み機器制御を目的としたマイクロコントローラ(マイコン)等を用いてもよい。或いは、現在の汎用コンピュータのメインCPUを画像処理装置23に用いてもよい。更に、画像処理装置23の一部の構成又はすべての構成をフィールド・プログラマブル・ゲート・アレイ(FPGA)のようなプログラマブル・ロジック・デバイス(PLD)で構成してもよい。PLDによって、画像処理装置23の一部又はすべてを構成した場合は、データ記憶装置24は、PLDを構成する論理ブロックの一部に含まれるメモリブロック等のメモリ要素として構成することができる。更に、画像処理装置23は、CPUコア風のアレイとPLD風のプログラム可能なコアを同じチップに搭載した構造でもよい。このCPUコア風のアレイは、あらかじめPLD内部に搭載されたハードマクロCPUと、PLDの論理ブロックを用いて構成したソフトマクロCPUを含む。つまりPLDの内部においてソフトウェア処理とハードウェア処理を混在させた構成でもよい。   The logical hardware resource configuration of the image processing apparatus 23 constituting the computer system shown in FIG. 1 is expressed as shown in FIG. The image processing device 23 can be configured as a computer system using a microprocessor (MPU) or the like mounted as a microchip. In addition, as the image processing device 23 constituting the computer system, a digital signal processor (DSP) specializing in signal processing with enhanced arithmetic operation functions, and a microcontroller (including a memory and peripheral circuits) for controlling embedded devices ( A microcomputer) or the like may be used. Alternatively, the main CPU of the current general-purpose computer may be used for the image processing device 23. Furthermore, a part or all of the configuration of the image processing apparatus 23 may be configured by a programmable logic device (PLD) such as a field programmable gate array (FPGA). When a part or all of the image processing apparatus 23 is configured by the PLD, the data storage device 24 can be configured as a memory element such as a memory block included in a part of a logical block configuring the PLD. Further, the image processing apparatus 23 may have a structure in which a CPU core-like array and a PLD-like programmable core are mounted on the same chip. This CPU core-like array includes a hard macro CPU mounted in the PLD in advance and a soft macro CPU configured using a PLD logic block. That is, a configuration in which software processing and hardware processing are mixed in the PLD may be employed.

図2に論理的なハードウェア資源の構成を示すように、第1の実施の形態に係る画像処理システムの画像処理装置23は、撮像装置22から画像データを取得する撮像データ受信回路231と、撮像データ受信回路231が取得した画像データから、背景板15が撮像された「背景領域」とこの背景領域以外が撮像されている「非背景領域」の2つに分離する背景領域分離手段232と、背景領域分離手段232で分離された背景領域を、搬送帯11の網目のパターンの幅以上に膨張処理することにより、非背景領域から搬送帯11の像を消去する網目消去回路233と、網目消去回路233により生成された撮像対象物17の2値化画像を基に、撮像対象物17の重心位置及び大きさを算出する撮像対象物認識手段234とを備える。   As shown in FIG. 2 showing the configuration of logical hardware resources, the image processing device 23 of the image processing system according to the first embodiment includes an imaging data receiving circuit 231 that acquires image data from the imaging device 22, and A background area separating unit 232 that separates from the image data acquired by the imaging data receiving circuit 231 into a “background area” in which the background plate 15 is imaged and a “non-background area” in which images other than the background area are imaged; A mesh erasing circuit 233 for erasing the image of the transport band 11 from the non-background area by expanding the background area separated by the background area separating means 232 beyond the width of the mesh pattern of the transport band 11; An imaging object recognition unit 234 that calculates the position of the center of gravity and the size of the imaging object 17 based on the binarized image of the imaging object 17 generated by the erasing circuit 233 is provided.

背景領域分離手段232は、RGB色空間のデータをHSV色空間のデータに変換するRGB/HSV変換回路232aと、背景領域を2値化する背景領域2値化回路232bとを論理的な内部構造として含む。
例えば、R,G,Bのそれぞれが8ビット=2=256階調の場合、R,G,Bはそれぞれ0〜255の値をとるので、RGB色空間については、RGBを三次元座標で表すと、一辺の長さが255で表される立方体で表現できる。この立方体を白(255、255、255)の頂点の位置から黒(0、0、0)の頂点の方向へ見て、R軸を水平方向の右側にとると図6のように正六角形で表現できる。図6の正六角形の中心が、立方体の白(255、255、255)の頂点であり、白(255、255、255)の頂点の裏に黒(0、0、0)の頂点が位置している。
The background area separation means 232 has a logical internal structure of an RGB / HSV conversion circuit 232a that converts RGB color space data into HSV color space data and a background area binarization circuit 232b that binarizes the background area. Include as.
For example, when each of R, G, and B has 8 bits = 2 8 = 256 gradations, R, G, and B each take a value of 0 to 255, so that RGB is expressed in three-dimensional coordinates for the RGB color space. When expressed, it can be expressed by a cube whose length of one side is 255. When this cube is viewed from the position of the vertex of white (255, 255, 255) toward the vertex of black (0, 0, 0) and the R axis is taken to the right in the horizontal direction, it is a regular hexagon as shown in FIG. Can express. The center of the regular hexagon in FIG. 6 is the vertex of cubic white (255, 255, 255), and the vertex of black (0, 0, 0) is located behind the vertex of white (255, 255, 255). ing.

このとき、図6のR(赤)の方向をH=0°として、反時計回りにH=120°の位置がG(緑)、H=240°の位置がB(青)、と色相Hが0〜360°(2π)の範囲で定義される。背景領域分離手段232の処理においては、RGB/HSV変換回路232aがRGBのデータをHSVのデータに変換した後、HSV系の色相H(色味)を分離の指標とした場合、図6に示すように、一周360°の角度表記で表現する。彩度Sは一番外側の六角形のS=1に対して、どの割合の位置に配されているかを0〜1.0で表したもので、六角形の等高線のように示される。図6では、一番外側の六角形のS=1に対して、順にS=0.75,S=0.5,S=0.25の六角形の等高線が示され、中心がS=0となり、彩度Sは図6の外側S=1の六角形に対して、内側の六角形の大きさの割合で求められる。   At this time, the direction of R (red) in FIG. 6 is set to H = 0 °, the counterclockwise direction of H = 120 ° is G (green), the position of H = 240 ° is B (blue), and hue H Is defined in the range of 0 to 360 ° (2π). In the processing of the background region separation unit 232, when the RGB / HSV conversion circuit 232a converts RGB data into HSV data and uses the HSV hue H (color tone) as an index of separation, it is shown in FIG. Thus, it is expressed by an angle notation of 360 degrees per round. Saturation S is expressed as 0 to 1.0 in which ratio the position is arranged with respect to S = 1 of the outermost hexagon, and is shown as a contour line of a hexagon. In FIG. 6, hexagonal contour lines of S = 0.75, S = 0.5, S = 0.25 are sequentially shown with respect to S = 1 of the outermost hexagon, and the center is S = 0. Thus, the saturation S is obtained by the ratio of the size of the inner hexagon to the hexagon of the outer side S = 1 in FIG.

R,G,Bの最大輝度値をImax、最小輝度値をIminとしたときに、明度V = Imaxと定義したものがHSVモデルである。ImaxがRの最大値のとき:
色相H=(60°×(G−B)/(Imax - Imin) )×255/360
となる。ただし、H<0のとき、H=H+360°とする。ImaxがGの最大値のとき:
色相H=(60°×(B−R)/(Imax - Imin)+120°)×255/360
となる。ImaxがBの最大値のとき:
色相H=(60°×(R−G)/(Imax - Imin)+240°)×255/360
となるので、図7(a)の左上のブロックに示したR=131、G=255、B=127の場合は、図7(b)の左上のブロックに示したように色相H=84となる。図7(a)の上段の左から2番目のブロックに示したR=G=45,B=210の場合は、図7(b)の上段の左から2番目のブロックに示したように色相H=170となる。又、図7(a)の上段の左から3番目のブロックに示したR=100、G=B=96の場合は、図7(b)の上段の左から3番目のブロックに示したように色相H=0となる。色相Hの範囲は0〜255となる。
The HSV model defines the brightness V = I max when the maximum luminance value of R, G, B is I max and the minimum luminance value is I min . When I max is the maximum value of R:
Hue H = (60 ° × (GB) / (I max −I min )) × 255/360
It becomes. However, when H <0, H = H + 360 °. When I max is the maximum value of G:
Hue H = (60 ° × ( BR ) / (I max −I min ) + 120 °) × 255/360
It becomes. When I max is the maximum value of B:
Hue H = (60 ° × (RG) / (I max −I min ) + 240 °) × 255/360
Therefore, in the case of R = 131, G = 255, and B = 127 shown in the upper left block of FIG. 7A, the hue H = 84 as shown in the upper left block of FIG. 7B. Become. In the case of R = G = 45 and B = 210 shown in the second block from the left in the upper part of FIG. 7A, the hue as shown in the second block from the left in the upper part of FIG. H = 170. In the case of R = 100 and G = B = 96 shown in the third block from the left in the upper part of FIG. 7A, as shown in the third block from the left in the upper part of FIG. 7B. The hue H = 0. The range of the hue H is 0 to 255.

R,G,Bの成分の内、最大の成分をImax、最小の成分をIminとすると、
彩度S = (Imax - Imin) / Imax×255
と定義されるので、図7(a)の左上のブロックに示したR=131、G=255、B=127の場合は、図7(b)の左上のブロックに示したように彩度S=128となる。図7(a)の上段の左から2番目のブロックに示したR=G=45,B=210の場合は、図7(b)の上段の左から2番目のブロックに示したように彩度S=200となる。又、図7(a)の上段の左から3番目のブロックに示したR=100、G=B=96の場合は、彩度S=10となる。彩度Sの範囲は0〜255となる。
Of the R, G, and B components, assuming that the maximum component is I max and the minimum component is I min ,
Saturation S = (I max -I min ) / I max × 255
Therefore, when R = 131, G = 255, and B = 127 shown in the upper left block of FIG. 7A, the saturation S as shown in the upper left block of FIG. 7B. = 128. In the case of R = G = 45 and B = 210 shown in the second block from the left in the upper part of FIG. 7A, the color is changed as shown in the second block from the left in the upper part of FIG. Degree S = 200. When R = 100 and G = B = 96 shown in the third block from the left in the upper part of FIG. 7A, the saturation S = 10. The range of the saturation S is 0 to 255.

一方、明度V = Imaxであるので、図7(a)の左上のブロックに示したR=131、G=255、B=127の場合は、図7(b)の左上のブロックに示したように明度V=255となる。図7(a)の上段の左から2番目のブロックに示したR=G=45,B=210の場合は、図7(b)の上段の左から2番目のブロックに示したように明度V=210となる。又、図7(a)の上段の左から3番目のブロックに示したR=100、G=B=96の場合は、明度V=100となるので、RGB/HSV変換回路232aは、RGB色空間のデータをHSV色空間のデータに変換する。 On the other hand, since it is the brightness V = I max, in the case of R = 131, G = 255, B = 127 , shown in the upper left block of FIG. 7 (a), shown in the upper left of the block shown in FIG. 7 (b) Thus, the brightness V = 255. In the case of R = G = 45 and B = 210 shown in the second block from the left in the upper part of FIG. 7A, the brightness as shown in the second block from the left in the upper part of FIG. V = 210. Also, in the case of R = 100 and G = B = 96 shown in the third block from the left in the upper stage of FIG. 7A, the brightness V = 100, so the RGB / HSV conversion circuit 232a displays the RGB color. The space data is converted into HSV color space data.

理論上は、HSV色空間において、背景板15の色相Hと搬送帯11の色相H又は撮像対象物17の色相Hとの色相角度差ΔHが1°でもあれば、撮像データ受信回路231が取得した画像データから、背景板15が撮像された背景領域とこの背景領域以外が撮像されている非背景領域の2つに分離できる。しかしながら、入力画像には撮像装置22として用いるCCDカメラの量子化ノイズや、単板式カラーカメラの場合には、CCDカメラのべーヤーパターンの補間に起因するノイズが多分に含まれているので、背景板15の色相Hと、搬送帯11又は撮像対象物17との色相Hの色相角度差ΔHは、30°以上であることが好ましい。色相Hは0〜360°の間で定義されるので、背景板15の色相Hと、搬送帯11又は撮像対象物17との色相Hの色相角度差ΔHは、30°< ΔH <330°が好ましい。特に、色相角度差ΔH=180°の場合が、背景板15の色相Hと、搬送帯11又は撮像対象物17の色相Hの差が顕著になるので好ましい。   Theoretically, in the HSV color space, if the hue angle difference ΔH between the hue H of the background plate 15 and the hue H of the transport band 11 or the hue H of the imaging target 17 is 1 °, the imaging data receiving circuit 231 acquires it. The image data can be separated into a background area where the background plate 15 is imaged and a non-background area where the area other than the background area is imaged. However, since the input image contains a lot of noise from the quantization of the CCD camera used as the imaging device 22 and, in the case of a single-plate color camera, noise resulting from interpolation of the Bayer pattern of the CCD camera, the background plate The hue angle difference ΔH between the hue H of 15 and the conveyance band 11 or the imaging object 17 is preferably 30 ° or more. Since the hue H is defined between 0 to 360 °, the hue angle difference ΔH between the hue H of the background plate 15 and the hue H of the conveyance band 11 or the imaging object 17 is 30 ° <ΔH <330 °. preferable. In particular, the case where the hue angle difference ΔH = 180 ° is preferable because the difference between the hue H of the background plate 15 and the hue H of the transport belt 11 or the imaging object 17 becomes significant.

一方、撮像対象物17が白やグレーの無彩色の場合、背景板15の色相Hと搬送帯11の色相Hは、撮像対象物17の色相Hに対して色相角度差ΔHは、ベクトルの向きが定まらないので定義できない。色相角度差ΔHが定義できない場合は、色相Hはどちらの方向でもよく、HSV色空間において、彩度Sの彩度差ΔSを大きくするように彩度を選べばよい。   On the other hand, when the imaging object 17 is a white or gray achromatic color, the hue H of the background plate 15 and the hue H of the transport band 11 are different from the hue H of the imaging object 17 by the hue angle difference ΔH. Cannot be defined because is not fixed. When the hue angle difference ΔH cannot be defined, the hue H may be in either direction, and the saturation may be selected so as to increase the saturation difference ΔS of the saturation S in the HSV color space.

背景領域分離手段232の処理において、背景領域の膨張処理によって搬送帯11の網目のパターンの消去を試みる場合、それぞれの隙間から確実に背景領域が存在している必要がある。その際、背景領域と搬送帯11のパターンの境目はこれまた空間的な離散化の影響を受けて上下左右から少なくとも1ピクセルのばらつきが発生する。つまりワーストケースとして上下方向、左右方向それぞれで2ピクセルつぶれて撮像されることもある。2ピクセルつぶれても背景領域が存続するためには、3ピクセル以上の幅を持つような倍率で撮像光学系を構成する必要がある。   In the process of the background area separation unit 232, when attempting to erase the mesh pattern of the transport band 11 by the expansion process of the background area, it is necessary that the background area exists reliably from each gap. At this time, the boundary between the background region and the pattern of the transport band 11 is also affected by spatial discretization, and at least one pixel variation occurs from the top, bottom, left, and right. That is, as a worst case, two pixels may be crushed and imaged in the vertical and horizontal directions. In order for the background region to survive even if 2 pixels are crushed, it is necessary to configure the imaging optical system with a magnification having a width of 3 pixels or more.

更に、撮像装置22のノイズにより撮像対象物17領域に意図しない偽の背景領域が1ピクセルのサイズで発生してしまうことがある。スパイクノイズやごま塩ノイズと呼ばれているものである。この偽の背景領域は膨張させないためにあらかじめ逆の収縮処理を行って消去することが可能であるが、本来の背景領域も上下方向、左右方向に2ピクセル削られることになるため、先の3ピクセルにこの2ピクセルを加えて、1次元方向に並んだ5ピクセル幅の背景領域を構成できるような搬送帯11の網目のパターンの隙間が必要ということになる。   Furthermore, an unintended false background area may occur in the size of 1 pixel due to noise of the imaging device 22 in the imaging object 17 area. This is called spike noise or sesame salt noise. Since the false background area is not expanded, it can be erased by performing a reverse contraction process in advance. However, since the original background area is also deleted by 2 pixels in the vertical and horizontal directions, By adding these two pixels to the pixels, a gap in the mesh pattern of the transport band 11 is necessary so that a background area having a width of 5 pixels arranged in a one-dimensional direction can be formed.

撮像対象物認識手段234は、撮像対象物17の重心位置を決定する重心位置決定回路234aと、画素数を算出する画素数算出回路234bと、撮像対象物17の半径を算出する半径算出回路234cとを論理的な内部構造として含む。
画像処理装置23は、更に、光源21を制御する光源制御回路235と、撮像装置22を制御する撮像装置制御回路236と、搬送帯制御装置13に対し命令を発信する搬送帯制御装置命令回路237と、図1のプログラム記憶装置25に格納された実行すべき命令を画像処理装置23がどこまで実行したか、或いは画像処理装置23が、現在実行しているプログラム記憶装置25上のアドレスを記憶するプログラムカウンタ238とを備える。そして、図2に示すように、画像処理装置23を構成するハードウェア資源としての撮像データ受信回路231、背景領域分離手段232、網目消去回路233、撮像対象物認識手段234、光源制御回路235、撮像装置制御回路236、搬送帯制御装置命令回路237及びプログラムカウンタ238は、データバス239を介して互いに接続されている。
The imaging object recognition means 234 includes a centroid position determination circuit 234a that determines the centroid position of the imaging object 17, a pixel number calculation circuit 234b that calculates the number of pixels, and a radius calculation circuit 234c that calculates the radius of the imaging object 17. As a logical internal structure.
The image processing device 23 further includes a light source control circuit 235 that controls the light source 21, an image pickup device control circuit 236 that controls the image pickup device 22, and a transport belt control device command circuit 237 that sends a command to the transport belt control device 13. And how far the image processing device 23 has executed the instruction to be executed stored in the program storage device 25 of FIG. 1, or the image processing device 23 stores the address on the program storage device 25 currently being executed. And a program counter 238. As shown in FIG. 2, the imaging data receiving circuit 231 as the hardware resources constituting the image processing device 23, the background region separating unit 232, the mesh erasing circuit 233, the imaging object recognizing unit 234, the light source control circuit 235, The imaging device control circuit 236, the transport band control device command circuit 237, and the program counter 238 are connected to each other via a data bus 239.

図1に示す構成において、撮像装置22によって、撮像対象物17、搬送帯11、背景板15の3つが映り込むまれた画像が取得される。搬送帯11の網目の隙間からは、図4に示すように、背景板15が画像に映り込むまれる。図4に示すように、分散したトポロジーで多数の領域として背景板15が見えており、背景板15の分散した領域のそれぞれを囲むように、搬送帯11のパターンがある。   In the configuration illustrated in FIG. 1, the imaging device 22 acquires an image in which the imaging target object 17, the transport band 11, and the background plate 15 are reflected. As shown in FIG. 4, the background plate 15 is reflected in the image from the gap of the mesh of the transport band 11. As shown in FIG. 4, the background plate 15 is seen as a large number of regions in a distributed topology, and there is a pattern of the transport band 11 so as to surround each of the dispersed regions of the background plate 15.

背景板15の分散した領域のそれぞれと、搬送帯11のパターンを構成する線とは、面積や太さが違うので、網目消去回路233は、背景板15のそれぞれの領域の面積や搬送帯11のパターンを構成する線の太さ等のトポロジーの違いを利用して、搬送帯11のパターンを消去する。
又、背景板15が見えないところは、即ち撮像対象物17が存在するところとする足がかりになる。網目消去回路233によって撮像対象物17とそれ以外の領域の2つに塗り分けられた2値化画像が取得され、撮像対象物認識手段234によって、撮像対象物17の位置と大きさを通常の画像処理の手法を用いて算出し、撮像対象物17の存在を認識することができる。
Since each of the dispersed regions of the background plate 15 is different in area and thickness from the lines constituting the pattern of the transport band 11, the mesh erasing circuit 233 uses the area of each region of the background plate 15 and the transport band 11. The pattern of the transport band 11 is erased using the difference in the topology such as the thickness of the lines constituting the pattern.
Further, the place where the background plate 15 cannot be seen is a foothold that the imaging object 17 exists. A binarized image divided into two parts of the imaging object 17 and the other area is acquired by the mesh elimination circuit 233, and the position and the size of the imaging object 17 are set to normal by the imaging object recognition means 234. The presence of the imaging target 17 can be recognized by calculating using an image processing technique.

図2に示す画像処理装置23を構成するハードウェア資源としての撮像データ受信回路231、背景領域分離手段232、網目消去回路233、撮像対象物認識手段234、光源制御回路235、撮像装置制御回路236及び搬送帯制御装置命令回路237等は、論理的な機能に着目したハードウェア資源を形式的に表現しているのであって、必ずしも、半導体チップ上に物理的な領域としてそれぞれ独立して存在する機能ブロックを意味するものではないが、PLDの「論理ブロック」のような半導体チップ上に実装されたプログラム可能な論理コンポーネント等の現実に存在する構成を否定するものでもない。画像処理装置23の一部の構成又はすべての構成をFPGAのようなPLDで構成した場合は、図2に示したプログラムカウンタ238やデータバス239等は省略可能である。   An imaging data receiving circuit 231 as a hardware resource constituting the image processing apparatus 23 shown in FIG. 2, a background region separation unit 232, a mesh elimination circuit 233, an imaging object recognition unit 234, a light source control circuit 235, and an imaging device control circuit 236. The transport band control device command circuit 237 and the like formally express hardware resources focusing on logical functions, and are necessarily present independently as physical areas on the semiconductor chip. Although it does not mean a functional block, it does not deny a configuration that actually exists such as a programmable logic component mounted on a semiconductor chip, such as a “logic block” of a PLD. When a part or all of the configuration of the image processing apparatus 23 is configured by a PLD such as an FPGA, the program counter 238, the data bus 239, etc. shown in FIG. 2 can be omitted.

図1及び図2では図示を省略しているが、第1の実施の形態に係る画像処理システムは、操作者からのデータや命令などの入力を受け付ける入力装置、分別結果を出力する出力装置等を更に備えるようにしてもよい。入力装置はキーボード、マウス、ライトペン又はフレキシブルディスク装置などで構成される。入力装置より画像処理の実行者は、入出力データを指定したり、画像処理に必要な個別の数値や許容誤差の値及び誤差の程度を設定できる。更に、入力装置より出力データの形態等の解析パラメータを設定することも可能で、又、演算の実行や中止等の指示の入力も可能である。又出力装置及び表示装置26は、それぞれプリンタ装置及びディスプレイ装置等により構成してもよい。   Although not shown in FIGS. 1 and 2, the image processing system according to the first embodiment includes an input device that receives input of data, commands, and the like from an operator, an output device that outputs classification results, and the like. May be further provided. The input device includes a keyboard, a mouse, a light pen, a flexible disk device, or the like. An image processing person can specify input / output data from the input device, and can set individual numerical values, tolerance values, and error levels necessary for image processing. Furthermore, it is possible to set analysis parameters such as the form of output data from the input device, and it is also possible to input an instruction to execute or stop the calculation. The output device and the display device 26 may be constituted by a printer device, a display device, or the like, respectively.

第1の実施の形態に係る画像処理システムによれば、生鮮物、加工済みの食品、工業製品等の種々の撮像対象物17の位置が撮像装置22に近い配置関係となるように撮像対象物17が水平方向に走行する網目状の搬送帯11の上に搭載された場合、撮像対象物17の自重により網目のパターンの周期性が乱れる状況が発生しても、或いは、撮像対象物17としての魚介類や野菜等からの水滴が網目のパターンの周期性を乱す場合であっても、搬送帯11のパターンを消去して、撮像対象物17の位置及び大きさを正確に認識できる。   According to the image processing system according to the first embodiment, the imaging object is so arranged that the positions of various imaging objects 17 such as fresh foods, processed foods, industrial products, and the like are close to the imaging device 22. When 17 is mounted on a mesh-shaped transport belt 11 that travels in the horizontal direction, even if a situation occurs in which the periodicity of the mesh pattern is disturbed by the weight of the imaging object 17, or as the imaging object 17 Even when water droplets from seafood, vegetables, etc. disturb the periodicity of the mesh pattern, the pattern of the transport band 11 can be erased and the position and size of the imaging object 17 can be accurately recognized.

(画像処理方法)
図3及び図10〜図20を用いて、本発明の第1の実施の形態に係る画像処理方法を説明する。なお、以下に述べる画像処理方法は、一例であり、特許請求の範囲に記載した趣旨の範囲内であれば、この変形例を含めて、これ以外の種々の画像処理方法が実現可能であることは勿論である。
(Image processing method)
The image processing method according to the first embodiment of the present invention will be described with reference to FIGS. 3 and 10 to 20. Note that the image processing method described below is an example, and various other image processing methods including this modification can be realized within the scope of the scope of the claims. Of course.

(a) 図3のステップS10において、図2に示した画像処理装置23の撮像データ受信回路231は、撮像装置22から図4及び図5に示すような撮像データを受信する。図5に示すような現実の画素サイズよりも大きく表現した矩形の画素(ピクセル)によって、模式的に示す誇張表現では、便宜上、撮像対象物17を示す76個の画素の集合(固まり)の周りに、搬送帯11の網目のパターンを示す画素(ピクセル)と、網目のパターンで囲まれた背景板15を示す画素(ピクセル)が写り込まれて表現されている。現実のCCDカメラでは、例えば、画素数20万の場合、画素サイズは5μm×7μm程度、画素数200万の場合では画素サイズは4.4μm×4.4μm程度、画素数500万の場合では画素サイズは3.5μm×3.5μm程度となるので、図5に示すような矩形の画素の角部による凹凸は目視では認められず、現実には、図4に例示するようスムーズな曲線の画像になる。   (A) In step S10 of FIG. 3, the imaging data receiving circuit 231 of the image processing device 23 illustrated in FIG. 2 receives imaging data as illustrated in FIGS. 4 and 5 from the imaging device 22. In the exaggerated expression schematically shown by the rectangular pixels (pixels) expressed to be larger than the actual pixel size as shown in FIG. 5, for the sake of convenience, around a set (cluster) of 76 pixels indicating the imaging target 17. In addition, a pixel (pixel) indicating the mesh pattern of the transport band 11 and a pixel (pixel) indicating the background plate 15 surrounded by the mesh pattern are shown. In an actual CCD camera, for example, when the number of pixels is 200,000, the pixel size is about 5 μm × 7 μm, when the number of pixels is 2 million, the pixel size is about 4.4 μm × 4.4 μm, and when the number of pixels is 5 million, Since the size is about 3.5 μm × 3.5 μm, the unevenness due to the corners of the rectangular pixel as shown in FIG. 5 is not visually recognized, and in reality, an image with a smooth curve as illustrated in FIG. become.

(b) ステップS11のステップS111において、撮像装置22から送られてきた撮像データがカラー画像であるか否か判定する。ステップS111において、撮像装置22から送られてきた撮像データがカラー画像であると判定された場合は、ステップS112に進む。ステップS112において、背景領域分離手段232のRGB/HSV変換回路232aが、図7(a)に示されたような、RGB色空間の画素のデータを、図7(b)に示されたようなHSV色空間の画素のデータに変換する。   (B) In step S111 of step S11, it is determined whether the imaging data sent from the imaging device 22 is a color image. If it is determined in step S111 that the imaging data transmitted from the imaging device 22 is a color image, the process proceeds to step S112. In step S112, the RGB / HSV conversion circuit 232a of the background region separating unit 232 converts the pixel data in the RGB color space as shown in FIG. 7A into the data shown in FIG. 7B. Conversion to pixel data in the HSV color space.

ステップS113において、背景領域分離手段232の背景領域2値化回路232bが、図9(a)に示されたようなHSV色空間の画素のデータを、図8の左下に左上がりのハッチングで示した領域を閾値領域として、背景領域を2値化する。即ち、図8は、青近傍の色を持つ背景板15の場合のHSV色空間を示しているが、色相Hに色相最小値Hminと色相最大値Hmaxの範囲を定め、その上で、彩度Sが彩度最小値Smin閾値以上、明度Vが明度最小値Vminの閾値以上となる画素を画素値M=1の背景領域、それ以外を、画素値M=0の背景以外の領域(非背景領域)を示す画素と定義している。なお、図8では、図6で0°〜360°で示された色相Hの値を、1周が0〜255となる8ビットの値に符号化している。又、図8では、図6において0〜1で示された彩度Sの値を0〜255の8ビットに符号化している。図8で、V軸は紙面に垂直方向なので、図示を省略している。 In step S113, the background region binarization circuit 232b of the background region separation means 232 indicates the pixel data of the HSV color space as shown in FIG. 9A by the left-upward hatching in the lower left of FIG. The background area is binarized using the selected area as a threshold area. That is, FIG. 8 shows the HSV color space in the case of the background plate 15 having a color near blue. The hue H is defined as a range between the hue minimum value H min and the hue maximum value H max . Pixels whose saturation S is equal to or greater than the minimum saturation value S min threshold and whose brightness V is equal to or greater than the threshold value of minimum brightness V min are those in the background area with the pixel value M = 1, and other pixels are those other than the background with the pixel value M = 0. It is defined as a pixel indicating a region (non-background region). In FIG. 8, the value of the hue H indicated by 0 ° to 360 ° in FIG. 6 is encoded into an 8-bit value in which one round is 0 to 255. In FIG. 8, the value of the saturation S indicated by 0 to 1 in FIG. 6 is encoded into 8 bits from 0 to 255. In FIG. 8, since the V axis is perpendicular to the paper surface, the illustration is omitted.

例えば、図9(a)の左上のブロックに示したH=84,S=128,V=255の画素の場合は、図8で緑方向に向かう左上がりの線近傍の中央部に位置するので、図9(b)の左上のブロックに示したように画素値M=0となる。図9(a)の上段の左から2番目のブロックに示したH=170,S=200,V=210の画素の場合は、図8で青方向に向かう左下がりの線に沿ってハッチングした領域の内部に位置するので、図9(b)の上段の左から2番目のブロックに示したように画素値M=1となる。又、図9(a)の上段の左から3番目のブロックに示したH=0,S=10,V=100の画素の場合は、図8で赤方向に向かう水平線の中心近くに位置するので、画素値M=0となる。   For example, in the case of the pixel of H = 84, S = 128, and V = 255 shown in the upper left block of FIG. 9A, it is located at the center of the vicinity of the line rising to the left in FIG. As shown in the upper left block of FIG. 9B, the pixel value M = 0. In the case of the pixels of H = 170, S = 200, and V = 210 shown in the second block from the left in the upper part of FIG. 9A, the pixels are hatched along the downward-sloping line in the blue direction in FIG. Since it is located inside the region, the pixel value M = 1 as shown in the second block from the left in the upper part of FIG. 9B. Further, in the case of the pixel of H = 0, S = 10, V = 100 shown in the third block from the left in the upper stage of FIG. 9A, it is located near the center of the horizontal line in the red direction in FIG. Therefore, the pixel value M = 0.

このように、背景領域2値化回路232bが、HSV色空間において、色相Hに色相最小値Hminと色相最大値Hmaxの範囲を定め、彩度Sが彩度最小値Smin閾値以上、明度Vが明度最小値Vminの閾値以上となる画素を画素値M=1の背景領域、それ以外を、画素値M=0の非背景領域の画素と定義することにより背景領域で2値化することができる。ステップS113において背景領域2値化回路232bが、背景領域で2値化することにより、図16に示すように、背景板15を示す画素が"1"に符号化され、撮像対象物17の像と搬送帯11の網目のパターンとを合成した背景以外の領域(非背景領域)を示す画素が"0"に符号化される。 As described above, the background region binarization circuit 232b defines the range of the hue minimum value H min and the hue maximum value H max in the hue H in the HSV color space, and the saturation S is equal to or greater than the saturation minimum value S min threshold. By defining pixels whose brightness V is equal to or greater than the threshold value of the minimum brightness value V min as a background area with a pixel value M = 1, and other pixels as non-background areas with a pixel value M = 0, binarization is performed in the background area. can do. In step S113, the background region binarization circuit 232b performs binarization in the background region, whereby the pixels indicating the background plate 15 are encoded to “1” as shown in FIG. And a pixel indicating a region other than the background (non-background region) obtained by combining the mesh pattern of the transport band 11 with “0”.

ステップS111において、撮像装置22から送られてきた撮像データがカラー画像ではなく、撮像データが白黒画像であると判定されれば、ステップS112のRGB/HSV変換回路232aによる処理をジャンプして、ステップS113において、背景領域2値化回路232bが明度差を用いて、背景板15を示す画素を"1"に符号化し、撮像対象物17の像と搬送帯11の網目のパターンとを合成した背景以外の領域(非背景領域)を示す画素を"0"に符号化する。   If it is determined in step S111 that the imaging data sent from the imaging device 22 is not a color image but the imaging data is a monochrome image, the process by the RGB / HSV conversion circuit 232a in step S112 is jumped to, In S113, the background region binarization circuit 232b encodes the pixel indicating the background plate 15 to “1” using the brightness difference, and combines the image of the imaging target 17 and the mesh pattern of the transport band 11 Pixels indicating regions other than (non-background region) are encoded to “0”.

このようにして、カラー画像の場合は、ステップS112及びステップS113の処理を実行することにより、白黒画像の場合は、ステップS112をジャンプしてステップS113の処理を実行する。この結果、ステップS11での処理としては、画像処理装置23の背景領域分離手段232が、図16に示すように、背景板15を示す画素の領域を非背景領域から分離する。図16では、背景板15を示す画素が"1"に符号化され、撮像対象物17の像と搬送帯11の網目のパターンとを合成した非背景領域を示す画素が"0"に符号化されている。   In this way, the process of step S112 and step S113 is executed in the case of a color image, and the process of step S113 is executed by jumping to step S112 in the case of a monochrome image. As a result, as the processing in step S11, the background region separating means 232 of the image processing device 23 separates the pixel region indicating the background plate 15 from the non-background region as shown in FIG. In FIG. 16, the pixel indicating the background plate 15 is encoded as “1”, and the pixel indicating the non-background area obtained by combining the image of the imaging target 17 and the mesh pattern of the transport band 11 is encoded as “0”. Has been.

(c) ステップS12において、画像処理装置23の網目消去回路233が、図17及び図20に示すように、背景領域分離手段232で分離された背景板15を示す画素の領域を、搬送帯11の網目のパターンの幅以上に膨張処理することにより、非背景領域を示す画素の領域から、搬送帯11の網目のパターンを示す画素を消去する。
例えば、図10(a)では、左上に表示した、注目画素(x,y)=(6,5)の外側を含めた9画素から膨張処理後の画素の値を決定する。(x,y)=(6,5)の位置の膨張処理後の値は、図10(b)に示す(x,y)=(5,4)〜(7,6)の9つの画素の値から決定される関数とする。図10(a)では、左上がりのハッチングをした画素を"0"に符号化し、白抜きの画素を"1"に符号化して示している。膨張処理では、注目画素の外側を含めた9画素の領域で、1個でも"1"の画素があれば、処理後の画素値は"1"と決定される。一方、注目画素の外側を含めた9画素の領域で、9画素のすべてが"0"であれば、処理後の画素値は"0"と決定される。図10(a)の左上の太い実線で囲んだ枠内の9画素をスキャンして全画素で検査した結果が、図11に示す膨張処理後の画像になる。
(C) In step S12, as shown in FIG. 17 and FIG. 20, the mesh erasing circuit 233 of the image processing device 23 converts the pixel region indicating the background plate 15 separated by the background region separating means 232 into the transport band 11. The pixel indicating the mesh pattern of the transport band 11 is erased from the pixel region indicating the non-background region by performing the expansion process to be equal to or greater than the width of the mesh pattern.
For example, in FIG. 10A, the value of the pixel after the expansion process is determined from 9 pixels including the outside of the target pixel (x, y) = (6, 5) displayed on the upper left. The value after expansion processing at the position (x, y) = (6, 5) is the value of the nine pixels (x, y) = (5, 4) to (7, 6) shown in FIG. The function is determined from the value. In FIG. 10A, a pixel that is hatched to the left is encoded as “0”, and a white pixel is encoded as “1”. In the dilation process, if there is at least one “1” pixel in an area of nine pixels including the outside of the target pixel, the pixel value after the process is determined as “1”. On the other hand, if all nine pixels are “0” in the nine-pixel region including the outside of the target pixel, the pixel value after processing is determined to be “0”. A result obtained by scanning nine pixels in a frame surrounded by a thick solid line at the upper left in FIG. 10A and inspecting all the pixels is an image after the expansion processing shown in FIG.

図11では、左上がりのハッチングで示した画素が"0"に符号化された画素であり、白抜きの画素が、膨張処理により新たに"1"になった画素を含めた"1"に符号化された画素である。又、右上がりで間隔が疎なハッチングで示した画素が、膨張処理前の画像における画素値"1"の画素である。右上がりで間隔が疎なハッチングで示した画素も、本来は白抜きで示された"1"に符号化された画素として表現される。図10と図11を比較すれば、膨張処理前に対し、膨張処理後は、白抜きで示された"1"に符号化された画素が占有する領域が膨らんだような効果をもたらす。   In FIG. 11, the pixel indicated by the left-upward hatching is a pixel encoded as “0”, and the white pixel is changed to “1” including the pixel that is newly “1” by the expansion process. Encoded pixels. In addition, the pixels indicated by hatching that rises to the right and has a small interval are pixels having a pixel value “1” in the image before the expansion process. Pixels indicated by hatching that rises to the right and that are sparsely spaced are also represented as pixels that are originally encoded as “1” that are outlined. Comparing FIG. 10 and FIG. 11, there is an effect that the area occupied by the pixels encoded with “1” shown in white is expanded after the expansion process compared to before the expansion process.

一方、収縮処理においても、注目画素の外側を含めた9画素から収縮処理後の画素の値を決定する。収縮処理後の画素値の決定方法は、膨張処理の逆の定義による操作になる。収縮処理では、注目画素の外側を含めた9画素の領域で、1個でも"0"の画素があれば、処理後の画素値は"0"と決定される。一方、注目画素の外側を含めた9画素の領域で、9画素のすべてが"1"であれば、処理後の画素値は"1"と決定される。例えば、図10(a)の左上の太い実線で囲んだ枠内と同様な、9画素の全領域をスキャンして、9画素のすべてを検査した結果が、収縮処理後の画像になる。収縮処理によれば、処理前は画素値が"1"だった画素が収縮処理により画素値が"0"になった画素が、増大し、結果として、収縮処理前に対し、画素値"1"だった画素の領域が縮んだような効果をもたらす。   On the other hand, also in the contraction process, the value of the pixel after the contraction process is determined from nine pixels including the outside of the target pixel. The pixel value determination method after the contraction process is an operation based on the inverse definition of the expansion process. In the contraction process, if even one pixel is “0” in the nine-pixel region including the outside of the target pixel, the pixel value after the process is determined as “0”. On the other hand, if all nine pixels are “1” in the nine-pixel region including the outside of the target pixel, the pixel value after processing is determined to be “1”. For example, as in the frame surrounded by the thick solid line at the upper left of FIG. 10A, the result of scanning all the 9 pixels and inspecting all 9 pixels is the image after the contraction process. According to the contraction process, the number of pixels whose pixel value is “1” before the process is increased by the contraction process, and as a result, the pixel value “1” is compared with that before the contraction process. "It brings about the effect that the pixel area was shrunk.

撮像装置22として用いるCCDカメラのノイズによって、偶発的に2値化画像に、画素値が"1"のノイズが乗ることがある。図12(a)においては、左上にある撮像対象物17を示す、画素値が"0"の168個の画素の集合の中に2画素分、偶発的な画素値が"1"のノイズが存在していると仮定する。図12(a)において、右上がりのハッチングで示した画素は、画素値が"0"の搬送帯11の網目のパターンを示す画素であり、白抜きの画素は背景部としての画素値が"1"の画素である。   Due to the noise of the CCD camera used as the imaging device 22, noise with a pixel value of “1” may be accidentally added to the binarized image. In FIG. 12A, the noise of the incidental pixel value “1” corresponding to two pixels in the set of 168 pixels having the pixel value “0” indicating the imaging object 17 at the upper left is shown. Assume that it exists. In FIG. 12A, the pixels indicated by the right-upward hatching are pixels indicating the mesh pattern of the carrier band 11 having a pixel value “0”, and the white pixels have a pixel value as a background portion of “ 1 "pixel.

図12(a)に示すような、偶発的に発生した画素値が"1"のノイズを表示する画素が存在している状況では、そのまま膨張処理をすると、図13(a)に示すように、偶発的なノイズを表示する画素の領域も拡大してしまう。図13(a)では、左上がりで間隔が疎なハッチングで、膨張処理によって3×3の領域に拡大した画素値が"1"のノイズを表示する画素の領域を示す。なお、膨張処理によって図13(a)の右上がりのハッチングで示した搬送帯11の網目のパターンを示す画素が背景部を示す画素と同化する。   In a situation where there is a pixel that displays noise with an accidentally generated pixel value “1” as shown in FIG. 12A, if the expansion process is performed as it is, as shown in FIG. In addition, the pixel area displaying accidental noise is also enlarged. FIG. 13A shows a pixel region that displays noise whose pixel value is “1” that is expanded to a 3 × 3 region by expansion processing, with hatching that is leftward and sparsely spaced. It should be noted that the pixels indicating the mesh pattern of the transport band 11 indicated by the right-up hatching in FIG. 13A are assimilated with the pixels indicating the background portion by the expansion process.

図12(a)に示すような、画素値が"1"のノイズを表示する画素がある状況で、いきなり膨張処理を行うと、図13(a)に示すように画素値が"1"のノイズの画素の領域も膨張し、撮像対象物17を示す画素値が"0"の画素の領域を意図せず侵してしまうことになる。そこで、画素値が"1"のノイズを表示する画素を、画素値が"0"の撮像対象物17を示す画素の領域から除去するために、図12(b)に示すように膨張処理に先立って、網目消去回路233が、一旦収縮処理を挿入する。図12(b)に示す収縮処理によって、左上がりで間隔が疎なハッチングで示した画素値が"0"の、搬送帯11の網目のパターンを示す画素の領域が太り、白抜きの矩形で示した画素値が"1"の背景部を示す領域も、図12(a)に示した状態から、ある程度縮んでしまうので、図12(b)に示す収縮処理で消滅しない程度の背景領域の大きさが必要である。例えば、図14及び図15に示すように、揺らぎによって、網目消去回路233が2値化した際の境界が想定よりずれることがある。図15は、図14のXV−XV方向(X方向)に1次元だけ取り出した図でありる。図15の左側に、図14の5×5の画素領域に対応する5画素が示され、右側に図14の1個の白抜きの矩形で示された偶発的なノイズを示す画素値が"1"の画素である画素PNが表示されている。 When a dilation process is suddenly performed in a situation where there is a pixel displaying noise having a pixel value “1” as shown in FIG. 12A, the pixel value is “1” as shown in FIG. The area of the noise pixel also expands and unintentionally invades the area of the pixel whose pixel value indicating the imaging object 17 is “0”. Therefore, in order to remove the pixel displaying the noise having the pixel value “1” from the region of the pixel indicating the imaging target 17 having the pixel value “0”, the expansion process is performed as shown in FIG. Prior to this, the mesh erasure circuit 233 temporarily inserts a contraction process. By the shrinking process shown in FIG. 12B, the pixel area indicating the mesh pattern of the transport band 11 having a pixel value “0” that is left-up and sparsely spaced is thickened, and is a white rectangle. The region indicating the background portion having the pixel value “1” is also shrunk to some extent from the state shown in FIG. 12A, so that the background region that does not disappear by the contraction processing shown in FIG. A size is necessary. For example, as shown in FIGS. 14 and 15, the boundary when the mesh elimination circuit 233 binarizes may be deviated from the assumption due to fluctuation. FIG. 15 is a diagram in which only one dimension is taken out in the XV-XV direction (X direction) of FIG. On the left side of FIG. 15, five pixels corresponding to the 5 × 5 pixel region of FIG. 14 are shown, and on the right side, a pixel value indicating accidental noise indicated by one white rectangle in FIG. 14 is “ pixel P N is the pixel 1 "is displayed.

図15(a)は元のアナログ量として彩度Sの強度分布を示すが、彩度Sの最小値Sminを中心とする揺らぎδによって、5ピクセル幅を想定しても、2値化の結果、図15(b)のΔで示したように、それぞれ内側に1画素ずつ割り込んで画素値が"1"の画素が3ピクセル幅になることもある。
更に、2値化の後、ノイズ消去の意図で収縮処理を行って、左右から画素値が"1"の画素Pxdを1個ずつ消去して画素値を"0"としたとしても、膨張の核として背景領域の中心には、図15(b)に符号Pxrで示すように、最低限、画素値が"1"の画素が1画素だけでも消滅せず残っている必要がある。図15(b)に示すように、揺らぎによる2値化の境界のずれが、左右で2ピクセル幅=2Δ、更に収縮処理により左右で2ピクセル幅=2Pxd消去されて画素値が"0"となったとしても、中心に背景領域の画素Pxrが最低限膨張の核として画素値が"1"の画素が1画素残るためには、図14及び図15に示すように、設計上は5画素相当の画素値が"1"の画素の領域を確保しなければならない。
FIG. 15A shows the intensity distribution of the saturation S as the original analog quantity, but binarization is performed even if a 5-pixel width is assumed by the fluctuation δ centered on the minimum value S min of the saturation S. As a result, as indicated by Δ in FIG. 15B, a pixel having a pixel value of “1” that has a pixel value of “1” may have a width of 3 pixels.
Furthermore, after binarization, a contraction process is performed with the intention of eliminating noise, and even if pixels P xd having a pixel value “1” are deleted one by one from the left and right, the pixel value is set to “0”. As shown in FIG. 15B, at the center of the background area as the core of Pxr , at least one pixel having a pixel value of “1” needs to remain without disappearing. As shown in FIG. 15 (b), the deviation of the binarization demarcation fluctuation, left and right 2 pixels wide = 2.DELTA., More 2-pixel width = 2P xd erased by pixel values in the left and right by the contraction processing "0" In order to keep one pixel with a pixel value of “1” as the minimum expansion pixel at the center, the pixel P xr in the background area, as shown in FIG. 14 and FIG. An area of a pixel having a pixel value “1” corresponding to 5 pixels must be secured.

図12(b)に示す収縮処理の後に、網目消去回路233が膨張処理を適切な回数行うと、ノイズを表示する画素の領域が消滅しつつ、図13(b)に示すように、撮像対象物17を示す、画素値が"0"の画素の集合からなる領域を示すことができる。図17の矩形の画素によって、模式的に示す誇張表現では、左上の位置に、撮像対象物17を示す49個の画素の集合が"0"に符号化されて示されている。そして、図17では、背景板15を示す画素と、搬送帯11の網目のパターンを示す画素が"1"に符号化されている。   When the mesh elimination circuit 233 performs the expansion process an appropriate number of times after the contraction process shown in FIG. 12 (b), the area of the pixel displaying the noise disappears, as shown in FIG. 13 (b). An area composed of a set of pixels having a pixel value “0” indicating the object 17 can be indicated. In the exaggerated expression schematically shown by the rectangular pixels in FIG. 17, a set of 49 pixels indicating the imaging target 17 is encoded at “0” in the upper left position. In FIG. 17, the pixels indicating the background plate 15 and the pixels indicating the mesh pattern of the transport band 11 are encoded as “1”.

(d) ステップS13において、画像処理装置23の撮像対象物認識手段234は、図19及び図20に例示的に示すように、撮像対象物17を示す画像を認識する。図19の矩形の画素によって、模式的に示す誇張表現では、撮像対象物17を示す49個の画素のそれぞれが"0"に符号化されて示され、背景板15を示す画素と搬送帯11の網目のパターンを示す画素がそれぞれ"1"に符号化されて示されている。   (D) In step S13, the imaging object recognition unit 234 of the image processing device 23 recognizes an image showing the imaging object 17, as exemplarily shown in FIGS. In the exaggerated expression schematically shown by the rectangular pixels in FIG. 19, each of the 49 pixels indicating the imaging target 17 is encoded by “0”, and the pixels indicating the background plate 15 and the carrier band 11 are illustrated. Each pixel indicating the mesh pattern is encoded as “1”.

具体的には、ステップS131において、撮像対象物認識手段234の重心位置決定回路234aが、撮像対象物17のパターンが占有する、画素値"0"に符号化された画素領域のX方向の重心位置とY方向の重心位置を決定する。更に、ステップS132において、撮像対象物認識手段234の画素数算出回路234bが、画素値"0"に符号化された画素が占有している画素領域の画素数を算出する。更に、ステップS133において、撮像対象物認識手段234の半径算出回路234cが、画素値"0"に符号化された画素が占有している画素領域の全体が円形であると仮定して、撮像対象物17の半径rを算出する。   Specifically, in step S131, the center-of-gravity position determination circuit 234a of the imaging target object recognition unit 234 has the center of gravity in the X direction of the pixel area encoded by the pixel value “0” occupied by the pattern of the imaging target object 17. The position and the center of gravity position in the Y direction are determined. Further, in step S132, the pixel number calculation circuit 234b of the imaging object recognition unit 234 calculates the number of pixels in the pixel area occupied by the pixels encoded with the pixel value “0”. Further, in step S133, it is assumed that the radius calculation circuit 234c of the imaging object recognition unit 234 assumes that the entire pixel area occupied by the pixel encoded with the pixel value “0” is circular, The radius r of the object 17 is calculated.

以上のように、第1の実施の形態に係る画像処理方法によれば、生鮮物、加工済みの食品、工業製品等の種々の撮像対象物17の位置が撮像装置22に近い配置関係となるように撮像対象物17が水平方向に走行する網目状の搬送帯11の上に搭載された場合、撮像対象物17の自重により網目のパターンの周期性が乱れる状況が発生しても、或いは、撮像対象物17としての魚介類や野菜等からの水滴が網目のパターンの周期性を乱す場合であっても、搬送帯11のパターンを消去して、撮像対象物17の位置及び大きさを正確に認識できる。   As described above, according to the image processing method according to the first embodiment, the positions of various imaging objects 17 such as fresh foods, processed foods, industrial products, and the like have an arrangement relationship close to the imaging device 22. Thus, when the imaging object 17 is mounted on the mesh-shaped transport belt 11 that travels in the horizontal direction, even if a situation occurs in which the periodicity of the mesh pattern is disturbed by the weight of the imaging object 17, or Even when water drops from seafood, vegetables, or the like as the imaging object 17 disturb the periodicity of the mesh pattern, the pattern of the transport band 11 is erased and the position and size of the imaging object 17 are accurately determined. Can be recognized.

mを1以上の整数として、搬送帯11を構成する金網の網目のパターンの太さをmピクセル幅とすると、想定される搬送帯11の網目のパターンの最大太さは、(m+4)画素のピクセル幅となる。図15に示したとおり、揺らぎδによって、2値化した際の境界が想定よりずれることがある。網目のパターンの太さをmピクセル幅に想定しても、2値化の結果、それぞれ外側に1画素ずつ広がって(m+2)画素のピクセル幅になることもある。更に、ノイズ消去の意図で背景領域の収縮処理を行った場合、最大で搬送帯11の網目のパターンは、更に2画素膨らむので、膨張処理直前の網目のパターンの太さは最大で(m+4)画素のピクセル幅が想定される。   Assuming that m is an integer equal to or greater than 1 and the thickness of the mesh pattern of the metal mesh constituting the transport band 11 is m pixel width, the maximum thickness of the assumed mesh pattern of the transport band 11 is (m + 4) pixels. The pixel width. As shown in FIG. 15, the binarization boundary may deviate from the expected due to fluctuation δ. Even if the thickness of the mesh pattern is assumed to be m pixel widths, as a result of binarization, each pixel may spread outward by one pixel to a pixel width of (m + 2) pixels. Furthermore, when the background area shrinking process is performed for the purpose of eliminating noise, the mesh pattern of the transport band 11 is further expanded by two pixels, so the mesh pattern immediately before the expansion process has a maximum thickness (m + 4). The pixel width of the pixel is assumed.

一方、撮像対象物17のパターンを示す画素領域は、1回の収縮処理によって2画素拡大し、その後の膨張処理によって(m+4)画素のピクセル幅分縮小するので、結果として、(m+2)画素のピクセル幅を縮小する。dを1以上の整数として、仮に直径がdピクセル幅の円形の撮像対象物17があった場合、直径dは、(d−(m+2))ピクセル幅に縮小する。このサイズの縮小の許容比率を5%以下とすると、
(d−(m+4))/d >0.95
が成り立ち、直径dについて解くと、
d>20(m+2)
となる。言い方を変えると、第1の実施の形態に係る画像処理システムには直径dが20(m+2)ピクセル幅より小さい撮像対象物17は適さない。撮像対象物17が安定して搬送帯11に乗るためには、撮像対象物17のサイズに対して、搬送帯11の金網のピッチが少なくとも2ピッチ必要である。2ピッチ以下では、そもそも撮像対象物17が金網の隙間を抜けて落ちたり、1点支持となったりして安定感が損なわれる。上記の条件を数式で表すと、kを1以上の整数として、背景部の太さをkピクセル幅とすれば、
2(m+k) <20(m+2)
となり、これを解くと
k<9m+20
が得られる。つまり、これが背景部の大きさの上限値となるピクセル幅である。
On the other hand, the pixel area indicating the pattern of the imaging object 17 is enlarged by two pixels by one contraction process and reduced by the pixel width of (m + 4) pixels by the subsequent expansion process. Reduce pixel width. If d is an integer equal to or greater than 1 and there is a circular imaging object 17 having a diameter of d pixels, the diameter d is reduced to (d− (m + 2)) pixel width. If the allowable ratio of this size reduction is 5% or less,
(D- (m + 4)) / d> 0.95
And solving for the diameter d,
d> 20 (m + 2)
It becomes. In other words, the imaging object 17 having a diameter d smaller than 20 (m + 2) pixel width is not suitable for the image processing system according to the first embodiment. In order for the imaging target 17 to stably ride on the transport band 11, the pitch of the wire mesh of the transport band 11 is required to be at least 2 pitches relative to the size of the imaging target 17. If the pitch is 2 pitches or less, the imaging object 17 is dropped through the gap of the wire mesh, or is supported at one point, and the sense of stability is impaired. When the above condition is expressed by a mathematical expression, if k is an integer of 1 or more and the thickness of the background portion is k pixel width,
2 (m + k) <20 (m + 2)
And solving this, k <9m + 20
Is obtained. That is, this is the pixel width that is the upper limit of the size of the background portion.

(画像処理プログラム)
図9、図10,図15及び図16に示した一連の画像処理の操作は、図9、図10,図15及び図16と等価なアルゴリズムを実行させるプログラムにより、図1に示した画像処理システムを制御して実行できる。この画像処理プログラムは、図1に示したプログラム記憶装置25に記憶させればよい。又、この画像処理プログラムは、コンピュータ読取り可能な記録媒体に保存し、この記録媒体をプログラム記憶装置25に読み込ませることにより、第1の実施の形態に係る一連の画像処理の操作を実行することができる。
(Image processing program)
The series of image processing operations shown in FIG. 9, FIG. 10, FIG. 15 and FIG. 16 are performed by the program for executing the algorithm equivalent to FIG. 9, FIG. Control and execute the system. This image processing program may be stored in the program storage device 25 shown in FIG. The image processing program is stored in a computer-readable recording medium, and the recording medium is read into the program storage device 25, thereby executing a series of image processing operations according to the first embodiment. Can do.

ここで、「コンピュータ読取り可能な記録媒体」とは、例えばマイクロプロセッサの外部メモリ装置、半導体メモリ、磁気ディスク、光ディスク、光磁気ディスク、磁気テープなどの種々のプログラムを記録することができるような媒体であれば構わない。具体的には、フレキシブルディスク、CD−ROM,MOディスク、カセットテープ、オープンリールテープなどが「コンピュータ読取り可能な記録媒体」に含まれる。   Here, the “computer-readable recording medium” refers to a medium capable of recording various programs such as an external memory device of a microprocessor, a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, a magnetic tape, and the like. If it is okay. Specifically, a flexible disk, CD-ROM, MO disk, cassette tape, open reel tape, etc. are included in the “computer-readable recording medium”.

即ち、第1の実施の形態に係る画像処理プログラムは、(a)網目状の搬送帯11の上面に撮像対象物17を搭載し、搬送帯11の下方に搬送帯11及び撮像対象物17とは、明度、色相又は色度の少なくともいずれかが異なる光学特性の背景板15を配置し、搬送帯11の上方に配置された撮像装置22に対し、撮像対象物17の全景を含む領域を撮像させる命令と、(b)画像処理装置23に対し、撮像装置22から出力される画像データから、撮像対象物17の周りに写り込まれている搬送帯11の網目のパターンを消去させ、撮像対象物17の重心位置及び大きさを算出させる命令とを含む一連の命令を、図1に示した画像処理装置23を備えるコンピュータシステムに実行させるコンピュータソフトウェアプログラムである。   That is, the image processing program according to the first embodiment includes (a) the imaging object 17 mounted on the upper surface of the mesh-shaped transport band 11, and the transport band 11 and the imaging object 17 below the transport band 11. , A background plate 15 having optical characteristics different in at least one of brightness, hue, and chromaticity is disposed, and an area including the entire view of the imaging object 17 is imaged with respect to the imaging device 22 disposed above the transport band 11. And (b) causing the image processing device 23 to erase the mesh pattern of the transport band 11 reflected around the imaging target object 17 from the image data output from the imaging device 22, and This is a computer software program that causes a computer system including the image processing apparatus 23 illustrated in FIG. 1 to execute a series of instructions including an instruction for calculating the position and size of the center of gravity of the object 17.

ここで、画像処理装置23に対し、画像データから網目のパターンを消去させ、撮像対象物17の重心位置及び大きさを算出させる命令には、以下の命令が含まれている:
(イ)撮像データ受信回路231に撮像装置22から画像データを取得させる命令;
(ロ)背景領域分離手段232に、取得された画像データから、背景板15が撮像された背景領域とこの背景領域以外が撮像されている非背景領域の2つに分離させる命令;
(ハ)網目消去回路233に分離された背景領域を、搬送帯11の網目のパターンの幅以上に膨張処理することにより、非背景領域から搬送帯11の像を消去させる命令;
(ニ)撮像対象物認識手段234に撮像対象物17の2値化画像を基に、撮像対象物17の重心位置及び大きさを算出させる命令
Here, the command for causing the image processing device 23 to delete the mesh pattern from the image data and calculating the position and size of the center of gravity of the imaging target 17 includes the following commands:
(A) A command for causing the imaging data receiving circuit 231 to acquire image data from the imaging device 22;
(B) A command for causing the background area separation means 232 to separate the acquired image data into two parts, a background area where the background plate 15 is imaged and a non-background area where the other area is imaged;
(C) A command for erasing the image of the transport band 11 from the non-background area by expanding the background area separated by the mesh erasing circuit 233 beyond the width of the mesh pattern of the transport band 11;
(D) Command for causing the imaging target object recognition means 234 to calculate the position and size of the center of gravity of the imaging target object 17 based on the binarized image of the imaging target object 17

第1の実施の形態に係る画像処理システムの画像処理装置23を備えるコンピュータシステムは、例えばフレキシブルディスク装置(フレキシブルディスクドライブ)及び光ディスク装置(光ディスクドライブ)を内蔵若しくは外部接続するように構成できる。フレキシブルディスクドライブに対してはフレキシブルディスクを、又光ディスクドライブに対してはCD−ROMをその挿入口から挿入し、所定の読み出し操作を行うことにより、これらの記録媒体に格納された画像処理プログラムを画像処理システムを構成するプログラム記憶装置25にインストールすることができる。更に、インターネット等の情報処理ネットワークを介して、この画像処理プログラムをプログラム記憶装置25に格納することが可能である。   The computer system including the image processing device 23 of the image processing system according to the first embodiment can be configured to include, for example, a flexible disk device (flexible disk drive) and an optical disk device (optical disk drive) built in or externally connected. A flexible disk is inserted into the flexible disk drive, and a CD-ROM is inserted into the optical disk drive through the insertion slot, and a predetermined read operation is performed, so that an image processing program stored in these recording media is stored. It can be installed in the program storage device 25 constituting the image processing system. Furthermore, the image processing program can be stored in the program storage device 25 via an information processing network such as the Internet.

以上のように、第1の実施の形態に係る画像処理プログラムによれば、撮像対象物17の方が撮像装置22に近い配置関係となるように撮像対象物17が水平方向に走行する網目状の搬送帯11の上に搭載された場合、撮像対象物17の自重により網目のパターンの周期性が乱れる状況が発生しても、搬送帯11のパターンを消去して、撮像対象物17の位置及び大きさを正確に認識できるように、図1に示した画像処理装置23を含むコンピュータシステムを制御し、動作させることができる。   As described above, according to the image processing program according to the first embodiment, the imaging object 17 travels in the horizontal direction so that the imaging object 17 has an arrangement relationship closer to the imaging device 22. In the case where the periodicity of the mesh pattern is disturbed due to the weight of the imaging object 17, the pattern of the transportation band 11 is erased and the position of the imaging object 17 is In addition, the computer system including the image processing apparatus 23 shown in FIG. 1 can be controlled and operated so that the size can be accurately recognized.

なお、上記の(イ)〜(ニ)の一連の命令に等価な処理は、FPGAのようなPLDを構成して、専用の回路を処理の順番に応じて接続することにより、信号が来たらすぐに次の回路が動作するハードウェア処理によっても実施可能である。或いは、FPGA等のPLDの内部にCPUを組み込み、(イ)〜(ニ)の一連の命令に等価な処理一部をハードウェア処理によって実施して、残余の一部をプログラムによるソフトウェア処理によって実施するように構成してもよい。FPGA内部に組み込まれるCPUには、出荷時に埋め込まれているハードマクロCPUでもよく、論理ブロックでソフトマクロCPUを作ってもよい。   Note that the processing equivalent to the series of instructions (a) to (d) above is performed when a signal is received by configuring a PLD such as an FPGA and connecting dedicated circuits according to the processing order. It can also be implemented by hardware processing in which the next circuit operates immediately. Alternatively, a CPU is incorporated in a PLD such as an FPGA, a part of the processing equivalent to the series of instructions (a) to (d) is performed by hardware processing, and the remaining part is performed by software processing by a program. You may comprise. The CPU incorporated in the FPGA may be a hard macro CPU embedded at the time of shipment, or a soft macro CPU may be made of logical blocks.

(その他の実施の形態)
上記のように、本発明は第1の実施の形態によって記載したが、この開示の一部をなす論述及び図面は本発明を限定するものであると理解すべきではない。この開示から当業者には様々な代替実施の形態、実施例及び運用技術が明らかとなろう。
(Other embodiments)
As described above, the present invention has been described according to the first embodiment. However, it should not be understood that the description and drawings constituting a part of this disclosure limit the present invention. From this disclosure, various alternative embodiments, examples and operational techniques will be apparent to those skilled in the art.

既に述べた第1の実施の形態の説明においては、RGB空間からHSV空間に変換する例を示したが、RGB空間から、R,G,Bの値の最大と最小の平均で明るさを決めるHSL空間に変換してもよく、RGB空間から、R,G,Bの値の平均で明るさを決めるHSI空間に変換しても構わない。更に、CMY空間又はCMYK空間から、C,M,Yの値の最大と最小の平均で明るさを決めるHSL空間に変換してもよい。   In the description of the first embodiment already described, an example in which the RGB space is converted to the HSV space has been shown. However, the brightness is determined by the maximum and minimum averages of the R, G, and B values from the RGB space. You may convert into HSL space and you may convert from RGB space to HSI space which determines a brightness by the average of the value of R, G, B. Furthermore, the CMY space or the CMYK space may be converted into an HSL space in which brightness is determined by the maximum and minimum averages of C, M, and Y values.

更に、図2に示した画像処理装置23のハードウェア資源の構成一例であり、図21に示すように、その一部をFPGAで構成してもよい。図21に示すように、第1の実施の形態に係る画像処理システムの画像処理装置23の一部を構成するFPGAは、撮像装置22から画像データを取得する入力端子Iに接続された撮像データ受信回路231と、撮像データ受信回路231が取得した画像データから、背景板15が撮像された「背景領域」とこの背景領域以外が撮像されている「非背景領域」の2つに分離する背景領域分離回路232GAと、背景領域分離回路232GAで分離された背景領域を、搬送帯11の網目のパターンの幅以上に膨張処理することにより、非背景領域から搬送帯11の像を消去する網目消去回路233と、網目消去回路233により生成された撮像対象物17の2値化画像を基に、撮像対象物17の重心位置及び大きさを算出する撮像対象物認識回路234GAとを、処理に合わせて互いに接続し、撮像対象物認識回路234GAの出力側を画像処理装置23の出力端子Oに接続している。   Furthermore, it is an example of the configuration of hardware resources of the image processing apparatus 23 shown in FIG. 2, and a part thereof may be configured with FPGA as shown in FIG. As shown in FIG. 21, the FPGA constituting a part of the image processing device 23 of the image processing system according to the first embodiment has imaging data connected to an input terminal I that acquires image data from the imaging device 22. A background that separates the image data acquired by the receiving circuit 231 and the imaging data receiving circuit 231 into two parts, a “background area” in which the background plate 15 is imaged and a “non-background area” in which the background area other than this is imaged. A mesh erasure that erases the image of the transport band 11 from the non-background area by expanding the area area separated by the area separation circuit 232GA and the background area separated by the background area separation circuit 232GA beyond the width of the mesh pattern of the transport band 11 Based on the binarized image of the imaging target 17 generated by the circuit 233 and the mesh elimination circuit 233, the imaging target recognition process for calculating the center of gravity position and the size of the imaging target 17 is performed. And 234GA, in accordance with the process connected to each other and connect the output side of the imaging object recognition circuit 234GA to the output terminal O of the image processing apparatus 23.

背景領域分離回路232GAは、図2に示した背景領域分離手段232と等価な機能をなす論理ブロックであり、RGB色空間のデータをHSV色空間のデータに変換するRGB/HSV変換回路232aと、背景領域を2値化する背景領域2値化回路232bとを論理ブロックを構成するゲートアレイとして、処理の順番に合わせて含む。更に、撮像対象物認識回路234GAは、図2に示した撮像対象物認識手段234と等価な機能をなす論理ブロックであり、撮像対象物17のパターンが占める領域の画素数を算出する画素数算出回路234bと、撮像対象物17の重心位置を決定する重心位置決定回路234aと、撮像対象物17の半径を算出する半径算出回路234cとをゲートアレイとして、処理の順番に合わせて接続して含む。   The background area separation circuit 232GA is a logical block having a function equivalent to the background area separation means 232 shown in FIG. 2, and an RGB / HSV conversion circuit 232a for converting RGB color space data into HSV color space data; A background area binarization circuit 232b for binarizing the background area is included as a gate array constituting a logical block in accordance with the order of processing. Further, the imaging object recognition circuit 234GA is a logical block having a function equivalent to that of the imaging object recognition means 234 shown in FIG. 2, and calculates the number of pixels for calculating the number of pixels in the area occupied by the pattern of the imaging object 17. A circuit 234b, a center-of-gravity position determination circuit 234a for determining the center-of-gravity position of the imaging object 17 and a radius calculation circuit 234c for calculating the radius of the imaging object 17 are connected and included in the processing order as a gate array. .

図21に示すように、FPGAとして、 撮像データ受信回路231、背景領域分離回路232GA、網目消去回路233、撮像対象物認識回路234GAをそれぞれ、その必要とされる機能を実現するために専用に設計されたハードウェア回路として半導体チップ上に構成し、処理の順番に沿って各専用回路である撮像データ受信回路231、背景領域分離回路232GA、網目消去回路233、撮像対象物認識回路234GAをつないで動作させるので、信号が来たらすぐに次の回路が動作するハードウェア処理が実施できる。図2に示したようにプログラムカウンタ238を用いてプログラムで撮像データ受信回路231、背景領域分離回路232GA、網目消去回路233、撮像対象物認識回路234GAのそれぞれの機能の順番を指定する必要はないので、 撮像データ受信回路231、背景領域分離回路232GA、網目消去回路233のそれぞれで実行した結果をレジスタに蓄えずにすぐに次の回路に出力し、必要な処理が実行できる。更に、図21に示した光源制御回路235、撮像装置制御回路236、搬送帯制御装置命令回路237等もFPGAによって構成してもよい。   As shown in FIG. 21, as the FPGA, the imaging data receiving circuit 231, the background region separation circuit 232 GA, the mesh elimination circuit 233, and the imaging object recognition circuit 234 GA are individually designed to realize the required functions. The hardware circuit is configured on a semiconductor chip, and the imaging data receiving circuit 231, the background area separation circuit 232 GA, the mesh elimination circuit 233, and the imaging object recognition circuit 234 GA are connected in the order of processing. Since the operation is performed, hardware processing in which the next circuit operates as soon as a signal is received can be performed. As shown in FIG. 2, it is not necessary to specify the order of the functions of the imaging data reception circuit 231, the background region separation circuit 232GA, the mesh elimination circuit 233, and the imaging object recognition circuit 234GA by using the program counter 238. Therefore, the results executed by the imaging data receiving circuit 231, the background region separating circuit 232GA, and the mesh erasing circuit 233 are immediately output to the next circuit without being stored in the register, and necessary processing can be executed. Furthermore, the light source control circuit 235, the imaging device control circuit 236, the transport band control device command circuit 237, and the like shown in FIG.

図21に示したような、その他の実施の形態に係る画像処理システムの画像処理装置23によれば、FPGAによって、専用回路を自由に構成できるので、使わない機能を搭載する必要はないので半導体チップの小型化が可能である。又、リアルタイム性が必要な機能だけを並列化して高速化、他の機能は回路を兼用して小さくするなど、独自の特徴を出すことができる。図21に示したように画像処理装置23の少なくとも一部をFPGAによって構成することにより、各処理を並列に実行できるので、割り込みによる遅延が発生せず、リアルタイム処理に有利である。   According to the image processing apparatus 23 of the image processing system according to the other embodiment as shown in FIG. 21, since the dedicated circuit can be freely configured by the FPGA, it is not necessary to mount a function that is not used. The chip can be miniaturized. In addition, it is possible to bring out unique features such as parallelizing only functions that require real-time performance and increasing the speed while other functions are also reduced in size. As shown in FIG. 21, since at least a part of the image processing apparatus 23 is configured by an FPGA, each process can be executed in parallel, so that no delay due to interruption occurs, which is advantageous for real-time processing.

又、既に述べた第1の実施の形態の説明においては、図2又は図21に示した半径算出回路234cを用いて、図3のステップS133において、撮像対象物17が占有する画素領域の半径を算出する場合について例示的に説明したが、撮像対象物の形状は、円形で外径が近似できる物体のみならず、長い物等、任意形状であっても撮像対象物の大きさを算出することができる。例えば、円形以外の任意形状の撮像対象物であっても、撮像対象物に外接する矩形(長方形)が定義できれば、外接長方形のX軸に平行な辺の長さである水平フェレ径や、外接長方形のY軸に平行な辺の長さである垂直フェレ径によって、撮像対象物の外形寸法を評価し、撮像対象物の大きさを算出することができる。水平フェレ径や垂直フェレ径を算出しておくことにより、撮像対象物の外接矩形の大きさが求まるため、撮像対象物を処理対象物とした場合、処理対象物を掴むときのハンドの稼動域などの情報が得られ、また、画像処理の探索範囲を限定するための情報としても活用できる。   In the description of the first embodiment already described, the radius calculation circuit 234c shown in FIG. 2 or FIG. 21 is used, and the radius of the pixel area occupied by the imaging object 17 in step S133 of FIG. The shape of the imaging object is not only a circular object whose outer diameter can be approximated, but the size of the imaging object can be calculated even for an arbitrary shape such as a long object. be able to. For example, even if the imaging target has an arbitrary shape other than a circle, if a rectangle circumscribing the imaging target can be defined, the horizontal ferret diameter, which is the length of the side parallel to the X axis of the circumscribed rectangle, The outer dimension of the imaging object can be evaluated and the size of the imaging object can be calculated based on the vertical ferret diameter which is the length of the side parallel to the Y axis of the rectangle. By calculating the horizontal ferret diameter and the vertical ferret diameter, the size of the circumscribed rectangle of the object to be imaged can be obtained. Therefore, when the object to be imaged is the object to be processed, the operating range of the hand when grasping the object to be processed Can also be used as information for limiting the search range of image processing.

或いは、注目する撮像対象物と等面積で、撮像対象物のまわりの2次モーメントとの2次モーメントの差が最小となる特徴物相当楕円である「慣性等価楕円」が定義できれば、慣性等価楕円の短軸長さと長軸長さをそれぞれ求めて数値出力することによって、撮像対象物の外形寸法を評価できる。更に、慣性等価楕円の短軸と長軸の比(=短軸長/長軸長)によっても、撮像対象物の外形寸法を評価してもよく、慣性等価楕円の傾き角θによって、撮像対象物の外形寸法を評価してもよい。慣性等価楕円の傾き角θは、慣性等価楕円の主軸(長軸)と水平線とのなす角度であるが、慣性等価楕円の傾き角θが算出できれば、撮像対象物を処理対象物とした場合、処理対象物を掴むときにどれくらいワークが傾いているかといった情報を知ることができる。   Alternatively, if an “inertia equivalent ellipse” that is an equivalent ellipse that has the same area as the imaging object of interest and has a minimum second moment difference from the second moment around the imaging object can be defined, The outer dimension of the object to be imaged can be evaluated by obtaining the short axis length and the long axis length of each and outputting them numerically. Further, the external dimension of the imaging object may be evaluated by the ratio of the minor axis to the major axis of the inertia equivalent ellipse (= minor axis length / major axis length), and the subject to be imaged is determined by the inclination angle θ of the inertia equivalent ellipse. You may evaluate the external dimension of an object. The inclination angle θ of the inertial equivalent ellipse is an angle formed between the principal axis (major axis) of the inertial equivalent ellipse and the horizontal line. If the inclination angle θ of the inertial equivalent ellipse can be calculated, It is possible to know information about how much the workpiece is tilted when grasping the processing object.

このように、本発明はここでは記載していない様々な実施の形態等を含むことは勿論である。したがって、本発明の技術的範囲は上記の説明から妥当な特許請求の範囲に係る発明特定事項によってのみ定められるものである。   As described above, the present invention naturally includes various embodiments not described herein. Therefore, the technical scope of the present invention is defined only by the invention specifying matters according to the scope of claims reasonable from the above description.

本発明は、ベルトコンベア上に、ホタテ、サバ、イカ等の魚介類や野菜等の生鮮物、加工済みの食品、工業製品を処理対象物として搭載し、処理対象物を自動加工処理するために、処理対象物を搬送する工程の途中で、背景のベルトコンベアの網目のパターンを消去し、処理対象物の位置や大きさを認識する画像処理技術の分野、更にこの画像処理技術を用いた食品の加工装置や工業製品の製造装置を生産する技術分野や、食品加工等に関係する種々の産業の分野に利用可能である。例えば、コロッケや肉を焼くラインで焼き具合をコンベア上で検査するような食品加工の分野、或いは、油分がついた機械部品等を金網コンベアに乗せて連続的に化学洗浄し、洗浄具合をコンベア上で検査するような技術分野に利用可能である。   In order to automatically process a processing object, the present invention mounts fresh products such as seafood such as scallops, mackerel, squid and vegetables, processed foods, and industrial products on a belt conveyor as processing objects. In the middle of the process of conveying the object to be processed, the background belt conveyor mesh pattern is erased to recognize the position and size of the object to be processed, and food using this image processing technique The present invention can be used in various technical fields related to food processing, etc. For example, food processing fields such as croquettes and meat grilling lines where the condition of baking is inspected on a conveyor, or machine parts with oil are placed on a wire mesh conveyor for continuous chemical cleaning. It can be used in the technical field as inspected above.

11…搬送帯
13…搬送帯制御装置
15…背景板
17…撮像対象物
21…光源
22…撮像装置
23…画像処理装置
231…撮像データ受信回路
232…背景領域分離手段
232a…HSV変換回路
232b…2値化回路
233…網目消去回路
234…撮像対象物認識手段
234a…重心位置決定回路
234b…画素数算出回路
234c…半径算出回路
235…光源制御回路
236…撮像装置制御回路
237…搬送帯制御装置命令回路
238…プログラムカウンタ
239…データバス
25…プログラム記憶装置
26…表示装置
DESCRIPTION OF SYMBOLS 11 ... Conveyance band 13 ... Conveyance band control apparatus 15 ... Background board 17 ... Imaging target object 21 ... Light source 22 ... Imaging apparatus 23 ... Image processing apparatus 231 ... Imaging data receiving circuit 232 ... Background area separation means 232a ... HSV conversion circuit 232b ... Binarization circuit 233 ... Mesh elimination circuit 234 ... Imaging object recognition means 234a ... Center of gravity position determination circuit 234b ... Pixel number calculation circuit 234c ... Radius calculation circuit 235 ... Light source control circuit 236 ... Imaging device control circuit 237 ... Transport band control device Command circuit 238 ... Program counter 239 ... Data bus 25 ... Program storage device 26 ... Display device

Claims (11)

撮像対象物を上面に搭載して搬送する網目状の搬送帯と、
前記搬送帯の上方に配置され、前記撮像対象物が含まれる撮像範囲全体を様々な方向のベクトルを持った光で包むように照明する、矩形の枠状をなす光源と、
前記搬送帯の上方に配置され、前記撮像対象物の全景を含む領域を撮像する撮像装置と、
前記搬送帯の下方に配置され、前記光源からの前記光により、前記搬送帯及び前記撮像対象物とは、明度、色相又は色度の少なくともいずれかが異なる光学特性を呈する背景板と、
前記撮像装置に接続され、前記撮像装置から出力される画像データから、前記撮像対象物の周りに写り込まれている前記搬送帯の網目のパターンを消去して、前記撮像対象物の重心位置及び大きさを算出する画像処理装置と、
を備えることを特徴とする画像処理システム。
A mesh-shaped transport belt that transports the imaging object mounted on the upper surface;
A light source in the form of a rectangular frame, which is disposed above the transport band and illuminates the entire imaging range including the imaging target object with light having vectors in various directions;
An imaging device that is disposed above the transport zone and that captures an area including the entire view of the imaging object;
A background plate that is disposed below the transport band and exhibits optical characteristics in which at least one of brightness, hue, or chromaticity is different from the transport band and the imaging object due to the light from the light source ;
From the image data connected to the imaging device and output from the imaging device, the mesh pattern of the transport band reflected around the imaging object is erased, and the barycentric position of the imaging object and An image processing device for calculating the size;
An image processing system comprising:
前記画像処理装置は、
前記撮像装置から前記画像データを取得する撮像データ受信回路と、
前記撮像データ受信回路が取得した前記画像データから、前記背景板が撮像された背景領域と該背景領域以外が撮像されている非背景領域の2つに分離する背景領域分離手段と、
前記背景領域分離手段で分離された前記背景領域を、前記搬送帯の網目のパターンの幅以上に膨張処理することにより、前記非背景領域から前記搬送帯の像を消去する網目消去回路と、
前記網目消去回路により生成された前記撮像対象物の2値化画像を基に、前記撮像対象物の重心位置及び大きさを算出する撮像対象物認識手段と、
を備えることを特徴とする請求項1に記載の画像処理システム。
The image processing apparatus includes:
An imaging data receiving circuit for acquiring the image data from the imaging device;
From the image data acquired by the imaging data receiving circuit, a background area separating unit that separates into two of a background area in which the background board is imaged and a non-background area in which the area other than the background area is imaged;
A mesh erasing circuit for erasing the image of the transport band from the non-background area by expanding the background area separated by the background area separation means to a width greater than the width of the mesh pattern of the transport band;
Imaging object recognition means for calculating the position and size of the center of gravity of the imaging object based on the binarized image of the imaging object generated by the mesh elimination circuit;
The image processing system according to claim 1, further comprising:
前記画像処理装置は、
前記撮像装置から前記画像データを取得する撮像データ受信回路と、
前記撮像データ受信回路の出力端に接続され、前記撮像データ受信回路が取得した画像データから、前記背景板が撮像された背景領域と該背景領域以外が撮像されている非背景領域の2つに分離する背景領域分離回路と、
前記背景領域分離回路の出力端に接続され、前記背景領域分離回路で分離された背景領域を、前記搬送帯の網目のパターンの幅以上に膨張処理することにより、前記非背景領域から前記搬送帯の像を消去する網目消去回路と、
前記網目消去回路の出力端に接続され、前記網目消去回路により生成された前記撮像対象物の2値化画像を基に、前記撮像対象物の重心位置及び大きさを算出する撮像対象物認識回路と、
を、前記画像処理装置の処理の順番に従って接続された専用回路として備えるプログラマブル・ロジック・デバイスで構成していることを特徴とする請求項1に記載の画像処理システム。
The image processing apparatus includes:
An imaging data receiving circuit for acquiring the image data from the imaging device;
From the image data acquired by the imaging data receiving circuit connected to the output terminal of the imaging data receiving circuit, the background area in which the background plate is imaged and the non-background area in which the area other than the background area is imaged With background area separation circuit to separate,
The background area connected to the output terminal of the background area separation circuit and separated by the background area separation circuit is expanded beyond the width of the mesh pattern of the conveyance band, so that the conveyance band from the non-background area A mesh erasing circuit for erasing the image of
An imaging object recognition circuit that is connected to the output terminal of the mesh elimination circuit and calculates the position and size of the center of gravity of the imaging object based on the binarized image of the imaging object generated by the mesh elimination circuit When,
The image processing system according to claim 1, further comprising: a programmable logic device provided as a dedicated circuit connected in accordance with a processing order of the image processing apparatus.
前記網目消去回路において、前記背景領域の膨張処理の前に前記背景領域の収縮処理を挿入することを特徴とする請求項に記載の画像処理システム。 3. The image processing system according to claim 2 , wherein in the mesh erasing circuit , a shrinking process of the background area is inserted before the expanding process of the background area. 前記撮像装置の画素を単位として、前記搬送帯の隙間を通して撮像される前記背景板の領域が占める画素数は、1次元方向に測って5画素以上であることを特徴とする請求項4に記載の画像処理システム。   5. The number of pixels occupied by the area of the background plate imaged through the gap of the transport band in units of pixels of the imaging device is 5 pixels or more when measured in a one-dimensional direction. Image processing system. 撮像対象物を上面に搭載して搬送する網目状の搬送帯と、前記搬送帯の上方に配置され、前記撮像対象物が含まれる撮像範囲全体を様々な方向のベクトルを持った光で包むように照明する、矩形の枠状をなす光源を備える画像処理システムを用いた画像処理方法であって、
前記搬送帯の上面に前記撮像対象物を搭載し、前記搬送帯の下方に配置された背景板に対し、前記光源からの前記光により、前記搬送帯及び前記撮像対象物とは、明度、色相又は色度の少なくともいずれかが異なる光学特性を発現させて、前記搬送帯の上方に配置された撮像装置によって、前記撮像対象物の全景を含む領域を撮像するステップと、
前記撮像装置から出力される画像データから、前記撮像対象物の周りに写り込まれている前記搬送帯の網目のパターンを消去して、前記撮像対象物の重心位置及び大きさを算出するステップと
を含むことを特徴とする画像処理方法。
A mesh-shaped transport band that carries an imaging object mounted on the upper surface and transports it, and is arranged above the transport band so as to wrap the entire imaging range including the imaging object with light having vectors in various directions An image processing method using an image processing system including a light source that illuminates a rectangular frame,
Wherein said imaged object is mounted on the upper surface of the conveyor belt, the relative background plate disposed below the conveyor belt, by the light from the light source, and the conveyor belt and the imaged object, lightness, hue or at least one of chromaticity to express different optical properties, by the imaging device disposed above the conveyor belt, the method comprising imaging a region containing the full view of the imaged object,
Erasing the mesh pattern of the transport band reflected around the imaging object from the image data output from the imaging device, and calculating the gravity center position and size of the imaging object; ,
An image processing method comprising:
前記網目のパターンを消去して、前記撮像対象物の重心位置及び大きさを算出するステップは、
前記撮像装置から前記画像データを取得するステップと、
取得された前記画像データから、前記背景板が撮像された背景領域と該背景領域以外が撮像されている非背景領域の2つに分離するステップと、
分離された前記背景領域を、前記搬送帯の網目のパターンの幅以上に膨張処理することにより、前記非背景領域から前記搬送帯の像を消去するステップと、
前記撮像対象物の2値化画像を基に、前記撮像対象物の重心位置及び大きさを算出するステップと、
を含むことを特徴とする請求項6に記載の画像処理方法。
The step of erasing the mesh pattern and calculating the position and size of the center of gravity of the imaging object include:
Obtaining the image data from the imaging device;
Separating from the acquired image data into two, a background area where the background plate is imaged and a non-background area where the area other than the background area is imaged;
Erasing the image of the transport band from the non-background area by expanding the separated background area to a width greater than the width of the mesh pattern of the transport band; and
Calculating a center of gravity position and a size of the imaging object based on the binarized image of the imaging object;
The image processing method according to claim 6, further comprising:
前記網目のパターンを消去して、前記撮像対象物の重心位置及び大きさを算出するステップは、
前記撮像装置から前記画像データを取得する撮像データ受信回路と、前記撮像データ受信回路の出力端に接続され、前記撮像データ受信回路が取得した画像データから、前記背景板が撮像された背景領域と該背景領域以外が撮像されている非背景領域の2つに分離する背景領域分離回路と、前記背景領域分離回路の出力端に接続され、前記背景領域分離回路で分離された背景領域を、前記搬送帯の網目のパターンの幅以上に膨張処理することにより、前記非背景領域から前記搬送帯の像を消去する網目消去回路と、前記網目消去回路の出力端に接続され、前記網目消去回路により生成された前記撮像対象物の2値化画像を基に、前記撮像対象物の重心位置及び大きさを算出する撮像対象物認識回路とを、前記網目のパターンを消去して、前記撮像対象物の重心位置及び大きさを算出するステップに至る処理の順番に従って接続された専用回路として備えるプログラマブル・ロジック・デバイスによって、プログラムを用いずにハードウェア処理することを特徴とする請求項6に記載の画像処理方法。
The step of erasing the mesh pattern and calculating the position and size of the center of gravity of the imaging object include:
An imaging data receiving circuit that acquires the image data from the imaging device; and a background region that is connected to an output terminal of the imaging data receiving circuit and in which the background plate is imaged from the image data acquired by the imaging data receiving circuit; A background region separation circuit that separates the background region other than the background region into two non-background regions, and a background region that is connected to an output terminal of the background region separation circuit and separated by the background region separation circuit, A mesh erase circuit for erasing the image of the transport band from the non-background area by performing expansion processing to a width greater than the width of the mesh pattern of the transport band, and an output terminal of the mesh erase circuit. Based on the generated binarized image of the imaging object, the imaging object recognition circuit that calculates the gravity center position and the size of the imaging object, erases the mesh pattern, 7. A hardware process without using a program by a programmable logic device provided as a dedicated circuit connected in accordance with an order of processing up to a step of calculating a gravity center position and a size of an image object. An image processing method described in 1.
前記背景領域の膨張処理の前に前記背景領域の収縮処理を挿入することを特徴とする請求項7に記載の画像処理方法。   The image processing method according to claim 7, wherein a shrinking process of the background area is inserted before the expanding process of the background area. 前記撮像装置の画素を単位として、前記搬送帯の隙間を通して撮像される前記背景板の領域が占める画素数は、1次元方向に測って5画素以上であることを特徴とする請求項9に記載の画像処理方法。   10. The number of pixels occupied by the area of the background plate imaged through the gap of the transport band in units of pixels of the imaging device is 5 pixels or more when measured in a one-dimensional direction. Image processing method. 撮像対象物を上面に搭載して搬送する網目状の搬送帯と、前記搬送帯の上方に配置され、前記撮像対象物が含まれる撮像範囲全体を様々な方向のベクトルを持った光で包むように照明する、矩形の枠状をなす光源を備える画像処理システムに用いられる画像処理装置に一連の命令を実行させる画像処理プログラムであって、
前記搬送帯の上面に前記撮像対象物を搭載し、前記搬送帯の下方に配置された背景板に対し、前記光源からの前記光により、前記搬送帯及び前記撮像対象物とは、明度、色相又は色度の少なくともいずれかが異なる光学特性を発現させ、前記搬送帯の上方に配置された撮像装置に対し、前記撮像対象物の全景を含む領域を撮像させる命令と、
画像処理装置に対し、前記撮像装置から出力される画像データから、前記撮像対象物の周りに写り込まれている前記搬送帯の網目のパターンを消去させ、前記撮像対象物の重心位置及び大きさを算出させる命令と、
を含む一連の命令を前記画像処理装置を備えるコンピュータシステムに実行させることを特徴とする画像処理プログラム。
A mesh-shaped transport band that carries an imaging object mounted on the upper surface and transports it, and is arranged above the transport band so as to wrap the entire imaging range including the imaging object with light having vectors in various directions An image processing program for causing an image processing apparatus used in an image processing system including a light source having a rectangular frame shape to execute a series of instructions,
Wherein said imaged object is mounted on the upper surface of the conveyor belt, the relative background plate disposed below the conveyor belt, by the light from the light source, and the conveyor belt and the imaged object, lightness, hue Or at least one of the chromaticities expresses different optical characteristics , and causes the imaging device disposed above the transport band to image an area including the entire view of the imaging object;
The image processing apparatus causes the pattern of the mesh of the transport band reflected around the imaging object to be erased from the image data output from the imaging apparatus, and the barycentric position and size of the imaging object An instruction to calculate
An image processing program causing a computer system including the image processing apparatus to execute a series of instructions including:
JP2014049038A 2014-03-12 2014-03-12 Image processing system, image processing method, and image processing program Expired - Fee Related JP6334215B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014049038A JP6334215B2 (en) 2014-03-12 2014-03-12 Image processing system, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014049038A JP6334215B2 (en) 2014-03-12 2014-03-12 Image processing system, image processing method, and image processing program

Publications (2)

Publication Number Publication Date
JP2015173410A JP2015173410A (en) 2015-10-01
JP6334215B2 true JP6334215B2 (en) 2018-05-30

Family

ID=54260477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014049038A Expired - Fee Related JP6334215B2 (en) 2014-03-12 2014-03-12 Image processing system, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP6334215B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102218894B1 (en) * 2019-08-21 2021-02-23 한국생산기술연구원 Device for Double Recognition Image Treatment for Conveyor Belt and Method for the Same

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6506356B2 (en) * 2017-07-26 2019-04-24 ファナック株式会社 Article conveyance system and conveyance system control device
CN108584352B (en) * 2018-06-15 2024-02-13 湖北凯瑞知行智能装备有限公司 Machine vision-based adhesive tape deviation diagnosis system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3438925B2 (en) * 1993-12-28 2003-08-18 三洋電機株式会社 Tablet inspection system
JP3377697B2 (en) * 1996-10-08 2003-02-17 三菱重工業株式会社 Fish type discriminator
JP3653063B2 (en) * 2002-06-07 2005-05-25 三菱重工業株式会社 Agricultural product quality judgment device and agricultural product quality judgment method
EP2702978A4 (en) * 2011-04-28 2015-07-15 Yuyama Mfg Co Ltd Medicine checking device and apparatus for separately packaging medicines
JP5855961B2 (en) * 2012-02-02 2016-02-09 株式会社キーエンス Image processing apparatus and image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102218894B1 (en) * 2019-08-21 2021-02-23 한국생산기술연구원 Device for Double Recognition Image Treatment for Conveyor Belt and Method for the Same

Also Published As

Publication number Publication date
JP2015173410A (en) 2015-10-01

Similar Documents

Publication Publication Date Title
CN108550101B (en) Image processing method, device and storage medium
US9569827B2 (en) Image processing apparatus and method, and program
US8670622B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP6445775B2 (en) Image processing apparatus and image processing method
WO2021051604A1 (en) Method for identifying text region of osd, and device and storage medium
JP5409627B2 (en) System and method for identifying complex tokens in images
JP5729464B2 (en) POSITION INFORMATION ADDING DEVICE, POSITION INFORMATION ADDING METHOD, POSITION INFORMATION ADDING COMPUTER PROGRAM, AND POSITION DETECTION DEVICE
JP6334215B2 (en) Image processing system, image processing method, and image processing program
JP2014059875A5 (en)
JP5765026B2 (en) Image processing apparatus and program
CN102608016A (en) Method for measuring average size of complicated particles based on Canny boundary detection
CN111127543A (en) Image processing method, image processing apparatus, electronic device, and storage medium
US9628659B2 (en) Method and apparatus for inspecting an object employing machine vision
TW201445506A (en) Method and apparatus for determining interpolating direction for color demosaicking and non-transitory machine-readable storage medium
JP5264956B2 (en) Two-dimensional code reading apparatus and method
JP5449001B2 (en) Video noise detector
US9734593B2 (en) Object locating and tracking in video frames using smoothness check along specified line sections
WO2015093231A1 (en) Image processing device
JP5346304B2 (en) Appearance inspection apparatus, appearance inspection system, and appearance inspection method
JP5509706B2 (en) Image processing apparatus and image processing method
JP6788484B2 (en) Display device detection device and display device detection program
Moghimi et al. A new algorithm for segmenting overlapped green pellets to improve automatic pelletizing process
JP6766219B2 (en) Image processing method, image processing device and program
JP5941351B2 (en) Image processing apparatus and control method thereof
JP2009289076A (en) Image feature extracting apparatus, image feature extracting method, program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170223

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180117

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: 20180403

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180426

R150 Certificate of patent or registration of utility model

Ref document number: 6334215

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees