JP2949736B2 - Fruit detection method - Google Patents

Fruit detection method

Info

Publication number
JP2949736B2
JP2949736B2 JP1262620A JP26262089A JP2949736B2 JP 2949736 B2 JP2949736 B2 JP 2949736B2 JP 1262620 A JP1262620 A JP 1262620A JP 26262089 A JP26262089 A JP 26262089A JP 2949736 B2 JP2949736 B2 JP 2949736B2
Authority
JP
Japan
Prior art keywords
fruit
signal value
image
red
value
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
JP1262620A
Other languages
Japanese (ja)
Other versions
JPH03123979A (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 JP1262620A priority Critical patent/JP2949736B2/en
Publication of JPH03123979A publication Critical patent/JPH03123979A/en
Application granted granted Critical
Publication of JP2949736B2 publication Critical patent/JP2949736B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/40Tree coding, e.g. quadtree, octree

Description

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

(従来の技術、及び発明が解決しようとする課題) 例えばリンゴの木の画像の中からリンゴの実を取出す
ときには、リンゴの実と木の葉、空等の背景に関して、
濃度(明るさ)、ノイズ及び対象物同志の関係等が画像
処理手順を導出するための判断材料となっている。
(Problems to be Solved by the Related Art and the Invention) For example, when taking out an apple fruit from an image of an apple tree, the background of the apple fruit, the leaves of the tree, the sky, etc.
The relationship between the density (brightness), noise, and the objects, etc., is a determining factor for deriving an image processing procedure.

この発明は、背景の中から果実等の対象物を分離する
場合において、その検出精度の向上を図ることを目的と
する。
An object of the present invention is to improve the detection accuracy when an object such as a fruit is separated from a background.

(課題を解決するための手段) この発明は、カメラで取込んだ赤色系対象物の果実等
の赤信号濃度ヒストグラムにおいて、画像を2値化処理
するにあたり前記赤信号濃度ヒストグラムの平均信号値
を算出し、赤信号値のゼロ信号値から前記平均信号値ま
での間の谷の部分の信号値を算出し、前記谷の部分の信
号値と前記平均信号値とを比較して小さい方の信号値を
用いて2値化処理する構成としたことを特徴とする果実
等の検出方法の構成とする。
(Means for Solving the Problems) According to the present invention, in a red signal density histogram of a red object fruit or the like captured by a camera, an average signal value of the red signal density histogram is used in binarizing an image. Calculate and calculate the signal value of the valley portion between the zero signal value of the red signal value and the average signal value, and compare the signal value of the valley portion with the average signal value to obtain a smaller signal. A configuration of a method for detecting a fruit or the like characterized by performing a binarization process using a value.

(発明の作用、及び効果) カメラによって前方の赤色系の果実等の映像を取込
み、赤信号の画像濃度ヒストグラムを作成する。このヒ
ストグラムを2値化処理するしきい値として、赤信号濃
度ヒストグラムの平均信号値を算出し、赤信号値のゼロ
信号値から前記平均信号値までの間の谷の部分の信号値
を算出し、前記谷の部分の信号値と前記平均信号値とを
比較して小さい方の信号値を用いて2値化処理するよう
にする。
(Operation and Effect of the Invention) An image of a red fruit or the like in front is captured by a camera, and an image density histogram of a red signal is created. The average signal value of the red signal density histogram is calculated using the histogram as a threshold value for binarization processing, and the signal value of the valley between the zero signal value of the red signal value and the average signal value is calculated. The signal value of the valley portion is compared with the average signal value, and the smaller signal value is used to perform the binarization processing.

前記ヒストグラムの谷の部分は、赤色系の果実等の輪
郭部分のぼけている部分であるので、前述の方法によっ
て赤色系果実等の輪郭位置の検出精度の向上が図れ、正
確に背景と果実等を分離することができて、果実の面
積、幅等を算出することができる。
Since the valley portion of the histogram is a blurred portion of the outline of a red fruit or the like, the detection accuracy of the contour position of the red fruit or the like can be improved by the above-described method, and the background and the fruit or the like can be accurately detected. Can be separated, and the area, width, and the like of the fruit can be calculated.

(実施例) なお、図例において、イメージセンサのカメラ1によ
って前方の果実等の対象物の画像を取込み、各画素の赤
R、緑G、青B信号が入力インタフェース2を介してイ
メージフレームメモリ3に格納される。例えばトマトの
実の検出例においては、このイメージフレームメモリ3
からR信号のみをCPUに取込んで、このCPUにおいて画像
濃度ヒストグラムが算出される。このヒストグラムにお
いて最高濃度値(Hmax)と最低濃度値(Hmin)との差が
求められ、この差を変更調節する係数αを0を除いた1
迄の間可変として2値化基準濃度値(y)=α(Hmax−
Hmin)によって画像を2値化し、果実を検出する構成と
している。これらの結果は出力インタフェースを介して
イメージモニタ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 input to an image frame memory via an input interface 2. 3 is stored. For example, in an example of tomato fruit detection, this image frame memory 3
And only the R signal is taken into the CPU, and the CPU calculates the image density histogram. In this histogram, the difference between the highest density value (Hmax) and the lowest density value (Hmin) is obtained, and the coefficient α for changing and adjusting this difference is 1 except for 0.
The binarized reference density value (y) = α (Hmax−
Hmin) to binarize the image and detect the fruit. These results are output to the image monitor 5 via the output interface.

このように、画像2値化処理する2値化基準濃度値を
変更可能とする係数αを設けることによって、より明確
に果実の映像部分とそうでない部分を区分し、果実の映
像部分のみを取出すことができるから、果実の検出精度
の向上を図りうる。
As described above, by providing the coefficient α that enables the binarization reference density value to be changed in the image binarization process, the image portion of the fruit is more clearly distinguished from the portion that is not, and only the image portion of the fruit is extracted. Therefore, the accuracy of fruit detection can be improved.

第4図、第5図において、背景と果実とを分離するし
きい値として、平均信号値とこの信号ヒストグラムの谷
の部分の信号値との両者のうち小さい方の信号値を用い
て2値化処理する構成としている。
In FIGS. 4 and 5, as a threshold value for separating the background and the fruit, a binary value is used by using the smaller one of the average signal value and the signal value of the valley portion of the signal histogram. Configuration.

例えばトマトの実を検出する場合には、カメラ1によ
って赤、緑、青信号を入力インタフェース2を介してイ
メージフレームメモリ3に記憶させる。このイメージフ
レームメモリ3から赤信号のみをCPUに取込んで平均信
号値aを算出する。又、各画素の赤信号のヒストグラム
を作成する。これら赤信号値の0から平均信号値a迄の
範囲において、ヒストグラムの谷をみつける。この谷に
対応する赤信号値bをしきい値として赤信号を2値化処
理する。ヒストグラムの谷がないときには、平均信号値
aをしきい値として赤信号を2値化処理する。
For example, when detecting tomato fruits, the camera 1 stores red, green, and blue signals in the image frame memory 3 via the input interface 2. Only the red signal is taken into the CPU from the image frame memory 3 to calculate an average signal value a. Also, a histogram of the red signal of each pixel is created. A valley of the histogram is found in the range from the red signal value 0 to the average signal value a. The red signal is binarized using the red signal value b corresponding to the valley as a threshold. When there is no valley in the histogram, the red signal is binarized using the average signal value a as a threshold.

このヒストグラムの谷の部分はトマトの実の輪郭部分
のぼけている部分であるから、上記の方法によって果実
の輪郭位置の検出精度の向上が図れ、正確に果実の面
積、幅等を算出することができる。
Since the valley portion of this histogram is a blurred portion of the outline portion of the tomato, the detection accuracy of the outline position of the fruit can be improved by the above method, and the area, width, etc. of the fruit can be accurately calculated. Can be.

第6図、第7図において、背景と果実を分離した後の
各画素の信号値が規定以下及び以上のものを除去する構
成としている。
6 and 7, the configuration is such that the signal value of each pixel after the background and the fruit are separated is less than or equal to or less than a specified value.

例えばトマトの検出例において、カメラ1から赤、
緑、青信号を入力し、CPUにおいて赤信号のヒストグラ
ムを作成する。この各画素信号値のヒストグラムにおい
て、信号の1/8範囲内のピーク値を求める。このヒスト
グラムの低い側のピーク値以下の信号を除去することに
よってカメラ画像内の非常に暗い部分、例えば陰等の影
響を除くことができる。又、高い側のピーク値以上の信
号を除去することによってカメラ画像内の非常に明るい
部分、例えば背景の強い光等の影響を除くことができる
から、果実の検出処理において、異常画素の影響を防止
することができる。従って果実の検出精度の向上を図る
ことができる。
For example, in the detection example of tomato, red,
Input green and blue signals and create a histogram of red signals in CPU. In the histogram of each pixel signal value, a peak value within a 1/8 range of the signal is obtained. By removing signals below the peak value on the lower side of the histogram, it is possible to remove the influence of a very dark portion in the camera image, for example, a shadow. In addition, by removing signals that are higher than the peak value on the higher side, it is possible to eliminate the effects of very bright parts in the camera image, for example, strong light in the background. Can be prevented. Therefore, the accuracy of fruit detection can be improved.

第8図、第9図において、画像濃度の濃度別の面積を
求め、この面積と前もって入力されている果実別の面積
データとを比較し、その結果にもとずいて果実を検出す
る構成としている。
8 and 9, an area for each density of image density is obtained, this area is compared with the previously input area data for each fruit, and a fruit is detected based on the result. I have.

例えばトマトの実の検出において、カメラ1によって
前方のトマトの実の映像を取込み、各画素の赤、緑、青
信号を入力インタフェース2を介してイメージフレーム
メモリ3に記憶させる。このイメージフレームメモリ3
から赤信号をCPUに取込み、この濃度値と背景の濃度値
との差分を取出して輪郭を検出し、面積を求める。この
面積を前もってメモリに格納してある果実別の面積デー
タを選択スイッチで指定して比較し、目的のトマトの実
を検出する。
For example, in detecting a tomato fruit, the camera 1 captures an image of the forward tomato fruit, and stores the red, green, and blue signals of each pixel in the image frame memory 3 via the input interface 2. This image frame memory 3
From the CPU, the difference between this density value and the density value of the background is taken out, the contour is detected, and the area is obtained. The area data for each fruit stored in the memory in advance is designated by a selection switch and compared to detect a target tomato fruit.

このようにしてカメラ1で取込んだ画像内から、果実
の映像部分とそうでない部分を区分して、果実の映像部
分のみを取出すことにより、果実の検出精度の向上を図
ることができる。
In this way, the image captured by the camera 1 is divided into the image portion of the fruit and the portion other than the image portion, and only the image portion of the fruit is extracted, so that the detection accuracy of the fruit can be improved.

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

図は、この発明の実施例を示すもので、第1図は制御ブ
ロック図、第2図はフローチャート、第3図はその説明
図、第4図は他の検出方法のフローチャート、第5図は
その説明図、第6図は他の検出方法のフローチャート、
第7図はその説明図、第8図は他の発明のフローチャー
ト、第9図はその説明図である。 図中、符号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 diagram, FIG. 4 is a flowchart of another detection method, and FIG. FIG. 6 is a flowchart of another detection method,
FIG. 7 is an explanatory diagram, FIG. 8 is a flowchart of another invention, and FIG. 9 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 output interface, 5
Indicates an image monitor.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI H04N 9/64 G06F 15/62 380 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 Identification code FI H04N 9/64 G06F 15/62 380

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】カメラで取込んだ赤色系対象物の果実等の
赤信号濃度ヒストグラムにおいて、画像を2値化処理す
るにあたり前記赤信号濃度ヒストグラムの平均信号値を
算出し、赤信号値のゼロ信号値から前記平均信号値まで
の間の谷の部分の信号値を算出し、前記谷の部分の信号
値と前記平均信号値とを比較して小さい方の信号値を用
いて2値化処理する構成としたことを特徴とする果実等
の検出方法。
In a red signal density histogram of fruits of a red object captured by a camera, an average signal value of the red signal density histogram is calculated in binarizing an image, and a red signal value of zero is calculated. A signal value of a valley portion between the signal value and the average signal value is calculated, and the signal value of the valley portion is compared with the average signal value, and a binarization process is performed using a smaller signal value. A method for detecting fruits and the like, wherein
JP1262620A 1989-10-06 1989-10-06 Fruit detection method Expired - Fee Related JP2949736B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPH03123979A JPH03123979A (en) 1991-05-27
JP2949736B2 true JP2949736B2 (en) 1999-09-20

Family

ID=17378321

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP2949736B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5386753B2 (en) * 2010-12-02 2014-01-15 マクタアメニティ株式会社 Crop judgment system

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2022062812A1 (en) Screen defect detection method, apparatus, and electronic device
US20200250840A1 (en) Shadow detection method and system for surveillance video image, and shadow removing method
CN114897762A (en) Automatic positioning method and device for coal mining machine on coal mine working face
JP2949736B2 (en) Fruit detection method
JPH05284501A (en) Intrusion monitor picture device
JP2003162723A (en) Image processing program
CN114882401A (en) Flame detection method and system based on RGB-HSI model and flame initial growth characteristics
JPH04184573A (en) Visual device, such as fruit collecting machine or the like
JP3311880B2 (en) Automatic detection device for fruits and vegetables injury
JP3338102B2 (en) Operator automatic selection filtering device
JPH09102032A (en) Detection of object from picture and object detection device using the same
KR102177638B1 (en) Automatic teaching apparatus and method of machine vision inspection apparatus
JP2949737B2 (en) Fruit detection method
JPH067171B2 (en) Moving object detection method
JPH0514898A (en) Image monitor device
JPH09163853A (en) Image processing device for fruit
JPH07280746A (en) Apparatus for extracting flaw from metal plate surface
JPS63115279A (en) Area extracting system
JP3190173B2 (en) Semiconductor device appearance inspection method and appearance inspection device
KR100209194B1 (en) Target tracking apparatus and method of video phone
JP3092871B2 (en) Edge detection method
JPS62194587A (en) Fruit recognizing device
CN116359227A (en) Method and system for detecting defects of shelf fruits based on image recognition
JP3033261B2 (en) Image inspection equipment
JPH04307357A (en) Apparatus for detecting bruise of fruit and vegetable

Legal Events

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