WO2022142192A1 - 耳机定位方法、终端设备及存储介质 - Google Patents

耳机定位方法、终端设备及存储介质 Download PDF

Info

Publication number
WO2022142192A1
WO2022142192A1 PCT/CN2021/102017 CN2021102017W WO2022142192A1 WO 2022142192 A1 WO2022142192 A1 WO 2022142192A1 CN 2021102017 W CN2021102017 W CN 2021102017W WO 2022142192 A1 WO2022142192 A1 WO 2022142192A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
positioning
relative orientation
headset
image data
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.)
Ceased
Application number
PCT/CN2021/102017
Other languages
English (en)
French (fr)
Inventor
王海勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Publication of WO2022142192A1 publication Critical patent/WO2022142192A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • G06V10/242Aligning, centring, orientation detection or correction of the image by image rotation, e.g. by 90 degrees
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Definitions

  • the present application relates to the field of virtual reality technology, and in particular, to a headset positioning method, a terminal device, and a computer-readable storage medium.
  • the main purpose of the present application is to provide an earphone positioning method, a terminal device and a computer-readable storage medium, so as to achieve the effect of simplifying the steps of using the earphone.
  • the present application provides an earphone positioning method
  • the earphone includes a left earpiece and a right earpiece, and positioning marks are provided on the first shell of the left earpiece and the second shell of the right earpiece, wherein, The positioning marks corresponding to the first shell and the second shell are different, and the headset positioning method includes the following steps:
  • the relative orientation between the earphone and the image acquisition device is determined according to the feature of the positioning mark.
  • the positioning marks are marked points regularly arranged on the first shell and the second shell, and the positioning mark features include the number of distribution areas of the marking points in the image data.
  • the step of determining the relative orientation between the earphone and the image acquisition device according to the positioning mark feature includes:
  • the relative orientation between the headset and the image capture device is determined based on the number of distribution areas.
  • the positioning marker feature further includes the number of the marker points in the distribution area, and the step of determining the relative orientation between the headset and the image capture device based on the number of the distribution area include:
  • the relative orientation between the earphone and the image acquisition device is determined according to the number of the marked points in the distribution area.
  • the positioning marker feature further includes the number of the marker points in each of the distribution areas and/or the curve profile corresponding to the curve where the marker points are located, and the determination of the marker point based on the number of the distribution areas.
  • the step of the relative orientation between the headset and the image acquisition device includes:
  • the relative relationship between the earphone and the image acquisition device is determined according to the number and/or the curve outline of the marker points corresponding to each distribution area position.
  • the step of determining the relative orientation between the earphone and the image capture device according to the positioning mark feature includes:
  • the relative orientation between the earphone and the image acquisition device is determined according to the orientation information associated with the pre-stored positioning mark feature.
  • the method further includes:
  • the headset positioning method further includes:
  • the rotation angle is determined according to the relative orientation stored in association with the acquisition time point.
  • the step of determining the rotation angle according to the relative orientation saved in association with the collection time point includes:
  • the rotation angle of the earphone is determined according to the first relative orientation and the second relative orientation.
  • the method further includes:
  • the output signal of the earphone is adjusted according to the rotation angle.
  • the present application also provides a terminal device, the terminal device includes a memory, a processor, and an earphone location program stored in the memory and running on the processor, the earphone location program When the program is executed by the processor, the steps of the earphone positioning method described above are implemented.
  • the present application also provides a computer-readable storage medium on which an earphone positioning program is stored, and when the earphone positioning program is executed by a processor, the above-mentioned earphone positioning is realized steps of the method.
  • An earphone positioning method, a terminal device, and a computer-readable storage medium proposed in an embodiment of the present application first acquire image data collected by an image acquisition device, then determine a positioning marker feature corresponding to the image data according to the image data, and then determine the positioning mark feature corresponding to the image data according to the image data.
  • the location marker feature determines the relative orientation between the headset and the image capture device. Since the orientation of the headset can be determined directly according to the characteristics of the positioning marks in the captured image data, there is no need to perform reference orientation correction, and the effect of simplifying the use of the headset is achieved.
  • FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an embodiment of an earphone positioning method according to the present application
  • FIG. 3 is a schematic structural diagram of an earphone according to an embodiment of the application.
  • FIG. 4 is a schematic diagram of the positions of an earphone and an image acquisition device involved in an embodiment of the present application
  • FIG. 5 is a schematic diagram of the relative positions of the earphones involved in the embodiment of the application.
  • FIG. 6 is a schematic flowchart of another embodiment of the earphone positioning method of the present application.
  • an embodiment of the present application proposes an earphone positioning method, and the main solution includes the following steps:
  • the relative orientation between the earphone and the image acquisition device is determined according to the feature of the positioning mark.
  • the orientation of the earphone can be determined directly according to the characteristics of the positioning marks in the captured image data, there is no need to perform reference orientation correction, and the effect of simplifying the steps of using the earphone is achieved.
  • FIG. 1 is a schematic structural diagram of a terminal of a hardware operating environment involved in the solution of the embodiment of the present application.
  • the terminal may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 .
  • the communication bus 1002 is used to realize the connection and communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), a mouse, etc., and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface).
  • the memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
  • terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or less components than the one shown, or combine some components, or arrange different components.
  • the memory 1005 which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and an earphone positioning program.
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the processor 1001 can be used to call the earphone positioning program stored in the memory 1005, and perform the following operations:
  • the orientation of the headset can be determined directly according to the characteristics of the positioning marks in the captured image data, there is no need to perform reference orientation correction, and the effect of simplifying the use of the headset is achieved.
  • the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
  • the relative orientation between the headset and the image capture device is determined based on the number of distribution areas.
  • the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
  • the relative orientation between the earphone and the image acquisition device is determined according to the number of the marked points in the distribution area.
  • the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
  • the relative relationship between the earphone and the image acquisition device is determined according to the number and/or the curve outline of the marker points corresponding to each distribution area position.
  • the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
  • the relative orientation between the earphone and the image acquisition device is determined according to the orientation information associated with the pre-stored positioning mark feature.
  • the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
  • the headset positioning method further includes:
  • the rotation angle is determined according to the relative orientation stored in association with the acquisition time point.
  • the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
  • the rotation angle of the earphone is determined according to the first relative orientation and the second relative orientation.
  • the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
  • the output signal of the earphone is adjusted according to the rotation angle.
  • the headset positioning method includes the following steps:
  • Step S10 acquiring image data collected by the image collection device
  • Step S20 according to the image data, determine the positioning mark feature corresponding to the image data
  • Step S30 Determine the relative orientation between the earphone and the image capture device according to the feature of the positioning mark.
  • this embodiment proposes an earphone and a method for locating an earphone, aiming to solve the defect of the related art that the steps of using the earphone are cumbersome based on the earphone and the method for locating the earphone provided in this embodiment.
  • the earphone includes a left earpiece and a right earpiece, and positioning marks are provided on the first casing of the left earpiece and the second casing of the right earpiece, wherein the first casing and the right earpiece are provided with positioning marks.
  • the positioning marks corresponding to the second housing are different, so that the left earpiece and the right earpiece can be distinguished by the positioning marks.
  • an image acquisition device with a fixed position is further provided. So that the image data including the earphone can be collected by the image collection device.
  • the relative positions of the earphone and the image acquisition device are different, the relative positional relationship between the earphone and the image acquisition device can be determined according to the feature of the positioning mark in the image data.
  • the positioning marks are marked points regularly arranged on the first casing and the second casing.
  • the earphone includes a first casing 10 and a second casing 20 .
  • identification points arranged in a circle are arranged on the non-user contact surface of the first housing 20, identification points arranged in a circle are arranged.
  • the non-user contact surface of the second casing is also provided with identification points arranged in a circle.
  • the identification points on the first housing 10 and the second housing 20 may be provided in different colors and/or different numbers. For example, 12 identification points may be provided on the first housing 10 and 6 identification points may be provided on the second housing 20 .
  • the arrangement of the identification points may also be set to other graphics. For example, it can be set as an ellipse or a rectangle.
  • the positioning mark may also be set as a ring light strip or other methods. Here, no more enumeration.
  • an infrared LED light may be provided at a position corresponding to each of the marking points. Because of the infrared LED, it is only necessary to use a light-transmitting material on the periphery of the earphone to make a circle of windows, which has no effect on the appearance.
  • the left ear shell has 12 LEDs, and the right ear shell has 6 LEDs. The left and right ears are distinguished by setting different numbers of LEDs in the first shell and the second shell.
  • the determination of the orientation of the headset generally only needs to determine the orientation of the headset when the user wears the headset. Therefore, the function of the positioning mark will be explained below with reference to the scenario where the user wears the earphone.
  • the left and right earpieces correspond to the left and right ears of the user, respectively.
  • the image capture device that is, the relative position between the headset and the image capture device is the position A shown in FIG. 5
  • the image capture device can capture the first and second housings, and the positioning marks visible on the front .
  • the camera When in position A, the camera will capture 7 LEDs on the first housing and 4 LEDs on the second housing.
  • the user turns 90 degrees clockwise and is positioned at position B. At position B, 12 perfect circular LEDs on the first casing will be photographed (only the marked points on the first casing can be photographed at this time), and the user is moving from position A.
  • the image data will gradually increase from 7 to 12, and the shape will change from an arc to a circle.
  • the second shell will gradually disappear from 4.
  • the back is facing the image acquisition device, it is the C position, and the front position is turned 90 degrees to the left to define the D position.
  • the image data shows that the first shell is gradually formed by 12 perfect circles. It becomes 7 arc-shaped marking points, and the right ear is made from nothing, and 4 arcs appear. From position C to position D, the left ear gradually disappears from 7 arcs, and the right ear gradually appears 6 perfect circles.
  • this embodiment proposes an earphone positioning method.
  • the executive body of the earphone positioning method may be an earphone or other data processing terminal.
  • the user receives VR game sound effects through a headset.
  • the audio output device needs to adjust the output audio in real time according to the position of the earphone. Therefore, the audio output device can be used as the execution subject of the earphone positioning method.
  • an audio device or a headset may be directly used as an execution subject of the headset positioning method.
  • the audio signal with 3D sound effect can be output through the earphone.
  • the image data collected by the image acquisition device can be acquired first, and then the positioning mark feature corresponding to the image data can be determined according to the image data, and then the earphone and the device can be determined according to the positioning mark feature.
  • the relative orientation between the image acquisition devices wherein, when the relative orientation between the earphone and the image acquisition device is determined according to the positioning mark feature, the positioning mark feature corresponding to each relative orientation is stored in the storage medium, that is, the pre-stored positioning mark and the Relative orientation relationship. Therefore, when positioning the headset, the pre-stored positioning mark feature matching the positioning mark feature can be queried first, and then the position information between the headset and the image acquisition device can be determined according to the orientation information associated with the pre-stored positioning mark feature. relative orientation.
  • the positioning mark features include the number of distribution areas of the marking points in the image data .
  • the relative orientation between the earphone and the image acquisition device can be determined according to the number of the marked points in the distribution area. Wherein, the number of marking points on the first shell and the second shell is different.
  • the positioning mark feature also includes the number of the mark points in each of the distribution areas and/or the curve outline corresponding to the curve where the mark points are located.
  • the number and/or the curve profile of the marked points corresponding to each of the distribution areas determines the relative orientation between the earphone and the image acquisition device.
  • the relative position when the relative position is at a position other than the B position and the D position, there are two distribution areas in the image data, so it can be determined according to the difference of the marker points in each distribution area.
  • the number and/or profile of the curve determines the relative orientation between the headset and the image capture device.
  • the image data collected by the image acquisition device is first acquired, and then the positioning mark feature corresponding to the image data is determined according to the image data, and then the earphone and the device are determined according to the positioning mark feature.
  • the relative orientation between the image acquisition devices Since the orientation of the headset can be determined directly according to the characteristics of the positioning marks in the captured image data, no reference orientation correction is required, and the effect of simplifying the use of the headset is achieved.
  • step S30 the method further includes:
  • Step S40 Associate and save the relative orientation with the acquisition time point of the image data.
  • a relative orientation can be determined according to the image data of each frame. Therefore, the acquisition time corresponding to the frame of image data can be stored in association with the relative orientation.
  • the relative orientation corresponding to each frame of data may be used.
  • a rotation angle detection instruction can be triggered.
  • the first time point and the second time point are determined according to the rotation angle detection instruction.
  • the acquisition time point of the previous frame of image data of the current frame may be used as the first time point
  • the acquisition time point of the current frame may be used as the second time point.
  • the rotation angle of the user in the period from the first time point to the second time point is determined. That is, the first relative orientation associated with the first time point and the second relative party associated with the second time point can be acquired, and then the rotation angle of the earphone is determined according to the first relative orientation and the second relative orientation.
  • the first time point and the second time point correspond to the acquisition time points of the image data.
  • the output signal of the earphone can be adjusted according to the rotation angle.
  • an embodiment of the present application also proposes a terminal device, the terminal device includes a memory, a processor, and an earphone location program stored in the memory and executable on the processor, the earphone location program being When executed by the processor, the steps of implementing the earphone positioning method described in the above embodiments are described.
  • an embodiment of the present application also proposes a computer-readable storage medium, where an earphone positioning program is stored on the computer-readable storage medium, and when the earphone positioning program is executed by a processor, the earphone positioning described in the above embodiments is implemented steps of the method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Stereophonic System (AREA)
  • Headphones And Earphones (AREA)

Abstract

一种耳机定位方法,终端设备及计算机可读存储介质,所述方法包括以下步骤:获取图像采集装置采集的图像数据(S10);根据所述图像数据确定所述图像数据对应的定位标记特征(S20);根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位(S30)。上述方法达成了简化耳机使用步骤的效果。

Description

耳机定位方法、终端设备及存储介质
本申请要求于2020年12月28日提交中国专利局、申请号202011595585.8、申请名称为“耳机定位方法、终端设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及虚拟现实技术领域,尤其涉及耳机定位方法、终端设备及计算机可读存储介质。
背景技术
随着技术的发展,用户对视听沉浸感的追求愈演愈烈。沉浸式3D(dimension,三维)音效变的越来越流行。在相关技术中,一般通过耳机内置6轴传感器,来定位用户旋转角度。从而根据Sensor(传感器)的检测数据,确定用户的方位变化情况。因此,在耳机的使用过程中,需要用户在使用前和使用中要及时校准基准方向。这样存在耳机使用步骤繁琐的缺陷。
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。
发明内容
本申请的主要目的在于提供一种耳机定位方法、终端设备及计算机可读存储介质,旨在达成简化耳机使用步骤的效果。
为实现上述目的,本申请提供一种耳机定位方法,所述耳机包括左听筒和右听筒,所述左听筒的第一外壳和所述右听筒的第二外壳上,设置有定位标记,其中,所述第一外壳和所述第二外壳对应的所述定位标记不同,所述耳机定位方法包括以下步骤:
获取图像采集装置采集的图像数据;
根据所述图像数据确定所述图像数据对应的定位标记特征;
根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。
可选地,所述定位标记为规则排布于所述第一外壳和所述第二外壳上的标记点,所述定位标记特征包括所述图像数据中,所述标记点的分布区的数量,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:
基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位。
可选地,所述定位标记特征还包括所述分布区域内的所述标记点的数量,所述基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:
在所述图像数据中只存在一个所述分布区域时,根据所述分布区域内的所述标记点的数量,确定所述耳机与所述图像采集装置之间的相对方位。
可选地,所述定位标记特征还包括各个所述分布区域内的所述标记点的数量和/或所述标记点所在曲线对应的曲线轮廓,所述基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:
在所述图像数据中存在两个所述分布区域时,根据每一所述分布区域对应的所述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。
可选地,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:
查询与所述定位标记特征匹配的预存定位标记特征;
根据所述预存定位标记特征关联的方位信息,确定所述耳机与所述图像采集装置之间的相对方位。
可选地,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤之后,还包括:
将所述相对方位与所述图像数据的采集时间点关联保存;
所述耳机定位方法还包括:
接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度。
可选地,所述接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度的步骤包括:
根据所述旋转角度检测指令确定第一时间点和第二时间点;
获取所述第一时间点关联的第一相对方位,以及所述第二时间点关联的第二相对方位;
根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度。
可选地,所述根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度的步骤之后,还包括:
根据所述旋转角度调节所述耳机的输出信号。
此外,为实现上述目的,本申请还提供一种终端设备,所述终端设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机定位程序,所述耳机定位程序被所述处理器执行时实现如上所述的耳机定位方法的步骤。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有耳机定位程序,所述耳机定位程序被处理器执行时实现如上所述的耳机定位方法的步骤。
本申请实施例提出的一种耳机定位方法、终端设备及计算机可读存储介质,先获取图像采集装置采集的图像数据,然后根据所述图像数据确定所述图像数据对应的定位标记特征,进而根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。由于可以直接根据拍摄到的图像数据中,定位标记的特征确定耳机方位,从而无需进行基准方位校正,达成了简化耳机使用步骤的效果。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的终端结构示意图;
图2为本申请耳机定位方法的一实施例的流程示意图;
图3为本申请实施例涉及的一种耳机的结构简图;
图4为本申请实施例涉及的耳机与图像采集装置的位置示意图;
图5为本申请实施例涉及的耳机相对位置示意图;
图6为本申请耳机定位方法的另一实施例的流程示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
随着技术的发展,用户对视听沉浸感的追求愈演愈烈。沉浸式3D(dimension,三维)音效变的越来越流行。在相关技术中,一般通过耳机内置6轴传感器,来定位用户旋转角度。从而根据Sensor(传感器)的检测数据,确定用户的方位变化情况。因此,在耳机的使用过程中,需要用户在使用前和使用中要及时校准基准方向。这样存在耳机使用步骤繁琐的缺陷。
为解决上述缺陷,本申请实施例提出一种耳机定位方法,其主要解决方案包括以下步骤:
获取图像采集装置采集的图像数据;
根据所述图像数据确定所述图像数据对应的定位标记特征;
根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。
由于可以直接根据拍摄到的图像数据中,定位标记的特征确定耳机方位,从而无需进 行基准方位校正,达成了简化耳机使用步骤的效果。
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的终端结构示意图。
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard)、鼠标等,可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及耳机定位程序。
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;处理器1001可以用于调用存储器1005中存储的耳机定位程序,并执行以下操作:
由于可以直接根据拍摄到的图像数据中,定位标记的特征确定耳机方位,从而无需进行基准方位校正,达成了简化耳机使用步骤的效果。
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:
基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位。
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:
在所述图像数据中只存在一个所述分布区域时,根据所述分布区域内的所述标记点的数量,确定所述耳机与所述图像采集装置之间的相对方位。
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:
在所述图像数据中存在两个所述分布区域时,根据每一所述分布区域对应的所述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:
查询与所述定位标记特征匹配的预存定位标记特征;
根据所述预存定位标记特征关联的方位信息,确定所述耳机与所述图像采集装置之间的相对方位。
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:
将所述相对方位与所述图像数据的采集时间点关联保存;
所述耳机定位方法还包括:
接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度。
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:
根据所述旋转角度检测指令确定第一时间点和第二时间点;
获取所述第一时间点关联的第一相对方位,以及所述第二时间点关联的第二相对方位;
根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度。
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:
根据所述旋转角度调节所述耳机的输出信号。
参照图2,在本申请耳机定位方法的一实施例中,所述耳机定位方法包括以下步骤:
步骤S10、获取图像采集装置采集的图像数据;
步骤S20、根据所述图像数据确定所述图像数据对应的定位标记特征;
步骤S30、根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。
随着技术的发展,用户对视听沉浸感的追求愈演愈烈。沉浸式3D(dimension,三维)音效变的越来越流行。在相关技术中,一般通过耳机内置6轴传感器,来定位用户旋转角度。从而根据Sensor(传感器)的检测数据,确定用户的方位变化情况。因此,在耳机的使用过程中,需要用户在使用前和使用中要及时校准基准方向。这样存在耳机使用步骤繁琐的缺陷。
为解决上述缺陷,本实施例提出一种耳机和耳机定位方法,旨在基于本实施例提出的耳机和耳机定位方法,解决相关技术中,耳机使用步骤繁琐的缺陷。
在本实施例中,所述耳机包括左听筒和右听筒,所述左听筒的第一外壳和所述右听筒的第二外壳上,设置有定位标记,其中,所述第一外壳和所述第二外壳对应的所述定位标记不同,使得可以通过所述定位标记区分左听筒和右听筒。
进一步地,参照图4,在本实施例中,为实现所述耳机定位方法,还设置有一位置固定位置的图像采集装置。使得可以通过图像采集装置采集包括所述耳机在内的图像数据。其中,当耳机与所述图像采集装置的相对位置不同时,可以根据所述图像数据中的所述定位标记的特征,确定所述耳机与所述图像采集装置之间的相对位置关系。
在一可选实施方式中,定位标记为规则排布于所述第一外壳和所述第二外壳上的标记 点。
参照图3在本实施方式中,耳机包括第一外壳10和第二外壳20。在所述第一外壳20的非用户接触面上,设置有呈圆形排布的标识点。其中第二外壳的非用户接触面上,也设置有呈圆形排布的标识点。为使得可以区分第一外壳10和第二外壳20,可以将第一外壳10和第二外壳20上的标识点设置为不同的颜色和/或不同的数量。例如,可以在第一外壳10上设置12个标识点,而在第二外壳20上设置6个标识点。
需要说明的是,所述标识点的排布方式也可以设置为其它图形。例如,可以设置为椭圆形或者矩形等。当然,在一些其它的实施方式中,所述定位标记也可以设置为环形灯带或者其它方式等。在此,不再枚举。
示例性地,可以在每一所述标记点对应的位置设置一红外LED灯。因为红外LED,只需在耳机外围使用透光材质做一圈开窗,对外观无影响。左耳壳为12颗LED,右耳壳为6颗LED,通过在第一外壳和第二外壳设置不同数量的LED来区分左右耳。
可以理解的是,耳机方位的确定,一般是在用户佩戴耳机的场景下才需要确定耳机的方位。因此,以下结合用户佩戴耳机的情景,来解释所述定位标记的作用。
参照图5,当用户佩戴耳机时左听筒和右听筒分别对应用户的左耳和右耳。当用户面对图像采集装置,即耳机与图像采集装置之间的相对位置为图5中示出的A位置时,图像采集装置可以采集到第一外壳和第二外壳上,正面可见的定位标记。当在A位置,摄像头会拍到第一外壳上7颗LED,第二外壳4颗LED。用户按照顺时针右转90度,定位为B位置,B位置会拍到第一外壳12颗正圆形LED(此时只能拍摄到第一外壳上的标记点),并且用户在从A位置运动至B的过程中,在图像数据体现为由7颗逐渐增多到12颗,形状会由弧形变为圆形。第二外壳则会由4颗逐渐消失。背对图像采集装置时,为C位置,正面位置左转90度定义为D位置,则用户在从B位置转动至A的过程中,图像数据中体现为第一外壳上由12颗正圆逐渐变为7颗弧形标记点,右耳由无到有,4颗弧形出现。C位置到D位置则是左耳由7颗弧形逐渐消失,右耳逐渐出现6颗正圆形。
由此可见,在图像采集装置固定时,若耳机转动,则通过图像采集装置采集的图像数据中拍摄到的定位标记的,定位标记特征会随之变化。因此,基于此原理,本实施例提出一种耳机定位方法。
具体地,所述耳机定位方法的执行主体可以是耳机,或者其它数据处理终端。
示例性地,在一应用场景中,用户通过耳机接收VR游戏音效。为实现3D音效的效果,音频输出装置需要根据耳机的位置实时调节输出音频。因此,可以将音频输出装置作为所 述耳机定位方法的执行主体。在另一应用场景中,在其它VR生态环境下,可以直接由音频设备或者耳机作为所述耳机定位方法的执行主体。从而使得可以通过耳机输出具备3D音效的音频信号。
进一步地,在本实施例中,可以先获取图像采集装置采集的图像数据,然后根据所述图像数据确定所述图像数据对应的定位标记特征,进而根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。其中,在根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位时,将各个相对方位对应的定位标记特征保存至存储介质中,即预先保存预存定位标记与所述相对方位的关联关系。从而使得在进行耳机定位时,可以先查询与所述定位标记特征匹配的预存定位标记特征,进而根据所述预存定位标记特征关联的方位信息,确定所述耳机与所述图像采集装置之间的相对方位。
其中,当所述定位标记为规则排布于所述第一外壳和所述第二外壳上的标记点时,所述定位标记特征包括所述图像数据中,所述标记点的分布区的数量。
示例性地,参照5当所述相对位置为B位置和D位置时,所述在所述图像数据中只存在一个所述分布区域。因此可以根据所述分布区域内的所述标记点的数量,确定所述耳机与所述图像采集装置之间的相对方位。其中,第一壳体和第二壳体上的标记点的数量不同。
所述定位标记特征还包括各个所述分布区域内的所述标记点的数量和/或所述标记点所在曲线对应的曲线轮廓,在所述图像数据中存在两个所述分布区域时,根据每一所述分布区域对应的所述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。
示例性地,参照图5,当所述相对位置处于B位置和D位置之外的其它位置时,图像数据中存在两个所述分布区域,因此可以根据每一分布区域内的述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。
在本实施例公开的技术方案中,先获取图像采集装置采集的图像数据,然后根据所述图像数据确定所述图像数据对应的定位标记特征,进而根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。由于可以直接根据拍摄到的图像数据中,定位标记的特征确定耳机方位,从而无需进行基准方位校正,达成了简化耳机使用步骤的效果。
参照图6,基于上述实施例,在另一实施例中,所述步骤S30之后,还包括:
步骤S40、将所述相对方位与所述图像数据的采集时间点关联保存。
在本实施例中,根据每一帧所述图像数据,可以确定一相对方位。因此,可以将该帧 图像数据对应的采集时间与所述相对方位关联保存。
进一步地,在连续获取到多帧数据时,可以根据各帧数据对应的相对方位。其中,可以在采集到一帧新的图像数据时,触发一旋转角度检测指令。然后根据所述旋转角度检测指令确定第一时间点和第二时间点。其中,可以将当前帧的上一帧图像数据的采集时间点作为第一时间点,当前帧的采集时间点作为第二时间点。确定用户在第一时间点到第二时间点的时段内的转动角度。即可以获取第一时间点关联的第一相对方位,以及第二时间点关联的第二相对方,然后根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度。其中,所述第一时间点和第二时间点对应为所述图像数据的采集时间点。
当根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度后,可以根据所述旋转角度调节所述耳机的输出信号。
此外,本申请实施例还提出一种终端设备,所述终端设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机定位程序,所述耳机定位程序被所述处理器执行时实现如上各个实施例所述的耳机定位方法的步骤。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有耳机定位程序,所述耳机定位程序被处理器执行时实现如上各个实施例所述的耳机定位方法的步骤。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备执行本申请各个实 施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (10)

  1. 一种耳机定位方法,其特征在于,所述耳机包括左听筒和右听筒,所述左听筒的第一外壳和所述右听筒的第二外壳上,设置有定位标记,其中,所述第一外壳和所述第二外壳对应的所述定位标记不同,所述耳机定位方法包括:
    获取图像采集装置采集的图像数据;
    根据所述图像数据确定所述图像数据对应的定位标记特征;
    根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。
  2. 如权利要求1所述的耳机定位方法,其特征在于,所述定位标记为规则排布于所述第一外壳和所述第二外壳上的标记点,所述定位标记特征包括所述图像数据中,所述标记点的分布区的数量,其中,所述分布区域为所述标记点的集中区域,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:
    基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位。
  3. 如权利要求2所述的耳机定位方法,其特征在于,所述定位标记特征还包括所述分布区域内的所述标记点的数量,所述基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:
    在所述图像数据中只存在一个所述分布区域时,根据所述分布区域内的所述标记点的数量,确定所述耳机与所述图像采集装置之间的相对方位。
  4. 如权利要求2所述的耳机定位方法,其特征在于,所述定位标记特征还包括各个所述分布区域内的所述标记点的数量和/或所述标记点所在曲线对应的曲线轮廓,所述基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:
    在所述图像数据中存在两个所述分布区域时,根据每一所述分布区域对应的所述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。
  5. 如权利要求1所述的耳机定位方法,其特征在于,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:
    查询与所述定位标记特征匹配的预存定位标记特征;
    根据所述预存定位标记特征关联的方位信息,确定所述耳机与所述图像采集装置之间的相对方位。
  6. 如权利要求1所述的耳机定位方法,其特征在于,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤之后,还包括:
    将所述相对方位与所述图像数据的采集时间点关联保存;
    所述耳机定位方法还包括:
    接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度。
  7. 如权利要求6所述的耳机定位方法,其特征在于,所述接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度的步骤包括:
    根据所述旋转角度检测指令确定第一时间点和第二时间点;
    获取所述第一时间点关联的第一相对方位,以及所述第二时间点关联的第二相对方位;
    根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度。
  8. 如权利要求7所述的耳机定位方法,其特征在于,所述根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度的步骤之后,还包括:
    根据所述旋转角度调节所述耳机的输出信号。
  9. 一种终端设备,其特征在于,所述终端设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机定位程序,所述耳机定位程序被所述处理器执行时实现如权利要求1至8中任一项所述的耳机定位方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有耳机定位程序,所述耳机定位程序被处理器执行时实现如权利要求1至8中任一项所述的耳机定位方法的步骤。
PCT/CN2021/102017 2020-12-28 2021-06-24 耳机定位方法、终端设备及存储介质 Ceased WO2022142192A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011595585.8A CN112733840A (zh) 2020-12-28 2020-12-28 耳机定位方法、终端设备及存储介质
CN202011595585.8 2020-12-28

Publications (1)

Publication Number Publication Date
WO2022142192A1 true WO2022142192A1 (zh) 2022-07-07

Family

ID=75610525

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/102017 Ceased WO2022142192A1 (zh) 2020-12-28 2021-06-24 耳机定位方法、终端设备及存储介质

Country Status (2)

Country Link
CN (1) CN112733840A (zh)
WO (1) WO2022142192A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426566A (zh) * 2022-08-29 2022-12-02 歌尔科技有限公司 耳机充电盒防护方法、耳机充电盒、设备及存储介质
CN116600227A (zh) * 2023-07-17 2023-08-15 深圳市丽耳科技有限公司 耳机壳体装配方法和耳机壳体装配装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112733840A (zh) * 2020-12-28 2021-04-30 歌尔光学科技有限公司 耳机定位方法、终端设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140079238A1 (en) * 2012-09-20 2014-03-20 International Business Machines Corporation Automated left-right headphone earpiece identifier
CN109195058A (zh) * 2018-11-29 2019-01-11 努比亚技术有限公司 耳机声道的切换方法、装置、终端及存储介质
CN109413555A (zh) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 音频输出方法、装置、耳机以及电子设备
CN110139178A (zh) * 2018-02-02 2019-08-16 中兴通讯股份有限公司 一种确定终端移动方向的方法、装置、设备及存储介质
CN110659587A (zh) * 2019-09-02 2020-01-07 广东虚拟现实科技有限公司 标记物、标记物识别方法、装置、终端设备及存储介质
CN111093513A (zh) * 2017-09-14 2020-05-01 神经系统分析公司 用于配准头戴设备系统的系统和方法
CN112733840A (zh) * 2020-12-28 2021-04-30 歌尔光学科技有限公司 耳机定位方法、终端设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6377759B2 (ja) * 2014-03-14 2018-08-22 株式会社ソニー・インタラクティブエンタテインメント ヘッドマウントディスプレイ(hmd)の追跡及びhmdのヘッドバンドの調整のための校正方法及びシステム
CN105825160B (zh) * 2015-01-05 2020-07-14 苏州宝时得电动工具有限公司 基于图像识别的定位装置及其定位方法
CN110555879B (zh) * 2018-05-31 2023-09-08 京东方科技集团股份有限公司 一种空间定位方法、其装置、其系统及计算机可读介质
CN111198608B (zh) * 2018-11-16 2021-06-22 广东虚拟现实科技有限公司 信息提示方法、装置、终端设备及计算机可读取存储介质
CN110968182B (zh) * 2018-09-30 2025-10-24 广东虚拟现实科技有限公司 定位追踪方法、装置及其穿戴式设备
CN111821025B (zh) * 2020-07-21 2022-05-13 腾讯科技(深圳)有限公司 空间定位方法、装置、设备、存储介质以及导航棒

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140079238A1 (en) * 2012-09-20 2014-03-20 International Business Machines Corporation Automated left-right headphone earpiece identifier
CN111093513A (zh) * 2017-09-14 2020-05-01 神经系统分析公司 用于配准头戴设备系统的系统和方法
CN110139178A (zh) * 2018-02-02 2019-08-16 中兴通讯股份有限公司 一种确定终端移动方向的方法、装置、设备及存储介质
CN109413555A (zh) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 音频输出方法、装置、耳机以及电子设备
CN109195058A (zh) * 2018-11-29 2019-01-11 努比亚技术有限公司 耳机声道的切换方法、装置、终端及存储介质
CN110659587A (zh) * 2019-09-02 2020-01-07 广东虚拟现实科技有限公司 标记物、标记物识别方法、装置、终端设备及存储介质
CN112733840A (zh) * 2020-12-28 2021-04-30 歌尔光学科技有限公司 耳机定位方法、终端设备及存储介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426566A (zh) * 2022-08-29 2022-12-02 歌尔科技有限公司 耳机充电盒防护方法、耳机充电盒、设备及存储介质
CN116600227A (zh) * 2023-07-17 2023-08-15 深圳市丽耳科技有限公司 耳机壳体装配方法和耳机壳体装配装置
CN116600227B (zh) * 2023-07-17 2023-10-27 深圳市丽耳科技有限公司 耳机壳体装配方法和耳机壳体装配装置

Also Published As

Publication number Publication date
CN112733840A (zh) 2021-04-30

Similar Documents

Publication Publication Date Title
WO2022142192A1 (zh) 耳机定位方法、终端设备及存储介质
US11517099B2 (en) Method for processing images, electronic device, and storage medium
US11494158B2 (en) Augmented reality microphone pick-up pattern visualization
CN108986199B (zh) 虚拟模型处理方法、装置、电子设备及存储介质
WO2019109801A1 (zh) 拍摄参数的调整方法、装置、存储介质及移动终端
CN108353244A (zh) 差分头部追踪装置
CN110502954A (zh) 视频分析的方法和装置
CN109089043B (zh) 拍摄图像预处理方法、装置、存储介质及移动终端
CN108848313B (zh) 一种多人拍照方法、终端和存储介质
CN113280752B (zh) 一种凹槽深度测量方法、装置、系统及激光测量设备
US11950087B2 (en) Audio signal processing method, electronic apparatus, and storage medium
TW201535160A (zh) 利用接近度感測以調整行動裝置上提供的資訊
CN110248197B (zh) 语音增强方法及装置
CN110675839A (zh) 一种屏幕调节方法、电子设备及相关装置
JP2018133019A (ja) 情報処理システム、情報処理方法、およびプログラム
US9921054B2 (en) Shooting method for three dimensional modeling and electronic device supporting the same
WO2023051305A1 (zh) 一种智能设备控制方法、系统、电子设备及存储介质
CN111565309A (zh) 显示设备及其畸变参数确定方法、装置、系统及存储介质
CN105430269B (zh) 一种应用于移动终端的拍照方法及装置
CN110488489A (zh) 用于头戴式壳体的眼睛登记
US12277734B2 (en) Calibration of mobile electronic devices connected to headsets wearable by users
CN109121069B (zh) 3d音效处理方法及相关产品
US12167226B2 (en) Audio signal processing method, electronic apparatus, and storage medium
WO2019100299A1 (zh) 头戴式显示设备及其触摸装置的自动校准方法
CN108171182A (zh) 电子装置、人脸识别方法及相关产品

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21912948

Country of ref document: EP

Kind code of ref document: A1