CN101881611B - Three-point positioning device and method and speaker system - Google Patents
Three-point positioning device and method and speaker system Download PDFInfo
- Publication number
- CN101881611B CN101881611B CN2009102218429A CN200910221842A CN101881611B CN 101881611 B CN101881611 B CN 101881611B CN 2009102218429 A CN2009102218429 A CN 2009102218429A CN 200910221842 A CN200910221842 A CN 200910221842A CN 101881611 B CN101881611 B CN 101881611B
- Authority
- CN
- China
- Prior art keywords
- auxiliary positioning
- angle
- sensing unit
- unit
- distance
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 17
- 230000007423 decrease Effects 0.000 claims description 2
- 230000001953 sensory effect Effects 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 10
- 230000002452 interceptive effect Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 239000003086 colorant Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Measurement Of Optical Distance (AREA)
- Image Analysis (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
Description
技术领域 technical field
本发明有关于一种定位装置,更明确地说,有关于一种三点式定位装置。The present invention relates to a positioning device, more specifically, to a three-point positioning device.
背景技术 Background technique
公知技术的定位装置已应用于电视游戏或计算机游戏,以使玩家具有更佳的交互式体验。举例而言,在任天堂(Nintendo)公司的Wii游戏机中,Wii控制游戏杆包含公知技术的定位装置,以使Wii主机可得到Wii控制游戏杆相对于待测物(如显示器或显示屏幕)所移动的移动距离与移动方向,并根据该移动距离与移动方向以控制游戏的进行。以网球游戏为例,当使用者挥动Wii控制游戏杆时,Wii主机可借由公知技术的定位装置,以得到Wii控制游戏杆相对移动的距离与方向,以让使用者所控制的角色,作出对应的挥动网球拍的动作来击球。举例而言,当Wii主机所得到的单位时间内的相对移动的距离较大时,使用者所控制的角色击球的力量较强,而使被击中的球飞得较快;反之,当Wii主机所得到的单位时间内的相对移动的距离较小时,使用者所控制的角色击球的力量较弱,而使被击中的球飞得较慢。除此之外,Wii主机可根据所得到的相对移动的方向,而让使用者所控制的角色作出正手拍或反手拍的动作。The positioning device of the known technology has been applied to video games or computer games to enable players to have a better interactive experience. For example, in Nintendo's Wii game console, the Wii control joystick includes a positioning device of known technology, so that the Wii host can obtain the position of the Wii control joystick relative to the object under test (such as a display or display screen). The moving distance and moving direction of the game, and the progress of the game is controlled according to the moving distance and moving direction. Taking the tennis game as an example, when the user swings the Wii control joystick, the Wii host can obtain the distance and direction of the relative movement of the Wii control joystick through the positioning device of the known technology, so that the character controlled by the user can make Swing the tennis racket accordingly to hit the ball. For example, when the relative movement distance per unit time obtained by the Wii host is larger, the character controlled by the user hits the ball with stronger power, so that the hit ball flies faster; otherwise, when When the relative moving distance per unit time obtained by the Wii host is small, the power of the character controlled by the user to hit the ball is weak, so that the hit ball flies slowly. In addition, the Wii host can make the character controlled by the user perform a forehand or backhand action according to the obtained relative movement direction.
为了让使用者有更佳的交互式体验,本发明提供一三点式定位装置,可计算出使用者的绝对位置。如此,游戏机可根据本发明的三点式定位装置所测得的绝对位置,而提供给使用者更逼真的交互式体验。In order to allow users to have a better interactive experience, the present invention provides a three-point positioning device, which can calculate the absolute position of the user. In this way, the game machine can provide the user with a more realistic interactive experience according to the absolute position measured by the three-point positioning device of the present invention.
发明内容 Contents of the invention
本发明提供一种三点式定位装置,其特征在于包含一辅助定位模块、一影像传感器,以及一位置计算电路。该辅助定位模块包含一第一辅助定位单元、一第二辅助定位单元,以及一第三辅助定位单元。该第一辅助定位单元与该第二辅助定位单元之间形成一第一辅助定位直线。该第一辅助定位直线的长度等于一第一已知距离。该第二辅助定位单元与该第三辅助定位单元之间形成一第二辅助定位直线。该第二辅助定位直线的长度等于一第二已知距离。该第一辅助定位直线与该第二辅助定位直线之间的夹角为一已知夹角。该影像传感器用来感测范围涵盖该第一辅助定位单元、该第二辅助定位单元以及该第三辅助定位单元的一场景,以据以产生一感测影像。该场景的范围取决于该影像传感器的一已知视角。该位置计算电路,用来接收该感测影像,以从该感测影像中辨识出对应该第一辅助定位单元的该影像传感器的一第一感测单元、对应于该第二辅助定位单元的该影像传感器的一第二感测单元,以及对应于该第三辅助定位单元的该影像传感器的一第三感测单元,并根据该第一感测单元、该第二感测单元,以及该第三感测单元的位置,以计算出该辅助定位模块与该影像传感器之间的一待测距离与一待测角度,以据以输出一距离/角度讯号。The invention provides a three-point positioning device, which is characterized in that it includes an auxiliary positioning module, an image sensor, and a position calculation circuit. The auxiliary positioning module includes a first auxiliary positioning unit, a second auxiliary positioning unit, and a third auxiliary positioning unit. A first auxiliary positioning line is formed between the first auxiliary positioning unit and the second auxiliary positioning unit. The length of the first auxiliary positioning line is equal to a first known distance. A second auxiliary positioning line is formed between the second auxiliary positioning unit and the third auxiliary positioning unit. The length of the second auxiliary positioning line is equal to a second known distance. The included angle between the first auxiliary positioning straight line and the second auxiliary positioning straight line is a known included angle. The image sensor is used for sensing a scene covering the first auxiliary positioning unit, the second auxiliary positioning unit and the third auxiliary positioning unit, so as to generate a sensing image. The extent of the scene depends on a known viewing angle of the image sensor. The position calculation circuit is used to receive the sensing image to identify a first sensing unit of the image sensor corresponding to the first auxiliary positioning unit, a sensor corresponding to the second auxiliary positioning unit from the sensing image A second sensing unit of the image sensor, and a third sensing unit of the image sensor corresponding to the third auxiliary positioning unit, and according to the first sensing unit, the second sensing unit, and the The position of the third sensing unit is used to calculate a distance to be measured and an angle to be measured between the auxiliary positioning module and the image sensor, so as to output a distance/angle signal.
本发明另提供一种三点式定位的方法,其特征在于包含提供一辅助定位模块的一第一辅助定位单元、一第二辅助定位单元及一第三辅助定位单元与一影像传感器、该影像传感器感测一场景,以据以产生一感测影像、根据该感测影像,辨识出对应该第一辅助定位单元的该影像传感器的一第一感测单元、对应于该第二辅助定位单元的该影像传感器的一第二感测单元,以及对应于该第三辅助定位单元的该影像传感器的一第三感测单元,以及根据该第一感测单元、该第二感测单元,以及该第三感测单元的位置,以计算出该影像传感器与该辅助定位模块的一待测距离与一待测角度。该第一辅助定位单元与该第二辅助定位单元之间形成一第一辅助定位直线。该第一辅助定位直线的长度等于一第一已知距离。该第二辅助定位单元与该第三辅助定位单元之间形成一第二辅助定位直线。该第二辅助定位直线的长度等于一第二已知距离。该第一辅助定位直线与该第二辅助定位直线之间的夹角为一已知夹角。该第一辅助定位单元、该第二辅助定位单元及该第三辅助定位单元位于该场景的范围内。The present invention also provides a three-point positioning method, which is characterized in that it includes providing a first auxiliary positioning unit, a second auxiliary positioning unit, a third auxiliary positioning unit, an image sensor, and an auxiliary positioning module. Detecting a scene, so as to generate a sensing image, according to the sensing image, identify a first sensing unit of the image sensor corresponding to the first auxiliary positioning unit, a corresponding to the second auxiliary positioning unit A second sensing unit of the image sensor, and a third sensing unit of the image sensor corresponding to the third auxiliary positioning unit, and according to the first sensing unit, the second sensing unit, and the first sensing unit The positions of the three sensing units are used to calculate a measured distance and a measured angle between the image sensor and the auxiliary positioning module. A first auxiliary positioning line is formed between the first auxiliary positioning unit and the second auxiliary positioning unit. The length of the first auxiliary positioning line is equal to a first known distance. A second auxiliary positioning line is formed between the second auxiliary positioning unit and the third auxiliary positioning unit. The length of the second auxiliary positioning line is equal to a second known distance. The included angle between the first auxiliary positioning straight line and the second auxiliary positioning straight line is a known included angle. The first auxiliary positioning unit, the second auxiliary positioning unit and the third auxiliary positioning unit are located within the scope of the scene.
附图说明 Description of drawings
图1为说明根据本发明的第一实施例的三点式定位装置的示意图。FIG. 1 is a schematic diagram illustrating a three-point positioning device according to a first embodiment of the present invention.
图2、图3、图4,以及图5为说明本发明计算投影夹角的方法的示意图。FIG. 2 , FIG. 3 , FIG. 4 , and FIG. 5 are schematic diagrams illustrating the method for calculating the included projection angle of the present invention.
图6为说明根据本发明的第二实施例的三点式定位装置的示意图。FIG. 6 is a schematic diagram illustrating a three-point positioning device according to a second embodiment of the present invention.
图7为说明根据本发明的第三实施例的三点式定位装置的示意图。FIG. 7 is a schematic diagram illustrating a three-point positioning device according to a third embodiment of the present invention.
图8为说明本发明的扬声系统的示意图。Fig. 8 is a schematic diagram illustrating the speaker system of the present invention.
其中,附图标记说明如下:Wherein, the reference signs are explained as follows:
100、600、700、801 三点式定位装置100, 600, 700, 801 Three-point positioning device
110、610、710、810 影像传感器110, 610, 710, 810 image sensor
130、630、730、830 辅助定位模块130, 630, 730, 830 Auxiliary positioning module
131~133、631~633、 辅助定位单元131~133, 631~633, auxiliary positioning unit
731~733731~733
800 扬声系统800 Speaker System
802 音量控制器802 volume controller
820 位置计算电路820 position calculation circuit
CS1~CS3 感测单元CS 1 ~ CS 3 sensing unit
D12、D23、DF、DM、DA、D 12 , D 23 , D F , D M , D A ,
DS1F~DS3F、DFOV/2、D612、 距离D S1F ~D S3F , D FOV/2 , D 612 , distance
D623、D731、D733 D 623 、 D 731 、 D 733
L131~L133、L631~L633、 投影直线L 131 ~L 133 , L 631 ~L 633 , projected straight line
L731~L733 L 731 ~ L 733
L112、L123、L612、L623、 辅助定位直线L 112 , L 123 , L 612 , L 623 , auxiliary positioning straight line
L712、L723 L 712 , L 723
LF 中线L F midline
LENS 镜头LENS Lens
MO 待测物MO Object to be tested
OF 相交点O F intersection point
PF 中点 PF Midpoint
SC 场景SC scene
SD/A 距离/角度讯号S D/A distance/angle signal
SI1~SIM 影像讯号S I1 ~ S IM video signal
SVC1、SVC2 音量控制讯号S VC1 , S VC2 volume control signal
SP1、SP2 扬声器SP 1 , SP 2 speakers
θ12、θ23、θX、θM、θ 12 , θ 23 , θ X , θ M ,
θFOV、θA、θB、θC、 角度θ FOV , θ A , θ B , θ C , angle
θY、θ612、θ623 θ Y , θ 612 , θ 623
具体实施方式 Detailed ways
请参考图1。图1为说明根据本发明的第一实施例的三点式定位装置100的示意图。三点式定位装置100包含一影像传感器110、一位置计算电路120(未图标),以及一辅助定位模块130。三点式定位装置100用来量测辅助定位模块130与影像传感器110之间的待测距离DM与待测角度θM。当辅助定位模块130与一待测物MO设置于同一位置时,三点式定位装置100可用来量测待测物MO与三点式定位装置100之间的待测距离DM与待测角度θM。举例而言,待测物MO可为显示器或显示屏幕。当影像传感器110与使用者位于同一位置时(如使用者手持三点式定位装置100的影像传感器110)时,可借由三点式定位装置100而得到使用者与显示器(待测物MO)的距离。Please refer to Figure 1. FIG. 1 is a schematic diagram illustrating a three-
辅助定位模块130包含辅助定位单元131、132,以及133。辅助定位单元131、132及133具有可侦测的明显特征。举例而言,辅助定位单元131、132及133为具有特定波长或特定频段的发光二极管(如红外光的发光二极管),或是具有特定图案(pattern)或特定颜色的物体,其目的在于让影像传感器110能够辨识辅助定位单元131~133在影像传感器110上被感测出来的影像讯号。于本实施例中,设辅助定位单元131、132及133设置于待测物MO上。其中辅助定位单元131与132之间形成辅助定位直线L112。辅助定位直线L112的长度等于已知距离D12;辅助定位单元132与133之间形成辅助定位直线L123。辅助定位直线L123的长度等于已知距离D23。辅助定位直线L112平行于与辅助定位直线L123。此外,在图1中的待测距离DM以感测单元CS2与辅助定位单元132之间的距离作举例说明。然而,待测距离DM也可为感测单元CS1与辅助定位单元131之间的距离,或是感测单元CS3与辅助定位单元133之间的距离。同理,在图1中的待测角度θM以感测单元CS3以及辅助定位单元133间的连线与辅助定位直线L123之间的夹角作举例说明。然而,待测角度θM也可为感测单元CS2以及辅助定位单元132间的连线与辅助定位直线L123、感测单元CS2以及辅助定位单元132间的连线与辅助定位直线L112之间的夹角,或是感测单元CS1以及辅助定位单元131间的连线与辅助定位直线L112之间的夹角。The
影像传感器110用来感测场景SC,以据以产生感测影像I。其中感测影像I包含影像讯号SI1~SIM。如图1所示,影像传感器110可感测的场景SC的范围取决于影像传感器110的已知视角θFOV。影像传感器110的已知视角θFOV对应于影像传感器110的视野(Field of View,FOV)。影像传感器110包含感测单元CS1~CSM,其中M代表正整数。影像传感器110中的各感测单元CS1~CSM,会感测场景SC的一对应部分以产生感测影像I的影像讯号SI1~SIM。举例而言,如图1所示,辅助定位模块130位于场景SC的范围内。感测单元CS1感测场景SC的范围内的辅助定位单元131,以产生影像讯号SI1;感测单元CS2感测场景SC的范围内的辅助定位单元132,以产生影像讯号SI2;感测单元CS3感测场景SC的范围内的辅助定位单元133,以产生影像讯号SI3。此外,于图1中的镜头LENS用来聚光至影像传感器110,以利于影像传感器110产生感测影像I。The
位置计算电路120用来接收感测影像I(影像讯号SI1~SIM),以从感测影像I中辨识出对应于辅助定位单元131的感测单元CS1、对应于辅助定位单元132的感测单元CS2,以及对应于辅助定位单元133的感测单元CS3,并根据感测单元CS1、CS2,以及CS3的位置,以计算出待测距离DM与待测角度θM,以据以输出距离/角度讯号SD/A。以下将更进一步地说明位置计算电路120的工作原理。The position calculation circuit 120 is used to receive the sensing image I (image signals S I1 -S IM ), to identify the sensing unit CS 1 corresponding to the
在图1中,感测单元CS1与辅助定位单元131之间形成投影直线L131;感测单元CS2与辅助定位单元132之间形成投影直线L132;感测单元CS3与辅助定位单元133之间形成投影直线L133。待测距离DM为感测单元CS2与辅助定位单元132之间的距离,且待测角度θM为投影直线L133与辅助定位直线L123之间的夹角。投影直线L131、L132与L133相交于一相交点OF。其中相交点OF的位置大约位于镜头LENS的中心。相交点OF与影像传感器110之间的距离为DF。此外,由于感测单元CS2以及辅助定位单元132之间的距离与相交点OF以及辅助定位单元132之间的距离大略相等,因此待测距离DM除了可用来表示感测单元CS2以及辅助定位单元132之间的距离之外,也可用来表示相交点OF以及辅助定位单元132之间的距离。投影直线L131与L132之间所夹的角度为投影夹角θ12;投影直线L132与L133之间所夹的角度为投影夹角θ23。由于投影直线L131、L132与待测物MO(或辅助定位直线L112与L123)形成一个三角形,因此投影直线L131与待测物MO(或辅助定位直线L112与L123)之间的夹角θX的大小会等于(π-θM-θ12-θ23),其中π代表一个三角形的三个内角的总和。In FIG. 1 , a projected straight line L 131 is formed between the sensing unit CS 1 and the
根据正弦定理(sine theorem),待测距离DM、已知距离D12与D23以及待测角度θM、投影夹角θ12及θ23之间的关可以下式表示:According to the sine theorem, the relationship among the measured distance D M , the known distances D 12 and D 23 , the measured angle θ M , and the projected angles θ 12 and θ 23 can be expressed as follows:
D12/sinθ12=DM/sinθX=DM/sin(π-θM-θ12-θ23)…(1);D 12 /sinθ 12 =D M /sinθ X =D M /sin(π-θ M -θ 12 -θ 23 )...(1);
D23/sinθ23=DM/sinθM=DM/sinθM…(2);D 23 /sinθ 23 =D M /sinθ M =D M /sinθ M ...(2);
因此,只要位置计算电路120可得到投影夹角θ12与θ23的大小,即可根据式(1)与(2)计算出待测距离DM与待测角度θM。Therefore, as long as the position calculation circuit 120 can obtain the projected angles θ 12 and θ 23 , the distance to be measured DM and the angle to be measured θ M can be calculated according to formulas (1) and (2).
请参考图2、图3、图4,以及图5。图2、图3、图4,以及图5为说明本发明计算投影夹角θ12与θ23的方法的示意图。相交点OF投影在影像传感器110上的端点为影像传感器110的中点PF。相交点OF与中点PF之间形成中线LF,且中线LF的长度等于已知距离DF。中线LF与影像传感器110的平面垂直。Please refer to Figure 2, Figure 3, Figure 4, and Figure 5. FIG. 2 , FIG. 3 , FIG. 4 , and FIG. 5 are schematic diagrams illustrating the method for calculating the projected angles θ 12 and θ 23 according to the present invention. The endpoint of the projection of the intersection point OF on the
在图2中,中点PF介于感测单元CS1与CS2之间。感测单元CS1与中点PF之间的距离为DS1F,且距离DS1F可借由相加感测单元CS1与中点PF之间的感测单元的宽度而得;感测单元CS2与中点PF之间的距离为DS2F,且距离DS2F可借由相加感测单元CS2与中点PF之间的感测单元的宽度而得;感测单元CS3与中点PF之间的距离为DS3F,且距离DS3F可借由相加感测单元CS3与中点PF之间的感测单元的宽度而得。此外,距离DFOV/2为影像传感器110的宽度的一半,且距离DFOV/2可借由相加位于影像传感器110的中点PF的左侧的感测单元的宽度而得,或是借由相加位于影像传感器110的中点PF的右侧的感测单元的宽度而得。因此,中线LF分别与投影直线L131、L132、L133之间所夹的中线夹角θA、θB与θC可以下式表示:In FIG. 2 , the middle point PF is between the sensing cells CS1 and CS2 . The distance between the sensing unit CS 1 and the midpoint PF is D S1F , and the distance D S1F can be obtained by adding the width of the sensing unit between the sensing unit CS 1 and the midpoint PF ; The distance between the unit CS 2 and the midpoint PF is D S2F , and the distance D S2F can be obtained by adding the width of the sensing unit between the sensing unit CS 2 and the midpoint PF ; the sensing unit CS The distance between 3 and the midpoint PF is D S3F , and the distance D S3F can be obtained by adding the width of the sensing unit between the sensing unit CS 3 and the midpoint PF . In addition, the distance D FOV/2 is half the width of the
θA=tan-1[tan(θFOV/2)×(DS1F/DFOV/2)]…(3);θ A =tan -1 [tan(θ FOV /2)×(D S1F /D FOV/2 )]...(3);
θB=tan-1[tan(θFOV/2)×(DS2F/DFOV/2)]…(4);θ B =tan -1 [tan(θ FOV /2)×(D S2F /D FOV/2 )]...(4);
θC=tan-1[tan(θFOV/2)×(DS3F/DFOV/2)]…(5);θ C =tan -1 [tan(θ FOV /2)×(D S3F /D FOV/2 )]...(5);
因此,位置计算电路120可借由影像I以辨识出分别对应于辅助定位单元131、132与133的感测单元CS1、CS2与CS3。接着,位置计算电路120根据感测单元CS1、CS2与CS3的位置以得知距离DS1F、DS2F以及DS3F。最后根据式(3)、(4)与(5),以计算得到中线夹角θA、θB与θC。又由图2可看出投影夹角θ12等于(θA+θB),而投影夹角θ23等于(θC-θB)。因此,位置计算电路120可计算出投影夹角θ12与θ23。如此一来,根据式(1)与(2),位置计算电路120可计算出待测距离DM与待测角度θM。Therefore, the position calculation circuit 120 can identify the sensing units CS 1 , CS 2 and CS 3 respectively corresponding to the
在图3中,计算中线夹角θA、θB与θC的方法与图2的说明类似。然而,相较于图2,在图3中,中点PF介于感测单元CS2与感测单元CS3之间。此时,投影夹角θ12等于(θA-θB),而投影夹角θ23等于(θC+θB)。如此,位置计算电路120可根据式(3)、(4)与(5),以计算得到中线夹角θA、θB与θC。然后,再根据式(1)与(2)计算出待测距离DM与待测角度θM。In FIG. 3 , the method of calculating the centerline included angles θ A , θ B and θ C is similar to the description in FIG. 2 . However, compared to FIG. 2 , in FIG. 3 , the midpoint PF is between the sensing unit CS 2 and the sensing unit CS 3 . At this time, the projection angle θ 12 is equal to (θ A -θ B ), and the projection angle θ 23 is equal to (θ C +θ B ). In this way, the position calculation circuit 120 can calculate the centerline included angles θ A , θ B and θ C according to equations (3), (4) and (5). Then, the distance to be measured D M and the angle to be measured θ M are calculated according to formulas (1) and (2).
在图4中,计算中线夹角θA、θB与θC的方法与图2的说明类似。然而,相较于图2,在图4中,感测单元CS1、CS2与CS3皆在中点PF的左侧,且中线夹角θC<θB<θA。此时,投影夹角θ12等于(θA-θB),而投影夹角θ23等于(θB-θC)。如此,位置计算电路120可根据式(3)、(4)与(5),以计算得到中线夹角θA、θB与θC。然后,再根据式(1)与(2)计算出待测距离DM与待测角度θM。In FIG. 4 , the method for calculating the centerline included angles θ A , θ B and θ C is similar to the description in FIG. 2 . However, compared to FIG. 2 , in FIG. 4 , the sensing units CS 1 , CS 2 and CS 3 are all on the left side of the midpoint PF , and the midline angle θ C <θ B <θ A . At this time, the projection angle θ 12 is equal to (θ A -θ B ), and the projection angle θ 23 is equal to (θ B -θ C ). In this way, the position calculation circuit 120 can calculate the centerline included angles θ A , θ B and θ C according to equations (3), (4) and (5). Then, the distance to be measured D M and the angle to be measured θ M are calculated according to formulas (1) and (2).
在图5中,计算中线夹角θA、θB与θC的方法与图2的说明类似。然而,相较于图2,在图5中,感测单元CS1、CS2与CS3皆在中点PF的右侧,且中线夹角θA<θB<θC。此时,投影夹角θ12等于(θB-θA),而投影夹角θ23等于(θC-θB)。如此,位置计算电路120可根据式(3)、(4)与(5),以计算得到中线夹角θA、θB与θC。然后,再根据式(1)与(2)计算出待测距离DM与待测角度θM。In FIG. 5 , the method of calculating the centerline included angles θ A , θ B and θ C is similar to that described in FIG. 2 . However, compared to FIG. 2 , in FIG. 5 , the sensing units CS 1 , CS 2 and CS 3 are all on the right side of the midpoint PF , and the midline angle θ A <θ B <θ C . At this time, the projection angle θ 12 is equal to (θ B -θ A ), and the projection angle θ 23 is equal to (θ C -θ B ). In this way, the position calculation circuit 120 can calculate the centerline included angles θ A , θ B and θ C according to equations (3), (4) and (5). Then, the distance to be measured D M and the angle to be measured θ M are calculated according to formulas (1) and (2).
请参考图6。图6为说明根据本发明的第二实施例的三点式定位装置600的示意图。三点式定位装置600的结构以及工作原理与三点式定位装置100类似。然而,相较于三点式定位装置100,在三点式定位装置600之中,辅助定位单元631、632与633并非设置于同一直线。辅助定位单元631与632之间的辅助定位直线L612不平行于辅助定位单元632与633之间的辅助定位直线L623。辅助定位直线L612与L623之间所夹的角度为已知角度θY。由于辅助定位直线L612与L623以及投影直线L631与L633形成一四边形,因此投影直线L631与辅助定位直线L612之间的夹角θX的大小会等于(2×π-θM-θ612-θ623-θY)。如此,根据正弦定理(sine theorem),待测距离DM、已知距离D612与D623以及待测角度θM、投影夹角θ612及θ623之间的关系可以下式表示:Please refer to Figure 6. FIG. 6 is a schematic diagram illustrating a three-
D612/sinθ612=DM/sinθX=DM/sin(2×π-θM-θ612-θ623-θY)…(6);D 612 /sinθ 612 =D M /sinθ X =D M /sin(2×π-θ M -θ 612 -θ 623 -θ Y )...(6);
D623/sinθ623=DM/sinθM=DM/sinθM…(7);D 623 /sinθ 623 = D M /sinθ M = D M /sinθ M ... (7);
由于角度θ612与θ623可借由图2、图3、图4与图5所说明的方法以计算得到,因此根据式(6)与(7),三点式定位装置600可借由位置计算电路620以计算出待测距离DM与待测角度θM。Since the angles θ 612 and θ 623 can be calculated by the methods illustrated in FIG. 2, FIG. 3, FIG. 4 and FIG. Step 620 to calculate the distance to be measured D M and the angle to be measured θ M .
此外,当三点式定位装置600中的已知夹角θY等于π时,辅助定位直线L612与L623互相平行。此时,三点式定位装置600的结构与三点式定位装置100类似。且在式(6)中的已知夹角θY带入π,则会使得式(6)与式(1)类似。由此可知,三点式定位装置100等于已知夹角θY等于π时的三点式定位装置600。In addition, when the known included angle θ Y in the three-
请参考图7。图7为说明根据本发明的第三实施例的三点式定位装置700的示意图。三点式定位装置700包含一影像传感器710、一位置计算电路720(未图标),以及一辅助定位模块730。三点式定位装置700用来量测影像传感器710与辅助定位模块730之间的待测距离DM与待测角度θM。当辅助定位模块730与一待测物MO设置于同一位置时,三点式定位装置700可用来量测三点式定位装置700与待测物MO之间的待测距离DM与待测角度θM。影像传感器710的结构以及工作原理与影像传感器610、110类似,故不再赘述。此外,在图7中,镜头LENS用来聚光至影像传感器710,以利于影像传感器710产生感测影像。辅助定位模块730包含辅助定位单元731、732与733。于本实施例中,设辅助定位单元731、732与733设置于待测物MO上。辅助定位直线L712与L723的长度皆等于已知距离DA。辅助定位单元731、732与733为发光二极管(如红外光的发光二极管),且辅助定位单元731、732与733所发射的光具有相同的功率PWLD。辅助定位单元731、732与733所发射的光为等向(isotropic)。也就是说,辅助定位单元731、732与733均匀地发光。此外,在图7中,由于感测单元CS2以及辅助定位单元732之间的距离与相交点OF以及辅助定位单元732之间的距离大略相等,因此DM除了可用来表示感测单元CS2以及辅助定位单元732之间的距离之外,也可用来表示相交点OF以及辅助定位单元732之间的距离。同理,D731除了可用来表示感测单元CS1以及辅助定位单元731之间的距离之外,也可用来表示相交点OF以及辅助定位单元731之间的距离;且D733除了可用来表示感测单元CS3以及辅助定位单元733之间的距离之外,也可用来表示相交点OF以及辅助定位单元733之间的距离。因此,对应于辅助定位单元731、732与733的感测单元CS1、CS2与CS3所接收的光的功率PW731、PW732、PW733分别与感测单元CS1与辅助定位单元731之间的距离D731、感测单元CS2及辅助定位单元732之间的待测距离DM、感测单元CS3与辅助定位单元733之间的距离D733有关,可以下列公式表示:Please refer to Figure 7. FIG. 7 is a schematic diagram illustrating a three-
[(PW731/PWLD)/(PW732/PWLD)]=DM 2/D731 2…(8);[(PW 731 /PW LD )/(PW 732 /PW LD )] = D M 2 /D 731 2 ... (8);
[(PW733/PWLD)/(PW732/PWLD)]=DM 2/D733 2…(9);[(PW 733 /PW LD )/(PW 732 /PW LD )]=D M 2 /D 733 2 ... (9);
根据式(8)可得到距离D731等于[DM×(PW732/PW731)0.5],且根据式(9)可得到距离D733等于[DM×(PW732/PW733)0.5]。其中(PW732/PW731)与(PW732/PW733)可借由感测影像I中对应于感测单元CS1、CS2、CS3的影像讯号SI1、SI2、SI3而得。举例而言,影像讯号SI1、SI2、SI3分别代表亮度B731、B732、B733。如此,(PW731/PW732)等于(B731/B732),且(PW733/PW732)等于(B733/B732)。因此根据中线定理(Apollonius′theorem)以及投影直线L731、L733与辅助定位直线L712、L723所形成的三角形,待测距离DM、距离D731与D733可以下式表示三角形的面积:According to the formula (8), the distance D 731 is equal to [D M ×(PW 732 /PW 731 ) 0.5 ], and according to the formula (9), the distance D 733 is equal to [D M ×(PW 732 /PW 733 ) 0.5 ] . Wherein (PW 732 /PW 731 ) and (PW 732 /PW 733 ) can be obtained by sensing the image signals S I1 , S I2 , S I3 corresponding to the sensing units CS 1 , CS 2 , CS 3 in the image I. . For example, the image signals S I1 , S I2 , and S I3 respectively represent brightness B 731 , B 732 , and B 733 . Thus, (PW 731 /PW 732 ) is equal to (B 731 /B 732 ), and (PW 733 /PW 732 ) is equal to (B 733 /B 732 ). Therefore, according to the midline theorem (Apollonius'theorem) and the triangle formed by the projected straight lines L 731 , L 733 and the auxiliary positioning straight lines L 712 , L 723 , the distance D M to be measured, the distances D 731 and D 733 can be expressed as the area of the triangle by the following formula :
(D731)2+(D733)2=2×[(DA)2+(DM)2]…(10);(D 731 ) 2 +(D 733 ) 2 =2×[(D A ) 2 +(D M ) 2 ]...(10);
如此根据式(8)、(9)及(10),位置计算电路720可计算得到待测距离DM。又根据海龙公式(Heron’s formula)以及投影直线L732、L733与辅助定位直线L723所形成的三角形,可将待测距离DM、距离D731与D733、已知距离DA以及待测角度θM以下式表示:Thus, according to formulas (8), (9) and (10), the position calculation circuit 720 can calculate the distance to be measured D M . Also according to Heron's formula and the triangle formed by the projected straight lines L 732 , L 733 and the auxiliary positioning straight line L 723 , the distance to be measured D M , the distances D 731 and D 733 , the known distance D A and the to-be-measured distance can be calculated. The angle θ M is represented by the following formula:
(1/2)×DA×D733×sinθM=[V×(V-DA)×(V-D733)×(V-DM)]…(11);(1/2)×D A ×D 733 ×sinθ M =[V×(VD A )×(VD 733 )×(VD M )]...(11);
其中V为投影直线L731、L733与辅助定位直线L712、L723所形成的三角形的半周长,且V等于[(1/2)×(DA+DM+D733)]。如此,根据式(11),位置计算电路720可计算得到待测角度θM。Where V is the half perimeter of the triangle formed by the projection straight lines L 731 , L 733 and the auxiliary positioning straight lines L 712 , L 723 , and V is equal to [(1/2)×(D A +D M +D 733 )]. In this way, according to formula (11), the position calculation circuit 720 can calculate the angle θ M to be measured.
此外,当本发明的三点式定位装置被应用于游戏机时,可提供给使用者较佳的交互式体验。以前述的网球游戏为例,当使用者握住利用本发明的三点式定位装置的影像传感器的游戏控制游戏杆,且本发明的三点式定位装置的辅助定位模块设置与待测物(如显示器或显示屏幕)同一位置时,游戏主机可得到使用者与待测物(如显示器或显示屏幕)之间的待测距离DM与待测角度θM。当使用者移动位置时,由于待测距离DM会随之有明显的变化,因此游戏主机可据以控制于游戏中使用者所控制的角色的移动。而当使用者挥动游戏控制游戏杆时,由于待测角度θM会随之有明显的变化,因此游戏机可据以控制游戏中使用者所控制的角色做对应的挥拍动作。如此,借由应用本发明的三点式定位装置的游戏控制游戏杆,可让使用者同时控制角色的移动与挥拍动作,以提供给使用者更逼真的交互式体验。In addition, when the three-point positioning device of the present invention is applied to a game machine, it can provide users with a better interactive experience. Taking the aforementioned tennis game as an example, when the user holds the game control joystick utilizing the image sensor of the three-point positioning device of the present invention, and the auxiliary positioning module of the three-point positioning device of the present invention is set in contact with the object under test (such as a display or display screen) at the same position, the game console can obtain the distance D M to be measured and the angle θ M to be measured between the user and the object under test (such as a display or a display screen). When the user moves the position, since the measured distance D M will change obviously, the game host can control the movement of the character controlled by the user in the game accordingly. When the user swings the game control joystick, the angle θ M to be measured will change obviously, so the game machine can control the character controlled by the user in the game to perform a corresponding swing action. In this way, by using the game control joystick of the three-point positioning device of the present invention, the user can simultaneously control the movement and swing of the character, so as to provide the user with a more realistic interactive experience.
另外,于本发明的三点式定位装置(如100、600与700)中,影像传感器110、610以及710与辅助定位模块130、630以及730之间的待测距离并不限定为感测单元CS2与辅助定位单元132、632以及732之间的距离DM。举例而言,待测距离可为感测单元CS1与辅助定位单元131、631以及731之间的距离,或是感测单元CS3与辅助定位单元133、633以及733之间的距离,且此时仍可利用前述所说明的方法以计算出待测距离。同理,影像传感器110、610以及710与辅助定位模块130、630以及730之间的待测角度并不限定为感测单元CS3以及辅助定位单元133、633以及733间的连线(投影直线L133、L633以及L733)与辅助定位直线L123、L623以及L723之间的夹角θM。举例而言,影像传感器110、610以及710与辅助定位模块130、630以及730之间的待测角度可为感测单元CS2以及辅助定位单元132、632以及732间的连线(投影直线L132、L632以及L732)与辅助定位直线L123、L623以及L723之间的夹角、感测单元CS2以及辅助定位单元132、632以及732间的连线(投影直线L132、L632以及L732)与辅助定位直线L112、L612以及L712之间的夹角,或是感测单元CS1以及辅助定位单元131、631以及731间的连线(投影直线L131、L631以及L731)与辅助定位直线L112、L612以及L712之间的夹角,且此时仍可利用前述所说明的方法以计算出待测角度。In addition, in the three-point positioning device (such as 100, 600 and 700) of the present invention, the distance to be measured between the
请参考图8。图8为说明本发明的扬声系统800的示意图。扬声系统800包含一三点式定位装置801、一音量控制器802,以及扬声器SP1与SP2。三点式定位装置801的结构及工作原理与三点式定位装置100、600或700类似,故不再赘述。其中辅助定位模块830设置于扬声器SP1与SP2之间,且位置计算电路820会根据所计算得到的待测距离DM与待测角度θM,以据以输出距离/角度讯号SD/A。音量控制器802,用来接收距离/角度讯号SD/A,并根据待测距离DM与待测角度θM,以输出音量控制讯号SVC1与SVC2。扬声器SP1与SP2,用来输出声音,并分别根据音量控制讯号SVC1与SVC2,以调整所输出的声音的音量的大小。举例而言,影像传感器810与使用者的位置相同(如使用者手持对应于扬声系统800的遥控器,且影像传感器810设置于遥控器内),因此当使用者位置改变时,音量控制器可根据使用者的位置(影像传感器810的位置),以调整扬声器SP1与SP2所输出的音量。当使用者与扬声器之间的待测距离DM越长时,音量控制器802会将扬声器SP1与SP2所输出的音量增加;反之,当使用者与扬声器之间的待测距离DM越短时,音量控制器802会将扬声器SP1与SP2所输出的音量降低。如此,使用者所感受到的音量不会因使用者的位置而改变。除此之外,音量控制器802可根据待测距离DM与待测角度DM,以判断使用者(影像传感器810)的位置相对于辅助定位模块830,与扬声器相对于辅助定位模块830为同一侧或不同侧(如图8所示,使用者与扬声器相对于辅助定位模块830为同一侧)。当音量控制器802判断使用者与扬声器相对于辅助定位模块830为同一侧时,表示使用者与扬声器SP1之间的距离比使用者与扬声器SP2之间的距离短,此时音量控制器802将扬声器SP1所输出的声音的音量降低,且将扬声器SP2所输出的声音的音量增加,以维持扬声系统800的立体音效的效果;反之,当音量控制器802判断使用者与扬声器相对于辅助定位模块830为不同侧时,表示使用者与扬声器SP1之间的距离比使用者与扬声器SP2之间的距离长,此时音量控制器802将扬声器SP1所输出的声音的音量增加,且将扬声器SP2所输出的声音的音量降低,以维持扬声系统800的立体音效的效果。Please refer to Figure 8. FIG. 8 is a schematic diagram illustrating a speaker system 800 of the present invention. The speaker system 800 includes a three-point positioning device 801 , a volume controller 802 , and speakers SP 1 and SP 2 . The structure and working principle of the three-point positioning device 801 are similar to those of the three-
此外,如图8所示,于三点式定位装置801之中,影像传感器810与位置计算电路820可整合于同一芯片(chip)或于不同芯片中实施。同理,于三点式定位装置100、600与700之中,影像传感器110、610及710与位置计算电路120、620及720可整合于同一芯片(chip)或于不同芯片中实施。In addition, as shown in FIG. 8 , in the three-point positioning device 801 , the image sensor 810 and the position calculation circuit 820 can be integrated in the same chip or implemented in different chips. Similarly, in the three-
综上所述,本发明所提供的三点式定位装置,借由影像传感器感测范围涵盖辅助定位模块的场景,以据以产生感测影像。再借由感测影像,辨识出对应于辅助定位模块的感测单元。因此,本发明可根据对应于辅助定位模块的感测单元的位置或对应于辅助定位模块的感测单元所接收的功率,以计算出辅助定位模块的绝对位置。除此之外,利用本发明所提供的三点式定位装置,游戏机可根据所测得的待测距离与待测角度,而提供给使用者更逼真的交互式体验。另外,本发明所提供的扬声系统,可根据使用者的位置,以调整扬声器所输出的音量,而维持扬声系统的立体音效的效果,且让使用者所感受到的音量不会随使用者的位置而改变,带给使用者更大的方便。To sum up, the three-point positioning device provided by the present invention uses the sensing range of the image sensor to cover the scene of the auxiliary positioning module to generate a sensing image. Then, the sensing unit corresponding to the auxiliary positioning module is identified by sensing the image. Therefore, the present invention can calculate the absolute position of the auxiliary positioning module according to the position of the sensing unit corresponding to the auxiliary positioning module or the power received by the sensing unit corresponding to the auxiliary positioning module. In addition, by using the three-point positioning device provided by the present invention, the game machine can provide the user with a more realistic interactive experience according to the measured distance and angle to be measured. In addition, the speaker system provided by the present invention can adjust the volume output by the speaker according to the position of the user, so as to maintain the stereo effect of the speaker system, and the volume felt by the user will not change with the user. The location changes, bringing greater convenience to users.
以上所述仅为本发明的优选实施例,凡依本发明权利要求所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.
Claims (13)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17648809P | 2009-05-08 | 2009-05-08 | |
US61/176,488 | 2009-05-08 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101881611A CN101881611A (en) | 2010-11-10 |
CN101881611B true CN101881611B (en) | 2012-06-27 |
Family
ID=43053683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102218429A Active CN101881611B (en) | 2009-05-08 | 2009-11-13 | Three-point positioning device and method and speaker system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101881611B (en) |
TW (1) | TWI388360B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9980071B2 (en) | 2013-07-22 | 2018-05-22 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Audio processor for orientation-dependent processing |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI423101B (en) * | 2010-12-08 | 2014-01-11 | Wistron Corp | Method for positioning compensation of a touch object on a touch surface of a screen and optical touch module thereof |
US9201522B2 (en) * | 2013-09-03 | 2015-12-01 | Qualcomm Incorporated | Acoustic position tracking system |
CN105516855A (en) * | 2015-12-23 | 2016-04-20 | 联想(北京)有限公司 | Method for playing audio file |
JP2018170539A (en) * | 2017-03-29 | 2018-11-01 | ソニー株式会社 | Speaker apparatus, audio data supply apparatus, and audio data reproduction system |
CN112254643A (en) * | 2020-11-03 | 2021-01-22 | 北京机电工程研究所 | an automatic alignment device |
CN116449255B (en) * | 2023-03-09 | 2023-12-22 | 国网浙江省电力有限公司嘉兴供电公司 | Fault detection system and method for box-type transformer |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI260914B (en) * | 2005-05-10 | 2006-08-21 | Pixart Imaging Inc | Positioning system with image display and image sensor |
CN101270978A (en) * | 2007-03-21 | 2008-09-24 | 鸿富锦精密工业(深圳)有限公司 | Distance measuring system, distance measuring method, electronic device system, and remote controller |
CN101310804A (en) * | 2007-05-25 | 2008-11-26 | 富港电子(东莞)有限公司 | Interactive game device position location system and position location method thereof |
WO2009137274A2 (en) * | 2008-05-09 | 2009-11-12 | Analog Devices, Inc. | Method of locating an object in 3d |
-
2009
- 2009-09-23 TW TW098132083A patent/TWI388360B/en not_active IP Right Cessation
- 2009-11-13 CN CN2009102218429A patent/CN101881611B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI260914B (en) * | 2005-05-10 | 2006-08-21 | Pixart Imaging Inc | Positioning system with image display and image sensor |
CN101270978A (en) * | 2007-03-21 | 2008-09-24 | 鸿富锦精密工业(深圳)有限公司 | Distance measuring system, distance measuring method, electronic device system, and remote controller |
CN101310804A (en) * | 2007-05-25 | 2008-11-26 | 富港电子(东莞)有限公司 | Interactive game device position location system and position location method thereof |
WO2009137274A2 (en) * | 2008-05-09 | 2009-11-12 | Analog Devices, Inc. | Method of locating an object in 3d |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9980071B2 (en) | 2013-07-22 | 2018-05-22 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Audio processor for orientation-dependent processing |
Also Published As
Publication number | Publication date |
---|---|
CN101881611A (en) | 2010-11-10 |
TW201039894A (en) | 2010-11-16 |
TWI388360B (en) | 2013-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101881611B (en) | Three-point positioning device and method and speaker system | |
US8602893B2 (en) | Input for computer device using pattern-based computer vision | |
CN102149436B (en) | Determination of controller three-dimensional location using image analysis and ultrasonic communication | |
US9406242B2 (en) | Skill judging device, skill judging method and storage medium | |
JP5132131B2 (en) | Pointing device adjustment program and pointing device | |
US9018510B2 (en) | Musical instrument, method and recording medium | |
US20070155502A1 (en) | Device for motion tracking and object for reflecting infrared light | |
US20030218537A1 (en) | Interactive modular system | |
US8096881B2 (en) | Storage medium storing game program and game apparatus | |
WO2019100754A1 (en) | Human body movement identification method and device, and electronic device | |
US10709971B2 (en) | Information processing system, extended input device, and information processing method | |
US9724613B2 (en) | Game device, control method of game device, program, and information storage medium | |
TWI659221B (en) | Tracking system, tracking device and tracking method | |
EP2392988B1 (en) | Capacitive input for computer entertainment device | |
US20130040737A1 (en) | Input device, system and method | |
KR20110043573A (en) | Method of measuring physical quantities of object by using single light source and planar sensor unit and virtual golf system utilizing same | |
CN201289633Y (en) | Marker unit for indicating position calculation | |
US8406433B2 (en) | 3-point positioning device and method thereof | |
CN106952465A (en) | A kind of piano key displacement detector | |
KR101359662B1 (en) | Digital pen system | |
US20130106689A1 (en) | Methods of operating systems having optical input devices | |
JP2008076765A (en) | Musical performance system | |
KR20040032159A (en) | opto-electric ball velocity vector sensing and determination of golf simulator parameters | |
TWI887052B (en) | Sport simulation device | |
US20130100015A1 (en) | Optical input devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |