201139980 六、發明說明: 【發明所屬之技術領域】 本發明涉及-種測量遠距離被攝體的距軸及面積的方201139980 VI. Description of the Invention: [Technical Field] The present invention relates to a method for measuring the distance axis and area of a distant subject
法’特別涉及-種便於糧方形⑽定物件的面積的方法。 【先前技掏J 以往,利肖f侧距儀可進雜於三觸圖顧方式的面 積測量的方法以及產品已被開發和銷售,但需要對要測量的物 件物橫魏照射六次雷射點進行測量。因此,不僅難以用雷射 點測量物件物的頂點,而且需要較長的時間,因此效率很低。 【發明内容】 本發明為解決上述的以往技術中存在的問題而做出,其目 的在於提供一種用雷射測量被測物件的距離並通過内置的攝 像裝置進行攝影後,能夠直接測量出面積的便攜型被攝體面積 測量方法以及裝置。 為了實現上述目的,本發明涉及的便攜型遠距離被攝體的 面積測量方法包括以下步驟:縣雷射模組和攝像裝置的初始 化’由上述雷射模組向被攝體發射雷射;由上述攝像裝置拍攝 被攝體而獲得對應的影像;根據上述雷射模組的雷射速度以及 雷射接收時間,計算上述攝像裝置與上述被攝體之_距離; α及根據上述攝像裝置與上述被紐之間的麟,計算上述被 攝體的面積。 本發明纽的便攜魏轉被麵的面制量方法,能夠 201139980 方便且容易地測量出建祕的屋外廣告物(橫向型的廣告板、 突出的廣告板、屋頂的廣告板等)或者窗框等要測量的方形的 特定物件的面積。 【實施方式】 以下,依據附圖詳細說明本發明的實施例涉及的便攜型遠 距離被攝體的面積測量方法。 圖1疋表示本發明的實施例涉及的便攜型被攝體面積測 量裝戈的立體圖。本發明是移動設備用快閃記憶體卡類型的裴 置’是結合了作為雷射測距裝置的雷射模組22〇和面積測量用 攝像裴置23〇的裝置,並且涉及用於測量距離以及面積的裝 置。通過裝置内的雷射模組220測量距離,通過攝像裝置230 測里面積。本發明屬於嵌入式設備技術的一種,是需要雷射、 移動用攝像裝置、DSP ( digital signal processor :數位信號處理 部)、以及基於微軟(Microsoft)公司的作業系統win CE 5.0 的應用程式開發技術的裝置。 本發明的實施例涉及的便攜型遠距離被攝體的面積測量 裝置包括便攜型終端機1 〇〇和快閃記憶體卡(c〇mpact f|ash card) 200。 圖2是圖1所示的便攜型被攝體面積測量裝置的方塊圖。 便攜型終端機100包括面積測量應用程式U〇、設備驅動 部120、顯示部130以及中央處理|置140。 當選擇了面積測量畫面中的圖示時,面積測量應用程式 4 201139980 110啟動並發出初始化指令,當看到被攝體的影像的使用者選 擇了上述被攝體的各頂點之後再選擇面積測量按無時,發出測 量距離指令。作為上述面積測量應用程式110的例子,可以使 用基於微軟公司的WinCE 5.0的應用程式。 設備驅動部120根據由上述面積測量應用程式11〇發出的 初始化指令,產生驅動信號。作為上述設備驅動部12〇的例 子,可以使用基於微軟公司的WinCE 5.0的硬體驅動程式。 顯示部130在寫面中顯示拍攝到的被攝體的影像。 快閃記憶體卡200包括I/O介面部(輸入輸出介面部) 210、雷射模组220、攝像裝置230以及DSP數位信號處理部 240。 I/O介面部210用於與上述便攜型終端機1〇〇間的信號及 資料的交換。雷射模組220回應來自上述便攜型終端機1〇〇的 驅動信號而工作,向被攝體發射雷射,並接收被上述被攝體反 射回來的雷射。攝像裝置23G回應來自上述便攜型終端機的驅 動仏號而工作,拍攝上述被攝體,將所生成的上述被攝體的影 像提供給上述便攜型終端機1〇〇進行顯示。 數位彳§號處理部240根據上述雷射的接收時間及雷射速 度’計算上述攝像裝置230與上述被攝體之間的距離。上述面 積測量應用程式11G根據來自上述㈣記,隨卡的、上述 攝像裝置23G與上述被攝體的距離,計算上述被攝體的面積。 以下,對利用具有上述結構的便攜型遠距離被攝體的面積 201139980 測量裝置進行的距離及面積測量方法進行說明。 當使用者在便攜型終端機的面積測量應用程式11()中點 擊面積測量晝面的圖示時,面積測量應用程式110被啟動,在 程式内部通過OS向如PDA那樣的便攜型終端機100的設備 驅動部120傳遞初始化指令。 上述設備驅動部120向中央處理裝置140、I/O介面部 210、作為快閃記憶體卡2〇〇的控制部的數位信號處理部24〇 傳遞驅動信號’從而使雷射模組22〇及攝像裝置23〇進行初始 化(步驟S510)。 此時’雷射模組220根據上述驅動信號從發光部向被辕體 發射雷射脈衝,與此同時,攝像裝置23〇拍攝建築物的屋外廣 告物(橫向的廣告板、突出的廣告板、屋頂的廣告板等)或者 窗框等要測量的方形的特定物件的被攝體,並將所拍攝的影像 傳輸給便攜型終端機1〇〇的顯示部13()(步驟S52〇)。 之後,如果在作為便攜型終端機100的PDA的顯示部130 的LCD晝面中能夠看到被攝體的影像,當使用者點擊面積測 量應用程式no内的面積測量按鈕時,面積測量應用程式11〇 發出測量距離指令,並通過設備驅動部12〇、中央處理裝置14〇 以及I/O介面部210傳遞給控制部數位信號處理部24〇。 上述數位信號處理部240根據來自上述pDA的上述測 量距離指令來生成發光停止指令錢,並傳遞給雷射模組22〇 的發光部(未纟t示),將最後發㈣雷射的脈衝通過受光部(未 6 201139980 繪不)進行處理,從而計算出距離值’即上述攝像裝置23〇與 上述被攝體之間的距離a (步驟㈣)。此時,根據下面的數 學式1能夠求出雷射距離。 【數學式1】 a = vt 其中,a為上述攝像装置230與上述被攝體之間的距離, v為雷射模組的雷射速度;t為雷射接收時間。 並且,,像裝置230拍攝被攝體的圖像,將拍攝到的圖像 檔傳輸至控制部DSP 240。 DSP 240經由I/O介面部210傳遞至cpu 14〇、設備驅動 部120、面積測量應用程式11〇,並計算出被攝體的面積,存 儲到儲存部150,例如快閃記憶體中。 下面,作為由面積測量應用程式11〇根據上述攝像裝置 230與上述被攝體之間的距離a來求出被攝體面積的過程的實 施例,參照圖3及圖4說明在上述被攝體不位於上述攝像裝置 230的正面位置而位於高於上述攝像模組23〇的位置鈞情況 下,利用二維圖像系統將上述攝像裝置230所拍攝到的被攝體 S保證為實體R大小的過程。圖3是表示由圖丨及圖2所示的 攝像裝置拍攝到的被攝體的影像的圖。圖4是用於說明由圖工 及圖2所示㈣麵量應雜式計算被觀面_原理的圖。 由於存在上述攝像裝置230的位置c與上述被攝體的底 邊的頂點B之間的距離a、上述被攝體的上邊的長度ud、上述 201139980 攝像裝置230與上述被攝體的上邊的頂點A之間的距離卜上 述被攝體的底邊的長度bd的藝,目此,通釘 2能夠求出上述攝像裝置23〇與上述被制的上邊的頂點= 間的距離b (步驟S540)。 【數學式2】 a 乂 bd Ο---- ud 例如’如果在上述攝像裝置23G與上述被攝體的底邊的頂 點B之間的距離a為6.7m的情況下測出的被攝_底邊長度 bd為:2m ’碧上缝值代人醜學式2中,如數學式3所示 可求出上賴攝體的上邊長度ud為Um _錢6%遠= 位置b為7.44m。 【數學式3】 u_ aXbd _ 6.7X2 ud L8~~=7*44 參照圖4 ’攝像裝置C、上述被攝體的上邊頂點A以及上 述被攝體的底邊頂點B構成三角形鞭,a為線段CB的長 度,即上麟像裝置230與上频攝體的底邊頂點b之間的 距離;b為線段CA的長度,即上述攝像裝置23〇與上 體的上邊頂點A之間的距離y為線段仙的長度,即實際被 攝體的縱向長度;h為上述被攝_影像中的高度,即在上述 三角形ABC中,從上述被攝_底邊· B ^畫到上述攝 8 201139980 像裝置c與上述被攝體的上邊頂點A之_距離b上的斜垂 線的垂足Η和上麵攝體的錢_ b之_雜;c為從 上述攝像裝置c朝上述被攝_上邊頂點Α看時的角度,為 銳角。 … 【數學式4】 tanC= — a 在此,若利用上述數學式4求C,則能夠由以下數學式5 表示。 【數學式5】 Λ v 180 a η 作為上述被攝體的上邊頂點Α與底邊頂點Β之間的線段 的實際被_驗向長度e,是通養上述a、b、c代入到由 畢氏定理(Pythago驗the〇rem)導出的三角函數,具體而言 疋余弦法貝丨1〇2=&2+1)2-231)駕(:中’通過數學式6求出的。 其中’ a為上述攝像裝^ 23〇與上述被攝體的底邊頂點B之間 的距離’ b為通過數學式2求出的上述攝像m3G與上述被 攝體的上邊職A之_距離,c為通過數學式5求出的、從 上述攝像裝置23G朝被攝體的上邊頂點A看時的角度。 201139980 【數學式6】 c-\f^^2abcosC-\L2^2abcos^^ V an 即,面積測量應用程式11 〇如上所述地利用數學式2至數 學式6來求出上述被攝體的縱向長度c (步驟S55〇),通過對 作為上述被攝體的橫向長度的上述三角形的底邊長度bd及上 述實際被攝體的縱向長度c進行運算,計算出上述被攝體的面 積(步驟S560)。 如上所述,利用特定的較佳實施例說明了本發明,但本發 明不限定於上述實施例,具有本領域通常知識的普通技術人員 都月b夠在不脫離本申請的權利要求中記載的本發明要旨的情 況下,進行各種變化。 本發明涉及的便攜型遠距離被攝體的面綱量裝置,能夠 用於測量建築物的屋外廣告物(橫向型廣告板、突出的廣告 板、屋頂的廣告板等)或者窗框的面積。 【圖式簡單說明】 圖1是表示本發明的實施例涉及的便攜型被攝體面積測量裝. 置的立體圖。 圖2是圖i所示的便攜型被攝體面積測量農置的方塊圖。. 圖3是表示及圖2所示的攝像裝置拍攝到的被攝體的影. 像的圖。 201139980 圖4是用於說明利用圖1及圖2所示的面積測量應用程式來計 算被攝體的面積的原理的圖。 圖5是用於說明本發明的實施例涉及的便攜型被攝體面積測 量裝置的計算過程的流程圖。 【主要元件符號說明】 100 :便攜型終端機 110 :面積測量應用程式 120 : 設備驅動部 130 :顯示部 140 : 中央處理裝置 150 :儲存部 200 : 快閃記憶體卡 210 : I/O介面部 220 : 雷射模組 230 :攝像裝置 240 : 數位信號處理部 S510、S520、S530、S540、S550、S560 :步驟 S:被攝體 R:實體The method specifically relates to a method for facilitating the area of a grain square (10) object. [Previous technique J In the past, the method of measuring the area of the three-touch method and the product has been developed and sold, but it is necessary to illuminate the object to be measured six times. Point to measure. Therefore, it is difficult to measure the apex of the object with the laser spot, and it takes a long time, so the efficiency is low. SUMMARY OF THE INVENTION The present invention has been made to solve the above problems in the prior art, and an object thereof is to provide a method for directly measuring an area by measuring a distance of an object to be measured by a laser and photographing it by a built-in image pickup device. Portable subject area measuring method and apparatus. In order to achieve the above object, the method for measuring the area of a portable long-distance subject according to the present invention includes the following steps: initializing of a county laser module and an imaging device 'launching a laser from the laser module to the object; The imaging device captures a subject to obtain a corresponding image; and calculates a distance between the imaging device and the subject according to a laser speed of the laser module and a laser receiving time; α and according to the imaging device and the The area between the above objects is calculated by the lining between the nucleus. The portable Wei-turn quilt surface measuring method of the invention can easily and easily measure the secret outdoor advertising objects (horizontal type advertising board, prominent advertising board, roof advertising board, etc.) or window frame. The area of a particular object to be measured, etc. [Embodiment] Hereinafter, a method of measuring an area of a portable long-distance subject according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Fig. 1A is a perspective view showing the measurement of the portable subject area according to the embodiment of the present invention. The present invention relates to a flash memory card type device for mobile devices, which is a device that combines a laser module 22A as a laser ranging device and an imaging device 232 for area measurement, and relates to measuring distances. And the size of the device. The distance is measured by the laser module 220 in the device, and the area is measured by the camera 230. The invention belongs to a kind of embedded device technology, and is an application development technology that requires a laser, a mobile camera device, a DSP (digital signal processor), and an operating system win CE 5.0 based on Microsoft Corporation. s installation. The area measuring device for a portable long-distance subject according to an embodiment of the present invention includes a portable terminal device 1 and a flash memory card (c〇mpact f|ash card) 200. Fig. 2 is a block diagram of the portable subject area measuring device shown in Fig. 1; The portable terminal device 100 includes an area measuring application U, a device driving unit 120, a display unit 130, and a central processing unit 140. When the icon in the area measurement screen is selected, the area measurement application 4 201139980 110 starts and issues an initialization command, and selects the area measurement after the user who sees the image of the subject selects the vertices of the above object. When there is no time, the measurement distance command is issued. As an example of the area measuring application 110 described above, an application based on WinCE 5.0 of Microsoft Corporation can be used. The device driving unit 120 generates a drive signal based on the initialization command issued by the area measuring application 11 described above. As an example of the above-described device driver unit 12, a hardware driver based on Microsoft Corporation's WinCE 5.0 can be used. The display unit 130 displays the image of the captured subject on the writing surface. The flash memory card 200 includes an I/O interface (input and output interface) 210, a laser module 220, an imaging device 230, and a DSP digital signal processing unit 240. The I/O interface unit 210 is used for exchanging signals and data with the portable terminal unit 1 described above. The laser module 220 operates in response to a drive signal from the portable terminal 1〇〇, emits a laser to the subject, and receives a laser reflected back by the subject. The imaging device 23G operates in response to a drive nickname from the portable terminal device, captures the subject, and supplies the generated image of the subject to the portable terminal device 1 for display. The digital number processing unit 240 calculates the distance between the imaging device 230 and the subject based on the reception time and the laser speed of the laser. The area measurement application 11G calculates the area of the subject based on the distance from the above-mentioned imaging device 23G to the subject from the above (4). Hereinafter, a method of measuring the distance and area by the measuring device using the area of the portable long-distance subject having the above-described configuration 201139980 will be described. When the user clicks on the icon of the area measurement screen in the area measurement application 11 () of the portable terminal, the area measurement application 110 is activated, and the portable terminal 100 such as a PDA is passed through the OS inside the program. The device driving unit 120 transmits an initialization command. The device driving unit 120 transmits a driving signal 'to the central processing unit 140, the I/O interface unit 210, and the digital signal processing unit 24 that is the control unit of the flash memory card 2, thereby causing the laser module 22 to The imaging device 23 is initialized (step S510). At this time, the laser module 220 emits a laser pulse from the light-emitting portion to the target body according to the above-described driving signal, and at the same time, the image capturing device 23 captures an outdoor advertisement of the building (a horizontal advertising board, a prominent advertising board, The object of the square specific object to be measured, such as a billboard on the roof, or a window frame, and the captured image is transmitted to the display unit 13 () of the portable terminal 1A (step S52A). After that, if the image of the subject can be seen in the LCD panel of the display unit 130 of the PDA as the portable terminal device 100, when the user clicks the area measurement button in the area measurement application no, the area measurement application The measurement distance command is issued and transmitted to the control unit digital signal processing unit 24 via the device drive unit 12A, the central processing unit 14A, and the I/O interface unit 210. The digital signal processing unit 240 generates a light emission stop command money based on the measurement distance command from the pDA, and transmits it to the light emitting unit of the laser module 22 (not shown), and passes the last (four) laser pulse. The light-receiving unit (not shown) does not calculate the distance value 'that is, the distance a between the imaging device 23A and the subject (step (4)). At this time, the laser distance can be obtained by the following mathematical formula 1. [Expression 1] a = vt where a is the distance between the above-described imaging device 230 and the subject, v is the laser speed of the laser module, and t is the laser reception time. Further, the image device 230 captures an image of the subject, and transmits the captured image file to the control unit DSP 240. The DSP 240 is transmitted to the CPU 14A, the device driving unit 120, and the area measuring application 11A via the I/O interface unit 210, and calculates the area of the subject, and stores it in the storage unit 150, for example, a flash memory. In the following, as an example of the process of obtaining the subject area based on the distance a between the imaging device 230 and the subject, the area measurement application 11 , will be described with reference to FIGS. 3 and 4 . The subject S captured by the imaging device 230 is secured to the size of the physical R by the two-dimensional image system without being located at the front position of the imaging device 230 and at a position higher than the position of the imaging module 23A. process. Fig. 3 is a view showing an image of a subject captured by the image pickup device shown in Fig. 2 and Fig. 2; Fig. 4 is a view for explaining the principle of the face-to-face calculation by the drawing and the (4) face-to-face calculation shown in Fig. 2. The distance a between the position c of the imaging device 230 and the vertex B of the base of the subject, the length ud of the upper side of the subject, and the apex of the above-mentioned 201139980 imaging device 230 and the above-mentioned subject The distance between A and the length bd of the bottom side of the subject is such that the nail 2 can obtain the distance b between the imaging device 23 and the vertex of the upper side of the above-described manufactured (step S540). . [Math 2] a 乂bd Ο---- ud For example, if the distance a between the imaging device 23G and the vertex B of the base of the subject is 6.7 m, the detected image is taken. The length bd of the base is: 2m. In the ugly 2 of the upper seam value, as shown in Mathematical formula 3, the length ud of the upper side of the upper body can be determined as Um _ money 6% far = position b is 7.44m . [Math 3] u_ aXbd _ 6.7X2 ud L8~~=7*44 Referring to FIG. 4 'the imaging device C, the upper vertex A of the subject, and the bottom vertex B of the subject constitute a triangular whip, a is The length of the line segment CB, that is, the distance between the upper image device 230 and the bottom edge vertex b of the upper frequency subject; b is the length of the line segment CA, that is, the distance between the above-mentioned camera device 23 and the upper vertex A of the upper body. y is the length of the line segment fairy, that is, the longitudinal length of the actual subject; h is the height in the above-mentioned captured image, that is, in the above triangle ABC, from the above-mentioned photographed _ bottom edge B ^ to the above photograph 8 201139980 The distance between the device c and the upper vertex A of the above-mentioned object, the distance 斜 of the oblique line on the distance b, and the money _ b of the upper object; c is from the above-mentioned imaging device c toward the above-mentioned photograph _ The angle at which the vertex looks at is an acute angle. [Math 4] tanC= - a Here, if C is obtained by the above-described mathematical expression 4, it can be expressed by the following mathematical expression 5. [Expression 5] Λ v 180 a η The actual _-inspection length e of the line segment between the upper vertex Α and the bottom vertex 上述 of the above-mentioned subject is the above-mentioned a, b, and c. The trigonometric function derived from Pythago's theorem (the 〇 法 验 〇 , , , , , = = = = = = = = = = = = = = = = = = = : : : : : : : : : : : : : ' a is the distance ' b between the imaging device 23 and the bottom vertex B of the subject is the distance _ the distance between the imaging m3G obtained by the mathematical expression 2 and the upper position A of the subject, c The angle obtained when the imaging device 23G is obtained from the imaging device 23G toward the upper vertex A of the subject is obtained by the mathematical expression 5. 201139980 [Math 6] c-\f^^2abcosC-\L2^2abcos^^ V an The area measurement application 11 determines the longitudinal length c of the subject by using Mathematical Formula 2 to Mathematical Formula 6 as described above (Step S55A), by using the above-described triangle as the lateral length of the subject. The base length bd and the longitudinal length c of the actual subject are calculated, and the area of the subject is calculated (step S560). The present invention has been described with reference to specific preferred embodiments, but the present invention is not limited to the embodiments described above, and those skilled in the art having the ordinary knowledge in the art can not deviate from the invention described in the claims of the present application. Various changes are made in the case of the portable long-distance subject of the present invention, which can be used for measuring outdoor advertisements of buildings (horizontal type advertising boards, prominent advertising boards, roof advertisements) Fig. 1 is a perspective view showing a portable type object area measuring device according to an embodiment of the present invention. Fig. 2 is a portable type shown in Fig. i. FIG. 3 is a view showing a shadow image of a subject captured by the imaging device shown in FIG. 2. 201139980 FIG. 4 is a view for explaining the use of FIGS. 1 and 2 Fig. 5 is a flowchart for explaining a calculation procedure of the portable subject area measuring apparatus according to the embodiment of the present invention. Fig. 5 is a flowchart for explaining a calculation procedure of the portable subject area measuring apparatus according to the embodiment of the present invention. DESCRIPTION OF SYMBOLS] 100: Portable terminal 110: Area measurement application 120: Device drive unit 130: Display unit 140: Central processing unit 150: Storage unit 200: Flash memory card 210: I/O interface unit 220: Laser module 230: imaging device 240: digital signal processing unit S510, S520, S530, S540, S550, S560: Step S: subject R: entity