Image transmission method of earphone, earphone and storage medium

By setting up Bluetooth and WiFi transmission modules in the headset and dynamically selecting the transmission method according to the amount of data, the problems of low Bluetooth transmission efficiency and high power consumption are solved, and more efficient data transmission and lower power consumption are achieved.

CN119484711APending Publication Date: 2025-02-18GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411718258.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

When transmitting a large amount of data based on Bluetooth transmission, the efficiency is low, resulting in high overall transmission power consumption of the headset.

Method used

Set up the Bluetooth transmission module and WiFi transmission module in the headset, and dynamically select the transmission method according to the amount of data to be transmitted: when the data amount is greater than or equal to the preset threshold, use the WiFi transmission module for transmission; when the data amount is less than the threshold, Use Bluetooth transmission module to transmit.

Benefits of technology

By flexibly selecting the transmission method, data transmission efficiency is improved, overall transmission power consumption is reduced, and problems of long transmission time and high power consumption are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484711A_ABST
    Figure CN119484711A_ABST
Patent Text Reader

Abstract

The invention discloses an image transmission method of an earphone, the earphone and a storage medium, relates to the technical field of wireless earphones, and discloses an image processing method of the earphone, which is applied to the earphone, and the earphone is provided with a Bluetooth transmission module and a WiFi transmission module. Determining or estimating a to-be-transmitted data volume corresponding to the transmission task; if the to-be-transmitted data volume is greater than or equal to a preset threshold value, establishing a WiFi transmission link with a receiving end based on the WiFi transmission module, and executing the transmission task based on the WiFi transmission link; and otherwise, establishing a Bluetooth transmission link with the receiving end based on the Bluetooth transmission module, and executing the transmission task based on the Bluetooth transmission link. On the basis, the data transmission mode is determined according to the amount of data to be transmitted, and when a large number of images are transmitted, data transmission is performed according to the WiFi transmission module, so that the condition of high overall transmission power consumption caused by low Bluetooth transmission efficiency is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wireless earphones, and in particular to an earphone image transmission method, an earphone, and a storage medium. Background Art

[0002] OWS (Open Wearable Stereo) headphones transmit sound to users through a non-in-ear design, which not only ensures the sound quality but also improves the comfort and safety of wearing.

[0003] OWS headsets equipped with a visual function module can take photos or videos through a high-resolution camera, and after shooting, the captured images are sent to the user client based on Bluetooth transmission. However, when a large amount of data needs to be transmitted, the Bluetooth transmission method has the defects of long time and low efficiency, resulting in high transmission power consumption of the headset during the overall transmission process.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide an image transmission method for headphones, headphones and storage medium, aiming to solve the technical problem that when transmitting a large amount of data, the transmission efficiency based on Bluetooth transmission is low, resulting in high power consumption of the overall transmission.

[0006] To achieve the above purpose, the present application proposes an earphone image transmission method, which is applied to an earphone, wherein the earphone is provided with a Bluetooth transmission module and a WiFi transmission module, and the method comprises:

[0007] If a transmission task is received, determining or estimating the amount of data to be transmitted corresponding to the transmission task;

[0008] If the amount of data to be transmitted is greater than or equal to a preset threshold, a WiFi transmission link is established with the receiving end based on the WiFi transmission module, and the transmission task is performed based on the WiFi transmission link;

[0009] Otherwise, a Bluetooth transmission link is established with the receiving end based on the Bluetooth transmission module, and the transmission task is performed based on the Bluetooth transmission link.

[0010] In one embodiment, the step of determining or estimating the amount of data to be transmitted corresponding to the transmission task includes:

[0011] Determine an image to be transmitted associated with the transmission task, and determine an amount of data to be transmitted corresponding to the image to be transmitted; or

[0012] The quantity to be transmitted is estimated according to the current operating mode of the headset.

[0013] In one embodiment, the step of determining the image to be transmitted associated with the transmission task and determining the amount of data to be transmitted corresponding to the image to be transmitted includes:

[0014] Obtaining the pixel size of the image to be transmitted corresponding to the transmission task;

[0015] The amount of data to be transmitted is determined according to the sum of pixel sizes of the images to be transmitted.

[0016] In one embodiment, the step of establishing a Bluetooth transmission link with the receiving end based on the Bluetooth transmission module and performing the transmission task based on the Bluetooth transmission link includes:

[0017] Establishing a Bluetooth transmission link with the receiving end based on the Bluetooth transmission module, acquiring the image to be transmitted corresponding to the task to be transmitted;

[0018] After compressing the pixel size of the image to be transmitted to a preset size, the transmission task is performed based on the Bluetooth transmission link.

[0019] In one embodiment, if the amount of data to be transmitted is greater than or equal to a preset threshold, establishing a WiFi transmission link with the receiving end based on the WiFi module, and executing the transmission task based on the WiFi transmission link includes:

[0020] If the amount of data to be transmitted is greater than or equal to the preset threshold, establishing a WiFi transmission link with the receiving end based on the WiFi module;

[0021] If the transmission rate of the WiFi transmission link is greater than or equal to a preset transmission rate, the transmission task is performed based on the WiFi transmission link.

[0022] In one embodiment, after the step of determining or estimating the amount of data to be transmitted corresponding to the transmission task if a transmission task is received, the method further includes:

[0023] If the amount of data to be transmitted is greater than or equal to the preset threshold, establishing a WiFi transmission link with the receiving end based on the WiFi module;

[0024] If the transmission rate of the WiFi transmission link is lower than the preset transmission rate, the image to be transmitted corresponding to the transmission task is pre-stored in the storage unit of the headset.

[0025] In one embodiment, after the step of determining or estimating the amount of data to be transmitted corresponding to the transmission task, the method further includes:

[0026] Acquire the current power level of the headset, and determine a predicted power consumption value associated with the amount of data to be transmitted;

[0027] Based on the power difference between the current power and the predicted power loss value, the amount of data to be transmitted is updated.

[0028] In one embodiment, the step of updating the amount of data to be transmitted based on the power difference between the current power and the predicted power loss value includes:

[0029] If the power difference is greater than a preset power threshold, and the amount of data to be transmitted is less than the preset threshold, increase the amount of data to be transmitted so that the amount of data to be transmitted is greater than or equal to the preset threshold;

[0030] If the power difference is less than a preset power threshold, and the amount of data to be transmitted is greater than or equal to the preset threshold, the amount of data to be transmitted is reduced so that the amount of data to be transmitted is less than the preset threshold.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a headset, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image transmission method of the headset as described above.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image transmission method of the headset as described above are implemented.

[0033] One or more technical solutions proposed in this application have at least the following technical effects:

[0034] By estimating or determining the amount of data that needs to be transmitted at present through the received transmission task, the amount of data to be transmitted can be based on the amount of data to be transmitted. When the amount of data transmitted is large, the transmission can be performed based on the WiFi transmission link, and when the amount of data transmitted is small, the transmission can be performed based on the Bluetooth transmission link. Thus, by flexibly setting the transmission mode, when transmitting a large number of images, data transmission can be performed based on the WiFi transmission module, thereby improving the data transmission efficiency and reducing the high overall transmission power consumption caused by Bluetooth transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 A schematic diagram of a flow chart of a first embodiment of the image processing method for headphones of the present application;

[0038] Figure 2 A schematic diagram of a flow chart of a second embodiment of the image processing method for headphones of the present application;

[0039] Figure 3 A schematic diagram of a flow chart of a third embodiment of the image processing method for headphones of the present application;

[0040] Figure 4 A schematic diagram of a flow chart of a fourth embodiment of the image processing method for headphones of the present application;

[0041] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the image processing method for headphones in an embodiment of the present application.

[0042] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0044] In this embodiment, for the convenience of description, the following description is made with the earphone as the execution subject.

[0045] In the prior art, OWS headphones equipped with a visual function module can take photos or videos through a high-resolution camera, and after shooting, send the captured images to the user client based on Bluetooth transmission. However, when a large amount of data needs to be transmitted, the Bluetooth transmission method has the defects of long time and low efficiency, resulting in high transmission power consumption of the headphones during the overall transmission process.

[0046] The present application provides a solution. After receiving a data transmission task, the amount of data to be transmitted corresponding to the data transmission task is determined or estimated. Subsequently, when the amount of data to be transmitted is greater than or equal to a preset threshold, data transmission is performed through a transmission link established by a WiFi transmission module. When the amount of data to be transmitted is less than the preset threshold, transmission is performed based on a Bluetooth transmission link. Based on this, while reducing the overall transmission power consumption, the transmission mode is dynamically adjusted to improve the overall transmission efficiency.

[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0048] The embodiment of the present application provides an earphone image transmission method, which is applied to an earphone, wherein the earphone is provided with a Bluetooth transmission module and a WiFi transmission module, so that when image data is transmitted, a Bluetooth transmission link constructed based on the Bluetooth transmission module or a WiFi transmission link constructed based on the WiFi transmission module is used for data transmission processing. The earphone is a wireless earphone, such as an OWS earphone, and the earphone is also provided with an internal or external video module, and image acquisition is performed based on a camera module of the video module.

[0049] Based on this, refer to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the image transmission method for headphones of the present application.

[0050] In this embodiment, the headset image transmission method includes steps S10 to S30:

[0051] Step S10: If a transmission task is received, determine or estimate the amount of data to be transmitted corresponding to the transmission task.

[0052] It should be noted that the transmission task refers to the transmission task of the image sent by the user to the headset through the receiving end when the headset has taken the image or is in operation. The transmission task includes transmitting the image stored in the headset and / or the image currently taken by the headset.

[0053] In this embodiment, when a transmission task is received, the image to be transmitted associated with the transmission task may be determined first, for example, based on the image transmission position corresponding to the transmission task, the image to be transmitted may be determined. Then, the amount of data to be transmitted corresponding to the image to be transmitted may be calculated. For example, if the image to be transmitted is 5 images currently stored, the total size of the 5 images may be used as the amount of data to be transmitted.

[0054] Specifically, in this process, the acquired feature information such as the contour information, resolution and color depth of the image to be transmitted is analyzed and calculated to obtain the size of the space occupied by the image to be transmitted, and based on the size of the space, the size of the data to be transmitted is determined. At this time, the size of the data to be transmitted is equal to the size of all the images to be transmitted.

[0055] Optionally, when performing Bluetooth transmission processing, it is usually necessary to compress the image to be transmitted before data transmission. When compressing the image to be transmitted, there will be an average compression rate, so the amount of data to be transmitted can be calculated based on the average compression rate and the size of all images to be transmitted. That is, the size of the image to be transmitted is multiplied by the compression rate during Bluetooth transmission to obtain the amount of data to be transmitted.

[0056] Optionally, in addition to determining the specific amount of data to be transmitted, the amount of data to be transmitted of the image currently required to be transmitted can also be estimated according to the current operating mode of the headset. For example, when the headset is currently in the tour guide mode, it can be estimated that the amount of data currently required to be transmitted is the amount of original data of the captured image. The amount of data to be transmitted is relatively large, and the amount of data to be transmitted can be estimated to be a parameter greater than a preset threshold, such as a parameter greater than the size of an original image captured by the headset.

[0057] Step S20: if the amount of data to be transmitted is greater than or equal to a preset threshold, a WiFi transmission link is established with the receiving end based on the WiFi transmission module, and the transmission task is performed based on the WiFi transmission link.

[0058] In this embodiment, the preset threshold refers to the dividing point of transmission efficiency when performing Bluetooth transmission and WiFi transmission. When the preset threshold is below, the transmission efficiency is high when the transmission is performed based on the Bluetooth transmission link, and when the preset threshold is above, the transmission efficiency is high when the image data is transmitted based on the WiFi transmission link. Therefore, when the amount of data to be transmitted is greater than or equal to the preset threshold, it means that the current amount of data to be transmitted is large. At this time, a WiFi transmission link is established with the receiving end through the WiFi transmission module, and the transmission task is performed based on the transmission link, thereby improving the transmission efficiency when performing a large amount of data transmission.

[0059] Step S30: otherwise, a Bluetooth transmission link is established with the receiving end based on the Bluetooth transmission module, and the transmission task is performed based on the Bluetooth transmission link.

[0060] In this embodiment, if the amount of data to be transmitted is less than a preset threshold, the data transmission can be completed through the Bluetooth transmission link. Therefore, when the data transmission amount is small, data transmission is performed based on the Bluetooth transmission link, thereby reducing the transmission power consumption during the transmission process.

[0061] This embodiment provides an image transmission method for headphones, which determines the amount of data to be transmitted corresponding to the current transmission task by the size of the image to be transmitted associated with the transmission task, and then transmits it through the Bluetooth transmission link created by the Bluetooth transmission module when a small amount of data needs to be transmitted, thereby reducing transmission power consumption, and when transmitting a large amount of data, the transmission is processed based on the WiFi transmission link created by the WiFi transmission module, thereby improving data transmission efficiency. Based on this, it can avoid using the Bluetooth transmission method in all transmission scenarios, and when transmitting a large amount of image data, the transmission time is long due to low transmission efficiency, and the overall transmission power consumption is high.

[0062] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can refer to the above introduction, and will not be repeated in the following. Figure 2 , step S30 also includes steps S31-S32:

[0063] Step S31: establishing a Bluetooth transmission link with the receiving end based on the Bluetooth transmission module, and acquiring the image to be transmitted corresponding to the task to be transmitted.

[0064] Step S32, after compressing the pixel size of the image to be transmitted to a preset size, the transmission task is performed based on the Bluetooth transmission link.

[0065] It should be noted that when performing Bluetooth transmission processing, the data of the image to be transmitted needs to be compressed to a specified size. Therefore, if there are multiple images to be transmitted, when performing Bluetooth transmission, the transmission size of each image to be transmitted is usually smaller than its original pixel size.

[0066] Therefore, in this embodiment, if there are multiple images to be transmitted, the preset size is the value obtained by dividing the amount of data to be transmitted by the total amount of images to be transmitted; if there is only one image to be transmitted, the preset size is the size of the amount of data to be transmitted.

[0067] When performing Bluetooth transmission, the image to be transmitted is compressed to reduce the amount of data to be transmitted, thereby improving the transmission efficiency when performing transmission tasks based on the Bluetooth transmission module.

[0068] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can refer to the above introduction, and will not be repeated later. Figure 3 , step S20 includes steps S21-S22:

[0069] Step S21, if the amount of data to be transmitted is greater than or equal to the preset threshold, establishing a WiFi transmission link with the receiving end based on the WiFi module;

[0070] Step S22: if the transmission rate of the WiFi transmission link is greater than or equal to a preset transmission rate, the transmission task is performed based on the WiFi transmission link.

[0071] In this embodiment, when a transmission task is performed based on the WiFi transmission module, if the transmission rate of the WiFi transmission link is greater than or equal to the preset transmission rate, it means that the transmission speed of the WiFi transmission link is normal at this time and data can be transmitted quickly and stably. Therefore, the transmission task can be performed based on the WiFi transmission link.

[0072] If the transmission rate of the WiFi transmission link is lower than the preset transmission rate, it means that the current network rate is poor. If data transmission is directly performed, the overall transmission efficiency will be low due to the low network transmission efficiency, thereby increasing the overall transmission power consumption. Therefore, the transmission task of the WiFi transmission module can be suspended first, and the image to be transmitted can be pre-stored in the storage unit of the headset until the current network transmission rate returns to normal.

[0073] Based on this, in this embodiment, when data is transmitted on a WiFi transmission link, transmission processing can be performed based on a normal network transmission rate. When the network transmission rate is in an abnormal state, processing is performed through caching to avoid increasing the overall transmission power consumption due to the slow WiFi transmission rate.

[0074] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can refer to the above description and will not be described in detail later. Figure 4 , after step S10, further comprising steps S40 to S50:

[0075] Step S40, obtaining the current power level of the headset, and determining a predicted power consumption value associated with the amount of data to be transmitted.

[0076] During the process of image data transmission by the headset, when the battery is high, the WiFi transmission method with faster transmission efficiency and relatively large power consumption is selected for transmission. When the battery is low, the Bluetooth transmission method with lower data transmission efficiency and relatively small power consumption is selected for transmission, so as to improve the battery life of the headset when transmitting images at low power.

[0077] Therefore, in this embodiment, after obtaining the current power of the headset, the power loss value after the headset completes the transmission of the amount of data to be transmitted can be predicted, and the prediction method includes analyzing the power loss value when transmitting the same amount of data based on historical transmission data.

[0078] Step S50: updating the amount of data to be transmitted based on the power difference between the current power and the predicted power loss value.

[0079] In this embodiment, the amount of data to be transmitted can be increased or decreased according to the size relationship between the power difference and the preset power threshold. For example, when the power difference is greater than the preset power threshold, it means that the remaining power of the headset after executing the transmission task is sufficient. At this time, the amount of data to be transmitted can be increased to be greater than the preset threshold, so that the headset can execute the transmission task through the WiFi transmission module. Similarly, if the power difference is less than the preset power threshold, it means that the remaining power of the headset after executing the transmission task is insufficient. At this time, the amount of data to be transmitted can be reduced to be less than the preset threshold, so that the headset can execute the transmission task through the Bluetooth transmission module.

[0080] Specifically, if the power difference is greater than a preset power threshold and the amount of data to be transmitted is less than the preset threshold, the amount of data to be transmitted is increased so that the amount of data to be transmitted is greater than or equal to the preset threshold; if the power difference is less than the preset power threshold and the amount of data to be transmitted is greater than or equal to the preset threshold, the amount of data to be transmitted is reduced so that the amount of data to be transmitted is less than the preset threshold.

[0081] The amount of data to be transmitted is adjusted based on the current power level and the predicted power loss when performing the transmission task. This enables the transmission mode to be dynamically adjusted when performing the transmission task according to the power status of the headset, thereby improving transmission efficiency or increasing battery life when performing the transmission task.

[0082] The present application provides a headset, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the image processing method of the headset in the first embodiment described above.

[0083] Reference below Figure 5 , which shows a schematic structural diagram of headphones suitable for implementing the embodiments of the present application. Figure 5 The earphones shown are merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0084] like Figure 5As shown, the headset may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the headset are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the headset to communicate with other devices wirelessly or wired to exchange data. Although the headset with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0085] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0086] The headset provided by the present application adopts the image processing method of the headset in the above embodiment, which can solve the technical problem that when transmitting a large amount of data, the transmission efficiency based on the Bluetooth transmission method is low, resulting in high power consumption of the overall transmission. Compared with the prior art, the beneficial effects of the headset provided by the present application are the same as the beneficial effects of the image processing method of the headset provided by the above embodiment, and the other technical features of the headset are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0087] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0088] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0089] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the image processing method for the headset in the above-mentioned embodiment.

[0090] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0091] The computer-readable storage medium may be contained in the earphone, or may exist independently without being assembled in the earphone.

[0092] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the headset, the headset:

[0093] If a transmission task is received, determining or estimating the amount of data to be transmitted corresponding to the transmission task;

[0094] If the amount of data to be transmitted is greater than or equal to a preset threshold, a WiFi transmission link is established with the receiving end based on the WiFi transmission module, and the transmission task is performed based on the WiFi transmission link;

[0095] Otherwise, a Bluetooth transmission link is established with the receiving end based on the Bluetooth transmission module, and the transmission task is performed based on the Bluetooth transmission link.

[0096] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0098] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0099] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned headset image processing method, and can solve the technical problem that when transmitting a large amount of data, the transmission efficiency based on the Bluetooth transmission mode is low, resulting in high power consumption of the overall transmission. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the headset image processing method provided by the above-mentioned embodiment, and will not be repeated here.

Claims

1. A method for transmitting images via headphones, characterized in that: Applied to earphones, the earphones are provided with a Bluetooth transmission module and a WiFi transmission module, and the control method of the earphones includes: If a transmission task is received, determining or estimating the amount of data to be transmitted corresponding to the transmission task; If the amount of data to be transmitted is greater than or equal to a preset threshold, a WiFi transmission link is established with the receiving end based on the WiFi transmission module, and the transmission task is performed based on the WiFi transmission link; Otherwise, a Bluetooth transmission link is established with the receiving end based on the Bluetooth transmission module, and the transmission task is performed based on the Bluetooth transmission link.

2. The method for transmitting images through earphones according to claim 1, characterized in that: The step of determining or estimating the amount of data to be transmitted corresponding to the transmission task includes: Determine an image to be transmitted associated with the transmission task, and determine an amount of data to be transmitted corresponding to the image to be transmitted; or The quantity to be transmitted is estimated according to the current operating mode of the headset.

3. The method for transmitting images through earphones according to claim 2, wherein: The step of determining the image to be transmitted associated with the transmission task and determining the amount of data to be transmitted corresponding to the image to be transmitted includes: Obtaining the pixel size of the image to be transmitted corresponding to the transmission task; The amount of data to be transmitted is determined according to the sum of pixel sizes of the images to be transmitted.

4. The method for transmitting images through earphones according to claim 1, wherein: The step of establishing a Bluetooth transmission link with the receiving end based on the Bluetooth transmission module and performing the transmission task based on the Bluetooth transmission link includes: Establishing a Bluetooth transmission link with the receiving end based on the Bluetooth transmission module, acquiring the image to be transmitted corresponding to the task to be transmitted; After compressing the pixel size of the image to be transmitted to a preset size, the transmission task is performed based on the Bluetooth transmission link.

5. The method for transmitting images through earphones according to claim 1, characterized in that: If the amount of data to be transmitted is greater than or equal to a preset threshold, a WiFi transmission link is established with the receiving end based on the WiFi module, and the steps of performing the transmission task based on the WiFi transmission link include: If the amount of data to be transmitted is greater than or equal to the preset threshold, establishing a WiFi transmission link with the receiving end based on the WiFi module; If the transmission rate of the WiFi transmission link is greater than or equal to a preset transmission rate, the transmission task is performed based on the WiFi transmission link.

6. The method for transmitting images through earphones according to claim 1, wherein: After the step of determining or estimating the amount of data to be transmitted corresponding to the transmission task if the transmission task is received, the method further includes: If the amount of data to be transmitted is greater than or equal to the preset threshold, establishing a WiFi transmission link with the receiving end based on the WiFi module; If the transmission rate of the WiFi transmission link is lower than the preset transmission rate, the image to be transmitted corresponding to the transmission task is pre-stored in the storage unit of the headset.

7. The method for transmitting images through earphones according to claim 1, characterized in that: After the step of determining or estimating the amount of data to be transmitted corresponding to the transmission task, the method further includes: Acquire the current power level of the headset, and determine a predicted power consumption value associated with the amount of data to be transmitted; Based on the power difference between the current power and the predicted power loss value, the amount of data to be transmitted is updated.

8. The method for transmitting images through earphones according to claim 7, characterized in that: The step of updating the amount of data to be transmitted based on the power difference between the current power and the predicted power loss value comprises: If the power difference is greater than a preset power threshold, and the amount of data to be transmitted is less than the preset threshold, increase the amount of data to be transmitted so that the amount of data to be transmitted is greater than or equal to the preset threshold; If the power difference is less than a preset power threshold, and the amount of data to be transmitted is greater than or equal to the preset threshold, the amount of data to be transmitted is reduced so that the amount of data to be transmitted is less than the preset threshold.

9. A headset, characterized in that: The headset comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image transmission method for the headset according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image transmission method of the headset according to any one of claims 1 to 8 are implemented.