[go: up one dir, main page]

TWI635004B - Method of prompting traffic signal change - Google Patents

Method of prompting traffic signal change Download PDF

Info

Publication number
TWI635004B
TWI635004B TW106108396A TW106108396A TWI635004B TW I635004 B TWI635004 B TW I635004B TW 106108396 A TW106108396 A TW 106108396A TW 106108396 A TW106108396 A TW 106108396A TW I635004 B TWI635004 B TW I635004B
Authority
TW
Taiwan
Prior art keywords
red
picture
traffic
traffic light
recorder
Prior art date
Application number
TW106108396A
Other languages
Chinese (zh)
Other versions
TW201827269A (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 英華達股份有限公司
Publication of TW201827269A publication Critical patent/TW201827269A/en
Application granted granted Critical
Publication of TWI635004B publication Critical patent/TWI635004B/en

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/09Arrangements for giving variable traffic instructions
    • G08G1/0962Arrangements for giving variable traffic instructions having an indicator mounted inside the vehicle, e.g. giving voice messages
    • G08G1/09623Systems involving the acquisition of information from passive traffic signs by means mounted on the vehicle
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers
    • G07C5/0866Registering performance data using electronic data carriers the electronic data carrier being a digital video recorder in combination with video camera

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Traffic Control Systems (AREA)

Abstract

一種紅綠燈燈號變換提示方法包含以下步驟:透過行車記錄器去拍攝畫面;接收紅燈選取指令,以選取畫面中紅綠燈的紅燈位置;判斷畫面中紅燈位置的所在區域中的色彩分布;當區域中大多數畫素未呈現紅色時,執行提示動作。 A traffic light signal change prompting method includes the following steps: shooting a picture through a driving recorder; receiving a red light selection instruction to select a red light position of a traffic light in the picture; determining a color distribution in a region where the red light position is located in the picture; When most pixels in the area do not appear red, perform a prompt action.

Description

紅綠燈燈號變換提示方法 Traffic light signal change prompting method

本發明是有關於提示方法,且特別是有關於一種紅綠燈燈號變換提示方法。 The present invention relates to a prompting method, and more particularly, to a prompting method for changing a traffic light signal.

「紅綠燈」係以規定之時間上交互更換的光色訊號,通常設置於交岔路口或其他需要交通管制的地點,用以將道路通行權指定給車輛駕駛人與行人,管制其通行、停止及轉向的交通管制設施。紅綠燈是以電力為能源運轉之交通管制設施,以紅、黃、綠三色燈號或輔以聲音訊號,指示車輛及行人停止、注意與行進。 "Traffic lights" are light-color signals that are exchanged at specified times. They are usually set at intersections or other places where traffic control is required. They are used to assign road rights to vehicle drivers and pedestrians, and to control their passage, stop and Turned traffic control facilities. Traffic lights are traffic control facilities that operate with electricity as the source of energy. They use red, yellow, and green lights or supplementary sound signals to instruct vehicles and pedestrians to stop, pay attention, and travel.

然而,駕駛人在開車時,經常會在等紅綠燈時滑手機,而忘了號誌的變換,造成交通的阻塞。為了解決前述問題,相關領域莫不費盡心思來謀求解決之道,但長久以來一直未見適用的方式被發展完成。因此,如何能更有效率地提醒駕駛人號誌的變換,實屬當前重要研發課題之一,亦成為當前相關領域亟需改進的目標。 However, when driving, drivers often slide their phones while waiting for traffic lights, and forget the change of signal, causing traffic jams. In order to solve the aforementioned problems, the related field has made every effort to find a solution, but for a long time, no applicable method has been developed and completed. Therefore, how to remind the driver of the change of the driver ’s identity more effectively is one of the important R & D topics at present, and it has become an urgent need for improvement in related fields.

本發明提出一種紅綠燈燈號變換提示方法,以解決先前技術的問題。 The invention proposes a traffic light signal change prompting method to solve the problems of the prior art.

在本發明的一實施例中,一種紅綠燈燈號變換提示方法,適用於一行車記錄器,行車記錄器安裝於一車輛,紅綠燈燈號變換提示方法包含以下步驟:(A)透過行車記錄器去拍攝一畫面;(B)接收一紅燈選取指令,以選取畫面中一紅綠燈的一紅燈位置;(C)判斷畫面中紅燈位置的所在區域中的色彩分布;以及(D)當區域中大多數畫素未呈現紅色時,執行一提示動作。 In an embodiment of the present invention, a traffic light signal changing prompt method is applicable to a line of vehicle recorder, the driving recorder is installed on a vehicle, and the traffic light signal changing and prompting method includes the following steps: (A) going through the driving recorder Take a picture; (B) receive a red light selection instruction to select a red light position of a traffic light in the picture; (C) determine the color distribution in the area where the red light position is in the picture; and (D) in the area When most pixels do not appear red, perform a prompt action.

在本發明的一實施例中,行車記錄器包含一觸控螢幕,當觸控螢幕顯示畫面時,紅燈選取指令係為觸控螢幕受點擊時所產生。 In an embodiment of the present invention, the driving recorder includes a touch screen. When the touch screen displays a picture, the red light selection command is generated when the touch screen is clicked.

在本發明的一實施例中,步驟(B)包含:當車輛為靜止時,行車記錄器允許接收紅燈選取指令,而當車輛變為行進時,行車記錄器拒絕接收紅燈選取指令。 In an embodiment of the present invention, step (B) includes: when the vehicle is stationary, the driving recorder is allowed to receive the red light selection instruction, and when the vehicle is moving, the driving recorder is refusing to receive the red light selection instruction.

在本發明的一實施例中,紅綠燈燈號變換提示方法更包含:當區域中大多數畫素呈現紅色時,禁用提示動作。 In an embodiment of the present invention, the method for changing a traffic light signal prompt further includes: when most pixels in the area are red, disabling the prompt action.

在本發明的另一實施例中,一種紅綠燈燈號變換提示方法,適用於一行車記錄器,行車記錄器安裝於一車輛,紅綠燈燈號變換提示方法包含以下步驟:(A)透過行車記錄器去拍攝一畫面;(B)產生一紅燈選取指令,以辨識畫面中的紅色圓形;(C)當畫面中的紅色圓形為複數個時,將畫面中複數個紅色圓形中低於一預定縱座標之所有紅色圓形排除,以保留剩餘的紅色圓形;(D)當剩餘的紅色圓形為複數個時,基於畫面的深度估算,找到複數個剩餘的 紅色圓形中距離最近者以設定一紅燈位置的所在區域;(E)判斷畫面中紅燈位置的所在區域中的色彩分布;以及(F)當區域中大多數畫素未呈現紅色時,執行一提示動作。 In another embodiment of the present invention, a traffic light signal change prompting method is applicable to a line of vehicle recorder, the drive recorder is installed on a vehicle, and the traffic light light number conversion and prompting method includes the following steps: (A) through a traffic recorder To take a picture; (B) generate a red light selection instruction to identify the red circle in the picture; (C) when the red circle in the picture is a plurality, the red circles in the picture are below Exclude all red circles of a predetermined vertical coordinate to keep the remaining red circles; (D) When the remaining red circles are plural, based on the depth estimation of the picture, find the plural remaining ones The nearest one in the red circle sets the area where a red light position is located; (E) determines the color distribution in the area where the red light position is in the frame; and (F) when most pixels in the area do not appear red, Perform a prompt action.

在本發明的另一實施例中,步驟(A)包含:透過行車記錄器的一立體相機去拍攝畫面,以取得畫面的空間資訊。 In another embodiment of the present invention, step (A) includes: taking a picture through a stereo camera of the driving recorder to obtain spatial information of the picture.

在本發明的另一實施例中,步驟(D)包含:基於畫面的空間資訊,分析複數個剩餘的紅色圓形所對應的深度值,藉以找出複數個剩餘的紅色圓形中距離最近者。 In another embodiment of the present invention, step (D) includes: analyzing the depth values corresponding to the plurality of remaining red circles based on the spatial information of the picture, so as to find the closest one among the plurality of remaining red circles. .

在本發明的另一實施例中,步驟(D)包含:當剩餘的紅色圓形為單一個時,基於單一個剩餘的紅色圓形,設定紅燈位置的所在區域。 In another embodiment of the present invention, step (D) includes: when the remaining red circle is a single one, based on the single remaining red circle, setting a region where the red light is located.

在本發明的另一實施例中,步驟(B)包含:當車輛為靜止時,行車記錄器自動產生紅燈選取指令,而當車輛變為行進時,行車記錄器禁止產生紅燈選取指令,從而停止辨識畫面中的紅色圓形。 In another embodiment of the present invention, step (B) includes: when the vehicle is stationary, the driving recorder automatically generates a red light selection instruction, and when the vehicle becomes moving, the driving recorder prohibits generating the red light selection instruction, This stops the red circle in the picture.

在本發明的另一實施例中,紅綠燈燈號變換提示方法更包含:當區域中大多數畫素呈現紅色時,禁用提示動作。 In another embodiment of the present invention, the method for changing the traffic light signal prompt further includes: when most pixels in the area appear red, disabling the prompt action.

綜上所述,本發明之技術方案與現有技術相比具有明顯的優點和有益效果。綜上所述,本發明的紅綠燈燈號變換提示方法,實現了紅燈號誌的監測機制,並可有效率地提醒駕駛人號誌的變換。 In summary, the technical solution of the present invention has obvious advantages and beneficial effects compared with the prior art. In summary, the traffic light signal change prompting method of the present invention realizes the monitoring mechanism of the red light signal and can effectively remind the driver to change the signal.

以下將以實施方式對上述之說明作詳細的描述,並對本發明之技術方案提供更進一步的解釋。 The above description will be described in detail in the following embodiments, and further explanation will be provided for the technical solution of the present invention.

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附符號之說明如下: In order to make the above and other objects, features, advantages, and embodiments of the present invention more comprehensible, the description of the attached symbols is as follows:

100‧‧‧行車記錄器 100‧‧‧ driving recorder

101‧‧‧攝像裝置 101‧‧‧ Camera

102‧‧‧處理器 102‧‧‧ processor

103‧‧‧儲存裝置 103‧‧‧Storage device

104‧‧‧觸控螢幕 104‧‧‧Touch screen

105‧‧‧加速計 105‧‧‧Accelerometer

106‧‧‧衛星定位接收器 106‧‧‧ satellite positioning receiver

107‧‧‧無線通訊裝置 107‧‧‧Wireless communication device

108‧‧‧提示裝置 108‧‧‧ reminder device

170、470‧‧‧車輛 170, 470‧‧‧ vehicles

190‧‧‧行動裝置 190‧‧‧mobile device

200、300‧‧‧紅綠燈燈號變換提示方法 200, 300‧‧‧ Traffic light signal change prompt method

400‧‧‧畫面 400‧‧‧screen

401~407‧‧‧紅色圓形 401 ~ 407‧‧‧ red round

410‧‧‧區域 410‧‧‧area

S201~S205‧‧‧步驟 S201 ~ S205‧‧‧step

S301~S307‧‧‧步驟 S301 ~ S307‧‧‧ steps

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖是依照本發明一實施例之一種行車記錄器的方塊圖;第2圖是依照本發明一實施例之一種紅綠燈燈號變換提示方法的流程圖;第3圖是依照本發明另一實施例之一種紅綠燈燈號變換提示方法的流程圖;以及第4圖是依照本發明一實施例之一種行車記錄器所拍攝的畫面的示意圖。 In order to make the above and other objects, features, advantages, and embodiments of the present invention more comprehensible, the description of the drawings is as follows: FIG. 1 is a block diagram of a driving recorder according to an embodiment of the present invention; FIG. 2 is a flowchart of a traffic light signal changing prompt method according to an embodiment of the present invention; FIG. 3 is a flowchart of a traffic light signal changing prompt method according to another embodiment of the present invention; and FIG. A schematic diagram of a picture taken by a driving recorder according to an embodiment of the present invention.

為了使本發明之敘述更加詳盡與完備,可參照所附之圖式及以下所述各種實施例,圖式中相同之號碼代表相同或相似之元件。另一方面,眾所週知的元件與步驟並未描述於實施例中,以避免對本發明造成不必要的限制。 In order to make the description of the present invention more detailed and complete, reference may be made to the accompanying drawings and various embodiments described below. The same numbers in the drawings represent the same or similar elements. On the other hand, well-known elements and steps have not been described in the embodiments, so as to avoid unnecessary limitation to the present invention.

本文中所使用之『約』、『大約』或『大致』係用以修飾任何可些微變化的數量,但這種些微變化並不會改變其本質。於實施方式中若無特別說明,則代表以『約』、『大約』或『大致』所修飾之數值的誤差範圍一般是容許在百分之二十以內,較佳地是於百分之十以內,而更佳地則是於百分五之以內。 As used in this article, "about," "approximately," or "roughly" is used to modify any quantity that can vary slightly, but such slight changes do not change its essence. Unless otherwise specified in the embodiments, the error range of the value modified by "about", "approximately" or "approximately" is generally allowed within 20%, preferably 10% Within, and more preferably within five percent.

於實施方式與申請專利範圍中,涉及電性連接』之描述,其可泛指一元件透過其他元件而間接電氣耦合至另一元件,或是一元件無須透過其他元件而直接電連結至另一元件。 In the description of the embodiments and the scope of patent application, the description of "electrical connection" may refer to an element being indirectly electrically coupled to another element through another element, or a element to be directly electrically connected to another element without passing through other elements. element.

於實施方式與申請專利範圍中,除非內文中對於冠詞有所特別限定,否則『一』與『該』可泛指單一個或複數個。 In the embodiments and the scope of patent application, unless there is a special limitation on the article in the text, "a" and "the" can refer to a single or plural.

第1圖是依照本發明一實施例之一種行車記錄器100的方塊圖。如第1圖所示,行車記錄器100安裝於車輛170。實作上,行車記錄器100可為外接式或內建式行車記錄器。除此之外,將智慧型手機、平板電腦、導航機或類似的電子裝置做為行車記錄器來使用,皆仍屬於本發明之實施方式。 FIG. 1 is a block diagram of a driving recorder 100 according to an embodiment of the present invention. As shown in FIG. 1, the driving recorder 100 is mounted on a vehicle 170. In practice, the driving recorder 100 may be an external or built-in driving recorder. In addition, the use of a smart phone, a tablet computer, a navigator or a similar electronic device as a driving recorder still belongs to the embodiments of the present invention.

於第1圖中,行車記錄器100至少包含攝像裝置101、處理器102與儲存裝置103。除此之外,行車記錄器100可選擇性地包含觸控螢幕104、加速計105、衛星定位接收器106、無線通訊裝置107與提示裝置108。在架構上,處理器102電性連接攝像裝置101、儲存裝置103、觸控螢幕104、加速計105、衛星定位接收器106、無線通訊裝置107與提示裝置108。 In FIG. 1, the driving recorder 100 includes at least an imaging device 101, a processor 102, and a storage device 103. In addition, the driving recorder 100 may optionally include a touch screen 104, an accelerometer 105, a satellite positioning receiver 106, a wireless communication device 107, and a prompting device 108. In terms of architecture, the processor 102 is electrically connected to the camera device 101, the storage device 103, the touch screen 104, the accelerometer 105, the satellite positioning receiver 106, the wireless communication device 107, and the prompting device 108.

實作上,攝像裝置101可為相機(如:立體相機),處理器102可為微控制器或中央處理器,儲存裝置103可為內建快閃記憶體或外插記憶卡,觸控螢幕104可為電阻式或電容式觸控螢幕,加速計105可為加速度傳感器,衛星定位接收器106可為GPS接收器,無線通訊裝置107可為 WiFi收發器、藍芽收發器或行動通訊收發器(如:3G、4G收發器),提示裝置108可為喇叭、警示光源、震動裝置或其他可提醒駕駛人的元件。 In practice, the camera device 101 may be a camera (such as a stereo camera), the processor 102 may be a microcontroller or a central processing unit, and the storage device 103 may be a built-in flash memory or an external memory card, and a touch screen. 104 can be a resistive or capacitive touch screen, accelerometer 105 can be an acceleration sensor, satellite positioning receiver 106 can be a GPS receiver, and wireless communication device 107 can be The WiFi transceiver, Bluetooth transceiver or mobile communication transceiver (for example, 3G, 4G transceiver), the prompting device 108 may be a horn, a warning light source, a vibration device or other components that can remind the driver.

於使用時,攝像裝置101拍攝畫面,處理器102將該畫面的畫素資料儲存於儲存裝置103。觸控螢幕104可供使用者觀看畫面並進行觸控操作,加速計105可用於偵測車輛170為靜止或行進,衛星定位接收器106可用於偵測車輛170的位置,無線通訊裝置107可以與行動裝置190(如:手機)交換資料,提示裝置108可執行提示動作(如:提示音、警示光、震動提醒…等),但本發明不以此為限。 During use, the camera 101 captures a picture, and the processor 102 stores pixel data of the picture in the storage device 103. The touch screen 104 allows the user to view the screen and perform touch operations. The accelerometer 105 can be used to detect whether the vehicle 170 is stationary or moving, the satellite positioning receiver 106 can be used to detect the position of the vehicle 170, and the wireless communication device 107 can communicate with The mobile device 190 (such as a mobile phone) exchanges data, and the prompting device 108 can perform a prompting action (such as a prompt sound, a warning light, a vibration reminder, etc.), but the present invention is not limited thereto.

為了對行車記錄器100所執行的一種紅綠燈燈號變換提示方法200做闡述,請同時參照第1、2圖,第2圖是依照本發明一實施例之一種紅綠燈燈號變換提示方法200的流程圖。如第2圖所示,紅綠燈燈號變換提示方法200包含步驟S201~S205(應瞭解到,在本實施例中所提及的步驟,除特別敘明其順序者外,均可依實際需要調整其前後順序,甚至可同時或部分同時執行)。至於實施該些步驟的硬體裝置,由於以上實施例已具體揭露,因此不再重複贅述之。 In order to explain a traffic light signal change prompting method 200 performed by the driving recorder 100, please refer to FIGS. 1 and 2 at the same time. FIG. 2 is a flowchart of a traffic light signal change prompting method 200 according to an embodiment of the present invention. Illustration. As shown in FIG. 2, the traffic light signal change prompting method 200 includes steps S201 to S205 (It should be understood that the steps mentioned in this embodiment can be adjusted according to actual needs except for the order specifically described. It can be performed simultaneously or partially simultaneously). As for the hardware device implementing these steps, since the above embodiments have been specifically disclosed, they will not be repeated here.

於步驟S201,當車輛100於紅綠燈前停妥時,透過行車記錄器100去拍攝畫面。 In step S201, when the vehicle 100 is stopped in front of the traffic light, a picture is taken through the driving recorder 100.

於步驟S202,行車記錄器100接收紅燈選取指令,以選取畫面中紅綠燈的紅燈位置。在本發明的一實施例中,行車記錄器100包含觸控螢幕104,當觸控螢幕104顯示畫面時,紅燈選取指令係為觸控螢幕104受點擊時所產生,點擊的位置即為使用者所確認的紅燈位置。 In step S202, the driving recorder 100 receives a red light selection instruction to select a red light position of a traffic light in the frame. In an embodiment of the present invention, the driving recorder 100 includes a touch screen 104. When the touch screen 104 displays a picture, the red light selection instruction is generated when the touch screen 104 is clicked, and the clicked position is used. The red light position confirmed by the reporter.

在本發明的一實施例中,當車輛170為靜止時,代表駕駛人可能在等紅燈,於步驟S202,行車記錄器100允許接收紅燈選取指令(如:上述使用者觸控指令),而當車輛170變為行進時,駕駛人在開車而不再等紅綠燈,行車記錄器100拒絕接收紅燈選取指令。 In an embodiment of the present invention, when the vehicle 170 is stationary, the representative driver may be waiting for a red light. In step S202, the driving recorder 100 is allowed to receive a red light selection instruction (such as the above-mentioned user touch instruction). When the vehicle 170 is moving, the driver is driving without waiting for the traffic light, and the driving recorder 100 refuses to receive the red light selection instruction.

關於車輛170為靜止或行進的判斷方式,在本發明的一實施例中,行車記錄器100的加速計105可用於偵測車輛170為靜止或行進。或者,在本發明的另一實施例中,行車記錄器100的衛星定位接收器106可偵測車輛170的位置為靜止或行進。或者,在本發明的又一實施例中,行動裝置190內建的GPS模組無線通訊裝置107可以偵測車輛170的位置為靜止或行進,進而把相關的資料傳送給行車記錄器100的無線通訊裝置107。或者,在本發明的再一實施例中,行車記錄器100的攝像裝置101可持續錄影,處理器102可以判斷錄影畫面是否有變化,若否,代表車輛170為靜止,若是,代表車輛170可能為行進。 Regarding the method for determining whether the vehicle 170 is stationary or traveling, in an embodiment of the present invention, the accelerometer 105 of the driving recorder 100 may be used to detect whether the vehicle 170 is stationary or traveling. Alternatively, in another embodiment of the present invention, the satellite positioning receiver 106 of the driving recorder 100 can detect whether the position of the vehicle 170 is stationary or traveling. Or, in another embodiment of the present invention, the GPS module wireless communication device 107 built in the mobile device 190 can detect whether the position of the vehicle 170 is stationary or moving, and then transmit related data to the wireless of the driving recorder 100. Communication device 107. Or, in still another embodiment of the present invention, the camera 101 of the driving recorder 100 can continuously record video. The processor 102 can determine whether there is a change in the video image. If not, it means that the vehicle 170 is stationary. For marching.

於步驟S203,行車記錄器100判斷畫面中紅燈位置的所在區域中的色彩(如:RGB)分布,從而判斷紅燈位置的所在區域中大多數畫素是否呈現紅色(如:R 255,G 0,B 0)。 In step S203, the driving recorder 100 determines the color (eg, RGB) distribution in the area where the red light position is located in the frame, so as to determine whether most pixels in the area where the red light position is present are red (eg, R 255, G 0, B 0).

當紅燈位置的所在區域中大多數畫素未呈現紅色時,代表號誌已變換(如:亮綠燈),於步驟S204,行車記錄器100執行提示動作,藉以提醒駕駛人,從而避免交通的阻塞。在本發明的一實施例中,上述區域中大多數畫素 約為至少半數以上的畫素,較佳為約佔七成以上的畫素,更佳為約佔九成以上的畫素,但本發明不以此為限。 When most of the pixels in the area where the red light is located do not show red, it means that the sign has changed (eg, the green light is on). In step S204, the driving recorder 100 performs a prompting action to remind the driver, thereby avoiding traffic. Blocked. In an embodiment of the present invention, most pixels in the area are About at least half of the pixels, preferably about 70% or more pixels, more preferably about 90% or more pixels, but the invention is not limited thereto.

反之,當紅燈位置的所在區域中大多數畫素呈現紅色時,代表目前號誌為亮紅燈,於步驟S205,行車記錄器100禁用提示動作,無需提醒駕駛人。 Conversely, when most of the pixels in the area where the red light is located are red, it means that the current sign is bright red. In step S205, the driving recorder 100 disables the prompting action and does not need to remind the driver.

為了對行車記錄器100所執行的另一種紅綠燈燈號變換提示方法300做闡述,請同時參照第1、3、4圖,第3圖是依照本發明一實施例之一種紅綠燈燈號變換提示方法300的流程圖,第4圖是依照本發明一實施例之一種行車記錄器100所拍攝的畫面的示意圖。如第3圖所示,紅綠燈燈號變換提示方法300包含步驟S301~S307(應瞭解到,在本實施例中所提及的步驟,除特別敘明其順序者外,均可依實際需要調整其前後順序,甚至可同時或部分同時執行)。至於實施該些步驟的硬體裝置,由於以上實施例已具體揭露,因此不再重複贅述之。 In order to explain another traffic light signal change prompt method 300 performed by the driving recorder 100, please refer to FIGS. 1, 3, and 4 at the same time. FIG. 3 is a traffic light signal change prompt method according to an embodiment of the present invention. 300 is a flowchart, and FIG. 4 is a schematic diagram of a picture taken by the driving recorder 100 according to an embodiment of the present invention. As shown in FIG. 3, the traffic light signal change prompting method 300 includes steps S301 to S307 (it should be understood that the steps mentioned in this embodiment can be adjusted according to actual needs except for the order specifically described. It can be performed simultaneously or partially simultaneously). As for the hardware device implementing these steps, since the above embodiments have been specifically disclosed, they will not be repeated here.

於步驟S301,當車輛100於紅綠燈前停妥時,透過行車記錄器100去拍攝畫面400,如第4圖所示。應瞭解到,由於畫面400中可能會出現許多相似紅燈的圖像,要做到自動判讀,最困難的部份莫過於要定位出正確的燈號位置。以下將以步驟S302~S304來解決此一難題。 In step S301, when the vehicle 100 stops in front of the traffic light, the picture 400 is taken through the driving recorder 100, as shown in FIG. It should be understood that, because there may be many red-light-like images in the picture 400, the most difficult part for automatic interpretation is to locate the correct light position. Steps S302 to S304 will be used to solve this problem.

於步驟S302,行車記錄器100產生紅燈選取指令,以辨識畫面中的紅色圓形401~407。在本發明的一實施例中,行車記錄器100利用影像處理的圓形偵測,先將畫面400中所有的紅色圓形401~407標註出來並將紅色以外的圖形排除。 In step S302, the driving recorder 100 generates a red light selection instruction to identify the red circles 401 to 407 in the picture. In an embodiment of the present invention, the driving recorder 100 uses the image processing circle detection to mark all the red circles 401 to 407 in the picture 400 and exclude the graphics other than red.

於步驟S303,當畫面400中的紅色圓形401~407為複數個時,將畫面400中複數個紅色圓形401~407中低於預定縱座標之所有紅色圓形404~407排除,以保留剩餘的紅色圓形401~403。 In step S303, when the red circles 401 to 407 in the picture 400 are plural, all the red circles 404 to 407 in the plurality of red circles 401 to 407 that are lower than the predetermined vertical coordinate in the picture 400 are excluded to keep The remaining red circles are 401 ~ 403.

實務上,由於排在使用者前方的車輛470也可能是使紅色圓形的剎車燈404~407,在本發明的一實施例中,行車記錄器100的攝像裝置101為立體相機,於步驟S301,透過立體相機去拍攝畫面,以取得畫面的空間資訊(如:x,y,z軸座標資訊)。再者,正前方的車輛其尾燈404~407的高度通常低於行車記錄器100,且遠低於紅綠燈,因此,於步驟S303,將y軸(縱座標軸)方向座標較低的紅色圓形404~407也排除。舉例而言,此處所謂「座標較低」即為低於上述預定縱座標。 In practice, since the vehicle 470 in front of the user may also have red circular brake lights 404 to 407, in an embodiment of the present invention, the camera 101 of the driving recorder 100 is a stereo camera, and in step S301 , Use a stereo camera to take a picture to obtain the spatial information of the picture (such as: x, y, z coordinate information). Furthermore, the height of the tail lights 404 to 407 of the vehicle in front is usually lower than the traffic recorder 100 and far lower than the traffic lights. Therefore, in step S303, the red circle 404 with a lower coordinate in the y-axis (ordinate axis) direction is lowered. ~ 407 is also excluded. For example, the "lower coordinate" here is lower than the predetermined vertical coordinate.

關於上述預定縱座標的取決方式,在本發明的一實施例中,程式設計者可依統計經驗來設定預定縱座標的數值,例如:y軸(縱座標軸)之中點座標,但本發明不以此為限。或者,在本發明的另一實施例中,行車記錄器100利用影像處理的方式,找出畫面中的天際線,由於天際線以上為一大片顏色相近區域(如:藍色、灰色…等),天際線以下為陸地,將天際線的縱座標以下的紅色圓形404~407排除,藉以濾除如紅色圓形404~407的剎車燈。 Regarding the manner of determining the predetermined vertical coordinate, in one embodiment of the present invention, the programmer can set the value of the predetermined vertical coordinate based on statistical experience, for example, the point coordinates in the y-axis (vertical coordinate axis), but the present invention does not This is the limit. Or, in another embodiment of the present invention, the driving recorder 100 uses image processing to find the skyline in the picture. Since the skyline is a large area with similar colors (such as blue, gray, etc.) Below the skyline is land. Exclude the red circular 404 ~ 407 below the vertical coordinate of the skyline, so as to filter out the red circular 404 ~ 407 brake lights.

於步驟S304,當剩餘的紅色圓形401~403為複數個時,行車記錄器100基於畫面的深度估算,找到複數個剩餘的紅色圓形401~403中距離最近者以設定紅燈位置 的所在區域410,例如在紅色圓形401周圍拉出一方框形的區域410以包圍紅色圓形401。在本發明的一實施例中,行車記錄器100的攝像裝置101為立體相機以取得畫面的空間資訊,行車記錄器100基於畫面的空間資訊,分析複數個剩餘的紅色圓形401~403所對應的深度值(如:z軸方向上的座標),藉以找出複數個剩餘的紅色圓形401~403中距離行車記錄器100最近之紅色圓形401。 In step S304, when the remaining red circles 401 to 403 are plural, the driving recorder 100 finds the closest one of the remaining red circles 401 to 403 based on the depth of the picture to set the red light position. The area 410 where the square is located, for example, a box-shaped area 410 is drawn around the red circle 401 to surround the red circle 401. In an embodiment of the present invention, the imaging device 101 of the driving recorder 100 is a stereo camera to obtain the spatial information of the screen. Based on the spatial information of the screen, the driving recorder 100 analyzes a plurality of remaining red circles 401-403 corresponding to (For example, coordinates in the z-axis direction) to find a plurality of remaining red circles 401 to 403 which are the red circles 401 closest to the driving recorder 100.

另一方面,於步驟S304,倘若剩餘的紅色圓形401為單一個時,行車記錄器100基於單一個剩餘的紅色圓形401,設定紅燈位置的所在區域410。 On the other hand, in step S304, if the remaining red circle 401 is a single one, the driving recorder 100 sets the area 410 of the red light position based on the single remaining red circle 401.

於步驟S305,行車記錄器100判斷畫面中紅燈位置的所在區域410中的色彩(如:RGB)分布,從而判斷紅燈位置的所在區域410中大多數畫素是否呈現紅色(如:R 255,G 0,B 0)。 In step S305, the driving recorder 100 determines the color (eg, RGB) distribution in the area 410 where the red light is located in the frame, so as to determine whether most pixels in the area 410 where the red light is located are red (eg, R 255). , G 0, B 0).

當紅燈位置的所在區域410中大多數畫素未呈現紅色時,代表號誌已變換(如:亮綠燈),於步驟S306,行車記錄器100執行提示動作,藉以提醒駕駛人,從而避免交通的阻塞。在本發明的一實施例中,上述區域410中大多數畫素約為至少半數以上的畫素,較佳為約佔七成以上的畫素,更佳為約佔九成以上的畫素,但本發明不以此為限。 When most of the pixels in the area 410 where the red light is located do not show red, it means that the sign has changed (eg, the green light is on). At step S306, the driving recorder 100 performs a prompting action to remind the driver to avoid traffic. Blocking. In an embodiment of the present invention, most pixels in the area 410 are about at least half or more pixels, preferably about 70% or more pixels, and more preferably about 90% or more pixels. However, the present invention is not limited to this.

反之,當紅燈位置的所在區域410中大多數畫素呈現紅色時,代表目前號誌為亮紅燈,於步驟S307,行車記錄器100禁用提示動作,無需提醒駕駛人。 Conversely, when most pixels in the area 410 where the red light is located appear red, it means that the current sign is bright red. In step S307, the driving recorder 100 disables the prompt action without reminding the driver.

綜上所述,本發明的的紅綠燈燈號變換提示方 法200、300,實現了紅燈號誌的監測機制,並可有效率地提醒駕駛人號誌的變換。 In summary, the traffic light signal change prompting method of the present invention Laws 200 and 300 have realized the monitoring mechanism of the red light signal and can effectively remind the driver to change the signal.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Any person skilled in the art can make various modifications and retouches without departing from the spirit and scope of the present invention. Therefore, the protection of the present invention The scope shall be determined by the scope of the attached patent application.

Claims (10)

一種紅綠燈燈號變換提示方法,適用於一行車記錄器,該行車記錄器安裝於一車輛,該紅綠燈燈號變換提示方法包含以下步驟:(A)透過該行車記錄器去拍攝一畫面;(B)接收一紅燈選取指令,以選取該畫面中一紅綠燈的一紅燈位置;(C)判斷該畫面中該紅燈位置的所在區域中的色彩分布;以及(D)當該區域中大多數畫素未呈現紅色時,執行一提示動作。A traffic light signal change prompting method is applicable to a line of vehicle recorder. The traffic light recorder is installed on a vehicle. The traffic light signal change and prompt method includes the following steps: (A) shooting a picture through the traffic recorder; ) Receive a red light selection instruction to select a red light position of a traffic light in the picture; (C) determine the color distribution in the area where the red light position is located in the picture; and (D) when most of the area When the pixels are not red, a prompt action is performed. 如請求項1所述之紅綠燈燈號變換提示方法,其中該行車記錄器包含一觸控螢幕,當該觸控螢幕顯示該畫面時,該紅燈選取指令係為該觸控螢幕受點擊時所產生。The reminder method for changing traffic lights according to claim 1, wherein the driving recorder includes a touch screen, and when the touch screen displays the screen, the red light selection instruction is the time when the touch screen is clicked. produce. 如請求項1所述之紅綠燈燈號變換提示方法,其中步驟(B)包含:當該車輛為靜止時,該行車記錄器允許接收該紅燈選取指令,而當該車輛變為行進時,該行車記錄器拒絕接收該紅燈選取指令。The traffic light signal change prompting method according to claim 1, wherein step (B) includes: when the vehicle is stationary, the driving recorder allows receiving the red light selection instruction, and when the vehicle becomes moving, the The driving recorder refused to accept the red light selection instruction. 如請求項1所述之紅綠燈燈號變換提示方法,更包含:當該區域中該大多數畫素呈現紅色時,禁用該提示動作。The prompting method for changing a traffic light signal according to claim 1, further includes: when the majority of pixels in the area are red, the prompting action is disabled. 一種紅綠燈燈號變換提示方法,適用於一行車記錄器,該行車記錄器安裝於一車輛,該紅綠燈燈號變換提示方法包含以下步驟:(A)透過該行車記錄器去拍攝一畫面;(B)產生一紅燈選取指令,以辨識該畫面中的紅色圓形;(C)當該畫面中的該紅色圓形為複數個時,將該畫面中該複數個紅色圓形中低於一預定縱座標之所有紅色圓形排除,以保留剩餘的紅色圓形;(D)當該剩餘的紅色圓形為複數個時,基於該畫面的深度估算,找到該複數個剩餘的紅色圓形中距離最近者以設定一紅燈位置的所在區域;(E)判斷該畫面中該紅燈位置的所在區域中的色彩分布;以及(F)當該區域中大多數畫素未呈現紅色時,執行一提示動作。A traffic light signal change prompting method is applicable to a line of vehicle recorder. The traffic light recorder is installed on a vehicle. The traffic light signal change and prompt method includes the following steps: (A) shooting a picture through the traffic recorder; ) Generate a red light selection instruction to identify the red circle in the picture; (C) When the red circle in the picture is plural, the number of the red circles in the picture is less than a predetermined Exclude all red circles in the ordinate to keep the remaining red circles; (D) When the remaining red circles are plural, based on the depth estimation of the picture, find the middle distances of the remaining red circles The nearest person sets the area where the red light position is located; (E) determines the color distribution in the area where the red light position is located in the screen; and (F) when most pixels in the area do not appear red, executes a Prompt action. 如請求項5所述之紅綠燈燈號變換提示方法,其中步驟(A)包含:透過該行車記錄器的一立體相機去拍攝該畫面,以取得該畫面的空間資訊。The method for prompting a traffic light signal change as described in claim 5, wherein step (A) includes: shooting the picture through a stereo camera of the driving recorder to obtain spatial information of the picture. 如請求項6所述之紅綠燈燈號變換提示方法,其中步驟(D)包含:基於該畫面的該空間資訊,分析該複數個剩餘的紅色圓形所對應的深度值,藉以找出該複數個剩餘的紅色圓形中該距離最近者。The method for prompting a traffic light signal change as described in claim 6, wherein step (D) includes: analyzing the depth values corresponding to the plurality of remaining red circles based on the spatial information of the screen to find the plurality of red circles. The closest one is the remaining red circle. 如請求項5所述之紅綠燈燈號變換提示方法,其中步驟(D)包含:當該剩餘的紅色圓形為單一個時,基於該單一個剩餘的紅色圓形,設定該紅燈位置的所在區域。The method for prompting traffic lights according to claim 5, wherein step (D) includes: when the remaining red circle is a single one, based on the single remaining red circle, setting the location of the red light region. 如請求項5所述之紅綠燈燈號變換提示方法,其中步驟(B)包含:當該車輛為靜止時,該行車記錄器自動產生該紅燈選取指令,而當該車輛變為行進時,該行車記錄器禁止產生該紅燈選取指令,從而停止辨識該畫面中的該紅色圓形。The traffic light signal changing prompt method according to claim 5, wherein step (B) includes: when the vehicle is stationary, the driving recorder automatically generates the red light selection instruction, and when the vehicle becomes traveling, the The driving recorder prohibits the red light selection instruction from being generated, and thus stops recognizing the red circle in the picture. 如請求項5所述之紅綠燈燈號變換提示方法,更包含:當該區域中該大多數畫素呈現紅色時,禁用該提示動作。The prompting method for changing a traffic light signal according to claim 5, further includes: when the majority of pixels in the area appear red, disabling the prompting action.
TW106108396A 2017-01-22 2017-03-14 Method of prompting traffic signal change TWI635004B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710057622.1A CN106781584B (en) 2017-01-22 2017-01-22 Traffic light transformation prompting method
??201710057622.1 2017-01-22

Publications (2)

Publication Number Publication Date
TW201827269A TW201827269A (en) 2018-08-01
TWI635004B true TWI635004B (en) 2018-09-11

Family

ID=58942995

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106108396A TWI635004B (en) 2017-01-22 2017-03-14 Method of prompting traffic signal change

Country Status (2)

Country Link
CN (1) CN106781584B (en)
TW (1) TWI635004B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112037364A (en) * 2020-08-19 2020-12-04 泰州德川绿化养护有限公司 Method for safety reminding during driving and driving recording device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466260B1 (en) * 1997-11-13 2002-10-15 Hitachi Denshi Kabushiki Kaisha Traffic surveillance system
US20030081935A1 (en) * 2001-10-30 2003-05-01 Kirmuss Charles Bruno Storage of mobile video recorder content
US20100033571A1 (en) * 2006-09-28 2010-02-11 Pioneer Corporation Traffic information detector, traffic information detecting method, traffic information detecting program, and recording medium
CN102176287A (en) * 2011-02-28 2011-09-07 无锡中星微电子有限公司 Traffic signal lamp identifying system and method
CN102785645A (en) * 2012-04-20 2012-11-21 中兴通讯股份有限公司 Method and terminal for judging traffic light

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970102B2 (en) * 2003-05-05 2005-11-29 Transol Pty Ltd Traffic violation detection, recording and evidence processing system
JP4635245B2 (en) * 2004-05-27 2011-02-23 独立行政法人産業技術総合研究所 Device for measuring the starting state of a stopped vehicle at an intersection
CN100578562C (en) * 2007-12-28 2010-01-06 云南澜博科技有限公司 The Method of Using Video to Monitor Vehicle Illegal Behavior
CN101593422B (en) * 2009-06-15 2010-12-01 无锡骏聿科技有限公司 A Traffic Violation Detection Method Based on Video Tracking and Pattern Recognition
CN104129336A (en) * 2014-08-25 2014-11-05 国家电网公司 Reminding device based on FPGA (Field Programmable Gate Array) for recognizing change of traffic light
CN104537857B (en) * 2014-12-11 2017-06-23 广东好帮手电子科技股份有限公司 Based reminding method and system based on driving video instrument identification traffic-control device
CN107891808B (en) * 2016-09-30 2020-06-19 比亚迪股份有限公司 Driving reminding method and device and vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466260B1 (en) * 1997-11-13 2002-10-15 Hitachi Denshi Kabushiki Kaisha Traffic surveillance system
US20030081935A1 (en) * 2001-10-30 2003-05-01 Kirmuss Charles Bruno Storage of mobile video recorder content
US20100033571A1 (en) * 2006-09-28 2010-02-11 Pioneer Corporation Traffic information detector, traffic information detecting method, traffic information detecting program, and recording medium
CN102176287A (en) * 2011-02-28 2011-09-07 无锡中星微电子有限公司 Traffic signal lamp identifying system and method
CN102785645A (en) * 2012-04-20 2012-11-21 中兴通讯股份有限公司 Method and terminal for judging traffic light

Also Published As

Publication number Publication date
CN106781584B (en) 2019-12-31
CN106781584A (en) 2017-05-31
TW201827269A (en) 2018-08-01

Similar Documents

Publication Publication Date Title
US11468581B2 (en) Distance measurement method, intelligent control method, electronic device, and storage medium
US10303257B2 (en) Communication between autonomous vehicle and external observers
US8890674B2 (en) Driver assistance detection system
US20210192239A1 (en) Method for recognizing indication information of an indicator light, electronic apparatus and storage medium
WO2020172842A1 (en) Vehicle intelligent driving control method and apparatus, electronic device and storage medium
CN112016344A (en) State detection method and device of signal indicator, driving control method and device
US20240296737A1 (en) Method for determining virtual parking slot, display method, apparatus, device, medium, and program
EP3309711A1 (en) Vehicle alert apparatus and operating method thereof
JP6443716B2 (en) Image display device, image display method, and image display control program
KR101575159B1 (en) Method of operating application for providing parking information to mobile terminal
CN111899539A (en) Traffic information prompting method and device, storage medium and vehicle-mounted terminal
JP2013018406A (en) Recognizing device of parking frame, recognizing method of parking frame and program
JP6506832B2 (en) Control method, apparatus, program and recording medium of self balance car
JP6762863B2 (en) Imaging equipment, image processing equipment, display systems, and vehicles
US20210383140A1 (en) Driving assistance apparatus and image processing method
WO2019172333A1 (en) Parking support device
JP6703183B2 (en) Display control device and display control method
TWI635004B (en) Method of prompting traffic signal change
CN111815943B (en) Method, device and equipment for detecting vehicle parking times and storage medium
KR101374653B1 (en) Apparatus and method for detecting movement of vehicle
WO2017204332A1 (en) Portable electronic device, control system, control method, and control program
KR102545199B1 (en) Electronic apparatus and control method thereof
JP2016219024A (en) Recognition device, control method, program and recording medium for traffic signal
CN115743098B (en) Parking method, device, storage medium, electronic equipment and vehicle
JP5951188B2 (en) Information providing method, information providing program, information providing server, and storage medium