Movatterモバイル変換


[0]ホーム

URL:


JP2018084925A - Parking frame detection device, parking frame detection method, program, and non-temporary recording medium - Google Patents

Parking frame detection device, parking frame detection method, program, and non-temporary recording medium
Download PDF

Info

Publication number
JP2018084925A
JP2018084925AJP2016227150AJP2016227150AJP2018084925AJP 2018084925 AJP2018084925 AJP 2018084925AJP 2016227150 AJP2016227150 AJP 2016227150AJP 2016227150 AJP2016227150 AJP 2016227150AJP 2018084925 AJP2018084925 AJP 2018084925A
Authority
JP
Japan
Prior art keywords
image
parking frame
edge pixel
pixel
voting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016227150A
Other languages
Japanese (ja)
Inventor
真依子 鹿谷
Maiko Shikatani
真依子 鹿谷
健介 丸谷
Kensuke Marutani
健介 丸谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Intellectual Property Management Co LtdfiledCriticalPanasonic Intellectual Property Management Co Ltd
Priority to JP2016227150ApriorityCriticalpatent/JP2018084925A/en
Publication of JP2018084925ApublicationCriticalpatent/JP2018084925A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromJapanese

【課題】実線以外の駐車枠を検出するための、改善された駐車枠検知装置、駐車枠検知方法、プログラム、および非一時的記録媒体を提供する。【解決手段】本開示の一態様に係る駐車枠検出装置は、撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する画像前処理部と、第2の画像において、第1のエッジ画素から、第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、第1のエッジ画素と第2のエッジ画素との中間座標に投票し、第2の画像における投票の結果に基づいて、第2の画像において駐車枠を検出する画像制御部と、を備える構成を採る。【選択図】図1An improved parking frame detection device, a parking frame detection method, a program, and a non-temporary recording medium for detecting a parking frame other than a solid line are provided. A parking frame detection device according to an aspect of the present disclosure includes: an image pre-processing unit that performs a bird's-eye conversion on a first image captured by an imaging unit and generates a second image; When the second edge pixel is included in a search region that is separated from the first edge pixel by a predetermined distance in the direction perpendicular to the gradient direction of the pixel value in the first edge pixel, the first edge pixel and the second edge pixel An image control unit that votes for the intermediate coordinates with the edge pixel and detects a parking frame in the second image based on the result of voting in the second image is adopted. [Selection] Figure 1

Description

Translated fromJapanese

本開示は、駐車枠検知装置、駐車枠検知方法、プログラム、および非一時的記録媒体に関する。  The present disclosure relates to a parking frame detection device, a parking frame detection method, a program, and a non-temporary recording medium.

近年、カメラ技術の進歩、コストダウン等に伴い、車載カメラを利用して運転を支援するための様々なシステムが開発されている。例えば、車載カメラによって撮像された車両の周囲の画像から、路面上に引かれた白線等によって規定された駐車枠の位置を検出し、検出した位置に車両を誘導することにより、車両の駐車を支援するシステムが開発されている。  In recent years, with the advancement of camera technology, cost reduction, and the like, various systems for supporting driving using an in-vehicle camera have been developed. For example, the position of the parking frame defined by the white line drawn on the road surface is detected from the image around the vehicle imaged by the in-vehicle camera, and the vehicle is parked by guiding the vehicle to the detected position. A supporting system has been developed.

一般に、車載カメラによって撮像された画像に、路面上の縁石や段差、路面上の反射、路面上の影などのノイズが含まれる。そのようなノイズの影響を受けずに、路面に描かれた駐車枠の位置を検出する車載画像処理装置が提案されている(特許文献1参照)。特許文献1に記載の手法においては、輝度値が明るい方向に変化する第1の画素の位置と、第1の画素から所定距離以内にあり、輝度値が暗い方向に変化する第2の画素の位置を検出する。次いで、直線をなす複数の第1の画素からなる線素の両端点と複数の第2の画素からなる線素の両端点に囲まれた領域を、駐車枠を構成する白線候補領域として検出する。  In general, an image captured by an in-vehicle camera includes noise such as curbs and steps on the road surface, reflection on the road surface, and shadow on the road surface. An in-vehicle image processing device that detects the position of a parking frame drawn on a road surface without being affected by such noise has been proposed (see Patent Document 1). In the method described inPatent Document 1, the position of the first pixel whose luminance value changes in the bright direction and the second pixel whose luminance value changes in the dark direction within a predetermined distance from the first pixel. Detect position. Next, a region surrounded by both end points of the line element composed of a plurality of first pixels forming a straight line and both end points of the line element composed of a plurality of second pixels is detected as a white line candidate region constituting the parking frame. .

国際公開第2014/084118号International Publication No. 2014/084118

しかしながら、特許文献1に記載の従来技術では、十分に駐車スペースを検出できない場合があった。  However, the conventional technique described inPatent Document 1 sometimes fails to detect a parking space sufficiently.

本開示の目的は、実線以外の駐車枠を検出するための、改善された駐車枠検知装置、駐車枠検知方法、プログラム、および非一時的記録媒体を提供することである。  An object of the present disclosure is to provide an improved parking frame detection device, a parking frame detection method, a program, and a non-temporary recording medium for detecting a parking frame other than a solid line.

本開示の一態様に係る駐車枠検出装置は、撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する画像前処理部と、前記第2の画像において、第1のエッジ画素から、前記第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票し、前記第2の画像における前記投票の結果に基づいて、前記第2の画像において駐車枠を検出する画像制御部と、を備える構成を採る。  In the parking frame detection device according to an aspect of the present disclosure, the first image captured by the imaging unit is converted to a bird's-eye view, and the first image is generated in the first image. When the second edge pixel is included in a search region that is separated from the edge pixel by a predetermined distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel, the first edge pixel and the second edge pixel And an image control unit that detects a parking frame in the second image based on a result of the voting in the second image.

本開示の一態様に係る駐車枠検出方法は、撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する第1のステップと、前記第2の画像において、第1のエッジ画素から、前記第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票し、前記第2の画像における前記投票の結果に基づいて、前記第2の画像において駐車枠を検出する第2のステップと、を備える構成を採る。  A parking frame detection method according to an aspect of the present disclosure includes a first step of performing a bird's-eye conversion on a first image captured by an imaging unit and generating a second image; When the second edge pixel is included in a search region that is separated from the edge pixel by a predetermined distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel, the first edge pixel and the second edge pixel And a second step of detecting a parking frame in the second image based on the result of the voting in the second image.

本開示の一態様に係るプログラムは、駐車枠検出装置が備えるコンピュータに、撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する第1のステップと、前記第2の画像において、第1のエッジ画素から、前記第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票し、前記第2の画像における前記投票の結果に基づいて、前記第2の画像において駐車枠を検出する第2のステップと、を実行させる構成を採る。  A program according to an aspect of the present disclosure includes a first step of generating a second image by performing bird's-eye conversion on a first image captured by an imaging unit in a computer included in a parking frame detection device, and the second step. In the image, when the second edge pixel is included in a search region that is separated from the first edge pixel by a predetermined distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel, the first edge pixel Voting on intermediate coordinates between an edge pixel and the second edge pixel, and performing a second step of detecting a parking frame in the second image based on the result of the voting in the second image. Use a configuration that allows

本開示の一態様に係るコンピュータ読み取り可能なプログラムを記録した非一時的記録媒体は、駐車枠検出装置が備えるコンピュータに、撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する第1のステップと、前記第2の画像において、第1のエッジ画素から、前記第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票し、前記第2の画像における前記投票の結果に基づいて、前記第2の画像において駐車枠を検出する第2のステップと、を実行させるプログラムを記録した構成を採る。  A non-transitory recording medium that records a computer-readable program according to an aspect of the present disclosure is a computer with which a parking frame detection device includes a first image captured by an imaging unit. In the first step of generating, in the second image, a second search area is separated from the first edge pixel by a predetermined distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel. Voting on intermediate coordinates between the first edge pixel and the second edge pixel and parking in the second image based on the result of the voting in the second image. A configuration in which a program for executing the second step of detecting a frame is recorded is adopted.

本開示によれば、実線以外の駐車枠を検出するための、改善された駐車枠検知装置、駐車枠検知方法、プログラム、および非一時的記録媒体を提供することができる。  According to the present disclosure, it is possible to provide an improved parking frame detection device, a parking frame detection method, a program, and a non-temporary recording medium for detecting a parking frame other than a solid line.

第1の実施の形態に係る駐車枠検知システムの構成図である。It is a lineblock diagram of the parking frame detection system concerning a 1st embodiment.第1の実施の形態に係る駐車枠検知システムの動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the parking frame detection system which concerns on 1st Embodiment.図2のステップS2の処理内容の一例を示すフローチャートである。It is a flowchart which shows an example of the processing content of step S2 of FIG.画素の座標における画素値の勾配方向および勾配強度の求め方の一例を説明する図である。It is a figure explaining an example of the method of calculating | requiring the gradient direction and gradient strength of the pixel value in the coordinate of a pixel.エッジ画素に対して決定される探索領域の一例を示す。An example of the search area | region determined with respect to an edge pixel is shown.投票の一例を説明する図である。It is a figure explaining an example of voting.コンピュータのハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of a computer.

以下、本開示の実施の形態について、図面を参照して詳細に説明する。  Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.

まず、発明者による従来技術の課題の考察が記載される。一般に、駐車枠を構成する線は、実線である場合のみならず、破線である場合がある。また、例えば、塗装が剥げることにより、駐車場を構成する線が部分的に欠損している場合もある。さらに、駐車枠が塗装されている場合のみならず、駐車枠が地面に埋め込まれた石、煉瓦、タイル等により規定されている場合もある。このような様々なパターンの駐車枠に対して、特許文献1に記載の手法を適用すると、複数の第1の画素からなる線素の両端点も、複数の第2の画素からなる線素の両端点も、直線をなさない。したがって、特許文献1に記載の手法を適用しても、駐車枠を検出できない問題があった。  First, consideration of the problems of the prior art by the inventors will be described. In general, a line constituting the parking frame may be a broken line as well as a solid line. In addition, for example, the lines constituting the parking lot may be partially missing due to peeling of the paint. Furthermore, not only when the parking frame is painted, the parking frame may be defined by stones, bricks, tiles or the like embedded in the ground. When the method described inPatent Document 1 is applied to such various patterns of parking frames, both end points of a line element composed of a plurality of first pixels are also formed of line elements composed of a plurality of second pixels. Both end points do not form a straight line. Therefore, even if the method described inPatent Document 1 is applied, there is a problem that the parking frame cannot be detected.

(第1の実施の形態)
図1は、第1の実施の形態に係る駐車枠検知システム1の構成図である。駐車枠検知システム1は、撮像部2と、カメラECU3と、車両制御部4と、を備える。
(First embodiment)
FIG. 1 is a configuration diagram of a parkingframe detection system 1 according to the first embodiment. The parkingframe detection system 1 includes animaging unit 2, a camera ECU 3, and avehicle control unit 4.

撮像部2は、車両に搭載され、車両の周囲を撮像する。一例において、撮像部2は、車両の全周囲に亘って撮像することができる、魚眼レンズを備えた複数の車載カメラを備える。複数の車載カメラは、例えば、左右のドアミラーに設置された2台の車載カメラである。  Theimaging unit 2 is mounted on a vehicle and images the surroundings of the vehicle. In one example, theimaging unit 2 includes a plurality of in-vehicle cameras including a fisheye lens that can capture an image of the entire periphery of the vehicle. The plurality of in-vehicle cameras are, for example, two in-vehicle cameras installed on the left and right door mirrors.

カメラECU3は、撮像部2が撮像した画像に基づいて駐車枠を検出し、検出された駐車枠の位置の情報を車両制御部4に出力する駐車枠検出装置として機能する。一例において、カメラECU3は、撮像部3とFPD Link IIIを介して接続され、かつ車両制御部4とCAN(Controller Area Network)を介して接続される。カメラECU3は、画像前処理部5と、画像制御部6とを備える。  The camera ECU 3 functions as a parking frame detection device that detects a parking frame based on an image captured by theimaging unit 2 and outputs information on the position of the detected parking frame to thevehicle control unit 4. In one example, the camera ECU 3 is connected to the imaging unit 3 via the FPD Link III, and is connected to thevehicle control unit 4 via a CAN (Controller Area Network). The camera ECU 3 includes an image preprocessingunit 5 and an image control unit 6.

画像前処理部5は、撮像部2が撮像した第1の画像を前処理し、第2の画像を生成する。画像前処理部5は、例えば、撮像部2が撮像した複数の画像を、車両の周囲縦12mおよび横16mの範囲を車両の真上から鳥瞰する画像に鳥瞰変換することにより、撮像部2が撮像した画像を前処理する。  The image preprocessingunit 5 preprocesses the first image picked up by theimage pickup unit 2 and generates a second image. The image preprocessingunit 5 converts, for example, a plurality of images captured by theimage capturing unit 2 into a bird's eye view of a range of 12 m and 16 m around the vehicle from above the vehicle. Preprocess the captured image.

画像制御部6は、画像前処理部5が生成した第2の画像において駐車枠を検出する。一例において、画像制御部6は、検出された駐車枠の位置の情報(例えば、駐車枠の車両に対する相対位置)を車両制御部4に出力する。  The image control unit 6 detects a parking frame in the second image generated by the image preprocessingunit 5. In one example, the image control unit 6 outputs information on the position of the detected parking frame (for example, the relative position of the parking frame to the vehicle) to thevehicle control unit 4.

画像制御部6は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等を備える。CPUは、例えばROMから処理内容に応じたプログラムを読み出してRAMに展開し、展開したプログラムと協働して、画像制御部6の各ブロックの動作を集中制御する。画像制御部6は、投票候補判定部7と、投票処理部8と、投票結果集計部9と、投票結果正規化部10と、駐車枠候補点検出部11と、駐車枠検出部12と、相対位置算出部13とをして機能する。  The image control unit 6 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. For example, the CPU reads out a program corresponding to the processing content from the ROM, expands it in the RAM, and performs centralized control of the operation of each block of the image control unit 6 in cooperation with the expanded program. The image control unit 6 includes a votecandidate determination unit 7, avote processing unit 8, a voteresult totaling unit 9, a voteresult normalizing unit 10, a parking frame candidatepoint detecting unit 11, a parkingframe detecting unit 12, It functions as therelative position calculator 13.

投票候補判定部7は、画像前処理部5が生成した第2の画像からエッジを検出する。本明細書においては、投票候補判定部7が第2の画像から検出したエッジを構成する画素を、エッジ画素と称する。  The votecandidate determination unit 7 detects an edge from the second image generated by the image preprocessingunit 5. In the present specification, pixels constituting the edge detected from the second image by the votecandidate determination unit 7 are referred to as edge pixels.

さらに、投票候補判定部7は、第2の画像において、第1のエッジ画素における画素値の勾配方向と垂直な方向に第1のエッジ画素から所定の距離(第1の距離)だけ離れた探索領域に第2のエッジ画素が含まれるとき、第1のエッジ画素と第2のエッジ画素との中間座標を算出する。一例において、探索領域は、第1のエッジ画素における画素値の勾配方向と垂直な方向に第1のエッジ画素から第1の距離だけ離れた画素を含む。また、一例において、投票候補判定部7は、第1のエッジ画素の座標と第2のエッジ画素の座標との中点の座標を、第1のエッジ画素と第2のエッジ画素との中間座標として算出する。投票候補判定部7の処理内容の詳細は、図3に示されるフローチャートを参照して後述される。  Further, the votingcandidate determination unit 7 searches the second image at a predetermined distance (first distance) from the first edge pixel in a direction perpendicular to the gradient direction of the pixel value of the first edge pixel. When the second edge pixel is included in the region, an intermediate coordinate between the first edge pixel and the second edge pixel is calculated. In one example, the search region includes pixels that are separated from the first edge pixel by a first distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel. In one example, the votingcandidate determination unit 7 uses the coordinates of the midpoint between the coordinates of the first edge pixel and the coordinates of the second edge pixel as intermediate coordinates between the first edge pixel and the second edge pixel. Calculate as Details of processing contents of the votecandidate determination unit 7 will be described later with reference to a flowchart shown in FIG.

投票処理部8は、投票候補判定部7が算出した中間座標(投票座標)に投票する。第1の実施の形態において、投票座標は、駐車枠の候補の中心線上に位置すると仮定する画素の座標であり、その詳細は、図3に示されるフローチャートを参照して後述される。  Thevoting processing unit 8 votes for the intermediate coordinates (voting coordinates) calculated by the votingcandidate determination unit 7. In the first embodiment, the voting coordinates are the coordinates of a pixel that is assumed to be located on the center line of a parking frame candidate, and details thereof will be described later with reference to the flowchart shown in FIG.

投票結果集計部9は、投票処理部8が投票した結果を集計する。一例において、投票結果集計部9は、第2の画像を複数の小領域に分割し、各小領域に含まれる投票済みの投票座標の個数を計数することにより、投票の結果を集計する。  The votingresult totaling unit 9 totals the results voted by thevoting processing unit 8. In one example, the votingresult counting unit 9 divides the second image into a plurality of small areas, and counts the number of voted voting coordinates included in each small area, thereby counting the voting results.

投票結果正規化部10は、投票結果集計部9が集計した投票の結果を正規化する。一例において、投票結果正規化部10は、第2の画像の複数の小領域に含まれる投票済みの投票座標の個数の最大値を最大得票数として抽出する。次いで、投票結果正規化部10は、第2の画像の各小領域に対して、当該小領域に含まれる投票済みの投票座標の個数を最大投票数で除算して求めた正規化値を、当該小領域に対応付けることにより、投票の結果を正規化する。  The votingresult normalization unit 10 normalizes the voting results counted by the votingresult counting unit 9. In one example, the votingresult normalization unit 10 extracts the maximum value of the number of voted voting coordinates included in the plurality of small regions of the second image as the maximum number of votes. Next, the votingresult normalization unit 10 calculates a normalized value obtained by dividing the number of voted voting coordinates included in the small area by the maximum number of votes for each small area of the second image. The voting result is normalized by associating with the small area.

駐車枠候補点検出部11は、投票結果正規化部10が正規化した投票の結果に基づいて、駐車枠を構成する画素を、駐車枠候補点として検出する。一例において、駐車枠候補点検出部11は、第2の画像の各小領域のうち、所定の閾値を超える正規化値に対応付けられた小領域を選択する。次に、駐車枠候補点検出部11は、選択した小領域に含まれる投票座標の算出に用いた第1の画素を、駐車枠を構成する画素として抽出する。  The parking frame candidatepoint detection unit 11 detects pixels constituting the parking frame as parking frame candidate points based on the vote result normalized by the voteresult normalization unit 10. In one example, the parking frame candidatepoint detection unit 11 selects a small area associated with a normalized value that exceeds a predetermined threshold among the small areas of the second image. Next, the parking frame candidatepoint detection unit 11 extracts the first pixel used for calculating the voting coordinates included in the selected small area as a pixel constituting the parking frame.

駐車枠検出部12は、駐車枠候補点から定まる枠の大きさが車両を駐車するのに十分な大きさであるか否かを判定する。十分な大きさであると判定した場合、一例において、駐車枠検出部12は、駐車枠候補点から定まる枠の4つの端点を検出し、それぞれが4つの端点のうちの2つの端点で定まる2つの線分の方向のずれが所定の誤差に収まる場合、4つの端点を駐車枠の端点として検出することにより、駐車枠を検出する。  The parkingframe detection unit 12 determines whether or not the size of the frame determined from the parking frame candidate points is large enough to park the vehicle. When it is determined that the size is sufficient, in one example, the parkingframe detection unit 12 detects four end points of the frame determined from the parking frame candidate points, and each of the two end points is determined by two of the four end points. When the deviation in the direction of the two line segments falls within a predetermined error, the parking frame is detected by detecting the four end points as the end points of the parking frame.

相対位置算出部13は、駐車枠検出部12が検出した駐車枠の車両に対する相対位置を算出し、算出した相対位置を出力する。一例において、相対位置算出部13は、現在の車両の位置から駐車枠検出部12が検出した駐車枠の位置に車両を移動させるための経路を併せて算出し、算出した経路を出力する。  The relativeposition calculation unit 13 calculates the relative position of the parking frame detected by the parkingframe detection unit 12 with respect to the vehicle, and outputs the calculated relative position. In one example, the relativeposition calculation unit 13 calculates a route for moving the vehicle from the current vehicle position to the parking frame position detected by the parkingframe detection unit 12, and outputs the calculated route.

車両制御部4は、相対位置算出部13が出力した相対位置に基づいて、車両を移動させる。一例において、車両制御部4は、一例において、相対位置算出部13が出力した経路に基づいて、現在の車両の位置から駐車枠検出部12が検出した駐車枠の位置に車両を移動させる。  Thevehicle control unit 4 moves the vehicle based on the relative position output by the relativeposition calculation unit 13. In one example, thevehicle control unit 4 moves the vehicle from the current vehicle position to the parking frame position detected by the parkingframe detection unit 12 based on the route output by the relativeposition calculation unit 13 in one example.

図2は、第1の実施の形態に係る駐車枠検知システム1の動作の一例を示すフローチャートである。この処理は、例えば車両のエンジンが起動されることに伴い、駐車枠検知システム1のCPUがROMに格納されているプログラムを読み出して実行することにより実現される。  FIG. 2 is a flowchart showing an example of the operation of the parkingframe detection system 1 according to the first embodiment. This process is realized, for example, when the CPU of the parkingframe detection system 1 reads and executes a program stored in the ROM when the engine of the vehicle is started.

ステップS1において、画像制御部6は、駐車枠検知システム1のCPUがアクセス可能である記憶装置に、画像領域を確保する。例えば、記憶装置はRAM(Random Access Memory)であり、CPUが画像データ等を格納するための作業領域として、ヒープ領域をメモリ空間内に確保することにより、画像制御部6は、画像領域を確保する。  In step S <b> 1, the image control unit 6 secures an image area in a storage device accessible by the CPU of the parkingframe detection system 1. For example, the storage device is a RAM (Random Access Memory), and the image control unit 6 secures an image area by securing a heap area in the memory space as a work area for the CPU to store image data and the like. To do.

ステップS2において、画像前処理部5および画像制御部6は、駐車枠候補点を検出する(投票候補判定部7、投票処理部8、投票結果集計部9、投票結果正規化部10、および駐車枠候補点検出部11としての処理)。ステップS2の処理内容の詳細は、図3を参照して後述される。  In step S2, theimage preprocessing unit 5 and the image control unit 6 detect parking frame candidate points (the votingcandidate determination unit 7, thevoting processing unit 8, the votingresult totaling unit 9, the votingresult normalizing unit 10, and the parking Processing as the frame candidate point detection unit 11). Details of the processing content of step S2 will be described later with reference to FIG.

ステップS3において、画像制御部6は、駐車枠を検出する(駐車枠検出部12としての処理)。駐車枠検出部12は、駐車枠候補点から定まる枠の大きさが車両を駐車するのに十分な大きさであるか否かを判定する。十分な大きさであると判定した場合、一例において、駐車枠検出部12は、駐車枠候補点から定まる枠の4つの端点を検出し、それぞれが2つの端点で定まる2つの線分の方向のずれが所定の誤差に収まる場合、4つの端点を駐車枠の端点として検出することにより、駐車枠を検出する。  In step S3, the image control unit 6 detects a parking frame (processing as the parking frame detection unit 12). The parkingframe detection unit 12 determines whether or not the size of the frame determined from the parking frame candidate points is large enough to park the vehicle. If it is determined that the size is sufficient, in one example, the parkingframe detection unit 12 detects four end points of the frame determined from the parking frame candidate points, and each of the directions of the two line segments determined by the two end points is detected. When the deviation falls within a predetermined error, the parking frame is detected by detecting the four end points as the end points of the parking frame.

ステップS4において、画像制御部6は、駐車枠が検出されたか否かを判定する(駐車枠検出部12としての処理)。駐車枠が検出されなかった場合(ステップS4:No)、ステップS7に進む。  In step S4, the image control unit 6 determines whether or not a parking frame has been detected (processing as the parking frame detection unit 12). When a parking frame is not detected (step S4: No), it progresses to step S7.

駐車枠が検出された場合(ステップS4:Yes)、ステップS5に進む。ステップS5において、画像制御部6は、駐車枠と車両に対する相対位置または経路を算出する(相対位置算出部13としての処理)。次いで、ステップS6において、車両制御部4は、相対位置算出部13が算出した相対位置または経路に基づいて車両を移動する。これにより、車両が駐車枠内に納まり、駐車が完了する。  When the parking frame is detected (step S4: Yes), the process proceeds to step S5. In step S5, the image control unit 6 calculates a relative position or route with respect to the parking frame and the vehicle (processing as the relative position calculation unit 13). Next, in step S <b> 6, thevehicle control unit 4 moves the vehicle based on the relative position or route calculated by the relativeposition calculation unit 13. Thereby, the vehicle fits in the parking frame and the parking is completed.

ステップS7において、画像制御部6は、画像領域を解放する。例えば、ステップS1において駐車枠検知システム1のCPUが確保したヒープ領域を解放することにより、画像制御部6は、画像領域を解放する。  In step S7, the image control unit 6 releases the image area. For example, the image control unit 6 releases the image area by releasing the heap area secured by the CPU of the parkingframe detection system 1 in step S1.

図3は、図2のステップS2の処理内容の一例を示すフローチャートである。  FIG. 3 is a flowchart showing an example of the processing content of step S2 of FIG.

ステップS11において、画像前処理部5は、画像を前処理する。前処理は、例えば、上記の鳥瞰変換の他に、画像をグレースケール画像に変換するグレースケール変換を含む。さらに、例えば、駐車枠線を強調させるために、公知のガウシアンフィルタや最大値フィルタを適用してもよい。また、情報量を削減するために、画像を縮小してもよい。  In step S11, theimage preprocessing unit 5 preprocesses the image. The preprocessing includes, for example, gray scale conversion that converts an image into a gray scale image in addition to the above bird's-eye view conversion. Furthermore, for example, a known Gaussian filter or a maximum value filter may be applied to emphasize the parking frame line. Further, the image may be reduced in order to reduce the amount of information.

ステップS12において、画像制御部6は、第2の画像からエッジを検出する(投票候補判定部7としての処理)。例えば、投票候補判定部7は、Canny変換、Sobel演算子、Scharr演算子、Prewitt演算子、Roberts cross演算子等を用いる既知の方法を使用して、第2の画像からエッジを検出することができる。  In step S12, the image control unit 6 detects an edge from the second image (processing as the vote candidate determination unit 7). For example, the votingcandidate determination unit 7 may detect an edge from the second image using a known method using a Canny transformation, a Sobel operator, a Scherr operator, a Prewitt operator, a Roberts cross operator, or the like. it can.

次に、画像制御部6は、第2の画像から検出されたエッジの各エッジ画素(第1のエッジ画素)に対して、ステップS14〜S15を実行する。  Next, the image control unit 6 executes steps S14 to S15 for each edge pixel (first edge pixel) of the edge detected from the second image.

一般に、駐車枠の条件としては、駐車枠を構成する対向する2本の線が平行であるという条件が考えられる。この場合、対向する2本の線が、その周囲に対して高い輝度値または低い輝度値を有すると、一方の線のエッジ画素が、他方の線の対となるエッジ画素における画素値の勾配方向とは逆の勾配方向(逆勾配)を有すると考えられる。  In general, as a condition of the parking frame, a condition that two opposing lines constituting the parking frame are parallel can be considered. In this case, when two opposing lines have a high luminance value or a low luminance value with respect to the surroundings, the edge pixel of one line is the gradient direction of the pixel value of the edge pixel which is a pair of the other line. Is considered to have a reverse gradient direction (reverse gradient).

そこで、ステップS14において、画像制御部6は、第2の画像内のエッジを構成する第1のエッジ画素における画素値の勾配方向と垂直な方向に第1のエッジ画素から第1の距離だけ離れた探索領域に含まれる有効画素を求める(投票候補判定部7としての処理)。有効画素は、画素値の勾配方向が、第1のエッジ画素における画素値の勾配方向と逆の勾配方向を有し、かつ画素値の勾配強度が所定の勾配強度以上である画素である。ここで、所定の勾配強度は、例えば、駐車枠を構成する線、煉瓦等の色が、その周囲の色に対して有するコントラスト値の下限値に基づいて決定される。  Therefore, in step S14, the image control unit 6 moves away from the first edge pixel by a first distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel constituting the edge in the second image. The effective pixels included in the search area are obtained (processing as the vote candidate determination unit 7). The effective pixel is a pixel in which the gradient direction of the pixel value has a gradient direction opposite to the gradient direction of the pixel value in the first edge pixel, and the gradient strength of the pixel value is equal to or greater than a predetermined gradient strength. Here, the predetermined gradient strength is determined based on, for example, the lower limit value of the contrast value that the color of the line, brick, etc. constituting the parking frame has with respect to the surrounding color.

図4は、画素の座標における画素値の勾配方向および勾配強度の求め方の一例を説明する図である。画像Iにおける画素P0の座標値を(X,Y)としたときに、値fxおよび値fyを次の(数式1)および(数式2)で定義する。  FIG. 4 is a diagram illustrating an example of how to obtain the gradient direction and gradient strength of the pixel value in the pixel coordinates. When the coordinate value of the pixel P0 in the image I is (X, Y), the value fx and the value fy are defined by the following (Formula 1) and (Formula 2).

Figure 2018084925
Figure 2018084925

Figure 2018084925
Figure 2018084925

ここで、Q(X,Y)は、画像Iの座標(X,Y)にある画素の輝度値を表す。次いで、勾配強度Intおよび勾配方向Dを、例えば、次の(数式3)および(数式4)で定義する。  Here, Q (X, Y) represents the luminance value of the pixel located at the coordinates (X, Y) of the image I. Next, the gradient strength Int and the gradient direction D are defined by, for example, the following (Equation 3) and (Equation 4).

Figure 2018084925
Figure 2018084925

Figure 2018084925
Figure 2018084925

ここで、atan2(fx,fy)は、fy/fxの逆正接を表す。一例において、座標S1における画素値の勾配方向D1および座標S2における画素値の勾配方向D2のなす角度がπ−ε(rad)より大きく、π+ε(rad)より小さいとき、勾配方向D1は、勾配方向D2と逆の勾配方向(逆勾配)であると判定する。ここで、εは十分小さい任意の正の値であり、例えば、π/10である。  Here, atan2 (fx, fy) represents the arc tangent of fy / fx. In one example, when the angle formed by the gradient direction D1 of the pixel value at the coordinate S1 and the gradient direction D2 of the pixel value at the coordinate S2 is larger than π−ε (rad) and smaller than π + ε (rad), the gradient direction D1 is the gradient direction. It is determined that the gradient direction is opposite to D2 (reverse gradient). Here, ε is a sufficiently small arbitrary positive value, for example, π / 10.

一例において、勾配強度および勾配方向の算出は、ステップS12におけるエッジ検出の際に算出される勾配値を用いて算出してもよい。こうすると、ステップS14において勾配強度および勾配方向の算出を繰り返す必要がないので、計算コストが低減される。  In one example, the gradient strength and the gradient direction may be calculated using the gradient value calculated at the time of edge detection in step S12. This eliminates the need to repeat the calculation of the gradient strength and gradient direction in step S14, thereby reducing the calculation cost.

図5は、エッジ画素P0に対して決定される探索領域の一例を示す。一例において、探索領域は、画像Iにおいて、エッジL1上のエッジ画素(第1のエッジ画素)P0の座標から、エッジ画素P0における画素値の勾配方向(L1に平行な方向)に垂直な方向に第1の距離Rだけ離れた座標にある画素P1を含む領域A1として決定される。例えば、領域A1は、画素P1をその中心に含む。  FIG. 5 shows an example of the search area determined for the edge pixel P0. In one example, the search region is a direction perpendicular to the gradient direction of the pixel value in the edge pixel P0 (direction parallel to L1) from the coordinates of the edge pixel (first edge pixel) P0 on the edge L1 in the image I. The region A1 is determined to include the pixel P1 located at the coordinates separated by the first distance R. For example, the region A1 includes the pixel P1 at the center.

第1の距離Rは、想定される駐車枠の大きさまたは車両の幅に基づいて定められる任意の値である。また、探索領域の大きさは、所定の大きさを有する領域であり、例えば、辺の長さがR/2の正方形の領域である。  The first distance R is an arbitrary value determined based on the assumed size of the parking frame or the width of the vehicle. The size of the search area is an area having a predetermined size, for example, a square area having a side length of R / 2.

図5に示される画像Iにおいて、画素P1は、他のエッジL2上にあるので、画素P1は、エッジ画素(第2のエッジ画素)P1である。したがって、エッジ画素P1が所定の勾配強度以上の勾配強度を有し、かつエッジ画素P0およびエッジ画素P1が逆勾配を有するとき、投票候補判定部7は、エッジ画素P1を有効画素であると判定する。  In the image I shown in FIG. 5, since the pixel P1 is on the other edge L2, the pixel P1 is an edge pixel (second edge pixel) P1. Therefore, when the edge pixel P1 has a gradient strength equal to or higher than the predetermined gradient strength, and the edge pixel P0 and the edge pixel P1 have reverse gradients, the votecandidate determination unit 7 determines that the edge pixel P1 is an effective pixel. To do.

図5に示される画像Iにおいて、第2のエッジ画素P1が有効画素である場合、投票候補判定部7は、第1のエッジ画素P0および第2のエッジ画素P1の中間にある座標を、中間座標として算出する。例えば、中間座標は、第1のエッジ画素P0の座標および第2のエッジ画素P1の座標の中点P2である。  In the image I shown in FIG. 5, when the second edge pixel P1 is an effective pixel, the votingcandidate determination unit 7 determines the intermediate coordinates between the first edge pixel P0 and the second edge pixel P1 as intermediate. Calculate as coordinates. For example, the intermediate coordinates are the midpoint P2 of the coordinates of the first edge pixel P0 and the coordinates of the second edge pixel P1.

ステップS15において、中間座標(投票座標)に投票する(投票処理部8としての処理)。  In step S15, votes are given to the intermediate coordinates (voting coordinates) (processing as the voting processing unit 8).

図6は、投票の一例を説明する図である。図6には、エッジL1上にある第1のエッジ画素P0に対して、投票処理部8は、第1のエッジ画素P0に対して数式4によって求められた基準線LBからの勾配方向θと垂直な方向に第2の距離r(=R/2)だけ離れた投票座標P2−1,P2−2に投票した様子が示されている。  FIG. 6 is a diagram illustrating an example of voting. In FIG. 6, for the first edge pixel P0 on the edge L1, thevoting processing unit 8 determines the gradient direction θ from the reference line LB obtained byEquation 4 for the first edge pixel P0. A state in which the voting coordinates P2-1 and P2-2 are voted apart by a second distance r (= R / 2) in the vertical direction is shown.

投票処理部8は、画像Iに含まれるエッジL1を含む全てのエッジ上にある全ての第1の画素に対して、投票座標に投票する。この場合、投票される可能性のある領域は、例えば、エッジL1に平行で、エッジL1から第2の距離rにある線L3−1,L3−2上に中心を有する領域群B2−1,B2−2である。  Thevoting processing unit 8 votes for the voting coordinates for all the first pixels on all the edges including the edge L1 included in the image I. In this case, the area that may be voted is, for example, an area group B2-1, which is parallel to the edge L1 and has a center on lines L3-1 and L3-2 at a second distance r from the edge L1. B2-2.

次いで、ステップS13に戻る。ステップS13において、画像制御部6は、第2の画像から検出されたエッジにおける第1のエッジ画素のスキャンが完了したか否かを判定する。スキャンが完了していないと判定した場合(ステップS13:No)、次の第1のエッジ画素に対して、ステップS14〜S15を実行する。一方、スキャンが完了したと判定した場合(ステップS13:Yes)、ステップS16に進む。  Next, the process returns to step S13. In step S13, the image control unit 6 determines whether or not scanning of the first edge pixel at the edge detected from the second image is completed. If it is determined that the scan has not been completed (step S13: No), steps S14 to S15 are executed for the next first edge pixel. On the other hand, when it is determined that the scan is completed (step S13: Yes), the process proceeds to step S16.

ステップS16において、画像制御部6は、投票の結果を集計する(投票結果集計部9としての処理)。次いで、ステップS17において、画像制御部6は、投票の結果を正規化する(投票結果正規化部10としての処理)。投票の結果を正規化することにより、例えば、駐車枠が実線で描かれている場合や、破線で描かれている場合等、様々な囲い方の種類を統一的に扱うことができる。次いで、ステップS18において、画像制御部6は、正規化された投票の結果に基づいて、駐車枠候補点を検出する(駐車枠候補点検出部11としての処理)。  In step S <b> 16, the image control unit 6 totals the voting results (processing as the voting result totaling unit 9). Next, in step S17, the image control unit 6 normalizes the voting result (processing as the voting result normalizing unit 10). By normalizing the voting results, for example, when the parking frame is drawn with a solid line or when it is drawn with a broken line, various types of enclosures can be handled uniformly. Next, in step S18, the image control unit 6 detects parking frame candidate points based on the normalized voting result (processing as the parking frame candidate point detection unit 11).

このように、第1の実施の形態に係る駐車枠検出装置(カメラECU3)は、撮像部2が撮像した第1の画像を鳥瞰変換し、第2の画像Iを生成する画像前処理部5と、第2の画像Iにおいて、第1のエッジ画素P0から、第1のエッジ画素P0における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域A1に第2のエッジ画素P1が含まれるとき、第1のエッジ画素P0と第2のエッジ画素P1との中間座標P2に投票し、第2の画像Iにおける投票の結果に基づいて、第2の画像Iにおいて駐車枠を検出する画像制御部と、を備える構成を採る。  As described above, the parking frame detection device (camera ECU 3) according to the first embodiment performs the bird's-eye conversion on the first image captured by theimaging unit 2, and generates the second image I. In the second image I, the second edge pixel P1 is located in the search area A1 that is separated from the first edge pixel P0 by a predetermined distance in the direction perpendicular to the gradient direction of the pixel value in the first edge pixel P0. Is included in the second image I based on the result of the voting in the second image I, and the parking frame is detected based on the result of the vote in the second image I. And an image control unit.

第1の実施の形態に係る駐車枠検出装置によれば、終車枠を構成する線が、実線である場合のみならず、破線である場合や、線が部分的に欠損している場合であっても、駐車枠を検出することができる。また、駐車枠が塗装されている場合のみならず、駐車枠が地面に埋め込まれた石、煉瓦、タイル等により規定されている場合であっても、第1の実施の形態に係る駐車枠検出装置は駐車枠を検出することができる。  According to the parking frame detection device according to the first embodiment, not only when the line constituting the end vehicle frame is a solid line, but also when the line is a broken line or when the line is partially missing. Even a parking frame can be detected. Moreover, not only when the parking frame is painted, but also when the parking frame is defined by stones, bricks, tiles, etc. embedded in the ground, the parking frame detection according to the first embodiment The device can detect parking frames.

図7は、コンピュータのハードウェア構成の一例を示す図である。上述した各実施の形態および各変形例における各部の機能は、コンピュータ2100が実行するプログラムにより実現される。  FIG. 7 is a diagram illustrating an example of a hardware configuration of a computer. The function of each part in each embodiment and each modification described above is realized by a program executed by thecomputer 2100.

図7に示すように、コンピュータ2100は、入力ボタン、タッチパッドなどの入力装置2101、ディスプレイ、スピーカなどの出力装置2102、CPU(Central Processing Unit)2103、ROM(Read Only Memory)2104、RAM(Random Access Memory)2105を備える。また、コンピュータ2100は、ハードディスク装置、SSD(Solid State Drive)などの記憶装置2106、DVD−ROM(Digital Versatile Disk Read Only Memory)、USB(Universal Serial Bus)メモリなどの記録媒体から情報を読み取る読取装置2107、ネットワークを介して通信を行う送受信装置2108を備える。上述した各部は、バス2109により接続される。  As shown in FIG. 7, acomputer 2100 includes aninput device 2101 such as an input button and a touch pad, anoutput device 2102 such as a display and a speaker, a CPU (Central Processing Unit) 2103, a ROM (Read Only Memory) 2104, and a RAM (Random Access Memory) 2105 is provided. Thecomputer 2100 also reads information from a recording medium such as a hard disk device, astorage device 2106 such as an SSD (Solid State Drive), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. 2107, a transmission /reception device 2108 that performs communication via a network is provided. Each unit described above is connected by abus 2109.

そして、読取装置2107は、上記各部の機能を実現するためのプログラムを記録した記録媒体からそのプログラムを読み取り、記憶装置2106に記憶させる。あるいは、送受信装置2108が、ネットワークに接続されたサーバ装置と通信を行い、サーバ装置からダウンロードした上記各部の機能を実現するためのプログラムを記憶装置2106に記憶させる。  Then, thereading device 2107 reads the program from a recording medium on which a program for realizing the functions of the above-described units is recorded, and stores the program in thestorage device 2106. Alternatively, the transmission /reception device 2108 communicates with the server device connected to the network, and causes thestorage device 2106 to store a program for realizing the function of each unit downloaded from the server device.

そして、CPU2103が、記憶装置2106に記憶されたプログラムをRAM2105にコピーし、そのプログラムに含まれる命令をRAM2105から順次読み出して実行することにより、上記各部の機能が実現される。また、プログラムを実行する際、RAM2105または記憶装置2106には、各実施の形態で述べた各種処理で得られた情報が記憶され、適宜利用される。  Then, theCPU 2103 copies the program stored in thestorage device 2106 to theRAM 2105, and sequentially reads out and executes the instructions included in the program from theRAM 2105, thereby realizing the functions of the above-described units. Further, when executing the program, theRAM 2105 or thestorage device 2106 stores information obtained by various processes described in each embodiment, and is used as appropriate.

(その他の実施の形態)
第1の実施の形態においては、車両制御部4は、相対位置算出部13が算出した経路または相対位置に基づいて車両を移動する。これに代えて、車両が、例えば、電子ミラーシステムの表示装置等の表示部(図示せず)を備え、表示部は、相対位置算出部13が算出した経路または相対位置に基づいて、車両を駐車枠まで案内する画像を乗員に対して表示する実施の形態も考えられる。
(Other embodiments)
In the first embodiment, thevehicle control unit 4 moves the vehicle based on the route or the relative position calculated by the relativeposition calculation unit 13. Instead, the vehicle includes, for example, a display unit (not shown) such as a display device of an electronic mirror system, and the display unit displays the vehicle based on the route or the relative position calculated by the relativeposition calculation unit 13. An embodiment in which an image that guides a parking frame is displayed to an occupant is also conceivable.

第1の実施の形態においては、第1の距離Rは、想定される駐車枠の大きさまたは車両の幅に基づいて定められる。これに代えて、第1の距離Rは、想定される駐車枠を構成する線の幅に基づいて定められる実施の形態も考えられる。  In the first embodiment, the first distance R is determined based on the assumed size of the parking frame or the width of the vehicle. Instead of this, an embodiment in which the first distance R is determined based on the width of a line constituting the assumed parking frame is also conceivable.

本開示に係る駐車枠検出装置は、車載カメラを利用して運転を支援するためのシステムに適用されるのに好適である。  The parking frame detection device according to the present disclosure is suitable for being applied to a system for assisting driving using an in-vehicle camera.

1 駐車枠検出システム
2 撮像部
3 カメラECU
4 車両制御部
5 画像前処理部
6 画像制御部
7 投票候補判定部
8 投票処理部
9 投票結果集計部
10 投票結果正規化部
11 駐車枠候補点検出部
12 駐車枠検出部
13 相対位置算出部
DESCRIPTION OFSYMBOLS 1 Parkingframe detection system 2 Imaging part 3 Camera ECU
4vehicle control unit 5 image preprocessing unit 6image control unit 7 votecandidate determination unit 8vote processing unit 9 voteresult totaling unit 10 voteresult normalization unit 11 parking frame candidatepoint detection unit 12 parkingframe detection unit 13 relative position calculation unit

Claims (12)

Translated fromJapanese
撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する画像前処理部と、
前記第2の画像において、第1のエッジ画素から、前記第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票し、前記第2の画像における前記投票の結果に基づいて、前記第2の画像において駐車枠を検出する画像制御部と、
を備える駐車枠検出装置。
An image pre-processing unit that performs bird's-eye conversion on the first image captured by the imaging unit and generates a second image;
In the second image, when the second edge pixel is included in a search region separated from the first edge pixel by a predetermined distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel, An image control unit for voting on intermediate coordinates between the first edge pixel and the second edge pixel, and detecting a parking frame in the second image based on a result of the voting in the second image; ,
A parking frame detection device comprising:
前記画像制御部は、Canny変換を用いて前記エッジ画素を抽出する、請求項1に記載の駐車枠検出装置。  The parking frame detection device according to claim 1, wherein the image control unit extracts the edge pixel by using Canny transformation. 前記画像制御部は、前記第1のエッジ画素における画素値の勾配方向と前記第2のエッジ画素における画素値の勾配方向とが逆の勾配方向を有し、かつ前記第2のエッジ画素における画素値の勾配強度が所定の勾配強度以上である前記第2のエッジ画素が、前記探索領域に所定の閾値以上の個数含まれる場合、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票する、請求項1または2に記載の駐車枠検出装置。  The image control unit has a gradient direction in which a gradient direction of a pixel value in the first edge pixel is opposite to a gradient direction of a pixel value in the second edge pixel, and the pixel in the second edge pixel When the second edge pixels whose value gradient intensity is equal to or greater than a predetermined gradient intensity are included in the search region in a number equal to or greater than a predetermined threshold value, an intermediate value between the first edge pixel and the second edge pixel The parking frame detection device according to claim 1, wherein the parking frame detection device votes for coordinates. 前記探索領域は、正方形の形状を有する、請求項3に記載の駐車枠検出装置。  The parking frame detection device according to claim 3, wherein the search area has a square shape. 前記所定の距離は、駐車する車両の幅に応じて決まる距離である、請求項1から4に記載の駐車枠検出装置。  The parking frame detection device according to claim 1, wherein the predetermined distance is a distance determined according to a width of a parked vehicle. 前記中間座標は、前記第1のエッジ画素の座標および前記第2のエッジ画素の座標の中点の座標である、請求項1から5のいずれかに記載の駐車枠検出装置。  The parking frame detection device according to any one of claims 1 to 5, wherein the intermediate coordinates are coordinates of a midpoint between the coordinates of the first edge pixel and the coordinates of the second edge pixel. 前記画像制御部は、
前記第2の画像を複数の小領域に分割し、
前記複数の小領域に含まれる前記投票座標の個数の最大値を最大得票数として抽出し、
前記複数の小領域の各小領域に対して、前記各小領域に含まれる前記投票座標の個数を前記最大投票数で除算して求めた正規化値を、前記各小領域に対応付け、
所定の閾値を超える前記正規化値に対応付けられた前記各小領域に含まれる前記投票座標の算出に用いた前記第1のエッジ画素を、前記構成画素として抽出する、
請求項1から6のいずれかに記載の駐車枠検出装置。
The image control unit
Dividing the second image into a plurality of small regions;
The maximum value of the number of voting coordinates included in the plurality of small areas is extracted as the maximum number of votes,
For each small region of the plurality of small regions, a normalized value obtained by dividing the number of the voting coordinates included in each small region by the maximum number of votes is associated with each small region,
Extracting the first edge pixel used for calculating the voting coordinates included in each of the small regions associated with the normalized value exceeding a predetermined threshold as the constituent pixel;
The parking frame detection device according to any one of claims 1 to 6.
前記画像制御部は、
前記構成画素から定まる枠の大きさが車両を駐車するのに十分な大きさであると判定した場合、前記枠の4つの端点を検出し、
それぞれが前記4つの端点のうちの2つの端点で定まる2つの線分の方向のずれが所定の誤差内である場合、前記4つの端点を前記駐車枠の端点として検出することにより、前記駐車枠を検出する、
請求項1から7のいずれかに記載の駐車枠検出装置。
The image control unit
When it is determined that the size of the frame determined from the constituent pixels is large enough to park the vehicle, the four end points of the frame are detected,
By detecting the four end points as the end points of the parking frame when the deviation in the direction of the two line segments respectively determined by two end points of the four end points is within a predetermined error, the parking frame Detect
The parking frame detection device according to any one of claims 1 to 7.
前記画像前処理部は、前記第1の画像を鳥瞰変換した後に、グレースケール変換、ガウシアンフィルタ、および最大値フィルタの少なくとも1つを適用し、第2の画像を生成する、請求項1から8のいずれかに記載の駐車枠検出装置。  The image preprocessing unit generates a second image by applying at least one of a grayscale conversion, a Gaussian filter, and a maximum value filter after performing bird's-eye conversion on the first image. The parking frame detection device according to any one of the above. 撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する第1のステップと、
前記第2の画像において、第1のエッジ画素から、前記第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票し、前記第2の画像における前記投票の結果に基づいて、前記第2の画像において駐車枠を検出する第2のステップと、
を備える、駐車枠検出方法。
A first step of performing bird's-eye conversion on the first image captured by the imaging unit and generating a second image;
In the second image, when the second edge pixel is included in a search region separated from the first edge pixel by a predetermined distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel, A second step of voting on intermediate coordinates between the first edge pixel and the second edge pixel and detecting a parking frame in the second image based on the result of the voting in the second image. When,
A parking frame detection method comprising:
駐車枠検出装置が備えるコンピュータに、
撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する第1のステップと、
前記第2の画像において、第1のエッジ画素から、前記第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票し、前記第2の画像における前記投票の結果に基づいて、前記第2の画像において駐車枠を検出する第2のステップと、
を実行させるプログラム。
In the computer provided in the parking frame detection device,
A first step of performing bird's-eye conversion on the first image captured by the imaging unit and generating a second image;
In the second image, when the second edge pixel is included in a search region separated from the first edge pixel by a predetermined distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel, A second step of voting on intermediate coordinates between the first edge pixel and the second edge pixel and detecting a parking frame in the second image based on the result of the voting in the second image. When,
A program that executes
コンピュータ読み取り可能なプログラムを記録した非一時的記録媒体であって、
駐車枠検出装置が備えるコンピュータに、
撮像部が撮像した第1の画像を鳥瞰変換し、第2の画像を生成する第1のステップと、
前記第2の画像において、第1のエッジ画素から、前記第1のエッジ画素における画素値の勾配方向と垂直な方向に所定の距離だけ離れた探索領域に第2のエッジ画素が含まれるとき、前記第1のエッジ画素と前記第2のエッジ画素との中間座標に投票し、前記第2の画像における前記投票の結果に基づいて、前記第2の画像において駐車枠を検出する第2のステップと、
を実行させるプログラムを記録した非一時的記録媒体。
A non-transitory recording medium storing a computer-readable program,
In the computer provided in the parking frame detection device,
A first step of performing bird's-eye conversion on the first image captured by the imaging unit and generating a second image;
In the second image, when the second edge pixel is included in a search region separated from the first edge pixel by a predetermined distance in a direction perpendicular to the gradient direction of the pixel value in the first edge pixel, A second step of voting on intermediate coordinates between the first edge pixel and the second edge pixel and detecting a parking frame in the second image based on the result of the voting in the second image. When,
A non-transitory recording medium on which a program for executing the program is recorded.
JP2016227150A2016-11-222016-11-22 Parking frame detection device, parking frame detection method, program, and non-temporary recording mediumPendingJP2018084925A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
JP2016227150AJP2018084925A (en)2016-11-222016-11-22 Parking frame detection device, parking frame detection method, program, and non-temporary recording medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
JP2016227150AJP2018084925A (en)2016-11-222016-11-22 Parking frame detection device, parking frame detection method, program, and non-temporary recording medium

Publications (1)

Publication NumberPublication Date
JP2018084925Atrue JP2018084925A (en)2018-05-31

Family

ID=62237168

Family Applications (1)

Application NumberTitlePriority DateFiling Date
JP2016227150APendingJP2018084925A (en)2016-11-222016-11-22 Parking frame detection device, parking frame detection method, program, and non-temporary recording medium

Country Status (1)

CountryLink
JP (1)JP2018084925A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20210402987A1 (en)*2020-06-292021-12-30Faurecia Clarion Electronics Co., Ltd.Image processor and image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20210402987A1 (en)*2020-06-292021-12-30Faurecia Clarion Electronics Co., Ltd.Image processor and image processing method
EP3933684A1 (en)2020-06-292022-01-05Faurecia Clarion Electronics Co., Ltd.Image based detection of parking space marked by dashed lines
US11769338B2 (en)2020-06-292023-09-26Faurecia Clarion Electronics Co., Ltd.Image processor and image processing method

Similar Documents

PublicationPublication DateTitle
JP4992990B2 (en) Lane marking detector
US9846823B2 (en)Traffic lane boundary line extraction apparatus and method of extracting traffic lane boundary line
JP5950441B2 (en) Image recognition apparatus, image recognition method, and image recognition program
JP2008158958A (en)Road surface determination method and road surface determination device
US9390336B2 (en)Image processing device, image processing method
JP2012063869A (en)License plate reader
JP4341564B2 (en) Object judgment device
US20200111229A1 (en)Position detection apparatus and position detection method
EP3029602A1 (en)Method and apparatus for detecting a free driving space
CN108090425B (en)Lane line detection method, device and terminal
JP6802999B2 (en) Compartment line detection system
JP5091897B2 (en) Stop line detector
JP4882577B2 (en) Object tracking device and control method thereof, object tracking system, object tracking program, and recording medium recording the program
CN101107625A (en) Image processing method, image processing system, imaging device, image processing device and computer program
WO2021128314A1 (en)Image processing method and device, image processing system and storage medium
CN113147746A (en)Method and device for detecting ramp parking space
US10997743B2 (en)Attachable matter detection apparatus
JP5155204B2 (en) White line detector
JP2018084925A (en) Parking frame detection device, parking frame detection method, program, and non-temporary recording medium
JP4754434B2 (en) Road surface estimation device
JP2014142866A (en)Lane identification device, and lane identification method
JP2018092507A (en)Image processing apparatus, image processing method, and program
KR20120094962A (en)Method and device for identifying an image acquisition feature of a digital image and apparatus for implementing such a device
JP2012118656A (en)Parking frame detection device and parking frame detection method
JP2003323627A (en) Vehicle detection device and method

Legal Events

DateCodeTitleDescription
RD02Notification of acceptance of power of attorney

Free format text:JAPANESE INTERMEDIATE CODE: A7422

Effective date:20190625

RD04Notification of resignation of power of attorney

Free format text:JAPANESE INTERMEDIATE CODE: A7424

Effective date:20191018


[8]ページ先頭

©2009-2025 Movatter.jp