JP6148521B2 - Color pattern discrimination device and color pattern discrimination method - Google Patents

Color pattern discrimination device and color pattern discrimination method Download PDF

Info

Publication number
JP6148521B2
JP6148521B2 JP2013081273A JP2013081273A JP6148521B2 JP 6148521 B2 JP6148521 B2 JP 6148521B2 JP 2013081273 A JP2013081273 A JP 2013081273A JP 2013081273 A JP2013081273 A JP 2013081273A JP 6148521 B2 JP6148521 B2 JP 6148521B2
Authority
JP
Japan
Prior art keywords
color
cloth
pattern
cloth piece
image
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.)
Active
Application number
JP2013081273A
Other languages
Japanese (ja)
Other versions
JP2014202700A (en
Inventor
一志 濱田
一志 濱田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Purex Corp
Original Assignee
Purex Corp
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 Purex Corp filed Critical Purex Corp
Priority to JP2013081273A priority Critical patent/JP6148521B2/en
Publication of JP2014202700A publication Critical patent/JP2014202700A/en
Application granted granted Critical
Publication of JP6148521B2 publication Critical patent/JP6148521B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Description

本発明は、色柄判別装置および色柄判別方法に関する。さらに詳しくは、布片の色柄(無地物、柄物、色種類、柄種類)を判別する色柄判別装置および色柄判別方法に関する。   The present invention relates to a color pattern discrimination device and a color pattern discrimination method. More specifically, the present invention relates to a color pattern determination apparatus and a color pattern determination method for determining a color pattern (a plain object, a pattern object, a color type, a pattern type) of a cloth piece.

ホテルや病院等では大量にシーツや包布、ピロケース、浴衣、タオル等の布片が使用され、その使用済みの布片はランドリー工場で洗濯・乾燥され、再度ホテルや病院等で使用されることが一般的である。ランドリー工場においては布片を洗濯・乾燥した後、布片検査装置(例えば、特許文献1)で汚れや破れ等の欠陥がないか検査した後に、欠陥がない布片のみを折畳み機(例えば、特許文献2)で折畳む作業が行なわれる。   Large quantities of sheets, wrapping cloths, pillow cases, yukata, towels, etc. are used in hotels, hospitals, etc., and the used cloth pieces must be washed and dried in a laundry factory and used again in hotels, hospitals, etc. Is common. In a laundry factory, after washing and drying a piece of cloth, a cloth piece inspection apparatus (for example, Patent Document 1) is inspected for defects such as dirt and tear, and then only a piece of cloth without a defect is folded (for example, The folding work is performed in Patent Document 2).

ところで、布片には無地物と柄物とがあり、無地物の中には複数の色種類があり、柄物の中には複数の柄種類がある。このように、布片には複数種類の色柄があるため、従来は作業員が布片を色柄別に分別した後に、布片検査装置や折畳み機に投入することが行われていた。これは、布片検査装置においては布片の色柄の違いによって検査方法や閾値などの設定を変更する必要があり、折畳み機においては布片を色柄別に分けてスタックする必要があるからである。   By the way, the cloth piece includes a plain object and a patterned object, and the plain object includes a plurality of color types, and the patterned object includes a plurality of pattern types. As described above, since the cloth pieces have a plurality of kinds of color patterns, it has been conventionally performed by an operator after separating the cloth pieces according to the color patterns and then putting them into the cloth piece inspection apparatus or the folding machine. This is because in the cloth inspection device, it is necessary to change the setting of the inspection method and threshold value depending on the color pattern of the cloth, and in the folding machine, it is necessary to divide the cloth according to the color pattern and stack it. is there.

特開2011−242330号公報JP 2011-242330 A 特開2011−67471号公報JP 2011-67471 A

作業員が布片を色柄別に分別するのは面倒であるため、分別することなく布片検査装置や折畳み機に投入できることが望まれていた。色柄別に分別されずに混在状態で投入された布片を布片検査装置や折畳み機で適切に処理するためには、布片の色柄を自動的に判別する必要がある。   Since it is troublesome for an operator to separate cloth pieces by color pattern, it has been desired that the cloth pieces can be put into a cloth piece inspection apparatus or a folding machine without being separated. In order to appropriately process a piece of cloth that has been put in a mixed state without being classified according to color pattern, it is necessary to automatically determine the color pattern of the cloth piece.

本発明は上記事情に鑑み、布片の色柄を判別できる色柄判別装置および色柄判別方法を提供することを目的とする。   In view of the above circumstances, an object of the present invention is to provide a color pattern determination apparatus and a color pattern determination method capable of determining the color pattern of a cloth piece.

第1発明の色柄判別装置は、布片を撮影するカメラと、該カメラで撮影した画像を画像処理する画像処理手段と、を備え、前記カメラは、前記布片を撮影して布片画像とし、前記画像処理手段は、前記布片画像の布片領域における色値の波形の振幅を求め、求められた前記振幅が閾値を超えない場合は前記布片を無地物と判定し、閾値を超える場合は前記布片を柄物と判定し、前記布片を無地物と判定した場合に、前記布片画像の色値を取得し、取得された前記色値が白色に近い場合は前記布片を白無地と判定し、それ以外の場合は前記布片を色無地と判定することを特徴とする。
第2発明の色柄判別装置は、布片を撮影するカメラと、該カメラで撮影した画像を画像処理する画像処理手段と、該画像処理手段がアクセス可能な記憶手段と、を備え、前記記憶手段には、前記布片の色種類ごとの基準色値が記憶されており、前記カメラは、前記布片を撮影して布片画像とし、前記画像処理手段は、前記布片画像の布片領域における色値の波形の振幅を求め、求められた前記振幅が閾値を超えない場合は前記布片を無地物と判定し、閾値を超える場合は前記布片を柄物と判定し、前記布片を無地物と判定した場合に、前記布片画像の色値を取得し、取得された前記色値を前記基準色値の中から探索し、前記布片を探索された基準色値に対応する色種類と判定することを特徴とする。
第3発明の色柄判別装置は、第1または第2発明において、所定の色の検査台を備え、前記カメラは、前記検査台を通過する前記布片を撮影して布片画像とし、前記画像処理手段は、前記布片画像における前記検査台の色以外の領域を前記布片領域と特定することを特徴とする。
第4発明の色柄判別装置は、布片を撮影するカメラと、該カメラで撮影した画像を画像処理する画像処理手段と、該画像処理手段がアクセス可能な記憶手段と、を備え、前記記憶手段には、前記布片の柄種類ごとの色値の基準波形が記憶されており、前記カメラは、前記布片を撮影して布片画像とし、前記画像処理手段は、前記布片画像の色値の波形を取得し、取得された前記波形を前記基準波形の中から探索し、前記布片を探索された基準波形に対応する柄種類と判定することを特徴とする。
第5発明の色柄判別装置は、第4発明において、前記記憶手段には、前記布片の柄種類ごとの色値の基準波形が基準ピークパターンとして記憶されており、前記画像処理手段は、前記布片画像の色値の波形を取得し、取得された前記波形のピークパターンを求め、求められた前記ピークパターンを前記基準ピークパターンの中から探索し、前記布片を探索された基準ピークパターンに対応する柄種類と判定することを特徴とする。
第6発明の色柄判別方法は、布片を撮影した布片画像の布片領域における色値の波形の振幅を求め、求められた前記振幅が閾値を超えない場合は前記布片を無地物と判定し、閾値を超える場合は前記布片を柄物と判定し、前記布片を無地物と判定した場合に、前記布片画像の色値を取得し、取得された前記色値が白色に近い場合は前記布片を白無地と判定し、それ以外の場合は前記布片を色無地と判定することを特徴とする。
第7発明の色柄判別方法は、予め布片の色種類ごとの基準色値を記憶しておき、前記布片を撮影した布片画像の布片領域における色値の波形の振幅を求め、求められた前記振幅が閾値を超えない場合は前記布片を無地物と判定し、閾値を超える場合は前記布片を柄物と判定し、前記布片を無地物と判定した場合に、前記布片画像の色値を取得し、取得された前記色値を前記基準色値の中から探索し、前記布片を探索された基準色値に対応する色種類と判定することを特徴とする。
第8発明の色柄判別方法は、予め布片の柄種類ごとの色値の基準波形を記憶しておき、前記布片を撮影した布片画像の色値の波形を取得し、取得された前記波形を前記基準波形の中から探索し、前記布片を探索された基準波形に対応する柄種類と判定することを特徴とする。
第9発明の色柄判別方法は、予め布片の柄種類ごとの色値の基準波形を基準ピークパターンとして記憶しておき、前記布片を撮影した布片画像の色値の波形を取得し、取得された前記波形のピークパターンを求め、求められた前記ピークパターンを前記基準ピークパターンの中から探索し、前記布片を探索された基準ピークパターンに対応する柄種類と判定することを特徴とする。
According to a first aspect of the present invention, there is provided a color pattern discrimination apparatus including a camera for photographing a cloth piece and image processing means for performing image processing on an image photographed by the camera. The image processing means obtains the amplitude of the waveform of the color value in the cloth region of the cloth image, and if the obtained amplitude does not exceed the threshold, determines the cloth as a plain object, and sets the threshold to If it exceeds, the cloth piece is determined as a pattern, and when the cloth piece is determined as a plain object, the color value of the cloth piece image is acquired, and when the acquired color value is close to white, the cloth piece Is determined to be white solid color, otherwise the cloth piece is determined to be color solid color .
According to a second aspect of the present invention, there is provided a color pattern discrimination apparatus comprising: a camera that captures a piece of cloth; an image processing unit that performs image processing on an image captured by the camera; and a storage unit that is accessible by the image processing unit. The means stores a reference color value for each color type of the cloth piece, the camera photographs the cloth piece to form a cloth piece image, and the image processing means is a cloth piece of the cloth piece image. The amplitude of the waveform of the color value in the region is obtained, and when the obtained amplitude does not exceed the threshold value, the cloth piece is determined as a plain object, and when the amplitude exceeds the threshold value, the cloth piece is determined as a patterned object, Is determined to be a plain object, the color value of the cloth image is acquired, the acquired color value is searched from the reference color values, and the cloth piece corresponds to the searched reference color value. The color type is determined.
According to a third aspect of the present invention, there is provided the color pattern discrimination apparatus according to the first or second aspect , further comprising an inspection table of a predetermined color, and the camera photographs the cloth piece passing through the inspection table to form a cloth piece image, The image processing means identifies an area other than the color of the inspection table in the cloth image as the cloth area.
According to a fourth aspect of the present invention, there is provided a color pattern discrimination apparatus comprising: a camera that captures a piece of cloth; an image processing unit that performs image processing on an image captured by the camera; and a storage unit that is accessible by the image processing unit. The means stores a reference waveform of a color value for each pattern type of the cloth piece, the camera photographs the cloth piece to form a cloth piece image, and the image processing means A waveform of a color value is acquired, the acquired waveform is searched from the reference waveform, and the cloth piece is determined as a pattern type corresponding to the searched reference waveform.
In the color pattern determination apparatus according to a fifth aspect of the present invention, in the fourth aspect of the invention, the storage means stores a reference waveform of color values for each pattern type of the piece of cloth as a reference peak pattern, and the image processing means includes: Obtaining a waveform of the color value of the cloth image, obtaining a peak pattern of the obtained waveform, searching the obtained peak pattern from the reference peak pattern, and searching the cloth for the reference peak The pattern type corresponding to the pattern is determined.
According to a sixth aspect of the present invention, the color pattern discrimination method obtains the amplitude of the waveform of the color value in the cloth region of the cloth image obtained by photographing the cloth piece, and if the obtained amplitude does not exceed the threshold value, the cloth piece is detected as a plain object. When the threshold value is exceeded, the cloth piece is determined to be a patterned object, and when the cloth piece is determined to be a plain object, the color value of the cloth image is acquired, and the acquired color value is white. In the case of being close, the cloth piece is determined to be white solid color, and in other cases, the cloth piece is determined to be colored solid color .
The color pattern discrimination method according to the seventh aspect of the invention stores in advance a reference color value for each color type of a cloth piece, obtains the amplitude of the waveform of the color value in the cloth area of the cloth image obtained by photographing the cloth piece, When the obtained amplitude does not exceed a threshold value, the cloth piece is determined as a plain object. When the amplitude exceeds the threshold value, the cloth piece is determined as a pattern object, and when the cloth piece is determined as a plain object, A color value of a piece image is acquired, the acquired color value is searched from the reference color values, and the cloth piece is determined as a color type corresponding to the searched reference color value.
According to the color pattern discrimination method of the eighth invention, a reference waveform of a color value for each pattern type of a cloth piece is stored in advance, and a waveform of a color value of a cloth image obtained by photographing the cloth piece is acquired and acquired. The waveform is searched from the reference waveform, and the cloth piece is determined as a pattern type corresponding to the searched reference waveform.
According to a ninth aspect of the present invention, there is provided a color pattern discrimination method in which a reference waveform of a color value for each pattern type of a cloth piece is stored in advance as a reference peak pattern, and a color value waveform of a cloth piece image obtained by photographing the cloth piece is acquired. Determining a peak pattern of the acquired waveform, searching the obtained peak pattern from the reference peak pattern, and determining the cloth type as a pattern type corresponding to the searched reference peak pattern. And

第1発明によれば、布片画像の布片領域における色値の波形の振幅から、布片が無地物であるか、柄物であるか判別できる。また、布片画像の色値から、布片が白無地であるか、色無地であるか判別できる。そのため、色柄判別装置の判定結果により布片検査装置の閾値などの設定値を自動で切り替えたり、折畳み機のスタック位置を自動で切り替えたりできるので、作業員が布片を白無地と色無地とで分別する必要がなく、作業の手間を省くことができる。
第2発明によれば、布片画像の布片領域における色値の波形の振幅から、布片が無地物であるか、柄物であるか判別できる。また、布片画像における色値から、布片の色種類を判別できる。そのため、色柄判別装置の判定結果により布片検査装置の閾値などの設定値を自動で切り替えたり、折畳み機のスタック位置を自動で切り替えたりできるので、作業員が布片を色種類別に分別する必要がなく、作業の手間を省くことができる。
第3発明によれば、布片画像における検査台の色以外の領域を布片領域とすることで、布片領域の特定が容易となり、正確に特定できる。その結果、無地物と柄物との判別の精度が向上する。
第4発明によれば、布片画像の色値の波形から、布片の柄種類を判別できる。そのため、色柄判別装置の判定結果により布片検査装置の閾値などの設定値を自動で切り替えたり、折畳み機のスタック位置を自動で切り替えたりできるので、作業員が布片を柄種類別に分別する必要がなく、作業の手間を省くことができる。
第5発明によれば、布片画像の色値の波形のピークパターンから布片の柄種類を判別するので、波形そのものを探索する場合に比べてピークパターンの探索が容易であり、柄種類の判別の精度が向上する。
第6発明によれば、布片画像の布片領域における色値の波形の振幅から、布片が無地物であるか、柄物であるか判別できる。また、布片画像の色値から、布片が白無地であるか、色無地であるか判別できる。そのため、色柄判別装置の判定結果により布片検査装置の閾値などの設定値を自動で切り替えたり、折畳み機のスタック位置を自動で切り替えたりできるので、作業員が布片を白無地と色無地とで分別する必要がなく、作業の手間を省くことができる。
第7発明によれば、布片画像の布片領域における色値の波形の振幅から、布片が無地物であるか、柄物であるか判別できる。また、布片画像における色値から、布片の色種類を判別できる。そのため、色柄判別装置の判定結果により布片検査装置の閾値などの設定値を自動で切り替えたり、折畳み機のスタック位置を自動で切り替えたりできるので、作業員が布片を色種類別に分別する必要がなく、作業の手間を省くことができる。
第8発明によれば、布片画像の色値の波形から、布片の柄種類を判別できる。そのため、色柄判別装置の判定結果により布片検査装置の閾値などの設定値を自動で切り替えたり、折畳み機のスタック位置を自動で切り替えたりできるので、作業員が布片を柄種類別に分別する必要がなく、作業の手間を省くことができる。
第9発明によれば、布片画像の色値の波形のピークパターンから布片の柄種類を判別するので、波形そのものを探索する場合に比べてピークパターンの探索が容易であり、柄種類の判別の精度が向上する。
According to the first invention, it is possible to determine whether the cloth piece is a plain object or a patterned object from the amplitude of the waveform of the color value in the cloth region of the cloth piece image. Further, it can be determined from the color value of the cloth piece image whether the cloth piece is plain white or plain. For this reason, the setting value such as the threshold value of the cloth inspection device can be automatically switched or the stack position of the folding machine can be automatically switched according to the determination result of the color pattern determination device. This eliminates the need for sorting and saves labor.
According to the second invention, it is possible to determine whether the cloth piece is a plain object or a patterned object from the amplitude of the waveform of the color value in the cloth region of the cloth piece image. Further, the color type of the cloth piece can be determined from the color value in the cloth piece image. Therefore, the setting value such as the threshold value of the cloth inspection device can be automatically switched or the stack position of the folding machine can be automatically switched according to the determination result of the color pattern determination device, so that the worker sorts the cloth according to the color type. There is no need to do this, and the work can be saved.
According to the third aspect of the invention, by specifying the region other than the color of the inspection table in the cloth image as the cloth region, the cloth region can be easily specified and accurately specified. As a result, the accuracy of discrimination between plain and patterned objects is improved.
According to the fourth aspect , the pattern type of the cloth piece can be determined from the waveform of the color value of the cloth piece image. Therefore, the setting value such as the threshold value of the cloth inspection device can be automatically switched or the stack position of the folding machine can be automatically switched based on the determination result of the color pattern determination device, so that the worker sorts the cloth according to the pattern type. There is no need to do this, and the work can be saved.
According to the fifth invention, since the pattern type of the cloth piece is determined from the peak pattern of the waveform of the color value of the cloth image, the peak pattern can be easily searched as compared with the case where the waveform itself is searched. The accuracy of discrimination is improved.
According to the sixth aspect of the invention, it is possible to determine whether the cloth piece is a plain object or a patterned object from the amplitude of the waveform of the color value in the cloth region of the cloth piece image. Further, it can be determined from the color value of the cloth piece image whether the cloth piece is plain white or plain. For this reason, the setting value such as the threshold value of the cloth inspection device can be automatically switched or the stack position of the folding machine can be automatically switched according to the determination result of the color pattern determination device. This eliminates the need for sorting and saves labor.
According to the seventh aspect, it is possible to determine whether the cloth piece is a plain object or a patterned object from the amplitude of the waveform of the color value in the cloth region of the cloth piece image. Further, the color type of the cloth piece can be determined from the color value in the cloth piece image. Therefore, the setting value such as the threshold value of the cloth inspection device can be automatically switched or the stack position of the folding machine can be automatically switched according to the determination result of the color pattern determination device, so that the worker sorts the cloth according to the color type. There is no need to do this, and the work can be saved.
According to the eighth aspect , the pattern type of the cloth piece can be determined from the waveform of the color value of the cloth piece image. Therefore, the setting value such as the threshold value of the cloth inspection device can be automatically switched or the stack position of the folding machine can be automatically switched based on the determination result of the color pattern determination device, so that the worker sorts the cloth according to the pattern type. There is no need to do this, and the work can be saved.
According to the ninth aspect, since the pattern type of the cloth piece is determined from the peak pattern of the waveform of the color value of the cloth image, the search for the peak pattern is easier than when searching for the waveform itself. The accuracy of discrimination is improved.

本発明の第1実施形態に係る色柄判別装置の説明図である。It is explanatory drawing of the color pattern discrimination device which concerns on 1st Embodiment of this invention. 同色柄判別装置による色柄判別処理の全体フローチャートである。It is a whole flowchart of the color pattern discrimination | determination process by the same color pattern discrimination device. 柄無地判別処理のフローチャートである。It is a flowchart of a pattern plain color discrimination process. 白無地判別処理のフローチャートである。It is a flowchart of a white plain color discrimination process. 柄種類判別処理のフローチャートである。It is a flowchart of a pattern type discrimination process. 色種類判別処理のフローチャートである。It is a flowchart of a color kind discrimination | determination process. (A)図は柄物の布片画像の一例、(B)図は柄物のライン画像の各色値の波形の一例である。(A) The figure is an example of a cloth image of a patterned object, and (B) is an example of the waveform of each color value of the line image of the patterned object. (A)図は無地物の布片画像の一例、(B)図は無地物のライン画像の各色値の波形の一例である。(A) The figure is an example of a plain cloth image, and (B) is an example of the waveform of each color value of the plain line image. ピークパターンの説明図である。It is explanatory drawing of a peak pattern.

つぎに、本発明の実施形態を図面に基づき説明する。
本発明に係る色柄判別装置は、ランドリー工場などにおいて、洗濯・乾燥済みの布片に汚れや破れ等の欠陥がないか検査する布片検査装置や、布片を折畳む折畳み機などの前段の装置として配置され、布片の色柄を判別するために用いられる。色柄判別装置の判定結果を用いる装置としては、布片検査装置や折畳み機に限定されず、布片の色柄の情報が必要な種々の装置を採用し得る。
Next, an embodiment of the present invention will be described with reference to the drawings.
The color pattern discrimination apparatus according to the present invention is a front stage of a cloth piece inspection device for inspecting a cloth piece that has been washed and dried in the laundry factory for defects such as dirt and tear, and a folding machine that folds the cloth piece. This device is used to discriminate the color pattern of the cloth piece. The apparatus using the determination result of the color pattern discrimination device is not limited to the cloth piece inspection apparatus or the folding machine, and various apparatuses that require information on the color pattern of the cloth piece can be adopted.

本明細書において「布片」とは、シーツや包布、ピロケース、浴衣、タオル等の処理対象となる布類を意味する。また、「色柄」とは、「無地物」、「柄物」、「色種類」、「柄種類」を含む概念である。「無地物」とは、全体が一つの色で構成され柄が付されていない布片を意味する。「柄物」とは、複数の色で構成され柄が付された布片を意味する。「色種類」とは、無地物のうち色の違いを指標として分けられた布片の種類を意味する。特に、「色種類」のうち白色の布片を「白無地」と称し、白色以外の布片を「色無地」と称する。「柄種類」とは、柄物のうち柄の違いを指標として分けられた布片の種類を意味する。   In this specification, the “cloth piece” means a cloth to be processed such as a sheet, a wrapping cloth, a pillow case, a yukata, a towel, or the like. In addition, the “color pattern” is a concept including “plain object”, “pattern object”, “color type”, and “pattern type”. “Solid” means a piece of cloth that is entirely composed of one color and has no pattern. "Pattern" means a piece of cloth that is composed of a plurality of colors and has a pattern. The “color type” means a type of cloth piece that is divided by using a color difference as an index among plain objects. In particular, among the “color types”, a white cloth piece is referred to as “white solid color”, and a non-white cloth piece is referred to as “color plain color”. “Pattern type” means a type of cloth piece that is divided using a pattern difference as an index.

(第1実施形態)
図1に示すように、本発明の第1実施形態に係る色柄判別装置Aは、布片Cを搬送するコンベア1、2と、コンベア1、2の間の接続部分に配置された検査台3と、検査台3を通過する布片Cを撮影するカメラ4と、カメラ4で撮影した画像を画像処理する画像処理手段5と、画像処理手段5がアクセス可能な記憶手段6とを備える。
(First embodiment)
As shown in FIG. 1, the color pattern discrimination apparatus A according to the first embodiment of the present invention includes a conveyor 1 and 2 that convey a cloth piece C, and an inspection table arranged at a connection portion between the conveyors 1 and 2. 3, a camera 4 for photographing the cloth piece C passing through the inspection table 3, an image processing means 5 for image processing of an image photographed by the camera 4, and a storage means 6 accessible by the image processing means 5.

検査台3は、少なくともその表面が所定の色(以下、「検査台色」と称する。)となっている。布片Cは検査台3の表面を通過する際にカメラ4で撮影されるため、検査台色はカメラ4で布片Cを撮影した画像の背景色となる。この詳細は後に説明する。   At least the surface of the inspection table 3 has a predetermined color (hereinafter referred to as “inspection table color”). Since the cloth piece C is photographed by the camera 4 when passing through the surface of the examination table 3, the examination table color is the background color of the image obtained by photographing the cloth piece C by the camera 4. Details of this will be described later.

なお、検査台3として、台状の部材のほか、コンベアを用いてもよい。この場合には、コンベアベルトを検査台色とすればよい。特許請求の範囲に記載の「検査台」とは、台状の部材に限定されず、コンベアなど、布片Cの背景となる部材であればよい。   In addition to the trapezoidal member, a conveyor may be used as the inspection table 3. In this case, the conveyor belt may be colored as an inspection table. The “inspection table” described in the claims is not limited to a trapezoidal member, and may be a member that becomes the background of the cloth piece C, such as a conveyor.

カメラ4としては、特に限定はされないが、ラインセンサカメラやエリアセンサカメラが用いられる。画像処理手段5はCPUなどで構成され、記憶手段6はメモリなどで構成される。記憶手段6には、各種閾値のほか、後述の基準ピークパターンが予め記憶されている。   The camera 4 is not particularly limited, but a line sensor camera or an area sensor camera is used. The image processing means 5 is composed of a CPU or the like, and the storage means 6 is composed of a memory or the like. In addition to various threshold values, the storage unit 6 stores reference peak patterns described later in advance.

なお、色柄判別装置Aの物理的な構成は布片検査装置と共通のものとしてもよい。すなわち、画像処理手段5において、色柄判別装置Aの機能としての色柄判別処理と、布片検査装置の機能としての布片検査処理の両方を行うように構成してもよい。   The physical configuration of the color pattern discrimination device A may be the same as that of the cloth piece inspection device. That is, the image processing means 5 may be configured to perform both the color pattern discrimination process as a function of the color pattern discrimination apparatus A and the cloth piece inspection process as a function of the cloth piece inspection apparatus.

つぎに、色柄判別装置Aによる色柄判別処理を説明する。
図2に示すように、色柄判別装置Aは、まず、カメラ4で布片Cを撮影して布片画像を取得する(ステップS1)。つぎに、画像処理手段5において柄無地判別処理を行い、布片Cが無地物であるか柄物であるかを判別する(ステップS2)。布片Cが無地物である場合は白無地判別処理を行い、布片Cが白無地であるか色無地であるかを判別する(ステップS3)。布片Cが柄物である場合は柄種類判別処理を行い、布片Cの柄種類を判別する(ステップS4)。以下、各ステップの詳細を順に説明する。
Next, a color pattern determination process by the color pattern determination apparatus A will be described.
As shown in FIG. 2, the color pattern discrimination apparatus A first acquires a cloth image by photographing the cloth C with the camera 4 (step S1). Next, a pattern plain color determination process is performed in the image processing means 5 to determine whether the cloth piece C is a plain object or a pattern object (step S2). When the cloth piece C is a plain object, a white plain color determination process is performed to determine whether the cloth piece C is a white plain color or a color plain color (step S3). When the cloth piece C is a pattern, a pattern type discrimination process is performed to determine the pattern type of the cloth piece C (step S4). Hereinafter, details of each step will be described in order.

(1)布片画像取得(ステップS1)
作業員が色柄判別装置Aに布片Cを投入すると、カメラ4は検査台3を通過する布片Cを撮影する。画像処理手段5はその画像を布片画像として取得する(ステップS1)。布片画像は、例えばコンベア1、2で搬送される布片Cの進行方向先頭部分など、布片Cの一部のみの画像でもよいし、布片Cの全体が収まる画像でもよい。
(1) Cloth piece image acquisition (step S1)
When the worker puts the cloth piece C into the color pattern discrimination device A, the camera 4 takes an image of the cloth piece C passing through the inspection table 3. The image processing means 5 acquires the image as a cloth piece image (step S1). The cloth piece image may be an image of only a part of the cloth piece C, such as the leading portion of the cloth piece C conveyed by the conveyors 1 and 2, or may be an image in which the entire cloth piece C is accommodated.

一般に、カメラで撮影された画像はRGB表色系で表現されたデータである。RGB表色系は、赤要素を表すR値、緑要素を表すG値、青要素を表すB値の組合せで色を表現する。各要素を8ビットで表す場合には、R値、G値、B値がそれぞれ0〜255の範囲の値となる。例えば、黒色は全ての要素が最小値であり、(R,G,B)=(0,0,0)で表現される。白色は全ての要素が最大値であり、(R,G,B)=(255,255,255)で表現される。   In general, an image captured by a camera is data expressed in an RGB color system. The RGB color system represents a color by a combination of an R value representing a red element, a G value representing a green element, and a B value representing a blue element. When each element is represented by 8 bits, the R value, the G value, and the B value are values in the range of 0 to 255, respectively. For example, in black, all elements are minimum values, and are represented by (R, G, B) = (0,0,0). White is the maximum value for all elements, and is represented by (R, G, B) = (255,255,255).

表色系はRGB表色系以外にも、XYZ表色系やYxy表色系など種々の表色系が存在する。特許請求の範囲に記載の「色値」とは、任意の表色系において色を表現する値を意味し、RGB表色系においてはR値、G値、B値に相当する。以下では、RGB表色系を例に説明するが、他の表色系でも同様である。   In addition to the RGB color system, there are various color systems such as the XYZ color system and the Yxy color system. The “color value” described in the claims means a value representing a color in an arbitrary color system, and corresponds to an R value, a G value, and a B value in the RGB color system. Hereinafter, the RGB color system will be described as an example, but the same applies to other color systems.

(2)柄無地判別処理(ステップS2)
つぎに、図3に基づき柄無地判別処理(ステップS2)の詳細を説明する。
図7(A)に、布片Cが柄物である場合の布片画像Pを例示する。まず、画像処理手段5は、ステップS1で取得した布片画像Pからライン画像Lを取得する(ステップS2.1)。ここで、ライン画像Lとは布片画像Pの一部を構成する線状の画像である。カメラ4がラインセンサカメラである場合は、一のタイミングで撮影された画像をライン画像Lとすることができる。カメラ4がエリアセンサカメラである場合は、布片画像Pから1画素幅の線状の画像を抜き出してライン画像Lとすることができる。
(2) Pattern solid color discrimination processing (step S2)
Next, details of the pattern plain color determination process (step S2) will be described with reference to FIG.
FIG. 7A illustrates a cloth piece image P when the cloth piece C is a pattern. First, the image processing means 5 acquires the line image L from the cloth piece image P acquired at step S1 (step S2.1). Here, the line image L is a linear image constituting a part of the cloth image P. When the camera 4 is a line sensor camera, an image photographed at one timing can be used as the line image L. When the camera 4 is an area sensor camera, a line image having a width of 1 pixel can be extracted from the cloth image P to obtain a line image L.

図7(B)に、ライン画像Lの各色値(R値、G値、B値)の波形を例示する。図7(B)に示すグラフの横軸はライン画像Lに沿った位置座標を示し、縦軸は各色値(R値、G値、B値)を示す。各色値(R値、G値、B値)は、ライン画像L上の柄に沿ってその値が変化し、柄に従った波形を構成する。   FIG. 7B illustrates a waveform of each color value (R value, G value, B value) of the line image L. The horizontal axis of the graph shown in FIG. 7B indicates the position coordinates along the line image L, and the vertical axis indicates each color value (R value, G value, B value). Each color value (R value, G value, B value) changes in value along the pattern on the line image L, and forms a waveform according to the pattern.

つぎに、画像処理手段5は、ライン画像Lにおける布片領域Rを特定する(ステップS2.2)。ここで、布片領域Rとは、ライン画像Lまたは布片画像Pにおいて布片Cが映し出された領域である。前述のごとく、検査台3は所定の色であり、その検査台色が布片画像Pの背景色となる。画像処理手段5は、ライン画像Lにおける検査台色以外の領域を布片領域Rと特定する。図7(B)に示す例では、検査台色が黒色であり、検査台色の領域は各色値が最小値((R,G,B)=(0,0,0))、またはそれに近い値となっている。このような検査台色の領域を除外することで、布片領域Rを特定できる。   Next, the image processing means 5 specifies the piece region R in the line image L (step S2.2). Here, the cloth piece region R is an area where the cloth piece C is projected in the line image L or the cloth piece image P. As described above, the inspection table 3 has a predetermined color, and the inspection table color is the background color of the cloth piece image P. The image processing means 5 identifies an area other than the inspection table color in the line image L as the cloth area R. In the example shown in FIG. 7B, the inspection table color is black, and each color value in the inspection table color region is the minimum value ((R, G, B) = (0,0,0)) or close to it. It is a value. The cloth region R can be specified by excluding such an inspection table color region.

なお、検査台色としてどの色を採用するかは特に限定されないが、布片Cの色と区別がつきやすい色にすることが好ましい。一般に、布片Cは白色に近いため、検査台色を黒色とすることが好ましい。   In addition, although which color is employ | adopted as an inspection table | surface color is not specifically limited, It is preferable to set it as the color which can be distinguished from the color of the cloth piece C easily. In general, since the cloth piece C is close to white, it is preferable to set the inspection table color to black.

つぎに、画像処理手段5は、布片領域Rにおける各色値(R値、G値、B値)の波形それぞれの振幅(AR、AG、AB)を求める(ステップS2.3)。振幅(AR、AG、AB)の求め方は特に限定されないが、例えば、布片領域Rにおける色値の最大値と最小値との差から求めればよい。また、振幅(AR、AG、AB)を、布片領域Rにおける色値の最大値と最小値との差の半分としてもよいし、最大値と平均値との差としてもよいし、平均値と最小値との差としてもよいし、二乗平均平方根から求めてもよい。 Next, the image processing means 5 obtains the amplitude (A R , A G , A B ) of each color value (R value, G value, B value) in the cloth region R (step S2.3). The method for obtaining the amplitudes (A R , A G , A B ) is not particularly limited, and may be obtained from the difference between the maximum value and the minimum value of the color values in the cloth region R, for example. Further, the amplitude (A R , A G , A B ) may be half of the difference between the maximum value and the minimum value of the color values in the cloth region R, or may be the difference between the maximum value and the average value. The difference between the average value and the minimum value may be obtained, or may be obtained from the root mean square.

図7に示すように、布片Cが柄物である場合には、その柄に従って色値の波形に高低が生じるため、振幅(AR、AG、AB)が大きくなる。一方、図8(B)に示すように、布片Cが無地物である場合は、色値が位置によって変化しないため、振幅(AR、AG、AB)が小さくなる。 As shown in FIG. 7, when the cloth piece C is a pattern, the amplitude (A R , A G , A B ) increases because the waveform of the color value varies depending on the pattern. On the other hand, as shown in FIG. 8B, when the cloth piece C is a plain object, the amplitude (A R , A G , A B ) is small because the color value does not change depending on the position.

画像処理手段5は、ステップS2.3において求められた振幅(AR、AG、AB)と、予め記憶手段6に記憶されていた閾値とを比較することで、布片Cが無地物であるか、柄物であるかを判別する(ステップS2.4)。具体的には、全ての色値の振幅(AR、AG、AB)が閾値を超えない場合は、布片Cを無地物と判定する。いずれかの色値の振幅(AR、AG、AB)が閾値を超える場合は、布片Cを柄物と判定する。 The image processing means 5 compares the amplitude (A R , A G , A B ) obtained in step S2.3 with the threshold value stored in the storage means 6 in advance, so that the cloth piece C is a plain object. Or whether it is a handle (step S2.4). Specifically, when the amplitudes (A R , A G , A B ) of all the color values do not exceed the threshold value, the cloth piece C is determined as a plain object. When the amplitude (A R , A G , A B ) of any one of the color values exceeds the threshold value, the cloth piece C is determined as a pattern.

布片Cを無地物と判定した場合は、その判定結果を戻り値として返して柄無地判別処理(ステップS2)を終了する(ステップS2.5)。布片Cを柄物と判定した場合は、その判定結果を戻り値として返して柄無地判別処理(ステップS2)を終了する(ステップS2.6)。   When the cloth piece C is determined to be a plain object, the determination result is returned as a return value, and the pattern plain color determination process (step S2) is terminated (step S2.5). When it is determined that the cloth piece C is a pattern, the determination result is returned as a return value, and the pattern plain color determination process (step S2) is terminated (step S2.6).

以上のように、ライン画像Lの布片領域Rにおける色値の波形の振幅(AR、AG、AB)から、布片Cが無地物であるか、柄物であるか判別できる。
また、ライン画像Lにおける検査台色以外の部分を布片領域Rとすることで、布片領域Rの特定が容易となり、正確に特定できる。その結果、無地物と柄物との判別の精度が向上する。
As described above, from the amplitudes (A R , A G , A B ) of the waveform of the color value in the cloth region R of the line image L, it can be determined whether the cloth piece C is a plain object or a patterned object.
Further, by setting the portion other than the inspection table color in the line image L as the cloth region R, the cloth region R can be easily specified and accurately specified. As a result, the accuracy of discrimination between plain and patterned objects is improved.

なお、上記実施形態では、1つのライン画像Lを基に無地物と柄物とを判別しているが、複数のライン画像Lを基に判別してもよい。この場合には、各ライン画像Lの布片領域Rにおける各色値の波形の振幅(AR、AG、AB)を求め、求められた各振幅(AR、AG、AB)と閾値とをそれぞれ比較して、布片Cが無地物であるか、柄物であるかを判別する。ライン画像Lの数を増やすことで、判別精度を向上させることができる。 In the above embodiment, the plain object and the patterned object are determined based on one line image L, but may be determined based on a plurality of line images L. In this case, the amplitude (A R , A G , A B ) of the waveform of each color value in the cloth region R of each line image L is obtained, and the obtained amplitude (A R , A G , A B ) and Each of the threshold values is compared to determine whether the cloth piece C is a plain object or a patterned object. By increasing the number of line images L, the discrimination accuracy can be improved.

ライン画像Lは、布片Cの幅方向(進行方向に対して直角方向)に沿って定めてもよいし、布片Cの縦方向(進行方向に沿った方向)に沿って定めてもよいし、布片Cの斜め方向(進行方向に対して斜め方向)に沿って定めてもよい。また、布片Cの幅方向、縦方向、斜め方向のライン画像Lを組み合わせて、各ライン画像Lを基に無地物と柄物とを判別してもよい。   The line image L may be determined along the width direction (perpendicular to the traveling direction) of the cloth piece C, or may be determined along the longitudinal direction (direction along the traveling direction) of the cloth piece C. However, it may be determined along the oblique direction of the cloth piece C (the oblique direction with respect to the traveling direction). Alternatively, the line image L in the width direction, the vertical direction, and the oblique direction of the cloth piece C may be combined to determine the plain object and the patterned object based on each line image L.

また、上記実施形態では、ライン画像Lの布片領域Rにおける色値の波形を基に無地物と柄物とを判別しているが、布片画像Pの布片領域Rにおける色値の波形を基に判別してもよい。この場合には、色値の波形は2次元(布片Cの幅方向と縦方向)の広がりを有する。そのため、ステップS2.3では、2次元の広がりを有する色値の波形の振幅を求めればよい。   Further, in the above-described embodiment, a plain object and a pattern are discriminated based on the waveform of the color value in the cloth region R of the line image L, but the waveform of the color value in the cloth region R of the cloth image P is determined. You may judge based on. In this case, the waveform of the color value has a two-dimensional spread (width direction and longitudinal direction of the cloth piece C). Therefore, in step S2.3, the amplitude of the waveform of the color value having a two-dimensional spread may be obtained.

(3)白無地判別処理(ステップS3)
画像処理手段5は、柄無地判別処理(ステップS2)において布片Cを無地物と判定した場合に、白無地判別処理(ステップS3)を行う(図2参照)。白無地判別処理(ステップS3)では、布片Cが「白無地」であるか、「色無地」であるかを判別する。以下、図4に基づき白無地判別処理(ステップS3)の詳細を説明する。
(3) Solid white color discrimination processing (step S3)
When the cloth C is determined to be a plain object in the pattern plain color determination process (step S2), the image processing means 5 performs a white solid color determination process (step S3) (see FIG. 2). In the white plain color determination process (step S3), it is determined whether the cloth piece C is “white solid color” or “color plain color”. Hereinafter, the details of the white plain color determination process (step S3) will be described with reference to FIG.

まず、画像処理手段5は、布片画像Pの布片領域Rの色値(R値VR、G値VG、B値VB)を取得する(ステップS3.1)。ここで、色値(VR、VG、VB)を、布片領域Rの全体または一部の画素の色値の平均値としてもよいし、布片領域Rにおける特定の画素の色値としてもよい。ただし、無地物であっても、色値が位置を問わず均一であるとは限られず、シワやパイルなどの凹凸によって影が生じると、位置によって色値が異なる場合がある。このような影などの影響を低減させるため、色値(VR、VG、VB)として布片領域Rの全体または一部の画素の色値の平均値を用いることが好ましい。 First, the image processing means 5 acquires the color values (R value V R , G value V G , B value V B ) of the cloth region R of the cloth image P (step S3.1). Here, the color values (V R , V G , V B ) may be average values of the color values of all or some of the pixels in the cloth region R, or the color values of specific pixels in the cloth region R. It is good. However, even if it is a plain object, the color value is not always uniform regardless of the position, and if a shadow is caused by unevenness such as wrinkles or piles, the color value may differ depending on the position. In order to reduce the influence of such shadows and the like, it is preferable to use the average value of the color values of all or part of the cloth region R as the color values (V R , V G , V B ).

つぎに、画像処理手段5は、ステップS3.1で取得された色値(VR、VG、VB)と、予め記憶手段6に記憶されていた閾値とを比較することで、布片Cが白無地であるか、色無地であるかを判別する(ステップS3.2)。 Next, the image processing means 5 compares the color values (V R , V G , V B ) acquired in step S3.1 with the threshold values stored in advance in the storage means 6 to thereby determine the cloth piece. It is determined whether C is white or color (step S3.2).

前述のごとく、RGB表色系において白色は全ての色値が最大値((R,G,B)=(255,255,255))として表現される。そのため、全ての色値(VR、VG、VB)が閾値を超える場合は、色値(VR、VG、VB)が白色に近いといえるため、布片Cを白無地と判定する。いずれかの色値(VR、VG、VB)が閾値を超えない場合は、布片Cを色無地と判定する。 As described above, in the RGB color system, white is expressed as a maximum value ((R, G, B) = (255,255,255)) for all color values. Therefore, if all the color values (V R , V G , V B ) exceed the threshold value, the color values (V R , V G , V B ) can be said to be close to white. judge. If any one of the color values (V R , V G , V B ) does not exceed the threshold value, the cloth piece C is determined as a solid color.

また、RGB色空間における白色からの距離を指標として色値(VR、VG、VB)が白色に近いか否かを判断してもよい。すなわち、白色のR値をVRW(=255)、G値をVGW(=255)、B値をVBW(=255)として、ステップS3.1で取得された色値(VR、VG、VB)の白色(VRW、VGW、VBW)からの距離dを数1に基づき演算する。距離dが閾値を超える場合は、色値(VR、VG、VB)が白色に近いといえるため、布片Cを白無地と判定する。距離dが閾値を超えない場合は、布片Cを色無地と判定する。
Further, it may be determined whether or not the color values (V R , V G , V B ) are close to white using the distance from white in the RGB color space as an index. That is, assuming that the white R value is V RW (= 255), the G value is V GW (= 255), and the B value is V BW (= 255), the color values acquired in step S3.1 (V R , V The distance d from white (V RW , V GW , V BW ) of G , V B ) is calculated based on Equation 1. When the distance d exceeds the threshold value, it can be said that the color values (V R , V G , V B ) are close to white, so the cloth piece C is determined to be plain white. If the distance d does not exceed the threshold value, the cloth piece C is determined to be plain.

布片Cを白無地と判定した場合は、その判定結果を出力して白無地判別処理(ステップS3)を終了する(ステップS3.3)。布片Cを色無地と判定した場合には、その判定結果を出力して白無地判別処理(ステップS3)を終了する(ステップS3.4)。   When it is determined that the cloth C is white, the determination result is output, and the white plain determination process (step S3) is terminated (step S3.3). If it is determined that the cloth piece C is a plain color, the determination result is output and the white solid color determination process (step S3) is terminated (step S3.4).

以上のように、布片画像Pの色値から、布片Cが白無地であるか、色無地であるか判別できる。   As described above, it can be determined from the color value of the cloth piece image P whether the cloth piece C is white or plain.

(4)柄種類判別処理(ステップS4)
画像処理手段5は、柄無地判別処理(ステップS2)において布片Cを柄物と判定した場合に、柄種類判別処理(ステップS4)を行う(図2参照)。柄種類判別処理(ステップS4)では、布片Cの「柄種類」を判別する。以下、図5に基づき柄種類判別処理(ステップS4)の詳細を説明する。
(4) Pattern type discrimination process (step S4)
The image processing means 5 performs a pattern type determination process (step S4) when the cloth piece C is determined to be a pattern in the pattern plain color determination process (step S2) (see FIG. 2). In the pattern type determination process (step S4), the “pattern type” of the cloth piece C is determined. Hereinafter, the details of the pattern type determination process (step S4) will be described with reference to FIG.

まず、画像処理手段5は、布片画像Pからライン画像Lを取得することで、そのライン画像Lの各色値(R値、G値、B値)の波形を取得する(ステップS4.1)。つぎに、画像処理手段5は、取得された各色値(R値、G値、B値)の波形から、それぞれのピークパターンを求める(ステップS4.2)。   First, the image processing means 5 acquires the line image L from the cloth image P, thereby acquiring the waveform of each color value (R value, G value, B value) of the line image L (step S4.1). . Next, the image processing means 5 obtains each peak pattern from the acquired waveform of each color value (R value, G value, B value) (step S4.2).

ここで、ピークパターンとは、色値の波形のピーク同士の間隔(ピーク間隔)の配列パターンであり、色値の波形を単純化して表現したものである。画像処理手段5は、各色値(R値、G値、B値)の波形についてピークを抽出し、抽出したピークからピーク間隔を求めることで、ピークパターンを求める。一般に、柄物には周期的な柄が施されているため、ピークパターンは周期的なものとなる。例えば、図9に示すような色値の波形の場合、ピーク間隔は、l1、l2、l3、l1、l2、l3、・・・という配列パターンとなる。この場合、1周期分の(l1、l2、l3)をピークパターンとする。 Here, the peak pattern is an arrangement pattern of intervals (peak intervals) between the peaks of the color value waveform, and is a simplified representation of the waveform of the color value. The image processing means 5 obtains a peak pattern by extracting a peak for each color value (R value, G value, B value) waveform and obtaining a peak interval from the extracted peak. In general, the pattern has a periodic pattern, and therefore the peak pattern is periodic. For example, in the case of a color value waveform as shown in FIG. 9, the peak interval is an array pattern of l 1 , l 2 , l 3 , l 1 , l 2 , l 3 ,. In this case, (l 1 , l 2 , l 3 ) for one period is set as a peak pattern.

記憶手段6には、予め布片Cの柄種類ごとに基準となるピークパターン(以下、基準ピークパターンと称する。)が記憶されている。基準ピークパターンは、布片Cの柄種類ごとの基準となる色値の波形(以下、基準波形と称する。)から求められたものである。   The storage unit 6 stores in advance a reference peak pattern for each pattern type of the cloth piece C (hereinafter referred to as a reference peak pattern). The reference peak pattern is obtained from a waveform of a color value serving as a reference for each pattern type of the cloth piece C (hereinafter referred to as a reference waveform).

つぎに、画像処理手段5は、ステップS4.2で求められたピークパターンを記憶手段6に記憶された基準ピークパターンの中から探索する(ステップS4.3)。そして、布片Cを探索された基準ピークパターンに対応する柄種類と判定し、その判定結果を出力して柄種類判別処理(ステップS4)を終了する(ステップS4.4)。   Next, the image processing means 5 searches for the peak pattern obtained in step S4.2 from the reference peak patterns stored in the storage means 6 (step S4.3). Then, the cloth piece C is determined as the pattern type corresponding to the searched reference peak pattern, and the determination result is output, and the pattern type determination process (step S4) is ended (step S4.4).

以上のように、布片画像Pの色値の波形から、布片Cの柄種類を判別できる。
また、布片画像Pの色値の波形をピークパターンとし、そのピークパターンから布片Cの柄種類を判別するので、波形そのものを探索する場合に比べてピークパターンの探索が容易であり、柄種類の判別の精度が向上する。
As described above, the pattern type of the cloth piece C can be determined from the waveform of the color value of the cloth piece image P.
In addition, since the waveform of the color value of the cloth image P is used as a peak pattern, and the pattern type of the cloth C is determined from the peak pattern, the peak pattern can be easily searched as compared with the case where the waveform itself is searched. The accuracy of type discrimination is improved.

なお、上記実施形態では、1つのライン画像Lを基に柄種類を判別しているが、複数のライン画像Lを基に判別してもよい。この場合には、各ライン画像Lの色値の波形のピークパターンを求め、求められたピークパターンを基準ピークパターンの中から探索することで、布片Cの柄種類を判別する。ライン画像Lの数を増やすことで、判別精度を向上させることができる。   In the above embodiment, the pattern type is determined based on one line image L, but may be determined based on a plurality of line images L. In this case, the peak pattern of the waveform of the color value of each line image L is obtained, and the pattern type of the cloth piece C is determined by searching the obtained peak pattern from the reference peak pattern. By increasing the number of line images L, the discrimination accuracy can be improved.

ライン画像Lは、布片Cの幅方向(進行方向に対して直角方向)に沿って定めてもよいし、布片Cの縦方向(進行方向に沿った方向)に沿って定めてもよいし、布片Cの斜め方向(進行方向に対して斜め方向)に沿って定めてもよい。また、布片Cの幅方向、縦方向、斜め方向のライン画像Lを組み合わせて、各ライン画像Lを基に柄種類を判別してもよい。   The line image L may be determined along the width direction (perpendicular to the traveling direction) of the cloth piece C, or may be determined along the longitudinal direction (direction along the traveling direction) of the cloth piece C. However, it may be determined along the oblique direction of the cloth piece C (the oblique direction with respect to the traveling direction). Alternatively, the pattern type may be determined based on each line image L by combining the line images L in the width direction, the vertical direction, and the oblique direction of the cloth piece C.

また、上記実施形態では、ピークパターンを基に柄種類を判別しているが、布片画像Pの色値の波形そのものを基に判別してもよい。この場合には、記憶手段6には、布片Cの柄種類ごとの色値の基準波形を予め記憶しておき、取得された波形を基準波形の中から探索して、布片Cを探索された波形に対応する柄種類と判定する。   In the above embodiment, the pattern type is determined based on the peak pattern, but may be determined based on the waveform of the color value of the cloth image P itself. In this case, the storage means 6 stores in advance a reference waveform of color values for each pattern type of the cloth C, searches the reference waveform for the acquired waveform, and searches for the cloth C. It is determined that the pattern type corresponds to the waveform.

さらに、上記実施形態では、ライン画像Lの色値の波形を基に柄種類を判別しているが、布片画像Pの色値の波形、すなわち、2次元(布片Cの幅方向と縦方向)の広がりを有する色値の波形を基に判別してもよい。   Furthermore, in the above embodiment, the pattern type is determined based on the color value waveform of the line image L, but the color value waveform of the cloth image P, that is, two-dimensional (the width direction and the vertical direction of the cloth C). The determination may be made on the basis of a waveform of color values having a spread of (direction).

以上の処理により、布片Cが「無地物」であるか「柄物」であるか、「白無地」であるか「色無地」であるか、どの「柄種類」であるかを判別できる。後段の布片検査装置では、色柄判別装置Aの判定結果により検査方法や閾値などの設定値を自動で切り替えることができる。また、折畳み機では、色柄判別装置Aの判定結果によりスタック位置を自動で切り替えることができる。   With the above processing, it is possible to determine which “pattern type” the fabric piece C is “plain fabric” or “patterned”, “white plain” or “color plain”. In the subsequent cloth piece inspection apparatus, setting values such as an inspection method and a threshold can be automatically switched according to the determination result of the color pattern determination apparatus A. In the folding machine, the stack position can be automatically switched based on the determination result of the color pattern determination device A.

例えば、布片検査装置では、「無地物」と「柄物」とで検査方法を切り替え、「白無地」と「色無地」とで閾値などの設定値を切り替える。また、折畳み機は、「白無地」、「色無地」、「柄種類」によりスタック位置を切り替える。そのため、作業員が布片Cを色柄別に分別する必要がなく、作業の手間を省くことができる。   For example, in the cloth inspection apparatus, the inspection method is switched between “plain fabric” and “patterned”, and the setting value such as a threshold is switched between “white plain” and “color plain”. Further, the folding machine switches the stack position according to “white plain”, “color plain”, and “pattern type”. For this reason, it is not necessary for the worker to separate the cloth pieces C by color patterns, and the labor of the work can be saved.

(第2実施形態)
つぎに、本発明の第2実施形態に係る色柄判別装置Bを説明する。
色柄判別装置Bは、第1実施形態の色柄判別装置Aにおいて、柄無地判別処理(ステップS2)において布片Cを無地物と判定した場合に、白無地判別処理(ステップS3)に代えて色種類判別処理(ステップS5)を行う実施形態である。色種類判別処理(ステップS5)では、布片Cの「色種類」を判別する。
(Second Embodiment)
Next, a color pattern discrimination apparatus B according to the second embodiment of the present invention will be described.
The color pattern discriminating apparatus B replaces the white solid color discrimination process (step S3) when the color pattern discrimination apparatus A of the first embodiment determines that the cloth piece C is a plain color in the pattern plain color discrimination process (step S2). In this embodiment, the color type determination process (step S5) is performed. In the color type determination process (step S5), the “color type” of the cloth piece C is determined.

本実施形態において記憶手段6には、布片Cの色種類ごとに基準となる色値(以下、基準色値と称する。)が記憶されている。   In the present embodiment, the storage unit 6 stores a reference color value (hereinafter referred to as a reference color value) for each color type of the cloth piece C.

以下、図6に基づき色種類判別処理(ステップS5)の詳細を説明する。
まず、画像処理手段5は、布片画像Pの布片領域Rの色値(VR、VG、VB)を取得する(ステップS5.1)。色値(VR、VG、VB)を、布片領域Rの全体または一部の画素の色値の平均値としてもよいし、布片領域Rにおける特定の画素の色値としてもよい。
Details of the color type determination process (step S5) will be described below with reference to FIG.
First, the image processing means 5 acquires the color value (V R , V G , V B ) of the cloth region R of the cloth image P (step S5.1). The color values (V R , V G , V B ) may be the average value of the color values of all or part of the cloth region R, or may be the color values of specific pixels in the cloth region R. .

つぎに、画像処理手段5は、ステップS5.1で取得された色値(VR、VG、VB)を記憶手段6に記憶された基準色値の中から探索する(ステップS5.2)。そして、布片Cを探索された基準色値に対応する色種類と判定し、その判定結果を出力して色種類判別処理(ステップS5)を終了する(ステップS5.3)。 Next, the image processing means 5 searches the reference color values stored in the storage means 6 for the color values (V R , V G , V B ) acquired in step S5.1 (step S5.2). ). Then, the cloth piece C is determined to be a color type corresponding to the searched reference color value, and the determination result is output, and the color type determination process (step S5) is ended (step S5.3).

以上のように、布片画像Pの色値から、布片Cの色種類を判別できる。そのため、色柄判別装置Bの判定結果により布片検査装置の閾値などの設定値を自動で切り替えたり、折畳み機のスタック位置を自動で切り替えたりできるので、作業員が布片Cを色種類別に分別する必要がなく、作業の手間を省くことができる。   As described above, the color type of the cloth piece C can be determined from the color value of the cloth piece image P. Therefore, since the setting value such as the threshold value of the cloth inspection device can be automatically switched or the stack position of the folding machine can be automatically switched based on the determination result of the color pattern determination device B, the worker can change the cloth C by color type. There is no need to separate them, and the work can be saved.

(その他の実施形態)
上記実施形態では、検査台3を設け、布片画像Pにおける検査台色以外の領域を布片領域Rと特定したが、カメラ4の撮影範囲が布片Cよりも狭い場合には、布片画像Pに背景が写り込まない。この場合には、布片画像Pの全体が布片領域Rであるので、布片領域Rを特定する必要がない。そのため、検査台3を設ける必要はなく、布片領域Rを特定するステップ(S2.2)を省略できる。
(Other embodiments)
In the above embodiment, the inspection table 3 is provided, and the region other than the inspection table color in the cloth image P is specified as the cloth region R. However, when the photographing range of the camera 4 is narrower than the cloth C, the cloth piece The background does not appear in the image P. In this case, since the entire cloth image P is the cloth area R, it is not necessary to specify the cloth area R. Therefore, it is not necessary to provide the inspection table 3, and the step (S2.2) for specifying the cloth region R can be omitted.

また、上記の柄無地判別処理(ステップS2)、白無地別処理(ステップS3)、柄種類判別処理(ステップS4)、色種類判別処理(ステップS5)のいずれが一つのみを実施してもよいし、2つ以上を組み合わせて実施してもよい。投入される布片Cの色柄や、後段の装置で必要とされる情報によって必要な処理を選択すればよい。   In addition, any one of the above-described pattern plain color discrimination processing (step S2), white solid color discrimination processing (step S3), pattern type discrimination processing (step S4), and color type discrimination processing (step S5) may be performed. It may be implemented by combining two or more. What is necessary is just to select a required process according to the color pattern of the cloth piece C to be thrown in or information required by the subsequent apparatus.

A 色柄判別装置
1、2 コンベア
3 検査台
4 カメラ
5 画像処理手段
6 記憶手段
A color pattern discrimination device 1, 2, conveyor 3, inspection table 4, camera 5, image processing means 6, storage means

Claims (9)

布片を撮影するカメラと、
該カメラで撮影した画像を画像処理する画像処理手段と、を備え、
前記カメラは、前記布片を撮影して布片画像とし、
前記画像処理手段は、
前記布片画像の布片領域における色値の波形の振幅を求め、
求められた前記振幅が閾値を超えない場合は前記布片を無地物と判定し、閾値を超える場合は前記布片を柄物と判定し、
前記布片を無地物と判定した場合に、
前記布片画像の色値を取得し、
取得された前記色値が白色に近い場合は前記布片を白無地と判定し、それ以外の場合は前記布片を色無地と判定する
ことを特徴とする色柄判別装置。
A camera that shoots a piece of cloth,
Image processing means for processing an image taken by the camera,
The camera shoots the cloth piece to form a cloth piece image,
The image processing means includes
Obtain the amplitude of the waveform of the color value in the cloth area of the cloth image,
When the obtained amplitude does not exceed the threshold, the cloth piece is determined as a plain object, and when the threshold value is exceeded, the cloth piece is determined as a pattern ,
When it is determined that the cloth piece is plain,
Obtaining a color value of the cloth image,
The color pattern discriminating apparatus, wherein when the acquired color value is close to white, the cloth piece is determined to be white solid color, and otherwise, the cloth piece is determined to be color solid color.
布片を撮影するカメラと、  A camera that shoots a piece of cloth,
該カメラで撮影した画像を画像処理する画像処理手段と、Image processing means for image processing an image taken by the camera;
該画像処理手段がアクセス可能な記憶手段と、を備え、Storage means accessible by the image processing means,
前記記憶手段には、前記布片の色種類ごとの基準色値が記憶されており、The storage means stores a reference color value for each color type of the cloth piece,
前記カメラは、前記布片を撮影して布片画像とし、The camera shoots the cloth piece to form a cloth piece image,
前記画像処理手段は、The image processing means includes
前記布片画像の布片領域における色値の波形の振幅を求め、Obtain the amplitude of the waveform of the color value in the cloth area of the cloth image,
求められた前記振幅が閾値を超えない場合は前記布片を無地物と判定し、閾値を超える場合は前記布片を柄物と判定し、When the obtained amplitude does not exceed the threshold, the cloth piece is determined as a plain object, and when the threshold value is exceeded, the cloth piece is determined as a pattern,
前記布片を無地物と判定した場合に、When it is determined that the cloth piece is plain,
前記布片画像の色値を取得し、Obtaining a color value of the cloth image,
取得された前記色値を前記基準色値の中から探索し、Search the acquired color value from the reference color value,
前記布片を探索された基準色値に対応する色種類と判定するThe cloth piece is determined as a color type corresponding to the searched reference color value.
ことを特徴とする色柄判別装置。A color pattern discriminating apparatus.
所定の色の検査台を備え、
前記カメラは、前記検査台を通過する前記布片を撮影して布片画像とし、
前記画像処理手段は、前記布片画像における前記検査台の色以外の領域を前記布片領域と特定する
ことを特徴とする請求項1または2記載の色柄判別装置。
It has an inspection table of a predetermined color,
The camera shoots the cloth piece passing through the inspection table to form a cloth piece image,
Wherein the image processing means, a color pattern discriminating apparatus according to claim 1 or 2, wherein the area other than the inspection table color in the fabric piece image specified as the fabric strip region.
布片を撮影するカメラと、
該カメラで撮影した画像を画像処理する画像処理手段と、
該画像処理手段がアクセス可能な記憶手段と、を備え、
前記記憶手段には、前記布片の柄種類ごとの色値の基準波形が記憶されており、
前記カメラは、前記布片を撮影して布片画像とし、
前記画像処理手段は、
前記布片画像の色値の波形を取得し、
取得された前記波形を前記基準波形の中から探索し、
前記布片を探索された基準波形に対応する柄種類と判定する
ことを特徴とする色柄判別装置。
A camera that shoots a piece of cloth,
Image processing means for image processing an image taken by the camera;
Storage means accessible by the image processing means,
The storage means stores a reference waveform of a color value for each pattern type of the cloth piece,
The camera shoots the cloth piece to form a cloth piece image,
The image processing means includes
Obtain the waveform of the color value of the cloth image,
Search the acquired waveform from the reference waveform,
A color pattern discriminating apparatus, wherein the cloth piece is determined as a pattern type corresponding to the searched reference waveform.
前記記憶手段には、前記布片の柄種類ごとの色値の基準波形が基準ピークパターンとして記憶されており、
前記画像処理手段は、
前記布片画像の色値の波形を取得し、
取得された前記波形のピークパターンを求め、
求められた前記ピークパターンを前記基準ピークパターンの中から探索し、
前記布片を探索された基準ピークパターンに対応する柄種類と判定する
ことを特徴とする請求項記載の色柄判別装置。
In the storage means, a reference waveform of a color value for each pattern type of the cloth piece is stored as a reference peak pattern,
The image processing means includes
Obtain the waveform of the color value of the cloth image,
Obtain the peak pattern of the acquired waveform,
The obtained peak pattern is searched from the reference peak pattern,
5. The color pattern discriminating apparatus according to claim 4, wherein the cloth piece is determined as a pattern type corresponding to the searched reference peak pattern.
布片を撮影した布片画像の布片領域における色値の波形の振幅を求め、
求められた前記振幅が閾値を超えない場合は前記布片を無地物と判定し、閾値を超える場合は前記布片を柄物と判定し、
前記布片を無地物と判定した場合に、
前記布片画像の色値を取得し、
取得された前記色値が白色に近い場合は前記布片を白無地と判定し、それ以外の場合は前記布片を色無地と判定する
ことを特徴とする色柄判別方法。
Obtain the amplitude of the waveform of the color value in the cloth area of the cloth image of the cloth image,
When the obtained amplitude does not exceed the threshold, the cloth piece is determined as a plain object, and when the threshold value is exceeded, the cloth piece is determined as a pattern ,
When it is determined that the cloth piece is plain,
Obtaining a color value of the cloth image,
The color pattern discrimination method, wherein when the acquired color value is close to white, the cloth piece is determined to be white solid color, and otherwise, the cloth piece is determined to be color solid color.
予め布片の色種類ごとの基準色値を記憶しておき、  A reference color value for each color type of the cloth piece is stored in advance,
前記布片を撮影した布片画像の布片領域における色値の波形の振幅を求め、Obtain the amplitude of the waveform of the color value in the cloth region of the cloth image obtained by photographing the cloth piece,
求められた前記振幅が閾値を超えない場合は前記布片を無地物と判定し、閾値を超える場合は前記布片を柄物と判定し、When the obtained amplitude does not exceed the threshold, the cloth piece is determined as a plain object, and when the threshold value is exceeded, the cloth piece is determined as a pattern,
前記布片を無地物と判定した場合に、When it is determined that the cloth piece is plain,
前記布片画像の色値を取得し、Obtaining a color value of the cloth image,
取得された前記色値を前記基準色値の中から探索し、Search the acquired color value from the reference color value,
前記布片を探索された基準色値に対応する色種類と判定するThe cloth piece is determined as a color type corresponding to the searched reference color value.
ことを特徴とする色柄判別方法。A color pattern discrimination method characterized by the above.
予め布片の柄種類ごとの色値の基準波形を記憶しておき、
前記布片を撮影した布片画像の色値の波形を取得し、
取得された前記波形を前記基準波形の中から探索し、
前記布片を探索された基準波形に対応する柄種類と判定する
ことを特徴とする色柄判別方法。
Store a reference waveform of color values for each pattern type of the cloth piece in advance,
Obtain a waveform of the color value of the cloth image obtained by photographing the cloth,
Search the acquired waveform from the reference waveform,
A color pattern discrimination method, wherein the cloth piece is determined as a pattern type corresponding to the searched reference waveform.
予め布片の柄種類ごとの色値の基準波形を基準ピークパターンとして記憶しておき、
前記布片を撮影した布片画像の色値の波形を取得し、
取得された前記波形のピークパターンを求め、
求められた前記ピークパターンを前記基準ピークパターンの中から探索し、
前記布片を探索された基準ピークパターンに対応する柄種類と判定する
ことを特徴とする色柄判別方法。
The reference waveform of the color value for each pattern type of the cloth piece is stored in advance as a reference peak pattern,
Obtain a waveform of the color value of the cloth image obtained by photographing the cloth,
Obtain the peak pattern of the acquired waveform,
The obtained peak pattern is searched from the reference peak pattern,
A color pattern discrimination method, wherein the cloth piece is determined as a pattern type corresponding to a searched reference peak pattern.
JP2013081273A 2013-04-09 2013-04-09 Color pattern discrimination device and color pattern discrimination method Active JP6148521B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013081273A JP6148521B2 (en) 2013-04-09 2013-04-09 Color pattern discrimination device and color pattern discrimination method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013081273A JP6148521B2 (en) 2013-04-09 2013-04-09 Color pattern discrimination device and color pattern discrimination method

Publications (2)

Publication Number Publication Date
JP2014202700A JP2014202700A (en) 2014-10-27
JP6148521B2 true JP6148521B2 (en) 2017-06-14

Family

ID=52353236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013081273A Active JP6148521B2 (en) 2013-04-09 2013-04-09 Color pattern discrimination device and color pattern discrimination method

Country Status (1)

Country Link
JP (1) JP6148521B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022249875A1 (en) * 2021-05-28 2022-12-01 パナソニックIpマネジメント株式会社 Image identification device and image identification method

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6815722B2 (en) 2015-07-31 2021-01-20 株式会社ニデック Terminal device and terminal control program
JP6739157B2 (en) * 2015-10-23 2020-08-12 株式会社プレックス Cloth type identification device
JP2017079881A (en) 2015-10-23 2017-05-18 株式会社プレックス Fabric type identification device and identification method
JP6583683B2 (en) * 2015-12-25 2019-10-02 パナソニックIpマネジメント株式会社 Clothing processing equipment
JP7185501B2 (en) * 2018-11-14 2022-12-07 東都フォルダー工業株式会社 Image processing device for sheet material with pattern

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2668827B2 (en) * 1985-08-23 1997-10-27 三菱重工業株式会社 Linen sorting equipment
JPH0296642A (en) * 1988-10-04 1990-04-09 Omron Tateisi Electron Co Apparatus for judging appearance
JPH03280165A (en) * 1990-03-29 1991-12-11 Anritsu Corp Appearance inspection device
JPH05220286A (en) * 1992-02-15 1993-08-31 Brother Ind Ltd Pattern recognizing device
JP2880393B2 (en) * 1994-01-31 1999-04-05 ジューキ株式会社 Pattern matching device
JPH08276100A (en) * 1995-04-04 1996-10-22 Mitsubishi Heavy Ind Ltd Device for detecting defect in piece of cloth
JPH10208041A (en) * 1997-01-17 1998-08-07 Omron Corp Object surface discriminating device
US6650779B2 (en) * 1999-03-26 2003-11-18 Georgia Tech Research Corp. Method and apparatus for analyzing an image to detect and identify patterns
JP2002131133A (en) * 2000-10-26 2002-05-09 Matsushita Electric Works Ltd Method for specifying color of image, method for extracting color of image, and image processor
JP4440281B2 (en) * 2007-04-02 2010-03-24 株式会社プレックス Inspection method and apparatus for sheet-like article
JP4495197B2 (en) * 2007-07-31 2010-06-30 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022249875A1 (en) * 2021-05-28 2022-12-01 パナソニックIpマネジメント株式会社 Image identification device and image identification method

Also Published As

Publication number Publication date
JP2014202700A (en) 2014-10-27

Similar Documents

Publication Publication Date Title
JP6148521B2 (en) Color pattern discrimination device and color pattern discrimination method
CN107315011B (en) Image processing apparatus, image processing method, and storage medium
JP2018179699A5 (en)
JP2019134269A5 (en)
EP3366832A1 (en) Fabric type identification device
JP2018029250A5 (en)
JP2018029251A (en) Inspection apparatus, inspection method, and program
JP2018029250A (en) Signal processor, signal processing method, and program
EP3366831A1 (en) Fabric type identification device and type identification method
KR101141811B1 (en) Image sensing apparatus and method
JP6199799B2 (en) Self-luminous material image processing apparatus and self-luminous material image processing method
JP2012022518A (en) Device and method for reading mark
JP4219068B2 (en) Cardboard box inspection equipment
KR100966876B1 (en) Object detection method and apparatus
TWI767229B (en) Appearance inspection management system, appearance inspection management device, appearance inspection management method, and program
JP4355479B2 (en) DEFECT LEVEL INFORMATION SETTING METHOD IN DEFECTED CRACK DETECTOR
JP6323720B2 (en) Image processing device
JPS62231069A (en) Method for detecting defect of cloth inspecting machine
JP7187830B2 (en) Image processing program, image processing apparatus, and image processing method
JP7185500B2 (en) Sheet material image processing device
KR101012626B1 (en) Method and apparatus for defective pixel detection based on the human visual system
JP5818948B2 (en) Cloth piece inspection device
JP6048872B2 (en) Cloth piece inspection method and cloth piece inspection apparatus
JP5189439B2 (en) Cloth detection apparatus and cloth detection method
JP2010134958A (en) Boundary detection method, program and device using the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161004

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161129

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: 20170425

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170519

R150 Certificate of patent or registration of utility model

Ref document number: 6148521

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