TWI457864B - Warning method for moving vehicles and electronic device and computer program product using the method - Google Patents

Warning method for moving vehicles and electronic device and computer program product using the method Download PDF

Info

Publication number
TWI457864B
TWI457864B TW101119952A TW101119952A TWI457864B TW I457864 B TWI457864 B TW I457864B TW 101119952 A TW101119952 A TW 101119952A TW 101119952 A TW101119952 A TW 101119952A TW I457864 B TWI457864 B TW I457864B
Authority
TW
Taiwan
Prior art keywords
electronic device
control module
feature points
image frame
license plate
Prior art date
Application number
TW101119952A
Other languages
Chinese (zh)
Other versions
TW201351357A (en
Inventor
Chun Hsiang Huang
Che Han Chang
Original Assignee
Htc Corp
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 Htc Corp filed Critical Htc Corp
Priority to TW101119952A priority Critical patent/TWI457864B/en
Publication of TW201351357A publication Critical patent/TW201351357A/en
Application granted granted Critical
Publication of TWI457864B publication Critical patent/TWI457864B/en

Links

Landscapes

  • Traffic Control Systems (AREA)
  • Image Analysis (AREA)

Description

行車警示方法及其電子裝置與其電腦程式產品Driving warning method and electronic device thereof and computer program product thereof

本案是有關於一種影像處理方法,且特別是有關於利用影像處理方法來實現的一種行車警示方法及其電子裝置與其電腦程式產品。The present invention relates to an image processing method, and in particular to a driving warning method and an electronic device thereof and a computer program product thereof implemented by using an image processing method.

目前汽車駕駛常遇到的碰撞前車情況,大多發生在駕駛者分心(absent-minded),或過度疲勞(exhaustive)的情況。目前市面上的碰撞預防系統大多為根基於遠紅外線(infrared)/雷射(laser)/雷達(radar)的系統,但是這些碰撞預防系統需要額外且特殊的裝置以投射遠紅外線光/雷射光/雷達信號到前方物件才能達成預期功效,因此成本較高。另外,較常見的駕駛者疲勞偵測系統僅能提示駕駛者,並無法避免因駕駛者分心造成的車禍事故。因此,如何利用較少的硬體成本與較短運算時間,俾使汽車駕駛者可在碰撞前車之前獲得警告信息,仍為此項領域中亟需解決之問題。At present, the situation of collision vehicles often encountered in automobile driving mostly occurs in the case of driver absent-minded or exhaustive. Most of the collision prevention systems currently on the market are based on infrared/laser/radar systems, but these collision prevention systems require additional and special devices to project far-infrared/laser light/ The radar signal to the front object can achieve the desired effect, so the cost is higher. In addition, the more common driver fatigue detection system can only prompt the driver, and can not avoid the car accident caused by the driver's distraction. Therefore, how to use less hardware cost and shorter computing time, so that the driver can obtain warning information before the collision, is still an urgent problem in this field.

本案提供一種行車警示方法及其電子裝置與其電腦程式產品。藉由追蹤前方車輛的多個特徵點,且計算代表所述多個特徵點的空間分佈的統計值,可據此判斷所述多個特徵點的發散情況,並進而決定是否提供警告信息給行 車駕駛者。如此一來,可以不須增加額外硬體且有效率地判斷是否有碰撞前車的機率,以警示駕駛者。The present invention provides a driving warning method and an electronic device thereof and a computer program product thereof. By tracking a plurality of feature points of the preceding vehicle and calculating a statistical value representing the spatial distribution of the plurality of feature points, the divergence of the plurality of feature points can be determined according to the determination, and further determining whether to provide the warning information to the line Car driver. In this way, it is possible to warn the driver without having to add extra hardware and efficiently determine whether there is a chance of colliding with the vehicle.

根據本案的一實施例,本案提出一種行車警示方法。所述的方法適用於一電子裝置,並包括下列步驟。利用此電子裝置偵測在一影像圖框中一給定區域內的多個特徵點。在一預設時間內追蹤所述多個特徵點。計算代表所述多個特徵點的一空間分佈的一統計值。此外,根據所計算的統計值,判斷所述多個特徵點的一發散情況,並根據此發散情況決定提供一警告信息給一行車駕駛者。According to an embodiment of the present invention, the present invention proposes a driving warning method. The method described is applicable to an electronic device and includes the following steps. The electronic device is used to detect a plurality of feature points in a given area in an image frame. Tracking the plurality of feature points for a preset time. A statistical value representing a spatial distribution of the plurality of feature points is calculated. In addition, based on the calculated statistical value, a divergence condition of the plurality of feature points is determined, and a warning message is provided to the driver of the row of cars according to the divergence condition.

根據本案的一實施例,本案提出一種電子裝置。所述的電子裝置包括一影像擷取單元、一控制模組與一警示模組。影像擷取單元,用來擷取至少一影像,以產生對應的影像圖框。控制模組,連接至此影像擷取單元,用來偵測在一影像圖框中一給定區域內的多個特徵點,在一預設時間內追蹤所述多個特徵點,計算代表所述多個特徵點的一空間分佈的一統計值,並根據所計算的統計值,判斷所述多個特徵點的一發散情況。此外,警示模組連接至此控制模組,用來接收此控制模組的一控制信號,且當此控制模組根據此發散情況決定提供一警告信息給一行車駕駛者時,輸出此警告信息。According to an embodiment of the present invention, an electronic device is proposed in the present case. The electronic device includes an image capturing unit, a control module and a warning module. The image capturing unit is configured to capture at least one image to generate a corresponding image frame. a control module is connected to the image capturing unit for detecting a plurality of feature points in a given area in an image frame, tracking the plurality of feature points in a preset time, and calculating the representative a statistical value of a spatial distribution of the plurality of feature points, and determining a divergence of the plurality of feature points based on the calculated statistical value. In addition, the warning module is connected to the control module for receiving a control signal of the control module, and when the control module determines to provide a warning message to the driver of the row of vehicles according to the divergence condition, the warning message is output.

根據本案的一實施例,本案提出一種電腦程式產品,所述的電腦程式產品儲存一電腦可執行程式,當所述的電腦可執行程式載入至一電子裝置時,所述的電腦可執行程式使此電子裝置執行下列步驟。利用此電子裝置偵測在一 影像圖框中一給定區域內的多個特徵點。在一預設時間內追蹤所述多個特徵點。計算代表所述多個特徵點的一空間分佈的一統計值。此外,根據所計算的統計值,判斷所述多個特徵點的一發散情況,並根據此發散情況決定提供一警告信息給一行車駕駛者。According to an embodiment of the present invention, the present invention provides a computer program product, wherein the computer program product stores a computer executable program, and when the computer executable program is loaded into an electronic device, the computer executable program The electronic device is caused to perform the following steps. Using this electronic device to detect in one Multiple feature points in a given area in the image frame. Tracking the plurality of feature points for a preset time. A statistical value representing a spatial distribution of the plurality of feature points is calculated. In addition, based on the calculated statistical value, a divergence condition of the plurality of feature points is determined, and a warning message is provided to the driver of the row of cars according to the divergence condition.

基於上述,本案之實施例提出行車警示方法及其電子裝置與其電腦程式產品。偵測在一影像圖框中一給定區域內的多個特徵點,並追蹤所述多個特徵點,且計算代表所述多個特徵點的空間分佈的統計值。另外,根據所計算的統計值,判斷所述多個特徵點的發散情況,並據此決定是否提供警告信息給行車駕駛者。如此一來,可以在不用增加額外硬體且較短運算時間的情況下,快速地判斷是否有碰撞前車的機率,以警示駕駛者。Based on the above, the embodiment of the present invention proposes a driving warning method and an electronic device thereof and a computer program product thereof. Detecting a plurality of feature points in a given area in an image frame, and tracking the plurality of feature points, and calculating a statistical value representing a spatial distribution of the plurality of feature points. In addition, based on the calculated statistical value, the divergence of the plurality of feature points is determined, and accordingly, whether or not warning information is provided to the driving driver is determined. In this way, it is possible to quickly determine whether there is a probability of colliding with the vehicle without adding additional hardware and a short calculation time to alert the driver.

為讓本案之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more comprehensible, the following detailed description of the embodiments and the accompanying drawings.

圖1是根據本案之一實施例所繪示一種電子裝置的功能方塊圖。此電子裝置10,適用於設置在行動物體的擴充機座上,例如汽車駕駛座的擴充機座。電子裝置10可以持續地利用影像處理技術來偵測是否距離一物體(例如,前方行駛之汽車或機車)太近,並根據此偵測結果來判斷是否要提供警示信息給行車駕駛者,以確保與前方行駛之汽車或機車維持一定的安全距離。FIG. 1 is a functional block diagram of an electronic device according to an embodiment of the present invention. The electronic device 10 is suitable for being disposed on an expansion base of a mobile object, such as an expansion base of a driver's seat. The electronic device 10 can continuously use image processing technology to detect whether it is too close to an object (for example, a car or a locomotive traveling ahead), and based on the detection result, determine whether to provide warning information to the driving driver to ensure Maintain a safe distance from the car or locomotive driving ahead.

為了解說方便,在此先介紹可實現本案之行車警示方法的必要元件。所述的電子裝置10包括一影像擷取單元11、一控制模組12與一警示模組13。影像擷取單元11,用來擷取一或多個影像,以產生對應的一或多個影像圖框(image frames)。電子裝置10還可以包括其他元件,例如輸入單元(未繪示)、通信模組或全球定位系統(GPS)處理模組(未繪示)等,但本案的可實施方式的重點與此些其他元件相關性較低,在此不詳述可能的各種其他元件。In order to understand the convenience, here is the necessary components to realize the driving warning method of this case. The electronic device 10 includes an image capturing unit 11 , a control module 12 and a warning module 13 . The image capturing unit 11 is configured to capture one or more images to generate corresponding one or more image frames. The electronic device 10 may further include other components, such as an input unit (not shown), a communication module, or a global positioning system (GPS) processing module (not shown), etc., but the focus of the implementation of the present invention is the same as the other The component correlation is low and various other components that may be possible are not detailed here.

請參照圖1,影像擷取單元11可為一照相機(camera)。控制模組12連接至此影像擷取單元11,用來偵測在一影像圖框中一給定區域內的多個特徵點,在一預設時間內追蹤所述多個特徵點,並計算代表所述多個特徵點的一空間分佈(spatial distribution)的一統計值(statistics),且根據所計算的統計值,判斷所述多個特徵點的一發散情況。Referring to FIG. 1, the image capturing unit 11 can be a camera. The control module 12 is connected to the image capturing unit 11 for detecting a plurality of feature points in a given area in an image frame, tracking the plurality of feature points in a preset time, and calculating the representative a statistic of a spatial distribution of the plurality of feature points, and determining a divergence of the plurality of feature points based on the calculated statistic.

控制模組12可以包括記憶體單元(未繪示)與處理器單元(未繪示)。所述記憶體單元可以儲存執行判斷多個特徵點、追蹤多個特徵點、計算代表多個特徵點的空間分佈的統計值,以及根據所計算統計值判斷是否提供警示信號的演算法的對應程式碼(軟體模組或韌體程式碼)。所述程式碼可以由處理器單元執行以實現控制模組12的各項功能。The control module 12 can include a memory unit (not shown) and a processor unit (not shown). The memory unit may store a statistical value of performing a plurality of feature points, tracking a plurality of feature points, calculating a spatial distribution representing the plurality of feature points, and determining a corresponding algorithm of the algorithm for determining whether to provide the warning signal according to the calculated statistical value. Code (software module or firmware code). The code can be executed by the processor unit to implement various functions of the control module 12.

另外,警示模組13電性連接至控制模組12,控制模組12可根據發散情況透過警示模組13提供一警告信息給 一行車駕駛者。所述的警告信息可以為聲音信息、影像信息或震動提示,以提醒行車駕駛者注意與前方車輛的安全距離太短,需要作適當的駕駛處理,例如煞車。In addition, the warning module 13 is electrically connected to the control module 12, and the control module 12 can provide a warning message to the warning module 13 according to the divergence condition. A row of car drivers. The warning information may be sound information, image information or vibration prompts to remind the driving driver that the safety distance with the preceding vehicle is too short, and appropriate driving processing, such as braking, is required.

由於警告信息可以為聲音信息、影像信息或震動提示,警示模組13可以包括一聲音輸出單元、一影像輸出單元、一震動產生單元,或前述各種單元的任意組合,以提供適當的警示信息給行車駕駛者(亦即電子裝置10的一使用者)。The warning module 13 may include a sound output unit, an image output unit, a vibration generating unit, or any combination of the foregoing various units, to provide appropriate warning information, as the warning information may be sound information, image information, or vibration prompts. The driver of the vehicle (i.e., a user of the electronic device 10).

在本實施例中,所述的電子裝置10的控制模組12還追蹤在一影像圖框中的所述多個特徵點,且進一步判斷是否追蹤到所述多個特徵點。詳言之,控制模組12在一預設時間(例如,50毫秒)內,持續地偵測由影像擷取單元11連續性擷取的影像圖框中的相同特徵點,並判斷是否追蹤到所述多個特徵點。以下利用圖2A至圖2C來進一步說明追蹤多個特徵點的方式。In this embodiment, the control module 12 of the electronic device 10 further tracks the plurality of feature points in an image frame, and further determines whether the plurality of feature points are tracked. In detail, the control module 12 continuously detects the same feature points in the image frame continuously captured by the image capturing unit 11 within a preset time (for example, 50 milliseconds), and determines whether the tracking is tracked. The plurality of feature points. The manner of tracking a plurality of feature points will be further explained below using FIGS. 2A to 2C.

在本案的一實施例中,在控制模組12偵測在一影像圖框中一給定區域內的所述多個特徵點之前,控制模組12可藉由偵測在此影像圖框中的一車牌,判斷是否偵測到此車牌。當控制模組12偵測到此車牌時,控制模組12可接續偵測此影像圖框中的給定區域內的所述多個特徵點,其中該給定區域為此車牌。另外,當控制模組12判定沒有偵測到此車牌時,先等待一預設時間,並在此預設時間之後,控制模組12才偵測在影像擷取單元11擷取的一下一個影像圖框中的一車牌。In an embodiment of the present invention, before the control module 12 detects the plurality of feature points in a given area in an image frame, the control module 12 can detect the image frame in the image frame. A license plate to determine whether the license plate is detected. When the control module 12 detects the license plate, the control module 12 can successively detect the plurality of feature points in a given area of the image frame, wherein the given area is the license plate. In addition, when the control module 12 determines that the license plate is not detected, it waits for a preset time, and after the preset time, the control module 12 detects the next image captured by the image capturing unit 11. A license plate in the frame.

圖2A至圖2C是根據本案一實施例所繪示追蹤物件上多個特徵點的示意圖。請先參照圖2A,影像圖框201中顯示一前方車輛的後側影像,影像圖框201至少顯示一車體21與一車牌22。以車牌作為給定區域來說明,在車牌上通常有白底黑字,其中黑字顯示車牌號碼(可為數字與英文字母的組合)。在影像圖框201的解說範例中,車牌22包括「12345」的數字,為了追蹤多個特徵點,可以利用各數字上的一點位置來作為特徵點,例如數字「1」的特徵點S1、數字「2」的特徵點S2、數字「3」的特徵點S3、數字「4」的特徵點S4與數字「5」的特徵點S5。然而本案的可實施方式並非限定於上述,在其他實施例中,還可在每一數字或每一英文字母上選取超過一個特徵點,且全部選取的特徵點數目可視實際需求調整,並不以此為限。2A-2C are schematic diagrams showing tracking of a plurality of feature points on an object according to an embodiment of the present invention. Referring to FIG. 2A first, the image frame 201 displays a rear side image of a front vehicle. The image frame 201 displays at least one body 21 and a license plate 22. Taking the license plate as a given area, there are usually black letters on the license plate, and the black characters show the license plate number (which can be a combination of numbers and English letters). In the illustrated example of the image frame 201, the license plate 22 includes a number of "12345". In order to track a plurality of feature points, a point position on each digit can be used as a feature point, for example, a feature point S1 of a number "1" The feature point S2 of "2", the feature point S3 of the number "3", the feature point S4 of the number "4", and the feature point S5 of the number "5". However, the implementation manner of the present invention is not limited to the above. In other embodiments, more than one feature point may be selected on each number or each English letter, and the number of all selected feature points may be adjusted according to actual needs, and is not This is limited.

圖2B繪示另一個影像圖框202,此影像圖框202可能為影像圖框201的下一個影像圖框,或是距離影像圖框201多個影像圖框週期之後,才由影像擷取單元11擷取的一影像圖框。在影像圖框202中顯示的車牌22較影像圖框201大,其代表電子裝置10與前方車輛之間的相對距離縮短。電子裝置10的控制模組12可藉由下述影像處理程序來判斷電子裝置10與前方車輛的相對距離是否縮短。FIG. 2B illustrates another image frame 202. The image frame 202 may be the next image frame of the image frame 201 or the image capturing unit after the plurality of image frame periods of the image frame 201. 11 captured an image frame. The license plate 22 displayed in the image frame 202 is larger than the image frame 201, which represents a reduction in the relative distance between the electronic device 10 and the preceding vehicle. The control module 12 of the electronic device 10 can determine whether the relative distance between the electronic device 10 and the preceding vehicle is shortened by the following image processing program.

詳言之,數字「1」的特徵點S1、數字「2」的特徵點S2、數字「3」的特徵點S3、數字「4」的特徵點S4與數字「5」的特徵點S5分別改變為特徵點P1、P2、P3、P4、P5。由於數字「3」的特徵點S3位於影像圖框201相對的 中心位置,因此特徵點P3與特徵點S3較難區別,但是其他特徵點P1、P2、P4、P5在影像圖框202的位置,明顯較前一影像圖框201的先前位置,由影像圖框201的一中心點位置往周圍發散(diverge)。控制模組12由多個特徵點的發散情況,可以判斷電子裝置10與前方車輛的相對距離是否太短,並據此決定是否控制警示模組13以提供一警告信息給行車駕駛者。In detail, the feature point S1 of the number "1", the feature point S2 of the number "2", the feature point S3 of the number "3", the feature point S4 of the number "4", and the feature point S5 of the number "5" are respectively changed. It is the feature points P1, P2, P3, P4, P5. Since the feature point S3 of the number "3" is located opposite to the image frame 201 The central position, so the feature point P3 is more difficult to distinguish from the feature point S3, but the other feature points P1, P2, P4, P5 are at the position of the image frame 202, which is significantly higher than the previous position of the previous image frame 201, by the image frame A center point position of 201 diverges around. The control module 12 determines whether the relative distance between the electronic device 10 and the preceding vehicle is too short, and determines whether to control the warning module 13 to provide a warning message to the driving driver.

圖2C繪示另一個影像圖框203,此影像圖框203可能為影像圖框201的下一個影像圖框,或是由影像圖框201起算多個影像圖框週期之後,才由影像擷取單元11擷取的一影像圖框。與圖2B的情況相反,影像圖框203顯示的車牌22較影像圖框201小,且各特徵點明顯往影像圖框201的中心點位置內聚(converge)。由於繪示空間較小,在影像圖框203中不逐一標示各特徵點。控制模組12由多個特徵點的發散情況,可判斷目前電子裝置10與前方車輛的相對距離拉長了,且不需要提供一警告信息給行車駕駛者。FIG. 2C illustrates another image frame 203. The image frame 203 may be the next image frame of the image frame 201, or may be captured by the image frame frame 201 after multiple image frame periods are counted. An image frame captured by unit 11. Contrary to the case of FIG. 2B, the license plate 22 displayed by the image frame 203 is smaller than the image frame 201, and each feature point is clearly converge toward the center point of the image frame 201. Since the drawing space is small, each feature point is not marked one by one in the image frame 203. The control module 12 is determined by the divergence of a plurality of feature points, and can determine that the relative distance between the electronic device 10 and the preceding vehicle is elongated, and does not need to provide a warning message to the driving driver.

利用車牌22作為給定範圍可以提供後續判斷電子裝置10與前方車輛之間的相對距離變化的一初始值,並因此可有效率地偵測多個特徵點,並減少判斷相對距離變化所需的運算時間,也不需要額外的遠紅外線、雷射、發送雷達偵測信號等硬體元件。然而,本案的可實施方式並非限定於車牌,在其他實施例中,還可直接利用前方車輛的後側影像中的特徵點。舉例說明,可利用後車窗玻璃與周圍 車窗結構之間的影像差異,擷取多個特徵點,以作為判斷電子裝置10與前方車輛之間的相對距離變化的一初始值。Using the license plate 22 as a given range can provide an initial value for determining the relative distance change between the electronic device 10 and the preceding vehicle, and thus can efficiently detect a plurality of feature points and reduce the need to determine the relative distance change. The operation time does not require additional hardware components such as far infrared rays, lasers, and radar detection signals. However, the embodiment of the present invention is not limited to the license plate, and in other embodiments, the feature points in the rear side image of the preceding vehicle can be directly utilized. For example, the rear window glass can be used with the surrounding The image difference between the window structures extracts a plurality of feature points as an initial value for determining a change in the relative distance between the electronic device 10 and the preceding vehicle.

在控制模組12判斷多個特徵點的發散情況之前,控制模組12需要先追蹤在影像圖框中的多個特徵點。當控制模組12無法追蹤所述多個特徵點時,此控制模組12持續地在影像擷取單元11擷取的一下一個影像圖框中追蹤所述多個特徵點,此即重複地在最新擷取的影像圖框中追蹤所述多個特徵點。另外,當追蹤到所述多個特徵點時,控制模組12計算代表所述多個特徵點的空間分佈的統計值。此統計值可以為影像圖框中多個群組間的平均距離(average intra-group distance),或多個群組間的方差(variance),但本案的可實施方式並不限定於上述。Before the control module 12 determines the divergence of the plurality of feature points, the control module 12 needs to first track the plurality of feature points in the image frame. When the control module 12 is unable to track the plurality of feature points, the control module 12 continuously tracks the plurality of feature points in the next image frame captured by the image capturing unit 11 , which is repeatedly The plurality of feature points are tracked in the newly captured image frame. Additionally, when tracking the plurality of feature points, the control module 12 calculates a statistical value representative of the spatial distribution of the plurality of feature points. The statistical value may be an average intra-group distance between multiple groups in the image frame, or a variance between a plurality of groups, but the implementation manner of the present invention is not limited to the above.

控制模組12可以根據所計算的統計值判斷所述多個特徵點是否正在朝著一發散趨勢移動。當控制模組12根據所計算的統計值判斷所述多個特徵點是否由影像圖框的一中心點位置向外發散時,控制模組12可以透過警示模組13提供警告信息給行車駕駛者。The control module 12 can determine whether the plurality of feature points are moving toward a divergence trend according to the calculated statistical value. When the control module 12 determines, according to the calculated statistical value, whether the plurality of feature points are diverged outward from a central point position of the image frame, the control module 12 can provide the warning information to the driving driver through the warning module 13 .

在本案的其他實施例中,在控制模組12偵測影像圖框中的一給定區域內的所述多個特徵點之前,控制模組12還偵測在此影像圖框中的一行動物體輪廓,判斷是否偵測到此行動物體輪廓,並當判定偵測到此行動物體輪廓時,接續地偵測此影像圖框中的給定區域內的所述多個特徵點,其中所述的給定區域為此行動物體輪廓,而此行動物體可以為汽車或機車。In other embodiments of the present invention, before the control module 12 detects the plurality of feature points in a given area of the image frame, the control module 12 also detects an action in the image frame. An object contour, determining whether the contour of the moving object is detected, and when determining that the contour of the moving object is detected, continuously detecting the plurality of feature points in a given area of the image frame, wherein The given area is the outline of the action object, and the action object can be a car or a locomotive.

當控制模組12判定所述多個特徵點正由影像圖框的一中心點向外發散時,控制模組12進一步判斷此電子裝置10與一前方行動物體之間的一相對速度是否超過一預設門限值,並且當此相對速度超過所述預設門限值時,控制模組12可控制警示模組13提供一警告信息給行車駕駛者。When the control module 12 determines that the plurality of feature points are diverging outward from a center point of the image frame, the control module 12 further determines whether a relative speed between the electronic device 10 and a front action object exceeds one. The threshold value is preset, and when the relative speed exceeds the preset threshold, the control module 12 can control the warning module 13 to provide a warning message to the driving driver.

當控制模組12判定所述多個特徵點正由影像圖框的中心點向外發散時,控制模組12還可以直接地根據所計算的統計值,判斷此電子裝置10與一前方行動物體之間的一相對速度是否超過一預設門限值。由於影像擷取單元11的擷取影像週期為固定的,例如每秒擷取30個影像圖框,因此根據所計算的統計值搭配已知的擷取影像週期,控制模組12可以有效率地推測出此電子裝置10與一前方行動物體之間的相對速度。當控制模組12判定此相對速度超過所述預設門限值時,控制模組12可控制警示模組13提供該警告信息給該行車駕駛者。When the control module 12 determines that the plurality of feature points are diverging outward from the center point of the image frame, the control module 12 can also directly determine the electronic device 10 and a front action object according to the calculated statistical value. Whether a relative speed between them exceeds a predetermined threshold. Since the captured image period of the image capturing unit 11 is fixed, for example, 30 image frames are captured every second, the control module 12 can be efficiently used according to the calculated statistical value and the known captured image period. The relative speed between the electronic device 10 and a front mobile object is inferred. When the control module 12 determines that the relative speed exceeds the preset threshold, the control module 12 can control the warning module 13 to provide the warning information to the driving driver.

圖3是根據本案第一實施例所繪示一種行車警示方法的流程圖。請同時參照圖1與圖3,所述行車警示方法起始於步驟S302。在步驟S302中,控制模組12偵測在一影像圖框中一給定區域的多個特徵點。所述給定區域可以為一車牌或一車體輪廓,而所述多個特徵點可以參照圖2A至圖2C所顯示特徵點因電子裝置10與前方車輛之間相對距離變化的示意圖。在步驟S304中,控制模組12在一預設時間內追蹤相同的多個特徵點。例如,圖2A至圖2C顯示多個特徵點因電子裝置10與前方車輛之間的相對距離 變化而有發散情況或內聚情況。FIG. 3 is a flow chart of a driving warning method according to the first embodiment of the present invention. Referring to FIG. 1 and FIG. 3 simultaneously, the driving warning method starts at step S302. In step S302, the control module 12 detects a plurality of feature points in a given area in an image frame. The given area may be a license plate or a body contour, and the plurality of feature points may refer to the schematic diagrams of the feature points shown in FIG. 2A to FIG. 2C due to the relative distance between the electronic device 10 and the preceding vehicle. In step S304, the control module 12 tracks the same plurality of feature points for a preset time. For example, FIGS. 2A to 2C show a plurality of feature points due to the relative distance between the electronic device 10 and the vehicle in front. Change and divergence or cohesion.

在步驟S306中,控制模組12計算代表所述多個特徵點的空間分佈的統計值。在步驟S308中,控制模組12根據所計算的統計值,判斷所述多個特徵點的發散情況,並根據所述多個特徵點的發散情況決定是否控制控制警示模組13以提供一警告信息給行車駕駛者。在步驟S308之後,所述行車警示方法結束。在實際運作中,上述步驟S302至步驟S308可以循環性地執行,以持續地進行所述的行車警示方法,並在判斷與前方車輛的相對距離太短時,提供警告信息給行車駕駛者。In step S306, the control module 12 calculates a statistical value representing the spatial distribution of the plurality of feature points. In step S308, the control module 12 determines the divergence of the plurality of feature points according to the calculated statistical value, and determines whether to control the control alert module 13 to provide a warning according to the divergence of the plurality of feature points. Information for driving drivers. After the step S308, the driving warning method ends. In actual operation, the above steps S302 to S308 may be performed cyclically to continuously perform the driving warning method, and provide warning information to the driving driver when determining that the relative distance to the preceding vehicle is too short.

圖4是根據本案第二實施例所繪示一種行車警示方法的流程圖。圖4的各步驟更詳細地說明圖3的技術內容。請同時參照圖1與圖4,所述的行車警示方法起始於步驟S402。在步驟S402中,控制模組12偵測在一影像圖框中一給定區域的多個特徵點。在步驟S404中,控制模組12在影像擷取單元11擷取的一下一個影像圖框中追蹤相同的多個特徵點。在步驟S406中,控制模組12判斷是否追蹤到所述相同的多個特徵點。當控制模組12判定追蹤到所述相同的多個特徵點時,則在步驟S406之後接續執行步驟S408。當控制模組12判定並未追蹤到所述相同的多個特徵點時,則在步驟S406之後返回執行步驟S404。4 is a flow chart of a driving alert method according to a second embodiment of the present invention. The steps of Figure 4 illustrate the technical content of Figure 3 in more detail. Referring to FIG. 1 and FIG. 4 simultaneously, the driving warning method starts at step S402. In step S402, the control module 12 detects a plurality of feature points in a given area in an image frame. In step S404, the control module 12 tracks the same plurality of feature points in the next image frame captured by the image capturing unit 11. In step S406, the control module 12 determines whether the same plurality of feature points are tracked. When the control module 12 determines that the same plurality of feature points are tracked, step S408 is performed after step S406. When the control module 12 determines that the same plurality of feature points are not tracked, the process returns to step S404 after step S406.

在步驟S408中,控制模組12計算代表所述多個特徵點的空間分佈的統計值。在步驟S410中,控制模組12根據所計算的統計值,判斷所述多個特徵點是否由一中心點 位置向外發散。當控制模組12判定所述多個特徵點為發散時,則在步驟S410之後繼續執行步驟S412。當控制模組12判定所述多個特徵點不是發散時,則在步驟S410之後返回執行步驟S404。在步驟S412中,控制模組12控制控制警示模組13以提供一警告信息給行車駕駛者。在步驟S412之後,所述行車警示方法結束。在實際運作中,上述步驟S402至步驟S412可以循環性地執行,以持續地進行所述行車警示方法,並在判斷與前方車輛的相對距離太短時,提供警告信息給行車駕駛者。In step S408, the control module 12 calculates a statistical value representing the spatial distribution of the plurality of feature points. In step S410, the control module 12 determines, according to the calculated statistical value, whether the plurality of feature points are from a center point. The position diverges outward. When the control module 12 determines that the plurality of feature points are divergent, step S412 is continued after step S410. When the control module 12 determines that the plurality of feature points are not divergent, then returning to step S404 after step S410. In step S412, the control module 12 controls the control alert module 13 to provide a warning message to the driving driver. After the step S412, the driving warning method ends. In actual operation, the above steps S402 to S412 may be cyclically performed to continuously perform the driving warning method, and provide warning information to the driving driver when determining that the relative distance to the preceding vehicle is too short.

圖5是根據本案第三實施例所繪示一種行車警示方法的流程圖。圖5所繪示的步驟S502至步驟S506提供行車警示方法的初始值,此即提供給定範圍。步驟S508則類似圖4中的步驟S402至步驟412。請同時參這圖1與圖5,圖5所繪示的行車警示方法起始於步驟S502。在步驟S502中,控制模組12等待一預設等待時間,例如,5毫秒(ms)。在步驟S504中,控制模組12偵測在影像擷取單元11擷取的一影像圖框中的一車牌。在步驟S506中,控制模組12判斷是否偵測到一車牌。當控制模組12判斷有偵測到一車牌時,在步驟S506之後繼續執行步驟S508。當控制模組12判斷沒有偵測到一車牌時,在步驟S506之後返回執行步驟S502,以重新在影像擷取單元11擷取的最新影像圖框中偵測一車牌。FIG. 5 is a flow chart of a driving warning method according to a third embodiment of the present invention. Steps S502 to S506 illustrated in FIG. 5 provide an initial value of the driving alert method, which provides a given range. Step S508 is similar to steps S402 to 412 in FIG. Please refer to FIG. 1 and FIG. 5 at the same time. The driving warning method illustrated in FIG. 5 starts at step S502. In step S502, the control module 12 waits for a preset waiting time, for example, 5 milliseconds (ms). In step S504, the control module 12 detects a license plate in an image frame captured by the image capturing unit 11. In step S506, the control module 12 determines whether a license plate is detected. When the control module 12 determines that a license plate is detected, step S508 is continued after step S506. When the control module 12 determines that a license plate is not detected, the process returns to step S502 after step S506 to re-detect a license plate in the latest image frame captured by the image capturing unit 11.

當控制模組12判斷有偵測到一車牌時,則代表可以利用車牌作為影像圖框中的給定範圍。在步驟S508中, 控制模組12判斷在一車牌區域(regions)內的多個特徵值的發散情況,並根據所述多個特徵值的發散情況,決定控制警示模組13以提供一警告信息給行車駕駛者。在步驟S508之後,所述行車警示方法結束。在實際運作中,上述步驟S502至步驟S508可以循環性地執行,以持續地進行所述行車警示方法,並在判斷與前方車輛的相對距離太短時,提供警告信息給行車駕駛者。When the control module 12 determines that a license plate is detected, it means that the license plate can be used as a given range in the image frame. In step S508, The control module 12 determines the divergence of a plurality of feature values in a license plate region, and determines the control alert module 13 to provide a warning message to the driver based on the divergence of the plurality of feature values. After step S508, the driving alert method ends. In actual operation, the above steps S502 to S508 may be performed cyclically to continuously perform the driving warning method, and provide warning information to the driving driver when determining that the relative distance to the preceding vehicle is too short.

圖6是根據本案第四實施例所繪示一種行車警示方法的流程圖。圖6所繪示的步驟S602至步驟S606提供行車警示方法的初始值,此即提供給定範圍。步驟S608則類似圖4中的步驟S402至步驟412。在圖6中的給定範圍為辨識一前方車輛的車體輪廓,並不需要偵測前方車輛的車牌。步驟S602至步驟S608大致上類似於步驟S502至步驟S508,因此在此不重述相關技術內容。圖6的行車警示方法與圖5之間的差異點在於,步驟S604至步驟S608中控制模組12使用行動物體輪廓(此即,車體輪廓),取代步驟S504至步驟S508中使用的車牌區域,作為行車警示方法的流程中所需的給定範圍。FIG. 6 is a flow chart of a driving warning method according to a fourth embodiment of the present invention. Steps S602 to S606 illustrated in FIG. 6 provide an initial value of the driving alert method, which provides a given range. Step S608 is similar to steps S402 to 412 in FIG. The given range in Figure 6 is to identify the body contour of a preceding vehicle and does not need to detect the license plate of the vehicle in front. Steps S602 to S608 are substantially similar to steps S502 to S508, and thus the related art content will not be repeated here. The difference between the driving warning method of FIG. 6 and FIG. 5 is that the control module 12 uses the moving object contour (that is, the vehicle body contour) in steps S604 to S608 instead of the license plate area used in steps S504 to S508. , as a given range required in the flow of the warning method.

圖7是根據本案第五實施例所繪示一種行車警示方法的流程圖。圖7所繪示的行車警示方法大致上類似圖4的行車警示方法,此即步驟S702至步驟S710類似步驟S402至步驟S410,因此在此不重述相關技術內容。請同時參照圖1與圖7,圖7所繪示的行車警示方法在步驟S710之後,先執行步驟S712,由控制模組12進一步判斷電子裝置10 所在的行動物體(例如,一汽車)與前方行動物體(例如,另一汽車)之間的一相對速度是否超過預設門限值。所述相對速度的預設門限值,例如為+30公里/秒,此即電子裝置10所在的行動物體的速度超過前方行動物體有30公里/秒。在步驟S712中,控制模組12可利用電子裝置10的GPS模組來偵測目前電子裝置10與前方行動物體之間的相對速度,但本案的可實施方式並不限定於上述。FIG. 7 is a flow chart of a driving warning method according to a fifth embodiment of the present invention. The driving warning method illustrated in FIG. 7 is substantially similar to the driving warning method of FIG. 4, that is, steps S702 to S710 are similar to steps S402 to S410, and thus the related technical content is not repeated herein. Referring to FIG. 1 and FIG. 7 simultaneously, the driving warning method illustrated in FIG. 7 performs step S712 after step S710, and further determines the electronic device 10 by the control module 12. Whether a relative speed between the moving object (for example, a car) and the moving object in front (for example, another car) exceeds a preset threshold. The preset threshold value of the relative speed is, for example, +30 km/s, that is, the speed of the moving object where the electronic device 10 is located is more than 30 km/sec of the moving object in front. In step S712, the control module 12 can use the GPS module of the electronic device 10 to detect the relative speed between the current electronic device 10 and the moving object in front, but the implementation manner of the present invention is not limited to the above.

當控制模組12判斷電子裝置10所在的行動物體與前方行動物體之間的一相對速度並未超過預設門限值時,在步驟S712之後返回進行步驟S704。當控制模組12判斷電子裝置10所在的行動物體與前方行動物體之間的一相對速度已超過預設門限值時,在步驟S712之後接續進行步驟S714。在步驟S714中,控制模組12控制控制警示模組13以提供一警告信息給行車駕駛者。在步驟S714之後,所述行車警示方法結束。在實際運作中,上述步驟S702至步驟S714可以循環性地執行,以持續地進行所述行車警示方法,並在判斷與前方車輛的相對距離太短時,提供警告信息給行車駕駛者。When the control module 12 determines that a relative speed between the mobile object and the front mobile object where the electronic device 10 is located does not exceed the preset threshold, the process returns to step S704 after step S712. When the control module 12 determines that a relative speed between the mobile object and the front mobile object where the electronic device 10 is located has exceeded a preset threshold, step S714 is followed by step S714. In step S714, the control module 12 controls the control alert module 13 to provide a warning message to the driving driver. After step S714, the driving alert method ends. In actual operation, the above steps S702 to S714 may be performed cyclically to continuously perform the driving warning method, and provide warning information to the driving driver when determining that the relative distance to the preceding vehicle is too short.

圖8是根據本案第六實施例所繪示一種行車警示方法的流程圖。圖8所繪示的行車警示方法大致上類似圖7的行車警示方法,此即步驟S802至步驟S810類似步驟S702至步驟S710,因此在此不重述相關技術內容。請同時參照圖1與圖8,圖8所繪示的行車警示方法在步驟S810之後,先執行步驟S812。在步驟S812中,控制模組12根據所計 算的統計值,判斷電子裝置10所在的行動物體與前方行動物體之間的一相對速度是否超過預設門限值。FIG. 8 is a flowchart of a driving warning method according to a sixth embodiment of the present invention. The driving warning method illustrated in FIG. 8 is substantially similar to the driving warning method of FIG. 7, and the steps S802 to S810 are similar to the steps S702 to S710, and thus the related technical content is not repeated herein. Referring to FIG. 1 and FIG. 8 simultaneously, the driving warning method illustrated in FIG. 8 first performs step S812 after step S810. In step S812, the control module 12 calculates The calculated statistical value determines whether a relative speed between the action object in which the electronic device 10 is located and the forward action object exceeds a preset threshold.

當控制模組12判斷電子裝置10所在的行動物體與前方行動物體之間的相對速度並未超過預設門限值時,在步驟S812之後返回進行步驟S804。當控制模組12判斷電子裝置10所在的行動物體與前方行動物體之間的相對速度已超過預設門限值時,在步驟S812之後接續進行步驟S814。在步驟S814中,控制模組12控制控制警示模組13以提供一警告信息給行車駕駛者。在步驟S814之後,所述的行車警示方法結束。在實際運作中,上述步驟S802至步驟S814可以循環性地執行,以持續地進行所述的行車警示方法,並在判斷與前方車輛的相對距離太短時,提供警告信息給行車駕駛者。When the control module 12 determines that the relative speed between the mobile object and the front mobile object where the electronic device 10 is located does not exceed the preset threshold, the process returns to step S804 after step S812. When the control module 12 determines that the relative speed between the mobile object and the front mobile object where the electronic device 10 is located has exceeded the preset threshold, step S814 is followed by step S814. In step S814, the control module 12 controls the control alert module 13 to provide a warning message to the driving driver. After the step S814, the driving warning method ends. In actual operation, the above steps S802 to S814 may be performed cyclically to continuously perform the driving warning method, and provide warning information to the driving driver when determining that the relative distance to the preceding vehicle is too short.

本案另提供一種電腦程式產品,此電腦程式產品儲存一電腦可執行程式,其係用以執行上述行車警示方法的各個步驟,此電腦程式產品基本上是由多數個程式碼片段所組成的(例如建立組織圖程式碼片段、簽核表單程式碼片段、設定程式碼片段、以及部署程式碼片段),並且這些程式碼片段在載入電子裝置中並執行之後,即可完成上述行車警示方法的步驟與上述電子裝置的功能。The present invention further provides a computer program product for storing a computer executable program for performing the steps of the above-described driving alert method. The computer program product is basically composed of a plurality of code segments (for example After the organization chart code segment, signing the form code segment, setting the code segment, and deploying the code segment, and the code segments are loaded into the electronic device and executed, the steps of the driving warning method can be completed. And the functions of the above electronic device.

綜上所述,本案的多個實施例提出行車警示方法及其電子裝置與其電腦程式產品。藉由偵測在一影像圖框中一給定區域內的多個特徵點,並追蹤所述多個特徵點,且計算代表所述多個特徵點的空間分佈的統計值。然後,根據 所計算的統計值,判斷所述多個特徵點的發散情況,並據此決定是否提供警告信息給行車駕駛者。如此一來,可以在不用增加額外硬體且較短運算時間的情況下,快速地判斷是否有碰撞前車的機率,並據此警示駕駛者。In summary, various embodiments of the present invention provide a driving alert method and an electronic device thereof and a computer program product thereof. By detecting a plurality of feature points in a given area in an image frame, and tracking the plurality of feature points, and calculating a statistical value representing a spatial distribution of the plurality of feature points. Then, according to The calculated statistical value determines the divergence of the plurality of feature points, and accordingly determines whether to provide warning information to the driving driver. In this way, it is possible to quickly determine whether there is a probability of colliding with the vehicle without adding additional hardware and a short calculation time, and alert the driver accordingly.

雖然本案已以實施例揭露如上,然其並非用以限定本案,任何所屬技術領域中具有通常知識者,在不脫離本案之精神和範圍內,當可作些許之更動與潤飾,故本案之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone having ordinary knowledge in the technical field can protect the case without any deviation and refinement within the spirit and scope of the present case. The scope is subject to the definition of the scope of the patent application attached.

10‧‧‧電子裝置10‧‧‧Electronic devices

11‧‧‧影像擷取單元11‧‧‧Image capture unit

12‧‧‧控制模組12‧‧‧Control Module

13‧‧‧警示模組13‧‧‧Warning module

201、202、203‧‧‧影像圖框201, 202, 203‧‧‧ image frames

21‧‧‧車體21‧‧‧ body

22‧‧‧車牌22‧‧‧ License Plate

P1、P2、P3、P4、P5、S1、S2、S3、S4、S5‧‧‧特徵點P1, P2, P3, P4, P5, S1, S2, S3, S4, S5‧‧‧ feature points

S302~S308、S402~S412、S502~S508、S602~S608、S702~S714、S802~S814‧‧‧人機介面呈現的方法之步驟Steps of the S302~S308, S402~S412, S502~S508, S602~S608, S702~S714, S802~S814‧‧‧ human-machine interface presentation methods

圖1是根據本案之一實施例所繪示一種電子裝置的功能方塊圖。FIG. 1 is a functional block diagram of an electronic device according to an embodiment of the present invention.

圖2A至圖2C是根據本案一實施例所繪示追蹤物件上多個特徵點的示意圖。2A-2C are schematic diagrams showing tracking of a plurality of feature points on an object according to an embodiment of the present invention.

圖3是根據本案第一實施例所繪示一種行車警示方法的流程圖。FIG. 3 is a flow chart of a driving warning method according to the first embodiment of the present invention.

圖4是根據本案第二實施例所繪示一種行車警示方法的流程圖。4 is a flow chart of a driving alert method according to a second embodiment of the present invention.

圖5是根據本案第三實施例所繪示一種行車警示方法的流程圖。FIG. 5 is a flow chart of a driving warning method according to a third embodiment of the present invention.

圖6是根據本案第四實施例所繪示一種行車警示方法的流程圖。FIG. 6 is a flow chart of a driving warning method according to a fourth embodiment of the present invention.

圖7是根據本案第五實施例所繪示一種行車警示方法的流程圖。FIG. 7 is a flow chart of a driving warning method according to a fifth embodiment of the present invention.

圖8是根據本案第六實施例所繪示一種行車警示方法的流程圖。FIG. 8 is a flowchart of a driving warning method according to a sixth embodiment of the present invention.

S302~S308‧‧‧行車警示方法之步驟S302~S308‧‧‧Steps for driving warning method

Claims (17)

一種行車警示方法,適用於一電子裝置,所述的方法包括:利用該電子裝置偵測在一影像圖框中一給定區域內的多個特徵點;利用該電子裝置在一預設時間內追蹤所述多個特徵點;利用該電子裝置計算代表所述多個特徵點的一空間分佈的一統計值;利用該電子裝置根據所計算的統計值判斷所述多個特徵點是否由一中心點向外發散;以及當所述多個特徵點正由該中心點向外發散時,利用該電子裝置提供一警告信息給一行車駕駛者。 A driving warning method is applicable to an electronic device, the method comprising: detecting, by the electronic device, a plurality of feature points in a given area in an image frame; using the electronic device in a preset time Tracking the plurality of feature points; calculating, by the electronic device, a statistical value representing a spatial distribution of the plurality of feature points; determining, by the electronic device, whether the plurality of feature points are controlled by a center according to the calculated statistical value The point diverges outward; and when the plurality of feature points are diverging outward from the center point, the electronic device is utilized to provide a warning message to the driver of the line of vehicles. 如申請專利範圍第1項所述的方法,在所述預設時間內追蹤所述多個特徵點的步驟包括:利用該電子裝置判斷是否追蹤到所述多個特徵點;以及當無法追蹤所述多個特徵點時,利用該電子裝置持續在一下一個影像圖框中追蹤所述多個特徵點。 The method of claim 1, wherein the step of tracking the plurality of feature points within the preset time comprises: determining, by the electronic device, whether the plurality of feature points are tracked; and when the When a plurality of feature points are described, the electronic device continuously tracks the plurality of feature points in a next image frame. 如申請專利範圍第1項所述的方法,更包括:利用該電子裝置判斷是否於該影像圖框中偵測到一車牌;以及當判定偵測到該車牌時,利用該電子裝置設定該給定區域為該車牌。 The method of claim 1, further comprising: determining, by the electronic device, whether a license plate is detected in the image frame; and when determining that the license plate is detected, setting the given by the electronic device The fixed area is the license plate. 如申請專利範圍第3項所述的方法,更包括:當判定未偵測到該車牌時,利用該電子裝置等待一預設時間;以及在該預設時間之後,利用該電子裝置偵測一下一個影像圖框中的一車牌。 The method of claim 3, further comprising: when determining that the license plate is not detected, using the electronic device to wait for a preset time; and after the preset time, detecting the electronic device A license plate in an image frame. 如申請專利範圍第1項所述的方法,更包括:利用該電子裝置判斷是否在該影像圖框中偵測到一行動物體輪廓;以及當判定偵測到該行動物體輪廓時,利用該電子裝置設定該給定區域為該行動物體輪廓。 The method of claim 1, further comprising: determining, by the electronic device, whether an active object contour is detected in the image frame; and using the electronic device when determining that the contour of the mobile object is detected The device sets the given area as the contour of the moving object. 如申請專利範圍第5項所述的方法,更包括:當判定未偵測到該行動物體輪廓時,利用該電子裝置先等待一預設時間;以及在該預設時間之後,利用該電子裝置偵測一下一個影像圖框中的一行動物體輪廓。 The method of claim 5, further comprising: when determining that the contour of the mobile object is not detected, using the electronic device to wait for a preset time; and after the preset time, using the electronic device Detect the outline of a moving object in an image frame. 如申請專利範圍第1項所述的方法,更包括:利用該電子裝置判斷該電子裝置與一物體間之一相對速度是否超過一預設門限值;以及當該相對速度超過該預設門限值時,利用該電子裝置提供該警告信息給該行車駕駛者。 The method of claim 1, further comprising: determining, by the electronic device, whether a relative speed between the electronic device and an object exceeds a predetermined threshold; and when the relative speed exceeds the preset threshold The warning information is provided to the driving driver by the electronic device. 如申請專利範圍第1項所述的方法,更包括:根據所計算的統計值,利用該電子裝置判斷該電子裝置與一物體間之一相對速度是否超過一預設門限值;以及當該相對速度超過該預設門限值時,利用該電子裝置 提供該警告信息給該行車駕駛者。 The method of claim 1, further comprising: determining, according to the calculated statistical value, whether the relative speed of one of the electronic device and an object exceeds a predetermined threshold value; and when the relative When the speed exceeds the preset threshold, the electronic device is utilized Provide this warning message to the driving driver. 一種電子裝置,包括:一影像擷取單元,用來擷取至少一影像,以產生對應的一影像圖框;一控制模組,連接至該影像擷取單元,用來偵測在一影像圖框中一給定區域內的多個特徵點,且在一預設時間內追蹤所述多個特徵點,以計算代表所述多個特徵點的一空間分佈的一統計值,並根據所計算的統計值,判斷所述多個特徵點的一發散情況,其中該控制模組根據所計算的統計值判斷所述多個特徵點是否由一中心點向外發散;以及一警示模組,連接至該控制模組,用來接收該控制模組的一控制信號,且當控制模組根據該發散情況決定提供一警告信息給一行車駕駛者時,輸出該警告信息,其中當所述多個特徵點正由該中心點向外發散時,該控制模組控制該警示模組提供該警告信息給該行車駕駛者。 An electronic device includes: an image capturing unit for capturing at least one image to generate a corresponding image frame; and a control module coupled to the image capturing unit for detecting an image image Locating a plurality of feature points in a given area and tracking the plurality of feature points for a preset time to calculate a statistical value representing a spatial distribution of the plurality of feature points, and calculating according to the calculation a statistic value, determining a divergence condition of the plurality of feature points, wherein the control module determines, according to the calculated statistical value, whether the plurality of feature points are diverged outward from a center point; and a warning module, connecting The control module is configured to receive a control signal of the control module, and when the control module determines to provide a warning message to the driver of the row of vehicles according to the divergence condition, outputting the warning message, wherein the plurality of When the feature point is diverging outward from the center point, the control module controls the warning module to provide the warning message to the driving driver. 如申請專利範圍第9項所述的電子裝置,其中:該控制模組還追蹤在一影像圖框中的所述多個特徵點;該控制模組還判斷是否追蹤到所述多個特徵點;以及當該控制模組無法追蹤所述多個特徵點時,該控制模組持續在該影像擷取單元擷取的一下一個影像圖框中追蹤所述多個特徵點。 The electronic device of claim 9, wherein: the control module further tracks the plurality of feature points in an image frame; the control module further determines whether the plurality of feature points are tracked And when the control module is unable to track the plurality of feature points, the control module continuously tracks the plurality of feature points in a next image frame captured by the image capturing unit. 如申請專利範圍第9項所述的電子裝置,其中該 控制模組更偵測在該影像圖框中的一車牌,判斷是否偵測到該車牌,並且當該控制模組偵測到該車牌時,該控制模組偵測該影像圖框中該給定區域內的所述多個特徵點,其中該給定區域為該車牌。 The electronic device of claim 9, wherein the electronic device The control module further detects a license plate in the image frame to determine whether the license plate is detected, and when the control module detects the license plate, the control module detects the image frame The plurality of feature points within the predetermined area, wherein the given area is the license plate. 如申請專利範圍第11項所述的電子裝置,其中當該控制模組判定沒有偵測到該車牌時,先等待一預設時間,並在該預設時間之後,該控制模組偵測該影像擷取單元擷取的一下一個影像圖框中的一車牌。 The electronic device of claim 11, wherein when the control module determines that the license plate is not detected, waiting for a preset time, and after the preset time, the control module detects the A license plate in the next image frame captured by the image capture unit. 如申請專利範圍第9項所述的電子裝置,其中在該控制模組偵測該影像圖框中該給定區域內的所述多個特徵點之前,該控制模組更偵測在該影像圖框中的一行動物體輪廓,判斷是否偵測到該行動物體輪廓,並且當該控制模組判定偵測到該行動物體輪廓時,該控制模組接續地偵測該影像圖框中該給定區域內的所述多個特徵點,其中該給定區域為該行動物體輪廓。 The electronic device of claim 9, wherein the control module detects the image before the control module detects the plurality of feature points in the given area of the image frame. a contour of the moving object in the frame, determining whether the contour of the moving object is detected, and when the control module determines that the contour of the moving object is detected, the control module successively detects the image frame The plurality of feature points within the predetermined area, wherein the given area is the active object outline. 如申請專利範圍第13項所述的電子裝置,其中當該控制模組判定沒有偵測到該行動物體輪廓時,先等待一預設時間,並在該預設時間之後,該控制模組接續偵測該影像擷取單元擷取的一下一個影像圖框中的一行動物體輪廓。 The electronic device of claim 13, wherein when the control module determines that the contour of the mobile object is not detected, waiting for a preset time, and after the preset time, the control module continues Detecting an outline of a moving object in the next image frame captured by the image capturing unit. 如申請專利範圍第9項所述的電子裝置,其中當該控制模組判定所述多個特徵點正由該中心點向外發散時,該控制模組進一步判斷該電子裝置與一前方行動物體之間的一相對速度是否超過一預設門限值,並且當該相對 速度超過該預設門限值時,該控制模組控制該警示模組提供該警告信息給該行車駕駛者。 The electronic device of claim 9, wherein the control module further determines the electronic device and a front mobile object when the control module determines that the plurality of feature points are diverging outward from the center point Whether a relative speed between them exceeds a predetermined threshold, and when the relative When the speed exceeds the preset threshold, the control module controls the warning module to provide the warning information to the driving driver. 如申請專利範圍第9項所述的電子裝置,其中當該控制模組判定所述多個特徵點正由該中心點向外發散時,該控制模組根據所計算的統計值,判斷該電子裝置與一前方行動物體之間的一相對速度是否超過一預設門限值,並且當該相對速度超過該預設門限值時,該控制模組控制該警示模組提供該警告信息給該行車駕駛者。 The electronic device of claim 9, wherein when the control module determines that the plurality of feature points are diverging outward from the center point, the control module determines the electronic device according to the calculated statistical value. Whether a relative speed between the device and a front mobile object exceeds a predetermined threshold, and when the relative speed exceeds the preset threshold, the control module controls the warning module to provide the warning information to the driving By. 一種電腦程式產品,該電腦程式產品儲存一電腦可執行程式,當該電腦可執行程式載入至一電子裝置時,該電腦可執行程式使該電子裝置至少執行如請求項1所述之方法。 A computer program product storing a computer executable program for causing the electronic device to perform at least the method of claim 1 when the computer executable program is loaded into an electronic device.
TW101119952A 2012-06-04 2012-06-04 Warning method for moving vehicles and electronic device and computer program product using the method TWI457864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101119952A TWI457864B (en) 2012-06-04 2012-06-04 Warning method for moving vehicles and electronic device and computer program product using the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101119952A TWI457864B (en) 2012-06-04 2012-06-04 Warning method for moving vehicles and electronic device and computer program product using the method

Publications (2)

Publication Number Publication Date
TW201351357A TW201351357A (en) 2013-12-16
TWI457864B true TWI457864B (en) 2014-10-21

Family

ID=50158082

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101119952A TWI457864B (en) 2012-06-04 2012-06-04 Warning method for moving vehicles and electronic device and computer program product using the method

Country Status (1)

Country Link
TW (1) TWI457864B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201112133A (en) * 2009-09-25 2011-04-01 Ind Tech Res Inst Method and system for dynamically and simultaneously determining the relative relation between moving objects
EP2315189A2 (en) * 2009-10-22 2011-04-27 Siemens Corporation Mobile sensing for road safety, traffic management and road maintenance
US8009870B2 (en) * 2003-07-10 2011-08-30 James Simon Autonomous wide-angle license plate recognition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8009870B2 (en) * 2003-07-10 2011-08-30 James Simon Autonomous wide-angle license plate recognition
TW201112133A (en) * 2009-09-25 2011-04-01 Ind Tech Res Inst Method and system for dynamically and simultaneously determining the relative relation between moving objects
EP2315189A2 (en) * 2009-10-22 2011-04-27 Siemens Corporation Mobile sensing for road safety, traffic management and road maintenance

Also Published As

Publication number Publication date
TW201351357A (en) 2013-12-16

Similar Documents

Publication Publication Date Title
RU2689930C2 (en) Vehicle (embodiments) and vehicle collision warning method based on time until collision
CN107487258B (en) Blind area detection system and method
US10203408B2 (en) Method and apparatus for detection and ranging fault detection and recovery
US10336190B2 (en) Road sign information display system and method in vehicle
CN108128249B (en) System and method for changing field of view of a lateral rearview camera
US10102438B2 (en) Information display device
US10002300B2 (en) Apparatus and method for monitoring driver's concentrativeness using eye tracing
TW201918406A (en) Driving notification method and driving notification system
JP2016034780A (en) Collision prediction time calculation device
US20200175872A1 (en) Information providing system, server, onboard device, storage medium, and information providing method
JP2016009251A (en) Control device for vehicle
US11170234B2 (en) Vehicle display control device, vehicle display system, vehicle display control method, non-transitory storage medium
CN107650785A (en) Driving assistance method and system
US10565072B2 (en) Signal processing device, signal processing method, and program
CN116018292A (en) System and method for object detection in an autonomous vehicle
CN114426022B (en) Method and system for detecting reverse vehicle
CN114312763A (en) Vehicle control method, system, equipment and storage medium
US11232313B2 (en) Abnormality detection device, abnormality detection system, and abnormality detection program
TWI457864B (en) Warning method for moving vehicles and electronic device and computer program product using the method
TWI573713B (en) Indicating device and method for driving distance with vehicles
US20200198652A1 (en) Noise adaptive warning displays and audio alert for vehicle
US9881233B2 (en) Image recognition apparatus
CN103448652B (en) Moving car alarm method and electronic installation thereof
KR102213148B1 (en) Method and Apparatus for Supporting Parking Alignment Based on Recognition of Parking Line
WO2021106625A1 (en) Distance measurement sensor, distance measurement system, and electronic device

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees