TW201621833A - Hazard warning method and portable device utilizing the same - Google Patents

Hazard warning method and portable device utilizing the same Download PDF

Info

Publication number
TW201621833A
TW201621833A TW103143094A TW103143094A TW201621833A TW 201621833 A TW201621833 A TW 201621833A TW 103143094 A TW103143094 A TW 103143094A TW 103143094 A TW103143094 A TW 103143094A TW 201621833 A TW201621833 A TW 201621833A
Authority
TW
Taiwan
Prior art keywords
image
environmental
dangerous
mobile device
module
Prior art date
Application number
TW103143094A
Other languages
Chinese (zh)
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 TW103143094A priority Critical patent/TW201621833A/en
Publication of TW201621833A publication Critical patent/TW201621833A/en

Links

Landscapes

  • Telephone Function (AREA)
  • Emergency Alarm Devices (AREA)
  • Traffic Control Systems (AREA)

Abstract

A hazard warning method for a portable device comprises the steps of: capturing an environmental image toward a first direction when receiving a control signal, and generating a warning signal when the environmental image comprises a dangerous object therein. The aforementioned portable device comprises a image capturing module, a storage module, and a determining module. The image capturing module is used for capturing the environmental image toward the first direction when receiving the control signal. The storage module is used for storing an object database. The determining module is used for determining whether the environmental image having a dangerous object defined in the object database, and generating the warning signal when the environmental image has the dangerous object.

Description

危險警示方法與應用此方法的行動裝置 Danger warning method and mobile device applying the same

本發明係關於一種危險警示方法與應用此方法的行動裝置,特別關於一種應用影像比對技術的危險警示方法與應用此方法的行動裝置。 The present invention relates to a dangerous warning method and a mobile device using the same, and more particularly to a dangerous warning method using an image comparison technique and a mobile device using the same.

目前使用行動裝置的時候需要經常性的低下頭來,而形成低頭族的現象。然而當使用者在走路時眼睛盯著螢幕看,可能會因為沒有直視正前方而導致有意外發生的風險,例如前方出現來車、障礙物或是路面不平,此時就容易讓使用者受到傷害。因此,需要有一個可以幫使用者注意路況的工具,在前方出現可能發生意外的情況時早一步提醒使用者。 At present, when using mobile devices, it is necessary to constantly bow down and form a low-headed phenomenon. However, when the user is staring at the screen while walking, there may be a risk of accidents due to lack of direct visibility, such as a car coming in front of the car, an obstacle or an uneven road surface, which is easy for the user to be hurt. . Therefore, there is a need for a tool that can help the user to pay attention to the road conditions, and remind the user early in the event of an accident that may occur in front.

有鑑於以上的問題,本發明提出一種危險警示方法與應用此方法的行動裝置,藉由判斷所擷取的影像中是否有危險物件,來選擇性地發出警示訊息。如此可以讓行動裝置的使用者得知其行進方向上是否有危險。 In view of the above problems, the present invention provides a dangerous warning method and a mobile device using the same, which selectively emits a warning message by judging whether there is a dangerous object in the captured image. This allows the user of the mobile device to know if there is a danger in its direction of travel.

依據本發明的一種危險警示方法,適用於一行動裝置,此方法包含下列步驟:當接收到控制訊號時,向第一方向擷 取環境影像。判斷此環境影像是否包含物件資料庫所定義的危險物件。並且當環境影像包含危險物件時,產生警示訊息。 A dangerous warning method according to the present invention is applicable to a mobile device. The method includes the following steps: when receiving the control signal, the first direction is Take an environmental image. Determine if this environmental image contains dangerous objects defined by the object database. And when the environmental image contains dangerous objects, a warning message is generated.

於本發明一實施例中,物件資料庫中儲存有多個危險物件影像,並且在判斷環境影像是否包含危險物件的步驟中,包含下列步驟:分析環境影像以取得包含於環境影像中的多個環境物件影像。對每一個環境物件影像,判斷此環境物件影像是否實質上對應於物件資料庫中的多個危險物件影像其中之一。當前述環境物件影像其中至少之一實質上對應於前述危險物件影像其中至少之一時,判斷環境影像包含危險物件。當所有環境物件影像均不實質對應於前述危險物件影像時,判斷環境影像不包含危險物件。 In an embodiment of the invention, the object database stores a plurality of dangerous object images, and in the step of determining whether the environmental image contains the dangerous object, the method includes the following steps: analyzing the environmental image to obtain multiple images included in the environmental image. Environmental object imagery. For each environmental object image, it is determined whether the environmental object image substantially corresponds to one of the plurality of dangerous object images in the object database. When at least one of the foregoing environmental object images substantially corresponds to at least one of the aforementioned dangerous object images, it is determined that the environmental image contains a dangerous object. When all the environmental object images do not substantially correspond to the aforementioned dangerous object image, it is judged that the environmental image does not contain dangerous objects.

於本發明一實施例中,其中危險物件影像被分類為高危險物件影像與低危險物件影像,並且當環境物件影像其中至少之一實質上對應於高危險物件影像時,以環境影像作為警示訊息。 In an embodiment of the invention, the dangerous object image is classified into a high-risk object image and a low-risk object image, and when at least one of the environmental object images substantially corresponds to the high-risk object image, the environmental image is used as the warning message. .

於本發明一實施例中,所述方法更包含下列步驟:以加速度計偵測加速度值。依據加速度值,判斷行動裝置是否移動。當判斷行動裝置移動時,產生控制訊號。其中可以更依據加速度值調整第一方向。 In an embodiment of the invention, the method further comprises the step of: detecting an acceleration value with an accelerometer. Based on the acceleration value, it is determined whether the mobile device moves. A control signal is generated when it is determined that the mobile device is moving. The first direction can be adjusted according to the acceleration value.

依據本發明的一種行動裝置,包含影像擷取模組、儲存模組與判斷模組。其中判斷模組電性連接於影像擷取模組與儲存模組。影像擷取模組用以於接收到控制訊號時,向第一方向 擷取環境影像。儲存模組用以儲存物件資料庫。判斷模組用以判斷環境影像是否包含定義於該物件資料庫的一個危險物件,並且當判斷環境影像包含危險物件時,產生警示訊息。 A mobile device according to the present invention includes an image capturing module, a storage module and a determining module. The judging module is electrically connected to the image capturing module and the storage module. The image capturing module is configured to receive the control signal in a first direction Capture environmental images. The storage module is used to store the object database. The determining module is configured to determine whether the environmental image includes a dangerous object defined in the object database, and generate a warning message when determining that the environmental image contains a dangerous object.

於本發明一實施例中,物件資料庫中儲存有多個危險物件影像,並且判斷模組包含影像解析單元與影像比對單元。其中影像解析單元電性連接至影像擷取模組,而影像比對單元電性連接於影像解析單元與儲存模組。影像解析單元用以分析環境影像以取得包含於環境影像中的多個環境物件影像。影像比對單元用以對每一個環境物件影像,判斷此環境物件影像是否實質上對應於危險物件影像其中之一,其中當環境物件影像其中至少之一實質上對應於危險物件影像其中至少之一時,判斷環境影像包含危險物件,並且當所有環境物件影像均不實質對應於危險物件影像時,判斷環境影像不包含危險物件。 In an embodiment of the invention, the object database stores a plurality of dangerous object images, and the determining module includes an image analyzing unit and an image matching unit. The image analysis unit is electrically connected to the image capture module, and the image comparison unit is electrically connected to the image analysis unit and the storage module. The image analysis unit is configured to analyze the environment image to obtain a plurality of environmental object images included in the environment image. The image comparison unit is configured to determine, according to each environment object image, whether the environment object image substantially corresponds to one of the dangerous object images, wherein at least one of the environmental object images substantially corresponds to at least one of the dangerous object images It is determined that the environmental image contains dangerous objects, and when all the environmental object images do not substantially correspond to the dangerous object image, it is judged that the environmental image does not contain dangerous objects.

於本發明一實施例中,所述的行動裝置更包含顯示模組。而危險物件影像被分類為高危險物件影像與低危險物件影像,並且當環境物件影像其中至少之一實質上對應於高危險物件影像其中至少之一時,以環境影像作為警示訊息呈現於顯示模組。 In an embodiment of the invention, the mobile device further includes a display module. The dangerous object image is classified into a high-risk object image and a low-risk object image, and when at least one of the environmental object images substantially corresponds to at least one of the high-risk object images, the environmental image is displayed as a warning message on the display module. .

於本發明一實施例中,所述的行動裝置更包含加速度計與控制模組。其中控制模組電性連接於加速度計與影像擷取模組。加速度計用以偵測加速度值。控制模組用以依據加速度值,判斷行動裝置是否移動,並且當判斷行動裝置移動時,控制模組產生控制訊號。 In an embodiment of the invention, the mobile device further includes an accelerometer and a control module. The control module is electrically connected to the accelerometer and the image capturing module. The accelerometer is used to detect the acceleration value. The control module is configured to determine whether the mobile device moves according to the acceleration value, and when the mobile device is determined to move, the control module generates a control signal.

於本發明一實施例中,影像擷取模組係可旋轉地設置於行動裝置,並且控制模組更依據加速度值轉動影像擷取模組以調整第一方向。 In an embodiment of the invention, the image capturing module is rotatably disposed on the mobile device, and the control module further rotates the image capturing module according to the acceleration value to adjust the first direction.

綜上所述,依據本發明的危險警示方法,藉由比對所擷取的環境影像與物件資料庫中的多個危險物件影像,判斷環境影像中是否包含有被定義的危險物件影像。藉此選擇性地發出警示訊息,提醒使用者注意。如此,低頭族可以避免因為沒有注意到前方的路況而發生危險,因為行動裝置會自動地幫低頭族注意路況。 In summary, according to the hazard warning method of the present invention, it is determined whether the environmental image contains the defined dangerous object image by comparing the captured environmental image with the plurality of dangerous object images in the object database. This selectively sends a warning message to alert the user. In this way, the low-headed family can avoid the danger of not paying attention to the road ahead, because the mobile device will automatically help the low-headed people pay attention to the road conditions.

以上之關於本發明內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。 The above description of the present invention and the following description of the embodiments of the present invention are intended to illustrate and explain the spirit and principles of the invention.

100‧‧‧行動裝置 100‧‧‧ mobile devices

110‧‧‧影像擷取模組 110‧‧‧Image capture module

120‧‧‧儲存模組 120‧‧‧ storage module

130‧‧‧判斷模組 130‧‧‧Judgement module

131‧‧‧影像解析單元 131‧‧‧Image Resolution Unit

133‧‧‧影像比對單元 133‧‧‧Image comparison unit

140‧‧‧顯示模組 140‧‧‧ display module

150‧‧‧音效模組 150‧‧‧Audio Module

160‧‧‧加速度計 160‧‧ ‧ accelerometer

170‧‧‧控制模組 170‧‧‧Control Module

200‧‧‧第一方向 200‧‧‧First direction

300‧‧‧環境影像 300‧‧‧Environmental imagery

301‧‧‧中央區塊 301‧‧‧Central Block

303、305‧‧‧邊緣區塊 303, 305‧‧‧ edge blocks

310~340‧‧‧環境物件影像 310~340‧‧‧Environmental object imagery

D1、D2‧‧‧軸向 D1, D2‧‧‧ axial

第1A圖係依據本發明一實施例的行動裝置外觀示意圖。 1A is a schematic view showing the appearance of a mobile device according to an embodiment of the present invention.

第1B圖係對應第1A圖的行動裝置功能方塊圖。 Fig. 1B is a functional block diagram of the mobile device corresponding to Fig. 1A.

第2圖係依據本發明一實施例中環境影像的示意圖。 2 is a schematic diagram of an environmental image in accordance with an embodiment of the present invention.

第3A圖至第3C圖,係分別為依據本發明一實施例的行動裝置所受加速度示意圖。 3A to 3C are respectively schematic views of accelerations of the mobile device according to an embodiment of the present invention.

第4圖係依據本發明一實施例的行動裝置使用示意圖。 Figure 4 is a schematic view showing the use of a mobile device in accordance with an embodiment of the present invention.

第5圖係依據本發明一實施例的行動裝置所應用的危險警示方法流程圖。 Fig. 5 is a flow chart showing a dangerous warning method applied to a mobile device according to an embodiment of the present invention.

第6圖係依據本發明一實施例中步驟S700的流程圖。 Figure 6 is a flow chart of step S700 in accordance with an embodiment of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。 The detailed features and advantages of the present invention are set forth in the Detailed Description of the Detailed Description of the <RTIgt; </ RTI> <RTIgt; </ RTI> </ RTI> </ RTI> <RTIgt; The objects and advantages associated with the present invention can be readily understood by those skilled in the art. The following examples are intended to describe the present invention in further detail, but are not intended to limit the scope of the invention.

請參照第1A圖與第1B圖,其中第1A圖係依據本發明一實施例的行動裝置外觀示意圖,而第1B圖係對應第1A圖的行動裝置功能方塊圖。如第1A圖所示,本發明所揭露的行動裝置100具有影像擷取模組110。而如第1B圖所示,前述行動裝置100更具有儲存模組120與判斷模組130。其中判斷模組130電性連接至影像擷取模組110與儲存模組120。影像擷取模組110依據本發明的精神,可以是但不限於互補式金屬氧化物感光元件、電容耦合式感光元件或其他適於擷取影像的電子元件。而儲存模組120依據本發明的精神,可以是但是不限於快閃記憶體、磁碟、電子可複寫式唯讀記憶體等非揮發性(Non-volatile)記憶元件。 Please refer to FIG. 1A and FIG. 1B , wherein FIG. 1A is a schematic diagram showing the appearance of a mobile device according to an embodiment of the present invention, and FIG. 1B is a functional block diagram corresponding to the mobile device of FIG. 1A . As shown in FIG. 1A, the mobile device 100 disclosed in the present invention has an image capturing module 110. As shown in FIG. 1B , the mobile device 100 further includes a storage module 120 and a determination module 130 . The determining module 130 is electrically connected to the image capturing module 110 and the storage module 120. The image capturing module 110 may be, but is not limited to, a complementary metal oxide photosensitive element, a capacitively coupled photosensitive element, or other electronic component suitable for capturing images, in accordance with the spirit of the present invention. The storage module 120 may be, but is not limited to, a non-volatile memory element such as a flash memory, a magnetic disk, or an electronically rewritable read-only memory, in accordance with the spirit of the present invention.

請回到第1A圖,本實施例中的影像擷取模組110於接收到控制訊號時,會對第一方向200擷取環境影像。而後環境影像會被傳送給判斷模組130。判斷模組130中可以分為影像解 析單元131與影像比對單元133。而實際上判斷模組130依據本發明的精神可以是中央處理單元、單晶片處理器、現場可程式邏輯閘陣列或其他可用以進行影像處理的電子元件。其中,影像解析單元131電性連接於影像擷取模組110。當影像解析單元131接收到環境影像時,影像解析單元131會分析環境影像,以得到環境影像中的多個環境物件影像,其方法詳述如下。 Returning to FIG. 1A, the image capturing module 110 in this embodiment will capture the environmental image in the first direction 200 when receiving the control signal. The environmental image is then transmitted to the decision module 130. The judgment module 130 can be divided into image solutions The analyzing unit 131 and the image matching unit 133. In fact, the judging module 130 may be a central processing unit, a single-chip processor, a field programmable logic gate array, or other electronic components that can be used for image processing in accordance with the spirit of the present invention. The image analyzing unit 131 is electrically connected to the image capturing module 110. When the image analyzing unit 131 receives the environmental image, the image analyzing unit 131 analyzes the environmental image to obtain a plurality of environmental object images in the environmental image, and the method is as follows.

請參照第2圖,其係依據本發明一實施例中環境影像的示意圖。於一個實施例中,影像解析單元131可以對第2圖中環境影像300的每一列像素及每一行像素執行高通濾波,以定義相鄰近的像素色彩或灰階變化大的區塊。這些被定義出來的區塊就可以作為影像中各環境物件影像的邊界,由此可以得到環境影像300中主要的環境物件影像。如此,影像解析單元131從環境影像300中分析得到機車的影像310、柵欄的影像320、汽車的影像330與臺階的影像340。接著,影像比對模組133逐一將前述多個環境物件影像與儲存模組120中所儲存的物件資料庫內的危險物件影像比較,以判斷前述多個環境物件影像中,是否有任何一個環境物件影像對應於物件資料庫所儲存的危險物件影像。 Please refer to FIG. 2, which is a schematic diagram of an environmental image according to an embodiment of the invention. In one embodiment, the image parsing unit 131 may perform high-pass filtering on each column of pixels and each row of pixels of the environment image 300 in FIG. 2 to define adjacent blocks with large color or gray scale changes. These defined blocks can be used as the boundary of the image of each environment object in the image, thereby obtaining the main environmental object image in the environment image 300. In this manner, the image analysis unit 131 analyzes the image 310 of the locomotive, the image 320 of the fence, the image 330 of the automobile, and the image 340 of the step from the environmental image 300. Then, the image comparison module 133 compares the plurality of environmental object images with the dangerous object images in the object database stored in the storage module 120 one by one to determine whether there is any environment in the plurality of environmental object images. The object image corresponds to the image of the dangerous object stored in the object database.

實作上,以柵欄的影像320為例,當物件資料庫中被定義為危險物件影像的柵欄的立體結構圖或平面圖被拿來與柵欄的影像320做比較時,影像比對單元133首先把柵欄的立體結構圖中的左側立柱對應到柵欄的影像320的左側立柱,而後放大或縮小柵欄的立體結構圖,並將之轉動。若柵欄的影像320的右 側立柱及/或橫桿可以與柵欄的立體結構圖中的右側立柱及/或橫桿在位置上重疊,則判斷柵欄的影像320實質對應於柵欄的立體結構圖,也就是說至少有一個環境物件影像實質對應於一個危險物件影像。此外,前述的位置上重疊,於一個實施例中可以是兩者的位置相差小於一個容錯門檻值(例如為整個柵欄高度的1/10)。 In practice, taking the image 320 of the fence as an example, when the three-dimensional structure diagram or plan view of the fence defined as the dangerous object image in the object database is compared with the image 320 of the fence, the image comparison unit 133 first The left column in the three-dimensional structure of the fence corresponds to the left column of the image 320 of the fence, and then the three-dimensional structure of the fence is enlarged or reduced and rotated. If the fence image 320 is right The side pillars and/or the crossbars may overlap with the right pillars and/or the crossbars in the three-dimensional structure diagram of the fence, and it is determined that the image 320 of the fence substantially corresponds to the three-dimensional structure diagram of the fence, that is, at least one environment The object image substantially corresponds to a dangerous object image. Moreover, the foregoing positions overlap, and in one embodiment, the positions of the two may differ by less than one fault tolerance threshold (e.g., 1/10 of the height of the entire fence).

影像比對單元133依序將機車的影像310、柵欄的影像320、人的影像330與臺階的影像340與物件資料庫中儲存的危險物件影像比對,直到有任意一個影像被判斷實質對應於一個危險物件影像時,影像比對單元133判斷環境影像300包含有危險物件的影像,並對應地產生警示訊息。如果所有的影像比對完後,沒有任何一個影像對應到危險影像,則影像比對單元133判斷環境影像300不包含有危險物件的影像。其中,前述的警示訊息、,可以是呈現於行動裝置100的顯示模組140的圖像、符號、文字,也可以是行動裝置100的音效模組150所發出的警鈴聲或是行動裝置100的震動。 The image comparison unit 133 sequentially compares the image 310 of the locomotive, the image 320 of the fence, the image 340 of the person and the image 340 of the step with the image of the dangerous object stored in the object database until any one image is judged to substantially correspond to In the case of a dangerous object image, the image matching unit 133 determines that the environmental image 300 contains an image of a dangerous object and correspondingly generates a warning message. If none of the images corresponds to the dangerous image after all the images are compared, the image matching unit 133 determines that the environmental image 300 does not contain the image of the dangerous object. The warning message may be an image, a symbol, or a character of the display module 140 of the mobile device 100, or may be an alarm ring sent by the sound module 150 of the mobile device 100 or the mobile device 100. shock.

於一個實施例中,在物件資料庫中的危險物件影像被分類為高危險物件影像與低危險物件影像。舉例來說,行動裝置100的使用者如果撞到了汽車或機車,則可能重傷住院,因此汽車與機車被分類為高危險物件。而如果前述使用者是撞到了欄杆、臺階或行人,則頂多是跌倒,因此這三者被分類為低危險物件。當前述環境物件影像其中至少之一實質上對應於一個高危險 物件影像時,影像比對單元133直接以環境影像300作為警示訊息顯示於行動裝置100的顯示模組140。如此,使用者就可以立即得知前方有高危險物件,例如汽車。前述高危險物件與低危險物件的分類僅為舉例之用,實際上物件資料庫中的每個物件如何分類,可由設計者依據本發明的精神選擇。 In one embodiment, the image of the dangerous object in the object database is classified as a high risk object image and a low risk object image. For example, if a user of the mobile device 100 hits a car or a locomotive, the hospital may be seriously injured, and thus the car and the locomotive are classified as high-risk objects. If the aforementioned user hits a railing, a step or a pedestrian, it falls at most, so the three are classified as low-risk objects. When at least one of the aforementioned environmental object images substantially corresponds to a high risk In the case of the object image, the image comparison unit 133 directly displays the environmental image 300 as a warning message on the display module 140 of the mobile device 100. In this way, the user can immediately know that there are high-risk objects in front, such as a car. The classification of the aforementioned high-risk objects and low-risk objects is only an example. In fact, how to classify each object in the object database can be selected by the designer according to the spirit of the present invention.

於另一個實施例中,請回到第2圖,由於使用者前進的路徑一般而言會對應於環境影像300中的中央區塊301,而不會對應於兩側的邊緣區塊303與305。因此,影像解析單元131只需要分析位於中央區塊301來得到環境物件影像。並且,由於所擷取環境影像300的景深與空間特性,中央區塊301可以被規範成如第2圖所示的梯形。 In another embodiment, please return to FIG. 2, since the path forwarded by the user generally corresponds to the central block 301 in the environmental image 300, and does not correspond to the edge blocks 303 and 305 on both sides. . Therefore, the image analysis unit 131 only needs to analyze the central block 301 to obtain an image of the environmental object. Moreover, due to the depth of field and spatial characteristics of the captured environmental image 300, the central block 301 can be standardized as a trapezoid as shown in FIG.

於本發明另一實施例中,由於行動裝置100並不是時刻都為使用者所使用,因此前述發出警示訊息的方法並不需要時刻都運作。請回到第1B圖,行動裝置100可以更具有加速度計160與控制模組170。控制模組170電性連接於加速度計160與影像擷取模組110。 In another embodiment of the present invention, since the mobile device 100 is not used by the user at all times, the foregoing method of issuing the alert message does not need to be operated at all times. Returning to FIG. 1B, the mobile device 100 can further include an accelerometer 160 and a control module 170. The control module 170 is electrically connected to the accelerometer 160 and the image capturing module 110.

加速度計160用來偵測行動裝置100所受到的加速度值。而控制模組170用來依據加速度值,判斷行動裝置100是否移動,並且當判斷行動裝置100移動時,控制模組170會產生控制訊號來使影像擷取模組110向第一方向200擷取環境影像。舉例來說,請參照第3A圖至第3C圖,其係分別為依據本發明一實施例的行動裝置所受加速度示意圖。首先,定義平行於行動裝 置100的顯示模組140的方向為第一軸向D1,並定義與顯示模組140正交的方向為第二軸向D2。並且加速度計160至少為兩軸加速度計,以分別偵測第一軸向D1上的加速度與第二軸向D2上的加速度。 The accelerometer 160 is used to detect the acceleration value received by the mobile device 100. The control module 170 is configured to determine whether the mobile device 100 moves according to the acceleration value, and when determining that the mobile device 100 moves, the control module 170 generates a control signal to enable the image capturing module 110 to capture the first direction 200. Environmental imagery. For example, please refer to FIG. 3A to FIG. 3C, which are respectively schematic diagrams of accelerations of a mobile device according to an embodiment of the present invention. First, define parallel to the action The direction of the display module 140 disposed at 100 is the first axial direction D1, and the direction orthogonal to the display module 140 is defined as the second axial direction D2. And the accelerometer 160 is at least a two-axis accelerometer to detect the acceleration in the first axial direction D1 and the acceleration in the second axial direction D2, respectively.

如第3A圖所示,當行動裝置100被直立時,也就是其第二軸向D2平行於水平面時,正常而言使用者不會如此使用行動裝置100並同時行走,而此時行動裝置100所受到的重力加速度平行於第一軸向D1,也就是在第二軸向D2上沒有重力加速度的分量。或者如第3B圖所示,當行動裝置100被平放時,也就是其第一軸向D1平行於水平面時,正常而言使用者也不會如此使用行動裝置100並同時行走,而此時行動裝置100所受到的重力加速度平行於第二軸向D2,也就是在第一軸向D1上沒有重力加速度的分量。而第3C圖中的行動裝置100傾斜,其第一軸向D1與第二軸向D2均不平行於水平面,這是正常來說使用者會一邊使用行動裝置100一邊行走的狀態。而此時行動裝置100所受到的重力加速度也不會平行於任一軸向,因此於兩個軸向均有重力加速度分量。 As shown in FIG. 3A, when the mobile device 100 is erected, that is, when the second axial direction D2 is parallel to the horizontal plane, the user does not normally use the mobile device 100 and walks at the same time, and the mobile device 100 at this time. The gravitational acceleration received is parallel to the first axial direction D1, that is to say there is no component of the gravitational acceleration in the second axial direction D2. Or as shown in FIG. 3B, when the mobile device 100 is laid flat, that is, when the first axial direction D1 is parallel to the horizontal plane, the user does not normally use the mobile device 100 and walks at the same time. The gravitational acceleration experienced by the mobile device 100 is parallel to the second axial direction D2, that is, the component having no gravitational acceleration in the first axial direction D1. On the other hand, the mobile device 100 in FIG. 3C is inclined, and the first axial direction D1 and the second axial direction D2 are not parallel to the horizontal plane. This is a state in which the user normally walks while using the mobile device 100. At this time, the gravity acceleration received by the mobile device 100 is not parallel to any axial direction, and therefore there are gravitational acceleration components in both axial directions.

也就是說,如果當控制模組170判斷加速度計160所偵測到的兩個加速度值其中之一大致為零時,則判斷行動裝置100並沒有被使用者一邊走動一邊使用,因此不需要產生前述控制訊號來使影像擷取模組110朝第一方向擷取環境影像。反之,如果兩個加速度值均不為零時,甚至兩個加速度值還有週期性地 變化,則控制模組170可以判斷行動裝置100被使用者邊走邊使用,因此需要產生控制訊號來使影像擷取模組110朝第一方向擷取環境影像。如此一來,當使用者作為一個低頭族時,行動裝置100可以用本發明前述揭露的方法運作,當判斷前方有危險物件時即可馬上提醒使用者。 That is, if the control module 170 determines that one of the two acceleration values detected by the accelerometer 160 is substantially zero, it is determined that the mobile device 100 is not used by the user while walking, and thus does not need to be generated. The control signal is used to cause the image capturing module 110 to capture an environmental image in a first direction. Conversely, if both acceleration values are not zero, even two acceleration values are periodically If the change is made, the control module 170 can determine that the mobile device 100 is used by the user while walking. Therefore, it is necessary to generate a control signal for the image capturing module 110 to capture the environmental image in the first direction. In this way, when the user is a low-headed family, the mobile device 100 can operate by the method disclosed in the foregoing, and can promptly remind the user when it is determined that there is a dangerous object in front.

而依據本發明另一實施例,請一併參照第3C圖與第4圖,其中第4圖係依據本發明一實施例的行動裝置使用示意圖。於本實施例中,影像擷取模組110是可旋轉的設置於行動裝置100,並且其旋轉軸正交於第一軸向D1以及第二軸向D2。首先,一般而言影像擷取模組110是朝向第一方向200擷取環境影像,並且第一方向200如第3C圖所示平行於第二軸向D2。然而這樣等於是朝著地面擷取影像,可能無法得知使用者行進方向上是否有危險物件的存在。因此,控制模組170可以更依據前述的兩個加速度值,計算行動裝置100的傾斜狀態,從而控制影像擷取裝置110繞著其旋轉軸轉,直到第一方向200大置平行於水平面,如第4圖所示。如此,則可以使所擷取的環境影像是朝著使用者前進的方向所擷取。 According to another embodiment of the present invention, reference is made to FIGS. 3C and 4, wherein FIG. 4 is a schematic diagram of the use of the mobile device according to an embodiment of the present invention. In the embodiment, the image capturing module 110 is rotatably disposed on the mobile device 100, and its rotation axis is orthogonal to the first axial direction D1 and the second axial direction D2. First, in general, the image capturing module 110 captures an environmental image toward the first direction 200, and the first direction 200 is parallel to the second axial direction D2 as shown in FIG. 3C. However, this is equivalent to capturing images from the ground, and it may not be known whether there is a dangerous object in the direction of travel of the user. Therefore, the control module 170 can calculate the tilt state of the mobile device 100 according to the two acceleration values, thereby controlling the image capturing device 110 to rotate around its rotation axis until the first direction 200 is substantially parallel to the horizontal plane, such as Figure 4 shows. In this way, the captured environmental image can be captured in the direction in which the user is heading.

綜上所述,本發明所揭露的行動裝置所運用的危險警示方法可以整理成第5圖,其係依據本發明一實施例的行動裝置所應用的危險警示方法流程圖。所述方法包含下列步驟:如步驟S100所述,以加速度計偵測加速度值。如步驟S300所述,依據加速度值,判斷行動裝置是否於移動中被使用。如果判斷行動 裝置沒有於移動中被使用,則重複步驟S300。反之,如果判斷行動裝置有於移動中被使用,則如步驟S500所述,產生控制訊號,使影像擷取模組向第一方向擷取環境影像。而後如步驟S700所述,判斷環境影像是否包含危險物件的影像。並且當判斷環境影像包含危險物件的影像時,如步驟S900所述,產生警示訊息。 In summary, the dangerous warning method applied by the mobile device disclosed in the present invention can be summarized into FIG. 5, which is a flowchart of a dangerous warning method applied to the mobile device according to an embodiment of the present invention. The method includes the following steps: detecting the acceleration value with an accelerometer as described in step S100. As described in step S300, it is determined whether the mobile device is used during the movement based on the acceleration value. If judge action If the device is not used in the movement, step S300 is repeated. On the other hand, if it is determined that the mobile device is used in the mobile, as described in step S500, a control signal is generated, so that the image capturing module captures the environmental image in the first direction. Then, as described in step S700, it is determined whether the environmental image contains an image of a dangerous object. And when it is determined that the environmental image contains the image of the dangerous object, a warning message is generated as described in step S900.

其中,關於步驟S700的詳細流程,請參照第6圖,其係依據本發明一實施例中步驟S700的流程圖。步驟S700包含下列步驟:如步驟S710所述,分析環境影像以取得包含於環境影像中的多個環境物件影像。而後如步驟S730所述,對每一個環境物件影像,判斷其是否實質上對應於危險物件影像其中之一。當前述環境物件影像其中至少之一實質上對應於危險物件影像其中至少之一時,則如步驟S750所述,判斷環境影像包含危險物件的影像。而當所有環境物件影像均不實質對應於危險物件影像時,則如步驟S770所述,判斷環境影像不包含危險物件。 For a detailed flow of step S700, refer to FIG. 6, which is a flowchart of step S700 according to an embodiment of the present invention. Step S700 includes the following steps: analyzing the environment image to obtain a plurality of environmental object images included in the environment image, as described in step S710. Then, as described in step S730, for each environmental object image, it is determined whether it substantially corresponds to one of the dangerous object images. When at least one of the foregoing environmental object images substantially corresponds to at least one of the dangerous object images, then as described in step S750, determining that the environmental image contains an image of the dangerous object. When all the environmental object images do not substantially correspond to the dangerous object image, then as described in step S770, it is determined that the environmental image does not contain the dangerous object.

綜上所述,依據本發明所揭露的行動裝置與其所運用的危險警示方法,當判斷行動裝置於非休眠狀態下可能正在被使用者使用,則可以自動地擷取行動裝置或使用者前方的環境影像,並判斷環境影像中的特定區塊內是否包含有危險物件的影像,藉以選擇性地發出警示訊息,提醒使用者注意。如此,低頭族可以避免因為沒有注意到前方的路況而發生危險,因為行動裝置會自動地幫低頭族注意路況。 In summary, according to the mobile device disclosed in the present invention and the dangerous warning method applied thereto, when it is determined that the mobile device may be being used by the user in the non-sleep state, the mobile device or the user may be automatically captured. Environmental image, and determine whether a specific block in the environmental image contains images of dangerous objects, so as to selectively send a warning message to remind the user. In this way, the low-headed family can avoid the danger of not paying attention to the road ahead, because the mobile device will automatically help the low-headed people pay attention to the road conditions.

雖然本發明以前述之實施例揭露如上,然其並非用 以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。 Although the present invention is disclosed above in the foregoing embodiments, it is not To limit the invention. It is within the scope of the invention to be modified and modified without departing from the spirit and scope of the invention. Please refer to the attached patent application for the scope of protection defined by the present invention.

Claims (10)

一種危險警示方法,適用於具有一影像擷取模組的一行動裝置,該方法包含:當接收到一控制訊號時,以該影像擷取模組向一第一方向擷取一環境影像;判斷該環境影像是否包含一危險物件,該危險物件係定義於一物件資料庫;以及當該環境影像包含該危險物件時,產生一警示訊息。 A dangerous warning method is applicable to a mobile device having an image capturing module, the method comprising: when receiving a control signal, capturing, by the image capturing module, an environmental image in a first direction; Whether the environmental image contains a dangerous object, the dangerous object is defined in an object database; and when the environmental image contains the dangerous object, a warning message is generated. 如請求項1所述的方法,其中該物件資料庫中儲存有多個危險物件影像,並且判斷該環境影像是否包含該危險物件的步驟中,包含:分析該環境影像以取得包含於該環境影像中的多個環境物件影像;對每一該環境物件影像,判斷該環境物件影像是否實質上對應於該些危險物件影像其中之一;當該些環境物件影像其中至少之一實質上對應於該些危險物件影像其中至少之一時,判斷該環境影像包含該危險物件;以及當該些環境物件影像均不實質對應於該些危險物件影像時,判斷該環境影像不包含該危險物件。 The method of claim 1, wherein the storing of the plurality of dangerous object images in the object database, and determining whether the environmental image includes the dangerous object comprises: analyzing the environmental image to obtain the environmental image included in the environment image a plurality of environmental object images in the environment; determining, for each of the environmental object images, whether the environmental object image substantially corresponds to one of the dangerous object images; and at least one of the environmental object images substantially corresponds to the image When at least one of the dangerous object images determines that the environmental image includes the dangerous object; and when the environmental object images do not substantially correspond to the dangerous object images, determining that the environmental image does not include the dangerous object. 如請求項2所述的方法,其中該些危險物件影像被分類為至少一高危險物件影像與至少一低危險物件影像,並且當該些 環境物件影像其中至少之一實質上對應於該至少一高危險物件影像時,以該環境影像作為該警示訊息。 The method of claim 2, wherein the dangerous object images are classified into at least one high-risk object image and at least one low-risk object image, and when When at least one of the environmental object images substantially corresponds to the at least one high-risk object image, the environmental image is used as the warning message. 如請求項1所述的方法,更包含:以一加速度計偵測至少一加速度值;依據該至少一加速度值,判斷該行動裝置是否移動;以及當判斷該行動裝置移動時,產生該控制訊號。 The method of claim 1, further comprising: detecting at least one acceleration value by an accelerometer; determining whether the mobile device moves according to the at least one acceleration value; and generating the control signal when determining that the mobile device moves . 如請求項4所述的方法,更包含依據該至少一加速度值調整該第一方向。 The method of claim 4, further comprising adjusting the first direction according to the at least one acceleration value. 一種行動裝置,包含:一影像擷取模組,用以於接收到一控制訊號時,向一第一方向擷取一環境影像;一儲存模組,用以儲存一物件資料庫;以及一判斷模組,電性連接該影像擷取模組與該儲存模組,用以判斷該環境影像是否包含一危險物件,該危險物件係定義於該物件資料庫,並且當判斷該環境影像包含該危險物件時,產生一警示訊息。 A mobile device includes: an image capturing module for capturing an environmental image in a first direction when receiving a control signal; a storage module for storing an object database; and determining The module is electrically connected to the image capturing module and the storage module for determining whether the environmental image includes a dangerous object, the dangerous object is defined in the object database, and when determining that the environmental image includes the danger A warning message is generated when the object is in use. 如請求項6所述的行動裝置,其中該物件資料庫中儲存有多個危險物件影像,並且該判斷模組包含:一影像解析單元,電性連接至該影像擷取模組,用以分析該環境影像以取得包含於該環境影像中的多個環境物件影像;以及 一影像比對單元,電性連接於該影像解析單元與該儲存模組,用以對每一該環境物件影像,判斷該環境物件影像是否實質上對應於該些危險物件影像其中之一,其中當該些環境物件影像其中至少之一實質上對應於該些危險物件影像其中至少之一時,判斷該環境影像包含該危險物件,並且當該些環境物件影像均不實質對應於該些危險物件影像時,判斷該環境影像不包含該危險物件。 The mobile device of claim 6, wherein the object database stores a plurality of dangerous object images, and the determining module comprises: an image analyzing unit electrically connected to the image capturing module for analyzing The environmental image to obtain a plurality of environmental object images included in the environmental image; An image comparison unit is electrically connected to the image analysis unit and the storage module for determining, for each of the environmental object images, whether the environmental object image substantially corresponds to one of the dangerous object images, wherein When at least one of the environmental object images substantially corresponds to at least one of the dangerous object images, determining that the environmental image includes the dangerous object, and when the environmental object images do not substantially correspond to the dangerous object images When it is determined, the environmental image does not contain the dangerous object. 如請求項6所述的行動裝置,更包含一顯示模組,其中該些危險物件影像被分類為至少一高危險物件影像與至少一低危險物件影像,並且當該些環境物件影像其中至少之一實質上對應於該至少一高危險物件影像時,以該環境影像作為該警示訊息呈現於該顯示模組。 The mobile device of claim 6, further comprising a display module, wherein the dangerous object images are classified into at least one high-risk object image and at least one low-risk object image, and at least one of the environmental object images When substantially corresponding to the at least one high-risk object image, the environmental image is presented as the warning message to the display module. 如請求項6所述的行動裝置,更包含:一加速度計,用以偵測至少一加速度值;以及一控制模組,電性連接於該加速度計與該影像擷取模組,用以依據該至少一加速度值,判斷該行動裝置是否移動,並且當判斷該行動裝置移動時,該控制模組產生該控制訊號。 The mobile device of claim 6, further comprising: an accelerometer for detecting at least one acceleration value; and a control module electrically connected to the accelerometer and the image capturing module for The at least one acceleration value determines whether the mobile device moves, and when it is determined that the mobile device moves, the control module generates the control signal. 如請求項9所述的行動裝置,其中該影像擷取模組係可旋轉地設置於該行動裝置,並且該控制模組更依據該至少一加速度值轉動該影像擷取模組以調整該第一方向。 The mobile device as claimed in claim 9, wherein the image capturing module is rotatably disposed on the mobile device, and the control module further rotates the image capturing module according to the at least one acceleration value to adjust the One direction.
TW103143094A 2014-12-10 2014-12-10 Hazard warning method and portable device utilizing the same TW201621833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103143094A TW201621833A (en) 2014-12-10 2014-12-10 Hazard warning method and portable device utilizing the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103143094A TW201621833A (en) 2014-12-10 2014-12-10 Hazard warning method and portable device utilizing the same

Publications (1)

Publication Number Publication Date
TW201621833A true TW201621833A (en) 2016-06-16

Family

ID=56755548

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103143094A TW201621833A (en) 2014-12-10 2014-12-10 Hazard warning method and portable device utilizing the same

Country Status (1)

Country Link
TW (1) TW201621833A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI712011B (en) * 2019-12-18 2020-12-01 仁寶電腦工業股份有限公司 Voice prompting method of safety warning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI712011B (en) * 2019-12-18 2020-12-01 仁寶電腦工業股份有限公司 Voice prompting method of safety warning
US11145081B2 (en) 2019-12-18 2021-10-12 Compal Electronics, Inc. Voice prompting method of safety warning

Similar Documents

Publication Publication Date Title
US20200320315A1 (en) Systems and methods for curb detection and pedestrian hazard assessment
CN113158820B (en) Identification and prediction of lane limits and construction areas in navigation
CN106463032A (en) Intrusion detection with directional sensing
CN107380164A (en) Driver assistance system and support system based on computer vision
CN109427214A (en) It is recorded using simulated sensor data Augmented Reality sensor
CN109425855A (en) It is recorded using simulated sensor data Augmented Reality sensor
JP4946228B2 (en) In-vehicle pedestrian detection device
CN113370911B (en) Pose adjustment method, device, equipment and medium of vehicle-mounted sensor
JP6724904B2 (en) Image processing apparatus, image processing method, and image processing system
WO2019000945A1 (en) On-board camera-based distance measurement method and apparatus, storage medium, and electronic device
JP2013239015A (en) Parking support device, and parking support method and program
JP2017183787A (en) Danger avoidance support program
CN104964708A (en) Pavement pit detecting method based on vehicular binocular vision
JP6411933B2 (en) Vehicle state determination device
US20220339969A1 (en) System and method for automatic treadwear classification
TW201724052A (en) Vehicle monitoring system and method thereof
US20210300371A1 (en) Method and system for determining lane change feasibility for autonomous vehicles
JP4775034B2 (en) Image recognition system and image recognition method
US20160155002A1 (en) Hazard warning method and portable device utilizing the same
TW201621833A (en) Hazard warning method and portable device utilizing the same
KR20170056789A (en) Around view monitoring system having function of black box and operating method
KR102545199B1 (en) Electronic apparatus and control method thereof
CN114973208B (en) Vehicle blind area monitoring and early warning method and related equipment
KR102274544B1 (en) Electronic device and image processing method thereof
CN108073274A (en) Gesture operation method and system based on depth value