JP4279790B2 - Car number recognition device - Google Patents
Car number recognition device Download PDFInfo
- Publication number
- JP4279790B2 JP4279790B2 JP2005048776A JP2005048776A JP4279790B2 JP 4279790 B2 JP4279790 B2 JP 4279790B2 JP 2005048776 A JP2005048776 A JP 2005048776A JP 2005048776 A JP2005048776 A JP 2005048776A JP 4279790 B2 JP4279790 B2 JP 4279790B2
- Authority
- JP
- Japan
- Prior art keywords
- lens
- plate
- license plate
- vehicle
- focus
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Traffic Control Systems (AREA)
- Character Input (AREA)
- Character Discrimination (AREA)
- Closed-Circuit Television Systems (AREA)
Description
本発明は、道路等に設置したテレビカメラを用いて車のナンバープレートを認識する車番認識装置の技術に関する。 The present invention relates to a technology of a vehicle number recognition device that recognizes a license plate of a vehicle using a television camera installed on a road or the like.
道路などにテレビカメラを設置し、テレビカメラが撮像した画像を用いて車のナンバープレートを自動認識する車番認識装置が普及している。この車番認識装置は、カメラのレンズを適正なピントに調整し、あるいはズームレンズの場合は、最適な倍率に調整して利用されている。テレビカメラのレンズ調整を行う際、道路を車線規制しておけば、停止している車両を撮像対象にできるため、簡単にレンズ調整を行うことができる。しかしながら、調整費用の低減等の理由により、車線規制することなくレンズ調整が行われることが多い。 2. Description of the Related Art A vehicle number recognition device that installs a TV camera on a road or the like and automatically recognizes a car license plate using an image captured by the TV camera has become widespread. This vehicle number recognition device is used by adjusting the lens of a camera to an appropriate focus, or in the case of a zoom lens, adjusting to an optimum magnification. When adjusting the lens of the TV camera, if the lane is restricted, a stationary vehicle can be taken as an imaging target, so that the lens can be adjusted easily. However, for reasons such as reduction in adjustment costs, lens adjustment is often performed without lane restrictions.
そして、車線規制を行わないでレンズを調整する場合、道路上を走行している車両が撮像対象となるため、ピント調整に時間と手間が必要になる。具体的には、走行している車両を撮影対象にしてレンズ調整を行う場合、車両通過の瞬間の映像を静止画として補足し、その静止画を人が目視してピントが合っているかどうかを確認しながらレンズ調整を行う。 And when adjusting a lens, without performing lane restrictions, since the vehicle which is drive | working on the road becomes an imaging object, time and effort are needed for focus adjustment. Specifically, when lens adjustment is performed for a moving vehicle as a subject to be photographed, the video at the moment of passing the vehicle is captured as a still image, and whether the subject is in focus by viewing the still image. Adjust the lens while checking.
従来から、走行している車を撮像し、自動的にフォーカス調整を行う車番認識装置が知られている(例えば特許文献1)。特許文献1によれば、装置が自動的にフォーカス調整を行うため、人が行うフォーカス調整と比べて手間を軽減することができる。具体的には、特許文献1では、車両検知センサを用いて車両の前面部の画像を取り込み、その画像を用いてナンバープレートの文字のサイズの膨れ具合をチェックし、フォーカスを制御している。特許文献1では、車両検知センサにより、画像の取り込み位置が一定になるため文字の膨れ具合によりフォーカスをある程度制御することが可能となる。
2. Description of the Related Art Conventionally, a vehicle number recognition device that captures an image of a traveling vehicle and automatically performs focus adjustment is known (for example, Patent Document 1). According to
しかしながら、上記特許文献1の技術は、以下の問題を有する。具体的には、特許文献1では、車両を1台撮像する毎にカメラのレンズのフォーカスを制御している。そのため、何らかの原因により文字の膨れ具合を示すデータが異常になった場合、フォーカスが全く違う位置に設定されるという問題が生じる。
However, the technique of
また、近年の車番認識装置では、車両検知センサを利用しないで、画像認識技術により自動的に車両の前面を検知し、その画像からナンバープレートの文字を認識するタイプのものが主流になってきている。これは、車両検知センサを利用しないことで、システム全体のコストを削減できるからである。また、車両検知センサでは、複数車線を有する道路での車両の検知が難しいからである。 Further, in recent car number recognition devices, a type of device that automatically detects the front surface of a vehicle by image recognition technology and recognizes a license plate character from the image without using a vehicle detection sensor has become mainstream. ing. This is because the cost of the entire system can be reduced by not using the vehicle detection sensor. In addition, the vehicle detection sensor is difficult to detect a vehicle on a road having a plurality of lanes.
車両検知センサを利用しない車番認識装置は、画像処理技術により自動的に車両の前面部を検知し、その画像からナンバープレートの文字を認識する。そして、画像処理の性能上、テレビカメラの数コマ分取り込み位置がばらつく。例えば、画面の上部にナンバープレートが撮影されていたり、画面の下部にナンバープレートが撮影されていたりする。すなわち、画像処理技術により車両の前面を検知する場合、毎回取り込む画像の位置が変化する。そのため、特許文献1に記載の技術のように取り込んだ画像の文字の膨れ具合でフォーカスを制御すると、次の画像のフォーカスが合わないことがある。例えば、画面の上部でナンバープレートを取り込んだ画像でフォーカス調整し、次の車両を画面の下部で捕らえた場合、次の車両のフォーカスが合わない可能性が大きい。
The vehicle number recognition device that does not use the vehicle detection sensor automatically detects the front portion of the vehicle by image processing technology and recognizes the characters on the license plate from the image. And, in terms of image processing performance, the capture positions for several frames of the TV camera vary. For example, a license plate is photographed at the top of the screen, or a license plate is photographed at the bottom of the screen. That is, when the front surface of the vehicle is detected by the image processing technique, the position of the image to be captured changes every time. For this reason, when the focus is controlled based on the degree of expansion of characters in the captured image as in the technique described in
さらに、通行する車両には、ナンバープレートを傾けて(前方向に倒している)取り付けているものがある。特許文献1の技術により、ナンバープレートを傾けて(前方向に倒している)取り付けている車両の画像を取り込んだ場合、特に文字高さが小さくなり、正確に文字サイズの膨れ具合を判定することができない。このような場合、特許文献1では、フォーカス位置が全く違う位置に設定される可能性がある。
Furthermore, there are vehicles that are attached with the number plate tilted (tilted forward). With the technique of
本発明は、上記事情を鑑みてなされたものであり、本発明の目的は、テレビカメラが撮像した画像を用いて車のナンバープレートを自動認識する車番認識装置において、カメラのレンズ位置を最適な位置に自動調整することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to optimize the lens position of a camera in a car number recognition device that automatically recognizes a car license plate using an image captured by a television camera. It is to automatically adjust to the correct position.
上記課題を解決するため、本発明の一態様は、車両を撮像するテレビカメラからの画像データを受付け、当該受付けた画像データを処理し、車のナンバープレートを認識する車番認識装置に適用される。ここで、前記テレビカメラには、外部からの制御信号を受付けてレンズ位置を設定する電動レンズが設けられている。 In order to solve the above problems, one embodiment of the present invention is applied to a vehicle number recognition device that receives image data from a television camera that captures a vehicle, processes the received image data, and recognizes a vehicle license plate. The Here, the television camera is provided with an electric lens that receives a control signal from the outside and sets the lens position.
そして、前記車番認識装置は、前記電動レンズに制御信号を送信し、当該電動レンズのレンズ位置を設定するレンズ制御手段と、前記テレビカメラから受付けた前記画像データを用いて車両を検知し、当該検知した車両のナンバープレートを認識する認識手段と、前記認識手段が所定台数のナンバープレートを認識した際、当該所定台数のナンバープレートを認識する間に検知した車両の台数と、当該所定台数とを用いて文字認識率を算出する手段と、前記算出した文字認識率を履歴として記憶する手段と、前記電動レンズのレンズ位置が最適な位置にあるか否かを判定する手段と、前記レンズ位置が最適な位置にないと判定した場合、前記レンズ制御手段を介して、前記電動レンズのレンズ位置を最適なレンズ位置に設定する手段と、を有し、前記判定する手段は、前記所定台数のナンバープレートを認識した際に算出された文字認識率と、前記記憶している文字認識率の履歴とを比較し、前記算出した文字認識率が前記履歴の値と比べて所定値以下の場合、前記レンズ位置が最適な位置にないと判定する。 And the said vehicle number recognition apparatus detects a vehicle using the said image data received from the lens control means which transmits a control signal to the said electric lens, and sets the lens position of the said electric lens, and the said television camera, Recognizing means for recognizing the detected license plate of the vehicle, and when the recognizing means recognizes a predetermined number of license plates, the number of vehicles detected while recognizing the predetermined number of license plates; A means for calculating a character recognition rate using the above, a means for storing the calculated character recognition rate as a history, a means for determining whether or not the lens position of the electric lens is in an optimum position, and the lens position Means for setting the lens position of the electric lens to the optimum lens position via the lens control means. The determination means compares the character recognition rate calculated when recognizing the predetermined number of license plates with the history of the stored character recognition rate, and the calculated character recognition rate is the history. If the value is equal to or smaller than the predetermined value, it is determined that the lens position is not in an optimum position.
本発明によれば、車番認識装置が所定台数のナンバープレートを認識した際、所定台数のナンバープレートの認識処理により求まる認識結果と過去の認識履歴とを比較し、認識結果と認識履歴とが所定以上異なる場合、カメラのレンズを最適な状態に自動的に調整するようにしている。そのため、本実施形態によれば、車番認識装置において、ナンバープレートの認識処理を行いながら、カメラのレンズを最適な位置に自動的に調整することができる。 According to the present invention, when the vehicle number recognition device recognizes a predetermined number of license plates, the recognition result obtained by the recognition processing of the predetermined number of license plates is compared with the past recognition history, and the recognition result and the recognition history are When the difference is more than a predetermined value, the lens of the camera is automatically adjusted to an optimum state. Therefore, according to this embodiment, the lens of the camera can be automatically adjusted to an optimal position while performing the license plate recognition process in the vehicle number recognition device.
以下、本発明の一実施形態が適用された車番認識システムについて図面を用いて説明する。 A vehicle number recognition system to which an embodiment of the present invention is applied will be described below with reference to the drawings.
図1は、本発明の一実施形態の車番認識システムの機能ブロック図である。 FIG. 1 is a functional block diagram of a vehicle number recognition system according to an embodiment of the present invention.
図示するように、車番認識システムは、テレビカメラ1およびレンズ2を有する撮像部100と、画像処理装置3とを有する。また、画像処理装置3には外部機器12が接続されている。なお、レンズ2には、外部からの制御信号を受付けて、レンズ位置を設定する電動レンズが用いられる。
As shown in the figure, the vehicle number recognition system includes an
画像処理装置3は、画像入力部4、プレート認識部5、フォーカス解析部6、ズーム解析部7、異常監視部13を有するレンズ情報解析部8、レンズ制御部9、レンズ調整スケジュール管理部10、および通信部11を有する。
The
画像入力部4は、テレビカメラ1が撮像した画像を受付けて、受付けた画像をプレート認識部5に出力する。プレート認識部5は、画像入力部4が出力した画像を受付け、受付けた画像を画像処理してナンバープレートを自動的に認識する。プレート認識部5は、認識したナンバープレートの情報をフォーカス解析部6およびズーム解析部7に出力する。
The
フォーカス解析部6は、プレート認識部5からのナンバープレートを示す情報を用いて、認識したナンバープレートの文字のピントのボケ状態を解析し、解析結果をレンズ情報解析部8に出力する。ズーム解析部7は、プレート認識部5からのナンバープレートを示す情報を用いて、プレートや文字の大きさからズーム倍率を解析し、解析結果をレンズ情報解析部8に出力する。
The
レンズ情報解析部8は、フォーカス解析部6が出力した解析結果、またはズーム解析部7が出力した解析結果を用いて最適なレンズの設定値を求める。また、レンズ情報解析部8に設けられた異常監視部13は、レンズ2のレンズ位置(ズーム位置およびフォーカス位置)が正常であるか否かを監視する。そして、レンズ位置が正常ではないと判断した場合、レンズ情報解析部8は、最適なレンズの設定値を求める処理を行う。
The lens
レンズ制御部9は、レンズ情報解析部8が求めたレンズの設定値を用いてレンズ2を制御する。具体的には、レンズ制御部9は、上記のレンズの設定値を用いて、制御信号を生成し、その制御信号をレンズ2に送信する。レンズ2は、レンズ制御部9からの制御信号にしたがいレンズ位置を設定する。
The
レンズ調整スケジュール管理部10は、どのタイミングによりレンズを調整するかを定める。具体的には、レンズ調整スケジュール管理部10は、レンズ調整のタイミングを示すデータを保持している。レンズ調整スケジュール管理部10は、保持しているデータにより定められたタイミングにしたがい、フォーカス解析部6、ズーム解析部7、およびレンズ情報解析部8にレンズ調整のための処理を行わせる。
The lens adjustment schedule management unit 10 determines at which timing the lens is adjusted. Specifically, the lens adjustment schedule management unit 10 holds data indicating lens adjustment timing. The lens adjustment schedule management unit 10 causes the
通信部11は、外部機器12との間でデータの送受信を行う。通信部11は、例えば、認識したナンバープレートを示す情報を外部機器12に送信する。なお、通信部11が行うデータの送受信は、有線であっても無線であってもかまわない。
The communication unit 11 transmits / receives data to / from the
続いて、本実施形態の画像処理装置3のハードウェア構成について、図17を用いて説明する。図17は、本発明の実施形態の画像処理装置3のハードウェア構成を例示した図である。
Next, the hardware configuration of the
図示するように、画像処理装置3は、画像処理回路200、CPU(Central Processing Unit)201、メモリ202、I/O回路203、A/D変換回路204、およびネットワークインターフェース(ネットワークI/F)205を有する。
As illustrated, the
I/O回路203は、画像処理装置3と撮像部100との間で行うデータの入出力処理を制御する。A/D変換回路204は、テレビカメラ1からのアナログの画像データをI/O回路203を介して受付け、当該受付けたアナログの画像データをデジタルの画像データに変換する。ネットワークI/F205は、外部機器12との間で行うデータ通信を制御する。画像処理回路200は、A/D変換回路204が変換したデジタルの画像データを受付け、そのデジタルの画像データに対する画像処理を行う。メモリ202は、画像処理装置3が行う処理を実現するためのプログラムや画像処理対象のデジタル画像データ等を記憶する。CPU201は、メモリに記憶されているプログラムを実行することにより、所定の演算処理や画像処理装置の動作を制御する。
The I /
具体的には、上述した画像入力部4の機能は、I/O回路203およびA/D変換回路204により実現される。プレート認識部5の機能は、画像処理回路200およびCPU201が実行するプログラム(プレート認識プログラム)により実現される。また、フォーカス解析部6、ズーム解析部7、レンズ情報解析部8、レンズ調整スケジュール管理部10の機能は、CPU201が実行する各プログラム(フォーカス解析プログラム、ズーム解析プログラム、レンズ情報解析プログラム、レンズ調整スケジュール管理プログラム)により実現される。レンズ制御部9の機能は、I/O回路203およびCPU201が実行するプログラム(レンズ制御プログラム)により実現される。通信部11の機能は、ネットワークI/F205およびCPU201が実行するプログラム(通信プログラム)により実現される。
Specifically, the function of the
ここで、本実施形態の画像認識装置3の各部の機能を具体的に説明する前に、認識処理対象のナンバープレートの構成および車両の撮影状態を、図2〜4を用いて説明する。
Here, before specifically describing the function of each part of the
図2は、車のナンバープレートを例示した図であり、(a)図に中型プレートを示し、(b)図に大型プレートを示している。 FIGS. 2A and 2B are diagrams illustrating a license plate of a vehicle. FIG. 2A shows a medium plate and FIG. 2B shows a large plate.
図示するように、中型プレートおよび大型プレートのいずれも、一連番号20と、陸運支局コード21と、車種コード22と、用途コード23とで構成されている。一連番号20の間隔、一連番号20、陸運支局コード21、車種コード22、および用途コード23を構成する各々の文字の寸法は一意に定められている。また、事業用の車のナンバープレートには、緑背景のものが用いられ、自家用車のナンバープレートには、白背景のプレートが用いられるように定められている(軽自動車は別途定まる)。そして、従来技術の画像認識処理により、図示するナンバープレートの全ての文字を自動的に読み取ることができる。
As shown in the drawing, each of the medium-sized plate and the large-sized plate includes a
図3は、本実施形態の車番認識システムが撮像する車両の撮影状態を説明する図である。カメラ1は、道路31の上あるいは、路側に設置されており、車両32を俯瞰撮影している。車両検知センサを別途用いる方式の車番認識システムでは、センサにより常に同じ距離Lの場所の画像を取り込むことができる。しかしながら、本実施形態では、センサを利用しないで、画像認識の技術により車両検知を行う。そのため、カメラ1から車両32が撮影された場所までの距離L、および、その場所の視野幅Wdは、微妙に変化する。
FIG. 3 is a diagram for explaining a shooting state of the vehicle imaged by the vehicle number recognition system of the present embodiment. The
図4は、カメラ1により撮影された画像を例示した図である。カメラ1と車両32のナンバープレート33までの距離Lとにより、視野幅(視野サイズWd)が定まる。ここで、撮像された画像の中におけるナンバープレートの画像底辺部34からの位置(プレート位置)をYPとする。このプレート位置YPは、画像の取り込みタイミング及びプレートの取り付け高さによって変化する。車両検知センサにより画像を取り込む場合、基本的にはほぼ同じ位置にプレートが撮影される(この場合、プレートが取り付けられている高さの変化分だけYPが変化する)。
なお、車両検知センサにより画像を取り込むシステムにカメラ1およびレンズ2を利用する場合、フォーカスをあらかじめ距離Lに合わせるように調整して出荷することも考えられる。しかし、厳密にはカメラ1を設置する位置の高さ、カメラの設置方向がカメラを設置する際に変化する。そのため、現場でフォーカス、ズームを調整する作業が発生する。そして、この場合、車両が通過しているためにフォーカスを正確にあわせることが困難となる。また、昼間にカメラのフォーカスを合わせても、夜間にフォーカスが多少ずれてしまう。
そのため、本実施形態では、後述するが、ナンバープレートを認識しながらレンズのフォーカス位置およびズーム位置を自動調整することで、レンズ調整の手間を削減し、かつナンバープレートの認識率の向上を図るようにしている。
なお、車番認識システムに一般のオートフォーカス機能を有するレンズを利用することも考えられる。オートフォーカス機能は、画面全体あるいは指定領域のエッジが最も大きくなるようにフォーカスを調整する。しかしながら、オートフォーカス機能により、ナンバープレートを認識しようとした場合、以下の問題が生じる。具体的には、ナンバープレートを認識する場合、最初に路面の画像にフォーカスが合っている状態において、瞬時に車両が通過する。そのために、オートフォーカス機能では、ナンバープレートの位置にフォーカスを合わせる動きが間に合わず、認識性能を向上することができない。そのため、本実施形態では、ナンバープレート認識に特化したフォーカス調整を行うようにしている。
FIG. 4 is a diagram illustrating an image taken by the
When the
Therefore, in this embodiment, as will be described later, by automatically adjusting the focus position and zoom position of the lens while recognizing the license plate, it is possible to reduce the trouble of lens adjustment and improve the recognition rate of the license plate. I have to.
It is also conceivable to use a lens having a general autofocus function in the vehicle number recognition system. The autofocus function adjusts the focus so that the edge of the entire screen or the designated area becomes the largest. However, when the license plate is to be recognized by the autofocus function, the following problems occur. Specifically, when recognizing the license plate, the vehicle passes instantaneously in a state where the road image is initially focused. Therefore, with the autofocus function, the movement of focusing on the position of the license plate is not in time, and the recognition performance cannot be improved. Therefore, in the present embodiment, focus adjustment specialized for license plate recognition is performed.
このような前提条件の元、図1に戻り、画像処理装置3の各部の動作を具体的に説明する。
プレート認識部5は、カメラ1からの画像データを画像入力部4を介して受付け、その画像データに画像処理を行い、車両の前面部を検知する。プレート認識部5は、検知した車両の前面部のナンバープレートの画像を検出し、検出したナンバープレートの画像の中から少なくとも一連番号20(図2参照)を認識する。また、プレート認識部5は、受付けた画像を用いてナンバープレートの画面での位置(プレート位置YP)、および一連番号20の位置(座標)を求める。さらに、プレート認識部5は、文字認識率(一連番号を認識できた台数/検知した車両の台数)を算出する。なお、プレート認識部5による、一連番号20、陸運支局コード21、車種コード、および用途コード23の認識処理は、従来技術(例えば、「特開平6−2159243号」に記載の構成)により実現される。
Based on such preconditions, returning to FIG. 1, the operation of each unit of the
The
そして、プレート認識部5は、求めたプレート位置YP、一連番号20の位置、文字認識率、一連番号の位置、および対象画像を含むデータをフォーカス解析部6に送る。また、プレート認識部5は、求めたプレート位置YP、検出したナンバープレートの画像をズーム解析部7に出力する。
Then, the
フォーカス解析部6は、一連番号のエッジのボケ具合を評価する。具体的には、フォーカス解析部6は、プレート認識部5から受付けたデータを用いて、一連番号のエッジのボケ状態を定量化した評価値を算出する。そして、フォーカス解析部6は、その算出した評価値をレンズ情報解析部8に送信する。
The
ズーム解析部7は、プレート認識5か送信した対象画像を用いてナンバープレートの一連番号のピッチを求め、そのピッチから視野サイズを算出する。ズーム解析部7は、算出した視野サイズと、受信したプレート位置YPをレンズ情報解析部8に送信する。
The
そして、レンズ情報解析部8は、フォーカス解析部6から受信した評価値を利用して、最適なフォーカス位置を求めて、レンズ制御部9を介して、レンズ2を求めたフォーカス位置に設定する。また、レンズ情報解析部8は、ズーム解析部7から受信した視野サイズおよびプレート位置YPを利用して、最適なズーム位置を求めて、レンズ制御部9を介して、レンズ2を求めたズーム位置に設定する。
Then, the lens
続いて、本実施形態のフォーカス制御の処理を説明する。 Next, focus control processing according to the present embodiment will be described.
まず、プレート認識部5は、カメラ1からの画像を用いてナンバープレートを検出し、その検出したナンバープレートの一連番号20を切り出す。プレート認識部5は、切り出した一連番号20の各文字毎の矩形領域を求める。プレート認識部5は、求めた矩形領域の「座標」と「対象画像」とをフォーカス解析部6に送信する。フォーカス解析部6は、送信された矩形領域の「座標」と「対象画像」とを用いて一連番号のボケ具合を評価する。
具体的には、フォーカス解析部6は、プレート認識部5が送信した矩形領域の「座標」および「対象画像」を受信する。フォーカス解析部6は、受信した「座標」および「対象画像」を用いて、図5に示すように、一連番号20の一文字分の領域40の断面A―A'面の濃度投影分布41を求める。そして、フォーカス解析部6は、求めた濃度分布41を微分処理することにより、文字の輪郭波形42aを求める。この輪郭波形42aに対し、しきい値thより大きな山の幅(d(1),d(2),d(3)〜d(n))を求め、その平均値を算出することにより文字のボケ状態を定量化する。
First, the
Specifically, the
図6は、矩形領域の「対象画像」のフォーカスが合っている状態を例示した図である。矩形領域の「対象画像」のフォーカスが合っている場合、輪郭波形42bがシャープなものとなる。そのため、フォーカスが合っている場合の「対象画像」から求めた文字の輪郭波形42bの幅(d(1),d(2),d(3)〜d(n))は、フォーカスが合っていない場合の「対象画像」から求めた文字の輪郭波形42aが持つ幅(d(1),d(2),d(3)〜d(n))に比べて小さい値になる。 FIG. 6 is a diagram illustrating a state where the “target image” in the rectangular area is in focus. When the “target image” in the rectangular area is in focus, the contour waveform 42 b is sharp. Therefore, the width (d (1), d (2), d (3) to d (n)) of the character outline waveform 42b obtained from the “target image” when the image is in focus is in focus. The value is smaller than the width (d (1), d (2), d (3) to d (n)) of the contour waveform 42a of the character obtained from the “target image” in the absence.
なお、図5では処理領域40をA―A'ラインで切断したA―A'断面の波形を示しているが、例えば、領域40の内でNライン分の断面の輪郭波形42をそれぞれ求めるようにしてもよい(Nは、1,2,3、…nの整数)。この場合も、プレート認識部5は、それぞれの輪郭波形42に対し、しきい値thより大きな山の幅(d(1),d(2),d(3)〜d(n))を求め、その値を平均化する。
1台の車両の画像を処理すると、一連番号は4桁あるので4文字分(文字数はプレート認識部5の画像認識処理で既知)のエッジ情報が求まる。フォーカス解析部6は、4文字分のエッジ情報を平均化する。なお、求めた幅d(i)の平均値とは、「1,2,3・・5,6」とフォーカスがずれると大きくなる値である。フォーカス解析部6は、求めた幅d(i)の平均値を正規化し、正規化により求められた値をエッジシャープ度Eとする。フォーカス解析部6は、例えば、以下に示す(式1)を用いて、上記の求めた幅d(i)の平均値を「0〜1」に正規化する。なお、(式1)により求めた値「E」が0以下となった場合、「E」の値を0とする。また、(式1)に示したβとは、予め設定された定数であり、ピントが大きくずれている場合のエッジの幅(d(i))を示す数値を用いる(例えば、βを10程度の数値にする)。
E=(β−エッジ幅d(i)の平均値)/β…(式1)
上記(式1)により求めたエッジシャープ度Eは、ピントが合っている場合に1に近づき、ピントが合っていないと0に近づく。フォーカス解析部6は、この評価値であるエッジシャープ度Eをレンズ情報解析部8に送る。なお、フォーカス解析部6は、エッジシャープ度Eをレンズ情報解析部8に送信する際、プレート認識部5から受付けたプレート位置YPも共にレンズ情報解析部8に送る。
レンズ情報解析部8は、プレート認識部5が出力した複数台のエッジシャープ度Eおよびナンバープレートのプレート位置YPを用いて画面中央に対応するエッジシャープ度(以下において、画面中央に対応するエッジシャープ度を「Ec」という)を算出する。このように、画面中央に対応するエッジシャープ度Ecを算出するのは、車両を撮影するタイミングによって取り込み位置が変化し、それに伴いエッジ幅も変化することを考慮したためである。
FIG. 5 shows the waveform of the AA ′ cross section obtained by cutting the
When an image of one vehicle is processed, since there are four serial numbers, edge information for four characters (the number of characters is known by the image recognition processing of the plate recognition unit 5) is obtained. The
E = (β−average value of edge width d (i)) / β (Expression 1)
The edge sharpness E obtained by (Equation 1) approaches 1 when the subject is in focus, and approaches 0 when the subject is not in focus. The
The lens
具体的には、レンズ情報解析部8は、フォーカス解析部6が出力した複数台のプレート位置YPおよびエッジシャープ度Eを受信する。レンズ情報解析部8は、受信したデータを用いて「プレート位置YP」を「x」座標、「エッジシャープ度E」を「y」座標にとった関係式(直線回帰y=ax+b、あるいは2次曲線回帰y=ax 2 +bx+c)を求める。例えば、レンズ情報解析部8は、図7に例示する直線回帰(y=ax+b)70を求める。そして、レンズ情報解析部8は、求めた直線回帰(y=ax+b)70を用いて、「プレート位置YP」が画面中央になる「エッジシャープ度Ec」を算出する。上述した複数台とは、10台程度である(通常1〜3分程度で収集できる)。なお、ナンバープレートを認識できた台数が少ないと直線回帰では求めることができなくなる。その場合、サンプルデータの単純平均値を画面中央に対するエッジシャープ度Ecとしても良い。
本実施形態の車番認識システムは、レンズ2のフォーカス位置を移動させながら、フォーカス位置毎に画面中央のエッジシャープ度Ecを算出する。すなわち、画面中央のエッジシャープ度Ecは、レンズ2をあるフォーカス位置に設定した際に求まる。
Specifically, the lens
The vehicle number recognition system of this embodiment calculates the edge sharpness Ec at the center of the screen for each focus position while moving the focus position of the
ここでレンズ2のフォーカス位置を10段階の異なる位置(0〜9の位置)に移動できる場合を例に説明する。フォーカス位置が0から9の異なる位置にまで移動する場合、フォーカス位置0の場合での文字認識率とエッジシャープ度Ecとを求め、次のフォーカス位置で同様の処理を行う。この動作を0〜9のフォーカス位置で繰り返す。レンズ情報解析部8は、フォーカス位置毎にそのフォーカス位置で求めたエッジシャープ度Ecを対応付けて記憶する。
Here, a case where the focus position of the
また、レンズ情報解析部8は、フォーカス位置毎にそのフォーカス位置における一連番号の文字認識率を対応付けて記憶する。そして、フォーカスが合っている場所は少なくとも文字認識率が所定のしきい値以上(例えば90%)であるので、その範囲のなかで最もエッジシャープ度が高いフォーカス位置を特定する。レンズ情報解析部8は、レンズ制御部9を介して、レンズ2のフォーカス位置を特定したフォーカス位置に設定する。
Further, the lens
ここで、レンズ情報解析部8のフォーカス位置を決定する処理を図8を用いて説明する。図8は、レンズ情報解析部8が行うフォーカス位置の選択処理を説明するための図である。
Here, the process of determining the focus position of the lens
さて、レンズ情報解析部8は、「フォーカス位置毎にエッジシャープ度Eを対応付けたデータ」と、「フォーカス位置毎に文字認識率を対応付けたデータ」とを保持する。そして、レンズ情報解析部8は、「フォーカス位置毎に文字認識率を対応付けたデータ」を用いて、文字認識率がしきい値以上のフォーカス位置を特定する。図示する例では、F(3)〜F(6)の4つのフォーカス位置が特定される。次に、レンズ情報解析部8は、「フォーカス位置毎にエッジシャープ度Eを対応付けたデータ」を用いて、特定した4つのフォーカス位置80の中から最も高い値のエッジシャープ度Ecに対応付けられているフォーカス位置を特定する。レンズ情報解析部8は、特定したフォーカス位置を最適なフォーカス位置と判断する。図示する例では、F(5)のフォーカス位置が最適なフォーカス位置として選択される。
The lens
なお、文字認識率が所定値以下の場合は、エッジシャープ度Ecを求める必要はない。したがって、レンズ情報解析部8は、認識率が所定値以下の場合においては、エッジシャープ度Ecを算出しないようにしてもよい。このようにすれば、次のフォーカス位置に早めに移動させることもできる。なお、エッジシャープ度Eは、文字の大きさによって変化するので、大型、中型プレートの種別を判断し、中型だけのプレートのエッジ情報を用いるようにすれば、精度向上につながる。
なお、本実施形態では、図5に示すようにピントのボケ状態(フォーカスの合い状態)をナンバープレートの一連番号の垂直方向のエッジのシャープ度Eで評価しているが、特にこれに限定するものではない。例えば、上記の垂直方向のエッジに代えて、水平方向のエッジを用いるようにしてもよい。また、文字認識にはパターンマッチングや、ニューラルネットワークを用いることが多いが、文字認識の際に求まるマッチング度や確信度を用いてピントが合っているかを評価することもできる。
ここで、文字認識の際に求まる確信度を用いる場合の例を、図9を用いて説明する。図9は、ナンバープレートの陸運支局コードの画像を切り出した場合の文字認識の確信度を説明するための図である。なお、文字認識の確信度とは、プレート認識部5が文字認識処理を行う際に出力する「0〜1」の認識の精度を示すデータであり、フォーカスが合っている場合に「1」に近づく。また、確信度は、フォーカスが合っていない場合に「0」に近づく。そして、図9では、(a)図に「対象画像」のフォーカスが合っている状態を示し、(b)図に「対象画像」のフォーカスが合っていない状態を示している。
When the character recognition rate is equal to or less than a predetermined value, it is not necessary to obtain the edge sharpness Ec. Therefore, the lens
In this embodiment, as shown in FIG. 5, the out-of-focus state (in-focus state) is evaluated by the sharpness E of the vertical edge of the serial number of the license plate, but this is particularly limited. It is not a thing. For example, a horizontal edge may be used instead of the vertical edge. In addition, pattern matching and neural networks are often used for character recognition, but it is also possible to evaluate whether or not the image is in focus using the degree of matching and the certainty obtained during character recognition.
Here, an example of using the certainty factor obtained at the time of character recognition will be described with reference to FIG. FIG. 9 is a diagram for explaining the certainty of character recognition when the image of the land transportation branch office code of the license plate is cut out. The certainty of character recognition is data indicating the recognition accuracy of “0 to 1” output when the
例えば、図9(a)に示すように「対象画像」のフォーカスが合っている場合は、確信度が「0.95」と高い値を示す。また、図9(b)に示すように、「対象画像」のフォーカスが合っていない場合(ピントがボケている場合)は、「0.75」のようにフォーカスが合っている場合に比べて低い値の確信度を示す。この確信度を図8に示したエッジシャープ度Eに置き換えることにより、上述と同様に、最適なフォーカスの位置を選択することが可能になる。 For example, when the “target image” is in focus as shown in FIG. 9A, the certainty factor is a high value of “0.95”. Also, as shown in FIG. 9B, when the “target image” is not focused (when the focus is out of focus), the value is lower than when the focus is focused as “0.75”. The certainty of Replacing this certainty factor with the edge sharpness degree E shown in FIG. 8 makes it possible to select the optimum focus position as described above.
また、ナンバープレートの文字は、品質(汚れ、曲がりなど)が変化するとともに地名が色々変化する。このため、確信度をそのままフォーカスの評価値には利用できない。そこで、例えば、茨城県水戸市にカメラを設置している場合、通行する車両は、「水戸」ナンバーが多いため、「水戸」と出力したときの確信度を用いて平均することで安定的にフォーカスの評価値として利用することができる。また、フォーカスの評価値として確信度を利用する場合、陸運支局コードの代わりに一連番号の特定文字、例えば数字の5と認識したときの確信度だけを平均化するようにしてもよい。また、前述のナンバープレートの一連番号、陸運支局コード、車種コード、および用途コードの中の少なくとも二つの確信度の乗算値をフォーカスの評価値としてもよい。例えば、前述の陸運支局コードの確信度と一連番号の確信度の乗算値を用いるようにしてもよい(0〜1の値に正規化してあれば図8に適用可能)。さらに、全ての文字の確信度を総和して平均して、その平均した値をフォーカスの評価値としてもよい。
In addition, the name of the license plate changes in quality as the quality (dirt, bend, etc.) changes. For this reason, the certainty factor cannot be used as it is for the focus evaluation value. Therefore, for example, when a camera is installed in Mito City, Ibaraki Prefecture, the number of vehicles that pass is “Mito”, so it is stable by averaging using the confidence level when outputting “Mito”. It can be used as a focus evaluation value. Further, when the certainty factor is used as the focus evaluation value, only the certainty factor when the specific character of the serial number, for example, the
なお、確信度の算出にナンバープレートの用途コードを利用することも可能であるが、用途コードの利用は、以下の理由により好ましくない。具体的には、用途コードは、通過する車ごとにほとんど異なった文字となるため、所定文字のデータを累積するまでに時間が掛かりすぎ、調整時間が増大すると考えられるためである。 In addition, although it is possible to use the use code of a license plate for calculation of a certainty factor, use of a use code is not preferable for the following reasons. Specifically, since the use code is almost different for each passing car, it is considered that it takes too much time to accumulate the data of the predetermined character and the adjustment time increases.
続いて、レンズ2のフォーカス位置の調整処理のフローを説明する。
Subsequently, the flow of the adjustment process of the focus position of the
図10は、本実施形態が行うレンズ2のフォーカス位置を調整する処理のフローを説明するための図である。
FIG. 10 is a diagram for explaining a flow of processing for adjusting the focus position of the
まず、画像処理装置3の各部が保持する統計処理に用いるテーブルなどを初期化する(S50)。また、レンズ情報解析部8は、レンズ制御部9を介してレンズ2のフォーカス位置を初期値「cn=0」に設定する(S51)。
First, a table used for statistical processing held by each unit of the
その状態で、プレート認識部5は、カメラ1からの画像データを画像入力部4を介して受付ける。プレート認識部5は、受付けた画像から車両を検知し、検知した車両のナンバープレートを認識する。また、プレート認識部5は、検知した車両のナンバープレートのプレート位置YPを算出する(S52〜53)。なお、プレート認識部5は、S52において、フォーカス位置毎に検知した車両の台数と、ナンバープレートの認識に成功した回数とをカウントし、その値をフォーカス位置に対応付けて保持する。
In this state, the
続いて、フォーカス解析部6は、プレート認識部5から認識した車両のナンバープレートの画像と、算出したプレート位置YPとを取得する。フォーカス解析部6は、取得した車両のナンバープレートの画像を用いて、上述した手順にしたがい、一連番号のエッジシャープ度Eを求める(S54)。また、フォーカス解析部6は、取得したプレート位置YP、および求めたエッジシャープ度Eをレンズ情報解析部8に送信する。
Subsequently, the
その後、レンズ情報解析部8は、フォーカス解析部6が出力したプレート位置YPとエッジシャープ度Eとを受信した場合、所定台数(例えば10台)の車の一連番号の認識処理が行われたか否かを確認し、確認できた場合にS56に進む。一方、レンズ情報解析部8が、所定台数分の一連番号の認識処理ができていないと判定した場合(つまり所定台数分のナンバープレートを認識していない場合)、S52の処理に戻る(S55)。
Thereafter, when the lens
なお、所定台数の車両に対する認識処理が行われたか否かの確認は、例えば、プレート認識部5が保持するナンバープレートの認識に成功した回数を取得することで確認するようにしてもよい。
The confirmation as to whether or not the recognition processing for a predetermined number of vehicles has been performed may be confirmed by, for example, acquiring the number of times of successful recognition of the license plate held by the
S56では、レンズ情報解析部8は、プレート認識部5に文字認識率を算出させ、プレート認識部5が算出した文字認識率をフォーカス解析部6を介して取得する。ここで、プレート認識部5が算出する文字認識率について、図2(a)のナンバープレートを認識した場合を例にして説明する。
In S <b> 56, the lens
プレート認識部5は、カメラ1から受信した画像の状態により、車両を検知できた場合であっても、ナンバープレートの一連番号20の文字認識を失敗する場合がある。ナンバープレートの一連番号20の文字認識を失敗する場合とは、検知した車両の画像データから認識した一連番号20の中に認識できない文字が含まれている場合をいう。例えば、図2の例では、「?34?」のように、認識結果の中に認識できない文字を示すデータが含まれている場合をいう(「?」は認識できない文字を示す)。一方、一連番号20の文字認識に成功する場合とは、画像処理により検知した車両の画像からナンバープレートの一連番号20(図2の例では「2345」)を全て認識できた場合をいう。
Even if the
プレート認識部5は、レンズ情報解析部8からの要求にしたがい、保持している検知した車両の台数と、ナンバープレートの一連番号20の認識に成功した回数とを用いて文字認識率を算出する。例えば、プレート認識部5は、下記(式2)にように、「一連番号20の文字の認識に成功した回数」を「検出した車両の台数」で除算することにより、フォーカス位置毎の文字認識率R(cn)を求める。プレート認識部5は、フォーカス解析部6を介して、求めた文字認識率をレンズ情報解析部8に出力する。
R(cn)=一連番号の認識に成功した回数÷検出した車両の台数…(式2)
図10に戻り説明を続ける。レンズ情報解析部8は、プレート認識部5からの認識率を取得した場合、フォーカス位置に対応付けて当該取得した文字認識率を記憶し、S57の処理に進む。
In accordance with a request from the lens
R (cn) = number of successful serial number recognition / number of detected vehicles (Equation 2)
Returning to FIG. When the lens
S57では、レンズ情報解析部8により、上述の図7で説明した手順に従い、画面中央でのエッジシャープ度Ecを求めて、フォーカス位置に対応付けて当該求めたエッジシャープドEcを記憶し、S58の処理に進む。なお、レンズ情報解析部8は、S56で取得した文字認識率が所定のしきい値(後述するS61で用いるしきい値)以下の場合、エッジシャープドEcを求めないで、S58に進むようにしてもよい。
In S57, the lens
S58では、レンズ情報解析部8により、フォーカス移動が全て終了したかを確認し、終了していない場合は、レンズ制御部9を介してフォーカス位置を移動し、S52の処理に戻る(S59〜60)。一方、レンズ情報解析部8により、フォーカスの全ての移動が終了した場合、S61に進む。
In S58, the lens
S61では、レンズ情報解析部8により、記憶している「フォーカス位置毎に文字認識率を対応付けたデータ」を用いて、所定のしきい値以上の文字認識率に対応付けられているフォーカス位置を選択する。また、レンズ情報解析部8により、記憶している「フォーカス位置毎にエッジシャープ度Ecを対応付けたデータ」を用いて、上記選択したフォーカス位置の中から最もエッジシャープ度Ecが大きなフォーカス位置を特定する(S61)。
In S61, the lens
その後、レンズ情報解析部8は、レンズ制御部9を介して特定したフォーカス位置になるようにレンズ2のフォーカス位置を移動し(S62)、処理を終了する。なお、エッジシャープ度Ecに代えて文字認識の確信度を用いる場合は、S54において、あらかじめ決められた文字(地名や数字)の確信度を記憶して、S57で確信度の平均を求める。
Thereafter, the lens
このように、本実施形態では、フォーカス位置毎に所定台数の車両のナンバープレートを認識し、フォーカス位置毎に認識した複数台のナンバープレートを利用して、フォーカスが合っているか否かを判定する評価値(例えば、エッジシャープ度Ec)を求めるようにしている。そのため、本実施形態では、特殊な状態のナンバープレート(例えば、ナンバープレートを傾けて取り付けている車両等)を認識することで、フォーカスが合わないことを示す評価値が求められた場合であっても、その影響を軽減できる。すなわち、本実施形態では、何らかの原因により、1台の車両から認識した評価値が異常な場合であっても、フォーカスが全く違う位置に設定される可能性を軽減することができる。 As described above, in the present embodiment, the license plates of a predetermined number of vehicles are recognized for each focus position, and it is determined whether or not the focus is achieved using a plurality of license plates recognized for each focus position. An evaluation value (for example, edge sharpness Ec) is obtained. Therefore, in the present embodiment, an evaluation value indicating that the focus is not achieved is obtained by recognizing a license plate in a special state (for example, a vehicle with the license plate tilted and attached). Can reduce the effect. That is, in this embodiment, even if the evaluation value recognized from one vehicle is abnormal for some reason, the possibility that the focus is set to a completely different position can be reduced.
次に、本実施形態が行うレンズ2のズームに対する自動調整について説明する。
Next, automatic adjustment for zooming of the
ズーム解析部7は、プレート認識部5の処理結果から一連番号のピッチを求め、そのサイズによって視野サイズWdを算出する。図2(a)に示すように、中型プレートの一連番号の左から1桁目と4桁目のサイズ25は、195mmである。また、図2(b)に示すように、大型プレートの左から1桁目と4桁目のサイズ26は、272.5mmである。プレート認識の際、認識したナンバープレートが大型プレートおよび中型プレートのいずれであるかの判定を行う。そして、ズーム解析部7は、中型の場合に下記(式3)を用いて視野サイズWdを求める。また、ズーム解析部7は、大型の場合に下記(式4)を用いて視野サイズWdを求める。
視野サイズ=画面の水平画素数×(195/XSIZE)…(式3)
視野サイズ=画面の水平画素数×(272.5/XSIZE)…(式4)
ここで、(式3)および(式4)における画面の水平画素数は画面全体の画素数でありNTSC準拠のカメラであれば640画素程度である。XSIZEは、一連番号を抽出したときに文字ごとの領域座標が求まり、その領域の内、左から1桁目と4桁目の中心間隔に相当する画素数である。大型、中型の判定は、文字の高さにより行う。具体的には、中型のナンバープレート一連番号20の文字の高さは、「80mm」であり、大型のナンバープレートの一連番号20の文字の高さは、「120mm」である。大型と中型とで文字の高さが「1.5倍」違うので、この高さを求めれば容易に判定可能である。なお、一連番号20が3桁の場合や2桁の場合、或いは1桁の場合、ドットパターンとの間隔で同様な計算を実行すればよい。ズーム解析部7は、このようにして求めた視野サイズWdおよびプレート認識部5から受付けたプレート位置YPをレンズ情報解析部8へ送る。
なお、視野サイズWdは、取り込み位置によって変化する。そのため、レンズ情報解析部8において、図11のようにプレート位置YPと合わせて視野サイズWdを記憶しておいて、複数台の処理結果から画面中心の視野サイズWdを推定する。
図12は、求めた視野サイズWdとプレート位置YPとの関係を複数台分プロットした図である。
The
Field size = number of horizontal pixels of screen × (195 / XSIZE) (Equation 3)
Field size = number of horizontal pixels of screen × (272.5 / XSIZE) (Formula 4)
Here, the number of horizontal pixels of the screen in (Equation 3) and (Equation 4) is the number of pixels of the entire screen, which is about 640 pixels in the case of an NTSC-compliant camera. XSIZE is the number of pixels corresponding to the center interval of the first and fourth digits from the left in the region coordinates obtained when the serial number is extracted. Large / medium size is determined by the height of the character. Specifically, the height of the characters of the medium number plate
The visual field size Wd varies depending on the capture position. Therefore, the lens
FIG. 12 is a diagram in which the relationship between the obtained visual field size Wd and the plate position YP is plotted for a plurality of units.
レンズ情報解析部8は、受信したデータを用いて「プレート位置YP」を「x」座標、「視野サイズWd」を「y」座標にとった関係式(回帰直線y=ax+b)を求める。そして、求めた回帰直線「y=ax+b」の「x」座標に画面中心の座標「YC」を代入すると画面中心の視野サイズを求めることができる。なお、レンズ情報解析部8は、画面中央に対応する最適視野サイズをあらかじめ保持していることとする。レンズ情報解析部8は、保持している最適視野サイズと、上記求めた画面中心の視野サイズとの差「d_w」からズームの移動量を求め、ズームを最適な位置へ移動する。
The lens
例えば、「d_w」が「50mm」違えばズームを何段移動するかをあらかじめ決めておけば、「d_w」が求まればレンズ2のズーム位置を最適な位置に移動することができる。なお、視野サイズの計算では、路面からプレートまでの高さが変化すると視野サイズも変化してしまう。特に大型プレートは取り付け高さが大きく変動するため、大型プレートの視野サイズは統計に含めないことで、精度を向上させることができる。また、上記では、視野サイズでズーム倍率を調整しているが、以下の(式5)、(式6)のように分解能に置き換えることは同等である。
分解能=(195/XSIZE)…(式5)
分解能=(272.5/XSIZE)…(式6)
続いて、レンズ2のズーム調整処理のフローを説明する。
For example, if “d_w” is different by “50 mm”, it is possible to move the zoom position of the
Resolution = (195 / XSIZE) (Formula 5)
Resolution = (272.5 / XSIZE) (Expression 6)
Next, the flow of zoom adjustment processing for the
図13は、本実施形態が行うレンズ2のズーム調整処理のフローを説明するための図である。
FIG. 13 is a diagram for explaining a flow of zoom adjustment processing of the
まず、画像処理装置3の各部が保持する統計処理に用いるテーブルなどを初期化する(S70)。続いて、プレート認識部5がプレート認識処理を行う(S71)。具体的には、プレート認識部5は、カメラ1からの画像データを受付け、受付けた画像データから車両を検知し、検知した車両のナンバープレートを認識する。また、プレート認識部5は、ナンバープレートのプーレート位置YPを求める(S72)。プレート認識部5は、認識したナンバープレートの画像データおよびプレート位置YPをズーム解析部7に出力する。
First, a table used for statistical processing held by each unit of the
ズーム解析部7は、上述した手順にしたがい、視野サイズWdを算出し、算出した視野サイズWdおよびプレート認識部5から受付けたプレート位置YPをレンズ情報解析部8に出力する(S73)。レンズ情報解析部8は、ズーム解析部7が出力する視野サイズWdおよびプレート位置YPを受信した場合、所定台数分の視野サイズを取得できたか否かを判定する(S74)。
The
レンズ情報解析部8は、所定台数分の視野サイズを取得できた場合にS75の処理に進む。一方、レンズ情報解析部8が所定台数分の視野サイズを取得できない場合、S71の処理に戻る。
The lens
S75では、レンズ情報解析部8により、視野サイズWdとプレート位置YPとの関係から画面中央の視野サイズ「Wd」を推定する(S75)。レンズ情報解析部8は、推定した視野サイズ「Wd」と予め保持している最適視野サイズとの差からズーム移動量「d_w」を求め、レンズ制御部9を介して、レンズ2のズーム位置を求めたズーム移動量「d_w」だけ移動させる(S76〜77)。
In S75, the lens
なお、図13の処理フローは、ズーム倍率がナンバープレートを認識できる範囲内でずれている場合のズーム調整処理を示しているが、ズームが極端にずれるとナンバープレートの認識が全くできなくなり、制御ができなくなる(視野サイズWdが求まらないため)。したがって、本実施形態では、ナンバープレートの認識ができなかった場合、上述したフォーカス調整処理と同様、ズーム倍率(レンズのズーム位置)を変えながら視野サイズを評価し、最適なズーム位置を探索する処理を行う。以下、ナンバープレートの認識ができなかった場合に行うレンズ2のズーム調整処理のフローを説明する。
The processing flow of FIG. 13 shows the zoom adjustment processing when the zoom magnification is deviated within a range where the license plate can be recognized. However, if the zoom is extremely deviated, the license plate cannot be recognized at all, and the control is not performed. Cannot be obtained (because the visual field size Wd cannot be obtained). Therefore, in the present embodiment, when the license plate cannot be recognized, similarly to the focus adjustment process described above, the process of evaluating the visual field size while changing the zoom magnification (lens zoom position) and searching for the optimal zoom position I do. Hereinafter, the flow of the zoom adjustment processing of the
図14は、本実施形態がプレートの認識ができなかった場合に行うレンズ2のズーム調整処理のフローを説明するための図である。
FIG. 14 is a diagram for explaining the flow of the zoom adjustment processing of the
まず、上述したS70と同様、画像処理装置3の各部が保持する統計処理に用いるテーブルなどを初期化する(S80)。続いて、レンズ情報解析部8は、レンズ制御部9を介してレンズ2のズーム位置を初期値「cn=0」に設定する(S81)。
First, as in S70 described above, a table used for statistical processing held by each unit of the
その状態で、プレート認識部5は、カメラ1からの画像データを画像入力部4を介して受付ける。プレート認識部5は、受付けた画像データから車両を検知し、検知した車両のナンバープレートを認識する(S82)。プレート認識部5は、検知した車両のナンバープレートのプレート位置YPを抽出する(S83)。プレート認識部5は、認識したナンバープレートの画像データおよびプレート位置YPをズーム解析部7に出力する。
In this state, the
続いて、ズーム解析部7は、上述したS73と同様の処理を行い、視野サイズWdを算出し、算出した視野サイズWdおよびプレート認識部5から受付けたプレート位置YPをレンズ情報解析部8に出力する(S84)。
Subsequently, the
レンズ情報解析部8は、上記S74〜75と同様の処理を行い、所定台数分の視野サイズWdおよびプレート位置Ypを用いて、画面中央に対応する視野サイズWdを推定する(S85〜86)。レンズ情報解析部8は、ズーム位置に対応付けて推定した視野サイズWdを記憶しておく。
The lens
続いて、レンズ情報解析部8は、プレート認識部5に文字認識率R(cn)を算出させ(S87)、プレート認識部5から算出させた文字認識率R(cn)を取得する。ズームが全く合っていない場合は、文字認識率R(cn)が0になるか、車両検知処理も正常に動作しない。そのため、レンズ情報解析部8は、取得した文字認識率R(cn)が0の場合、処理を終了する。また、S85において、所定時間経過しても車両の認識処理が終了しない場合、レンズ情報解析部8は、文字認識率R(cn)を0にして強制終了する。ズームの移動が全てのケース終了した場合、最適なズーム位置を特定し(S91)、ズームを移動させる。具体的には、レンズ情報解析部8は、記憶しているズーム位置毎の推定した視野サイズWdの中から予め定められている視野サイズに最も近い値を持つ視野サイズWdが求められたズーム位置を特定する。そして、レンズ情報解析部8は、レンズ制御部9を介して、レンズ2のズーム位置を特定したズーム位置に移動する。
Subsequently, the lens
このような処理により、ズームが極端に移動している場合でも正常な位置に戻すことが可能となる。なお、ズーム位置を変化させてもフォーカスの状態は基本的には変化しない。
なお、ナンバープレートの文字認識処理には文字サイズの許容値が設けられているので、その範囲に入る文字サイズの認識ができる。このため、多少のズームのずれは許容できるが、ズームが大きくずれると、例えば画面の下側で撮影した場合だけ認識できるといったケースがある。この場合、図15のように収集した視野サイズのデータが特定個所に集中し画面の中央の視野サイズを推定することができなくなる。このため、あらかじめ最適視野サイズを画面中央だけでなく直線として記憶しておき、求めたサンプルデータが偏っている場合は、そのサンプルデータの平均視野サイズ「wd_av」とプレート位置Ypの中心座標「YP_av」を求め、中心点と最適視野直線の関係から視野サイズのずれ量「d_w」を求めズームを移動する。このようにすることで、認識結果が一部分だけ求まった場合でも最適なズーム倍率に設定することが可能となる。
By such processing, it is possible to return to the normal position even when the zoom is extremely moved. Note that the focus state basically does not change even when the zoom position is changed.
In addition, since the character size tolerance is provided in the license plate character recognition process, it is possible to recognize a character size falling within that range. For this reason, a slight zoom shift can be allowed, but if the zoom is largely shifted, for example, it may be recognized only when the image is taken at the lower side of the screen. In this case, the collected visual field size data as shown in FIG. 15 is concentrated at a specific location, and the visual field size at the center of the screen cannot be estimated. For this reason, the optimal visual field size is stored in advance as a straight line as well as the center of the screen, and when the obtained sample data is biased, the average visual field size “wd_av” of the sample data and the center coordinate “YP_av” of the plate position Yp ”Is obtained, and a shift amount“ d_w ”of the field size is obtained from the relationship between the center point and the optimum field straight line, and the zoom is moved. In this way, even when only a part of the recognition result is obtained, it is possible to set an optimum zoom magnification.
ところで、上記のフォーカス調整およびズーム調整を行っている間は、ナンバープレートを認識できない位置にもレンズ位置を移動させるため、認識台数が低下する。したがって、レンズ2の調整頻度を少なくすることが望ましい。
By the way, while performing the focus adjustment and zoom adjustment described above, the lens position is moved to a position where the license plate cannot be recognized. Therefore, it is desirable to reduce the adjustment frequency of the
本実施形態では、レンズ調整スケジュール管理部10にレンズ調整を行うタイミングを判定するためのデータを保持させておく。そして、レンズ調整スケジュール管理部10は、保持している上記のデータを用いて、レンズ調整の時期を特定し、フォーカス解析部6(或いはズーム解析部7)と、レンズ情報解析部8とにレンズ調整を指示する。レンズ2を調整するタイミングについては、特に限定しないが、例えば、以下(1)〜(5)で示すように定めてもよい。
In this embodiment, the lens adjustment schedule management unit 10 holds data for determining the timing for performing lens adjustment. Then, the lens adjustment schedule management unit 10 specifies the lens adjustment time using the held data, and sends the lens to the focus analysis unit 6 (or zoom analysis unit 7) and the lens
例えば、車番認識装置は、(1)レンズ調整をカメラ1の設置日の夜に行う。この場合、レンズ調整スケジュール管理部10にタイマーを設けておいて、タイマーにレンズ調整を行う日時を設定しておく。レンズ調整スケジュール管理部10は、設定された日時になった場合、フォーカス解析部6、ズーム解析部7、およびレンズ情報解析部8にレンズ調整の指示を行う。なお、タイマーに設定する時間は、例えば、19時〜20時頃にするとよい。設定する時間を深夜にすると、通行する車両の台数が少なくなり、レンズ調整に必要なデータを取得できないことがあるためである。
For example, the vehicle number recognition device (1) performs lens adjustment on the night of the installation date of the
また、例えば、車番認識装置は、(2)1週間に一度の割合でレンズ2を調整する。この場合も、上記(1)と同様、レンズ調整スケジュール管理部10にタイマーを設け、定期的に行うレンズ調整の日時を設定しておく(例えば、日曜日の19時等)。レンズ調整スケジュール管理部10は、設定された日時になった場合、フォーカス解析部6、ズーム解析部7、およびレンズ情報解析部8にレンズ調整の指示を行う。
For example, the car number recognition device adjusts the
例えば、車番認識装置は、(3)ナンバープレートの文字認識率が過去の文字認識率の履歴に比べて低下している場合に、レンズ調整を行うようにしてもよい。この場合、例えば、レンズ調整スケジュール管理部10は、プレート認識部5が算出した文字認識率(所定台数分のナンバープレートの一連番号を認識した場合の文字認識率)を取得し、その取得した文字認識率を履歴として保持していく。そして、レンズ調整スケジュール管理部10は、プレート認識部5から文字認識率を取得した場合、保持している過去の文字認識率の履歴(例えば平均値)と、取得した文字認識率とを比較する。レンズ調整スケジュール管理部10は、取得した文字認識率が過去の文字認識率の履歴と比べて所定値以上低い場合に、フォーカス解析部6、ズーム解析部7、およびレンズ情報解析部8にレンズ調整の指示を行う。なお、文字認識率が低下している場合には、その原因がレンズ2のフォーカスなのかズームなのかが判断できない。そのため、本実施形態では、文字認識率が低下している場合、フォーカスおよびズームの両者を調整する。
For example, the car number recognition device may perform lens adjustment when (3) the character recognition rate of the license plate is lower than the past character recognition rate history. In this case, for example, the lens adjustment schedule management unit 10 acquires the character recognition rate calculated by the plate recognition unit 5 (character recognition rate when a serial number of license plates for a predetermined number of units is recognized), and the acquired character The recognition rate is kept as a history. Then, when the character adjustment rate is acquired from the
また、車番認識装置は、(4)監視対象の車両の通過速度が過去の車両の通過速度と比べて大きく変動している場合、レンズ調整の指示を行うようにしてもよい。具体的には、プレート認識部5に車両の通過速度を算出する機能を設けておく。そして、レンズ調整スケジュール管理部10は、プレート認識部5から車両の通過速度を取得し、その取得した通過速度を履歴として保持する。レンズ調整スケジュール管理部10は、所定回数分の通過速度を取得した場合にその平均値を算出し、算出した平均値が履歴として保持している過去の通過速度の平均と比べて所定値以上変動している場合、レンズ調整の指示を行う。なお、車両の通過速度は、従来技術(例えば、特開平8−83393号公報)により求めることができる。車両の通過速度は、移動画素で算出するため、ズームがずれると速度が変化する。
Further, the vehicle number recognition device may (4) instruct the lens adjustment when the passing speed of the vehicle to be monitored largely fluctuates compared to the passing speed of the past vehicle. Specifically, a function for calculating the passing speed of the vehicle is provided in the
また、車番認識装置は、(5)常にフォーカス、ズームの状態を監視し、最適状態から所定範囲はずれた場合にレンズ調整を行うようにしてもよい(常にフォーカス、ズームの状態を監視する例は、図16で詳細に説明する)。 Further, the vehicle number recognition device may (5) always monitor the focus and zoom states, and adjust the lens when the predetermined range deviates from the optimum state (an example of always monitoring the focus and zoom states). Will be described in detail in FIG. 16).
なお、レンズ調整スケジュール管理部10が保持するタイミングを判定するためのデータ(例えば、レンズ調整を行う日時や文字認識率が低下したか否かを判定する所定値等)は、外部機器12から通信部11を介して変更することができる。
Note that data for determining the timing held by the lens adjustment schedule management unit 10 (for example, a date and time for performing lens adjustment and a predetermined value for determining whether or not the character recognition rate has decreased) is communicated from the
続いて、上述した(5)の常にフォーカスの状態およびズームの状態を監視する場合の監視処理について、図16を用いて説明する。 Next, the monitoring process in the case of constantly monitoring the focus state and zoom state (5) described above will be described with reference to FIG.
図16は、本実施形態のレンズ調整処理のフローを説明するための図である。なお、レンズ調整スケジュール管理部10には、ズーム調整を行うか否かを判定するためのズーム調整フラグ(フラグは、「ON」および「OFF」のいずれかに設定可能)が設けられている。また、レンズ調整スケジュール管理部10には、フォーカス調整を行うか否かを判定するためのフォーカス調整フラグ(フラグは、「ON」および「OFF」のいずれかに設定可能)が設けられている。 FIG. 16 is a diagram for explaining the flow of the lens adjustment process of the present embodiment. The lens adjustment schedule management unit 10 is provided with a zoom adjustment flag (the flag can be set to either “ON” or “OFF”) for determining whether or not to perform zoom adjustment. The lens adjustment schedule management unit 10 is provided with a focus adjustment flag (the flag can be set to either “ON” or “OFF”) for determining whether or not to perform focus adjustment.
最初に、レンズ調整スケジュール管理部10は、ズーム調整フラグを参照し、ズーム調整フラグが「ON」に設定されている場合、S101の処理に進み、「OFF」に設定されている場合にS102の処理に進む。 First, the lens adjustment schedule management unit 10 refers to the zoom adjustment flag. When the zoom adjustment flag is set to “ON”, the lens adjustment schedule management unit 10 proceeds to the process of S101. When the zoom adjustment flag is set to “OFF”, the lens adjustment schedule management unit 10 proceeds to S102. Proceed to processing.
S101では、レンズ調整スケジュール管理部10は、ズーム解析部7およびレンズ情報解析部8にレンズ2のズーム調整の指示を行う。そして、ズーム解析部7およびレンズ情報解析部8は、上述した図13或いは図14の処理手順でズーム調整を行う。レンズ情報解析部8は、ズーム調整が完了した場合、その旨示すデータをレンズ調整スケジュール管理部10に送信する。レンズ調整スケジュール管理部10は、ズーム調整が完了した旨を示すデータを受信した場合、ズーム調整フラグを「OFF」に設定し、S100の処理に戻る。
In step S <b> 101, the lens adjustment schedule management unit 10 instructs the
続いて、S100において、ズーム調整フラグが「OFF」の場合に進むS1102の処理を説明する。 Next, the processing of S1102 that proceeds when the zoom adjustment flag is “OFF” in S100 will be described.
S102では、レンズ調整スケジュール管理部10は、フォーカス調整フラグを参照し、フォーカス調整フラグが「ON」に設定されている場合、S103の処理に進み、「OFF」に設定されている場合にS104の処理に進む。 In S102, the lens adjustment schedule management unit 10 refers to the focus adjustment flag. If the focus adjustment flag is set to “ON”, the process proceeds to S103. If the focus adjustment flag is set to “OFF”, the process proceeds to S104. Proceed to processing.
S103では、レンズ調整スケジュール管理部10は、フォーカス解析部6およびレンズ情報解析部8にレンズ2のフォーカス調整の指示を行う。そして、フォーカス解析部6およびレンズ情報解析部8は、上述した図10の手順でレンズ2のフォーカス調整を行う。レンズ情報解析部8は、フォーカス調整が完了した場合、その旨示すデータをレンズ調整スケジュール管理部10に送信する。レンズ調整スケジュール管理部10は、フォーカス調整が完了した旨を示すデータを受信した場合、フォーカス調整フラグを「OFF」に設定し、S100の処理に戻る。
In S <b> 103, the lens adjustment schedule management unit 10 instructs the
続いて、S102において、フォーカス調整フラグが「OFF」の場合に進むS104以降の処理を説明する。 Subsequently, the processing from S104 onward when the focus adjustment flag is “OFF” in S102 will be described.
S104では、プレート認識部5が通常のナンバープレート認識処理を行う。具体的には、プレート認識部5は、上述した図10のS52およびS53と同様の処理を行う。
In S104, the
S105では、ズーム解析部7は、ズーム評価値を算出し、算出したズーム評価値をレンズ情報解析部8に出力する。ズーム評価値については、特に限定しないが、例えば、図14のS84で説明した視野サイズを用いることができる。この場合、ズーム解析部7は、S84と同様、プレート認識部5からナンバープレートの画像およびプレート位置YPを取得し、取得した画像から視野サイズWdを算出する。ズーム解析部7は、算出した視野サイズWdと取得したプレート位置YPとを対応付けてレンズ情報解析部8に出力する。
In S <b> 105, the
続いて、S106では、フォーカス解析部6がフォーカス評価値を算出して、算出した評価値をレンズ情報解析部8に出力する。フォーカス評価値については、特に限定しないが、例えば、図10のS54で説明した一連番号のエッジシャープ度Eを用いることができる。この場合、フォーカス解析部5は、S54と同様の手順でエッジシャープ度Eを算出し、算出したエッジシャープ度Eと、プレート位置YPとを対応付けてレンズ情報解析部8に出力する。
Subsequently, in S <b> 106, the
レンズ情報解析部8は、所定台数分のズーム評価値(ここでは、視野サイズWd)およびフォーカス評価値(ここでは、エッジシャープ度E)を受信した場合、S108の処理に進み、所定台数分のズーム評価値およびフォーカス評価値を受信しない場合、S100の処理に戻る。
When the lens
S108では、レンズ情報解析部8の異常監視部8が、受信した所定台数分のズーム評価値Wdを用いて、ズーム調整が必要であるか否かを判定する。具体的には、異常監視部8は、最適視野サイズを示すデータを予め保持している。異常監視部8は、所定台数分のそれぞれのズーム評価値と保持している最適視野サイズとの差「d_w」を求め、その差「d_w」が所定値以上であればS109の処理に進み、その差「d_w」が所定値より小さければS110の処理に進む。なお、異常監視部8は、所定台数分の評価値(視野サイズ)とプレート位置YPとを用いて、上述した図12のように、画面中心の視野サイズWdを求めるようにしてもよい。異常監視部8は、その求めた視野サイズWdと最適視野サイズとを比較して、ズーム調整を行うか否かを判定する。
In S108, the
S109では、異常監視部8は、レンズ調整スケジュール管理部10が保持するレンズ調整フラグを「ON」に設定してS111の処理に進む。
In S109, the
続いて、S108において、ズーム調整が不要であると判定された場合に進むS110の処理を説明する。S110では、レンズ情報解析部8の異常監視部8が、受信した所定台数分のフォーカス評価値(エッジシャープ度E)を用いて、フォーカス調整が必要であるか否かを判定する。
Next, the process of S110 that is performed when it is determined in S108 that the zoom adjustment is unnecessary is described. In S110, the
具体的には、異常監視部8は、フォーカス評価値を判定するための「しきい値」を有している。しきい値については、具体的に限定しないが、エッジシャープ度Eが「0〜1」の間の値の場合、例えば、「0.5」とする。異常監視部8は、受信した所定台数分のフォーカス評価値(エッジシャープ度)およびプレート位置YPを用いて、画面中央の「エッジシャープ度Ec」を求める。異常監視部8は、「エッジシャープ度Ec」が「しきい値」より低い場合にフォーカス調整を行う必要があると判定をする。そして、異常監視部8は、フォーカス調整を行う必要があると判定をした場合にS111に進み、フォーカス調整を行わないと判定された場合にS100の処理に戻る。
Specifically, the
S111では、異常監視部8は、レンズ調整スケジュール管理部10が保持するフォーカス調整フラグを「ON」に設定してS100の処理に戻る。
In S111, the
このように、本実施形態によれば、ナンバープレートの文字を認識しながら、文字のボケ具合を評価し最適なフォーカス位置に調整するようにしている。そのため、本実施形態によれば、設置時の調整時間が大幅に低下するとともに、最もピントが合った状態で運用できるため認識精度の向上が達成できる。また、本実施形態では、認識したナンバープレートの文字の間隔から視野サイズを算出し、そのサイズが予め保持している初期値(最適視野サイズ)に比べ変化した場合は最適なズーム倍率に調整するようにしている。そのため、本実施形態では、最もズームが合った状態で運用できるため認識精度を向上させることができる。 As described above, according to the present embodiment, while the characters on the license plate are recognized, the degree of blurring of the characters is evaluated and adjusted to the optimum focus position. Therefore, according to the present embodiment, the adjustment time at the time of installation is greatly reduced, and the operation can be performed in the most focused state, so that the recognition accuracy can be improved. In this embodiment, the visual field size is calculated from the recognized character plate spacing, and if the size changes compared to the initial value (optimal visual field size) held in advance, the zoom magnification is adjusted to the optimum zoom magnification. I am doing so. Therefore, in this embodiment, since it can be operated in a state where the zoom is most suitable, the recognition accuracy can be improved.
なお、本発明は、以上で説明した実施形態に限定されるものではなく、本発明の要旨の範囲内において種々の変形が可能である。例えば、上述した実施形態では、文字認識率を求める際に、ナンバープレートの一連番号を利用するようにしたが、特にこれに限定するものではない。例えば、ナンバープレートの全ての文字を利用するようにしてもよいし、一連番号以外の文字を利用するようにしてもよい。 The present invention is not limited to the embodiment described above, and various modifications can be made within the scope of the gist of the present invention. For example, in the above-described embodiment, the serial number of the license plate is used when obtaining the character recognition rate, but the present invention is not particularly limited to this. For example, all characters on the license plate may be used, or characters other than the serial number may be used.
1…カメラ、2…レンズ、3…画像処理装置、4…画像入力部、5…プレート認識部、6…フォーカス解析部、7…ズーム解析部、8…レンズ情報解析部、9…レンズ制御部、10…レンズ調整スケジュール管理部、11…通信部、12…外部機器、13…異常監視部、100…撮像部、200…画像処理回路201…CPU、202…メモリ、203…I/O回路、204…A/D変換回路、205…ネットワークインターフェース
DESCRIPTION OF
Claims (10)
前記テレビカメラには、外部からの制御信号を受付けてレンズのフォーカス位置を設定する電動レンズが設けられていて、
前記電動レンズに制御信号を送信し、当該電動レンズのレンズのフォーカス位置を設定するレンズ制御手段と、
前記テレビカメラから受付けた前記画像データを用いて車両を検知し、当該検知した車両のナンバープレートを認識する認識手段と、
前記認識手段が所定期間に検知した車両の台数と、検知した車両のうちナンバープレートを認識した車両の台数とを用いて、文字認識率を算出する手段と、
前記算出した文字認識率を履歴として記憶する認識履歴管理手段と、
前記認識手段が認識した複数台のナンバープレートの画像を用いて、画面中央におけるエッジシャープ度を算出する手段と、
前記フォーカス位置が異常か否かを判定するフォーカス異常判定手段と、
前記フォーカス位置が異常と判定した場合、前記レンズ制御手段を介して、前記フォーカス位置を最適な位置に設定する手段と、を有し、
前記フォーカス異常判定手段は、
前記算出した文字認識率と、前記認識履歴管理手段が記憶している文字認識率の平均値とを比較し、前記算出した文字認識率と前記平均値との差が所定値以上の場合、あるいは、前記算出したエッジシャープ度が所定値以下の場合に、前記フォーカス位置が異常と判定すること
を特徴とする車番認識装置。 In a vehicle number recognition device that receives image data from a television camera that captures a vehicle, processes the received image data, and recognizes a vehicle license plate,
The television camera is provided with an electric lens that receives a control signal from the outside and sets the focus position of the lens,
A lens control means for transmitting a control signal to the electric lens and setting a focus position of the lens of the electric lens;
Recognizing means for detecting a vehicle using the image data received from the television camera and recognizing a license plate of the detected vehicle;
Means for calculating a character recognition rate using the number of vehicles detected by the recognition means in a predetermined period and the number of vehicles that have recognized the license plate among the detected vehicles ;
Recognition history management means for storing the calculated character recognition rate as a history;
Means for calculating the edge sharpness at the center of the screen using images of a plurality of license plates recognized by the recognition means;
Focus abnormality determination means for determining whether or not the focus position is abnormal ;
If the focus position is determined to be abnormal, through the lens control unit, anda means for setting the optimum position of the focus position,
The focus abnormality determination means includes
When the calculated character recognition rate is compared with the average value of the character recognition rates stored in the recognition history management means, and the difference between the calculated character recognition rate and the average value is a predetermined value or more , or When the calculated edge sharpness is equal to or less than a predetermined value, the focus position is determined to be abnormal .
前記テレビカメラには、外部からの制御信号を受付けてレンズのズーム位置を設定する電動レンズが設けられていて、
前記電動レンズに制御信号を送信し、当該電動レンズのレンズのズーム位置を設定するレンズ制御手段と、
前記テレビカメラから受付けた前記画像データを用いて車両を検知し、当該検知した車両のナンバープレートを認識する認識手段と、
前記検知した車両の通過速度を算出する手段と、
前記算出した通過速度を速度履歴として記憶する速度履歴管理手段と、
前記認識手段が認識したナンバープレートの画像を用いて、画面の視野サイズを算出する手段と、
前記ズーム位置が異常か否かを判定するズーム異常判定手段と、
前記ズーム位置が異常と判定した場合、前記レンズ制御手段を介して、前記ズーム位置を最適な位置に設定する手段と、を有し、
前記ズーム異常判定手段は、
前記算出した通過速度と、前記速度履歴管理手段が記憶している通過速度の平均値とを比較し、前記算出した通過速度が前記平均値より所定値以上大きい場合、あるいは、前記算出した視野サイズと予め定めた最適視野サイズとの差が所定値以上の場合に、前記ズーム位置が異常と判定すること
を特徴とする車番認識装置。 In a vehicle number recognition device that receives image data from a television camera that captures a vehicle, processes the received image data, and recognizes a vehicle license plate,
The television camera is provided with an electric lens that receives a control signal from the outside and sets the zoom position of the lens,
A lens control means for transmitting a control signal to the electric lens and setting a zoom position of the lens of the electric lens;
Recognizing means for detecting a vehicle using the image data received from the television camera and recognizing a license plate of the detected vehicle;
Means for calculating the detected passing speed of the vehicle;
Speed history management means for storing the calculated passing speed as a speed history ;
Means for calculating the visual field size of the screen using the image of the license plate recognized by the recognition means;
Zoom abnormality determining means for determining whether or not the zoom position is abnormal ;
If the zoom position is determined to be abnormal, through the lens control unit, anda means for setting the optimum position of the zoom position,
The zoom abnormality determining means includes
The calculated passing speed is compared with the average value of the passing speeds stored in the speed history management means , and the calculated passing speed is larger than the average value by a predetermined value or the calculated view size When the difference between the predetermined optimum visual field size is a predetermined value or more, the zoom position is determined to be abnormal .
前記テレビカメラには、外部からの制御信号を受付けてフォーカス位置を設定する電動レンズが設けられていて、
前記テレビカメラから受付けた画像データの中からナンバープレートの画像を検出し、当該検出したナンバープレートの画像を用いて車のナンバープレートを認識すると共に、ナンバープレートの画面上での位置(プレート位置)を求めるプレート認識手段と、
前記検出したナンバープレートのピントのボケ状態を定量化した評価値を求める評価手段と、
前記電動レンズに制御信号を送信し、前記電動レンズのフォーカス位置を予め定められた複数のフォーカス位置に順次移動させ、前記プレート認識手段および前記評価手段を制御し、当該移動させたフォーカス位置毎に複数台分の車両の前記プレート位置および前記評価値を求め、当該求めたプレート位置および評価値を用いてフォーカス位置毎の代表評価値を算出し、当該算出した代表評価値の中から、ピントが最も合っている値の代表評価値が求められたフォーカス位置を特定し、前記電動レンズのフォーカス位置を前記特定したフォーカス位置に設定する手段と、を有すること
を特徴とする車番認識装置。 In a vehicle number recognition device that receives image data from a television camera that captures a vehicle, processes the received image data, and recognizes a vehicle license plate,
The television camera is provided with an electric lens that receives a control signal from the outside and sets a focus position.
The license plate image is detected from the image data received from the television camera, and the license plate image is recognized using the detected license plate image, and the position of the license plate on the screen (plate position) Plate recognition means for
Evaluation means for obtaining an evaluation value quantifying the out-of-focus state of the detected license plate;
A control signal is transmitted to the motorized lens, the focus position of the motorized lens is sequentially moved to a plurality of predetermined focus positions, the plate recognition unit and the evaluation unit are controlled, and for each focus position moved. The plate positions and the evaluation values of a plurality of vehicles are obtained, a representative evaluation value for each focus position is calculated using the obtained plate positions and evaluation values, and the focus is calculated from the calculated representative evaluation values. A vehicle number recognition apparatus comprising: means for specifying a focus position at which a representative evaluation value of the most suitable value is obtained, and setting the focus position of the electric lens to the specified focus position.
前記評価手段は、
前記プレート認識手段が検出したナンバープレートの画像を用いて、当該ナンバープレートの一連番号を切り出し、当該切り出した一連番号の文字領域ごとに文字輪郭のボケ状態を定量化し、当該定量化された値の平均値を当該ナンバープレートの評価値とすること
を特徴とする車番認識装置。 In the vehicle number recognition device according to claim 3 ,
The evaluation means includes
Using the license plate image detected by the plate recognition means, the serial number of the license plate is cut out, the blurring state of the character outline is quantified for each character area of the cut out serial number, and the quantified value of A vehicle number recognition device characterized in that an average value is an evaluation value of the license plate.
前記プレート認識手段は、前記ナンバープレートの文字を認識した際、認識精度を表す値である確信度を算出し、
前記評価手段は、
前記プレート認識手段が算出したナンバープレートの一連番号、陸運支局コード、車種コード、および用途コードの少なくとも一つの確信度を利用して、前記ナンバープレートの評価値を算出すること
を特徴とする車番認識装置。 In the vehicle number recognition device according to claim 3 ,
The plate recognizing means calculates a certainty factor that is a value representing recognition accuracy when recognizing the characters of the license plate,
The evaluation means includes
An evaluation value of the license plate is calculated using at least one confidence factor of a serial number of the license plate calculated by the plate recognition means, a land transportation branch office code, a vehicle type code, and a use code. Recognition device.
前記プレート認識手段は、前記ナンバープレートの文字を認識した際、認識精度を表す値である確信度を算出し、
前記評価部は、
前記プレート認識手段が算出したナンバープレートの一連番号、陸運支局コード、車種コード、および用途コードの中の少なくとも二つの確信度の乗算値を利用して前記ナンバープレートの評価値を算出すること
を特徴とする車番認識装置。 The vehicle number recognition device according to claim 3 ,
The plate recognizing means calculates a certainty factor that is a value representing recognition accuracy when recognizing the characters of the license plate,
The evaluation unit is
The evaluation value of the license plate is calculated using a multiplication value of at least two certainty factors among the serial number of the license plate calculated by the plate recognition means, the land transportation branch office code, the vehicle type code, and the use code. Car number recognition device.
前記プレート認識手段は、前記ナンバープレートの文字を認識した際、認識精度を表す値である確信度を算出し、
前記評価部は、
前記プレート認識手段が出力する確信度の中から、あらかじめ定めた陸運支局コードの認識結果の確信度を利用して前記ナンバープレートの評価値を算出すること
を特徴とする車番認識装置。 The vehicle number recognition device according to claim 3 ,
The plate recognizing means calculates a certainty factor that is a value representing recognition accuracy when recognizing the characters of the license plate,
The evaluation unit is
A vehicle number recognition device characterized in that the evaluation value of the license plate is calculated using the certainty of the recognition result of a predetermined land transportation branch code from the certainty output from the plate recognition means.
前記評価手段は、
前記プレート認識手段が認識したナンバープレートの中から中型プレートのデータを利用して、評価値を算出すること
を特徴とする車番認識装置。 The vehicle number recognition device according to claim 3 ,
The evaluation means includes
An evaluation value is calculated using data of a medium-sized plate among license plates recognized by the plate recognition means.
前記テレビカメラには、外部からの制御信号を受付けてズーム位置を設定する電動レンズが設けられていて、
前記テレビカメラから受付けた画像データの中からナンバープレートの画像を検出し、当該検出したナンバープレートの画像を用いて車のナンバープレートを認識すると共に、ナンバープレートの画面上での位置(プレート位置)を求めるプレート認識手段と、
前記検出したナンバープレートの画像を用いて、当該ナンバープレートの文字間隔から画面の視野サイズを算出する視野サイズ算出手段と、
前記電動レンズに制御信号を送信し、前記電動レンズのズーム位置を予め定められた複数のズーム位置に順次移動させ、当該移動させたズーム位置毎に前記プレート認識手段および前記視野サイズ算出手段を制御し、複数台分の車両の前記プレート位置および前記視野サイズを求め、当該求めたプレート位置および視野サイズを用いてズーム位置毎の代表視野サイズを算出し、当該算出した代表視野サイズの中から予め定められている視野サイズに最も近い値を持つ代表視野サイズが求められたズーム位置を特定し、前記電動レンズのズーム位置を前記特定したズーム位置に設定する手段と、を有すること
を特徴とする車番認識装置。 In a vehicle number recognition device that receives image data from a television camera that captures a vehicle, processes the received image data, and recognizes a vehicle license plate,
The television camera is provided with an electric lens for receiving a control signal from the outside and setting a zoom position,
The license plate image is detected from the image data received from the television camera, and the license plate image is recognized using the detected license plate image, and the position of the license plate on the screen (plate position) Plate recognition means for
Visual field size calculation means for calculating the visual field size of the screen from the character spacing of the license plate, using the detected license plate image;
A control signal is transmitted to the electric lens, the zoom position of the electric lens is sequentially moved to a plurality of predetermined zoom positions, and the plate recognition unit and the field size calculation unit are controlled for each of the moved zoom positions. Then, the plate position and the field size of a plurality of vehicles are obtained, a representative field size for each zoom position is calculated using the obtained plate position and field size, and the representative field size is calculated in advance from the calculated representative field sizes. A zoom position where a representative visual field size having a value closest to a predetermined visual field size is determined, and a zoom position of the electric lens is set to the specified zoom position. Car number recognition device.
前記視野サイズ算出手段は、
前記プレート認識手段が認識したナンバープレートの中から中型のナンバープレートのデータを利用して視野サイズを算出すること
を特徴とする車番認識装置。 The vehicle number recognition device according to claim 9 ,
The visual field size calculation means includes
A vehicle number recognizing device, wherein a visual field size is calculated using data of a medium-sized license plate from among license plates recognized by the plate recognizing means.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005048776A JP4279790B2 (en) | 2005-02-24 | 2005-02-24 | Car number recognition device |
| CN200610004222A CN100587758C (en) | 2005-02-24 | 2006-01-27 | Vehicle number plate recognition device, method for adjusting motorized lens of the vehicle number plate recognition device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005048776A JP4279790B2 (en) | 2005-02-24 | 2005-02-24 | Car number recognition device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006235921A JP2006235921A (en) | 2006-09-07 |
| JP4279790B2 true JP4279790B2 (en) | 2009-06-17 |
Family
ID=36936034
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005048776A Expired - Fee Related JP4279790B2 (en) | 2005-02-24 | 2005-02-24 | Car number recognition device |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP4279790B2 (en) |
| CN (1) | CN100587758C (en) |
Families Citing this family (32)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4924407B2 (en) * | 2007-12-25 | 2012-04-25 | 富士通株式会社 | Sensor diagnostic method and sensor diagnostic apparatus |
| JP5213681B2 (en) * | 2008-12-16 | 2013-06-19 | 三菱電機株式会社 | Image processing device |
| JP5258601B2 (en) * | 2009-01-29 | 2013-08-07 | 三菱電機株式会社 | License plate reader and license plate reading system |
| JP2011086082A (en) * | 2009-10-15 | 2011-04-28 | Hitachi Ltd | Vehicle number recognition device and method for adjusting the same |
| JP5444065B2 (en) * | 2010-03-19 | 2014-03-19 | 富士フイルム株式会社 | Compound eye imaging apparatus and control method thereof |
| CN102074113B (en) * | 2010-09-17 | 2013-04-10 | 浙江大华技术股份有限公司 | License tag recognizing and vehicle speed measuring method based on videos |
| JP5664078B2 (en) * | 2010-09-27 | 2015-02-04 | 富士通株式会社 | Imaging apparatus, image evaluation method, and focus adjustment control program |
| JP2012128669A (en) * | 2010-12-15 | 2012-07-05 | Sumitomo Electric Ind Ltd | Vehicle color determining device, computer program and vehicle color determining method |
| JP5603302B2 (en) * | 2011-07-21 | 2014-10-08 | 株式会社日立製作所 | Vehicle monitoring device |
| CN102411844A (en) * | 2011-07-25 | 2012-04-11 | 北京汉王智通科技有限公司 | Vehicle picture acquisition method and device |
| CN103000028B (en) * | 2011-09-14 | 2015-12-09 | 上海宝康电子控制工程有限公司 | Number plate of vehicle recognition system and recognition methods |
| JP5910252B2 (en) * | 2012-03-31 | 2016-04-27 | 富士通株式会社 | Imaging setting control system and imaging setting control method |
| CN102693431B (en) * | 2012-05-31 | 2014-09-24 | 贺江涛 | Method and device for identifying type of white number plate |
| CN104067606A (en) * | 2012-11-16 | 2014-09-24 | 松下电器(美国)知识产权公司 | Camera, camera system and self-diagnosis method |
| JP5979046B2 (en) * | 2013-03-19 | 2016-08-24 | 富士通株式会社 | Focus position detection device, focus position detection method, and computer program for focus position detection |
| CN103268703A (en) * | 2013-05-23 | 2013-08-28 | 华录智达科技有限公司 | Snapshot system for bus lane |
| CN103426311A (en) * | 2013-06-27 | 2013-12-04 | 深圳市捷顺科技实业股份有限公司 | Handset and vehicle management system |
| JP6354186B2 (en) * | 2014-02-07 | 2018-07-11 | 富士通株式会社 | Information processing apparatus, blur condition calculation method, and program |
| JP6307953B2 (en) * | 2014-03-13 | 2018-04-11 | 富士通株式会社 | License plate recognition device, license plate recognition system, license plate recognition program, and license plate recognition method |
| CN104504906B (en) * | 2014-12-25 | 2017-09-19 | 深圳市捷顺科技实业股份有限公司 | License plate recognition method and system |
| JP6524721B2 (en) * | 2015-03-06 | 2019-06-05 | 富士通株式会社 | Recognition device, recognition system, recognition program and recognition method |
| CN105139659A (en) * | 2015-10-09 | 2015-12-09 | 东方网力科技股份有限公司 | Vehicle license plate recognition method and device |
| CN107566727A (en) * | 2017-09-19 | 2018-01-09 | 深圳云停智能交通技术研究院有限公司 | A kind of video camera Automatic adjustment method |
| CN108182810A (en) * | 2018-01-16 | 2018-06-19 | 江苏海天科技有限公司 | A kind of number plate is checked automatically and intercepting system |
| JP6580213B1 (en) * | 2018-06-06 | 2019-09-25 | キヤノン株式会社 | Image processing apparatus, photographing apparatus, image processing method, and program |
| CN109559522B (en) * | 2019-01-21 | 2021-09-28 | 熵基科技股份有限公司 | Debugging method, telescopic upright post, camera and storage medium |
| JP7304508B2 (en) * | 2019-02-19 | 2023-07-07 | 株式会社シンクアウト | Information processing system and information processing program |
| KR102250077B1 (en) * | 2019-07-23 | 2021-05-10 | 파킹클라우드 주식회사 | Method, device and computer readable storage medium for monitoring of license plate recognition rate |
| JP7831812B2 (en) * | 2020-01-28 | 2026-03-17 | i-PRO株式会社 | Surveillance camera, camera parameter determination method, and program |
| CN111652125B (en) * | 2020-06-02 | 2023-03-24 | 马鞍山芯乔科技有限公司 | AI object arrangement and interval automatic identification system |
| US12541984B2 (en) * | 2021-08-13 | 2026-02-03 | Axon Enterprise, Inc. | Detecting change in quality and other obstructions in license plate recognition systems |
| KR102709738B1 (en) * | 2024-03-07 | 2024-09-25 | 건아정보기술 주식회사 | Automatic alarm and automatic recovery for number recognition camera error using AI function Vehicle number reading system |
-
2005
- 2005-02-24 JP JP2005048776A patent/JP4279790B2/en not_active Expired - Fee Related
-
2006
- 2006-01-27 CN CN200610004222A patent/CN100587758C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN1825381A (en) | 2006-08-30 |
| JP2006235921A (en) | 2006-09-07 |
| CN100587758C (en) | 2010-02-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4279790B2 (en) | Car number recognition device | |
| EP3641304B1 (en) | Target object capturing method and device, and video monitoring device | |
| EP2549738B1 (en) | Method and camera for determining an image adjustment parameter | |
| KR100792283B1 (en) | Automatic tracking device and method of moving object | |
| EP3641298B1 (en) | Method and device for capturing target object and video monitoring device | |
| US11159711B2 (en) | Image-capturing apparatus | |
| US8203643B2 (en) | Automatic focusing device | |
| JP2015104016A (en) | Subject detection apparatus, imaging apparatus, subject detection apparatus control method, subject detection apparatus control program, and storage medium | |
| KR101672501B1 (en) | Method and apparatus for determining a need for a change in a pixel density requirement due to changing light conditions | |
| EP3061237B1 (en) | System and method for automatic focusing based on statistic data | |
| US20050052533A1 (en) | Object tracking method and object tracking apparatus | |
| KR101974105B1 (en) | Photographing system and method for increasing recognition rate of vehicle number | |
| CN107168001B (en) | Curtain, projection system and focusing method | |
| KR102506971B1 (en) | Method and system for recognizing license plates of two-wheeled vehicles through deep-learning-based rear shooting | |
| US7965935B2 (en) | Control device and method for camera unit and program for implementing the control method | |
| KR102473142B1 (en) | Fast zoom and focusing apparatus predicting for high-speed tracking and predicting moving object for camera for providing a high-quality image seamlessly and method for high-speed tracking and predicting moving object for camera using the same | |
| EP3205084A1 (en) | Image processing method | |
| JP2014146979A (en) | Monitor camera system, imaging apparatus, and imaging method | |
| CN113840137B (en) | Verification method and system for mobile detection sensitivity of network camera | |
| JP2006267221A (en) | Auto focus system | |
| JP5127692B2 (en) | Imaging apparatus and tracking method thereof | |
| US10962860B2 (en) | System and method for optimizing focus of optical system passively | |
| KR101982091B1 (en) | Surround view monitoring system | |
| EP3054668B1 (en) | Method and device for processing a video stream | |
| KR20190110369A (en) | Intelligent camera system for automatic tracking of specified subject and image capturing method using the same |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061220 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081128 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081202 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090121 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090310 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090312 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120319 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120319 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120319 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130319 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130319 Year of fee payment: 4 |
|
| LAPS | Cancellation because of no payment of annual fees |