JP6958810B2 - Shape recognition program and shape recognition device for leaf-shaped crops - Google Patents

Shape recognition program and shape recognition device for leaf-shaped crops Download PDF

Info

Publication number
JP6958810B2
JP6958810B2 JP2017186895A JP2017186895A JP6958810B2 JP 6958810 B2 JP6958810 B2 JP 6958810B2 JP 2017186895 A JP2017186895 A JP 2017186895A JP 2017186895 A JP2017186895 A JP 2017186895A JP 6958810 B2 JP6958810 B2 JP 6958810B2
Authority
JP
Japan
Prior art keywords
region
leaf
petiole
extracted
gravity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017186895A
Other languages
Japanese (ja)
Other versions
JP2019061567A (en
Inventor
光男 爪
順 坂田
鈴木 健介
純 三浦
広朗 増沢
修士 大石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyohashi University of Technology NUC
Sinfonia Technology Co Ltd
Original Assignee
Toyohashi University of Technology NUC
Sinfonia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyohashi University of Technology NUC, Sinfonia Technology Co Ltd filed Critical Toyohashi University of Technology NUC
Priority to JP2017186895A priority Critical patent/JP6958810B2/en
Publication of JP2019061567A publication Critical patent/JP2019061567A/en
Application granted granted Critical
Publication of JP6958810B2 publication Critical patent/JP6958810B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、葉状農作物の形状を認識するための形状認識プログラム、及び形状認識装置に関する。 The present invention relates to a shape recognition program for recognizing the shape of a leaf-shaped crop and a shape recognition device.

従来から、葉状農作物の選別や包装等の作業を行うシステムが提供されており、例えば特許文献1では、葉状農作物を撮像した画像データから葉状農作物のサイズを判定し、そのサイズの判定結果に基づいて前記作業を行うようにシステムを動作させるプログラムが導入されている。 Conventionally, a system for selecting and packaging leaf-shaped crops has been provided. For example, in Patent Document 1, the size of a leaf-shaped crop is determined from image data obtained by imaging the leaf-shaped crop, and the size of the leaf-shaped crop is determined based on the determination result. A program that operates the system to perform the above work has been introduced.

特開2007−331782号公報Japanese Unexamined Patent Publication No. 2007-331782

しかしながら、検査画像に映る葉状農作物の向きは常に一定であるとは限らないため、葉状農作物の形状やサイズの判定結果にばらつき(誤り)が生じると、前記システムにおける選別や包装等の作業が正しく行われなくなることがある。従って、葉状農作物を取り扱ううえでは、葉状農作物の形状を正確に認識することが重要である。 However, since the orientation of the leaf-shaped crops shown in the inspection image is not always constant, if the shape and size determination results of the leaf-shaped crops vary (error), the work such as sorting and packaging in the system is correct. It may not be done. Therefore, when handling foliage crops, it is important to accurately recognize the shape of the foliage crops.

そこで、本発明は、斯かる実情に鑑み、葉状農作物の形状を正確に認識できる葉状農作物の形状認識プログラム及び形状認識装置を提供することを課題とする。 Therefore, in view of such circumstances, it is an object of the present invention to provide a shape recognition program and a shape recognition device for leafy crops that can accurately recognize the shape of the leafy crops.

本発明の葉状農作物の形状認識プログラムは、
コンピュータを、
検査画像に映る葉状農作物の像から葉柄の領域を抽出すべく、前記葉状農作物の重心を中心として径外方向に膨らむように湾曲する曲線領域を少なくとも含む走査領域を設定する領域設定処理、前記領域設定処理で設定した前記走査領域のうち前記葉状農作物と重なる重複領域を抽出する第一の抽出処理、前記第一の抽出処理で抽出した重複領域から所定の長さ以下の短小領域をさらに抽出する第二の抽出処理、のそれぞれの処理を前記曲線領域が前記重心を中心として前記径外方向に変位するように前記走査領域を拡張しながら複数回繰り返して実行した後に、前記第二の抽出処理で抽出した複数の短小領域を結合する領域結合処理を実行して前記葉柄の領域を抽出する葉柄領域抽出手段、
前記葉状農作物の像から前記葉柄領域抽出手段で抽出した前記葉柄の領域を除くことにより前記葉状農作物の葉身の領域を抽出する葉身領域抽出手段、として機能させる。
The shape recognition program for leafy crops of the present invention
Computer,
Area setting process for setting a scanning area including at least a curved area curved so as to bulge in the out-of-diameter direction around the center of gravity of the leaf-shaped crop in order to extract a leaf stalk region from the image of the leaf-shaped crop reflected in the inspection image. From the scanning area set in the setting process, the first extraction process for extracting the overlapping area overlapping with the leaf-shaped agricultural product, and the short and small areas having a predetermined length or less are further extracted from the overlapping area extracted in the first extraction process. After each process of the second extraction process is repeatedly executed a plurality of times while expanding the scanning area so that the curved area is displaced in the out-of-diameter direction about the center of gravity, the second extraction process is performed. A peduncle region extraction means for extracting the peduncle region by executing a region merging process for combining a plurality of short and small regions extracted in step 1.
By removing the petiole region extracted by the petiole region extracting means from the image of the leaf-shaped crop, the leaf blade region is extracted as a leaf blade region extracting means for extracting the leaf blade region of the leaf-shaped crop.

上記構成の形状認識プログラムによれば、検査画像に映る葉状農作物の像から葉柄の領域と葉身の領域、すなわち、葉柄の形状と葉身の形状とを別々に抽出することで、葉状農作物の形状を正確に認識できるようになる。 According to the shape recognition program having the above configuration, the petiole region and the leaf blade region, that is, the petiole shape and the leaf blade shape are separately extracted from the image of the leaf-shaped crop reflected in the inspection image, thereby producing the leaf-shaped crop. You will be able to recognize the shape accurately.

また、本発明の葉状農作物の形状認識プログラムは、
前記コンピュータを、
前記葉柄領域抽出手段で抽出した前記葉柄の領域に関する情報、及び前記葉身領域抽出手段で抽出した前記葉身の領域に関する情報を用いて前記葉状農作物の向きを導出する向き導出手段、として機能させ、
前記向き導出手段は、前記葉柄領域抽出手段で抽出した前記葉柄の領域の重心と前記葉身領域抽出手段で抽出した前記葉身の領域の重心とを導出し、前記葉柄の領域の重心と前記葉身の領域の重心とを結ぶ直線の向きを前記葉状農作物の向きと判定するように構成されていてもよい。
In addition, the shape recognition program for leaf-shaped crops of the present invention
The computer
Using the information about the petiole region extracted by the petiole region extracting means and the information about the leaf blade region extracted by the leaf blade region extracting means, it is made to function as a direction deriving means for deriving the orientation of the leaf-shaped agricultural product. ,
The orientation derivation means derives the center of gravity of the petiole region extracted by the petiole region extraction means and the center of gravity of the leaf blade region extracted by the petiole region extraction means, and derives the center of gravity of the petiole region and the center of gravity of the leaf blade region. The direction of the straight line connecting the center of gravity of the leaf blade region may be determined to be the direction of the leaf-shaped agricultural product.

葉状農作物の向きは葉柄の向きや位置が深く関係しているところ、上記構成の形状認識プログラムによれば、葉柄領域抽出手段で葉柄の領域を抽出したうえで、向き導出手段が葉状農作物の向きを導出するように構成されているため、葉柄の領域に関する情報を加味したうえで葉状農作物の向きを検出することができる。 The orientation of the petiole crop is deeply related to the orientation and position of the petiole. Since it is configured to derive the above, the orientation of the foliage crop can be detected after adding the information about the petiole region.

また、葉柄の領域の重心と葉身の領域の重心とを結ぶ直線の向きを葉状農作物の向きと判定するため、葉状農作物の向きを簡単に求めることができる。 Further, since the direction of the straight line connecting the center of gravity of the petiole region and the center of gravity of the leaf blade region is determined as the orientation of the leaf-shaped crop, the orientation of the leaf-shaped crop can be easily obtained.

本発明の葉状農作物の形状認識装置は、
葉状農作物が映る検査画像から該葉状農作物の形状を認識するための処理を実行する処理装置を備え、
前記処理装置は、
検査画像に映る前記葉状農作物の像から葉柄の領域を抽出すべく、前記葉状農作物の重心を中心として径外方向に膨らむように湾曲する曲線領域を少なくとも含む走査領域を設定する領域設定処理、前記領域設定処理で設定した前記走査領域のうち前記葉状農作物と重なる重複領域を抽出する第一の抽出処理、前記第一の抽出処理で抽出した重複領域から所定の長さ以下の短小領域をさらに抽出する第二の抽出処理、のそれぞれの処理を前記曲線領域が前記重心を中心として前記径外方向に変位するように前記走査領域を拡張しながら複数回繰り返して実行した後に、前記第二の抽出処理で抽出した複数の短小領域を結合する領域結合処理を実行して前記葉柄の領域を抽出する葉柄領域抽出手段と、
前記葉状農作物の像から前記葉柄領域抽出手段で抽出した前記葉柄の領域を除くことにより前記葉状農作物の葉身の領域を抽出する葉身領域抽出手段と、を有する。
The shape recognition device for leaf-shaped crops of the present invention
It is equipped with a processing device that executes a process for recognizing the shape of the leaf-shaped crop from the inspection image showing the leaf-shaped crop.
The processing device is
An area setting process for setting a scanning area including at least a curved area that bulges outward in the radial direction around the center of gravity of the foliage crop in order to extract a foliage region from the image of the foliage crop reflected in the inspection image. A first extraction process for extracting an overlapping area overlapping the leaf-shaped agricultural product among the scanning areas set in the area setting process, and a short area having a predetermined length or less is further extracted from the overlapping area extracted by the first extraction process. After each process of the second extraction process is repeated a plurality of times while expanding the scanning area so that the curved area is displaced in the out-of-diameter direction about the center of gravity, the second extraction process is performed. A peduncle region extraction means for extracting the peduncle region by executing a region merging process for combining a plurality of short and small regions extracted in the process.
It has a leaf blade region extraction means for extracting a leaf blade region of the leaf crop by removing the petiole region extracted by the petiole region extraction means from the image of the leaf crop.

上記構成の形状認識装置によれば、検査画像に映る葉状農作物の像から葉柄の領域と葉身の領域、すなわち、葉柄の形状と葉身の形状とを別々に抽出することで、葉状農作物の形状を正確に認識できるようになる。 According to the shape recognition device having the above configuration, the petiole region and the leaf blade region, that is, the petiole shape and the leaf blade shape are separately extracted from the image of the leaf-shaped crop displayed on the inspection image, thereby producing the leaf-shaped crop. You will be able to recognize the shape accurately.

また、本発明の葉状農作物の形状認識装置は、
前記葉柄領域抽出手段で抽出した前記葉柄の領域に関する情報、及び前記葉身領域抽出手段で抽出した前記葉身の領域に関する情報を用いて前記葉状農作物の向きを導出する向き導出手段を有し、
前記向き導出手段は、前記葉柄領域抽出手段で抽出した前記葉柄の領域の重心と前記葉身領域抽出手段で抽出した前記葉身の領域の重心とを導出し、前記葉柄の領域の重心と前記葉身の領域の重心とを結ぶ直線の向きを前記葉状農作物の向きと判定する、ように構成されていてもよい。
Further, the shape recognition device for leaf-shaped crops of the present invention is
It has a direction deriving means for deriving the orientation of the leaf-shaped agricultural product by using the information about the petiole region extracted by the petiole region extracting means and the information about the leaf blade region extracted by the leaf blade region extracting means.
The orientation derivation means derives the center of gravity of the petiole region extracted by the petiole region extraction means and the center of gravity of the leaf blade region extracted by the petiole region extraction means, and derives the center of gravity of the petiole region and the center of gravity of the leaf blade region. The direction of the straight line connecting the center of gravity of the leaf blade region may be determined as the direction of the leaf-shaped agricultural product.

葉状農作物の向きは葉柄の向きや位置が深く関係しているところ、上記構成の形状認識装置によれば、葉柄領域抽出手段で葉柄の領域を抽出したうえで、向き導出手段が葉状農作物の向きを導出するように構成されているため、葉柄の領域に関する情報を加味したうえで葉状農作物の向きを導出することができる。 The orientation of the petiole crop is deeply related to the orientation and position of the petiole. Since it is configured to derive the direction of the foliage crop, it is possible to derive the orientation of the foliage crop after adding the information on the petiole region.

また、葉柄の領域の重心と、葉身の領域の重心とを結ぶ直線の向きを葉状農作物の向きと判定するため、葉状農作物の向きを簡単に求めることができる。 Further, since the direction of the straight line connecting the center of gravity of the petiole region and the center of gravity of the leaf blade region is determined as the orientation of the leaf-shaped crop, the orientation of the leaf-shaped crop can be easily obtained.

以上のように、本発明の葉状農作物の形状認識プログラム及び形状認識装置によれば、葉状農作物の形状を正確に認識できるという優れた効果を奏し得る。 As described above, according to the shape recognition program and the shape recognition device of the leaf-shaped crop of the present invention, it is possible to obtain an excellent effect that the shape of the leaf-shaped crop can be accurately recognized.

図1は、本発明の一実施形態に係る形状認識装置を備えた出荷システムの平面概略図である。FIG. 1 is a schematic plan view of a shipping system including a shape recognition device according to an embodiment of the present invention. 図2は、同実施形態に係る形状認識装置を備えた出荷システムの側面概略図である。FIG. 2 is a side schematic view of a shipping system including the shape recognition device according to the embodiment. 図3は、同実施形態に係る形状認識装置のハードウェア構成のブロック図である。FIG. 3 is a block diagram of the hardware configuration of the shape recognition device according to the embodiment. 図4は、同実施形態に係る形状認識装置のステージの平面図である。FIG. 4 is a plan view of the stage of the shape recognition device according to the embodiment. 図5は、同実施形態に係る形状認識装置の機能ブロック図である。FIG. 5 is a functional block diagram of the shape recognition device according to the embodiment. 図6において、(a)は検査画像の説明図であり、(b)は背景領域と葉領域を抽出した状態の検査画像の説明図である。In FIG. 6, (a) is an explanatory diagram of an inspection image, and (b) is an explanatory diagram of an inspection image in a state where a background region and a leaf region are extracted. 図7において、(a)は検査画像に走査領域を設定した状態の説明図であり、(b)は該走査領域により検査画像から重複領域を抽出した状態の説明図である。7A and 7B are explanatory views of a state in which a scanning area is set in the inspection image, and FIG. 7B is an explanatory view of a state in which an overlapping area is extracted from the inspection image by the scanning area. 図8において、(a)は拡張した走査領域を検査画像に設定した状態の説明図であり、(b)は該走査領域により検査画像から重複領域を抽出した状態の説明図である。In FIG. 8, (a) is an explanatory diagram of a state in which an expanded scanning region is set in an inspection image, and (b) is an explanatory diagram of a state in which an overlapping region is extracted from the inspection image by the scanning region. 図9において、(a)はさらに拡張した走査領域を検査画像に設定した状態の説明図であり、(b)は該走査領域により検査画像から重複領域を抽出した状態の説明図である。9A and 9B are explanatory views of a state in which a further expanded scanning area is set in the inspection image, and FIG. 9B is an explanatory view of a state in which an overlapping area is extracted from the inspection image by the scanning area. 図10において、(a)は短小領域を結合した状態の説明図であり、(b)は葉柄領域を抽出した状態の説明図である。In FIG. 10, (a) is an explanatory diagram of a state in which short and small regions are connected, and (b) is an explanatory diagram of a state in which a petiole region is extracted. 図11は、同実施形態に係る形状認識装置による葉状農作物の向きを導出する処理の説明図である。FIG. 11 is an explanatory diagram of a process of deriving the orientation of the leaf-shaped crop by the shape recognition device according to the embodiment. 図12は、同実施形態に係る形状認識装置の動作を説明するためのメインフローチャートである。FIG. 12 is a main flowchart for explaining the operation of the shape recognition device according to the embodiment. 図13は、同実施形態に係る形状認識装置の葉領域抽出手段による葉領域の抽出処理のサブフローチャートである。FIG. 13 is a sub-flow chart of the leaf region extraction process by the leaf region extraction means of the shape recognition device according to the embodiment. 図14は、同実施形態に係る形状認識装置の葉柄領領域抽出手段による葉柄領領域の抽出処理のサブフローチャートである。FIG. 14 is a sub-flow chart of the petiole area extraction process by the petiole area extraction means of the shape recognition device according to the embodiment. 図15は、同実施形態に係る形状認識装置の向き導出手段による大葉の向きの導出処理のサブフローチャートである。FIG. 15 is a sub-flow chart of the direction derivation process of the perilla by the direction derivation means of the shape recognition device according to the same embodiment.

以下、本発明の一実施形態に係る葉状農作物の形状認識プログラム及び形状認識装置について、添付図面を参照しつつ説明する。 Hereinafter, the shape recognition program and the shape recognition device for the leaf-shaped crop according to the embodiment of the present invention will be described with reference to the attached drawings.

形状認識プログラムは、コンピュータを、葉状農作物を撮像して得た検査画像に基づいて葉状農作物の形状を特定するための葉状農作物の形状認識装置として機能させるように構成されたものである。 The shape recognition program is configured to function as a shape recognition device for leaf-shaped crops for identifying the shape of the leaf-shaped crops based on an inspection image obtained by imaging the leaf-shaped crops.

また、形状認識装置は、例えば、葉状農作物の検査及び出荷準備を行うための葉状農作物の出荷システムに組み込まれる。 Further, the shape recognition device is incorporated into, for example, a leaf-shaped crop shipping system for inspecting and preparing for shipping of the leaf-shaped crop.

本実施形態では、この出荷システムに形状認識装置が組み込まれていることを一例に挙げて、形状認識装置、及び形状認識プログラムの説明を行うこととする。なお、本実施形態に係る葉状農作物とは、大葉のことであるが、平面寸法に比べて厚み寸法の小さい葉であれば他種の葉状農作物であってもよい。 In the present embodiment, the shape recognition device and the shape recognition program will be described by taking as an example the fact that the shape recognition device is incorporated in the shipping system. The leaf-shaped crop according to the present embodiment is a large leaf, but a leaf-shaped crop of another species may be used as long as the leaf has a thickness smaller than the plane size.

出荷システム1は、図1、及び図2に示すように、複数枚の大葉を収容する収容具2と、該収容具2から取り出した大葉の形状を認識するための形状認識装置3と、該形状認識装置3で形状を認識した大葉を搬送する搬送装置4と、該搬送装置4で搬送されている大葉を取得して出荷するための加工を行う加工装置5とを備えている。 As shown in FIGS. 1 and 2, the shipping system 1 includes an accommodating tool 2 for accommodating a plurality of perilla, a shape recognition device 3 for recognizing the shape of the perilla taken out from the accommodating tool 2, and the same. It is provided with a transport device 4 for transporting the perilla whose shape has been recognized by the shape recognition device 3, and a processing device 5 for performing processing for acquiring and shipping the perilla transported by the transport device 4.

収容具2は、複数枚の大葉を積み上げた状態で内部に収容できるように構成されている。 The accommodating tool 2 is configured to accommodate a plurality of large leaves in a stacked state.

形状認識装置3は、図2、図3に示すように、撮像対象とする大葉を載置するステージ30と、該ステージ30に載置されている大葉を撮像する撮像装置31と、該撮像装置31で撮像した大葉の画像である検査画像に基づいて該大葉の形状を認識するための処理装置32と、該処理装置32に対して有線又は無線により接続された記憶装置33と、を備えている。 As shown in FIGS. 2 and 3, the shape recognition device 3 includes a stage 30 on which the perilla to be imaged is placed, an image pickup device 31 for imaging the perilla mounted on the stage 30, and the image pickup device. A processing device 32 for recognizing the shape of the perilla based on an inspection image which is an image of the perilla captured by 31 and a storage device 33 connected to the processing device 32 by wire or wirelessly are provided. There is.

ステージ30には、収容具2から取り出された大葉が一枚ずつ載置される。なお、本実施形態では、収容具2内で積み上げられている複数の大葉のうち最上部に位置する大葉を吸引搬送する吸引搬送部(以下、第一の吸引搬送部と称する)P1により収容具2からステージ30まで運ばれている。 On the stage 30, the perilla leaves taken out from the container 2 are placed one by one. In the present embodiment, the container is provided by a suction transport unit (hereinafter referred to as a first suction transport unit) P1 that sucks and transports the perilla located at the uppermost part of the plurality of large leaves stacked in the container 2. It is carried from 2 to stage 30.

なお、吸引搬送部は、大葉の表面又は裏面のうち上側を向いている一面を吸引することによって該大葉を保持し、大葉に対する吸引状態を解除すると、吸引搬送部から大葉が離れる(落ちる)ように構成されている。 The suction transport unit holds the perilla by sucking one of the front surface or the back surface of the perilla that faces upward, and when the suction state for the perilla is released, the perilla leaves (falls) from the suction transport unit. It is configured in.

また、本実施形態に係るステージ30は、透明な載置板部300を有し、この載置板部300上に収容具2から取り出された大葉が載置される(図4参照)。 Further, the stage 30 according to the present embodiment has a transparent mounting plate portion 300, and the perilla leaves taken out from the accommodating tool 2 are placed on the mounting plate portion 300 (see FIG. 4).

撮像装置31は、ステージ30の下方側、具体的には、載置板部300の下方側に配置されている。そして、撮像装置31は、載置板部300上に載置された大葉を、表面又は裏面のうち下側を向いている一面側(本実施形態では表面側)から撮像するように構成されている。 The image pickup apparatus 31 is arranged on the lower side of the stage 30, specifically, on the lower side of the mounting plate portion 300. Then, the image pickup apparatus 31 is configured to take an image of the perilla placed on the mounting plate portion 300 from one side (the front side in the present embodiment) facing the lower side of the front side or the back side. There is.

なお、撮像装置31は、ステージ30(載置板部300)の上方側に配置され、載置板部300上に載置された大葉を、表面又は裏面のうち上側を向いている一面側から撮像するように構成されていてもよい。 The image pickup apparatus 31 is arranged on the upper side of the stage 30 (mounting plate portion 300), and the large leaves mounted on the mounting plate portion 300 are viewed from one side of the front surface or the back surface facing the upper side. It may be configured to image.

形状認識装置3では、処理装置32が形状認識プログラムを実行することにより、大葉の形状を認識するための各種手段を実行するように構成されている。 In the shape recognition device 3, the processing device 32 is configured to execute various means for recognizing the shape of the perilla by executing the shape recognition program.

具体的に説明すると、形状認識装置3は、処理装置32で形状認識プログラムを実行することにより、図5に示すように、検査画像を取得する画像取得手段60、検査画像から大葉が映る領域全体(以下、葉領域と称する)を抽出する葉領域抽出手段61、検査画像に基づいて大葉の葉柄の領域(以下、葉柄領域と称する)を抽出する葉柄領域抽出手段62、検査画像に基づいて大葉の葉身の領域(以下、葉身領域と称する)を抽出する葉身領域抽出手段63、葉柄領域と葉柄領域とに基づいて大葉の向きを導出する向き導出手段64、として機能するように構成されている。 Specifically, the shape recognition device 3 executes the shape recognition program on the processing device 32, and as shown in FIG. 5, the image acquisition means 60 for acquiring the inspection image, the entire region where the large leaves are reflected from the inspection image. Leaf region extraction means 61 for extracting (hereinafter referred to as leaf region), petiole region extraction means 62 for extracting petiole region (hereinafter referred to as petiole region) of large leaves based on inspection images, large leaves based on inspection images It is configured to function as a leaf blade region extracting means 63 for extracting a leaf blade region (hereinafter referred to as a leaf blade region) and a direction deriving means 64 for deriving the orientation of a large leaf based on the petiole region and the petiole region. Has been done.

画像取得手段60は、形状を認識する対象とする大葉が映る画像を取得するように構成されている。本実施形態に係る画像取得手段60は、載置板部300上に載置されている大葉を撮像するよう撮像装置31を制御し、さらに、撮像装置31によって撮像した大葉の画像を検査画像として取得するように構成されている。すなわち、画像取得手段60は、撮像装置31から直接的に検査画像を取得するように構成されている。 The image acquisition means 60 is configured to acquire an image in which a large leaf to be recognized for shape is reflected. The image acquisition means 60 according to the present embodiment controls the image pickup device 31 so as to image the perilla mounted on the mounting plate portion 300, and further, the image of the perilla image captured by the image pickup device 31 is used as an inspection image. It is configured to get. That is, the image acquisition means 60 is configured to acquire an inspection image directly from the image pickup apparatus 31.

葉領域抽出手段61は、図6(a)及び図6(b)に示すように、検査画像Tから葉領域RE1と、該葉領域RE1の外側の領域(すなわち、背景が映っている領域)BEとを識別するように構成されている。本実施形態では、葉領域RE1の外側の領域BEを背景領域BEと称して以下の説明を行うこととする。 As shown in FIGS. 6A and 6B, the leaf region extraction means 61 includes the leaf region RE1 from the inspection image T and the region outside the leaf region RE1 (that is, the region in which the background is reflected). It is configured to distinguish it from the BE. In the present embodiment, the region BE outside the leaf region RE1 is referred to as the background region BE, and the following description will be given.

より具体的に説明すると、葉領域抽出手段61は、検査画像Tから背景領域BEを識別する背景領域識別処理と、検査画像Tから葉領域RE1を識別する葉領域識別処理とを実行するように構成されている。 More specifically, the leaf region extraction means 61 executes a background region identification process for identifying the background region BE from the inspection image T and a leaf region identification process for identifying the leaf region RE1 from the inspection image T. It is configured.

葉領域抽出手段61は、背景領域識別処理において、検査画像Tの各領域に対して背景であるか否かを判断する基準となる背景領域識別情報に基づいて検査画像T全体の中から背景領域BEを識別するように構成されている。 In the background region identification process, the leaf region extraction means 61 selects the background region from the entire inspection image T based on the background region identification information that serves as a reference for determining whether or not each region of the inspection image T is a background. It is configured to identify the BE.

背景領域識別情報には、例えば、背景領域に含まれている色を示す情報(色情報)が設定され、葉領域抽出手段61は、検査画像Tのうちの背景領域識別情報が有する色情報に該当する色を有する領域を背景領域BEであると識別するように構成されていればよい。 For example, information (color information) indicating a color included in the background area is set in the background area identification information, and the leaf area extraction means 61 uses the color information of the background area identification information in the inspection image T as the color information. The area having the corresponding color may be configured to be identified as the background area BE.

なお、背景領域識別情報に色情報を設定する場合は、大葉が載置されていない状態のステージ30を撮像した画像に含まれている色に基づいて色情報を決定することが可能である。また、色情報は、単色を示す情報であってもよいし、色域の範囲を示す情報であってもよい。 When setting the color information in the background area identification information, it is possible to determine the color information based on the color included in the image of the stage 30 in which the perilla is not placed. Further, the color information may be information indicating a single color or information indicating a range of a color gamut.

さらに、葉領域抽出手段61は、葉領域識別処理において、検査画像Tの各領域に対して大葉が映っている領域であるか否かを判断する基準となる葉領域識別情報に基づいて葉領域RE1を識別するように構成されている。 Further, the leaf region extraction means 61 determines the leaf region based on the leaf region identification information as a reference for determining whether or not the large leaf is reflected in each region of the inspection image T in the leaf region identification process. It is configured to identify RE1.

葉領域識別情報にも、例えば、色を示す情報(色情報)が設定されており、葉領域抽出手段61は、検査画像Tのうち、葉領域識別情報が有する色情報に該当する色を有する領域を背景領域BEであると識別するように構成されていてもよい。 For example, information indicating a color (color information) is set in the leaf region identification information, and the leaf region extraction means 61 has a color corresponding to the color information possessed by the leaf region identification information in the inspection image T. The area may be configured to identify the area as the background area BE.

なお、葉領域識別情報に設定する色情報は、例えば、大葉を撮像した画像に基づいて設定でき、本実施形態では、撮像装置31で大葉を撮像した検査画像Tに基づいて葉領域識別情報が設定されている。 The color information to be set in the leaf region identification information can be set based on, for example, an image obtained by capturing a large leaf. In the present embodiment, the leaf region identification information is based on an inspection image T obtained by imaging a large leaf with an imaging device 31. It is set.

また、本実施形態に係る葉領域抽出手段61は、背景領域識別処理で背景領域BEであると識別した領域と、葉領域識別処理で葉領域RE1であると識別した領域とを別々の色で示すように構成されている。すなわち、葉領域抽出手段61は、検査画像Tの葉領域RE1と背景領域BE内とを別々の色で色分けするように構成されている。 Further, the leaf region extraction means 61 according to the present embodiment has different colors for the region identified as the background region BE in the background region identification process and the region identified as the leaf region RE1 in the leaf region identification process. It is configured as shown. That is, the leaf region extraction means 61 is configured to color-code the leaf region RE1 of the inspection image T and the background region BE with different colors.

葉柄領域抽出手段62は、前記葉状農作物の重心を中心として径外方向に膨らむように湾曲する曲線領域を少なくとも含む走査領域を設定する領域設定処理、事前に設定されている走査領域と葉領域RE1とが重なる重複領域を抽出する第一の抽出処理、前記第一の抽出処理で抽出した重複領域から所定の長さ以下の短小領域をさらに抽出する第二の抽出処理、事前に設定されている走査領域を拡張したうえで第一の抽出処理を実行する拡張処理、前記第二の抽出処理で抽出した複数の短小領域を結合して結合領域を作成する領域結合処理、領域結合処理により結合された領域のうち、最も寸法の長い領域を選出する選出処理、を実行するように構成されている。 The petiole region extraction means 62 sets a scanning region including at least a curved region curved so as to bulge in the out-of-diameter direction around the center of gravity of the leaf-shaped agricultural product, a preset scanning region and a leaf region RE1. A first extraction process for extracting an overlapping area that overlaps with and a second extraction process for further extracting a short area having a predetermined length or less from the overlapping area extracted by the first extraction process, which are set in advance. It is combined by an expansion process that executes the first extraction process after expanding the scanning area, an area combination process that combines a plurality of short and small areas extracted in the second extraction process to create a combined area, and an area combination process. It is configured to execute the selection process of selecting the area having the longest dimension among the areas.

本実施形態にかかる領域設定処理は、図7(a)に示すように、葉領域RE1の重心C1を中心とした環状(具体的には、周方向における全周に亘って曲率が一定の円環状)の走査領域PE1を設定するように構成されている。 As shown in FIG. 7A, the region setting process according to the present embodiment is an annular shape centered on the center of gravity C1 of the leaf region RE1 (specifically, a circle having a constant curvature over the entire circumference in the circumferential direction). It is configured to set the scanning region PE1 (annular).

第一の抽出手段は、上述のように、走査領域PE1と葉領域RE1とが重なる領域を重複領域PE2として抽出するように構成されている。なお、図7(b)には、一つの検査画像T上に複数の重複領域PE2が抽出されている状態を図示している。また、事前に設定されている走査領域とは、第一の抽出手段が実行される際に、既に設定されている走査領域(本実施形態では、領域設定処理で設定された走査領域、若しくは拡張処理によって拡張された走査領域)のことである。 As described above, the first extraction means is configured to extract the region where the scanning region PE1 and the leaf region RE1 overlap as the overlapping region PE2. Note that FIG. 7B illustrates a state in which a plurality of overlapping regions PE2 are extracted on one inspection image T. Further, the preset scanning area is a scanning area that has already been set when the first extraction means is executed (in the present embodiment, the scanning area set in the area setting process or an extension). It is a scanning area expanded by processing).

第二の抽出処理は、第一の抽出処理が重複領域PE2を抽出した場合に、該第一の抽出処理に続いて実行される。 The second extraction process is executed following the first extraction process when the first extraction process extracts the overlapping region PE2.

複数の重複領域PE2には、長尺な重複領域PE2や、短小な重複領域PE2が含まれているが、葉柄領域抽出手段62は、第二の抽出処理において、短小な重複領域PE2を短小領域PE3として抽出するように構成されている。なお、短小領域PE3であるか否かを判定する基準とする長さは、適宜変更可能であるが、2mm〜5mmの範囲内で設定されることが好ましい。 The plurality of overlapping regions PE2 include a long overlapping region PE2 and a short overlapping region PE2, but the petiole region extraction means 62 sets the short overlapping region PE2 as a short and small region in the second extraction process. It is configured to be extracted as PE3. The length as a reference for determining whether or not the short region PE3 is present can be appropriately changed, but is preferably set within the range of 2 mm to 5 mm.

拡張処理は、第二の抽出処理に続いて実行されるように構成されている。また、拡張処理は、図7(a)、図8(a)、図9(a)に示すように、事前に設定されている走査領域PE1の大きさを、曲線領域が葉領域RE1の重心C1を中心とする径外方向に変位するように拡張して設定し直すように構成されている。本実施形態に係る拡張処理では、走査領域PE1の幅を変えずに、走査領域PE1の直径のみが拡張される。 The extended process is configured to be executed following the second extraction process. Further, in the expansion process, as shown in FIGS. 7 (a), 8 (a), and 9 (a), the size of the scanning region PE1 set in advance is set, and the curve region is the center of gravity of the leaf region RE1. It is configured to be expanded and reset so as to be displaced in the out-of-diameter direction centered on C1. In the expansion process according to the present embodiment, only the diameter of the scanning region PE1 is expanded without changing the width of the scanning region PE1.

領域結合処理は、第二の抽出処理により重複領域PE2が抽出されなかった場合に、該第二の抽出処理に続いて実行されるように構成されている。葉柄領域抽出手段62は、例えば、拡張処理によって拡張された走査領域PE1全体が葉領域RE1よりも外側に位置するまで第一の抽出処理、第二の抽出処理、及び拡張処理をくり返し実行するように構成されていればよい。 The region binding process is configured to be executed following the second extraction process when the overlapping region PE2 is not extracted by the second extraction process. The petiole region extraction means 62 repeatedly executes the first extraction process, the second extraction process, and the expansion process until, for example, the entire scanning region PE1 expanded by the expansion process is located outside the leaf region RE1. It suffices if it is configured in.

結合処理は、図10(a)に示すように、第二の抽出処理によって複数回に亘って抽出された短小領域PE3を一つの画像に重ねて表示するように構成されている。本実施形態では、結合処理で一つの画像に重ねて表示されている短小領域PE3を結合領域PE4と称する。 As shown in FIG. 10A, the joining process is configured to superimpose and display the short and small region PE3 extracted a plurality of times by the second extraction process on one image. In the present embodiment, the short and small region PE3 displayed overlaid on one image by the binding process is referred to as a binding region PE4.

図10(a)に示す検査画像Tには、複数の結合領域PE4が図示されているが、該複数の結合領域PE4には、単一の短小領域PE3で構成されている結合領域PE4と、複数の短小領域PE3が連続することで構成されている結合領域PE4とが含まれている。 The inspection image T shown in FIG. 10A shows a plurality of binding regions PE4, and the plurality of binding regions PE4 include a binding region PE4 composed of a single short and small region PE3. A binding region PE4 composed of a plurality of short and small regions PE3 continuous is included.

選出処理は、領域結合処理に続いて実行されるように構成されている。葉柄領域抽出手段62は、図10(b)に示すように、選出処理において、結合領域PE4のうち、最も寸法の長い領域、すなわち、葉柄領域RE2を選出するように構成されている。 The selection process is configured to be executed following the area join process. As shown in FIG. 10B, the petiole region extracting means 62 is configured to select the region having the longest dimension, that is, the petiole region RE2, among the binding regions PE4 in the selection process.

葉身領域抽出手段63は、葉領域RE1と葉柄領域抽出手段62で抽出した葉柄領域RE2とに基づいて葉身領域RE3を抽出するように構成されており、本実施形態では、葉領域RE1から葉柄領域RE2に対応する領域を切り取り、残った領域を葉身領域RE3とするように構成されている。 The leaf blade region extraction means 63 is configured to extract the leaf blade region RE3 based on the leaf region RE1 and the petiole region RE2 extracted by the petiole region extraction means 62. In the present embodiment, the leaf blade region RE3 is extracted from the leaf blade region RE1. The region corresponding to the petiole region RE2 is cut out, and the remaining region is used as the leaf blade region RE3.

これにより、一つの葉領域RE1を構成する葉柄領域RE2と、葉身領域RE3とが別々に抽出される(図11参照)。すなわち、葉柄の形状と、葉身の形状とが別々に認識される。 As a result, the petiole region RE2 and the leaf blade region RE3 constituting one leaf region RE1 are separately extracted (see FIG. 11). That is, the shape of the petiole and the shape of the leaf blade are recognized separately.

向き導出手段64は、図11に示すように、葉柄領域RE2の重心C2を導出し、葉身領域RE3の重心C3を導出し、それぞれの重心C2、C3を結ぶ直線Lの向きを大葉の向きとするように構成されている。 As shown in FIG. 11, the orientation deriving means 64 derives the center of gravity C2 of the petiole region RE2, derives the center of gravity C3 of the leaf blade region RE3, and sets the direction of the straight line L connecting the respective centroids C2 and C3 to the direction of the perilla. It is configured to be.

本実施形態に係る搬送装置4は、形状認識装置3で形状を認識した大葉を加工装置5に引き渡し可能な場所まで搬送するように構成されている。なお、形状認識装置3から搬送装置4への大葉の引き渡しも、吸引搬送部(以下、第二の吸引搬送部と称する)P2により行われる(図1参照)。 The transport device 4 according to the present embodiment is configured to transport the perilla whose shape has been recognized by the shape recognition device 3 to a place where it can be delivered to the processing device 5. The delivery of the perilla leaves from the shape recognition device 3 to the transfer device 4 is also performed by the suction transfer unit (hereinafter referred to as the second suction transfer unit) P2 (see FIG. 1).

加工装置5は、搬送装置4によって搬送されている大葉を取得して出荷するための加工を行うように構成されている。なお、搬送装置4から加工装置5への大葉の引き渡しも、吸引搬送部(以下、第三の吸引搬送部と称する)P3により行われる(図1参照)。 The processing device 5 is configured to perform processing for acquiring and shipping the perilla transported by the transport device 4. The perilla leaves are also delivered from the transport device 4 to the processing device 5 by the suction transport unit (hereinafter referred to as the third suction transport unit) P3 (see FIG. 1).

本実施形態において、大葉に対する出荷するための加工とは、複数枚の大葉を重ねて一束にまとめる加工、より具体的には、複数枚の大葉を重ねた状態で葉柄の部分を結束する加工のことであるが、例えば、大葉の包装や、タグ付け等の加工も一例として挙げられる。 In the present embodiment, the processing for shipping the perilla is the processing of stacking a plurality of perilla leaves into a bundle, and more specifically, the processing of binding the petiole portion in a state where the plurality of perilla leaves are stacked. However, for example, packaging of perilla leaves and processing such as tagging can be mentioned as an example.

本実施形態に係る出荷システム1の構成は、以上の通りである。続いて、出荷システム1における形状認識装置3による大葉の形状認識処理(すなわち、形状認識プログラムを実行した場合の形状認識装置3の動作)についての説明を行うこととする。 The configuration of the shipping system 1 according to the present embodiment is as described above. Subsequently, the shape recognition process of the perilla leaves (that is, the operation of the shape recognition device 3 when the shape recognition program is executed) by the shape recognition device 3 in the shipping system 1 will be described.

出荷システム1では、収容具2から取り出した大葉の形状を形状認識装置3で認識した後、該大葉を搬送装置4により加工装置5まで搬送する。 In the shipping system 1, after the shape recognition device 3 recognizes the shape of the perilla taken out from the container 2, the perilla is transported to the processing device 5 by the transport device 4.

形状認識装置3は、図12に示すように、画像取得手段60により検査画像Tを取得する(S1)。本実施形態では、収容具2から載置板部300上に載置された大葉を撮像装置31で撮像した画像を検査画像Tとして取得する。また、本実施形態では、検査画像Tを取得した後に該検査画像Tに基づいて葉領域識別情報を設定する。 As shown in FIG. 12, the shape recognition device 3 acquires the inspection image T by the image acquisition means 60 (S1). In the present embodiment, the image of the perilla placed on the mounting plate portion 300 from the accommodating tool 2 captured by the imaging device 31 is acquired as the inspection image T. Further, in the present embodiment, after the inspection image T is acquired, the leaf region identification information is set based on the inspection image T.

そして、葉領域抽出手段61が背景領域BE及び葉領域RE1を抽出する(S2)。葉領域抽出手段61では、図13に示すように、背景領域識別情報が選択され(S20)、選択した背景領域識別情報の色情報に該当する色の領域を背景領域BEであると識別する(S21)。また、葉領域抽出手段61では、葉領域識別情報の色情報に該当する領域を葉領域RE1であると識別する(S22)。 Then, the leaf region extraction means 61 extracts the background region BE and the leaf region RE1 (S2). In the leaf region extracting means 61, as shown in FIG. 13, the background region identification information is selected (S20), and the region of the color corresponding to the color information of the selected background region identification information is identified as the background region BE (S). S21). Further, the leaf region extraction means 61 identifies the region corresponding to the color information of the leaf region identification information as the leaf region RE1 (S22).

これにより、検査画像T内が葉領域RE1と背景領域BEとに区分け(色分け)される。 As a result, the inside of the inspection image T is divided (color-coded) into a leaf region RE1 and a background region BE.

続いて、図12に示すように、葉柄領域抽出手段62が葉柄領域RE2を抽出する(S3)。葉柄領域抽出手段62が葉柄領域RE2を抽出する処理では、図14に示すように、領域設定処理で検査画像T上に走査領域PE1を設定する(S30)。本実施形態では、領域設定処理で葉領域RE1の重心C1を中心とする円環状の走査領域PE1を設定する(図7(a)参照)。 Subsequently, as shown in FIG. 12, the petiole region extraction means 62 extracts the petiole region RE2 (S3). In the process of extracting the petiole region RE2 by the petiole region extracting means 62, the scanning region PE1 is set on the inspection image T in the region setting process as shown in FIG. 14 (S30). In the present embodiment, the annular scanning region PE1 centered on the center of gravity C1 of the leaf region RE1 is set in the region setting process (see FIG. 7A).

次に、第一の抽出処理を行った結果、重複領域PE2が抽出された場合(S31でYes)、第二の抽出処理が重複領域PE2の中から短小領域PE3をさらに抽出する(S32)。 Next, when the overlapping region PE2 is extracted as a result of performing the first extraction processing (Yes in S31), the second extraction processing further extracts the short region PE3 from the overlapping region PE2 (S32).

そして、第二の抽出処理が実行された後、拡張処理が走査領域PE1を拡張する(S33)。より具体的に説明すると、拡張処理は、走査領域PE1の幅を変えずに、走査領域PE1の直径のみを拡張する。 Then, after the second extraction process is executed, the expansion process expands the scanning region PE1 (S33). More specifically, the expansion process expands only the diameter of the scanning region PE1 without changing the width of the scanning region PE1.

さらに、拡張処理が実行された後は、新たな走査領域PE1を用いて第一の抽出処理、第二の抽出処理が再び実行される。 Further, after the expansion process is executed, the first extraction process and the second extraction process are executed again using the new scanning region PE1.

第一の抽出処理、第二の抽出処理、拡張処理は、第一の抽出処理で重複領域PE2が抽出されている限り繰り返して実行される。そして、第一の抽出処理で重複領域PE2が抽出されなかった場合(S31でNo)は、領域結合処理において、第二の抽出処理で抽出した複数の短小領域PE3を一つの画像上に重ねて表示することで結合領域PE4とし(S34)、続いて、選出処理において、複数の結合領域PE4の中から最も寸法の長い領域を葉柄領域RE2として抽出する(S35)。 The first extraction process, the second extraction process, and the extension process are repeatedly executed as long as the overlapping region PE2 is extracted by the first extraction process. When the overlapping region PE2 is not extracted in the first extraction process (No in S31), the plurality of short and small region PE3s extracted in the second extraction process are superimposed on one image in the region combination process. By displaying it, it is designated as a binding region PE4 (S34), and subsequently, in the selection process, the region having the longest dimension is extracted as a petiole region RE2 from the plurality of binding regions PE4 (S35).

これにより、葉領域RE1の中から葉柄領域RE2が抽出される。すなわち、葉柄領域RE2(葉柄の形状)と、葉身領域RE3(葉身の形状)とが別々に認識される。 As a result, the petiole region RE2 is extracted from the leaf region RE1. That is, the petiole region RE2 (the shape of the petiole) and the leaf blade region RE3 (the shape of the leaf blade) are recognized separately.

葉柄領域抽出手段62が葉柄領域RE2を抽出した後、図12に示すように、葉身領域抽出手段63が葉身領域RE3を抽出する(S4)。 After the petiole region extraction means 62 extracts the petiole region RE2, the leaf blade region extraction means 63 extracts the leaf blade region RE3 as shown in FIG. 12 (S4).

葉身領域抽出手段63は、葉領域RE1から葉柄領域RE2に対応する領域を切り取り、残った領域を葉身領域RE3とする。これにより、葉領域RE1の中から葉身領域RE3も抽出され、大葉の葉柄、及び葉身の形状が認識(特定)される。 The leaf blade region extracting means 63 cuts out a region corresponding to the petiole region RE2 from the leaf region RE1 and sets the remaining region as the leaf blade region RE3. As a result, the leaf blade region RE3 is also extracted from the leaf region RE1, and the petiole of the large leaf and the shape of the leaf blade are recognized (specified).

続いて、向き導出手段64が大葉の向きを導出する(S5)。向き導出手段64は、図15に示すように、葉柄領域RE2の重心C2を導出し(S50)、葉身領域RE3の重心C3を導出し(S51)、それぞれの重心C2,C3を結ぶ直線の向きを大葉の向きとする(S52)。 Subsequently, the orientation deriving means 64 derives the orientation of the perilla (S5). As shown in FIG. 15, the orientation deriving means 64 derives the center of gravity C2 of the petiole region RE2 (S50), derives the center of gravity C3 of the leaf blade region RE3 (S51), and connects the respective centroids C2 and C3. The orientation is the orientation of the perilla (S52).

以上のように、本実施形態に係る形状認識装置3によれば、検査画像Tに映る葉状農作物である大葉の像から葉柄領域RE2と葉身領域RE3、すなわち、葉柄の形状と葉身の形状とを別々に抽出することで、大葉の形状を正確に認識できるようになる。 As described above, according to the shape recognition device 3 according to the present embodiment, the petiole region RE2 and the leaf blade region RE3, that is, the petiole shape and the leaf blade shape, are obtained from the image of the large leaf of the leaf-shaped agricultural product reflected in the inspection image T. By extracting and separately, the shape of the perilla can be accurately recognized.

また、本実施形態では、走査領域PE1が円環状であるため、重複領域PE2に含まれている短小領域PE3を結合した結合領域PE4には、必ず葉柄領域RE2となる領域が含まれるようになっている。 Further, in the present embodiment, since the scanning region PE1 is annular, the binding region PE4 to which the short and small regions PE3 included in the overlapping region PE2 are bound always includes a region to be the petiole region RE2. ing.

さらに、大葉の葉身の外周縁部は、先鋭に延出した複数の先鋭部が並ぶ形状となっているため、短小領域PE3には、葉柄領域RE2の一部に該当するものに加えて、葉身の先鋭部に該当するものも含まれることとなるが、本実施形態では、重複領域PE2から長尺な領域を除外する処理と、結合領域PE4のうち、最も寸法の長い領域を選出する処理とを行うことにより、葉柄領域RE2のみを高い精度で抽出することができる。 Further, since the outer peripheral edge of the leaf blade of the large leaf has a shape in which a plurality of sharply extending sharp portions are lined up, the short and small region PE3 includes the one corresponding to a part of the petiole region RE2 in addition to the one corresponding to a part of the petiole region RE2. A leaf blade that corresponds to a sharp portion is also included, but in the present embodiment, a process of excluding a long region from the overlapping region PE2 and a region having the longest dimension among the binding regions PE4 are selected. By performing the treatment, only the petiole region RE2 can be extracted with high accuracy.

また、本実施形態に係る形状認識装置3では、向き導出手段64が大葉の向きを導出するように構成されているため、向き導出手段64で導出した大葉の向きの情報を活用すれば、形状認識装置3で形状を認識した大葉に対して行われる搬送や加工等の作業の精度を高めることができる。 Further, in the shape recognition device 3 according to the present embodiment, the orientation deriving means 64 is configured to derive the orientation of the perilla, so if the information on the orientation of the perilla derived by the orientation deriving means 64 is utilized, the shape is formed. It is possible to improve the accuracy of work such as transportation and processing performed on the perilla whose shape is recognized by the recognition device 3.

本実施形態の出荷システム1は、複数枚の大葉を重ねた状態で葉柄の部分を結束する加工装置5を備えているため、形状認識装置3で形状を認識した大葉を結束する加工の精度を高めることができる。 Since the shipping system 1 of the present embodiment includes a processing device 5 for binding the petiole portion in a state where a plurality of large leaves are stacked, the accuracy of processing for binding the large leaves whose shape is recognized by the shape recognition device 3 can be improved. Can be enhanced.

なお、本発明の形状認識プログラム及び形状認識装置は、上記一実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々変更を行うことは勿論である。 The shape recognition program and shape recognition device of the present invention are not limited to the above-described embodiment, and it goes without saying that various changes are made without departing from the gist of the present invention.

上記実施形態の出荷システム1では、形状認識装置3で形状を認識した大葉が搬送装置4に搬送するように構成されていたが、この構成に限定されない。出荷システム1は、例えば、形状認識装置3で形状を認識した大葉を、加工装置5や、その他の装置に直接搬送するように構成されていてもよい。 In the shipping system 1 of the above embodiment, the perilla that has recognized the shape by the shape recognition device 3 is configured to be conveyed to the transfer device 4, but the present invention is not limited to this configuration. For example, the shipping system 1 may be configured to directly convey the perilla whose shape has been recognized by the shape recognition device 3 to the processing device 5 or other devices.

上記実施形態において、形状認識プログラムは、撮像装置31で大葉を撮像するように構成されていたが、検査画像を取得することができれば、撮像装置31を制御するように構成されていなくてもよい。 In the above embodiment, the shape recognition program is configured to image the perilla with the image pickup device 31, but it may not be configured to control the image pickup device 31 as long as the inspection image can be acquired. ..

上記実施形態において、画像取得手段60は、撮像装置31から直接的に検査画像を取得するように構成されていたが、この構成に限定されない。例えば、画像取得手段60は、撮像した検査画像を記憶装置33に記憶させておき、記憶装置33から必要に応じて検査画像を読み出すように構成されていてもよいし、形状認識装置3に対して有線接続されている外部の記憶装置に記憶されている検査画像や、形状認識装置3と無線通信可能な外部の記憶装置に記憶されている検査画像を読み出すように構成されていてもよい。 In the above embodiment, the image acquisition means 60 is configured to acquire an inspection image directly from the image pickup apparatus 31, but is not limited to this configuration. For example, the image acquisition means 60 may be configured to store the captured inspection image in the storage device 33 and read the inspection image from the storage device 33 as needed, or may be configured with respect to the shape recognition device 3. It may be configured to read out the inspection image stored in the external storage device connected by wire and the inspection image stored in the external storage device capable of wirelessly communicating with the shape recognition device 3.

上記実施形態において、特に言及しなかったが、形状認識プログラムは、形状認識装置3の記憶装置33に記憶されていてもよいし、処理装置32がアクセス可能であれば、形状認識装置3に有線接続された外部の記憶装置に記憶されていてもよいし、形状認識装置3と無線通信可能な外部の記憶装置に記憶されていてもよい。 Although not particularly mentioned in the above embodiment, the shape recognition program may be stored in the storage device 33 of the shape recognition device 3, and if the processing device 32 is accessible, the shape recognition program is wired to the shape recognition device 3. It may be stored in a connected external storage device, or may be stored in an external storage device capable of wirelessly communicating with the shape recognition device 3.

また、上記実施形態では、背景領域識別情報と葉領域識別情報も形状認識装置3の記憶装置33に保存されていたが、処理装置32がアクセス可能であれば、形状認識装置3に有線接続された外部の記憶装置や、形状認識装置3と無線通信可能な外部の記憶装置に記憶されていてもよい。 Further, in the above embodiment, the background area identification information and the leaf area identification information are also stored in the storage device 33 of the shape recognition device 3, but if the processing device 32 is accessible, they are connected to the shape recognition device 3 by wire. It may be stored in an external storage device or an external storage device capable of wirelessly communicating with the shape recognition device 3.

上記実施形態において、領域設定処理は、円環状の走査領域PE1を設定するように構成されていたが、この構成に限定されない。例えば、領域設定処理は、楕円環状の走査領域PE1を設定するように構成されていてもよいし、曲線領域のみで構成される曲線状の走査領域PE1を設定するように構成されていてもよい。 In the above embodiment, the region setting process is configured to set the annular scanning region PE1, but the region setting process is not limited to this configuration. For example, the area setting process may be configured to set the elliptical annular scanning area PE1 or may be configured to set the curved scanning area PE1 composed of only the curved area. ..

1…出荷システム、2…収容具、3…形状認識装置、4…搬送装置、5…加工装置、30…ステージ、31…撮像装置、32…処理装置、33…記憶装置、60…画像取得手段、61…葉領域抽出手段、62…葉柄領域抽出手段、63…葉身領域抽出手段、64…向き導出手段、300…載置板部、BE…背景領域、C1…重心、C2…重心、C3…重心、L…直線、PE1…走査領域、PE2…重複領域、PE3…短小領域、PE4…結合領域、RE1…葉領域、RE2…葉柄領域、RE3…葉身領域、T…検査画像 1 ... Shipping system, 2 ... Accommodator, 3 ... Shape recognition device, 4 ... Transfer device, 5 ... Processing device, 30 ... Stage, 31 ... Imaging device, 32 ... Processing device, 33 ... Storage device, 60 ... Image acquisition means , 61 ... Leaf region extraction means, 62 ... Petiole region extraction means, 63 ... Leaf blade region extraction means, 64 ... Direction derivation means, 300 ... Placement plate portion, BE ... Background area, C1 ... Center of gravity, C2 ... Center of gravity, C3 ... Center of gravity, L ... Straight line, PE1 ... Scanning area, PE2 ... Overlapping area, PE3 ... Short area, PE4 ... Bonding area, RE1 ... Leaf area, RE2 ... Petiole area, RE3 ... Leaf blade area, T ... Inspection image

Claims (4)

コンピュータを、
検査画像に映る葉状農作物の像から葉柄の領域を抽出すべく、前記葉状農作物の重心を中心として径外方向に膨らむように湾曲する曲線領域を少なくとも含む走査領域を設定する領域設定処理、前記領域設定処理で設定した前記走査領域のうち前記葉状農作物と重なる重複領域を抽出する第一の抽出処理、前記第一の抽出処理で抽出した重複領域から所定の長さ以下の短小領域をさらに抽出する第二の抽出処理、のそれぞれの処理を前記曲線領域が前記重心を中心として前記径外方向に変位するように前記走査領域を拡張しながら複数回繰り返して実行した後に、前記第二の抽出処理で抽出した複数の短小領域を結合する領域結合処理を実行して前記葉柄の領域を抽出する葉柄領域抽出手段、
前記葉状農作物の像から前記葉柄領域抽出手段で抽出した前記葉柄の領域を除くことにより前記葉状農作物の葉身の領域を抽出する葉身領域抽出手段、として機能させる葉状農作物の形状認識プログラム。
Computer,
Area setting process for setting a scanning area including at least a curved area curved so as to bulge in the out-of-diameter direction around the center of gravity of the leaf-shaped crop in order to extract a leaf stalk region from the image of the leaf-shaped crop reflected in the inspection image. From the scanning area set in the setting process, the first extraction process for extracting the overlapping area overlapping with the leaf-shaped agricultural product, and the short and small areas having a predetermined length or less are further extracted from the overlapping area extracted in the first extraction process. After each process of the second extraction process is repeatedly executed a plurality of times while expanding the scanning area so that the curved area is displaced in the out-of-diameter direction about the center of gravity, the second extraction process is performed. A peduncle region extraction means for extracting the peduncle region by executing a region merging process for combining a plurality of short and small regions extracted in step 1.
A shape recognition program for a leaf-shaped crop that functions as a leaf blade region extracting means for extracting a leaf blade region of the leaf-shaped crop by removing the petiole region extracted by the petiole region extracting means from the image of the leaf-shaped crop.
前記コンピュータを、
前記葉柄領域抽出手段で抽出した前記葉柄の領域に関する情報、及び前記葉身領域抽出手段で抽出した前記葉身の領域に関する情報を用いて前記葉状農作物の向きを導出する向き導出手段、として機能させ、
前記向き導出手段は、前記葉柄領域抽出手段で抽出した前記葉柄の領域の重心と前記葉身領域抽出手段で抽出した前記葉身の領域の重心とを導出し、前記葉柄の領域の重心と前記葉身の領域の重心とを結ぶ直線の向きを前記葉状農作物の向きと判定する、請求項1に記載の葉状農作物の形状認識プログラム。
The computer
Using the information about the petiole region extracted by the petiole region extracting means and the information about the leaf blade region extracted by the leaf blade region extracting means, it is made to function as a direction deriving means for deriving the orientation of the leaf-shaped agricultural product. ,
The orientation derivation means derives the center of gravity of the petiole region extracted by the petiole region extraction means and the center of gravity of the leaf blade region extracted by the petiole region extraction means, and derives the center of gravity of the petiole region and the center of gravity of the leaf blade region. The shape recognition program for a leaf-shaped agricultural product according to claim 1, wherein the direction of a straight line connecting the center of gravity of the leaf blade region is determined to be the direction of the leaf-shaped agricultural product.
葉状農作物が映る検査画像から該葉状農作物の形状を認識するための処理を実行する処理装置を備え、
前記処理装置は、
検査画像に映る前記葉状農作物の像から葉柄の領域を抽出すべく、前記葉状農作物の重心を中心として径外方向に膨らむように湾曲する曲線領域を少なくとも含む走査領域を設定する領域設定処理、前記領域設定処理で設定した前記走査領域のうち前記葉状農作物と重なる重複領域を抽出する第一の抽出処理、前記第一の抽出処理で抽出した重複領域から所定の長さ以下の短小領域をさらに抽出する第二の抽出処理、のそれぞれの処理を前記曲線領域が前記重心を中心として前記径外方向に変位するように前記走査領域を拡張しながら複数回繰り返して実行した後に、前記第二の抽出処理で抽出した複数の短小領域を結合する領域結合処理を実行して前記葉柄の領域を抽出する葉柄領域抽出手段と、
前記葉状農作物の像から前記葉柄領域抽出手段で抽出した前記葉柄の領域を除くことにより前記葉状農作物の葉身の領域を抽出する葉身領域抽出手段と、を有する葉状農作物の形状認識装置。
It is equipped with a processing device that executes a process for recognizing the shape of the leaf-shaped crop from the inspection image showing the leaf-shaped crop.
The processing device is
An area setting process for setting a scanning area including at least a curved area that bulges outward in the radial direction around the center of gravity of the foliage crop in order to extract a foliage region from the image of the foliage crop reflected in the inspection image. A first extraction process for extracting an overlapping area overlapping the leaf-shaped agricultural product among the scanning areas set in the area setting process, and a short area having a predetermined length or less is further extracted from the overlapping area extracted by the first extraction process. After each process of the second extraction process is repeated a plurality of times while expanding the scanning area so that the curved area is displaced in the out-of-diameter direction about the center of gravity, the second extraction process is performed. A peduncle region extraction means for extracting the peduncle region by executing a region merging process for combining a plurality of short and small regions extracted in the process.
A shape recognition device for a leaf-shaped crop having a leaf blade region extracting means for extracting a leaf blade region of the leaf-shaped crop by removing the petiole region extracted by the petiole region extracting means from the image of the leaf-shaped crop.
前記葉柄領域抽出手段で抽出した前記葉柄の領域に関する情報、及び前記葉身領域抽出手段で抽出した前記葉身の領域に関する情報を用いて前記葉状農作物の向きを導出する向き導出手段を有し、
前記向き導出手段は、前記葉柄領域抽出手段で抽出した前記葉柄の領域の重心と前記葉身領域抽出手段で抽出した前記葉身の領域の重心とを導出し、前記葉柄の領域の重心と前記葉身の領域の重心とを結ぶ直線の向きを前記葉状農作物の向きと判定する、請求項3に記載の葉状農作物の形状認識装置。
It has a direction deriving means for deriving the orientation of the leaf-shaped agricultural product by using the information about the petiole region extracted by the petiole region extracting means and the information about the leaf blade region extracted by the leaf blade region extracting means.
The orientation derivation means derives the center of gravity of the petiole region extracted by the petiole region extraction means and the center of gravity of the leaf blade region extracted by the petiole region extraction means, and derives the center of gravity of the petiole region and the center of gravity of the leaf blade region. The shape recognition device for a leaf-shaped agricultural product according to claim 3, wherein the direction of a straight line connecting the center of gravity of the leaf blade region is determined to be the direction of the leaf-shaped agricultural product.
JP2017186895A 2017-09-27 2017-09-27 Shape recognition program and shape recognition device for leaf-shaped crops Active JP6958810B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017186895A JP6958810B2 (en) 2017-09-27 2017-09-27 Shape recognition program and shape recognition device for leaf-shaped crops

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017186895A JP6958810B2 (en) 2017-09-27 2017-09-27 Shape recognition program and shape recognition device for leaf-shaped crops

Publications (2)

Publication Number Publication Date
JP2019061567A JP2019061567A (en) 2019-04-18
JP6958810B2 true JP6958810B2 (en) 2021-11-02

Family

ID=66177451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017186895A Active JP6958810B2 (en) 2017-09-27 2017-09-27 Shape recognition program and shape recognition device for leaf-shaped crops

Country Status (1)

Country Link
JP (1) JP6958810B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111623732A (en) * 2020-06-03 2020-09-04 东北林业大学 Method for measuring needle cluster ratio of coniferous forest blades

Also Published As

Publication number Publication date
JP2019061567A (en) 2019-04-18

Similar Documents

Publication Publication Date Title
EP2913779B1 (en) Method for product recognition from multiple images
EP2345515B1 (en) Method for picking up work pieces
US10755134B2 (en) Generation of training data for object-sorting work based on a difference between feature amounts of captured object images
JP6386311B2 (en) Portable information terminal, information processing method, and program
JP5469491B2 (en) Image processing apparatus and image processing method
CN109089035B (en) Image processing apparatus and image processing method
JP2014106692A5 (en)
WO2014030400A1 (en) Object discrimination device, object discrimination method, and program
JP4866890B2 (en) Work shape estimation device
JP2016116774A5 (en)
CN107427835A (en) The classification of bar-code label situation from the top view sample cell image for laboratory automation
JP6818002B2 (en) Read support systems, mobiles, read support methods, programs, and storage media
JP6958810B2 (en) Shape recognition program and shape recognition device for leaf-shaped crops
JP5700221B2 (en) Marker determination device, marker determination detection system, marker determination detection device, marker, marker determination method and program thereof
JP2010020581A (en) Image synthesizing system eliminating unnecessary objects
JPWO2011010705A1 (en) Marker generation device, marker generation detection system, marker generation detection device, marker, marker generation method and program thereof
JP2020194275A (en) Reading system, mobile body, reading method, program, and storage medium
JP2005309717A (en) Marker processing method, marker processor, program and recording medium
JP2017126254A (en) Information processor, information processing method, and program
EP3866061B1 (en) Article distinguishing system
JP7135993B2 (en) Article recognition system
JP6878968B2 (en) Goods management system, goods management method and goods management program
JP7304992B2 (en) code recognizer
JP6555071B2 (en) Object position recognition method and object transfer method
JP2020184144A (en) Article recognition system

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171003

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200714

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200909

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210827

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210927

R150 Certificate of patent or registration of utility model

Ref document number: 6958810

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150