TWI808603B - A ramp exit road condition detection system, method, and computer-readable medium thereof - Google Patents

A ramp exit road condition detection system, method, and computer-readable medium thereof Download PDF

Info

Publication number
TWI808603B
TWI808603B TW111100969A TW111100969A TWI808603B TW I808603 B TWI808603 B TW I808603B TW 111100969 A TW111100969 A TW 111100969A TW 111100969 A TW111100969 A TW 111100969A TW I808603 B TWI808603 B TW I808603B
Authority
TW
Taiwan
Prior art keywords
image
target vehicle
road
target area
lane
Prior art date
Application number
TW111100969A
Other languages
Chinese (zh)
Other versions
TW202329056A (en
Inventor
莊尚儒
林佳興
Original Assignee
中華電信股份有限公司
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 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW111100969A priority Critical patent/TWI808603B/en
Application granted granted Critical
Publication of TWI808603B publication Critical patent/TWI808603B/en
Publication of TW202329056A publication Critical patent/TW202329056A/en

Links

Images

Abstract

The present invention provides a ramp exit road condition detection system, method and computer-readable medium thereof, including a first photographing device, a second photographing device, and a road condition detecting device, wherein the first photographing device records a first image of a target area and at least one target vehicle in the target area, and the road condition detection device uses the first image to track vehicle driving. When the target vehicle drives in violation, a violation identification result is generated, and the second camera device is caused to record a second image for evidence search. In this way, the present invention can instantly detect the target vehicle driving illegally, restore the current driving situation of the target vehicle, and quickly and precisely provide evidence to law enforcement agencies for further processing on the illegal vehicle.

Description

一種匝道出口路況偵測系統、方法及其電腦可讀媒介 A ramp exit road condition detection system, method and computer-readable medium thereof

本發明關於一種路況偵測技術,尤其指一種匝道出口路況偵測系統、方法及其電腦可讀媒介。 The present invention relates to a road condition detection technology, in particular to a ramp exit road condition detection system, method and computer-readable medium thereof.

於現今社會中,由於高速公路所帶來的交通的便利,許多民眾會利用高速公路,駕車往返各縣市,但也容易產生違規駕駛事件,例如,駕駛人因為一時疏忽而跨越槽化線、路肩行駛及任意切換車道等違規行駛事件。 In today's society, due to the convenience of transportation brought by expressways, many people will use expressways to drive to and from various counties and cities. However, illegal driving incidents are also prone to occur, for example, illegal driving incidents such as drivers crossing grooved lines, driving on road shoulders, and arbitrarily switching lanes due to negligence.

然而,現有技術僅能透過監控設備記錄違規車輛的訊息,例如車牌等,並未能有效地監控車輛行駛情況,且需要大量人力維持監控系統的運作,也無法即時地自動判斷車輛是否有違規行駛事件。是以,現有技術不但使得監控成本較高,更可能因人為的疏忽而忽略了潛在的危險。 However, the existing technology can only record the information of violating vehicles through monitoring equipment, such as license plates, etc., but cannot effectively monitor the driving conditions of the vehicles, and requires a lot of manpower to maintain the operation of the monitoring system, and cannot automatically judge whether the vehicles have illegal driving events in real time. Therefore, the existing technology not only makes the monitoring cost higher, but also ignores potential risks due to human negligence.

因此,如何提供一種匝道出口路況偵測機制,進而有效地監控車輛行駛情況,並即時、快速且精準地判斷車輛是否有違規行駛事件,遂成為業界亟待解決的課題。 Therefore, how to provide an on-ramp exit road condition detection mechanism to effectively monitor vehicle driving conditions and determine whether vehicles have illegal driving events in an instant, fast and accurate manner has become an urgent issue to be solved in the industry.

為解決前述習知的技術問題或提供相關之功效,本發明提供一種匝道出口路況偵測系統,係包含:一第一攝影裝置,係拍攝匝道出口處的一目標區域及於該目標區域中之至少一目標車輛之第一影像;一路況偵測裝置,係通訊連接該第一攝影裝置以接收該第一影像,且利用該第一影像進行一物件追蹤處理後,對該第一影像中行駛於該目標區域之該目標車輛進行車輛行駛追蹤,俾於確認該目標車輛在該目標區域中違規行駛時,產生一違規辨識結果;以及一第二攝影裝置,係通訊連接該路況偵測裝置,以於該路況偵測裝置產生該違規辨識結果時,拍攝該目標區域及於該目標區域中之該目標車輛之第二影像,以依據該第二影像取得該目標車輛之違規事證,再將該違規事證傳送給該路況偵測裝置,俾整合該目標車輛之該第二影像、該違規事證及該違規辨識結果為一違規行駛資訊。 In order to solve the technical problems of the aforementioned learning or provide relevant effects, the invention provides a ramp export road condition detection system, which includes: first photography device, the first image of the target area of the shooting ramp exit, and at least one target vehicle in the target area; the detection device is connected to the first photography device to receive the first image and use the first image to perform a one. After the tracking processing, the vehicle tracked by the target vehicle driving in the target area in the first image, which confirms that the target vehicle has produced an illegal identification result when driving in the target area; and a second photography device, which is a communication device that connects the road conditions to the road conditions detection device. In this target area, the second image of the target vehicle is obtained in accordance with the second image to obtain the illegal certificate of the target vehicle, and then transmitted the illegal certificate to the road conditions detection device. The second image of the target vehicle, the illegal evidence, and the results of the violation of the rules are an illegal driving information.

本發明復提供一種匝道出口路況偵測方法,係包含:由一第一攝影裝置拍攝匝道出口處的一目標區域及於該目標區域中之至少一目標車輛之第一影像;由一路況偵測裝置接收該第一影像,以利用該第一影像進行物件追蹤處理,再對該第一影像中行駛於該目標區域之該目標車輛進行車輛行駛追蹤,俾於確認該目標車輛在該目標區域中違規行駛時,產生一違規辨識結果;以及於該路況偵測裝置產生該違規辨識結果時,由一第二攝影裝置拍攝該目標區域及於該目標區域中之該目標車輛之第二影像,以依據該第二影像取得該目標車輛之違規事證,再將該違規事證傳送給該路況偵測裝置,俾整合該目標車輛之該第二影像、該違規事證及該違規辨識結果為一違規行駛資訊。 The present invention further provides a road condition detection method at a ramp exit, which includes: taking a first image of a target area at the ramp exit and at least one target vehicle in the target area by a first photographing device; receiving the first image by the road condition detection device, using the first image to perform object tracking processing, and then performing vehicle tracking on the target vehicle driving in the target area in the first image, so that when it is confirmed that the target vehicle is driving illegally in the target area, a violation identification result is generated; and when the road condition detection device generates the violation When the identification result of the regulation is obtained, a second photographing device captures a second image of the target area and the target vehicle in the target area to obtain the violation evidence of the target vehicle based on the second image, and then transmits the violation evidence to the road condition detection device so as to integrate the second image of the target vehicle, the violation evidence and the violation identification result into a violation driving information.

於一實施例中,該目標區域係為一路肩、一匝道出口道路、一槽化線或一般道路。 In one embodiment, the target area is a shoulder, an off-ramp road, a grooved line or a general road.

於一實施例中,該路況偵測裝置包括一影像辨識模組,,其中,該影像辨識模組包括:一槽化線辨識單元,係依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否穿越該目標區域中之槽化線;一路肩辨識單元,係依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否在偵測時間區段中行駛於該目標區域中之路肩;以及一車道辨識單元,係依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否位於該目標區域中之匝道出口道路或一般道路上的可切換車道進行車道切換,其中,於該目標車輛穿越該目標區域中之槽化線、該目標車輛在偵測時間區段中行駛於該目標區域中之路肩、或該目標車輛並未位於該目標區域之匝道出口道路或一般道路上可切換的車道進行車道切換時,由該影像辨識模組產生該違規辨識結果。 In one embodiment, the road condition detection device includes an image recognition module, wherein the image recognition module includes: a grooved line recognition unit that performs the object tracking process based on the first image to identify whether the target vehicle crosses the grooved line in the target area; a road shoulder recognition unit that performs the object tracking process based on the first image to identify whether the target vehicle is driving on the road shoulder in the target area during the detection time period; and a lane recognition unit that performs the object tracking process based on the first image. Object tracking processing to identify whether the target vehicle is on an off-ramp road or a switchable lane on a general road in the target area for lane switching, wherein the image recognition module generates the violation identification result when the target vehicle crosses a grooved line in the target area, the target vehicle travels on a shoulder in the target area during the detection time period, or the target vehicle is not located in a switchable lane on an off-ramp road or a general road in the target area.

於一實施例中,於該車道辨識單元辨識出該目標車輛位於該目標區域之匝道出口道路或一般道路上可切換的車道進行車道切換時,由該車道辨識單元將該第一影像中該目標區域中之匝道出口道路或一般道路的實際車道畫面進行透視變換,以變換成新車道畫面,進而得到該目標車輛與其他車輛之位置,且由該車道辨識單元計算該目標車輛與該其他車輛之間是否保持一預設距離,以於未保持該預設距離時,由該影像辨識模組產生該違規辨識結果。 In one embodiment, when the lane recognition unit recognizes that the target vehicle is located on an off-ramp road or a normal road in the target area to switch lanes, the lane recognition unit performs perspective transformation on the actual lane picture of the off-ramp road or normal road in the target area in the first image to transform into a new lane picture, and then obtains the positions of the target vehicle and other vehicles, and the lane recognition unit calculates whether a preset distance is maintained between the target vehicle and the other vehicles, so that when the preset distance is not maintained, the The image recognition module generates the violation recognition result.

於一實施例中,該路況偵測裝置包括一違規採證模組,係接收該違規辨識結果,以令該第二攝影裝置對該目標車輛拍攝該第二影像,俾於一螢幕即時顯示該違規行駛資訊。 In one embodiment, the road condition detection device includes a violation identification module for receiving the violation recognition result so that the second photographing device can capture the second image of the target vehicle so as to display the violation driving information on a screen in real time.

本發明又提供一種電腦可讀媒介,應用於具有處理器及/或記憶體的電腦或計算裝置中,該電腦或該計算裝置透過處理器及/或記憶體執行一目標程式及電腦可讀媒介,並用於執行電腦可讀媒介時執行如上所述之匝道出口路況偵測方法。 The present invention also provides a computer-readable medium, which is applied to a computer or computing device with a processor and/or memory, the computer or the computing device executes a target program and the computer-readable medium through the processor and/or memory, and is used to execute the above-mentioned ramp exit road condition detection method when executing the computer-readable medium.

由上可知,本發明之匝道出口路況偵測系統、方法及其電腦可讀媒介,主要藉由路況偵測裝置透過物件追蹤技術對攝影裝置於目標區域中所拍攝的目標車輛之第一影像進行車輛行駛追蹤,以辨識目標車輛是否違規行駛,且自動化地偵測目標車輛是否有違規行駛之情事,以進一步拍攝第二影像對目標車輛進行蒐證,故透過本發明能即時地偵測違規行駛的目標車輛,且還原目標車輛當下的行駛情況,進而快速且精準地提供證據給執法機構進行後續處理。 As can be seen from the above, the ramp exit road condition detection system, method and computer-readable medium of the present invention mainly use the road condition detection device to track the first image of the target vehicle captured by the camera device in the target area through object tracking technology to identify whether the target vehicle is driving illegally, and automatically detect whether the target vehicle is driving illegally, so as to further capture the second image to search for evidence of the target vehicle. Quickly and accurately provide evidence to law enforcement agencies for subsequent processing.

1:匝道出口路況偵測系統 1: Ramp exit road condition detection system

10:第一攝影裝置 10: The first photography installation

20:第二攝影裝置 20:Second camera device

30:路況偵測裝置 30: Road condition detection device

31:影像辨識模組 31: Image recognition module

311:槽化線辨識單元 311: Grooving line identification unit

312:路肩辨識單元 312: Road shoulder identification unit

313:車道辨識單元 313: Lane identification unit

32:違規採證模組 32: Violation evidence collection module

321:違規採證單元 321: Illegal Evidence Collection Unit

322:歷史調閱單元 322: Historical Access Unit

323:資料儲存單元 323: data storage unit

9:目標車輛 9: Target vehicle

9’:其他車輛 9': other vehicles

A:目標區域 A: target area

a1:路肩 a1: shoulder

a2:匝道出口道路 a2: ramp exit road

a3:槽化線 a3: Grooving line

a4:一般道路 a4: general road

D1:架設距離 D1: erection distance

D2:真實距離 D2: real distance

F0~F3、(X0,Y0)~(X3,Y3):角落位置 F 0 ~F 3 、(X 0 ,Y 0 )~(X 3 ,Y 3 ): corner position

H:架設高度 H: erection height

S51至S511:步驟 S51 to S511: Steps

T1:第一部分 T1: part one

T2:第二部分 T2: Part Two

圖1係為本發明之匝道出口路況偵測系統之架構示意圖; Fig. 1 is a schematic diagram of the structure of the ramp exit road condition detection system of the present invention;

圖2係為本發明之匝道出口之示意圖; Fig. 2 is the schematic diagram of the ramp exit of the present invention;

圖3係為本發明之級聯匹配之示意圖; Fig. 3 is the schematic diagram of the cascade matching of the present invention;

圖4A係為一般道路之實際車道畫面之示意圖; Fig. 4A is a schematic diagram of an actual lane picture of a general road;

圖4B係為一般道路變換後之新車道畫面之示意圖;以及 Fig. 4B is a schematic diagram of a new lane picture after a general road change; and

圖5A及圖5B係為本發明匝道出口路況偵測方法之流程示意圖。 5A and 5B are schematic flowcharts of the method for detecting road conditions at ramp exits according to the present invention.

以下藉由特定的具體實施例說明本發明之實施方式,熟悉此技藝之人士可由本說明書所揭示之內容輕易地瞭解本發明之其他優點及功效。 The implementation of the present invention is described below through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification.

須知,本說明書所附圖式所繪示之結構、比例、大小等,均僅用以配合說明書所揭示之內容,以供熟悉此技藝之人士之瞭解與閱讀,並非用以限定本發明可實施之限定條件,故不具技術上之實質意義,任何結構之修飾、比例關係之改變或大小之調整,在不影響本發明所能產生之功效及所能達成之目的下,均應仍落在本發明所揭示之技術內容得能涵蓋之範圍內。同時,本說明書中所引用之如「一」、「第一」、「第二」、「上」及「下」等之用語,亦僅為便於敘述之明瞭,而非用以限定本發明可實施之範圍,其相對關係之改變或調整,在無實質變更技術內容下,當視為本發明可實施之範疇。 It should be noted that the structures, proportions, and sizes shown in the drawings attached to this specification are only used to match the content disclosed in the specification for the understanding and reading of those who are familiar with this technology, and are not used to limit the conditions for the implementation of the present invention, so they have no technical significance. At the same time, terms such as "one", "first", "second", "upper" and "lower" quoted in this specification are only for the convenience of description and clarity, and are not used to limit the scope of the present invention. Changes or adjustments in their relative relationships are deemed to be within the scope of the present invention if there is no substantial change in the technical content.

圖1係為本發明之匝道出口路況偵測系統1之架構示意圖。如圖1所示,匝道出口路況偵測系統1係包括:一第一攝影裝置10、一第二攝影裝置20及一具有影像辨識模組31及違規採證模組32之路況偵測裝置30,且第一攝影裝置10及第二攝影裝置20通訊連接路況偵測裝置30,其中,影像辨識模組31包括一槽化線辨識單元311、一路肩辨識單元312及一車道辨識單元313,以及違規採證模組32包括一違規採證單元321、一歷史調閱單元322及一資料儲存單元323。 FIG. 1 is a schematic diagram of the structure of the ramp exit road condition detection system 1 of the present invention. As shown in Figure 1, the ramp exit road condition detection system 1 includes: a first photographing device 10, a second photographing device 20, and a road condition detection device 30 having an image recognition module 31 and a violation evidence collection module 32, and the first photography device 10 and the second photography device 20 are connected to the road condition detection device 30 in communication, wherein the image recognition module 31 includes a grooved line recognition unit 311, a shoulder recognition unit 312 and a lane recognition unit 313, and a violation evidence collection The module 32 includes a violation evidence collection unit 321 , a history retrieval unit 322 and a data storage unit 323 .

具體而言,第一攝影裝置10及第二攝影裝置20係為具有錄影功能之攝影機、監視器等設備,但不限於此;以及路況偵測裝置30可建立於伺服器(如通用型伺服器、檔案型伺服器、儲存單元型伺服器等)及電腦等具有適 當演算機制之電子設備中,且路況偵測裝置30中之各個模組及其單元均可為軟體、硬體或韌體;若為硬體,則可為具有資料處理與運算能力之處理單元、處理器、電腦或伺服器;若為軟體或韌體,則可包括處理單元、處理器、電腦或伺服器可執行之指令,且可安裝於同一硬體裝置或分布於不同的複數硬體裝置。 Specifically, the first photographing device 10 and the second photographing device 20 are devices such as video cameras and monitors with video recording functions, but are not limited thereto; When in the electronic equipment of the calculation mechanism, each module and its unit in the road condition detection device 30 can be software, hardware or firmware; if it is hardware, it can be a processing unit, processor, computer or server with data processing and computing capabilities;

於本實施例中,如圖2所示,第一攝影裝置10及第二攝影裝置20係固定或移動式分別設置於匝道出口處的目標區域A之相對應兩端,以使第一攝影裝置10及第二攝影裝置20之拍攝範圍涵蓋目標區域A,其中,目標區域A包括一路肩a1、一匝道出口道路a2、一槽化線a3及一般道路a4,且第一攝影裝置10設置於一或複數個目標車輛9駛出匝道出口道路a2處,以拍攝目標車輛9之車頭方向(或車尾方向)之第一影像,而第二攝影裝置20設置於目標車輛9駛入匝道出口道路a2處,以拍攝目標車輛9之車尾方向(或車頭方向)之第二影像。再者,第一攝影裝置10及第二攝影裝置20將所拍攝之第一影像及第二影像即時回傳至路況偵測裝置30。 In this embodiment, as shown in FIG. 2 , the first photographing device 10 and the second photographing device 20 are fixed or movable respectively arranged at the corresponding two ends of the target area A at the exit of the ramp, so that the shooting range of the first photographing device 10 and the second photographing device 20 covers the target area A, wherein the target area A includes a shoulder a1, a ramp exit road a2, a grooved line a3 and a general road a4, and the first photographing device 10 is arranged on one or more target vehicles 9 leaving the ramp exit road a2 to photograph The first image of the front direction (or the rear direction) of the target vehicle 9, and the second photographing device 20 is arranged at the place where the target vehicle 9 enters the ramp exit road a2 to capture the second image of the target vehicle 9 in the rear direction (or the front direction). Furthermore, the first photographing device 10 and the second photographing device 20 send back the captured first image and the second image to the road condition detection device 30 in real time.

在一實施例中,第一攝影裝置10及第二攝影裝置20係分別與一路段之道路地面差距有一架設高度H,以及第一攝影裝置10及第二攝影裝置20亦分別與目標區域A差距有一架設距離D1,其中,架設高度H大於此路段允許通過最高車輛之高度,且架設距離D1大於架設高度H,藉此避免第一攝影裝置10及第二攝影裝置20對目標車輛9所拍攝之影像容易被前方或/及後方車輛屏蔽,進而使第一攝影裝置10及第二攝影裝置20能有較佳之辨識視角。 In one embodiment, the first photographing device 10 and the second photographing device 20 are respectively separated from the road surface of a road section by an installation height H, and the first photographing device 10 and the second photographing device 20 are respectively separated from the target area A by an erection distance D1, wherein the erection height H is greater than the height of the highest vehicle allowed to pass through the road section, and the erection distance D1 is greater than the erection height H, thereby avoiding that the images captured by the first photographing device 10 and the second photographing device 20 for the target vehicle 9 are easily shielded by the front or/and rear vehicles. The first photographing device 10 and the second photographing device 20 can have better viewing angles.

在一實施例中,槽化線辨識單元311係用以依據第一影像辨識目標車輛9是否穿越目標區域A中之槽化線a3;路肩辨識單元312係用以依據第一影像辨識目標車輛9是否在偵測時間區段中行駛於目標區域A中之路肩a1;以及車道辨識單元313係用以依據第一影像辨識目標車輛9是否位於目標區域A中之匝道出口道路a2或/及一般道路a4上的可切換車道進行車道切換。 In one embodiment, the grooved line recognition unit 311 is used to identify whether the target vehicle 9 crosses the grooved line a3 in the target area A according to the first image; the road shoulder identification unit 312 is used to identify whether the target vehicle 9 is driving on the road shoulder a1 in the target area A during the detection time period according to the first image; Lane switch.

具體而言,槽化線辨識單元311、路肩辨識單元312及車道辨識單元313係依據第一影像並結合一物件追蹤技術進行物件追蹤處理以對行駛於目標區域A之目標車輛9進行車輛行駛追蹤。在一實施例中,槽化線辨識單元311、路肩辨識單元312及車道辨識單元313所使用之物件追蹤技術是採用AI(Artificial Intelligence,人工智慧)深度學習之YOLO(You Only Look Once)演算法(如YOLOv4)依據第一影像進行物件偵測,以偵測出第一影像中之目標車輛9(即物件)。 Specifically, the grooved line recognition unit 311, the road shoulder recognition unit 312, and the lane recognition unit 313 perform object tracking processing based on the first image and an object tracking technology to track the target vehicle 9 driving in the target area A. In one embodiment, the object tracking technology used by the grooved line recognition unit 311, the road shoulder recognition unit 312 and the lane recognition unit 313 is to use AI (Artificial Intelligence, artificial intelligence) deep learning YOLO (You Only Look Once) algorithm (such as YOLOv4) to perform object detection according to the first image, so as to detect the target vehicle 9 (that is, the object) in the first image.

在一實施例中,槽化線辨識單元311、路肩辨識單元312及車道辨識單元313透過Deep SORT(Simple Online and Realtime Tracking with a Deep Association Metric)演算法對目標車輛9進行車輛軌跡追蹤,藉此判斷目標車輛9之車輛軌跡,其中,Deep SORT演算法中最大的特點是加入外觀資訊,以利用ReID(Person Re-identification,行人重識別)外觀模型來提取目標車輛9之外觀特徵,藉此減少了物件偵測時所產生的物件(目標車輛9)相對應之物件ID(識別碼),進而降低物件ID切換的次數,以提升物件追蹤正確性。 In one embodiment, the grooved line recognition unit 311, the road shoulder recognition unit 312, and the lane recognition unit 313 perform vehicle trajectory tracking on the target vehicle 9 through the Deep SORT (Simple Online and Realtime Tracking with a Deep Association Metric) algorithm, thereby judging the vehicle trajectory of the target vehicle 9. Among them, the biggest feature of the Deep SORT algorithm is to add appearance information to use ReID (Person Re-identification, pedestrian re-identification ) appearance model to extract the appearance features of the target vehicle 9, thereby reducing the object ID (identification code) corresponding to the object (target vehicle 9) generated during object detection, thereby reducing the number of times of object ID switching to improve object tracking accuracy.

下列係為本發明之物件追蹤技術之流程: The following is the flow of the object tracking technology of the present invention:

(1)利用YOLO演算法對第一影像進行影像偵測,以偵測出第一影像中之目標車輛9(即物件)及其中心位置之物件座標,以供後續對第一影像中之目標車輛9進行車輛軌跡追蹤。 (1) Use the YOLO algorithm to perform image detection on the first image to detect the target vehicle 9 (i.e. object) in the first image and the object coordinates of its center position for subsequent tracking of the target vehicle 9 in the first image.

(2)利用Deep SORT演算法中之級聯匹配預測第一影像中之目標車輛9之車輛軌跡,其中,如圖3所示之級聯匹配的詳細內容之示意圖,第一部分T1中透過計算外觀模型(ReID)和運動模型(馬氏距離)以判斷當下偵測的物件(目標車輛9)與先前偵測的物件之間的相似度,若當下偵測的物件與先前偵測的物件差異過大,則判斷當下偵測的物件(目標車輛9)為新物件;反之,若當下偵測的物件與先前偵測的物件差異較小,則判斷當下偵測的物件(目標車輛9)與先前偵測的物件係為相同物件,並透過門控矩陣(Gate Matrix)限制代價矩陣(Cost Matrix)。 (2) Use the cascade matching in the Deep SORT algorithm to predict the vehicle trajectory of the target vehicle 9 in the first image. As shown in FIG. 3 , the detailed content of the cascade matching is schematically shown. In the first part T1, the similarity between the currently detected object (target vehicle 9) and the previously detected object is judged by calculating the appearance model (ReID) and motion model (Mahalanobis distance). Conversely, if the difference between the currently detected object and the previously detected object is small, then it is judged that the currently detected object (target vehicle 9) is the same object as the previously detected object, and the cost matrix (Cost Matrix) is limited by the gate matrix (Gate Matrix).

再者,第二部分T2係為級聯匹配的數據關聯步驟,其中,透過匈牙利算法(Hungarian Algorithm)進行級聯匹配,匈牙利算法利用代價矩陣計算第一影像之各個幀與其前一幀中之目標車輛9(物件)的相似度,從而執行級聯匹配以確認各個幀與其前一幀中之目標車輛9是否匹配,進而得到各個幀與其前一幀之級聯匹配結果,且級聯匹配預設有一誤差閾值(例如max age係為70,亦即從missing age=0到missing age=70),是以,目標車輛9(物件)在第一影像中會有70次的辨識誤差,當確認第一影像之前後兩幀中之目標車輛9之級聯匹配結果係為未匹配成功時,則表示missing age=1,藉此逐一比對第一影像之各個幀與其前一幀是否匹配,以於連續超過70次的級聯匹配結果係為未匹配成功(亦即missing age=70)時,則會遺棄追蹤目標車輛9。反之,當於有成功匹配到目標車輛9(亦即missing age<70)時,透 過辨識出第一影像中之目標車輛9以預測其車輛軌跡,於另一實施例中,將未丟失過車輛軌跡的目標車輛9優先進行匹配,並透過優先匹配未丟失過車輛軌跡的目標車輛9,以將被遮擋的目標車輛9找回,從而降低因被遮擋然後再出現的目標車輛9而發生物件ID切換的次數。舉例而言,透過匈牙利算法完成第一影像中第二幀之目標車輛9與其前一幀的第一幀之目標車輛9之匹配,以得到第一幀及第二幀之級聯匹配結果。 Moreover, the second part T2 is the data association step of cascade matching, wherein cascade matching is performed through the Hungarian Algorithm, and the Hungarian algorithm uses the cost matrix to calculate the similarity between each frame of the first image and the target vehicle 9 (object) in the previous frame, thereby performing cascade matching to confirm whether each frame matches the target vehicle 9 in the previous frame, and then obtain the cascade matching result of each frame and the previous frame, and the cascade matching presets an error threshold (for example, max age is 7 0, that is, from missing age=0 to missing age=70), therefore, the target vehicle 9 (object) will have 70 recognition errors in the first image, and when it is confirmed that the cascade matching result of the target vehicle 9 in the two frames before and after the first image is unsuccessful, it means missing age=1, so as to compare each frame of the first image one by one with the previous frame. =70), the tracking target vehicle 9 will be abandoned. Conversely, when there is a successful match to the target vehicle 9 (that is, missing age<70), through By identifying the target vehicle 9 in the first image to predict its vehicle track, in another embodiment, the target vehicle 9 that has not lost the vehicle track is preferentially matched, and the blocked target vehicle 9 is retrieved by preferentially matching the target vehicle 9 that has not lost the vehicle track, thereby reducing the number of times of object ID switching due to the target vehicle 9 that is blocked and then reappears. For example, the matching of the target vehicle 9 in the second frame of the first image with the target vehicle 9 in the first frame of the previous frame is completed through the Hungarian algorithm, so as to obtain the cascade matching result of the first frame and the second frame.

(3)利用IOU(Intersection over Union)匹配將第一影像中之第二幀比對第一影像中之第一幀,亦即將第二幀的畫面比對前一幀之第一幀的畫面,以產生第二幀的畫面與第一幀的畫面之交疊率。具體而言,利用Detection Result(即第二幀的畫面)與Ground Truth(即第一幀的畫面)的交集比上其聯集以計算交疊率,即為IOU匹配結果,且IOU之公式如下所示: (3) Use IOU (Intersection over Union) matching to compare the second frame in the first image with the first frame in the first image, that is, compare the picture of the second frame with the picture of the first frame of the previous frame to generate the overlap ratio between the picture of the second frame and the picture of the first frame. Specifically, the intersection of the Detection Result (that is, the picture of the second frame) and the Ground Truth (that is, the picture of the first frame) is compared with its union to calculate the overlap rate, which is the IOU matching result, and the formula of the IOU is as follows:

Figure 111100969-A0101-12-0009-1
Figure 111100969-A0101-12-0009-1

(4)依據第一幀及第二幀之級聯匹配結果,以及第一幀及第二幀之IOU匹配結果對Kalman Filter進行更新,再由更新後之Kalman Filter之結果用以計算第一影像中之其他幀之級聯匹配及IOU匹配,以使級聯匹配結果以及IOU匹配結果之準確度上升。換言之,Deep SORT演算法能透過更新後之Kalman Filter進行車輛軌跡預測,進而提高車輛軌跡之準確度。 (4) The Kalman Filter is updated according to the cascade matching results of the first frame and the second frame, and the IOU matching results of the first frame and the second frame, and then the updated Kalman Filter results are used to calculate the cascade matching and IOU matching of other frames in the first image, so that the accuracy of the cascading matching results and IOU matching results can be increased. In other words, the Deep SORT algorithm can predict the vehicle trajectory through the updated Kalman Filter, thereby improving the accuracy of the vehicle trajectory.

在一實施例中,當槽化線辨識單元311依據第一影像並結合物件追蹤技術進行物件追蹤處理以辨識出目標車輛9穿越目標區域A中之槽化線a3、路肩辨識單元312依據第一影像並結合物件追蹤技術進行物件追 蹤處理以辨識出目標車輛9在偵測時間區段中行駛於目標區域A中之路肩a1、或/及車道辨識單元313依據第一影像並結合物件追蹤技術進行物件追蹤處理以辨識出目標車輛9並未位於目標區域A之匝道出口道路a2或/及一般道路a4上可切換的車道進行車道切換時,影像辨識模組31產生一違規辨識結果(包含第一影像)以通知違規採證模組32對目標車輛9進行違規採證。 In one embodiment, when the grooved line recognition unit 311 performs object tracking processing based on the first image and combined with the object tracking technology to identify that the target vehicle 9 crosses the grooved line a3 in the target area A, the road shoulder recognition unit 312 performs object tracking based on the first image and combined with the object tracking technology. Tracking processing to identify that the target vehicle 9 is driving on the shoulder a1 in the target area A during the detection time period, or/and the lane recognition unit 313 performs object tracking processing based on the first image and combined with object tracking technology to identify that the target vehicle 9 is not located on the off-ramp road a2 or/and general road a4 of the target area A. Evidence violations.

舉例而言,槽化線辨識單元311辨識出目標車輛9之車輛位置從匝道出口道路a2或/及一般道路a4進入到槽化線a3時,即判定為目標車輛9穿越槽化線;路肩辨識單元312首先判斷當下時間是否在偵測時間區段中(亦即是否在不允許行駛於路肩之時段),當在偵測時間區段中,且辨識出目標車輛9進入路肩a1,即判定為目標車輛9違規行駛於路肩;以及車道辨識單元313首先判斷匝道出口道路a2或/及一般道路a4是否為可以切換車道之路段,若匝道出口道路a2或/及一般道路a4為不能切換車道之路段,則當車道辨識單元313辨識出目標車輛9離開原本之區域(匝道出口道路a2或一般道路a4),即判定為目標車輛9違規車道切換,反之,若匝道出口道路a2或/及一般道路a4為能切換車道之路段,但車道辨識單元313辨識出目標車輛9與其他車輛9’未保持安全距離,即判定為目標車輛9違規車道切換。 For example, when the grooved line identification unit 311 recognizes that the vehicle position of the target vehicle 9 enters the grooved line a3 from the ramp exit road a2 or/and the general road a4, it is determined that the target vehicle 9 has crossed the grooved line; The road shoulder; and the lane recognition unit 313 first judges whether the ramp exit road a2 or/and the general road a4 is a road section that can switch lanes. If the ramp exit road a2 or/and the general road a4 is a road section that cannot switch lanes, then when the lane recognition unit 313 recognizes that the target vehicle 9 leaves the original area (the ramp exit road a2 or the general road a4), it is determined that the target vehicle 9 is violating lane switching. On the contrary, if the ramp exit road a2 or/and the general road a4 is a road section that can switch lanes, However, the lane recognition unit 313 recognizes that the target vehicle 9 does not keep a safe distance from other vehicles 9', that is, it is determined that the target vehicle 9 is illegally switching lanes.

於另一實施例中,當車道辨識單元313辨識出目標車輛9位於目標區域A之匝道出口道路a2或/及一般道路a4上可切換的車道進行車道切換時,車道辨識單元313進一步偵測目標車輛9切換車道時是否與其他車輛(如圖4A所示之其他車輛9’)保持安全行駛距離,即一預設距離,可由當時時速換算成安全行駛距離。 In another embodiment, when the lane recognition unit 313 recognizes that the target vehicle 9 is located in the ramp exit road a2 or/and the general road a4 of the target area A and is switching lanes, the lane recognition unit 313 further detects whether the target vehicle 9 maintains a safe driving distance with other vehicles (such as other vehicles 9' as shown in FIG. 4A ) when switching lanes.

具體而言,車道辨識單元313先將第一攝影裝置10所拍攝之第一影像中目標區域A中之匝道出口道路a2或/及一般道路a4的實際車道畫面進行透視變換(Perspective Transformation),例如,如圖4A所示之一般道路a4的實際車道畫面,其大致呈梯形,故車道辨識單元313依據目標區域A中之一般道路a4之四個邊緣(即F0至F1、F1至F2、F2至F3、F3至F0)的實際距離進行透視變換,透視變換是將圖片投影到一個新的平面,也稱作投影映射,藉此將一般道路a4的呈梯形之實際車道畫面變換成呈矩形之新車道畫面(如圖4B所示),且實際車道畫面之四個角落位置F0~F3透過透視變換公式轉換為新車道畫面之四個角落位置(X0,Y0)~(X3,Y3)。 Specifically, the lane identification unit 313 first performs perspective transformation (Perspective Transformation) on the actual lane picture of the ramp exit road a2 or/and the general road a4 in the target area A in the first image captured by the first photographing device 10. For example, the actual lane picture of the general road a4 shown in FIG.0to F1, F1to F2, F2to F3, F3to F0) of the actual distance for perspective transformation, perspective transformation is to project the picture to a new plane, also known as projection mapping, so as to transform the trapezoidal actual lane picture of the general road a4 into a rectangular new lane picture (as shown in Figure 4B), and the four corner positions of the actual lane picture are F0~F3Convert to the four corner positions of the new lane picture through the perspective transformation formula (X0,Y0)~(X3,Y3).

詳言之,車道辨識單元313所採用之透視變換公式,如下所示: In detail, the perspective transformation formula adopted by the lane identification unit 313 is as follows:

Figure 111100969-A0101-12-0011-2
Figure 111100969-A0101-12-0011-2

其中,u,v係為實際車道畫面,對應得到變換後的圖片中所有物件之坐標(X,Y),且

Figure 111100969-A0101-12-0011-3
,
Figure 111100969-A0101-12-0011-4
。 Among them, u and v are the actual lane picture, corresponding to the coordinates (X, Y) of all objects in the transformed picture, and
Figure 111100969-A0101-12-0011-3
,
Figure 111100969-A0101-12-0011-4
.

再者,變換矩陣

Figure 111100969-A0101-12-0011-5
可以拆成三個部分,
Figure 111100969-A0101-12-0011-6
係為線性變換,例如:scaling(縮放)、shearing(剪切)或/及rotation(旋轉)、[F31 F32]係用於平移,[F13 F23] T 係產生透視變換,藉此改寫透視變換公式,改寫後之透視變換公式,如下所示: Furthermore, the transformation matrix
Figure 111100969-A0101-12-0011-5
can be broken down into three parts,
Figure 111100969-A0101-12-0011-6
It is a linear transformation, for example: scaling (zooming), shearing (cutting) or/and rotation (rotation), [F 31 F 32 ] is used for translation, [F 13 F 23 ] T is used to generate perspective transformation, so as to rewrite the perspective transformation formula. The rewritten perspective transformation formula is as follows:

Figure 111100969-A0101-12-0011-7
Figure 111100969-A0101-12-0011-7

是以,車道辨識單元313透過一般道路a4所轉換之新車道畫面並結合YOLO演算法所取得之目標車輛9之物件座標與其他車輛9’之物件座標,以得到目標車輛9與其他車輛9’之真實位置,藉此車道辨識單元313依據目標車輛9與其他車輛9’之真實位置且利用歐式距離計算目標車輛9與其他車輛9’之間的真實距離D2,當切換車道之目標車輛9與後方來車之其他車輛9’之真實距離D2小於設定之安全行駛距離(即一預設距離),且利用影像辨識技術判斷目標車輛9與欲切換至與其他車輛9’同一車道時,即可判定目標車輛9為切換車道未保持安全行駛距離事件(即一預設距離),使影像辨識模組31亦產生違規辨識結果,以通知違規採證模組32對目標車輛9進行違規採證。 Therefore, the lane identification unit 313 obtains the real positions of the target vehicle 9 and other vehicles 9' through the new lane picture converted from the general road a4 and combines the object coordinates of the target vehicle 9 obtained by the YOLO algorithm and the object coordinates of other vehicles 9', so that the lane identification unit 313 calculates the real distance D2 between the target vehicle 9 and other vehicles 9' based on the real positions of the target vehicle 9 and other vehicles 9' and using the Euclidean distance. The real distance D2 of ’ is less than the set safe driving distance (i.e. a preset distance), and when the image recognition technology is used to determine that the target vehicle 9 intends to switch to the same lane as other vehicles 9 ′, it can be determined that the target vehicle 9 is an event of switching lanes without maintaining a safe driving distance (i.e. a preset distance), so that the image recognition module 31 also produces a violation identification result to notify the violation evidence collection module 32 to collect violation evidence for the target vehicle 9.

在一實施例中,於違規採證模組32接收來自影像辨識模組31之違規辨識結果時,違規採證模組32令第二攝影裝置20對目標車輛9之車尾方向拍攝第二影像,以進行違規採證,再由第二攝影裝置20利用第二影像進行車牌辨識及影像擷取功能,以取得目標車輛9之車牌、行駛道路或/及違規時間等違規事證。詳言之,第二攝影裝置20依據第一攝影裝置10所拍攝第一影像中之目標車輛9之車輛資訊(包含車輛外觀、車輛顏色或車牌),以確認需要進行違規採證之目標車輛9,藉此第二攝影裝置20對目標車輛9拍攝第二影像。 In one embodiment, when the violation evidence collection module 32 receives the violation identification result from the image recognition module 31, the violation evidence collection module 32 instructs the second photographing device 20 to capture a second image in the direction of the rear of the target vehicle 9 for violation evidence collection, and then the second photographing device 20 uses the second image to perform license plate recognition and image capture functions to obtain the target vehicle 9's license plate, driving route, or/and violation time and other evidence of violation. In detail, the second photographing device 20 is based on the vehicle information (including vehicle appearance, vehicle color or license plate) of the target vehicle 9 in the first image captured by the first photographing device 10 to confirm the target vehicle 9 that needs to be collected for violation evidence, whereby the second photographing device 20 takes a second image of the target vehicle 9.

再者,違規採證單元321整合目標車輛9之第二影像、違規事證,以及影像辨識模組31之違規辨識結果(包含第一影像),並形成目標車輛9之違規行駛資訊,以即時地顯示於一螢幕上,供管理人員監控目標車輛9。此外,目標車輛9之違規行駛資訊儲存於資料儲存單元323中,以於管理 人員需要調閱資料時,歷史調閱單元322提供管理人員從資料儲存單元323中調閱目標車輛9之違規行駛資訊,藉此透過違規行駛資訊的記錄作為事後發生事故時,執法及追究責任的參考依據,以保護用路人彼此的安全及路權。 Furthermore, the violation evidence collection unit 321 integrates the second image of the target vehicle 9, the violation evidence, and the violation recognition result (including the first image) of the image recognition module 31, and forms the violation driving information of the target vehicle 9, which is displayed on a screen in real time for the management personnel to monitor the target vehicle 9. In addition, the illegal driving information of the target vehicle 9 is stored in the data storage unit 323 for management When personnel need to access data, the history access unit 322 provides management personnel to access the illegal driving information of the target vehicle 9 from the data storage unit 323, so that the record of illegal driving information can be used as a reference for law enforcement and accountability when an accident occurs afterwards, so as to protect the safety and road rights of passers-by.

圖5A及圖5B係為本發明匝道出口路況偵測方法之流程示意圖,且一併參閱圖1及圖2說明之。 FIG. 5A and FIG. 5B are schematic flow charts of the method for detecting road conditions at ramp exits according to the present invention, and are described with reference to FIG. 1 and FIG. 2 .

於步驟S51中,一第一攝影裝置10設置於一目標車輛9駛出匝道出口道路a2處,以拍攝目標車輛9之車頭方向之第一影像。 In step S51 , a first photographing device 10 is installed at a place where a target vehicle 9 exits the ramp exit road a2 to capture a first image of the target vehicle 9 in the direction of its head.

於步驟S52中,影像辨識模組31之槽化線辨識單元311係用以依據第一影像並結合物件追蹤技術進行物件追蹤處理以辨識目標車輛9是否穿越目標區域A中之槽化線a3,其中,若穿越槽化線a3,則執行步驟S57;反之,若未穿越槽化線a3,則繼續辨識目標車輛9或是其他車輛。 In step S52, the grooved line recognition unit 311 of the image recognition module 31 is used to perform object tracking processing based on the first image and in combination with object tracking technology to identify whether the target vehicle 9 crosses the grooved line a3 in the target area A. If it crosses the grooved line a3, then execute step S57; otherwise, if it does not cross the grooved line a3, continue to identify the target vehicle 9 or other vehicles.

於步驟S53中,影像辨識模組31之路肩辨識單元312係用以依據第一影像判斷是否在偵測時間區段中,其中,若在偵測時間區段中,則執行步驟S54;反之,若未在偵測時間區段中,則繼續判斷是否在偵測時間區段中。 In step S53, the road shoulder recognition unit 312 of the image recognition module 31 is used to judge whether it is in the detection time zone according to the first image, wherein, if it is in the detection time zone, then execute step S54; otherwise, if it is not in the detection time zone, continue to judge whether it is in the detection time zone.

於步驟S54中,路肩辨識單元312係用以依據第一影像並結合物件追蹤技術進行物件追蹤處理以辨識目標車輛9是否行駛於目標區域A中之路肩a1,其中,若行駛於路肩a1,則執行步驟S57;反之,若未行駛於路肩a1,則繼續辨識目標車輛9或是其他車輛。 In step S54, the road shoulder identification unit 312 is used to perform object tracking processing based on the first image and combined with object tracking technology to identify whether the target vehicle 9 is driving on the road shoulder a1 in the target area A, wherein, if driving on the road shoulder a1, then perform step S57; otherwise, if not driving on the road shoulder a1, continue to identify the target vehicle 9 or other vehicles.

於步驟S55中,影像辨識模組31之車道辨識單元313係用以依據第一影像並結合物件追蹤技術進行物件追蹤處理以辨識目標車輛9是 否位於目標區域A中之匝道出口道路a2或/及一般道路a4上的可切換車道進行車道切換,其中,若於可切換車道進行車道切換,則執行步驟S56;反之,若未於可切換車道進行車道切換,則執行步驟S57。 In step S55, the lane recognition unit 313 of the image recognition module 31 is used to perform object tracking processing based on the first image and combined with object tracking technology to identify whether the target vehicle 9 is No Lane switching is performed on the switchable lane on the ramp exit road a2 or/and the general road a4 in the target area A, wherein, if the lane switch is performed on the switchable lane, then step S56 is performed; otherwise, if the lane switch is not performed on the switchable lane, then step S57 is performed.

於步驟S56中,車道辨識單元313偵測目標車輛9與其他車輛之間是否保持安全行駛距離,其中,若有保持安全行駛距離,則車道辨識單元313繼續辨識目標車輛9或是其他車輛;反之,若未保持安全行駛距離,則執行步驟S57。 In step S56, the lane identification unit 313 detects whether a safe driving distance is maintained between the target vehicle 9 and other vehicles. If there is a safe driving distance maintained, the lane identification unit 313 continues to identify the target vehicle 9 or other vehicles; otherwise, if the safe driving distance is not maintained, step S57 is performed.

於步驟S57中,影像辨識模組31產生一違規辨識結果以通知違規採證模組32對目標車輛9進行違規採證。 In step S57 , the image recognition module 31 generates a violation recognition result to notify the violation evidence collection module 32 to collect violation evidence for the target vehicle 9 .

於步驟S58中,違規採證模組32接收來自影像辨識模組31之違規辨識結果時,令第二攝影裝置20對目標車輛9之車尾方向拍攝第二影像,以利用第二影像進行車牌辨識及影像擷取功能,以取得目標車輛9之車牌、行駛道路或/及違規時間等違規事證。 In step S58, when the violation evidence collection module 32 receives the violation recognition result from the image recognition module 31, it makes the second photographing device 20 take a second image in the direction of the rear of the target vehicle 9, so as to use the second image to perform license plate recognition and image capture functions to obtain the target vehicle 9's license plate, driving road or/and violation time and other evidence of violations.

於步驟S59中,違規採證模組32之違規採證單元321將目標車輛9之第二影像、違規事證,以及影像辨識模組31之違規辨識結果所形成的目標車輛9之違規行駛資訊即時地於一螢幕上顯示。 In step S59, the violation evidence collection unit 321 of the violation evidence collection module 32 displays the violation driving information of the target vehicle 9 formed by the second image of the target vehicle 9, the violation evidence, and the violation identification result of the image recognition module 31 on a screen in real time.

於步驟S510中,違規採證模組32之資料儲存單元323儲存目標車輛9之違規行駛資訊。 In step S510 , the data storage unit 323 of the violation evidence collection module 32 stores the violation driving information of the target vehicle 9 .

於步驟S511中,違規採證模組32之歷史調閱單元322提供監控人員從資料儲存單元323中調閱目標車輛9之違規行駛資訊。 In step S511 , the history retrieval unit 322 of the violation evidence collection module 32 provides monitoring personnel to retrieve the violation driving information of the target vehicle 9 from the data storage unit 323 .

此外,本發明還揭示一種電腦可讀媒介,係應用於具有處理器(例如,CPU、GPU等)及/或記憶體的計算裝置或電腦中,且儲存有指令, 並可利用此計算裝置或電腦透過處理器及/或記憶體執行此電腦可讀媒介,以於執行此電腦可讀媒介時執行上述之方法及各步驟。 In addition, the present invention also discloses a computer-readable medium, which is applied to a computing device or computer having a processor (eg, CPU, GPU, etc.) and/or memory, and stores instructions, And the computing device or computer can be used to execute the computer-readable medium through the processor and/or memory, so as to execute the above-mentioned method and each step when executing the computer-readable medium.

綜上所述,本發明之匝道出口路況偵測系統、方法及其電腦可讀媒介,藉由槽化線辨識單元、路肩辨識單元及車道辨識單元對攝影裝置於目標區域中所拍攝的目標車輛之第一影像進行車輛行駛追蹤,以辨識目標車輛是否違規行駛,且自動化地偵測目標車輛是否有違規行駛之情事,以進一步拍攝第二影像對目標車輛進行蒐證,故透過本發明能即時地偵測違規行駛的目標車輛,且還原目標車輛當下的行駛情況,進而快速且精準地提供證據給執法機構對違規車輛進行後續處理。 To sum up, the ramp exit road condition detection system and method of the present invention and its computer-readable medium use the grooved line recognition unit, the shoulder recognition unit and the lane recognition unit to track the first image of the target vehicle captured by the photography device in the target area to identify whether the target vehicle is driving illegally, and automatically detect whether the target vehicle is driving illegally, so as to further capture the second image to search for evidence of the target vehicle. driving conditions, and then quickly and accurately provide evidence to law enforcement agencies for subsequent processing of violating vehicles.

此外,本發明之匝道出口路況偵測系統、方法及其電腦可讀媒介,係具備下列優點或技術功效。 In addition, the ramp exit road condition detection system, method and computer-readable medium of the present invention have the following advantages or technical effects.

一、本發明透過目標區域之路肩、匝道出口道路、槽化線及一般道路進行違規行駛之辨識,且利用設置於目標區域前後側之攝影裝置完整拍攝之目標區域,即可對目標車輛進行違規行駛之辨識。 1. The present invention identifies illegal driving through the shoulders of the target area, ramp exit roads, trough lines, and general roads, and uses the target area that is completely photographed by the camera device installed on the front and rear sides of the target area to identify the illegal driving of the target vehicle.

二、本發明可針對車道上的一或多台目標車輛同時進行距離偵測,帶來24小時全天候監測且提供確切實證,可供執法機構取締違規行駛的開罰作業之關鍵佐證。 2. The present invention can detect the distance of one or more target vehicles on the lane at the same time, bring 24-hour all-weather monitoring and provide definite evidence, which can be used as key evidence for law enforcement agencies to ban illegal driving and issue penalties.

三、本發明透過依據偵測時間區段以及確認是否開放切換車道,以彈性設定路肩、匝道出口道路或/及一般道路之開放條件,可依據執法需求隨時調整偵測時間區段或是可切換車道,符合科技執法所需之彈性及快速回應之需求。 3. The present invention can flexibly set the opening conditions of road shoulders, ramp exit roads or/and general roads according to the detection time zone and confirm whether to open lanes, and can adjust the detection time zone or switch lanes at any time according to law enforcement needs, which meets the needs of flexibility and rapid response required by technological law enforcement.

四、本發明透過YOLO演算法結合Deep SORT演算法能準確地對目標車輛進行車輛軌跡追蹤,以提升目標車輛偵測的精確度及辨識效 率,且更能避免因外物遮擋攝影裝置拍攝目標車輛,而發生無法追蹤之情事。 4. The present invention can accurately track the vehicle trajectory of the target vehicle through the YOLO algorithm combined with the Deep SORT algorithm, so as to improve the accuracy of target vehicle detection and identification efficiency It is more efficient, and it can avoid the occurrence of untraceable situations caused by foreign objects blocking the camera device to shoot the target vehicle.

上述實施形態僅例示性說明本發明之原理及其功效,而非用於限制本發明。任何熟習此項技藝之人士均可在不違背本發明之精神及範疇下,對上述實施形態進行修飾與改變。因此,本發明之權利保護範圍應如申請專利範圍所列。 The above-mentioned embodiments are only illustrative to illustrate the principles and effects of the present invention, and are not intended to limit the present invention. Anyone skilled in the art can modify and change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the rights of the present invention should be listed in the scope of the patent application.

1:匝道出口路況偵測系統 1: Ramp exit road condition detection system

10:第一攝影裝置 10: The first photography installation

20:第二攝影裝置 20:Second camera device

30:路況偵測裝置 30: Road condition detection device

31:影像辨識模組 31: Image recognition module

311:槽化線辨識單元 311: Grooving line identification unit

312:路肩辨識單元 312: Road shoulder identification unit

313:車道辨識單元 313: Lane identification unit

32:違規採證模組 32: Violation evidence collection module

321:違規採證單元 321: Illegal Evidence Collection Unit

322:歷史調閱單元 322: Historical Access Unit

323:資料儲存單元 323: data storage unit

Claims (7)

一種匝道出口路況偵測系統,係包含:一第一攝影裝置,係拍攝匝道出口處的一目標區域及於該目標區域中之至少一目標車輛之第一影像;一路況偵測裝置,係通訊連接該第一攝影裝置以接收該第一影像,利用該第一影像進行物件追蹤處理後,對該第一影像中行駛於該目標區域之該目標車輛進行車輛行駛追蹤,俾於確認該目標車輛在該目標區域中違規行駛時,產生一違規辨識結果;以及一第二攝影裝置,係通訊連接該路況偵測裝置,以於該路況偵測裝置產生該違規辨識結果時,拍攝該目標區域及於該目標區域中之該目標車輛之第二影像,以依據該第二影像取得該目標車輛之違規事證,再將該違規事證傳送給該路況偵測裝置,俾整合該目標車輛之該第二影像、該違規事證及該違規辨識結果為一違規行駛資訊,其中,該目標區域係為一路肩、一匝道出口道路、一槽化線或一般道路,而該路況偵測裝置包括一影像辨識模組,且該影像辨識模組更包括:一槽化線辨識單元,係依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否穿越該目標區域中之槽化線;一路肩辨識單元,係依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否在偵測時間區段中行駛於該目標區域中之路肩;及一車道辨識單元,係依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否位於該目標區域中之匝道出口道路或一般道路上的可切換車道進行車道切換, 其中,於該目標車輛穿越該目標區域中之槽化線、該目標車輛在偵測時間區段中行駛於該目標區域中之路肩、或該目標車輛並未位於該目標區域之匝道出口道路或一般道路上可切換的車道進行車道切換時,由該影像辨識模組產生該違規辨識結果。 A road condition detection system for a ramp exit, comprising: a first photographing device that photographs a target area at the ramp exit and a first image of at least one target vehicle in the target area; a road condition detection device that communicates with the first photographing device to receive the first image, uses the first image to perform object tracking processing, and performs vehicle tracking on the target vehicle driving in the target area in the first image, so that when it is confirmed that the target vehicle is driving illegally in the target area, a violation identification result is generated; and a second photographing device, The road condition detection device is connected by communication, so that when the road condition detection device generates the violation identification result, it takes a second image of the target area and the target vehicle in the target area, so as to obtain the violation evidence of the target vehicle based on the second image, and then transmits the violation evidence to the road condition detection device, so as to integrate the second image of the target vehicle, the violation evidence and the violation identification result into a violation driving information. The road condition detection device includes an image recognition module, and the image recognition module further includes: a grooved line recognition unit, which performs the object tracking process according to the first image to identify whether the target vehicle crosses the grooved line in the target area; a shoulder recognition unit, which performs the object tracking process according to the first image to identify whether the target vehicle is driving on the shoulder of the target area in the detection time zone; and a lane recognition unit, which performs the object tracking according to the first image processing to identify whether the target vehicle is located on a ramp exit road or a switchable lane on a general road in the target area for lane switching, Wherein, when the target vehicle crosses the grooved line in the target area, the target vehicle is driving on the shoulder of the road in the target area during the detection time period, or the target vehicle is not located in the off-ramp road of the target area or a switchable lane on a general road for lane switching, the image recognition module generates the violation identification result. 如請求項1所述之匝道出口路況偵測系統,其中,於該車道辨識單元辨識出該目標車輛位於該目標區域之匝道出口道路或一般道路上可切換的車道進行車道切換時,由該車道辨識單元將該第一影像中該目標區域中之匝道出口道路或一般道路的實際車道畫面進行透視變換,以變換成新車道畫面,進而得到該目標車輛與其他車輛之位置,且由該車道辨識單元計算該目標車輛與該其他車輛之間是否保持一預設距離,以於未保持該預設距離時,由該影像辨識模組產生該違規辨識結果。 The road condition detection system for ramp exits as described in claim 1, wherein when the lane recognition unit recognizes that the target vehicle is located on a switchable lane on a ramp exit road or a general road in the target area for lane switching, the lane recognition unit performs perspective transformation on the actual lane picture of the ramp exit road or general road in the target area in the first image to transform into a new lane picture, and then obtains the positions of the target vehicle and other vehicles, and the lane recognition unit calculates whether a preset distance is maintained between the target vehicle and the other vehicles, When the preset distance is not maintained, the image recognition module generates the violation recognition result. 如請求項1所述之匝道出口路況偵測系統,其中,該路況偵測裝置包括一違規採證模組,係接收該違規辨識結果,以令該第二攝影裝置對該目標車輛拍攝該第二影像,俾於一螢幕上即時顯示該違規行駛資訊。 The ramp exit road condition detection system as described in Claim 1, wherein the road condition detection device includes a violation identification module, which is used to receive the violation identification result, so that the second photographing device can capture the second image of the target vehicle, so that the violation driving information can be displayed on a screen in real time. 一種匝道出口路況偵測方法,係包含:由一第一攝影裝置拍攝匝道出口處的一目標區域及於該目標區域中之至少一目標車輛之第一影像;由一路況偵測裝置接收該第一影像,以利用該第一影像進行物件追蹤處理,再對該第一影像中行駛於該目標區域之該目標車輛進行車輛行駛追蹤,俾於確認該目標車輛在該目標區域中違規行駛時,產生一違規辨識結果;以及 於該路況偵測裝置產生該違規辨識結果時,由一第二攝影裝置拍攝該目標區域及於該目標區域中之該目標車輛之第二影像,以依據該第二影像取得該目標車輛之違規事證,再將該違規事證傳送給該路況偵測裝置,俾整合該目標車輛之該第二影像、該違規事證及該違規辨識結果為一違規行駛資訊,其中,該目標區域係為一路肩、一匝道出口道路、一槽化線或一般道路,而該路況偵測裝置包括一具有一槽化線辨識單元、一路肩辨識單元及一車道辨識單元之影像辨識模組,其中,由該槽化線辨識單元依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否穿越該目標區域中之槽化線,由該路肩辨識單元依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否在偵測時間區段中行駛於該目標區域中之路肩,及由該車道辨識單元依據該第一影像進行該物件追蹤處理以辨識該目標車輛是否位於該目標區域中之匝道出口道路或一般道路上的可切換車道進行車道切換,其中,於該目標車輛穿越該目標區域中之槽化線、該目標車輛在偵測時間區段中行駛於該目標區域中之路肩、或該目標車輛並未位於該目標區域之匝道出口道路或一般道路上可切換的車道進行車道切換時,由該影像辨識模組產生該違規辨識結果。 A road condition detection method for a ramp exit, comprising: taking a first image of a target area at the ramp exit and at least one target vehicle in the target area by a first photographing device; receiving the first image by a road condition detection device, using the first image to perform object tracking processing, and then performing vehicle tracking on the target vehicle driving in the target area in the first image, so as to generate a violation identification result when it is confirmed that the target vehicle is driving illegally in the target area; and When the road condition detection device generates the violation identification result, a second photographing device takes a second image of the target area and the target vehicle in the target area to obtain the violation evidence of the target vehicle based on the second image, and then transmits the violation evidence to the road condition detection device to integrate the second image of the target vehicle, the violation evidence and the violation identification result into a violation driving information, wherein the target area is a shoulder, a ramp exit road, a trough line or a general road , and the road condition detection device includes an image recognition module having a grooved line recognition unit, a road shoulder recognition unit and a lane recognition unit, wherein, the grooved line recognition unit performs the object tracking process based on the first image to identify whether the target vehicle crosses the grooved line in the target area, and the road shoulder recognition unit performs the object tracking process based on the first image to identify whether the target vehicle is driving on the road shoulder in the target area during the detection time period, and the lane recognition unit performs the object tracking process based on the first image, and the lane recognition unit according to the The object tracking process is performed on the first image to identify whether the target vehicle is on an off-ramp road or a switchable lane on a general road in the target area for lane switching, wherein the image recognition module generates the violation identification result when the target vehicle crosses a grooved line in the target area, the target vehicle travels on a road shoulder in the target area during the detection time period, or the target vehicle is not located on an off-ramp road or a switchable lane on a general road in the target area. 如請求項4所述之匝道出口路況偵測方法,更包含於該車道辨識單元辨識出該目標車輛位於該目標區域之匝道出口道路或一般道路上可切換的車道進行車道切換時,由該車道辨識單元將該第一影像中該目標區域中之匝道出口道路或一般道路的實際車道畫面進行透視變換,以變換成新車道畫面,進而得到該目標車輛與其他車輛之位置,且由該車道辨識單元計算該目標車輛與該 其他車輛之間是否保持一預設距離,以於未保持該預設距離時,由該影像辨識模組產生該違規辨識結果。 The road condition detection method for ramp exits as described in claim 4 further includes when the lane recognition unit recognizes that the target vehicle is located in the switchable lane of the ramp exit road or general road in the target area for lane switching, the lane recognition unit performs perspective transformation on the actual lane picture of the ramp exit road or general road in the target area in the first image to transform into a new lane picture, and then obtains the positions of the target vehicle and other vehicles, and the lane recognition unit calculates the distance between the target vehicle and the road. Whether to keep a preset distance between other vehicles, so that when the preset distance is not kept, the image recognition module generates the violation recognition result. 如請求項4所述之匝道出口路況偵測方法,其中,該路況偵測裝置包括一違規採證模組,以於該違規採證模組接收該違規辨識結果時,令該第二攝影裝置對該目標車輛拍攝該第二影像,俾於一螢幕上即時顯示該違規行駛資訊。 The road condition detection method at the ramp exit as described in Claim 4, wherein the road condition detection device includes a violation identification module, so that when the violation identification module receives the violation identification result, the second photographing device is made to capture the second image of the target vehicle, so that the violation driving information can be displayed on a screen in real time. 一種電腦可讀媒介,應用於計算裝置或電腦中,係儲存有指令,以執行如請求項4至6之任一者所述之匝道出口路況偵測方法。 A computer-readable medium, used in a computing device or a computer, is stored with instructions to execute the method for detecting road conditions at ramp exits as described in any one of claims 4 to 6.
TW111100969A 2022-01-10 2022-01-10 A ramp exit road condition detection system, method, and computer-readable medium thereof TWI808603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111100969A TWI808603B (en) 2022-01-10 2022-01-10 A ramp exit road condition detection system, method, and computer-readable medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111100969A TWI808603B (en) 2022-01-10 2022-01-10 A ramp exit road condition detection system, method, and computer-readable medium thereof

Publications (2)

Publication Number Publication Date
TWI808603B true TWI808603B (en) 2023-07-11
TW202329056A TW202329056A (en) 2023-07-16

Family

ID=88147519

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111100969A TWI808603B (en) 2022-01-10 2022-01-10 A ramp exit road condition detection system, method, and computer-readable medium thereof

Country Status (1)

Country Link
TW (1) TWI808603B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM368865U (en) * 2009-07-15 2009-11-11 Information Field Co Ltd Multi-functional photo-monitoring-informing bar
CN207165000U (en) * 2017-07-10 2018-03-30 深圳市思泰宇科技有限公司 The retrograde traffic detection system of rule-breaking vehicle
CN112102609A (en) * 2020-03-10 2020-12-18 中国科学院沈阳自动化研究所 Intelligent detection system for highway vehicle violation behaviors
US20210042531A1 (en) * 2018-04-27 2021-02-11 Shanghai Truthvision Information Technology Co., Ltd. Systems and methods for monitoring traffic sign violation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM368865U (en) * 2009-07-15 2009-11-11 Information Field Co Ltd Multi-functional photo-monitoring-informing bar
CN207165000U (en) * 2017-07-10 2018-03-30 深圳市思泰宇科技有限公司 The retrograde traffic detection system of rule-breaking vehicle
US20210042531A1 (en) * 2018-04-27 2021-02-11 Shanghai Truthvision Information Technology Co., Ltd. Systems and methods for monitoring traffic sign violation
CN112102609A (en) * 2020-03-10 2020-12-18 中国科学院沈阳自动化研究所 Intelligent detection system for highway vehicle violation behaviors

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
網路文獻 泰通科技 泰通科技-智慧影像分析器-快速道路展示 Youtube 2012年3月9日 https://www.youtube.com/watch?v=9ynflUywvjA *

Also Published As

Publication number Publication date
TW202329056A (en) 2023-07-16

Similar Documents

Publication Publication Date Title
CN110136447B (en) Method for detecting lane change of driving and identifying illegal lane change
WO2020087743A1 (en) Non-motor vehicle traffic violation supervision method and apparatus and electronic device
US6281808B1 (en) Traffic light collision avoidance system
CN101313345B (en) System and method for detecting driving against road traffic regulation
US6754663B1 (en) Video-file based citation generation system for traffic light violations
CN107705574A (en) A kind of precisely full-automatic capturing system of quick road violation parking
US20140071286A1 (en) Method for stop sign law enforcement using motion vectors in video streams
KR100779039B1 (en) System and the method for detection, tracking of u-turn violation vehicl
US20180240336A1 (en) Multi-stream based traffic enforcement for complex scenarios
WO2014172708A1 (en) Pedestrian right of way monitoring and reporting system and method
WO2021184570A1 (en) Method and apparatus for identifying driving behaviors of electric bicycle, and computer device
CN108932849B (en) Method and device for recording low-speed running illegal behaviors of multiple motor vehicles
KR101032495B1 (en) Multi-function detecting system of illegally parked vehicles using digital ptz technique and method of detecting thereof
Ismail Application of computer vision techniques for automated road safety analysis and traffic data collection
CN108932850B (en) Method and device for recording low-speed driving illegal behaviors of motor vehicle
CN114724122B (en) Target tracking method and device, electronic equipment and storage medium
CN113903008A (en) Ramp exit vehicle violation identification method based on deep learning and trajectory tracking
KR20210064492A (en) License Plate Recognition Method and Apparatus for roads
TWI808603B (en) A ramp exit road condition detection system, method, and computer-readable medium thereof
Saeed et al. Object identification-based stall detection and stall legitimacy analysis for traffic patterns
KR102656252B1 (en) unmanned traffic enforcement system for enhancing accuracy of enforcement
KR102593483B1 (en) system and method of clamping down on vehicles that violate traffic laws
KR102526884B1 (en) Vehicle enforcement judgment system
TW202411958A (en) Apparatus and method for detecting vehicle not showing turn signal while changing lanes and computer program product implementing the method
CN114979567B (en) Object and region interaction method and system applied to video intelligent monitoring