JPH0957214A - Method for deciding quality of shiitake mushroom - Google Patents

Method for deciding quality of shiitake mushroom

Info

Publication number
JPH0957214A
JPH0957214A JP26919695A JP26919695A JPH0957214A JP H0957214 A JPH0957214 A JP H0957214A JP 26919695 A JP26919695 A JP 26919695A JP 26919695 A JP26919695 A JP 26919695A JP H0957214 A JPH0957214 A JP H0957214A
Authority
JP
Japan
Prior art keywords
image
shiitake
shiitake mushroom
window
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP26919695A
Other languages
Japanese (ja)
Inventor
Hiroshi Miyama
洋 宮間
Tsutomu Yoshinaka
努 吉中
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP26919695A priority Critical patent/JPH0957214A/en
Publication of JPH0957214A publication Critical patent/JPH0957214A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To automatically decide the quality of shiitake mushrooms (Lentinus edodes) while minimizing the errors by the stipes of the shiitake mushrooms by photographing the rear surfaces of the stipes of the shiitake mushrooms, respectively measuring the total area and brown area of the shiitake mushroom images within a prescribed window and deciding the quality of the shiitake mushrooms from the area ratio of both. SOLUTION: A camera 32 photographs the shiitake mushroom 1 from diagonal below when a transporting finger 12 holding the shiitake mushroom 1 comes to a first inspection position P2 and stops. In which direction the stipe of the shiitake mushroom 1 extends is decided from the image thereof. Next, the image of the rear surface of the shiitake mushroom is photographed by a camera 28 when the shiitake mushroom 1 moves to a second inspection position P3. Next, the background color is extracted from this screen and this part is removed, by which the area of the image indicating the entire part of the shiitake mushroom 1 is measured and the grade is decided. The straight lines extending radially in two directions from the center of the image of the shiitake mushroom 1 in a color image are determined as sides and the quality of the shiitake mushroom 1 is decided from the ratio of the front seat of the shiitake mushroom image within the window of the region held by these two straight lines to the brown area.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、椎茸の品質を自動
的に判定することを可能とする椎茸の品質判定方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for determining the quality of shiitake mushrooms, which is capable of automatically determining the quality of shiitake mushrooms.

【0002】[0002]

【従来の技術】図14に示すように、椎茸1は傘1a
と、裏面の中央から延びる柄1bを有しており、その傘
1aは表面が茶色であると共に、その茶色の部分が裏側
にも及んで、外周にリング状の部分(以下リング状傘部
という)1cを形成しており、その内側に、多数の襞を
有する白い部分(以下、傘裏面部という)1dが存在し
ている。一般に椎茸1の品質は、傘1aの直径D、傘1
aの全面積(投影面積)Sに対するリング状傘部1cの
面積sの比率等によって、評価されており、これらの値
がいずれも大きいものが良いとされている。また、全体
に白い網状のものがかかった椎茸もあり、この白い網状
のものがかかったものは特に品質が良いと評価されてい
る。
2. Description of the Related Art As shown in FIG. 14, a shiitake mushroom 1 has an umbrella 1a.
And has a handle 1b extending from the center of the back surface, and the umbrella 1a has a brown surface, and the brown portion extends to the back side, so that a ring-shaped portion (hereinafter referred to as a ring-shaped umbrella portion) is formed on the outer periphery. ) 1c is formed, and a white portion (hereinafter, referred to as an umbrella back surface portion) 1d having a large number of folds is present inside thereof. Generally, the quality of the shiitake mushroom 1 is the diameter D of the umbrella 1a,
It is evaluated based on the ratio of the area s of the ring-shaped umbrella portion 1c to the total area (projected area) S of a and the like, and it is considered that those values are preferably large. In addition, there are some shiitake mushrooms that are covered with a white mesh, and the ones that are covered with a white mesh are evaluated to have particularly good quality.

【0003】従来、椎茸の選別は手作業で行っていた。
すなわち、作業者が椎茸を手にとって目視により品質を
判断し、それぞれの品質(等級)のところに仕分けして
いた。しかしながら、このような目視判断では、選別の
為に労力を必要とするとか、選別基準に個人差があり、
安定した選別が望めないとか、選別に時間がかかり大量
に処理できない等の問題があった。
Conventionally, shiitake mushrooms have been manually selected.
That is, the operator visually judges the quality with the shiitake mushroom in his hand and sorts the quality according to each quality (grade). However, such visual judgment requires labor for selection, or there are individual differences in the selection criteria,
There were problems that stable selection could not be expected, and that selection could take a long time and a large amount could not be processed.

【0004】そこで、椎茸の品質判定を自動的に行う椎
茸の自動選別方法が特公昭63−5157号及び特公平
5−82273号公報に提案されている。これらの公報
に開示の自動選別方法は、椎茸の裏側を撮像装置により
撮像し且つ2値化して、椎茸の裏側の巻込部分(図14
におけるリング状傘部1cに相当)とヒダ部分(図14
における傘裏面部1dに相当)の二次元化画像を得、該
巻込部分とヒダ部分との境界に属する画素の合計と、巻
込部分の外周縁に属する画素の合計と、の比から巻込周
長比を得ると共に、上記巻込部分に属する全画素の合計
と、該巻込部分とヒダ部分の双方に属する全画素の合計
と、の比から巻込面積比を得、これらの巻込周長比およ
び巻込面積比と、椎茸の肉厚の分類規格設定値と、を比
較判断して、椎茸の品質を判定するものである。なお、
椎茸の裏側には柄が存在するため、二次元画像において
その柄が輪郭の外側に突出することが多いが、その場合
には、二次元画像の輪郭が急激に変化している2つの点
を結んで平滑化して、上記測定値を予め補正している。
Therefore, Japanese Patent Publication No. 63-5157 and Japanese Examined Patent Publication No. 5-82273 propose automatic shiitake selection methods for automatically determining the quality of shiitake mushrooms. In the automatic selection methods disclosed in these publications, the back side of the shiitake mushroom is imaged and binarized by an imaging device, and the wound portion on the back side of the shiitake mushroom (FIG. 14).
(Corresponding to the ring-shaped umbrella portion 1c) and the fold portion (Fig.
(Corresponding to the umbrella back surface portion 1d in FIG. 2), and the winding is performed from the ratio of the total number of pixels belonging to the boundary between the rolled-in portion and the fold portion and the total number of pixels belonging to the outer peripheral edge of the rolled-up portion. The winding area ratio is obtained, and the winding area ratio is obtained from the ratio of the total of all the pixels belonging to the winding portion and the total of all the pixels belonging to both the winding portion and the fold portion. The quality of the shiitake mushroom is determined by comparing and determining the encircling length ratio and the entrainment area ratio and the classification standard setting value of the thickness of the shiitake mushroom. In addition,
Since there is a pattern on the back side of the shiitake mushroom, the pattern often projects to the outside of the contour in the two-dimensional image. In that case, the two points where the contour of the two-dimensional image changes rapidly are detected. The measured values are corrected in advance by tying and smoothing.

【0005】[0005]

【発明が解決しようとする課題】しかし、上記公報に開
示の自動選別方法では、椎茸の裏側にある柄の影響を補
正して、巻込周長比や巻込面積比を求めるとのことであ
るが、実際には、この補正は容易でなく、柄による誤差
が大きく生じる恐れがある。特に、生椎茸の品質を判定
しようとする場合、その柄は、椎茸の巻込部分に近い色
を有するため、巻込部分と区別することが困難であり、
柄が誤差の大きい原因となるという問題のあることが判
明した。
However, in the automatic selection method disclosed in the above publication, the influence of the handle on the back side of the shiitake is corrected to obtain the winding circumference ratio and the winding area ratio. However, in reality, this correction is not easy and there is a possibility that a large error will occur due to the pattern. In particular, when trying to determine the quality of raw shiitake mushrooms, the handle has a color close to that of the shiitake mushrooms, making it difficult to distinguish the shiitake mushrooms from the involved areas.
It turned out that there was a problem that the pattern causes a large error.

【0006】また、上記したように、生椎茸の高品質の
ものは、全体に白い網状のものがかかっているが、この
白い網状のものはきわめて細くて検出しにくく、しかも
椎茸の裏側には白いヒダ部分(傘裏面部)があるためこ
のヒダ部分との区別ができず、結局、上記公報に提案の
方法では検出できず、正しい品質判定ができないという
問題もあった。なお、上記公報では、主に乾椎茸につい
て説明しており、乾椎茸には白い網状のものは付着して
いないので、白い網状のものについては何ら認識してい
ないものと思われる。
Further, as described above, the high quality raw shiitake mushrooms are covered with white net-like ones, but the white net-like ones are extremely thin and difficult to detect. Since there is a white fold portion (back surface of the umbrella), it cannot be distinguished from this fold portion, and in the end there is a problem that the method proposed in the above publication cannot detect it and correct quality judgment cannot be performed. It should be noted that the above publication mainly describes dry shiitake mushrooms, and since white reticulated mushrooms do not adhere to dry shiitake mushrooms, it is considered that no white reticulated mushrooms are recognized.

【0007】本発明は、かかる状況に鑑みて為されたも
ので、椎茸の柄による誤差を最小に抑えながら椎茸の品
質を自動的に判定することの可能な椎茸の品質判定方法
を提供することを目的とする。また、本発明は生椎茸に
付着している白い網状のものを判別し、これを考慮して
椎茸の品質を自動的に判定することの可能な椎茸の品質
判定方法を提供することも目的とする。
The present invention has been made in view of the above circumstances, and provides a method for determining the quality of shiitake mushrooms which can automatically determine the quality of shiitake mushrooms while minimizing the error due to the pattern of shiitake mushrooms. With the goal. Further, the present invention is also intended to provide a method for determining the quality of shiitake capable of automatically determining the quality of a shiitake in consideration of the white reticulate matter attached to a living shiitake. To do.

【0008】[0008]

【課題を解決するための手段】かかる目的を達成すべく
なされた本願請求項1の発明は、椎茸の傘の裏面を、そ
の裏面にほぼ直角な方向からカラーカメラで撮影し、得
たカラー画像を画像処理装置に取り込み、該画像処理装
置によって、前記カラー画像内の椎茸画像の中心を求
め、その中心から2方向に放射状に延びる直線を辺と
し、その2直線ではさまれた領域の椎茸画像の外周まで
含む大きさの一つのウインドウを品質判定用ウインドウ
として設定し、該ウインドウ内における椎茸画像の全面
積(b)と茶色面積(a)をそれぞれ測定し、両者の面
積比率(a/b)から椎茸の品質を判定することを特徴
とする椎茸の品質判定方法である。
In order to achieve the above object, the invention of claim 1 of the present application provides a color image obtained by photographing the back surface of the shiitake mushroom umbrella with a color camera from a direction substantially perpendicular to the back surface. Is taken into an image processing device, the center of the shiitake mushroom image in the color image is obtained by the image processing device, and straight lines radially extending in two directions from the center are defined as sides, and the shiitake mushroom image of the region sandwiched by the two straight lines is obtained. One window having a size including the outer circumference is set as a quality judgment window, and the total area (b) and the brown area (a) of the shiitake mushroom image in the window are measured, respectively, and the area ratio (a / b) of both is measured. ) Is used to determine the quality of the shiitake mushroom.

【0009】ここで設定する品質判定用ウインドウとし
ては、例えば、図13(a)に示すように、柄の画像1
B、リング状傘部の画像1C、傘裏面部の画像1Dから
なる椎茸画像1Aを得た場合、椎茸画像1Aの中心Oか
ら放射状に且つ互いに反対方向に延びる直線80a、8
0bを1辺とし、その2直線80a、80bではさまれ
た領域の椎茸画像1Aの外周まで含む大きさの長方形の
ウインドウ80、図13(b)に示すように、椎茸画像
1Aの中心Oから放射状に且つ互いに直角方向に延びる
直線81a、81bを1辺とし、その2直線81a、8
1bではさまれた領域の椎茸画像1Aの外周まで含むこ
との可能な正方形のウインドウ81、図13(c)に示
すように、椎茸画像1Aの中心Oから放射状に且つ互い
に適当な角度をなして延びる直線82a、82bを辺と
し、その2直線82a、82bではさまれた領域の椎茸
画像1Aの外周まで含む大きさの部分円状のウインドウ
82等を挙げることができる。
The quality judgment window set here is, for example, as shown in FIG.
B, an image 1C of the ring-shaped umbrella portion and an image 1D of the back surface of the umbrella are obtained, and when the shiitake mushroom image 1A is obtained, straight lines 80a, 8 extending radially from the center O of the shiitake mushroom image 1A and in directions opposite to each other.
0b as one side, and a rectangular window 80 having a size including the outer circumference of the shiitake mushroom image 1A between the two straight lines 80a and 80b, as shown in FIG. 13 (b), from the center O of the shiitake mushroom image 1A. The straight lines 81a and 81b extending radially and at right angles to each other are one side, and the two straight lines 81a and 8b
1b, a square window 81 capable of including the outer circumference of the shiitake mushroom image 1A sandwiched between the areas 1b, as shown in FIG. 13 (c), is radially and at an appropriate angle from the center O of the shiitake mushroom image 1A. An example is a partially circular window 82 having a size including the extending straight lines 82a and 82b as sides and including the outer circumference of the shiitake mushroom image 1A in the region sandwiched by the two straight lines 82a and 82b.

【0010】このような品質判定用ウインドウ80〜8
2は、椎茸画像1Aを、その中心を基準として円周方向
の適当な角度範囲で取り出しているので、そのウインド
ウ内における椎茸画像1Aの全面積とリング状傘部の画
像1Cの面積との比率は、椎茸画像1A全体における比
率にほぼ等しくなっており、従って、そのウインドウ内
における椎茸画像1Aの全面積とリング状傘部の画像1
Cの面積との比率から椎茸の品質を正しく判定すること
が可能である。しかも、この品質判定用ウインドウ80
〜82は、中心Oの周囲の一部領域に設定されるもので
あるので、椎茸の柄の画像1Bを極力避けた位置に設定
することが可能である。そして、そのような位置に品質
判定用ウインドウを設定し、そのウインドウ内における
椎茸画像の茶色面積(a)を測定すると、その茶色面積
(a)にはリング状傘部の画像1Cのみならず、柄の画
像1Bも識別できないため含まれてしまうが、その画像
1Bの面積は極めて小さくなっている。従って、品質判
定ウインドウ内における椎茸画像の全面積(b)と茶色
面積(a)との面積比率(a/b)を求め、その比率か
ら椎茸の品質判定を行うことにより、柄による影響(誤
差)をきわめて小さくし、椎茸の品質を良好に判定する
ことができる。
Such quality judgment windows 80 to 8
2, the shiitake mushroom image 1A is taken out in an appropriate angular range in the circumferential direction with respect to the center thereof, so the ratio of the total area of the shiitake mushroom image 1A to the area of the ring-shaped umbrella portion image 1C within the window. Is approximately equal to the ratio in the entire shiitake mushroom image 1A, and therefore, the entire area of the shiitake mushroom image 1A and the image 1 of the ring-shaped umbrella portion in the window.
It is possible to correctly judge the quality of the shiitake mushroom from the ratio with the area of C. Moreover, the quality judgment window 80
Since -82 are set in a partial area around the center O, it is possible to set the positions to avoid the shiitake pattern image 1B as much as possible. Then, when a quality judgment window is set at such a position and the brown area (a) of the shiitake mushroom image in that window is measured, not only the image 1C of the ring-shaped umbrella portion is included in the brown area (a), The pattern image 1B is also included because it cannot be identified, but the area of the image 1B is extremely small. Therefore, by determining the area ratio (a / b) between the total area (b) and the brown area (a) of the shiitake mushroom image in the quality judgment window, and judging the quality of the shiitake mushroom from the ratio, the influence of the pattern (error ) Can be made extremely small, and the quality of shiitake can be determined well.

【0011】ここで、品質判定用ウインドウを形成する
ために、中心Oから放射状に延びる2直線のなす角度
(以下中心角という)は、あまり大きくすると柄の画像
1Bを多く含んで誤差が大きくなり、逆にあまりにも小
さくすると、そのウインドウ内における椎茸画像1Aの
全面積とリング状傘部の画像1Cの面積との比率が椎茸
画像1A全体における比率から離れて誤差が大きくな
る。これらを考慮すると、中心角は90〜180°が好
ましく、特に、ウインドウの設定を容易とする点も考慮
すると、図13(a)に示すように、中心角を180°
とした長方形のウインドウ80が好適である。
Here, if the angle formed by the two straight lines radially extending from the center O (hereinafter referred to as the central angle) to form the quality judgment window is too large, the error becomes large because the pattern image 1B is included in large numbers. On the contrary, if it is too small, the ratio of the total area of the shiitake mushroom image 1A and the area of the ring-shaped umbrella portion image 1C in the window is far from the ratio of the entire shiitake mushroom image 1A and the error becomes large. Considering these points, the central angle is preferably 90 to 180 °, and in particular, considering the fact that the window can be easily set, as shown in FIG. 13A, the central angle is 180 °.
The rectangular window 80 is suitable.

【0012】中心角を180°とした長方形の品質判定
用ウインドウを採用する場合において、その品質判定用
ウインドウを柄の画像1Bを避けた位置に設定する方法
としては、種々の方法が可能である。一つの方法は、請
求項3に示す方法、すなわち、前記カラー画像内の椎茸
画像の中心を求めた後、その中心を通る第一の基準直線
の両側にそれぞれウインドウを形成し、更に、前記中心
を通り且つ前記第一の基準直線に直交する第二の基準直
線の両側にもそれぞれウインドウを形成し、各ウインド
ウに関して茶色抽出を行い、最も茶色面積の小さいウイ
ンドウを品質判定用ウインドウとして設定する方法であ
る。柄の画像1Bは、多くの場合茶色であって、リング
状傘部の画像1Cと区別しがたいので、柄が存在してい
るウインドウ内では茶色面積が多くなっており、従っ
て、茶色面積の最も小さいウインドウを品質判定用ウイ
ンドウとして設定することにより、柄の影響を最少とで
きる。なお、この方法は、長方形のウインドウに限ら
ず、他の形状のウインドウにも適用可能である。すなわ
ち、椎茸画像1Aの中心Oの周囲に同じ大きさの複数の
ウインドウを互いに接するように或いは一部がオーバー
ラップするように形成し、各ウインドウに関して茶色注
出を行い、最も茶色面積の小さいウインドウを品質判定
用ウインドウとして設定すればよい。
When adopting a rectangular quality judgment window having a central angle of 180 °, various methods are possible as a method of setting the quality judgment window at a position avoiding the pattern image 1B. . One method is the method according to claim 3, that is, after obtaining the center of the shiitake mushroom image in the color image, windows are formed on both sides of a first reference straight line passing through the center, and the center is further provided. And a window is formed on both sides of the second reference straight line which is orthogonal to the first reference straight line, the brown extraction is performed for each window, and the window having the smallest brown area is set as the quality determination window. Is. Since the image 1B of the pattern is brown in many cases and is indistinguishable from the image 1C of the ring-shaped umbrella portion, the brown area is large in the window where the pattern exists, and therefore the brown area By setting the smallest window as the quality judgment window, the influence of the pattern can be minimized. Note that this method is applicable not only to rectangular windows but also to windows of other shapes. That is, a plurality of windows having the same size are formed around the center O of the shiitake mushroom image 1A so as to be in contact with each other or partially overlap with each other, and brown extraction is performed for each window to obtain the window having the smallest brown area. Should be set as the quality judgment window.

【0013】品質判定用ウインドウを設定する他の方法
は、請求項4に示す方法、すなわち、前記カラー画像内
の椎茸画像の中心を求めた後、その中心を通る第一の基
準直線の両側にそれぞれウインドウを形成し、この動作
に先立って、前記椎茸を、側方或いは斜め側方で且つ前
記カラー画像における第一の基準直線に平行な方向から
カメラで撮影し、得た画像から椎茸の柄が第一の基準直
線に関してどちらの方向に延びているかを判定してお
き、椎茸の柄が延びている方向とは反対側のウインドウ
を品質判定用ウインドウとして設定する方法である。こ
の方法では、柄の向きを予め測定し、その柄の無い側の
ウインドウを品質判定用ウインドウとして設定するの
で、柄の位置を確実に避けたウインドウの設定が可能と
なり、判定精度が向上する。なお、前記したように、複
数のウインドウを形成し、各ウインドウに関して茶色注
出を行い、最も茶色面積の小さいウインドウを品質判定
用ウインドウとして設定する場合では、柄が茶色に写っ
ていれば良好な結果が得られるが、きわめて少数ではあ
るが椎茸によっては柄が白く写ったり、黒く写ったりす
ることがあり、その場合誤差が生じる。このような誤差
を、請求項4に示す方法を採用することで、解消でき
る。
Another method for setting the quality judgment window is the method as set forth in claim 4, that is, after the center of the shiitake mushroom image in the color image is obtained, both sides of the first reference straight line passing through the center are determined. Each of the windows is formed, and prior to this operation, the shiitake mushroom is photographed with a camera laterally or obliquely laterally and in a direction parallel to the first reference straight line in the color image, and the shiitake pattern is obtained from the obtained image. It is a method of determining in advance which direction the is extending with respect to the first reference straight line, and setting the window on the side opposite to the direction in which the shiitake handle extends as the quality determining window. In this method, the direction of the pattern is measured in advance, and the window on the side without the pattern is set as the quality judgment window. Therefore, it is possible to set the window without avoiding the pattern position, and the judgment accuracy is improved. As described above, in the case where a plurality of windows are formed, brown is poured out for each window, and the window with the smallest brown area is set as the quality judgment window, it is preferable if the pattern appears in brown. Although the result is obtained, the pattern may appear white or black depending on the shiitake mushroom, which is an extremely small number, and in that case, an error occurs. Such an error can be eliminated by adopting the method described in claim 4.

【0014】更に他の方法は、請求項5に示す方法、す
なわち、前記カラー画像内の椎茸画像の中心を求めた
後、その中心を通る第一の基準直線の両側にそれぞれウ
インドウを形成し、更に、前記中心を通り且つ前記第一
の基準直線に直交する第二の基準直線の両側にもそれぞ
れウインドウを形成し、この動作に先立って、側方或い
は斜め側方で且つ前記カラー画像における第一の基準直
線に平行な方向からカメラで撮影し、得た画像から椎茸
の柄が第一の基準直線に関してどちらの方向に延びてい
るか、或いは中央に延びているかを判定しておき、椎茸
の柄が第一の基準直線に関してどちらかの方向に延びて
いる場合には、その方向と反対側のウインドウを品質判
定用ウインドウとして設定し、中央に延びている時に
は、前記第一及び第二の基準直線のそれぞれ両側に形成
した各ウインドウに関して茶色抽出を行い、最も茶色面
積の小さいウインドウを品質判定用ウインドウとして設
定する方法である。この方法では、柄が中央にあった場
合、第一の基準直線のいずれの側にあるウインドウを選
んでも、柄の約半分がウインドウ内に含まれ、誤差が大
きくなる恐れがあるので、茶色面積を抽出しその最小と
なるウインドウを採用することで、一層確実に柄を避け
た位置に品質判定用ウインドウを設定でき、品質判定精
度が更に向上する。
Yet another method is the method according to claim 5, that is, after determining the center of the shiitake mushroom image in the color image, windows are formed on both sides of a first reference straight line passing through the center, Further, windows are formed on both sides of a second reference straight line that passes through the center and is orthogonal to the first reference straight line. Taken with a camera from a direction parallel to the one reference line, it is determined from the obtained image in which direction the shiitake handle extends with respect to the first reference line, or in the center. When the handle extends in either direction with respect to the first reference straight line, the window on the opposite side to that direction is set as the quality judgment window, and when it extends to the center, the first and second handles are set. Performed brown extraction for each window, each of the reference straight line is formed on both sides, a method of setting the smallest window brown area as the quality determination window. In this method, when the pattern is in the center, no matter which side of the first reference straight line is selected, about half of the pattern is included in the window, which may increase the error. Is extracted and the window with the smallest value is adopted, the quality judgment window can be set more reliably at a position avoiding the pattern, and the quality judgment accuracy is further improved.

【0015】なお、本発明において設定する品質判定用
ウインドウとしては、図13(d)に示すように、椎茸
画像1Aの中心Oを通り、放射状に且つ互いに適当な角
度をなして延びる直線83a、83bを辺とし、その2
直線83a、83bではさまれた領域の椎茸画像1Aの
外周まで含む大きさで且つ内周、外周を円弧83c、8
3dとした形状のウインドウ83とすることもできる。
この場合、椎茸画像1Aの中心部分を円弧83cによっ
てウインドウ外とすることで、中心にある柄の画像1B
による影響を避けることができ、一層良好な品質判定が
可能となる。ただし、この場合、椎茸画像の全面積
(b)としては、ウインドウ83内にある椎茸画像の全
面積に、円弧83cよりも中心側にある扇形部分の面積
を加えて補正した値を採用することが好ましい。
As the quality judgment window set in the present invention, as shown in FIG. 13 (d), straight lines 83a extending radially and at an appropriate angle from each other through the center O of the shiitake mushroom image 1A, 83b as the side, 2
The size including the outer circumference of the shiitake mushroom image 1A sandwiched between the straight lines 83a and 83b, and the inner and outer circumferences of the arcs 83c and 8
The window 83 may have a shape of 3d.
In this case, the center portion of the shiitake mushroom image 1A is made out of the window by the arc 83c, so that the image 1B of the pattern at the center is formed.
It is possible to avoid the influence due to, and it becomes possible to perform better quality judgment. However, in this case, as the total area (b) of the shiitake mushroom image, a value corrected by adding the total area of the shiitake mushroom image in the window 83 to the area of the fan-shaped portion located closer to the center than the arc 83c is adopted. Is preferred.

【0016】本発明は、生椎茸に付着している白い網状
のものを考慮した品質判定を行う方法も提供する。すな
わち、請求項6に記載の本発明は、椎茸の傘の裏面を、
1200〜2400ルクスに照明した状態で、その裏面
にほぼ直角な方向からカラーカメラで撮影し、得たカラ
ー画像を画像処理装置に取り込み、該画像処理装置によ
って、椎茸画像の全面積(b)と、茶色面積(a)と、
白面積(a′)をそれぞれ測定し、全面積に対する茶色
面積と白面積との和の比率〔(a+a′)/b〕から椎
茸の品質を判定することを特徴とする椎茸の品質判定方
法である。
The present invention also provides a method for performing quality judgment in consideration of the white reticulate matter attached to the live shiitake mushroom. That is, according to the present invention of claim 6, the back surface of the shiitake umbrella is
In a state of illuminating 1200 to 2400 lux, a color camera is photographed from a direction substantially perpendicular to the back surface thereof, the obtained color image is taken into an image processing device, and the entire area (b) of the shiitake mushroom image is obtained by the image processing device. , Brown area (a),
A method for determining the quality of shiitake mushrooms, characterized in that the white area (a ') is measured and the quality of the shiitake mushroom is determined from the ratio [(a + a') / b] of the sum of the brown area and the white area to the total area. is there.

【0017】このように椎茸の下面を1200〜240
0ルクスに照明すると、照明光量が小さいため、椎茸の
傘裏面部1d(図13参照)を照射した光がその部分の
襞によって吸収されてしまい、カラー設定を的確に行え
ば、傘裏面部1dは通常は白色であるがカメラで撮影し
た画像中では黒となる。このため、椎茸の表面全体に白
い網状のものがかかったものを撮影した場合、画像中
で、その白い網状のもののみが白くなっており、従っ
て、画像中の白部分の面積の検出により、椎茸の表面に
ある白い網状のものの大きさを検出でき、この白い網状
のものと、傘の茶色との面積の和を求め、それを品質評
価の基準に付加することで、白い網状のものの有無を考
慮した品質の判断が可能となる。
In this way, the lower surface of the shiitake mushroom is placed at 1200-240.
When illuminated at 0 lux, the amount of illumination light is small, so the light that illuminates the back surface 1d (see FIG. 13) of the shiitake mushroom is absorbed by the folds of that area, and if the color setting is done properly, the back surface 1d Is normally white, but is black in the image taken by the camera. For this reason, when an image is taken of a shiitake mushroom covered with a white mesh, only the white mesh is white in the image.Therefore, by detecting the area of the white part in the image, The size of the white mesh on the surface of the shiitake can be detected, the sum of the area of this white mesh and the brown color of the umbrella is calculated, and it is added to the quality evaluation standard to determine the presence or absence of the white mesh. It is possible to judge the quality in consideration of.

【0018】この方法の実施に当たっても、請求項2〜
5に示すように、品質判定用ウインドウを設定すること
が好ましく、これにより、柄の影響を極力なくして正確
な品質判定が可能となる。
In carrying out this method as well, the method of claim 2
As shown in FIG. 5, it is preferable to set a quality judgment window, which enables accurate quality judgment while minimizing the influence of the pattern.

【0019】[0019]

【発明の実施の形態】以下、本発明方法の好適な実施態
様を説明する。図1は、本発明方法によって椎茸の品質
を判定することの可能な品質判定装置を備えた椎茸仕分
け包装ラインの概略平面図、図2はその品質判定装置の
概略平面図、図3はその品質判定装置の概略側面図であ
る。図1〜図3において、10は椎茸の品質を判定する
品質判定装置、12は椎茸1を保持して搬送するための
搬送フィンガー(詳細は後述する)、13は多数の搬送
フィンガー12を一定のピッチで保持した無端状のチェ
ーン、14、14はこのチェーン13を掛けた一対のチ
ェーンホィールである。一方のチェーンホィール14に
は、それを間欠的に回転駆動するための駆動モータ(図
示せず)が連結されており、この駆動モータの間欠回転
により、搬送フィンガー12が1ピッチずつ間欠移動す
る構成となっている。搬送フィンガー12の移動途中に
は、複数の搬送フィンガー12の停止位置を含む供給位
置P1、第一の検査位置P2、第二の検査位置P3、複
数の搬送フィンガー12の停止位置からなる選別排出位
置P4等が設けられている。
BEST MODE FOR CARRYING OUT THE INVENTION Preferred embodiments of the method of the present invention will be described below. FIG. 1 is a schematic plan view of a shiitake sorting and packaging line equipped with a quality determination device capable of determining the quality of shiitake mushrooms by the method of the present invention, FIG. 2 is a schematic plan view of the quality determination device, and FIG. 3 is its quality. It is a schematic side view of a determination device. 1 to 3, 10 is a quality determination device for determining the quality of shiitake mushrooms, 12 is a carrying finger for holding and carrying the shiitake mushrooms 1 (details will be described later), and 13 is a large number of carrying fingers 12 that are fixed. Endless chains 14 and 14 held at a pitch are a pair of chain wheels on which the chain 13 is hung. A drive motor (not shown) for intermittently rotating and driving the chain wheel 14 is connected to the one chain wheel 14, and the transport finger 12 is intermittently moved by one pitch by intermittent rotation of the drive motor. Has become. During the movement of the transport fingers 12, a supply position P1 including the stop positions of the plurality of transport fingers 12, a first inspection position P2, a second inspection position P3, and a sorting discharge position including the stop positions of the plurality of transport fingers 12. P4 and the like are provided.

【0020】搬送フィンガー12は、図4に示すよう
に、チェーン13に取り付けるための支持板12aと、
その支持板12aの上端から水平に延びるように設けら
れた2本の支持ピン12b、12bと、補助ピン12e
を有している。2本の支持ピン12b、12bは、ほぼ
平行に且つ椎茸1の傘1aの下面を支持可能なように椎
茸1の柄1bよりも大きい間隔を開けて、水平に設けら
れており、従って、椎茸1の柄1bを2本の支持ピン1
2b、12bの間に通し、傘1aの下面を安定して且つ
一定の姿勢で保持することが可能である。なお、一方の
支持ピン12bは、先端では他方の支持ピン12bに対
する間隔が広いが、椎茸1の柄1bが位置する部分では
他方の支持ピン12bに対する間隔が狭くなるように湾
曲させており、この構成により、椎茸1の柄1bを2本
の支持ピン12b、12bの間に先端側から挿入させる
動作が容易となると共に、2本の支持ピン12b、12
b間に挿入された柄1bのがたつきが小さくなり、搬送
フィンガー12が間欠的に移動して椎茸1を搬送する際
に、椎茸1が移動開始時、停止時の衝撃によって搬送フ
ィンガー12から脱落することを抑制することができ
る。更に、補助ピン12eは、椎茸1が移動開始時、停
止時の衝撃によって搬送フィンガー12から脱落するこ
とを一層確実に防止するために設けている。一般に、サ
ーボモータを利用して搬送フィンガー12を間欠移動さ
せる際、移動開始時よりも停止時の方が衝撃が大きく、
このため、搬送フィンガー12に保持させた椎茸1は停
止時に、前側の支持ピン12bを乗り越えて前方に飛び
出す傾向が強い。そこで、補助ピン12eを搬送フィン
ガー12の移動方向に関して前方に位置する支持ピン1
2bの更に前方に設け、椎茸1が飛び出さないように支
持している。
As shown in FIG. 4, the transport finger 12 includes a support plate 12a for attaching to the chain 13,
Two support pins 12b, 12b provided so as to extend horizontally from the upper end of the support plate 12a, and an auxiliary pin 12e.
have. The two support pins 12b, 12b are provided substantially horizontally and at a distance larger than the handle 1b of the shiitake mushroom 1 so as to be able to support the lower surface of the umbrella 1a of the shiitake mushroom 1. Therefore, the shiitake mushroom is provided. 1 handle 1b with 2 support pins 1
The lower surface of the umbrella 1a can be held stably and in a constant posture by passing it between 2b and 12b. The one support pin 12b is curved so that the distance between the one support pin 12b and the other support pin 12b is wide, but the space between the other support pin 12b is narrow at the portion where the handle 1b of the shiitake mushroom 1 is located. With the configuration, the operation of inserting the handle 1b of the shiitake mushroom 1 from the distal end side between the two support pins 12b, 12b is facilitated and the two support pins 12b, 12 are provided.
The rattling of the handle 1b inserted between b becomes small, and when the transfer finger 12 moves intermittently to transfer the shiitake mushroom 1, the shiitake mushroom 1 is moved from the transfer finger 12 due to an impact at the time of starting and stopping. It can be prevented from falling off. Further, the auxiliary pin 12e is provided in order to more reliably prevent the shiitake mushroom 1 from falling off the transport finger 12 due to an impact when the movement starts and when the movement is stopped. Generally, when the transfer finger 12 is intermittently moved using a servomotor, the impact is greater when the conveyance finger 12 is stopped than when the movement is started.
Therefore, the shiitake mushroom 1 held by the transport finger 12 has a strong tendency to jump over the front support pin 12b and jump forward when stopped. Therefore, the auxiliary pin 12e is placed in front of the support pin 1 in the moving direction of the transport finger 12.
It is provided further forward of 2b and supports the shiitake mushroom 1 so as not to pop out.

【0021】後述するように、支持ピン12b、12b
及び補助ピン12eに保持された椎茸1の傘1aの下面
を、下方からカメラで撮影し、その画像を処理して品質
判定を行うが、その際、支持ピン12b及び補助ピン1
2eが悪影響を与えないよう、厚みは極力小さいことが
望ましく、通常、1〜5mm程度に、好ましくは、支持
ピン12bは2mm程度に、補助ピン12eは1mm程
度に選定される。なお、2本の支持ピン12b、12b
の形状は、図示のものに限らず、椎茸1の傘1aの下面
を支持しうるものであれば、適宜変更可能であり、ま
た、補助ピン12eは必要なければ省略してもよいし、
必要ならば反対側に設けてもよい。
As will be described later, support pins 12b, 12b
Also, the lower surface of the umbrella 1a of the shiitake mushroom 1 held by the auxiliary pin 12e is photographed from below by a camera, and the image is processed for quality determination. At that time, the support pin 12b and the auxiliary pin 1 are used.
It is desirable that the thickness is as small as possible so that 2e does not have an adverse effect. Usually, the thickness is selected to be about 1 to 5 mm, preferably the support pin 12b is set to about 2 mm, and the auxiliary pin 12e is set to about 1 mm. The two support pins 12b, 12b
The shape of is not limited to that shown in the figure, and may be appropriately changed as long as it can support the lower surface of the umbrella 1a of the shiitake mushroom 1, and the auxiliary pin 12e may be omitted if not necessary,
It may be provided on the opposite side if necessary.

【0022】搬送フィンガー12の支持板12aの下端
には、コロ12cが回転自在に保持されており、搬送フ
ィンガー12の走行位置に沿って下方に設けられている
レール16上を走行するようになっている。また、検査
位置には搬送フィンガー12の上端を押さえるガイドロ
ーラ17が配置されている。これにより、搬送フィンガ
ー12の位置が正確に規制される。
A roller 12c is rotatably held at the lower end of the support plate 12a of the transport finger 12 so as to travel on a rail 16 provided below the transport finger 12 along the traveling position. ing. A guide roller 17 that holds the upper end of the transport finger 12 is arranged at the inspection position. As a result, the position of the transport finger 12 is accurately regulated.

【0023】図1〜図3において、供給位置P1には、
搬送フィンガー12の前方に位置するように椎茸供給装
置18が設けられている。この椎茸供給装置18は、供
給位置P1に停止している複数の搬送フィンガー12の
支持ピン12bにそれぞれ対応するように、且つ、椎茸
1を支持しうるように配置された複数組の支持ピン19
と、その複数組の支持ピン19に保持された複数の椎茸
1を同時に、対応する搬送フィンガー12の支持ピン1
2b上に押し出すプッシャ板20と、そのプッシャ板2
0を往復動させるエアシリンダ21等を備えている。従
って、作業者が手作業で各組の支持ピン19上に椎茸1
を乗せた後、その前に空の搬送フィンガー12が停止し
た時点で、エアシリンダ21を作動させることで、プッ
シャ板20が複数組の支持ピン19上の複数の椎茸1を
同時に、対応する搬送フィンガー12の支持ピン12b
上の所定位置に押し出し、供給することができる。この
ように、椎茸1を一旦椎茸供給装置18側の支持ピン1
9上に乗せ、その後、搬送フィンガー12の支持ピン1
2b上に移載する構成とすると、間欠移動する搬送フィ
ンガー12の支持ピン12b上に直接乗せる場合に比べ
て作業がきわめて容易となり、しかも、椎茸1を支持ピ
ン19上のラフな位置に置いても搬送フィンガー12に
対しては正確な位置に送り込むことができ、作業者に対
する負担が極めて小さくなるという利点が得られる。
1 to 3, at the supply position P1,
A shiitake supplying device 18 is provided so as to be located in front of the transport finger 12. The shiitake supplying device 18 includes a plurality of sets of support pins 19 arranged so as to correspond to the support pins 12b of the plurality of transport fingers 12 stopped at the supply position P1 and to support the shiitake 1.
And the plurality of shiitake mushrooms 1 held by the plurality of sets of support pins 19 at the same time, the support pins 1 of the corresponding transport fingers 12.
Pusher plate 20 pushed out on 2b and pusher plate 2
An air cylinder 21 for reciprocating 0 is provided. Therefore, the operator manually puts the shiitake mushroom 1 on the support pins 19 of each set.
When the empty transfer finger 12 is stopped before the load is placed, the air cylinder 21 is operated so that the pusher plate 20 simultaneously transfers the plurality of shiitake mushrooms 1 on the plurality of sets of the support pins 19 to the corresponding carrier. Support pin 12b of finger 12
It can be extruded and fed to a predetermined position above. In this way, the shiitake mushroom 1 is once supported by the support pin 1 on the side of the shiitake supplying device 18.
9 and then the support pin 1 of the transport finger 12
If it is configured to be transferred onto the support pin 2b, the work is extremely easy as compared with the case where it is directly placed on the support pin 12b of the transfer finger 12 that moves intermittently, and furthermore, the shiitake mushroom 1 can be placed at a rough position on the support pin 19. Also, it can be sent to an accurate position with respect to the transport finger 12, and there is an advantage that the burden on the operator is extremely reduced.

【0024】無端状のチェーン13の上方には、選別す
べき椎茸1を入れたダンボール箱3を運ぶためのローラ
コンベア24が設けられている。このローラコンベア2
4は供給位置P1に向かって下がり勾配に作られてお
り、ローラコンベア24上の適当な位置にダンボール箱
3を乗せておけば、自動的にそのダンボール箱3は供給
位置P1に対応する位置に移動してくる。更に、この位
置には、ダンボール箱3を乗せた後、そのダンボール箱
3の椎茸供給装置18側を低くなるように傾けることの
可能な傾け板(図示せず)及びその駆動機構が設けられ
ており、作業者がダンボール箱3から椎茸1を取り出し
て支持ピン19上に乗せる作業を容易としている。
Above the endless chain 13, there is provided a roller conveyor 24 for carrying the cardboard box 3 containing the shiitake mushrooms 1 to be selected. This roller conveyor 2
4 is formed to have a downward slope toward the supply position P1, and if the cardboard box 3 is placed at an appropriate position on the roller conveyor 24, the cardboard box 3 will automatically move to a position corresponding to the supply position P1. It will move. Further, at this position, there is provided a tilting plate (not shown) and a drive mechanism for tilting the cardboard box 3 so that the shiitake supplying device 18 side of the cardboard box 3 can be lowered. Therefore, the operator can easily take out the shiitake mushroom 1 from the cardboard box 3 and place it on the support pin 19.

【0025】第二の検査位置P3には、図5に示すよう
に、搬送フィンガー12に保持した椎茸1を下方から照
明する照明装置26と、その椎茸1を真下から撮影する
第一のカメラ28が配置され、上方には椎茸1の背景を
消すための遮光板30が設けられている。照明装置26
は、椎茸1の下面を照明しうるものであれば任意である
が、本実施例では、ハロゲンランプを備えたランプボッ
クス26aと、それに光ファイバー26bを介して接続
されたリング状発光部26cを備えたものを使用してい
る。ここで、ハロゲンランプを採用したのは、光量調整
が容易であるためである。また、リング状発光部26c
を採用したのは、椎茸1を支持した支持ピン12bの影
の影響を最小限とするためであり、このリング状発光部
26cは支持ピン12bに保持された椎茸1の真下に位
置するカメラ28を取り囲むように配置されている。カ
メラ28はカラー画像撮影用のものであればよく、二次
元撮像素子を備えたもの、二次元撮像管を備えたものの
いずれでもよく、更に、1版式(1CCDシステム)、
3版式(3CCDシステム)のいずれでもよい。遮光板
30は、椎茸1をカメラ28で撮影した時に、その椎茸
1とは異なる色の背景となれば良いものであり、表面に
光を吸収するフィルムを貼ったもの、反射フィルムを貼
ったもの、椎茸とは異なる色に塗ったもの等を用いるこ
とができる。
At the second inspection position P3, as shown in FIG. 5, an illuminating device 26 for illuminating the shiitake mushroom 1 held by the transport finger 12 from below and a first camera 28 for photographing the shiitake mushroom 1 from directly below. And a light-shielding plate 30 for erasing the background of the shiitake mushroom 1 is provided above. Lighting device 26
Is arbitrary as long as it can illuminate the lower surface of the shiitake mushroom 1, but in the present embodiment, a lamp box 26a having a halogen lamp and a ring-shaped light emitting portion 26c connected to the lamp box 26a via an optical fiber 26b are provided. I am using Here, the halogen lamp is adopted because the light amount can be easily adjusted. In addition, the ring-shaped light emitting portion 26c
This is because the influence of the shadow of the support pin 12b that supports the shiitake mushroom 1 is minimized, and the ring-shaped light emitting portion 26c is located under the shiitake mushroom 1 held by the support pin 12b. It is arranged so as to surround. The camera 28 may be a camera for capturing a color image, may be a camera having a two-dimensional image pickup device or a camera having a two-dimensional image pickup tube, and may be a one-plate type (1CCD system).
Any of three plates (3CCD system) may be used. The light-shielding plate 30 is only required to be a background of a color different from that of the shiitake mushroom 1 when the shiitake mushroom 1 is photographed by the camera 28. A light-absorbing film is attached to the surface, or a reflective film is attached to the light-shielding plate 30. It is possible to use a paint applied to a color different from that of the shiitake mushroom.

【0026】上記したように、カメラ28は搬送フィン
ガー12の真下に配置されているので、水平な支持ピン
12b、12bで傘1aの下面を支持された椎茸1を、
その傘1aの裏面に直角な方向から撮影することがで
き、椎茸1の下面の画像を正確に取り込むことができ
る。図9はその時の画像であり、椎茸1の柄1bに対応
する画像1B、下面のリング状傘部1cに対応する画像
1C、その内側の傘裏面部1dに対応する画像1Dとか
らなる椎茸画像1Aが得られる。得られたカラー画像に
おいて画像1Bと画像1Cとは、多くの場合、ほとんど
同じ茶色となっている。ここで、図9の画像における垂
直方向は、搬送フィンガー12の走行方向に一致するよ
うに、従って搬送フィンガー12の支持ピン12bに対
して直角方向となるように、設定している。また、本実
施例では、ウインドウを設定する際の第一の基準直線4
6を画像9において垂直方向に設定している。
As described above, since the camera 28 is arranged directly below the transport finger 12, the shiitake mushroom 1 whose lower surface of the umbrella 1a is supported by the horizontal support pins 12b and 12b,
An image of the lower surface of the shiitake mushroom 1 can be accurately captured because the image can be taken from a direction perpendicular to the back surface of the umbrella 1a. FIG. 9 is an image at that time, and is a shiitake image consisting of an image 1B corresponding to the handle 1b of the shiitake mushroom 1, an image 1C corresponding to the ring-shaped umbrella portion 1c on the lower surface, and an image 1D corresponding to the umbrella back surface portion 1d on the inside thereof. 1A is obtained. In the obtained color image, the image 1B and the image 1C are almost the same brown in many cases. Here, the vertical direction in the image of FIG. 9 is set so as to coincide with the traveling direction of the transport finger 12, that is, the direction perpendicular to the support pin 12b of the transport finger 12. Further, in the present embodiment, the first reference straight line 4 when setting the window
6 is set in the vertical direction in the image 9.

【0027】図9から分かるように、椎茸画像1A内に
は柄の画像1Bが存在している。この柄の画像1Bが、
椎茸画像1Aの中心Oを通る垂直な第一の基準直線46
に対してどの方向を向いているか(右か左か)を判断す
るため、図5に示すように、第二の検査位置P3の上流
に位置する第一の検査位置P2に、柄の向き検出用の第
二のカメラ32と、椎茸1を照明する照明装置33が配
置されている。このカメラ32はモノクロカメラであ
り、検知位置P2にある椎茸1を、搬送フィンガー12
の走行方向に平行な面内で斜め側方から撮影するように
配置されている。かくして、このカメラ32は椎茸1
を、第一のカメラ28で撮影した画像(図9に示すも
の)における第一の基準直線46に平行方向に、斜め側
方から撮影することとなり、図8に示すように、柄の画
像1B′がリング状傘部の画像1C′よりも外側に延び
だした状態の椎茸画像1A′が得られる。ここで、図9
における垂直な基準直線46は、図8においても垂直な
直線46aとして現される。なお、カメラ32で椎茸1
を撮影する方向は、必ずしも斜め側方に限らず、椎茸の
移動に干渉しなければ、側方からでもよい。照明装置3
3は、単に椎茸1をカメラ32で撮影しうるように照明
するものでよく、本実施例では、ランプボックス33a
と光ファイバー33bを備えている。
As can be seen from FIG. 9, a pattern image 1B exists in the shiitake mushroom image 1A. Image 1B of this pattern
Vertical first reference straight line 46 passing through the center O of the shiitake mushroom image 1A
In order to determine which direction (right or left) it is facing, the direction of the handle is detected at the first inspection position P2 located upstream of the second inspection position P3, as shown in FIG. A second camera 32 for illumination and a lighting device 33 for illuminating the shiitake mushroom 1 are arranged. The camera 32 is a monochrome camera, and the shiitake mushroom 1 at the detection position P2 is transferred to the transport finger 12
Is arranged so as to photograph from an oblique side in a plane parallel to the traveling direction of the vehicle. Thus, this camera 32 has 1 shiitake mushroom
Is photographed from an oblique side in a direction parallel to the first reference straight line 46 in the image photographed by the first camera 28 (shown in FIG. 9), and as shown in FIG. The shiitake mushroom image 1A 'is obtained in a state in which' ′ extends outward from the image 1C ′ of the ring-shaped umbrella portion. Here, FIG.
The vertical reference straight line 46 at is also represented as a vertical straight line 46a in FIG. In addition, 1 shiitake mushroom with camera 32
The direction of capturing is not limited to the oblique side, and may be from the side as long as it does not interfere with the movement of the shiitake mushroom. Lighting device 3
3 may simply illuminate the shiitake mushroom 1 so that it can be photographed by the camera 32. In this embodiment, the lamp box 33a is used.
And an optical fiber 33b.

【0028】図6は椎茸1の品質判定を行う品質判定シ
ステムの全体構成を示すブロック図である。第二の検査
位置P3に配置したカメラ28は、カメラアンプ35、
カラーアイ(色抽出装置)36を介して画像処理装置3
8に接続されている。また第一の検査位置P2に配置し
たカメラ32はカメラアンプ39を介して画像処理装置
38に接続されている。なお、カメラ28、32の各画
像をそれぞれ表示するため、カラーモニター41、モノ
クロモニター42も設けられている。
FIG. 6 is a block diagram showing the overall construction of a quality judgment system for judging the quality of the shiitake mushroom 1. The camera 28 arranged at the second inspection position P3 includes a camera amplifier 35,
Image processing device 3 via color eye (color extraction device) 36
8 is connected. Further, the camera 32 arranged at the first inspection position P2 is connected to the image processing device 38 via the camera amplifier 39. A color monitor 41 and a monochrome monitor 42 are also provided to display the images of the cameras 28 and 32, respectively.

【0029】次に、上記構成の椎茸の品質判定装置10
による椎茸の品質判断動作を、図7に示す工程図も参照
して説明する。この品質判定装置は、椎茸1の表面に付
着している白い網状のものを考慮した品質判定及び考慮
しない品質判定のいずれをも実施可能であり、まず、考
慮しない場合を説明する。
Next, the shiitake mushroom quality determination device 10 having the above-described configuration.
The shiitake mushroom quality judgment operation will be described with reference to the process chart shown in FIG. This quality determination device can perform both quality determination that considers the white mesh attached to the surface of the shiitake mushroom 1 and quality determination that does not consider it. First, the case where it is not considered will be described.

【0030】椎茸1を保持した搬送フィンガー12が第
一の検査位置P2に来て停止すると、それをカメラ32
が斜め下方から撮影し、椎茸1を斜め下方から見た画像
を画像処理装置38に取り込む。この時の画像が、図8
に示すものであり、椎茸画像1A′は、リング状傘部の
画像1C′から下方に延びている柄の画像1B′を有し
ている。画像処理装置38は、まず椎茸画像1A′の柄
の画像1B′の上部に水平にウインドウ90を設定し
て、輪郭点90a、90bを検出し、その中点90cを
求め、次いで柄の画像1B′の下部に水平にウインドウ
91を設定して、輪郭点91a、91bを検出し、その
中点91cを求め、その後、中点90cと91cを結ぶ
直線の垂直方向に対する傾斜角θを求め、この角度θか
ら柄の画像1B′が右、左、或いは中央のいずれに延び
ているかを判定する。すなわち、柄の画像1B′が左又
は右下方に延び、且つその傾斜角θが予め設定した限界
値以上の場合には「左」又は「右」と判断し、限界値以
内の場合には「中央」と判定する。例えば、図8に示す
場合には、「左」と判定する。
When the transport finger 12 holding the shiitake mushroom 1 comes to the first inspection position P2 and stops, it is stopped by the camera 32.
Captures an image from diagonally below and captures an image of the shiitake mushroom 1 viewed from diagonally below into the image processing device 38. The image at this time is shown in FIG.
The shiitake mushroom image 1A 'has a pattern image 1B' extending downward from the ring-shaped umbrella portion image 1C '. The image processing device 38 first sets a window 90 horizontally above the pattern image 1B 'of the shiitake mushroom image 1A', detects contour points 90a and 90b, obtains the midpoint 90c thereof, and then determines the pattern image 1B. A window 91 is set horizontally below the ‘′, contour points 91a and 91b are detected, a midpoint 91c thereof is obtained, and thereafter, an inclination angle θ of a straight line connecting the midpoints 90c and 91c with respect to the vertical direction is obtained. It is determined from the angle θ whether the image 1B ′ of the pattern extends to the right, the left, or the center. That is, when the pattern image 1B 'extends to the lower left or lower right and the inclination angle θ is equal to or larger than a preset limit value, it is determined to be "left" or "right", and when it is within the limit value, " The center "is determined. For example, in the case shown in FIG. 8, it is determined as “left”.

【0031】次に、その椎茸1が更に搬送された第二の
検査位置P3に移動して来て停止すると、それをリング
状発光部26cからの光で照明した状態でカメラ28が
撮影し、椎茸の下面の画像を画像処理装置38に取り込
む。この時、椎茸1は傘1aの下面を一対の平行な且つ
水平な支持ピン12bで支持されているので、常に姿勢
が安定しており、椎茸1の下面の画像を正確に取り込む
ことができる。図9はこの時の画像を示すものであり、
椎茸画像1Aがカラーで撮影されている。なお、実際に
は椎茸を支持している支持ピンも写っているが、この影
響は小さいので図示は省略している。椎茸1を撮影する
時の椎茸1を照明する光量は、特に制限されるものでは
なく、図9に示す椎茸画像1Aのうち、椎茸1の下面の
リング状傘部1cに対応する画像1Cとその内側の傘裏
面部1dに対応する画像1Dとが識別されうる色となる
ような光量であれぱよい。通常、図9に示す画像1Aに
おいて、リング状傘部1cと柄1bに対応する画像1
C、1B(共にハッチングで示す領域)は共に茶色とな
っていて識別が困難であるが、傘裏面部1dに対応する
画像1Dは白となっていて、識別が容易である。
Next, when the shiitake mushroom 1 moves to the second inspection position P3 where it is further conveyed and stops, the camera 28 photographs it while illuminating it with the light from the ring-shaped light emitting portion 26c, An image of the lower surface of the shiitake mushroom is captured by the image processing device 38. At this time, since the lower surface of the shiitake mushroom 1a is supported by the pair of parallel and horizontal support pins 12b, the posture is always stable, and the image of the lower surface of the shiitake mushroom 1 can be accurately captured. FIG. 9 shows an image at this time,
Shiitake mushroom image 1A is captured in color. Although the support pin that supports the shiitake mushroom is also actually shown, this effect is small and is not shown. The amount of light that illuminates the shiitake mushroom 1 when the shiitake mushroom 1 is photographed is not particularly limited, and among the shiitake mushroom images 1A shown in FIG. 9, an image 1C corresponding to the ring-shaped umbrella portion 1c on the lower surface of the shiitake mushroom 1 and its It is sufficient that the light amount is such that the image 1D corresponding to the inner umbrella back surface portion 1d has a color that can be identified. Normally, in image 1A shown in FIG. 9, image 1 corresponding to ring-shaped umbrella portion 1c and handle 1b
Both C and 1B (areas indicated by hatching) are brown and difficult to identify, but the image 1D corresponding to the umbrella back surface 1d is white and easy to identify.

【0032】次に、画像処理装置38は、図9に示す得
られた画像から、背景色を抽出し、その部分を除くこと
で、椎茸1の全体を示す画像1Aの面積を計測する。次
いで、この面積値から、予め定めている選別基準表に従
って、傘の直径に関する等級を判定する。表1はその選
別基準表の1例を示すものである。なお、表1におい
て、傘の直径は、椎茸1が真円状であると仮定して計算
したものである。本実施例において、傘の直径から等級
を判断せず、測定した面積から等級を判定したのは、椎
茸1の形状はかなり変形したものが多く、直径測定では
測定位置によって大きい誤差を生じる恐れがあるためで
ある。このように面積で判定すると、変形した椎茸でも
安定した評価が可能である。
Next, the image processing device 38 measures the area of the image 1A showing the entire shiitake mushroom 1 by extracting the background color from the obtained image shown in FIG. 9 and removing that portion. Then, a grade relating to the diameter of the umbrella is determined from this area value according to a predetermined selection standard table. Table 1 shows an example of the selection standard table. In Table 1, the diameter of the umbrella is calculated on the assumption that the shiitake mushroom 1 has a perfect circular shape. In the present embodiment, the grade is not determined from the diameter of the umbrella, but the grade is determined from the measured area, because the shape of the shiitake mushroom 1 is often considerably deformed, and in the diameter measurement, a large error may occur depending on the measurement position. Because there is. Judging by the area in this way, stable evaluation is possible even with deformed shiitake mushrooms.

【0033】[0033]

【表1】 [Table 1]

【0034】次に、傘1aの全面積に対するリング状傘
部1cの面積比率に基づいた品質判定を以下の手順で行
う。すなわち、まず、椎茸画像1Aの中心Oを設定す
る。この中心設定は公知の手法を用いて適宜実施可能で
ある。例えば、図12に示すように、椎茸画像1Aの上
下頂部に、輪郭点93aと93bとの距離が、輪郭点9
4aと94bとの距離に等しくなるようにウインドウ9
3、94を設定し、輪郭点93aと93bとの中点93
cと、輪郭点94aと94bとの中点94cとを求め、
更にこの二つの中点93c、94cの中点を求め、その
点を椎茸画像1Aの中心Oと設定することができる。ま
た、椎茸画像1Aの上下、左右の頂点を検出し、上下の
頂点を通る水平線の中間に位置する水平線と、左右の頂
点を通る垂直線の中間に位置する垂直線との交点を求
め、その点を椎茸画像1Aの中心Oと設定してもよい。
Next, quality judgment based on the area ratio of the ring-shaped umbrella portion 1c to the total area of the umbrella 1a is performed in the following procedure. That is, first, the center O of the shiitake mushroom image 1A is set. This center setting can be appropriately performed using a known method. For example, as shown in FIG. 12, the distance between the contour points 93a and 93b is the contour point 9 at the top and bottom of the shiitake mushroom image 1A.
Window 9 to be equal to the distance between 4a and 94b
3, 94 are set, and the midpoint 93 between the contour points 93a and 93b is set.
c and the midpoint 94c between the contour points 94a and 94b,
Furthermore, the midpoint of these two midpoints 93c and 94c can be obtained and that point can be set as the center O of the shiitake mushroom image 1A. In addition, the top, bottom, left and right vertices of the shiitake mushroom image 1A are detected, and the intersection point of the horizontal line located in the middle of the horizontal line passing through the top and bottom vertices and the vertical line located in the middle of the vertical line passing through the left and right vertices is obtained. The point may be set as the center O of the shiitake mushroom image 1A.

【0035】次に、図10(b)のように、設定した椎
茸画像1Aの中心Oを通る垂直な直線(第一の基準直
線)46の両側即ち左右にそれぞれ、その領域に位置す
る椎茸画像1Aの外周まで含んだ左ウインドウ46A、
右ウインドウ46Bを形成し、且つ図10(a)のよう
に、中心Oを通る水平な直線(第二の基準直線)45の
両側即ち上下にそれぞれ、その領域に位置する椎茸画像
1Aの外周まで含んだ上ウインドウ45A、下ウインド
ウ45Bを形成する。
Next, as shown in FIG. 10B, both sides of the vertical straight line (first reference straight line) 46 passing through the center O of the set shiitake mushroom image 1A, that is, left and right, respectively, the shiitake mushroom image located in that region. Left window 46A including the outer circumference of 1A,
As shown in FIG. 10 (a), which forms the right window 46B, both sides of the horizontal straight line (second reference straight line) 45 passing through the center O, that is, the upper and lower sides, respectively, up to the outer circumference of the shiitake mushroom image 1A located in that region. The included upper window 45A and lower window 45B are formed.

【0036】次いで、椎茸画像1A(図9参照)の茶色
抽出を行い、柄1bの画像1B及びリング状傘部1cの
画像1C(共にハッチングで示す領域)の面積を求め
る。なお、本来はリング状傘部の画像1Cの面積のみを
検出すれば良いが、柄の画像1Bも同様な色をしている
ので、一緒に検出されてしまう。この茶色抽出は、R、
G、B各色の画像について、茶色に相当するスライスレ
ベルを設定し、そのスライスレベルを利用して抽出すれ
ばよい。スライスレベルの設定に当たっては、測定した
データと目視判定とを比較し、極力、目視結果に近づく
ように設定すればよい。スライスレベルの1例として
は、R:69(+27、−27)、G:63(+25、
−25)、B:55(+25、−24)である。
Next, the shiitake mushroom image 1A (see FIG. 9) is subjected to brown extraction, and the areas of the image 1B of the handle 1b and the image 1C of the ring-shaped umbrella portion 1c (both areas indicated by hatching) are obtained. Originally, it is only necessary to detect the area of the image 1C of the ring-shaped umbrella portion, but the image 1B of the pattern also has the same color, so it is also detected together. This brown extract is R,
For each of the G and B images, a slice level corresponding to brown may be set, and the slice level may be used for extraction. When setting the slice level, the measured data and the visual judgment may be compared with each other and set so as to approach the visual result as much as possible. As an example of the slice level, R: 69 (+27, -27), G: 63 (+25,
-25) and B: 55 (+25, -24).

【0037】次に、先に形成した上下ウインドウ、左右
ウインドウのうち、柄の画像1Bが最も少ないものを品
質判定用ウインドウとして設定する。この設定は次のよ
うに行う。すなわち、先に図8で説明したように、椎茸
1の柄の画像1B′が左、右、中央のいずれに延びてい
るかを判定しているので、その判定結果が、「左」の場
合には、図10(b)において第一の基準直線46の右
側にある右ウインドウ46Bを、「右」の場合には左ウ
インドウ46Aを品質判定用ウインドウとして設定す
る。これによって、柄の画像1Bが延びている方向とは
反対側のウインドウ(図示実施例では、右ウインドウ4
6B)を選ぶことができる。判定結果が、「中央」の場
合には、上下、左右の各ウインドウ45A、45B、4
6A、46Bについて、茶色面積を測定し、その内から
最も茶色面積の小さいものを選ぶ。前記したように、椎
茸画像1A中の茶色面積の部分は、椎茸1のリング状傘
部1cのみならず、柄1bの部分も含むため、最も茶色
面積の小さいウインドウでは、柄1bに対応する画像1
Bが最も小さくなっており、従って、柄による誤差を最
少とできる。なお、本実施例では、先に、柄1bの向き
を「左」と判定しているので、図11に示すように、右
ウインドウ46Bを品質判定用ウインドウとして設定す
る。
Next, of the upper and lower windows and the left and right windows formed earlier, the window with the smallest pattern image 1B is set as the quality judgment window. This setting is performed as follows. That is, as described above with reference to FIG. 8, it is determined whether the image 1B ′ of the handle of the shiitake mushroom 1 extends to the left, right, or center. Therefore, when the determination result is “left”, Sets the right window 46B on the right side of the first reference straight line 46 in FIG. 10B, and sets the left window 46A as the quality judgment window in the case of "right". As a result, the window on the side opposite to the direction in which the pattern image 1B extends (in the illustrated embodiment, the right window 4
6B) can be selected. When the determination result is "center", the upper and lower windows 45A, 45B, 4
The brown areas of 6A and 46B are measured, and the one having the smallest brown area is selected. As described above, the brown area portion in the shiitake mushroom image 1A includes not only the ring-shaped umbrella portion 1c of the shiitake mushroom 1 but also the handle 1b. Therefore, in the window with the smallest brown area, the image corresponding to the handle 1b. 1
Since B is the smallest, the error due to the handle can be minimized. In the present embodiment, since the orientation of the handle 1b is determined to be "left" first, the right window 46B is set as the quality determination window as shown in FIG.

【0038】次に、ウインドウ46B内の画像1Aの全
面積b〔図11(b)にハッチングで示す領域の面積〕
を測定し、ウインドウ46B内の茶色面積a〔図11
(a)にハッチングで示す領域の面積〕に対する面積比
率を求める。この面積比率(a/b)は、傘の開き具合
に関連し、従って椎茸の品質に関連している。そこで、
求めた面積比率から、予め定めている選別基準表に従っ
て、傘の開き具合に関する等級を判定する。表2はその
選別基準表の1例を示すものである。なお、表2におけ
るLサイズ、Mサイズ、Sサイズは表1におけるL、
M、Sに対応している。
Next, the total area b of the image 1A in the window 46B [area of the area shown by hatching in FIG. 11 (b)]
Was measured, and the brown area a in the window 46B [Fig.
The area ratio to the area of the hatched area in (a)] is obtained. This area ratio (a / b) is related to the opening degree of the umbrella, and thus to the quality of the shiitake mushroom. Therefore,
From the calculated area ratio, the grade regarding the opening degree of the umbrella is determined according to a predetermined selection standard table. Table 2 shows an example of the selection standard table. The L size, the M size, and the S size in Table 2 are the L size in Table 1,
It corresponds to M and S.

【0039】[0039]

【表2】 [Table 2]

【0040】画像処理装置38は、カメラ28から取り
込んだ画像1Aを上記したように処理し、全体面積及び
面積比率(a/b)を求め、この値を表1、表2と比較
することにより、椎茸1の品質を、例えば、Lサイズ、
Aクラスのように、判定し、その結果を、下流に配置し
ている選別排出装置50(図1参照)に出力し、制御す
る。
The image processing device 38 processes the image 1A captured from the camera 28 as described above, obtains the total area and the area ratio (a / b), and compares the values with Tables 1 and 2. , The quality of Shiitake mushroom 1, for example, L size,
As in the case of the A class, the judgment is made, and the result is outputted to the sorting and discharging device 50 (see FIG. 1) arranged downstream to be controlled.

【0041】次に、椎茸1の表面に白い網状のものが付
いている場合(椎茸としては高級品となる)があり、そ
の有無を品質判定に加味する場合を説明する。カメラ2
8で椎茸1の下面を撮影して得た椎茸画像1A(図9参
照)において、もし椎茸の表面に白い網状のものが付い
ていた場合には、それに対応する部分が画面上に白い領
域として現れる。従って、画像1A内で白い領域の面積
を測定すれば良いと考えられる。ところが、椎茸1の傘
裏面部(ヒダ部分)1dに対応する画像1Dも白い領域
となっているので、単に白い領域の面積を測定しただけ
では、両者の区別がつかず、白い網状のものを検出でき
ない。
Next, a case where a white net-like thing is attached to the surface of the shiitake mushroom (it is a high-quality product as a shiitake mushroom) and the presence or absence thereof is taken into consideration in the quality judgment will be described. Camera 2
In the shiitake mushroom image 1A obtained by photographing the lower surface of the shiitake mushroom 1 in 8 (see FIG. 9), if there is a white mesh on the surface of the shiitake mushroom, the part corresponding to it is a white area on the screen. appear. Therefore, it is considered that the area of the white region in the image 1A should be measured. However, since the image 1D corresponding to the umbrella back surface (fold portion) 1d of the shiitake mushroom 1 is also a white area, it is not possible to distinguish between the two simply by measuring the area of the white area. Cannot be detected.

【0042】そこで、本実施例では、椎茸1の下面を照
明する照明装置26による光量を非常に小さくし、例え
ば、1200〜2400ルクスに、好ましくは1600
〜2000ルクス程度にし、その照度において撮影した
画像を画像処理装置38に取り込み、処理する。このよ
うな低照度で照明した場合、椎茸1の下面中央の傘裏面
部1dでは、そこに存在している多数の襞によって光が
吸収されてしまい、カラー設定を的確に行えば、得られ
た画像1Aでは、中央の領域1Dが白くならず、黒くな
ってしまうことが判明した。そこで、この画像を用い
て、図7に示す判定工程を実施し、且つ、茶色抽出に引
き続いて、白抽出を行う。この白抽出により、椎茸の表
面に白い網状にかかっているものの面積を検出できる。
Therefore, in this embodiment, the amount of light emitted by the illumination device 26 for illuminating the lower surface of the shiitake mushroom 1 is made extremely small, for example, 1200 to 2400 lux, preferably 1600.
Approximately 2000 lux, and an image captured at that illuminance is taken into the image processing device 38 and processed. When illuminated with such a low illuminance, light is absorbed by the large number of folds present in the back surface portion 1d of the center of the lower surface of the shiitake mushroom 1, and it can be obtained by accurately setting the color. In the image 1A, it was found that the central area 1D became black instead of white. Therefore, using this image, the determination step shown in FIG. 7 is performed, and white extraction is performed subsequent to brown extraction. By this white extraction, it is possible to detect the area of the shiitake mushroom that has a white net-like shape.

【0043】白抽出を行った後は、上記した手順で品質
判定用ウインドウを設定し、そのウインドウ内での茶色
面積aと白面積a′の和(=a+a′)を求め、全体の
面積bに対する面積比率〔=(a+a′)/b〕から、
品質の等級を判定する。これにより、椎茸表面にかかっ
ている白い網状のものを考慮した品質判断が行われる。
なお、この白抽出を行う場合、白い網状のものは細くて
検出しにくいため、カメラ28のピントをわざとずら
せ、不鮮明な画像とすることが好ましい。このようにす
ると、白の面積が大きくなり検出が容易となる。
After the white extraction, the quality judgment window is set by the above procedure, the sum of the brown area a and the white area a '(= a + a') in the window is calculated, and the total area b From the area ratio [= (a + a ') / b] to
Determine the grade of quality. As a result, the quality judgment is performed in consideration of the white net-like object that is on the surface of the shiitake mushroom.
When this white extraction is performed, it is preferable to intentionally shift the focus of the camera 28 to form an unclear image because a white mesh is thin and difficult to detect. By doing so, the area of white becomes large and detection becomes easy.

【0044】図1において、検査位置P3の下流には、
複数の搬送フィンガー12の停止位置からなる選別排出
位置P4が設けられ、その位置に選別排出装置50が設
けられている。この選別排出装置50は、上述した画像
処理装置38による判定結果に応じて、所定の等級の椎
茸を所定の位置に排出し、椎茸を仕分けする。なお、こ
の選別排出装置50以降には、仕分けした椎茸を所定数
ずつ容器に入れ、包装して排出する一連の装置が設けら
れているが、本発明には直接関係がないので説明を省略
する。
In FIG. 1, downstream of the inspection position P3,
A sorting and discharging position P4, which is a stop position of the plurality of transport fingers 12, is provided, and a sorting and discharging device 50 is provided at that position. The sorting and discharging device 50 discharges shiitake mushrooms of a predetermined grade to a predetermined position according to the determination result by the image processing device 38 described above, and sorts the shiitake mushrooms. It should be noted that, after the sorting and discharging device 50, there is provided a series of devices for putting a predetermined number of sorted shiitake mushrooms in a container, packaging and discharging the shiitake mushrooms, but description thereof is omitted because it is not directly related to the present invention. .

【0045】なお、上記実施例では、図8に示す椎茸画
像1A′から柄の向きを、左右及び中央のいずれかに判
定しているが、椎茸1の柄1bを搬送フィンガー12の
支持ピン12b、12bの間に前方から挿入している関
係上、実際には、柄1bが中央を向いていること(支持
ピン12bに直角方向となっていること)はほとんどな
い。従って、柄の向きを、左右のいずれかのみと判断す
るように構成してもよい。この場合には、上下のウイン
ドウの設定、及び上下、左右のウインドウ内での茶色面
積の最少のものを選ぶという動作は不要となる。更に、
搬送フィンガー12に保持した椎茸1の柄1bの向きを
検出するために、第二のカメラ32で椎茸の画像を撮影
し、その画像を処理して柄の向きを判定しているが、他
の方法によって柄1bの向きを判定してもよい。例え
ば、搬送フィンガー12の走行路に、適当なセンサを配
置し、柄1bの向きを判定するようにしてもよい。ま
た、第一の検査位置P2における柄の向きの判定工程を
省略し、上下左右をウインドウ内での茶色面積の最少の
ものを選ぶという動作のみによって品質判定用ウインド
ウの設定を行うようにしてもよい。
In the above embodiment, the orientation of the handle is determined from the shiitake mushroom image 1A 'shown in FIG. 8 to either the left or right or the center. However, the handle 1b of the shiitake mushroom 1 is used as the support pin 12b of the carrier finger 12. , 12b are inserted from the front, the handle 1b is rarely oriented toward the center (in a direction perpendicular to the support pin 12b). Therefore, it may be configured such that the direction of the handle is determined to be either left or right. In this case, the operation of setting the upper and lower windows and selecting the one having the smallest brown area in the upper, lower, left and right windows becomes unnecessary. Furthermore,
In order to detect the orientation of the handle 1b of the shiitake mushroom 1 held by the transport finger 12, an image of the shiitake mushroom is taken by the second camera 32 and the image is processed to determine the orientation of the handle. The orientation of the handle 1b may be determined by a method. For example, an appropriate sensor may be arranged on the traveling path of the transport finger 12 to determine the orientation of the handle 1b. Further, the quality determination window may be set only by the operation of omitting the step of determining the pattern orientation at the first inspection position P2 and selecting the one having the smallest brown area in the window in the vertical and horizontal directions. Good.

【0046】更に、上記実施例では、カメラ28で椎茸
1を撮影してカラー画像を得る時、椎茸1を停止させて
いるが、椎茸1は必ずしも停止させておく必要はなく、
椎茸1を連続的に移動させておき、その椎茸1がカメラ
28の真上に来た瞬間に撮影する構成としてもよい。更
には、二次元撮像素子或いは撮像管を備えたカラーカメ
ラ28で椎茸画像1Aを得る代わりに、一次元撮像素子
或いは撮像管を備えたカラーカメラを用い、椎茸全体を
走査して二次元の椎茸画像を得るようにしてもよい。
Further, in the above embodiment, when the shiitake mushroom 1 is photographed by the camera 28 to obtain a color image, the shiitake mushroom 1 is stopped, but the shiitake mushroom 1 is not necessarily stopped.
The configuration may be such that the shiitake mushroom 1 is continuously moved and the image is taken at the moment when the shiitake mushroom 1 comes directly above the camera 28. Further, instead of obtaining the shiitake mushroom image 1A by the color camera 28 having a two-dimensional image sensor or an image pickup tube, a color camera having a one-dimensional image sensor or an image pickup tube is used to scan the entire shiitake mushroom to generate a two-dimensional shiitake mushroom. You may make it obtain an image.

【0047】また、上記実施例では、搬送フィンガー1
2に椎茸1を下向きに保持させ、その真下からカメラ2
8で椎茸の傘の裏面を撮影しているが、椎茸1の保持手
段は搬送フィンガー12に限らず、網状或いは複数の線
材を並べた構成のコンベアを用いてもよく、更には、椎
茸1を上向きにして搬送し、上方から撮影する構成とし
てもよい。更に、上記実施例では、椎茸に付着している
白い網状のものを検出するため、弱い光(混合光)を用
いて椎茸の裏面を照射し、カラーカメラで撮影すること
で、椎茸裏面のヒダ部分を黒く写し、白い網状のものの
みを白く写して識別する構成としたが、この代わりに、
白い網状のもののみが強調される光の周波数帯域を選定
して照射することで、白い網状のものを強調して撮影す
ることも可能であり、その画像を処理して品質判定をす
ることもできる。この場合、必要によっては、椎茸裏面
のリング状傘部とその内側のヒダ部分との識別のため
に、別の周波数帯域の光を照射して撮影し、画像処理を
行う構成としてもよい。
Further, in the above embodiment, the transport finger 1
2 Hold the shiitake mushroom 1 downward, and from below, hold the camera 2
Although the back surface of the shiitake umbrella is photographed in 8, the holding means of the shiitake mushroom 1 is not limited to the transport finger 12, and a mesh or a conveyor having a configuration in which a plurality of wire rods are arranged may be used. It may be configured such that the sheet is conveyed upward and the image is captured from above. Further, in the above-mentioned embodiment, in order to detect the white reticulate attached to the shiitake mushroom, weak light (mixed light) is used to illuminate the back surface of the shiitake mushroom and photographed with a color camera. The part was copied in black, and only the white mesh was copied in white for identification, but instead of this,
By selecting and irradiating the frequency band of light in which only the white mesh is emphasized, it is also possible to emphasize the white mesh and shoot the image. It is also possible to process the image and judge the quality. it can. In this case, if necessary, in order to distinguish between the ring-shaped umbrella portion on the back surface of the shiitake mushroom and the fold portion on the inner side of the shiitake mushroom, it may be configured to irradiate light in a different frequency band, perform image capturing, and perform image processing.

【0048】[0048]

【発明の効果】以上に説明したように、本発明によれ
ば、椎茸の傘の裏面を撮影して得たカラー画像に、柄の
影響を極力小さくするように品質判定用のウインドウを
設定し、そのウインドウ内の椎茸画像の全面積(b)と
茶色面積(a)をそれぞれ測定し、両者の面積比率(a
/b)から椎茸の品質を判定するものであるので、柄に
よる誤差を小さくして、椎茸の品質を正しく判定できる
という効果を有している。
As described above, according to the present invention, the quality judgment window is set in the color image obtained by photographing the back surface of the shiitake umbrella to minimize the influence of the pattern. , The total area (b) and the brown area (a) of the shiitake mushroom image in that window were measured, respectively, and the area ratio (a
/ B), the quality of the shiitake mushroom is determined, so that there is an effect that the error due to the handle can be reduced and the quality of the shiitake mushroom can be correctly determined.

【0049】また、本発明は、椎茸の傘の裏面を、12
00〜2400ルクスに照明した状態で撮影して得たカ
ラー画像から、椎茸画像の全面積(b)と、茶色面積
(a)と、白面積(a′)をそれぞれ測定し、全面積に
対する茶色面積と白面積との和の比率〔(a+a′)/
b〕から椎茸の品質を判定する構成としたことにより、
椎茸の表面にある白い網状のものの大きさを加味した品
質判定を行うことができ、椎茸の品質を一層正しく判定
できるという効果を有している。
Further, according to the present invention, the back surface of the shiitake umbrella is
The total area (b), the brown area (a), and the white area (a ') of the shiitake image were measured from the color image obtained by illuminating at 00 to 2400 lux, and the brown area was measured. Ratio of sum of area and white area [(a + a ') /
By configuring to determine the quality of shiitake from b),
The quality of the shiitake can be determined by taking into consideration the size of the white mesh on the surface of the shiitake, and the quality of the shiitake can be determined more accurately.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明方法によって椎茸の品質を判定すること
の可能な品質判定装置を備えた椎茸仕分け包装ラインの
概略平面図
FIG. 1 is a schematic plan view of a shiitake sorting and packaging line equipped with a quality judging device capable of judging the quality of shiitake mushrooms by the method of the present invention.

【図2】その品質判定装置の概略平面図FIG. 2 is a schematic plan view of the quality determination device.

【図3】その品質判定装置の概略側面図FIG. 3 is a schematic side view of the quality determination device.

【図4】上記した品質判定装置に用いている搬送フィン
ガーを示すもので、(a)はその概略下面図、(b)は
その概略側面図、(c)は椎茸を保持した部分の概略断
面図
4A and 4B show a transfer finger used in the above-described quality determination device, in which FIG. 4A is a schematic bottom view thereof, FIG. 4B is a schematic side view thereof, and FIG. 4C is a schematic cross section of a portion holding a shiitake mushroom. Figure

【図5】上記品質判定装置における第一及び第二の検査
位置の概略断面図
FIG. 5 is a schematic cross-sectional view of first and second inspection positions in the quality determination device.

【図6】上記品質判定装置の品質判定システムの全体構
成を示すブロック図
FIG. 6 is a block diagram showing an overall configuration of a quality determination system of the quality determination device.

【図7】上記品質判定システムによる判定動作を示すブ
ロック図
FIG. 7 is a block diagram showing a determination operation by the quality determination system.

【図8】カメラ32で撮影した画像を示す図FIG. 8 is a diagram showing an image taken by a camera 32.

【図9】カメラ28で撮影した画像を示す図FIG. 9 is a diagram showing an image taken by a camera 28.

【図10】(a)、(b)はそれぞれ図9に示す画像に
ウインドウを形成する状態を示す説明図
10A and 10B are explanatory views showing a state in which a window is formed on the image shown in FIG. 9, respectively.

【図11】(a)は図9に示す画像に品質判定用ウイン
ドウを設定し、その中の茶色部分の面積を測定する状態
を説明する図 (b)は図9に示す画像に品質判定用ウインドウを設定
し、その中の椎茸の面積を測定する状態を説明する図
11A is a diagram for explaining a state in which a quality judgment window is set in the image shown in FIG. 9 and the area of a brown portion therein is measured. FIG. 11B is a quality judgment window for the image shown in FIG. Figure that explains how to set the window and measure the area of the shiitake mushroom in it.

【図12】椎茸画像の中心を求める方法を説明する図FIG. 12 is a diagram illustrating a method of obtaining the center of a shiitake mushroom image.

【図13】(a)、(b)、(c)、(d)はそれぞ
れ、椎茸画像の処理のための品質判定用ウインドウの例
を示す図
13 (a), (b), (c) and (d) are diagrams showing examples of quality judgment windows for processing shiitake mushroom images.

【図14】(a)は通常の椎茸の下面図 (b)はその椎茸の断面図FIG. 14A is a bottom view of a normal shiitake mushroom, and FIG. 14B is a cross-sectional view of the shiitake mushroom.

【符号の説明】[Explanation of symbols]

1 椎茸 1a 傘 1b 柄 1c リング状傘部 1d 傘裏面部 1A、1A′ 椎茸画像 1B、1B′ 柄の画像 1C、1C′ リング状傘部の画像 1D 傘裏面部の画像 10 品質判定装置 12 搬送フィンガー 12a 支持板 12b 支持ピン 12e 補助ピン 13 チェーン 18 椎茸供給装置 26 照明装置 26c リング状発光部 28 カメラ 30 遮光板 32 カメラ 33 照明装置 38 画像処理装置 50 選別排出装置 P1 供給位置 P2 第一の検査位置 P3 第二の検査位置 P4 選別排出位置 1 Shiitake mushroom 1a Umbrella 1b Pattern 1c Ring-shaped umbrella portion 1d Umbrella back surface 1A, 1A 'Shiitake image 1B, 1B' Pattern image 1C, 1C 'Ring-shaped umbrella image 1D Umbrella backside image 10 Quality judgment device 12 Conveyance Finger 12a Support plate 12b Support pin 12e Auxiliary pin 13 Chain 18 Shiitake supplying device 26 Illuminating device 26c Ring-shaped light emitting part 28 Camera 30 Shading plate 32 Camera 33 Illuminating device 38 Image processing device 50 Sorting discharging device P1 Supplying position P2 First inspection Position P3 Second inspection position P4 Sorting and discharging position

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 椎茸の傘の裏面を、その裏面にほぼ直角
な方向からカラーカメラで撮影し、得たカラー画像を画
像処理装置に取り込み、該画像処理装置によって、前記
カラー画像内の椎茸画像の中心を求め、その中心から2
方向に放射状に延びる直線を辺とし、その2直線ではさ
まれた領域の椎茸画像の外周まで含む大きさの一つのウ
インドウを品質判定用ウインドウとして設定し、該ウイ
ンドウ内における椎茸画像の全面積(b)と茶色面積
(a)をそれぞれ測定し、両者の面積比率(a/b)か
ら椎茸の品質を判定することを特徴とする椎茸の品質判
定方法。
1. A shiitake mushroom image in the color image is captured by a color camera of a back surface of a shiitake umbrella from a direction substantially perpendicular to the back surface, and the obtained color image is captured by an image processing device. Seeking the center of the
A straight line extending radially in the direction is taken as a side, and one window having a size including the outer circumference of the shiitake mushroom image in the area sandwiched by the two straight lines is set as a quality judgment window, and the entire area of the shiitake mushroom image within the window ( b) and the brown area (a) are respectively measured, and the quality of the shiitake is judged from the area ratio (a / b) of both, and the quality determination method of the shiitake.
【請求項2】 椎茸の傘の裏面を、1200〜2400
ルクスに照明した状態で、その裏面にほぼ直角な方向か
らカラーカメラで撮影し、得たカラー画像を画像処理装
置に取り込み、該画像処理装置によって、前記カラー画
像内の椎茸画像の中心を求め、その中心から2方向に放
射状に延びる直線を辺とし、その2直線ではさまれた領
域の椎茸画像の外周まで含む大きさの一つのウインドウ
を品質判定用ウインドウとして設定し、該ウインドウ内
における椎茸画像の全面積(b)と、茶色面積(a)
と、白面積(a′)をそれぞれ測定し、全面積に対する
茶色面積と白面積との和の比率〔(a+a′)/b〕か
ら椎茸の品質を判定することを特徴とする椎茸の品質判
定方法。
2. The back surface of the shiitake umbrella is 1200-2400
In the state of illuminating the lux, photographed with a color camera from a direction substantially perpendicular to the back surface thereof, the obtained color image is taken into an image processing device, and by the image processing device, the center of the shiitake image in the color image is obtained, A straight line extending radially from the center in two directions is defined as a side, and one window having a size including the outer circumference of the shiitake mushroom image in the region sandwiched by the two straight lines is set as a quality judgment window, and the shiitake mushroom image in the window is set. Area (b) and brown area (a)
And the white area (a ') are respectively measured, and the quality of the shiitake is judged from the ratio [(a + a') / b] of the sum of the brown area and the white area to the total area. Method.
【請求項3】 前記カラー画像内の椎茸画像の中心を求
めた後、その中心を通る第一の基準直線の両側にそれぞ
れウインドウを形成し、更に、前記中心を通り且つ前記
第一の基準直線に直交する第二の基準直線の両側にもそ
れぞれウインドウを形成し、各ウインドウに関して茶色
抽出を行い、最も茶色面積の小さいウインドウを品質判
定用ウインドウとして設定することを特徴とする請求項
1又は2に記載の椎茸の品質判定方法。
3. After obtaining the center of the shiitake mushroom image in the color image, windows are formed on both sides of a first reference straight line passing through the center, and the windows are further passed through the center and the first reference straight line. 3. A window is formed on both sides of a second reference straight line that is orthogonal to, and brown extraction is performed for each window, and the window with the smallest brown area is set as the quality determination window. The method for determining the quality of shiitake mushroom described in.
【請求項4】 前記カラー画像内の椎茸画像の中心を求
めた後、その中心を通る第一の基準直線の両側にそれぞ
れウインドウを形成し、この動作に先立って、前記椎茸
を、側方或いは斜め側方で且つ前記カラー画像における
第一の基準直線に平行な方向からカメラで撮影し、得た
画像から椎茸の柄が第一の基準直線に関してどちらの方
向に延びているかを判定しておき、椎茸の柄が延びてい
る方向とは反対側のウインドウを品質判定用ウインドウ
として設定することを特徴とする請求項1又は2に記載
の椎茸の品質判定方法。
4. After obtaining the center of the shiitake mushroom image in the color image, windows are formed on both sides of a first reference straight line passing through the center, and prior to this operation, the shiitake mushroom is laterally or It is photographed with a camera obliquely from the side and parallel to the first reference line in the color image, and from the obtained image it is determined in which direction the shiitake handle extends with respect to the first reference line. The method for determining the quality of shiitake according to claim 1 or 2, wherein a window on the side opposite to the direction in which the handle of the shiitake extends is set as the quality determination window.
【請求項5】 前記カラー画像内の椎茸画像の中心を求
めた後、その中心を通る第一の基準直線の両側にそれぞ
れウインドウを形成し、更に、前記中心を通り且つ前記
第一の基準直線に直交する第二の基準直線の両側にもそ
れぞれウインドウを形成し、この動作に先立って、側方
或いは斜め側方で且つ前記カラー画像における第一の基
準直線に平行な方向からカメラで撮影し、得た画像から
椎茸の柄が第一の基準直線に関してどちらの方向に延び
ているか、或いは中央に延びているかを判定しておき、
椎茸の柄が第一の基準直線に関してどちらかの方向に延
びている場合には、その方向と反対側のウインドウを品
質判定用ウインドウとして設定し、中央に延びている時
には、前記第一及び第二の基準直線のそれぞれ両側に形
成した各ウインドウに関して茶色抽出を行い、最も茶色
面積の小さいウインドウを品質判定用ウインドウとして
設定することを特徴とする請求項1又は2に記載の椎茸
の品質判定方法。
5. After obtaining the center of the shiitake mushroom image in the color image, windows are formed on both sides of a first reference straight line passing through the center, and the windows are further passed through the center and the first reference straight line. Windows are also formed on both sides of the second reference straight line orthogonal to, and prior to this operation, images are taken with a camera from the side or diagonal side and from the direction parallel to the first reference straight line in the color image. From the obtained image, it is determined in which direction the shiitake handle extends with respect to the first reference line, or whether it extends to the center,
When the handle of the shiitake mushroom extends in either direction with respect to the first reference line, the window on the opposite side to that direction is set as the quality judgment window, and when it extends to the center, the first and second The method for judging quality of shiitake mushrooms according to claim 1 or 2, wherein brown extraction is performed on each window formed on both sides of each of the two reference straight lines, and the window having the smallest brown area is set as the quality judging window. .
【請求項6】 椎茸の傘の裏面を、1200〜2400
ルクスに照明した状態で、その裏面にほぼ直角な方向か
らカラーカメラで撮影し、得たカラー画像を画像処理装
置に取り込み、該画像処理装置によって、椎茸画像の全
面積(b)と、茶色面積(a)と、白面積(a′)をそ
れぞれ測定し、全面積に対する茶色面積と白面積との和
の比率〔(a+a′)/b〕から椎茸の品質を判定する
ことを特徴とする椎茸の品質判定方法。
6. The back surface of the shiitake umbrella is 1200-2400.
In the state of illuminating the lux, the color image was taken by a color camera from a direction substantially perpendicular to the back surface of the lux, and the obtained color image was taken into the image processing device. By the image processing device, the entire area (b) of the shiitake image and the brown area (A) and white area (a ') are respectively measured, and the quality of the shiitake mushroom is determined from the ratio [(a + a') / b] of the sum of the brown area and the white area to the total area. Quality judgment method.
JP26919695A 1995-06-12 1995-09-22 Method for deciding quality of shiitake mushroom Pending JPH0957214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26919695A JPH0957214A (en) 1995-06-12 1995-09-22 Method for deciding quality of shiitake mushroom

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP16924895 1995-06-12
JP7-169248 1995-06-12
JP26919695A JPH0957214A (en) 1995-06-12 1995-09-22 Method for deciding quality of shiitake mushroom

Publications (1)

Publication Number Publication Date
JPH0957214A true JPH0957214A (en) 1997-03-04

Family

ID=26492644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26919695A Pending JPH0957214A (en) 1995-06-12 1995-09-22 Method for deciding quality of shiitake mushroom

Country Status (1)

Country Link
JP (1) JPH0957214A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114769153A (en) * 2022-06-20 2022-07-22 泗阳华盛生物科技有限公司 Be used for hierarchical packing of asparagus to select separately all-in-one with wasing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114769153A (en) * 2022-06-20 2022-07-22 泗阳华盛生物科技有限公司 Be used for hierarchical packing of asparagus to select separately all-in-one with wasing

Similar Documents

Publication Publication Date Title
JP4514007B2 (en) Method and apparatus for inspecting appearance of subject
WO2003071224A1 (en) Method of detecting object of detection and device therefor, and method of inspecting object of inspection and device therefor
JP2002513463A (en) System and method for detecting stress in a molded container
JP2013531261A (en) System and method for analyzing a test strip comb member for immunoassay
JP3640247B2 (en) Tablet appearance inspection device and PTP packaging machine
JP5670915B2 (en) Appearance inspection device
WO2005093368A1 (en) Apparatus for detecting joints in rubber sheets
JP2002148195A (en) Surface inspection apparatus and surface inspection method
JPH11101689A (en) Apparatus for inspecting fruits and vegetables
JPH07204253A (en) Tablet inspection system
JP3989739B2 (en) Inspection device
JP5654486B2 (en) Appearance inspection device
JP5384264B2 (en) Tire appearance inspection device
JPH0957214A (en) Method for deciding quality of shiitake mushroom
JPH11287763A (en) Automatic inspection method of egg, transfer-controlling device of egg suited for it, and automatic inspection device of egg
JP2004132773A (en) System for checking gloss of fruits and vegetables
JPH08114432A (en) Device for inspecting transparent sheet containing net body
JP2004271205A (en) Defect inspection device of container mouth part
JPH0862155A (en) Object 0bserving apparatus
JP4100376B2 (en) Surface condition inspection method and apparatus, and inspection image generation apparatus
JP4085871B2 (en) Surface inspection apparatus and method
JP2000081396A (en) Method and apparatus for automatically judging quality of side surface of taking-up roll
JP3461128B2 (en) Appearance inspection method and device for stamped tablets
JPH11101618A (en) Fruits and vegetables inspection device
JPS62249005A (en) Inspecting deice for abnormality of shape of object