WO2022142192A1 - Earphone positioning method, terminal device, and storage medium - Google Patents

Earphone positioning method, terminal device, and storage medium 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
Application number
PCT/CN2021/102017
Other languages
French (fr)
Chinese (zh)
Inventor
王海勇
Original Assignee
歌尔股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 歌尔股份有限公司 filed Critical 歌尔股份有限公司
Publication of WO2022142192A1 publication Critical patent/WO2022142192A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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; DEAF-AID SETS; 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; DEAF-AID SETS; 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

An earphone positioning method, a terminal device, and a computer-readable storage medium. The method comprises the following steps: obtaining image data acquired by an image acquisition device (S10); determining, according to the image data, a positioning mark feature corresponding to the image data (S20); and determining a relative orientation between an earphone and the image acquisition device according to the positioning mark feature (S30). The method achieves the effect of simplifying use steps of the earphone.

Description

耳机定位方法、终端设备及存储介质Headphone positioning method, terminal device and storage medium
本申请要求于2020年12月28日提交中国专利局、申请号202011595585.8、申请名称为“耳机定位方法、终端设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 28, 2020, with the application number 202011595585.8 and the application title is "Headphone Positioning Method, Terminal Equipment and Storage Medium", the entire contents of which are incorporated herein by reference middle.
技术领域technical field
本申请涉及虚拟现实技术领域,尤其涉及耳机定位方法、终端设备及计算机可读存储介质。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.
背景技术Background technique
随着技术的发展,用户对视听沉浸感的追求愈演愈烈。沉浸式3D(dimension,三维)音效变的越来越流行。在相关技术中,一般通过耳机内置6轴传感器,来定位用户旋转角度。从而根据Sensor(传感器)的检测数据,确定用户的方位变化情况。因此,在耳机的使用过程中,需要用户在使用前和使用中要及时校准基准方向。这样存在耳机使用步骤繁琐的缺陷。With the development of technology, users' pursuit of audio-visual immersion has intensified. Immersive 3D (dimension, three-dimensional) sound effects are becoming more and more popular. In the related art, the user's rotation angle is generally located by a built-in 6-axis sensor in the headset. Thus, according to the detection data of the Sensor, the change of the orientation of the user is determined. Therefore, in the process of using the headset, the user needs to calibrate the reference direction in time before and during use. This has the disadvantage of cumbersome steps to use the headset.
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist the understanding of the technical solutions of the present application, and does not mean that the above content is the prior art.
发明内容SUMMARY OF THE INVENTION
本申请的主要目的在于提供一种耳机定位方法、终端设备及计算机可读存储介质,旨在达成简化耳机使用步骤的效果。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.
为实现上述目的,本申请提供一种耳机定位方法,所述耳机包括左听筒和右听筒,所述左听筒的第一外壳和所述右听筒的第二外壳上,设置有定位标记,其中,所述第一外壳和所述第二外壳对应的所述定位标记不同,所述耳机定位方法包括以下步骤:In order to achieve the above object, 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:
获取图像采集装置采集的图像数据;acquiring image data collected by the image acquisition device;
根据所述图像数据确定所述图像数据对应的定位标记特征;Determine the positioning mark feature corresponding to the image data according to the image data;
根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。The relative orientation between the earphone and the image acquisition device is determined according to the feature of the positioning mark.
可选地,所述定位标记为规则排布于所述第一外壳和所述第二外壳上的标记点,所述定位标记特征包括所述图像数据中,所述标记点的分布区的数量,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:Optionally, 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.
可选地,所述定位标记特征还包括所述分布区域内的所述标记点的数量,所述基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:Optionally, 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:
在所述图像数据中只存在一个所述分布区域时,根据所述分布区域内的所述标记点的数量,确定所述耳机与所述图像采集装置之间的相对方位。When there is only one distribution area in the image data, 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.
可选地,所述定位标记特征还包括各个所述分布区域内的所述标记点的数量和/或所述标记点所在曲线对应的曲线轮廓,所述基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:Optionally, 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:
在所述图像数据中存在两个所述分布区域时,根据每一所述分布区域对应的所述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。When there are two distribution areas in the image data, 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.
可选地,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:Optionally, the step of determining the relative orientation between the earphone and the image capture device according to the positioning mark feature includes:
查询与所述定位标记特征匹配的预存定位标记特征;querying the pre-stored positioning mark features matching the positioning mark features;
根据所述预存定位标记特征关联的方位信息,确定所述耳机与所述图像采集装置之间的相对方位。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.
可选地,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤之后,还包括:Optionally, after the step of determining the relative orientation between the earphone and the image acquisition device according to the positioning mark feature, the method further includes:
将所述相对方位与所述图像数据的采集时间点关联保存;storing the relative orientation in association with the acquisition time point of the image data;
所述耳机定位方法还包括:The headset positioning method further includes:
接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度。When the rotation angle detection instruction is received, the rotation angle is determined according to the relative orientation stored in association with the acquisition time point.
可选地,所述接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度的步骤包括:Optionally, when the rotation angle detection instruction is received, the step of determining the rotation angle according to the relative orientation saved in association with the collection time point includes:
根据所述旋转角度检测指令确定第一时间点和第二时间点;determining a first time point and a second time point according to the rotation angle detection instruction;
获取所述第一时间点关联的第一相对方位,以及所述第二时间点关联的第二相对方位;obtaining a first relative orientation associated with the first time point and a second relative orientation associated with the second time point;
根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度。The rotation angle of the earphone is determined according to the first relative orientation and the second relative orientation.
可选地,所述根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度的步骤之后,还包括:Optionally, after the step of determining the rotation angle of the earphone 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.
此外,为实现上述目的,本申请还提供一种终端设备,所述终端设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机定位程序,所述耳机定位程序被所述处理器执行时实现如上所述的耳机定位方法的步骤。In addition, in order to achieve the above purpose, 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.
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有耳机定位程序,所述耳机定位程序被处理器执行时实现如上所述的耳机定位方法的步骤。In addition, in order to achieve the above purpose, 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.
附图说明Description of drawings
图1是本申请实施例方案涉及的硬件运行环境的终端结构示意图;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;
图2为本申请耳机定位方法的一实施例的流程示意图;FIG. 2 is a schematic flowchart of an embodiment of an earphone positioning method according to the present application;
图3为本申请实施例涉及的一种耳机的结构简图;FIG. 3 is a schematic structural diagram of an earphone according to an embodiment of the application;
图4为本申请实施例涉及的耳机与图像采集装置的位置示意图;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;
图5为本申请实施例涉及的耳机相对位置示意图;FIG. 5 is a schematic diagram of the relative positions of the earphones involved in the embodiment of the application;
图6为本申请耳机定位方法的另一实施例的流程示意图。FIG. 6 is a schematic flowchart of another embodiment of the earphone positioning method of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
随着技术的发展,用户对视听沉浸感的追求愈演愈烈。沉浸式3D(dimension,三维)音效变的越来越流行。在相关技术中,一般通过耳机内置6轴传感器,来定位用户旋转角度。从而根据Sensor(传感器)的检测数据,确定用户的方位变化情况。因此,在耳机的使用过程中,需要用户在使用前和使用中要及时校准基准方向。这样存在耳机使用步骤繁琐的缺陷。With the development of technology, users' pursuit of audio-visual immersion has intensified. Immersive 3D (dimension, three-dimensional) sound effects are becoming more and more popular. In the related art, the user's rotation angle is generally located by a built-in 6-axis sensor in the headset. Thus, according to the detection data of the Sensor, the change of the orientation of the user is determined. Therefore, in the process of using the headset, the user needs to calibrate the reference direction in time before and during use. This has the disadvantage of cumbersome steps to use the headset.
为解决上述缺陷,本申请实施例提出一种耳机定位方法,其主要解决方案包括以下步骤:In order to solve the above defects, an embodiment of the present application proposes an earphone positioning method, and the main solution includes the following steps:
获取图像采集装置采集的图像数据;acquiring image data collected by the image acquisition device;
根据所述图像数据确定所述图像数据对应的定位标记特征;Determine the positioning mark feature corresponding to the image data according to the image data;
根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。The relative orientation between the earphone and the image acquisition device is determined according to the feature of the positioning mark.
由于可以直接根据拍摄到的图像数据中,定位标记的特征确定耳机方位,从而无需进 行基准方位校正,达成了简化耳机使用步骤的效果。Since 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.
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1 , 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.
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard)、鼠标等,可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , 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 . Among them, 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. Optionally, 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. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the 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.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及耳机定位程序。As shown in FIG. 1, 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.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;处理器1001可以用于调用存储器1005中存储的耳机定位程序,并执行以下操作:In the terminal shown in FIG. 1, 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:
由于可以直接根据拍摄到的图像数据中,定位标记的特征确定耳机方位,从而无需进行基准方位校正,达成了简化耳机使用步骤的效果。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.
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:Further, 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.
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:Further, the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
在所述图像数据中只存在一个所述分布区域时,根据所述分布区域内的所述标记点的数量,确定所述耳机与所述图像采集装置之间的相对方位。When there is only one distribution area in the image data, 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.
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:Further, the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
在所述图像数据中存在两个所述分布区域时,根据每一所述分布区域对应的所述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。When there are two distribution areas in the image data, 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.
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:Further, the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
查询与所述定位标记特征匹配的预存定位标记特征;querying the pre-stored positioning mark features matching the positioning mark features;
根据所述预存定位标记特征关联的方位信息,确定所述耳机与所述图像采集装置之间的相对方位。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.
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:Further, the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
将所述相对方位与所述图像数据的采集时间点关联保存;storing the relative orientation in association with the acquisition time point of the image data;
所述耳机定位方法还包括:The headset positioning method further includes:
接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度。When the rotation angle detection instruction is received, the rotation angle is determined according to the relative orientation stored in association with the acquisition time point.
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:Further, the processor 1001 can call the earphone positioning program stored in the memory 1005, and also perform the following operations:
根据所述旋转角度检测指令确定第一时间点和第二时间点;determining a first time point and a second time point according to the rotation angle detection instruction;
获取所述第一时间点关联的第一相对方位,以及所述第二时间点关联的第二相对方位;obtaining a first relative orientation associated with the first time point and a second relative orientation associated with the second time point;
根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度。The rotation angle of the earphone is determined according to the first relative orientation and the second relative orientation.
进一步地,处理器1001可以调用存储器1005中存储的耳机定位程序,还执行以下操作:Further, 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.
参照图2,在本申请耳机定位方法的一实施例中,所述耳机定位方法包括以下步骤:Referring to FIG. 2, in an embodiment of the headset positioning method of the present application, the headset positioning method includes the following steps:
步骤S10、获取图像采集装置采集的图像数据;Step S10, acquiring image data collected by the image collection device;
步骤S20、根据所述图像数据确定所述图像数据对应的定位标记特征;Step S20, according to the image data, determine the positioning mark feature corresponding to the image data;
步骤S30、根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。Step S30: Determine the relative orientation between the earphone and the image capture device according to the feature of the positioning mark.
随着技术的发展,用户对视听沉浸感的追求愈演愈烈。沉浸式3D(dimension,三维)音效变的越来越流行。在相关技术中,一般通过耳机内置6轴传感器,来定位用户旋转角度。从而根据Sensor(传感器)的检测数据,确定用户的方位变化情况。因此,在耳机的使用过程中,需要用户在使用前和使用中要及时校准基准方向。这样存在耳机使用步骤繁琐的缺陷。With the development of technology, users' pursuit of audio-visual immersion has intensified. Immersive 3D (dimension, three-dimensional) sound effects are becoming more and more popular. In the related art, the user's rotation angle is generally located by a built-in 6-axis sensor in the headset. Thus, according to the detection data of the Sensor, the change of the orientation of the user is determined. Therefore, in the process of using the headset, the user needs to calibrate the reference direction in time before and during use. This has the disadvantage of cumbersome steps to use the headset.
为解决上述缺陷,本实施例提出一种耳机和耳机定位方法,旨在基于本实施例提出的耳机和耳机定位方法,解决相关技术中,耳机使用步骤繁琐的缺陷。In order to solve the above-mentioned defects, 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.
在本实施例中,所述耳机包括左听筒和右听筒,所述左听筒的第一外壳和所述右听筒的第二外壳上,设置有定位标记,其中,所述第一外壳和所述第二外壳对应的所述定位标记不同,使得可以通过所述定位标记区分左听筒和右听筒。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.
进一步地,参照图4,在本实施例中,为实现所述耳机定位方法,还设置有一位置固定位置的图像采集装置。使得可以通过图像采集装置采集包括所述耳机在内的图像数据。其中,当耳机与所述图像采集装置的相对位置不同时,可以根据所述图像数据中的所述定位标记的特征,确定所述耳机与所述图像采集装置之间的相对位置关系。Further, referring to FIG. 4 , in this embodiment, in order to realize the earphone positioning method, 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. Wherein, when 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.
在一可选实施方式中,定位标记为规则排布于所述第一外壳和所述第二外壳上的标记 点。In an optional embodiment, the positioning marks are marked points regularly arranged on the first casing and the second casing.
参照图3在本实施方式中,耳机包括第一外壳10和第二外壳20。在所述第一外壳20的非用户接触面上,设置有呈圆形排布的标识点。其中第二外壳的非用户接触面上,也设置有呈圆形排布的标识点。为使得可以区分第一外壳10和第二外壳20,可以将第一外壳10和第二外壳20上的标识点设置为不同的颜色和/或不同的数量。例如,可以在第一外壳10上设置12个标识点,而在第二外壳20上设置6个标识点。Referring to FIG. 3 , in this embodiment, the earphone includes a first casing 10 and a second casing 20 . 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. In order to make it possible to distinguish the first housing 10 and the second housing 20, 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 .
需要说明的是,所述标识点的排布方式也可以设置为其它图形。例如,可以设置为椭圆形或者矩形等。当然,在一些其它的实施方式中,所述定位标记也可以设置为环形灯带或者其它方式等。在此,不再枚举。It should be noted that 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. Of course, in some other implementations, the positioning mark may also be set as a ring light strip or other methods. Here, no more enumeration.
示例性地,可以在每一所述标记点对应的位置设置一红外LED灯。因为红外LED,只需在耳机外围使用透光材质做一圈开窗,对外观无影响。左耳壳为12颗LED,右耳壳为6颗LED,通过在第一外壳和第二外壳设置不同数量的LED来区分左右耳。Exemplarily, 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.
可以理解的是,耳机方位的确定,一般是在用户佩戴耳机的场景下才需要确定耳机的方位。因此,以下结合用户佩戴耳机的情景,来解释所述定位标记的作用。It can be understood that 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.
参照图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颗正圆形。Referring to FIG. 5 , when the user wears the earphone, the left and right earpieces correspond to the left and right ears of the user, respectively. When the user faces 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 . 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. In the process of moving to B, 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. When 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. When the user rotates from the B position to the A 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.
由此可见,在图像采集装置固定时,若耳机转动,则通过图像采集装置采集的图像数据中拍摄到的定位标记的,定位标记特征会随之变化。因此,基于此原理,本实施例提出一种耳机定位方法。It can be seen that, when the image acquisition device is fixed, if the earphone is rotated, the characteristics of the positioning marks captured in the image data collected by the image acquisition device will change accordingly. Therefore, based on this principle, this embodiment proposes an earphone positioning method.
具体地,所述耳机定位方法的执行主体可以是耳机,或者其它数据处理终端。Specifically, the executive body of the earphone positioning method may be an earphone or other data processing terminal.
示例性地,在一应用场景中,用户通过耳机接收VR游戏音效。为实现3D音效的效果,音频输出装置需要根据耳机的位置实时调节输出音频。因此,可以将音频输出装置作为所 述耳机定位方法的执行主体。在另一应用场景中,在其它VR生态环境下,可以直接由音频设备或者耳机作为所述耳机定位方法的执行主体。从而使得可以通过耳机输出具备3D音效的音频信号。Exemplarily, in an application scenario, the user receives VR game sound effects through a headset. In order to achieve the effect of 3D sound effect, 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. In another application scenario, in other VR ecological environments, an audio device or a headset may be directly used as an execution subject of the headset positioning method. Thus, the audio signal with 3D sound effect can be output through the earphone.
进一步地,在本实施例中,可以先获取图像采集装置采集的图像数据,然后根据所述图像数据确定所述图像数据对应的定位标记特征,进而根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。其中,在根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位时,将各个相对方位对应的定位标记特征保存至存储介质中,即预先保存预存定位标记与所述相对方位的关联关系。从而使得在进行耳机定位时,可以先查询与所述定位标记特征匹配的预存定位标记特征,进而根据所述预存定位标记特征关联的方位信息,确定所述耳机与所述图像采集装置之间的相对方位。Further, in this embodiment, 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.
其中,当所述定位标记为规则排布于所述第一外壳和所述第二外壳上的标记点时,所述定位标记特征包括所述图像数据中,所述标记点的分布区的数量。Wherein, when the positioning marks are marked points regularly arranged on the first shell and the second shell, the positioning mark features include the number of distribution areas of the marking points in the image data .
示例性地,参照5当所述相对位置为B位置和D位置时,所述在所述图像数据中只存在一个所述分布区域。因此可以根据所述分布区域内的所述标记点的数量,确定所述耳机与所述图像采集装置之间的相对方位。其中,第一壳体和第二壳体上的标记点的数量不同。Exemplarily, referring to 5, when the relative positions are the B position and the D position, there is only one distribution area in the image data. Therefore, 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. When there are two distribution areas in the image data, according to 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.
示例性地,参照图5,当所述相对位置处于B位置和D位置之外的其它位置时,图像数据中存在两个所述分布区域,因此可以根据每一分布区域内的述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。Exemplarily, referring to FIG. 5 , 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.
在本实施例公开的技术方案中,先获取图像采集装置采集的图像数据,然后根据所述图像数据确定所述图像数据对应的定位标记特征,进而根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。由于可以直接根据拍摄到的图像数据中,定位标记的特征确定耳机方位,从而无需进行基准方位校正,达成了简化耳机使用步骤的效果。In the technical solution disclosed in this embodiment, 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.
参照图6,基于上述实施例,在另一实施例中,所述步骤S30之后,还包括:Referring to FIG. 6, based on the foregoing embodiment, in another embodiment, after step S30, the method further includes:
步骤S40、将所述相对方位与所述图像数据的采集时间点关联保存。Step S40: Associate and save the relative orientation with the acquisition time point of the image data.
在本实施例中,根据每一帧所述图像数据,可以确定一相对方位。因此,可以将该帧 图像数据对应的采集时间与所述相对方位关联保存。In this embodiment, 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.
进一步地,在连续获取到多帧数据时,可以根据各帧数据对应的相对方位。其中,可以在采集到一帧新的图像数据时,触发一旋转角度检测指令。然后根据所述旋转角度检测指令确定第一时间点和第二时间点。其中,可以将当前帧的上一帧图像数据的采集时间点作为第一时间点,当前帧的采集时间点作为第二时间点。确定用户在第一时间点到第二时间点的时段内的转动角度。即可以获取第一时间点关联的第一相对方位,以及第二时间点关联的第二相对方,然后根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度。其中,所述第一时间点和第二时间点对应为所述图像数据的采集时间点。Further, when multiple frames of data are continuously acquired, the relative orientation corresponding to each frame of data may be used. Wherein, when a new frame of image data is collected, a rotation angle detection instruction can be triggered. Then, the first time point and the second time point are determined according to the rotation angle detection instruction. Wherein, the acquisition time point of the previous frame of image data of the current frame may be used as the first time point, and 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. Wherein, the first time point and the second time point correspond to the acquisition time points of the image data.
当根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度后,可以根据所述旋转角度调节所述耳机的输出信号。After the rotation angle of the earphone is determined according to the first relative orientation and the second relative orientation, the output signal of the earphone can be adjusted according to the rotation angle.
此外,本申请实施例还提出一种终端设备,所述终端设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机定位程序,所述耳机定位程序被所述处理器执行时实现如上各个实施例所述的耳机定位方法的步骤。In addition, 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.
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有耳机定位程序,所述耳机定位程序被处理器执行时实现如上各个实施例所述的耳机定位方法的步骤。In addition, 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.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备执行本申请各个实 施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device execute the method described in each embodiment of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields , are similarly included within the scope of patent protection of this application.

Claims (10)

  1. 一种耳机定位方法,其特征在于,所述耳机包括左听筒和右听筒,所述左听筒的第一外壳和所述右听筒的第二外壳上,设置有定位标记,其中,所述第一外壳和所述第二外壳对应的所述定位标记不同,所述耳机定位方法包括:An earphone positioning method, characterized in that the earphone comprises a left earpiece and a right earpiece, a first shell of the left earpiece and a second shell of the right earpiece are provided with positioning marks, wherein the first The positioning marks corresponding to the shell and the second shell are different, and the headset positioning method includes:
    获取图像采集装置采集的图像数据;acquiring image data collected by the image acquisition device;
    根据所述图像数据确定所述图像数据对应的定位标记特征;Determine the positioning mark feature corresponding to the image data according to the image data;
    根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位。The relative orientation between the earphone and the image acquisition device is determined according to the feature of the positioning mark.
  2. 如权利要求1所述的耳机定位方法,其特征在于,所述定位标记为规则排布于所述第一外壳和所述第二外壳上的标记点,所述定位标记特征包括所述图像数据中,所述标记点的分布区的数量,其中,所述分布区域为所述标记点的集中区域,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:The headset positioning method according to claim 1, wherein the positioning marks are marked points regularly arranged on the first shell and the second shell, and the positioning mark features include the image data , the number of distribution areas of the marker points, wherein the distribution area is a concentrated area of the marker points, and the relative orientation between the earphone and the image acquisition device is determined according to the positioning marker feature The steps include:
    基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位。The relative orientation between the headset and the image capture device is determined based on the number of distribution areas.
  3. 如权利要求2所述的耳机定位方法,其特征在于,所述定位标记特征还包括所述分布区域内的所述标记点的数量,所述基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:The headphone positioning method according to claim 2, wherein the positioning mark feature further comprises the number of the mark points in the distribution area, and the headphone and the headphone are determined based on the number of the distribution area. The steps of describing the relative orientation between the image capturing devices include:
    在所述图像数据中只存在一个所述分布区域时,根据所述分布区域内的所述标记点的数量,确定所述耳机与所述图像采集装置之间的相对方位。When there is only one distribution area in the image data, 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.
  4. 如权利要求2所述的耳机定位方法,其特征在于,所述定位标记特征还包括各个所述分布区域内的所述标记点的数量和/或所述标记点所在曲线对应的曲线轮廓,所述基于所述分布区域的数量确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:The earphone positioning method according to claim 2, wherein the positioning mark feature further comprises the number of the mark points in each of the distribution areas and/or the curve profile corresponding to the curve where the mark points are located, and the The step of determining the relative orientation between the headset and the image acquisition device based on the number of the distribution areas includes:
    在所述图像数据中存在两个所述分布区域时,根据每一所述分布区域对应的所述标记点的数量和/或曲线轮廓,确定所述耳机与所述图像采集装置之间的相对方位。When there are two distribution areas in the image data, 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.
  5. 如权利要求1所述的耳机定位方法,其特征在于,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤包括:The headset positioning method according to claim 1, wherein the step of determining the relative orientation between the headset and the image acquisition device according to the positioning mark feature comprises:
    查询与所述定位标记特征匹配的预存定位标记特征;querying the pre-stored positioning mark features matching the positioning mark features;
    根据所述预存定位标记特征关联的方位信息,确定所述耳机与所述图像采集装置之间的相对方位。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.
  6. 如权利要求1所述的耳机定位方法,其特征在于,所述根据所述定位标记特征确定所述耳机与所述图像采集装置之间的相对方位的步骤之后,还包括:The headset positioning method according to claim 1, wherein after the step of determining the relative orientation between the headset and the image acquisition device according to the positioning mark feature, the method further comprises:
    将所述相对方位与所述图像数据的采集时间点关联保存;storing the relative orientation in association with the acquisition time point of the image data;
    所述耳机定位方法还包括:The headset positioning method further includes:
    接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度。When the rotation angle detection instruction is received, the rotation angle is determined according to the relative orientation stored in association with the acquisition time point.
  7. 如权利要求6所述的耳机定位方法,其特征在于,所述接收到旋转角度检测指令时,根据关联保存的所述相对方位与所述采集时间点确定旋转角度的步骤包括:The headset positioning method according to claim 6, wherein when the rotation angle detection instruction is received, the step of determining the rotation angle according to the relative orientation saved in association with the collection time point comprises:
    根据所述旋转角度检测指令确定第一时间点和第二时间点;determining a first time point and a second time point according to the rotation angle detection instruction;
    获取所述第一时间点关联的第一相对方位,以及所述第二时间点关联的第二相对方位;obtaining a first relative orientation associated with the first time point and a second relative orientation associated with the second time point;
    根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度。The rotation angle of the earphone is determined according to the first relative orientation and the second relative orientation.
  8. 如权利要求7所述的耳机定位方法,其特征在于,所述根据所述第一相对方位和所述第二相对方位,确定所述耳机的旋转角度的步骤之后,还包括:The headset positioning method according to claim 7, wherein after the step of determining the rotation angle of the headset according to the first relative orientation and the second relative orientation, the method further comprises:
    根据所述旋转角度调节所述耳机的输出信号。The output signal of the earphone is adjusted according to the rotation angle.
  9. 一种终端设备,其特征在于,所述终端设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机定位程序,所述耳机定位程序被所述处理器执行时实现如权利要求1至8中任一项所述的耳机定位方法的步骤。A terminal device, characterized in that the terminal device comprises: a memory, a processor, and an earphone positioning program stored on the memory and running on the processor, the earphone positioning program being executed by the processor The steps of implementing the earphone positioning method according to any one of claims 1 to 8 when executed.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有耳机定位程序,所述耳机定位程序被处理器执行时实现如权利要求1至8中任一项所述的耳机定位方法的步骤。A computer-readable storage medium, characterized in that a headset positioning program is stored on the computer-readable storage medium, and when the headset positioning program is executed by a processor, the method described in any one of claims 1 to 8 is implemented. The steps of the headset positioning method.
PCT/CN2021/102017 2020-12-28 2021-06-24 Earphone positioning method, terminal device, and storage medium WO2022142192A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011595585.8 2020-12-28
CN202011595585.8A CN112733840A (en) 2020-12-28 2020-12-28 Earphone positioning method, terminal equipment and storage medium

Publications (1)

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

Family

ID=75610525

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/102017 WO2022142192A1 (en) 2020-12-28 2021-06-24 Earphone positioning method, terminal device, and storage medium

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116600227A (en) * 2023-07-17 2023-08-15 深圳市丽耳科技有限公司 Earphone shell assembling method and earphone shell assembling device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112733840A (en) * 2020-12-28 2021-04-30 歌尔光学科技有限公司 Earphone positioning method, terminal equipment and storage medium

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 (en) * 2018-11-29 2019-01-11 努比亚技术有限公司 Switching method, device, terminal and the storage medium of earphone sound channel
CN109413555A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Audio-frequency inputting method, device, earphone and electronic equipment
CN110139178A (en) * 2018-02-02 2019-08-16 中兴通讯股份有限公司 A kind of method, apparatus, equipment and the storage medium of determining terminal moving direction
CN110659587A (en) * 2019-09-02 2020-01-07 广东虚拟现实科技有限公司 Marker, marker identification method, marker identification device, terminal device and storage medium
CN111093513A (en) * 2017-09-14 2020-05-01 神经系统分析公司 System and method for registering a headset system
CN112733840A (en) * 2020-12-28 2021-04-30 歌尔光学科技有限公司 Earphone positioning method, terminal equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015139005A1 (en) * 2014-03-14 2015-09-17 Sony Computer Entertainment Inc. Methods and systems tracking head mounted display (hmd) and calibrations for hmd headband adjustments
CN105825160B (en) * 2015-01-05 2020-07-14 苏州宝时得电动工具有限公司 Positioning device based on image recognition and positioning method thereof
CN110555879B (en) * 2018-05-31 2023-09-08 京东方科技集团股份有限公司 Space positioning method, device, system and computer readable medium thereof
CN111198608B (en) * 2018-11-16 2021-06-22 广东虚拟现实科技有限公司 Information prompting method and device, terminal equipment and computer readable storage medium
CN110968182A (en) * 2018-09-30 2020-04-07 广东虚拟现实科技有限公司 Positioning tracking method and device and wearable equipment thereof
CN111821025B (en) * 2020-07-21 2022-05-13 腾讯科技(深圳)有限公司 Space positioning method, device, equipment, storage medium and navigation bar

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 (en) * 2017-09-14 2020-05-01 神经系统分析公司 System and method for registering a headset system
CN110139178A (en) * 2018-02-02 2019-08-16 中兴通讯股份有限公司 A kind of method, apparatus, equipment and the storage medium of determining terminal moving direction
CN109413555A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Audio-frequency inputting method, device, earphone and electronic equipment
CN109195058A (en) * 2018-11-29 2019-01-11 努比亚技术有限公司 Switching method, device, terminal and the storage medium of earphone sound channel
CN110659587A (en) * 2019-09-02 2020-01-07 广东虚拟现实科技有限公司 Marker, marker identification method, marker identification device, terminal device and storage medium
CN112733840A (en) * 2020-12-28 2021-04-30 歌尔光学科技有限公司 Earphone positioning method, terminal equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116600227A (en) * 2023-07-17 2023-08-15 深圳市丽耳科技有限公司 Earphone shell assembling method and earphone shell assembling device
CN116600227B (en) * 2023-07-17 2023-10-27 深圳市丽耳科技有限公司 Earphone shell assembling method and earphone shell assembling device

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2022142192A1 (en) Earphone positioning method, terminal device, and storage medium
US11494158B2 (en) Augmented reality microphone pick-up pattern visualization
US11517099B2 (en) Method for processing images, electronic device, and storage medium
EP2899618B1 (en) Control device and computer-readable storage medium
US10067562B2 (en) Display apparatus and image correction method thereof
CN103970500B (en) The method and device that a kind of picture shows
TW201535160A (en) Using proximity sensing to adjust information provided on a mobile device
CN108848313B (en) Multi-person photographing method, terminal and storage medium
CN109522863B (en) Ear key point detection method and device and storage medium
WO2022134632A1 (en) Work processing method and apparatus
CN113280752B (en) Groove depth measurement method, device and system and laser measurement equipment
JP2018133019A (en) Information processing system, information processing method, and program
CN106502606A (en) A kind of method of showing edge image and electronic equipment
US20140354784A1 (en) Shooting method for three dimensional modeling and electronic device supporting the same
CN110248197B (en) Voice enhancement method and device
WO2023051305A1 (en) Smart device control method and system, electronic device, and storage medium
CN111932604A (en) Method and device for measuring human ear characteristic distance
WO2019100299A1 (en) Head-mounted display apparatus and automatic calibration method of touch device thereof
KR20140019215A (en) Camera cursor system
US20180150957A1 (en) Multi-spectrum segmentation for computer vision
WO2018107566A1 (en) Processing method and mobile device
US20230045721A1 (en) Audio signal processing method, electronic apparatus, and storage medium
US11950087B2 (en) Audio signal processing method, electronic apparatus, and storage medium
WO2020063027A1 (en) 3d sound effect processing method and related product
JP6374203B2 (en) Display system and program

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