[go: up one dir, main page]

JPH09264715A - Fruit and vegetable shape determination method - Google Patents

Fruit and vegetable shape determination method

Info

Publication number
JPH09264715A
JPH09264715A JP7550696A JP7550696A JPH09264715A JP H09264715 A JPH09264715 A JP H09264715A JP 7550696 A JP7550696 A JP 7550696A JP 7550696 A JP7550696 A JP 7550696A JP H09264715 A JPH09264715 A JP H09264715A
Authority
JP
Japan
Prior art keywords
shape
fruit
distance
vegetables
contour
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
JP7550696A
Other languages
Japanese (ja)
Inventor
Takashi Hatta
孝 八田
Kazuhide Shigefuji
和英 重藤
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.)
Kanadevia Corp
Original Assignee
Hitachi Zosen Corp
Hitachi Shipbuilding and Engineering 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 Hitachi Zosen Corp, Hitachi Shipbuilding and Engineering Co Ltd filed Critical Hitachi Zosen Corp
Priority to JP7550696A priority Critical patent/JPH09264715A/en
Publication of JPH09264715A publication Critical patent/JPH09264715A/en
Pending legal-status Critical Current

Links

Landscapes

  • Harvesting Machines For Specific Crops (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

(57)【要約】 【課題】 従来の形状判定方法では、距離を画素数をカ
ウントして検出しているため、斜めに位置する画素の数
と、横一列に位置する画素の数が一致してしまうことが
あり、正確な距離が求められないことがあった。 【解決手段】 トマト13(青果物)の上面を照明する照
明装置11と、この照明装置11により照明されたトマト13
の上面を撮像する撮像装置12と、この撮像装置12の撮像
画像からトマト13の輪郭と重心位置を抽出する画像処理
装置15と、この画像処理装置15により抽出された重心位
置を中心として所定角度毎に位置する前記輪郭の点の座
標を求め、これら座標から各輪郭の点と重心位置との距
離を演算し、この求めた距離により青果物の形状を判定
する形状判定装置16とを備えて構成する。
In the conventional shape determination method, the distance is detected by counting the number of pixels. Therefore, the number of diagonally positioned pixels and the number of horizontally positioned pixels are the same. Sometimes it was not possible to obtain an accurate distance. SOLUTION: A lighting device 11 for illuminating the upper surface of a tomato 13 (fruit and fruit), and a tomato 13 illuminated by this lighting device 11.
An image pickup device 12 for picking up an upper surface of the image pickup device, an image processing device 15 for extracting the contour and the center of gravity position of the tomato 13 from the image picked up by the image pickup device 12, and a predetermined angle around the center of gravity position extracted by the image processing device 15. Obtained the coordinates of the points of the contour located for each, calculates the distance between the point of each contour and the position of the center of gravity from these coordinates, configured with a shape determination device 16 to determine the shape of fruits and vegetables by the distance thus obtained To do.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、青果物の選果場に
おいて青果物の形状を判別する青果物形状判定方法に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a fruit and vegetable shape determining method for determining the shape of fruits and vegetables in a fruit and vegetable sorting field.

【0002】[0002]

【従来の技術】青果物を選別する際、色、形状、傷の程
度といった要素を用いて等級、階級付けを行っている。
特に青果物の形状の良否が等級、階級付けの重要な決め
てとなっている。
2. Description of the Related Art When selecting fruits and vegetables, factors such as color, shape, and degree of scratches are used to classify and classify them.
In particular, the quality of the shape of fruits and vegetables is an important deciding factor for grade and classification.

【0003】従来の青果物の形状の判定方法の一例を説
明する。図11に示すように、青果物、たとえばトマト1
を照明装置2によりその上部1Aを上方から照明し、この
照明されたトマト1を、トマト1の中心上方に設置した
撮像装置3により撮像し、この撮像画像(取り込み画
像)を2値化することによりトマト1の画像と背景の画
像とに分離して図13(b)に示す2値化画面4を形成
し、さらにその重心gを求める。
An example of a conventional method for determining the shape of fruits and vegetables will be described. As shown in FIG. 11, fruits and vegetables such as tomato 1
The upper part 1A of the tomato 1 is illuminated from above by a lighting device 2, the illuminated tomato 1 is imaged by an imaging device 3 installed above the center of the tomato 1, and the captured image (captured image) is binarized. The image of the tomato 1 and the background image are separated by to form the binarized screen 4 shown in FIG. 13 (b), and the center of gravity g thereof is obtained.

【0004】また図13(a)に示すように、中心より外
側に設けた1本の直線を基準として反時計回りに所定
角度Θ毎に直線・・・を設けたマスク画面5を用意
し、図13(c)に示すように、このマスク画面5の中心
と前記2値化画面4の重心gとを一致させてその論理積
(AND)を各画素間で行い、その結果図12に示すよう
に、直線’’’・・・内に現れるトマト1の画素
数をカウントして重心gから前記所定角度Θ毎の輪郭ま
での距離とし、この距離により形状を判定している。
Further, as shown in FIG. 13 (a), a mask screen 5 having a straight line provided at a predetermined angle Θ counterclockwise with respect to one straight line provided outside the center is prepared, As shown in FIG. 13 (c), the center of the mask screen 5 and the center of gravity g of the binarized screen 4 are made to coincide with each other, and the logical product (AND) is performed between each pixel, and the result is shown in FIG. As described above, the number of pixels of the tomato 1 appearing in the straight line "" ... Is counted to obtain the distance from the center of gravity g to the contour at each of the predetermined angles Θ, and the shape is determined based on this distance.

【0005】[0005]

【発明が解決しようとする課題】しかし従来の形状判定
方法では、距離を画素数をカウントして検出しているた
め、図12に示すように、斜めに位置する画素の数と、横
一列に位置する画素の数が一致してしまうことがあり、
正確な距離が求められないことがあった。よって形状の
判定に信頼性が欠如し、明確な等級、階級付けを行うこ
とができなかった。また等級、階級付けが不明確なた
め、生産者側と消費者側間に不信感が発生していた。
However, in the conventional shape determination method, the distance is detected by counting the number of pixels. Therefore, as shown in FIG. The number of pixels located may be the same,
Sometimes it was not possible to obtain an accurate distance. Therefore, the shape judgment was unreliable, and it was not possible to make a clear grade or classification. In addition, because the grades and ranks were unclear, there was a sense of distrust between producers and consumers.

【0006】そこで、本発明のうち請求項1記載の発明
は、画素数の分解能に依存せず、青果物の明確な裏付け
を可能とした青果物形状判定方法を提供することを目的
としたものである。
Therefore, the invention according to claim 1 of the present invention has an object to provide a method of determining the shape of fruits and vegetables which can clearly support the fruits and vegetables without depending on the resolution of the number of pixels. .

【0007】[0007]

【課題を解決するための手段】前述した目的を達成する
ために、本第1発明の青果物形状判定方法は、青果物の
上面を撮像し、この撮像した画像を前記青果物の画像と
背景の画像に分離し、分離した青果物の画像から青果物
の輪郭および重心位置を抽出し、この抽出された重心位
置を中心として所定角度毎に位置する前記輪郭の点の座
標を求め、これら座標から各輪郭の点と重心位置との距
離を演算し、これら求めた距離に基づいて青果物の形状
を判定することを特徴とするものである。
In order to achieve the above-mentioned object, the method of determining the shape of fruits and vegetables according to the first aspect of the present invention takes an image of the upper surface of the fruits and vegetables, and uses this picked-up image as the image of the fruits and vegetables and the background image. Separated, the contour and center of gravity of the fruit and vegetables are extracted from the separated image of fruits and vegetables, and the coordinates of the points of the contour located at each predetermined angle around the center of gravity of the extracted fruit are obtained, and the points of each contour from these coordinates. Is calculated, and the shape of the fruits and vegetables is determined based on the calculated distance.

【0008】上記方法によると、青果物の撮像画像から
青果物の輪郭と重心位置が抽出され、この抽出された重
心位置を中心として所定角度毎に位置する前記輪郭の点
の座標が求められ、これら座標により各輪郭の点と重心
位置との距離が演算され、これら距離に基づいて青果物
の形状が判定される。この形状の判定により青果物の良
否、あるいは等級が判定される。
According to the above method, the contours and the center of gravity of the fruits and vegetables are extracted from the picked-up image of the fruits and vegetables, and the coordinates of the points of the contours that are located at predetermined angles centering on the extracted center of gravity are obtained. Thus, the distance between each contour point and the position of the center of gravity is calculated, and the shape of the fruit or vegetable is determined based on these distances. The quality of the fruits and vegetables, or the grade, is determined by the determination of this shape.

【0009】また本第2発明の青果物形状判定方法は、
上記本第1発明の青果物形状判定方法であって、所定角
度毎の輪郭の点の位置をx軸、演算により求めた距離を
y軸に配置し、これら距離を順に接続して距離パターン
を形成し、この距離パターンにより青果物の形状を判定
することを特徴とするものである。
The method of determining the shape of fruits and vegetables according to the second aspect of the present invention is
In the fruit and vegetable shape determining method according to the first aspect of the present invention, the position of the contour point at each predetermined angle is arranged on the x-axis, the distance obtained by calculation is arranged on the y-axis, and these distances are connected in order to form a distance pattern. However, the shape of fruits and vegetables is determined based on this distance pattern.

【0010】上記方法によると、重心位置を中心として
所定角度毎に位置する各輪郭の点と重心位置との距離が
順に接続されて距離パターンが形成され、この距離パタ
ーンにより青果物の形状が判定される。
According to the above method, the distances between the points of the respective contours centered on the position of the center of gravity and the positions of the center of gravity and the position of the center of gravity are connected in sequence to form a distance pattern, and the shape of fruits and vegetables is determined by this distance pattern. It

【0011】また本第3発明の青果物形状判定方法は、
上記本第1発明または本第2発明の青果物形状判定方法
であって、演算により求めた距離の最大値と最小値が所
定値以内に含まれているとき、青果物の形状を円形と判
定することを特徴とするものである。
The method of determining the shape of fruits and vegetables according to the third aspect of the present invention is
The fruit and fruit shape determining method according to the first or second invention, wherein the shape of the fruit and vegetables is determined to be circular when the maximum value and the minimum value of the calculated distances are within a predetermined value. It is characterized by.

【0012】上記方法によると、距離の最大値と最小値
が所定値以内に含まれているとき、青果物の形状が円形
と判定される。
According to the above method, when the maximum value and the minimum value of the distance are within the predetermined value, it is determined that the shape of the fruits and vegetables is circular.

【0013】[0013]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。図1は本発明の実施の形態におけ
る青果物形状判定方法を使用した設備の構成図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram of equipment using the fruit and vegetable shape determination method according to the embodiment of the present invention.

【0014】図1において、11は照明装置、12はトマト
13の上面上方に設けた撮像装置であり、照明装置11はト
マト13の上面を均等に照明している。また、照明装置11
の光以外の光が撮像装置12へ入射しないように、またト
マト13に照明装置11の光以外の光が照射されないよう
に、遮蔽板14および遮蔽用カーテン14Aを設けている。
In FIG. 1, 11 is a lighting device and 12 is a tomato.
The lighting device 11 is an imaging device provided above the upper surface of the tomato 13, and uniformly illuminates the upper surface of the tomato 13. In addition, the lighting device 11
The shielding plate 14 and the shielding curtain 14A are provided so that the light other than the light of No. 2 does not enter the imaging device 12 and the tomato 13 is not irradiated with the light other than the light of the illumination device 11.

【0015】また撮像装置12により撮像されたトマト13
の撮像画像信号aは画像処理装置15に入力され、さらに
この画像処理装置15によりトマト13の撮像画像から処理
されたトマト13の輪郭画像信号cおよび重心位置信号d
(詳細は後述する)は、トマト13の形状を判定するマイ
クロコンピュータからなる形状判定装置16へ入力され、
この形状判定装置16から出力された形状判定信号uおよ
び良否判定信号v(詳細は後述する)は評価判定装置17
へ入力され、この判定信号に基づいてトマト13の等級、
または階級付けが行われる。またトマト13はコンベヤ装
置18により順に遮蔽板14および遮蔽用カーテン14A内へ
搬送され、撮像装置12により撮像される。
A tomato 13 imaged by the imaging device 12
The imaged image signal a of the tomato 13 is input to the image processing device 15 and further processed by the image processing device 15 from the imaged image of the tomato 13.
(Details will be described later) is input to the shape determination device 16 including a microcomputer for determining the shape of the tomato 13,
The shape determination signal u and the quality determination signal v (details will be described later) output from the shape determination device 16 are the evaluation determination device 17
Is input to the grade of tomato 13 based on this judgment signal,
Or the classification is done. Further, the tomatoes 13 are successively conveyed by the conveyor device 18 into the shielding plate 14 and the shielding curtain 14A, and are imaged by the imaging device 12.

【0016】上記画像処理装置15を図2の構成図により
詳細に説明する。21は撮像装置12により撮像された撮像
画像信号aを2値化するしきい値xを設定するしきい値
設定部であり、2値化処理部22は、しきい値設定部21で
設定されたしきい値xに基づき撮像画像信号aを2値化
処理する(トマト13の画像と背景の画像に分離する)。
しきい値xはトマト13と背景(コンベヤ装置18の面)を
分離できる値に設定される。
The image processing apparatus 15 will be described in detail with reference to the block diagram of FIG. Reference numeral 21 is a threshold value setting unit for setting a threshold value x for binarizing the picked-up image signal a picked up by the image pickup device 12, and the binarization processing unit 22 is set by the threshold value setting unit 21. The captured image signal a is binarized based on the threshold value x (separated into the image of the tomato 13 and the background image).
The threshold value x is set to a value that can separate the tomato 13 and the background (the surface of the conveyor device 18).

【0017】2値化処理部22において処理されて得られ
た、トマト画像信号bは輪郭検出部23へ入力され、この
輪郭検出部23は、トマト画像信号bの”0”と”1”の
境を辿ることにより図3(b)に示すように、トマト13
の輪郭18を求め(輪郭部の画素のみ”1”)、この輪郭
画像信号cを形状判定装置16へ出力する。またトマト画
像信号bは重心位置検出部24へ入力され、重心位置検出
部24は、トマト画像信号bの”1”の画素の中心を求め
ることによりトマト13の重心gを求め、この重心位置信
号dを形状判定装置16へ出力する。
The tomato image signal b obtained by processing in the binarization processing unit 22 is input to the contour detecting unit 23, and this contour detecting unit 23 detects the "0" and "1" of the tomato image signal b. By tracing the boundary, as shown in FIG. 3 (b), tomato 13
Contour 18 is obtained (only the pixels in the contour portion are “1”), and the contour image signal c is output to the shape determination device 16. Further, the tomato image signal b is input to the center-of-gravity position detection unit 24, and the center-of-gravity position detection unit 24 obtains the center of gravity g of the tomato 13 by obtaining the center of the "1" pixel of the tomato image signal b. The d is output to the shape determination device 16.

【0018】上記形状判定装置16を図2の構成図により
詳細に説明する。31はマスク用メモリ部であり、このマ
スク用メモリ部31には、従来と同様に図3(a)に示す
ように、中心zより外側に設けた1本の直線を基準と
して反時計回りに所定角度Θ毎に直線・・・を設け
たマスク画像が記憶されている。
The shape determining device 16 will be described in detail with reference to the configuration diagram of FIG. Reference numeral 31 denotes a mask memory section. As in the conventional case, the mask memory section 31 is counterclockwise with respect to one straight line provided outside the center z as shown in FIG. A mask image in which a straight line is provided for each predetermined angle Θ is stored.

【0019】32は画像合成部であり、マスク用メモリ部
31のマスク画像の中心zを画像処理装置15の重心位置検
出部24より出力された重心位置信号dの重心gと一致さ
せ、、輪郭検出部23より出力された輪郭画像信号cとの
論理積(AND)を各画素間で行い、その結果図3
(c)に示すように、直線・・・内に現れる輪郭
点’’’・・・のxy座標{(x1 ,y1 )、
(x2 ,y2 )、(x3 ,y 3 )・・・}を図4に示す
ように求める。
Reference numeral 32 denotes an image synthesizing unit, which is a mask memory unit.
The center z of the 31 mask images is detected as the center of gravity position of the image processing device 15.
Matches with the center of gravity g of the center of gravity position signal d output from the output unit 24.
The contour image signal c output from the contour detection unit 23.
A logical product (AND) is performed between each pixel, and the result is shown in FIG.
As shown in (c), the contour that appears in a straight line
Xy coordinates {(x1, Y1),
(XTwo, YTwo), (XThree, Y Three) ...} is shown in FIG.
Ask.

【0020】重心gの座標(xg ,yg )と輪郭点’
’’・・・のxy座標は距離演算部33へ入力され、
距離演算部33において、重心gと各輪郭点’’’
・・・との距離J(j1 、j2 、j3 ・・・)が演算さ
れ、距離パターン部34へ出力される。
The coordinates (x g , y g ) of the center of gravity g and the contour point '
The xy coordinates of '' ... Are input to the distance calculation unit 33,
In the distance calculation unit 33, the center of gravity g and each contour point "'
The distance J (j 1 , j 2 , j 3 ...) With respect to is calculated and output to the distance pattern unit 34.

【0021】距離パターン部34は、距離演算部33から距
離J(j1 、j2 、j3 ・・・)を入力し、図5のパタ
ーンを形成し、形状判定部35へ出力する。図5の距離パ
ターン図は、輪郭点’’’・・・の位置(マスク
用メモリの直線の位置番号)をx軸、距離Jをy軸と
し、距離の各点を接続して形成したものである。図5で
は、上記所定角度Θ=10°として36点のマスク用メ
モリの直線の位置番号をとっている。
The distance pattern unit 34 inputs the distance J (j 1 , j 2 , j 3 ...) From the distance calculation unit 33, forms the pattern of FIG. 5 and outputs it to the shape determination unit 35. The distance pattern diagram of FIG. 5 is formed by connecting each point of the distance with the position of the contour point '''... (the position number of the straight line of the mask memory) as the x-axis and the distance J as the y-axis. Is. In FIG. 5, the predetermined angle .THETA. = 10.degree.

【0022】形状判定部35はこの距離パターンによりト
マト13の形状を判定し、その判定信号uを評価判定装置
17へ出力する。トマト13の形状による距離パターンの例
を図6〜図8に示す。
The shape determination unit 35 determines the shape of the tomato 13 based on this distance pattern, and outputs the determination signal u to the evaluation determination device.
Output to 17. Examples of distance patterns depending on the shape of the tomato 13 are shown in FIGS.

【0023】図6は形状が「円形」の場合の距離パター
ンであり、その特徴は、距離Jの平均値JH と最大値J
MAX および最小値JMIN との差が殆どないことである。
図7は形状が「四角形」の場合の距離パターンであり、
その特徴は、距離Jの平均値JH を境に凸部Pと凹部Q
が順に表れ、かつそれぞれの凸部Pの最大値PMAX に差
が殆どなく、それぞれの凹部Qの最小値QMIN に差が殆
どないことである。
FIG. 6 shows a distance pattern when the shape is "circular", and its features are the average value JH and the maximum value J of the distance J.
There is almost no difference between MAX and the minimum value JMIN.
FIG. 7 shows a distance pattern when the shape is “square”,
The feature is that the convex portion P and the concave portion Q are separated by an average value JH of the distance J.
, And there is almost no difference in the maximum value PMAX of each convex portion P, and there is almost no difference in the minimum value QMIN of each concave portion Q.

【0024】図8は形状が「楕円形」の場合の距離パタ
ーンであり、その特徴は、距離Jの平均値JH を境に凸
部Pと凹部Qが順に表れ、かつそれぞれの凸部Pの最大
値PMAX は最大値が大きいものと小さいものが順に表
れ、それぞれの凹部Qの最小値QMIN に差が殆どないこ
とである。
FIG. 8 shows a distance pattern when the shape is "elliptical", and its characteristic is that the convex portion P and the concave portion Q appear in order with the average value JH of the distance J as a boundary, and each convex portion P has The maximum value PMAX is such that the maximum value is large and the maximum value is small, and there is almost no difference in the minimum value QMIN of each recess Q.

【0025】形状判定部35は、上記距離パターンの特徴
により、「円形」「四角形」「楕円形」「歪形」を判定
する。この判定の手順を図9のフローチャートにしたが
って説明する。
The shape determination unit 35 determines "circular", "square", "elliptical", or "distorted" based on the characteristics of the distance pattern. The procedure of this determination will be described with reference to the flowchart of FIG.

【0026】まず距離Jの平均値JH と最大値JMAX お
よび最小値JMIN を求め(ステップ−1)、次に平均値
JH と最大値JMAX の差、および平均値JH と最小値J
MINの差がそれぞれ所定値β(図6参照)以内であるか
を確認する(ステップ−2,3)。ともにβ以内である
ことが確認されると、形状は「円形」であると判定して
(ステップ−4)、判定結果を形状判定信号uとして出
力し(ステップ−5)、終了する。
First, the average value JH, the maximum value JMAX and the minimum value JMIN of the distance J are obtained (step -1), then the difference between the average value JH and the maximum value JMAX, and the average value JH and the minimum value J.
It is confirmed whether the difference of MIN is within a predetermined value β (see FIG. 6) (steps-2 and 3). If both are confirmed to be within β, it is determined that the shape is “circular” (step-4), the determination result is output as the shape determination signal u (step-5), and the processing is ended.

【0027】ステップ−2,3において、平均値JH と
最大値JMAX の差、および平均値JH と最小値JMIN の
差が所定値β以内でない場合、平均値JH を境に、平均
値JH 以上の領域P(p1 ,p2 ,p3 ・・・)と平均
値JH 以下の領域Q(q1 ,q2 ,q3 ・・・)を求め
(ステップ−6)、各領域P,Q毎の最大値PMAX (p
max1,pmax2,pmax3・・・)と最小値QMIX (qmix
1,qmix2,qmix3・・・)を求める(ステップ−
7)。
In steps -2 and 3, when the difference between the average value JH and the maximum value JMAX and the difference between the average value JH and the minimum value JMIN are not within the predetermined value β, the average value JH is used as a boundary, and Area P (p 1 , p 2 , p 3 ...) And area Q (q 1 , q 2 , q 3 ...) Below average value JH are obtained (step -6), and each area P, Q Maximum value PMAX (p
max1, pmax2, pmax3 ...) and the minimum value QMIX (qmix
1, qmix2, qmix3 ...) is calculated (step −
7).

【0028】次に領域Qのそれぞれの最小値QMIX が所
定値γ(図7,図8参照)の範囲内であるかを確認する
(ステップ−8)。γの範囲内であることが確認される
と、領域Pの全ての最大値PMAX が所定値γの範囲内で
あるかを確認し(ステップ−9)、確認されると、形状
は「四角形」であると判定して(ステップ−10)、ステ
ップ−5を実行して終了する。
Next, it is confirmed whether or not the minimum value QMIX of each area Q is within a range of a predetermined value γ (see FIGS. 7 and 8) (step-8). When it is confirmed that it is within the range of γ, it is confirmed whether all the maximum values PMAX of the region P are within the range of the predetermined value γ (step-9). Is determined (step-10), step-5 is executed and the process ends.

【0029】ステップ−9において、全ての最大値PMA
X が所定値γの範囲内でない場合、領域Pの最大値PMA
X (pmax1,pmax2,pmax3・・・)において、1つ置
き、すなわちpmax1とpmax3とpmax5、あるいはpmax2
とpmax4が所定値γの範囲内であるかを確認し(ステッ
プ−11)、γの範囲内であることが確認されると、形状
は「楕円形」であると判定して(ステップ−12)、ステ
ップ−5を実行して終了する。
In step-9, all maximum values PMA
When X is not within the range of the predetermined value γ, the maximum value PMA of the area P
In X (pmax1, pmax2, pmax3 ...) Every other, that is, pmax1, pmax3 and pmax5, or pmax2
And pmax4 are confirmed to be within the range of the predetermined value γ (step-11), and if it is confirmed to be within the range of γ, it is determined that the shape is "elliptical" (step-12). ), Execute step-5 and end.

【0030】ステップ−11においてγの範囲内でない場
合、ステップ−8においてQMIX が所定値γの範囲内で
ない場合、「歪形」と判定して(ステップ−13)、ステ
ップ−5を実行して終了する。
If it is not within the range of γ in step-11, and if QMIX is not within the range of the predetermined value γ in step-8, it is judged as "distorted" (step-13), and step-5 is executed. finish.

【0031】上記形状判定部36により、トマト13の形状
が「円形」「四角形」「楕円形」「歪形」であるかを判
定される。なお、他の形状の距離パターンを判定するこ
とも可能である。
The shape determination unit 36 determines whether the shape of the tomato 13 is "circular", "square", "elliptical", or "distorted". It should be noted that it is also possible to determine distance patterns of other shapes.

【0032】上記構成により、画像処理装置15において
図3(b)に示すトマト13の上部の輪郭18が求められ、
また重心gが求められ、形状判定装置16において、図3
(a)に示すマスク画像を用いて、図4に示す所定角度
Θ毎の輪郭点’’’・・・のxy座標が求めら
れ、これら座標により重心gとの距離Jが演算され、こ
の距離Jに基づいて距離パターンが形成され、この距離
パターンに基づいて、トマト13の形状が「円形」「四角
形」「楕円形」「歪形」であるかを判定される。
With the above configuration, the image processing apparatus 15 obtains the upper contour 18 of the tomato 13 shown in FIG.
In addition, the center of gravity g is obtained, and the shape determination device 16 uses
Using the mask image shown in (a), the xy coordinates of the contour points''' ... For each predetermined angle Θ shown in FIG. 4 are obtained, and the distance J to the center of gravity g is calculated from these coordinates, and this distance is calculated. A distance pattern is formed based on J, and it is determined based on this distance pattern whether the shape of the tomato 13 is “circular”, “quadrangular”, “elliptical”, or “distorted”.

【0033】このように、輪郭点’’’・・・の
xy座標が求められ、これら座標により重心gとの距離
Jが求められることにより、画素数の分解数に余り左右
されずに距離Jを正確に求めることができ、さらにこの
距離Jにより距離パターンを形成することにより、この
パターンによりトマト13の形状を判定でき、この形状の
判定に基づいて正確で信頼性の有る青果物の評価、すな
わち等級、階級付けを行うことができる。また、等級、
階級付けの根拠が明確とされることにより、生産者側と
消費者側の信頼関係を向上させることができる。
In this way, the xy coordinates of the contour points''' ... Are obtained, and the distance J from the center of gravity g is obtained from these coordinates, so that the distance J is not significantly affected by the number of divided pixels. Can be obtained accurately, and by further forming a distance pattern with this distance J, the shape of the tomato 13 can be judged from this pattern, and based on this judgment of shape, accurate and reliable evaluation of fruits and vegetables, that is, You can classify and grade. Also the grade,
By clarifying the grounds for classification, it is possible to improve the trusting relationship between producers and consumers.

【0034】上記形状判定装置16では、青果物の形状そ
のものを判定しているが、青果物の形状の良否を判定す
ることもできる。このとき、距離演算部33にて演算され
た距離J(j1 、j2 、j3 ・・・)を良否判定部36へ
入力する。
Although the shape determining device 16 determines the shape of the fruits and vegetables itself, it is also possible to determine the quality of the shape of the fruits and vegetables. At this time, the distance J (j 1 , j 2 , j 3 ...) Calculated by the distance calculation unit 33 is input to the pass / fail judgment unit 36.

【0035】この良否判定部36の形状の良否判定方法を
図10のフローチャート、図5の距離Jのパターン図にし
たがって説明する。まず距離J(j1 、j2 、j3 ・・
・)の平均値JH を求め(ステップ−1)、この平均値
に許容値αを加算した値(しきい値)J+ (図5参照)
を距離Jが越える輪郭点の有無を確認し(ステップ−
2)、有りの場合、突起部Aがあると判断し(ステップ
−3)、形状”不良”の良否判定信号vを出力して(ス
テップ−4)、終了する。
A quality determination method for the shape of the quality determination unit 36 will be described with reference to the flowchart of FIG. 10 and the pattern diagram of the distance J in FIG. First, the distance J (j 1 , j 2 , j 3 ...
)) Average value JH is calculated (step -1), and the average value is added with the allowable value α (threshold value) J + (see FIG. 5).
Check if there is a contour point whose distance J exceeds (Step-
2) If yes, it is determined that there is a protrusion A (step-3), the quality determination signal v of the shape "defective" is output (step-4), and the process ends.

【0036】ステップ−2において、しきい値J+ を距
離Jが越える輪郭点が無い場合、平均値JH に許容値α
を減算した値(しきい値)J- (図5参照)未満の距離
Jの輪郭点の有無を確認し(ステップ−5)、有りの場
合、陥没部Bがあると判断し(ステップ−6)、上記ス
テップ−4を実行し、無い場合、形状”良”の良否判定
信号vを出力して(ステップ−7)、終了する。
In step-2, when there is no contour point whose distance J exceeds the threshold value J +, the average value JH is set to the allowable value α.
It is confirmed whether or not there is a contour point with a distance J less than the value (threshold value) J- (see FIG. 5) obtained by subtracting (step-5), and if there is, it is judged that there is a depression B (step-6). ), The above step-4 is executed, and if there is not, a quality determination signal v of the shape “good” is output (step-7), and the process is ended.

【0037】上記構成により、各輪郭の点と重心gとの
距離Jに基づいてトマト13の突起部A、または陥没部B
の有無が判断され、突起部A、または陥没部Bが有る場
合は”不良”の良否判定信号vが、突起部Aおよび陥没
部Bとも無い場合は”良”の良否判定信号vが評価判定
装置17へ出力される。
With the above structure, the protrusion A or the depression B of the tomato 13 is determined based on the distance J between each contour point and the center of gravity g.
If the presence or absence of the projection A or the depression B is present, the quality determination signal v of "defective" is evaluated. If the projection A or the depression B is not present, the quality determination signal v of "good" is evaluated. Output to the device 17.

【0038】このように、各輪郭の点と重心gとの正確
な距離Jが求められ、これら距離Jに基づいてトマト13
の形状の良否が判定されることにより、正確で信頼性の
有るトマト13の評価、すなわち等級、階級付けを行うこ
とができる。また、等級、階級付けの根拠が明確とされ
ることにより、生産者側と消費者側の信頼関係を向上さ
せることができる。
Thus, the accurate distance J between each contour point and the center of gravity g is obtained, and the tomato 13 is calculated based on these distances J.
By determining whether the shape of the tomato is good or bad, it is possible to accurately and reliably evaluate the tomato 13, that is, to classify or classify the tomatoes. In addition, by clarifying the grounds for classifying and classifying, it is possible to improve the relationship of trust between the producer side and the consumer side.

【0039】なお、上記実施の形態では、トマト13の良
否のみを判定しているが、トマト13に限らず他の青果物
に適用することができる。
In the above embodiment, only the quality of the tomato 13 is judged, but the invention is not limited to the tomato 13 and can be applied to other fruits and vegetables.

【0040】[0040]

【発明の効果】以上のように本第1発明によれば、青果
物の撮像画像から青果物の輪郭と重心位置を抽出し、こ
の抽出された重心位置を中心として所定角度毎に位置す
る前記輪郭の点の座標を求め、これら座標から各輪郭の
点と重心位置との距離を求めることにより、画素数の分
解能に左右されずに正確な距離を求めることができ、よ
ってこれら距離に基づいて青果物の形状を判定すること
により、正確で信頼性の有る青果物の評価、すなわち等
級、階級付けを行うことができる。また、等級、階級付
けの根拠が明確とされることにより、生産者側と消費者
側の信頼関係を向上させることができる。
As described above, according to the first aspect of the present invention, the contour and the center of gravity of the fruit and vegetables are extracted from the picked-up image of the fruits and vegetables, and the contours of the contours that are positioned at predetermined angles with the extracted center of gravity as the center are extracted. By obtaining the coordinates of the points and obtaining the distance between the point of each contour and the position of the center of gravity from these coordinates, it is possible to obtain the accurate distance without being affected by the resolution of the number of pixels. By determining the shape, accurate and reliable evaluation of fruits and vegetables, that is, grading and ranking can be performed. In addition, by clarifying the grounds for classifying and classifying, it is possible to improve the relationship of trust between the producer side and the consumer side.

【0041】また本第2発明によれば、重心位置を中心
として各角度毎に位置する各輪郭の点と重心位置との距
離を順に接続して距離パターンを形成することにより、
青果物の形状を判定でき、この判定結果により信頼性の
有る青果物の評価、すなわち等級、階級付けを行うこと
ができる。また、等級、階級付けの根拠が明確とされる
ことにより、生産者側と消費者側の信頼関係を向上させ
ることができる。
According to the second aspect of the invention, the distance pattern is formed by sequentially connecting the distances between the points of each contour located at each angle centered on the center of gravity position and the center of gravity position.
The shape of the fruits and vegetables can be determined, and the results of this determination enable reliable evaluation of the fruits and vegetables, that is, classification and classification. In addition, by clarifying the grounds for classifying and classifying, it is possible to improve the relationship of trust between the producer side and the consumer side.

【0042】さらに本第3発明によれば、距離の最大値
と最小値が所定値以内に含まれているとき、青果物の形
状を円形と判定できる。この判定結果により信頼性の有
る青果物の評価、すなわち等級、階級付けを行うことが
できる。
Further, according to the third aspect of the present invention, when the maximum value and the minimum value of the distance are within the predetermined value, it is possible to determine the shape of the fruit or vegetables as a circle. Based on this determination result, it is possible to perform reliable evaluation of fruits and vegetables, that is, to classify and classify them.

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

【図1】本発明の実施の形態における青果物形状判定方
法を使用した青果物形状判定設備の構成図である。
FIG. 1 is a configuration diagram of a fruit and vegetable shape determining facility using a fruit and vegetable shape determining method according to an embodiment of the present invention.

【図2】同青果物形状判定設備のブロック図である。FIG. 2 is a block diagram of the same fruit and vegetable shape determination equipment.

【図3】同青果物形状判定設備の動作を説明するための
撮像画像図である。
FIG. 3 is a picked-up image diagram for explaining the operation of the same fruit and vegetable shape determination equipment.

【図4】同青果物形状判定設備の動作を説明するための
座標図である。
FIG. 4 is a coordinate diagram for explaining the operation of the fruit and vegetable shape determining equipment.

【図5】同青果物形状判定設備において形成される距離
パターン図である。
FIG. 5 is a distance pattern diagram formed in the fruit and vegetable shape determining equipment.

【図6】同青果物形状判定設備において青果物の形状が
「円形」の場合に形成される距離パターン図である。
FIG. 6 is a distance pattern diagram formed when the shape of fruits and vegetables is “circular” in the fruit and vegetables shape determining device.

【図7】同青果物形状判定設備において青果物の形状が
「四角形」の場合に形成される距離パターン図である。
FIG. 7 is a distance pattern diagram formed when the shape of fruits and vegetables is “square” in the same fruit and fruits shape determining device.

【図8】同青果物形状判定設備において青果物の形状が
「楕円形」の場合に形成される距離パターン図である。
FIG. 8 is a distance pattern diagram formed when the shape of fruits and vegetables is “elliptical” in the same fruit and fruits shape determining device.

【図9】同青果物形状判定設備の形状判定装置形状判定
部のフローチャートである。
FIG. 9 is a flowchart of a shape determination device shape determination unit of the same fruit and vegetable shape determination facility.

【図10】同青果物形状判定設備の形状判定装置良否判定
部のフローチャートである。
FIG. 10 is a flowchart of a shape determination device quality determination unit of the same fruit and vegetable shape determination facility.

【図11】従来の青果物形状判定設備の構成図である。[Fig. 11] Fig. 11 is a configuration diagram of a conventional fruit and vegetable shape determination facility.

【図12】従来の青果物形状判定設備の課題を説明するた
めの要部撮像画像図である。
[Fig. 12] Fig. 12 is a captured image diagram of a main part for explaining a problem of a conventional fruit and vegetable shape determination facility.

【図13】従来の青果物形状判定設備の動作を説明するた
めの撮像画像図である。
[Fig. 13] Fig. 13 is a captured image diagram for explaining the operation of the conventional fruit and vegetable shape determination facility.

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

11 照明装置(照明装置) 12 撮像装置 13 トマト(青果物) 14 遮蔽板 15 画像処理装置 16 形状判定装置 17 評価判定装置 21 しきい値設定部 22 2値化処理部 23 輪郭検出部 24 重心位置検出部 31 マスク用メモリ部 32 画像合成部 33 距離演算部 34 距離パターン部 35 形状判定部 36 良否判定部 a 撮像画像信号 c 輪郭検出信号 d 重心位置信号 u 形状判定信号 v 良否判定信号 11 Illumination device (illumination device) 12 Imaging device 13 Tomato (fruit and fruit) 14 Shield 15 Image processing device 16 Shape determination device 17 Evaluation determination device 21 Threshold setting unit 22 Binarization processing unit 23 Contour detection unit 24 Center of gravity position detection Part 31 Mask memory part 32 Image synthesizing part 33 Distance calculating part 34 Distance pattern part 35 Shape judging part 36 Good / bad judgment part a Captured image signal c Contour detection signal d Center of gravity position signal u Shape judgment signal v Good / bad judgment signal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 青果物の上面を撮像し、この撮像した画
像を前記青果物の画像と背景の画像に分離し、分離した
青果物の画像から青果物の輪郭および重心位置を抽出
し、 この抽出された重心位置を中心として所定角度毎に位置
する前記輪郭の点の座標を求め、これら座標から各輪郭
の点と重心位置との距離を演算し、これら求めた距離に
基づいて青果物の形状を判定することを特徴とする青果
物形状判定方法。
1. An upper surface of a fruit or vegetable is imaged, the imaged image is separated into an image of the fruit and vegetable and an image of a background, and the contour and barycentric position of the fruit or vegetable are extracted from the separated image of the fruit or vegetable. Obtaining the coordinates of the points of the contour located at each predetermined angle centered on the position, calculating the distance between the point of each contour and the position of the center of gravity from these coordinates, and determining the shape of fruits and vegetables based on these obtained distances. A shape determination method for fruits and vegetables characterized by:
【請求項2】 請求項1記載の青果物形状判定方法であ
って、 所定角度毎の輪郭の点の位置をx軸、演算により求めた
距離をy軸に配置し、これら距離を順に接続して距離パ
ターンを形成し、この距離パターンにより青果物の形状
を判定することを特徴とする。
2. The fruit and vegetable shape determining method according to claim 1, wherein the position of the contour point at each predetermined angle is arranged on the x-axis, and the distance calculated is arranged on the y-axis, and these distances are connected in order. A feature is that a distance pattern is formed, and the shape of the fruit and vegetables is determined based on this distance pattern.
【請求項3】 請求項1または請求項2記載の青果物形
状判定方法であって、 演算により求めた距離の最大値と最小値が所定値以内に
含まれているとき、青果物の形状を円形と判定すること
を特徴とする。
3. The fruit and fruit shape determination method according to claim 1, wherein when the maximum value and the minimum value of the distance calculated by the calculation are within a predetermined value, the shape of the fruit and vegetables is a circle. It is characterized by judging.
JP7550696A 1996-03-29 1996-03-29 Fruit and vegetable shape determination method Pending JPH09264715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7550696A JPH09264715A (en) 1996-03-29 1996-03-29 Fruit and vegetable shape determination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7550696A JPH09264715A (en) 1996-03-29 1996-03-29 Fruit and vegetable shape determination method

Publications (1)

Publication Number Publication Date
JPH09264715A true JPH09264715A (en) 1997-10-07

Family

ID=13578204

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7550696A Pending JPH09264715A (en) 1996-03-29 1996-03-29 Fruit and vegetable shape determination method

Country Status (1)

Country Link
JP (1) JPH09264715A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006162393A (en) * 2004-12-06 2006-06-22 Mitsui Mining & Smelting Co Ltd Fruit and vegetable shape sorting apparatus and shape sorting method
JP2007240457A (en) * 2006-03-10 2007-09-20 Oshikiri:Kk Shape determination device and kneaded dough forming system
CN119785492A (en) * 2024-12-12 2025-04-08 杭州乐优客物联网技术有限公司 An IoT label scale with AI recognition module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006162393A (en) * 2004-12-06 2006-06-22 Mitsui Mining & Smelting Co Ltd Fruit and vegetable shape sorting apparatus and shape sorting method
JP2007240457A (en) * 2006-03-10 2007-09-20 Oshikiri:Kk Shape determination device and kneaded dough forming system
CN119785492A (en) * 2024-12-12 2025-04-08 杭州乐优客物联网技术有限公司 An IoT label scale with AI recognition module
CN119785492B (en) * 2024-12-12 2025-10-28 杭州乐优客物联网技术有限公司 Take AI identification module's thing networking label balance

Similar Documents

Publication Publication Date Title
CN109816644B (en) An automatic detection system for bearing defects based on multi-angle light source images
CA2151344C (en) Lens inspection system and method
US6246788B1 (en) System and method of optically inspecting manufactured devices
JP3051279B2 (en) Bump appearance inspection method and bump appearance inspection device
JP5351673B2 (en) Appearance inspection device, appearance inspection method
CN110288584A (en) Ceramic hot-dip aluminizing detection method of surface flaw and device based on machine vision
CN106651857B (en) A kind of printed circuit board patch defect detection method
CN109550712A (en) A kind of chemical fiber wire tailfiber open defect detection system and method
US20060291713A1 (en) Board inspecting apparatus, its parameter setting method and parameter setting apparatus
TWI669519B (en) Board defect filtering method and device thereof and computer-readabel recording medium
CN118688121B (en) Lens detection system and detection method
CN119489050B (en) Intelligent sorting control method and system for Chinese medicinal materials based on image recognition
CN116237266A (en) Flange size measuring method and device
JP2000163579A (en) Appearance inspection method and apparatus
JP2003123073A (en) Defect detection method
JPH09264715A (en) Fruit and vegetable shape determination method
JP4293653B2 (en) Appearance inspection method
KR20190119801A (en) Vehicle Headlight Alignment Calibration and Classification, Inspection of Vehicle Headlight Defects
JP3506161B2 (en) Agricultural and fishery product appearance inspection device
CN117347384A (en) Plastic barrel quality testing methods, devices, electronic equipment and storage media
JPH11352073A (en) Foreign matter inspection method and apparatus
JP3919207B2 (en) Appearance inspection device
JPH1010053A (en) Surface defect inspection equipment
JP3200953B2 (en) Inspection method of soldering condition of square chip
JP2710685B2 (en) Defect detection method by visual inspection