JPH04238252A - Quality checking device for vegetable and fruit - Google Patents

Quality checking device for vegetable and fruit

Info

Publication number
JPH04238252A
JPH04238252A JP3020463A JP2046391A JPH04238252A JP H04238252 A JPH04238252 A JP H04238252A JP 3020463 A JP3020463 A JP 3020463A JP 2046391 A JP2046391 A JP 2046391A JP H04238252 A JPH04238252 A JP H04238252A
Authority
JP
Japan
Prior art keywords
image
color
fruits
vegetables
color 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.)
Withdrawn
Application number
JP3020463A
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 JP3020463A priority Critical patent/JPH04238252A/en
Publication of JPH04238252A publication Critical patent/JPH04238252A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Spectrometry And Color Measurement (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

PURPOSE:To correctly grasp the colored state and check a vegetable or a fruit with high precision regardless of its shape or colored state by comparing the color value of each unit picture element of a photographed color image with the reference color value of the corresponding picture element. CONSTITUTION:A vegetable or a fruit 2 radiated by a light source 1 is photographed by a color camera 3, and an image processing computer 4 processes the image and outputs it to an image output device 5. The reference color value of each unit picture element of the standard color distribution pattern corresponding to the vegetable or the fruit 2 is stored in an image memory 6 in advance. The computer 4 compares the color value of each unit picture element of the photographed color image with the corresponding reference color value and judges the quality of the vegetable or the fruit 2 based on the result. The colored state can be correctly grasped, and the quality can be judged with high precision even if the shape and colored state of the vegetable or the fruit 2 are complex.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、リンゴ、ナシ、トマト
、柿、みかんなどの青果物の品質を検定する青果物の品
質検定装置の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in a fruit and vegetable quality testing apparatus for testing the quality of fruits and vegetables such as apples, pears, tomatoes, persimmons, and mandarin oranges.

【0002】0002

【従来の技術】従来、この種の装置の一例としては、カ
ラーカメラで青果物を撮影し、その撮影によって得られ
るカラー画像に基づいて形状や着色状態を知り、青果物
の品質検定を行うものが知られている。
[Prior Art] Conventionally, as an example of this type of apparatus, there has been a device that photographs fruits and vegetables with a color camera, determines the shape and coloring state of the fruits and vegetables based on the color image obtained by the photographing, and tests the quality of the fruits and vegetables. It is being

【0003】0003

【発明が解決しようとする課題】ところが、青果物は一
般に形状や着色状態が複雑なため、従来の装置では、青
果物の着色状態などを正確に把握できず、その結果、高
精度の品質検定ができないという欠点があった。
[Problem to be Solved by the Invention] However, since fruits and vegetables generally have complex shapes and coloring, conventional devices cannot accurately determine the coloring of fruits and vegetables, and as a result, highly accurate quality inspection cannot be performed. There was a drawback.

【0004】そこで、本発明は、青果物の品質検定を高
精度で行うことができる装置を提供することを目的とす
る。
[0004] Accordingly, an object of the present invention is to provide an apparatus that can perform quality inspection of fruits and vegetables with high precision.

【0005】[0005]

【課題を解決するための手段】かかる目的を達成するた
めに本発明は、青果物をカラーで撮影する撮像手段と、
その撮影する青果物に対応する標準色分布パターンの各
単位画素の基準色値をあらかじめ記憶する画像記憶手段
と、前記撮像手段で撮影したカラー画像の各単位画素の
色値を前記画像記憶手段に記憶する対応各単位画素の基
準色値と比較する比較手段と、その比較結果に応じて青
果物の品質を判定する品質判定手段と、を備えてなる。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides an imaging means for photographing fruits and vegetables in color;
an image storage means that stores in advance a reference color value of each unit pixel of a standard color distribution pattern corresponding to the fruits and vegetables to be photographed; and a color value of each unit pixel of the color image photographed by the imaging means is stored in the image storage means. and a quality determining means for determining the quality of fruits and vegetables according to the comparison results.

【0006】[0006]

【作用】画像記憶手段には、撮像手段で撮影する青果物
に対応する標準色分布パターンの各単位画素の基準色値
をあらかじめ記憶しておく。判別手段は、撮像手段で撮
影したカラー画像の各単位画素の色値を、画像記憶手段
に記憶してある対応単位画素の基準色値と比較する。品
質判定手段は、その比較結果に応じて青果物の品質を判
定する。従って、本発明では、青果物の形状や着色状態
が複雑であるような場合であっても、着色状態を正確に
把握でき、もって青果物の品質検定を高精度で行うこと
ができる。
[Operation] The image storage means stores in advance the reference color value of each unit pixel of the standard color distribution pattern corresponding to fruits and vegetables photographed by the imaging means. The determining means compares the color value of each unit pixel of the color image photographed by the imaging means with the reference color value of the corresponding unit pixel stored in the image storage means. The quality determining means determines the quality of the fruits and vegetables according to the comparison results. Therefore, in the present invention, even if the shape and coloring state of fruits and vegetables are complex, the coloring state can be accurately grasped, and the quality of the fruits and vegetables can be verified with high accuracy.

【0007】[0007]

【実施例】以下、図面を参照して本発明の実施例につい
て説明する。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings.

【0008】図1において、1は青果物2の左右の上方
に配置し、その青果物2を照射する光源である。青果物
2の上方には、青果物2をカラー撮影する撮像手段とし
てカラーテレビカメラやCCDカメラなどのカラーカメ
ラ3を配置する。
[0008] In FIG. 1, reference numeral 1 denotes a light source placed above the left and right sides of fruits and vegetables 2 to illuminate the fruits and vegetables 2. As shown in FIG. A color camera 3 such as a color television camera or a CCD camera is arranged above the fruits and vegetables 2 as an imaging means for photographing the fruits and vegetables 2 in color.

【0009】カラーカメラ3は、画像処理用コンピュー
タ4の入力側に接続する。画像処理用コンピュータ4は
、後述のようにカラーカメラ3が撮像した青果物2の画
像を処理する。画像処理用コンピュータ4の出力側には
、表示装置やプリンタなどからなる画像出力装置5を接
続する。さらに画像処理用コンピュータ4には、カラー
カメラ3で撮影するリンゴなどの青果物に対応する標準
色分布パターンの各単位画素の基準色値を、あらかじめ
記憶しておく画像メモリ6を接続する。
The color camera 3 is connected to the input side of an image processing computer 4. The image processing computer 4 processes images of fruits and vegetables 2 captured by the color camera 3 as described later. An image output device 5 consisting of a display device, a printer, etc. is connected to the output side of the image processing computer 4. Further, the image processing computer 4 is connected to an image memory 6 in which reference color values of each unit pixel of a standard color distribution pattern corresponding to fruits and vegetables such as apples photographed by the color camera 3 are stored in advance.

【0010】次に、このよう構成する実施例の画像処理
例について、図2のフローチャートを参照して説明する
Next, an example of image processing in the embodiment configured as described above will be explained with reference to the flowchart shown in FIG.

【0011】まず、カラーカメラ3で撮影して画像処理
しようとする青果物2(例えばりんご)の標準色分布パ
ターン7を図3で示すように作成し、この色分布パター
ン7を図示のように任意の大きさからなる単位画素8に
分割し、各単位画素8における基準色値の許容範囲を決
定してそのデータを画像メモリ6にそれぞれ格納する(
ステップS1)。この単位画素8における基準色値の許
容範囲の一例をL* a* b* 表色系で表示すると
、次のようになる。
First, a standard color distribution pattern 7 of a fruit or vegetable 2 (for example, an apple) to be photographed with a color camera 3 and subjected to image processing is created as shown in FIG. The permissible range of the reference color value in each unit pixel 8 is determined, and the data is stored in the image memory 6 (
Step S1). An example of the allowable range of the reference color value in the unit pixel 8 is expressed as follows when expressed using the L*a*b* color system.

【0012】a1≦L* <a2 a3≦a* <a4 a5≦b* <a6 ここで、上式においてa1〜a6は所定の数値である。[0012]a1≦L*<a2 a3≦a* <a4 a5≦b* <a6 Here, in the above formula, a1 to a6 are predetermined numerical values.

【0013】次に、カラーカメラ3で撮影した青果物2
のカラー画像を入力する(ステップS2)。そして、そ
の入力したカラー画像の重心位置を算出し、この算出し
た重心位置と図3で示す標準色分布パターン7の重心位
置との位置合わせを行う(ステップS3)。その後、画
像の縮小、拡大、回転などの画像操作によりパターンマ
ッチングを行う(ステップS4)。
Next, fruits and vegetables 2 photographed with a color camera 3
A color image of is input (step S2). Then, the center of gravity of the input color image is calculated, and the calculated center of gravity is aligned with the center of gravity of the standard color distribution pattern 7 shown in FIG. 3 (step S3). Thereafter, pattern matching is performed by image manipulation such as image reduction, enlargement, and rotation (step S4).

【0014】引き続き、入力カラー画像の各単位画素の
色を数値化し、その各色値が画像メモリ6に格納してあ
る標準色分布パターン7の対応する単位画素8における
基準色値の許容範囲に属するか否かを判別し、基準色値
の許容範囲に属する単位画素を入力カラー画像から抽出
する(ステップS5、S6)。そして、この抽出画素数
を標準色分布パターン7を構成する全体の画素数と比較
し、青果物2を「特秀」、「秀」、「規格外」というよ
うに等級づけする(ステップS7)。
Subsequently, the color of each unit pixel of the input color image is digitized, and each color value belongs to the allowable range of the reference color value in the corresponding unit pixel 8 of the standard color distribution pattern 7 stored in the image memory 6. It is determined whether or not the color value is within the allowable range of the reference color value, and unit pixels belonging to the allowable range of the reference color value are extracted from the input color image (steps S5 and S6). Then, this number of extracted pixels is compared with the total number of pixels constituting the standard color distribution pattern 7, and the fruits and vegetables 2 are graded as "excellent", "excellent", and "substandard" (step S7).

【0015】以上のような画像処理により、青果物の形
状や着色状態が複雑であるような場合であっても、着色
状態を正確に把握でき、もって青果物の等級付けを高い
精度で実現できる。
[0015] Through the above-described image processing, even if the shape and coloring of fruits and vegetables are complex, the coloring state can be accurately grasped, thereby making it possible to grade fruits and vegetables with high accuracy.

【0016】ところで、上述のステップS4の幾何学的
変換時に、画像メモリのデータ変換を画像メモリの輪郭
部(外周部)とその輪郭部を除く中央部とに分けて行う
のが青果物の等級検定の精度を向上させる上で好ましい
。すなわち、縮小、拡大、回転などの幾何学的変換の際
に、入力画素のデータをそのデータを囲む4個の出力画
素位置への距離に応じて分配するが、この分配を画像メ
モリの中央部のデータのみについて行ない輪郭部のデー
タについては行わないようにする。具体的には、画像メ
モリの設定時に、輪郭部のデータに分配禁止の命令を輪
郭部データのメモリ記憶させておいたり、または画像メ
モリの設定後に、フィルタ処理および輪郭部抽出を行い
、分配禁止の命令を輪郭部データのメモリに記憶させる
ことにより実現できる。
By the way, in the above-mentioned geometric conversion in step S4, the data conversion of the image memory is carried out separately into the contour part (outer part) and the central part excluding the contour part, which is the grade test for fruits and vegetables. This is preferable in order to improve the accuracy. In other words, during geometric transformations such as reduction, enlargement, and rotation, input pixel data is distributed according to the distance to the four output pixel positions surrounding the data, and this distribution is performed in the central part of the image memory. The process is performed only on the data of the contour part, and not on the data of the contour part. Specifically, when setting the image memory, a command to prohibit distribution of the contour data is stored in the memory of the contour data, or after setting the image memory, filter processing and contour extraction are performed to prevent distribution. This can be realized by storing the command in the outline data memory.

【0017】[0017]

【発明の効果】以上説明したように、本発明では、撮影
する青果物に対応する標準色分布パターンの各単位画素
の基準色値をあらかじめ画像記憶手段に記憶しておき、
撮像手段で撮影したカラー画像の各単位画素の色値を、
画像記憶手段に記憶してある対応画素の基準色値と比較
し、その比較結果に応じて青果物の品質を判定するよう
にした。従って、本発明では、青果物の形状や着色状態
が複雑であるような場合であっても、着色状態を正確に
把握でき、もって青果物の品質検定を高精度で行うこと
ができる
As explained above, in the present invention, the reference color value of each unit pixel of the standard color distribution pattern corresponding to the fruits and vegetables to be photographed is stored in advance in the image storage means,
The color value of each unit pixel of the color image taken by the imaging means is
The color value of the corresponding pixel stored in the image storage means is compared with the reference color value, and the quality of the fruits and vegetables is determined according to the comparison result. Therefore, in the present invention, even if the shape and coloring state of fruits and vegetables are complex, the coloring state can be accurately grasped, and the quality of fruits and vegetables can be verified with high accuracy.

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

【図1】本発明実施例の全体構成を示す図である。FIG. 1 is a diagram showing the overall configuration of an embodiment of the present invention.

【図2】本発明実施例の画像処理例を示すフローチャー
トである。
FIG. 2 is a flowchart showing an example of image processing according to an embodiment of the present invention.

【図3】標準色分布パターンと単位画素との関係を模式
的に示す図である。
FIG. 3 is a diagram schematically showing the relationship between a standard color distribution pattern and a unit pixel.

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

1    光源 2    青果物 3    カラーカメラ 4    画像処理用コンピュータ 5    画像出力装置 6    画像メモリ 1 Light source 2 Fruits and vegetables 3 Color camera 4 Image processing computer 5 Image output device 6 Image memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】青果物をカラーで撮影する撮像手段と、そ
の撮影する青果物に対応する標準色分布パターンの各単
位画素の基準色値をあらかじめ記憶する画像記憶手段と
、前記撮像手段で撮影したカラー画像の各単位画素の色
値を前記画像記憶手段に記憶する対応各単位画素の基準
色値と比較する比較手段と、その比較結果に応じて青果
物の品質を判定する品質判定手段と、を備えてなる青果
物の品質検定装置。
1. An imaging means for photographing fruits and vegetables in color; an image storage means for storing in advance a reference color value of each unit pixel of a standard color distribution pattern corresponding to the fruits and vegetables to be photographed; Comparing means for comparing the color value of each unit pixel of the image with a reference color value of each corresponding unit pixel stored in the image storage means, and quality determining means for determining the quality of the fruits and vegetables according to the comparison result. A quality inspection device for fruits and vegetables.
JP3020463A 1991-01-21 1991-01-21 Quality checking device for vegetable and fruit Withdrawn JPH04238252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3020463A JPH04238252A (en) 1991-01-21 1991-01-21 Quality checking device for vegetable and fruit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3020463A JPH04238252A (en) 1991-01-21 1991-01-21 Quality checking device for vegetable and fruit

Publications (1)

Publication Number Publication Date
JPH04238252A true JPH04238252A (en) 1992-08-26

Family

ID=12027783

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3020463A Withdrawn JPH04238252A (en) 1991-01-21 1991-01-21 Quality checking device for vegetable and fruit

Country Status (1)

Country Link
JP (1) JPH04238252A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2887987A1 (en) * 2005-06-30 2007-01-05 Sferis Sarl METHOD AND DEVICE FOR ANALYZING BERRIES
US20120047037A1 (en) * 2010-08-23 2012-02-23 Toshiba Tec Kabushiki Kaisha Store system and sales registration method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2887987A1 (en) * 2005-06-30 2007-01-05 Sferis Sarl METHOD AND DEVICE FOR ANALYZING BERRIES
WO2007003763A3 (en) * 2005-06-30 2007-02-22 Sferis Method and device for analysing berries
US8406475B2 (en) 2005-06-30 2013-03-26 D.Wine Method and device for analyzing berries
US20120047037A1 (en) * 2010-08-23 2012-02-23 Toshiba Tec Kabushiki Kaisha Store system and sales registration method
JP2012069094A (en) * 2010-08-23 2012-04-05 Toshiba Tec Corp Store system and program
US9245424B2 (en) * 2010-08-23 2016-01-26 Toshiba Tec Kabushiki Kaisha Store system and sales registration method

Similar Documents

Publication Publication Date Title
US20050286753A1 (en) Automated inspection systems and methods
CN107316047A (en) Image processing apparatus, image processing method and storage medium
WO2001015452A1 (en) Device for applying accurate color thresholds in real time
CN107333123A (en) Detecting system of focusing and focusing detection method
US4542404A (en) Charge coupled device based system and method for inspecting and modifying images
JPH04238252A (en) Quality checking device for vegetable and fruit
KR20220026439A (en) Apparatus and method for checking whether a part is inserted in PCB
US11962949B2 (en) Method of air pollution estimation based on spectral image processing
CN107079121A (en) Method for detecting defective pixel
CN112329729B (en) Small target ship detection method and device and electronic equipment
JPH0771939A (en) Visual inspection device
US20100231763A1 (en) Defective pixel detector for a digital video camera and associated methods
US6340988B1 (en) Method and apparatus for displaying video data for testing a video board
JPH07262379A (en) Article identifying system
JP3363103B2 (en) Appearance inspection device
JP3352169B2 (en) Appearance inspection device
CN110636212A (en) Information selection and configuration device and information selection and configuration method
EP0428626B1 (en) Automated system for testing an imaging sensor
Bidarte et al. Adaptive image brightness and contrast enhancement circuit for real-time vision systems
JPH0310107A (en) Inspecting method utilizing gradation pattern matching
JPH04260180A (en) Color shading deciding device for vegetables and fruits
KR970012877A (en) Cathode ray tube screen inspection adjusting device and method
JPH04296977A (en) Vegetable/fruit coloring inspector
JP3097153B2 (en) Grade testing equipment for fruits and vegetables
JPH04248678A (en) Color variation evaluating device for fruit and vegetables

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514