Image transmission method of earphone, earphone and storage medium
By setting up Bluetooth and WiFi transmission modules in the headset and selecting the appropriate transmission link according to the image purpose, the problem of low Bluetooth transmission efficiency is solved and the efficiency of image transmission is improved.
Patent Information
- Application Number
- CN202411718301.8
- 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
When a large number of images are needed, Bluetooth-based transmission leads to problems such as long transmission time and low transmission efficiency.
The headset is equipped with a Bluetooth transmission module and a WIFI transmission module. By determining the image purpose, the target resolution and data transmission link are selected, and the appropriate transmission link (Bluetooth or WiFi) is selected for image transmission.
It improves the transmission efficiency of image data in a large number of image transmission scenarios, and avoids the inefficiency problem caused by the use of Bluetooth transmission in all scenarios.
Smart Images

Figure CN119484712A_ABST
Abstract
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. After shooting, the high-definition original images are sent to the user client based on Bluetooth transmission. However, in scenarios where high-speed transmission is required, such as when a large number of images need to be transmitted, the transmission time is long and the transmission efficiency is low when based on Bluetooth transmission.
[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 earphone image transmission method, earphones and storage medium, aiming to solve the technical problem of long transmission time and low transmission efficiency based on Bluetooth transmission when a large number of images need to be transmitted.
[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 an image acquisition instruction is received, determining an image usage of the image to be transmitted after executing the image acquisition instruction;
[0008] Determine the target resolution of the image to be transmitted and the data transmission link corresponding to the image usage according to the image usage;
[0009] A target image to be transmitted is generated or determined based on the target resolution, and the target image is transmitted to a receiving end based on the data transmission link.
[0010] In one embodiment, the image usage includes image recognition and non-image recognition, and the step of determining the target resolution of the image to be transmitted and the data transmission link corresponding to the image usage according to the image usage includes:
[0011] If the image purpose is image recognition, determining that the target resolution of the image to be transmitted is a first resolution, and the data transmission link is a Bluetooth transmission link established between the Bluetooth transmission module and the receiving end;
[0012] If the image usage is non-image recognition, determining that the target resolution of the image to be transmitted is a second resolution, and the data transmission link is a WiFi transmission link established between the WiFi transmission module and the receiving end;
[0013] The first resolution is smaller than the second resolution, and the second resolution is equal to the original resolution of the image to be transmitted.
[0014] In one embodiment, if an image acquisition instruction is received, the step of determining the image usage of the image to be transmitted after executing the image acquisition instruction comprises:
[0015] If the image acquisition instruction is received, determining the voice information corresponding to the image acquisition instruction and / or the operation information of the receiving end;
[0016] If the operation information is empty, and the voice recognition result of the voice information contains a preset recognition keyword, determining that the image usage is image recognition; or
[0017] If the voice information is empty and the operation information is an image recognition processing operation, it is determined that the image usage is image recognition.
[0018] In one embodiment, after the step of determining the voice information corresponding to the image acquisition instruction and / or the operation information of the receiving end if the image acquisition instruction is received, the method further includes:
[0019] If the operation information is an image capturing or sharing operation, it is determined that the image usage is non-image recognition.
[0020] In one embodiment, if an image acquisition instruction is received, the step of determining the image usage of the image to be transmitted after executing the image acquisition instruction comprises:
[0021] If the image acquisition instruction is received, determining feature information of the image to be transmitted after executing the image acquisition instruction;
[0022] If the characteristic information includes a preset identification characteristic, determining that the image purpose of the image to be transmitted is image recognition;
[0023] Otherwise, it is determined that the image usage is non-image recognition.
[0024] In one embodiment, the step of generating or determining a target image to be transmitted based on the target resolution, and transmitting the target image to a receiving end based on the data transmission link includes:
[0025] If the target resolution is equal to the original resolution of the image to be transmitted, setting the image to be transmitted as the target image;
[0026] Otherwise, the image to be transmitted is compressed based on the target resolution to obtain the target image.
[0027] In one embodiment, after the step of determining the target resolution of the image to be transmitted and the data transmission link corresponding to the image usage according to the image usage, the following step is further included:
[0028] If the data transmission link is a WiFi transmission link, and the transmission rate of the WiFi transmission link is greater than or equal to the preset transmission rate, the step of generating or determining the target image to be transmitted based on the target resolution, and transmitting the target image to the receiving end based on the data transmission link is performed;
[0029] Otherwise, the image to be transmitted is pre-stored in the storage unit of the headset.
[0030] In one embodiment, the step of determining the image usage of the image to be transmitted after executing the image acquisition instruction includes:
[0031] The image usage of the image to be transmitted is determined according to the shooting mode of the headset.
[0032] 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.
[0033] 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.
[0034] One or more technical solutions proposed in this application have at least the following technical effects:
[0035] After the headset acquires the image to be transmitted based on the image acquisition instruction, the headset selects the resolution information and data transmission link that match the image purpose based on the image purpose of the image to be transmitted, and then determines the image content to be transmitted based on the resolution information, and transmits the image content to be transmitted to the receiving end based on the data link. According to the purpose of the image to be transmitted, a Bluetooth transmission link or WiFi transmission link that matches the current purpose is selected for transmission processing, thereby avoiding the situation where Bluetooth transmission is used in all scenarios, resulting in low transmission efficiency in the scenario of transmitting a large number of images, thereby improving the transmission efficiency of image data. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] 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.
[0037] 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.
[0038] Figure 1 A schematic diagram of a flow chart of a first embodiment of the image transmission method for headphones of the present application;
[0039] Figure 2 A schematic diagram of a flow chart of a second embodiment of the image transmission method for headphones of the present application;
[0040] Figure 3 Schematic diagram of the device structure of the hardware operating environment involved in the image transmission method of the headset in the embodiment of the present application.
[0041] 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
[0042] 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.
[0043] In this embodiment, for the convenience of description, the following description is made with the earphone as the execution subject.
[0044] 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, the captured high-definition original images are sent to the user client based on Bluetooth transmission. However, in scenarios where high-speed transmission is required, such as when a large number of images need to be transmitted, the transmission time is long and the transmission efficiency is low when based on Bluetooth transmission.
[0045] The present application provides a solution, which selects a Bluetooth transmission module that meets the current transmission requirements through the image purpose of the image to be transmitted corresponding to the image acquisition instruction. That is, when a large number of images for sharing need to be transmitted, the WiFi transmission link constructed based on the WiFi transmission module performs data transmission processing, thereby improving the image transmission efficiency.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] In this embodiment, the headset image transmission method includes steps S10 to S30:
[0050] Step S10: If an image acquisition instruction is received, determine the image usage of the image to be transmitted after executing the image acquisition instruction.
[0051] It should be noted that the image acquisition instruction can be an acquisition instruction generated by the user after clicking to shoot on the receiving end such as a mobile phone, or the user inputs the image through voice, and the receiving end converts the voice instruction into an image acquisition instruction and transmits it to the headset. Optionally, the headset can generate the image acquisition instruction based on the voice information.
[0052] The image usage of the image to be transmitted usually includes image recognition and non-image recognition, among which the image recognition category includes the use that requires the image content to be analyzed and processed to extract specific information or perform specific operations, which may include text extraction, text translation, scene recognition, object recognition, image classification and face recognition. At this time, the image to be transmitted can be compressed to retain the key features of the image and transmitted through the Bluetooth transmission module, thereby improving the transmission efficiency of the image recognition type of images to be transmitted.
[0053] For non-image recognition, the image is transmitted and used as a whole, without in-depth analysis and recognition of the image content. It can be used for sharing, archiving, artistic creation, scientific research, commercial use, education, etc., that is, non-image recognition generally requires the display of the complete image. Based on this, it is necessary to transmit through the WiFi transmission module, that is, to transmit the original image to the receiving end, to ensure the normal use of the image to be transmitted, and to avoid the low transmission efficiency when transmitting through the Bluetooth transmission module.
[0054] In this embodiment, the image purpose can be determined by the user's operation behavior, voice information, etc. associated with the image acquisition instruction, or the image purpose can be estimated by identifying the content of the image to be transmitted through the intelligent recognition module of the headset. Among them, the operation behavior includes the user's operation information on the receiving end, such as directly giving the headset an instruction or shooting a shared picture through a mobile phone application, then the corresponding image purpose is non-image recognition, and when the voice information contains keywords such as shooting and translating pictures or shooting and extracting image text, the image purpose of the image to be transmitted is determined to be image recognition.
[0055] By determining the image purpose of the image to be transmitted, the image to be transmitted can be transmitted and processed through a Bluetooth transmission module or a WiFi transmission module based on the image purpose, thereby improving the transmission flexibility and improving the transmission efficiency in a large number of image transmission scenarios based on actual purposes.
[0056] Step S20: determining a target resolution of the image to be transmitted and a data transmission link corresponding to the image usage according to the image usage.
[0057] In this embodiment, the target resolution refers to the actual corresponding resolution when the image to be transmitted is transmitted. As an optional implementation, if the image is used for image recognition, the image to be transmitted needs to be compressed to retain its key features, and then transmitted through the Bluetooth transmission module. Based on this, the target resolution is smaller than the original resolution of the image to be transmitted. At the same time, since the image to be transmitted has been preprocessed, the image to be transmitted can be quickly transmitted through the Bluetooth transmission link. Therefore, when the image is used for graphic recognition, the corresponding data transmission link is the Bluetooth transmission link created by the Bluetooth transmission module and the receiving end.
[0058] In another optional implementation, if the image is used for non-image recognition, the original image to be transmitted needs to be transmitted, so the target resolution is the current resolution of the image to be transmitted. At the same time, since the pixels of the original image to be transmitted are relatively large, if the transmission is based on the Bluetooth transmission module, the transmission efficiency will be reduced due to the large amount of data transmitted. Therefore, a large amount of data needs to be transmitted through the WiFi transmission module. Therefore, when the image is used for non-image recognition, the data transmission link is the WiFi transmission link created by the WiFi transmission module and the receiving end.
[0059] Therefore, if the purpose of the image is image recognition, it can be determined that the target resolution of the image to be transmitted is the first resolution, and the data transmission link is the Bluetooth transmission link created by the Bluetooth transmission module and the receiving end; if the purpose of the image is not image recognition, the target resolution of the image to be transmitted is determined to be the second resolution, and the data transmission link is the WiFi transmission link created by the WiFi transmission module and the receiving end; wherein, the first resolution is smaller than the second resolution, and the second resolution is equal to the original resolution of the image to be transmitted.
[0060] Step S30: Generate or determine a target image to be transmitted based on the target resolution, and transmit the target image to a receiving end based on the data transmission link.
[0061] In this embodiment, as an optional implementation, if the data transmission link is a Bluetooth transmission link, the target resolution is smaller than the original resolution of the image to be transmitted, and the target image to be transmitted needs to be generated based on the target resolution. In the process of generating the target image to be transmitted based on the target resolution, the image to be transmitted can be compressed based on the target resolution, that is, the image to be transmitted is compressed to the size of the target resolution, thereby obtaining the target image. The compression processing method may include blurring the image area other than the key features of the image to be transmitted to reduce the target resolution of the image to be transmitted, thereby obtaining the target image. For example, if the text in the image needs to be translated, other information other than the text can be blurred to obtain image data with a smaller transmission volume that retains the key text features. Based on this, when transmitting a large amount of image data, the image recognition type image is compressed and transmitted by Bluetooth, thereby improving the image transmission efficiency.
[0062] In another optional implementation, if the data transmission link is a WiFi transmission link, the original image needs to be transmitted to the client at this time, so the size of the target resolution is equal to the original resolution size of the image to be transmitted, and the target image to be transmitted needs to be determined based on the target resolution. Therefore, if the target resolution is equal to the original resolution of the image to be transmitted, the image to be transmitted is set as the target image. After the original image to be transmitted is used as the target image, the target image is transmitted to the receiving end based on the WiFi transmission link, thereby utilizing the characteristics of efficient WiFi transmission to transmit the original image data with a large amount of data to be transmitted. Based on this, when transmitting a large amount of image data, the image is quickly transmitted based on the WiFi transmission link, thereby improving the efficiency of image transmission.
[0063] Different image transmission links and different target resolutions are selected according to the image usage, so that during data transmission, the image to be transmitted can be processed based on the target resolution, and the image data can be transmitted based on different data transmission links, avoiding the situation where Bluetooth transmission is used in all image transmission scenarios, resulting in low data transmission efficiency.
[0064] It should be noted that the transmission may be performed based on the Bluetooth transmission link and the WiFi transmission link respectively, or a large number of images to be transmitted may be transmitted and processed based on the two transmission links at the same time.
[0065] In this embodiment, after the purpose of the image is identified, the image transmission processing of the headset is performed through image compression + Bluetooth transmission, or through WiFi transmission, so that the image transmission efficiency can be improved in a large number of image transmission scenarios.
[0066] The present embodiment provides an image transmission method for headphones. The target resolution and data transmission link of the image to be transmitted are determined by the image purpose of the image to be transmitted. Therefore, when transmitting a large amount of image data, the image to be transmitted whose purpose is image recognition can be compressed and transmitted based on a Bluetooth transmission link, and the image to be transmitted whose purpose is not image recognition can be quickly transmitted based on a WiFi transmission link, thereby improving the image transmission efficiency.
[0067] 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 S10 also includes steps S11 to S12:
[0068] Step S11, if the image acquisition instruction is received, determining the voice information corresponding to the image acquisition instruction and / or the operation information of the receiving end;
[0069] Step S12: if the operation information is empty and the voice recognition result of the voice information contains a preset recognition keyword, it is determined that the image usage is image recognition.
[0070] In this embodiment, the purpose of the image can be determined by the voice information corresponding to the image acquisition instruction and / or the operation information of the receiving end. For example, if the operation information is empty, the image acquisition instruction is generated by the voice information input by the user. At this time, the headset can identify whether the voice information corresponding to the instruction contains preset recognition keywords to determine the purpose of the image. For example, when the voice information contains keywords such as "translation", "text extraction", "scenery recognition", etc., it can be determined that the current image and purpose are image recognition. Based on this, the current image purpose can be determined by voice interaction.
[0071] In another optional implementation, if the voice information is empty, the image purpose can be determined based on the specific operation type of the operation information. That is, when the operation information is an image recognition processing operation, for example, after the user selects the operation instruction "shoot and recognize text" on the mobile phone and the mobile phone generates an image acquisition instruction, the headset recognizes that the purpose of the image currently to be acquired is image recognition.
[0072] Optionally, if the operation information is an image capture or sharing operation, the image usage is determined to be non-image recognition. For example, after the user selects to share an image on the mobile phone, the corresponding image capture operation is performed. In this case, the corresponding image usage is non-image recognition. In the operation information, the user only controls the headset to capture by clicking the capture button on the mobile phone. In this case, the image usage is determined to be non-image recognition by default.
[0073] Optionally, the image usage can be identified based on both voice interaction and operation information. For example, if the image usage corresponding to the operation information is not image recognition, but the image usage corresponding to the voice information is image recognition, the image usage corresponding to the operation information can be used as the final image usage. If the image usages corresponding to the two are the same, the image usage can be directly determined.
[0074] In another optional implementation, step S10 further includes steps S13-S14:
[0075] Step S13: if the image acquisition instruction is received, determining feature information of the image to be transmitted after executing the image acquisition instruction.
[0076] Step S14: if the feature information includes a preset identification feature, determining that the image usage of the image to be transmitted is image recognition.
[0077] In another optional embodiment, the headset can determine the image purpose by identifying the image features of the image to be transmitted. For example, if the identified feature information includes a preset recognition feature such as non-Chinese characters, the image purpose of the image to be transmitted can be determined as image recognition, otherwise, the image purpose is determined to be non-image recognition.
[0078] Based on this, it is possible to actively analyze and determine the image usage of the image to be transmitted, so as to select a corresponding image transmission method based on the image usage for transmission, thereby improving image transmission efficiency.
[0079] The present embodiment provides an image transmission method for headphones, which identifies the image purpose of the image to be transmitted through voice information corresponding to the image acquisition instruction or the operation information of the receiving end, so that the image purpose of the image to be transmitted can be accurately identified through voice interaction and user operation behavior, so that the headphones can select different transmission methods based on the image purpose in a large amount of image data transmission scenario, thereby improving transmission efficiency and reducing transmission power consumption.
[0080] Based on the first or second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above description, and will not be repeated later. On this basis, after receiving the image acquisition instruction, the image purpose of the image to be transmitted can be determined according to the current shooting mode of the headset. Specifically, if the shooting mode is a tour guide mode, a sports mode, or a follow-up mode, etc., it can be determined that the image purpose of the image to be transmitted is non-image recognition. For example, in the tour guide mode, the user needs to share and explain the image captured by the headset. At this time, the original image needs to be transmitted, and there is no need to identify a certain feature of the graphic, so the image purpose is non-image recognition; if the shooting mode of the headset is a sports mode, in this mode, it means that the user wears the headset while exercising, and uploads the captured image to social media or sports programs, so it can be determined that the image purpose is non-graphic recognition. If the headset is in an office scene, the user needs to shoot and extract the text of a document through the headset. At this time, it can be determined that the purpose of the captured image to be transmitted is image recognition.
[0081] In this embodiment, the image usage of the image to be transmitted is determined by the shooting mode of the headset, thereby improving the flexibility of determining the image usage of the image to be transmitted.
[0082] 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 be referred to the above description, and will not be described in detail later. On this basis, after determining the data transmission link corresponding to the image usage, if the data transmission link is a WiFi transmission link, and 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 transmission can be performed quickly and stably. Therefore, the steps of generating or determining the target image to be transmitted based on the target resolution, and transmitting the target image to the receiving end based on the data transmission link can be performed.
[0083] 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. Therefore, it is necessary to pre-store the image to be transmitted in the storage unit of the headset until the current network transmission rate returns to normal.
[0084] When data is transmitted on a WiFi transmission link, the transmission can be processed based on the normal network transmission rate. When the network transmission rate is in an abnormal state, it is processed by caching to avoid increasing transmission power consumption due to the slow WiFi transmission rate.
[0085] The present application provides an earphone, 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 transmission method of the earphone in the above-mentioned first embodiment.
[0086] Reference below Figure 3 , which shows a schematic structural diagram of headphones suitable for implementing the embodiments of the present application. Figure 3 The earphones shown are merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0087] like Figure 3As 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.
[0088] 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.
[0089] The headset provided by the present application adopts the image transmission method of the headset in the above embodiment, which can solve the technical problem that when a large number of images need to be transmitted, the transmission time is long and the transmission efficiency is low based on Bluetooth 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 transmission 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.
[0090] 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.
[0091] 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.
[0092] 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 transmission method of the headset in the above-mentioned embodiment.
[0093] 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.
[0094] The computer-readable storage medium may be contained in the earphone, or may exist independently without being assembled in the earphone.
[0095] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the headset, the headset:
[0096] If an image acquisition instruction is received, determining an image usage of the image to be transmitted after executing the image acquisition instruction;
[0097] Determine the target resolution of the image to be transmitted and the data transmission link corresponding to the image usage according to the image usage;
[0098] A target image to be transmitted is generated or determined based on the target resolution, and the target image is transmitted to a receiving end based on the data transmission link.
[0099] 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).
[0100] 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.
[0101] 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.
[0102] 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 transmission method, and can solve the technical problem that when a large number of images need to be transmitted, the transmission time is long and the transmission efficiency is low based on Bluetooth 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 transmission method provided by the above-mentioned embodiment, and will not be repeated here.
[0103] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
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 image transmission method of the earphones includes: If an image acquisition instruction is received, determining an image usage of the image to be transmitted after executing the image acquisition instruction; Determine the target resolution of the image to be transmitted and the data transmission link corresponding to the image usage according to the image usage; A target image to be transmitted is generated or determined based on the target resolution, and the target image is transmitted to a receiving end based on the data transmission link.
2. The method for transmitting images through earphones according to claim 1, characterized in that: The image usage includes image recognition and non-image recognition, and the step of determining the target resolution of the image to be transmitted and the data transmission link corresponding to the image usage according to the image usage includes: If the image purpose is image recognition, determining that the target resolution of the image to be transmitted is a first resolution, and the data transmission link is a Bluetooth transmission link established between the Bluetooth transmission module and the receiving end; If the image usage is non-image recognition, determining that the target resolution of the image to be transmitted is a second resolution, and the data transmission link is a WiFi transmission link established between the WiFi transmission module and the receiving end; The first resolution is smaller than the second resolution, and the second resolution is equal to the original resolution of the image to be transmitted.
3. The method for transmitting images through earphones according to claim 2, wherein: If an image acquisition instruction is received, the step of determining the image usage of the image to be transmitted after executing the image acquisition instruction comprises: If the image acquisition instruction is received, determining the voice information corresponding to the image acquisition instruction and / or the operation information of the receiving end; If the operation information is empty, and the voice recognition result of the voice information contains a preset recognition keyword, determining that the image usage is image recognition; or If the voice information is empty and the operation information is an image recognition processing operation, it is determined that the image usage is image recognition.
4. The method for transmitting images through earphones as claimed in claim 3, characterized in that: After the step of determining the voice information corresponding to the image acquisition instruction and / or the operation information of the receiving end if the image acquisition instruction is received, the method further includes: If the operation information is an image capturing or sharing operation, it is determined that the image usage is non-image recognition.
5. The method for transmitting images through earphones according to claim 2, wherein: If an image acquisition instruction is received, the step of determining the image usage of the image to be transmitted after executing the image acquisition instruction comprises: If the image acquisition instruction is received, determining feature information of the image to be transmitted after executing the image acquisition instruction; If the characteristic information includes a preset identification characteristic, determining that the image purpose of the image to be transmitted is image recognition; Otherwise, it is determined that the image usage is non-image recognition.
6. The method for transmitting images through earphones according to claim 1, wherein: The step of generating or determining a target image to be transmitted based on the target resolution, and transmitting the target image to a receiving end based on the data transmission link comprises: If the target resolution is equal to the original resolution of the image to be transmitted, setting the image to be transmitted as the target image; Otherwise, the image to be transmitted is compressed based on the target resolution to obtain the target image.
7. The method for transmitting images through earphones according to claim 1, characterized in that: After the step of determining the target resolution of the image to be transmitted and the data transmission link corresponding to the image usage according to the image usage, the method further includes: If the data transmission link is a WiFi transmission link, and the transmission rate of the WiFi transmission link is greater than or equal to the preset transmission rate, the step of generating or determining the target image to be transmitted based on the target resolution, and transmitting the target image to the receiving end based on the data transmission link is performed; Otherwise, the image to be transmitted is pre-stored in the storage unit of the headset.
8. The method for transmitting images through earphones according to claim 1, characterized in that: The step of determining the image usage of the image to be transmitted after executing the image acquisition instruction comprises: The image usage of the image to be transmitted is determined according to the shooting mode of the headset.
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.