TWI695632B - Audio control device and control method thereof - Google Patents

Audio control device and control method thereof Download PDF

Info

Publication number
TWI695632B
TWI695632B TW107105891A TW107105891A TWI695632B TW I695632 B TWI695632 B TW I695632B TW 107105891 A TW107105891 A TW 107105891A TW 107105891 A TW107105891 A TW 107105891A TW I695632 B TWI695632 B TW I695632B
Authority
TW
Taiwan
Prior art keywords
value
volume
space
audio
image capturing
Prior art date
Application number
TW107105891A
Other languages
Chinese (zh)
Other versions
TW201937945A (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 TW107105891A priority Critical patent/TWI695632B/en
Publication of TW201937945A publication Critical patent/TW201937945A/en
Application granted granted Critical
Publication of TWI695632B publication Critical patent/TWI695632B/en

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Studio Devices (AREA)

Abstract

An audio control device which is cooperated with an audio output device for outputting audio signal in a space, the audio control device comprises an image capturing device for obtaining a focal length and dimensional parameters associated with each one of a plurality target points in the space, and comprises a computing device electrically coupled to the image capturing device, for calculating an actual distance between each target point and the image capturing device based on the associated focal length, calculating a volume of the space based on the actual distances and dimensional parameters, and setting a magnitude for the audio signal from the audio output device based on the volume of the space.

Description

音訊控制裝置及其控制方法 Audio control device and its control method

本發明係關於一種控制裝置與其控制方法,特別係關於一種控制音訊輸出強度之裝置與方法。 The invention relates to a control device and a control method thereof, in particular to a device and method for controlling the intensity of audio output.

於傳統之方法中,對於音訊輸出裝置,例如音響之揚聲器進行音量調整時,常用手動的調整方式。其當第一次開機時,或是揚聲器移動至其他不同大小之空間時,常遭遇瞬間音量過大或不足的問題。 In the traditional method, when adjusting the volume of the audio output device, such as the speaker of the audio, a manual adjustment method is often used. When it is turned on for the first time, or when the speaker is moved to other spaces of different sizes, it often encounters the problem of excessive or insufficient volume at the moment.

為解決上述問題,已提出了兩種習知技術。習知技術一,係預先建立各地區之建築物或內部空間大小等等相關場景資訊之資料庫,並以GPS定位方式判斷揚聲器所在位置,並由資料庫查出所對應之建築物之空間大小及場景資訊,以調整揚聲器音量大小。然而,習知技術一需要建立地球上所有地區之相關場景資訊之資料庫,其可行性有疑義。 To solve the above problems, two conventional techniques have been proposed. Conventional technology one is to pre-establish a database of relevant scene information such as the size of buildings or internal spaces in various regions, and determine the location of the speakers by GPS positioning, and the database to find out the space size of the corresponding building And scene information to adjust the speaker volume. However, conventional technology 1 requires the establishment of a database of relevant scene information for all regions on the planet, and its feasibility is doubtful.

於習知技術二中,係利用紅外線傳感器來測量距離,以計算揚聲器所在地點之空間大小,並據以調整揚聲器之音量強度。然而,紅外線傳感器包括發射器與接收器,若接收器擺放位置不理想,則將影響訊號接收品質,而降低空間大小計算之準確性。此外,若採用一對一之接收器,欲量測整個空間大小,其必須多次移動該單一接收器的位置,將耗費時效。另一方面,若採用一對多之接收器,採用多個接收器分別擺放至不同位置,雖可節省時效,但將提高硬體成本。 In the second conventional technique, an infrared sensor is used to measure the distance to calculate the size of the space where the speaker is located, and adjust the volume intensity of the speaker accordingly. However, the infrared sensor includes a transmitter and a receiver. If the placement of the receiver is not ideal, it will affect the quality of signal reception and reduce the accuracy of space size calculation. In addition, if a one-to-one receiver is used, to measure the size of the entire space, it must move the position of the single receiver multiple times, which is time-consuming. On the other hand, if one-to-many receivers are used and multiple receivers are placed in different positions, although time-saving can be saved, the hardware cost will be increased.

因此,如何提供一種音訊控制裝置及其控制方法,其能夠在節省硬體成本之考量下,以單一裝置,能夠即時動態地,對於待測空間容積大小進行計算,並據以調整音量,實屬當前重 要課題之一。 Therefore, how to provide an audio control device and a control method thereof, which can calculate the volume of the space to be measured in real time and dynamically according to a single device under the consideration of saving hardware costs, and adjust the volume accordingly, which is really Current weight One of the main topics.

有鑒於此,本發明之一目的在於提供一種音訊控制裝置,其係與一音訊輸出裝置配合應用。該音訊輸出裝置係於一空間中輸出音訊,該音訊控制裝置包含一影像擷取單元以及一運算單元。影像擷取單元用以得到該空間中複數個目標點每一者所關聯之焦距值以及空間參數。運算單元係電性連接於該影像擷取單元,用以根據所關聯之焦距值而計算該等目標點每一者與該影像擷取單元的實際距離值,根據該等實際距離值與空間參數而計算該空間之容積,並根據該空間之容積而設定該音訊輸出裝置所輸出音訊之強度。 In view of this, one object of the present invention is to provide an audio control device which is used in conjunction with an audio output device. The audio output device outputs audio in a space. The audio control device includes an image capturing unit and an arithmetic unit. The image capturing unit is used to obtain the focal length value and spatial parameter associated with each of the plurality of target points in the space. The computing unit is electrically connected to the image capturing unit, and is used to calculate the actual distance value between each of the target points and the image capturing unit according to the associated focal length value, according to the actual distance value and the spatial parameters The volume of the space is calculated, and the intensity of the audio output by the audio output device is set according to the volume of the space.

承上所述,依據本發明之一種音訊控制裝置,其中該影像擷取單元係於調整該等目標點每一者之焦距以使其影像對焦清楚時,得到其所關聯之焦距值。 As described above, according to an audio control device of the present invention, the image capturing unit obtains the associated focal length value when adjusting the focal length of each of the target points to make the image in focus.

依據本發明之一種音訊控制裝置,其中該運算單元更計算該空間之容積相對於一基準容積之比例值,並根據該比例值而設定該音訊輸出裝置所輸出音訊之強度。 According to an audio control device of the present invention, the arithmetic unit further calculates the ratio of the volume of the space to a reference volume, and sets the intensity of the audio output by the audio output device according to the ratio.

依據本發明之一種音訊控制裝置,其中該運算單元更比較該比例值與一預設臨界值,若該比例值大於該預設臨界值,則根據該預設臨界值而設定該音訊輸出裝置所輸出音訊之強度。 According to an audio control device of the present invention, the arithmetic unit further compares the ratio value with a preset threshold value, and if the ratio value is greater than the preset threshold value, sets the audio output device according to the preset threshold value The intensity of the output audio.

依據本發明之一種音訊控制裝置,其中該運算單元更將該等目標點區分成複數個群組,並以每一群組之目標點以及該影像擷取單元之所在位置定義一錐狀體,計算每一錐狀體之體積,並加總所有錐狀體之體積而得到該空間之容積。 According to an audio control device of the present invention, the arithmetic unit further divides the target points into a plurality of groups, and defines a cone with the target point of each group and the location of the image capturing unit, Calculate the volume of each cone, and add up the volume of all cones to get the volume of the space.

依據本發明之一種音訊控制裝置,其中該運算單元更根據該等目標點每一者之實際距離值與空間參數而計算每一錐狀體之體積。 According to an audio control device of the present invention, the arithmetic unit further calculates the volume of each cone according to the actual distance value and spatial parameters of each of the target points.

依據本發明之一種音訊控制裝置,其中該空間參數為x-y-z直角坐標系之座標值,或球面極座標系之座標值。 According to an audio control device of the present invention, the spatial parameter is the coordinate value of the x-y-z rectangular coordinate system, or the coordinate value of the spherical polar coordinate system.

依據本發明之一種音訊控制裝置,更包含一控制單元,係電性連接於該影像擷取單元以及該運算單元,用以控制該影像擷取單元旋轉於各角度值以掃描一預設軌跡,該預設軌跡涵蓋該等目標點之全部,以使該影像擷取單元得到該等目標點每一者所關聯之焦距值以及空間參數。 An audio control device according to the present invention further includes a control unit electrically connected to the image capturing unit and the arithmetic unit, for controlling the image capturing unit to rotate at various angle values to scan a predetermined trajectory, The preset trajectory covers all of the target points, so that the image capturing unit obtains the focal length value and spatial parameters associated with each of the target points.

依據本發明之一種音訊控制裝置,其中該預設軌跡為「S形」軌跡、「Z形」軌跡、或「螺旋形」軌跡。 According to an audio control device of the present invention, the preset track is an "S-shaped" track, a "Z-shaped" track, or a "spiral-shaped" track.

本發明之一目的在於提供一種音訊控制方法,其用以控制於一空間中輸出音訊之強度,包含從一基準位置對準該空間中位於一預設軌跡上的一目標點,並得到該目標點所關聯之焦距值以及空間參數;根據所關聯之焦距值而計算該目標點與該基準位置的實際距離值;調整角度值,而對準該空間中位於該預設軌跡上的另一目標點,以得到並計算該另一目標點所關聯之焦距值、空間參數以及實際距離值;重複前一步驟,以掃描該空間中位於該預設軌跡上的全部目標點,以得到並計算該等目標點每一者所關聯之焦距值、空間參數以及實際距離值;根據該等實際距離值與空間參數而計算該空間之容積;以及根據該空間之容積而設定所輸出音訊之強度。 An object of the present invention is to provide an audio control method for controlling the intensity of output audio in a space, including aligning from a reference position to a target point on a predetermined trajectory in the space and obtaining the target The focal length value and space parameter associated with the point; calculate the actual distance value between the target point and the reference position based on the associated focal length value; adjust the angle value to align with another target on the preset trajectory in the space Point to obtain and calculate the focal length value, space parameter and actual distance value associated with the other target point; repeat the previous step to scan all target points on the preset trajectory in the space to obtain and calculate the The focal length value, space parameter and actual distance value associated with each target point; the volume of the space is calculated based on the actual distance value and the space parameter; and the intensity of the output audio is set according to the volume of the space.

承上所述,根據本發明之一種音訊控制方法,更包含計算該空間之容積相對於一基準容積之比例值,並根據該比例值而設定所輸出音訊之強度。 As mentioned above, an audio control method according to the present invention further includes calculating the ratio of the volume of the space to a reference volume, and setting the intensity of the output audio according to the ratio.

根據本發明之一種音訊控制方法,更包含比較該比例值與一預設臨界值,若該比例值大於該預設臨界值,則根據該預設臨界值而設定所輸出音訊之強度。 According to an audio control method of the present invention, the method further includes comparing the ratio value with a preset threshold value, and if the ratio value is greater than the preset threshold value, setting the intensity of the output audio according to the preset threshold value.

根據本發明之一種音訊控制方法,更包含將該等目標點區分成複數個群組,並以每一群組之目標點的所在位置以及該基準位置定義一錐狀體,計算每一錐狀體之體積,並加總所有錐狀體之體積而得到該空間之容積。 According to an audio control method of the present invention, the target points are further divided into a plurality of groups, and a cone is defined by the position of the target point of each group and the reference position, and each cone is calculated The volume of the volume and the volume of all the cones are added to obtain the volume of the space.

根據本發明之一種音訊控制方法,更包含根據該等目標點每一者之實際距離值與空間參數而計算每一錐狀體之體 積。 An audio control method according to the present invention further includes calculating the volume of each cone according to the actual distance value and spatial parameters of each of the target points product.

根據本發明之一種音訊控制方法,其中該空間參數為x-y-z直角坐標系之座標值或球面極座標系之座標值。 According to an audio control method of the present invention, the spatial parameter is the coordinate value of the x-y-z rectangular coordinate system or the coordinate value of the spherical polar coordinate system.

1‧‧‧音訊控制裝置 1‧‧‧Audio control device

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

11‧‧‧旋轉雲台 11‧‧‧Rotary head

20‧‧‧運算單元 20‧‧‧ arithmetic unit

30‧‧‧控制單元 30‧‧‧Control unit

31‧‧‧馬達驅動電路 31‧‧‧Motor drive circuit

32‧‧‧馬達 32‧‧‧Motor

40‧‧‧音訊輸出裝置 40‧‧‧Audio output device

41‧‧‧放大器 41‧‧‧Amplifier

42‧‧‧揚聲器 42‧‧‧speaker

oi‧‧‧目標物 o i ‧‧‧ target

p0‧‧‧基準位置 p 0 ‧‧‧ reference position

QAD1‧‧‧四邊形 QAD 1 ‧‧‧ quadrilateral

QAD2‧‧‧四邊形 QAD 2 ‧‧‧ quadrilateral

PYR1‧‧‧錐狀體 PYR 1 ‧‧‧Cone

PYR2‧‧‧錐狀體 PYR 2 ‧‧‧ cone

SPC‧‧‧部分空間 SPC‧‧‧Partial space

ST‧‧‧音訊強度控制訊號 S T ‧‧‧ Audio intensity control signal

第1A圖為根據本發明之一較佳實施例之音訊控制裝置1之方塊示意圖。 FIG. 1A is a block diagram of an audio control device 1 according to a preferred embodiment of the present invention.

第1B圖為根據本發明之一較佳實施例之音訊控制裝置1之詳細方塊示意圖。 FIG. 1B is a detailed block diagram of the audio control device 1 according to a preferred embodiment of the present invention.

第2A圖至第2F圖為根據本發明之一較佳實施例之影像擷取裝置掃描目標物之示意圖。 FIGS. 2A to 2F are schematic diagrams of an image capturing device scanning a target according to a preferred embodiment of the present invention.

第3A圖至第3D圖為根據本發明之一較佳實施例之定義錐狀體之示意圖。 FIGS. 3A to 3D are schematic diagrams of defining a cone according to a preferred embodiment of the present invention.

第4A圖至第4C圖為根據本發明之其他實施例之掃描軌跡形式之示意圖。 4A to 4C are schematic diagrams of scanning trajectory forms according to other embodiments of the present invention.

第4D圖至第4E圖為根據本發明之其他實施例之錐狀體定義方式之示意圖。 FIGS. 4D to 4E are schematic diagrams of a method of defining a cone according to other embodiments of the present invention.

第5A圖至第5B圖、第6圖以及第7圖為根據本發明之一較佳實施例之音訊控制方法之流程示意圖。 5A to 5B, 6 and 7 are flow charts of an audio control method according to a preferred embodiment of the present invention.

以下將透過實施例來解釋本發明內容,本發明的實施例並非用以限制本發明須在如實施例所述之任何特定的環境、應用或特殊方式方能實施。因此,關於實施例之說明僅為闡釋本發明之目的,而非用以限制本發明。須說明者,以下實施例及圖式中,與本發明非直接相關之元件已省略而未繪示,且圖式中各元件間之尺寸關係僅為求容易瞭解,非用以限制實際比例。另外,以下實施例中,相同的元件將以相同的元件符號加以說明。 The following will explain the content of the present invention through the embodiments. The embodiments of the present invention are not intended to limit the invention to be implemented in any specific environment, application, or special manner as described in the embodiments. Therefore, the description of the embodiments is only for the purpose of explaining the present invention, not for limiting the present invention. It should be noted that, in the following embodiments and drawings, elements not directly related to the present invention have been omitted and not shown, and the dimensional relationship between the elements in the drawings is only for easy understanding and is not intended to limit the actual scale. In addition, in the following embodiments, the same elements will be described with the same element symbols.

第1A圖為根據本發明之一較佳實施例之音訊控制裝置1之方塊示意圖,請參照第1A圖所示,本發明之一較佳實施例之音訊控制裝置1包括一影像擷取單元10,一運算單元20以及一控制 單元30。並且,該音訊控制裝置1係電性連接於一音訊輸出裝置40,而與該音訊輸出裝置40共同運作。 FIG. 1A is a block diagram of an audio control device 1 according to a preferred embodiment of the present invention. Please refer to FIG. 1A. The audio control device 1 according to a preferred embodiment of the present invention includes an image capturing unit 10 , An arithmetic unit 20 and a control Unit 30. In addition, the audio control device 1 is electrically connected to an audio output device 40 and operates together with the audio output device 40.

該影像擷取單元10可以是任何具有拍照或攝影功能,並能夠自動對焦之影像擷取裝置,例如數位相機或是網路監控攝影機。更進一步而言,第1B圖為根據本發明之一較佳實施例之音訊控制裝置1之詳細方塊示意圖,並且請參照第1B圖所示,其中該影像擷取單元10可設置於一PTZ(Pan-Tilt-Zoom)旋轉雲台11,該旋轉雲台11可帶動影像擷取單元10分別於x方向(Pan)及y方向(Tilt)旋轉,以對準空間中的一目標物oi。該影像擷取單元10對目標物oi擷取影像,並取得關聯於該目標物oi的光學及空間參數,包括:焦距值fi、目標物oi的座標值(xi,yi,zi)、以及目標物oi與影像擷取單元10的所在位置的相對角度值(θxi,θyi)。於本實施例中,可藉由影像擷取單元10之鏡頭組於z方向(Zoom)之光學變焦調整過程,而取得焦距值fi;或者,可藉由影像擷取單元10所包含的影像處理單元(圖中未顯示)之數位變焦處理過程,而取得焦距值fi。並且,於旋轉雲台11旋轉並對準目標物oi的過程中,標定目標物oi的座標值(xi,yi,zi)以及相對角度值(θxi,θyi)。而後,該影像擷取單元10將該等參數傳送至運算單元20。 The image capturing unit 10 can be any image capturing device with a photo or photography function and capable of autofocus, such as a digital camera or a network surveillance camera. Furthermore, FIG. 1B is a detailed block diagram of the audio control device 1 according to a preferred embodiment of the present invention, and please refer to FIG. 1B, in which the image capturing unit 10 can be disposed in a PTZ ( Pan-Tilt-Zoom) the pan-tilt head 11 can drive the image capture unit 10 to rotate in the x-direction (Pan) and y-direction (Tilt), respectively, to align a target o i in space. The image capturing unit 10 captures an image of the target object o i and obtains optical and spatial parameters related to the target object o i , including: a focal length value f i and a coordinate value of the target object o i (x i , y i , z i ), and the relative angle values (θ xi , θ yi ) of the target object o i and the position of the image capturing unit 10. In this embodiment, the focal length value f i can be obtained through the optical zoom adjustment process of the lens group of the image capturing unit 10 in the z direction (Zoom); or, the image included in the image capturing unit 10 can be used The digital zoom processing of the processing unit (not shown in the figure) obtains the focal length value f i . In addition, during the rotation of the pan-tilt head 11 and the alignment of the target o i , the coordinate values (x i , y i , z i ) and relative angle values (θ xi , θ yi ) of the target o i are calibrated. Then, the image capturing unit 10 transmits the parameters to the computing unit 20.

該運算單元20可以是個人電腦中的中央處理器(CPU),或是嵌入式系統的微處理器(MCU),或是更高階的數位信號處理器(DSP)。該運算單元20接收影像擷取單元10所傳送的該等參數,並對其進行計算。其中,係依據光學成像原理,根據焦距值fi計算出目標物oi與影像擷取單元10的實際距離Di。計算完畢後,運算單元20即傳送一控制信號至該控制單元30,使控制單元30執行一對應動作。 The computing unit 20 may be a central processing unit (CPU) in a personal computer, or a microprocessor (MCU) of an embedded system, or a higher-order digital signal processor (DSP). The computing unit 20 receives the parameters sent by the image capturing unit 10 and calculates them. Among them, the actual distance D i of the target object o i and the image capturing unit 10 is calculated according to the focal length value f i according to the principle of optical imaging. After the calculation is completed, the arithmetic unit 20 transmits a control signal to the control unit 30, so that the control unit 30 performs a corresponding action.

請繼續參照第1B圖所示,該控制單元30機械連接於旋轉雲台11,以控制旋轉雲台11的轉動。於本實施例中,該控制單元30可以是一伺服馬達模組,其包括一馬達驅動電路31以及一馬達32。在運作上,因應於運算單元20之控制訊號,馬達驅動電路31產生驅動電流以驅動馬達32,使馬達32帶動旋轉雲台11於x方 向或y方向旋轉,使影像擷取單元10對準空間中的另一目標物ojPlease continue to refer to FIG. 1B. The control unit 30 is mechanically connected to the pan-tilt head 11 to control the rotation of the pan-tilt head 11. In this embodiment, the control unit 30 may be a servo motor module, which includes a motor driving circuit 31 and a motor 32. In operation, in response to the control signal of the arithmetic unit 20, the motor driving circuit 31 generates a driving current to drive the motor 32, which causes the motor 32 to rotate the pan/tilt head 11 in the x direction or the y direction, so that the image capturing unit 10 is aligned with the space Another target in o j .

而後,影像擷取單元10執行相同之實施方式:其對於該另一目標物oj擷取影像,並取得關聯於該目標物oj的焦距值fj、座標值(xj,yj,zj)以及相對角度值(θxj,θyj),並將其傳送至運算單元20。接著,運算單元20根據焦距值fj計算出目標物oj與影像擷取單元10的實際距離Dj。計算完畢後,運算單元20再次傳送一控制信號至該控制單元30,使控制單元30再次控制旋轉雲台11轉動,以帶動影像擷取單元10轉向並對準空間中的另一目標物okThen, the image capturing unit 10 of the embodiment performs the same: to which the other object o j captured image, and associated with the acquired object in focus value o j f j, coordinates (x j, y j, z j ) and relative angle values (θ xj , θ yj ), and transfer them to the arithmetic unit 20. Next, the arithmetic unit 20 according to the focus value f j calculated object distance D j j o and the actual image capturing unit 10. After the calculation is completed, the arithmetic unit 20 sends a control signal to the control unit 30 again, causing the control unit 30 controls the rotation head 11 is rotated again, to drive the image capturing unit 10 is turned and aligned Another object space object o k .

接著,重複以上步驟,直到影像擷取單元10於待測空間中採樣了足夠數量的目標點(已採樣的目標點足夠縝密,並且足夠涵蓋整個空間的各個邊界)。而後,運算單元20根據已採樣的全部目標點{oi}所關聯之距離值{Di}、相對角度值{(θxi,θyi)}以及座標值{(xi,yi,zi)},而計算出待測空間的總容積VTotal。接著,運算單元20計算出:待測空間的總容積VTotal相對於一基準容積VB的比例值R(其中,基準容積VB對應至一基準音訊強度MB),並將比例值R轉譯成一對應之音訊強度控制訊號ST(其表示:音訊強度MT),而傳送至音訊輸出裝置40。 Then, the above steps are repeated until the image capturing unit 10 samples a sufficient number of target points in the space to be measured (the sampled target points are sufficiently meticulous and sufficient to cover the boundaries of the entire space). Then, the arithmetic unit 20 calculates the distance value {D i }, the relative angle value {(θ xi , θ yi )} and the coordinate value {(x i , y i , z) according to all the sampled target points {o i } i )}, and calculate the total volume V Total of the space to be measured. Then, the computing unit 20 calculates: a ratio R of the total volume V Total of the space to be measured relative to a reference volume V B (where the reference volume V B corresponds to a reference audio intensity M B ), and translates the ratio R A corresponding audio intensity control signal S T (which means: audio intensity M T ) is sent to the audio output device 40.

請繼續參照第1B圖,該音訊輸出裝置40包括一放大器41以及一揚聲器42。放大器41接收該音訊強度控制訊號ST,並因應於該音訊強度控制訊號ST,而輸出對應之放大訊號,以驅動該揚聲器42輸出強度為MT之音訊。藉上述的實施方式,該揚聲器42所輸出之音訊,其強度能夠被控制在MT,而能夠適合於具有容積VTotal之待測空間,避免音量過大或不足。 Please continue to refer to FIG. 1B. The audio output device 40 includes an amplifier 41 and a speaker 42. Audio amplifier 41 receives the intensity control signal S T, and in response to the strength of the audio control signal S T, and the output corresponding to the amplified signal to drive the speaker 42 to audio output intensity of M T. With the above-mentioned embodiment, the intensity of the audio output from the speaker 42 can be controlled at M T , and can be adapted to the space to be measured with the volume V Total to avoid excessive or insufficient volume.

第2A圖至第2F圖為根據本發明之一較佳實施例之影像擷取裝置掃描目標物之示意圖,以下請同時搭配參照第1A圖及第1B圖,首先參照第2A圖所示,控制單元30可控制旋轉雲台11轉向,使其帶動影像擷取單元10於一起始位置對準待測空間中第一個目標物o1。具體而言,係以x-y-z座標原點為基準點,影像擷取單元10於x方向順時針旋轉一角度θx1,並於y方向朝上旋轉一角度 θy1,以此旋轉角度值(θx1,θy1)為起始位置,而對準目標物o1,同時,標定目標物o1的座標值(x1,y1,z1)。並且,於z方向調整焦距,使影像擷取單元10於一焦距值f1時,能夠對於目標物o1擷取得清晰之影像。影像擷取單元10並將上述之焦距值f1、以及座標值(x1,y1,z1),傳送至運算單元20。 FIGS. 2A to 2F are schematic diagrams of an image capturing device scanning a target according to a preferred embodiment of the present invention. The following please refer to FIGS. 1A and 1B at the same time. First, refer to FIG. 2A. The unit 30 can control the rotation of the pan-tilt head 11 so that it drives the image capturing unit 10 to be aligned with the first target o 1 in the space to be measured at a starting position. Specifically, taking the origin of the xyz coordinates as a reference point, the image capturing unit 10 rotates clockwise in the x direction by an angle θ x1 , and rotates upward in the y direction by an angle θ y1 , thereby rotating the angle value (θ x1 , Θ y1 ) is the starting position, aiming at the target o 1 , and at the same time, calibrating the coordinate value of the target o 1 (x 1 , y 1 , z 1 ). In addition, the focal length is adjusted in the z direction so that the image capturing unit 10 can capture a clear image of the target object o 1 at a focal length value f 1 . The image capturing unit 10 transmits the above focal length value f 1 and coordinate value (x 1 , y 1 , z 1 ) to the arithmetic unit 20.

運算單元20根據該焦距值f1,利用光學成像原理之物理公式,而計算出目標物o1與影像擷取單元10的實際距離D1。更特定而言,在本實施例中,該目標物o1為位於旋轉角度值(θx1,θy1)的方向上,該影像擷取單元10能夠擷取得對焦清楚影像之最遠距離之目標物。換句話說,實際距離D1為該影像擷取單元10於旋轉角度值(θx1,θy1)的方向上,能夠擷取得到對焦清楚影像之最遠距離。運算單元20並將座標值(x1,y1,z1)、以及上述計算出的距離值D1儲存於一記憶體單元(圖中未顯示)中。 Arithmetic unit 20 based on the focus value f 1, using the physical principle of optical imaging equation, calculated the object O 1 with the image capture unit 1 of the actual distance D 10. More specifically, in this embodiment, the target o 1 is located in the direction of the rotation angle value (θ x1 , θ y1 ), and the image capturing unit 10 can capture the target at the furthest distance of the clearly focused image Thing. In other words, the actual distance D 1 is the longest distance that the image capturing unit 10 can capture in the direction of the rotation angle value (θ x1 , θ y1 ) to obtain a clearly focused image. The arithmetic unit 20 stores the coordinate values (x 1 , y 1 , z 1 ) and the distance value D 1 calculated above in a memory unit (not shown in the figure).

接下來,如第2B圖至第2F圖所示,控制單元30可控制旋轉雲台11帶動影像擷取單元10分別於x方向及y方向繼續進行多次旋轉,以對於待測空間中,位於不同旋轉角度值(θxi,θyi)的方向上的其他目標物oi,進行影像擷取。更特定而言,在本實施例中,各個目標物oi皆為位於旋轉角度值(θxi,θyi)的方向上,該影像擷取單元10能夠擷取得對焦清楚影像之最遠距離之目標物。 Next, as shown in FIGS. 2B to 2F, the control unit 30 can control the pan/tilt head 11 to drive the image capturing unit 10 to continue to rotate in the x direction and the y direction multiple times, so as to locate the space under test Image capture is performed on other targets o i in the direction of different rotation angle values (θ xi , θ yi ). More specifically, in this embodiment, each object o i is located in the direction of the rotation angle value (θ xi , θ yi ), and the image capturing unit 10 can capture the farthest distance of the focused image Target.

其中,如第2B圖所示,影像擷取單元10於x方向順時針旋轉一步徑角度△θ,而於y方向則保持原角度;此時,影像擷取單元10的旋轉角度值(θx2,θy2)=(θx1+△θ,θy1)。接下來,如第2C圖所示,影像擷取單元10於x方向再次順時針旋轉一角度△θ,而於y方向則仍然保持原角度;此時,影像擷取單元10的旋轉角度值(θx3,θy3)=(θx1+2×△θ,θy1)。 Wherein, as shown in FIG. 2B, the image capturing unit 10 rotates clockwise by a step angle Δθ in the x direction, and maintains the original angle in the y direction; at this time, the rotation angle value of the image capturing unit 10 (θ x2 , Θ y2 )=(θ x1 +△θ, θ y1 ). Next, as shown in FIG. 2C, the image capturing unit 10 rotates clockwise again by an angle Δθ in the x direction, and still maintains the original angle in the y direction; at this time, the rotation angle value of the image capturing unit 10 ( θ x3 , θ y3 )=(θ x1 +2×Δθ, θ y1 ).

而後,影像擷取單元10分別對準位於上述兩個旋轉角度值之方向上的最遠距離之目標物o2與o3,並標定其座標值(x2,y2,z2)與(x3,y3,z3)。此外,分別調整其焦距至焦距值f2與f3,以分別擷取得對焦清楚之目標物o2與o3之影像。影像擷取單元10 並將上述之焦距值f2與f3、以及座標值(x2,y2,z2)與(x3,y3,z3)傳送至運算單元20。運算單元20根據上述焦距值f2與f3,以計算出目標物o2以及o3與影像擷取單元10的實際距離D2以及D3,並將上述距離值以及座標值儲存於該記憶體單元(圖中未顯示)中。 Then, the image capturing unit 10 aligns the objects o 2 and o 3 at the farthest distances in the directions of the two rotation angle values, and calibrates their coordinate values (x 2 , y 2 , z 2 ) and ( x 3 ,y 3 ,z 3 ). In addition, the focal lengths are adjusted to focal length values f 2 and f 3 , respectively, to capture images of the clearly focused targets o 2 and o 3 respectively . The image capturing unit 10 transmits the above focal length values f 2 and f 3 , and the coordinate values (x 2 , y 2 , z 2 ) and (x 3 , y 3 , z 3 ) to the arithmetic unit 20. The arithmetic unit 20 based on the focus value F 2 and f 3, to calculate a target O 2, and o 3 with the actual image capturing unit 2 and the distance D 10 D 3, and the distance value and the coordinate value stored in the memory Body unit (not shown).

接下來,如第2D圖至第2F圖所示,控制單元30係控制旋轉雲台11帶動影像擷取單元10於y方向朝下旋轉,並於x方向進行反時針旋轉,而分別於三個不同的旋轉角度值(θx4,θy4),(θx5,θy5)以及(θx6,θy6)的方向上,分別對於最遠距離之目標物o4,o5以及o6擷取對焦清楚之影像。 Next, as shown in FIGS. 2D to 2F, the control unit 30 controls the pan/tilt head 11 to drive the image capturing unit 10 to rotate downward in the y direction and counterclockwise to rotate in the x direction, respectively. Different rotation angle values (θ x4 , θ y4 ), (θ x5 , θ y5 ) and (θ x6 , θ y6 ) are taken for the objects at the longest distance o 4 , o 5 and o 6 respectively Focused image.

其中,如第2D圖所示,影像擷取單元10於y方向朝下旋轉一角度△θ,而於x方向則保持原角度;此時,影像擷取單元10的旋轉角度值(θx4,θy4)=(θx1+2×△θ,θy1-△θ)。接下來,如第2E圖所示,影像擷取單元10於x方向反時針旋轉一角度△θ,而於y方向則保持原角度;此時,影像擷取單元10的旋轉角度值(θx5,θy5)=(θx1+△θ,θy1-△θ)。接下來,如第2F圖所示,影像擷取單元10於x方向再次反時針旋轉一角度△θ,而於y方向則仍然保持原角度;此時,影像擷取單元10的旋轉角度值(θx6,θy6)=(θx1,θy1-△θ)。 Among them, as shown in FIG. 2D, the image capturing unit 10 rotates downward by an angle Δθ in the y direction, and maintains the original angle in the x direction; at this time, the rotation angle value of the image capturing unit 10 (θ x4 , θ y4 )=(θ x1 +2×Δθ, θ y1 -Δθ ). Next, as shown in FIG. 2E, the image capturing unit 10 rotates counterclockwise by an angle Δθ in the x direction, and maintains the original angle in the y direction; at this time, the rotation angle value of the image capturing unit 10 (θ x5 , Θ y5 )=(θ x1 +△θ, θ y1 -△θ). Next, as shown in FIG. 2F, the image capturing unit 10 rotates again counterclockwise by an angle Δθ in the x direction, and still maintains the original angle in the y direction; at this time, the rotation angle value of the image capturing unit 10 ( θ x6 , θ y6 )=(θ x1 , θ y1 -△θ).

而後,影像擷取單元10分別對於目標物o4,o5以及o6擷取得到對焦清楚之影像,其焦距值分別為f4、f5以及f6。並且,分別標定出,目標物o4、o5以及o6的座標值(x4,y4,z4)、(x5,y5,z5)與(x6,y6,z6)。運算單元20並根據上述焦距值,分別計算出目標物o4、o5以及o6與影像擷取單元10的實際距離D4、D5以及D6。而後,將上述距離值以及座標值儲存於該記憶體單元(圖中未顯示)中。 Then, the image capturing unit 10 captures images in focus for the objects o 4 , o 5 and o 6 respectively, and the focal length values are f 4 , f 5 and f 6 respectively . And were calibrated out, the object o 4, o 5 and o the coordinate value of 6 (x 4, y 4, z 4), (x 5, y 5, z 5) and (x 6, y 6, z 6 ). The arithmetic unit 20 calculates the actual distances D 4 , D 5 and D 6 of the target objects o 4 , o 5 and o 6 from the image capturing unit 10 according to the above focal length values. Then, the above distance value and coordinate value are stored in the memory unit (not shown in the figure).

特別注意的是,於本發明之另一實施例中,目標物oi的x-y-z直角座標系的座標值(xi,yi,zi),其亦可由球面極座標系的座標值(θxi,θyi,Di)換算而得到。 In particular, in another embodiment of the present invention, the coordinate value (x i , y i , z i ) of the xyz rectangular coordinate system of the target object o i can also be determined by the coordinate value of the spherical polar coordinate system (θ xi , Θ yi , D i ).

依照上述第2A圖至第2F圖所示之實施方式,以此類推,影像擷取單元10於待測空間中,由一起始位置,沿著一預定軌跡進行掃描,並對於該軌跡上的目標物oi擷取影像。於本實施例 中,該軌跡為反向之「S形」;並且,於第2A圖至第2F圖所示之實施方式中,影像擷取單元10所掃描過的一個片段軌跡,其為反向之「S形」的上半段,如第3A圖所示。 According to the embodiments shown in FIGS. 2A to 2F above, and so on, the image capturing unit 10 scans along a predetermined trajectory from a starting position in the space to be measured, and targets the target on the trajectory Object o i capture image. In this embodiment, the trajectory is a reverse "S shape"; and, in the embodiment shown in FIGS. 2A to 2F, a segment trajectory scanned by the image capturing unit 10 is the reverse The upper half of the "S shape" is shown in Figure 3A.

第3A圖至第3D圖為根據本發明之一較佳實施例之定義錐狀體之示意圖,其中,首先參照第3A圖所示,運算單元20係根據該片段軌跡上所掃描過的六個目標物o1至o6之所在位置,以及影像擷取單元10所在位置p0,定義出複數個錐狀體(於本實施例中,可定義出兩個相鄰之四角錐體)。運算單元20並可根據各個目標物的座標值(x1,y1,z1)至(x6,y6,z6)、其與影像擷取單元10的實際距離D1至D6,以及影像擷取單元10的步徑旋轉角度值△θ,計算出該等錐狀體個別的體積。 FIGS. 3A to 3D are schematic diagrams of defining a cone according to a preferred embodiment of the present invention, wherein, referring first to FIG. 3A, the arithmetic unit 20 is based on the six scanned The positions of the objects o 1 to o 6 and the position p 0 of the image capturing unit 10 define a plurality of cones (in this embodiment, two adjacent quadrangular pyramids may be defined). The arithmetic unit 20 can be based on the coordinate values (x 1 , y 1 , z 1 ) to (x 6 , y 6 , z 6 ) of each target, and its actual distance D 1 to D 6 from the image capturing unit 10, And the step rotation angle value Δθ of the image capturing unit 10 calculates the individual volumes of the cones.

承上所述,請再參照第3B圖,係選取相鄰的四個目標物o1、o2、o5以及o6,並以其所在位置連線而成的四邊形QAD1為底面,輔以影像擷取單元10所在位置p0為頂點,可定義出一四角錐體PYR1。並且,運算單元20可計算出四邊形QAD1的長度L1與寬度W1,以及四角錐體PYR1的高度H1,進而計算出四角錐體PYR1的體積V1。其中:

Figure 107105891-A0101-12-0009-1
As mentioned above, please refer to Figure 3B again, select four adjacent objects o 1 , o 2 , o 5 and o 6 , and use the quadrilateral QAD 1 connected by their locations as the bottom surface, supplemented by Taking the position p 0 of the image capturing unit 10 as the vertex, a quadrangular pyramid PYR 1 can be defined. Further, the arithmetic unit 20 can calculate a quadrangle QAD length L 1 of a width W 1, and tetrapod PYR height H 1 of 1, then calculate the volume V 1 tetrapod PYR 1. among them:
Figure 107105891-A0101-12-0009-1

Figure 107105891-A0101-12-0009-2
Figure 107105891-A0101-12-0009-2

H 1=D 1×(cos△θ)2 H 1 = D 1 ×(cos△ θ ) 2

Figure 107105891-A0101-12-0009-3
Figure 107105891-A0101-12-0009-3

於本發明之另一實施例中,亦可用目標物的座標值計算出四邊形QAD1的長度L1與寬度W1。其中:L 1=y 1-y 6 In another embodiment of the present invention, the length L 1 and width W 1 of the quadrilateral QAD 1 can also be calculated using the coordinate values of the target. Where: L 1 = y 1 - y 6

W 1=x 2-x 1 W 1 = x 2 - x 1

同樣的,於第3C圖中,係選取相鄰的四個目標物o2、o3、o4以及o5,並以其所在位置連線而成的四邊形QAD2為底面,輔以影像擷取單元10所在位置p0為頂點,可定義出一四角錐體PYR2。並且,運算單元20可計算出四邊形QAD2的長度L2與寬度W2,以及四角錐體PYR2的高度H2,進而計算出四角錐體PYR2的體積V2。其中:

Figure 107105891-A0101-12-0010-4
Similarly, in Figure 3C, four adjacent objects o 2 , o 3 , o 4 and o 5 are selected , and the quadrilateral QAD 2 connected by their positions is used as the bottom surface, supplemented by image capture Taking the position p 0 of the unit 10 as the vertex, a quadrangular pyramid PYR 2 can be defined. Further, the arithmetic unit 20 can calculate the length L 2 QAD quadrilateral with a width W 2, and tetrapod-2 PYR height H 2 2, and then calculate the volume V 2 PYR tetrapod 2. among them:
Figure 107105891-A0101-12-0010-4

Figure 107105891-A0101-12-0010-5
Figure 107105891-A0101-12-0010-5

H 2=D 2×(cos△θ)2 H 2 = D 2 ×(cos△ θ ) 2

Figure 107105891-A0101-12-0010-6
Figure 107105891-A0101-12-0010-6

於本發明之另一實施例中,亦可用目標物的座標值計算出四邊形QAD2的長度L2與寬度W2。其中:L 2=y 2-y 5 In another embodiment of the invention, the length L 2 and width W 2 of the quadrilateral QAD 2 can also be calculated using the coordinate values of the target. Where: L 2 = y 2 - y 5

W 2=x 3-x 2 W 2 = x 3 - x 2

而後,運算單元20將上述兩個四角錐體的體積V1與V2相加,得到的總體積VTotal即等於:如第3D圖所示之,部分空間SPC之總容積。其中,該部分空間SPC,其係以所掃描過的片段軌跡定義一底面,輔以影像擷取單元10所在位置p0為頂點,所定義而成。 Then, the arithmetic unit 20 adds the volumes V 1 and V 2 of the two quadrangular pyramids, and the resulting total volume V Total is equal to: as shown in FIG. 3D, the total volume of the partial space SPC. Wherein, the partial space SPC is defined by the scanned segment trajectory defining a bottom surface, supplemented by the position p 0 where the image capturing unit 10 is located as a vertex.

第4A圖至第4C圖為根據本發明之其他實施例之掃描軌跡形式之示意圖,承上所述,並首先參照第4A圖所示,於本實施例中,控制單元30更可控制旋轉雲台11帶動影像擷取單元10進一步的旋轉,使得影像擷取單元10掃描過的軌跡能夠涵蓋整個待測空間的所有邊界。(其中,影像擷取單元10係以一旋轉角度△θ 為步徑徑距,而對於軌跡上的所有目標物oi進行掃描)。 FIGS. 4A to 4C are schematic diagrams of scanning trajectory forms according to other embodiments of the present invention. As described above, and referring first to FIG. 4A, in this embodiment, the control unit 30 can further control the rotating cloud The table 11 drives the image capturing unit 10 to further rotate, so that the trajectory scanned by the image capturing unit 10 can cover all boundaries of the entire space to be measured. (Among them, the image capturing unit 10 takes a rotation angle Δθ as the step diameter, and scans all the objects o i on the track).

同樣的,而後,於該軌跡上選取相鄰四個目標物oi,將其連線成一底面,輔以影像擷取單元10所在位置p0為頂點,而定義一錐狀體,再由運算單元20計算出該錐狀體之體積。接下來,再依序選取其他相鄰的四個目標物而定義另一底面,輔以p0為頂點,而定義另一錐狀體。重複上述實施方式,以定義出所有的錐狀體,並計算個別錐狀體的體積Vi。最後,將所有錐狀體的體積Vi相加,得到的總體積VTotal即為整個待測空間的總體積。 Similarly, then, select four adjacent objects o i on the trajectory, connect them into a bottom surface, supplemented by the position p 0 of the image capturing unit 10 as the vertex, and define a cone, and then calculate Unit 20 calculates the volume of the cone. Next, select four other adjacent objects in sequence to define another bottom surface, supplemented by p 0 as a vertex, and define another cone. Repeat the above embodiment to define all the cones and calculate the volume V i of the individual cones. Finally, the volumes V i of all the cones are added, and the total volume V Total obtained is the total volume of the entire space to be measured.

也就是說,於第4A圖中,當掃描軌跡涵蓋整個待測空間的所有邊界,軌跡上的目標物oi亦遍布整個待測空間的所有邊界。因此,所定義出的全部錐狀體,即填滿整個待測空間;換句話說,第3D圖所示的部分空間SPC,即擴大為整個待測空間。此時,所有錐狀體之體積總和VTotal,其即為整個待測空間的總容積。 That is to say, in Figure 4A, when the scanning trajectory covers all boundaries of the entire space to be measured, the target o i on the trajectory also spreads over all boundaries of the entire space to be measured. Therefore, all the defined cones fill up the entire space to be measured; in other words, the partial space SPC shown in FIG. 3D expands to the entire space to be measured. At this time, the total volume of all cones, V Total , is the total volume of the entire space to be measured.

本發明不限於以「S形」軌跡對於待測空間進行掃描;控制單元30亦可控制影像擷取單元10以其他方式轉動,使其以其他形式之軌跡進行掃描,只要這些形式的掃描軌跡足以涵蓋整個待測空間的所有邊界,並且掃描軌跡足夠縝密(軌跡上的目標物oi的取樣密度足夠),都可被採用。如第4B圖所示,於本發明的另一實施例中,影像擷取單元10可採用「Z形」掃描軌跡。此外,如第4C圖所示,於本發明的又一實施例中,影像擷取單元10可用「螺旋形」掃描軌跡。 The present invention is not limited to scanning the space to be measured with "S-shaped"trajectories; the control unit 30 can also control the image capturing unit 10 to rotate in other ways so that it can scan with other types of trajectories, as long as these types of scanning trajectories are sufficient Covering all the boundaries of the entire space to be measured, and the scanning trajectory is sufficiently meticulous (the sampling density of the target object o i on the trajectory is sufficient) can be used. As shown in FIG. 4B, in another embodiment of the present invention, the image capturing unit 10 may use a "Z-shaped" scanning trajectory. In addition, as shown in FIG. 4C, in still another embodiment of the present invention, the image capturing unit 10 may use a “spiral” scanning trajectory.

第4D圖至第4E圖為根據本發明之其他實施例之錐狀體定義方式之示意圖。如第4D圖至第4E圖所示,本發明亦不限於:選取軌跡上的相鄰四個目標物oi連線形成一底面,而定義四角錐體為單位。其中,如第4D圖所示,於本發明的另一實施例中,亦可選取軌跡上的相鄰三個目標物oi,連線成三角形作為底面,而定義一個三角錐體為體積計算單位。此外,於本發明的其他實施例中,亦可選取軌跡上的相鄰N個目標物oi,連線成多邊形(其中,N>4)作為底面,而定義一個多角錐體為體積計算單位。例如,如第4E圖所示,可選取軌跡上的相鄰六個目標物oi,連線成六角形作為底 面,而定義一個六角錐體為單位。 FIGS. 4D to 4E are schematic diagrams of a method of defining a cone according to other embodiments of the present invention. As shown in FIGS. 4D to 4E, the present invention is not limited to: selecting four adjacent objects o i on the track to form a bottom surface, and defining a quadrangular pyramid as a unit. Among them, as shown in FIG. 4D, in another embodiment of the present invention, three adjacent objects o i on the trajectory can also be selected, connected as a triangle as the bottom surface, and a triangular pyramid is defined as the volume calculation unit. In addition, in other embodiments of the present invention, adjacent N targets o i on the trajectory can also be selected, connected as a polygon (where N>4) as the bottom surface, and a polygonal pyramid is defined as the volume calculation unit . For example, as shown in Fig. 4E, six adjacent objects o i on the trajectory can be selected, the line is formed into a hexagon as the bottom surface, and a hexagonal cone is defined as a unit.

此外,本發明所欲測量容積之空間,其不限於具有邊界之封閉空間。於本發明之其他實施例中,亦可對於開放空間之容積進行計算。由於,開放空間不具有明顯之邊界,於此實施例中,影像擷取裝置並非對於邊界上的實體目標物進行掃描;於此實施例中,影像擷取單元10係於各個旋轉角度值的方向上,分別調整其焦距值fi,以達到最大景深,而擷取得最遠距離之對焦清楚影像。換句話說,影像擷取單元10並非對於實體之目標物擷取影像,而是於該旋轉角度值的方向上,將焦距值fi拉至最大景深。而後,運算單元20根據此焦距值fi計算出最遠距離Di,並以該距離Di定義一定位點pi,而將該定位點pi設定為一虛擬目標物oi,以進行如第2A圖至2F圖,第3A圖至3D圖,以及第4A圖至4E圖所示之實施方式。 In addition, the volume of the volume to be measured by the present invention is not limited to a closed space with a boundary. In other embodiments of the present invention, the volume of the open space can also be calculated. Since the open space does not have a clear boundary, in this embodiment, the image capturing device does not scan the physical target on the boundary; in this embodiment, the image capturing unit 10 is in the direction of each rotation angle value On the above, adjust the focal length value f i to achieve the maximum depth of field, and capture the clearest image at the farthest distance. In other words, the image capturing unit 10 does not capture an image of a solid target, but pulls the focal length value f i to the maximum depth of field in the direction of the rotation angle value. Then, the arithmetic unit 20 based on this focus value f i is calculated the maximum distance D i, D i and in that the distance a defined setpoint p i, p i and the anchor point is set to a virtual object o i, for Embodiments shown in FIGS. 2A to 2F, FIGS. 3A to 3D, and FIGS. 4A to 4E.

運算單元20計算出待測空間之總容積VTotal之後,以一預設基準容積VB為基準,將總容積VTotal換算成一比例值R,其中:

Figure 107105891-A0101-12-0012-7
After the computing unit 20 calculates the total volume V Total of the space to be measured, the total volume V Total is converted into a proportional value R based on a preset reference volume V B , where:
Figure 107105891-A0101-12-0012-7

由於,該基準容積VB對應至一基準音訊強度MB;因此,根據比例值R,可轉譯(例如,以查表之方式)成對應之音訊強度控制訊號ST,其表示音訊強度MT。其中,該音訊強度MT對應至該總容積VTotal。而後,運算單元20將該音訊強度控制訊號sT傳送至該音訊輸出裝置40的該放大器41,使該放大器41輸出對應之放大訊號,以驅動該揚聲器42輸出強度為MT之音訊。 Since the reference volume V B corresponds to a reference audio intensity M B ; therefore, according to the proportional value R, it can be translated (for example, by means of a lookup table) into a corresponding audio intensity control signal S T , which represents the audio intensity M T . Wherein, the audio intensity M T corresponds to the total volume V Total . Then, the arithmetic unit 20 controls the intensity of the audio signal s T transmitted to the amplifier 41 of the audio output device 40, the amplification of the signal corresponding to the output of the amplifier 41 to drive the audio speaker 42 of the output intensity of M T.

於本發明之另一實施例中,可設定一強度上限值,將揚聲器42所輸出之音訊強度限制在該上限值之內,以保護揚聲器42免於輸出過大之強度而受損。於本實施例中,係設定一預設臨界值Rmax,其對應至揚聲器42能夠承受之最大音訊強度Mmax。運算單元20在計算出待測空間之總容積VTotal,以及其相對於預設基準容積VB之比例值R後,將比例值R與預設臨界值Rmax進行比較。 若比例值R小於預設臨界值Rmax,表示該比例值R對應之音訊強度MT屬於揚聲器42能夠承受之範圍之內;則驅動揚聲器42輸出具有音訊強度MT之音訊。反之,若比例值R大於或等於預設臨界值Rmax,則表示該比例值R對應之音訊強度MT超過揚聲器42能夠承受之範圍;此時,則對應於預設臨界值Rmax,以驅動揚聲器42輸出具有音訊強度Mmax之音訊,以保護揚聲器42不致受損。 In another embodiment of the present invention, an intensity upper limit value may be set to limit the audio intensity output by the speaker 42 within the upper limit value, so as to protect the speaker 42 from damage due to excessive output intensity. In this embodiment, a predetermined threshold value R max is set , which corresponds to the maximum audio intensity M max that the speaker 42 can withstand. After calculating the total volume V Total of the space to be measured and its proportional value R with respect to the preset reference volume V B, the arithmetic unit 20 compares the proportional value R with the preset critical value R max . If the ratio R is less than the predetermined threshold value R max, it represents the intensity of the audio corresponding to the ratio value R M T are within the scope of the speaker 42 can withstand; output from the speaker 42 the audio driver with audio intensity of M T. Conversely, if the ratio value R is greater than or equal to a preset threshold value R max, it indicates that the value of ratio R M T corresponding to the audio strength able to withstand more than the range of the loudspeaker 42; in this case, corresponds to a preset threshold value R max, to The speaker 42 is driven to output audio with an audio intensity M max to protect the speaker 42 from damage.

第5A圖至第5B圖、第6圖以及第7圖為根據本發明之一較佳實施例之音訊控制方法之流程示意圖。首先,請參照第5A圖,於步驟501中,以相對於x-y-z座標的原點之起始旋轉角度值(θx1,θy1)之方向上,從基準位置p0對準待測空間中的第一目標物o1,並對該第一目標物o1擷取影像。並調整焦距至焦距值f1,以得到清楚對焦之影像。其中,第一目標物o1位於一預設掃描軌跡之起始位置上。 5A to 5B, 6 and 7 are flow charts of an audio control method according to a preferred embodiment of the present invention. First, please refer to FIG. 5A. In step 501, the initial rotation angle value (θ x1 , θ y1 ) relative to the origin of the xyz coordinate is aligned from the reference position p 0 in the space to be measured. The first target o 1 , and capture an image of the first target o 1 . And adjust the focal length to the focal length value f 1 to get a clear focus image. Wherein, the first target object o 1 is located at the starting position of a predetermined scanning track.

接下來,於步驟502中,標定第一目標物o1之座標值(x1,y1,z1)。並且,根據於步驟501中所調整得之該焦距值f1,計算第一目標物o1與基準位置p0的實際距離D1。並且,儲存上述座標值(x1,y1,z1)以及距離值D1Next, in step 502, the coordinate value (x 1 , y 1 , z 1 ) of the first target object o 1 is calibrated. And, based on the focal length value f 1 adjusted in step 501, the actual distance D 1 of the first target object o 1 and the reference position p 0 is calculated. In addition, the above coordinate values (x 1 , y 1 , z 1 ) and the distance value D 1 are stored.

接下來,於步驟503中,沿x方向以步徑角度△θ為單位遞增,使旋轉角度值調整為(θx1+△θ,θy1),而對準待測空間中的另一目標物o2。並且,調整焦距至焦距值f2,以得到目標物o2之清楚對焦影像。其中,目標物o2位於該預設掃描軌跡之第二位置上。 Next, in step 503, the step angle Δθ is incremented along the x direction to adjust the rotation angle value to (θ x1 + Δθ, θ y1 ), while aligning with another target in the space to be measured o 2 . In addition, the focal length is adjusted to a focal length value f 2 to obtain a clearly focused image of the target o 2 . Wherein, the target object o 2 is located at the second position of the preset scanning trajectory.

接下來,於步驟504中,標定第二目標物o2之座標值(x2,y2,z2)。並且,根據於步驟503中所調整得之該焦距值f2,計算第二目標物o2與基準位置p0的實際距離D2。並且,儲存上述座標值(x2,y2,z2)以及距離值D2Next, in step 504, the coordinate value (x 2 , y 2 , z 2 ) of the second target object o 2 is calibrated. And, based on the focal length value f 2 adjusted in step 503, the actual distance D 2 of the second target object o 2 and the reference position p 0 is calculated. In addition, the above coordinate values (x 2 , y 2 , z 2 ) and the distance value D 2 are stored.

接下來,於步驟505中,判斷沿x方向遞增而調整得之旋轉角度值,是否達到x方向之向右可旋轉之最大角度值。 Next, in step 505, it is determined whether the value of the rotation angle adjusted incrementally in the x direction has reached the maximum value of the right angle of rotation in the x direction.

若未達到x方向之向右可旋轉之最大角度值,則回到步驟503,沿x方向繼續以步徑角度△θ遞增,使旋轉角度值調整為 (θx1+2×△θ,θy1),而對準待測空間中的另一目標物o3。並且,調整焦距至焦距值f3,以得到目標物o3之清楚對焦影像。而後,於步驟504,標定目標物o3之座標值(x3,y3,z3),並計算目標物o3之實際距離D3If the maximum angle value that can be rotated to the right in the x direction is not reached, return to step 503 and continue to increase the step angle Δθ in the x direction to adjust the rotation angle value to (θ x1 +2×Δθ, θ y1 ) While aiming at another target o 3 in the space to be measured. In addition, the focal length is adjusted to a focal length value f 3 to obtain a clearly focused image of the target o 3 . Then, in step 504, the coordinate value (x 3 , y 3 , z 3 ) of the target object o 3 is calibrated, and the actual distance D 3 of the target object o 3 is calculated.

若已經達到x方向之向右可旋轉之最大角度值,則於步驟506中,沿另一座標軸增加(或減少)一個步徑角度△θ。例如:若已經達到x方向之向右可旋轉之最大角度值θx1+Nmax×△θ,則沿y方向減少一個步徑角度△θ,使旋轉角度值調整為(θx1+Nmax×△θ,θy1-△θ),而對準待測空間中,位於該旋轉角度值之方向上的目標物。並且,調整焦距,以得到該目標物之清楚對焦影像。而後,於步驟507,標定該目標物之座標值,並計算該目標物之實際距離。 If the maximum angle of rotation in the x direction to the right has been reached, in step 506, a step angle Δθ is increased (or decreased) along the other coordinate axis. For example: if the maximum angle value θ x1 +N max ×Δθ that can be rotated to the right in the x direction has been reached, then reduce the step angle Δθ in the y direction to adjust the rotation angle value to (θ x1 +N max × △θ, θ y1 -△θ), and aim at the target in the direction of the rotation angle value in the space to be measured. Also, adjust the focal length to get a clear image of the target. Then, in step 507, the coordinate value of the target is calibrated, and the actual distance of the target is calculated.

完成步驟507之後,接著,於步驟508中,沿著與步驟503中相同之座標軸,以步徑角度△θ為單位,進行反向之旋轉。例如:沿x方向以步徑角度△θ遞減,使旋轉角度值調整為(θx1+(Nmax-1)×△θ,θy1-△θ),而對準待測空間中,位於該旋轉角度值之方向上的目標物。並且,調整焦距,以得到該目標物之清楚對焦影像。而後,於步驟509中,標定該目標物之座標值,並計算該目標物之實際距離。 After completing step 507, next, in step 508, reverse rotation is performed along the same coordinate axis as in step 503, with the step angle Δθ as the unit. For example: decrease the step angle Δθ in the x direction, adjust the rotation angle value to (θ x1 +(N max -1)×Δθ, θ y1 -Δθ ), and align it in the space to be measured The target in the direction of the rotation angle value. Also, adjust the focal length to get a clear image of the target. Then, in step 509, the coordinate value of the target object is calibrated, and the actual distance of the target object is calculated.

接下來,於步驟510中,判斷沿x方向遞減而調整得到之旋轉角度值,是否達到x方向之向左可旋轉之最大角度值。 Next, in step 510, it is determined whether the value of the rotation angle adjusted by decreasing in the x direction reaches the maximum value of the left angle of the x direction that can be rotated to the left.

若未達到x方向之向左可旋轉之最大角度值,則回到步驟508,沿x方向繼續以步徑角度△θ遞減,使旋轉角度值調整為(θx1+(Nmax-2)×△θ,θy1-△θ),而對準待測空間中,位於該旋轉角度值之方向上的目標物。並且,調整焦距,以得到該目標物之清楚對焦影像。而後,於步驟509中,標定該目標物之座標值,並計算該目標物之實際距離。 If the maximum angle of rotation to the left in the x direction is not reached, return to step 508 and continue to decrease the step angle Δθ in the x direction to adjust the rotation angle value to (θ x1 +(N max -2)× △θ, θ y1 -△θ), and aim at the target in the direction of the rotation angle value in the space to be measured. Also, adjust the focal length to get a clear image of the target. Then, in step 509, the coordinate value of the target object is calibrated, and the actual distance of the target object is calculated.

若已經達到x方向之向左可旋轉之最大角度值,則於步驟511中,沿另一座標軸增加(或減少)一個步徑角度△θ。例如,若已回到x軸之起始角度值θx1,則沿y方向減少一個步徑角度△θ,使旋轉角度值調整為(θx1,θy1-2×△θ),而對準待測空間中,位 於該旋轉角度值之方向上的目標物。並且,調整焦距,以得到該目標物之清楚對焦影像。而後,於步驟512中,標定該目標物之座標值,並根據焦距值計算該目標物之實際距離。 If the maximum angle of rotation to the left in the x direction has been reached, in step 511, a step angle Δθ is increased (or decreased) along the other coordinate axis. For example, if it has returned to the initial angle value θ x1 of the x-axis, then reduce the step angle Δθ in the y direction to adjust the rotation angle value to (θ x1 , θ y1 -2×Δθ), and align The target in the direction of the rotation angle value in the space to be measured. Also, adjust the focal length to get a clear image of the target. Then, in step 512, the coordinate value of the target object is calibrated, and the actual distance of the target object is calculated according to the focal length value.

接下來,於步驟513中,判斷沿y方向遞減而調整得之旋轉角度值,是否達到y方向之向下可旋轉之最大角度值。 Next, in step 513, it is determined whether the value of the rotation angle adjusted by decreasing in the y direction reaches the maximum value of the angle of rotation downward in the y direction.

若未達到y方向之向下可旋轉之最大角度值,則回到步驟503,沿x方向繼續以步徑角度△θ遞增,使旋轉角度值調整為(θx1+△θ,θy1-2×△θ)。而後,重複執行504至512之步驟。 If it does not reach the maximum value of the downward rotatable angle in the y direction, return to step 503 and continue to increase the step angle Δθ in the x direction to adjust the rotation angle value to (θ x1 +Δθ, θ y1 -2 ×△θ). Then, repeat steps 504 to 512.

若已經達到y方向之向下可旋轉之最大角度值(例如:θy1-Nmax×△θ),則表示整個預設軌跡已經掃描完畢。 If the maximum angle value that can be rotated downward in the y direction has been reached (for example: θ y1 -N max ×Δθ), it means that the entire preset trajectory has been scanned.

特別注意的是,於本實施例中,501至513之步驟係掃描「S形」之軌跡,然而本發明不限於此。於本發明的其他實施例中,亦可採用其他形式的掃描軌跡,例如:可採用「Z形」之軌跡,或「螺旋形」之軌跡。 In particular, in this embodiment, steps 501 to 513 scan the "S-shaped" trajectory, but the invention is not limited to this. In other embodiments of the present invention, other forms of scanning trajectories may also be used, for example, "Z-shaped" trajectories or "spiral-shaped" trajectories may be used.

對於預設軌跡上的所有目標物oi掃描完畢後,接下來,則執行601至605之步驟,以進一步計算待測空間的總容積。請參照第6圖,於步驟601中,將位於501至513之步驟所掃描過之軌跡上的所有目標物{oi},區分成複數個群組。其中,每個群組包含相鄰四個目標物oj。特別注意的是,於此實施例中,係將所有目標物{oi}等分而區分,使得每個群組包含相同數量的目標物oj。然而本發明不限於此;於本發明之其他實施例中,亦可採用不等分之區分方法,使得每個群組包含之目標物oj數量不同。 After all the objects o i on the preset trajectory are scanned, next, steps 601 to 605 are performed to further calculate the total volume of the space to be measured. Referring to FIG. 6, in step 601, all the objects {o i } located on the trajectory scanned in steps 501 to 513 are divided into a plurality of groups. Each group contains four adjacent objects o j . In particular, in this embodiment, all target objects {o i } are divided equally, so that each group contains the same number of target objects o j . However, the present invention is not limited thereto; In other embodiments of the present invention, the method can also be employed to distinguish between varying points, so that each object group contains the number o different from j.

接下來,於步驟602中,針對每一個群組,於該群組內,以所包括的四個目標物oj連線而成為一個四邊形,並以該四邊形為底面,輔以基準位置p0為頂點,而定義出一個四角錐體。 Next, in step 602, for each group, within the group, four included objects o j are connected to form a quadrilateral, and the quadrilateral is used as the bottom surface, supplemented by the reference position p 0 For the vertex, define a quadrangular pyramid.

接下來,於步驟603中,根據四個目標物oj每一者的實際距離Dj以及座標值(xj,yj,zj),以及步驟503,步驟506,步驟508及步驟511中的步徑角度值△θ,可計算出四邊形的長度L與寬度W,以及四角錐體的高度H。並進而計算出四角錐體的體積V。 Next, in step 603, according to the actual distance D j and the coordinate value (x j , y j , z j ) of each of the four target objects o j , and in step 503, step 506, step 508, and step 511 The step angle value Δθ can calculate the length L and width W of the quadrilateral and the height H of the quadrangular pyramid. And then calculate the volume V of the pyramid.

接下來,於步驟604中,判斷是否已經對全部的群組 執行過,如步驟602與步驟603中的動作;定義四角錐體,以及計算四角錐體之體積V。 Next, in step 604, it is determined whether all groups have been Performed, such as the actions in steps 602 and 603; defining the pyramid and calculating the volume V of the pyramid.

若尚未執行全部的群組,則回到步驟602,對於尚未執行的另一群組的目標點,定義四角錐體;並到步驟603,計算四角錐體之體積V。 If all the groups have not been executed, return to step 602 to define a quadrangular pyramid for the target point of another group that has not been executed; and to step 603, calculate the volume V of the quadrangular pyramid.

若已經執行全部的群組,接下來,於步驟605,將全部四角錐體的體積V加總,而得到一總體積,其即為待測空間的總容積VTotalIf all groups have been executed, next, in step 605, the volume V of all the pyramids is added to obtain a total volume, which is the total volume V Total of the space to be measured.

特別注意的是,於本實施例中,每個群組包括四個目標物,而連線成為一個四邊形的底面。然而,本發明不限於此。於本發明的其他實施例中,每個群組亦可包括其他數量的目標物。例如,每個群組可包括三個目標物,而連線成為一個三角形的底面,並進而定義出一個三角錐體。又例如,每個群組可包括六個目標物,而連線成為一個六角形的底面,並進而定義出一個六角錐體。 In particular, in this embodiment, each group includes four targets, and the line becomes a quadrilateral bottom. However, the present invention is not limited to this. In other embodiments of the present invention, each group may also include other numbers of targets. For example, each group may include three targets, and the line becomes the base of a triangle, which in turn defines a triangle cone. For another example, each group may include six targets, and the line becomes a hexagonal bottom surface, and then a hexagonal cone is defined.

計算出待測空間的總容積VTotal之後,接下來,執行步驟701至706,以輸出對應於總容積VTotal之音訊強度MT的音訊。 After the calculation of the total volume of the space V Total tested, Next, step 701 to 706 to output audio corresponding to the audio of the total volume V Total intensity of M T.

請參照第7圖,於步驟701中,首先,設定一預設基準容積VB,其對應至一基準音訊強度MBPlease refer to FIG. 7, in step 701, first, a preset reference volume V B is set , which corresponds to a reference audio intensity M B.

接下來,於步驟702中,計算該待測空間總容積VTotal相對於該預設基準容積VB的比例值R。其中,R=VTotal/VB Next, in step 702, a ratio R of the total volume V Total of the space to be measured with respect to the preset reference volume V B is calculated. Among them, R=V Total /V B

於本實施例中,可預先建立一對照查詢表(look up table,LUT),其包含不同比例值與音訊強度之間的對應關係。並可用查表的方式,找出該比例值R所對應的音訊強度MTIn this embodiment, a look-up table (LUT) can be created in advance, which includes the correspondence between different ratio values and audio intensity. In addition, the audio intensity M T corresponding to the ratio R can be found by looking up the table.

接下來,於步驟703中,設定一預設臨界值Rmax,其對應至一最大音訊強度Mmax。其中,該最大音訊強度Mmax為揚聲器能承受之最大強度。而後,比較該比例值R與該預設臨界值Rmax的大小。 Next, in step 703, a predetermined threshold value R max is set , which corresponds to a maximum audio intensity M max . Wherein, the maximum audio intensity M max is the maximum intensity that the speaker can bear. Then, compare the ratio R with the preset threshold R max .

接下來,於步驟704中,判斷上述比較結果。若比例 值R大於或等於該預設臨界值Rmax,則於步驟705中,輸出具有音訊強度Mmax之音訊,以保護揚聲器不致受損。 Next, in step 704, the comparison result is determined. If the ratio R is greater than or equal to the predetermined threshold R max , then in step 705, the audio with the audio intensity M max is output to protect the speaker from damage.

若比例值R小於該預設臨界值Rmax,則於步驟706中,輸出具有音訊強度MT之音訊,以適用於具有總容積VTotal之待測空間。 If the proportional value R is less than the preset critical value R max , then in step 706, the audio with the audio intensity M T is output to be suitable for the space to be measured with the total volume V Total .

本發明符合發明專利之要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,自不能以此限制本案之申請專利範圍。舉凡熟悉本案技藝之人士,爰依本案發明精神所作之等效修飾或變化,皆應包括於以下之申請專利範圍內。 This invention meets the requirements of the invention patent, and the patent application is filed in accordance with the law. However, the above are only the preferred embodiments of the present invention, and thus cannot limit the scope of patent application in this case. Anyone who is familiar with the skills of this case and equivalent modifications or changes made in accordance with the spirit of the invention of this case should be included in the scope of the following patent applications.

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

11‧‧‧旋轉雲台 11‧‧‧Rotary head

20‧‧‧運算單元 20‧‧‧ arithmetic unit

30‧‧‧控制單元 30‧‧‧Control unit

31‧‧‧馬達驅動電路 31‧‧‧Motor drive circuit

32‧‧‧馬達 32‧‧‧Motor

40‧‧‧音訊輸出裝置 40‧‧‧Audio output device

41‧‧‧放大器 41‧‧‧Amplifier

42‧‧‧揚聲器 42‧‧‧speaker

oi‧‧‧目標物 o i ‧‧‧ target

ST‧‧‧音訊強度控制訊號 S T ‧‧‧ Audio intensity control signal

Claims (15)

一種音訊控制裝置,其係與一音訊輸出裝置配合應用,該音訊輸出裝置係於一空間中輸出音訊,該音訊控制裝置包含:一影像擷取單元,用以得到該空間中複數個目標點每一者所關聯之焦距值以及空間參數;以及一運算單元,係電性連接於該影像擷取單元,用以根據所關聯之焦距值而計算該等目標點每一者與該影像擷取單元的實際距離值,根據該等實際距離值與空間參數而計算該空間之容積,並根據該空間之容積而設定該音訊輸出裝置所輸出音訊之強度;其中該運算單元係將該空間分割定義為複數個錐狀體,並將該等錐狀體每一者之體積加總而得到該空間之該容積。 An audio control device is used in conjunction with an audio output device that outputs audio in a space. The audio control device includes: an image capture unit for obtaining a plurality of target points in the space A focal length value and a spatial parameter associated with one; and an arithmetic unit electrically connected to the image capturing unit for calculating each of the target points and the image capturing unit according to the associated focal length value The actual distance value, calculate the volume of the space based on the actual distance values and the space parameters, and set the intensity of the audio output by the audio output device according to the volume of the space; wherein the arithmetic unit defines the space as Plural cones, and the volume of each of the cones is added to obtain the volume of the space. 如請求項1之音訊控制裝置,其中該影像擷取單元係於調整該等目標點每一者之焦距以使其影像對焦清楚時,得到其所關聯之焦距值。 As in the audio control device of claim 1, wherein the image capturing unit obtains its associated focal length value when adjusting the focal length of each of the target points to make the image in focus. 如請求項1之音訊控制裝置,其中該運算單元更計算該空間之容積相對於一基準容積之比例值,並根據該比例值而設定該音訊輸出裝置所輸出音訊之強度。 As in the audio control device of claim 1, wherein the arithmetic unit further calculates the ratio of the volume of the space to a reference volume, and sets the intensity of the audio output by the audio output device according to the ratio. 如請求項3之音訊控制裝置,其中該運算單元更比較該比例值與一預設臨界值,若該比例值大於該預設臨界值,則根據該預設臨界值而設定該音訊輸出裝置所輸出音訊之強度。 As in the audio control device of claim 3, wherein the arithmetic unit further compares the proportional value with a preset threshold value, if the proportional value is greater than the preset threshold value, the audio output device is set according to the preset threshold value The intensity of the output audio. 如請求項3之音訊控制裝置,其中該運算單元更將該等目標點區分成複數個群組,並以每一群組之目標點以及該影像擷取單元之所在位置定義為該等錐狀體之其中一者,計算該等錐狀體之每一者之體積,並加總所有該等錐狀體之體積而得到該空間之該容積。 Such as the audio control device of claim 3, wherein the arithmetic unit further divides the target points into a plurality of groups, and defines the target points of each group and the location of the image capturing unit as the cone-shaped For one of the volumes, calculate the volume of each of the cones, and add up the volume of all the cones to obtain the volume of the space. 如請求項5之音訊控制裝置,其中該運算單元更根據該等目標點每一者之實際距離值與空間參數而計算每一錐狀體之體積。 As in the audio control device of claim 5, wherein the arithmetic unit further calculates the volume of each cone according to the actual distance value and spatial parameters of each of the target points. 如請求項6之音訊控制裝置,其中該空間參數為x-y-z直角坐標系之座標值,或球面極座標系之座標值。 As in the audio control device of claim 6, the spatial parameter is the coordinate value of the x-y-z rectangular coordinate system, or the coordinate value of the spherical polar coordinate system. 如請求項1之音訊控制裝置,更包含:一控制單元,係電性連接於該影像擷取單元以及該運算單元,用以控制該影像擷取單元旋轉於各角度值以掃描一預設軌跡,該預設軌跡涵蓋該等目標點之全部,以使該影像擷取單元得到該等目標點每一者所關聯之焦距值以及空間參數。 The audio control device according to claim 1 further includes: a control unit electrically connected to the image capturing unit and the arithmetic unit, for controlling the image capturing unit to rotate at various angle values to scan a preset trajectory , The preset trajectory covers all of the target points, so that the image capturing unit obtains the focal length value and spatial parameters associated with each of the target points. 如請求項8之音訊控制裝置,其中該預設軌跡為S形軌跡、Z形軌跡、或螺旋形軌跡。 The audio control device according to claim 8, wherein the preset trajectory is an S-shaped trajectory, a Z-shaped trajectory, or a spiral trajectory. 一種音訊控制方法,用以控制於一空間中輸出音訊之強度,包含:從一基準位置對準該空間中位於一預設軌跡上的一目標點,並得到該目標點所關聯之焦距值以及空間參數;根據所關聯之焦距值而計算該目標點與該基準位置的實際距離值;調整角度值,而對準該空間中位於該預設軌跡上的的另一目標點,以得到並計算該另一目標點所關聯之焦距值、空間參數以及實際距離值;重複前一步驟,以掃描該空間中位於該預設軌跡上的全部目標點,以得到並計算該等目標點每一者所關聯之焦距值、空間參數以及實際距離值;將該空間分割定義為複數個錐狀體;根據該等實際距離值與空間參數而計算該等錐狀體每一者之體積;將該等錐狀體每一者之體積加總而得到該空間之容積;以及根據該空間之容積而設定所輸出音訊之強度。 An audio control method for controlling the intensity of output audio in a space, including: aligning a target point on a preset trajectory in the space from a reference position, and obtaining the focal length value associated with the target point and Spatial parameters; calculate the actual distance between the target point and the reference position according to the associated focal length value; adjust the angle value and align it with another target point on the preset trajectory in the space to obtain and calculate The focal length value, spatial parameter and actual distance value associated with the other target point; repeat the previous step to scan all target points on the preset trajectory in the space to obtain and calculate each of these target points The associated focal length value, spatial parameter and actual distance value; define the spatial division as a plurality of cones; calculate the volume of each of the cones based on the actual distance values and spatial parameters; The volume of each of the cones is added to obtain the volume of the space; and the intensity of the output audio is set according to the volume of the space. 如請求項10之音訊控制方法,更包含:計算該空間之容積相對於一基準容積之比例值,並根據該比例值而設定所輸出音訊之強度。 The audio control method of claim 10 further includes: calculating the ratio of the volume of the space to a reference volume, and setting the intensity of the output audio according to the ratio. 如請求項11之音訊控制方法,更包含:比較該比例值與一預設臨界值,若該比例值大於該預設臨界值,則根據該預設臨界值而設定所輸出音訊之強度。 For example, the audio control method of claim 11 further includes: comparing the ratio value with a preset threshold value, and if the ratio value is greater than the preset threshold value, setting the intensity of the output audio according to the preset threshold value. 如請求項11之音訊控制方法,更包含:將該等目標點區分成複數個群組,並以每一群組之目標點的所在位置以及該基準位置定義為該等錐狀體之其中一者,計算該等錐狀體之每一者之體積,並加總所有該等錐狀體之體積而得到該空間之該容積。 For example, the audio control method of claim 11 further includes: dividing the target points into a plurality of groups, and defining the position of the target point of each group and the reference position as one of the cones Then, calculate the volume of each of the cones, and add up the volume of all the cones to get the volume of the space. 如請求項13之音訊控制方法,更包含:根據該等目標點每一者之實際距離值與空間參數而計算每一錐狀體之體積。 The audio control method according to claim 13 further includes: calculating the volume of each cone according to the actual distance value and spatial parameters of each of the target points. 如請求項14之音訊控制方法,其中該空間參數為x-y-z直角坐標系之座標值,或球面極座標系之座標值。 For example, the audio control method of claim 14, wherein the spatial parameter is the coordinate value of the x-y-z rectangular coordinate system, or the coordinate value of the spherical polar coordinate system.
TW107105891A 2018-02-22 2018-02-22 Audio control device and control method thereof TWI695632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107105891A TWI695632B (en) 2018-02-22 2018-02-22 Audio control device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107105891A TWI695632B (en) 2018-02-22 2018-02-22 Audio control device and control method thereof

Publications (2)

Publication Number Publication Date
TW201937945A TW201937945A (en) 2019-09-16
TWI695632B true TWI695632B (en) 2020-06-01

Family

ID=68618619

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107105891A TWI695632B (en) 2018-02-22 2018-02-22 Audio control device and control method thereof

Country Status (1)

Country Link
TW (1) TWI695632B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11501790B2 (en) 2020-12-29 2022-11-15 Compal Electronics, Inc. Audiovisual communication system and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314043A (en) * 2010-07-09 2012-01-11 华晶科技股份有限公司 Auxiliary focusing method for human face block
US20120224052A1 (en) * 2011-03-03 2012-09-06 Sang Mo Bae Method for Measuring Real Size of Object Using Camera of Mobile Terminal
CN104236462A (en) * 2013-06-14 2014-12-24 北京千里时空科技有限公司 Method for extracting height and distance of object in video image
TW201707471A (en) * 2015-08-14 2017-02-16 Unity Opto Technology Co Ltd Automatically controlled directional speaker and lamp thereof enabling mobile users to stay in the best listening condition, preventing the sound from affecting others when broadcasting, and improving the convenience of use in life
JP6119193B2 (en) * 2012-02-24 2017-04-26 株式会社リコー Distance measuring device and distance measuring method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314043A (en) * 2010-07-09 2012-01-11 华晶科技股份有限公司 Auxiliary focusing method for human face block
US20120224052A1 (en) * 2011-03-03 2012-09-06 Sang Mo Bae Method for Measuring Real Size of Object Using Camera of Mobile Terminal
JP6119193B2 (en) * 2012-02-24 2017-04-26 株式会社リコー Distance measuring device and distance measuring method
CN104236462A (en) * 2013-06-14 2014-12-24 北京千里时空科技有限公司 Method for extracting height and distance of object in video image
TW201707471A (en) * 2015-08-14 2017-02-16 Unity Opto Technology Co Ltd Automatically controlled directional speaker and lamp thereof enabling mobile users to stay in the best listening condition, preventing the sound from affecting others when broadcasting, and improving the convenience of use in life

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11501790B2 (en) 2020-12-29 2022-11-15 Compal Electronics, Inc. Audiovisual communication system and control method thereof

Also Published As

Publication number Publication date
TW201937945A (en) 2019-09-16

Similar Documents

Publication Publication Date Title
JP6859442B2 (en) Calibration equipment, calibration system, and calibration method
JP4589261B2 (en) Surveillance camera device
US9172871B2 (en) Method and device for multi-camera image correction
CN103780837B (en) A kind of motion detection and the method and its device of positioning shooting
CN108432230B (en) Imaging device and method for displaying an image of a scene
KR101521008B1 (en) Correction method of distortion image obtained by using fisheye lens and image display system implementing thereof
TW201530492A (en) Image capturing device and method for detecting image deformation thereof
JP2023509137A (en) Systems and methods for capturing and generating panoramic 3D images
TWI552598B (en) Automatic calibration system and related automatic calibration method applied to a camera
CN115190237B (en) Method and device for determining rotation angle information of bearing device
EP3579190A1 (en) Information processing apparatus, information processing method, and program
TWI695632B (en) Audio control device and control method thereof
KR20110094664A (en) Apparatus for controlling pan/tilt/zoom camera in omnidirectional and method for the same
TWI466539B (en) Photo capture device and adjustment method for photograph angle thereof
JP2020088708A (en) Control device, imaging apparatus, and program
US20240244330A1 (en) Systems and methods for capturing and generating panoramic three-dimensional models and images
CN110136203B (en) Calibration method and calibration system of TOF equipment
JP4230839B2 (en) Multi-camera system and adjustment device thereof
US9160904B1 (en) Gantry observation feedback controller
JP6584093B2 (en) Image processing apparatus, image processing method, and program
WO2020114189A1 (en) Data set collector
CN107274447B (en) Depth image acquisition device and depth image acquisition method
Wang et al. Automatic control of PTZ camera based on object detection and scene partition
CN113596441B (en) Optical axis adjusting device, method, system and readable storage medium
CN113840084A (en) Method for realizing control of panoramic tripod head based on PTZ (Pan/Tilt/zoom) return technology of dome camera