JP2949737B2 - Fruit detection method - Google Patents

Fruit detection method

Info

Publication number
JP2949737B2
JP2949737B2 JP1262621A JP26262189A JP2949737B2 JP 2949737 B2 JP2949737 B2 JP 2949737B2 JP 1262621 A JP1262621 A JP 1262621A JP 26262189 A JP26262189 A JP 26262189A JP 2949737 B2 JP2949737 B2 JP 2949737B2
Authority
JP
Japan
Prior art keywords
red
fruit
green
image
blue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1262621A
Other languages
Japanese (ja)
Other versions
JPH03123982A (en
Inventor
博 長井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Iseki and Co Ltd
Original Assignee
Iseki and 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 Iseki and Co Ltd filed Critical Iseki and Co Ltd
Priority to JP1262621A priority Critical patent/JP2949737B2/en
Publication of JPH03123982A publication Critical patent/JPH03123982A/en
Application granted granted Critical
Publication of JP2949737B2 publication Critical patent/JP2949737B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Investigating Or Analysing Materials By Optical Means (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 この発明は、果実等の検出方法に関する。Description: TECHNICAL FIELD The present invention relates to a method for detecting fruits and the like.

従来の技術、及び発明が解決しようとする課題 例えばリンゴの木の画像の場合、木になっているリン
ゴの実を取出すときには、リンゴの実と木の葉、土、空
等の背景に関して、濃度、ノイズ、及び対象物同志の関
係等が画像処理手順を導出するための判断材料となって
いる。
2. Description of the Related Art For example, in the case of an image of an apple tree, when taking out an apple tree which is a tree, the density, noise, and the like of the background of the apple tree and the leaves of the tree, soil, sky, etc. , And the relationship between the objects, etc., are factors for determining the image processing procedure.

この発明は、背景の中から果実等の映像を取出す場合
において、その検出精度の向上を図ることを目的とす
る。
SUMMARY OF THE INVENTION It is an object of the present invention to improve the detection accuracy when extracting an image of a fruit or the like from a background.

課題を解決するための手段 この発明は、カメラから入力される赤色系の果実等の
対象物の赤、緑、青信号成分のうち、緑、青信号の大き
さを比較し、その大きい方を赤信号から差し引くことに
よって果実とその背景色を分離する構成とすることを特
徴とする果実等の検出方法の構成とする。
Means for Solving the Problems The present invention compares the magnitudes of green and blue signals among red, green and blue signal components of an object such as a red fruit input from a camera, and determines the larger one as a red signal. And a method for detecting a fruit or the like, characterized in that the fruit and its background color are separated by subtraction from the fruit.

発明の作用、および効果 カメラによって前方の赤色系の果実等の映像を取込
み、入力される赤、緑、青信号成分のうち、赤以外の成
分、即ち、緑、青信号の大きさを比較し、その大きい方
を赤信号から差引くことによって果実等とその背景色を
分離するようにする。
Actions and Effects of the Invention A video of a red-based fruit or the like in front is captured by a camera, and among the input red, green, and blue signal components, components other than red, that is, the magnitudes of green and blue signals are compared, and the comparison is performed. By subtracting the larger one from the red light, fruits and the like are separated from the background color.

このように、赤信号から緑、青信号を差引いた結果、
赤色系の果実等の部分においては緑、青信号が極小であ
るので、赤色系の果実等の赤信号が強調される。これに
より、赤色系の果実等の検出精度の向上を図ることがで
きる。
In this way, the result of subtracting the green and blue signals from the red signal,
Since the green and blue signals are minimal in the portion of the red fruits, the red signals of the red fruits are emphasized. As a result, the detection accuracy of red fruits and the like can be improved.

実施例 なお、図例において、イメージセンサのカメラ1によ
って前方の果実等の対象物の映像を取込み、各画素の赤
R、緑G、青B信号が入力インタフェース2を介してイ
メージフレームメモリ3に格納される。これら赤、緑、
青信号をCPUに取込んで各画素の色ベクトル角度の演算
が行われ、これらの色ベクトルについて白色のベクトル
角度との比較が行われて、有効画素と無効画素とが判別
されるように構成されている。4はイメージモニタ、5
は出力インタフェースである。
Embodiment In the illustrated example, an image of an object such as a fruit in front is captured by a camera 1 of an image sensor, and red R, green G, and blue B signals of each pixel are stored in an image frame memory 3 via an input interface 2. Is stored. These red, green,
The CPU receives the blue signal, calculates the color vector angle of each pixel, compares these color vectors with the white vector angle, and determines valid pixels and invalid pixels. ing. 4 is an image monitor, 5
Is an output interface.

第2図、第3図はハウス内においてトマトの葉、茎、
その他の背景の中からトマトの実の赤色部分を検出する
検出例を示すもので、カメラ1によってトマトの映像を
取込み、このカメラ1から入力されてイメージフレーム
メモリ5に格納された各画素の赤、緑、青信号の色ベク
トルをCPUにおいて演算し、赤信号に対するこの色ベク
トル方向の角度θを算出する。白色のベクトル角度はα
=35.264度であるからθ≧αの各画素ベクトルを有効画
素として抽出し、その他は無効画素としてトマトの実と
背景を分離する。
Figures 2 and 3 show tomato leaves, stems,
This is an example of detection for detecting a red portion of a tomato fruit from other backgrounds. The image of the tomato is captured by the camera 1 and the red color of each pixel input from the camera 1 and stored in the image frame memory 5 is shown. , And the color vectors of the green and blue signals are calculated in the CPU, and the angle θ in the color vector direction with respect to the red signal is calculated. The white vector angle is α
Since 35.264 degrees, each pixel vector of θ ≧ α is extracted as an effective pixel, and the others are separated as an invalid pixel from the tomato fruit and the background.

第4図、第5図は、カメラ1を果実の方向へ向けたと
きの画像と、背景に向けたときの画像とを比較し、その
差をもとに果実等の対象物を検出する構成としている。
FIGS. 4 and 5 show a configuration in which an image when the camera 1 is turned in the direction of the fruit is compared with an image when the camera 1 is turned to the background, and an object such as a fruit is detected based on the difference. And

例えばトマトの検出例において、背景の画像の赤信号
を取込み、果実方向の画像の赤信号を取込む。これら両
画像の差を求め、この差分が差分≧αの部分を果実とみ
なす。
For example, in a tomato detection example, a red signal of a background image is captured, and a red signal of a fruit direction image is captured. The difference between these two images is obtained, and a part where the difference satisfies the difference ≧ α is regarded as a fruit.

カメラ1で取込んだ画像内から果実の映像部分と、そ
うでない部分を区分して、果実の映像部分のみを取出す
ことによって果実の検出精度の向上を図ることができ
る。
By separating the image portion of the fruit from the image captured by the camera 1 and the portion that is not, and extracting only the image portion of the fruit, it is possible to improve the detection accuracy of the fruit.

第6図、第7図は、カメラ1から入力される赤、緑、
青信号成分のうち、果実等の対象物の色以外の成分、例
えばトマトの場合には緑、青信号の大きさを比較し、そ
の大きい方を赤信号から差引くことによって果実とその
背景色を分離する構成としている。
FIG. 6 and FIG. 7 show red, green,
Of the green light components, components other than the color of the object such as fruits, for example, in the case of tomatoes, compare the size of the green and blue lights, and subtract the larger one from the red light to separate the fruit and its background color Configuration.

例えばトマトの検出において、イメージフレームメモ
リ3から赤、緑、青信号を取込み、赤信号から緑、青信
号のうち大きい方を差引く。この結果から果実の部分を
検出する。
For example, in detecting a tomato, the red, green and blue signals are fetched from the image frame memory 3 and the larger one of the green and blue signals is subtracted from the red signal. The fruit part is detected from this result.

自然光の中での果実検出において、自然光には赤、
緑、青信号がほぼ同等に含まれている。従って例えばト
マトの検出において、赤信号のみではトマトと背景の区
別ができない。
In fruit detection in natural light, natural light is red,
Green and blue signals are almost equally included. Therefore, for example, in the detection of tomato, it is not possible to distinguish between the tomato and the background only with the red signal.

赤信号から緑、青信号を差引いた結果、トマトの部分
においては緑、青信号が極小であるから、トマトの部分
のみ赤信号が強調される。このような処理によって、ト
マトの検出精度の向上を図ることができる。
As a result of subtracting the green and blue signals from the red signal, the green and blue signals are minimal in the tomato portion, so the red signal is emphasized only in the tomato portion. By such a process, the detection accuracy of tomato can be improved.

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

図は、この発明の実施例を示すもので、第1図は制御ブ
ロック図、第2図はフローチャート、第3図はその説明
座標図、第4図は他の検出方法のフローチャート、第5
図はその説明図、第6図は他の検出方法のフローチャー
ト、第7図はその説明図である。 図中、符号1はカメラ、2は入力インタフェース、3は
イメージフレームメモリ、4はイメージモニタ、5は出
力インタフェースを示す。
1 shows an embodiment of the present invention. FIG. 1 is a control block diagram, FIG. 2 is a flowchart, FIG. 3 is an explanatory coordinate diagram, FIG. 4 is a flowchart of another detection method, and FIG.
FIG. 6 is an explanatory diagram, FIG. 6 is a flowchart of another detection method, and FIG. 7 is an explanatory diagram thereof. In the figure, reference numeral 1 denotes a camera, 2 denotes an input interface, 3 denotes an image frame memory, 4 denotes an image monitor, and 5 denotes an output interface.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】カメラから入力される赤色系の果実等の対
象物の赤、緑、青信号成分のうち、緑、青信号の大きさ
を比較し、その大きい方を赤信号から差し引くことによ
って果実とその背景色を分離する構成とすることを特徴
とする果実等の検出方法。
1. A method for comparing the magnitude of green and blue signals among red, green and blue signal components of an object such as a red fruit input from a camera, and subtracting the larger one from the red signal to obtain a difference between the red and green signals. A method for detecting a fruit or the like, wherein the background color is separated.
JP1262621A 1989-10-06 1989-10-06 Fruit detection method Expired - Fee Related JP2949737B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1262621A JP2949737B2 (en) 1989-10-06 1989-10-06 Fruit detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1262621A JP2949737B2 (en) 1989-10-06 1989-10-06 Fruit detection method

Publications (2)

Publication Number Publication Date
JPH03123982A JPH03123982A (en) 1991-05-27
JP2949737B2 true JP2949737B2 (en) 1999-09-20

Family

ID=17378335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1262621A Expired - Fee Related JP2949737B2 (en) 1989-10-06 1989-10-06 Fruit detection method

Country Status (1)

Country Link
JP (1) JP2949737B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177445B (en) * 2013-03-13 2015-10-28 浙江大学 Based on the outdoor tomato recognition methods of fragmentation threshold Iamge Segmentation and spot identification
CN103336946B (en) * 2013-06-17 2016-05-04 浙江大学 A kind of cluster shape tomato recognition methods based on binocular stereo vision

Also Published As

Publication number Publication date
JPH03123982A (en) 1991-05-27

Similar Documents

Publication Publication Date Title
US9491440B2 (en) Depth-sensing camera system
JP3938257B2 (en) Method and apparatus for detecting a face-like area and observer tracking display
JPH0766446B2 (en) Method of extracting moving object image
EP0365037A3 (en) Method of and apparatus for processing image signal
JPH05233815A (en) Motion vector detector
JP3866957B2 (en) Image synthesizer
JPH0214748B2 (en)
JP2949737B2 (en) Fruit detection method
TWI638334B (en) Image processing method and electronic apparatus for foreground image extraction
JPS60128314A (en) Fruit discriminating device
JPH04184573A (en) Visual device, such as fruit collecting machine or the like
JPS62184583A (en) Image pickup type object extracting device
JP3338102B2 (en) Operator automatic selection filtering device
JP2949736B2 (en) Fruit detection method
JP7262412B2 (en) Image processing device and image processing program
JP4565738B2 (en) Image sensor
JPH04307357A (en) Apparatus for detecting bruise of fruit and vegetable
CN110555351B (en) Foreground image extraction method and electronic device
JPH0844844A (en) Object detector
JP2503613B2 (en) Abnormality monitoring device
JPS62220884A (en) Infrared image tracking device
JPH07325906A (en) Detecting and tracking device for moving body
JPS62194587A (en) Fruit recognizing device
JPS6129977A (en) Discriminating device of grade of salmon
JP4369179B2 (en) Image processing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees