JP2013029520A - Appearance quality measurement method for polished rice and unpolished rice - Google Patents

Appearance quality measurement method for polished rice and unpolished rice Download PDF

Info

Publication number
JP2013029520A
JP2013029520A JP2012216963A JP2012216963A JP2013029520A JP 2013029520 A JP2013029520 A JP 2013029520A JP 2012216963 A JP2012216963 A JP 2012216963A JP 2012216963 A JP2012216963 A JP 2012216963A JP 2013029520 A JP2013029520 A JP 2013029520A
Authority
JP
Japan
Prior art keywords
rice
image
brown rice
brown
appearance quality
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.)
Granted
Application number
JP2012216963A
Other languages
Japanese (ja)
Other versions
JP5706860B2 (en
Inventor
Hong Sun Yoon
ホンソン ユン
Hun Jeoung
フン チョン
Hyung-Dong Lee
ヒョンドン イ
Young Keun Kim
ヨングン キン
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.)
Korea Rural Development Administration
Original Assignee
Korea Rural Development Administration
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 Korea Rural Development Administration filed Critical Korea Rural Development Administration
Publication of JP2013029520A publication Critical patent/JP2013029520A/en
Application granted granted Critical
Publication of JP5706860B2 publication Critical patent/JP5706860B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/85Investigating moving fluids or granular solids
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/02Food
    • G01N33/10Starch-containing substances, e.g. dough
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30128Food products

Landscapes

  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Immunology (AREA)
  • General Health & Medical Sciences (AREA)
  • Biochemistry (AREA)
  • Pathology (AREA)
  • Analytical Chemistry (AREA)
  • Food Science & Technology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Medicinal Chemistry (AREA)
  • Quality & Reliability (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method for measuring appearance quality of polished rice etc., that can determine quality of each of respective sample grains even if tens of samples are successively supplied during determination on appearance of polished rice etc., in which a computer system automatically determines appearance quality of a polished or unpolished rice sample and displays the quantity and constitution ratio thereof when the sample is supplied.SOLUTION: An appearance quality measurement method for polished rice and unpolished rice includes the processes of: photographing polished rice etc., placed on a sample table by a camera; saving an original image in a data format corresponding to an RGB or YUV model by a frame grabber; binarizing the saved image; generating a two-dimensional image in a contour form from the binarized image; making the two-dimensional image three-dimensional, and extracting a border line; separating images of the polished rice etc., which are in contact with each other with reference to the border line, and labeling the respective images; and analyzing the respective labeled images and determining the proportion and quantity of one or more of complete rice, powdery rice, broken or moth-eaten rice, cracked rice, discoloring rice, etc.

Description

本発明は、白米と玄米の外観品位を評価する方法に関するものであって、特に、一定量の米に含まれた完全米と、粉状質の米、屑米、着色米及びひび割れ米などの割合と玄米に含まれた完全玄米と粉状質玄米、屑米、着色玄米、未熟玄米などの割合を自動的に判定できるようにした白米及び玄米の外観品位測定方法に関する。 The present invention relates to a method for evaluating the appearance quality of white rice and brown rice, and in particular, complete rice contained in a certain amount of rice, powdery rice, waste rice, colored rice, cracked rice, etc. The present invention relates to a method for measuring the appearance quality of white rice and brown rice that can automatically determine the proportion and the proportion of completely brown rice and powdery brown rice, waste rice, colored brown rice, immature brown rice, etc. contained in brown rice.

大韓民国は、長年の稲栽培の歴史を持っていながらも米を思う存分食べることができるようになったのは、僅か20年余前からである。ところが、最近は絶対的な米消費量の減少と共に毎年のような豊作及びミニマムアクセス(MMA:Minimum Market Access)の輸入物量の増加などによって大韓民国内の米在庫量が急激に増加しているのが実情である。これによって2005年末には大韓民国の米在庫量が千万俵を超えるようになった。また、大韓民国の米は米国や中国などで生産する米に比べて生産費が顕著に高くて価格競争力が低下している。   It has only been over 20 years since the Republic of Korea has been able to eat as much rice as possible while having a long history of rice cultivation. However, recently, with the absolute decline in rice consumption, the amount of rice stock in Korea has been increasing rapidly due to the increase in the amount of imported goods and annual harvest (Minimum Market Access). It is a fact. As a result, the amount of rice stock in the Republic of Korea exceeded 10 million 俵 at the end of 2005. In addition, the cost of Korean rice is significantly higher than rice produced in the US and China, and its price competitiveness is low.

一方、最近大韓民国の国家経済の発展と国民の食生活の変化により上質米に対する選好度が高くなって、高品質な米の生産の必要性が増大している。特に、大韓民国の米が外国産の米に比べて価格競争力が低いという状況から、大韓民国の米を守るためには何よりも消費者の嗜好に合う高品質米を生産することが重要な課題として提起された。   On the other hand, the development of the national economy of Korea and changes in the diet of the people have recently increased the preference for high-quality rice, increasing the need for high-quality rice production. In particular, in order to protect Korea's rice, the most important issue is to produce high-quality rice that meets consumer preferences, as South Korea's rice is less price competitive than foreign-produced rice. Was raised.

米の品質は最終的に栄養と味などが重要視されるが、米の利用方法や米を取り扱う主体によっては米の外観を品質評価の対象とする場合が多い。このような米の外観品質と関連するものは、米に含まれた完全米、屑米、粉状質の米、着色米などの割合である。これらは、米の商品性は勿論、ご飯の味にも影響を与えるものとして知られている。そして、大韓民国の農林部では米の品質を3つの等級に分けている(農林部告示第2005-59号)。各等級は、水分、屑米、粉状質の米、被害粒、熱損粒及び異物の含量等の、米の外観品質を基準にして区分されている。   In the end, nutrition and taste are regarded as important for the quality of rice. However, depending on how the rice is used and the main body handling the rice, the appearance of the rice is often subject to quality evaluation. What is related to the appearance quality of such rice is the ratio of complete rice, waste rice, powdery rice, colored rice, etc. contained in the rice. These are known to affect not only the merchantability of rice but also the taste of rice. The agriculture and forestry department in the Republic of Korea divides rice quality into three grades (Agricultural and Forestry Department Notification No. 2005-59). Each grade is categorized based on the appearance quality of the rice, such as the content of moisture, waste rice, powdery rice, damaged grains, heat damaged grains and foreign matters.

一方、米の外観品質の評価は一般的に試験者の目視によって行われている。しかしながら、目視による判定に基づいて得られる結果は、一般的に検査者の熟練度及び個人的な偏見、疲労、照明の種類及び明るさなどによって影響を受ける。これらが理由となり、判定の客観性が低く、迅速な判定が難しいばかりでなく、多くの労力と時間が消費される。よって、迅速且つ客観的に米の外観品質を評価することができる機械装置の開発が要求されている。   On the other hand, the appearance quality of rice is generally evaluated by the examiner's eyes. However, the results obtained based on visual judgment are generally affected by the inspector's proficiency level and personal prejudice, fatigue, illumination type, brightness, and the like. For these reasons, determination is not objective and quick determination is difficult, and much labor and time are consumed. Therefore, there is a demand for development of a mechanical device that can quickly and objectively evaluate the appearance quality of rice.

現在外国では、米を1粒ずつ供給しながら米の画像を撮影し、その画像をコンピューターで分析して外観品質を評価する機械装置が使用されており、韓国国内にも多数普及している。しかし、これらの装置は、目視判定よりは早いものの、比較的所要時間が長く、精度が低い上、価格が高いという問題がある。   Currently, in foreign countries, machinery is used to take an image of rice while supplying rice one by one, analyze the image with a computer, and evaluate the appearance quality. However, although these devices are faster than the visual judgment, there are problems that the required time is relatively long, the accuracy is low, and the price is high.

マシンビジョン(Machine Vision)は画像処理技術及びパターン認識技術をコンピユーター技術と合成させてなるものである。マシンビジョンは農食品加工工程に利用され得る潜在力の高い技術であって、マシンビジョンを農食品の品質検査と等級化に応用するための多くの研究が行なわれている。従来、農食品の品質検査は目視検査に依存してきたが、殆どの場合、目視検査は長時間を必要とし、多くの人員を必要とする上、作業の精度も低下する傾向にある。これとは対照的にマシンビジョンを利用した農食品の検査は遥かに一貫的で便利であり、費用効率が高いことが証明された(Lu et at.,2000;Tao et al.,1995)。   Machine vision is a combination of image processing technology and pattern recognition technology with computer technology. Machine vision is a high-potential technology that can be used in agricultural food processing processes, and many studies have been conducted to apply machine vision to quality inspection and grading of agricultural foods. Conventionally, quality inspection of agricultural foods has been dependent on visual inspection, but in most cases, visual inspection requires a long time, requires many personnel, and tends to reduce the accuracy of work. In contrast, inspection of agricultural foods using machine vision has proven to be much more consistent, convenient and cost-effective (Lu et at., 2000; Tao et al., 1995).

マシンビジョンを利用する場合、カメラで画像を撮影して、これをコンピユーターが認識できるデジタル画像に変換させる画像撮影過程、及びデジタル画像を分析して必要な情報を抽出する画像分析過程とに大きく分けることができる。   When machine vision is used, an image is captured by a camera and converted into a digital image that can be recognized by a computer, and an image analysis process that analyzes the digital image and extracts necessary information. be able to.

画像撮影が成功するか否かは、基本的に適切な照明に係っている。照明の特性などは対象物及び使用される画像撮影装置の特性によって変わる。照明装置としては、蛍光灯、ハロゲン灯、LED等の多様な形態のものを使用でき、対象物に光を当てて照らす方向によって正面照明、後面照明、傾斜照明などの方法が使用される。画像装置は、フォトダイオード又はCCD(Charge Coupled Device)などの光学装置を使用した点センサー、線センサー、面センサー等の、センサー上に結像する画像を走査して画像を電気信号に変換する。ここで得られたアナログ画像信号は、x及びy方向に空間サンプリングされた後、A/D変換によってデジタル画像信号に変換される。A/D変換後の画像データは、一つの画像フレームとしてフレームバッフアー(Frame buffer)に保存される。フレームバッフアーはリアルタイムで画像化してデイスプレーすることができる。   Whether or not the image capture is successful is basically related to appropriate lighting. Illumination characteristics vary depending on the characteristics of the object and the image capturing apparatus used. Various types of lighting devices such as fluorescent lamps, halogen lamps, and LEDs can be used as the lighting device, and methods such as front lighting, rear lighting, and slant lighting are used depending on the direction in which the object is illuminated with light. An image device scans an image formed on a sensor such as a point sensor, a line sensor, or a surface sensor using an optical device such as a photodiode or a CCD (Charge Coupled Device), and converts the image into an electric signal. The analog image signal obtained here is spatially sampled in the x and y directions and then converted to a digital image signal by A / D conversion. The image data after A / D conversion is stored in a frame buffer as a single image frame. The frame buffer can be imaged and displayed in real time.

マシンビジョンを応用する目的は、得られた画像から必要な情報を抽出することにある。このために、マシンビジョンによって得られた原画像を、所望する信号に関連する形式に処理する作業が行われる。これを画像処理(Image Processing)という。即ち、画像内に含まれているノイズの除去、画像が有する特徴の抽出などのために種々の操作を行なうことである。このような画像処理過程においては、画像が有する情報を変換せず、対比強調、角強調、ノイズ除去、尖鋭化、拡大などの技法を使用し、画像が有する重要な特徴を強調する。   The purpose of applying machine vision is to extract necessary information from the obtained image. For this purpose, an operation for processing an original image obtained by machine vision into a format related to a desired signal is performed. This is called image processing. That is, various operations are performed to remove noise contained in the image, extract features of the image, and the like. In such an image processing process, information included in the image is not converted, and techniques such as contrast enhancement, corner enhancement, noise removal, sharpening, and enlargement are used to emphasize important features of the image.

画像分割(Image Segmentation)とは、画像から必要な情報を抽出するために対象物体を背景から分離させる作業である。例えば、米の画像から背景を分離し、米の画像のみを抽出することである。画像分割が終わった画像は、後処理に適合した形態で表現される。表現方法には外的特性(境界)の表現と内的特性(画素)の表現方法がある。これらの方法においては、画像を2次元的な数式や関数又は特別な表示子を利用して表示する。2次元空間における画像は、領域、境界線又は輪郭線などで表示することができる。領域は、輪郭、木目、色などの性質が類似又は同一の部分を区分して表示した、画像の一部分である。境界線とは、物体の輪郭を求める過程から浮き彫りになるか又は種々の区画方法によって得られる境界線を言う。   Image segmentation is an operation for separating a target object from a background in order to extract necessary information from an image. For example, the background is separated from the rice image and only the rice image is extracted. The image after image division is expressed in a form suitable for post-processing. There are two types of expression methods: external characteristic (boundary) expression and internal characteristic (pixel) expression method. In these methods, an image is displayed using a two-dimensional mathematical expression or function or a special indicator. An image in a two-dimensional space can be displayed as a region, a boundary line, or a contour line. A region is a part of an image in which parts having similar or identical properties such as outline, wood grain, and color are displayed separately. The boundary line is a boundary line that is embossed from the process of obtaining the contour of the object or obtained by various partitioning methods.

画像処理装置(Image Processor)は、特定の画像処理を高速で実行する専用のハードウエアーであって、画像取り込み、画像保存、低級画像の処理、画像展示のような基本機能を行なう。画像処理、多数個の画像を処理したり、又は、正確かつ高速で画像を処理したりするのに必要である。殆どの画像処理は、一つの画面を単位フレーム時間(約1/30秒)でデジタル化する。   An image processor is dedicated hardware that executes specific image processing at high speed, and performs basic functions such as image capture, image storage, low-level image processing, and image display. Necessary for image processing, processing a large number of images, or processing images accurately and at high speed. Most image processing digitizes one screen in unit frame time (about 1/30 second).

穀物に対してマシンビジョンを利用して形態的・光学的・組織的特性を測定・分類するために多くの研究がなされてきた。Zayas(1996)らは小麦の品種識別に、Ruan(1997)らは小麦の腐敗病感染程度の測定に、Ni(1997)らはとうもろこし粒子のサイズ計測に、XieとPaulsen(1997)はとうもろこしの白色度測定に、Niら(1997)はとうもろこしの完全粒と屑粒の識別に、SteenhoekとPrecetti(2000)はとうもろこしサイズの等級化に、Liuら(1997)は米の搗精度測定に、YadavとJindal(2001)は米の搗精品質測定に、Majumdar(1997)らは小麦・麦・オート麦・ライ麦の識別のためにマシンビジョンを応用する研究を行なった。   Much research has been done to measure and classify morphological, optical and organizational properties of grain using machine vision. Zayas (1996) et al. For wheat variety identification, Ruan (1997) et al. For measuring the degree of wheat rot infection, Ni (1997) et al. For corn particle size measurement, and Xie and Paulsen (1997) for maize. For whiteness measurement, Ni et al. (1997) used to identify corn grains and swarf grains, Steenhoek and Precetti (2000) used to classify corn size, Liu et al. (1997) used to measure rice bran accuracy, and Yadav And Jindal (2001) applied machine vision to measure the quality of rice milling and Majumdar (1997) and others identified wheat, oat, oat and rye.

しかしながら、これらの研究では、個々の穀粒が互いに接触しないで広く散らばるようにするために、手作業で穀粒をカメラの下に揃えながら外観を撮影した。このような問題を解決するために、CasadyとPaulsen(1989)、Jayas(1999)らは穀粒を一個ずつ自動で供給する装置を開発したが、測定装置が複雑且つ高価であり、測定に長時間かかるという問題がある。   However, in these studies, the appearance was photographed while manually aligning the grains under the camera to ensure that the individual grains were scattered widely without touching each other. In order to solve such problems, Casady, Paulsen (1989), Jayas (1999) and others developed a device that automatically supplies grains one by one, but the measuring device is complicated and expensive, and it is long to measure. There is a problem that it takes time.

このような問題の解決のために、互いに接触している状態で供給された穀粒の外観を、カメラで撮影した後、全体的な画像から個々の穀粒の画像をソフトウェア(software)的に分離することにより必要な情報を抽出・分析するための、画像処理アルゴリズムの開発が模索されている。このようなアルゴリズムの開発は、マシンビジョンを利用した穀粒検査装置の自動化と単純化に寄与するものと期待されている。   In order to solve such a problem, the appearance of the grains supplied in contact with each other is photographed with a camera, and then the images of the individual grains from the overall image are softwareized. Development of image processing algorithms to extract and analyze necessary information by separating them is being sought. The development of such algorithms is expected to contribute to the automation and simplification of grain inspection equipment using machine vision.

これに関する研究として、Shatadalら(1995)は、穀粒の画像を浸食(Erision)させた後に、膨張(Dilation)させることにより、接触部分の境界線を求める数学的形態学(Mathematical Morphology)を利用する画像処理アルゴリズムを開発した。このアルゴリズムによれば、個々の粒を分離して認識する割合が、HRSとDurum小麦では95%、麦では94%、ライ麦では89%、オート麦では79%と表われ、穀粒の形が細く先が尖っているほど、又は、穀粒が長さ方向に多数接触していると、個々の粒の認識の精度が低くなると言われている。   As a study on this, Shatadal et al. (1995) used Mathematical Morphology to find the boundary line of the contact part by eroding the grain image and then dilating it. An image processing algorithm was developed. According to this algorithm, the recognition rate of individual grains is 95% for HRS and Durum wheat, 94% for wheat, 89% for rye, 79% for oats, and the grain shape It is said that the accuracy of recognition of individual grains decreases as the point becomes narrower or the number of grains in contact with each other in the length direction.

また、Shashidharら(1997)は、楕円フィッティング(Ellipse Fitting)法を用いて穀粒の形状に最も近似する楕円を作図し、それぞれの楕円を穀粒として認識する、コンピユーターアルゴリズムを開発した。そして、Visenら(2001)は、Shashidharらが開発した楕円フィッティング(Ellipse Fitting)法を使って、互いに接触している穀粒同士を、接触している楕円として認識させた後に、接触した楕円の外郭の曲率変化を比較・分析して接触点を見出し、分離させることによって個々の穀粒を認識するようにする、アルゴリズムを開発した。これを、小麦・麦・ライ麦・オート麦に対して実験した結果、平均98.6%の成功率を得た。   Shashidhar et al. (1997) developed a computer algorithm that draws an ellipse that most closely approximates the shape of the grain using the Ellipse Fitting method and recognizes each ellipse as a grain. Then, Visen et al. (2001) used the ellipse fitting method developed by Shashidhar et al. To recognize grains that are in contact with each other as being in contact with each other, and then contacted ellipses. An algorithm has been developed that recognizes individual grains by comparing and analyzing the curvature change of the outer shell to find and separate contact points. As a result of experiments on wheat, wheat, rye and oats, an average success rate of 98.6% was obtained.

しかしながら、このアルゴリズムによれば接触点での曲率の変化が明らかでなかったり、境界面が不規則で接触面が明確でなかったりすると、互いに接触した穀粒の画像から個々の穀粒を分離するときに、識別精度が劣ると言われている。また、これらの方法では、形状が似ている穀粒に対しては適用性が高いが、形状の異なる異種穀粒や割れた穀粒などが混入するか、穀粒が接している形が不規則で複雑であると、個々の穀粒を分離・認識する精度が低くなると言われている。   However, according to this algorithm, if the change in curvature at the contact point is not clear, or if the boundary surface is irregular and the contact surface is not clear, the individual grains are separated from the images of the grains in contact with each other. Sometimes it is said that the identification accuracy is inferior. In addition, these methods have high applicability to grains with similar shapes, but different types of grains or cracked grains with different shapes are mixed in, or the shape in which the grains are in contact is not good. It is said that the accuracy of separating and recognizing individual grains becomes low when the rules are complicated.

本発明の目的は、前記した従来の問題点を解決するために案出されたものであって、白米及び玄米の外観品位を評価するに当って短い時間で高い判定精度を得るために、白米又は玄米を一粒ずつ供給する代りに数十粒の白米又は玄米をまとめて供給し、その白米又は玄米を一枚の画像に収めてコンピューター画像処理によってソフトウェア的に一粒ずつの外観品位を分析する方法を提供することにある。 The object of the present invention has been devised to solve the above-mentioned conventional problems, and in order to obtain high judgment accuracy in a short time in evaluating the appearance quality of white rice and brown rice, Alternatively, instead of supplying brown rice one by one, dozens of white rice or brown rice is supplied together, and the white rice or brown rice is stored in a single image and the appearance quality of each grain is analyzed by computer image processing. It is to provide a be that way.

稲を玄米又は米に加工すると、玄米には完全玄米、腹白玄米、着色玄米、割れ玄米、ひび割れ玄米などが含まれ、米には完全米、腹白米、着色米、割れ米、ひび割れ米などが含まれる。完全米又は完全玄米の割合の高いほど品位が優秀である。従って本発明は、白米又は玄米試料が供給されると、コンピューターシステムが自動的に試料の外観品位を判別して、その個数及び構成割合を表示する、白米又は玄米の外観品位の判別において、試料を1粒ずつ供給して判別する既存のシステムとは異なり、数十個の試料を連続的に供給しても、それぞれの試料一粒ずつの品位を判別することができる、白米及び玄米の外観品位を測定する方法を提供することを目的とする。
When the rice is processed into brown rice or rice, the brown rice includes completely brown rice, belly white brown rice, colored brown rice, cracked brown rice, cracked brown rice, etc. The rice includes full rice, belly white rice, colored rice, cracked rice, cracked rice, etc. Is included. The higher the percentage of complete rice or complete brown rice, the better the quality. Accordingly, in the present invention, when a sample of white rice or brown rice is supplied, the computer system automatically determines the appearance quality of the sample and displays the number and composition ratio. the Unlike existing systems to determine supplying one grain, be continuously supplied dozens of samples, it is possible to determine the quality of each respective sample grain, white rice and brown rice An object is to provide a method for measuring appearance quality.

即ち本発明は、試料台の上に置かれた白米又は玄米をカメラで撮影する工程と;該前記カメラによって撮影された白米又は玄米の原画像をフレームグラバーによってRGB又はYUVモデルに該当するデータ形態で保存する工程と;保存された画像を二進化する工程と;
二進化された画像を最短距離に距離変換(Distance Transform)して等高線形の2次元画像を作る工程と;前記2次元画像を3次元化して、分岐点変換(Watershed Transform)を通じて境界線を抽出する工程と;前記境界線を基準にして接している白米又は玄米を分離し、それぞれの白米又は玄米に対してラベリングをする工程と;前記工程でラベリングされた各白米又は玄米を分析して完全米、粉状質の米、屑米、ひびわれ米、着色米、又は、完全玄米、粉状質の玄米、屑米、ひびわれ玄米、着色玄米の中の一つ以上の割合及び個数を判定する工程とからなることを特徴とする白米及び玄米の外観品位測定方法である
That is, the present onset Ming, process and to take a polished rice or brown rice was placed on the sample stage by a camera; data corresponding to the RGB or YUV model original image milled rice or brown rice that has been taken by front Symbol camera by a frame grabber Storing in the form; and binarizing the stored image;
A process of creating a contour two-dimensional image by distance transforming the binarized image to the shortest distance (Distance Transform); and converting the two-dimensional image into three dimensions and extracting a boundary line through a watershed transform Separating the white rice or brown rice in contact with the boundary line, and labeling each white rice or brown rice; analyzing each white rice or brown rice labeled in the above step A process of determining the ratio and number of one or more of rice, powdered rice, waste rice, cracked rice, colored rice, or completely brown rice, powdered brown rice, waste rice, cracked brown rice, colored brown rice This is a method for measuring the appearance quality of white rice and brown rice .

また、本発明の白米及び玄米の外観品位測定方法によれば、前記保存された画像を二進化する工程は、白米又は玄米と背景とを区分するための濃度の閾値を能動的に計算できるように、大津アルゴリズムを利用することを特徴とする。   In addition, according to the method for measuring the appearance quality of white rice and brown rice according to the present invention, the step of binarizing the stored image can actively calculate a threshold value of concentration for distinguishing white rice or brown rice from the background. In addition, the Otsu algorithm is used.

本発明の白米及び玄米の外観品位測定方法によって、機械的基準によって判別することにより、目視で判別するときに所要される労力と時間を節減すると共に、判別の客観性を確保することができるという効果がある。 White rice and appearance quality measurement Sadakata method of brown rice of the present invention therefore, by determining the mechanical reference, as well as saving labor and time required when determining visually, ensuring the objectivity of judgment There is an effect that can be.

また、本発明の白米及び玄米の外観品位測定方法に従って白米及び玄米の外観品位を判別する場合には、白米又は玄米を一粒ずつ供給して判別する既存のシステムの場合とは異なり、数十個の白米又は玄米を連続的に供給しても、それぞれの白米又は玄米の粒の品位を判別できる。更に、白米又は玄米を一粒ずつ供給する装置が不要になるので、測定装置の製品価格を画期的に節減することができる上、数十個の米粒又は玄米粒を供給しながらリアルタイムで判別するので、判別時間も短縮できるという効果がある。 Further, when determining the appearance quality of milled rice and brown rice according to rice and appearance quality measurement Sadakata method of brown rice of the present invention, unlike existing systems to determine by supplying milled rice or brown rice by grain, Even if several tens of white rice or brown rice is continuously supplied, the quality of each white rice or brown rice grain can be determined. Furthermore, since a device that supplies white rice or brown rice one by one is no longer necessary, the product price of the measuring device can be dramatically reduced, and it can be distinguished in real time while supplying dozens of rice grains or brown rice grains. Therefore, the determination time can be shortened.

図1は、本発明による白米及び玄米の外観品位測定方法に使用する装置概略的に示構成図である。Figure 1 is a block diagram schematically indicate to the device to be used in rice and appearance quality measuring method of the brown rice according to the present invention. 図2は、本発明の白米及び玄米の外観品位測定方法に使用する装置の試作機を示す実物写真である。FIG. 2 is an actual photograph showing a prototype of an apparatus used in the method for measuring the appearance quality of white rice and brown rice according to the present invention. 図3は、本発明の画像処理過程が示された順序図である。FIG. 3 is a flowchart illustrating an image processing process according to the present invention. 図4は、本発明によるデジタル画像の濃度ヒストグラムが示されたグラフである。FIG. 4 is a graph showing a density histogram of a digital image according to the present invention. 図5は、接している試料の分離過程が示された順序図である。FIG. 5 is a flow chart showing the separation process of the contacting sample. 図6は、大津アルゴリズムを使わないで二進化する過程が示された図面である。FIG. 6 is a diagram illustrating a process of binarizing without using the Otsu algorithm. 図7は、大津アルゴリズムを使って二進化する過程が示された図面である。FIG. 7 is a diagram illustrating a process of binarizing using the Otsu algorithm. 図8は、距離変換過程が示された図面である。FIG. 8 is a diagram illustrating a distance conversion process. 図9は、接している試料の境界線を探していく過程が示された図面である。FIG. 9 is a diagram showing a process of searching for a boundary line of a sample that is in contact. 図10は、接している試料の境界分離によるマップライン化過程が示された図面である。FIG. 10 is a diagram showing a map line formation process by boundary separation between samples in contact with each other. 図11は、割れた米の画像が示された図面である。FIG. 11 is a drawing showing an image of broken rice. 図12は、着色米と粉状質の米の画像が示された図面である。FIG. 12 is a drawing showing images of colored rice and powdery rice. 図13は、完全米の画像が示された図面である。FIG. 13 is a drawing showing an image of complete rice. 図14は、ひびを探す過程が示された図面である。FIG. 14 is a diagram illustrating a process of searching for a crack. 図15は、割れた米の分析結果が示された図面である。FIG. 15 is a view showing the analysis result of broken rice. 図16は、粉状質の米の分析結果が示された図面である。FIG. 16 is a drawing showing the results of analysis of powdery rice. 図17は、着色米の分析結果が示された図面である。FIG. 17 is a drawing showing the analysis results of colored rice. 図18は、完全米の分析結果が示された図面である。FIG. 18 is a drawing showing the analysis results of complete rice.

以下、添付された図面を参照して本発明に係る、白米及び玄米の外観品位測定方について詳しく説明する。 Hereinafter, with reference to the accompanying drawings according to the present invention will be described in detail rice and appearance quality measurement Sadakata method brown rice.

図1は、本発明に係る白米及び玄米の外観品位測定方法に使用する装置を概略的に示した構成図である。図2は、本発明の白米及び玄米の外観品位測定方法に使用する試作機の実物写真である。図3は、本発明の画像処理過程を示した順序図である。図4は、本発明に係るデジタル画像の濃度ヒストグラムを示したグラフである。図5は、接している米の分離過程が示された順序図である。図6は、大津アルゴリズムを使用しないで二進化する過程を示した図面である。図7は、大津アルゴリズムを使用して二進化する過程を示した図面である。図8は、距離変換過程を示した図面である。図9は、接している米の境界線を探していく過程を示した図面であり、図10は、接している米の境界分離によるマップライン化過程を示した図面である。 FIG. 1 is a configuration diagram schematically showing an apparatus used in the method for measuring the appearance quality of white rice and brown rice according to the present invention. FIG. 2 is an actual photograph of a prototype used in the method for measuring the appearance quality of white rice and brown rice according to the present invention. FIG. 3 is a flowchart showing the image processing process of the present invention. FIG. 4 is a graph showing a density histogram of a digital image according to the present invention. FIG. 5 is a flow chart showing the process of separating the contacting rice. FIG. 6 is a diagram showing a process of binarizing without using the Otsu algorithm. FIG. 7 is a diagram showing a process of binarizing using the Otsu algorithm. FIG. 8 is a diagram illustrating a distance conversion process. FIG. 9 is a diagram showing a process of searching for a border line of the contacting rice, and FIG. 10 is a diagram showing a map line forming process by boundary separation of the contacting rice.

本発明に係る白米及び玄米の外観品位測定方法に使用する装置は、透明又は半透明材質からなる、上面に白米又は玄米試料が置かれる試料台30と;前記試料台30の下部に設置され、前記試料台30を回転させる回転円板50と;前記試料台30の上部に設置され、試料台30に白米又は玄米を供給する供給筒40及び前記供給筒40の内部に設けられて前記試料台30に供給される白米又は玄米の量を調節する回転ロール41と;前記試料台30の上下側に、それぞれ前記試料台30から離間して設置され、白米又は玄米を照明する上部照明21及び下部照明22と;前記試料台30から上部側に離間して設置され、前記試料台30上の白米又は玄米を撮影するCCDカメラ20と;画像処理プログラムを利用して、前記カメラ20によって撮影された画像を処理して、外観品位を判定するコンピューター10と;前記コンピューター10の内部に設けられ、前記カメラ20を制御するフレームグラバー11と;前記フレームグラバー11から前記カメラ20の作動状態に関する信号を受けて、前記供給筒40からの白米又は玄米供給速度及び前記回転円板50の回転速度を制御する速度調節機60と;前記試料台30の上面に設置された前記カメラ20によって撮影を終えた白米又は玄米を分離する排出分離板51と;前記試料台30の下部に設けられて前記排出分離板51によって分離された白米又は玄米を回収する収集筒52及びこれらの装置などを支持する支持台70を含んでなる。 The apparatus used in the method for measuring the appearance quality of white rice and brown rice according to the present invention is a transparent or semi-transparent material, a sample stage 30 on which a white rice or brown rice sample is placed on the upper surface; installed at the bottom of the sample stage 30; A rotating disk 50 for rotating the sample stage 30; a supply cylinder 40 which is installed on the upper part of the sample stage 30 and supplies white rice or brown rice to the sample stage 30; and the sample stage 30 provided inside the supply cylinder 40 A rotating roll 41 for adjusting the amount of white rice or brown rice supplied to 30; upper and lower lights 21 and a lower part, which are installed on the upper and lower sides of the sample stage 30, respectively, apart from the sample stage 30 and illuminate the white rice or brown rice Illumination 22; CCD camera 20 installed on the upper side from the sample stage 30 and photographing white rice or brown rice on the sample stage 30; photographed by the camera 20 using an image processing program A computer that processes the image and determines the appearance quality. A frame grabber 11 provided inside the computer 10 for controlling the camera 20; white rice or brown rice from the supply cylinder 40 in response to a signal relating to the operating state of the camera 20 from the frame grabber 11; A speed adjuster 60 for controlling the supply speed and the rotational speed of the rotating disk 50; and a discharge separating plate 51 for separating white rice or brown rice that has been photographed by the camera 20 installed on the upper surface of the sample table 30; It includes a collecting cylinder 52 that is provided at the lower part of the sample stage 30 and collects white rice or brown rice separated by the discharge separation plate 51, and a support stage 70 that supports these devices.

前記上部照明21は、前記下部照明22に比べて照度が高い。前記カメラ20は、レンズを調整して焦点距離を変化させることができると供に、上下方向に移動可能に設けられる。前記フレームグラバー11は、前記上部照明21及び下部照明22による明るさによって前記カメラ20のレンズを調節すると供に、前記供給筒40内部の回転ロール41を制御して白米又は玄米供給量を調節する。また、前記コンピューター10は、完全米、粉状質の米、屑米、ひび割れ米、着色米又は完全玄米、粉状質の玄米、屑米、ひび割れ玄米、着色玄米、未熟玄米の内の一種以上の割合又は個数を測定して、白米及び玄米全体の外観品位を自動で判定する。   The upper illumination 21 has higher illuminance than the lower illumination 22. The camera 20 is provided so as to be movable in the vertical direction while adjusting the lens to change the focal length. The frame grabber 11 adjusts the lens of the camera 20 according to the brightness of the upper illumination 21 and the lower illumination 22, and controls the rotating roll 41 inside the supply cylinder 40 to adjust the supply amount of white rice or brown rice. . Further, the computer 10 may be one or more of perfect rice, powdered rice, waste rice, cracked rice, colored rice or completely brown rice, powdery brown rice, waste rice, cracked brown rice, colored brown rice, and immature brown rice. The appearance quality of the whole white rice and brown rice is automatically determined.

前記コンピューター10が白米及び玄米の外観品位を判定する過程は次の通りである。   The process in which the computer 10 determines the appearance quality of white rice and brown rice is as follows.

試料台30上に置かれた白米又は玄米の試料を、カメラで撮影する。前記カメラ20によって撮影された試料の原画像を、フレームグラバー11によってRGB又はYUVモデルに該当するデータ形態で保存する。保存された画像を二進化する。二進化された画像を最短距離に距離変換(Distance Transform)して、等高線形の2次元画像を作成する。前記2次元画像を3次元化し、分岐点変換(Watershed Transform)を通じて境界線を抽出する。前記境界線を基準にして接している試料等を分離させ、それぞれの試料に対するラベリングを実施し、ラベリングされた各試料を分析して、完全米、粉状質の米、屑米、ひび割れ米、着色米又は完全玄米、粉状質の玄米、屑米、ひび割れ玄米、着色玄米、未熟玄米の内の一種以上の割合及び個数を判定する。   A sample of white rice or brown rice placed on the sample stage 30 is photographed with a camera. An original image of the sample taken by the camera 20 is stored by the frame grabber 11 in a data format corresponding to the RGB or YUV model. Evolve the stored image. The transformed image is distance transformed to the shortest distance (Distance Transform) to create a contour two-dimensional image. The two-dimensional image is three-dimensionalized and a boundary line is extracted through a watershed transform. Samples that are in contact with each other based on the boundary line are separated, each sample is labeled, each labeled sample is analyzed, and complete rice, powdery rice, waste rice, cracked rice, The ratio and number of one or more of colored rice or completely brown rice, powdery brown rice, waste rice, cracked brown rice, colored brown rice, and immature brown rice are determined.

前記保存された画像を二進化するためには、試料と背景とを区分するための濃度の閾値を能動的に計算できるように、大津アルゴリズムを利用することが好ましい。   In order to binarize the stored image, it is preferable to use the Otsu algorithm so that a concentration threshold value for distinguishing between the sample and the background can be actively calculated.

以下に、前記の一般的な構成を具体化して、本発明の白米及び玄米の外観品位測定方法の実験例について説明する。 Hereinafter, embodying the general structure of the, described experimental example of the milled rice and appearance products position measuring method of the brown rice of the present invention.

1.実験材料
実験に使う米として、米穀総合処理場で加工された米(2002年産)を、加工現場で目視検査によって、完全粒(Sound kernel)、屑米(Broken kernel)、粉状の粒(Chalky kernel)、着色粒(Colored kernel)に分類して採取した。米品位区分の基準は、大韓民国農林部で告示した標準規格に基づく。完全粒は、米の外観特性上、割れていない米と、割れた米であっても完全粒の平均長さの3/4以上の形態を有しているものの内、粉状質の粒、熱損粒、被害粒を除いたものとし、個々の粒の平均長さは完全粒15個以上を計測して算出した。屑米は、韓国産業規格KS A 5101標準篩の内、呼び寸法1.7mmの網篩でふるって篩の上に残るものの中、完全粒の平均長さの3/4未満に割れた粒とした。粉状質の粒は体積の1/2以上が粉状質状態の粒とした。着色粒は、被害粒、熱損粒等、及び、粒長さの1/4以上が着色された粒とした。
1. Experimental materials As the rice used in the experiment, the rice processed in the general grain processing plant (produced in 2002) is visually inspected at the processing site to produce complete grains (Sound kernel), broken rice (Broken kernel), and powdered grains (Chalky) kernel) and colored kernels. The standard of rice grade classification is based on the standard announced by the Ministry of Agriculture and Forestry of Korea. Complete grains, rice appearance properties on the inner although has a rice is not cracked, 3/4 or more forms of even rice cracked complete grains having an average length, powdery substance grains, Heat loss grains and damage grains were excluded, and the average length of each grain was calculated by measuring 15 or more complete grains. Kuzumai, of the Korean Industrial Standard KS A 5101 standard sieve, in what remains on the Furutte sieve with a net sieve size 1.7mm call, was cracked in less than 3/4 of the full grain average length grain. The powdery grains were grains having a powdery state with 1/2 or more of the volume. The colored grains were damaged grains, heat loss grains, and the like, and grains colored 1/4 or more of the grain length.

2.外観品位判定装置
米の外観品位測定のため、照明装置、画像処理装置及び米供給/排出装置を有する外観品質判定装置を製作した。図1と図2を参照して装置の構成について説明する。
2. Appearance quality judgment device An appearance quality judgment device having an illumination device, an image processing device, and a rice supply / discharge device was manufactured to measure the appearance quality of rice. The configuration of the apparatus will be described with reference to FIG. 1 and FIG.

A.照明装置
分析する米を載せる試料台30の上部に、上部照明21として12W容量の白熱燈1個を設置し、前記試料台30の下部に、下部照明22として4W容量の蛍光燈2個を設置した。前記米を、照明装置で照明した。この時、前記試料台30の下部から照射される下部照明22の光量を調節するために、試料台30を白色の半透明アクリル板で製作した。ここで、前記試料台30は透明又は半透明であることが好ましく、測定時の照明の明るさが変わると、測定結果に誤差が生ずることがあるので、測定の前に照明の明るさを測定して基準値と異なる場合にはカメラ20のレンズを調整して、明るさを基準値に合わせた。
A. Illumination device An incandescent lamp with 12W capacity is installed as the upper illumination 21 on the top of the sample stage 30 on which the rice to be analyzed is placed, and two fluorescent lamps with 4W capacity are installed as the lower illumination 22 at the lower part of the sample stage 30. did. The rice was illuminated with a lighting device. At this time, in order to adjust the light quantity of the lower illumination 22 irradiated from the lower part of the sample stage 30, the sample stage 30 was made of a white translucent acrylic plate. Here, the sample stage 30 is preferably transparent or translucent, and if the illumination brightness at the time of measurement changes, an error may occur in the measurement result, so the illumination brightness is measured before the measurement. If it is different from the reference value, the lens of the camera 20 is adjusted to adjust the brightness to the reference value.

B.画像処理装置
画像処理装置は、カラーCCDカメラ20(LGハニウェル、GC-450NA-G)とフレームグラバー11(WDM方式、BT878chip使用、自作)及びPC10(ぺンティアムIV 2.0G、DDR-RAM 512MB)で構成した。検査に用いる画像処理装置は、供給された米の画像を、CCDカメラ20とPC10内に設けられたフレームグラバー11を用いて撮影し、撮影された画像を、PC10の画像処理プログラムで分析して保存するようにした。
B. Image processing device The image processing device is a color CCD camera 20 (LG Honeywell, GC-450NA-G), frame grabber 11 (WDM method, using BT878chip, self-made) and PC10 (Pentium IV 2.0G, DDR-RAM 512MB). Configured. The image processing apparatus used for the inspection takes an image of the supplied rice using the CCD camera 20 and the frame grabber 11 provided in the PC 10, and analyzes the taken image with the image processing program of the PC 10. I saved it.

前記CCDカメラ20は、上下方向に移動して高さを調節できるようにし、焦点距離6mm、明るさF1.2のレンズを装着した。カメラ20の位置やレンズの変更等で米粒画像のサイズが変わると、測定結果に誤差が生ずる。よって、測定前にコインのサイズを測定し、基準サイズと異なる場合にはカメラ20の位置とレンズを調整して、サイズを基準値に合わせるようにした。   The CCD camera 20 was moved up and down so that the height could be adjusted, and a lens with a focal length of 6 mm and a brightness of F1.2 was attached. If the size of the rice grain image changes due to the position of the camera 20 or the lens change, an error occurs in the measurement result. Therefore, the size of the coin was measured before the measurement, and if it was different from the reference size, the position of the camera 20 and the lens were adjusted to match the size with the reference value.

前記フレームグラバー11は、Windows(登録商標)98に比べてRAMの認識限界がない(メインボードの仕様によって異なるが、最近DDR-RAM 4GB程度まで認識する)Windows(登録商標) 2000、及び、Windows(登録商標) XPのOSで使用可能になるように、WDM(Windows(登録商標) Driver Model)方式のBT878チップ(chip)を使って、自作したものを使用した。即ち、通常のフレームグラバーは、Windows(登録商標)98のOSを使い、128MB以上のRAMを使っても、128MBまでしか認識できないので、前記カメラ20から伝送された高容量(640×480×3=921600 Bytes)の画像データを処理するには、長時間を要する。   The frame grabber 11 has no RAM recognition limit compared to Windows (registered trademark) 98 (depending on the specifications of the main board, but recently recognizes up to about 4 GB of DDR-RAM) Windows (registered trademark) 2000 and Windows (Registered trademark) A self-made one using a WDM (Windows (registered trademark) Driver Model) type BT878 chip (chip) was used so that it could be used in the OS of XP. That is, a normal frame grabber can recognize only up to 128 MB even when using an OS of Windows (registered trademark) 98 and using RAM of 128 MB or more. = 921600 Bytes) image data takes a long time to process.

また、一般の安価なTVカードの撮影機能を利用したVFW(Video For Window)方式でも撮影することが可能であるが、研究用に適合した640×480の解像度を有する画像を撮影するには時間が更にかかる。従って、VxD方式にのみ制限されたドライバーが提供されなければならない。ドライバーがVxD方式でない場合、320×240の解像度及びそれ以下の解像度で撮影が可能である。320×240以上の解像度を必要とする場合には、カード製造社のAPIを知らなければならないので、実際に使用することは不可能である。そして、前記PC10の画像処理プログラムはMFC(Microsoft foundation Class Library)方式でビジュアル(Visual)C++言語を使用して作成した。 It is also possible to shoot with the VFW (Video For Window) method that uses the shooting function of a general inexpensive TV card, but it takes time to shoot an image with a resolution of 640 x 480 that is suitable for research use. It takes more. Therefore, a driver limited to the VxD method must be provided. When the driver is not a VxD system, it is possible to shoot at a resolution of 320 × 240 and lower. If you need a 320 × 240 or better resolution, because it must know the API of the card manufacturing company, it is possible to actually use impossible. The image processing program of the PC 10 was created using the Visual C ++ language by the MFC (Microsoft foundation Class Library) method.

C.米供給及び排出装置
試料を連続的に供給するための米供給装置は、回転ロール41によって一定量ずつ米を排出する米供給筒40と、供給された試料をカメラ20の下側に移送する回転円板50と、撮影が終わった試料を分離する排出分離板51と、これを収集する収集筒52とで構成した。このとき、前記カメラ20で画像を撮影する間に米が動くと、正確な画像を撮影することができなくなる。よって、画像を撮影する間は米の供給を止め、撮影が終わると再び供給するようにした。即ち、前記フレームグラバー11を、カメラ20の作動状態を感知して、電源供給リレーを0.001秒単位の間隔で開閉するように構成した。このために、米供給筒40の回転ロール41と米を移送する回転円板50を駆動するモーターの作動を制御した。供給される米の量を調節するために、速度調節機(speed controller)60で、米供給筒40の回転ロール41と移送回転円板50を駆動するモーターの回転数を、手動で調節するようにした。この場合、前記下部照明22、速度調節機60、収集筒52を支持台70の上に装着した。
C. Rice supply and discharge device The rice supply device for supplying samples continuously is a rice supply cylinder 40 for discharging rice by a fixed amount by a rotating roll 41, and a rotation for transferring the supplied sample to the lower side of the camera 20. A disc 50, a discharge separation plate 51 for separating the sample after photographing, and a collecting cylinder 52 for collecting the sample were constituted. At this time, if the rice moves while the camera 20 captures an image, an accurate image cannot be captured. Therefore, the rice supply was stopped while taking the image, and it was supplied again after the image was taken. That is, the frame grabber 11 is configured to detect the operating state of the camera 20 and open and close the power supply relay at intervals of 0.001 seconds. For this purpose, the operation of the motor for driving the rotating roll 41 of the rice supply cylinder 40 and the rotating disk 50 for transferring the rice was controlled. In order to adjust the amount of rice supplied, the speed controller 60 is used to manually adjust the rotation speed of the motor that drives the rotary roll 41 and the transfer rotary disk 50 of the rice supply cylinder 40. I made it. In this case, the lower illumination 22, the speed controller 60, and the collecting cylinder 52 were mounted on the support base 70.

3.画像処理
画像処理とは、デジタル画像に対する最も基本的な処理であり、画像内に含まれているノイズの除去、画像が有する特徴の抽出及び各種基本操作を行なうフイルタリング操作等を行うものである。画像処理技法は、応用対象によって種々の形態に分類することが可能である。本発明では図3に示された手順によって画像処理を行い、一度に多数個ずつ供給される米の画像から一個ずつの米粒を分離して識別し、必要な情報を抽出した。
3. Image processing Image processing is the most basic processing for digital images, and includes removal of noise contained in the image, extraction of features of the image, and filtering operations for performing various basic operations. . Image processing techniques can be classified into various forms depending on the application object. In the present invention, image processing is performed according to the procedure shown in FIG. 3, and each rice grain is separated and identified from an image of rice supplied one by one, and necessary information is extracted.

A. 画像撮影
カラーCCDカメラ20で撮影された米の原画像は、フレームグラバー11によって640×480ピクセルのYUV2モデルに該当するデータ形態でメモリーに保存した。YUV2モデルのデータは、RGB24モデルのデータに変換されてバッファーに保存した。通常、カラー画像は、RGBの成分で表示するが、YUV形式で表示した理由は、画像を輝度成分と色差成分で表示すればRGBよりメモリーを效率的に使うことができ、また早い速度で処理することができるからである。YUV形式の場合にメモリーを效率的に使うことができる理由は、色差成分がそれぞれピクセルに対して与えられるものではなく、4個のピクセル当り1個の色差成分が与えられるからである。すなわち4:1:1のYUV形式の場合、画像を構成するピクセルを4個ずつ束ね、それぞれの輝度(Y)をサンプリングし、色差(U、V)としては4個のピクセルの平均値を取る。従って、ピクセルに4個の輝度と各1個ずつの色差(U、V)があるので、全体で6個のサンプルが得られる。従って、4個のピクセルにそれぞれ3個ずつの、全体で12個のサンプルがあるRGBの場合と比べると、メモリーを1/2に減らすことができる。ここで4:1:1ではなく、4:2:2であればYUV2モデルになる。
A. Image Capture The original rice image captured by the color CCD camera 20 was stored in memory by the frame grabber 11 in a data format corresponding to the 640 × 480 pixel YUV2 model. The YUV2 model data was converted to RGB24 model data and stored in a buffer. Normally, color images are displayed with RGB components, but the reason for displaying them in YUV format is that if the images are displayed with luminance and color difference components, memory can be used more efficiently than RGB, and processing can be performed at a higher speed. Because it can be done. The reason why the memory can be used efficiently in the YUV format is that color difference components are not given to each pixel, but one color difference component is given for every four pixels. That is, in the case of the 4: 1: 1 YUV format, four pixels constituting the image are bundled, the luminance (Y) is sampled, and the average value of the four pixels is taken as the color difference (U, V). . Therefore, since there are 4 luminances and 1 color difference (U, V) for each pixel, 6 samples are obtained in total. Therefore, the memory can be reduced to 1/2 compared to the RGB case where there are 3 samples for 4 pixels and 12 samples in total. If it is 4: 2: 2 instead of 4: 1, 1: 1, it becomes a YUV2 model.

B.二進化
これは、撮影された画像から、背景と分析対象物を分離することにより、特定情報を抽出するために、デジタル画像を黒色0と白色255の二つの値だけで表現する技法である。背景と分析対象物の特徴を分けるとき、明度の閾値(Threshold)を置く。閾値以下の値を0、閾値以上の値を1にすることにより、物体を容易に識別することができる。閾値の設定は、使用者の判断によって決まる場合もあり、動的閾値を判別する技法が利用される場合もある。前記外観品位判定装置においては、数十個の米をまとめて供給して一つの画像を撮影するので、供給される米の個数によって画像の明度が変わる。
B. This is a technique for expressing a digital image with only two values, black 0 and white 255, in order to extract specific information by separating the background and the analysis object from the captured image. When separating the background and the characteristics of the object to be analyzed, a lightness threshold is set. By setting the value below the threshold to 0 and the value above the threshold to 1, the object can be easily identified. The threshold setting may be determined by the user's judgment, or a technique for determining the dynamic threshold may be used. In the appearance quality determination device, since several tens of rice are supplied together and one image is taken, the brightness of the image changes depending on the number of supplied rice.

従って、固定された閾値を使うと、二進化に誤差が発生する。よって、大津(Otsu)法を使って動的閾値を判別するようにした。大津法は、大津が1979年に提案したアルゴリズムであり、今までにも多く参照されるアルゴリズムの一つであって、動的なイメージのヒストグラムから自動的に閾値を探し出す。大津法を概略的に説明すると次の通りである。0からL-1までのグレーレベル(Grey level)を有する画像のイメージが、図2のヒストグラムのような分布を表す時、0からL-1間の任意のグレーレベルをkとすると、kを基準にして、0からk点までの左側領域と、k+1からL-1までの右側領域に分けることができる。この時k値は、二つの領域の間の分散(σ2B(k))が最大になる点として決定される。
Therefore, if a fixed threshold is used, an error occurs in binarization. Therefore, the dynamic threshold is determined using the Otsu method. The Otsu method is an algorithm proposed by Otsu in 1979, and is one of the algorithms that have been referred to so far, and automatically finds a threshold value from a histogram of a dynamic image. An outline of the Otsu method is as follows. When an image having a gray level (Grey level) from 0 to L-1 represents a distribution like the histogram in FIG. 2, assuming that an arbitrary gray level between 0 and L-1 is k, k is As a reference, it can be divided into a left region from 0 to k points and a right region from k + 1 to L-1. At this time, the k value is determined as the point at which the variance (σ 2 B (k)) between the two regions is maximized.

ここで、kは任意の閾値、μTはヒストグラムの平均値、ω(k)は0次累積モーメント、μ(k)は1次累積モーメント、p(i)はヒストグラムの正規確率密度関数、n(i)はグレーレベルiにおけるピクセル(Pixel:画素)数、Nは総ピクセル数をそれぞれ意味する。   Here, k is an arbitrary threshold, μT is an average value of the histogram, ω (k) is a zero-order cumulative moment, μ (k) is a first-order cumulative moment, p (i) is a normal probability density function of the histogram, n ( i) is the number of pixels at gray level i, and N is the total number of pixels.

この方法は、照明及びノイズなど外部的な要因から起因したヒストグラムの変化に従ってではなく、測定しようとする米の量が変わって米粒の明るさが変化する場合に変化するヒストグラムに従って、能動的に閾値を検出することができる。   This method is not based on changes in the histogram due to external factors such as lighting and noise, but actively according to a histogram that changes when the amount of rice to be measured changes and the brightness of the rice grains changes. Can be detected.

C.接している米の境界分離
デジタル画像において、米を背景から分離しても多数個の米が互いに接している状態にあるので、個々の米粒の情報を抽出するためには、接している米を全て分離させて認識しなければならない。互いに接している米の境界を探して分離させるために、図3のように分岐点(Watershed)アルゴリズムを適用した。先ず、二進化された画像を3×3ユークリッドマスクを使って、外郭からの最短距離に距離変換(Distance Transform)した等高線状の画像を作る。
C. Boundary separation of adjacent rice In digital images, even if the rice is separated from the background, a large number of rice is in contact with each other, so in order to extract information on individual rice grains, All must be separated and recognized. To find and separate the borders of rice that touch each other, a watershed algorithm was applied as shown in FIG. First, using a 3 × 3 Euclidean mask, a contoured image is created by distance transforming the binarized image to the shortest distance from the outline.

分岐点変換(Watershed Transform)をするために、2次元の画像を3次元化した。3次元化した画像から接している米の稜線を判別して、追加の画像を作り、これを2進化された原画像と合成して、米が接している部分における境界線を付け、接している米粒を分離して、それぞれの米粒の画像を抽出した。   In order to perform a watershed transform, a 2D image was converted to 3D. Discriminate the ridgeline of rice that touches from the three-dimensional image, create an additional image, combine this with the binarized original image, attach the boundary line at the part where the rice touches, and touch The rice grains are separated and images of each rice grain are extracted.

次に、画像端部が擦り切れて破壊された画像、又は、小さい塵及び普通の米より大きい異物質等の、不必要な画像を消去(Edge off)した。選択された米粒の画像について、それぞれの米粒に、独立して区分するための認識番号を付与(Labeling)した。   Next, unnecessary images such as an image where the edge of the image was frayed and destroyed, or a small dust and a foreign substance larger than ordinary rice were removed (Edge off). For the selected rice grain image, each rice grain was labeled with an identification number for independent classification.

D.米の外観品質判定
米の外観品質の判定のための標準試料として活用するために、米を目視により、完全米、屑米、着色米、粉状質の米、ひびわれ米に分類した。これらの標準試料を、前記米外観品質判定装置を使用して画像を撮影し、外観品質判定に使う画像データを抽出した。本発明においては、米の外観品質判定のために、長軸長さ、短縮長さ、幅、面積、周囲の長さ、赤色(Red)、緑色(Green)、青色(Blue)、青緑色(Cyan)、赤紫色(Magenta)、黄色(Yellow)、黒色(Black)、色相(Hue Value)、彩度(Saturation)、濃度(Intensity)の平均及び標準偏差などの画像データを抽出して用いた。
D. Appearance quality judgment of rice In order to use it as a standard sample for judging the appearance quality of rice, the rice was visually classified into complete rice, waste rice, colored rice, powdery rice, and cracked rice. These standard samples, taking an image using the rice appearance quality judging device, and extracts the image data used for appearance quality determination. In the present invention, the major axis length, shortened length, width, area, perimeter length, red (Red), green (Blue), blue (Blue), blue-green ( Cyan), reddish purple (Magenta), yellow (Yellow), black (Black), hue (Hue Value), saturation (Saturation), density (Intensity) average and standard deviation image data was extracted and used .

3.米の外観品質判定アルゴリズム
A.画像の二進化と米の明るさ変化の補正
デジタル画像から米と背景とを分離するときに、図4に示すように、明るさが互いに異なる2つの画像に対して閾値T=165を適用して二進化すると明るさが変化するので、米と背景とが明確に分離されなくなるため、明るさの変化に従って閾値を変更しなければならない。これは、供給される米の量に依存する各米の明るさの変化によって、強度ヒストグラムが変化して生じる現象である。
3. Rice Appearance Quality Judgment Algorithm A. Image binarization and correction of rice brightness change When separating rice and background from a digital image, a threshold T = 165 is applied to two images with different brightness, as shown in Figure 4. Since the brightness changes when it is binarized, the rice and the background are not clearly separated, so the threshold must be changed according to the change in brightness. This is a phenomenon that occurs when the intensity histogram changes due to changes in the brightness of each rice depending on the amount of rice supplied.

これを防止するために、大津アルゴリズムを利用して、米と背景とを区分するための濃度の閾値を能動的に計算するコンピュータープログラムを作成した。図7は、大津アルゴリズムを利用して、明るさが互いに異なる2個の画像に対して計算された閾値と、二進化された結果を表わしたものである。大津アルゴリズムを利用することにより、米と背景とを区分するための濃度閾値を能動的に計算することができる。大津アルゴリズムを使わないで二進化した結果を表した図6と比べると、二進化の性能が改善されたことを確認することができる。   In order to prevent this, a computer program that actively calculates the threshold of concentration for distinguishing rice and background was created using the Otsu algorithm. FIG. 7 shows threshold values calculated for two images with different brightness and binarized results using the Otsu algorithm. By using the Otsu algorithm, it is possible to actively calculate a concentration threshold for distinguishing rice from the background. Compared to Fig. 6 which shows the result of binarization without using the Otsu algorithm, we can confirm that the performance of binarization has been improved.

B.接している米の境界分離
デジタル画像で米を背景から分離させても、多数個の米が互いに接している状態である。よって、個々の米粒の情報を抽出するためには、接している米をすべて分離させて認識する必要がある。接している米の境界を探して分離させるために、距離変換(Distance transform)及び分岐点変換(Watershed transform)アルゴリズムを適用した。図8は距離変換の過程を表わしたものである。図8(b)のような二進化画像から、図8(d)のような等高線状をした距離マップ(Distance map)を作成した。
B. Boundary separation of rice in contact Even if the rice is separated from the background in the digital image, a large number of rice is in contact with each other. Therefore, in order to extract information on individual rice grains, it is necessary to separate and recognize all the rice in contact. A distance transform and a watershed transform algorithm were applied to find and separate the borders of the touching rice. FIG. 8 shows the process of distance conversion. A distance map (Distance map) having contour lines as shown in FIG. 8 (d) was created from the binarized image as shown in FIG. 8 (b).

米粒同士が重なっている場合、その境界を分けるために図8(d)のような距離マップの画像から分岐点変換によって図9(a)のように境界線を抽出する。これを流域分割と言い、距離変換を利用した分割、傾きを利用した分割、マーカー制御を利用した分割があるが、本発明では距離変換による流域分割(valley segmentation)を用いた。このように得られた流域稜線(valley ridge)の画像を反転(Inverse)させた後、二進画像と接合(And)させれば、接している米の境界線が離れて認識される。図9は、接している米の境界線を探し出す過程を示した図である。   When rice grains overlap each other, a boundary line is extracted as shown in FIG. 9 (a) by branch point transformation from an image of a distance map as shown in FIG. 8 (d) in order to separate the boundaries. This is called basin division, and there are division using distance conversion, division using inclination, and division using marker control. In the present invention, basin segmentation by distance conversion is used. If the image of the valley ridge obtained in this way is inverted (Inverse) and then joined with a binary image (And), the borderline of the rice that is in contact is recognized apart. FIG. 9 is a diagram showing the process of finding the borderline of the rice in contact.

流域稜線(valley ridge)を探し出す正確度は、距離マップの間隔からも多くの影響を受ける。即ち、距離マップの間隔があまり大きいと、流域稜線の検出が困難になる。距離マップの間隔があまり詰まっていると、図10(b)のように、正常な米の画像を幾つかに分離する結果をもたらす。   The accuracy of finding the valley ridge is also greatly influenced by the distance of the distance map. In other words, if the distance between the distance maps is too large, it becomes difficult to detect the basin ridgeline. When the distance between the distance maps is too small, as shown in FIG. 10 (b), a normal rice image is separated into several parts.

ここで、それぞれの米粒を分析するために、図9(d)のように、米粒を独立に区分して名前を与えることをラベリングと言う。 このために各ピクセルが互いに離れているのか接しているのかを判断し、離れている画素には違う名前を、接しているピクセルには同じ名前を付与する。
本発明では繰り返し(recursive)成分ラベリングアルゴリズムを用いた。
Here, in order to analyze each rice grain, as shown in FIG. 9 (d), it is called labeling to give a name by dividing the rice grain independently. For this purpose, it is determined whether the pixels are separated from each other or are in contact with each other, and different names are assigned to the separated pixels, and the same name is assigned to the pixels in contact.
In the present invention, a recursive component labeling algorithm is used.

C.米の外観品位判定
ラべリング(labeling)で米に番号が付与され、それぞれの米の面積を計算するが、屑米であるか否かは、米の面積を基準に判定した。一般的に米の面積は米の画像が占めるピクセルの個数をすべて合わせたものと同じである。従って、米のピクセル数が米の面積となり、本発明では、米の画像のピクセル数が1,000以下である場合に屑米と判定した。図11は、本実施例における米外観品位判定装置で撮影した屑米の画像を示した図である。
C. Appearance quality judgment of rice The number is given to the rice by labeling and the area of each rice is calculated, but whether or not it is waste rice was determined based on the area of the rice. In general, the area of rice is the same as the total number of pixels occupied by the rice image. Therefore, the number of pixels of rice becomes the area of rice, and in the present invention, when the number of pixels of the rice image is 1,000 or less, it is determined as waste rice. FIG. 11 is a diagram illustrating an image of waste rice taken by the rice appearance quality determination device according to the present embodiment.

粉状質の米と着色米は、米の画像の色情報を比べて判定した。まず、粉状質の米はRGB色座標において、Red値>Blue値であると共に、Red値>Yellow値である場合に粉状質の米として区分した。しかしながら、完全米の一部が粉状質の米に判別される場合がある。そこで、粉状質の米の中でGreen値-Black値>6,000である場合は、完全米として区分した。一方、着色米はRed値>Blue値でありながらRed値<Yellow値であるか着色ピクセル数が30以上であれば、着色米として区分した。しかしながら、一部の粉状質の米の中でも着色米として判別される場合がある。そこで、着色米の中でYellow値-Red値が5000以上であり、(着色ピクセル数)X3<(白ピクセル数)である場合は、粉状質米として区分した。   Powdered rice and colored rice were judged by comparing the color information of the rice image. First, powdery rice was classified as powdery rice when Red value> Blue value and Red value> Yellow value in RGB color coordinates. However, some of the complete rice may be identified as powdered rice. Therefore, when the green value-Black value> 6,000 among the powdery rice, it was classified as complete rice. On the other hand, colored rice was classified as colored rice if Red value> Blue value but Red value <Yellow value or the number of colored pixels was 30 or more. However, some powdery rice may be identified as colored rice. Therefore, when the Yellow value-Red value was 5000 or more among the colored rice and (the number of colored pixels) X3 <(the number of white pixels), it was classified as powdery rice.

図12は、本発明の米外観品位判定装置で撮影した、粉状質の米と着色米の画像を示す図である。割れ米、着色米又はひび割れ米でないものは、完全米として判別した。また完全米の中で、ひびがある米をひびわれ米として判定した。   FIG. 12 is a diagram showing images of powdery rice and colored rice taken by the rice appearance quality determination device of the present invention. Rice that was not cracked rice, colored rice or cracked rice was determined as complete rice. Also, among the complete rice, cracked rice was judged as cracked rice.

ひびわれ米の判定にはエッジ(edge)判別法を用いた。すなわち、ひびわれ米は、米表面にひびがある部分の明るさが、他の部分の明るさと差があることを利用して識別した。このため、カメラで撮った画像からそれぞれの米粒の画像を分離して、米一粒ごとに一つの画像を作った。そして、米の長軸が水平方向に対して傾いた角度(orientation angle)を計算した後に、長軸が水平になるように米粒を回転させて配列させ、垂直エッジ判別演算子を利用して、垂直エッジ成分を抽出した。   An edge discrimination method was used to determine cracked rice. That is, cracked rice was identified using the fact that the brightness of the cracked portion of the rice surface is different from the brightness of the other portions. For this reason, the image of each rice grain was separated from the image taken with the camera, and one image was made for each rice grain. And after calculating the angle (orientation angle) that the major axis of rice is inclined with respect to the horizontal direction, the rice grains are rotated and arranged so that the major axis is horizontal, and using the vertical edge discriminating operator, The vertical edge component was extracted.

しかしながら、抽出された垂直エッジ成分のすべてがひびの成分であるということはないので、垂直成分を厚くするために、垂直強化フイルタリングを行った。ひびの成分を分離するために、平均−標準偏差値を使って二進化した。次に、シニング(thinning)を行って、厚いひびの成分を薄くした。純粋なひびの画像を作成するために、小さいひびを取り除いた。原画像とひびの画像を合成して、米にひびを示した。   However, not all of the extracted vertical edge components are cracked components, so vertical enhancement filtering was performed to thicken the vertical components. To separate the crack components, it was binarized using mean-standard deviation values. Next, thinning was performed to thin the thick crack component. Small cracks were removed to create a pure cracked image. The original image and the cracked image were combined to show cracks in the rice.

図13は、本発明の米外観品位判定装置で撮影した、完全米の画像を表わしたものである。この場合に、ひびを検出するために作成されたアルゴリズムによって処理する過程を、図14に表わした。   FIG. 13 shows an image of complete rice taken by the rice appearance quality determination device of the present invention. In this case, FIG. 14 shows a process performed by an algorithm created for detecting cracks.

4.搗精品位自動判定機の製作
A.搗精品位自動判定機の構造
図1及び図2に示した構成の米搗精品位自動判定機を製作した。本発明の米の搗精品位測定装置は、米を供給して画像を撮影する駆動部と、撮影された画像を分析するコンピューターで構成されている。駆動部は、回転ロール41を具備して米を一定量ずつ供給する米供給筒40と、供給された米を、CCDカメラ20の下部に移送させる半透明アクリルで作った回転円板(Φ500mm)50で構成された。前記回転円板50の上に試料台30が装着され、上部照明21として米を照明する12W容量の白熱燈1個、及びCCDカメラ20(LGハニウェル、GC-450NA-G)が装着された。
4). Manufacture of precision grade automatic judgment machine A. The structure of an automatic quality determining machine for rice bran quality An automatic rice quality determining machine with the configuration shown in Figs. 1 and 2 was manufactured. The rice bran quality measuring apparatus of the present invention includes a drive unit that supplies rice and captures an image, and a computer that analyzes the captured image. The drive unit is equipped with a rotating roll 41 and a rice supply cylinder 40 that supplies rice in a certain amount, and a rotating disk (Φ500mm) made of translucent acrylic that transfers the supplied rice to the lower part of the CCD camera 20 Consists of 50. A sample stage 30 was mounted on the rotating disk 50, and a 12 W capacity incandescent lamp for illuminating the rice as the upper illumination 21, and a CCD camera 20 (LG Honeywell, GC-450NA-G) were mounted.

前記CCDカメラ20には、前面に焦点距離6mm、明るさF1.2のレンズが取り付けられており、焦点と光量を調節することができる。前記CCDカメラ20は、上下方向に高さを調節できるように製作した。また、画像撮影が終わった米を排出するための排出分離板51と収集筒52を設置し、前記回転円板50の下部にも、下部照明22として4W容量の照明用蛍光燈2個を設けた。前記米供給筒40の回転ロール41及び前記回転円板50の速度を調節するために、速度調節機60を取り付けた。   The CCD camera 20 is provided with a lens with a focal length of 6 mm and a brightness of F1.2 on the front surface, so that the focus and the amount of light can be adjusted. The CCD camera 20 was manufactured so that the height could be adjusted in the vertical direction. In addition, a discharge separation plate 51 and a collection cylinder 52 for discharging rice after image shooting are installed, and two fluorescent lamps for illumination with 4 W capacity are provided as the lower illumination 22 at the lower part of the rotating disk 50. It was. In order to adjust the speeds of the rotary roll 41 and the rotary disc 50 of the rice supply cylinder 40, a speed adjuster 60 was attached.

試作機に使われたコンピューター10はペンティアム(登録商標)IV(2,0G、DDR2-RAM512M)であり、O/SとしてはWindows(登録商標) XPを使った。試作機の作動方法は、米供給筒40に測定する米を入れた後、回転円板(50)の作動スィッチを押して、一番前に供給された米がCCDカメラ20の下部に供給された後、回転円板50の作動を止める。そして、コンピューターモニターで明るさ測定モードを押して明るさが基準範囲内にあるかを確認する。その後、開始ボタンを押すと、自動で米が供給されながら分析される。測定される間、米の画像と分析結果がリアルタイムでモニターに表示される。分析が終わると、結果値をモニターに表示しながら、テキストファイルでデータがコンピューターの保存装置に保存される。コンピューター内に内蔵したフレームグラバー11は、Windows(登録商標) 2000、Windows(登録商標) XPのOSで使用可能になるように、WDM(Windows(登録商標) Driver Model)方式のBT878チップ(chip)を使って自作した。画像処理プログラムは、MFC(Microsoft Foundation Class Library)方式でビジュアル(Visual)C++言語を使って作成した。   The computer 10 used in the prototype was a Pentium (registered trademark) IV (2,0G, DDR2-RAM512M), and Windows (registered trademark) XP was used as the O / S. The operation method of the prototype is that after the rice to be measured is put into the rice supply cylinder 40, the operation switch of the rotating disk (50) is pushed, and the rice supplied at the front is supplied to the lower part of the CCD camera 20. Then, the operation of the rotating disk 50 is stopped. Then, press the brightness measurement mode on the computer monitor to check whether the brightness is within the reference range. After that, when the start button is pressed, rice is automatically analyzed while being analyzed. While being measured, rice images and analysis results are displayed on the monitor in real time. When the analysis is completed, the data is stored in a computer storage device as a text file while the result value is displayed on the monitor. The frame grabber 11 built into the computer is a WDM (Windows (registered trademark) Driver Model) BT878 chip so that it can be used with Windows (registered trademark) 2000 and Windows (registered trademark) XP operating systems. I made it myself. The image processing program was created using the Visual C ++ language with the MFC (Microsoft Foundation Class Library) method.

B.米外観品位判定性能
多様な形態と色の米を任意に調合し、供給された米を試作機を使って分析した結果、接している米等を、ソフトウェア的に分離させて個別に認識する精度は98%であった。この精度は、Visenら(2001)が楕円合わせ法(ellipse fitting method)を使って、小麦・麦・ライ麦・オート麦に関して、接触している穀粒などを、個々の穀粒に認識した時の精度が平均98.6%であったという研究結果と比べて、はるかに改善されたと判断された。即ち、Visenらの研究結果は、接触点での曲率変化が明確でなかった場合、又は、互いに接触した穀粒の画像から個々の穀粒を分離する時に、境界面が不規則で接触面が明確でなかった場合には、識別精度が下がり、また、これらの方法は、形状が似ている穀粒に対しては適用させることができるが、形状が異なる異種穀粒又は割れた穀粒などが混入すると、又は、穀粒が接している形が不規則的で複雑になると、個々の穀粒を分離・認識する精度が低下したりしたからである。
B. Rice appearance quality judgment performance As a result of arbitrarily blending rice of various forms and colors and analyzing the supplied rice using a prototype machine, the accuracy of recognizing the rice that is in contact with each other by software separation Was 98%. This accuracy was obtained when Visen et al. (2001) used the ellipse fitting method to recognize the grains that were in contact with wheat, wheat, rye, and oats as individual grains. Compared to the study result that the accuracy was 98.6% on average, it was judged to be much improved. That is, the research results of Visen et al. Show that when the curvature change at the contact point is not clear, or when individual grains are separated from the images of grains in contact with each other, the boundary surface is irregular and the contact surface is If it is not clear, the identification accuracy is lowered, and these methods can be applied to grains with similar shapes, but different kinds of grains or broken grains with different shapes, etc. This is because the accuracy of separating and recognizing individual grains decreases if the shape where the grains come into contact or the shape in contact with the grains is irregular and complicated.

試作機は屑米を100%判定することができた。図15に割れた米を分析した結果を表わした。図16に粉状質の米94個と屑米6個を分析した結果を表わした。粉状質の米の中で、1個が完全米と判別されたことから、判別正確度は98.9%であった。図17は着色米95個と屑米5個を分析した結果を表わし、着色米の中で1個が粉状質の米と判別されたことから、判別正確度は98.9%であった。図18は完全米93個と割れた米12個を分析した結果を表わす。完全米の中で3個が粉状質の米と判別されたことから、判別の正確度は96.8%であった。また、完全粒の目視判別によると、ひび割れ米の個数は73個であったのに対し、試作機による判別結果は68個であり、判別正確度は93.2%であった。   The prototype was able to judge 100% of waste rice. FIG. 15 shows the result of analyzing broken rice. FIG. 16 shows the results of analysis of 94 powdery rice and 6 waste rice. The accuracy of discrimination was 98.9% because one of the powdery rice was identified as complete rice. FIG. 17 shows the results of analysis of 95 colored rices and 5 waste rices. One of the colored rices was identified as powdery rice, and the discrimination accuracy was 98.9%. FIG. 18 shows the result of analyzing 93 perfect rices and 12 broken rices. The accuracy of discrimination was 96.8% because three of the rice were identified as powdery rice. Moreover, according to the visual discrimination of the complete grain, the number of cracked rice was 73, whereas the discrimination result by the prototype was 68, and the discrimination accuracy was 93.2%.

また、100粒の米粒を判定するのに所要された時間は約15秒であった。これは、既存の判定方法による時間に比べて非常に短く、優秀である。本発明の判定方法を使用することにより、既存の製品より構成が簡単であり、製作費用も安価な装置とすることができるThe time required to determine 100 rice grains was about 15 seconds. This is very short and excellent compared to the time required by the existing determination method . By using the determination method of the present invention, it is possible to provide a device that is simpler in construction than existing products and less expensive to manufacture.

本発明の白米及び玄米の外観品位測定方法によれば、目視で判別する時の労力と時間を節減することができるだけでなく、機械的基準によって判別するので、判別の客観性を確保することができるという効果がある。 According to the appearance quality measurement method of white rice and brown rice of the present invention, not only can save labor and time at the time of determination visually, so determined by the mechanical reference, ensuring the objectivity of judgment There is an effect that can be.

また、本発明の白米及び玄米の外観品位測定方法によれば、白米又は玄米を1粒ずつ供給して判別する既存のシステムとは異なり、数十個の白米又は玄米を連続的に供給してそれぞれの白米又は玄米の粒の品位が判別できる上、白米又は玄米を1粒ずつ供給する装置が不必要になるので、製品価格を画期的に低減することができると供に、数十個の米粒又は玄米粒を供給しながらリアルタイムで判別するので、判別時間も短縮することができるという効果がある。 Further, according to the white rice and the appearance quality measuring method of the brown rice of the present invention, unlike existing systems to determine by supplying milled rice or brown rice one grain, continuously feeding dozens of milled rice or brown rice In addition, the quality of each white rice or brown rice grain can be discriminated, and a device for supplying white rice or brown rice one by one is not necessary. Since it discriminates in real time while supplying individual rice grains or brown rice grains, there is an effect that the discrimination time can be shortened.

以上、本発明の好ましい実施例を説明したが、本発明は、玄米は勿論、小麦や麦、オート麦及びライ麦等、その他の穀物の外観品位判定にも適用することができる。そして、本発明の範囲はこのような特定の実施例によって限定されず、該当分野で通常の知識を有する者であれば、本発明の特許請求範囲内に記載された範疇で、適切に変更することが可能である。   As mentioned above, although the preferable Example of this invention was described, this invention can be applied also to the appearance quality determination of other grains, such as wheat, wheat, oat, and rye, as well as brown rice. Further, the scope of the present invention is not limited by such specific embodiments, and those who have ordinary knowledge in the relevant field can make appropriate changes within the scope described in the claims of the present invention. It is possible.

10:コンピューター
11:フレームグラバー
20:CCDカメラ
21:上部照明
22:下部照明
30:試料台
40:供給筒
41:回転ロール
50:回転円板
51:排出分離板
52:収集筒
60:スピードコントロール
10: Computer 11: Frame grabber 20: CCD camera 21: Upper illumination 22: Lower illumination 30: Sample stage 40: Supply cylinder 41: Rotating roll 50: Rotating disc 51: Discharge separation plate 52: Collection cylinder 60: Speed control

Claims (2)

試料台の上に置かれた白米又は玄米をカメラで撮影する工程と;
該カメラによって撮影された白米又は玄米の原画像をフレームグラバーによってRGB又はYUVモデルに該当するデータ形態で保存する工程と;
保存された画像を二進化する工程と;
二進化された画像を最短距離に距離変換(Distance Transform)して等高線形の2次元画像を作る工程と;
前記2次元画像を3次元化して、分岐点変換(Watershed Transform)を通じて境界線を抽出する工程と;
前記境界線を基準にして接している白米又は玄米の画像を分離し、それぞれの白米又は玄米の画像に対してラベリングをする工程と;
前記工程でラベリングされた各白米又は玄米の画像を分析して完全米、粉状質の米、屑米、ひびわれ米、着色米又は完全玄米、粉状質の玄米、屑米、ひびわれ玄米、着色玄米の中の一つ以上の割合及び個数を判定する工程とからなることを特徴とする白米及び玄米の外観品位測定方法。
Taking a picture of white rice or brown rice placed on a sample table with a camera;
Storing an original image of white rice or brown rice photographed by the camera in a data format corresponding to an RGB or YUV model by a frame grabber;
The process of binarizing stored images;
Creating a contoured two-dimensional image by distance transforming the binarized image to the shortest distance;
Converting the two-dimensional image into a three-dimensional image and extracting a boundary line through a watershed transform;
Separating the image of white rice or brown rice that is in contact with the boundary line, and labeling the image of each white rice or brown rice;
Analyzing the image of each white rice or brown rice labeled in the above process, complete rice, powdery rice, waste rice, cracked rice, colored rice or complete brown rice, powdery brown rice, waste rice, cracked brown rice, coloring A method for measuring the appearance quality of white rice and brown rice, comprising the step of determining the ratio and number of one or more brown rice.
前記保存された画像を二進化する工程が、白米又は玄米と背景とを区分するための濃度の閾値を能動的に計算することができるように、大津(Otsu)アルゴリズムを用いる、請求項1に記載された白米又は玄米の外観品位測定方法。   The method of claim 1, wherein the step of binarizing the stored image uses an Otsu algorithm so that a threshold of concentration for distinguishing between white rice or brown rice and background can be actively calculated. The method for measuring the appearance quality of the described white rice or brown rice.
JP2012216963A 2007-10-01 2012-09-28 Method for measuring the appearance quality of white rice and brown rice Expired - Fee Related JP5706860B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020070098650A KR100903704B1 (en) 2007-10-01 2007-10-01 The White and Brown Rice Appearance Characteristics Measurement System and the Same Method
KR10-2007-0098650 2007-10-01

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010527882A Division JP5368455B2 (en) 2007-10-01 2008-09-30 Appearance quality measuring device for white rice and brown rice

Publications (2)

Publication Number Publication Date
JP2013029520A true JP2013029520A (en) 2013-02-07
JP5706860B2 JP5706860B2 (en) 2015-04-22

Family

ID=40526401

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2010527882A Active JP5368455B2 (en) 2007-10-01 2008-09-30 Appearance quality measuring device for white rice and brown rice
JP2012216963A Expired - Fee Related JP5706860B2 (en) 2007-10-01 2012-09-28 Method for measuring the appearance quality of white rice and brown rice

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2010527882A Active JP5368455B2 (en) 2007-10-01 2008-09-30 Appearance quality measuring device for white rice and brown rice

Country Status (3)

Country Link
JP (2) JP5368455B2 (en)
KR (1) KR100903704B1 (en)
WO (1) WO2009045035A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015146744A1 (en) * 2014-03-27 2015-10-01 株式会社タカコ Tool inspection method and tool inspection device

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5533245B2 (en) * 2010-05-19 2014-06-25 株式会社サタケ Method for calculating weight ratio by quality in grain appearance quality discrimination device
EP2674746A1 (en) * 2012-06-13 2013-12-18 Bayer CropScience AG Device and method for optical quality control of the coating and staining of a granular substrate
WO2015102011A1 (en) * 2013-12-30 2015-07-09 Buhler (India) Pvt. Ltd. A method and an arrangement for measuring the gloss of grains
KR101430898B1 (en) * 2014-04-10 2014-08-14 김한중 Digital rice characteristics measurement apparatus
CN104484653A (en) * 2014-12-16 2015-04-01 郑州大河智信科技股份公司 Bad corn kernel detecting method based on image recognition technology
JP6494409B2 (en) * 2015-05-07 2019-04-03 伊藤忠食糧株式会社 Cooked rice quality inspection system and cooked rice quality inspection system program
KR102128110B1 (en) * 2018-07-02 2020-06-29 주식회사 체이스 Particle shape analysis device
CN109211740A (en) * 2018-10-31 2019-01-15 江南大学 It is a kind of based on image recognition to the rapid detection method of broken rice rate
KR101996851B1 (en) * 2018-11-07 2019-07-05 이광열 Method for polishing rice
CN109598328B (en) * 2018-11-21 2023-09-12 山东农业大学 Distributed thousand grain counting method, system, device and terminal
JP7402451B2 (en) 2019-01-17 2023-12-21 山形県 Alkali decay test method
CN110221032B (en) * 2019-07-09 2020-08-07 浙江五芳斋实业股份有限公司 Rice quality detection method based on near infrared spectrum
KR102340788B1 (en) * 2019-11-29 2021-12-17 주식회사 대풍 A Manufacturing Method of the Whole Cottonseed which is inhibited germination using by cracking method.
CN111311539A (en) * 2019-12-31 2020-06-19 沈阳工业大学 Precision detection method applied to rice mill
CN112229836B (en) * 2020-09-15 2022-02-15 华南农业大学 Detection device and detection method for rice filled grains and rice empty grains
CN114486877B (en) * 2020-10-23 2024-01-19 合肥美亚光电技术股份有限公司 Rice quality detection method, rice quality detection device and storage medium
CN112730273B (en) * 2021-01-06 2021-10-12 淮阴工学院 Portable rice quality detection device and detection method thereof
CN113776996A (en) * 2021-07-28 2021-12-10 深圳市麦稻智联科技有限公司 Rice appearance detection system and method
KR102638903B1 (en) * 2021-12-21 2024-02-22 공주대학교 산학협력단 Apparatus and method for vision analyzing surface fine abrasive particle of abrasive tool
CN114295617B (en) * 2021-12-31 2022-10-04 黑龙江省农业科学院农产品质量安全研究所 Intelligent detector for detecting chalkiness and chalkiness of rice
KR102393522B1 (en) * 2022-03-28 2022-05-03 주식회사 두레농산 Apparatus of controling polished rice for quality control of rice by regional group

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09231342A (en) * 1996-02-26 1997-09-05 Sanyo Electric Co Ltd Method and device for inspecting tablet
JP2005083775A (en) * 2003-09-05 2005-03-31 Seirei Ind Co Ltd Grain classifier
WO2006125674A1 (en) * 2005-05-25 2006-11-30 Stiftelsen Universitetsforskning Bergen Microscope system and screening method for drugs, physical therapies and biohazards

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6110751Y2 (en) * 1979-09-05 1986-04-05
JPS6140108Y2 (en) * 1981-04-28 1986-11-17
JPS62106348A (en) * 1985-11-01 1987-05-16 Juzo Isono Apparatus for inspecting transparent or translucent sphere
JPH04296099A (en) * 1991-03-26 1992-10-20 Matsushita Electric Ind Co Ltd Electronic part mounting equipment with recognizing function
JPH05133883A (en) 1991-11-12 1993-05-28 Shizuoka Seiki Co Ltd Determining method of quality of unhulled rice
KR970005501B1 (en) * 1993-06-16 1997-04-16 박득표 Particle size measuring apparatus using image process
US5642198A (en) * 1995-04-03 1997-06-24 Long; William R. Method of inspecting moving material
JP3572750B2 (en) * 1995-10-26 2004-10-06 石川島播磨重工業株式会社 Automatic evaluation method for concrete defects
JP3516121B2 (en) * 1997-06-24 2004-04-05 東芝機械株式会社 How to raise the operating oil temperature in the overhead tank
JPH1137948A (en) * 1997-07-23 1999-02-12 Seibutsukei Tokutei Sangyo Gijutsu Kenkyu Suishin Kiko Rice quality evaluation system
JP2000111542A (en) * 1998-09-30 2000-04-21 Nippon Seimai Kogyokai Comprehensive inspection and evaluation method for rice
JP2000111483A (en) * 1998-10-02 2000-04-21 Dainippon Printing Co Ltd Method and apparatus for inspection of cyclic pattern
JP3086800B2 (en) * 1998-11-06 2000-09-11 株式会社大阪砕石工業所 Method and apparatus for measuring particle size distribution of sand or gravel
WO2000033251A1 (en) * 1998-11-30 2000-06-08 Yamatake Corporation Particle recognition device
KR100295396B1 (en) * 1998-12-31 2001-10-26 장 병 덕 Goetan automatic sorting device
JP2000304702A (en) * 1999-04-22 2000-11-02 Satake Eng Co Ltd Method and apparatus for discriminating grade of granular article
JP2002126657A (en) * 2000-10-30 2002-05-08 Satake Corp Rice grain grade deciding apparatus
KR20030005501A (en) * 2001-07-09 2003-01-23 에이티아이 주식회사 Image processing system having a switching apparatus and method therefor
JP2003116042A (en) * 2001-10-02 2003-04-18 Canon Inc Uneven sensitivity remover, image pickup device, and uneven display testing system of display device
JP2003294641A (en) * 2002-02-01 2003-10-15 Toyama Chem Co Ltd Particle foreign object inspecting method and apparatus thereof
US7364043B2 (en) * 2003-12-30 2008-04-29 Zen Voce Manufacturing Pte Ltd Fastener inspection system
JP4159526B2 (en) * 2004-09-03 2008-10-01 株式会社山本製作所 State inspection device for granular inspection objects

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09231342A (en) * 1996-02-26 1997-09-05 Sanyo Electric Co Ltd Method and device for inspecting tablet
JP2005083775A (en) * 2003-09-05 2005-03-31 Seirei Ind Co Ltd Grain classifier
WO2006125674A1 (en) * 2005-05-25 2006-11-30 Stiftelsen Universitetsforskning Bergen Microscope system and screening method for drugs, physical therapies and biohazards

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JPN6014037461; 応用力学論文集 Vol.8, 20050822, p.541〜548, (社)土木学会 *
JPN6015005969; A.M.Nazar et al.: 'Image Processing for Particle Characterization' MATERIALS CHARACTERIZATION Vol.36, 1996, pp.165-173 *
JPN6015005970; Dipti Prasad Mukherjee et al.: 'Level Set Analysis for Leukocyte Detection and Tracking' IEEE TRANSACTIONS ON IMAGE PROCESSING Vol.13 No.4, 2004, pp.562-572 *
JPN7014000015; Radnaabazar Chinchuluun: 'Machine Vision Based Citrus Yield Mapping System on a Continuous Canopy Shake and Catch Harvester' A Thesis Presented to the Graduate School of the University of Florida in Partial Fulfillment of the , 200708, p.1〜78, University of Florida *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015146744A1 (en) * 2014-03-27 2015-10-01 株式会社タカコ Tool inspection method and tool inspection device
JP2015190770A (en) * 2014-03-27 2015-11-02 株式会社タカコ Tool inspection method and tool inspection device

Also Published As

Publication number Publication date
JP5368455B2 (en) 2013-12-18
JP5706860B2 (en) 2015-04-22
WO2009045035A1 (en) 2009-04-09
KR100903704B1 (en) 2009-06-19
KR20090033568A (en) 2009-04-06
JP2010540957A (en) 2010-12-24

Similar Documents

Publication Publication Date Title
JP5706860B2 (en) Method for measuring the appearance quality of white rice and brown rice
US11727560B2 (en) Wound imaging and analysis
CN110389127B (en) System and method for identifying metal ceramic parts and detecting surface defects
US11562473B2 (en) Automated system and method for clarity measurements and clarity grading
US8606002B2 (en) Apparatus, method and article for evaluating a stack of objects in an image
EP2586873A1 (en) Method for detecting microorganisms, device for detecting microorganisms and program
JP2000508095A (en) Boundary mapping system and method
JP7467205B2 (en) Method for optically detecting biomarkers - Patents.com
CN111122590A (en) Ceramic surface defect detection device and detection method
JP2006201130A (en) Method and apparatus for nondestructively determining damaged unhusked rice grain
CN110110810B (en) Squid quality grade identification and sorting method
Delwiche et al. Prune defect detection by line-scan imaging
TW201818350A (en) Cell measurement method
US6845178B1 (en) Automatic separation of subject pixels using segmentation based on multiple planes of measurement data
US20230222641A1 (en) Method and apparatus for identifying characteristics of trading cards
KR20230139166A (en) Inspection Method for Wood Product
JP4115378B2 (en) Defect detection method
Lu et al. Detecting defects on citrus surface based on circularity threshold segmentation
CN113484250A (en) Method for manufacturing colorimetric card for evaluating color of potato peel and potato pulp and evaluation method
JP4036048B2 (en) Defect identification method
JP2003126786A (en) Detecting device of raisin with stalk
Jaisharma RICE QUALITY ANALYSIS USING MACHINE LEARNING
Luo Color image analysis for cereal grain classification
Dowell et al. Damage detection in peanut grade samples using chromaticity and luminance
CA3081739A1 (en) Method and apparatus for identifying characteristics of trading cards

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140110

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140401

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140902

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141128

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150217

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150227

R150 Certificate of patent or registration of utility model

Ref document number: 5706860

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees