JP2013149039A - Vehicle color determination device, computer program, and vehicle color determination method - Google Patents
Vehicle color determination device, computer program, and vehicle color determination method Download PDFInfo
- Publication number
- JP2013149039A JP2013149039A JP2012008386A JP2012008386A JP2013149039A JP 2013149039 A JP2013149039 A JP 2013149039A JP 2012008386 A JP2012008386 A JP 2012008386A JP 2012008386 A JP2012008386 A JP 2012008386A JP 2013149039 A JP2013149039 A JP 2013149039A
- Authority
- JP
- Japan
- Prior art keywords
- color
- pixel
- vehicle
- determination
- license plate
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000004590 computer program Methods 0.000 title claims abstract description 18
- 238000004364 calculation method Methods 0.000 claims abstract description 33
- 238000003384 imaging method Methods 0.000 claims description 29
- 238000000605 extraction Methods 0.000 claims description 23
- 238000001514 detection method Methods 0.000 claims description 22
- 239000003086 colorant Substances 0.000 claims description 17
- 238000012937 correction Methods 0.000 claims description 12
- 239000000284 extract Substances 0.000 claims description 9
- 230000008859 change Effects 0.000 claims description 6
- 235000019557 luminance Nutrition 0.000 description 274
- 230000008569 process Effects 0.000 description 31
- 238000010586 diagram Methods 0.000 description 25
- 238000012545 processing Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 11
- 238000005286 illumination Methods 0.000 description 10
- 229910052709 silver Inorganic materials 0.000 description 10
- 239000004332 silver Substances 0.000 description 10
- 238000006243 chemical reaction Methods 0.000 description 6
- 238000013459 approach Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 229920006395 saturated elastomer Polymers 0.000 description 2
- 238000005452 bending Methods 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Traffic Control Systems (AREA)
- Image Analysis (AREA)
Abstract
【課題】精度良く車両の色を判定することができる車色判定装置、コンピュータプログラム及び車色判定方法を提供する。
【解決手段】ナンバープレート検出部12は、撮像画像からナンバープレート領域を検出する。ナンバープレート輝度値算出部13は、ナンバープレート領域の特定部位の輝度値を算出する。車体色判定領域特定部15は、ナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定する。色見本テーブル選択部16は、ナンバープレート領域の特定部位の輝度値に対応する色見本テーブルを選択する。車体色判定部18は、判定領域の各画素の色成分と選択した色見本テーブルの色成分とに基づいて車両の色を判定する。
【選択図】図1A vehicle color determination device, a computer program, and a vehicle color determination method capable of accurately determining the color of a vehicle.
A license plate detector detects a license plate area from a captured image. The license plate luminance value calculation unit 13 calculates the luminance value of a specific part of the license plate region. The vehicle body color determination area specifying unit 15 specifies a determination area for determining the color of the vehicle based on the position of the license plate area on the captured image. The color sample table selection unit 16 selects a color sample table corresponding to the luminance value of a specific part of the license plate area. The vehicle body color determination unit 18 determines the color of the vehicle based on the color component of each pixel in the determination region and the color component of the selected color sample table.
[Selection] Figure 1
Description
本発明は、車両を撮像して得られた撮像画像に基づいて車両の色を判定する車色判定装置、該車色判定装置を実現するためのコンピュータプログラム及び車色判定方法に関する。 The present invention relates to a vehicle color determination device that determines the color of a vehicle based on a captured image obtained by imaging the vehicle, a computer program for realizing the vehicle color determination device, and a vehicle color determination method.
道路を走行する車両のナンバープレート(車番)を複数の地点で識別し、識別したナンバープレートを照合することにより、所定の地点間を走行するのに要する旅行時間を求めるための技術が開発されている。 A technology has been developed to determine the travel time required to travel between predetermined points by identifying the number plates (vehicle numbers) of vehicles traveling on the road at multiple points and collating the identified number plates. ing.
一方で、ナンバープレートの曲がり又は汚れなどにより、一部文字を認識することができないという課題があった。そこで、道路上に設置したカメラからのカラー画像データを取得し、取得したカラー画像データから車両のボンネットなどの車両の色を判別する判別エリアを抽出し、抽出した判別エリアの色を識別することにより車両の色を判別する車色判別装置が開示されている(特許文献1参照)。 On the other hand, there has been a problem that some characters cannot be recognized due to bending or dirt of the license plate. Therefore, color image data from a camera installed on the road is acquired, a discrimination area for discriminating the color of the vehicle such as a vehicle bonnet is extracted from the obtained color image data, and the color of the extracted discrimination area is identified Discloses a vehicle color discrimination device that discriminates the color of a vehicle (see Patent Document 1).
特許文献1の技術は、例えば、カラー画像のR(赤)、G(緑)、B(青)値(または別の表色系に変換した値)に基づいて、車両の色を判別している。しかし、同一色の車両であっても、車両の撮像時点の天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いにより、撮像画像のRGB値が異なり、車両の色を誤って判別する場合がある。
For example, the technique disclosed in
本発明は、斯かる事情に鑑みてなされたものであり、精度良く車両の色を判定することができる車色判定装置、該車色判定装置を実現するためのコンピュータプログラム及び車色判定方法を提供することを目的とする。 The present invention has been made in view of such circumstances, and provides a vehicle color determination device capable of accurately determining the color of a vehicle, a computer program and a vehicle color determination method for realizing the vehicle color determination device. The purpose is to provide.
第1発明に係る車色判定装置は、車両を撮像して得られた撮像画像に基づいて車両の色を判定する車色判定装置において、前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出する検出手段と、該検出手段で検出したナンバープレート領域の特定部位の輝度値を算出する輝度値算出手段と、複数の輝度値それぞれに対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルを複数記憶する記憶手段と、前記輝度値算出手段で算出した輝度値に対応する色見本テーブルを選択する選択手段と、前記検出手段で検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定する特定手段と、該特定手段で特定した判定領域の各画素の色成分と前記選択手段で選択した色見本テーブルの色成分とに基づいて車両の色を判定する判定手段とを備えることを特徴とする。 A vehicle color determination device according to a first aspect of the present invention is a vehicle color determination device that determines the color of a vehicle based on a captured image obtained by imaging the vehicle, based on the pixel value of each pixel constituting the captured image. Detecting means for detecting a license plate area; luminance value calculating means for calculating a luminance value of a specific part of the license plate area detected by the detecting means; and a plurality of color components of the pixel corresponding to each of the plurality of luminance values; Storage means for storing a plurality of color sample tables associated with the colors of the pixels, selection means for selecting a color sample table corresponding to the luminance value calculated by the luminance value calculating means, and a license plate area detected by the detecting means Specifying means for specifying a determination region for determining the color of the vehicle based on the position on the captured image, the color component of each pixel of the determination region specified by the specifying means, and the selection means Characterized in that it comprises a determination means for determining the color of the vehicle based on the the color sample table of color components.
第2発明に係る車色判定装置は、第1発明において、前記判定領域の各画素の色成分と前記色見本テーブルの色成分とが一致する画素の数を色毎に計数する計数手段を備え、前記判定手段は、前記計数手段で計数した画素の数が閾値以上である場合、該画素の色を車両の色と判定するように構成してあることを特徴とする。 According to a second aspect of the present invention, there is provided a vehicle color determination apparatus according to the first aspect, further comprising a counting unit that counts, for each color, the number of pixels in which the color component of each pixel in the determination area matches the color component of the color sample table. The determination means is configured to determine the color of the pixel as the color of the vehicle when the number of pixels counted by the counting means is equal to or greater than a threshold value.
第3発明に係る車色判定装置は、第1発明において、前記記憶手段は、前記色見本テーブルの各色に対応するL*a*b*値を記憶してあり、前記判定領域の各画素の色成分に基づいて該各画素のL*a*b*値を算出する算出手段と、該算出手段で算出したL*a*b*値と前記色見本テーブルの各色のL*a*b*値との近似度を前記判定領域の各画素について算出する近似度算出手段と、該近似度算出手段で算出した近似度が所定値以上である画素の数を計数する計数手段とを備え、前記判定手段は、前記計数手段で計数した画素の数が閾値以上である場合、該画素の色を車両の色と判定するように構成してあることを特徴とする。 According to a third aspect of the present invention, in the vehicle color determination apparatus according to the first aspect, the storage means stores L * a * b * values corresponding to the colors of the color sample table. Calculation means for calculating the L * a * b * value of each pixel based on the color component, L * a * b * value calculated by the calculation means, and L * a * b * for each color in the color sample table An approximation degree calculating means for calculating the degree of approximation with respect to each pixel in the determination region; and a counting means for counting the number of pixels for which the degree of approximation calculated by the approximation degree calculating means is equal to or greater than a predetermined value, The determining means is configured to determine the color of the pixel as the color of the vehicle when the number of pixels counted by the counting means is equal to or greater than a threshold value.
第4発明に係る車色判定装置は、第1発明乃至第3発明のいずれか1つにおいて、前記検出手段で検出したナンバープレート領域の各画素の輝度値が輝度閾値より大きい明部領域を前記特定部位として抽出する抽出手段を備えることを特徴とする。 According to a fourth aspect of the present invention, in the vehicle color determination device according to any one of the first to third aspects, the bright portion area in which the luminance value of each pixel of the license plate area detected by the detection unit is greater than a luminance threshold value. An extraction means for extracting as a specific part is provided.
第5発明に係る車色判定装置は、第4発明において、前記抽出手段は、前記明部領域の輝度値が所定の上限値以上である場合、前記ナンバープレート領域の各画素の輝度値が前記輝度閾値より小さい暗部領域を前記特定部位として抽出するように構成してあることを特徴とする。 According to a fifth aspect of the present invention, there is provided the vehicle color determination apparatus according to the fourth aspect, wherein when the luminance value of the bright portion area is equal to or higher than a predetermined upper limit value, the extraction means has a luminance value of each pixel of the license plate area. A dark part area smaller than a luminance threshold is extracted as the specific part.
第6発明に係る車色判定装置は、第1発明乃至第5発明のいずれか1つにおいて、前記判定領域の各画素の画素値に基づいてエッジ画素を抽出する画素抽出手段を備え、前記特定手段は、特定した判定領域から前記画素抽出手段で抽出したエッジ画素を除外するように構成してあることを特徴とする。 A vehicle color determination device according to a sixth aspect of the present invention is the vehicle color determination device according to any one of the first to fifth aspects, further comprising pixel extraction means for extracting an edge pixel based on a pixel value of each pixel in the determination region, The means is configured to exclude edge pixels extracted by the pixel extraction means from the specified determination area.
第7発明に係る車色判定装置は、第1発明乃至第6発明のいずれか1つにおいて、前記判定領域の各画素の輝度値に基づいて輝度値の変化が一様なグラデーション領域を抽出する領域抽出手段を備え、前記特定手段は、特定した判定領域から前記領域抽出手段で抽出したグラデーション領域を除外するように構成してあることを特徴とする。 According to a seventh aspect of the present invention, in any one of the first to sixth aspects, the vehicle color determination device extracts a gradation region in which the change in luminance value is uniform based on the luminance value of each pixel in the determination region. An area extracting unit is provided, and the specifying unit is configured to exclude the gradation area extracted by the area extracting unit from the specified determination area.
第8発明に係る車色判定装置は、車両を撮像して得られた撮像画像に基づいて車両の色を判定する車色判定装置において、前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出する検出手段と、該検出手段で検出したナンバープレート領域の特定部位の輝度値を算出する輝度値算出手段と、所定の輝度値に対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルを記憶する記憶手段と、前記検出手段で検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定する特定手段と、前記輝度値算出手段で算出した輝度値と前記所定の輝度値との差分に応じて前記判定領域の各画素の輝度値を補正する補正手段と、該補正手段で補正した判定領域の各画素の色成分と、前記色見本テーブルの色成分とに基づいて車両の色を判定する判定手段とを備えることを特徴とする。 A vehicle color determination device according to an eighth aspect of the present invention is the vehicle color determination device for determining the color of a vehicle based on a captured image obtained by imaging the vehicle, based on the pixel value of each pixel constituting the captured image. Detecting means for detecting a license plate area; luminance value calculating means for calculating a luminance value of a specific part of the license plate area detected by the detecting means; a plurality of color components of the pixel corresponding to a predetermined luminance value; Storage means for storing a color sample table in which the colors of the pixels are associated; and specifying means for specifying a determination area for determining the color of the vehicle based on the position of the license plate area detected by the detection means on the captured image; Correction means for correcting the luminance value of each pixel in the determination area according to the difference between the luminance value calculated by the luminance value calculation means and the predetermined luminance value; and each pixel in the determination area corrected by the correction means And color components, characterized in that it comprises a determination means for determining the color of the vehicle based on the color component of the color sample table.
第9発明に係るコンピュータプログラムは、コンピュータに、車両を撮像して得られた撮像画像に基づいて車両の色を判定させるためのコンピュータプログラムにおいて、コンピュータに、前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出するステップと、検出したナンバープレート領域の特定部位の輝度値を算出するステップと、複数の輝度値それぞれに対応させて画素の複数の色成分及び該画素の色を関連付けた複数の色見本テーブルの中から、算出した輝度値に対応する色見本テーブルを選択するステップと、検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定するステップと、特定した判定領域の各画素の色成分と選択した色見本テーブルの色成分とに基づいて車両の色を判定するステップとを実行させることを特徴とする。 A computer program according to a ninth aspect of the invention is a computer program for causing a computer to determine the color of a vehicle based on a captured image obtained by imaging the vehicle. Detecting a license plate area based on the value; calculating a luminance value of a specific part of the detected license plate area; and a plurality of color components of the pixel and a color of the pixel corresponding to each of the plurality of luminance values Selecting a color sample table corresponding to the calculated luminance value from a plurality of color sample tables associated with each other, and determining the color of the vehicle based on the position of the detected license plate area on the captured image A step of specifying the determination region, a color component of each pixel of the specified determination region, and a color component of the selected color sample table Characterized in that to execute determining a color of the vehicle based on.
第10発明に係るコンピュータプログラムは、コンピュータに、車両を撮像して得られた撮像画像に基づいて車両の色を判定させるためのコンピュータプログラムにおいて、コンピュータに、前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出するステップと、検出したナンバープレート領域の特定部位の輝度値を算出するステップと、検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定するステップと、算出した輝度値と所定の輝度値との差分に応じて前記判定領域の各画素の輝度値を補正するステップと、補正した判定領域の各画素の色成分と、所定の輝度値に対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルの色成分とに基づいて車両の色を判定するステップとを実行させることを特徴とする。 A computer program according to a tenth aspect of the present invention is a computer program for causing a computer to determine the color of a vehicle based on a captured image obtained by capturing the vehicle, and for each pixel constituting the captured image to the computer. Detecting a license plate area based on the value; calculating a luminance value of a specific part of the detected license plate area; and determining a color of the vehicle based on a position of the detected license plate area on the captured image Identifying a determination region for correcting, a step of correcting a luminance value of each pixel of the determination region according to a difference between the calculated luminance value and a predetermined luminance value, and a color component of each pixel of the corrected determination region And a plurality of color components of a pixel corresponding to a predetermined luminance value and a color component of a color sample table in which the color of the pixel is associated. Characterized in that to perform the determining the color of the vehicle Te.
第11発明に係る車色判定方法は、車両を撮像して得られた撮像画像に基づいて車両の色を判定する車色判定装置による車色判定方法おいて、複数の輝度値それぞれに対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルを複数記憶しておき、前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出するステップと、検出されたナンバープレート領域の特定部位の輝度値を算出するステップと、算出された輝度値に対応する色見本テーブルを選択するステップと、検出されたナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定するステップと、特定された判定領域の各画素の色成分と選択された色見本テーブルの色成分とに基づいて車両の色を判定するステップとを含むことを特徴とする。 A vehicle color determination method according to an eleventh aspect of the invention is a vehicle color determination method by a vehicle color determination device that determines a color of a vehicle based on a captured image obtained by imaging the vehicle, and corresponds to each of a plurality of luminance values. Storing a plurality of color sample tables in which a plurality of color components of the pixel and the color of the pixel are associated, and detecting a license plate area based on a pixel value of each pixel constituting the captured image; A step of calculating a luminance value of a specific part of the license plate area, a step of selecting a color sample table corresponding to the calculated luminance value, and a position of the detected license plate area on the captured image. A vehicle color is determined based on a step of specifying a determination region for determining a color, a color component of each pixel in the specified determination region, and a color component of a selected color sample table Characterized in that it comprises a step.
第12発明に係る車色判定方法は、車両を撮像して得られた撮像画像に基づいて車両の色を判定する車色判定装置による車色判定方法おいて、所定の輝度値に対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルを記憶しておき、前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出するステップと、検出されたナンバープレート領域の特定部位の輝度値を算出するステップと、検出されたナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定するステップと、算出された輝度値と前記所定の輝度値との差分に応じて前記判定領域の各画素の輝度値を補正するステップと、補正された判定領域の各画素の色成分と、前記色見本テーブルの色成分とに基づいて車両の色を判定するステップとを含むことを特徴とする。 A vehicle color determination method according to a twelfth aspect of the present invention is a vehicle color determination method by a vehicle color determination device that determines the color of a vehicle based on a captured image obtained by imaging the vehicle, in accordance with a predetermined luminance value. Storing a color sample table in which a plurality of color components of a pixel and the color of the pixel are associated, detecting a license plate area based on a pixel value of each pixel constituting the captured image, and a detected number A step of calculating a luminance value of a specific part of the plate region, a step of specifying a determination region for determining the color of the vehicle based on the position of the detected license plate region on the captured image, and the calculated luminance value And correcting the luminance value of each pixel in the determination area according to the difference between the predetermined luminance value, the color component of each pixel in the corrected determination area, and the color component of the color sample table. There characterized in that it comprises a determining a color of the vehicle.
第1発明、第9発明及び第11発明にあっては、撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出する。ナンバープレート領域は、例えば、車両が存在しない場合の画像と車両が存在する場合の画像との差に基づいて車両を検出し、検出した車両の画像に基づいて、矩形状のナンバープレート部の切り出し処理を行うことにより検出することができる。検出したナンバープレート領域の特定部位の輝度値を算出する。特定部位は、輝度に応じて、色見本テーブルを選択するために用いる部位であり、例えば、ナンバー(車番)などの文字部分を除く背景部分(明部とも称する)でもよく、文字部分(暗部とも称する)でもよい。ナンバープレートの背景部分の色は定められており、例えば、白(普通自動車など)、あるいは黄(軽自動車)である。特定部位の輝度は、例えば、背景部分(明部)の輝度の平均値とすることができる。 In the first invention, the ninth invention, and the eleventh invention, the license plate region is detected based on the pixel value of each pixel constituting the captured image. For example, the license plate area detects the vehicle based on the difference between the image when the vehicle does not exist and the image when the vehicle exists, and cuts out a rectangular license plate portion based on the detected vehicle image. It can be detected by performing processing. The brightness value of the specific part of the detected license plate area is calculated. The specific part is a part used for selecting the color sample table according to the luminance. For example, the specific part may be a background part (also referred to as a bright part) excluding a character part such as a number (car number) or a character part (dark part). May also be referred to). The color of the background portion of the license plate is determined, for example, white (ordinary car etc.) or yellow (light car). The luminance of the specific part can be, for example, an average value of the luminance of the background portion (bright portion).
記憶手段には、複数の輝度値それぞれに対応させて画素の複数の色成分及び当該画素の色を関連付けた色見本テーブルを複数記憶しておく。複数の輝度値は、日照条件(照明条件)の違いにより、撮像画像が全体として暗い場合、あるいは全体として明るい場合、あるいはそれらの中間などのそれぞれの明るさに応じた輝度値である。そして、複数の輝度値それぞれに対応した色見本テーブルを記憶しておく。複数の色成分とは、例えば、R(赤)、G(緑)、B(青)値(または別の表色系に変換した値、例えば、L*a*b*値など)である。また、画素の色は、車両の色を判定する際の判定色であり、例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒などである。また、判定色には、ナンバープレートの背景部分(白、黄)または文字部分(緑、黒)の色も含めることができる。色成分をRGBとした場合に、RGBそれぞれが、例えば、256通りの値をとり得るときには、全ての値の組み合わせに対応させて画素の色を定めておくことができる。複数の輝度値それぞれに対応付けた色見本テーブルの色成分の値(例えば、RGBそれぞれの256通りの値)は、輝度値に応じて異なる値となる。 The storage means stores a plurality of color sample tables in which a plurality of color components of pixels and the colors of the pixels are associated with each other in correspondence with a plurality of luminance values. The plurality of luminance values are luminance values corresponding to respective brightnesses such as when the captured image is dark as a whole or when it is bright as a whole due to differences in sunshine conditions (illumination conditions). A color sample table corresponding to each of the plurality of luminance values is stored. The plurality of color components are, for example, R (red), G (green), and B (blue) values (or values converted into other color systems, such as L * a * b * values). The pixel color is a determination color when determining the color of the vehicle, and is, for example, white, silver, gray, red, purple, yellow, blue, green, black, or the like. The determination color can also include the color of the background portion (white, yellow) or character portion (green, black) of the license plate. If the color components are RGB, and each of RGB can take 256 values, for example, the color of the pixel can be determined in correspondence with all combinations of values. The values of the color components in the color sample table associated with each of the plurality of luminance values (for example, 256 values for each of RGB) differ depending on the luminance value.
算出した輝度値に対応する色見本テーブルを選択する。例えば、ナンバープレートの背景部分が白である場合に、当該白の部分の輝度の平均値に対応する(輝度値が一致する又は最も近い)色見本テーブルを選択する。ナンバープレートの色は、白のように予め定められているので、輝度値(輝度の平均値)を算出することにより、車体色が日照条件(照明条件)等によりどの程度明るく又は暗くなっているかの影響を推定することができ、推定した明るさ(輝度の平均値)に応じた色見本を選択することができる。 A color sample table corresponding to the calculated luminance value is selected. For example, when the background portion of the license plate is white, the color sample table corresponding to the average value of the luminance of the white portion (the luminance value matches or is closest) is selected. The color of the license plate is predetermined as white, so by calculating the luminance value (average luminance value), how bright or dark the body color is due to sunshine conditions (lighting conditions), etc. Can be estimated, and a color sample corresponding to the estimated brightness (average value of luminance) can be selected.
検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定する。例えば、車両を前方から撮像する場合には、検出したナンバープレート領域(例えば、長方形状の領域)の上側の縁辺中央から道路の方向に沿って所定寸法の平行四辺形状の領域を判定領域とすることができる。車頭の場合、当該領域は、例えば、車両のボンネットに相当する領域である。また、車両を後方から撮像する場合には、検出したナンバープレート領域(例えば、長方形状の領域)を囲み、ナンバープレート領域より大きな矩形状の領域のうちナンバープレート領域を除く領域を判定領域とすることができる。車尾の場合には、当該領域は、例えば、リアウインドなどを除いたナンバープレート周辺の領域である。 A determination area for determining the color of the vehicle is specified based on the position of the detected license plate area on the captured image. For example, when the vehicle is imaged from the front, a parallelogram-shaped region having a predetermined dimension along the road direction from the center of the upper edge of the detected license plate region (for example, a rectangular region) is set as the determination region. be able to. In the case of a vehicle head, the region is, for example, a region corresponding to a vehicle hood. When the vehicle is imaged from the rear, the detected license plate area (for example, a rectangular area) is enclosed, and the area excluding the license plate area in the rectangular area larger than the license plate area is set as the determination area. be able to. In the case of a vehicle rear, this area is, for example, an area around the license plate excluding the rear window.
特定した判定領域の各画素の色成分と選択した色見本テーブルの色成分とに基づいて車両の色を判定する。例えば、判定領域の任意の画素の色成分(例えば、RGB値)と一致する又は近似する色成分に対応する色を当該画素の色と判定し、判定領域内のすべての画素について色を判定する。そして、同色の画素の数が所定の閾値以上である場合、当該画素の色を車両の色として判定する。上述のように、予め色が定まっているナンバープレートの特定部位の輝度値に応じて色見本テーブルを選択することにより、日照条件(照明条件)等による影響を予め加味した色見本テーブルを用いることができるので、車両の撮像時点の天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによる影響を受けることなく、精度良く車両の色を判定することができる。 The color of the vehicle is determined based on the color component of each pixel in the specified determination area and the color component of the selected color sample table. For example, a color corresponding to or close to a color component (for example, RGB value) of an arbitrary pixel in the determination region is determined as the color of the pixel, and the color is determined for all the pixels in the determination region. . If the number of pixels of the same color is equal to or greater than a predetermined threshold, the color of the pixel is determined as the color of the vehicle. As described above, by selecting a color sample table according to the luminance value of a specific part of a license plate whose color is determined in advance, use a color sample table that takes into account the influence of sunlight conditions (lighting conditions) and the like in advance. Therefore, it is possible to accurately determine the color of the vehicle without being affected by the difference in sunlight conditions (lighting conditions) such as the weather at the time of imaging of the vehicle, the time zone, the sun or the surrounding environment such as shade. .
第2発明にあっては、判定領域の各画素の色成分と色見本テーブルの色成分とが一致する画素の数を色毎に計数し、計数した画素の数が閾値以上である場合、当該画素の色を車両の色と判定する。色成分をRGBとした場合に、RGBそれぞれが、例えば、256通りの値をとり得るときには、全ての値の組み合わせに対応させて画素の色を定めておくことができる。色成分が一致する画素の色を判定し、判定した色が同じ色の画素の数が閾値以上である場合、当該画素の色を車両の色と判定することにより、色見本テーブルの色成分を参照するだけで車両の色を判定することができるので判定処理を簡略化することができる。 In the second invention, the number of pixels in which the color component of each pixel in the determination region matches the color component of the color sample table is counted for each color, and when the number of counted pixels is equal to or greater than a threshold value, The color of the pixel is determined as the color of the vehicle. If the color components are RGB, and each of RGB can take 256 values, for example, the color of the pixel can be determined in correspondence with all combinations of values. If the number of pixels having the same color component is determined and the number of pixels with the same color is equal to or greater than the threshold, the color component of the color sample table is determined by determining the color of the pixel as the vehicle color. Since the color of the vehicle can be determined only by referring to it, the determination process can be simplified.
第3発明にあっては、記憶手段には、色見本テーブルの各色(車両の色を判定する判定色)に対応するL*a*b*値を予め記憶しておく。判定領域の各画素の色成分(例えば、RGB値)に基づいて当該各画素のL*a*b*値を算出する。なお、L*a*b*値は、例えば、RGB値から所定の変換式を用いて求めることができる。算出したL*a*b*値と色見本テーブルの各色のL*a*b*値との近似度を判定領域の各画素について算出する。近似度は、判定領域の画素のL*a*b*値と、色見本テーブルのL*a*b*値とがどの程度近似するかを示す指標であり、L*a*b*それぞれの差分の二乗の合計値が最も小さい場合に近似度が最も大きいとすることができる。算出した近似度が所定値以上である画素の数を計数し、計数した画素の数が閾値以上である場合、当該画素の色を車両の色と判定する。すべての色成分の組み合わせ(例えば、RGBがそれぞれ256通りの値を取り得る場合には、256の3乗値)に対応させた色見本テーブルに代えて、判定色に対応させたL*a*b*値を有する色見本テーブルを記憶するので、記憶容量を低減することができる。 In the third invention, the storage means stores in advance L * a * b * values corresponding to the respective colors (determination colors for determining the color of the vehicle) of the color sample table. Based on the color component (for example, RGB value) of each pixel in the determination area, the L * a * b * value of each pixel is calculated. The L * a * b * value can be obtained from the RGB value using a predetermined conversion formula, for example. The degree of approximation between the calculated L * a * b * value and the L * a * b * value of each color in the color sample table is calculated for each pixel in the determination region. The degree of approximation is an index indicating how close the L * a * b * value of the pixel in the determination area and the L * a * b * value of the color sample table are, and each L * a * b * When the sum of the squares of the differences is the smallest, it can be assumed that the degree of approximation is the largest. The number of pixels for which the calculated degree of approximation is greater than or equal to a predetermined value is counted, and if the counted number of pixels is greater than or equal to a threshold, the color of the pixel is determined as the color of the vehicle. Instead of a color sample table corresponding to all combinations of color components (for example, 256 is the cube value when RGB can take 256 values), L * a * corresponding to the determination color Since the color sample table having the b * value is stored, the storage capacity can be reduced.
第4発明にあっては、検出したナンバープレート領域の各画素の輝度値が輝度閾値より大きい明部領域を特定部位として抽出する。ナンバー(車番)などの文字部分を除く背景部分の色は定められており、例えば、白(普通自動車など)、あるいは黄(軽自動車)であり、輝度値は文字部分に比べて大きい(高い)ので、所定の輝度閾値より輝度が大きい明部領域を特定部位として抽出することができる。特定部位の色が予め定められているので、特定部位の輝度(例えば、平均値)を求めることにより、車両の色が天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによりどの程度影響を受けたか(明るくなったか、あるいは暗くなったか等)を推定することができる。 In the fourth invention, the bright area where the luminance value of each pixel of the detected license plate area is larger than the luminance threshold is extracted as the specific part. The color of the background part excluding the character part such as the number (car number) is defined, for example, white (ordinary car etc.) or yellow (light car), and the luminance value is larger (high) than the character part Therefore, it is possible to extract a bright area having a luminance higher than a predetermined luminance threshold as a specific part. Since the color of a specific part is determined in advance, the brightness of the specific part (for example, an average value) is obtained, so that the color of the vehicle can be adjusted to sunlight conditions (lighting) such as the surrounding environment such as weather, time of day, sun or shade. It is possible to estimate how much it has been affected by the difference in (condition) (whether it has become brighter or darker).
第5発明にあっては、抽出した明部領域の輝度値が所定の上限値以上である場合、ナンバープレート領域の各画素の輝度値が輝度閾値より小さい暗部領域を特定部位として抽出する。例えば、輝度値を0〜255で表す場合、所定の上限値とは、255、あるいは250〜254程度の値とすることができる。暗部領域は、例えば、ナンバープレートの文字部分であり、明部領域が白の場合には緑であり、明部領域が黄の場合には黒である。明部領域の輝度値が上限値以上となる場合には、撮像画像にサチレーション(飽和)が発生していると判断できるため、明部領域に代えて暗部領域を特定部位とすることにより、サチレーションが生じた場合でも、車両の色が天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによりどの程度影響を受けたか(明るくなったか、あるいは暗くなったか等)を推定することができる。 In the fifth invention, when the brightness value of the extracted bright area is equal to or higher than the predetermined upper limit value, the dark area where the brightness value of each pixel in the license plate area is smaller than the brightness threshold is extracted as the specific part. For example, when the luminance value is represented by 0 to 255, the predetermined upper limit value can be a value of about 255 or 250 to 254. The dark area is, for example, a character portion of a license plate, and is green when the bright area is white, and black when the bright area is yellow. When the brightness value of the bright area is equal to or higher than the upper limit value, it can be determined that saturation (saturation) has occurred in the captured image. Therefore, the saturation is determined by setting the dark area as a specific part instead of the bright area. Even if a car has a problem, how much the color of the vehicle is affected by the difference in the sunshine conditions (lighting conditions) such as the weather, time of day, sun or shade, etc. ) Can be estimated.
第6発明にあっては、判定領域の各画素の画素値に基づいてエッジ画素を抽出し、判定領域から抽出したエッジ画素を除外する。エッジ画素の抽出は、例えば、sobelフィルタなどの既存の画像フィルタを用いることができる。車両のボンネット等はテクスチャがほとんど無いのに対し、ライト、エンブレム又はフロントグリルなどの部分はテクスチャがある。また、ウインドなどのガラス部分も光の透過又は反射によりテクスチャがある。エッジ抽出を行ってエッジ強度が強い画素(テクスチャありの部分)を判定領域から除去する(無視する)ことにより、車両の色を誤って判定することを防止することができる。 In the sixth invention, the edge pixel is extracted based on the pixel value of each pixel in the determination region, and the edge pixel extracted from the determination region is excluded. For extraction of edge pixels, for example, an existing image filter such as a sobel filter can be used. A vehicle bonnet or the like has almost no texture, whereas a light, emblem, or front grill has a texture. Further, a glass portion such as a window also has a texture due to light transmission or reflection. By performing edge extraction and removing (ignoring) pixels with a strong edge strength (parts with texture) from the determination region, it is possible to prevent erroneous determination of the color of the vehicle.
第7発明にあっては、判定領域の各画素の輝度値に基づいて輝度値の変化が一様なグラデーション領域を抽出する。例えば、判定領域内の所定の方向、例えば、撮像画像の縦方向(Y軸方向)に沿って所定間隔で輝度値をサンプリングし、サンプリングした輝度値のうち、一定に変化する輝度値があれば、当該輝度値をサンプリングした位置を含む領域をグラデーション領域として抽出することができる。ボンネットなどの上を向いた面では、光が反射して空の色が映り込み、グラデーションとして表れて車両の色が異なって見える場合がある。グラデーション領域を判定領域から除去する(無視する)ことにより、車両の色を誤って判定することを防止することができる。 In the seventh aspect of the invention, a gradation region with a uniform change in luminance value is extracted based on the luminance value of each pixel in the determination region. For example, if a luminance value is sampled at a predetermined interval along a predetermined direction in the determination region, for example, the vertical direction (Y-axis direction) of the captured image, and there is a luminance value that changes constantly among the sampled luminance values A region including a position where the luminance value is sampled can be extracted as a gradation region. On the surface facing up, such as a bonnet, the color of the sky may appear due to the reflection of light, appearing as a gradation, and the color of the vehicle may appear different. By removing (ignoring) the gradation area from the determination area, it is possible to prevent the vehicle color from being erroneously determined.
第8発明、第10発明及び第12発明にあっては、撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出する。ナンバープレート領域は、例えば、車両が存在しない場合の画像と車両が存在する場合の画像との差に基づいて車両を検出し、検出した車両の画像に基づいて、矩形状のナンバープレート部の切り出し処理を行うことにより検出することができる。検出したナンバープレート領域の特定部位の輝度値を算出する。特定部位は、例えば、ナンバー(車番)などの文字部分を除く背景部分(明部とも称する)でもよく、文字部分(暗部とも称する)でもよい。ナンバープレートの背景部分の色は定められており、例えば、白(普通自動車など)、あるいは黄(軽自動車)である。特定部位の輝度は、例えば、背景部分(明部)の輝度の平均値とすることができる。 In the eighth invention, the tenth invention and the twelfth invention, the license plate region is detected based on the pixel value of each pixel constituting the captured image. For example, the license plate area detects the vehicle based on the difference between the image when the vehicle does not exist and the image when the vehicle exists, and cuts out a rectangular license plate portion based on the detected vehicle image. It can be detected by performing processing. The brightness value of the specific part of the detected license plate area is calculated. The specific portion may be, for example, a background portion (also referred to as a bright portion) excluding a character portion such as a number (vehicle number) or a character portion (also referred to as a dark portion). The color of the background portion of the license plate is determined, for example, white (ordinary car etc.) or yellow (light car). The luminance of the specific part can be, for example, an average value of the luminance of the background portion (bright portion).
記憶手段には、所定の輝度値に対応させて画素の複数の色成分及び当該画素の色を関連付けた色見本テーブルを記憶しておく。所定の輝度値は、例えば、日照条件(照明条件)の違いにより、撮像画像全体の輝度が変化するような場合に、平均的、あるいは一般的な明るさに相当する輝度値であり、任意の輝度値を設定することができる。複数の色成分とは、例えば、R(赤)、G(緑)、B(青)値(または別の表色系に変換した値、例えば、L*a*b*値など)である。また、画素の色は、車両の色を判定する際の判定色であり、例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒などである。また、判定色には、ナンバープレートの背景部分(白、黄)または文字部分(緑、黒)の色も含めることができる。色成分をRGBとした場合に、RGBそれぞれが、例えば、256通りの値をとり得るときには、全ての値の組み合わせに対応させて画素の色を定めておくことができる。 The storage means stores a color sample table in which a plurality of color components of a pixel and the color of the pixel are associated with each other in correspondence with a predetermined luminance value. The predetermined luminance value is, for example, a luminance value corresponding to average or general brightness when the luminance of the entire captured image changes due to a difference in sunshine conditions (illumination conditions). The brightness value can be set. The plurality of color components are, for example, R (red), G (green), and B (blue) values (or values converted into other color systems, such as L * a * b * values). The pixel color is a determination color when determining the color of the vehicle, and is, for example, white, silver, gray, red, purple, yellow, blue, green, black, or the like. The determination color can also include the color of the background portion (white, yellow) or character portion (green, black) of the license plate. If the color components are RGB, and each of RGB can take 256 values, for example, the color of the pixel can be determined in correspondence with all combinations of values.
検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定する。例えば、車両を前方から撮像する場合には、検出したナンバープレート領域(例えば、長方形状の領域)の上側の縁辺中央から道路の方向に沿って所定寸法の平行四辺形状の領域を判定領域とすることができる。車頭の場合、当該領域は、例えば、車両のボンネットに相当する領域である。また、車両を後方から撮像する場合には、検出したナンバープレート領域(例えば、長方形状の領域)を囲み、ナンバープレート領域より大きな矩形状の領域のうちナンバープレート領域を除く領域を判定領域とすることができる。車尾の場合には、当該領域は、例えば、リアウインドなどを除いたナンバープレート周辺の領域である。 A determination area for determining the color of the vehicle is specified based on the position of the detected license plate area on the captured image. For example, when the vehicle is imaged from the front, a parallelogram-shaped region having a predetermined dimension along the road direction from the center of the upper edge of the detected license plate region (for example, a rectangular region) is set as the determination region. be able to. In the case of a vehicle head, the region is, for example, a region corresponding to a vehicle hood. When the vehicle is imaged from the rear, the detected license plate area (for example, a rectangular area) is enclosed, and the area excluding the license plate area in the rectangular area larger than the license plate area is set as the determination area. be able to. In the case of a vehicle rear, this area is, for example, an area around the license plate excluding the rear window.
算出した輝度値と所定の輝度値との差分に応じて判定領域の各画素の輝度値を補正する。例えば、算出した輝度値と所定の輝度値とが一致するように、判定領域全体の輝度値を補正する。例えば、算出した輝度値が所定の輝度値より小さい場合、すなわち、ナンバープレート領域の特定部位の輝度の平均値が所定の輝度値より小さい場合には、撮像画像は全体としては暗いので、判定領域の輝度を大きくして、判定領域の輝度が色見本テーブルの輝度に一致又は近似するように輝度値を補正する。また、算出した輝度値が所定の輝度値より大きい場合、すなわち、ナンバープレート領域の特定部位の輝度の平均値が所定の輝度値より大きい場合には、撮像画像は全体としては明るいので、判定領域の輝度を小さくして、判定領域の輝度が色見本テーブルの輝度に一致又は近似するように輝度値を補正する。これにより、判定領域の輝度を色見本の輝度に一致又は近づけることができる。 The luminance value of each pixel in the determination area is corrected according to the difference between the calculated luminance value and a predetermined luminance value. For example, the luminance value of the entire determination area is corrected so that the calculated luminance value matches a predetermined luminance value. For example, when the calculated luminance value is smaller than a predetermined luminance value, that is, when the average luminance value of a specific part of the license plate area is smaller than the predetermined luminance value, the captured image is dark as a whole. And the luminance value is corrected so that the luminance of the determination area matches or approximates the luminance of the color sample table. Further, when the calculated luminance value is larger than the predetermined luminance value, that is, when the average luminance value of the specific part of the license plate area is larger than the predetermined luminance value, the captured image is bright as a whole, so the determination area And the luminance value is corrected so that the luminance of the determination area matches or approximates the luminance of the color sample table. As a result, the luminance of the determination region can be matched or brought close to the luminance of the color sample.
補正した判定領域の各画素の色成分と、色見本テーブルの色成分とに基づいて車両の色を判定する。例えば、判定領域の任意の画素の色成分(例えば、RGB値)と一致する又は近似する色成分に対応する色を当該画素の色と判定し、判定領域内のすべての画素について色を判定する。そして、同色の画素の数が所定の閾値以上である場合、当該画素の色を車両の色として判定する。上述のように、予め色が定まっているナンバープレートの特定部位の輝度値が所定の輝度値に一致する(又は近づく)ように判定領域の輝度値を補正するので、日照条件(照明条件)等による影響を相殺して判定領域の輝度値を色見本の輝度に一致又は近づけることができ、車両の撮像時点の天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによる影響を受けることなく、精度良く車両の色を判定することができる。 The color of the vehicle is determined based on the color component of each pixel in the corrected determination area and the color component of the color sample table. For example, a color corresponding to or close to a color component (for example, RGB value) of an arbitrary pixel in the determination region is determined as the color of the pixel, and the color is determined for all the pixels in the determination region. . If the number of pixels of the same color is equal to or greater than a predetermined threshold, the color of the pixel is determined as the color of the vehicle. As described above, the luminance value of the determination region is corrected so that the luminance value of the specific part of the license plate whose color is determined in advance matches (or approaches) the predetermined luminance value. The brightness value of the judgment area can be matched or brought close to the brightness of the color sample by offsetting the influence of the lighting, and the sunlight conditions (lighting conditions) such as the weather at the time of imaging of the vehicle, the time zone, the sun or the surrounding environment such as the shade The color of the vehicle can be accurately determined without being affected by the difference.
本発明によれば、精度良く車両の色を判定することができる。 According to the present invention, the color of a vehicle can be determined with high accuracy.
(実施の形態1)
以下、本発明を実施の形態を示す図面に基づいて説明する。図1は実施の形態1の車色判定装置100の構成の一例を示すブロック図である。車色判定装置100には、撮像装置200を接続してある。なお、撮像装置200は、車色判定装置100に内蔵する構成であってもよい。撮像装置200は、道路を走行する車両を撮像し、撮像して得られたカラー画像データ(撮像画像)を車色判定装置100へ出力する。
(Embodiment 1)
Hereinafter, the present invention will be described with reference to the drawings illustrating embodiments. FIG. 1 is a block diagram illustrating an example of the configuration of the vehicle
車色判定装置100は、装置内の各部を制御する制御部10、インタフェース部11、ナンバープレート検出部12、ナンバープレート輝度値算出部13、ナンバープレート色判定部14、車体色判定領域特定部15、色見本テーブル選択部16、画素数計数部17、車体色判定部18、エッジ画素抽出部19、グラデーション領域抽出部20、記憶部21などを備える。
The vehicle
インタフェース部11は、撮像装置200で撮像して得られた画像データ(撮像画像)を取得し、取得した画像データをフレーム単位で撮像時刻に対応付けて記憶部21に記憶する。
The
ナンバープレート検出部12は、記憶部21から撮像画像を取り出し、取り出した撮像画像に基づいて、車両(車両の一部を含む)を検出する。車両の検出処理としては、例えば、車両が存在しない場合の撮像画像と車両が存在する場合の撮像画像との差に基づいて車両を検出することができる。
The license
ナンバープレート検出部12は、検出手段としての機能を有し、検出された車両の画像に基づいて、矩形状のナンバープレート部の切り出し処理を行うことによりナンバープレート領域を検出する。ナンバープレート領域は、矩形状の四隅の撮像画像上での座標で特定することができる。
The license
ナンバープレート輝度値算出部13は、輝度値算出手段としての機能を有し、ナンバープレート検出部12で検出したナンバープレート領域の特定部位の輝度値を算出する。特定部位は、輝度に応じて、色見本テーブルを選択するために用いる部位である。
The license plate luminance
図2はナンバープレートの一例を示す模式図である。特定部位は、ナンバープレートの支局名、分類番号、車種記号、一連番号などの文字部分を除く背景部分(明部とも称する)でもよく、文字部分(暗部とも称する)でもよい。ナンバープレートの背景部分及び文字部分の色は定められており、例えば、図2に示すように、車種が普通自動車である場合、背景部分(明部)が白であり文字部分(暗部)は緑である。なお、背景部分(明部)が緑であり文字部分(暗部)が白である場合は、商用の普通自動車である。また、車種が軽自動車である場合、背景部分(明部)が黄であり、文字部分(暗部)は黒である。なお、背景部分(明部)が黒であり、文字部分(暗部)が黄である場合は、商用の軽自動車である。また、特定部位の輝度は、例えば、背景部分(明部)の輝度の平均値とすることができる。 FIG. 2 is a schematic diagram showing an example of a license plate. The specific part may be a background part (also referred to as a bright part) excluding a character part such as a branch name of a license plate, a classification number, a car model symbol, a serial number, or a character part (also referred to as a dark part). For example, as shown in FIG. 2, when the vehicle type is an ordinary car, the background part (bright part) is white and the character part (dark part) is green. It is. When the background portion (bright portion) is green and the character portion (dark portion) is white, the vehicle is a commercial ordinary automobile. When the vehicle type is a light vehicle, the background portion (bright portion) is yellow and the character portion (dark portion) is black. In addition, when the background part (bright part) is black and the character part (dark part) is yellow, it is a commercial light vehicle. Moreover, the brightness | luminance of a specific part can be made into the average value of the brightness | luminance of a background part (bright part), for example.
ナンバープレートの背景部分(明部)を特定部位とする場合には、ナンバープレート領域の輝度の平均値を求め、当該平均値よりも輝度が大きい画素で構成される領域を特定部位として求めることができる。 When the background part (bright part) of the license plate is set as the specific part, the average value of the luminance of the license plate area is obtained, and the area composed of pixels having a luminance higher than the average value is obtained as the specific part. it can.
すなわち、ナンバープレート検出部12は、検出したナンバープレート領域の各画素の輝度値が輝度閾値より大きい明部領域を特定部位として抽出する。ナンバー(車番)などの文字部分を除く背景部分の色は定められており、例えば、白(普通自動車など)、あるいは黄(軽自動車)であり、輝度値は文字部分に比べて大きい(高い)ので、所定の輝度閾値より輝度が大きい明部領域を特定部位として抽出することができる。特定部位の色が予め定められているので、特定部位の輝度(例えば、平均値)を求めることにより、車両の色が天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによりどの程度影響を受けたか(明るくなったか、あるいは暗くなったか等)を推定することができる。
That is, the license
また、ナンバープレートの文字部分(暗部)を特定部位とする場合には、ナンバープレート領域の輝度の平均値を求め、当該平均値よりも輝度が小さい画素で構成される領域を特定部位として求めることができる。 In addition, when the character part (dark part) of the license plate is used as the specific part, the average value of the brightness of the license plate area is obtained, and the area composed of pixels whose luminance is smaller than the average value is obtained as the specific part. Can do.
すなわち、ナンバープレート検出部12は、抽出した明部領域の輝度値が所定の上限値以上である場合、ナンバープレート領域の各画素の輝度値が輝度閾値より小さい暗部領域を特定部位として抽出する。例えば、輝度値を0〜255で表す場合、所定の上限値とは、255、あるいは250〜254程度の値とすることができる。暗部領域は、例えば、ナンバープレートの文字部分であり、明部領域が白の場合には緑であり、明部領域が黄の場合には黒である。明部領域の輝度値が上限値以上となる場合には、撮像画像にサチレーション(飽和)が発生していると判断できるため、明部領域に代えて暗部領域を特定部位とすることにより、サチレーションが生じた場合でも、車両の色が天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによりどの程度影響を受けたか(明るくなったか、あるいは暗くなったか等)を推定することができる。
That is, when the brightness value of the extracted bright area is equal to or higher than the predetermined upper limit value, the license
なお、最初に暗部領域を抽出しておき、抽出した暗部領域の輝度値が所定の下限値未満である場合、ナンバープレート領域の各画素の輝度値が所定の輝度閾値より大きい明部領域を特定部位として抽出することもできる。 Note that the dark area is first extracted, and if the extracted dark area has a luminance value that is less than the predetermined lower limit value, the bright area where the luminance value of each pixel in the license plate area is greater than the predetermined luminance threshold is specified. It can also be extracted as a part.
なお、特定部位としては、暗部領域よりも明部領域を用いる方が好ましい。その理由は、一般的に画像の輝度値に含まれるノイズ成分は、その輝度値に関わらず一定の分散をもつ正規分布に従うので、SN比は、明部は大きく、暗部は小さい。したがって、信頼性は明部の方が暗部よりも高いからである。また、暗部及び明部それぞれの輝度値を平均値として算出するので、面積の広い(すなわち、画素数が多い)方が、統計的に信頼性が高くなる。そして、一般的に道路を走行する車両の中で、明部の面積が広い自家用車の方が、暗部の面積が広い商用車よりも多いため、明部を採用した方が全体として信頼性が向上するからである。 In addition, as a specific part, it is more preferable to use a bright part area | region rather than a dark part area | region. The reason is that the noise component generally included in the luminance value of the image follows a normal distribution having a constant variance regardless of the luminance value, so that the SN ratio is large in the bright part and small in the dark part. Therefore, the reliability is higher in the bright part than in the dark part. In addition, since the luminance values of the dark part and the bright part are calculated as average values, the larger the area (that is, the larger the number of pixels), the higher the statistical reliability. And generally, among vehicles traveling on the road, private cars with a large area of light areas are more common than commercial vehicles with a large area of dark areas, so it is more reliable to adopt light areas as a whole It is because it improves.
ナンバープレート色判定部14は、ナンバープレート領域の画素の色成分(例えば、RGB値)から画素の色を判定する。例えば、ナンバープレートの背景部分を特定部位とする場合には、ナンバープレートの背景部分の画素の色成分から、当該画素が白、黄、緑、黒のいずれの色であるかを求めることができる。また、ナンバープレートの文字部分を特定部位とする場合には、ナンバープレートの文字部分の画素の色成分から、当該画素が白、黄、緑、黒のいずれの色であるかを求めることができる。
The license plate
車体色判定領域特定部15は、判定領域を特定する特定手段としての機能を有する。車体色判定領域特定部15は、ナンバープレート検出部12で検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域(車体色判定領域)を特定する。
The vehicle body color determination
図3は車両を前方から撮像した場合の車体色判定領域の一例を示す模式図であり、図4は車両を後方から撮像した場合の車体色判定領域の一例を示す模式図である。図3に示すように、車両を前方から撮像する場合には、検出したナンバープレート領域(例えば、長方形状の領域)の上側の縁辺中央から道路の方向に沿って所定寸法の平行四辺形状の領域を判定領域とすることができる。車頭の場合、当該判定領域は、例えば、車両のボンネットに相当する領域である。なお、図3の例では、ナンバープレート領域の上側縁辺と判定領域の下側縁辺とが同一線上になるように判定領域を特定しているが、図3の例に限定されるものではなく、ナンバープレート領域から適長離隔するような判定領域を特定してもよい。 FIG. 3 is a schematic diagram illustrating an example of a vehicle body color determination region when the vehicle is imaged from the front. FIG. 4 is a schematic diagram illustrating an example of the vehicle body color determination region when the vehicle is imaged from the rear. As shown in FIG. 3, when imaging a vehicle from the front, a parallelogram-shaped area having a predetermined dimension along the road direction from the center of the upper edge of the detected license plate area (for example, a rectangular area). Can be used as a determination region. In the case of a vehicle head, the determination area is, for example, an area corresponding to a vehicle hood. In the example of FIG. 3, the determination region is specified such that the upper edge of the license plate region and the lower edge of the determination region are on the same line, but is not limited to the example of FIG. A determination region that is separated from the license plate region by an appropriate length may be specified.
また、図4に示すように、車両を後方から撮像する場合には、検出したナンバープレート領域(例えば、長方形状の領域)を囲み、ナンバープレート領域より大きな矩形状の領域のうちナンバープレート領域を除く領域を判定領域とすることができる。車尾の場合には、当該判定領域は、例えば、リアウインドなどを除いたナンバープレート周辺の領域である。 Also, as shown in FIG. 4, when the vehicle is imaged from the rear, the detected license plate area (for example, a rectangular area) is enclosed, and the license plate area is larger than the license plate area. The excluded area can be a determination area. In the case of a vehicle rear, the determination area is, for example, an area around the license plate excluding the rear window.
記憶部21には、複数の輝度値それぞれに対応させて画素の複数の色成分及び当該画素の色を関連付けた色見本テーブルを複数記憶しておく。
The
図5は実施の形態1の色見本テーブルの構成の一例を示す説明図である。図5に示すように、色見本テーブルは、複数の輝度値(輝度)Y1、Y2、…YMに対応させて複数記憶してある。複数の輝度値は、日照条件(照明条件)の違いにより、撮像画像が全体として暗い場合、あるいは全体として明るい場合、あるいは両者の中間などのそれぞれの明るさに応じた輝度値である。複数の輝度値の数Mは、適宜設定することができるが、例えば、明暗の程度に応じて8通りの輝度値を設定することができる。 FIG. 5 is an explanatory diagram showing an example of the configuration of the color sample table according to the first embodiment. As shown in FIG. 5, a plurality of color sample tables are stored in association with a plurality of luminance values (luminances) Y1, Y2,. The plurality of luminance values are luminance values corresponding to respective brightnesses such as when the captured image is dark as a whole or when it is bright as a whole due to differences in sunshine conditions (illumination conditions). The number M of the plurality of luminance values can be set as appropriate. For example, eight luminance values can be set according to the degree of brightness.
それぞれの色見本テーブルは、画素の複数の色成分及び当該画素の色を関連付けたテーブルである。複数の色成分とは、例えば、R(赤)、G(緑)、B(青)値であるが、RGB値に限定されるものではなく、別の表色系に変換した値、例えば、HIS値、YCbCr値、L*a*b*値(エルスター、エースター、ビースター)などを用いることもできる。 Each color sample table is a table in which a plurality of color components of a pixel are associated with the color of the pixel. The plurality of color components are, for example, R (red), G (green), and B (blue) values, but are not limited to RGB values, and values converted into another color system, for example, HIS values, YCbCr values, L * a * b * values (Elster, Aster, Beester), etc. can also be used.
また、画素の色は、車両の色を判定する際の判定色であり、車体色の判定の際に分類したい色であり、色数をNとしている。判定色は、例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒などである。なお、判定色はこれに限定されるものではない。また、判定色には、ナンバープレートの背景部分(白、黄)または文字部分(緑、黒)の色も含めることができる。 The pixel color is a determination color when determining the color of the vehicle, is a color that is desired to be classified when determining the vehicle body color, and the number of colors is N. The determination color is, for example, white, silver, gray, red, purple, yellow, blue, green, black, or the like. The determination color is not limited to this. The determination color can also include the color of the background portion (white, yellow) or character portion (green, black) of the license plate.
図6は色見本テーブルの色成分(RGB値)と車体色との関連を示す説明図である。図6に示すように、色成分をRGBとした場合に、RGBそれぞれが、例えば、0から255までの256通りの値をとり得るときには、全ての値の組み合わせに対応させて画素の色を定めておくことができる。すなわち、色見本テーブルは、256の3乗通りのRGBの組み合わせそれぞれに対して、N色の判定色のいずれか1つを割り当てたものである。なお、図5に示すように、複数の輝度値それぞれに対応付けた色見本テーブルの色成分の値(例えば、RGBそれぞれの256通りの値)は、輝度値に応じて異なる値となる。 FIG. 6 is an explanatory diagram showing the relationship between the color components (RGB values) of the color sample table and the vehicle body color. As shown in FIG. 6, when the color components are RGB, when each of RGB can take 256 values from 0 to 255, for example, the pixel color is determined in correspondence with all combinations of values. I can keep it. In other words, in the color sample table, any one of N determination colors is assigned to each of 256 cubes of RGB combinations. As shown in FIG. 5, the color component values (for example, 256 values for each of RGB) of the color sample table associated with each of the plurality of luminance values differ depending on the luminance value.
色見本テーブル選択部16は、色見本テーブルを選択する選択手段としての機能を有し、ナンバープレート輝度値算出部13で算出した輝度値に対応する色見本テーブルを選択する。例えば、ナンバープレートの背景部分が白である場合に、当該白の部分の輝度の平均値に対応する(輝度値が一致する又は最も近い)色見本テーブルを選択する。ナンバープレートの色は、白のように予め定められているので、輝度値(輝度の平均値)を算出することにより、車体色が日照条件(照明条件)等によりどの程度明るく又は暗くなっているかの影響を推定することができ、推定した明るさ(輝度の平均値)に応じた色見本を選択することができる。
The color sample
なお、ナンバープレートの背景部分又は文字部分の画素の色が白、黄、緑、黒のいずれの色であるかに応じて輝度値(平均輝度、明るさ)は異なるので、ナンバープレートの背景部分又は文字部分の画素の色と、当該色の平均輝度とに基づいて、複数の輝度値Y1、…、YM(明るさ)の中から一の輝度値(明るさ)を選定することができる。以下、輝度値(明るさ)の選定方法について説明する。 The luminance value (average luminance, brightness) differs depending on whether the color of the pixel of the background portion or character portion of the license plate is white, yellow, green, or black, so the background portion of the license plate Alternatively, one luminance value (brightness) can be selected from a plurality of luminance values Y1,..., YM (brightness) based on the color of the pixel in the character portion and the average luminance of the color. Hereinafter, a method for selecting a luminance value (brightness) will be described.
図7は色見本テーブルを選択するための輝度選定テーブルの一例を示す説明図である。図7に示すように、輝度選定テーブルは、ナンバープレートの明部及び暗部に分けて、明部の色が白及び黄の場合の平均輝度値、並びに暗部の色が緑及び黒の場合の平均輝度値に対応付けて、色見本テーブルを選択するための輝度(明るさ)Y1〜Y8を定める。輝度選定テーブルは、環境の明るさが変化した場合のナンバープレートの輝度情報を保持するためのものである。なお、商用の普通自動車又は軽自動車の場合も明部と暗部とが逆転する点が図7の例と相違するだけであるので、同様にして輝度を選定できる。また、図7中の数値は一例であって、これらの値に限定されるものではない。 FIG. 7 is an explanatory diagram showing an example of a luminance selection table for selecting a color sample table. As shown in FIG. 7, the brightness selection table is divided into the bright part and dark part of the license plate, the average brightness value when the bright part color is white and yellow, and the average when the dark part color is green and black Brightness (brightness) Y1 to Y8 for selecting the color sample table is determined in association with the brightness value. The brightness selection table is for holding brightness information of the license plate when the brightness of the environment changes. In the case of a commercial ordinary vehicle or light vehicle, the only difference is that the bright and dark portions are reversed, so that the luminance can be selected in the same manner. Moreover, the numerical values in FIG. 7 are examples, and are not limited to these values.
図7の例では、例えば、ナンバープレートの白、黄、緑、黒の平均輝度値が、それぞれ80、60、20、10である場合、輝度Y1の色テーブルが選択される。また、ナンバープレートの白、黄、緑、黒の平均輝度値が、それぞれ100、80、30、20である場合、輝度Y2の色テーブルが選択される。以下同様である。選定された輝度値(Y1〜Y8)に応じて選択される色テーブルは、図5に例示するとおりである。なお、図7において、平均輝度値として数字に代えて横線を付した箇所は、平均輝度値が、例えば、250より大きく飽和している状態を表す。 In the example of FIG. 7, for example, when the average luminance values of white, yellow, green, and black on the license plate are 80, 60, 20, and 10, respectively, the color table of luminance Y1 is selected. When the average luminance values of white, yellow, green, and black on the license plate are 100, 80, 30, and 20, respectively, the color table of luminance Y2 is selected. The same applies hereinafter. The color table selected according to the selected luminance values (Y1 to Y8) is as illustrated in FIG. In FIG. 7, a portion with a horizontal line instead of a number as the average luminance value represents a state in which the average luminance value is saturated to be greater than 250, for example.
そして、図7の例1のように、特定部位を明部とした場合に、ナンバープレートの白(明部)の平均輝度値が100であり、緑(暗部)の平均輝度値が60であるときは、ナンバープレートの白(明部)の平均輝度値100に対応する輝度Y2が選定される。
Then, as in Example 1 of FIG. 7, when the specific part is a bright part, the average luminance value of white (bright part) of the license plate is 100, and the average luminance value of green (dark part) is 60. In this case, the luminance Y2 corresponding to the
また、図7の例2のように、特定部位を明部とした場合に、ナンバープレートの白(明部)の平均輝度値が、例えば、255であり、飽和しているか否かの判定値である250より大きいために飽和していると判定され、緑(暗部)の平均輝度値が100であるときは、明部に代えて暗部を特定部位とするので、ナンバープレートの白(明部)に代えて緑(暗部)の平均輝度値100に対応する輝度Y6が選定される。
Further, as in Example 2 in FIG. 7, when the specific portion is a bright portion, the average luminance value of white (bright portion) of the license plate is, for example, 255, and is a determination value as to whether or not it is saturated. When the average luminance value of green (dark part) is 100, the dark part is used as the specific part instead of the bright part. ) Is selected instead of the brightness Y6 corresponding to the
車体色判定部18は、車両の色を判定する判定手段としての機能を有し、車体色判定領域特定部15で特定した判定領域(車体色判定領域)の各画素の色成分と選択した色見本テーブルの色成分とに基づいて車両の色を判定する。
The vehicle body
例えば、判定領域の任意の画素の色成分(例えば、RGB値)と一致する又は近似する色成分に対応する色を当該画素の色と判定し、判定領域内のすべての画素について色を判定する。そして、同色の画素の数が所定の閾値以上である場合、当該画素の色を車両の色として判定する。上述のように、予め色が定まっているナンバープレートの特定部位(例えば、背景部分、明部など)の輝度値に応じて色見本テーブルを選択することにより、日照条件(照明条件)等による影響を予め加味した色見本テーブルを用いることができるので、車両の撮像時点の天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによる影響を受けることなく、精度良く車両の色を判定することができる。 For example, a color corresponding to or close to a color component (for example, RGB value) of an arbitrary pixel in the determination region is determined as the color of the pixel, and the color is determined for all the pixels in the determination region. . If the number of pixels of the same color is equal to or greater than a predetermined threshold, the color of the pixel is determined as the color of the vehicle. As described above, by selecting a color sample table according to the luminance value of a specific part (for example, a background part, a bright part, etc.) of a license plate whose color is determined in advance, the influence of sunlight conditions (illumination conditions) etc. The color sample table can be used in advance, so accuracy is not affected by differences in sunlight conditions (lighting conditions) such as the weather at the time of imaging of the vehicle, the time zone, the sun or shade, and the surrounding environment. The color of the vehicle can be determined well.
より具体的には、計数手段としての画素数計数部17は、判定領域(車体色判定領域)の各画素の色成分と色見本テーブルの色成分とが一致する画素の数を色毎に計数する。車体色判定部18は、画素数計数部17で計数した画素の数が閾値以上である場合、当該画素の色を車両の色と判定する。色成分をRGBとした場合に、RGBそれぞれが、例えば、256通りの値をとり得るときには、全ての値の組み合わせに対応させて画素の色を定めておくことができる。色成分が一致する画素の色を判定し、判定した色が同じ色の画素の数が閾値以上である場合、当該画素の色を車両の色と判定することにより、色見本テーブルの色成分を参照するだけで車両の色を判定することができるので判定処理を簡略化することができる。
More specifically, the pixel
エッジ画素抽出部19は、画素抽出手段としての機能を有し、判定領域の各画素の画素値に基づいてエッジ画素を抽出する。エッジ画素の抽出は、例えば、sobelフィルタなどの既存の画像フィルタを用いることができる。
The edge
車体色判定部18は、判定領域からエッジ画素を除外(無視)して車両の色を判定する。車両のボンネット等はテクスチャがほとんど無いのに対し、ライト、エンブレム又はフロントグリルなどの部分はテクスチャがある。また、ウインドなどのガラス部分も光の透過又は反射によりテクスチャがある。このようなテクスチャがある領域は車体の色を正しく表していない。エッジ抽出を行ってエッジ強度が強い画素(テクスチャありの部分)を判定領域から除去する(無視する)ことにより、車両の色を誤って判定することを防止することができる。なお、エッジ画素抽出部19は必須の構成ではなく、環境状況等によっては具備しなくてもよい。
The vehicle body
グラデーション領域抽出部20は、領域抽出手段としての機能を有し、判定領域の各画素の輝度値に基づいて輝度値の変化が一様なグラデーション領域を抽出する。
The gradation
図8はグラデーション領域の抽出方法の一例を示す説明図である。図8Aは、特定された車体色判定領域(判定領域)の一例を示す。図8Bに示すように、判定領域内の所定の方向、図8Bの例では、撮像画像の縦方向(Y軸方向)に沿って、判定領域の縦方向の長さ分の線状のグラデーション判定領域を抽出する。次に、図8Cに示すように、グラデーション判定領域を所定間隔dで小区分に分け、所定間隔d毎の輝度値をサンプリングする。図8Cの例では、輝度値I0、I1、I2、I3、I4、I5、I6をサンプリングした様子を示す。 FIG. 8 is an explanatory diagram showing an example of a gradation area extraction method. FIG. 8A shows an example of the specified vehicle body color determination area (determination area). As shown in FIG. 8B, a linear gradation determination corresponding to the length in the vertical direction of the determination area along a predetermined direction in the determination area, in the example of FIG. 8B, along the vertical direction (Y-axis direction) of the captured image. Extract regions. Next, as shown in FIG. 8C, the gradation determination region is divided into small sections at a predetermined interval d, and the luminance value at each predetermined interval d is sampled. In the example of FIG. 8C, the luminance values I0, I1, I2, I3, I4, I5, and I6 are sampled.
そして、サンプリングした輝度値のうち、一定に変化する輝度値がある場合、具体的には、例えば、図8Dに示すように、(I2−I0)、(I3−I1)、(I4−I2)が略等しく、かつ(I4−I0)の絶対値が所定のグラデーション閾値より大きい場合、すなわち、適宜の間隔(図8では、2d)での輝度値の差分(例えば、I2−I0)が略一定であって、輝度値(図8では、I4−I0)の変化量の絶対値がグラデーション閾値より大きい条件を満たす場合、輝度値I0〜I4をサンプリングした長さLの範囲を含む領域をグラデーション領域として抽出することができる。なお、サンプリングした輝度値I5、I6は、上述の条件を満たさないとしている。 When there are luminance values that change constantly among the sampled luminance values, specifically, as shown in FIG. 8D, for example, (I2-I0), (I3-I1), (I4-I2) Are substantially equal and the absolute value of (I4-I0) is larger than a predetermined gradation threshold, that is, the difference in luminance value (for example, I2-I0) at an appropriate interval (2d in FIG. 8) is substantially constant. If the absolute value of the change amount of the luminance value (I4-I0 in FIG. 8) satisfies the condition larger than the gradation threshold, the region including the range of the length L obtained by sampling the luminance values I0 to I4 is defined as the gradation region. Can be extracted as Note that the sampled luminance values I5 and I6 do not satisfy the above-described conditions.
図9は判定領域からグラデーション領域を除外する様子を示す説明図である。図8から縦方向に長さLの領域がグラデーション領域として抽出されたので、図9に示すように、元の車体色判定領域(判定領域)から縦方向の長さLのグラデーション領域を除外した領域を車体色判定領域とする。ボンネットなどの上を向いた面では、光が反射して空の色が映り込み、グラデーションとして表れて車両の色が異なって見える場合がある。グラデーション領域を判定領域から除去する(無視する)ことにより、車両の色を誤って判定することを防止することができる。 FIG. 9 is an explanatory diagram showing a state in which the gradation area is excluded from the determination area. Since the area of length L in the vertical direction is extracted as a gradation area from FIG. 8, the gradation area of length L in the vertical direction is excluded from the original vehicle body color determination area (determination area) as shown in FIG. The region is a vehicle body color determination region. On the surface facing up, such as a bonnet, the color of the sky may appear due to the reflection of light, appearing as a gradation, and the color of the vehicle may appear different. By removing (ignoring) the gradation area from the determination area, it is possible to prevent the vehicle color from being erroneously determined.
なお、図8の例では、グラデーション判定領域を縦方向(Y軸方向)に沿って抽出したが、これに限定されるものではなく、グラデーション判定領域を横方向(X軸方向)に沿って抽出することもできる。また、図8の例では、1つのグラデーション判定領域を抽出して上述の条件を満たすか否かを判定したが、抽出したグラデーション判定領域をさらに複数の区分に分けて、当該区分毎に上述の条件を満たすか否かを判定することもできる。また、グラデーション領域抽出部20は、必須の構成ではなく、環境状況等によっては具備しなくてもよい。
In the example of FIG. 8, the gradation determination area is extracted along the vertical direction (Y-axis direction). However, the present invention is not limited to this, and the gradation determination area is extracted along the horizontal direction (X-axis direction). You can also In the example of FIG. 8, it is determined whether one gradation determination area is extracted and the above-described condition is satisfied. It can also be determined whether or not the condition is satisfied. Further, the gradation
次に、車色判定装置100の動作について説明する。図10は実施の形態1の車色判定装置100の処理手順の一例を示すフローチャートである。以下、処理の主体が制御部10として説明する。制御部10は、撮像画像を取得し(S11)、取得した撮像画像においてナンバープレート領域を検出する(S12)。
Next, the operation of the vehicle
制御部10は、検出したナンバープレート領域の撮像画像上の位置を基準として車体色判定領域(判定領域)を特定する(S13)。制御部10は、検出したナンバープレート領域の特定部位(例えば、背景部分、明部)の輝度値(例えば、平均値)を算出する(S14)。なお、特定部位は、輝度又は色成分に基づいて特定することができる。
The
制御部10は、記憶した色見本テーブルの中から、算出した輝度値に対応する輝度(例えば、図5のY1、…YM)の色見本テーブルを選択する(S15)。算出した輝度値に対応する輝度(例えば、図5のY1、…YM)とは、例えば、算出した輝度値と一致する輝度(Y1、…YM)又は最も近い輝度(Y1、…YM)を意味する。
The
制御部10は、車体色判定領域の各画素について、色成分が選択した色見本テーブルの色成分と一致する画素の数を色毎に計数する(S16)。これにより、車体色判定領域内の各画素が、予め定めた判定色(例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒など)のいずれの色であるかを判定するとともに、判定色毎に、当該判定色と判定された画素の数を計数する。
The
制御部10は、計数した画素の数が閾値以上であるか否かを判定し(S17)、画素の数が閾値以上である場合(S17でYES)、当該画素の色を車体色と判定し(S18)、処理を終了する。画素の数が閾値以上でない場合(S17でNO)、制御部10は、ステップS18の処理を行わずに処理を終了する。なお、図10に示した処理は、車体色の判定の間、繰り返し行われる。
The
(実施の形態2)
上述の実施の形態1では、色見本テーブルにおいて、画素の色成分として、RGB値を用いる構成であったが、色成分はRGB値に限定されるものではなく、他の表色系として、例えば、L*a*b*値(エルスター、エースター、ビースター)を用いることもできる。
(Embodiment 2)
In the first embodiment described above, the RGB values are used as the color components of the pixels in the color sample table. However, the color components are not limited to the RGB values, and other color systems such as, for example, , L * a * b * values (Elster, Aster, Beester) can also be used.
図11は実施の形態2の車色判定装置120の構成の一例を示すブロック図である。実施の形態1との違いは、L*a*b*値算出部22、近似度算出部23を備える点である。なお、L*a*b*値は、公知の変換式によりRGB値から変換することができる。
FIG. 11 is a block diagram illustrating an example of the configuration of the vehicle
記憶部21には、色見本テーブルの各色(車両の色を判定する判定色)に対応するL*a*b*値を予め記憶しておく。
The
図12は実施の形態2の色見本テーブルの構成の一例を示す説明図である。図12に示すように、色見本テーブルは、複数の輝度値(輝度)Y1、Y2、…YMに対応させて複数記憶してある。複数の輝度値は、日照条件(照明条件)の違いにより、撮像画像が全体として暗い場合、あるいは全体として明るい場合、あるいは両者の中間などのそれぞれの明るさに応じた輝度値である。複数の輝度値の数Mは、適宜設定することができるが、例えば、明暗の程度に応じて8通りの輝度値を設定することができる。 FIG. 12 is an explanatory diagram showing an example of the configuration of the color sample table according to the second embodiment. As shown in FIG. 12, a plurality of color sample tables are stored in association with a plurality of luminance values (luminances) Y1, Y2,. The plurality of luminance values are luminance values corresponding to respective brightnesses such as when the captured image is dark as a whole or when it is bright as a whole due to differences in sunshine conditions (illumination conditions). The number M of the plurality of luminance values can be set as appropriate. For example, eight luminance values can be set according to the degree of brightness.
それぞれの色見本テーブルは、画素の複数の色成分及び当該画素の色を関連付けたテーブルである。複数の色成分とは、L*a*b*値(エルスター、エースター、ビースター)である。L*a*b*表色系は人間が感じる色の差を数値で表現するために考案された表色系であり、他の表色系に比べて人間の感覚に近い結果を出力することが可能となる。 Each color sample table is a table in which a plurality of color components of a pixel are associated with the color of the pixel. The plurality of color components are L * a * b * values (Elster, Aster, Biester). The L * a * b * color system is a color system designed to express the difference in color perceived by humans with numerical values, and outputs results that are closer to the human sense than other color systems. Is possible.
また、画素の色は、車両の色を判定する際の判定色であり、車体色の判定の際に分類したい色であり、色数をNとしている。判定色は、例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒などである。なお、判定色はこれに限定されるものではない。また、判定色には、ナンバープレートの背景部分(白、黄)または文字部分(緑、黒)の色も含めることができる。 The pixel color is a determination color when determining the color of the vehicle, is a color that is desired to be classified when determining the vehicle body color, and the number of colors is N. The determination color is, for example, white, silver, gray, red, purple, yellow, blue, green, black, or the like. The determination color is not limited to this. The determination color can also include the color of the background portion (white, yellow) or character portion (green, black) of the license plate.
図13は色見本テーブルの色成分(L*a*b*値)と車体色との関連を示す説明図である。図13に示すように、色成分をL*a*b*とした場合に、それぞれのL*a*b*値を参照値とし、参照値毎に画素の色を定めておくことができる。すなわち、色見本テーブルは、N色の判定色のそれぞれに1つのL*a*b*値を参照値として関連付けたものである。なお、図12に示すように、複数の輝度値それぞれに対応付けた色見本テーブルの色成分の値(L*a*b*値)は、輝度値に応じて異なる値となる。 FIG. 13 is an explanatory diagram showing the relationship between the color components (L * a * b * values) of the color sample table and the body color. As shown in FIG. 13, when the color component is L * a * b *, each L * a * b * value can be used as a reference value, and the pixel color can be determined for each reference value. That is, the color sample table associates one L * a * b * value as a reference value with each of the N determination colors. As shown in FIG. 12, the color component value (L * a * b * value) of the color sample table associated with each of the plurality of luminance values varies depending on the luminance value.
色見本テーブル選択部16は、色見本テーブルを選択する選択手段としての機能を有し、ナンバープレート輝度値算出部13で算出した輝度値に対応する色見本テーブルを選択する。例えば、ナンバープレートの背景部分が白である場合に、当該白の部分の輝度の平均値に対応する(輝度値が一致する又は最も近い)色見本テーブルを選択する。ナンバープレートの色は、白のように予め定められているので、輝度値(輝度の平均値)を算出することにより、車体色が日照条件(照明条件)等によりどの程度明るく又は暗くなっているかの影響を推定することができ、推定した明るさ(輝度の平均値)に応じた色見本を選択することができる。
The color sample
L*a*b*値算出部22は、判定領域の各画素の色成分(例えば、RGB値)に基づいて当該各画素のL*a*b*値を算出する。なお、L*a*b*値は、例えば、RGB値から所定の変換式を用いて求めることができる。
The L * a * b *
近似度算出部23は、L*a*b*値算出部22で算出したL*a*b*値と色見本テーブルの各色のL*a*b*値との近似度を判定領域の各画素について算出する。近似度は、判定領域の画素のL*a*b*値と、色見本テーブルのL*a*b*値とがどの程度近似するかを示す指標であり、L*a*b*それぞれの差分の二乗の合計値が最も小さい場合に近似度が最も大きいとすることができる。
The
画素数計数部17は、近似度算出部23で算出した近似度が所定値以上である画素の数を計数する。
The pixel
車体色判定部18は、画素数計数部17で計数した画素の数が閾値以上である場合、当該画素の色を車両の色と判定する。
When the number of pixels counted by the pixel
図14は実施の形態2の車色判定装置120の処理手順の一例を示すフローチャートである。以下、処理の主体が制御部10として説明する。制御部10は、撮像画像を取得し(S31)、取得した撮像画像においてナンバープレート領域を検出する(S32)。
FIG. 14 is a flowchart illustrating an example of a processing procedure of the vehicle
制御部10は、検出したナンバープレート領域の撮像画像上の位置を基準として車体色判定領域(判定領域)を特定する(S33)。制御部10は、検出したナンバープレート領域の特定部位(例えば、背景部分、明部)の輝度値(例えば、平均値)を算出する(S34)。なお、特定部位は、輝度又は色成分に基づいて特定することができる。
The
制御部10は、記憶した色見本テーブルの中から、算出した輝度値に対応する輝度(例えば、図12のY1、…YM)の色見本テーブルを選択する(S35)。算出した輝度値に対応する輝度(例えば、図12のY1、…YM)とは、例えば、算出した輝度値と一致する輝度(Y1、…YM)又は最も近い輝度(Y1、…YM)を意味する。
The
制御部10は、車体色判定領域の各画素の色成分(例えば、RGB値)をL*a*b*値に変換し(S36)、車体色判定領域の各画素のL*a*b*値と、色見本テーブルのそれぞれのL*a*b*値との近似度を算出する(S37)。
The
制御部10は、算出した近似度が所定値以上の画素の数を計数する(S38)。これにより、車体色判定領域内の各画素が、予め定めた判定色(例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒など)のいずれの色であるかを判定するとともに、判定色毎に、当該判定色と判定された画素の数を計数する。
The
制御部10は、計数した画素の数が閾値以上であるか否かを判定し(S39)、画素の数が閾値以上である場合(S39でYES)、当該画素の色を車体色と判定し(S40)、処理を終了する。画素の数が閾値以上でない場合(S39でNO)、制御部10は、ステップS40の処理を行わずに処理を終了する。なお、図14に示した処理は、車体色の判定の間、繰り返し行われる。
The
上述の実施の形態2では、画素毎にRGB値をLab値に変換して、色見本のLab値との近似度を算出して、色を判定する構成であったが、画素毎に変換処理、近似度の算出等の処理を行うと計算負荷が高くなる。そこで、予めRGBの全ての組合せ(256の3乗)について、Lab値に変換して、色見本とのLab値との近似値を算出して、色を判定しておき、RGB全組合せ(256の3乗)と判定した色の対応付けテーブルを用意しておくことにより、画素のRGB値が得られると、当該テーブルを参照することにより、計算を行うことなく直ちに色を決定することができる。なお、当該テーブルは、図5に例示すような構成である。 In the second embodiment described above, the RGB value is converted into the Lab value for each pixel, the degree of approximation with the Lab value of the color sample is calculated, and the color is determined. However, the conversion process is performed for each pixel. When processing such as calculation of the degree of approximation is performed, the calculation load increases. Therefore, all RGB combinations (256 to the cube of 256) are converted into Lab values in advance, approximate values of Lab swatches with color samples are calculated, colors are determined, and all RGB combinations (256 By preparing a correspondence table of colors determined to be (the third power of 3), when the RGB value of a pixel is obtained, the color can be determined immediately without performing a calculation by referring to the table. . The table is configured as shown in FIG.
このようなテーブルを用いることにより、任意のRGB値であっても必ずテーブルの中に該当するRGBの組み合わせが存在するので、色を判定するための途中の計算(例えば、近似度の算出)は不要となる。また、入力の256階調を、例えば、32階調として扱うことにより、テーブルのサイズ(大きさ)を小さくすることができ、計算負荷の低減とメモリ容量の低減の両立を図ることができる。 By using such a table, there is always a corresponding RGB combination in the table even if it is an arbitrary RGB value, so an intermediate calculation for determining the color (for example, calculation of the approximation degree) is performed. It becomes unnecessary. Further, by treating the input 256 gradations as, for example, 32 gradations, the size (size) of the table can be reduced, and both reduction in calculation load and reduction in memory capacity can be achieved.
(実施の形態3)
上述の実施の形態1、2では、輝度値に応じて複数の色見本テーブルを記憶しておき、ナンバープレート領域の輝度値に応じて、当該輝度値に対応する色見本テーブルを選択する構成であったが、これに限定されるものではない。例えば、一般的または代表的な輝度値に対応する色見本テーブルを1つ記憶しておき、当該色見本テーブルを参照して車体色を判定することもできる。
(Embodiment 3)
In the first and second embodiments described above, a plurality of color sample tables are stored according to the luminance value, and the color sample table corresponding to the luminance value is selected according to the luminance value of the license plate area. However, the present invention is not limited to this. For example, it is possible to store one color sample table corresponding to a general or representative luminance value and determine the vehicle body color with reference to the color sample table.
図15は実施の形態3の車色判定装置140の構成の一例を示すブロック図である。実施の形態1との違いは、輝度値補正部24を備える点である。
FIG. 15 is a block diagram illustrating an example of the configuration of the vehicle
記憶部21には、図6に例示するような、所定の輝度値に対応させて画素の複数の色成分及び当該画素の色を関連付けた色見本テーブルを1つ記憶しておく。所定の輝度値は、例えば、日照条件(照明条件)の違いにより、撮像画像全体の輝度が変化するような場合に、平均的、あるいは一般的な明るさに相当する輝度値であり、任意の輝度値を設定することができる。複数の色成分とは、例えば、R(赤)、G(緑)、B(青)値である。また、画素の色は、車両の色を判定する際の判定色であり、例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒などである。また、判定色には、ナンバープレートの背景部分(白、黄)または文字部分(緑、黒)の色も含めることができる。色成分をRGBとした場合に、RGBそれぞれが、例えば、256通りの値をとり得るときには、全ての値の組み合わせに対応させて画素の色を定めておくことができる。
The
輝度値補正部24は、補正手段としての機能を有し、ナンバープレート輝度値算出部13で算出した輝度値と、上述の所定の輝度値との差分に応じて判定領域の各画素の輝度値を補正する。例えば、算出した輝度値と所定の輝度値とが一致するように、判定領域全体の輝度値を補正する。
The luminance
図16は実施の形態3の輝度値補正の一例を示す模式図である。図16に示すように、検出されたナンバープレート領域(例えば、背景部分、明部)の平均輝度と、色見本テーブルの平均輝度(所定の輝度値)とを比較し、両者の輝度が一致又は近似するように撮像画像全体(判定領域全体でもよい)の輝度値を補正する。例えば、算出した輝度値が所定の輝度値より小さい場合、すなわち、ナンバープレート領域の特定部位の輝度の平均値が所定の輝度値より小さい場合には、図16に示すように、撮像画像は全体としては暗いので、判定領域の輝度を大きくして、判定領域の輝度が色見本テーブルの輝度に一致又は近似するように輝度値を補正する。 FIG. 16 is a schematic diagram illustrating an example of luminance value correction according to the third embodiment. As shown in FIG. 16, the average brightness of the detected license plate area (for example, the background portion and the bright portion) is compared with the average brightness (predetermined brightness value) of the color sample table, and the two brightnesses match or The luminance value of the entire captured image (or the entire determination area) may be corrected so as to approximate it. For example, when the calculated luminance value is smaller than a predetermined luminance value, that is, when the average value of the luminance of a specific part of the license plate area is smaller than the predetermined luminance value, the entire captured image is displayed as shown in FIG. Since the brightness of the determination area is increased, the brightness value is corrected so that the brightness of the determination area matches or approximates the brightness of the color sample table.
また、算出した輝度値が所定の輝度値より大きい場合、すなわち、ナンバープレート領域の特定部位の輝度の平均値が所定の輝度値より大きい場合には、撮像画像は全体としては明るいので、判定領域の輝度を小さくして、判定領域の輝度が色見本テーブルの輝度に一致又は近似するように輝度値を補正する。これにより、判定領域の輝度を色見本の輝度に一致又は近づけることができる。 Further, when the calculated luminance value is larger than the predetermined luminance value, that is, when the average luminance value of the specific part of the license plate area is larger than the predetermined luminance value, the captured image is bright as a whole, so the determination area And the luminance value is corrected so that the luminance of the determination area matches or approximates the luminance of the color sample table. As a result, the luminance of the determination region can be matched or brought close to the luminance of the color sample.
車体色判定部18は、補正した判定領域の各画素の色成分と、色見本テーブルの色成分とに基づいて車両の色を判定する。例えば、判定領域の任意の画素の色成分(例えば、RGB値)と一致する又は近似する色成分に対応する色を当該画素の色と判定し、判定領域内のすべての画素について色を判定する。そして、同色の画素の数が所定の閾値以上である場合、当該画素の色を車両の色として判定する。
The vehicle body
実施の形態3では、予め色が定まっているナンバープレートの特定部位の輝度値が所定の輝度値に一致する(又は近づく)ように判定領域の輝度値を補正するので、日照条件(照明条件)等による影響を相殺して判定領域の輝度値を色見本の輝度に一致又は近づけることができ、車両の撮像時点の天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによる影響を受けることなく、精度良く車両の色を判定することができる。
In
図17は実施の形態3の車色判定装置140の処理手順の一例を示すフローチャートである。以下、処理の主体が制御部10として説明する。制御部10は、撮像画像を取得し(S51)、取得した撮像画像においてナンバープレート領域を検出する(S52)。
FIG. 17 is a flowchart illustrating an example of a processing procedure of the vehicle
制御部10は、検出したナンバープレート領域の撮像画像上の位置を基準として車体色判定領域(判定領域)を特定する(S53)。制御部10は、検出したナンバープレート領域の特定部位(例えば、背景部分、明部)の輝度値(例えば、平均値)を算出する(S54)。なお、特定部位は、輝度又は色成分に基づいて特定することができる。
The
制御部10は、算出した輝度値と所定の輝度値(色見本テーブルの輝度値)との差分に応じて、車体色判定領域の各画素の輝度値を補正する(S55)。
The
制御部10は、補正した車体色判定領域の各画素について、色成分が色見本テーブルの色成分と一致する画素の数を計数する(S56)。これにより、車体色判定領域内の各画素が、予め定めた判定色(例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒など)のいずれの色であるかを判定するとともに、判定色毎に、当該判定色と判定された画素の数を計数する。
The
制御部10は、計数した画素の数が閾値以上であるか否かを判定し(S57)、画素の数が閾値以上である場合(S57でYES)、当該画素の色を車体色と判定し(S58)、処理を終了する。画素の数が閾値以上でない場合(S57でNO)、制御部10は、ステップS58の処理を行わずに処理を終了する。なお、図17に示した処理は、車体色の判定の間、繰り返し行われる。
The
(実施の形態4)
上述の実施の形態3では、色見本テーブルにおいて、画素の色成分として、RGB値を用いる構成であったが、色成分はRGB値に限定されるものではなく、他の表色系として、例えば、L*a*b*値(エルスター、エースター、ビースター)を用いることもできる。
(Embodiment 4)
In
図18は実施の形態4の車色判定装置160の構成の一例を示すブロック図である。実施の形態3との違いは、L*a*b*値算出部22、近似度算出部23を備える点である。なお、L*a*b*値は、公知の変換式によりRGB値から変換することができる。
FIG. 18 is a block diagram illustrating an example of the configuration of the vehicle
記憶部21には、図13に示すような、所定の輝度値に対応させて画素の複数の色成分及び当該画素の色を関連付けた色見本テーブルを1つ記憶しておく。所定の輝度値は、例えば、日照条件(照明条件)の違いにより、撮像画像全体の輝度が変化するような場合に、平均的、あるいは一般的な明るさに相当する輝度値であり、任意の輝度値を設定することができる。複数の色成分とは、例えば、L*a*b*値である。また、画素の色は、車両の色を判定する際の判定色であり、例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒などである。また、判定色には、ナンバープレートの背景部分(白、黄)または文字部分(緑、黒)の色も含めることができる。色成分をL*a*b*とした場合に、それぞれのL*a*b*値を参照値とし、参照値毎に画素の色を定めておくことができる。すなわち、色見本テーブルは、N色の判定色のそれぞれに1つのL*a*b*値を参照値として関連付けたものである。
The
輝度値補正部24は、補正手段としての機能を有し、ナンバープレート輝度値算出部13で算出した輝度値と、上述の所定の輝度値との差分に応じて判定領域の各画素の輝度値を補正する。例えば、算出した輝度値と所定の輝度値とが一致するように、判定領域全体の輝度値を補正する。輝度値の補正は、図16の例と同様である。
The luminance
L*a*b*値算出部22は、輝度値を補正した判定領域の各画素の色成分(例えば、RGB値)に基づいて当該各画素のL*a*b*値を算出する。なお、L*a*b*値は、例えば、RGB値から所定の変換式を用いて求めることができる。
The L * a * b *
近似度算出部23は、L*a*b*値算出部22で算出したL*a*b*値と色見本テーブルの各色のL*a*b*値との近似度を判定領域の各画素について算出する。近似度は、判定領域の画素のL*a*b*値と、色見本テーブルのL*a*b*値とがどの程度近似するかを示す指標であり、L*a*b*それぞれの差分の二乗の合計値が最も小さい場合に近似度が最も大きいとすることができる。
The
画素数計数部17は、近似度算出部23で算出した近似度が所定値以上である画素の数を計数する。
The pixel
車体色判定部18は、画素数計数部17で計数した画素の数が閾値以上である場合、当該画素の色を車両の色と判定する。
When the number of pixels counted by the pixel
実施の形態4では、予め色が定まっているナンバープレートの特定部位の輝度値が所定の輝度値に一致する(又は近づく)ように判定領域の輝度値を補正するので、日照条件(照明条件)等による影響を相殺して判定領域の輝度値を色見本の輝度に一致又は近づけることができ、車両の撮像時点の天候、時間帯、日向または日陰などの周囲の環境等の日照条件(照明条件)の違いによる影響を受けることなく、精度良く車両の色を判定することができる。 In the fourth embodiment, the luminance value of the determination region is corrected so that the luminance value of the specific part of the license plate whose color is determined in advance matches (or approaches) the predetermined luminance value. Therefore, the sunshine condition (illumination condition) The brightness value of the judgment area can be matched or brought close to the brightness of the color sample by offsetting the influence of the lighting conditions, etc., and the sunshine conditions (lighting conditions) such as the weather at the time of imaging of the vehicle, the time zone, the sun or shade The color of the vehicle can be accurately determined without being affected by the difference in
図19は実施の形態4の車色判定装置160の処理手順の一例を示すフローチャートである。以下、処理の主体が制御部10として説明する。制御部10は、撮像画像を取得し(S71)、取得した撮像画像においてナンバープレート領域を検出する(S72)。
FIG. 19 is a flowchart illustrating an example of a processing procedure of the vehicle
制御部10は、検出したナンバープレート領域の撮像画像上の位置を基準として車体色判定領域(判定領域)を特定する(S73)。制御部10は、検出したナンバープレート領域の特定部位(例えば、背景部分、明部)の輝度値(例えば、平均値)を算出する(S74)。なお、特定部位は、輝度又は色成分に基づいて特定することができる。
The
制御部10は、算出した輝度値と所定の輝度値(色見本テーブルの輝度値)との差分に応じて、車体色判定領域の各画素の輝度値を補正する(S75)。
The
制御部10は、車体色判定領域の各画素の色成分(例えば、RGB値)をL*a*b*値に変換し(S76)、車体色判定領域の各画素のL*a*b*値と、色見本テーブルのそれぞれのL*a*b*値との近似度を算出する(S77)。
The
制御部10は、算出した近似度が所定値以上の画素の数を計数する(S78)。これにより、車体色判定領域内の各画素が、予め定めた判定色(例えば、白、シルバー、灰、赤、紫、黄、青、緑、黒など)のいずれの色であるかを判定するとともに、判定色毎に、当該判定色と判定された画素の数を計数する。
The
制御部10は、計数した画素の数が閾値以上であるか否かを判定し(S79)、画素の数が閾値以上である場合(S79でYES)、当該画素の色を車体色と判定し(S80)、処理を終了する。画素の数が閾値以上でない場合(S79でNO)、制御部10は、ステップS80の処理を行わずに処理を終了する。なお、図19に示した処理は、車体色の判定の間、繰り返し行われる。
The
上述の車色判定装置100、120、140、160は、CPU、RAMなどを備えた汎用コンピュータを用いて実現することもできる。すなわち、図10、図14、図17、図19に示すような、各処理手順を定めたコンピュータプログラムを記録媒体に記録しておき、記録媒体からコンピュータプログラムをコンピュータに備えられたRAMにロードし、コンピュータプログラムをCPUで実行することにより、コンピュータ上で車色判定装置を実現することができる。
The vehicle
上述の実施の形態1〜4では、画素数計数部で計数した画素数が閾値以上である場合、当該画素の色を車体色として判定する構成であったが、これに限定されるものではなく、計数した画素数が最も多い画素の色を車体色として判定することもできる。 In the above-described first to fourth embodiments, when the number of pixels counted by the pixel number counting unit is equal to or greater than the threshold, the color of the pixel is determined as the vehicle body color. However, the present invention is not limited to this. The color of the pixel with the largest number of counted pixels can be determined as the vehicle body color.
上述の例では、ナンバープレート領域の画素の色成分(例えば、RGB値)に基づいて、特定部位の画素の色を判定するものであったが、これに限定されるものではなく、例えば、以下の方法で特定部位の画素の色を判定することもできる。 In the above-described example, the color of the pixel in the specific part is determined based on the color component (for example, RGB value) of the pixel in the license plate region. However, the present invention is not limited to this. The color of the pixel at the specific part can also be determined by this method.
前述の本実施の形態の車色判定装置100、120、140、160は、ナンバープレート色判定装置としての機能も備える。本実施の形態のナンバープレート色判定装置は、ナンバープレート検出部12、ナンバープレート輝度値算出部13、ナンバープレート色判定部14などの構成を備える。なお、以下の方法では、車両が軽自動車であるか否かを判定することもできる。
The above-described vehicle
ナンバープレート検出部12は、記憶部21から撮像画像を取り出し、取り出した撮像画像に基づいて、車両(車両の一部を含む)を検出する。そして、ナンバープレート検出部12は、検出した車両の画像に基づいて、矩形状のナンバープレート部の切り出し処理を行うことによりナンバープレート領域を検出する。ナンバープレート領域は、矩形状の四隅の撮像画像上での座標で特定することができる。
The license
ナンバープレート輝度値算出部13は、ナンバープレート検出部12で検出したナンバープレート領域の各画素の輝度Yを算出する。
The license plate luminance
ナンバープレート色判定部14は、ナンバープレート検出部12で検出したナンバープレート領域の各画素の色差Cb、Crを算出する。
The license plate
なお、輝度Yは、Y=0.298912×R+0.586611×G+0.114477×Bの式により算出することができる。また、色差Cbは、Cb=−0.168777×R−0.331223×G+0.5×Bの式により算出することができる。また、色差Crは、Cr=0.5×R−0.418358×G−0.081642×Bの式により算出することができる。RGBそれぞれの範囲は、例えば、0〜255であり、輝度Yの範囲は、0〜255、色差Cb、Crの範囲は、−128〜127である。 The luminance Y can be calculated by the equation Y = 0.298912 × R + 0.586611 × G + 0.114477 × B. Further, the color difference Cb can be calculated by an equation of Cb = −0.168777 × R−0.331223 × G + 0.5 × B. Further, the color difference Cr can be calculated by an equation of Cr = 0.5 × R−0.418358 × G−0.081642 × B. The range of each of RGB is, for example, 0 to 255, the range of luminance Y is 0 to 255, and the range of color differences Cb and Cr is −128 to 127.
ナンバープレート色判定部14は、ナンバープレート検出部12で検出したナンバープレート領域に基づいて、車両、例えば、軽自動車の判定領域を特定する。軽自動車の判定領域は、例えば、ナンバープレート領域の内側であって、ナンバープレート領域と相似の形状をなす領域とすることができる。検出したナンバープレート領域は、検出時の誤差等により、実際のナンバープレート以外の部分を含む可能性がある。そして、ナンバープレート以外の部分は、ノイズとなり色判定処理の精度を低下させる可能性がある。軽自動車の判定領域を、検出したナンバープレート領域の内側にすることにより、実際のナンバープレート以外の部分が含まれることを防止し、判定精度を高めることができる。
The license plate
ナンバープレート色判定部14は、判定領域全体で輝度値の平均値Yaを算出し、判定領域のうち、輝度値が平均値Ya以上の画素で構成される領域を明部(特定部位)として特定し、輝度値が平均値Yaより小さい画素で構成される領域を暗部(特定部位)として特定する。すなわち、ナンバープレート色判定部14は、判定領域の輝度の大小に応じて特定部位を特定する。
The license plate
ナンバープレート色判定部14は、明部の輝度の平均値Ya、色差Cbの平均値Cba、色差Crの平均値Craを算出し、算出した色差の平均値と所定の色差閾値とに基づいてナンバープレートの色を判定する。ここで、ナンバープレートの色とは、明部を特定部位とした場合には、ナンバープレート領域(判定領域)の明部と明部以外の部分の色を含み、暗部を特定部位とした場合には、ナンバープレート領域(判定領域)の暗部と暗部以外の部分の色を含む。また、ナンバープレート色判定部14は、算出した色差の平均値と所定の色差閾値とに基づいて軽自動車であるか否かを判定する。
The license plate
具体的な判定条件は、例えば、以下のようにすることができる。すなわち、条件1として、色差Cbの平均値Cbaが色差閾値Tbより小さい場合(Cba<Tb)、明部の色が黄であるとし、ナンバープレートの背景部分が黄色であるので軽自動車であると判定する。
Specific determination conditions can be as follows, for example. That is, as the
色差Cbの範囲を、−128〜127とした場合、正は青色成分、負は黄色成分を表すことになる。すなわち、色差閾値Tbを色差Cbが黄色成分を表す程度の値に設定しておくことにより、色差Cbの平均値Cbaが所定の色差閾値Tbより小さい場合には(例えば、平均値Cbaが負の値)、明部の色が黄であると判定することができる。 When the range of the color difference Cb is −128 to 127, positive represents a blue component and negative represents a yellow component. That is, by setting the color difference threshold Tb to a value such that the color difference Cb represents a yellow component, when the average value Cba of the color difference Cb is smaller than the predetermined color difference threshold Tb (for example, the average value Cba is negative). Value), it can be determined that the color of the bright portion is yellow.
また、色差Cbの平均値Cbaが所定の色差閾値Tbより大きい場合には(例えば、平均値Cbaが正の値)、黄色に比べ白色に近い青色成分が含まれるので、明部の色が白であると判定することができる。 In addition, when the average value Cba of the color difference Cb is larger than the predetermined color difference threshold Tb (for example, the average value Cba is a positive value), since a blue component closer to white than yellow is included, the light color is white. It can be determined that
上述のように、色差と色差閾値とを比較するだけでナンバープレートの色を判定することができ、従来のようにRGBそれぞれの値とRGBそれぞれに対応する閾値とを比較する場合に比べて、ナンバープレートの色判定の処理を簡素化することができる。 As described above, it is possible to determine the color of the license plate simply by comparing the color difference and the color difference threshold. Compared to the conventional case where the values of RGB and the thresholds corresponding to RGB are compared, The license plate color determination process can be simplified.
また、条件2として、色差Crの平均値Craが色差閾値Trより大きい場合(Cra>Tr)、明部の色が黄であるとし、ナンバープレートの背景部分が黄色であるので軽自動車であると判定する。なお、輝度、色差の平均値に代えて、最大値と最小値との間の中央値などを用いることもできる。
Further, as the
色差Crの範囲を、−128〜127とした場合、正は赤色成分、負は水色成分を表すことになる。すなわち、色差閾値Trを色差Crが赤色成分を表す程度の値に設定しておくことにより、色差Crの平均値Craが所定の色差閾値Trより大きい場合には(例えば、平均値Craが正の値)、白色に比べ黄色に近い赤色成分が含まれるので、明部の色が赤色に近い黄であると判定することができる。 When the range of the color difference Cr is −128 to 127, positive represents a red component and negative represents a light blue component. That is, by setting the color difference threshold Tr to a value such that the color difference Cr represents a red component, when the average value Cra of the color difference Cr is larger than the predetermined color difference threshold Tr (for example, the average value Cra is positive). Value), since a red component closer to yellow than white is included, it can be determined that the color of the bright portion is yellow close to red.
また、色差Crの平均値Craが所定の色差閾値Trより小さい場合には(例えば、平均値Craが負の値)、黄色に比べ白色に近い水色成分が含まれるので、明部の色が白であると判定することができる。 In addition, when the average value Cra of the color difference Cr is smaller than the predetermined color difference threshold Tr (for example, the average value Cra is a negative value), since a light blue component closer to white than yellow is included, the light color is white. It can be determined that
上述のように、色差と色差閾値とを比較するだけでナンバープレートの色を判定することができ、従来のようにRGBそれぞれの値とRGBそれぞれに対応する閾値とを比較する場合に比べて、ナンバープレートの色判定の処理を簡素化することができる。 As described above, it is possible to determine the color of the license plate simply by comparing the color difference and the color difference threshold. The license plate color determination process can be simplified.
また、条件3として、条件1、2の両方が充足する場合に、明部の色が黄であるとし、ナンバープレートの背景部分が黄色であるので軽自動車であると判定することもできる。
Further, as
軽自動車の判定に、RGB値を用いる場合には、RGBそれぞれの値に対して閾値との比較判定処理が必要となる。RGB値ではなく、色差Cb、Crを用いることにより、色差Cb、またはCrの値に対して1つの閾値との比較判定処理で済むので、処理を簡略化することができる。 When RGB values are used for light vehicle determination, a comparison determination process with a threshold value is required for each of the RGB values. By using the color differences Cb and Cr instead of the RGB values, it is only necessary to compare and determine the color difference Cb or Cr value with one threshold value, so that the processing can be simplified.
図20は実施の形態1〜4の車色判定装置による軽自動車判定の処理手順を示すフローチャートである。なお、図20に例示する処理は、本実施の形態のナンバープレート色判定装置によるナンバープレート色判定方法の一例を示す。 FIG. 20 is a flowchart illustrating a light vehicle determination processing procedure performed by the vehicle color determination devices according to the first to fourth embodiments. Note that the process illustrated in FIG. 20 shows an example of a license plate color determination method by the license plate color determination apparatus of the present embodiment.
制御部10は、撮像画像を取得し(S101)、取得した撮像画像においてナンバープレート領域を検出する(S102)。
The
制御部10は、検出したナンバープレート領域の撮像画像上の位置を基準として軽自動車の判定領域を特定する(S103)。軽自動車の判定領域は、例えば、ナンバープレート領域の内側であって、ナンバープレート領域と相似形をなす領域である。制御部10は、軽自動車の判定領域の各画素の輝度Y、色差Cb、Crを算出する(S104)。
The
制御部10は、軽自動車の判定領域の輝度の平均値を算出し(S105)、算出した平均値に基づいて、判定領域内の明部を特定する(S106)。
The
制御部10は、特定した明部の平均輝度Ya、平均色差Cba、Craを算出する(S107)。制御部10は、平均色差Cbaが色差閾値Tbより小さいか否かを判定し(S108)、平均色差Cbaが色差閾値Tbより小さい場合(S108でYES)、明部は黄色であるとし、軽自動車と判定し(S109)、処理を終了する。
The
平均色差Cbaが色差閾値Tbより小さくない場合(S108でNO)、制御部10は、平均色差Craが色差閾値Trより大きいか否かを判定し(S110)、平均色差Craが色差閾値Trより大きい場合(S110でYES)、ステップS109の処理を行う。平均色差Craが色差閾値Trより大きくない合(S110でNO)、制御部10は、明部は黄色でないとし、軽自動車でないと判定し(S111)、処理を終了する。また、軽自動車であると判定した場合には、明部は黄、暗部は黒であると判定し、軽自動車でないと判定した場合には、明部は白、暗部は緑と判定する。
When the average color difference Cba is not smaller than the color difference threshold Tb (NO in S108), the
上述の図20の処理において、ステップS108とS110のいずれか一方を省略してもよい。また、平均色差Cbaが色差閾値Tbより小さく、かつ平均色差Craが色差閾値Trより大きい場合に、軽自動車と判定してもよい。 In the process of FIG. 20 described above, one of steps S108 and S110 may be omitted. Further, when the average color difference Cba is smaller than the color difference threshold Tb and the average color difference Cra is larger than the color difference threshold Tr, it may be determined that the vehicle is a light vehicle.
上述のナンバープレート色判定装置は、CPU、RAMなどを備えた汎用コンピュータを用いて実現することもできる。すなわち、図20に示すような、各処理手順を定めたコンピュータプログラムを記録媒体に記録しておき、記録媒体からコンピュータプログラムをコンピュータに備えられたRAMにロードし、コンピュータプログラムをCPUで実行することにより、コンピュータ上でナンバープレート色判定装置を実現することができる。 The above-described license plate color determination device can also be realized using a general-purpose computer including a CPU, a RAM, and the like. That is, as shown in FIG. 20, a computer program that defines each processing procedure is recorded on a recording medium, the computer program is loaded from the recording medium into a RAM provided in the computer, and the computer program is executed by the CPU. Thus, a license plate color determination device can be realized on a computer.
開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。 The disclosed embodiments are to be considered in all respects as illustrative and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
100、120、140、160 車色判定装置
10 制御部
11 インタフェース部
12 ナンバープレート検出部
13 ナンバープレート輝度値算出部
14 ナンバープレート色判定部
15 車体色判定領域特定部
16 色見本テーブル選択部
17 画素数計数部
18 車体色判定部
19 エッジ画素抽出部
20 グラデーション領域抽出部
21 記憶部
22 L*a*b*値算出部
23 近似度算出部
24 輝度値補正部
200 撮像装置
DESCRIPTION OF
Claims (12)
前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出する検出手段と、
該検出手段で検出したナンバープレート領域の特定部位の輝度値を算出する輝度値算出手段と、
複数の輝度値それぞれに対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルを複数記憶する記憶手段と、
前記輝度値算出手段で算出した輝度値に対応する色見本テーブルを選択する選択手段と、
前記検出手段で検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定する特定手段と、
該特定手段で特定した判定領域の各画素の色成分と前記選択手段で選択した色見本テーブルの色成分とに基づいて車両の色を判定する判定手段と
を備えることを特徴とする車色判定装置。 In a vehicle color determination device that determines the color of a vehicle based on a captured image obtained by imaging the vehicle,
Detecting means for detecting a license plate area based on a pixel value of each pixel constituting the captured image;
Luminance value calculating means for calculating the luminance value of a specific part of the license plate area detected by the detecting means;
Storage means for storing a plurality of color sample tables in which a plurality of color components of pixels and the colors of the pixels are associated with each other in correspondence with a plurality of luminance values;
Selecting means for selecting a color sample table corresponding to the brightness value calculated by the brightness value calculating means;
Specifying means for specifying a determination area for determining the color of the vehicle based on the position on the captured image of the license plate area detected by the detection means;
Vehicle color determination, comprising: a determination unit that determines a color of the vehicle based on a color component of each pixel in the determination region specified by the specifying unit and a color component of a color sample table selected by the selection unit apparatus.
前記判定手段は、
前記計数手段で計数した画素の数が閾値以上である場合、該画素の色を車両の色と判定するように構成してあることを特徴とする請求項1に記載の車色判定装置。 A counting means for counting the number of pixels in which the color component of each pixel in the determination area matches the color component of the color sample table for each color;
The determination means includes
2. The vehicle color determination device according to claim 1, wherein when the number of pixels counted by the counting means is equal to or greater than a threshold, the color of the pixel is determined as the color of the vehicle.
前記色見本テーブルの各色に対応するL*a*b*値を記憶してあり、
前記判定領域の各画素の色成分に基づいて該各画素のL*a*b*値を算出する算出手段と、
該算出手段で算出したL*a*b*値と前記色見本テーブルの各色のL*a*b*値との近似度を前記判定領域の各画素について算出する近似度算出手段と、
該近似度算出手段で算出した近似度が所定値以上である画素の数を計数する計数手段と
を備え、
前記判定手段は、
前記計数手段で計数した画素の数が閾値以上である場合、該画素の色を車両の色と判定するように構成してあることを特徴とする請求項1に記載の車色判定装置。 The storage means
L * a * b * values corresponding to the respective colors in the color sample table are stored,
Calculating means for calculating an L * a * b * value of each pixel based on a color component of each pixel in the determination region;
Approximation degree calculating means for calculating an approximation degree between the L * a * b * value calculated by the calculating means and the L * a * b * value of each color of the color sample table for each pixel in the determination region;
Counting means for counting the number of pixels whose approximation degree calculated by the approximation degree calculation means is a predetermined value or more,
The determination means includes
2. The vehicle color determination device according to claim 1, wherein when the number of pixels counted by the counting means is equal to or greater than a threshold, the color of the pixel is determined as the color of the vehicle.
前記明部領域の輝度値が所定の上限値以上である場合、前記ナンバープレート領域の各画素の輝度値が前記輝度閾値より小さい暗部領域を前記特定部位として抽出するように構成してあることを特徴とする請求項4に記載の車色判定装置。 The extraction means includes
When the brightness value of the bright area is equal to or higher than a predetermined upper limit value, a dark area where the brightness value of each pixel of the license plate area is smaller than the brightness threshold is extracted as the specific part. The vehicle color determination device according to claim 4, wherein
前記特定手段は、
特定した判定領域から前記画素抽出手段で抽出したエッジ画素を除外するように構成してあることを特徴とする請求項1乃至請求項5のいずれか1項に記載の車色判定装置。 Comprising pixel extraction means for extracting an edge pixel based on the pixel value of each pixel in the determination region;
The specifying means is:
6. The vehicle color determination device according to claim 1, wherein the edge pixel extracted by the pixel extraction means is excluded from the specified determination region.
前記特定手段は、
特定した判定領域から前記領域抽出手段で抽出したグラデーション領域を除外するように構成してあることを特徴とする請求項1乃至請求項6のいずれか1項に記載の車色判定装置。 A region extracting means for extracting a gradation region in which a change in luminance value is uniform based on a luminance value of each pixel of the determination region;
The specifying means is:
The vehicle color determination device according to any one of claims 1 to 6, wherein the gradation region extracted by the region extraction unit is excluded from the specified determination region.
前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出する検出手段と、
該検出手段で検出したナンバープレート領域の特定部位の輝度値を算出する輝度値算出手段と、
所定の輝度値に対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルを記憶する記憶手段と、
前記検出手段で検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定する特定手段と、
前記輝度値算出手段で算出した輝度値と前記所定の輝度値との差分に応じて前記判定領域の各画素の輝度値を補正する補正手段と、
該補正手段で補正した判定領域の各画素の色成分と、前記色見本テーブルの色成分とに基づいて車両の色を判定する判定手段と
を備えることを特徴とする車色判定装置。 In a vehicle color determination device that determines the color of a vehicle based on a captured image obtained by imaging the vehicle,
Detecting means for detecting a license plate area based on a pixel value of each pixel constituting the captured image;
Luminance value calculating means for calculating the luminance value of a specific part of the license plate area detected by the detecting means;
Storage means for storing a color sample table in which a plurality of color components of a pixel and the color of the pixel are associated with each other in correspondence with a predetermined luminance value;
Specifying means for specifying a determination area for determining the color of the vehicle based on the position on the captured image of the license plate area detected by the detection means;
Correction means for correcting the luminance value of each pixel in the determination area according to the difference between the luminance value calculated by the luminance value calculating means and the predetermined luminance value;
A vehicle color determination apparatus comprising: determination means for determining a color of a vehicle based on a color component of each pixel in the determination region corrected by the correction means and a color component of the color sample table.
コンピュータに、
前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出するステップと、
検出したナンバープレート領域の特定部位の輝度値を算出するステップと、
複数の輝度値それぞれに対応させて画素の複数の色成分及び該画素の色を関連付けた複数の色見本テーブルの中から、算出した輝度値に対応する色見本テーブルを選択するステップと、
検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定するステップと、
特定した判定領域の各画素の色成分と選択した色見本テーブルの色成分とに基づいて車両の色を判定するステップと
を実行させることを特徴とするコンピュータプログラム。 In a computer program for causing a computer to determine the color of a vehicle based on a captured image obtained by imaging the vehicle,
On the computer,
Detecting a license plate region based on a pixel value of each pixel constituting the captured image;
Calculating a luminance value of a specific part of the detected license plate region;
Selecting a color sample table corresponding to the calculated luminance value from a plurality of color sample tables in which a plurality of color components of the pixel and the color of the pixel are associated with each other corresponding to the plurality of luminance values;
Identifying a determination area for determining the color of the vehicle based on the position of the detected license plate area on the captured image;
A computer program for executing a step of determining a color of a vehicle based on a color component of each pixel in a specified determination region and a color component of a selected color sample table.
コンピュータに、
前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出するステップと、
検出したナンバープレート領域の特定部位の輝度値を算出するステップと、
検出したナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定するステップと、
算出した輝度値と所定の輝度値との差分に応じて前記判定領域の各画素の輝度値を補正するステップと、
補正した判定領域の各画素の色成分と、所定の輝度値に対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルの色成分とに基づいて車両の色を判定するステップと
を実行させることを特徴とするコンピュータプログラム。 In a computer program for causing a computer to determine the color of a vehicle based on a captured image obtained by imaging the vehicle,
On the computer,
Detecting a license plate region based on a pixel value of each pixel constituting the captured image;
Calculating a luminance value of a specific part of the detected license plate region;
Identifying a determination area for determining the color of the vehicle based on the position of the detected license plate area on the captured image;
Correcting the luminance value of each pixel in the determination region according to the difference between the calculated luminance value and a predetermined luminance value;
The vehicle color is determined based on the color component of each pixel in the corrected determination region, the color component of the pixel corresponding to the predetermined luminance value, and the color component of the color sample table in which the color of the pixel is associated. A computer program for executing the steps.
複数の輝度値それぞれに対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルを複数記憶しておき、
前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出するステップと、
検出されたナンバープレート領域の特定部位の輝度値を算出するステップと、
算出された輝度値に対応する色見本テーブルを選択するステップと、
検出されたナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定するステップと、
特定された判定領域の各画素の色成分と選択された色見本テーブルの色成分とに基づいて車両の色を判定するステップと
を含むことを特徴とする車色判定方法。 In the vehicle color determination method by the vehicle color determination device that determines the color of the vehicle based on the captured image obtained by imaging the vehicle,
A plurality of color sample tables in which a plurality of color components of a pixel and the color of the pixel are associated with each other corresponding to a plurality of luminance values are stored,
Detecting a license plate region based on a pixel value of each pixel constituting the captured image;
Calculating a luminance value of a specific part of the detected license plate region;
Selecting a color sample table corresponding to the calculated luminance value;
Identifying a determination region for determining the color of the vehicle based on the position on the captured image of the detected license plate region;
Determining the color of the vehicle based on the color component of each pixel in the specified determination region and the color component of the selected color sample table.
所定の輝度値に対応させて画素の複数の色成分及び該画素の色を関連付けた色見本テーブルを記憶しておき、
前記撮像画像を構成する各画素の画素値に基づいてナンバープレート領域を検出するステップと、
検出されたナンバープレート領域の特定部位の輝度値を算出するステップと、
検出されたナンバープレート領域の撮像画像上の位置に基づいて車両の色を判定するための判定領域を特定するステップと、
算出された輝度値と前記所定の輝度値との差分に応じて前記判定領域の各画素の輝度値を補正するステップと、
補正された判定領域の各画素の色成分と、前記色見本テーブルの色成分とに基づいて車両の色を判定するステップと
を含むことを特徴とする車色判定方法。 In the vehicle color determination method by the vehicle color determination device that determines the color of the vehicle based on the captured image obtained by imaging the vehicle,
A color sample table in which a plurality of color components of a pixel and the color of the pixel are associated with each other corresponding to a predetermined luminance value is stored.
Detecting a license plate region based on a pixel value of each pixel constituting the captured image;
Calculating a luminance value of a specific part of the detected license plate region;
Identifying a determination region for determining the color of the vehicle based on the position on the captured image of the detected license plate region;
Correcting the luminance value of each pixel in the determination region according to the difference between the calculated luminance value and the predetermined luminance value;
A vehicle color determination method comprising: determining a color of a vehicle based on a color component of each pixel in the corrected determination region and a color component of the color sample table.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012008386A JP2013149039A (en) | 2012-01-18 | 2012-01-18 | Vehicle color determination device, computer program, and vehicle color determination method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012008386A JP2013149039A (en) | 2012-01-18 | 2012-01-18 | Vehicle color determination device, computer program, and vehicle color determination method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2013149039A true JP2013149039A (en) | 2013-08-01 |
Family
ID=49046492
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012008386A Pending JP2013149039A (en) | 2012-01-18 | 2012-01-18 | Vehicle color determination device, computer program, and vehicle color determination method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2013149039A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018013954A (en) * | 2016-07-21 | 2018-01-25 | 日本信号株式会社 | Vehicle body color determination device |
| CN115719441A (en) * | 2017-02-21 | 2023-02-28 | 天使集团股份有限公司 | recognition system |
| CN115861917A (en) * | 2022-11-11 | 2023-03-28 | 浙江大华技术股份有限公司 | A color recognition method, device and storage medium |
| CN118505593A (en) * | 2024-02-18 | 2024-08-16 | 永州职业技术学院 | An image detection system based on computer vision |
| CN119723698A (en) * | 2024-12-20 | 2025-03-28 | 山西高速集团股份有限公司 | A highway cloud toll collection method and system |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0365780A (en) * | 1989-08-03 | 1991-03-20 | Mitsubishi Electric Corp | Picture processor |
| JPH10261191A (en) * | 1997-03-21 | 1998-09-29 | Nagoya Denki Kogyo Kk | Bus priority control method and bus priority control system |
| JPH11232430A (en) * | 1998-02-16 | 1999-08-27 | Toyota Motor Corp | How to change the color of an object image |
| JP2005004495A (en) * | 2003-06-12 | 2005-01-06 | Yutaka Osumi | Color name information acquisition system, method, and program utilizing portable computer equipment with camera |
| JP2007164737A (en) * | 2005-12-16 | 2007-06-28 | Mitsubishi Heavy Ind Ltd | Color-identifying method |
| JP2009032044A (en) * | 2007-07-27 | 2009-02-12 | Panasonic Corp | Car color judgment device |
| JP2009134591A (en) * | 2007-11-30 | 2009-06-18 | Sumitomo Electric Ind Ltd | Vehicle color determination device, vehicle color determination system, and vehicle color determination method |
| JP2011254311A (en) * | 2010-06-02 | 2011-12-15 | Aisin Seiki Co Ltd | Vehicle peripheral image processor |
-
2012
- 2012-01-18 JP JP2012008386A patent/JP2013149039A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0365780A (en) * | 1989-08-03 | 1991-03-20 | Mitsubishi Electric Corp | Picture processor |
| JPH10261191A (en) * | 1997-03-21 | 1998-09-29 | Nagoya Denki Kogyo Kk | Bus priority control method and bus priority control system |
| JPH11232430A (en) * | 1998-02-16 | 1999-08-27 | Toyota Motor Corp | How to change the color of an object image |
| JP2005004495A (en) * | 2003-06-12 | 2005-01-06 | Yutaka Osumi | Color name information acquisition system, method, and program utilizing portable computer equipment with camera |
| JP2007164737A (en) * | 2005-12-16 | 2007-06-28 | Mitsubishi Heavy Ind Ltd | Color-identifying method |
| JP2009032044A (en) * | 2007-07-27 | 2009-02-12 | Panasonic Corp | Car color judgment device |
| JP2009134591A (en) * | 2007-11-30 | 2009-06-18 | Sumitomo Electric Ind Ltd | Vehicle color determination device, vehicle color determination system, and vehicle color determination method |
| JP2011254311A (en) * | 2010-06-02 | 2011-12-15 | Aisin Seiki Co Ltd | Vehicle peripheral image processor |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018013954A (en) * | 2016-07-21 | 2018-01-25 | 日本信号株式会社 | Vehicle body color determination device |
| CN115719441A (en) * | 2017-02-21 | 2023-02-28 | 天使集团股份有限公司 | recognition system |
| CN115861917A (en) * | 2022-11-11 | 2023-03-28 | 浙江大华技术股份有限公司 | A color recognition method, device and storage medium |
| CN118505593A (en) * | 2024-02-18 | 2024-08-16 | 永州职业技术学院 | An image detection system based on computer vision |
| CN119723698A (en) * | 2024-12-20 | 2025-03-28 | 山西高速集团股份有限公司 | A highway cloud toll collection method and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110008954B (en) | Complex background text image extraction method and system based on multi-threshold fusion | |
| CN103345766B (en) | A kind of signal lamp recognition methods and device | |
| CN101882034B (en) | Device and method for discriminating color of touch pen of touch device | |
| EP2959454B1 (en) | Method, system and software module for foreground extraction | |
| CN103198315B (en) | Based on the Character Segmentation of License Plate of character outline and template matches | |
| US9811746B2 (en) | Method and system for detecting traffic lights | |
| CN106384117B (en) | A kind of vehicle color identification method and device | |
| US20110019912A1 (en) | Detecting And Correcting Peteye | |
| CN103646392B (en) | Backlighting detecting and equipment | |
| JP2012176641A (en) | Detection apparatus for parking frame | |
| CN104766071B (en) | A kind of traffic lights fast algorithm of detecting applied to pilotless automobile | |
| CN104504856A (en) | Fatigue driving detection method based on Kinect and face recognition | |
| CN113306486B (en) | In-vehicle lighting device control method, storage medium, and electronic apparatus | |
| CN112447152B (en) | Information display method and information display system | |
| JP2013149039A (en) | Vehicle color determination device, computer program, and vehicle color determination method | |
| CN108447068A (en) | Ternary diagram automatic generation method and the foreground extracting method for utilizing the ternary diagram | |
| CN104156703B (en) | License plate locating method and system based on color texture | |
| JP5510468B2 (en) | License plate color determination device, computer program, and license plate color determination method | |
| JP2010286995A (en) | Image processing system for vehicle | |
| JP5338762B2 (en) | White balance coefficient calculation device and program | |
| CN103065145A (en) | Vehicle movement shadow eliminating method | |
| CN120410931B (en) | A defogging embedded system and method for intelligent driving vehicle-mounted cameras | |
| CN110807406A (en) | Foggy day detection method and device | |
| CN112966627B (en) | RGB face image judging method based on color space conversion | |
| CN111861893A (en) | A method, system, device and computer medium for eliminating false color edges in images |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131127 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20131203 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140123 |
|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20140123 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140701 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20141111 |