JPH04147042A - Device for checking class of vegetable and fruit - Google Patents

Device for checking class of vegetable and fruit

Info

Publication number
JPH04147042A
JPH04147042A JP27074590A JP27074590A JPH04147042A JP H04147042 A JPH04147042 A JP H04147042A JP 27074590 A JP27074590 A JP 27074590A JP 27074590 A JP27074590 A JP 27074590A JP H04147042 A JPH04147042 A JP H04147042A
Authority
JP
Japan
Prior art keywords
color
image
area
total area
vegetables
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
JP27074590A
Other languages
Japanese (ja)
Inventor
Harumitsu Toki
治光 十亀
Toshio Okamura
岡村 寿夫
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
Iseki Agricultural Machinery Mfg Co Ltd
Original Assignee
Iseki and Co Ltd
Iseki Agricultural Machinery Mfg 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, Iseki Agricultural Machinery Mfg Co Ltd filed Critical Iseki and Co Ltd
Priority to JP27074590A priority Critical patent/JPH04147042A/en
Publication of JPH04147042A publication Critical patent/JPH04147042A/en
Pending legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

PURPOSE:To achieve a highly accurate class checking by extracting an image with a same color which belongs to two preset extraction ranges from a shot color image and then checking class of vegetables and fruits from an area of the extracted image. CONSTITUTION:A color image of an apple 5 which is shot by a color camera 2 is input to a computer for image processing 3. In the computer 3, extraction color ranges (a) and (b) are set to enable a specific color to be extracted from the input color image. Then, comparison reference areas A and B under judgment conditions used for determining class are set. Then, an image with a same color as that belonging to a range a is extracted from an input color image and a total product image area x is obtained. In the similar manner, a total area y of an image which is the same color belonging to a range b is obtained. Then, the total area x and A and total area y and B are compared. When the total area x is smaller than A and the total area y is smaller than B, the class of the apple 5 is determined to be 'excellent'. It is determined to be 'good' in the other cases.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、リンゴ、ナシ、トマト、柿、みかんなどの青
果物の等級を検定する装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an apparatus for determining the grade of fruits and vegetables such as apples, pears, tomatoes, persimmons, and mandarin oranges.

(従来の技術) 従来、この種の装置の一例としては、青果物の上方に設
置したカラーカメラで青果物を撮影し、その撮影によっ
て得られるカラー画像を基準の色と比較し、基準の色に
一致するカラー画像の総面積を求め、その求めた総面積
の大小により青果物の等級検定をするものか知られてい
る。
(Prior Art) Conventionally, as an example of this type of device, a color camera installed above the fruit and vegetables photographs the fruit and vegetables, and the color image obtained by the photographing is compared with a reference color to match the color of the reference. It is known that the total area of a color image is determined, and fruits and vegetables are graded based on the size of the determined total area.

(発明か解決しようとする課題) ところが、従来装置では、青果物がリンゴの玉杯のよう
に地色と着色部との色が近似し、着色部に色の濃淡があ
りその濃淡が等級検定を左右するような場合には、その
等級検定の精度が低いという問題が生じていた。
(Problem to be solved by the invention) However, with the conventional apparatus, the ground color and the colored part of the fruit and vegetables are similar to each other, like the cup of an apple, and the colored part has a shading of color, and the shading affects the grading test. In such cases, a problem arises in that the accuracy of the grade test is low.

そこで、本発明は、以上の点に鑑み、上記の問題を解消
することを目的とする。
Therefore, in view of the above points, the present invention aims to solve the above problems.

(課題を解決するための手段) かかる目的を達成するために、本発明は以下のように構
成した。
(Means for Solving the Problems) In order to achieve the above object, the present invention was constructed as follows.

すなわち、本発明は、青果物を照射する光源と、前記青
果物をカラー撮影する撮像手段と、その撮影したカラー
画像からあらかじめ設定した2つの抽出範囲に属する色
と同じ色の画像をそれぞれ抽出する抽出手段と、その抽
出した各画像の面積をそれぞれ求める画像面積算出手段
と、その算出した各画像の面積から前記青果物の等級検
定を行う等級検定手段と、を備えてなる。
That is, the present invention provides a light source for illuminating fruits and vegetables, an imaging means for photographing the fruits and vegetables in color, and an extraction means for extracting images of the same color as those belonging to two extraction ranges set in advance from the photographed color images. , an image area calculating means for calculating the area of each extracted image, and a grading testing means for testing the grading of the fruits and vegetables based on the calculated area of each image.

(作用) このように構成する本発明では、抽出手段は、撮像手段
で撮影したカラー画像からあらかじめ設定した2つの抽
出範囲に属する色と同じ色の画像をそれぞれ抽出する。
(Function) In the present invention configured as described above, the extraction means extracts images of the same color as those belonging to two extraction ranges set in advance from the color images photographed by the imaging means.

画像面積算出手段は、その抽出した各画像の面積をそれ
ぞれ求める。そして、等級検定手段は、その算出した各
画像の面積から青果物の等級検定を行う。
The image area calculating means calculates the area of each of the extracted images. Then, the grade verification means performs a grade verification of the fruits and vegetables based on the calculated area of each image.

従って、本発明では、青果物がリンゴの玉杯のように地
色(無着色部)と着色部との色が近似し、着色部に色の
濃淡がありその濃淡が等級検定を左右するような場合に
も、その色の濃淡を考慮した等級検定ができ、等級検定
の精度が向上する。
Therefore, in the present invention, when a fruit or vegetable has a ground color (uncolored part) and a colored part similar to each other, such as an apple cup, and the colored part has a shade of color, the shade affects the grade test. It is also possible to perform a grade test that takes into account the shade of the color, improving the accuracy of the grade test.

(実施例) 以下、図面番参照して本発明の実施例について説明する
(Embodiments) Hereinafter, embodiments of the present invention will be described with reference to drawing numbers.

第1図において、1は青果物5の左右の上方に配置し、
その青果物5を照射する光源である。青果物5の上方に
は、青果物5をカラー撮影する撮像手段としてカラーテ
レビカメラやCODカメラなどのカラーカメラ2を配置
する。
In FIG. 1, 1 is placed above the left and right of fruits and vegetables 5,
It is a light source that irradiates the fruits and vegetables 5. A color camera 2 such as a color television camera or a COD camera is arranged above the fruits and vegetables 5 as an imaging means for color photographing the fruits and vegetables 5.

カラーカメラ2は、画像処理用コンピュータ3の入力側
に接続する。画像処理用コンピュータ3は、後述のよう
にカラーカメラ2が撮像した青果物5の画像を処理する
The color camera 2 is connected to the input side of the image processing computer 3. The image processing computer 3 processes images of fruits and vegetables 5 captured by the color camera 2 as described later.

画像処理用コンピュータ3の出力側には、表示装置やプ
リンタなどからなる画像出力装置4を接続する。
An image output device 4 consisting of a display device, a printer, etc. is connected to the output side of the image processing computer 3.

次に、このように構成する実施例の画像処理例を、青果
物5がリンゴの玉杯の場合について第2図を参照して説
明する。
Next, an example of image processing in the embodiment configured as described above will be described with reference to FIG. 2 for the case where the fruit or vegetable 5 is a cup of apples.

まず、カラーカメラ2で撮影したリンゴのカラー画像を
入力する(ステップSL)。
First, a color image of an apple photographed by the color camera 2 is input (step SL).

そして、その人力したカラー画像から特定の色の抽出を
行うために、抽出すべき色の範囲a、 bをそれぞれ設
定する(ステップS2)。この設定方法としては、f、
fビ表色系を使用すると、第3図および第4図で示すよ
うに座標a’、b上で、たとえば抽出色範囲aを(1)
式、抽出色範囲すを(2)式のようにそれぞれ設定する
Then, in order to extract a specific color from the manually created color image, the ranges a and b of the colors to be extracted are respectively set (step S2). As for this setting method, f,
When using the f-bi color system, for example, the extraction color range a is (1) on the coordinates a' and b as shown in Figures 3 and 4.
The equation and extraction color range are set as shown in equation (2).

0≦、f<5   (1) 5≦♂   (2) ここで、抽出色範囲をゴのみについて設定しにおよびげ
については設定しないが、実用上これで差支えない。
0≦, f<5 (1) 5≦♂ (2) Here, the extraction color range is set only for gore and not for ridges, but this is acceptable in practice.

次に、後述のように等級判別する際に使用する判別条件
にかかる比較基準面積ASBをそれぞれ設定する(ステ
ップS3)。
Next, as will be described later, comparison standard areas ASB related to the discrimination conditions used in grade discrimination are respectively set (step S3).

次に、入力カラー画像から設定抽出色範囲a内に属する
色と同じ色の画像を抽出してその抽出した画像の総面積
Xを求め、同様に入力カラー画像から設定抽出色範囲す
内に属する色と同じ色の画像を抽出してその抽出した画
像の総面積yを求める(ステップS4.S5)。
Next, from the input color image, extract an image with the same color as the color that belongs to the set extraction color range a, calculate the total area X of the extracted image, and similarly from the input color image, An image having the same color as the color is extracted and the total area y of the extracted image is determined (steps S4 and S5).

そして、このように求めた総面積XをステップS3で設
定した比較基準面積Aと比較し、同様に総面積yを比較
基準面積Bと比較する(ステップS6.S7)。
Then, the total area X obtained in this way is compared with the comparison reference area A set in step S3, and the total area y is similarly compared with the comparison reference area B (steps S6 and S7).

その比較の結果、総面積Xが比較基準面積Aよりも小さ
く、しかも総面積yが比較基準面積Bよりも小さいとき
にはそのリンゴの等級を「特大」とし、それ以外の場合
にはその等級を「秀」とする。
As a result of the comparison, if the total area X is smaller than the comparison standard area A and the total area y is smaller than the comparison standard area B, the grade of the apple is set as "extra large", and in other cases, the grade is set as " Hide”.

いま、入力カラー画像の検出箇所を10箇所選定し、そ
の各部における赤部と地色(縁部)の各色の値を3×3
画素の合計9画素の平均色で座標d、ビ上にプロットす
ると第3図および第4図で示すようになる。
Now, select 10 detection points in the input color image, and calculate the value of each color of the red part and ground color (edge) in each part by 3 × 3.
When the average color of a total of 9 pixels is plotted on the coordinates d and vi, it becomes as shown in FIGS. 3 and 4.

第3図はリンゴの玉杯の等級が「特大」の場合であり、
検出値がゴ=0〜5の狭い範囲に赤部が分布し、第4図
はリンゴの玉杯の等級が「秀」の場合であり、検出値が
ゴ=0〜15の広い範囲に赤部が分布していることがわ
かる。
Figure 3 shows the case where the grade of the apple cup is "extra large",
The red part is distributed in a narrow range where the detected value is from 0 to 5. Figure 4 shows the case where the grade of the apple cup is "excellent", and the red part is distributed in a wide range where the detected value is from 0 to 15. It can be seen that there is a distribution of

従って、リンゴの玉杯の等級判別を行う場合には、上述
したように抽出すべき色の範囲a、bを座標d、ビ上で
、(1)式および(2)式のようにそれぞれ設定し、上
述の各手順で画像処理すれば、高精度の等級検定が可能
となる。
Therefore, when determining the grade of an apple cup, the color ranges a and b to be extracted are set on the coordinates d and bi as shown in equations (1) and (2), respectively, as described above. If image processing is performed using each of the steps described above, highly accurate grade verification becomes possible.

(発明の効果) 以上のように本発明では、撮像手段で撮影したカラー画
像からあらかじめ設定した2つの抽出範囲に属する色と
同じ色の画像をそれぞれ抽出し、その抽出した各画像の
面積をそれぞれ求め、その求めた各画像の面積から青果
物の等級検定を行うようにしたので、青果物がリンゴの
玉杯のように地色(無着色部)と着色部との色が近似し
、着色部に色の濃淡がありその濃淡が等級検定を左右す
るような場合にも、その色の濃淡を考慮した等級検定が
でき、等級検定の精度が向上する。
(Effects of the Invention) As described above, in the present invention, images of the same color as those belonging to two extraction ranges set in advance are extracted from a color image photographed by an imaging means, and the area of each extracted image is calculated. Since the fruit and vegetables are graded based on the area of each image, the ground color (uncolored part) and the colored part are similar, and the color of the colored part is similar to that of a fruit or vegetable, like a jade cup of an apple. Even in cases where there is a shading of color and the shading affects the grade test, the grading test can be performed taking into account the shading of the color, improving the accuracy of the grade test.

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

第1図は本発明実施例の全体構成を示す図、第2図は本
発明実施例の画像処理例を示すフローチャート、第3図
および第4図はそれぞれリンゴの各部の色検出値を座標
ざ、ビ上にプロットした図である。 1は光源、 2はカラ カメラ、 3は画像処理用 コンピュ タである。
Fig. 1 is a diagram showing the overall configuration of an embodiment of the present invention, Fig. 2 is a flowchart showing an example of image processing in the embodiment of the present invention, and Figs. , is a diagram plotted on the . 1 is a light source, 2 is a color camera, and 3 is an image processing computer.

Claims (1)

【特許請求の範囲】 青果物を照射する光源と、 前記青果物をカラー撮影する撮像手段と、 その撮影したカラー画像からあらかじめ設定した2つの
抽出範囲に属する色と同じ色の画像をそれぞれ抽出する
抽出手段と、 その抽出した各画像の面積をそれぞれ求める画像面積算
出手段と、 その算出した各画像の面積から前記青果物の等級検定を
行う等級検定手段と、 を備えてなる青果物の等級検定装置。
[Scope of Claims] A light source that illuminates fruits and vegetables, an imaging device that photographs the fruits and vegetables in color, and an extraction device that extracts images of the same color as those belonging to two preset extraction ranges from the photographed color images. A fruit and vegetable grading device comprising: an image area calculating means for calculating the area of each extracted image; and a grading testing device for performing a grading test of the fruits and vegetables based on the calculated area of each image.
JP27074590A 1990-10-09 1990-10-09 Device for checking class of vegetable and fruit Pending JPH04147042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27074590A JPH04147042A (en) 1990-10-09 1990-10-09 Device for checking class of vegetable and fruit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27074590A JPH04147042A (en) 1990-10-09 1990-10-09 Device for checking class of vegetable and fruit

Publications (1)

Publication Number Publication Date
JPH04147042A true JPH04147042A (en) 1992-05-20

Family

ID=17490388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27074590A Pending JPH04147042A (en) 1990-10-09 1990-10-09 Device for checking class of vegetable and fruit

Country Status (1)

Country Link
JP (1) JPH04147042A (en)

Similar Documents

Publication Publication Date Title
CN105913419B (en) TFT-LCD mura defect inspection methods based on ICA study and Multichannel fusion
US20200250840A1 (en) Shadow detection method and system for surveillance video image, and shadow removing method
Mendoza et al. A new method for edge detection in image processing using interval type-2 fuzzy logic
EP3196758B1 (en) Image classification method and image classification apparatus
US4646252A (en) Color film inspection method
US9396411B2 (en) Method and system for generating intrinsic images using a single reflectance technique
US20110150358A1 (en) Method and system for factoring an illumination image
Li et al. Identifying photorealistic computer graphics using second-order difference statistics
CN106951863A (en) A kind of substation equipment infrared image change detecting method based on random forest
CN110119675B (en) Product identification method and device
US9754155B2 (en) Method and system for generating intrinsic images using a single reflectance technique
US6675120B2 (en) Color optical inspection system
WO2007004864A1 (en) Method and apparatus for visual object recognition
Omid et al. Implementation of an efficient image processing algorithm for grading raisins
Hu et al. Jpeg ringing artifact visibility evaluation
JP2005283197A (en) Detecting method and system for streak defect of screen
JPH04147042A (en) Device for checking class of vegetable and fruit
KR20160096260A (en) Apparatus for detecting defect bean
JPH04364449A (en) Fruit defect detecting apparatus
JPH04147002A (en) Inspecting apparatus of surface of fruit and vegetable
JPH08166380A (en) Automatic bruise detector for vegitable and fruit
Vong et al. Comparison of image data obtained with different commercial cameras for use in visible spectroscopy
JP3097153B2 (en) Grade testing equipment for fruits and vegetables
KR101067516B1 (en) Fast shadow removal Method using Normalized Cross CorrelationNCC and Integral Image
JPH04248678A (en) Color variation evaluating device for fruit and vegetables