Earphone control method and device, computer readable storage medium and earphone

By integrating a camera module into the headset to acquire environmental images and automatically identify external devices, priority-based connection is achieved, solving the cumbersome problem of connecting the headset with external devices, achieving a convenient reconnection process, and improving the user experience.

CN120659032APending Publication Date: 2025-09-16GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510795519.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

In the prior art, the communication connection and reconnection process between headphones and external devices is cumbersome, especially when switching between multiple devices or after a short period of loss of connection, which consumes a lot of user time and energy and leads to a poor user experience.

Method used

The headset acquires environmental images through the camera module, identifies external devices and automatically establishes communication connections based on preset priorities, including image feature extraction and matching, and stores device features for reconnection.

Benefits of technology

The target device can be automatically identified and connected without manual operation by the user, which improves the user experience and saves time and effort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120659032A_ABST
    Figure CN120659032A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of earphone control, and particularly relates to an earphone control method and device, a computer readable storage medium and an earphone. The method comprises the following steps: acquiring an environment image of an earphone when the earphone is in an unconnected state; based on a preset external equipment set, performing external equipment identification in the environment image to obtain an external equipment identification result; determining to-be-connected target external equipment according to the external equipment identification result and preset external equipment connection priority configuration information; and controlling the earphone to establish communication connection with the target external equipment. Through the method and the device, each external device can be identified in the environment image of the earphone, the target external device is determined based on the priority, the communication connection between the external device and the earphone is automatically established, a user does not need to manually carry out a tedious communication connection operation process, time and labor are saved, and the use experience of the user is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of headphone control technology, and in particular relates to a headphone control method, device, computer-readable storage medium, and headphone. Background Art

[0002] In the prior art, there are many inconveniences in the communication connection and reconnection methods between headphones and external devices (including but not limited to mobile phones, tablets, computers, etc.). Traditional Bluetooth pairing and connection usually requires manually searching for the Bluetooth headset device name in the Bluetooth setting interface of the external device, and then performing the pairing and connection operation. This operation process is relatively cumbersome, and for users who are not familiar with the operation of electronic devices, they may encounter various difficulties. In terms of reconnection, when a Bluetooth headset is disconnected from a paired external device, if you want to reconnect, you often need to repeat manual operations similar to the first pairing connection, or select the corresponding headset in the Bluetooth paired device list of the external device for connection. This reconnection method lacks intelligence and convenience, especially in scenarios where multiple external devices are switched or external devices are reconnected after a short loss of connection. It consumes a lot of user time and energy, and the user experience is poor. Summary of the Invention

[0003] In view of this, the embodiments of the present application provide a headset control method, device, computer-readable storage medium and headset to solve the problem in the prior art that the communication connection operation process between the headset and the external device is relatively cumbersome, consumes a lot of user time and energy, and has a poor user experience.

[0004] A first aspect of an embodiment of the present application provides an earphone control method, which may include:

[0005] When the headset is in an unconnected state, acquiring an environmental image of the headset;

[0006] Based on a preset set of external devices, performing external device recognition in the environment image to obtain an external device recognition result;

[0007] Determining a target external device to be connected based on the external device identification result and preset external device connection priority configuration information;

[0008] The headset is controlled to establish a communication connection with the target external device.

[0009] In a specific implementation of the first aspect, determining the target external device to be connected based on the external device identification result and preset external device connection priority configuration information may include:

[0010] Based on the external device connection priority configuration information, selecting the external device with the highest priority from the external device identification results;

[0011] The external device with the highest priority is determined as the target external device.

[0012] In a specific implementation of the first aspect, before performing external device recognition in the environment image based on a preset external device set and obtaining an external device recognition result, the method may further include:

[0013] determining the type of environment in which the headset is located according to the environment image;

[0014] determining an external device recognition sensitivity corresponding to the environment type;

[0015] Accordingly, the external device recognition is performed in the environment image based on the preset external device set to obtain the external device recognition result, including:

[0016] Based on the external device set and the external device recognition sensitivity, external device recognition is performed in the environment image to obtain the external device recognition result.

[0017] In a specific implementation of the first aspect, determining the external device recognition sensitivity corresponding to the environment type may include:

[0018] Determining the external device recognition sensitivity corresponding to the environment type based on preset external device recognition sensitivity configuration information;

[0019] The external device recognition sensitivity configuration information includes a correspondence between the environment type and the external device recognition sensitivity.

[0020] In a specific implementation of the first aspect, performing external device recognition in the environment image based on a preset external device set to obtain an external device recognition result may include:

[0021] Performing image feature extraction on the environment image to obtain a first image feature;

[0022] Acquire a second image feature corresponding to the external device to be matched; wherein the external device to be matched is any external device in the set of external devices;

[0023] performing image feature matching on the first image feature and the second image feature to obtain an image feature matching result;

[0024] The external device recognition result corresponding to the to-be-matched external device is determined according to the image feature matching result.

[0025] In a specific implementation of the first aspect, controlling the headset to establish a communication connection with the target external device may include:

[0026] Acquiring communication connection configuration information corresponding to the target external device;

[0027] Based on the communication connection configuration information, the headset is controlled to establish a communication connection with the target external device.

[0028] In a specific implementation of the first aspect, the headphone control method may further include:

[0029] When the headset and the connected external device establish a communication connection for the first time, acquiring an image of the connected external device;

[0030] performing image feature extraction on the image of the connected external device to obtain image features of the connected external device;

[0031] The connected external device is added to the external device set, and the image feature of the connected external device is stored.

[0032] A second aspect of the embodiments of the present application provides an earphone control device, which may include:

[0033] An environmental image acquisition module, configured to acquire an environmental image of the headset when the headset is not connected;

[0034] an external device identification module, configured to identify external devices in the environment image based on a preset set of external devices, and obtain an external device identification result;

[0035] a target external device determining module, configured to determine a target external device to be connected based on the external device identification result and preset external device connection priority configuration information;

[0036] The communication connection establishing module is used to control the headset to establish a communication connection with the target external device.

[0037] In a specific implementation of the second aspect, the target external device determination module can be specifically used to: select the external device with the highest priority in the external device identification results based on the external device connection priority configuration information; and determine the external device with the highest priority as the target external device.

[0038] In a specific implementation of the second aspect, the earphone control device may further include:

[0039] an environment type determination module, configured to determine the type of environment in which the headset is located based on the environment image;

[0040] an identification sensitivity determination module, configured to determine an external device identification sensitivity corresponding to the environment type;

[0041] Accordingly, the external device identification module may be specifically configured to: perform external device identification in the environment image based on the external device set and the external device identification sensitivity, and obtain the external device identification result.

[0042] In a specific implementation of the second aspect, the recognition sensitivity determination module may be specifically configured to: determine the external device recognition sensitivity corresponding to the environment type based on preset external device recognition sensitivity configuration information;

[0043] The external device recognition sensitivity configuration information includes a correspondence between the environment type and the external device recognition sensitivity.

[0044] In a specific implementation of the second aspect, the target external device determination module can be specifically used to: extract image features from the environmental image to obtain a first image feature; obtain a second image feature corresponding to the external device to be matched; wherein the external device to be matched is any one of the external devices in the set of external devices; perform image feature matching on the first image feature and the second image feature to obtain an image feature matching result; and determine the external device identification result corresponding to the external device to be matched based on the image feature matching result.

[0045] In a specific implementation of the second aspect, the communication connection establishing module can be specifically used to: obtain communication connection configuration information corresponding to the target external device; and control the headset to establish a communication connection with the target external device based on the communication connection configuration information.

[0046] In a specific implementation of the second aspect, the earphone control device may further include:

[0047] An image feature storage module is used to obtain an image of the connected external device when the headset and the connected external device establish a communication connection for the first time; perform image feature extraction on the image of the connected external device to obtain image features of the connected external device; add the connected external device to the external device set, and store the image features of the connected external device.

[0048] A third aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned headphone control methods are implemented.

[0049] A fourth aspect of an embodiment of the present application provides an earphone, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned earphone control methods when executing the computer program.

[0050] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a headset, the headset executes the steps of any one of the above-mentioned headset control methods.

[0051] Compared with the prior art, the embodiments of the present application have the following advantages: when the headset is not connected, the embodiments of the present application obtain an environmental image of the headset; based on a preset set of external devices, the external device is identified in the environmental image to obtain an external device identification result; based on the external device identification result and preset external device connection priority configuration information, the target external device to be connected is determined; and the headset is controlled to establish a communication connection with the target external device. Through the embodiments of the present application, each external device can be identified in the headset's environmental image, and the target external device can be determined based on the priority, and a communication connection between the two can be automatically established, eliminating the need for the user to manually perform tedious communication connection operations, saving time and effort, and effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0053] Figure 1 This is a schematic flow chart of the headset establishing a communication connection with an external device for the first time;

[0054] Figure 2 This is a schematic flow chart of the headset re-establishing a communication connection with an external device;

[0055] Figure 3 A schematic flow chart for identifying external devices in an environment image;

[0056] Figure 4 This is a structural diagram of an embodiment of an earphone control device in an embodiment of the present application;

[0057] Figure 5 This is a schematic block diagram of an earphone in an embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0059] It will be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0060] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0061] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0062] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0063] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0064] In the prior art, there are many inconveniences in the communication connection and reconnection methods between headphones and external devices (including but not limited to mobile phones, tablets, computers, etc.). Traditional Bluetooth pairing and connection usually requires manually searching for the Bluetooth headset device name in the Bluetooth setting interface of the external device, and then performing the pairing and connection operation. This operation process is relatively cumbersome, and for users who are not familiar with the operation of electronic devices, they may encounter various difficulties. In terms of reconnection, when a Bluetooth headset is disconnected from a paired external device, if you want to reconnect, you often need to repeat manual operations similar to the first pairing connection, or select the corresponding headset in the Bluetooth paired device list of the external device for connection. This reconnection method lacks intelligence and convenience, especially in scenarios where multiple external devices are switched or external devices are reconnected after a short loss of connection. It consumes a lot of user time and energy, and the user experience is poor.

[0065] In view of this, the embodiments of the present application provide a headset control method, device, computer-readable storage medium and headset to solve the problem in the prior art that the communication connection operation process between the headset and the external device is relatively cumbersome, consumes a lot of user time and energy, and has a poor user experience.

[0066] The embodiment of the present application can identify various external devices in the environmental image of the headset, determine the target external device based on priority, and automatically establish a communication connection between the two, without the user having to manually perform tedious communication connection operations, saving time and effort and effectively improving the user experience.

[0067] The embodiment of the present application may be performed by a headset, which may include but is not limited to a processor, a communication module, a camera module, and an audio output module.

[0068] Among them, the processor may include but is not limited to a low-power, high-performance microcontroller (MCU), which is used to coordinate the camera module for image acquisition and data processing, control the overall operation rhythm, and use the communication module to achieve stable and high-speed audio transmission and control command feedback with external devices.

[0069] The communication module may include but is not limited to a Bluetooth communication module. For example, it may be a Bluetooth 5.0 or above chip that supports dual-mode working modes of low-power Bluetooth (BLE) and classic Bluetooth. When the headset is paired with an external device for the first time, the classic Bluetooth mode is used for a stable and high-speed pairing and connection process, transmitting a large amount of pairing information and initial setting data. After the pairing is successful, data transmission (such as audio transmission) in daily use can be flexibly switched to low-power Bluetooth mode according to actual needs to reduce power consumption and extend the battery life of the headset. The Bluetooth communication module is closely connected to the microcontroller, and the microprocessor can control the working mode switching, pairing request sending, connection status monitoring, and data transmission management of the Bluetooth communication module.

[0070] The camera module may include, but is not limited to, a miniature high-definition camera, which can be embedded in a suitable location such as the front of the headset housing or above the ear, ensuring that the field of view covers the user's main activity area in front of the headset without affecting wearing comfort. The camera can use a high-pixel (for example, no less than 5 million pixels), low-noise, high-sensitivity complementary metal oxide semiconductor (CMOS) image sensor with autofocus, autoexposure, and wide dynamic range functions. It can clearly capture environmental details under different lighting conditions (from bright outdoor light to low-light indoor light) and distances (from close-up desktop to distant street view), adapting to a variety of usage scenarios.

[0071] The audio output module may include but is not limited to high-performance sound units. For example, a hybrid architecture of dynamic coils and balanced irons may be adopted. The dynamic coils focus on strong low-frequency output to restore the rich drum beats and bass rhythms; the balanced irons sculpt delicate high-frequency tones and accurately interpret string music and human voice overtones. The frequency response can span 20 Hz-40kHz, ensuring excellent sound quality across the entire frequency band. Combined with the results of environmental analysis, efficient calculations and real-time rendering of appropriate sound effects are performed.

[0072] In the embodiment of the present application, when the headset establishes a communication connection with the external device for the first time, the image features of the external device can be stored for use when the headset is reconnected. The specific process is as follows: Figure 1 As shown:

[0073] Step S101: When the headset and the connected external device establish a communication connection for the first time, an image of the connected external device is acquired.

[0074] When the headset establishes a communication connection with an external device for the first time, the user can turn on the power of the headset, and the power management module inside the headset starts to power various hardware modules such as the processor, communication module, camera module and audio output module. The processor can execute the system initialization program and perform self-tests on each hardware module to check whether the camera module is working properly (such as whether the lens is clear and whether the image sensor can collect data normally), whether the communication module can search and connect to the device normally, whether the storage chip is readable and writable, and whether the audio output module can sound and record normally. If any hardware failure is found, the user can be informed through the headset status indicator (such as flashing red) or voice prompts (such as "System initialization failed, please check the device"). At the same time, the processor can initialize the Bluetooth module to a searchable state, set its working mode to classic Bluetooth mode, and prepare for the first pairing connection with the external device.

[0075] Taking Bluetooth connection as an example, the user can search for available Bluetooth devices in the Bluetooth settings interface of the external device, find the headset and choose to pair and connect. The external device and the Bluetooth communication module of the headset exchange pairing information, including the exchange of information such as device name and MAC address, and perform authentication according to the Bluetooth pairing protocol (such as entering a pairing code or confirming a pairing request). Once the pairing is successful, the Bluetooth communication module can send a pairing success signal to the processor.

[0076] After receiving the successful pairing signal, the processor can start the camera module to capture images from the external device. The camera module can capture images according to preset parameters. The specific parameters can be flexibly set according to actual conditions, and the embodiments of the present application do not specifically limit this. For example, the image resolution can be set to 1080P and the frame rate can be set to 10-20 frames per second to capture a 5-10 second video image sequence. The captured image sequence is transmitted frame by frame to the processor for the processor to process each frame of the image in sequence.

[0077] Step S102: extract image features from the image of the connected external device to obtain image features of the connected external device.

[0078] In an embodiment of the present application, grayscale processing can be first performed to convert the color image into a grayscale image, as shown in the following formula: Gray = 0.299×R+0.587×G+0.114×B, where R, G, and B are the red, green, and blue color components of the color image pixel, respectively, and Gray is the grayscale value. Gaussian filtering can then be performed, using a Gaussian convolution kernel such as 3×3 or 5×5 to perform a convolution operation with the image to remove noise interference in the image and smooth the image data. Next, image feature extraction can be performed on the filtered image using algorithms such as scale-invariant feature transform (SIFT) or speeded-up robust features (SURF). These algorithms can extract local feature points and their descriptors in the image. These feature points have good properties such as scale invariance and rotation invariance, and can accurately describe the image features of the connected external device at different angles and distances.

[0079] Step S103: Add the connected external device to the external device set, and store the image features of the connected external device.

[0080] In an embodiment of the present application, the image features of the connected external device can be stored in the memory chip of the headset and associated with the communication connection configuration information of the external device (which may include but is not limited to the device name, MAC address, pairing key, etc.) as a basis for subsequent recognition. After storage is completed, the user can be informed through a status indicator (such as a solid blue light) or a voice prompt (such as "First pairing and image acquisition completed").

[0081] When the headset is disconnected from an external device and needs to establish a communication connection again, the headset can identify the external device that has been connected in the headset's environmental image and establish a communication connection between the two. Figure 2 In an embodiment of the present application, an embodiment of a headset control method may include:

[0082] Step S201: When the headset is not connected, obtain an environment image of the headset.

[0083] In an embodiment of the present application, the processor can activate the camera module to capture images of the environment surrounding the headset. The camera module can capture images according to preset parameters. The specific parameters can be flexibly set according to actual conditions and are not specifically limited in this embodiment of the present application. For example, the image resolution can be set to 1080P and the frame rate can be set to 10-20 frames per second to capture a 5-10 second video image sequence. The captured image sequence is transmitted frame by frame to the processor, so that the processor can process each frame of the image in sequence.

[0084] Step S202: Based on a preset external device set, external device recognition is performed in the environment image to obtain an external device recognition result.

[0085] Among them, the external device set may include various external devices that have established communication connections with the headset. Take any one of the external devices as an example, record it as the external device to be matched, and its corresponding identification process is as follows: Figure 3 As shown:

[0086] Step S2021: extract image features from the environment image to obtain a first image feature.

[0087] The specific process of image feature extraction can be found in the detailed description of step S102, which will not be described in detail in this embodiment of the application. For the sake of distinction, the image feature of the environment image is recorded as the first image feature.

[0088] Step S2022: Acquire a second image feature corresponding to the external device to be matched.

[0089] Since the external device to be matched has established a communication connection with the headset, its image features have been stored in the headset's memory chip, so its image features can be directly obtained from the memory chip. For ease of distinction, the image features of the external device to be matched are recorded as the second image features here.

[0090] Step S2023: performing image feature matching on the first image feature and the second image feature to obtain an image feature matching result.

[0091] In the embodiment of the present application, any image feature matching algorithm can be used to perform image feature matching on the first image feature and the second image feature according to actual conditions, including but not limited to the nearest neighbor matching algorithm based on Euclidean distance, etc., and the embodiment of the present application does not make specific limitations on this.

[0092] Step S2024: Determine the external device recognition result corresponding to the external device to be matched based on the image feature matching result.

[0093] In the embodiment of the present application, if the number of successfully matched feature points is greater than a preset threshold, it can be determined that the external device to be matched has been identified. Conversely, if the number of successfully matched feature points is less than or equal to the preset threshold, it can be determined that the external device to be matched has not been identified. The specific value of the threshold can be flexibly set based on actual circumstances. For example, it can be set to 70% of the total number of feature points of the external device to be matched, or other values. This embodiment of the present application does not specifically limit this.

[0094] The number threshold can be negatively correlated with the recognition sensitivity. That is, the higher the recognition sensitivity, the lower the corresponding number threshold, making it easier to recognize external devices, but also increasing the probability of misidentification. Therefore, it is suitable for relatively simple and single environments to speed up reconnection. Conversely, the lower the recognition sensitivity, the higher the corresponding number threshold, making it more difficult to recognize external devices, but also decreasing the probability of misidentification. Therefore, it is suitable for environments with many and complex devices to avoid misidentification.

[0095] According to the above method, by traversing each external device in the external device set, the external device identification result corresponding to each external device can be obtained, that is, whether the external device is identified.

[0096] If none of the external devices in the set of external devices are recognized, the process may return to step S201 and its subsequent steps. Specifically, the camera's viewing angle may be changed, and an image of the headset's surroundings may be captured again from the new viewing angle, followed by re-performing external device recognition. If at least one external device in the set of external devices is recognized, the process may continue with step S203 and its subsequent steps.

[0097] It should be noted that the image acquisition process / feature extraction process involved in the embodiments of the present application is performed with the user's knowledge and permission, that is, the image acquisition process / feature extraction process complies with relevant requirements and does not constitute an act that harms the public interest.

[0098] Step S203: Determine the target external device to be connected based on the external device identification result and the preset external device connection priority configuration information.

[0099] In an embodiment of the present application, a user can pre-configure the connection priority of each external device in the external device set, thereby forming external device connection priority configuration information. For example, if the external device set includes three external devices, respectively recorded as external device 1 (mobile phone), external device 2 (tablet), and external device 3 (computer), then external device 1 can be configured as the highest priority, external device 2 can be configured as the second highest priority, and external device 3 can be configured as the lowest priority. It should be noted that the above priority configuration information is only an example. In actual applications, other different configurations can be selected according to specific circumstances. The embodiment of the present application does not specifically limit this.

[0100] After the external device is identified, the external device with the highest priority may be selected from the external device identification results based on the external device connection priority configuration information, and the external device with the highest priority may be determined as the target external device.

[0101] Step S204: Control the headset to establish a communication connection with the target external device.

[0102] Since the target external device has established a communication connection with the headset, its corresponding communication connection configuration information has been stored in the memory chip of the headset, so its corresponding communication connection configuration information can be directly obtained from the memory chip.

[0103] Based on the communication connection configuration information, the headset can be controlled to establish a communication connection with the target external device. Specifically, the controller can control the Bluetooth communication module to switch to a connection mode, send a connection request packet to the target external device, and perform identity authentication and connection establishment operations according to the Bluetooth pairing connection protocol.

[0104] During the entire reconnection process, the reconnection status can be fed back to the user through the status indicator (e.g., flashing blue indicates reconnection, and solid blue indicates successful reconnection) and voice prompts (e.g., "Reconnecting to [device name]" and "Reconnection successful"). If the reconnection fails (e.g., the device does not have Bluetooth turned on or is out of Bluetooth connection range), the status indicator will flash red and a voice prompt will be given, "Reconnection failed, please check the device or move closer to the paired device", and then the process can return to step S201 and subsequent steps for the next identification and reconnection.

[0105] In a specific implementation of an embodiment of the present application, the user can also pre-configure the external device recognition sensitivity, thereby forming external device recognition sensitivity configuration information. Among them, the external device recognition sensitivity configuration information includes the correspondence between the environment type and the external device recognition sensitivity. For example, a lower recognition sensitivity can be configured for an environment type with a large number of devices and complexity to avoid misidentification, and a higher recognition sensitivity can be configured for a relatively single and simple environment type to speed up the reconnection speed. It should be noted that the above sensitivity configuration information is only an example. In actual applications, other different configurations can be selected according to specific circumstances, and the embodiment of the present application does not specifically limit this.

[0106] Before performing external device recognition, the type of environment the headset is in can be determined based on the environment image, and the external device recognition sensitivity corresponding to the environment type can be determined based on preset external device recognition sensitivity configuration information. Accordingly, during the external device recognition process, external device recognition can be performed in the environment image based on the external device set and the external device recognition sensitivity, thereby obtaining an external device recognition result.

[0107] In a specific implementation of an embodiment of the present application, the user can also install an application (APP) that matches the headset on a designated device. After establishing a communication connection with the headset, the connection status, image preview, and configuration options of the headset can be displayed through the application interface. Among them, the connection status of the headset may include but is not limited to information such as the name of the connected device, connection duration, and battery power. The image preview may include but is not limited to images captured in real time by the camera module for the user to view and understand the recognition situation. The configuration options may include but are not limited to functions such as external device recognition sensitivity configuration, external device connection priority configuration, and audio equalizer configuration. Through the audio equalizer configuration, the user can adjust the gain of the high, medium, and low frequency bands of the audio according to their personal music preferences and customize personalized audio effects. After the user performs the configuration operation in the application, the configuration information can be transmitted to the processor of the headset via Bluetooth, and the processor can adjust the corresponding working parameters according to the configuration information.

[0108] In a specific implementation of an embodiment of the present application, users can provide feedback and suggestions on reconnection effects, audio quality, etc. to the headset through an application during use. The headset can regularly collect these feedback data and upload them to a cloud server. On the cloud server, the feedback data can be sorted, analyzed, and mined based on big data analysis and machine learning algorithms to find out the common problems of the headset and the general needs of users. Based on the analysis results, the image recognition algorithm, reconnection algorithm, and audio processing algorithm are optimized and updated, and the updated algorithms are pushed to the headset to achieve self-optimization and upgrading of the headset and continuously improve the user experience.

[0109] In summary, the embodiment of the present application obtains an environmental image of the headset when the headset is not connected; based on a preset set of external devices, external device identification is performed in the environmental image to obtain an external device identification result; based on the external device identification result and preset external device connection priority configuration information, the target external device to be connected is determined; and the headset is controlled to establish a communication connection with the target external device. Through the embodiment of the present application, each external device can be identified in the headset's environmental image, and the target external device can be determined based on the priority, and a communication connection between the two can be automatically established, eliminating the need for the user to manually perform tedious communication connection operations, saving time and effort, and effectively improving the user experience.

[0110] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0111] Corresponding to the earphone control method described in the above embodiment, Figure 4 A structural diagram of an embodiment of an earphone control device provided in an embodiment of the present application is shown.

[0112] In this embodiment, a headset control device may include:

[0113] The environment image acquisition module 401 is used to acquire the environment image of the headset when the headset is in an unconnected state;

[0114] The external device identification module 402 is configured to identify external devices in the environment image based on a preset set of external devices and obtain an external device identification result;

[0115] The target external device determining module 403 is configured to determine the target external device to be connected based on the external device identification result and the preset external device connection priority configuration information;

[0116] The communication connection establishing module 404 is configured to control the headset to establish a communication connection with the target external device.

[0117] In a specific implementation of an embodiment of the present application, the target external device determination module can be specifically used to: select the external device with the highest priority in the external device identification results based on the external device connection priority configuration information; and determine the external device with the highest priority as the target external device.

[0118] In a specific implementation of the embodiment of the present application, the earphone control device may further include:

[0119] an environment type determination module, configured to determine the type of environment in which the headset is located based on the environment image;

[0120] an identification sensitivity determination module, configured to determine an external device identification sensitivity corresponding to the environment type;

[0121] Accordingly, the external device identification module may be specifically configured to: perform external device identification in the environment image based on the external device set and the external device identification sensitivity, and obtain the external device identification result.

[0122] In a specific implementation of the embodiment of the present application, the recognition sensitivity determination module may be specifically configured to: determine the external device recognition sensitivity corresponding to the environment type based on preset external device recognition sensitivity configuration information;

[0123] The external device recognition sensitivity configuration information includes a correspondence between the environment type and the external device recognition sensitivity.

[0124] In a specific implementation method of an embodiment of the present application, the target external device determination module can be specifically used to: extract image features from the environmental image to obtain a first image feature; obtain a second image feature corresponding to the external device to be matched; wherein the external device to be matched is any external device in the set of external devices; perform image feature matching on the first image feature and the second image feature to obtain an image feature matching result; and determine the external device identification result corresponding to the external device to be matched based on the image feature matching result.

[0125] In a specific implementation of an embodiment of the present application, the communication connection establishment module can be specifically used to: obtain communication connection configuration information corresponding to the target external device; and based on the communication connection configuration information, control the headset to establish a communication connection with the target external device.

[0126] In a specific implementation of the embodiment of the present application, the earphone control device may further include:

[0127] An image feature storage module is used to obtain an image of the connected external device when the headset and the connected external device establish a communication connection for the first time; perform image feature extraction on the image of the connected external device to obtain image features of the connected external device; add the connected external device to the external device set, and store the image features of the connected external device.

[0128] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0129] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0130] Figure 5 A schematic block diagram of an earphone provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0131] like Figure 5 As shown, the headset 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above-mentioned embodiments of the headset control method are implemented, such as Figure 2 Alternatively, when the processor 50 executes the computer program 52, the functions of the modules / units in the above-mentioned device embodiments are realized, for example, Figure 4 Functions of modules 401 to 404 are shown.

[0132] For example, the computer program 52 may be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to implement the present application. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the headset 5.

[0133] Those skilled in the art will understand that Figure 5 It is only an example of the earphone 5 and does not constitute a limitation of the earphone 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the earphone 5 may also include input and output devices, network access devices, buses, etc.

[0134] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0135] The memory 51 can be an internal storage unit of the headset 5, such as a hard drive or memory of the headset 5. The memory 51 can also be an external storage device of the headset 5, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the headset 5. Furthermore, the memory 51 can include both the internal storage unit of the headset 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the headset 5. The memory 51 can also be used to temporarily store data that has been output or is about to be output.

[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0137] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0138] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0139] In the embodiments provided herein, it should be understood that the disclosed devices / headphones and methods can be implemented in other ways. For example, the device / headphone embodiments described above are merely illustrative. For example, the division of modules or units is merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components being combined or integrated into another system, or some features being ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of devices or units, and may be electrical, mechanical, or other forms.

[0140] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0141] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0142] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.

[0143] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A headphone control method, characterized in that: include: When the headset is in an unconnected state, acquiring an environmental image of the headset; Based on a preset set of external devices, performing external device recognition in the environment image to obtain an external device recognition result; Determining a target external device to be connected based on the external device identification result and preset external device connection priority configuration information; The headset is controlled to establish a communication connection with the target external device.

2. The headphone control method according to claim 1, wherein: The step of determining a target external device to be connected based on the external device identification result and preset external device connection priority configuration information includes: Based on the external device connection priority configuration information, selecting the external device with the highest priority from the external device identification results; The external device with the highest priority is determined as the target external device.

3. The earphone control method according to claim 1, wherein: Before performing external device recognition in the environment image based on a preset external device set and obtaining an external device recognition result, the method further includes: determining the type of environment in which the headset is located according to the environment image; determining an external device recognition sensitivity corresponding to the environment type; Accordingly, the external device recognition is performed in the environment image based on the preset external device set to obtain the external device recognition result, including: Based on the external device set and the external device recognition sensitivity, external device recognition is performed in the environment image to obtain the external device recognition result.

4. The earphone control method according to claim 3, wherein: The determining of the external device recognition sensitivity corresponding to the environment type includes: Determining the external device recognition sensitivity corresponding to the environment type based on preset external device recognition sensitivity configuration information; The external device recognition sensitivity configuration information includes a correspondence between the environment type and the external device recognition sensitivity.

5. The earphone control method according to claim 1, wherein: The step of performing external device recognition in the environment image based on a preset external device set to obtain an external device recognition result includes: Performing image feature extraction on the environment image to obtain a first image feature; Acquire a second image feature corresponding to the external device to be matched; wherein the external device to be matched is any external device in the set of external devices; performing image feature matching on the first image feature and the second image feature to obtain an image feature matching result; The external device recognition result corresponding to the to-be-matched external device is determined according to the image feature matching result.

6. The earphone control method according to claim 1, wherein: The controlling the headset to establish a communication connection with the target external device includes: Acquiring communication connection configuration information corresponding to the target external device; Based on the communication connection configuration information, the headset is controlled to establish a communication connection with the target external device.

7. The earphone control method according to any one of claims 1 to 6, characterized in that: Also includes: When the headset and the connected external device establish a communication connection for the first time, acquiring an image of the connected external device; performing image feature extraction on the image of the connected external device to obtain image features of the connected external device; The connected external device is added to the external device set, and the image feature of the connected external device is stored.

8. An earphone control device, characterized in that: include: An environmental image acquisition module, configured to acquire an environmental image of the headset when the headset is not connected; an external device identification module, configured to identify external devices in the environment image based on a preset set of external devices, and obtain an external device identification result; a target external device determining module, configured to determine a target external device to be connected based on the external device identification result and preset external device connection priority configuration information; The communication connection establishing module is used to control the headset to establish a communication connection with the target external device.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the headphone control method according to any one of claims 1 to 7 are implemented.

10. A headset comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the headphone control method according to any one of claims 1 to 7 are implemented.