[go: up one dir, main page]

TWI756573B - Security prompt method, vehicle and storage medium - Google Patents

Security prompt method, vehicle and storage medium Download PDF

Info

Publication number
TWI756573B
TWI756573B TW108136781A TW108136781A TWI756573B TW I756573 B TWI756573 B TW I756573B TW 108136781 A TW108136781 A TW 108136781A TW 108136781 A TW108136781 A TW 108136781A TW I756573 B TWI756573 B TW I756573B
Authority
TW
Taiwan
Prior art keywords
vehicle
license plate
area
driving
width
Prior art date
Application number
TW108136781A
Other languages
Chinese (zh)
Other versions
TW202115589A (en
Inventor
許智普
林建丞
陳霈霖
曾宗駿
張建群
Original Assignee
群邁通訊股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 群邁通訊股份有限公司 filed Critical 群邁通訊股份有限公司
Priority to TW108136781A priority Critical patent/TWI756573B/en
Publication of TW202115589A publication Critical patent/TW202115589A/en
Application granted granted Critical
Publication of TWI756573B publication Critical patent/TWI756573B/en

Links

Images

Landscapes

  • Traffic Control Systems (AREA)

Abstract

The present disclosure provides a security prompt method which is applied to a first vehicle. The method includes acquiring an image of a license plate of a second vehicle during a running of the first vehicle. An area of the license plate of the second vehicle is identified from the image of the license plate of the second vehicle. Basic information of the second vehicle is acquired according to the size of the area of the license plate of the second vehicle. Driving information of the first vehicle is acquired and a safety distance between the first vehicle and the second vehicle is determined according to the driving information of the first vehicle and the basic information of the second vehicle. Once a detected distance between the first vehicle and the second vehicle is less than the safety distance, a warning is issued. The present disclosure also provides a vehicle and a storage medium for realizing the security prompt. The present disclosure can improve driving safety during driving.

Description

行車安全提示方法、車輛及儲存介質 Driving safety tips, vehicles and storage media

本發明涉及電腦技術領域,具體涉及一種行車安全提示方法、車輛及儲存介質。 The invention relates to the technical field of computers, and in particular to a driving safety prompting method, a vehicle and a storage medium.

高速公路上的交通事故時有發生。然而,大多的交通事故是由於兩車之間沒有保持安全距離。此外,駕駛員一般是靠人工估測兩車之間的距離並根據所估測的距離來調整車速進而調整兩車之間的距離的,因此,由人工估測兩車之間的距離在一定程度上存在誤差也影響了安全距離的把控。再者,車輛運行過程中很多現場因素例如道路情況等也會影響到車速的調整,不利於車速調整進而保持兩車之間的安全距離。 Accidents on highways happen from time to time. However, most traffic accidents are caused by not maintaining a safe distance between two vehicles. In addition, the driver generally estimates the distance between the two cars manually and adjusts the speed according to the estimated distance to adjust the distance between the two cars. Therefore, the distance between the two cars is estimated manually at a certain value The degree of error also affects the control of the safe distance. Furthermore, many on-site factors such as road conditions during the operation of the vehicle will also affect the adjustment of the vehicle speed, which is not conducive to the adjustment of the vehicle speed so as to maintain a safe distance between the two vehicles.

鑒於以上內容,有必要提出一種行車安全提示方法、車輛及儲存介質,可以在行車過程中根據車輛的基本資訊以及即時運行情況來確定安全距離並根據所確定的安全距離作行車安全提示,有效提升駕駛過程中的行車安全。 In view of the above, it is necessary to propose a driving safety reminder method, vehicle and storage medium, which can determine the safety distance according to the basic information of the vehicle and the real-time operation situation during the driving process, and make driving safety reminders according to the determined safety distance, which can effectively improve the safety of driving. Driving safety while driving.

本發明的第一方面提供一種行車安全提示方法,所述方法包括:於第一車輛行駛過程中,獲取第二車輛的車牌的影像,從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區域;根據所述第二車輛的車牌所在區 域的尺寸獲取所述第二車輛的基本資訊,其中,所述第二車輛的基本資訊包括所述第二車輛的寬度及/或高度;獲取所述第一車輛的行駛資訊;根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊確定所述第一車輛與所述第二車輛之間的安全距離;偵測所述第一車輛與所述第二車輛之間的距離;及當所述第一車輛與所述第二車輛之間的距離小於所述安全距離時,發出警示。 A first aspect of the present invention provides a driving safety prompting method. The method includes: acquiring an image of a license plate of a second vehicle while a first vehicle is driving, and identifying the first vehicle from the image of the license plate of the second vehicle. The area where the license plate of the second vehicle is located; according to the area where the license plate of the second vehicle is located obtain the basic information of the second vehicle according to the size of the domain, wherein the basic information of the second vehicle includes the width and/or height of the second vehicle; obtain the driving information of the first vehicle; The driving information of a vehicle and the basic information of the second vehicle determine the safe distance between the first vehicle and the second vehicle; detect the distance between the first vehicle and the second vehicle; and when the distance between the first vehicle and the second vehicle is less than the safety distance, a warning is issued.

優選地,所述第二車輛為行駛在所述第一車輛前面的車輛或者是行駛在所述第一車輛後面的車輛。 Preferably, the second vehicle is a vehicle driving in front of the first vehicle or a vehicle driving behind the first vehicle.

優選地,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:計算所述第二車輛的車牌所在區域的寬Bw2和高Bh2;從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,並計算所述第二車輛所在區域的寬Cw2和高Ch2;計算所述第二車輛的車牌所在區域的寬Bw2與所述第二車輛所在區域的寬Cw2之間的第一比例,以及計算所述第二車輛的車牌所在區域的高Bh2與所述第二車輛所在區域的高Ch2之間的第二比例;及根據所述第一比例、第二比例,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Cw2*(Bw1/Bw2);Ch1=Ch2*(Bh1/Bh2)。 Preferably, the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1; Obtaining the basic information of the second vehicle includes: calculating the width Bw2 and height Bh2 of the area where the license plate of the second vehicle is located; identifying the second vehicle from the image of the license plate of the second vehicle the area where the vehicle is located, and calculate the width Cw2 and height Ch2 of the area where the second vehicle is located; calculate the first ratio between the width Bw2 of the area where the license plate of the second vehicle is located and the width Cw2 of the area where the second vehicle is located , and calculate the second ratio between the height Bh2 of the area where the license plate of the second vehicle is located and the height Ch2 of the area where the second vehicle is located; and according to the first ratio, the second ratio, and the second ratio Calculate the actual size of the license plate of the vehicle to obtain the width and height of the second vehicle, wherein the width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Cw2*(Bw1/Bw2); Ch1=Ch2*( Bh1/Bh2).

優選地,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:計算所述第二車輛的車牌所在區域的對角線的長度L1;從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,以及計算所述第二車輛所在區域的對角線的長度L2;計算所述第二車輛的車牌所在區域的對角線的長度與所述第二車輛所在區域的對角線的長度之間的比例L1:L2;根據所計算得到的所述比例L1:L2,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬及高,其中, 所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Bw1*(L2/L1);Ch1=Bh1*(L2/L1)。 Preferably, the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1; The size of the area where the license plate of the second vehicle is located. Obtaining the basic information of the second vehicle includes: calculating the length L1 of the diagonal of the area where the license plate of the second vehicle is located; 2. The area where the vehicle is located, and calculate the length L2 of the diagonal of the area where the second vehicle is located; calculate the length of the diagonal of the area where the license plate of the second vehicle is located and the diagonal of the area where the second vehicle is located. The ratio L1:L2 between the lengths; the width and height of the second vehicle are obtained by calculating the calculated ratio L1:L2 and the actual size of the license plate of the second vehicle, wherein The width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Bw1*(L2/L1); Ch1=Bh1*(L2/L1).

優選地,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,統計所述第二車輛的車牌所在區域的第一圖元點總數N1以及統計所述第二車輛所在區域的第二圖元點總數N2;計算所述第一圖元點總數N1與所述第二圖元點總數N2之間的比例N1:N2;及根據所述第一圖元點總數與所述第二圖元點總數之間的比例N1:N2,以及所述第二車輛的車牌的實際尺寸,計算所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Bw1*(N2/N1);Ch1=Bh1*(N2/N1)。 Preferably, the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1; The size of the area where the license plate of the second vehicle is located. Obtaining the basic information of the second vehicle includes: identifying the area where the second vehicle is located from the image of the license plate of the second vehicle. The total number N1 of primitive points and the total number N2 of the second primitive points in the area where the second vehicle is located; the ratio N1:N2 between the total number N1 of the first primitive points and the total number N2 of the second primitive points is calculated. ; and calculate the width and height of the second vehicle according to the ratio N1:N2 between the total number of the first primitive points and the total number of the second primitive points, and the actual size of the license plate of the second vehicle , wherein the width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Bw1*(N2/N1); Ch1=Bh1*(N2/N1).

優選地,所述第一車輛的行駛資訊包括所述第一車輛的行駛速度、所述第一車輛當前所在道路的坡度、所述第一車輛的載重。 Preferably, the driving information of the first vehicle includes the driving speed of the first vehicle, the gradient of the road where the first vehicle is currently located, and the load of the first vehicle.

優選地,該方法根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊檢索預先儲存的安全距離參照表來確定所述第一車輛與所述第二車輛之間的安全距離,其中,所述安全距離參照表記錄了所述第一車輛的行駛資訊、所述第二車輛的基本資訊、以及安全距離之間的對應關係。 Preferably, the method retrieves a pre-stored safety distance reference table according to the driving information of the first vehicle and the basic information of the second vehicle to determine the safety distance between the first vehicle and the second vehicle, The safety distance reference table records the corresponding relationship between the driving information of the first vehicle, the basic information of the second vehicle, and the safety distance.

優選地,所述偵測所述第一車輛與所述第二車輛之間的距離包括:當所述第二車輛為行駛在所述第一車輛前面的車輛時,利用安裝在所述第一車輛的車頭的第一超聲波感測器或第一雷達來感測所述第一車輛與所述第二車輛之間的距離;及當所述第二車輛為行駛在所述第一車輛後面的車輛時,利用安裝在所述第一車輛的車尾的第二超聲波感測器或第二雷達感測所述第一車輛與所述第二車輛之間的距離。 Preferably, the detecting the distance between the first vehicle and the second vehicle comprises: when the second vehicle is a vehicle driving in front of the first vehicle, using a vehicle installed on the first vehicle a first ultrasonic sensor or a first radar at the front of the vehicle to sense the distance between the first vehicle and the second vehicle; and when the second vehicle is driving behind the first vehicle When the vehicle is used, the distance between the first vehicle and the second vehicle is sensed by using a second ultrasonic sensor or a second radar installed at the rear of the first vehicle.

本發明第二方面提供一種電腦可讀儲存介質,所述電腦可讀儲存介質儲存有至少一個指令,所述至少一個指令被處理器執行時實現所述行車安全提示方法。 A second aspect of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, implements the driving safety prompting method.

本發明第三方面提供一種車輛,所述車輛包括:儲存器;處理器;以及多個模組,所述多個模組被儲存在所述儲存器中並被由所述處理器執行,所述多個模組包括:獲取模組,於所述車輛行駛過程中,獲取第二車輛的車牌的影像,從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區域;執行模組,用於根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊,其中,所述第二車輛的基本資訊包括所述第二車輛的寬度及/或高度;所述執行模組,還用於獲取所述車輛的行駛資訊;所述執行模組,還用於根據所述車輛的行駛資訊和所述第二車輛的基本資訊確定所述車輛與所述第二車輛之間的安全距離;所述執行模組,還用於偵測所述車輛與所述第二車輛之間的距離;及所述執行模組,還用於當所述車輛與所述第二車輛之間的距離小於所述安全距離時,發出警示。 A third aspect of the present invention provides a vehicle comprising: a memory; a processor; and a plurality of modules, the plurality of modules being stored in the memory and executed by the processor, the The plurality of modules include: an acquisition module, which acquires an image of the license plate of the second vehicle during the driving process of the vehicle, and identifies the area where the license plate of the second vehicle is located from the image of the license plate of the second vehicle; An execution module for acquiring basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located, wherein the basic information of the second vehicle includes the width and/or height of the second vehicle ; the execution module is also used to obtain the driving information of the vehicle; the execution module is also used to determine the relationship between the vehicle and the vehicle according to the driving information of the vehicle and the basic information of the second vehicle The safety distance between the second vehicle; the execution module is further used to detect the distance between the vehicle and the second vehicle; and the execution module is also used to detect the distance between the vehicle and the second vehicle When the distance between the second vehicles is less than the safety distance, a warning is issued.

本發明實施例中所述的行車安全提示方法、車輛及儲存介質,透過在第一車輛行駛過程中,獲取第二車輛的車牌的影像,從所述第二車輛的車牌的影像中識別該第二車輛的車牌所在區域;根據該第二車輛的車牌所在區域的尺寸獲取該第二車輛的基本資訊;獲取所述第一車輛的行駛資訊;根據該第一車輛的行駛資訊和該第二車輛的基本資訊確定該第一車輛與該第二車輛之間的安全距離;偵測該第一車輛與該第二車輛之間的距離;及當所偵測的距離小於所述安全距離時,發出警示,可以在行車過程中根據車輛的高度及/或寬度以及即時運行情況來計算安全距離,並根據所計算獲得的安全距離作行車安全提示,有效提升駕駛過程中的行車安全。 The driving safety prompting method, vehicle, and storage medium described in the embodiments of the present invention identify the first vehicle from the image of the license plate of the second vehicle by acquiring the image of the license plate of the second vehicle during the driving of the first vehicle. The area where the license plate of the second vehicle is located; the basic information of the second vehicle is obtained according to the size of the area where the license plate of the second vehicle is located; the driving information of the first vehicle is obtained; according to the driving information of the first vehicle and the second vehicle determine the safety distance between the first vehicle and the second vehicle; detect the distance between the first vehicle and the second vehicle; and when the detected distance is less than the safety distance, send Warning, the safety distance can be calculated according to the height and/or width of the vehicle and the real-time running situation during the driving process, and the driving safety prompt can be made according to the calculated safety distance, which can effectively improve the driving safety during the driving process.

30:行車安全提示系統 30: Driving safety reminder system

301:識別模組 301: Identify the module

302:執行模組 302: Execute the module

3:車輛 3: Vehicles

31:儲存器 31: Storage

32:處理器 32: Processor

33:通信匯流排 33: Communication bus

34:第一攝像頭 34: First camera

35:第二攝像頭 35: Second camera

36:重力感測器 36: Gravity Sensor

37:GPS定位設備 37: GPS positioning device

38:第一距離感測器 38: The first distance sensor

39:第二距離感測器 39: Second distance sensor

為了更清楚地說明本發明實施例或習知技術中的技術方案,下面將對實施例或習知技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明的實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據提供的附圖獲得其他的附圖。 In order to more clearly illustrate the technical solutions in the embodiments of the present invention or in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.

圖1是本發明較佳實施例提供的行車安全提示方法的流程圖。 FIG. 1 is a flowchart of a driving safety prompting method provided by a preferred embodiment of the present invention.

圖2A舉例說明車牌所佔區域和車輛所佔區域。 FIG. 2A illustrates an area occupied by a license plate and an area occupied by a vehicle.

圖2B舉例說明安全距離參照表。 Figure 2B illustrates a safety distance reference table.

圖3是本發明較佳實施例提供的行車安全提示系統的模組圖。 FIG. 3 is a module diagram of a driving safety prompt system provided by a preferred embodiment of the present invention.

圖4是本發明較佳實施例提供的車輛的示意圖。 FIG. 4 is a schematic diagram of a vehicle provided by a preferred embodiment of the present invention.

如下具體實施方式將結合上述附圖進一步說明本發明。 The following specific embodiments will further illustrate the present invention in conjunction with the above drawings.

為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合附圖和具體實施例對本發明進行詳細描述。需要說明的是,在不衝突的情況下,本發明的實施例及實施例中的特徵可以相互組合。 In order to more clearly understand the above objects, features and advantages of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments may be combined with each other under the condition of no conflict.

在下面的描述中闡述了很多具體細節以便於充分理解本發明,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 In the following description, many specific details are set forth in order to facilitate a full understanding of the present invention, and the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

除非另有定義,本文所使用的所有的技術和科學術語與屬於本發明的技術領域的技術人員通常理解的含義相同。本文中在本發明的說明書中所使用的術語只是為了描述具體的實施例的目的,不是旨在於限制本發明。 Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.

圖1是本發明較佳實施例提供的行車安全提示方法的流程圖。 FIG. 1 is a flowchart of a driving safety prompting method provided by a preferred embodiment of the present invention.

需要說明的是,在本實施例中,所述行車安全提示方法可以應用於車輛中,對於需要進行行車安全提示的車輛,可以直接在車輛上集成本發明 的方法所提供的用於行車安全提示的功能,或者以軟體開發套件(Software Development Kit,SDK)的形式運行在車輛上。 It should be noted that, in this embodiment, the driving safety prompting method can be applied to a vehicle, and for a vehicle that needs a driving safety prompt, the present invention can be directly integrated on the vehicle The function for driving safety prompts provided by the method, or running on the vehicle in the form of a software development kit (Software Development Kit, SDK).

如圖1所示,所述行車安全提示方法具體包括以下步驟,根據不同的需求,該流程圖中步驟的順序可以改變,某些步驟可以省略。 As shown in FIG. 1 , the driving safety prompting method specifically includes the following steps. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

為清楚簡單說明本發明,本實施例以所述行車安全提示方法應用於第一車輛,用於有效管控所述第一車輛與第二車輛之間的安全距離為例說明。 In order to explain the present invention clearly and simply, the present embodiment takes the example of applying the driving safety prompting method to the first vehicle to effectively control the safety distance between the first vehicle and the second vehicle.

步驟S1、於第一車輛行駛過程中,第一車輛獲取第二車輛的車牌的影像,並從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區域。 Step S1: During the driving of the first vehicle, the first vehicle acquires an image of the license plate of the second vehicle, and identifies the area where the license plate of the second vehicle is located from the image of the license plate of the second vehicle.

本實施例中,所述第二車輛的車牌的影像可以是指包括了該第二車輛的車牌的影像。該第二車輛的車牌的影像可以是一段錄影或者一張照片。本實施例中,所述第二車輛為行駛在所述第一車輛前面的車輛或者是行駛在所述第一車輛後面的車輛。 In this embodiment, the image of the license plate of the second vehicle may refer to an image including the license plate of the second vehicle. The image of the license plate of the second vehicle may be a video or a photo. In this embodiment, the second vehicle is a vehicle driving in front of the first vehicle or a vehicle driving behind the first vehicle.

在一個實施例中,可以在所述第一車輛的車頭安裝一個第一攝像頭,以及在所述第一車輛的車尾安裝一個第二攝像頭,由此,當所述第二車輛為行駛在所述第一車輛前面的車輛時,所述第一車輛即可利用所述第一攝像頭拍攝該第二車輛的車牌的影像。當所述第二車輛為行駛在所述第一車輛後面的車輛時,所述第一車輛即可利用所述第二攝像頭拍攝該第二車輛的車牌的影像。 In one embodiment, a first camera may be installed at the front of the first vehicle, and a second camera may be installed at the rear of the first vehicle, so that when the second vehicle is driving in the When the vehicle is in front of the first vehicle, the first vehicle can use the first camera to capture an image of the license plate of the second vehicle. When the second vehicle is a vehicle driving behind the first vehicle, the first vehicle can use the second camera to capture an image of the license plate of the second vehicle.

在一個實施例中,所述從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區域包括:利用預設的圖像識別演算法例如範本匹配法從所述第二車輛的車牌的影像中識別出所述第二車輛的車牌所在區域。 In one embodiment, the recognizing the area where the license plate of the second vehicle is located from the image of the license plate of the second vehicle includes: using a preset image recognition algorithm such as a template matching method from the second vehicle The area where the license plate of the second vehicle is located is identified from the image of the license plate of the second vehicle.

步驟S2、所述第一車輛根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊,其中,所述第二車輛的基本資訊包括所述第二車輛的寬度及/或高度。 Step S2, the first vehicle obtains the basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located, wherein the basic information of the second vehicle includes the width and/or the width of the second vehicle. or height.

本實施例中,所述第一車輛預先儲存了所述第二車輛的車牌的實際尺寸。該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1。 In this embodiment, the first vehicle prestores the actual size of the license plate of the second vehicle. The actual size of the license plate of the second vehicle is: width Bw1 and height Bh1.

需要說明的是,所述第二車輛的車牌的實際尺寸可以是指車管局所規定的一塊車牌的寬和高。 It should be noted that the actual size of the license plate of the second vehicle may refer to the width and height of a license plate specified by the Vehicle Administration.

另外還需要說明的是,為清楚說明本發明,這裡用Bw1表示所述第二車輛的車牌的實際的寬,用Bh1表示第二車輛的車牌的實際的高。另外,用Cw1表示所述第二車輛的寬,用Ch1表示所述第二車輛的高。在第一實施例中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括步驟(a1)-(a3): It should also be noted that, in order to clearly illustrate the present invention, Bw1 is used to represent the actual width of the license plate of the second vehicle, and Bh1 is used to represent the actual height of the license plate of the second vehicle. In addition, the width of the second vehicle is represented by Cw1, and the height of the second vehicle is represented by Ch1. In the first embodiment, the acquiring basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes steps (a1)-(a3):

(a1)計算所述第二車輛的車牌所在區域的寬Bw2和高Bh2,以及從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,並計算所述第二車輛所在區域的寬Cw2和高Ch2。 (a1) Calculate the width Bw2 and height Bh2 of the area where the license plate of the second vehicle is located, and identify the area where the second vehicle is located from the image of the license plate of the second vehicle, and calculate the area where the second vehicle is located The width of Cw2 and the height of Ch2.

本實施例中,可以透過計算所述第二車輛的車牌所在區域的橫向的圖元點總數來計算該第二車輛的車牌所在區域的寬Bw2;以及透過計算所述第二車輛的車牌所在區域的縱向的圖元點總數來計算該第二車輛的車牌所在區域的高Bh2。 In this embodiment, the width Bw2 of the area where the license plate of the second vehicle is located can be calculated by calculating the total number of primitive points in the lateral direction of the area where the license plate of the second vehicle is located; and by calculating the area where the license plate of the second vehicle is located The total number of longitudinal primitive points to calculate the height Bh2 of the area where the license plate of the second vehicle is located.

同理,可以透過計算所述第二車輛所在區域的橫向的圖元點總數來計算所述第二車輛所在區域的寬Cw2;以及透過計算所述第二車輛所在區域的縱向的圖元點總數來計算所述第二車輛所在區域的高Ch2。 Similarly, the width Cw2 of the area where the second vehicle is located can be calculated by calculating the total number of primitive points in the horizontal direction of the area where the second vehicle is located; and the total number of longitudinal primitive points in the area where the second vehicle is located can be calculated to calculate the high Ch2 of the area where the second vehicle is located.

(a2)計算所述第二車輛的車牌所在區域的寬Bw2與所述第二車輛所在區域的寬Cw2之間的第一比例,以及計算所述第二車輛的車牌所在區域的高Bh2與所述第二車輛所在區域的高Ch2之間的第二比例。 (a2) Calculate the first ratio between the width Bw2 of the area where the license plate of the second vehicle is located and the width Cw2 of the area where the second vehicle is located, and calculate the height Bh2 of the area where the license plate of the second vehicle is located and the width Bh2 of the area where the license plate of the second vehicle is located The second ratio between the high Ch2 in the area where the second vehicle is located.

(a3)根據所述第一比例、第二比例,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬Cw1和高Ch1;其中,Cw1=Cw2*(Bw1/Bw2);Ch1=Ch2*(Bh1/Bh2)。 (a3) Calculate and obtain the width Cw1 and height Ch1 of the second vehicle according to the first ratio, the second ratio, and the actual size of the license plate of the second vehicle; wherein, Cw1=Cw2*(Bw1/Bw2) ; Ch1=Ch2*(Bh1/Bh2).

在第二實施例中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括步驟(b1)-(b3): In the second embodiment, the acquiring basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes steps (b1)-(b3):

(b1)計算所述第二車輛的車牌所在區域的對角線的長度L1,從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,以及計算所述第二車輛所在區域的對角線的長度L2。 (b1) calculating the diagonal length L1 of the area where the license plate of the second vehicle is located, identifying the area where the second vehicle is located from the image of the license plate of the second vehicle, and calculating the area where the second vehicle is located The diagonal length L2.

具體地,利用預設的圖像識別演算法例如範本匹配法從所述第二車輛的車牌的影像中識別出所述第二車輛所在區域。 Specifically, the region where the second vehicle is located is identified from the image of the license plate of the second vehicle by using a preset image recognition algorithm such as a template matching method.

具體地,如上述步驟(a1)所述,可以透過統計圖元點總數的方式計算得出所述第二車輛的車牌所在區域的長和寬,然後基於畢氏定理即可計算得出所述第二車輛的車牌所在區域的對角線的長度L1。同理,可以透過統計圖元點總數的方式計算得出所述第二車輛所在區域的長和寬,然後基於畢氏定理即可計算得出所述第二車輛所在區域的對角線的長度L2。 Specifically, as described in the above step (a1), the length and width of the area where the license plate of the second vehicle is located can be calculated by counting the total number of primitive points, and then the length and width of the area where the license plate of the second vehicle is located can be calculated based on the Pythagorean theorem. The length L1 of the diagonal of the area where the license plate of the second vehicle is located. Similarly, the length and width of the area where the second vehicle is located can be calculated by counting the total number of primitive points, and then the length of the diagonal of the area where the second vehicle is located can be calculated based on the Pythagorean theorem L2.

(b2)計算所述第二車輛的車牌所在區域的對角線的長度與所述第二車輛所在區域的對角線的長度之間的比例L1:L2。 (b2) Calculate the ratio L1 : L2 between the length of the diagonal of the area where the license plate of the second vehicle is located and the length of the diagonal of the area where the second vehicle is located.

(b3)根據所計算得到的所述比例L1:L2,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Bw1*(L2/L1);Ch1=Bh1*(L2/L1)。 (b3) Calculate the width and height of the second vehicle according to the calculated ratio L1:L2 and the actual size of the license plate of the second vehicle, wherein the width of the second vehicle is Cw1, High is Ch1; and Cw1=Bw1*(L2/L1); Ch1=Bh1*(L2/L1).

在第三實施例中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括步驟(c1)-(c3): In the third embodiment, the acquiring basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes steps (c1)-(c3):

(c1)從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,統計所述第二車輛的車牌所在區域的第一圖元點總數N1(為便於說明,將所述第二車輛的車牌所在區域的圖元點總數稱為“第一圖元點總數”),以及統計所述第二車輛所在區域的第二圖元點總數N2(為便於說明,將所述第二車輛所在區域的圖元點總數稱為“第二圖元點總數”)。 (c1) Identify the area where the second vehicle is located from the image of the license plate of the second vehicle, and count the total number N1 of first primitive points in the area where the license plate of the second vehicle is located (for the convenience of description, the The total number of primitive points in the area where the license plate of the second vehicle is located is referred to as "the total number of first primitive points"), and the total number N2 of the second primitive points in the area where the second vehicle is located (for the convenience of description, the second The total number of primitive points in the area where the vehicle is located is called "total number of second primitive points").

具體地,利用預設的圖像識別演算法例如範本匹配法從所述第二車輛的車牌的影像中識別出所述第二車輛所在區域。 Specifically, the region where the second vehicle is located is identified from the image of the license plate of the second vehicle by using a preset image recognition algorithm such as a template matching method.

(c2)計算所述第一圖元點總數N1與所述第二圖元點總數N2之間的比例(即N1:N2)。 (c2) Calculate the ratio between the total number N1 of the first primitive points and the total number N2 of the second primitive points (ie, N1:N2).

(c3)根據所述第一圖元點總數與所述第二圖元點總數之間的比例(即N1:N2),以及所述第二車輛的車牌尺寸(即所述第二車輛的車牌的寬Bw1和高Bh1),計算所述第二車輛的寬Cw1及高Ch1,其中,Cw1=Bw1*(N2/N1);Ch1=Bh1*(N2/N1)。 (c3) According to the ratio between the total number of the first primitive points and the total number of the second primitive points (ie N1:N2), and the size of the license plate of the second vehicle (ie the license plate of the second vehicle Width Bw1 and height Bh1), calculate the width Cw1 and height Ch1 of the second vehicle, where Cw1=Bw1*(N2/N1); Ch1=Bh1*(N2/N1).

例如,圖2A展示的圖片100為所述第二車輛的車牌的影像,所述第一車輛可以統計所述第二車輛的車牌所在區域101的第一圖元點總數N1,以及統計所述第二車輛所在區域102的第二圖元點總數N2,計算所述第一圖元點總數N1與所述第二圖元點總數N2之間的比例(即N1:N2)。然後即可根據所述第一圖元點總數與所述第二圖元點總數之間的比例(即N1:N2),以及所述第二車輛的車牌尺寸(即所述第二車輛的車牌的寬Bw1和高Bh1),計算所述第二車輛的寬Cw1及高Ch1。即Cw1=Bw1*(N2/N1);Ch1=Bh1*(N2/N1)。 For example, the picture 100 shown in FIG. 2A is an image of the license plate of the second vehicle. The first vehicle can count the total number N1 of first primitive points in the area 101 where the license plate of the second vehicle is located, and count the first For the total number N2 of second graphic element points in the area 102 where the two vehicles are located, the ratio between the total number N1 of the first graphic element points and the total number N2 of the second graphic element points (ie, N1:N2) is calculated. Then, according to the ratio between the total number of the first primitive points and the total number of the second primitive points (ie N1:N2), and the size of the license plate of the second vehicle (ie the license plate of the second vehicle width Bw1 and height Bh1), calculate the width Cw1 and height Ch1 of the second vehicle. That is, Cw1=Bw1*(N2/N1); Ch1=Bh1*(N2/N1).

從上述有關根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的寬Cw1及高Ch1的第一實施例、第二實施例,以及第三實施例可以看出,第一實施例所計算得出的所述第二車輛的寬Cw1及高Ch1相較於第二實施例和第三實施例中所計算得出的所述第二車輛的寬Cw1及高Ch1會更加準確。 It can be seen from the above-mentioned first, second, and third embodiments that the width Cw1 and height Ch1 of the second vehicle are obtained according to the size of the area where the license plate of the second vehicle is located. The width Cw1 and the height Ch1 of the second vehicle calculated in the example are more accurate than the width Cw1 and the height Ch1 of the second vehicle calculated in the second and third embodiments.

步驟S3、所述第一車輛獲取所述第一車輛的行駛資訊。其中,所述第一車輛的行駛資訊包括,但不限於,所述第一車輛的行駛速度、所述第一車輛當前所在道路的坡度、所述第一車輛的載重。其中,所述第一車輛的載重也即是所述第一車輛的最大載重量。 Step S3, the first vehicle acquires the driving information of the first vehicle. The driving information of the first vehicle includes, but is not limited to, the driving speed of the first vehicle, the gradient of the road where the first vehicle is currently located, and the load of the first vehicle. Wherein, the load capacity of the first vehicle is also the maximum load capacity of the first vehicle.

在一個實施例中,所述第一車輛可以利用安裝於所述第一車輛的速度感測器來獲取第一車輛的行駛速度。在其他實施例中,所述第一車輛也可以利用安裝於所述第一車輛的GPS(Global Positioning System,全球定位系統)定位設備來獲取所述第一車輛的行駛速度。需要說明的是,全球定位系統利用 導航衛星進行定時、定位和測距,能在全世界範圍內實現全天候、全方位連續為用戶提供即時高精度的三維空間、速度和時間資訊為本領域的習知技術。 In one embodiment, the first vehicle may acquire the traveling speed of the first vehicle using a speed sensor installed on the first vehicle. In other embodiments, the first vehicle may also use a GPS (Global Positioning System, global positioning system) positioning device installed on the first vehicle to acquire the traveling speed of the first vehicle. It should be noted that the global positioning system uses Navigation satellites perform timing, positioning and ranging, and can provide users with real-time high-precision three-dimensional space, speed and time information all-weather, all-round and continuous all over the world. This is a known technology in the field.

本實施例中,所述第一車輛可以利用習知技術中任何計算道路坡度的方法來獲取所述第一車輛當前所在道路的坡度。例如所述第一車輛可以利用安裝於所述第一車輛的G-Sensor(重力感測器)來獲取所述第一車輛當前所在道路的坡度。在一個實施例中,所述第一車輛當前所在道路的坡度可以分為上坡、平面、下坡。 In this embodiment, the first vehicle may use any method for calculating a road gradient in the prior art to obtain the gradient of the road where the first vehicle is currently located. For example, the first vehicle may use a G-Sensor (gravity sensor) installed on the first vehicle to obtain the gradient of the road where the first vehicle is currently located. In one embodiment, the gradient of the road on which the first vehicle is currently located may be divided into uphill, flat, and downhill.

在一個實施例中,所述第一車輛的載重可以預先儲存在所述第一車輛中,即所述第一車輛的載重為一個已知數。 In one embodiment, the load of the first vehicle may be pre-stored in the first vehicle, that is, the load of the first vehicle is a known number.

步驟S4、所述第一車輛根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊確定所述第一車輛與所述第二車輛之間的安全距離。 Step S4, the first vehicle determines the safety distance between the first vehicle and the second vehicle according to the driving information of the first vehicle and the basic information of the second vehicle.

在一個實施例中,所述第一車輛預先儲存了一個安全距離參照表,所述安全距離參照表記錄了所述第一車輛的行駛資訊、所述第二車輛的基本資訊、以及安全距離之間的對應關係。所述第一車輛可以根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊檢索所述安全距離參照表來確定所述第一車輛與所述第二車輛之間的安全距離。 In one embodiment, the first vehicle prestores a safety distance reference table, and the safety distance reference table records the driving information of the first vehicle, the basic information of the second vehicle, and the safety distance. Correspondence between. The first vehicle may retrieve the safety distance reference table according to the driving information of the first vehicle and the basic information of the second vehicle to determine the safety distance between the first vehicle and the second vehicle.

為清楚簡單說明本發明,以所述第一車輛的行駛資訊僅包括行駛速度,所述第二車輛的基本資訊僅包括所述第二車輛的寬度為例說明。參閱圖2B所示,當所述第一車輛的當前的行駛速度為65公里/小時,以及所述第二車輛的寬度為1.5m時,即可確定所述第一車輛與所述第二車輛之間的安全距離40米。 In order to explain the present invention clearly and simply, the driving information of the first vehicle only includes the driving speed, and the basic information of the second vehicle only includes the width of the second vehicle as an example. Referring to FIG. 2B , when the current traveling speed of the first vehicle is 65 km/h and the width of the second vehicle is 1.5 m, the first vehicle and the second vehicle can be determined The safe distance between them is 40 meters.

需要說明的是,圖2B所例舉的所述安全距離參照表僅為舉例說明,不能解釋為對本發明的限制。 It should be noted that the safety distance reference table exemplified in FIG. 2B is only for illustration and cannot be interpreted as a limitation of the present invention.

步驟S5、所述第一車輛偵測所述第一車輛與所述第二車輛之間的距離。 Step S5, the first vehicle detects the distance between the first vehicle and the second vehicle.

在一個實施例中,可以在所述第一車輛的車頭安裝第一距離感測器,所述第一距離感測器可以是超聲波感測器或雷達,以及在所述第一車輛的車尾安裝第二距離感測器,所述第二距離感測器可以是超聲波感測器或雷達。由此,當所述第二車輛為行駛在所述第一車輛前面的車輛時,所述第一車輛即可利用所述第一距離感測器來感測所述第一車輛與所述第二車輛之間的距離。當所述第二車輛為行駛在所述第一車輛後面的車輛時,所述第一車輛即可利用所述第二距離感測器來感測所述第一車輛與所述第二車輛之間的距離。 In one embodiment, a first distance sensor may be installed at the front of the first vehicle, the first distance sensor may be an ultrasonic sensor or a radar, and at the rear of the first vehicle A second distance sensor is installed, which may be an ultrasonic sensor or a radar. Therefore, when the second vehicle is a vehicle driving in front of the first vehicle, the first vehicle can use the first distance sensor to sense the distance between the first vehicle and the first vehicle. distance between two vehicles. When the second vehicle is a vehicle driving behind the first vehicle, the first vehicle can use the second distance sensor to sense the distance between the first vehicle and the second vehicle distance between.

步驟S6、所述第一車輛判斷所述第一車輛與所述第二車輛之間的距離是否小於所確定的安全距離,並當所述第一車輛與所述第二車輛之間的距離小於所確定的安全距離時,發出警示。 Step S6, the first vehicle judges whether the distance between the first vehicle and the second vehicle is less than the determined safety distance, and when the distance between the first vehicle and the second vehicle is less than When the determined safe distance is reached, a warning is issued.

在一個實施例中,所述發出警示可以包括:在所述第一車輛的顯示器顯示預定的文字資訊來提示所述第一車輛的駕駛員;及/或控制所述第一車輛的揚聲器發出警示音效。 In one embodiment, the issuing of the warning may include: displaying predetermined text information on the display of the first vehicle to prompt the driver of the first vehicle; and/or controlling the speaker of the first vehicle to issue a warning sound effects.

綜上所述,本發明實施例中所述的行車安全提示方法,透過在第一車輛行駛過程中,獲取第二車輛的車牌的影像,從所述第二車輛的車牌的影像中識別該第二車輛的車牌所在區域;根據該第二車輛的車牌所在區域的尺寸獲取該第二車輛的基本資訊;獲取所述第一車輛的行駛資訊;根據該第一車輛的行駛資訊和該第二車輛的基本資訊確定該第一車輛與該第二車輛之間的安全距離;偵測該第一車輛與該第二車輛之間的距離;及當所偵測的距離小於所述安全距離時,發出警示,可以在行車過程中根據車輛的高度及/或寬度以及即時運行情況來計算安全距離,並根據所計算獲得的安全距離作行車安全提示,有效提升駕駛過程中的行車安全。 To sum up, in the driving safety prompting method described in the embodiment of the present invention, the image of the license plate of the second vehicle is acquired during the driving of the first vehicle, and the image of the license plate of the second vehicle is identified from the image of the license plate of the second vehicle. The area where the license plate of the second vehicle is located; the basic information of the second vehicle is obtained according to the size of the area where the license plate of the second vehicle is located; the driving information of the first vehicle is obtained; according to the driving information of the first vehicle and the second vehicle determine the safety distance between the first vehicle and the second vehicle; detect the distance between the first vehicle and the second vehicle; and when the detected distance is less than the safety distance, send Warning, the safety distance can be calculated according to the height and/or width of the vehicle and the real-time running situation during the driving process, and the driving safety prompt can be made according to the calculated safety distance, which can effectively improve the driving safety during the driving process.

上述圖1詳細介紹了本發明的行車安全提示方法,下面結合圖3和圖4,對實現所述行車安全提示方法的軟體裝置的功能模組以及實現所述行車安全提示方法的硬體裝置架構進行介紹。 The above-mentioned Fig. 1 describes the driving safety prompting method of the present invention in detail. Below in conjunction with Fig. 3 and Fig. 4, the functional modules of the software device for realizing the driving safety prompting method and the hardware device architecture for realizing the driving safety prompting method are described in detail. Introduce.

應該瞭解,所述實施例僅為說明之用,在專利申請範圍上並不受此結構的限制。 It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.

參閱圖3所示,是本發明較佳實施例提供的行車安全提示系統的模組圖。 Referring to FIG. 3 , it is a module diagram of a driving safety prompt system provided by a preferred embodiment of the present invention.

在一些實施例中,所述行車安全提示系統30運行於車輛(例如所述第一車輛或者第二車輛)中。所述行車安全提示系統30可以包括多個由程式碼段所組成的功能模組。所述行車安全提示系統30中的各個程式段的電腦程式代碼可以儲存於車輛的儲存器中,並由所述至少一個處理器所執行,以實現(詳見圖1描述)行車安全提示。 In some embodiments, the driving safety reminder system 30 operates in a vehicle (eg, the first vehicle or the second vehicle). The driving safety reminder system 30 may include a plurality of functional modules composed of program code segments. The computer program codes of each program segment in the driving safety prompting system 30 can be stored in the memory of the vehicle and executed by the at least one processor to implement (see FIG. 1 for details) the driving safety prompting.

本實施例中,所述行車安全提示系統30根據其所執行的功能,可以被劃分為多個功能模組。所述功能模組可以包括:識別模組301、執行模組302。本發明所稱的模組是指一種能夠被至少一個處理器所執行並且能夠完成固定功能的一系列電腦程式段,其儲存在儲存器中。在本實施例中,關於各模組的功能將在後續的實施例中詳述。 In this embodiment, the driving safety prompting system 30 can be divided into a plurality of functional modules according to the functions it performs. The function module may include: an identification module 301 and an execution module 302 . The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can perform fixed functions, and are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

為清楚簡單說明本發明,以下以所述行車安全提示系統30運行第一車輛為例說明。 In order to explain the present invention clearly and simply, the following takes the driving safety prompting system 30 to operate the first vehicle as an example for description.

識別模組301於第一車輛行駛過程中,獲取第二車輛的車牌的影像,並從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區域。 The identification module 301 acquires the image of the license plate of the second vehicle during the driving of the first vehicle, and identifies the area where the license plate of the second vehicle is located from the image of the license plate of the second vehicle.

本實施例中,所述第二車輛的車牌的影像可以是指包括了該第二車輛的車牌的影像。該第二車輛的車牌的影像可以是一段錄影或者一張照片。本實施例中,所述第二車輛為行駛在所述第一車輛前面的車輛或者是行駛在所述第一車輛後面的車輛。 In this embodiment, the image of the license plate of the second vehicle may refer to an image including the license plate of the second vehicle. The image of the license plate of the second vehicle may be a video or a photo. In this embodiment, the second vehicle is a vehicle driving in front of the first vehicle or a vehicle driving behind the first vehicle.

在一個實施例中,可以在所述第一車輛的車頭安裝一個第一攝像頭,以及在所述第一車輛的車尾安裝一個第二攝像頭,由此,當所述第二車輛為行駛在所述第一車輛前面的車輛時,所述識別模組301即可利用所述第一攝像頭拍攝該第二車輛的車牌的影像。當所述第二車輛為行駛在所述第一車輛後 面的車輛時,所述識別模組301即可利用所述第二攝像頭拍攝該第二車輛的車牌的影像。 In one embodiment, a first camera may be installed at the front of the first vehicle, and a second camera may be installed at the rear of the first vehicle, so that when the second vehicle is driving in the When the vehicle in front of the first vehicle is detected, the recognition module 301 can use the first camera to capture an image of the license plate of the second vehicle. When the second vehicle is driving behind the first vehicle When the vehicle is facing, the recognition module 301 can use the second camera to capture an image of the license plate of the second vehicle.

在一個實施例中,所述從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區域包括:利用預設的圖像識別演算法例如範本匹配法從所述第二車輛的車牌的影像中識別出所述第二車輛的車牌所在區域。 In one embodiment, the recognizing the area where the license plate of the second vehicle is located from the image of the license plate of the second vehicle includes: using a preset image recognition algorithm such as a template matching method from the second vehicle The area where the license plate of the second vehicle is located is identified from the image of the license plate of the second vehicle.

執行模組302根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊,其中,所述第二車輛的基本資訊包括所述第二車輛的寬度及/或高度。 The execution module 302 acquires the basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located, wherein the basic information of the second vehicle includes the width and/or height of the second vehicle.

本實施例中,所述執行模組302預先儲存了所述第二車輛的車牌的實際尺寸。該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1。 In this embodiment, the execution module 302 pre-stores the actual size of the license plate of the second vehicle. The actual size of the license plate of the second vehicle is: width Bw1 and height Bh1.

需要說明的是,所述第二車輛的車牌的實際尺寸可以是指車管局所規定的一塊車牌的寬和高。 It should be noted that the actual size of the license plate of the second vehicle may refer to the width and height of a license plate specified by the Vehicle Administration.

另外還需要說明的是,為清楚說明本發明,這裡用Bw1表示所述第二車輛的車牌的實際的寬,用Bh1表示第二車輛的車牌的實際的高。另外,用Cw1表示所述第二車輛的寬,用Ch1表示所述第二車輛的高。在第一實施例中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括步驟(a1)-(a3): It should also be noted that, in order to clearly illustrate the present invention, Bw1 is used to represent the actual width of the license plate of the second vehicle, and Bh1 is used to represent the actual height of the license plate of the second vehicle. In addition, the width of the second vehicle is represented by Cw1, and the height of the second vehicle is represented by Ch1. In the first embodiment, the acquiring basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes steps (a1)-(a3):

(a1)計算所述第二車輛的車牌所在區域的寬Bw2和高Bh2,以及從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,並計算所述第二車輛所在區域的寬Cw2和高Ch2。 (a1) Calculate the width Bw2 and height Bh2 of the area where the license plate of the second vehicle is located, and identify the area where the second vehicle is located from the image of the license plate of the second vehicle, and calculate the area where the second vehicle is located The width of Cw2 and the height of Ch2.

本實施例中,可以透過計算所述第二車輛的車牌所在區域的橫向的圖元點總數來計算該第二車輛的車牌所在區域的寬Bw2;以及透過計算所述第二車輛的車牌所在區域的縱向的圖元點總數來計算該第二車輛的車牌所在區域的高Bh2。 In this embodiment, the width Bw2 of the area where the license plate of the second vehicle is located can be calculated by calculating the total number of primitive points in the lateral direction of the area where the license plate of the second vehicle is located; and by calculating the area where the license plate of the second vehicle is located The total number of longitudinal primitive points to calculate the height Bh2 of the area where the license plate of the second vehicle is located.

同理,可以透過計算所述第二車輛所在區域的橫向的圖元點總數來計算所述第二車輛所在區域的寬Cw2;以及透過計算所述第二車輛所在區域的縱向的圖元點總數來計算所述第二車輛所在區域的高Ch2。 Similarly, the width Cw2 of the area where the second vehicle is located can be calculated by calculating the total number of primitive points in the horizontal direction of the area where the second vehicle is located; and the total number of longitudinal primitive points in the area where the second vehicle is located can be calculated to calculate the high Ch2 of the area where the second vehicle is located.

(a2)計算所述第二車輛的車牌所在區域的寬Bw2與所述第二車輛所在區域的寬Cw2之間的第一比例,以及計算所述第二車輛的車牌所在區域的高Bh2與所述第二車輛所在區域的高Ch2之間的第二比例。 (a2) Calculate the first ratio between the width Bw2 of the area where the license plate of the second vehicle is located and the width Cw2 of the area where the second vehicle is located, and calculate the height Bh2 of the area where the license plate of the second vehicle is located and the width Bh2 of the area where the license plate of the second vehicle is located The second ratio between the high Ch2 in the area where the second vehicle is located.

(a3)根據所述第一比例、第二比例,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬Cw1和高Ch1;其中,Cw1=Cw2*(Bw1/Bw2);Ch1=Ch2*(Bh1/Bh2)。 (a3) Calculate and obtain the width Cw1 and height Ch1 of the second vehicle according to the first ratio, the second ratio, and the actual size of the license plate of the second vehicle; wherein, Cw1=Cw2*(Bw1/Bw2) ; Ch1=Ch2*(Bh1/Bh2).

在第二實施例中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括步驟(b1)-(b3): In the second embodiment, the acquiring basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes steps (b1)-(b3):

(b1)計算所述第二車輛的車牌所在區域的對角線的長度L1,從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,以及計算所述第二車輛所在區域的對角線的長度L2。 (b1) calculating the diagonal length L1 of the area where the license plate of the second vehicle is located, identifying the area where the second vehicle is located from the image of the license plate of the second vehicle, and calculating the area where the second vehicle is located The diagonal length L2.

具體地,利用預設的圖像識別演算法例如範本匹配法從所述第二車輛的車牌的影像中識別出所述第二車輛所在區域。 Specifically, the region where the second vehicle is located is identified from the image of the license plate of the second vehicle by using a preset image recognition algorithm such as a template matching method.

具體地,如上述步驟(a1)所述,可以透過統計圖元點總數的方式計算得出所述第二車輛的車牌所在區域的長和寬,然後基於畢氏定理即可計算得出所述第二車輛的車牌所在區域的對角線的長度L1。同理,可以透過統計圖元點總數的方式計算得出所述第二車輛所在區域的長和寬,然後基於畢氏定理即可計算得出所述第二車輛所在區域的對角線的長度L2。 Specifically, as described in the above step (a1), the length and width of the area where the license plate of the second vehicle is located can be calculated by counting the total number of primitive points, and then the length and width of the area where the license plate of the second vehicle is located can be calculated based on the Pythagorean theorem. The length L1 of the diagonal of the area where the license plate of the second vehicle is located. Similarly, the length and width of the area where the second vehicle is located can be calculated by counting the total number of primitive points, and then the length of the diagonal of the area where the second vehicle is located can be calculated based on the Pythagorean theorem L2.

(b2)計算所述第二車輛的車牌所在區域的對角線的長度與所述第二車輛所在區域的對角線的長度之間的比例L1:L2。 (b2) Calculate the ratio L1 : L2 between the length of the diagonal of the area where the license plate of the second vehicle is located and the length of the diagonal of the area where the second vehicle is located.

(b3)根據所計算得到的所述比例L1:L2,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Bw1*(L2/L1);Ch1=Bh1*(L2/L1)。 (b3) Calculate the width and height of the second vehicle according to the calculated ratio L1:L2 and the actual size of the license plate of the second vehicle, wherein the width of the second vehicle is Cw1, High is Ch1; and Cw1=Bw1*(L2/L1); Ch1=Bh1*(L2/L1).

在第三實施例中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括步驟(c1)-(c3): In the third embodiment, the acquiring basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes steps (c1)-(c3):

(c1)從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,統計所述第二車輛的車牌所在區域的第一圖元點總數N1(為便於說明,將所述第二車輛的車牌所在區域的圖元點總數稱為“第一圖元點總數”),以及統計所述第二車輛所在區域的第二圖元點總數N2(為便於說明,將所述第二車輛所在區域的圖元點總數稱為“第二圖元點總數”)。 (c1) Identify the area where the second vehicle is located from the image of the license plate of the second vehicle, and count the total number N1 of first primitive points in the area where the license plate of the second vehicle is located (for the convenience of description, the The total number of primitive points in the area where the license plate of the second vehicle is located is referred to as "the total number of first primitive points"), and the total number N2 of the second primitive points in the area where the second vehicle is located (for the convenience of description, the second The total number of primitive points in the area where the vehicle is located is called "total number of second primitive points").

具體地,利用預設的圖像識別演算法例如範本匹配法從所述第二車輛的車牌的影像中識別出所述第二車輛所在區域。 Specifically, the region where the second vehicle is located is identified from the image of the license plate of the second vehicle by using a preset image recognition algorithm such as a template matching method.

(c2)計算所述第一圖元點總數N1與所述第二圖元點總數N2之間的比例(即N1:N2)。 (c2) Calculate the ratio between the total number N1 of the first primitive points and the total number N2 of the second primitive points (ie, N1:N2).

(c3)根據所述第一圖元點總數與所述第二圖元點總數之間的比例(即N1:N2),以及所述第二車輛的車牌尺寸(即所述第二車輛的車牌的寬Bw1和高Bh1),計算所述第二車輛的寬Cw1及高Ch1,其中,Cw1=Bw1*(N2/N1);Ch1=Bh1*(N2/N1)。 (c3) According to the ratio between the total number of the first primitive points and the total number of the second primitive points (ie N1:N2), and the size of the license plate of the second vehicle (ie the license plate of the second vehicle Width Bw1 and height Bh1), calculate the width Cw1 and height Ch1 of the second vehicle, where Cw1=Bw1*(N2/N1); Ch1=Bh1*(N2/N1).

例如,圖2A展示的圖片100為所述第二車輛的車牌的影像,所述執行模組302可以統計所述第二車輛的車牌所在區域101的第一圖元點總數N1,以及統計所述第二車輛所在區域102的第二圖元點總數N2,計算所述第一圖元點總數N1與所述第二圖元點總數N2之間的比例(即N1:N2)。然後即可根據所述第一圖元點總數與所述第二圖元點總數之間的比例(即N1:N2),以及所述第二車輛的車牌尺寸(即所述第二車輛的車牌的寬Bw1和高Bh1),計算所述第二車輛的寬Cw1及高Ch1。即Cw1=Bw1*(N2/N1);Ch1=Bh1*(N2/N1)。 For example, the picture 100 shown in FIG. 2A is an image of the license plate of the second vehicle, the execution module 302 can count the total number N1 of the first primitive points in the area 101 where the license plate of the second vehicle is located, and count the For the total number N2 of second primitive points in the area 102 where the second vehicle is located, the ratio between the total number N1 of the first primitive points and the total number N2 of the second primitive points (ie, N1:N2) is calculated. Then, according to the ratio between the total number of the first primitive points and the total number of the second primitive points (ie N1:N2), and the size of the license plate of the second vehicle (ie the license plate of the second vehicle width Bw1 and height Bh1), calculate the width Cw1 and height Ch1 of the second vehicle. That is, Cw1=Bw1*(N2/N1); Ch1=Bh1*(N2/N1).

從上述有關根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的寬Cw1及高Ch1的第一實施例、第二實施例,以及第三實施例可以看出,第一實施例所計算得出的所述第二車輛的寬Cw1及高Ch1相較於第二實施例和第三實施例中所計算得出的所述第二車輛的寬Cw1及高Ch1會更加準確。 It can be seen from the above-mentioned first, second, and third embodiments that the width Cw1 and height Ch1 of the second vehicle are obtained according to the size of the area where the license plate of the second vehicle is located. The width Cw1 and the height Ch1 of the second vehicle calculated in the example are more accurate than the width Cw1 and the height Ch1 of the second vehicle calculated in the second and third embodiments.

所述執行模組302獲取所述第一車輛的行駛資訊。其中,所述第一車輛的行駛資訊包括,但不限於,所述第一車輛的行駛速度、所述第一車輛當前所在道路的坡度、所述第一車輛的載重。其中,所述第一車輛的載重也即是所述第一車輛的最大載重量。 The execution module 302 acquires the driving information of the first vehicle. The driving information of the first vehicle includes, but is not limited to, the driving speed of the first vehicle, the gradient of the road where the first vehicle is currently located, and the load of the first vehicle. Wherein, the load capacity of the first vehicle is also the maximum load capacity of the first vehicle.

在一個實施例中,所述執行模組302可以利用安裝於所述第一車輛的速度感測器來獲取第一車輛的行駛速度。在其他實施例中,所述執行模組302也可以利用安裝於所述第一車輛的GPS(Global Positioning System,全球定位系統)定位設備來獲取所述第一車輛的行駛速度。需要說明的是,全球定位系統利用導航衛星進行定時、定位和測距,能在全世界範圍內實現全天候、全方位連續為用戶提供即時高精度的三維空間、速度和時間資訊為本領域的習知技術。 In one embodiment, the execution module 302 can acquire the traveling speed of the first vehicle by using a speed sensor installed on the first vehicle. In other embodiments, the execution module 302 may also use a GPS (Global Positioning System, global positioning system) positioning device installed on the first vehicle to acquire the traveling speed of the first vehicle. It should be noted that the global positioning system uses navigation satellites for timing, positioning and ranging, and can provide users with real-time high-precision three-dimensional space, speed and time information all-weather, all-round and continuous all over the world. know technology.

本實施例中,所述執行模組302可以利用習知技術中任何計算道路坡度的方法來獲取所述第一車輛當前所在道路的坡度。例如所述執行模組302可以利用安裝於所述第一車輛的G-Sensor(重力感測器)來獲取所述第一車輛當前所在道路的坡度。在一個實施例中,所述第一車輛當前所在道路的坡度可以分為上坡、平面、下坡。 In this embodiment, the execution module 302 may use any method for calculating road gradients in the prior art to obtain the gradient of the road where the first vehicle is currently located. For example, the execution module 302 may use a G-Sensor (gravity sensor) installed on the first vehicle to acquire the gradient of the road where the first vehicle is currently located. In one embodiment, the gradient of the road on which the first vehicle is currently located may be divided into uphill, flat, and downhill.

在一個實施例中,所述第一車輛的載重可以預先儲存在所述第一車輛中,即所述第一車輛的載重為一個已知數。 In one embodiment, the load of the first vehicle may be pre-stored in the first vehicle, that is, the load of the first vehicle is a known number.

所述執行模組302根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊確定所述第一車輛與所述第二車輛之間的安全距離。 The execution module 302 determines the safety distance between the first vehicle and the second vehicle according to the driving information of the first vehicle and the basic information of the second vehicle.

在一個實施例中,所述執行模組302預先儲存了一個安全距離參照表,所述安全距離參照表記錄了所述第一車輛的行駛資訊、所述第二車輛的基本資訊、以及安全距離之間的對應關係。所述執行模組302可以根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊檢索所述安全距離參照表來確定所述第一車輛與所述第二車輛之間的安全距離。 In one embodiment, the execution module 302 prestores a safety distance reference table, and the safety distance reference table records the driving information of the first vehicle, the basic information of the second vehicle, and the safety distance Correspondence between. The execution module 302 may retrieve the safety distance reference table according to the driving information of the first vehicle and the basic information of the second vehicle to determine the safety distance between the first vehicle and the second vehicle .

為清楚簡單說明本發明,以所述第一車輛的行駛資訊僅包括行駛速度,所述第二車輛的基本資訊僅包括所述第二車輛的寬度為例說明。參閱圖2B所示,當所述第一車輛的當前的行駛速度為65公里/小時,以及所述第二車輛的寬度為1.5m時,即可確定所述第一車輛與所述第二車輛之間的安全距離40米。 In order to explain the present invention clearly and simply, the driving information of the first vehicle only includes the driving speed, and the basic information of the second vehicle only includes the width of the second vehicle as an example. Referring to FIG. 2B , when the current traveling speed of the first vehicle is 65 km/h and the width of the second vehicle is 1.5 m, the first vehicle and the second vehicle can be determined The safe distance between them is 40 meters.

需要說明的是,圖2B所例舉的所述安全距離參照表僅為舉例說明,不能解釋為對本發明的限制。 It should be noted that the safety distance reference table exemplified in FIG. 2B is only for illustration and cannot be interpreted as a limitation of the present invention.

所述執行模組302偵測所述第一車輛與所述第二車輛之間的距離。 The execution module 302 detects the distance between the first vehicle and the second vehicle.

在一個實施例中,可以在所述第一車輛的車頭安裝第一距離感測器,所述第一距離感測器可以是超聲波感測器或雷達,以及在所述第一車輛的車尾安裝第二距離感測器,所述第二距離感測器可以是超聲波感測器或雷達。由此,當所述第二車輛為行駛在所述第一車輛前面的車輛時,所述執行模組302即可利用所述第一距離感測器來感測所述第一車輛與所述第二車輛之間的距離。當所述第二車輛為行駛在所述第一車輛後面的車輛時,所述執行模組302即可利用所述第二距離感測器來感測所述第一車輛與所述第二車輛之間的距離。 In one embodiment, a first distance sensor may be installed at the front of the first vehicle, the first distance sensor may be an ultrasonic sensor or a radar, and at the rear of the first vehicle A second distance sensor is installed, which may be an ultrasonic sensor or a radar. Therefore, when the second vehicle is a vehicle driving in front of the first vehicle, the execution module 302 can use the first distance sensor to sense the distance between the first vehicle and the first vehicle. The distance between the second vehicles. When the second vehicle is a vehicle driving behind the first vehicle, the execution module 302 can use the second distance sensor to sense the first vehicle and the second vehicle the distance between.

所述執行模組302判斷所述第一車輛與所述第二車輛之間的距離是否小於所確定的安全距離,並當所述第一車輛與所述第二車輛之間的距離小於所確定的安全距離時,發出警示。 The execution module 302 determines whether the distance between the first vehicle and the second vehicle is less than the determined safety distance, and when the distance between the first vehicle and the second vehicle is less than the determined safety distance When the safe distance is reached, a warning is issued.

在一個實施例中,所述發出警示可以包括:在所述第一車輛的顯示器顯示預定的文字資訊來提示所述第一車輛的駕駛員;及/或控制所述第一車輛的揚聲器發出警示音效。 In one embodiment, the issuing of the warning may include: displaying predetermined text information on the display of the first vehicle to prompt the driver of the first vehicle; and/or controlling the speaker of the first vehicle to issue a warning sound effects.

綜上所述,本發明實施例中所述的行車安全提示系統,透過在第一車輛行駛過程中,獲取第二車輛的車牌的影像,從所述第二車輛的車牌的影像中識別該第二車輛的車牌所在區域;根據該第二車輛的車牌所在區域的尺寸獲取該第二車輛的基本資訊;獲取所述第一車輛的行駛資訊;根據該第一車輛的行駛資訊和該第二車輛的基本資訊確定該第一車輛與該第二車輛之間的安全 距離;偵測該第一車輛與該第二車輛之間的距離;及當所偵測的距離小於所述安全距離時,發出警示,可以在行車過程中根據車輛的高度及/或寬度以及即時運行情況來計算安全距離,並根據所計算獲得的安全距離作行車安全提示,有效提升駕駛過程中的行車安全。 To sum up, the driving safety reminder system described in the embodiments of the present invention identifies the first vehicle from the image of the license plate of the second vehicle by acquiring the image of the license plate of the second vehicle during the driving of the first vehicle. The area where the license plate of the second vehicle is located; the basic information of the second vehicle is obtained according to the size of the area where the license plate of the second vehicle is located; the driving information of the first vehicle is acquired; according to the driving information of the first vehicle and the second vehicle basic information to determine the security between the first vehicle and the second vehicle distance; detect the distance between the first vehicle and the second vehicle; and when the detected distance is less than the safe distance, issue a warning, which can be based on the height and/or width of the vehicle and the real-time The safety distance is calculated based on the operating conditions, and the driving safety prompt is made according to the calculated safety distance, which effectively improves the driving safety during driving.

參閱圖4所示,為本發明較佳實施例提供的車輛的結構示意圖。在本發明較佳實施例中,所述車輛3包括儲存器31、至少一個處理器32、至少一條通信匯流排33、第一攝像頭34、第二攝像頭35、重力感測器36、GPS定位設備37、第一距離感測器38、第二距離感測器39。 Referring to FIG. 4 , it is a schematic structural diagram of a vehicle according to a preferred embodiment of the present invention. In a preferred embodiment of the present invention, the vehicle 3 includes a memory 31, at least one processor 32, at least one communication bus 33, a first camera 34, a second camera 35, a gravity sensor 36, and a GPS positioning device 37. A first distance sensor 38, a second distance sensor 39.

需要說明的是,所述車輛3可以是指所述第一車輛或者所述第二車輛。 It should be noted that the vehicle 3 may refer to the first vehicle or the second vehicle.

本領域技術人員應該瞭解,圖4示出的車輛的結構並不構成本發明實施例的限定。所述車輛3還可以包括比圖示更多或更少的其他硬體或者軟體,或者不同的部件佈置。例如,所述車輛還可以包括通訊設備如WIFI模組、藍牙模組等。 Those skilled in the art should understand that the structure of the vehicle shown in FIG. 4 does not constitute a limitation of the embodiments of the present invention. The vehicle 3 may also include more or less other hardware or software than shown, or a different arrangement of components. For example, the vehicle may further include communication equipment such as a WIFI module, a Bluetooth module, and the like.

在一些實施例中,所述車輛3包括一種能夠按照事先設定或儲存的指令,自動進行數值計算和/或資訊處理的終端,其硬體包括但不限於微處理器、專用積體電路、可程式設計閘陣列、數文書處理器及嵌入式設備等。 In some embodiments, the vehicle 3 includes a terminal that can automatically perform numerical calculation and/or information processing according to pre-set or stored instructions, the hardware of which includes but is not limited to a microprocessor, a dedicated integrated circuit, a programmable Programming gate arrays, digital word processors and embedded devices, etc.

需要說明的是,所述車輛3僅為舉例,其他現有的或今後可能出現的如可適應於本發明,也應包含在本發明的保護範圍以內,並以引用方式包含於此。 It should be noted that the vehicle 3 is only an example, and other existing or future ones that can be adapted to the present invention should also be included within the protection scope of the present invention, and are incorporated herein by reference.

在一些實施例中,所述儲存器31用於儲存電腦程式代碼和各種資料,例如安裝在所述車輛3中的行車安全提示系統30,並在車輛3的運行過程中實現高速、自動地完成程式或資料的存取。所述儲存器31包括唯讀儲存器(Read-Only Memory,ROM)、可程式設計唯讀儲存器(Programmable Read-Only Memory,PROM)、可抹除可程式設計唯讀儲存器(Erasable Programmable Read-Only Memory,EPROM)、一次可程式設計唯讀儲存器(One-time Programmable Read-Only Memory,OTPROM)、電子抹除式可複寫唯讀儲存器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、唯讀光碟(Compact Disc Read-Only Memory,CD-ROM)或其他光碟儲存器、磁碟儲存器、磁帶儲存器、或者任何其他能夠用於攜帶或儲存資料的電腦可讀儲存介質。 In some embodiments, the storage 31 is used to store computer program codes and various data, such as the driving safety reminder system 30 installed in the vehicle 3 , and realize high-speed and automatic completion during the operation of the vehicle 3 . Access to programs or data. The storage 31 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), and an Erasable Programmable Read-Only Memory (Erasable Programmable Read). -Only Memory, EPROM), one-time programmable read-only memory (One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical discs Storage, disk storage, tape storage, or any other computer-readable storage medium that can be used to carry or store data.

在一些實施例中,所述至少一個處理器32可以由積體電路組成,例如可以由單個封裝的積體電路所組成,也可以是由多個相同功能或不同功能封裝的積體電路所組成,包括一個或者多個中央處理器(Central Processing unit,CPU)、微處理器、數文書處理晶片、圖形處理器及各種控制晶片的組合等。所述至少一個處理器32是所述車輛3的控制核心(Control Unit),利用各種介面和線路連接整個車輛3的各個部件,透過運行或執行儲存在所述儲存器31內的程式或者模組,以及調用儲存在所述儲存器31內的資料,以執行車輛3的各種功能和處理資料,例如執行行車安全提示的功能。 In some embodiments, the at least one processor 32 may be composed of an integrated circuit, for example, may be composed of a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions , including one or more central processing units (Central Processing Units, CPUs), microprocessors, digital word processing chips, graphics processors and combinations of various control chips, etc. The at least one processor 32 is the control core (Control Unit) of the vehicle 3 , and uses various interfaces and lines to connect various components of the entire vehicle 3 , by running or executing programs or modules stored in the storage 31 . , and call the data stored in the storage 31 to perform various functions of the vehicle 3 and process data, for example, to perform the function of driving safety tips.

在一些實施例中,所述至少一條通信匯流排33被設置為實現所述儲存器31以及所述至少一個處理器32等之間的連接通信。 In some embodiments, the at least one communication bus 33 is configured to enable connection communication between the storage 31 and the at least one processor 32 and the like.

在一些實施例中,所述第一攝像頭34可以安裝在所述車輛3的車頭,用於拍攝行駛在所述車輛3前面的車輛的車牌的影像。所述第二攝像頭35可以安裝在所述車輛3的車尾,用於拍攝行駛在所述車輛3的後面的車輛的車牌的影像。所述重力感測器36可以用於感測所述車輛3當前所在道路的坡度。所述GPS定位設備37可以用來感測所述車輛3的行駛速度。所述第一距離感測器38可以安裝在所述車輛3的車頭,用於感測所述車輛3與行駛在該車輛3前面的車輛之間的距離。該第一距離感測器38可以是超聲波感測器或雷達。所述第二距離感測器39可以安裝在所述車輛3的車尾,用於感測所述車輛3與行駛在該車輛3後面的車輛之間的距離。該第二距離感測器39可以是超聲波感測器或雷達。 In some embodiments, the first camera 34 may be installed at the front of the vehicle 3 to capture images of license plates of vehicles driving in front of the vehicle 3 . The second camera 35 may be installed at the rear of the vehicle 3 to capture images of license plates of vehicles driving behind the vehicle 3 . The gravity sensor 36 can be used to sense the gradient of the road where the vehicle 3 is currently located. The GPS positioning device 37 can be used to sense the travel speed of the vehicle 3 . The first distance sensor 38 may be installed at the front of the vehicle 3 for sensing the distance between the vehicle 3 and a vehicle driving in front of the vehicle 3 . The first distance sensor 38 may be an ultrasonic sensor or a radar. The second distance sensor 39 may be installed at the rear of the vehicle 3 for sensing the distance between the vehicle 3 and a vehicle driving behind the vehicle 3 . The second distance sensor 39 may be an ultrasonic sensor or a radar.

儘管未示出,所述車輛3還可以包括給各個部件供電的電源(比如電池),優選的,電源可以透過電源管理裝置與所述至少一個處理器32邏輯 相連,從而透過電源管理裝置實現管理充電、放電、以及功耗管理等功能。電源還可以包括一個或一個以上的直流或交流電源、再充電裝置、電源故障檢測電路、電源轉換器或者逆變器、電源狀態指示器等任意元件。所述車輛3還可以包括多種感測器、藍牙模組、Wi-Fi模組等,在此不再贅述。 Although not shown, the vehicle 3 may also include a power source (such as a battery) for powering the various components, preferably, the power source may logically communicate with the at least one processor 32 through a power management device connected, so as to manage charging, discharging, and power consumption management functions through the power management device. The power supply may also include one or more of a DC or AC power source, a recharging device, a power failure detection circuit, a power converter or inverter, a power supply status indicator, or any other element. The vehicle 3 may further include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

應該瞭解,所述實施例僅為說明之用,在專利申請範圍上並不受此結構的限制。 It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.

上述以軟體功能模組的形式實現的集成的單元,可以儲存在一個電腦可讀取儲存介質中。上述軟體功能模組儲存在一個儲存介質中,包括若干指令用以使得一台車輛(可以是車載電腦等)或處理器(processor)執行本發明各個實施例所述方法的部分。 The above-mentioned integrated units implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes several instructions for causing a vehicle (which may be an on-board computer, etc.) or a processor (processor) to execute parts of the methods described in the various embodiments of the present invention.

在進一步的實施例中,結合圖3,所述至少一個處理器32可執行所述車輛3的操作裝置以及安裝的各類應用程式(如所述的行車安全提示系統30)、電腦程式代碼等,例如,上述的各個模組。 In a further embodiment, referring to FIG. 3 , the at least one processor 32 can execute the operating device of the vehicle 3 and various installed application programs (such as the driving safety prompt system 30 ), computer program codes, etc. , for example, the various modules described above.

所述儲存器31中儲存有電腦程式代碼,且所述至少一個處理器32可調用所述儲存器31中儲存的電腦程式代碼以執行相關的功能。例如,圖3中所述的各個模組是儲存在所述儲存器31中的電腦程式代碼,並由所述至少一個處理器32所執行,從而實現所述各個模組的功能以進行行車安全提示的目的。 The storage 31 stores computer program codes, and the at least one processor 32 can call the computer program codes stored in the storage 31 to execute related functions. For example, each of the modules described in FIG. 3 is a computer program code stored in the storage 31 and executed by the at least one processor 32, thereby realizing the functions of the various modules for driving safety The purpose of the prompt.

在本發明的一個實施例中,所述儲存器31儲存多個指令,所述多個指令被所述至少一個處理器32所執行以進行行車安全提示。 In an embodiment of the present invention, the storage 31 stores a plurality of instructions, and the plurality of instructions are executed by the at least one processor 32 for driving safety prompts.

具體地,結合圖1所示,所述至少一個處理器32對上述指令的具體實現方法包括:於第一車輛行駛過程中,獲取第二車輛的車牌的影像,從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區域;根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊,其中,所述第二車輛的基本資訊包括所述第二車輛的寬度及/或高度;獲取所述第一車輛的行駛資訊;根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊確定所述第一車輛與 所述第二車輛之間的安全距離;偵測所述第一車輛與所述第二車輛之間的距離;及當所述第一車輛與所述第二車輛之間的距離小於所述安全距離時,發出警示。 Specifically, as shown in FIG. 1 , a specific method for implementing the above instruction by the at least one processor 32 includes: during the driving of the first vehicle, acquiring an image of the license plate of the second vehicle, and obtaining the image of the license plate of the second vehicle from the license plate of the second vehicle. Identify the area where the license plate of the second vehicle is located in the image of the second vehicle; obtain the basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located, wherein the basic information of the second vehicle includes the first vehicle. 2. the width and/or height of the vehicle; obtain the driving information of the first vehicle; determine the distance between the first vehicle and the second vehicle according to the driving information of the first vehicle and the basic information of the second vehicle the safety distance between the second vehicle; detecting the distance between the first vehicle and the second vehicle; and when the distance between the first vehicle and the second vehicle is less than the safety When the distance is reached, a warning is issued.

優選地,所述第二車輛為行駛在所述第一車輛前面的車輛或者是行駛在所述第一車輛後面的車輛。 Preferably, the second vehicle is a vehicle driving in front of the first vehicle or a vehicle driving behind the first vehicle.

優選地,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:計算所述第二車輛的車牌所在區域的寬Bw2和高Bh2;從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,並計算所述第二車輛所在區域的寬Cw2和高Ch2;計算所述第二車輛的車牌所在區域的寬Bw2與所述第二車輛所在區域的寬Cw2之間的第一比例,以及計算所述第二車輛的車牌所在區域的高Bh2與所述第二車輛所在區域的高Ch2之間的第二比例;及根據所述第一比例、第二比例,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Cw2*(Bw1/Bw2);Ch1=Ch2*(Bh1/Bh2)。 Preferably, the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1; Obtaining the basic information of the second vehicle includes: calculating the width Bw2 and height Bh2 of the area where the license plate of the second vehicle is located; identifying the second vehicle from the image of the license plate of the second vehicle the area where the vehicle is located, and calculate the width Cw2 and height Ch2 of the area where the second vehicle is located; calculate the first ratio between the width Bw2 of the area where the license plate of the second vehicle is located and the width Cw2 of the area where the second vehicle is located , and calculate the second ratio between the height Bh2 of the area where the license plate of the second vehicle is located and the height Ch2 of the area where the second vehicle is located; and according to the first ratio, the second ratio, and the second ratio Calculate the actual size of the license plate of the vehicle to obtain the width and height of the second vehicle, wherein the width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Cw2*(Bw1/Bw2); Ch1=Ch2*( Bh1/Bh2).

優選地,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:計算所述第二車輛的車牌所在區域的對角線的長度L1;從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,以及計算所述第二車輛所在區域的對角線的長度L2;計算所述第二車輛的車牌所在區域的對角線的長度與所述第二車輛所在區域的對角線的長度之間的比例L1:L2;根據所計算得到的所述比例L1:L2,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Bw1*(L2/L1);Ch1=Bh1*(L2/L1)。 Preferably, the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1; The size of the area where the license plate of the second vehicle is located. Obtaining the basic information of the second vehicle includes: calculating the length L1 of the diagonal of the area where the license plate of the second vehicle is located; 2. The area where the vehicle is located, and calculate the length L2 of the diagonal of the area where the second vehicle is located; calculate the length of the diagonal of the area where the license plate of the second vehicle is located and the diagonal of the area where the second vehicle is located. The ratio L1:L2 between the lengths of The width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Bw1*(L2/L1); Ch1=Bh1*(L2/L1).

優選地,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,統計所述第二車輛的車牌所在區域的第一圖元點總數N1以及統計所述第二車輛所在區域的第二圖元點總數N2;計算所述第一圖元點總數N1與所述第二圖元點總數N2之間的比例N1:N2;及根據所述第一圖元點總數與所述第二圖元點總數之間的比例N1:N2,以及所述第二車輛的車牌的實際尺寸,計算所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Bw1*(N2/N1);Ch1=Bh1*(N2/N1)。 Preferably, the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1; The size of the area where the license plate of the second vehicle is located. Obtaining the basic information of the second vehicle includes: identifying the area where the second vehicle is located from the image of the license plate of the second vehicle. The total number N1 of primitive points and the total number N2 of the second primitive points in the area where the second vehicle is located; the ratio N1:N2 between the total number N1 of the first primitive points and the total number N2 of the second primitive points is calculated. ; and calculate the width and height of the second vehicle according to the ratio N1:N2 between the total number of the first primitive points and the total number of the second primitive points, and the actual size of the license plate of the second vehicle , wherein the width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Bw1*(N2/N1); Ch1=Bh1*(N2/N1).

優選地,所述第一車輛的行駛資訊包括所述第一車輛的行駛速度、所述第一車輛當前所在道路的坡度、所述第一車輛的載重。 Preferably, the driving information of the first vehicle includes the driving speed of the first vehicle, the gradient of the road where the first vehicle is currently located, and the load of the first vehicle.

優選地,該方法根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊檢索預先儲存的安全距離參照表來確定所述第一車輛與所述第二車輛之間的安全距離,其中,所述安全距離參照表記錄了所述第一車輛的行駛資訊、所述第二車輛的基本資訊、以及安全距離之間的對應關係。 Preferably, the method retrieves a pre-stored safety distance reference table according to the driving information of the first vehicle and the basic information of the second vehicle to determine the safety distance between the first vehicle and the second vehicle, The safety distance reference table records the corresponding relationship between the driving information of the first vehicle, the basic information of the second vehicle, and the safety distance.

優選地,所述偵測所述第一車輛與所述第二車輛之間的距離包括:當所述第二車輛為行駛在所述第一車輛前面的車輛時,利用安裝在所述第一車輛的車頭的第一超聲波感測器或第一雷達來感測所述第一車輛與所述第二車輛之間的距離;及當所述第二車輛為行駛在所述第一車輛後面的車輛時,利用安裝在所述第一車輛的車尾的第二超聲波感測器或第二雷達感測所述第一車輛與所述第二車輛之間的距離。 Preferably, the detecting the distance between the first vehicle and the second vehicle comprises: when the second vehicle is a vehicle driving in front of the first vehicle, using a vehicle installed on the first vehicle a first ultrasonic sensor or a first radar at the front of the vehicle to sense the distance between the first vehicle and the second vehicle; and when the second vehicle is driving behind the first vehicle When the vehicle is used, the distance between the first vehicle and the second vehicle is sensed by using a second ultrasonic sensor or a second radar installed at the rear of the first vehicle.

在本發明所提供的幾個實施例中,應該理解到,所揭露的裝置和方法,可以透過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述模組的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。 In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and other division methods may be used in actual implementation.

所述作為分離部件說明的模組可以是或者也可以不是物理上分開的,作為模組顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部模組來實現本實施例方案的目的。 The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they can be located in one place or distributed to multiple networks. on the unit. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本發明各個實施例中的各功能模組可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。上述集成的單元既可以採用硬體的形式實現,也可以採用硬體加軟體功能模組的形式實現。 In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.

對於本領域技術人員而言,顯然本發明不限於上述示範性實施例的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體形式實現本發明。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,本發明的範圍由所附申請專利範圍而不是上述說明限定,因此旨在將落在申請專利範圍的等同要件的含義和範圍內的所有變化涵括在本發明內。不應將申請專利範圍中的任何附圖標記視為限制所涉及的申請專利範圍。此外,顯然“包括”一詞不排除其他單元或,單數不排除複數。裝置項中陳述的多個單元或裝置也可以由一個單元或裝置透過軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, but that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered in all respects as exemplary and not restrictive, and the scope of the present invention is defined by the appended claims rather than the foregoing description, and is therefore intended to fall within the scope of the application. All changes within the meaning and scope of equivalents to the scope of the patent are included in the present invention. Any reference signs in the patentable scope should not be construed as limiting the claimed scope. Furthermore, it is clear that the word "comprising" does not exclude other units or, and the singular does not exclude the plural. A plurality of units or devices stated in the device item may also be implemented by one unit or device through software or hardware. The terms first, second, etc. are used to denote names and do not denote any particular order.

最後應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

一種行車安全提示方法,其中,所述方法包括:於第一車輛行駛過程中,獲取第二車輛的車牌的影像,利用圖像識別演算法從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區域;根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊,其中,所述第二車輛的基本資訊包括所述第二車輛的寬度及高度;獲取所述第一車輛的行駛資訊,所述第一車輛的行駛資訊包括:所述第一車輛的行駛速度、所述第一車輛當前所在道路的坡度、所述第一車輛的載重;根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊確定所述第一車輛與所述第二車輛之間的安全距離;利用安裝在所述第一車輛的超聲波感測器或雷達偵測所述第一車輛與所述第二車輛之間的距離;及當所述第一車輛與所述第二車輛之間的距離小於所述安全距離時,發出警示。 A driving safety prompting method, wherein the method comprises: acquiring an image of a license plate of a second vehicle while a first vehicle is driving, and using an image recognition algorithm to identify the image of the license plate of the second vehicle The area where the license plate of the second vehicle is located; the basic information of the second vehicle is obtained according to the size of the area where the license plate of the second vehicle is located, wherein the basic information of the second vehicle includes the width and height of the second vehicle ; Obtain the driving information of the first vehicle, the driving information of the first vehicle includes: the driving speed of the first vehicle, the slope of the road where the first vehicle is currently located, and the load of the first vehicle; according to The driving information of the first vehicle and the basic information of the second vehicle determine a safe distance between the first vehicle and the second vehicle; using an ultrasonic sensor or radar installed in the first vehicle detecting the distance between the first vehicle and the second vehicle; and when the distance between the first vehicle and the second vehicle is smaller than the safety distance, issuing a warning. 如請求項1所述的行車安全提示方法,其中,所述第二車輛為行駛在所述第一車輛前面的車輛或者是行駛在所述第一車輛後面的車輛。 The driving safety prompting method according to claim 1, wherein the second vehicle is a vehicle driving in front of the first vehicle or a vehicle driving behind the first vehicle. 如請求項1所述的行車安全提示方法,其中,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:計算所述第二車輛的車牌所在區域的寬Bw2和高Bh2;從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,並計算所述第二車輛所在區域的寬Cw2和高Ch2;計算所述第二車輛的車牌所在區域的寬Bw2與所述第二車輛所在區域的寬Cw2之間的第一比例,以及計算所述第二車輛的車牌所在區域的高Bh2與 所述第二車輛所在區域的高Ch2之間的第二比例;及根據所述第一比例、第二比例,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Cw2*(Bw1/Bw2);Ch1=Ch2*(Bh1/Bh2)。 The driving safety prompting method according to claim 1, wherein the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1 ; wherein, obtaining the basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes: calculating the width Bw2 and the height Bh2 of the area where the license plate of the second vehicle is located; Identify the area where the second vehicle is located in the image of the license plate of the vehicle, and calculate the width Cw2 and height Ch2 of the area where the second vehicle is located; calculate the width Bw2 of the area where the license plate of the second vehicle is located and the second vehicle. The first ratio between the width Cw2 of the area where it is located, and the height Bh2 of the area where the license plate of the second vehicle is located is calculated with a second ratio between the height Ch2 of the area where the second vehicle is located; and the width and height, wherein the width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Cw2*(Bw1/Bw2); Ch1=Ch2*(Bh1/Bh2). 如請求項1所述的行車安全提示方法,其中,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:計算所述第二車輛的車牌所在區域的對角線的長度L1;從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,以及計算所述第二車輛所在區域的對角線的長度L2;計算所述第二車輛的車牌所在區域的對角線的長度與所述第二車輛所在區域的對角線的長度之間的比例L1:L2;根據所計算得到的所述比例L1:L2,以及所述第二車輛的車牌的實際尺寸計算獲得所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Bw1*(L2/L1);Ch1=Bh1*(L2/L1)。 The driving safety prompting method according to claim 1, wherein the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1 ; wherein, acquiring the basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes: calculating the length L1 of the diagonal of the area where the license plate of the second vehicle is located; Identify the area where the second vehicle is located in the image of the license plate of the second vehicle, and calculate the length L2 of the diagonal of the area where the second vehicle is located; calculate the length of the diagonal of the area where the license plate of the second vehicle is located and The ratio L1:L2 between the lengths of the diagonal lines of the area where the second vehicle is located; the second The width and height of the vehicle, wherein the width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Bw1*(L2/L1); Ch1=Bh1*(L2/L1). 如請求項1所述的行車安全提示方法,其中,該方法還包括:預先儲存所述第二車輛的車牌的實際尺寸,其中,該第二車輛的車牌的實際尺寸為:寬Bw1和高Bh1;其中,所述根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊包括:從所述第二車輛的車牌的影像中識別所述第二車輛所在區域,統計所述第二車輛的車牌所在區域的第一圖元點總數N1以及統計所述第二車輛所在區域的第二圖元點總數N2;計算所述第一圖元點總數N1與所述第二圖元點總數N2之間的比例N1: N2;及根據所述第一圖元點總數與所述第二圖元點總數之間的比例N1:N2,以及所述第二車輛的車牌的實際尺寸,計算所述第二車輛的寬及高,其中,所述第二車輛的寬為Cw1,高為Ch1;且Cw1=Bw1*(N2/N1);Ch1=Bh1*(N2/N1)。 The driving safety prompting method according to claim 1, wherein the method further comprises: storing the actual size of the license plate of the second vehicle in advance, wherein the actual size of the license plate of the second vehicle is: width Bw1 and height Bh1 ; Wherein, the obtaining the basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located includes: identifying the area where the second vehicle is located from the image of the license plate of the second vehicle, and the statistical institute Calculate the total number N1 of the first graphic element points in the area where the license plate of the second vehicle is located and count the total number N2 of the second graphic element points in the area where the second vehicle is located; calculate the total number N1 of the first graphic element points and the second graphic element. The ratio N1 between the total number of element points N2: N2; and according to the ratio N1:N2 between the total number of the first primitive points and the total number of the second primitive points, and the actual size of the license plate of the second vehicle, calculate the width of the second vehicle and height, wherein the width of the second vehicle is Cw1 and the height is Ch1; and Cw1=Bw1*(N2/N1); Ch1=Bh1*(N2/N1). 如請求項1所述的行車安全提示方法,其中,該方法根據所述第一車輛的行駛資訊和所述第二車輛的基本資訊檢索預先儲存的安全距離參照表來確定所述第一車輛與所述第二車輛之間的安全距離,其中,所述安全距離參照表記錄了所述第一車輛的行駛資訊、所述第二車輛的基本資訊、以及安全距離之間的對應關係。 The driving safety prompting method according to claim 1, wherein the method searches a pre-stored safety distance reference table according to the driving information of the first vehicle and the basic information of the second vehicle to determine the distance between the first vehicle and the second vehicle. The safety distance between the second vehicles, wherein the safety distance reference table records the corresponding relationship between the driving information of the first vehicle, the basic information of the second vehicle, and the safety distance. 如請求項3所述的行車安全提示方法,該行車安全提示方法透過計算所述第二車輛的車牌所在區域的橫向的圖元點總數來計算該第二車輛的車牌所在區域的寬Bw2;以及透過計算所述第二車輛的車牌所在區域的縱向的圖元點總數來計算該第二車輛的車牌所在區域的高Bh2;透過計算所述第二車輛所在區域的橫向的圖元點總數來計算所述第二車輛所在區域的寬Cw2;以及透過計算所述第二車輛所在區域的縱向的圖元點總數來計算所述第二車輛所在區域的高Ch2。 The driving safety prompting method according to claim 3, wherein the driving safety prompting method calculates the width Bw2 of the area where the license plate of the second vehicle is located by calculating the total number of graphic element points in the lateral direction of the area where the license plate of the second vehicle is located; and Calculate the height Bh2 of the area where the license plate of the second vehicle is located by calculating the total number of primitive points in the longitudinal direction of the area where the license plate of the second vehicle is located; Calculate by calculating the total number of primitive points in the horizontal direction of the area where the second vehicle is located The width Cw2 of the area where the second vehicle is located; and the height Ch2 of the area where the second vehicle is located by calculating the total number of primitive points in the longitudinal direction of the area where the second vehicle is located. 一種電腦可讀取記錄媒體,其中,所述電腦可讀取記錄媒體儲存有至少一個指令,所述至少一個指令被處理器執行時實現如請求項1至7中任意一項所述的行車安全提示方法。 A computer-readable recording medium, wherein the computer-readable recording medium stores at least one instruction, and when the at least one instruction is executed by a processor, the driving safety as described in any one of claim items 1 to 7 is realized hint method. 一種車輛,其中,所述車輛包括:儲存器;處理器;以及多個模組,所述多個模組被儲存在所述儲存器中並被由所述處理器執行,所述多個模組包括:獲取模組,於所述車輛行駛過程中,獲取第二車輛的車牌的影像,利用圖像識別演算法從所述第二車輛的車牌的影像中識別所述第二車輛的車牌所在區 域;執行模組,用於根據所述第二車輛的車牌所在區域的尺寸獲取所述第二車輛的基本資訊,其中,所述第二車輛的基本資訊包括所述第二車輛的寬度及高度;所述執行模組,還用於獲取所述車輛的行駛資訊,所述車輛的行駛資訊包括:所述車輛的行駛速度、所述車輛當前所在道路的坡度、所述車輛的載重;所述執行模組,還用於根據所述車輛的行駛資訊和所述第二車輛的基本資訊確定所述車輛與所述第二車輛之間的安全距離;所述執行模組,還用於利用安裝在所述車輛的超聲波感測器或雷達偵測所述車輛與所述第二車輛之間的距離;及所述執行模組,還用於當所述車輛與所述第二車輛之間的距離小於所述安全距離時,發出警示。 A vehicle, wherein the vehicle includes: a memory; a processor; and a plurality of modules stored in the memory and executed by the processor, the plurality of modules The group includes: an acquisition module, which acquires an image of the license plate of the second vehicle during the driving process of the vehicle, and uses an image recognition algorithm to identify the location of the license plate of the second vehicle from the image of the license plate of the second vehicle. Area domain; the execution module is used to obtain the basic information of the second vehicle according to the size of the area where the license plate of the second vehicle is located, wherein the basic information of the second vehicle includes the width and height of the second vehicle ; the execution module is also used to obtain the driving information of the vehicle, the driving information of the vehicle includes: the driving speed of the vehicle, the slope of the road where the vehicle is currently located, and the load of the vehicle; the The execution module is further configured to determine the safety distance between the vehicle and the second vehicle according to the driving information of the vehicle and the basic information of the second vehicle; the execution module is further configured to utilize the installation The ultrasonic sensor or radar of the vehicle detects the distance between the vehicle and the second vehicle; and the execution module is also used for when the distance between the vehicle and the second vehicle is When the distance is less than the safety distance, a warning is issued.
TW108136781A 2019-10-11 2019-10-11 Security prompt method, vehicle and storage medium TWI756573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108136781A TWI756573B (en) 2019-10-11 2019-10-11 Security prompt method, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108136781A TWI756573B (en) 2019-10-11 2019-10-11 Security prompt method, vehicle and storage medium

Publications (2)

Publication Number Publication Date
TW202115589A TW202115589A (en) 2021-04-16
TWI756573B true TWI756573B (en) 2022-03-01

Family

ID=76604353

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108136781A TWI756573B (en) 2019-10-11 2019-10-11 Security prompt method, vehicle and storage medium

Country Status (1)

Country Link
TW (1) TWI756573B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096654A (en) * 2014-05-22 2015-11-25 林讚煌 Driving distance prompting device and method thereof
KR20160058415A (en) * 2014-11-17 2016-05-25 방중식 A smart light-car recognition system, and stand-alone based smart car-number recogniton sytem therefor
TW201807673A (en) * 2016-08-29 2018-03-01 梁卓樑 Method and apparatus for indicating vehicular safe distance

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096654A (en) * 2014-05-22 2015-11-25 林讚煌 Driving distance prompting device and method thereof
KR20160058415A (en) * 2014-11-17 2016-05-25 방중식 A smart light-car recognition system, and stand-alone based smart car-number recogniton sytem therefor
TW201807673A (en) * 2016-08-29 2018-03-01 梁卓樑 Method and apparatus for indicating vehicular safe distance

Also Published As

Publication number Publication date
TW202115589A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN112652173B (en) Driving safety prompting method, vehicle and storage medium
US20140156183A1 (en) Methods and system for locating available parking spots
US20120176255A1 (en) Mobile device-based automatic parking location recorder and reminder using on-board diagnostics
JP2020507500A (en) Power and communication mode for digital license plate
US20180164106A1 (en) Systems and methods for identification of location for rendezvous of vehicle with person for pickup
CN103295416B (en) Method for guiding vehicles and system
CN104599529A (en) system for determining clearance of approaching overhead structure
JP2009223795A (en) Traffic information processing system, statistical processing device, traffic information processing method and traffic information processing program
CN109931948B (en) Prompting method and system for guiding parking of user and vehicle dumping
CN113442830B (en) Traffic safety management and control method, vehicle-mounted device
TWI756573B (en) Security prompt method, vehicle and storage medium
JP6955136B2 (en) Occurrence area detection program for stopped vehicles, generation area detection device for stopped vehicles, and generation area detection method for stopped vehicles
CN105551286B (en) A kind of detection method and electronic equipment of vehicle stopping position
TWI762821B (en) Safety prompt method and vehicle
CN112735182B (en) Driving safety prompting method and vehicle
JP2019113421A (en) Guide system and guide program
TWI740291B (en) Driving warning method and vehicle device
CN113139851B (en) Commodity distribution method, communication device, and storage medium
TWI760719B (en) Method of controlling traffic safety, vehicle-mounted device
JP2020118527A (en) Judgment system and judgment program
CN111915749B (en) Parking timing method and device, computer equipment and storage medium
US20150134239A1 (en) System and method for searching vehicle
TWI244054B (en) Parking area surveillance system and method for parking area surveillance
WO2019119063A1 (en) Car park way finding system
CN205692407U (en) A kind of underground parking management system