Method and device for switching working state of hair dryer, hair dryer and computer program product
By installing attitude and pressure sensors on the hair dryer and analyzing user operations in real time, the problem of inaccurate identification of user operations in the prior art is solved, and the reasonable recovery of the hair dryer status is achieved and the user experience is improved.
Patent Information
- Application Number
- CN202411607214.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-04-04
AI Technical Summary
The prior art is difficult to accurately identify whether the user's current operation of the hair dryer meets the operation of the unprotected hair dryer, resulting in the inability to reasonably restore the use status of the hair dryer.
By installing attitude sensors and pressure sensors on the hair dryer, the current attitude data is read in real time, and feature analysis is performed to determine whether the user's current operation complies with the preset action. If it is matched, the protection mode will be removed and restored to the previous usage state.
It realizes accurate identification of user operations, reasonably restores the usage status of the hair dryer, and improves user experience and equipment security.
Smart Images

Figure CN119755115A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of motor control technology, and in particular, relates to a method and device for switching the working state of a hair dryer, a hair dryer and a computer program product. Background Art
[0002] When using a hair dryer, the user does not hold the hair dryer in his hand all the time. Sometimes he needs to put it on a table or a shelf. In order to save energy and prevent the hot air from the hair dryer from damaging surrounding items or even causing a fire, the user needs to turn off the hair dryer before putting it down. However, most of the time, the purpose of the user putting the hair dryer on the table or the shelf is to put the hair dryer in a relatively short off state. Therefore, when the user picks up the hair dryer again, he usually hopes that the hair dryer itself can automatically restore to the usage state before the hair dryer was protected. However, how to reasonably realize the above function is a technical problem that needs to be solved urgently. For example, how to distinguish whether the user picks up the hair dryer to restore the previous usage state or just to move the hair dryer, the existing technology does not have a good solution. Summary of the invention
[0003] In order to solve the above technical problems, the present invention provides a method, device, hair dryer and computer program product for switching the working state of a hair dryer, which can accurately identify whether the user's current operation of the hair dryer is consistent with the operation of releasing the protection state of the hair dryer, and then reasonably restore the use state of the hair dryer.
[0004] A first aspect of the present application provides a method for switching the working state of a hair dryer, the method being applied to a hair dryer, the method comprising:
[0005] S1: After the hair dryer is powered on, the current posture data collected by the first sensor is read in real time;
[0006] S2: Determine whether the hair dryer is in the protection mode at the current moment, if it is in the protection mode, execute step S3; if it is not in the protection mode, execute step S1;
[0007] S3: performing feature analysis on the current posture data to obtain the user's current operation on the hair dryer;
[0008] S4: Determine whether the current operation complies with the preset action. If the current operation complies with the preset action, trigger the hair dryer to release the protection mode and restore the hair dryer to the first usage state, which is the working state before the hair dryer enters the protection mode at a historical moment.
[0009] Preferably, the step S3 performs feature analysis on the current posture data to obtain the user's current operation of the hair dryer, including:
[0010] S31: Perform feature analysis on the current posture data to obtain a current feature analysis result;
[0011] S32: determining whether the hair dryer is held by the user according to the current feature analysis result;
[0012] S33: When it is determined that the hair dryer is held by the user, the current operation of the hair dryer by the user is obtained based on the current feature analysis result.
[0013] Preferably, the current feature analysis result includes an analysis result of at least one of the posture data of force, three-dimensional motion direction, number of reciprocating times and moving speed;
[0014] The step S32 determines whether the hair dryer is held by the user according to the current feature analysis result, including:
[0015] Determine whether each of the posture data in the current feature analysis result reaches a first set threshold value. If so, determine whether the hair dryer is held by the user and execute step S4; wherein, determining whether the current operation conforms to the preset action in step S4 further includes:
[0016] It is determined whether each of the gesture data in the current feature analysis result is within a second set range. If so, it is determined that the current operation meets the preset action of releasing the protection mode.
[0017] Preferably, before executing the step of releasing the protection mode in step S4, the method further includes:
[0018] Calculating the time difference between the current moment and the historical moment;
[0019] When the time difference is not greater than a preset time length and the current operation conforms to a preset action, the step of releasing the protection mode and controlling the hair dryer to return to the first use state in step S4 is executed.
[0020] Accordingly, before the step of determining whether the hair dryer is in the protection mode at the current moment in S2, the method further includes:
[0021] If the usage status of the hair dryer at the historical moment changes from being held by the user to not being held by the user, and it is detected that the hair dryer is located on the carrying surface, the status of the hair dryer is switched from the first usage status to the protection mode at the historical moment.
[0022] Correspondingly, the protection mode represents controlling the hair dryer to stop working, or controlling the hair dryer to stop the heating function.
[0023] Optionally, the method further includes:
[0024] Responding to a user's setting instruction for at least one of the preset duration, the preset action, the first set threshold, and the second set range;
[0025] At least one of the new preset duration, the new preset action, the new first set threshold, and the new second set range obtained after the setting is saved.
[0026] A second aspect of the present application further provides a device for switching the working state of a hair dryer, comprising:
[0027] The posture acquisition module is used to read the current posture data collected by the first sensor in real time when the hair dryer is powered on;
[0028] A mode determination module, used to determine whether the hair dryer is in a protection mode at the current moment, and if so, to execute the motion detection module; if not, to execute the posture acquisition module;
[0029] an action detection module, configured to perform feature analysis on the current posture data to obtain a current feature analysis result of the hair dryer; if the current feature analysis result matches the preset action, determining that there is a need to release the protection mode;
[0030] The control module is used to control the hair dryer to exit the protection mode and restore the hair dryer to a first use state, where the first use state is a working state before the hair dryer enters the protection mode at a historical moment.
[0031] The third aspect of the present application also provides a hair dryer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect above when executing the computer program.
[0032] The fourth aspect of the present application further provides a computer program product, comprising a computer program, wherein when the computer program is executed, the method described in the first aspect above is executed.
[0033] The beneficial effect of the present application is that: when the current state of the hair dryer at the current moment (kth moment) is in the protection state, if it is detected that the user is holding the hair dryer, the current operation of the hair dryer by the user is obtained; when the current operation meets the preset action, at the current moment (kth moment), the current state of the hair dryer is restored from the protection state to the working state before the hair dryer entered the protection state at the jth moment (historical moment) to release the protection state. It is possible to accurately identify whether the current operation of the hair dryer by the user meets the operation of releasing the protection state of the hair dryer, and then the use state of the hair dryer can be restored reasonably and timely. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 is a schematic diagram of the structure of a hair dryer provided in an embodiment of the present application;
[0036] Figure 2 This is a main flow chart of a method for switching the working state of a hair dryer provided in the present application;
[0037] Figure 3 It is a flow chart of an embodiment of a method for switching the working state of a hair dryer provided by the present application;
[0038] Figure 4 It is a structural block diagram of a device for switching the working state of a hair dryer provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0040] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0041] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0042] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0043] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0044] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0045] It is understandable that when using a hair dryer, the user will not hold the hair dryer in his hand all the time. Sometimes he needs to put it on a desktop or shelf. In order to save energy and prevent the hot air from the hair dryer from damaging surrounding items or even causing a fire, the user needs to turn off the hair dryer first and then put it down. At this time, the hair dryer can turn off the hair dryer or reduce the wind speed and heating power of the hair dryer according to the judgment results of information such as posture. This state can be called a protection state in the embodiment of the present application. When the user picks it up, the state before protection can be restored. How to accurately identify whether the user's current operation of the hair dryer meets the operation of releasing the protection state of the hair dryer, and then reasonably restore the use state of the hair dryer, is a technical problem to be solved by the embodiment of the present application. The technical solution of the present invention is introduced through specific embodiments below.
[0046] Embodiment 1
[0047] like Figure 1As shown, the embodiment of the present application provides a hair dryer 1 including a motor 10, a controller 20, a first sensor 31 and a second sensor 32, a motor driver 40, a memory 50, and a computer program stored in the memory 50 and executable on the controller 20.
[0048] In a specific implementation, the first sensor 31 may be a posture sensor, such as a gyroscope, an acceleration sensor, or the like, which is used to collect user posture data;
[0049] The second sensor 32 may be a pressure sensor or a proximity sensor. For example, a proximity sensor is installed at the bottom of the hair dryer to sense whether the hair dryer is located on a supporting surface, which may be a desktop, the ground or other supporting surfaces for placing the hair dryer.
[0050] The motor driver 40 is configured to drive the motor 10 to work; the motor 10 is configured to drive the blades of the hair dryer 1 to output airflow. In general, the hair dryer 1 also includes an electric heating circuit 60, which is configured to heat the outlet airflow of the hair dryer 1.
[0051] It should be understood that in the embodiment of the present application, the controller 20 is the system control core of the entire hair dryer, and is the execution unit of all software and hardware control logic of the hair dryer. The controller 20 can specifically be an MCU (microcontroller unit, MCU). The controller 20 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0052] The memory 50 may include a read-only memory and a random access memory, and provide instructions and data to the controller 20. The memory 50 may also include a non-volatile random access memory. The memory 50 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct memory bus random access memory (DR RAM).
[0053] After the hair dryer of the embodiment of the present application is powered on, the controller will obtain the current state of the hair dryer in real time, and implement the following method steps when executing the computer program, including steps S1 to S4:
[0054] Step S1: after the hair dryer is powered on, the current posture data collected by the first sensor is read in real time;
[0055] It is understandable that after the hair dryer is powered on, it will start to execute the main program and start the first sensor to collect the current posture data of the hair dryer. The posture data may include force, three-dimensional movement direction, number of reciprocating times and moving speed.
[0056] It should be noted that before step S2, if the usage status of the hair dryer at the jth moment in (historical moment) changes from being held by the user to not being held by the user, and it is detected that the hair dryer is located on the supporting surface (for example, the user places the hair dryer on the desktop), then at the jth moment in (historical moment), the hair dryer is controlled to enter the protection mode; the protection mode of this embodiment is characterized by controlling the hair dryer to stop working, or controlling the hair dryer to stop the heating function.
[0057] Step S2: determining whether the hair dryer is in the protection mode at the current moment, if it is in the protection mode, executing step S3; if it is not in the protection mode, executing step S1;
[0058] Step S3: performing feature analysis on the current posture data to obtain the user's current operation on the hair dryer;
[0059] Specifically, if the hair dryer is detected to be in protection mode at the current moment, the main program will perform the following operations (refer to Figure 3 ):
[0060] Sub-step S31: performing feature analysis on the current posture data to obtain the current feature analysis result;
[0061] Sub-step S32: determining whether the hair dryer is held by the user according to the current feature analysis result;
[0062] Specifically, the main program determines whether each item of posture data in the current feature analysis result reaches a first set threshold value. If so, it determines whether the hair dryer is held by the user.
[0063] In a specific implementation, taking three-dimensional acceleration data or angular velocity data as current posture data as an example, the data usually appears in the form of a time series, that is, there is a three-dimensional vector representing acceleration at each time point. When the hair dryer is powered on and the user holds the hair dryer, the embodiment of the present application can set the first sensor of the hair dryer to continuously collect the three-dimensional acceleration data of the hair dryer in real time. The acceleration data includes the acceleration components of the three directions of the X-axis, Y-axis and Z-axis of the hair dryer in the three-dimensional space coordinate system. When all three acceleration components reach the first set threshold, it is determined whether the hair dryer is held by the user.
[0064] Sub-step S33: when it is determined that the hair dryer is held by the user, obtaining the current operation of the hair dryer by the user based on the current feature analysis result.
[0065] The main program obtains the current posture data of the hair dryer collected by the first sensor when it is held by the user at the current moment, and then performs operations such as denoising, filtering and normalization on the current posture data to improve the data quality; and then determines the current operation of the user on the hair dryer based on the current posture data.
[0066] Step S4: Determine whether the current operation complies with the preset action. If the current operation complies with the preset action, trigger the hair dryer to release the protection mode and restore the hair dryer to the first usage state, which is the working state before the hair dryer enters the protection mode at a historical moment.
[0067] In a specific implementation, the main program may perform Fourier transform calculation on the posture data at the current moment to obtain frequency domain representation results and time domain representation results; for example, discrete Fourier transform (DFT) may be used to perform Fourier transform calculation on the acceleration data of each dimension of the three-dimensional space acceleration data at the current moment, or fast Fourier transform (FFT) may be used to perform Fourier transform calculation on the acceleration data of each dimension of the three-dimensional space acceleration data at the current moment, and the obtained frequency domain representation results may include frequency and corresponding amplitude (or power), and the obtained time domain representation results may include the peak value of the acceleration data;
[0068] Then, the frequency domain key features are extracted from the frequency domain representation results. The frequency domain key features at least characterize the periodicity and frequency component information of the acceleration data. For example, they may include information feature information such as the main frequency, the secondary frequency, and the energy distribution within a specific frequency range. These feature information can reflect the periodicity and frequency component information of the acceleration data.
[0069] Time domain key features are extracted from the time domain representation results, and the time domain key features include at least the peak value of the acceleration data; the combination of time domain information and frequency domain information can provide more information about the user's current operation of the hair dryer, such as the duration and intensity of the action.
[0070] Specifically, the second setting range may include a frequency domain setting feature range and a time domain setting feature range;
[0071] When the frequency domain key feature is judged to be within the frequency domain setting feature range, and the time domain key feature is within the time domain setting feature range, the current operation is judged to meet the preset action, and the hair dryer is triggered to release the protection mode and restore it to the first use state. The preset action can be shaking twice, or twisting left and right twice, etc., and the preset action can be pre-configured according to the user's usage preference.
[0072] In a specific implementation, the processor of the embodiment of the present application can compare the extracted frequency domain key features and time domain key features with the action mode features within a set feature range. For example, matching can be performed using threshold matching, template matching, machine learning algorithms (such as classifiers), and other methods. If the feature matching degree is within the second set range, it is considered to meet the given preset action (the operation of releasing the protection state), and can accurately identify at the current moment that the user's current operation of the hair dryer is in line with the operation of releasing the protection state of the hair dryer, and then can reasonably help the user to restore the usage status of the hair dryer at the kth moment, thereby improving the user's usage experience.
[0073] In some other embodiments, before executing the step of releasing the protection mode in step S4, the method further includes:
[0074] Step S041, calculating the time difference between the current moment and the historical moment;
[0075] Step S042, when the time difference is not greater than a preset time length and the current operation conforms to a preset action, execute the step of releasing the protection mode in step S4 and controlling the hair dryer to return to the first usage state.
[0076] It is understandable that if the hair dryer is in the protection state at the current moment, and the first sensor of the hair dryer detects that the user is holding the hair dryer (for example, picking up the hair dryer from the desktop), the time difference between the jth moment (historical moment) and the current moment will be calculated. If the time difference between the jth moment (historical moment) and the current moment is not greater than the preset time length, it means that the time interval between the two periods is short, which can indicate that the reason why the user put the hair dryer on the carrying surface (desktop or shelf) at the jth moment is to temporarily turn off the hair dryer for the purpose of energy saving and overheating prevention;
[0077] It is understandable that the preset duration can be understood as a reasonable time window set in advance, and a reasonable time window is set in combination with the time series analysis of the first sensor data to determine the nature of the action. For example, if the hair dryer undergoes a process from static to rapid acceleration in a short period of time, and the acceleration value reaches a preset threshold, it is more likely to be picked up.
[0078] In some other embodiments, the hair dryer is also provided with a human-computer interaction interface, and the user can configure and adjust the preset duration, the preset action, the first set threshold, and the second set range mentioned in the above embodiments through the human-computer interaction interface on the hair dryer according to his or her own usage habits.
[0079] It should be noted that the above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The hair dryer includes one or more computer instructions. When the computer program instructions are loaded or executed on the hair dryer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid state drive (SSD).
[0080] refer to Figure 4 The embodiment of the present application also provides a device for switching the working state of a hair dryer, the device comprising the following software modules:
[0081] The posture acquisition module 10 is used to read the current posture data collected by the first sensor in real time when the hair dryer is powered on;
[0082] A mode determination module 20 is used to determine whether the hair dryer is in a protection mode at the current moment, and if so, to execute the motion detection module; if not, to execute the posture acquisition module;
[0083] The action detection module 30 is used to perform feature analysis on the current posture data to obtain a current feature analysis result of the hair dryer; if the current feature analysis result meets the preset action, it is determined that there is a need to release the protection mode;
[0084] The control module 40 is used to control the hair dryer to exit the protection mode and call the motor control module 50 to control the motor operation so that the hair dryer returns to the first use state, which is the working state before the hair dryer enters the protection mode at a historical moment.
[0085] When the hair dryer is operating in the first use state, the heating control module 60 may be called to implement the heating function.
[0086] It is understandable that the device for switching the working state of the hair dryer can be understood as a software device or a software program, which is deployed in the above-mentioned Figure 1 In the hair dryer of the illustrated embodiment, the steps of the method for switching the working state of the corresponding hair dryer are executed.
[0087] Since the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application, their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0088] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / functional modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0089] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0090] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the embodiment of the method for preventing hair dryer accidents can be implemented.
[0091] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0092] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0093] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0094] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0095] In the embodiments provided in the present application, it should be understood that the disclosed method of switching the working state of the hair dryer can be implemented in other ways. For example, the device / network device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for switching the working state of a hair dryer, characterized in that: The method is applied to a hair dryer, and the method comprises: S1: After the hair dryer is powered on, the current posture data collected by the first sensor is read in real time; S2: Determine whether the hair dryer is in the protection mode at the current moment, if it is in the protection mode, execute step S3; if it is not in the protection mode, execute step S1; S3: performing feature analysis on the current posture data to obtain the user's current operation on the hair dryer; S4: Determine whether the current operation complies with the preset action. If the current operation complies with the preset action, trigger the hair dryer to release the protection mode and restore the hair dryer to the first usage state, which is the working state before the hair dryer enters the protection mode at a historical moment.
2. The method according to claim 1, characterized in that The step S3 performs feature analysis on the current posture data to obtain the user's current operation on the hair dryer, including: S31: Perform feature analysis on the current posture data to obtain a current feature analysis result; S32: determining whether the hair dryer is held by the user according to the current feature analysis result; S33: When it is determined that the hair dryer is held by the user, the current operation of the hair dryer by the user is obtained based on the current feature analysis result.
3. The method according to claim 2, characterized in that The current feature analysis result includes an analysis result of at least one of the posture data of strength, three-dimensional motion direction, number of reciprocating times and moving speed; The step S32 determines whether the hair dryer is held by the user according to the current feature analysis result, including: Determine whether each of the posture data in the current feature analysis result reaches a first set threshold value. If so, determine whether the hair dryer is held by the user and execute step S4; wherein, determining whether the current operation conforms to the preset action in step S4 further includes: It is determined whether each of the gesture data in the current feature analysis result is within a second set range. If so, it is determined that the current operation meets the preset action of releasing the protection mode.
4. The method according to any one of claims 1 to 3, characterized in that: Before executing the step of releasing the protection mode in step S4, the method further includes: Calculating the time difference between the current moment and the historical moment; When the time difference is not greater than a preset time length and the current operation conforms to a preset action, the step of releasing the protection mode and controlling the hair dryer to return to the first use state in step S4 is executed.
5. The method according to claim 1, characterized in that Before the step of determining whether the hair dryer is in the protection mode at the current moment in S2, the method further includes: If the usage status of the hair dryer at the historical moment changes from being held by the user to not being held by the user, and it is detected that the hair dryer is located on the supporting surface, the status of the hair dryer is switched from the first usage status to the protection mode at the historical moment.
6. The method according to claim 1, characterized in that The protection mode indicates that the hair dryer is controlled to stop working, or the hair dryer is controlled to stop the heating function.
7. The method according to any one of claims 3 or 4, characterized in that: The method further comprises: Responding to a user's setting instruction for at least one of the preset duration, the preset action, the first set threshold, and the second set range; At least one of the new preset duration, the new preset action, the new first set threshold, and the new second set range obtained after the setting is saved.
8. A device for switching the working state of a hair dryer, characterized in that: include: The posture acquisition module is used to read the current posture data collected by the first sensor in real time when the hair dryer is powered on; A mode determination module, used to determine whether the hair dryer is in a protection mode at the current moment, and if it is in the protection mode, execute the action detection module; If it is not in the protection mode, executing the posture acquisition module; An action detection module, used for performing feature analysis on the current posture data to obtain a current feature analysis result of the hair dryer; If the current feature analysis result meets the preset action, it is determined that there is a need to release the protection mode; The control module is used to control the hair dryer to exit the protection mode and restore the hair dryer to a first use state, where the first use state is a working state before the hair dryer enters the protection mode at a historical moment.
9. A hair dryer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The invention comprises a computer program, which, when executed, enables the method according to any one of claims 1 to 7 to be performed.