[go: up one dir, main page]

TWI676969B - Traffic light controlling system based on internet of things (iot) and method thereof - Google Patents

Traffic light controlling system based on internet of things (iot) and method thereof Download PDF

Info

Publication number
TWI676969B
TWI676969B TW107135429A TW107135429A TWI676969B TW I676969 B TWI676969 B TW I676969B TW 107135429 A TW107135429 A TW 107135429A TW 107135429 A TW107135429 A TW 107135429A TW I676969 B TWI676969 B TW I676969B
Authority
TW
Taiwan
Prior art keywords
traffic light
traffic
light device
flow
signal
Prior art date
Application number
TW107135429A
Other languages
Chinese (zh)
Other versions
TW202015003A (en
Inventor
張英彬
Ying Pin Chang
Original Assignee
南開科技大學
Nan Kai University Of Technology
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 南開科技大學, Nan Kai University Of Technology filed Critical 南開科技大學
Priority to TW107135429A priority Critical patent/TWI676969B/en
Application granted granted Critical
Publication of TWI676969B publication Critical patent/TWI676969B/en
Publication of TW202015003A publication Critical patent/TW202015003A/en

Links

Landscapes

  • Traffic Control Systems (AREA)

Abstract

一種基於物聯網的紅綠燈控制系統及其方法,透過設置在紅綠燈裝置的攝像元件持續拍攝道路影像,並且將燈號狀態及道路影像傳送至控制端,由控制端分析燈號狀態為綠燈的車流量及人流量,當車流量及人流量低於預設值時,控制端根據紅綠燈裝置的識別碼篩選出同一路口的所有紅綠燈裝置,並且產生切換信號以傳送至篩選出的紅綠燈裝置進行燈號切換,用以達成提高交通管制效率之技術功效。A traffic light control system and method based on the Internet of Things, which continuously shoots road images through a camera element installed in a traffic light device, and transmits the signal status and road image to the control end, and the control end analyzes the traffic flow with the light status being green And pedestrian flow, when the vehicle flow and pedestrian flow are lower than the preset value, the control end filters out all traffic light devices at the same intersection according to the identification code of the traffic light device, and generates a switching signal to send to the screened traffic light device for light switching To achieve the technical effect of improving the efficiency of traffic control.

Description

基於物聯網的紅綠燈控制系統及其方法Traffic light control system and method based on internet of things

本發明涉及一種紅綠燈控制系統及其方法,特別是分析綠燈時的車流量及人流量,以便控制燈號切換之基於物聯網的紅綠燈控制系統及其方法。 The invention relates to a traffic light control system and a method thereof, in particular to a traffic light control system based on the Internet of Things and a method thereof for analyzing the traffic flow and the human flow when a green light is used, so as to control the signal switching.

近年來,隨著智慧城市的蓬勃發展,各種相關應用便如雨後春筍般湧現,其中又以紅綠燈裝置的控制最受矚目。 In recent years, with the vigorous development of smart cities, various related applications have sprung up, among which the control of traffic light devices has attracted the most attention.

一般而言,傳統的紅綠燈裝置是執行預先設置的控制指令,以便在指定的時間週期內致能(Enable)指定的燈號元件,舉例來說,執行控制指令可先致能紅燈60秒,再使黃燈閃爍5秒,接著致能綠燈30秒,並使其成為一個循環重覆相同的燈號控制。然而,實際的交通狀況瞬息萬變,時常發生紅綠燈裝置在綠燈狀態時無人車通行,而另一側的紅綠燈裝置在紅燈狀態時累積許多人車等待通行的情況,故存在交通管制效率不佳的問題。 Generally speaking, a traditional traffic light device executes a preset control instruction to enable a specified light signal component within a specified time period. For example, the execution of a control instruction can first enable a red light for 60 seconds. Flash the yellow light for another 5 seconds, then enable the green light for 30 seconds, and make it a cycle to repeat the same light control. However, the actual traffic situation changes rapidly, and it often happens that the traffic light device is passing by when the green light is on, and the traffic light device on the other side accumulates a lot of people waiting for traffic when the light is on, so there is a problem of poor traffic control efficiency. .

有鑑於此,便有廠商提出交通指揮機器人的技術手段,其透過在路設置交通指揮機器人,並且允許遠端的交管人員連線控制以進行交通指揮。如此一來,即可不受限於紅綠燈裝置的顯示燈號,解決傳統車流量難以疏導以及交管人員具有安全性疑慮的問題。然而,此一方式需要在各路口設置交通指 揮機器人,不但成本高昂,而且雖然能夠提高交管人員的安全性,卻同樣難以避免車輛與交通指揮機器人發生碰撞,致使交通指揮機器人損毀而無法繼續指揮交通的問題,因此仍然無法有效解決交通管制效率不佳的問題。 In view of this, some manufacturers have proposed a technical method of a traffic command robot, which sets up a traffic command robot on the road and allows remote traffic management personnel to connect and control for traffic command. In this way, it is not limited to the display signal of the traffic light device, and it can solve the problems that it is difficult to divert the traditional traffic and that the traffic management personnel have safety concerns. However, this method requires traffic indicators at each intersection. Swinging a robot is not only costly, but although it can improve the safety of traffic control personnel, it is also difficult to avoid collisions between vehicles and traffic command robots, causing the traffic command robot to be damaged and unable to continue to command traffic, so it still cannot effectively solve the traffic control efficiency Poor question.

綜上所述,可知先前技術中長期以來一直存在交通管制效率不佳之問題,因此實有必要提出改進的技術手段,來解決此一問題。 In summary, it can be known that the problem of poor traffic control efficiency has existed in the prior art for a long time, so it is necessary to propose improved technical means to solve this problem.

本發明揭露一種基於物聯網的紅綠燈控制系統及其方法。 The invention discloses a traffic light control system and method based on the Internet of Things.

首先,本發明揭露一種基於物聯網的紅綠燈控制系統,此系統包含:紅綠燈裝置及控制端。所述紅綠燈裝置包含:攝像模組、傳輸模組及驅動模組。其中,攝像模組用以在紅綠燈裝置啟動時,致能攝像元件持續進行拍攝,並且將每一攝像元件拍攝的影像整合為具有分割畫面的道路影像;傳輸模組電性連接攝像模組,用以持續傳送紅綠燈裝置的燈號狀態及道路影像,以及接收切換信號;驅動模組電性連接傳輸模組,用以根據接收到的切換信號驅動紅綠燈裝置進行燈號切換。 First, the present invention discloses a traffic light control system based on the Internet of Things. The system includes a traffic light device and a control terminal. The traffic light device includes a camera module, a transmission module, and a drive module. Among them, the camera module is used to enable the camera element to continuously shoot when the traffic light device is activated, and integrate the images captured by each camera element into a road image with a split screen; the transmission module is electrically connected to the camera module, and The signal status and road image of the traffic light device are continuously transmitted, and the switching signal is received; the driving module is electrically connected to the transmission module for driving the traffic light device to switch the light according to the received switching signal.

接著,在控制端的部分,其包含:分析模組、篩選模組及處理模組。其中,分析模組用以接收及分析來自紅綠燈裝置的燈號狀態及道路影像,並且根據分析結果計算在燈號狀態為綠燈時的車流量及人流量,以及根據預設的緊急車輛特徵及事故特徵,對道路影像中的分割畫面其中之一進行影像辨識,當存在符合緊急車輛特徵的緊急車輛時,偵測緊急車輛的移動軌跡以分析緊急車輛的行駛路線,並且篩選出符合此行駛路線的紅綠燈裝置進行燈號切換,當存在事故特徵時,驅動設置在相鄰路口的電子看板以顯示事故訊息;篩 選模組電性連接分析模組,用以在車流量及人流量低於預設值時,根據紅綠燈裝置的識別碼篩選出所有位於同一路口的紅綠燈裝置;處理模組電性連接篩選模組,用以生成切換信號,並且將切換信號傳送至所有篩選出的紅綠燈裝置。 Then, the part of the control end includes: an analysis module, a screening module, and a processing module. Among them, the analysis module is used to receive and analyze the signal status and road images from the traffic light device, and calculate the traffic flow and pedestrian flow when the light status is green, and according to the preset emergency vehicle characteristics and accidents Feature to identify one of the split screens in the road image. When there is an emergency vehicle that meets the characteristics of an emergency vehicle, it detects the moving trajectory of the emergency vehicle to analyze the driving route of the emergency vehicle, and selects the driving route that matches the driving route. The traffic light device switches the signal. When there are accident characteristics, the electronic signboard installed at the adjacent intersection is driven to display the accident message; Selection module electrical connection analysis module, used to screen all traffic lights at the same intersection according to the identification code of the traffic light device when the traffic flow and pedestrian flow are lower than the preset value; processing module electrical connection screening module , Used to generate a switching signal, and transmit the switching signal to all screened traffic light devices.

另外,本發明揭露一種基於物聯網的紅綠燈控制方法,應用在具有紅綠燈裝置及控制端的物聯網環境中,其步驟包括:預先在每一紅綠燈裝置設置識別碼,當紅綠燈裝置啟動時,致能攝像元件持續進行拍攝,並且將每一攝像元件拍攝的影像整合為具有分割畫面的道路影像;紅綠燈裝置持續傳送燈號狀態及道路影像至控制端;控制端接收及分析來自紅綠燈裝置的道路影像,並且根據分析結果計算紅綠燈裝置在燈號狀態為綠燈時的車流量及人流量,以及根據預設的緊急車輛特徵及事故特徵,對道路影像中的分割畫面其中之一進行影像辨識,當存在符合緊急車輛特徵的緊急車輛時,偵測緊急車輛的移動軌跡以分析緊急車輛的行駛路線,並且篩選出符合此行駛路線的紅綠燈裝置進行燈號切換,當存在事故特徵時,驅動設置在相鄰路口的電子看板以顯示事故訊息;控制端在車流量及人流量低於預設值時,根據對應的紅綠燈裝置的識別碼篩選出所有位於同一路口的紅綠燈裝置;控制端生成切換信號,並且將此切換信號傳送至所有篩選出的紅綠燈裝置;紅綠燈裝置根據接收到的切換信號驅動紅綠燈裝置進行燈號切換。 In addition, the present invention discloses a traffic light control method based on the Internet of Things, which is applied in an Internet of Things environment with a traffic light device and a control end. The steps include: setting an identification code on each traffic light device in advance, and enabling the camera when the traffic light device is activated. The component continuously shoots and integrates the images captured by each camera element into a road image with a split screen; the traffic light device continuously transmits the light status and road image to the control end; the control end receives and analyzes the road image from the traffic light device, and According to the analysis results, calculate the traffic flow and pedestrian flow of the traffic light device when the light status is green, and perform image recognition on one of the split screens in the road image according to the preset emergency vehicle characteristics and accident characteristics. For emergency vehicles with vehicle characteristics, detect the moving trajectory of the emergency vehicle to analyze the driving route of the emergency vehicle, and filter out the traffic light devices that match this driving route to switch the lights. When there are accident characteristics, the driver installed at the adjacent intersection is driven. Electronic signboard to show accidents When the traffic flow and pedestrian flow are lower than the preset values, the control end filters all traffic light devices located at the same intersection according to the identification code of the corresponding traffic light device; the control end generates a switching signal and transmits the switching signal to all filters The traffic light device is driven out; the traffic light device drives the traffic light device to switch signals according to the received switching signal.

本發明所揭露之系統與方法如上,與先前技術的差異在於本發明透過設置在紅綠燈裝置的攝像元件持續拍攝道路影像,並且將燈號狀態及道路影像傳送至控制端,由控制端分析燈號狀態為綠燈的車流量及人流量,當車流量及人流量低於預設值時,控制端根據紅綠燈裝置的識別碼篩選出同一路口的 所有紅綠燈裝置,並且產生切換信號以傳送至篩選出的紅綠燈裝置進行燈號切換。 The system and method disclosed in the present invention are as described above. The difference from the prior art is that the present invention continuously shoots road images through the camera element provided on the traffic light device, and transmits the signal status and road image to the control terminal, and the control terminal analyzes the light signals. The state of traffic lights and pedestrians with green lights, when the traffic and pedestrians are lower than the preset value, the control end filters out the same intersection according to the identification code of the traffic light device. All the traffic light devices generate a switching signal to transmit to the screened traffic light devices for signal switching.

透過上述的技術手段,本發明可以達成提高交通管制效率之技術功效。 Through the above technical means, the present invention can achieve the technical effect of improving the efficiency of traffic control.

110‧‧‧紅綠燈裝置 110‧‧‧Traffic light device

111‧‧‧攝像模組 111‧‧‧ Camera Module

112‧‧‧傳輸模組 112‧‧‧Transmission Module

113‧‧‧驅動模組 113‧‧‧Driver Module

120‧‧‧控制端 120‧‧‧Control terminal

121‧‧‧分析模組 121‧‧‧analysis module

122‧‧‧篩選模組 122‧‧‧Screening Module

123‧‧‧處理模組 123‧‧‧Processing Module

301‧‧‧紅燈元件 301‧‧‧Red light element

302‧‧‧黃燈元件 302‧‧‧Yellow light element

303‧‧‧紅燈元件 303‧‧‧Red light element

311~313‧‧‧攝像元件 311 ~ 313‧‧‧Image sensor

401‧‧‧第一拍攝區域 401‧‧‧First shooting area

402‧‧‧第二拍攝區域 402‧‧‧Second shooting area

403‧‧‧第三拍攝區域 403‧‧‧Third shooting area

411~414‧‧‧紅綠燈裝置 411 ~ 414‧‧‧Traffic light device

510‧‧‧第一分割畫面 510‧‧‧ first split screen

511、512‧‧‧車輛 511, 512‧‧‧ vehicles

520‧‧‧第二分割畫面 520‧‧‧Second split screen

521‧‧‧行人 521‧‧‧ pedestrian

530‧‧‧第三分割畫面 530‧‧‧ Third split screen

步驟210‧‧‧預先在每一紅綠燈裝置設置一識別碼,當所述紅綠燈裝置啟動時,致能多個攝像元件持續進行拍攝,並且將每一攝像元件拍攝的影像整合為具有多個分割畫面的一道路影像 In step 210‧‧‧ an identification code is set in each traffic light device in advance. When the traffic light device is activated, multiple camera elements are enabled to continuously shoot, and the images captured by each camera element are integrated into a plurality of divided screens. Image of a road

步驟220‧‧‧所述紅綠燈裝置持續傳送一燈號狀態及該道路影像至該控制端 In step 220‧‧‧, the traffic light device continuously transmits a signal status and the road image to the control terminal.

步驟230‧‧‧該控制端接收及分析來自所述紅綠燈裝置的該道路影像,並且根據分析結果計算所述紅綠燈裝置在該燈號狀態為綠燈時的一車流量及一人流量 Step 230‧‧‧ The control terminal receives and analyzes the road image from the traffic light device, and calculates a traffic flow and a person flow of the traffic light device when the traffic light status is green light according to the analysis result

步驟231‧‧‧根據預設的至少一緊急車輛特徵及至少一事故特徵,對該道路影像中的所述分割畫面其中之一進行影像辨識,當存在符合所述緊急車輛特徵的至少一緊急車輛時,偵測所述緊急車輛的移動軌跡以分析所述緊急車輛的一行駛路線,並且篩選出符合該行駛路線的所述紅綠燈裝置進行燈號切換,當存在所述事故特徵時,驅動設置在相鄰路口的一電子看板以顯示事故訊息 Step 231‧‧‧ according to the preset at least one emergency vehicle characteristic and at least one accident characteristic, perform image recognition on one of the segmented pictures in the road image, and when there is at least one emergency vehicle that matches the characteristics of the emergency vehicle When detecting the moving trajectory of the emergency vehicle to analyze a driving route of the emergency vehicle, and selecting the traffic light device that matches the driving route to switch the lights, when the accident characteristic exists, the drive is set at An electronic signboard at an adjacent intersection to display accident messages

步驟240‧‧‧該控制端在該車流量及該人流量低於一預設值時,根據對應的所述紅綠燈裝置的該識別碼篩選出所有位於同一路口的所述紅綠燈裝置 Step 240‧‧‧ The control terminal filters out all the traffic light devices located at the same intersection according to the identification code of the corresponding traffic light device when the vehicle flow and the person flow are lower than a preset value

步驟250‧‧‧該控制端該控制端生成該切換信號,並且將該切換信號傳送至所有篩選出的所述紅綠燈裝置 Step 250‧‧‧ The control end, the control end generates the switching signal, and transmits the switching signal to all the traffic lights screened out

步驟260‧‧‧所述紅綠燈裝置根據接收到的該切換信號驅動所述紅綠燈裝置進行燈號切換 In step 260‧‧‧, the traffic light device drives the traffic light device to switch signals according to the received switching signal.

第1圖為本發明基於物聯網的紅綠燈控制系統之系統方塊圖。 FIG. 1 is a system block diagram of a traffic light control system based on the Internet of Things of the present invention.

第2A圖及第2B圖為本發明基於物聯網的紅綠燈控制方法之方法流程圖。 FIG. 2A and FIG. 2B are flowcharts of a method for controlling a traffic light based on the Internet of Things according to the present invention.

第3圖為應用本發明的紅綠燈裝置之示意圖。 FIG. 3 is a schematic diagram of a traffic light device to which the present invention is applied.

第4圖為應用本發明以攝像元件拍攝道路影像之示意圖。 FIG. 4 is a schematic diagram of shooting a road image with an imaging element by applying the present invention.

第5圖為應用本發明分析具分割畫面的道路影像以計算車流量及人流量之示意圖。 FIG. 5 is a schematic diagram of applying the present invention to analyze road images with split screens to calculate vehicle flow and pedestrian flow.

以下將配合圖式及實施例來詳細說明本發明之實施方式,藉此對本發明如何應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。 In the following, the embodiments of the present invention will be described in detail with reference to the drawings and examples, so as to fully understand and implement the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects.

在說明本發明所揭露之基於物聯網的紅綠燈控制系統及其方法之前,先對本發明所應用的環境作說明,本發明係應用在物聯網環境中,所述紅綠燈裝置及控制端皆為物聯網的一員,相互之間能夠透過網路進行通訊。舉例來說,控制端能夠透過物聯網得知紅綠燈裝置反饋的道路影像及燈號狀態, 如:紅燈、黃燈、綠燈等等;紅綠燈裝置也能夠透過物聯網接收來自控制端的切換信號以切換致能的燈號元件。所述物聯網可透過藍牙(Bluetooth)、WiFi、ZigBee、CoAP(Constrained Application Protocol)或MQTT(Message Queuing Telemetry Transport)等無線通訊技術來實現。 Before explaining the traffic light control system and method based on the Internet of Things disclosed in the present invention, the environment in which the present invention is applied will be described. The present invention is applied in the Internet of Things environment, and the traffic light device and the control terminal are both the Internet of Things Can communicate with each other through the Internet. For example, the control end can learn the road image and signal status feedback from the traffic light device through the Internet of Things. Such as: red light, yellow light, green light, etc .; The traffic light device can also receive the switching signal from the control end through the Internet of Things to switch the enabled light signal element. The Internet of Things can be implemented through wireless communication technologies such as Bluetooth, WiFi, ZigBee, CoAP (Constrained Application Protocol), or MQTT (Message Queuing Telemetry Transport).

以下配合圖式對本發明基於物聯網的紅綠燈控制系統及其方法做進一步說明,請先參閱「第1圖」,「第1圖」為本發明基於物聯網的紅綠燈控制系統之系統方塊圖,此系統包含:紅綠燈裝置110及控制端120。所述紅綠燈裝置110包含:攝像模組111,傳輸模組112及驅動模組113。其中,攝像模組111用以在紅綠燈裝置110啟動時,致能攝像元件持續進行拍攝,並且將每一攝像元件拍攝的影像整合為具有多個分割畫面的道路影像。在實際實施上,所述攝像元件可使用感光耦合元件(Charge-coupled Device,CCD)及互補式金屬氧化物半導體(Complementary Metal-Oxide-Semiconductor,CMOS)至少其中之一來實現。 The following further describes the traffic light control system and method based on the Internet of Things according to the present invention with reference to the drawings. Please refer to "Figure 1" first. "Figure 1" is a system block diagram of the traffic light control system based on the Internet of Things according to the present invention. The system includes: a traffic light device 110 and a control terminal 120. The traffic light device 110 includes a camera module 111, a transmission module 112, and a driving module 113. The camera module 111 is used to enable the camera element to continuously shoot when the traffic light device 110 is activated, and integrate the images captured by each camera element into a road image with multiple divided screens. In actual implementation, the imaging element may be implemented using at least one of a photosensitive-coupled device (CCD) and a complementary metal-oxide semiconductor (CMOS).

傳輸模組112電性連接攝像模組111,用以持續傳送紅綠燈裝置110的燈號狀態及道路影像,以及接收來自控制端120的切換信號。前面提到,所述物聯網可透過藍牙、WiFi、ZigBee、CoAP或MQTT等無線通訊技術來實現,換句話說,傳輸模組112係透過上述至少其中一種無線通訊技術來傳輸燈號狀態及道路影像,以及接收切換信號。在實際實施上,當紅綠燈裝置110的綠燈亮代表燈號狀態為綠燈;黃燈亮代表燈號狀態為黃燈;紅燈亮代表燈號狀態為紅燈。傳輸模組112可直接透過電位感測元件來感測燈號元件是否被致能,進而得知燈號狀態並傳送至控制端120。要補充說明的是,每一紅綠燈裝置110分別具有唯一的識別碼,傳輸模組112在傳輸燈號狀態及道路影像時,可將此識別碼嵌入燈 號狀態及道路影像以供識別,此外,所述識別碼也是控制端120篩選特定紅綠燈裝置110的依據。在實際實施上,所述識別碼可包含路口編號、裝置序號、位置編碼等等,同一路口的紅綠燈裝置110具有相同的路口編號,以一個二線道的十字路口為例,通常設置有四個紅綠燈裝置110,其識別碼中的路口編號可同樣為「001」,裝置序號可分別以數值1至4分別代表這四個紅綠燈裝置,至於位置編碼可包含方向或經緯度等訊息,用以表示紅綠燈裝置110的地理位置。 The transmission module 112 is electrically connected to the camera module 111 for continuously transmitting the signal status and road image of the traffic light device 110 and receiving a switching signal from the control terminal 120. As mentioned earlier, the Internet of Things can be implemented through wireless communication technologies such as Bluetooth, WiFi, ZigBee, CoAP, or MQTT. In other words, the transmission module 112 transmits light status and roads through at least one of the above wireless communication technologies. Video, and receive switching signals. In actual implementation, when the green light of the traffic light device 110 is on, the light status is green; the yellow light is on, the light status is yellow; and the red light is on, it means the light status is red. The transmission module 112 can directly detect whether the light signal element is enabled through the potential sensing element, and then learns the light signal state and transmits it to the control terminal 120. It should be added that each traffic light device 110 has a unique identification code, and the transmission module 112 can embed this identification code in the light when transmitting the signal status and road image. Number status and road image for identification. In addition, the identification code is also the basis for the control terminal 120 to select a specific traffic light device 110. In actual implementation, the identification code may include an intersection number, a device serial number, a position code, and the like. The traffic light device 110 at the same intersection has the same intersection number. Taking a two-lane intersection as an example, there are usually four The traffic light device 110, the intersection number in its identification code can also be "001", the device serial number can respectively represent the four traffic light devices with a value of 1 to 4, as for the position code can include information such as direction or latitude and longitude to indicate the traffic light The geographic location of the device 110.

驅動模組113電性連接傳輸模組112,用以根據接收到的切換信號驅動紅綠燈裝置110進行燈號切換。舉例來說,假設紅綠燈裝置110預設的控制方式是以四個時間週期進行循環(即:依序由第一時間週期、第二時間週期、第三時間週期至第四時間週期,接著重新回到第一時間週期並以此類推),其中每一個時間週期會驅動相應的燈號元件,例如:在第一時間週期持續致能綠燈元件60秒、在第二時間週期使綠燈元件閃爍3次、在第三時間週期僅致能黃燈元件3秒、在第四時間週期僅致能紅燈元件45秒。那麼,當驅動模組113接收到切換信號而驅動此紅綠燈裝置110進行燈號切換時,倘若紅綠燈裝置110處於第一時間週期,驅動模組113將直接結束此第一時間週期而進入第二時間週期,也就是直接使綠燈閃爍3次,接著仍然依照預設的控制方式依序進行第三時間週期及第四時間週期的燈號控制,至此完成由綠燈至紅燈的燈號切換。另一方面,假設紅綠燈裝置110的燈號狀態為紅燈,當驅動模組113接收到切換信號時,將等候一段時間(此段時間與上述由綠燈切換為紅燈所需的時間相同)後由紅燈直接切換為綠燈,也就是說,雖然預設在第四時間週期需致能紅燈元件45秒,但是在接收到切換信號時,即使還未滿45秒,在等候上述的一段時間後便直接回到第一時間週期驅動相應的燈號元件(即:持續致能綠燈元件60秒)。在實 際實施上,所述時間週期可由計時器產生,驅動模組113可藉由微控制器在每一時間週期驅動對應的燈號元件,甚至驅動模組113本身可使用微控制器來實現,以便在接收到切換信號時,使用微控制器直接驅動與下一個時間週期對應的燈號元件。 The driving module 113 is electrically connected to the transmission module 112, and is configured to drive the traffic light device 110 to switch lights according to the received switching signal. For example, it is assumed that the preset control method of the traffic light device 110 is to cycle in four time periods (that is, sequentially from the first time period, the second time period, the third time period to the fourth time period, and then back to To the first time period and so on), each of which will drive the corresponding light element, for example: the green light element is continuously enabled for 60 seconds in the first time period, and the green light element is flashed 3 times in the second time period Only the yellow light element is enabled for 3 seconds in the third time period, and only the red light element is enabled for 45 seconds in the fourth time period. Then, when the driving module 113 receives the switching signal and drives the traffic light device 110 to switch lights, if the traffic light device 110 is in the first time period, the driving module 113 will directly end the first time period and enter the second time. The cycle, that is, the green light is flashed 3 times directly, and then the light control of the third time period and the fourth time period is still performed in accordance with the preset control method, so that the light switch from the green light to the red light is completed. On the other hand, assuming that the traffic light status of the traffic light device 110 is red, when the drive module 113 receives the switching signal, it will wait for a period of time (this period is the same as the time required to switch from green light to red light). Switch from red light to green light directly, that is to say, although it is preset to enable the red light element for 45 seconds in the fourth time period, when the switch signal is received, even if it has not yet completed 45 seconds, waiting for the above period After that, it directly goes back to the first time period to drive the corresponding light signal element (that is, the green light element is continuously enabled for 60 seconds). In reality In practical implementation, the time period can be generated by a timer. The driving module 113 can drive a corresponding light signal element by a microcontroller at each time period, and even the driving module 113 itself can be implemented by a microcontroller in order to When a switching signal is received, a microcontroller is used to directly drive the light element corresponding to the next time period.

接著,在控制端120的部分,所述控制端120包含:分析模組121、篩選模組122及處理模組123。其中,分析模組121用以接收及分析來自紅綠燈裝置110的燈號狀態及道路影像,並且根據分析結果計算在燈號狀態為綠燈時的車流量及人流量。在實際實施上,分析模組121可根據預設的車輛特徵及行人特徵對道路影像進行影像辨識,並且計算符合車輛特徵的數量以作為車流量,以及計算符合行人特徵的數量以作為人流量。另外,在實際實施上,分析模組121還可根據預設的緊急車輛特徵及事故特徵,對道路影像中的分割畫面其中之一進行影像辨識,當存在符合緊急車輛特徵的緊急車輛時,分析緊急車輛的行駛路線以篩選出緊急車輛接下來將會遇到的紅綠燈裝置110進行燈號切換,舉例來說,分析模組121可偵測緊急車輛的車速及移動軌跡來分析出相應的行駛路線,並且視為是否準備轉彎的依據,以便正確篩選出緊急車輛即將遇到的紅綠燈裝置110。要補充說明的是,所述分析模組121電性連接有通訊元件,用以接收來自紅綠燈裝置110的燈號狀態及道路影像,此通訊元件與上述傳輸模組112採用的通訊技術相同,舉例來說,假設上述傳輸模組112使用藍牙通訊技術,那麼此通訊元件便同樣使用藍牙通訊技術,使紅綠燈裝置110與控制端120能夠相互通訊。除此之外,分析模組121還可根據預設的事故特徵判斷路口是否發生事故,並且在發生事故時,驅動相鄰路口的電子看板以顯示事故訊息,用以引導相鄰路口的車輛避免前往事故路口。 Then, in the part of the control terminal 120, the control terminal 120 includes: an analysis module 121, a screening module 122, and a processing module 123. The analysis module 121 is used to receive and analyze the signal status and road images from the traffic light device 110, and calculate the vehicle flow and the person flow when the signal status is green. In actual implementation, the analysis module 121 can perform image recognition on road images according to preset vehicle characteristics and pedestrian characteristics, calculate the number of vehicles that meet the characteristics of the vehicle as the traffic flow, and calculate the number of vehicles that meet the characteristics of the pedestrian as the traffic volume. In addition, in actual implementation, the analysis module 121 can also perform image recognition on one of the divided screens in the road image according to the preset emergency vehicle characteristics and accident characteristics. When there is an emergency vehicle that meets the characteristics of the emergency vehicle, the analysis is performed. The emergency vehicle's driving route is used to screen out the traffic light device 110 that the emergency vehicle will meet next to switch the lights. For example, the analysis module 121 can detect the speed and movement track of the emergency vehicle to analyze the corresponding driving route. , And regard it as the basis for whether to prepare for a turn so as to correctly screen out the traffic light device 110 that the emergency vehicle is about to encounter. It should be added that the analysis module 121 is electrically connected with a communication element to receive the signal status and road image from the traffic light device 110. This communication element is the same as the communication technology used by the transmission module 112. For example, In other words, assuming that the transmission module 112 uses Bluetooth communication technology, the communication element also uses Bluetooth communication technology, so that the traffic light device 110 and the control terminal 120 can communicate with each other. In addition, the analysis module 121 can also determine whether an accident occurs at an intersection based on preset accident characteristics, and when an accident occurs, the electronic signage of the adjacent intersection is driven to display the accident message to guide vehicles at the adjacent intersection to avoid Go to the intersection.

篩選模組122電性連接分析模組121,用以在車流量及人流量低於預設值時,根據紅綠燈裝置110的識別碼篩選出所有位於同一路口的紅綠燈裝置110。舉例來說,假設預設值為數值1,當車流量及人流量低於預設值時,代表在綠燈時沒有人車通行,所以篩選模組122根據識別碼篩選出同一路口的紅綠燈裝置110,以便後續進行燈號切換之用。另外,假設預設值為數值3,代表只有少量的人車通行,亦可篩選出相應的紅綠燈裝置110,用以作為調整其綠燈的維持時間之用,例如:減少致能綠燈的時間週期,以便將紅綠燈裝置110的綠燈維持秒數調低。 The screening module 122 is electrically connected to the analysis module 121 and is configured to screen all traffic light devices 110 located at the same intersection according to the identification code of the traffic light device 110 when the traffic flow and the pedestrian flow are lower than a preset value. For example, suppose the default value is 1. When the traffic flow and pedestrian flow are lower than the preset values, it means that no one is passing through at the green light, so the filtering module 122 filters the traffic light device 110 at the same intersection according to the identification code. , So that it can be used for subsequent signal switching. In addition, if the preset value is 3, which means that only a small number of people and vehicles pass, the corresponding traffic light device 110 can also be selected for adjusting the maintenance time of its green light, for example, reducing the time period for enabling the green light, In order to keep the green light of the traffic light device 110 down for a few seconds.

處理模組123電性連接篩選模組122,用以生成切換信號,並且將此切換信號傳送至篩選模組122篩選出的所有紅綠燈裝置110。所述處理模組123與分析模組121同樣電性連接通訊元件,以便將生成的切換信號傳送至篩選出的紅綠燈裝置110。在實際實施上,處理模組123還可根據所有篩選出的紅綠燈裝置110的車流量及人流量分別生成相應的調整訊息,並且將此調整訊息嵌入相應的切換信號以分別調整各燈號的時間週期,其中,燈號狀態為綠燈的時間週期之長短與車流量及人流量的多寡成正相關。以上述預設值為數值3代表只有少量的人車通行為例,產生的切換信號可包含調整訊息「-20」,此調整訊息可用以調整時間(如:秒數)或時間週期(如:時脈)。假設紅綠燈裝置110的當前狀態是維持綠燈60秒,那麼在接收到此切換信號後,此次維持綠燈的秒數將暫時調整為40秒,即:減少20秒,倘若之後紅綠燈裝置110未再次收到切換信號(代表人車通行數量變多),其綠燈仍然維持在預設的秒數,如:60秒。 The processing module 123 is electrically connected to the screening module 122 for generating a switching signal and transmitting the switching signal to all the traffic light devices 110 screened by the screening module 122. The processing module 123 is electrically connected to the communication element in the same manner as the analysis module 121 so as to transmit the generated switching signal to the screened traffic light device 110. In actual implementation, the processing module 123 can also generate corresponding adjustment messages according to the traffic volume and pedestrian flow of all the screened traffic light devices 110, and embed the adjustment information into the corresponding switching signals to adjust the time of each light separately. Cycle, in which the length of the time period when the light status is green is positively related to the amount of traffic and people. Taking the preset value of 3 as an example, there are only a few people-car-to-car behaviors. The generated switching signal can include an adjustment message "-20". This adjustment message can be used to adjust time (such as seconds) or time period (such as: Clock). Assume that the current state of the traffic light device 110 is to maintain the green light for 60 seconds. After receiving this switching signal, the number of seconds to maintain the green light will be temporarily adjusted to 40 seconds, that is, decrease by 20 seconds. To the switching signal (representing that the number of people and cars passing through increases), its green light remains at the preset number of seconds, such as: 60 seconds.

特別要說明的是,在實際實施上,本發明所述的各模組皆可利用各種方式來實現,包含軟體、硬體或其任意組合,例如,在某些實施方式中, 各模組可利用軟體及硬體或其中之一來實現,除此之外,本發明亦可部分地或完全地基於硬體來實現,例如,系統中的一個或多個模組可以透過積體電路晶片、系統單晶片(System on Chip,SoC)、複雜可程式邏輯裝置(Complex Programmable Logic Device,CPLD)、現場可程式邏輯閘陣列(Field Programmable Gate Array,FPGA)等等。本發明可以是系統、方法及/或電腦程式。電腦程式可以包括電腦可讀儲存媒體,其上載有用於使處理器實現本發明的各個方面的電腦可讀程式指令,電腦可讀儲存媒體可以是可以保持和儲存由指令執行設備使用的指令的有形設備。電腦可讀儲存媒體可以是但不限於電儲存設備、磁儲存設備、光儲存設備、電磁儲存設備、半導體儲存設備或上述的任意合適的組合。電腦可讀儲存媒體的更具體的例子(非窮舉的列表)包括:硬碟、隨機存取記憶體、唯讀記憶體、快閃記憶體、光碟、軟碟以及上述的任意合適的組合。此處所使用的電腦可讀儲存媒體不被解釋為瞬時信號本身,諸如無線電波或者其它自由傳播的電磁波、通過波導或其它傳輸媒介傳播的電磁波(例如,通過光纖電纜的光信號)、或者通過電線傳輸的電信號。另外,此處所描述的電腦可讀程式指令可以從電腦可讀儲存媒體下載到各個計算/處理設備,或者通過網路,例如:網際網路、區域網路、廣域網路及/或無線網路下載到外部電腦設備或外部儲存設備。網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換器、集線器及/或閘道器。每一個計算/處理設備中的網路卡或者網路介面從網路接收電腦可讀程式指令,並轉發此電腦可讀程式指令,以供儲存在各個計算/處理設備中的電腦可讀儲存媒體中。執行本發明操作的電腦程式指令可以是組合語言指令、指令集架構指令、機器指令、機器相關指令、微指令、韌體指令、或者以一種或多種程式語言的任意組合編寫的原始碼 或目的碼(Object Code),所述程式語言包括物件導向的程式語言,如:Common Lisp、Python、C++、Objective-C、Smalltalk、Delphi、Java、Swift、C#、Perl、Ruby與PHP等等,以及常規的程序式(Procedural)程式語言,如:C語言或類似的程式語言。計算機可讀程式指令可以完全地在電腦上執行、部分地在電腦上執行、作為一個獨立的軟體執行、部分在客戶端電腦上部分在遠端電腦上執行、或者完全在遠端電腦或伺服器上執行。 It should be particularly noted that, in actual implementation, each module described in the present invention can be implemented in various ways, including software, hardware, or any combination thereof. For example, in some embodiments, Each module can be implemented by software or hardware or one of them. In addition, the present invention can also be implemented partially or completely based on hardware. For example, one or more modules in the system can be implemented through the product. Body circuit chip, System on Chip (SoC), Complex Programmable Logic Device (CPLD), Field Programmable Gate Array (FPGA), etc. The invention may be a system, a method, and / or a computer program. The computer program may include a computer-readable storage medium having computer-readable program instructions for enabling a processor to implement various aspects of the present invention. The computer-readable storage medium may be a tangible computer that can hold and store instructions used by the instruction execution device. device. The computer-readable storage medium may be, but is not limited to, an electric storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer-readable storage media include hard disks, random access memory, read-only memory, flash memory, optical disks, floppy disks, and any suitable combination of the foregoing. Computer-readable storage media used herein are not to be interpreted as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, optical signals through fiber optic cables), or via electrical wires Electrical signal transmitted. In addition, the computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network such as the Internet, a local area network, a wide area network, and / or a wireless network To an external computer device or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, hubs, and / or gateways. The network card or network interface in each computing / processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for computer-readable storage media stored in each computing / processing device in. The computer program instructions for performing the operations of the present invention may be combined language instructions, instruction set architecture instructions, machine instructions, machine-related instructions, micro instructions, firmware instructions, or source code written in any combination of one or more programming languages. Or Object Code, the programming language includes object-oriented programming languages, such as: Common Lisp, Python, C ++, Objective-C, Smalltalk, Delphi, Java, Swift, C #, Perl, Ruby, PHP, etc., And conventional procedural programming languages, such as C or similar programming languages. Computer-readable program instructions can be executed entirely on a computer, partly on a computer, as a stand-alone software, partly on a client computer, partly on a remote computer, or entirely on a remote computer or server On.

接著,請參閱「第2A圖」及「第2B圖」,「第2A圖」及「第2B圖」為本發明基於物聯網的紅綠燈控制方法之方法流程圖,應用在具有紅綠燈裝置110及控制端120的物聯網環境,其步驟包括:預先在每一紅綠燈裝置110設置識別碼,當紅綠燈裝置110啟動時,致能攝像元件持續進行拍攝,並且將每一攝像元件拍攝的影像整合為具有分割畫面的道路影像(步驟210);紅綠燈裝置110持續傳送燈號狀態及道路影像至控制端120(步驟220);控制端120接收及分析來自紅綠燈裝置110的道路影像,並且根據分析結果計算紅綠燈裝置110在燈號狀態為綠燈時的車流量及人流量(步驟230);控制端120在車流量及人流量低於預設值時,根據對應的紅綠燈裝置110的識別碼篩選出所有位於同一路口的紅綠燈裝置110(步驟240);控制端120生成切換信號,並且將此切換信號傳送至所有篩選出的紅綠燈裝置110(步驟250);紅綠燈裝置110根據接收到的切換信號驅動紅綠燈裝置110進行燈號切換(步驟260)。透過上述步驟,即可透過設置在紅綠燈裝置110的攝像元件持續拍攝道路影像,並且將燈號狀態及道路影像傳送至控制端120,由控制端120分析燈號狀態為綠燈的車流量及人流量,當車流量及人流量低於預設值時,控制端120根據紅綠燈裝置110的識別碼篩選 出同一路口的所有紅綠燈裝置110,並且產生切換信號以傳送至篩選出的紅綠燈裝置110進行燈號切換,有效避免綠燈卻無人車通行的情況。 Next, please refer to "Figure 2A" and "Figure 2B". "Figure 2A" and "Figure 2B" are flowcharts of the method for controlling traffic lights based on the Internet of Things of the present invention. In the IoT environment of the terminal 120, the steps include: setting an identification code on each traffic light device 110 in advance, enabling the camera element to continuously shoot when the traffic light device 110 is activated, and integrating the images captured by each camera element into a segmented image. The road image on the screen (step 210); the traffic light device 110 continuously transmits the signal status and road image to the control terminal 120 (step 220); the control terminal 120 receives and analyzes the road image from the traffic light device 110, and calculates the traffic light device according to the analysis result 110 when the light status is green light (step 230); when the traffic volume and pedestrian volume are lower than the preset value, the control end 120 filters out all the traffic lights located at the same intersection according to the identification code of the corresponding traffic light device 110 Traffic light device 110 (step 240); the control terminal 120 generates a switching signal and transmits the switching signal to all the filtered traffic light devices 110 (step 250); the traffic light device 110 drives the traffic light device 110 to switch lights according to the received switching signal (step 260). Through the above steps, the road image can be continuously taken by the camera element set on the traffic light device 110, and the signal status and road image are transmitted to the control terminal 120, and the control terminal 120 analyzes the traffic flow and the pedestrian flow with the green status. When the traffic flow and pedestrian flow are lower than the preset values, the control terminal 120 filters according to the identification code of the traffic light device 110 All traffic light devices 110 at the same intersection are generated, and a switching signal is generated to be transmitted to the screened traffic light devices 110 for signal switching, which effectively avoids the situation where green lights are passed by unmanned vehicles.

另外,在步驟230之後,還可根據預設的緊急車輛特徵及事故特徵,對道路影像中的分割畫面其中之一進行影像辨識,當存在符合緊急車輛特徵的緊急車輛時,偵測緊急車輛的移動軌跡以分析緊急車輛的行駛路線,並且篩選出符合此行駛路線的紅綠燈裝置110進行燈號切換,當存在事故特徵時,驅動設置在相鄰路口的電子看板以顯示事故訊息(步驟231)。舉例來說,假設分析出行駛路線朝向第一方向時,篩選出前往此第一方向的下一個或多個路口的紅綠燈裝置110進行燈號切換;假設分析出行駛路線是轉彎朝向第二方向時,篩選出前往此第二方向的下一個或多個路口的紅綠燈裝置110進行燈號切換。如此一來,控制端120便可產生切換信號並將其傳送至篩選出的紅綠燈裝置110,用以驅動燈號元件提早完成燈號切換,有效避免緊急車輛遭遇紅燈時強行通過路口的風險性,進而提高救護或救災的時效性。 In addition, after step 230, one of the divided screens in the road image can be identified based on the preset emergency vehicle characteristics and accident characteristics. When there is an emergency vehicle that meets the characteristics of the emergency vehicle, the emergency vehicle is detected. The trajectory is moved to analyze the driving route of the emergency vehicle, and the traffic light device 110 matching the driving route is screened to switch the lights. When there is an accident characteristic, an electronic sign provided at an adjacent intersection is driven to display an accident message (step 231). For example, if it is analyzed that the driving route is heading in the first direction, the traffic light device 110 that goes to the next or more intersections in this first direction is screened for signal switching; if it is analyzed that the driving route is turning toward the second direction, , Selecting the traffic light device 110 for the next or multiple intersections in the second direction to switch the lights. In this way, the control terminal 120 can generate a switching signal and transmit it to the screened traffic light device 110, which is used to drive the light signal element to complete the light signal switching early, which effectively avoids the risk of forcibly passing the intersection when the emergency vehicle encounters a red light. , Thereby improving the timeliness of rescue or disaster relief.

以下配合「第3圖」至「第5圖」以實施例的方式進行如下說明,請先參閱「第3圖」,「第3圖」為應用本發明的紅綠燈裝置之示意圖。在實際實施上,紅綠燈裝置110可如「第3圖」所示意的方式設置多個攝像元件(311、312及313),用以分別拍攝不同方向的畫面。其中,第一個攝像元件311可用以拍攝前方來車;第二個攝像元件312可用以拍攝其中一邊的斑馬線上的行人;第三個攝像元件313可用以拍攝另一邊的斑馬線上的行人。這些攝像元件(311、312及313)拍攝的畫面將以分割畫面的方式呈現在同一個道路影像中,並且透過物聯網將道路影像持續傳送至控制端120,而在傳送的過程亦會一併傳送燈號狀態,如:紅燈、黃燈、綠燈等等。其中,當致能紅燈元件301時,燈號狀態為 紅燈;當致能黃燈元件302時,燈號狀態為黃燈;當致能綠燈元件303時,燈號狀態為綠燈等等。接著,當控制端120生成切換信號,而且紅綠燈裝置110被控制端120所篩選出,那麼,控制端120會將生成的切換信號通過物聯網傳送至紅綠燈裝置110。此時,紅綠燈裝置110便可驅動相應的燈號元件,如:紅燈元件301、黃燈元件302、綠燈元件303等等,用以進行相應的燈號切換。 The following description will be given in an embodiment in conjunction with "Figure 3" to "Figure 5". Please refer to "Figure 3" first, and "Figure 3" is a schematic diagram of a traffic light device to which the present invention is applied. In actual implementation, the traffic light device 110 may be provided with a plurality of camera elements (311, 312, and 313) in a manner as shown in FIG. 3 to capture images in different directions. Among them, the first camera element 311 can be used to photograph a vehicle coming in front; the second camera element 312 can be used to photograph a pedestrian on a zebra crossing; and the third camera element 313 can be used to photograph a pedestrian on the other zebra crossing. The pictures taken by these camera elements (311, 312, and 313) will be presented in the same road image in the form of divided pictures, and the road image will be continuously transmitted to the control end 120 through the Internet of Things, and the transmission process will also be included. Transmit light status, such as: red light, yellow light, green light, etc. Among them, when the red light element 301 is enabled, the light status is Red light; when the yellow light element 302 is enabled, the light status is yellow; when the green light element 303 is enabled, the light status is green and so on. Next, when the control terminal 120 generates a switching signal and the traffic light device 110 is filtered by the control terminal 120, then the control terminal 120 transmits the generated switching signal to the traffic light device 110 through the Internet of Things. At this time, the traffic light device 110 can drive the corresponding light elements, such as the red light element 301, the yellow light element 302, the green light element 303, and the like, to perform corresponding light signal switching.

如「第4圖」所示意,「第4圖」為應用本發明以攝像元件拍攝道路影像之示意圖。前面提到,第一個攝像元件311可用以拍攝前方來車;第二個攝像元件312可用以拍攝其中一邊的斑馬線上的行人;第三個攝像元件313可用以拍攝另一邊的斑馬線上的行人。在實際實施上,其拍攝的區域可如「第4圖」所示意,第一個攝像元件311所拍攝的區域為第一拍攝區域401;第二個攝像元件312所拍攝的區域為第二拍攝區域402;第三個攝像元件313所拍攝的區域為第三拍攝區域403。在實際實施上,當紅綠燈裝置411的燈號狀態為綠燈時,紅綠燈裝置412的燈號狀態通常亦為綠燈,而紅綠燈裝置413及紅綠燈裝置414的燈號狀態則為紅燈,所以當紅綠燈裝置411的燈號狀態為綠燈時,第一拍攝區域401允許車輛通行,第二拍攝區域402及第三拍攝區域403的斑馬線上允許行人通行,倘若控制端120分析出第一拍攝區域401無拍攝到車輛、第二拍攝區域402及第三拍攝區域403無拍攝到行人,代表紅綠燈裝置411不需要維持在綠燈,故控制端120生成切換信號並傳送至同一路口的紅綠燈裝置(411~414)進行燈號切換。 As shown in "Figure 4", "Figure 4" is a schematic diagram of a road image captured by an image sensor using the present invention. As mentioned earlier, the first camera element 311 can be used to photograph a vehicle coming in front; the second camera element 312 can be used to photograph a pedestrian on a zebra crossing; and the third camera element 313 can be used to photograph a pedestrian on a zebra crossing. . In actual implementation, the area shot by it can be as shown in the "Figure 4", the area shot by the first camera element 311 is the first shooting area 401; the area shot by the second camera element 312 is the second shooting Region 402; the region captured by the third imaging element 313 is the third imaging region 403. In actual implementation, when the traffic light status of the traffic light device 411 is green, the traffic light status of the traffic light device 412 is usually also green, and the traffic light status of the traffic light device 413 and the traffic light device 414 are red, so when the traffic light device When the light status of 411 is green, the first shooting area 401 allows vehicles to pass, and the zebra crossings of the second shooting area 402 and the third shooting area 403 allow pedestrians to pass. If the control end 120 analyzes that the first shooting area 401 is not shooting, No pedestrians were photographed in the vehicle, the second shooting area 402, and the third shooting area 403, which means that the traffic light device 411 does not need to be maintained at the green light, so the control terminal 120 generates a switching signal and transmits it to the traffic light device (411 ~ 414) at the same intersection for lighting No. Switch.

請參閱「第5圖」,「第5圖」為應用本發明分析具分割畫面的道路影像以計算車流量及人流量之示意圖。假設具有多個分割畫面的道路影像如「第5圖」所示意,控制端120會使用影像辨識找出在第一分割畫面510中的車輛 (511、512)並計算其總數作為車流量,如:數值2,以及找出在第二分割畫面520及第三分割畫面530中的行人521,並計算其總數作為人流量,如:數值1。在實際實施上,可透過電腦視覺庫,如:OpenCV(Open Source Computer Vision Library)搭配如:人工智慧(Artificial Intelligence,AI)、人工神經網路(Artificial Neural Network,ANN)、深度學習(Deep Learning)等技術來建立車輛特徵及行人特徵的模型,以便用於車輛及行人的影像辨識,甚至是進行車輛(511、512)的運動跟蹤以計算出車輛(511、512)的行駛路線。 Please refer to "Figure 5". "Figure 5" is a schematic diagram of analyzing the road image with split screen to calculate the vehicle flow and the person flow using the present invention. Assume that the road image with multiple split screens is as shown in "Figure 5", the control terminal 120 will use image recognition to find the vehicles in the first split screen 510 (511, 512) and calculate the total number as the traffic flow, such as the value 2; and find the pedestrian 521 in the second divided picture 520 and the third divided picture 530, and calculate the total number as the pedestrian traffic, such as: the value 1 . In actual implementation, you can use computer vision libraries, such as: OpenCV (Open Source Computer Vision Library), such as: Artificial Intelligence (AI), Artificial Neural Network (ANN), Deep Learning (Deep Learning ) And other technologies to build models of vehicle characteristics and pedestrian characteristics for image recognition of vehicles and pedestrians, and even perform motion tracking of vehicles (511, 512) to calculate the driving route of vehicles (511, 512).

綜上所述,可知本發明與先前技術之間的差異在於透過設置在紅綠燈裝置的攝像元件持續拍攝道路影像,並且將燈號狀態及道路影像傳送至控制端,由控制端分析燈號狀態為綠燈的車流量及人流量,當車流量及人流量低於預設值時,控制端根據紅綠燈裝置的識別碼篩選出同一路口的所有紅綠燈裝置,並且產生切換信號以傳送至篩選出的紅綠燈裝置進行燈號切換,藉由此一技術手段可以解決先前技術所存在的問題,進而達成提高交通管制效率之技術功效。 In summary, it can be seen that the difference between the present invention and the prior art lies in the continuous shooting of road images through the camera element installed in the traffic light device, and the signal status and road image are transmitted to the control end, and the control end analyzes the light status as The traffic volume and pedestrian volume of the green light. When the traffic volume and pedestrian volume are lower than the preset value, the control end filters all traffic light devices at the same intersection according to the identification code of the traffic light device, and generates a switching signal to transmit to the screened traffic light device. By performing signal switching, the problems existing in the prior art can be solved by this technical means, and the technical effect of improving the efficiency of traffic control can be achieved.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。 Although the present invention is disclosed in the foregoing embodiments as above, it is not intended to limit the present invention. Any person skilled in similar arts can make some modifications and retouches without departing from the spirit and scope of the present invention. The scope of patent protection shall be determined by the scope of the patent application attached to this specification.

Claims (8)

一種基於物聯網的紅綠燈控制系統,該系統包含:至少一紅綠燈裝置,每一紅綠燈裝置具有一識別碼且包含:一攝像模組,用以在所述紅綠燈裝置啟動時,致能多個攝像元件持續進行拍攝,並且將每一攝像元件拍攝的影像整合為具有多個分割畫面的一道路影像;一傳輸模組,電性連接該攝像模組,用以持續傳送所述紅綠燈裝置的一燈號狀態及該道路影像,以及接收一切換信號;以及一驅動模組,電性連接該傳輸模組,用以根據接收到的該切換信號驅動所述紅綠燈裝置進行燈號切換;以及一控制端,該控制端包含:一分析模組,用以接收及分析來自所述紅綠燈裝置的該燈號狀態及該道路影像,並且根據分析結果計算在該燈號狀態為綠燈時的一車流量及一人流量,以及根據預設的至少一緊急車輛特徵及至少一事故特徵,對該道路影像中的所述分割畫面其中之一進行影像辨識,當存在符合所述緊急車輛特徵的至少一緊急車輛時,偵測所述緊急車輛的移動軌跡以分析所述緊急車輛的一行駛路線,並且篩選出符合該行駛路線的所述紅綠燈裝置進行燈號切換,當存在所述事故特徵時,驅動設置在相鄰路口的一電子看板以顯示事故訊息;一篩選模組,電性連接該分析模組,用以在該車流量及該人流量低於一預設值時,根據所述紅綠燈裝置的該識別碼篩選出所有位於同一路口的所述紅綠燈裝置;以及一處理模組,電性連接該篩選模組,用以生成該切換信號,並且將該切換信號傳送至所有篩選出的所述紅綠燈裝置。A traffic light control system based on the Internet of Things, the system includes: at least one traffic light device, each traffic light device has an identification code and includes: a camera module for enabling a plurality of camera elements when the traffic light device is activated Continue shooting, and integrate the images captured by each camera element into a road image with multiple split screens; a transmission module electrically connected to the camera module to continuously transmit a signal of the traffic light device The state and the road image, and receiving a switching signal; and a driving module electrically connected to the transmission module for driving the traffic light device to switch lights according to the received switching signal; and a control terminal, The control terminal includes: an analysis module for receiving and analyzing the signal state and the road image from the traffic light device, and calculating a traffic flow and a person when the signal state is a green light according to the analysis result The flow, and the segmented picture in the road image according to the preset at least one emergency vehicle characteristic and at least one accident characteristic One of them performs image recognition. When there is at least one emergency vehicle that meets the characteristics of the emergency vehicle, the moving trajectory of the emergency vehicle is detected to analyze a driving route of the emergency vehicle, and the ones that match the driving route are screened. The traffic light device switches the signal, and when the accident characteristic exists, an electronic signboard installed at an adjacent intersection is driven to display the accident message; a screening module is electrically connected to the analysis module for use in the vehicle When the flow rate and the person flow rate are lower than a preset value, all the traffic light devices located at the same intersection are screened out according to the identification code of the traffic light device; and a processing module electrically connected to the screening module for The switching signal is generated, and the switching signal is transmitted to all the traffic light devices that are screened out. 根據申請專利範圍第1項之基於物聯網的紅綠燈控制系統,其中該分析模組根據預設的至少一車輛特徵及至少一行人特徵對該道路影像進行影像辨識,並且計算符合所述車輛特徵的數量以作為該車流量,以及計算符合所述行人特徵的數量以作為該人流量。According to the traffic light control system based on the Internet of Things, the analysis module performs image recognition of the road image according to preset at least one vehicle characteristic and at least one pedestrian characteristic, and calculates The number is used as the traffic flow, and the number that meets the characteristics of the pedestrian is calculated as the person flow. 根據申請專利範圍第1項之基於物聯網的紅綠燈控制系統,其中所述紅綠燈裝置具有一計時器及一微控制器,該計時器產生多個時間週期,該微控制器在每一時間週期驅動對應的多個燈號元件,當該傳輸模組接收到該切換信號時,使該微控制器直接驅動與下一時間週期對應的所述燈號元件。According to the IoT-based traffic light control system according to item 1 of the scope of patent application, the traffic light device has a timer and a microcontroller, the timer generates multiple time periods, and the microcontroller is driven at each time period The corresponding plurality of light signal elements, when the transmission module receives the switching signal, causes the microcontroller to directly drive the light signal elements corresponding to the next time period. 根據申請專利範圍第3項之基於物聯網的紅綠燈控制系統,其中該處理模組根據所有篩選出的所述紅綠燈裝置的該車流量及該人流量分別生成相應的一調整訊息,並且將該調整訊息嵌入相應的該切換信號以分別調整所述時間週期,其中,該燈號狀態為綠燈的所述時間週期的長短與該車流量及該人流量的多寡成正相關。According to the Internet of Things traffic control system based on item 3 of the patent application scope, the processing module generates a corresponding adjustment message according to the vehicle flow and the person flow of all the traffic lights screened out, and adjusts the adjustment accordingly. Messages are embedded in the corresponding switching signals to adjust the time periods respectively, wherein the length of the time period in which the light status is a green light is positively related to the amount of traffic and the amount of people. 一種基於物聯網的紅綠燈控制方法,應用在具有至少一紅綠燈裝置及一控制端的物聯網環境中,其步驟包括:預先在每一紅綠燈裝置設置一識別碼,當所述紅綠燈裝置啟動時,致能多個攝像元件持續進行拍攝,並且將每一攝像元件拍攝的影像整合為具有多個分割畫面的一道路影像;所述紅綠燈裝置持續傳送一燈號狀態及該道路影像;該控制端接收及分析來自所述紅綠燈裝置的該道路影像,並且根據分析結果計算所述紅綠燈裝置在該燈號狀態為綠燈時的一車流量及一人流量,以及根據預設的至少一緊急車輛特徵及至少一事故特徵,對該道路影像中的所述分割畫面其中之一進行影像辨識,當存在符合所述緊急車輛特徵的至少一緊急車輛時,偵測所述緊急車輛的移動軌跡以分析所述緊急車輛的一行駛路線,並且篩選出符合該行駛路線的所述紅綠燈裝置進行燈號切換,當存在所述事故特徵時,驅動設置在相鄰路口的一電子看板以顯示事故訊息;該控制端在該車流量及該人流量低於一預設值時,根據對應的所述紅綠燈裝置的該識別碼篩選出所有位於同一路口的所述紅綠燈裝置;該控制端生成一切換信號,並且將該切換信號傳送至所有篩選出的所述紅綠燈裝置;以及所述紅綠燈裝置根據接收到的該切換信號驅動所述紅綠燈裝置進行燈號切換。A traffic light control method based on the Internet of Things is applied in an Internet of Things environment with at least one traffic light device and a control end. The steps include: setting an identification code in advance on each traffic light device, and enabling the traffic light device when the traffic light device is activated. Multiple camera elements are continuously shooting, and the images captured by each camera element are integrated into a road image with multiple split screens; the traffic light device continuously transmits a signal status and the road image; the control terminal receives and analyzes The road image from the traffic light device, and a traffic flow and a person flow when the traffic light device is in a green light state are calculated according to an analysis result, and at least one emergency vehicle characteristic and at least one accident are preset according to the analysis result. Feature, image recognition is performed on one of the divided pictures in the road image, and when there is at least one emergency vehicle that matches the characteristics of the emergency vehicle, the movement trajectory of the emergency vehicle is detected to analyze the emergency vehicle A driving route, and the traffic light device matching the driving route is screened. When the signal is switched, when an accident characteristic exists, an electronic kanban installed at an adjacent intersection is driven to display the accident message; the control end is based on the corresponding traffic flow when the vehicle flow and the person flow are below a preset value. The identification code of the traffic light device screens out all the traffic light devices located at the same intersection; the control terminal generates a switching signal and transmits the switching signal to all the traffic lights screened out; and the traffic light device is based on receiving The obtained switching signal drives the traffic light device to perform light switching. 根據申請專利範圍第5項之基於物聯網的紅綠燈控制方法,其中該車流量及該人流量的計算方式係根據預設的至少一車輛特徵及至少一行人特徵對該道路影像進行影像辨識,並且計算符合所述車輛特徵的數量以作為該車流量,以及計算符合所述行人特徵的數量以作為該人流量。According to the Internet of Things traffic control method based on item 5 of the scope of patent application, wherein the calculation method of the traffic flow and the pedestrian flow is based on the preset at least one vehicle feature and at least one pedestrian feature to perform image recognition on the road image, and Calculate the number of features that meet the vehicle characteristics as the traffic volume, and calculate the number of features that meet the pedestrian characteristics as the traffic volume. 根據申請專利範圍第5項之基於物聯網的紅綠燈控制方法,其中所述紅綠燈裝置具有一計時器、一微控制器,該計時器產生多個時間週期,該微控制器在每一時間週期驅動對應的多個燈號元件,當所述紅綠燈裝置接收到該切換信號時,使該微控制器直接驅動與下一時間週期對應的所述燈號元件。The traffic light control method based on the Internet of Things according to item 5 of the scope of patent application, wherein the traffic light device has a timer and a microcontroller, the timer generates multiple time periods, and the microcontroller is driven at each time period When the corresponding traffic light device receives the switching signal, the microcontroller makes the microcontroller directly drive the traffic light device corresponding to the next time period. 根據申請專利範圍第7項之基於物聯網的紅綠燈控制方法,其中該控制端根據所有篩選出的所述紅綠燈裝置的該車流量及該人流量分別生成相應的一調整訊息,並且將該調整訊息嵌入相應的該切換信號以分別調整所述時間週期,其中,該燈號狀態為綠燈的所述時間週期的長短與該車流量及該人流量的多寡成正相關。According to the Internet of Things traffic control method based on item 7 of the scope of patent application, wherein the control end generates a corresponding adjustment message according to the vehicle flow and the person flow of all the traffic lights screened out, and the adjustment information The corresponding switching signal is embedded to adjust the time periods, respectively, wherein the length of the time period in which the light status is a green light is positively related to the amount of traffic and the amount of people.
TW107135429A 2018-10-08 2018-10-08 Traffic light controlling system based on internet of things (iot) and method thereof TWI676969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107135429A TWI676969B (en) 2018-10-08 2018-10-08 Traffic light controlling system based on internet of things (iot) and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107135429A TWI676969B (en) 2018-10-08 2018-10-08 Traffic light controlling system based on internet of things (iot) and method thereof

Publications (2)

Publication Number Publication Date
TWI676969B true TWI676969B (en) 2019-11-11
TW202015003A TW202015003A (en) 2020-04-16

Family

ID=69189013

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107135429A TWI676969B (en) 2018-10-08 2018-10-08 Traffic light controlling system based on internet of things (iot) and method thereof

Country Status (1)

Country Link
TW (1) TWI676969B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150831A (en) * 2020-10-10 2020-12-29 广州知弘科技有限公司 Big data-based smart city street lamp information control processing method
CN112419755A (en) * 2020-09-29 2021-02-26 信阳农林学院 Distributed traffic signal control system and method
TWI730509B (en) * 2019-11-22 2021-06-11 英業達股份有限公司 Method of acquiring detection zone in image and method of determining zone usage

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5444442A (en) * 1992-11-05 1995-08-22 Matsushita Electric Industrial Co., Ltd. Method for predicting traffic space mean speed and traffic flow rate, and method and apparatus for controlling isolated traffic light signaling system through predicted traffic flow rate
US20030020633A1 (en) * 2001-07-26 2003-01-30 Hsi-Che Lee Traffic light control and information transmission device
JP2006113682A (en) * 2004-10-12 2006-04-27 Toyota Motor Corp Traffic signal control device
TW201320025A (en) * 2011-11-15 2013-05-16 Hon Hai Prec Ind Co Ltd A traffic lights intelligent controlling device and method
TWM508754U (en) * 2015-05-20 2015-09-11 jian-zhi Han Traffic signal controlling device
CN108022436A (en) * 2016-10-28 2018-05-11 百度在线网络技术(北京)有限公司 Method for controlling traffic signal lights and device
CN108389409A (en) * 2018-05-03 2018-08-10 张梦雅 Traffic route monitoring system and its monitoring method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5444442A (en) * 1992-11-05 1995-08-22 Matsushita Electric Industrial Co., Ltd. Method for predicting traffic space mean speed and traffic flow rate, and method and apparatus for controlling isolated traffic light signaling system through predicted traffic flow rate
US20030020633A1 (en) * 2001-07-26 2003-01-30 Hsi-Che Lee Traffic light control and information transmission device
JP2006113682A (en) * 2004-10-12 2006-04-27 Toyota Motor Corp Traffic signal control device
TW201320025A (en) * 2011-11-15 2013-05-16 Hon Hai Prec Ind Co Ltd A traffic lights intelligent controlling device and method
TWM508754U (en) * 2015-05-20 2015-09-11 jian-zhi Han Traffic signal controlling device
CN108022436A (en) * 2016-10-28 2018-05-11 百度在线网络技术(北京)有限公司 Method for controlling traffic signal lights and device
CN108389409A (en) * 2018-05-03 2018-08-10 张梦雅 Traffic route monitoring system and its monitoring method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱子建,"智慧城市:智能紅綠燈的現在與未來發展 ",<http://iknow.stpi.narl.org.tw/Post/Read.aspx?PostID=13474>,發表於:2017年6月6日 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI730509B (en) * 2019-11-22 2021-06-11 英業達股份有限公司 Method of acquiring detection zone in image and method of determining zone usage
CN112419755A (en) * 2020-09-29 2021-02-26 信阳农林学院 Distributed traffic signal control system and method
CN112150831A (en) * 2020-10-10 2020-12-29 广州知弘科技有限公司 Big data-based smart city street lamp information control processing method

Also Published As

Publication number Publication date
TW202015003A (en) 2020-04-16

Similar Documents

Publication Publication Date Title
CN111919434B (en) Method and apparatus for processing signals from event-based sensors
KR102618662B1 (en) 3D feature prediction for autonomous driving
KR102605807B1 (en) Generating ground truth for machine learning from time series elements
Jain Working model of self-driving car using convolutional neural network, Raspberry Pi and Arduino
CN109571468B (en) Security inspection robot and security inspection method
US11468285B1 (en) Analysis of objects of interest in sensor data using deep neural networks
KR102029656B1 (en) IoT based Embedded traffic signal autonomous operation system
KR101846663B1 (en) Intelligent traffic light control method and controller by vision image analysis
TWI676969B (en) Traffic light controlling system based on internet of things (iot) and method thereof
Gupta et al. Real-time traffic control and monitoring
US20190051167A1 (en) System and method of adaptive traffic management at an intersection
CN112101272B (en) Traffic light detection method, device, computer storage medium and road side equipment
JP2023552105A (en) Occlusion response prediction of human behavior
US10735660B2 (en) Method and device for object identification
CN113378769A (en) Image classification method and device
CN112419722A (en) Traffic abnormal event detection method, traffic control method, device and medium
CN114677618A (en) Accident detection method and device, electronic equipment and storage medium
Vani et al. Intelligent traffic control system with priority to emergency vehicles
CN111931726A (en) Traffic light detection method and device, computer storage medium and road side equipment
Genitha et al. AI based real-time traffic signal control system using machine learning
CN116311965A (en) Method and device for determining vehicle running speed and electronic equipment
Faraj et al. Intelligent traffic congestion control system using machine learning and wireless network
Dhiman et al. Real-time traffic analysis and driver safety enhancement via IoT and computer vision with high-resolution project lamps for intelligent road illumination
CN113160590A (en) Control method and device of intelligent automobile and related equipment
CN118762535B (en) Intelligent traffic signal lamp regulation and control method and system based on deep learning

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees