Earphone box control method and device, earphone box and readable storage medium
By integrating an infrared temperature sensor into the earphone case, the temperature of the covering is detected to automatically open the earphone case, solving the problem of the need for manual operation of wireless earphone cases and improving ease of use.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GEER INTELLIGENT TECH CO LTD
- Filing Date
- 2023-05-26
- Publication Date
- 2026-06-12
AI Technical Summary
Existing wireless earphone cases are not smart enough to use, requiring users to manually open them, which is inconvenient, especially when one hand is busy.
By detecting whether the outer shell of the headphone case is covered by a covering, and using an infrared temperature sensor to determine whether the temperature of the covering is within the human body temperature range, the headphone case lid is automatically opened.
The wireless earphone case automatically opens when the user touches or approaches it, improving ease of use and avoiding the inconvenience of manual operation.
Smart Images

Figure CN116709088B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of headphone case technology, and in particular to a headphone case control method, device, headphone case, and readable storage medium. Background Technology
[0002] With the increasing popularity of wireless headphones, they are more convenient to use and carry than wired headphones because they are not bound by headphone wires. As a result, they are more popular in the market. Existing wireless headphones, such as TWS (True Wireless Stereo) headphones, usually come with a charging case to provide power to the wireless headphones and improve their battery life.
[0003] However, existing headphone cases are not smart enough in use. Before using wireless headphones, users need to manually open the headphone case to take out the headphones. When the lid and body of the case are tightly closed, users need to use both hands to open the headphone case. When one hand is busy doing something else, the user has to give up what they are doing to open the headphone case. Therefore, the current headphone cases are not convenient to use. Summary of the Invention
[0004] The main objective of this application is to provide a headphone case control method, device, headphone case, and readable storage medium, aiming to solve the technical problem of how to improve the ease of use of headphone cases.
[0005] To achieve the above objectives, this application provides a headphone case control method, comprising the following steps:
[0006] With the lid of the headphone case closed, detect whether the outer shell of the headphone case is covered by a covering.
[0007] If the outer shell is covered by the covering, the temperature information of the covering is detected;
[0008] After determining that the temperature information is within the first preset temperature range, the lid of the headphone case is opened.
[0009] Optionally, the step of detecting whether the outer shell of the earphone case is covered by a covering includes:
[0010] The actual distance between the outer shell of the headphone case and the target object is detected, wherein the target object is an object within a preset range of the headphone case;
[0011] If the actual distance is greater than a preset distance threshold, it is determined that the outer shell is not covered by the covering.
[0012] If the actual distance is less than or equal to a preset distance threshold, then it is determined that the outer shell is covered by the covering, wherein the covering is a target object whose actual distance is less than or equal to the preset distance threshold.
[0013] Optionally, the step of detecting whether the outer shell of the earphone case is covered by a covering includes:
[0014] Dynamically monitor the light intensity data of the outer shell of the earphone case;
[0015] If the light intensity data fluctuates within a first preset time period, the fluctuation direction of the light intensity data within the first preset time period and the fluctuation amplitude value of the light intensity data within the first preset time period are obtained, wherein the fluctuation direction includes upward fluctuation and downward fluctuation.
[0016] If the wave direction is upward, then the outer shell is not covered by the covering.
[0017] If the direction of the fluctuation is downward and the fluctuation amplitude is greater than a preset fluctuation amplitude threshold, then the outer shell is covered by the covering.
[0018] Optionally, prior to the step of detecting the temperature information of the covering, the method further includes:
[0019] Dynamically monitor the pressure data of the outer casing;
[0020] If the pressure data is greater than a preset pressure data threshold, then the step of detecting the temperature information of the covering is executed.
[0021] Optionally, prior to the step of detecting the temperature information of the covering, the method further includes:
[0022] Obtain a texture image of the surface of the covering;
[0023] Determine whether the texture image matches the preset palmprint image;
[0024] If the texture image matches a preset palm print image, then the step of detecting the temperature information of the covering is performed.
[0025] Optionally, after the step of acquiring the texture image of the surface of the covering, the method further includes:
[0026] Determine whether the texture image matches a preset fingerprint image;
[0027] If the texture image matches a preset fingerprint image, then the step of detecting the temperature information of the covering is performed;
[0028] If the texture image does not match the preset fingerprint image, then the step of determining whether the texture image matches the preset palm print image is executed.
[0029] Optionally, before the step of opening the lid of the headphone case, the method further includes:
[0030] Dynamically monitor the temperature data of the covering within a second preset time period starting from the current time point;
[0031] Determine whether the temperature data falls within the second preset temperature range;
[0032] If so, then proceed with the step of opening the lid of the headphone case.
[0033] This application also provides an earphone case control device, the device comprising:
[0034] The coverage confirmation module is used to detect whether the outer shell of the headphone case is covered by a covering when the lid of the headphone case is closed.
[0035] A temperature acquisition module is used to detect the temperature information of the covering if the outer shell is covered by the covering.
[0036] The lid control module is used to open the lid of the headphone case after determining that the temperature information is within a first preset temperature range.
[0037] This application also provides an earphone case, which is a physical device. The earphone case includes a memory, a processor, and a program for the earphone case control method stored in the memory and executable on the processor. When the program for the earphone case control method is executed by the processor, it can implement the steps of the earphone case control method as described above.
[0038] This application also provides a readable storage medium, which is a computer-readable storage medium, storing a program that implements a headphone box control method. The program that implements the headphone box control method is executed by a processor to implement the steps of the headphone box control method as described above.
[0039] This application provides a headphone case control method, device, headphone case, and readable storage medium. By detecting whether the outer shell of the headphone case is covered by a covering, it determines whether an object is approaching the headphone case. If the outer shell of the headphone case is covered by a covering, the current temperature of the covering is detected. By determining whether the temperature matches human body temperature (i.e., a first preset temperature range), it is determined whether the covering is a human body part or an inanimate object, thereby determining whether the user needs to open the headphone case lid. If the covering is a human body part, it is determined that the user needs to open the headphone case lid. At this time, the headphone case will intelligently and automatically open the lid without the user having to manually open it, thereby effectively improving the convenience of using the headphone case. Attached Figure Description
[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0041] To more clearly illustrate the technical solutions in this embodiment or the prior art, the accompanying drawings used in the description of the embodiment or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a schematic diagram of the headphone case involved in the headphone case control method of this application;
[0043] Figure 2 This is a flowchart illustrating the first embodiment of the headphone box control method of this application;
[0044] Figure 3 This is a hardware module diagram of the headphone box involved in the headphone box control method of this application embodiment;
[0045] Figure 4 This is a flowchart illustrating the operation of the headphone box control method according to an embodiment of this application;
[0046] Figure 5 This is a flowchart illustrating the second embodiment of the headphone box control method of this application.
[0047] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0048] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0049] With the increasing popularity of wireless earphones, they are more convenient to use and carry than wired earphones because they are not bound by earphone wires. Therefore, they are more popular in the market. Existing wireless earphones, such as TWS earphones, are usually equipped with an earphone case to provide power to the wireless earphones and improve their battery life.
[0050] However, existing headphone cases are not smart enough in use. Before using wireless headphones, users need to manually open the headphone case to take out the headphones. When the lid and body of the case are tightly closed, users need to use both hands to open the headphone case. When one hand is busy doing something else, the user has to give up what they are doing to open the headphone case. Therefore, the current headphone cases are not convenient to use.
[0051] This application provides a headphone case control method, device, headphone case, and readable storage medium. By detecting whether the outer shell of the headphone case is covered by a covering, it determines whether an object is approaching the headphone case. If the outer shell of the headphone case is covered by a covering, the current temperature of the covering is detected. By determining whether the temperature matches human body temperature (i.e., a first preset temperature range), it is determined whether the covering is a human body part or an inanimate object, thereby determining whether the user needs to open the headphone case lid. If the covering is a human body part, it is determined that the user needs to open the headphone case lid. At this time, the headphone case will intelligently and automatically open the lid without the user having to manually open it, thereby effectively improving the convenience of using the headphone case.
[0052] The embodiments of this application will be further described below with reference to the accompanying drawings.
[0053] like Figure 1As shown, the headphone case may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0054] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the headphone case and may include more or fewer parts than shown, or combine certain parts, or have different arrangements of parts.
[0055] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a headphone box control program.
[0056] exist Figure 1 In the earphone case shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the earphone case of this application can be set in the earphone case, and the earphone case calls the earphone case control program stored in the memory 1005 through the processor 1001 and executes the earphone case control method provided in the embodiment of this application.
[0057] Reference Figure 2 This application provides a headphone case control method. In the first embodiment of the headphone case control method, the following steps are included:
[0058] Step S100: With the lid of the headphone case closed, detect whether the outer shell of the headphone case is covered by a covering.
[0059] In this embodiment, if the headphone case lid has already been manually opened by the user, or automatically opened by executing the headphone case control method of this application embodiment, it is not necessary to repeatedly open the lid. Therefore, it is first necessary to detect the opening and closing status of the lid. The detection method has been thoroughly studied by those skilled in the art and will not be described in detail here. Refer to [link to relevant documentation]. Figure 3 The headphone case includes at least a processor, a power management module, a distance sensor, and an infrared temperature sensor. The distance sensor detects the distance between the headphone case shell and a covering. For example, when a user's hand approaches or picks up the headphone case, the user's hand can be considered the covering. To determine if the case is closed, it's necessary to detect whether the headphone case shell is covered by the covering. The area covered is not fixed. When the user picks up the headphone case, the palm contacts the shell, resulting in a larger coverage area, while when the user only touches the shell with their fingers, the coverage area is smaller. Therefore, to ensure detection accuracy, the entire headphone case shell can be detected. Distance sensors can be placed at multiple locations on the shell, and the detection distance between the covering and the headphone case is variable. For example, when the distance is zero, it's determined that the headphone case shell is covered. Alternatively, it can be determined that the headphone case is covered when the covering touches the shell, or when the distance between the covering and the shell is less than a certain value, thus preventing users from accidentally closing the headphone case.
[0060] Step S200: If the outer shell is covered by the covering, the temperature information of the covering is detected;
[0061] In this embodiment, even if the earphone shell is determined to be covered by a covering, it cannot guarantee that the user will need to open the earphone case. If the covering is not a human body part but another inanimate object, such as a blanket or towel, it will lead to misjudgment. Therefore, it is necessary to further determine whether the covering is a human body part. The distinguishing feature between a human body and an inanimate object can be its own temperature. Generally, the body temperature of a human body is significantly different from the temperature of an inanimate object, while the temperature of an inanimate object is comparable to the ambient temperature. Figure 3 The infrared temperature sensor inside the headphone case detects the temperature of the covering. The physical nature of infrared radiation is thermal radiation. The higher the temperature of an object, the more infrared rays it emits, and the stronger the energy of the infrared radiation. By receiving the infrared rays from the covering, the infrared temperature sensor can detect the temperature of the covering and determine whether the covering is a human body part or an inanimate object. Furthermore, the infrared temperature sensor is a non-contact sensor, which can accurately obtain the temperature information of the covering even when it is not in contact with the outer shell of the headphone case.
[0062] Step S300: After determining that the temperature information is within the first preset temperature range, open the lid of the headphone case.
[0063] In this embodiment, the temperature information of the detected covering is judged. The first preset temperature range is the human body temperature range, which is used to determine whether the covering has human body temperature characteristics. This embodiment does not limit this, and the standard is to accurately distinguish whether the covering is a human body part or an inanimate object. When determining whether the temperature information is within the first preset temperature range, it can be based on a point in time, that is, when the temperature information at a certain point in time is within the first preset temperature range, the lid of the headphone case is opened. Alternatively, it can be based on a time period, that is, when the temperature information is within the first preset temperature range within a time period, the lid of the headphone case is opened.
[0064] Reference Figure 4 This embodiment utilizes a distance sensor within the earphone case to detect the presence of any obstructions (i.e., coverings) around the earphone case. Then, an infrared temperature sensor within the earphone case determines whether the obstruction causes a temperature change and detects the temperature information of the obstruction. If the temperature of the obstruction matches human body temperature, the earphone case lid automatically opens. The distance sensor detects the distance between the covering and the earphone case, satisfying both contact coverage detection (the earphone case automatically opens when the user touches it) and non-contact coverage detection (the earphone case automatically opens when the user places their hand within a certain range around the earphone case). The infrared temperature sensor accurately measures the temperature of the covering under non-contact conditions, thus also satisfying non-contact coverage detection. This embodiment enables the earphone case lid to automatically open when a user's body touches or approaches the earphone case, replacing the step of manually opening the earphone case lid and improving the ease of use of the earphone case.
[0065] Based on the above embodiment one, another embodiment of this application is proposed. Step S100, the step of detecting whether the outer shell of the earphone case is covered by a covering when the lid of the earphone case is closed, includes:
[0066] Step A10: Detect the actual distance between the outer shell of the headphone case and the target object, wherein the target object is an object within a preset range of the headphone case;
[0067] Step A20: If the actual distance is greater than a preset distance threshold, then it is determined that the outer shell is not covered by the covering.
[0068] Step A30: If the actual distance is less than or equal to a preset distance threshold, then it is determined that the outer shell is covered by the covering, wherein the covering is a target object whose actual distance is less than or equal to the preset distance threshold.
[0069] In this embodiment, a distance sensor can detect the actual distance between the outer shell of the headphone case and the covering. The preset range is the area within which the distance sensor can detect objects; this embodiment does not limit this range. If an object is too far from the headphone case, the distance sensor will not be able to detect it. Furthermore, there can be multiple targets, located in multiple directions outside the headphone case. It is understood that the target object is the object to be measured, and the preset distance threshold can be 1 cm, etc., which is not limited in this embodiment. For example, if the actual distance of the target object is less than or equal to 1 cm, the target object is determined to be a covering, and the outer shell of the headphone case is detected to be covered by the covering. Of course, the preset distance threshold can also be 2 cm or 3 cm, etc. This embodiment uses a distance sensor installed inside the headphone case to determine whether the outer shell of the headphone case is covered by a covering, providing a condition for further determining whether to open the headphone case lid.
[0070] In another feasible embodiment, step S100, detecting whether the outer shell of the earphone case is covered by a covering when the lid of the earphone case is closed, further includes:
[0071] Step B10: Dynamically monitor the light intensity data of the outer shell of the headphone case;
[0072] Step B20: If the light intensity data fluctuates within a first preset time period, then obtain the fluctuation direction of the light intensity data within the first preset time period and the fluctuation amplitude value of the light intensity data within the first preset time period, wherein the fluctuation direction includes upward fluctuation and downward fluctuation.
[0073] Step B30: If the direction of the fluctuation is upward, then the outer shell is not covered by the covering.
[0074] Step B40: If the direction of the fluctuation is downward and the fluctuation amplitude is greater than a preset fluctuation amplitude threshold, then the outer shell is covered by the covering.
[0075] In this embodiment, the light intensity data of the earphone case shell can be monitored by an optical sensor to determine whether the earphone case shell is covered by a covering. It is understood that when the earphone case shell is covered, it will cause a change in the light intensity of the shell. In this embodiment, the first preset duration can be 100 milliseconds or other values; this embodiment is not limited to any particular value. The fluctuation amplitude value is the amount of change in light intensity data within the first preset duration. The direction of fluctuation can be understood as increase or decrease; upward fluctuation indicates an increase in light intensity data, and downward fluctuation indicates a decrease. For example, light intensity data is acquired at the start and end of the first preset duration. If the two sets of light intensity data values are different, it is considered that the light intensity has fluctuated. Further, if the light intensity data fluctuates upward, it can be considered that the shell is not covered; conversely, the covering may be moving away from the earphone case. If the light intensity data fluctuates downward, to reduce errors and improve accuracy, the shell is considered to be covered only when the fluctuation amplitude value is greater than a preset fluctuation amplitude threshold. If the fluctuation amplitude value is less than or equal to the preset fluctuation amplitude threshold, the shell is considered not to be covered. The setting of the preset fluctuation amplitude threshold is not limited in this embodiment. The standard is that the decrease in light intensity can be clearly detected. This embodiment determines whether the outer shell of the headphone case is covered by a covering by the change in light intensity of the outer shell of the headphone case. This provides a judgment condition for further determining whether to open the lid of the headphone case. In addition, the preset fluctuation amplitude threshold set in this embodiment improves the accuracy of judging the change in light intensity.
[0076] In another feasible embodiment, based on the above-described embodiment one, another embodiment of this application is proposed, wherein in step S200, prior to the step of detecting the temperature information of the covering, the method includes:
[0077] Step C10: Dynamically monitor the pressure data of the outer casing;
[0078] Step C20: If the pressure data is greater than a preset pressure data threshold, then execute the step of detecting the temperature information of the covering.
[0079] In this embodiment, if contact coverage detection is used to determine whether the headphone case lid is open—that is, when the user touches the headphone case (e.g., the user holds the headphone case in their hand), and the headphone case lid automatically opens—the pressure data of the headphone shell can be detected by a pressure sensor. It is understood that if the user touches the headphone case, the pressure data of the headphone shell will change. When the pressure data exceeds a preset pressure data threshold, it is determined that the shell is covered by a covering. In this embodiment, the pressure data threshold can be set by those skilled in the art to accurately determine whether the shell is in contact with or covered by a covering. This embodiment, by monitoring the pressure data of the headphone case shell, determines whether the headphone case shell is in contact with or covered by a covering, providing a condition for further determining whether the headphone case lid is open.
[0080] Furthermore, based on the above embodiment one, another embodiment of this application is proposed. In step S200, before the step of detecting the temperature information of the covering, the method further includes:
[0081] Step D10: Obtain a texture image of the surface of the covering;
[0082] Step D20: Determine whether the texture image matches the preset palm print image;
[0083] Step D30: If the texture image matches the preset palm print image, then perform the step of detecting the temperature information of the covering.
[0084] In this embodiment, if contact coverage detection is used to determine whether the headphone case lid is open, a camera can capture an image of the texture on the surface of the cover. By identifying whether the texture image is a palm print, it is possible to distinguish whether the cover is a human hand or an inanimate object. For example, images or video data of human palm prints can be prepared, and this data can be used to train a palm print recognition model. The texture image is input into the palm print recognition model to determine whether the texture image is a palm print. If the texture image is a palm print, it can be determined that the cover is a human hand. After determining that the cover is a human hand, the temperature information of the cover is further detected. The palm print recognition model in this embodiment can determine whether the cover possesses characteristics that distinguish a human body from an inanimate object, thus providing a judgment condition for further determining whether the headphone case lid is open, further improving the accuracy of judging changes in light intensity.
[0085] Furthermore, based on the above-described embodiment one, another embodiment of this application is proposed, wherein after the step of obtaining the texture image of the surface of the covering, the method further includes:
[0086] Step E10: Determine whether the texture image matches the preset fingerprint image;
[0087] Step E20: If the texture image matches a preset fingerprint image, then execute the step of detecting the temperature information of the covering.
[0088] Step E30: If the texture image does not match the preset fingerprint image, then perform the step of determining whether the texture image matches the preset palm print image.
[0089] In this embodiment, a camera can capture images of the surface texture of a covering. By identifying whether the texture image is a fingerprint, it is possible to distinguish whether the covering is a human finger or an inanimate object. For example, images or video data of human fingerprints can be prepared, and this data can be used to train a fingerprint recognition model. The texture image is then input into the fingerprint recognition model to determine whether it is a fingerprint image. If the texture image is a fingerprint image, the covering can be identified as a human finger; if it is not a fingerprint image, it can be further determined whether the covering is a human hand. This embodiment's fingerprint recognition model can also determine whether the covering possesses characteristics that distinguish a human body from an inanimate object, thus providing a judgment condition for further determining whether the headphone case lid has been opened, further improving the accuracy of judging changes in light intensity.
[0090] Furthermore, referring to Figure 5 Based on the above embodiment one, another embodiment of this application is proposed, in which the method further includes, before the step of opening the lid of the earphone case:
[0091] Step S400: Dynamically monitor the temperature data of the covering within a second preset time period starting from the current time point;
[0092] Step S500: Determine whether the temperature data is within the second preset temperature range;
[0093] If so, proceed with step S600: the step of opening the lid of the headphone case.
[0094] In this embodiment, a scenario may occur where a user puts the headphone case into their backpack. Before putting it away, the user's hand may touch the headphone case, causing it to open automatically, which is clearly undesirable. Therefore, to prevent the headphone case from opening automatically due to accidental touch, a second preset duration can be set. This second preset duration can be 1 second or other values, as long as it prevents the headphone case from opening automatically due to accidental touch. The temperature data refers to the temperature information of the headphone case's outer shell within the second preset duration. For example, if the temperature data remains within the second preset temperature range throughout the second preset duration, it can be determined that the user needs to open the headphone case. The second preset temperature range can be the same as or different from the first preset temperature range; this embodiment does not impose any limitations. This embodiment, by setting a second preset duration, avoids the headphone case lid opening automatically due to accidental touch by the user in a short period of time.
[0095] This embodiment also provides an earphone case control device, which is disposed in an earphone case and includes:
[0096] The coverage confirmation module is used to detect whether the outer shell of the headphone case is covered by a covering when the lid of the headphone case is closed.
[0097] A temperature acquisition module is used to detect the temperature information of the covering if the outer shell is covered by the covering.
[0098] The lid control module is used to open the lid of the headphone case after determining that the temperature information is within a first preset temperature range.
[0099] Optionally, the coverage confirmation module is further configured to:
[0100] The actual distance between the outer shell of the headphone case and the target object is detected, wherein the target object is an object within a preset range of the headphone case;
[0101] If the actual distance is greater than a preset distance threshold, it is determined that the outer shell is not covered by the covering.
[0102] If the actual distance is less than or equal to a preset distance threshold, then it is determined that the outer shell is covered by the covering, wherein the covering is a target object whose actual distance is less than or equal to the preset distance threshold.
[0103] Optionally, the coverage confirmation module is further configured to:
[0104] Dynamically monitor the light intensity data of the outer shell of the earphone case;
[0105] If the light intensity data fluctuates within a first preset time period, the fluctuation direction of the light intensity data within the first preset time period and the fluctuation amplitude value of the light intensity data within the first preset time period are obtained, wherein the fluctuation direction includes upward fluctuation and downward fluctuation.
[0106] If the wave direction is upward, then the outer shell is not covered by the covering.
[0107] If the direction of the fluctuation is downward and the fluctuation amplitude is greater than a preset fluctuation amplitude threshold, then the outer shell is covered by the covering.
[0108] Optionally, the coverage confirmation module is further configured to:
[0109] Dynamically monitor the pressure data of the outer casing;
[0110] If the pressure data is greater than a preset pressure data threshold, then the step of detecting the temperature information of the covering is executed.
[0111] Optionally, the lid control module is further configured to:
[0112] Obtain a texture image of the surface of the covering;
[0113] Determine whether the texture image matches the preset palmprint image;
[0114] If the texture image matches a preset palm print image, then the step of detecting the temperature information of the covering is performed.
[0115] Optionally, the lid control module is further configured to:
[0116] Determine whether the texture image matches a preset fingerprint image;
[0117] If the texture image matches a preset fingerprint image, then the step of detecting the temperature information of the covering is performed;
[0118] If the texture image does not match the preset fingerprint image, then the step of determining whether the texture image matches the preset palm print image is executed.
[0119] Optionally, the lid control module is further configured to:
[0120] Dynamically monitor the temperature data of the covering within a second preset time period starting from the current time point;
[0121] Determine whether the temperature data is within the second preset temperature range. If so, proceed with the step of opening the lid of the headphone case.
[0122] The headphone case control device provided in this application, employing the headphone case control method in the above embodiments, solves the technical problem of how to improve the ease of use of the headphone case. Compared with the prior art, the beneficial effects of the headphone case control device provided in this application are the same as those of the headphone case control method provided in the above embodiments, and other technical features in this headphone case control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0123] This embodiment also provides a computer-readable storage medium having computer-readable program instructions stored thereon, the computer-readable program instructions being used to execute the headphone box control method in the above embodiment.
[0124] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. 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 conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0125] The aforementioned computer-readable storage medium may be included in the headphone case or may exist independently without being assembled into the headphone case.
[0126] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the headphone case, cause the headphone case to: detect whether the outer shell of the headphone case is covered by a covering when the lid of the headphone case is closed; if the outer shell is covered by the covering, detect the temperature information of the covering; and after determining that the temperature information is within a first preset temperature range, open the lid of the headphone case.
[0127] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0128] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0129] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0130] The computer-readable storage medium provided in this application stores computer-readable program instructions for executing the above-described headphone case control method, thus solving the technical problem of how to improve the ease of use of the headphone case. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the headphone case control method provided in the above-described embodiments, and will not be repeated here.
Claims
1. A method for controlling an earphone case, characterized in that, The headphone case control method includes the following steps: With the lid of the headphone case closed, detect whether the outer shell of the headphone case is covered by a covering. If the outer shell is covered by the covering, the temperature information of the covering is detected; After determining that the temperature information is within the first preset temperature range, the lid of the headphone case is opened; The step of detecting whether the outer shell of the earphone case is covered by a covering includes: The light intensity data of the outer shell of the headphone case is dynamically monitored by an optical sensor; If the light intensity data fluctuates within a first preset time period, the fluctuation direction of the light intensity data within the first preset time period and the fluctuation amplitude value of the light intensity data within the first preset time period are obtained, wherein the fluctuation direction includes upward fluctuation and downward fluctuation. If the wave direction is upward, then the outer shell is not covered by the covering. If the direction of the fluctuation is downward and the fluctuation amplitude is greater than a preset fluctuation amplitude threshold, then the outer shell is covered by the covering.
2. The headphone case control method as described in claim 1, characterized in that, Prior to the step of detecting the temperature information of the covering, the method further includes: Dynamically monitor the pressure data of the outer casing; If the pressure data is greater than a preset pressure data threshold, then the step of detecting the temperature information of the covering is executed.
3. The headphone case control method as described in claim 1, characterized in that, Prior to the step of detecting the temperature information of the covering, the method further includes: Obtain a texture image of the surface of the covering; Determine whether the texture image matches the preset palmprint image; If the texture image matches a preset palm print image, then the step of detecting the temperature information of the covering is performed.
4. The headphone case control method as described in claim 3, characterized in that, After the step of acquiring the texture image of the surface of the covering, the method further includes: Determine whether the texture image matches a preset fingerprint image; If the texture image matches a preset fingerprint image, then the step of detecting the temperature information of the covering is performed; If the texture image does not match the preset fingerprint image, then the step of determining whether the texture image matches the preset palm print image is executed.
5. The headphone case control method according to any one of claims 1 to 4, characterized in that, Prior to the step of opening the lid of the headphone case, the method further includes: Dynamically monitor the temperature data of the covering within a second preset time period starting from the current time point; Determine whether the temperature data falls within the second preset temperature range; If so, then proceed with the step of opening the lid of the headphone case.
6. A headphone case control device, characterized in that, The device includes: The coverage confirmation module is used to detect whether the outer shell of the headphone case is covered by a covering when the lid of the headphone case is closed. A temperature acquisition module is used to detect the temperature information of the covering if the outer shell is covered by the covering. The lid control module is used to open the lid of the headphone case after determining that the temperature information is within a first preset temperature range; The coverage confirmation module is further used for: The light intensity data of the outer shell of the headphone case is dynamically monitored by an optical sensor; If the light intensity data fluctuates within a first preset time period, the fluctuation direction of the light intensity data within the first preset time period and the fluctuation amplitude value of the light intensity data within the first preset time period are obtained, wherein the fluctuation direction includes upward fluctuation and downward fluctuation. If the wave direction is upward, then the outer shell is not covered by the covering. If the direction of the fluctuation is downward and the fluctuation amplitude is greater than a preset fluctuation amplitude threshold, then the outer shell is covered by the covering.
7. An earphone case, characterized in that, The headphone case includes: a memory, a processor, and a headphone case control program stored in the memory and executable on the processor, the headphone case control program being configured to implement the steps of the headphone case control method as described in any one of claims 1 to 5.
8. A readable storage medium, characterized in that, The readable storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a headphone box control program, which, when executed by a processor, implements the steps of the headphone box control method as described in any one of claims 1 to 5.