JPH04286924A - Color-detecting type classifying apparatus - Google Patents

Color-detecting type classifying apparatus

Info

Publication number
JPH04286924A
JPH04286924A JP5121491A JP5121491A JPH04286924A JP H04286924 A JPH04286924 A JP H04286924A JP 5121491 A JP5121491 A JP 5121491A JP 5121491 A JP5121491 A JP 5121491A JP H04286924 A JPH04286924 A JP H04286924A
Authority
JP
Japan
Prior art keywords
value
color
color space
measured
coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5121491A
Other languages
Japanese (ja)
Inventor
Tsutomu Furuya
古谷 努
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.)
Japan Tobacco Inc
Original Assignee
Japan Tobacco Inc
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 Japan Tobacco Inc filed Critical Japan Tobacco Inc
Priority to JP5121491A priority Critical patent/JPH04286924A/en
Publication of JPH04286924A publication Critical patent/JPH04286924A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily set reference information which has been obtained in advance for determining a type in an apparatus for classifying objects to be measured such as leaf tobacco based on a color. CONSTITUTION:A color space value from a color sensor 1 is input from a measurement controller 3 to a non-linear arithmetic part 4, where a determination value is output. A coefficient of the nonlinear arithmetic part 4 is set based on the color space value and an evaluated value as for a plurality of objects to be measured which have been classified into a plurality of types which are input from an input means 6. The coefficient is set so that an error between the evaluated value and the determination value of the non-linear arithmetic part 4 is minimum.

Description

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

【0001】0001

【産業上の利用分野】本発明は、収穫して乾燥された葉
たばこや各種農産物の品質の格付けに用いるのに適した
原料種別装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a raw material sorting device suitable for use in grading the quality of harvested and dried leaf tobacco and various agricultural products.

【0002】0002

【従来の技術】従来、葉たばこの品質は、葉たばこの着
葉位置、色沢、熟度、葉肉、組織等の品質要素をもとに
評価され、次の表1のような品質鑑定区分毎に識別され
る。そして、各鑑定区分(「○」印の区分)に対応して
価格付けが行われている。 (以下、余白。)
[Prior Art] Conventionally, the quality of leaf tobacco has been evaluated based on quality factors such as leaf position, color, ripeness, mesophyll, and texture, and has been classified into quality appraisal categories as shown in Table 1 below. be identified. Then, prices are set according to each appraisal category (categories marked with "○"). (Hereafter, margin.)

【表1】[Table 1]

【0003】この表1の買入れ区分の中で、色損系のP
タイプとは急乾葉と称される葉たばこで、収穫後の乾燥
作業において黄変後の脱水が急がれ、葉たばこ本来の褐
変が十分でなく黄色味が残っているものである。また、
熟度の悪い中葉系(合葉、中葉および下葉)の中には、
外観上光沢がなく白っぽくくすんだ色相の白ボケ葉が急
乾葉と併発するため、白ボケ葉もPタイプとして鑑別さ
れている。
[0003] Among the purchasing categories in Table 1, color loss type P
This type of leaf tobacco is called quick-drying leaf tobacco, which is dehydrated quickly after yellowing during the post-harvest drying process, and the natural browning of leaf tobacco is not sufficient and the yellowish tinge remains. Also,
Among the poorly ripened mesophylls (autumn leaves, middle leaves, and lower leaves),
The white-blurred leaves, which have a dull, whitish hue with no luster in appearance, occur together with rapidly drying leaves, so the whitish-blurred leaves are also classified as type P.

【0004】これらPタイプの葉たばこは、たばこの喫
味に悪癖が生じる他、たばこ製造工程において加香効果
が十分に発揮されない等の問題があり、価格面で耕作者
とのトラブルを避ける上でもPタイプの鑑別には特に注
意がはらわれている。
[0004] These P type leaf tobaccos have problems such as not only giving a bad taste to the tobacco but also not having sufficient flavoring effect in the tobacco manufacturing process. Particular attention is paid to type identification.

【0005】しかしながら、上記のようなPタイプの葉
たばこは普通系のAタイプの葉たばこと色相が近似して
いるため、従来の目視による格付け方法では熟練者でも
格付けしにくいという問題があった。
[0005] However, since the above-mentioned P-type leaf tobacco is similar in hue to the ordinary A-type leaf tobacco, there is a problem in that it is difficult to grade even an expert using the conventional visual grading method.

【0006】このため、葉たばこ等の検体の色彩を検出
してこの色彩を所定の表色系の色空間における座標情報
に変換し、この座標情報と予め記憶している判定条件に
基づいて葉たばこ等の種類を自動的に判別できるよな色
彩検出型葉たばこ種別装置が提案されている(特開平0
3−30657号参照)。
For this reason, the color of a specimen such as leaf tobacco is detected, this color is converted into coordinate information in the color space of a predetermined color system, and the leaf tobacco, etc. is determined based on this coordinate information and pre-stored judgment conditions. A color detection type leaf tobacco sorting device that can automatically distinguish the type of leaf tobacco has been proposed (Japanese Patent Application Laid-Open No.
3-30657).

【0007】[0007]

【発明が解決しようとする課題】上記の色彩検出型葉た
ばこ種別装置では、例えば予め複数の種類に分類された
複数の葉たばこの色彩に対応する色空間における分布を
記憶し、この分布領域内の特徴境界を示す情報と色彩セ
ンサー等で検出した色空間における座標値とを比較する
ことにより、葉たばこの種類を判定するようにしている
[Problems to be Solved by the Invention] In the above-mentioned color detection type leaf tobacco type device, for example, a distribution in a color space corresponding to the colors of a plurality of leaf tobaccos classified in advance into a plurality of types is stored, and the characteristics within this distribution region are stored. The type of leaf tobacco is determined by comparing information indicating the boundary with coordinate values in a color space detected by a color sensor or the like.

【0008】このため、判定基準になる複数の葉たばこ
についての色空間の3次元の分布領域の形状やこの分布
領域の特徴境界の位置情報などを、式等の形として予め
計算によって求める必要がある。なお、このような計算
式などの設定には多くの手間を要する。
[0008] For this reason, it is necessary to calculate in advance the shape of the three-dimensional distribution area of the color space for a plurality of leaf tobaccos that serve as the judgment criteria, the position information of the characteristic boundaries of this distribution area, etc. in the form of an equation, etc. . Note that setting such calculation formulas requires a lot of effort.

【0009】また、葉たばこ等では、同一の品種であっ
ても産地や収穫年度により色分布が異なることがあり、
その都度判定基準を設定しなおす必要があるので、上記
従来のように設定に手間を要するものでは使い勝手が悪
いという問題がある。
[0009] In addition, even for leaf tobacco of the same variety, the color distribution may vary depending on the production area and harvest year.
Since it is necessary to set the determination criteria again each time, there is a problem that the above-mentioned conventional method, which requires time and effort to set, is not easy to use.

【0010】0010

【課題を解決するための手段】上記の課題を解決するた
めになした本発明の色彩検出型種別装置は、被測定物の
色彩を検知して1の明度指数と2の知覚色指数とで表さ
れる表色系の色空間値を出力する色彩測定手段と、予め
複数の種類に分類された複数の被測定物について該被測
定物の色空間値と該被測定物の分類された種類を示す判
定値を入力する入力手段と、上記複数の色空間値に係数
を乗算して加算するとともにこれらの加算値の非線形関
数値を演算する非線形演算手段と、上記入力手段で入力
された複数の被測定物の色空間値と判定値とについて該
色空間値に対する上記非線形演算手段の演算結果と判定
値との誤差が極小になるように該非演算手段の前記係数
を設定する係数設定手段とを備え、前記色彩測定手段で
得られる色空間値に対する前記非線形演算手段の演算結
果に基づいて被測定物の種類を判定するようにしたこと
を特徴とする。
[Means for Solving the Problems] The color detection type classification device of the present invention, which has been made to solve the above problems, detects the color of an object to be measured and uses a brightness index of 1 and a perceptual color index of 2. A color measuring means that outputs color space values of a expressed color system, and color space values of a plurality of objects classified in advance into a plurality of types, and the classified types of the objects. an input means for inputting a judgment value indicating the plurality of color space values, a nonlinear calculation means for multiplying and adding the plurality of color space values by a coefficient, and calculating a nonlinear function value of these added values; coefficient setting means for setting the coefficients of the non-calculating means so that the error between the judgment value and the calculation result of the non-linear calculating means for the color space value is minimized with respect to the color space value of the object to be measured and the judgment value; The type of object to be measured is determined based on the calculation result of the nonlinear calculation means for the color space value obtained by the color measurement means.

【0011】[0011]

【作用】本発明の色彩検出型種別装置において、非線形
演算手段は複数の色空間値に係数を乗算して加算すると
ともにこれらの加算値の非線形関数値を演算し、この演
算値に基づいて被測定物の種類が判定される。また、係
数設定手段により複数の被測定物の色空間値に対する演
算結果とこの被測定物の判定値との誤差が最小になるよ
うに、非線形演算手段の係数が設定される。したがって
、予め複数の種類に分類された複数の被測定物について
入力手段で色空間値を判定値とを入力することにより、
判定値の誤差が小さくなるように係数を簡単に設定する
ことができる。
[Operation] In the color detection type classification device of the present invention, the nonlinear calculation means multiplies a plurality of color space values by a coefficient and adds them, calculates a nonlinear function value of these added values, and calculates a nonlinear function value based on this calculation value. The type of object to be measured is determined. Further, the coefficients of the nonlinear calculation means are set by the coefficient setting means so that the error between the calculation results for the color space values of the plurality of objects to be measured and the determination value of the object to be measured is minimized. Therefore, by inputting color space values and judgment values using the input means for a plurality of objects to be measured that have been classified into a plurality of types in advance,
Coefficients can be easily set so that the error in the judgment value is reduced.

【0012】0012

【実施例】図1は本発明実施例の色彩検出型種別装置の
ブロック図である。色彩センサ1は葉たばこ等の被測定
物に照明光を照射してその反射光を受光し、被測定物の
色彩を示すL* a* b* 表色系の明度指数L* 
と知覚色度指数a* ,b* 各色空間値をディジタル
データとして出力し、この色彩センサ1からの色空間値
はインターフェース2を介して測定制御部3に入力され
る。なお、この色彩センサとしては、例えばミノルタ製
の「色彩色差計  CR−110」を使用することがで
きる。
Embodiment FIG. 1 is a block diagram of a color detection type classification device according to an embodiment of the present invention. The color sensor 1 irradiates an object to be measured such as leaf tobacco with illumination light, receives the reflected light, and calculates the lightness index L* of the color system L* a* b* which indicates the color of the object to be measured.
and the perceived chromaticity indexes a*, b*. Each color space value is output as digital data, and the color space value from the color sensor 1 is input to the measurement control unit 3 via the interface 2. Note that as this color sensor, for example, "Color Difference Meter CR-110" manufactured by Minolta can be used.

【0013】測定制御部3はマイクロコンピュータ等で
構成されており、図1は、図示しないメモリに格納され
た制御プログラムに基づいて得られる機能を機能ブロッ
ク図で示してある。
The measurement control section 3 is composed of a microcomputer or the like, and FIG. 1 is a functional block diagram showing functions obtained based on a control program stored in a memory (not shown).

【0014】測定制御部3において、色空間値読み取り
手段31はインターフェース2を介して色彩センサ1か
らの色空間値L,a,bを取り込み、記憶手段32はこ
の色空間値L,a,bを図示しないハードディスク等に
記憶する。また、制御手段33は色空間値読み取り手段
31で取り込んだ色空間値L,a,bを非線形演算部4
に出力する。
In the measurement control unit 3, the color space value reading means 31 takes in the color space values L, a, b from the color sensor 1 via the interface 2, and the storage means 32 stores the color space values L, a, b. is stored in a hard disk (not shown) or the like. Further, the control means 33 inputs the color space values L, a, b taken in by the color space value reading means 31 to the nonlinear calculation section 4.
Output to.

【0015】非線形演算部4は測定制御部3によって設
定された係数Wjkm に基づいて非線形関数の演算を
行い、測定制御部3からの色空間値L,a,bの入力に
対して判定値Dを出力する。
The nonlinear calculation unit 4 calculates a nonlinear function based on the coefficient Wjkm set by the measurement control unit 3, and calculates a judgment value D for the input color space values L, a, and b from the measurement control unit 3. Output.

【0016】制御手段33は非線形演算部4で得られる
判定値Dを取り込み、この判定値Dと予め設定された判
定基準Dsとを比較することにより例えば普通系葉たば
ことPタイプ葉たばこの判定など被測定物の種類を判定
し、出力手段34を介して判定結果をディスプレイ等の
表示手段5に表示する。
The control means 33 takes in the judgment value D obtained by the nonlinear arithmetic unit 4, and compares this judgment value D with a preset judgment standard Ds to determine whether the tobacco is a regular leaf tobacco or a P-type leaf tobacco. The type of the object to be measured is determined, and the determination result is displayed on the display means 5 such as a display via the output means 34.

【0017】この実施例の装置の初期設定時には、予め
求められている複数の被測定物についての色空間値Li
 ,ai ,bi と鑑定員などの実際の鑑定による判
定値(以後、鑑定値という。)Ti とに基づいて非線
形演算部4の係数Wjkm が設定され、これにより非
線形演算部4は、入力される色空間値に対応する判定値
Dを出力するような非線形関数手段を構成する。
At the time of initial setting of the apparatus of this embodiment, color space values Li for a plurality of objects to be measured are determined in advance.
, ai , bi and a judgment value (hereinafter referred to as an appraisal value) Ti determined by an appraiser or the like, the coefficient Wjkm of the nonlinear calculation unit 4 is set, and the nonlinear calculation unit 4 is thereby inputted. A nonlinear function means is configured to output a judgment value D corresponding to a color space value.

【0018】また、測定した被測定物についての実際の
鑑定により得られた鑑定値Tr と測定時の色空間値L
r ,ar ,br とによって係数Wjkm をさら
に更新し、判定精度を向上させることができる。なお、
初期設定時の色空間値Li ,ai ,bi と鑑定値
Ti 、係数更新時の新たな鑑定値Tr はキーボード
等の入力手段6から入力されて記憶手段22に格納され
る。
[0018] Also, the appraisal value Tr obtained by actual appraisal of the measured object and the color space value L at the time of measurement.
The coefficient Wjkm can be further updated by r , ar , and br to improve the determination accuracy. In addition,
The color space values Li, ai, bi and the appraisal value Ti at the time of initial setting, and the new appraisal value Tr at the time of updating the coefficients are inputted from the input means 6 such as a keyboard and stored in the storage means 22.

【0019】図2は非線形演算部4のブロック図であり
、この非線形演算部4は、乗算係数が書き換え可能で入
力値を係数倍して出力する複数の乗算器Gと、複数の入
力の総和をとって出力する複数の加算器Aと、次の式1
および図4で表される入出力関係を有する複数のシグモ
イド関数器Sで構成されている。
FIG. 2 is a block diagram of the nonlinear arithmetic unit 4. The nonlinear arithmetic unit 4 includes a plurality of multipliers G whose multiplication coefficients are rewritable and which multiplies the input value by a coefficient and outputs the multiplier, and a total sum of the plurality of inputs. A plurality of adders A that take and output , and the following equation 1
and a plurality of sigmoid function units S having the input/output relationship shown in FIG.

【数1】[Math 1]

【0020】なお、図2においては簡単のために乗算器
Gの一部を略記してあり、図の破線の部分には実線で示
したと同様の乗算器Gが配設されている。第1中間演算
部41と第2中間演算部42は、加算器Aとシグモイド
関数器Sとの対をそれぞれ3対づつ備えており、色空間
値L,a,bはそれぞれ入力端子IL,Ia ,Ib 
に入力される。
Note that in FIG. 2, a part of the multiplier G is omitted for the sake of simplicity, and the same multiplier G as shown by the solid line is arranged in the part indicated by the broken line in the figure. The first intermediate calculation unit 41 and the second intermediate calculation unit 42 each include three pairs of adders A and sigmoid function units S, and color space values L, a, and b are input to input terminals IL and Ia, respectively. ,Ib
is input.

【0021】入力端子IL ,Ia ,Ib から入力
される色空間値L,a,bはそれぞれ乗算器G0 を介
して第1中間演算部41の各加算器A1 に入力され、
この各加算器A1 の出力はシグモイド関数器S1 に
それぞれ入力され、この第1中間演算部41の各シグモ
イド関数器S1 からの出力はそれぞれ乗算器G1 を
介して第2中間演算部42の各加算器A2 に入力され
る。
Color space values L, a, and b input from input terminals IL, Ia, and Ib are input to each adder A1 of the first intermediate calculation section 41 via a multiplier G0, respectively, and
The outputs of each adder A1 are input to a sigmoid function unit S1, and the outputs from each sigmoid function unit S1 of this first intermediate calculation unit 41 are respectively inputted to each addition unit of the second intermediate calculation unit 42 via a multiplier G1. The signal is input to device A2.

【0022】また、第2中間演算部42において各加算
器A2 の出力はシグモイド関数器S2 にそれぞれ入
力され、この第2中間演算部41の各シグモイド関数器
S2 からの出力は乗算器G2 を介して加算器A3 
に入力される。加算器A3 の出力はシグモイド関数器
S3 に入力され、このシグモイド関数器S3の出力が
判定値Dとして前記測定制御部2に入力される。
Further, in the second intermediate calculation section 42, the outputs of each adder A2 are inputted to a sigmoid function unit S2, and the outputs from each sigmoid function unit S2 of this second intermediate calculation unit 41 are inputted via a multiplier G2. Adder A3
is input. The output of the adder A3 is input to a sigmoid function unit S3, and the output of this sigmoid function unit S3 is input as the determination value D to the measurement control unit 2.

【0023】なお、各乗算器G0 ,G1 ,G2 の
係数を“wjkm ”で表し、入力端子IL ,Ia 
,Ib と第1中間演算部41との間の乗算器G0 の
係数をw110 ,w120 ,w130 ,w210
 ,w220 ,w230 ,w310 ,w320 
,w330 、第1中間演算部41と第2中間演算部4
2との間の乗算器G1 の係数をw111 ,w121
 ,w131 ,w211 ,w221 ,w231 
,w311 ,w321 ,w331 、第2中間演算
部42と加算器A3 との間の乗算器G2 の係数をw
112 ,w212 ,w312 とする。
Note that the coefficients of each multiplier G0, G1, G2 are expressed as "wjkm", and the input terminals IL, Ia
, Ib and the first intermediate calculation unit 41, the coefficients of the multiplier G0 are w110 , w120 , w130 , w210
, w220 , w230 , w310 , w320
, w330, the first intermediate calculation unit 41 and the second intermediate calculation unit 4
2 and the coefficients of multiplier G1 between w111 and w121
, w131 , w211 , w221 , w231
, w311 , w321 , w331 , the coefficients of the multiplier G2 between the second intermediate calculation unit 42 and the adder A3 are w
112, w212, w312.

【0024】ここで、シグモイド関数器ステップS3 
は前掲の式1および図3のような出力特性を有しており
、この被線形演算部4から出力される判定値Dは0≦D
≦1となる。
Here, the sigmoid function unit step S3
has output characteristics as shown in Equation 1 and FIG.
≦1.

【0025】いま、葉たばこについて色損系Pタイプか
正常系Aタイプの種別を行う場合について説明すると、
この判定値Dは、葉たばこが色損系Pタイプに近いか正
常系Aタイプに近いかなど被測定物を2種類に種別する
場合に何れの種類に近いかを示す値であり、この実施例
では、鑑定員による実際の鑑定値Tを0.0と1.0で
表現し、色損系Pタイプの鑑定値Tを0.0、普通系A
タイプの鑑定値Tを1.0としている。そして、複数の
葉たばこについての鑑定値Tと色空間値L,a,bとに
より、非線形演算部4の各係数Wjkm を設定する。
[0025] Now, let us explain the case of classifying leaf tobacco into color-loss type P type or normal type A type.
This judgment value D is a value that indicates which type the leaf tobacco is closer to when classifying the object into two types, such as whether the leaf tobacco is closer to the color loss type P type or the normal type A type. Now, the actual appraisal value T by the appraiser is expressed as 0.0 and 1.0, and the appraisal value T for discolored P type is 0.0, and the appraisal value T for normal type A is 0.0.
The type appraisal value T is 1.0. Then, each coefficient Wjkm of the nonlinear calculation unit 4 is set based on the appraisal value T and color space values L, a, and b for a plurality of leaf tobaccos.

【0026】なお、測定時に被線形演算部4から出力さ
れる判定値Dは係数Wjkm の設定の際の判定残差が
存在することっと、係数の設定に用いるデータと異なる
色空間値の葉たばこが用いられることがあるので、非線
形演算部4からの判定値は“0”と“1”の2値に分離
せず、0.0〜1.0の連続な値となる。そこで、判定
値Dに対して基準値Dsを予め設定し、この基準値Ds
を閾値として例えば普通系葉たばことPタイプ葉たばこ
などの判定を行うようにしている。
It should be noted that the judgment value D output from the linear calculation section 4 at the time of measurement may have a judgment residual when setting the coefficient Wjkm, and may be a leaf tobacco with a color space value different from the data used for setting the coefficient. is sometimes used, the determination value from the nonlinear calculation unit 4 is not separated into two values of "0" and "1" but is a continuous value of 0.0 to 1.0. Therefore, a reference value Ds is set in advance for the judgment value D, and this reference value Ds
For example, regular leaf tobacco and P-type leaf tobacco are determined using the threshold value.

【0027】ここで、N個の葉たばこの色空間値Li 
,ai ,bi 〔i=1〜N〕と各葉たばこの鑑定値
Ti が求められているとして係数Wjkm の設定方
法について説明する。
Here, the color space value Li of N leaf tobaccos is
, ai, bi [i=1 to N] and the appraisal value Ti of each leaf tobacco is determined, and the method of setting the coefficient Wjkm will be explained.

【0028】先ず、各係数Wjkm に乱数を設定して
各色空間値Li ,ai ,bi に対する非線形演算
部4の判定値Di を求め、誤差Errを次の式2によ
り求める。
First, a random number is set for each coefficient Wjkm to determine the judgment value Di of the nonlinear calculation unit 4 for each color space value Li, ai, bi, and the error Err is determined by the following equation 2.

【数2】 このとき、係数Wjkm の最適な値は誤差Errを最
小にする値であるが、非線形の関数の最適解を求めるこ
とは一般に困難であり、最小自乗誤差法と呼ばれる数値
解析の手法を適用する。
[Equation 2] At this time, the optimal value of the coefficient Wjkm is the value that minimizes the error Err, but it is generally difficult to find the optimal solution for a nonlinear function, so a numerical analysis method called the least square error method is used. apply.

【0029】最小自乗誤差法は反復的な演算を伴う手法
であり、例えば次の式3に示したように、係数Wjkm
 のある値のときの誤差Errの係数Wjkm に対す
る傾斜方向を計算し、誤差Errがより少ない値になる
ように係数Wjkm の値を変更する。
The least square error method is a method that involves repetitive calculations, and for example, as shown in the following equation 3, the coefficient Wjkm
The direction of inclination of the error Err with respect to the coefficient Wjkm when the error Err is a certain value is calculated, and the value of the coefficient Wjkm is changed so that the error Err becomes a smaller value.

【数3】 ただし、左辺(Wjkm ′)は、更新後の係数であり
、右辺第2項の(μ)は小さな数値である。この式2を
反復的に計算することによりErrは小さくなり、Er
rが極小値をとるとき右辺第2項の偏微分の項が“0”
になって、係数Wjkm が更新されなくなり、最終値
を係数Wjkm の値とする。
[Equation 3] However, the left side (Wjkm') is the updated coefficient, and the second term (μ) on the right side is a small value. By repeatedly calculating this equation 2, Err becomes smaller, and Err
When r takes the minimum value, the partial differential term of the second term on the right side is “0”
Then, the coefficient Wjkm is no longer updated, and the final value is taken as the value of the coefficient Wjkm.

【0030】なお、測定制御部3による実際の演算では
、係数Wjkm の値を僅かに変化させたときの誤差E
rrの差分によって偏微分の項を求め、この偏微分の項
が予め設定した小さな値になったら反復演算を終了させ
る。
In the actual calculation by the measurement control section 3, the error E when the value of the coefficient Wjkm is slightly changed is
A partial differential term is obtained from the difference in rr, and when this partial differential term reaches a preset small value, the iterative calculation is terminated.

【0031】図4は測定制御部3の制御を示すフローチ
ャートであり、電源が投入されると係数を設定するモー
ド(設定モード)と葉たばこの判定を行うモード(測定
モード)の選択を促すための表示を行い(ステップS1
)、キーボード6の所定キーの操作状態などにより選択
されたモードを判定する(ステップS2)。
FIG. 4 is a flowchart showing the control of the measurement control unit 3. When the power is turned on, a mode for setting coefficients (setting mode) and a mode for determining leaf tobacco (measurement mode) are selected. Display (step S1)
), the selected mode is determined based on the operating state of a predetermined key on the keyboard 6 (step S2).

【0032】設定モードが選択されると、入力手段から
入力される色空間値Li ,ai ,bi と鑑定値T
i とを順次記憶手段22に記憶し(ステップS3,ス
テップS4)、前記のように演算を行って各係数Wjk
m の設定を行い(ステップS5)、所定の終了キーの
操作等を監視して(ステップS6)終了でなければステ
ップS1に戻り、終了であれば係数Wjkm や測定し
た色空間値Li ,ai ,bi 等のデータをハード
ディスク等に格納して終了する(ステップS7)。
When the setting mode is selected, the color space values Li, ai, bi and the appraisal value T are input from the input means.
i and are sequentially stored in the storage means 22 (step S3, step S4), and the calculations are performed as described above to obtain each coefficient Wjk.
m (step S5), and monitors the operation of a predetermined end key (step S6). If the end is not completed, the process returns to step S1. If the end is not completed, the coefficient Wjkm and the measured color space values Li, ai, The data such as bi is stored in a hard disk or the like and the process ends (step S7).

【0033】ステップS2で測定モードが選択されると
、色彩センサ1からの割込み信号に基づいて色彩センサ
1で測定値が確定したことを検出して色空間値Lr ,
ar ,br をインターフェース3を介して取り込み
(ステップS8)、この色空間値Lr ,ar ,br
 を非線形演算部4に出力して判定値Dを取り込む(ス
テップS9)。
When the measurement mode is selected in step S2, it is detected that the measurement value has been determined by the color sensor 1 based on the interrupt signal from the color sensor 1, and the color space value Lr,
ar , br are taken in via the interface 3 (step S8), and the color space values Lr , ar , br
is output to the nonlinear calculation unit 4 and the judgment value D is taken in (step S9).

【0034】次に、予め設定されている基準値Dsと判
定値Dとを比較し(ステップS10)、D≧Dsのとき
は普通系葉たばこと判定し、D≦DsのときはPタイプ
葉たばこと判定する(ステップS11)。そして、この
判定結果を表示し(ステップS12)、ステップS6の
処理を行う。
Next, the preset reference value Ds and the judgment value D are compared (step S10), and when D≧Ds, it is judged as a regular type leaf tobacco, and when D≦Ds, it is judged as a P type leaf tobacco. Determination is made (step S11). Then, this determination result is displayed (step S12), and the process of step S6 is performed.

【0035】以上のようにして、判定結果が得られるが
、この判定が鑑定員による実際の判定と異なっていたり
十分な測定精度がえられなかたときには、誤って判定さ
れた葉たばこについての鑑定員による鑑定値Tとこの葉
たばこの色空間値L,a,bのデータを係数の初期設定
で用いたデータに追加して、再度、係数の設定を行うよ
うにすれば、測定精度を向上させることができる。
[0035] As described above, a judgment result is obtained, but if this judgment differs from the actual judgment made by the appraiser or sufficient measurement accuracy cannot be obtained, the appraiser's judgment of leaf tobacco that was incorrectly determined is Measurement accuracy can be improved by adding the data of the appraisal value T and the color space values L, a, and b of this leaf tobacco to the data used in the initial setting of the coefficients and setting the coefficients again. can.

【0036】なお、上記実施例の非線形演算部4は、中
間演算部が2段で、各中間演算部は加算器とシグモイド
関数器とをそれぞれ3対づつ備えた構成になっているが
、この中間演算部の段数や加算器とシグモイド関数器の
数はこれに限定されるものではない。また、上記の実施
例では非線形関数としてシグモイド関数を用いるように
しているが、この非線形関数としては、例えば次式のよ
うな非線形関数を用いるようにしてもよい。
The nonlinear calculation section 4 of the above embodiment has two stages of intermediate calculation sections, and each intermediate calculation section has three pairs each of adders and sigmoid function units. The number of stages of the intermediate arithmetic unit and the number of adders and sigmoid function units are not limited to these. Further, in the above embodiment, a sigmoid function is used as the nonlinear function, but a nonlinear function such as the following expression may be used as the nonlinear function.

【数4】[Math 4]

【0037】[0037]

【発明の効果】以上説明したように本発明の色彩検出型
種別装置によれば、被測定物の色彩を示す表色系の色空
間値に対して、この色空間値に係数を乗算して加算する
とともにこれらの加算値の非線形関数値を演算する非線
形演算手段と、予め複数の種類に分類された複数の被測
定物について色空間値と種類を示す判定値を入力する入
力手段と、この入力手段で入力された複数の被測定物の
色空間値に対する非線形演算手段の演算結果の誤差が極
小になるようにこの非演算手段の係数を設定する係数設
定手段とを備え、色彩測定手段で得られる色空間値に対
する非線形演算手段の演算結果に基づいて被測定物の種
類を判定するようにしたので、非線形演算手段の演算値
の判定値からの誤差を小さくしながら、この非線形演算
手段の係数を簡単に設定することができる。これによっ
て、被測定物を色彩測定手段によって格付を行う場合に
、被測定物の種類、等級、産地等の区分毎に異なる特性
に対して、各区分毎に判別ロジックを構成することの手
間を省き、各特性にかかわらず一様な手段によって自動
的に格付ロジックを生成し、診断精度の向上、判別ロジ
ック決定のコスト低減、操作性の向上が実現できる。
[Effects of the Invention] As explained above, according to the color detection type classification device of the present invention, the color space value of the color system indicating the color of the object to be measured is multiplied by a coefficient. nonlinear calculation means for adding values and calculating a nonlinear function value of these added values; input means for inputting color space values and judgment values indicating types of a plurality of objects to be measured that have been classified in advance into a plurality of types; a coefficient setting means for setting coefficients of the non-linear calculation means so that errors in the calculation results of the non-linear calculation means for color space values of a plurality of objects to be measured inputted by the input means are minimized; Since the type of the object to be measured is determined based on the calculation result of the nonlinear calculation means for the obtained color space value, the error of the calculation value of the nonlinear calculation means from the judgment value is reduced, and the Coefficients can be easily set. As a result, when grading objects to be measured using color measurement means, it is possible to eliminate the trouble of configuring discrimination logic for each category for characteristics that vary depending on the type, grade, place of origin, etc. of the object to be measured. It is possible to automatically generate a rating logic using a uniform method regardless of each characteristic, thereby improving diagnostic accuracy, reducing the cost of determining a discriminant logic, and improving operability.

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

【図1】本発明実施例の色彩検出型品質判定装置。FIG. 1 shows a color detection type quality determination device according to an embodiment of the present invention.

【図2】本発明実施例における非線形演算部のブロック
図である。
FIG. 2 is a block diagram of a nonlinear calculation section in an embodiment of the present invention.

【図3】本発明実施例におけるフローチャートである。FIG. 3 is a flowchart in an embodiment of the present invention.

【図4】本発明実施例に係わるシグモイド関数の入出力
特性を示す図である。
FIG. 4 is a diagram showing input/output characteristics of a sigmoid function according to an embodiment of the present invention.

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

1  色彩センサ 3  測定制御部 4  非線形演算部 G  乗算器 A  加算器 S  シグモイド関数器 1 Color sensor 3 Measurement control section 4 Nonlinear operation section G Multiplier A Adder S Sigmoid function unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】    被測定物の色彩を検知して1の明
度指数と2の知覚色指数とで表される表色系の色空間値
を出力する色彩測定手段と、予め複数の種類に分類され
た複数の被測定物について該被測定物の色空間値と該被
測定物の分類された種類を示す判定値を入力する入力手
段と、上記複数の色空間値に係数を乗算して加算すると
ともにこれらの加算値の非線形関数値を演算する非線形
演算手段と、上記入力手段で入力された複数の被測定物
の色空間値と判定値とについて該色空間値に対する上記
非線形演算手段の演算結果と判定値との誤差が極小にな
るように該非演算手段の前記係数を設定する係数設定手
段と、を備え、前記色彩測定手段で得られる色空間値に
対する前記非線形演算手段の演算結果に基づいて被測定
物の種類を判定するようにしたことを特徴とする色彩検
出型種別装置。
1. Color measuring means for detecting the color of an object to be measured and outputting a color space value of a color system expressed by a brightness index of 1 and a perceptual color index of 2; input means for inputting a color space value of the plurality of objects to be measured and a judgment value indicating the classified type of the object to be measured, and multiplying the plurality of color space values by a coefficient and adding them and a nonlinear calculation means for calculating a nonlinear function value of these added values, and a calculation by the nonlinear calculation means for the color space values of the plurality of objects to be measured and the determination value inputted by the input means. coefficient setting means for setting the coefficients of the non-calculating means so that the error between the result and the judgment value is minimized, based on the calculation result of the non-linear calculating means for the color space value obtained by the color measuring means. 1. A color detection type classification device, characterized in that the type of an object to be measured is determined by
JP5121491A 1991-03-15 1991-03-15 Color-detecting type classifying apparatus Pending JPH04286924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5121491A JPH04286924A (en) 1991-03-15 1991-03-15 Color-detecting type classifying apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5121491A JPH04286924A (en) 1991-03-15 1991-03-15 Color-detecting type classifying apparatus

Publications (1)

Publication Number Publication Date
JPH04286924A true JPH04286924A (en) 1992-10-12

Family

ID=12880668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5121491A Pending JPH04286924A (en) 1991-03-15 1991-03-15 Color-detecting type classifying apparatus

Country Status (1)

Country Link
JP (1) JPH04286924A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013132622A1 (en) * 2012-03-07 2013-09-12 日本たばこ産業株式会社 Method for distinguishing tobacco raw-material categories
WO2014064809A1 (en) * 2012-10-25 2014-05-01 日本たばこ産業株式会社 Method for determining kind of leaf tobacco
WO2014064808A1 (en) * 2012-10-25 2014-05-01 日本たばこ産業株式会社 Method for determining kind of leaf tobacco
KR101646224B1 (en) * 2015-06-11 2016-08-05 신흥기업 주식회사 System for monitoring to dry tobacco leaves
CN106579537A (en) * 2017-01-20 2017-04-26 刘太明 Method and device for intelligently grading and sorting tobacco leaves
CN115669979A (en) * 2022-11-11 2023-02-03 云南省烟草农业科学研究院 Classification formula threshing and redrying method of cinnabar smoke

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013132622A1 (en) * 2012-03-07 2013-09-12 日本たばこ産業株式会社 Method for distinguishing tobacco raw-material categories
WO2014064809A1 (en) * 2012-10-25 2014-05-01 日本たばこ産業株式会社 Method for determining kind of leaf tobacco
WO2014064808A1 (en) * 2012-10-25 2014-05-01 日本たばこ産業株式会社 Method for determining kind of leaf tobacco
KR101646224B1 (en) * 2015-06-11 2016-08-05 신흥기업 주식회사 System for monitoring to dry tobacco leaves
CN106579537A (en) * 2017-01-20 2017-04-26 刘太明 Method and device for intelligently grading and sorting tobacco leaves
CN115669979A (en) * 2022-11-11 2023-02-03 云南省烟草农业科学研究院 Classification formula threshing and redrying method of cinnabar smoke

Similar Documents

Publication Publication Date Title
Pereira et al. Predicting the ripening of papaya fruit with digital imaging and random forests
EP0767362B2 (en) A method and system for formulating a color match
EP2098840A1 (en) Texture map of coated color, its making method, making program, making system and data structure
JPH08500898A (en) An improved method for interpreting complex data to detect abnormal equipment or processing behavior
JPH05126757A (en) Method and apparatus for optically determining acceptability of product
Zhang et al. Images features extraction of tobacco leaves
JPH04286924A (en) Color-detecting type classifying apparatus
WO2005038586A2 (en) Method and apparatus for providing trading information
CN111863167A (en) Case grouping method, case grouping device, electronic equipment and storage medium
JP2502378B2 (en) Color detection type leaf tobacco classification device
US20230187030A1 (en) Rapid quantitative evaluation method for taste characteristics of fried rice
CN112036448B (en) Keratoconus identification method and device
JP3778177B2 (en) Object inspection device
JPH09167152A (en) Interactive model preparing method
JP3495185B2 (en) Method and apparatus for measuring rice taste value
US5328787A (en) Method for assessing and controlling the sensitometric characteristics of photographic products
Titova et al. Food quality evaluation according to their color characteristics
JPS58176766A (en) Computer for sampling processing
CN114766706A (en) Tobacco leaf impurity removal and grading method
CN115545383A (en) Binocular stereoscopic vision detection method for crisp appearance quality of strawberries
JP2000156102A (en) Light source control method and device
KR102393523B1 (en) Apparatus of controling polished rice quarlity based on customer preference
Ortiz et al. Modelling the relation between CieLab parameters and sensory scores for quality control of red-wine colour
KR102393522B1 (en) Apparatus of controling polished rice for quality control of rice by regional group
CN108777019B (en) Near-infrared spectrum model transfer strategy optimization method and device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20001212