Spectrum beauty instrument, control method and device of spectrum beauty instrument and computer equipment
By comparing infrared sensor detection data with preset thresholds, it is automatically judged whether the spectral beauty instrument falls off and turns off the lamp source, solving the problem of cumbersome operation in the existing technology and improving the user experience.
Patent Information
- Application Number
- CN202411663303.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-01-10
AI Technical Summary
When existing spectral beauty instruments need to be temporarily removed, the operation process of turning off the lamp source first is cumbersome, which affects the user experience.
By comparing infrared sensor detection data with preset thresholds, we automatically judge whether the spectral beauty instrument is falling off, and automatically turn off the light source when necessary to improve the user experience.
It realizes real-time judgment of whether the device needs to be temporarily removed during the use of the spectral beauty instrument, and automatically turn off the power supply, simplifying the operation process and improving the user experience.
Smart Images

Figure CN119280697A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electrical equipment, and in particular to a spectral beauty instrument, a control method and device for the spectral beauty instrument, and a computer device. Background Art
[0002] A spectral beauty instrument is an instrument that is shaped like a mask and is worn on the face. Currently, most spectral beauty instruments do not have a wearing detection function. If you need to temporarily remove the spectral beauty instrument during use, you need to operate the controller to turn off the light source in the spectral beauty instrument first, otherwise the light generated by the light source in the spectral beauty instrument will irritate the user's eyes. However, the above operation process is cumbersome and affects the user experience. Summary of the invention
[0003] In view of this, the present invention provides a spectral beauty instrument, a control method, an apparatus and a computer device for the spectral beauty instrument, so as to solve the problem that when the spectral beauty instrument needs to be temporarily removed, it is necessary to operate the controller to turn off the light source in the spectral beauty instrument first, and the operation process is cumbersome, which affects the user experience.
[0004] In a first aspect, the present invention provides a control method for a spectral beauty instrument, comprising the following steps: after the spectral beauty instrument is successfully worn, obtaining actual data detected by the infrared sensor at the current moment to obtain first data; determining whether the first data is less than a preset first threshold; when the first data is less than the first threshold, obtaining a first number of first data less than the first threshold; when the first number is greater than a preset second threshold, determining that the spectral beauty instrument has fallen off, and turning off the light source on the spectral beauty instrument.
[0005] The control method of the spectral beauty instrument provided by the present invention, after the spectral beauty instrument is successfully worn, obtains first data detected by the infrared sensor, compares the first data with a preset first threshold, and when the first data is less than the first threshold, compares the first number of times the first data is less than the first threshold with a second threshold, so as to determine whether the spectral beauty instrument has fallen off, that is, whether the spectral beauty instrument needs to be temporarily removed during use. When the spectral beauty instrument needs to be temporarily removed during use, the power supply of the spectral beauty instrument can be automatically turned off, thereby solving the problem that when the spectral beauty instrument needs to be temporarily removed, the controller needs to be operated to turn off the light source in the spectral beauty instrument first, and the operation process is cumbersome, affecting the user experience.
[0006] In an optional embodiment, when the first data is greater than or equal to a first threshold, the first quantity is set to 0, and the process returns to the step of obtaining the actual data detected by the infrared sensor at the current moment to obtain the first data; or, when the first quantity is less than or equal to a second threshold, the process returns to the step of obtaining the actual data detected by the infrared sensor at the current moment to obtain the first data.
[0007] This ensures that during the use of the spectral beauty instrument, a real-time judgment can be made as to whether the user needs to temporarily remove the spectral beauty instrument, and by setting the first number to 0, it can ensure that the first number of first data detected by the infrared sensor that is less than the first threshold is continuous, thereby accurately determining whether the spectral beauty instrument has fallen off, and eliminating the situation where the first data is occasionally less than the first threshold during normal use of the spectral beauty instrument.
[0008] In an optional embodiment, the control method of the spectral beauty instrument also includes the following steps: after receiving the power-on command, obtaining the actual data detected by the infrared sensor at the current moment to obtain the second data; judging whether the second data is greater than a preset third threshold; when the second data is greater than the third threshold, obtaining the actual data detected by the infrared sensor at the previous moment to obtain the third data; calculating the difference between the second data and the third data; judging whether the difference is less than a preset fourth threshold; when the difference is less than the fourth threshold, obtaining a second number whose difference is less than the fourth threshold; when the second number is greater than the preset fifth threshold, determining that the spectral beauty instrument has been worn, and turning on the light source on the spectral beauty instrument.
[0009] Therefore, by comparing the second data with the third threshold, comparing the second data detected by the infrared sensor at the current moment with the third data detected by the infrared sensor at the previous moment, and comparing the difference between the second data and the third data with the fourth threshold, it is possible to accurately determine whether the spectral beauty instrument is worn successfully, and automatically turn on the light source on the spectral beauty instrument after the spectral beauty instrument is worn successfully, thereby improving the user experience.
[0010] In an optional embodiment, the control method of the spectral beauty instrument also includes the following steps: when the second data is less than or equal to the third threshold, the second quantity is set to 0, and the step of returning to obtain the actual data detected by the infrared sensor at the current moment to obtain the second data; or, when the difference is greater than or equal to the fourth threshold, the second quantity is set to 0, and the step of returning to obtain the actual data detected by the infrared sensor at the current moment to obtain the second data; or, when the second quantity is less than or equal to the preset fifth threshold, the step of returning to obtain the actual data detected by the infrared sensor at the current moment to obtain the second data.
[0011] Therefore, after receiving the power-on command, a real-time judgment can be made on whether the spectral beauty instrument is worn successfully, and by setting the second number to 0, it can be ensured that the second number is continuous, that is, the stability of the data is guaranteed, thereby making the judgment on whether the spectral beauty instrument is worn successfully more accurate.
[0012] In an optional implementation, the control method of the spectral beauty instrument further includes the following steps: when determining that the spectral beauty instrument is worn, obtaining actual data detected by the infrared sensor at the current moment to obtain fourth data; and determining the first threshold value based on the fourth data.
[0013] In this way, the first threshold can be obtained according to the real-time data after different groups of people wear the device, thereby reducing the misjudgment of whether the spectral beauty device has fallen off.
[0014] In an optional embodiment, before obtaining the actual data detected by the infrared sensor at the current moment and obtaining the second data, it also includes: obtaining the current mode of the spectral beauty instrument; when the current mode is a wearing detection mode, executing to obtain the actual data detected by the infrared sensor at the current moment and obtaining the second data; when the current mode is a non-wearing detection mode, when the light source turn-off instruction is obtained, the light source in the spectral beauty instrument is turned off.
[0015] This allows the spectral beauty instrument to automatically turn off the light source in a variety of working modes, thereby improving user experience.
[0016] In the second aspect, the present invention also provides a control device for a spectral beauty instrument, the device comprising a first acquisition module, a first judgment module, a second acquisition module, a second judgment module and a light source control module; the first acquisition module is used to obtain the actual data detected by the infrared sensor at the current moment after the spectral beauty instrument is successfully worn, so as to obtain the first data; the first judgment module is used to judge whether the first data is less than a preset first threshold; the second acquisition module is used to obtain a first number of first data less than the first threshold when the first data is less than the first threshold; the second judgment module is used to determine that the spectral beauty instrument has fallen off when the first number is greater than the preset second threshold; the light source control module is used to turn off the light source on the spectral beauty instrument.
[0017] In a third aspect, the present invention further provides a computer device comprising a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the control method of the spectral beauty instrument of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0018] In a fourth aspect, the present invention further provides a spectral beauty instrument, including a beauty mask and a computer device, wherein an infrared sensor is provided on a side of the beauty mask that contacts the skin, and the computer device is communicatively connected to the infrared sensor.
[0019] In a fifth aspect, the present invention further provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the control method of a spectral beauty instrument according to the first aspect or any corresponding embodiment thereof.
[0020] In a sixth aspect, the present invention further provides a computer program product, comprising computer instructions, which are used to enable a computer to execute the control method of the spectral beauty instrument of the first aspect or any corresponding embodiment thereof.
[0021] The spectral beauty instrument, the control method, device and computer equipment of the spectral beauty instrument of the present invention have the following beneficial effects:
[0022] (1) After the spectral beauty instrument is successfully worn, by acquiring first data detected by the infrared sensor, the first data is compared with a preset first threshold value. When the first data is less than the first threshold value, a first number of times the first data is less than the first threshold value is compared with a second threshold value, so as to determine whether the spectral beauty instrument has fallen off, that is, whether the spectral beauty instrument needs to be temporarily removed during use. When the spectral beauty instrument needs to be temporarily removed during use, the power supply of the spectral beauty instrument can be automatically turned off, thereby solving the problem that when the spectral beauty instrument needs to be temporarily removed, the controller needs to be operated to turn off the light source in the spectral beauty instrument first, and the operation process is cumbersome, which affects the user experience.
[0023] (2) By comparing the second data with the third threshold, comparing the second data detected by the infrared sensor at the current moment with the third data detected by the infrared sensor at the previous moment, and comparing the difference between the second data and the third data with the fourth threshold, it is accurately determined whether the spectral beauty instrument is worn successfully, and the light source on the spectral beauty instrument is automatically turned on after the spectral beauty instrument is worn successfully, thereby improving the user experience.
[0024] (3) The first threshold value can be obtained based on real-time data after different groups of people wear the device, thereby reducing the misjudgment of whether the spectral beauty device has fallen off. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 is a flow chart of a method for controlling a spectral beauty instrument according to an embodiment of the present invention;
[0027] Figure 2 is a flow chart of another method for controlling a spectral beauty instrument according to an embodiment of the present invention;
[0028] Figure 3 is a flowchart of an example of a method for controlling a spectral beauty instrument according to an embodiment of the present invention;
[0029] Figure 4 is a first structural schematic diagram of a spectral beauty instrument according to an embodiment of the present invention;
[0030] Figure 5 is a schematic diagram of changes in infrared detection data when the spectral beauty instrument according to an embodiment of the present invention is worn and taken off;
[0031] Figure 6 is a flow chart of a method for controlling a spectral beauty instrument according to an embodiment of the present invention;
[0032] Figure 7 is a second structural schematic diagram of the spectral beauty instrument according to an embodiment of the present invention;
[0033] Figure 8 is a structural block diagram of a spectral beauty instrument control device according to an embodiment of the present invention;
[0034] Fig. 9 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention.
[0035] Among them, 1. Infrared sensor setting area; 2. Light source setting area; 3. Eye shading area; 4. Infrared sensor. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0037] According to an embodiment of the present invention, a control method embodiment of a spectral beauty instrument is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0038] In this embodiment, a control method of a spectral beauty instrument is provided, which can be used in a computer device. Figure 1 is a flow chart of a method for controlling a spectral beauty instrument according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0039] Step S101: After the spectral beauty instrument is successfully worn, actual data detected by the infrared sensor at the current moment is obtained to obtain first data.
[0040] Specifically, an infrared sensor is provided on the side of the spectral beauty instrument that fits the skin. After the spectral beauty instrument is successfully worn, the infrared sensor can detect the actual data of the spectral beauty instrument and the skin. It should be noted that the larger the data detected by the infrared sensor, the closer the distance between the spectral beauty instrument and the skin is. The infrared sensor is directional, and the infrared sensor cannot detect data on the side of the spectral beauty instrument that does not fit the skin.
[0041] Step S102: Determine whether the first data is less than a preset first threshold.
[0042] In an optional implementation, the first threshold value may be set according to different user groups.
[0043] Step S103: when the first data is smaller than the first threshold, obtaining a first number of the first data smaller than the first threshold.
[0044] Step S104: When the first number is greater than a preset second threshold, it is determined that the spectral beauty instrument has fallen off, and the light source on the spectral beauty instrument is turned off.
[0045] By comparing the first number of first data that is less than the first threshold with the second threshold, misjudgment of the spectral beauty instrument falling off can be reduced.
[0046] The control method of the spectral beauty instrument provided in the present embodiment, after the spectral beauty instrument is successfully worn, obtains the first data detected by the infrared sensor, compares the first data with a preset first threshold, and when the first data is less than the first threshold, compares the first number of times the first data is less than the first threshold with the second threshold, so as to determine whether the spectral beauty instrument has fallen off, that is, whether the spectral beauty instrument needs to be temporarily removed during use. When the spectral beauty instrument needs to be temporarily removed during use, the power supply of the spectral beauty instrument can be automatically turned off, thereby solving the problem that when the spectral beauty instrument needs to be temporarily removed, the controller needs to be operated to turn off the light source in the spectral beauty instrument first, and the operation process is cumbersome, affecting the user experience.
[0047] In this embodiment, a control method of a spectral beauty instrument is provided, which can be used in a computer device. Figure 2 is a flow chart of another method for controlling a spectral beauty instrument according to an embodiment of the present invention; Figure 3 1 is a flow chart of an example of a method for controlling a spectral beauty instrument according to an embodiment of the present invention; Figure 2 and Figure 3 As shown, the process includes the following steps:
[0048] Step S201: after receiving the power-on instruction, the actual data detected by the infrared sensor at the current moment is acquired to obtain the second data.
[0049] Figure 4 is a first structural schematic diagram of a spectral beauty instrument according to an embodiment of the present invention. Figure 4 As shown, the spectrum beauty instrument includes an infrared sensor setting area 1, a light source setting area 2 and an eye shading area 3. Among them, the infrared sensor 4 can be set in the infrared sensor setting area 1.
[0050] Step S202: Determine whether the second data is greater than a preset third threshold. When the second data is greater than the third threshold, proceed to step S203; otherwise, set the second number to 0 and return to step S201.
[0051] The third threshold value can be obtained according to the whole machine assembly experiment, and is generally preset in the range of 1000 to 5000.
[0052] That is, when the second data is less than or equal to the third threshold, return to step S201.
[0053] Step S203: Acquire the actual data detected by the infrared sensor at the last moment to obtain third data.
[0054] Step S204: Calculate the difference between the second data and the third data.
[0055] exist Figure 3 In the data, the second data is represented by Data_k and the third data is represented by Data_k-1.
[0056] Step S205: Determine whether the difference is less than a preset fourth threshold. When the difference is less than the preset fourth threshold, proceed to step S206; otherwise, set the second number to 0 and return to step S201.
[0057] That is, when the difference is greater than or equal to the fourth threshold, return to step S201.
[0058] Step S206: obtain the second number whose difference is less than the fourth threshold value plus one.
[0059] Step S207: Determine whether the second number is greater than a preset fifth threshold. When the second number is greater than the fifth threshold, proceed to step S208; otherwise, return to step S201.
[0060] That is, when the second number is less than or equal to the preset fifth threshold, return to step S201.
[0061] Step S208: determining that the spectral beauty instrument has been worn, and turning on the light source on the spectral beauty instrument.
[0062] It can be seen from the above steps S201 to S208 that to determine whether the spectral beauty instrument is worn successfully based on the detection data of the infrared sensor, the following two conditions need to be met:
[0063] Condition 1: The detection data of the infrared sensor is greater than the third threshold.
[0064] Condition 2: The fluctuation of the detection data of the infrared sensor over a continuous period of time is less than plus or minus 5%, thereby ensuring the stability of the data, making the determination of whether the spectral beauty instrument is successfully worn more accurate.
[0065] The above steps S201 to S208 accurately determine whether the spectral beauty instrument is successfully worn by comparing the second data with the third threshold, comparing the second data detected by the infrared sensor at the current moment with the third data detected by the infrared sensor at the previous moment, and comparing the difference between the second data and the third data with the fourth threshold, and automatically turn on the light source on the spectral beauty instrument after the spectral beauty instrument is successfully worn, thereby improving the user experience.
[0066] In an optional embodiment, the control method of the spectral beauty instrument further includes the following steps: when determining that the spectral beauty instrument has been worn, obtaining the actual data detected by the infrared sensor at the current moment to obtain fourth data; determining the first threshold value according to the fourth data. For example, the first threshold value is equal to the fourth data divided by the adjustment coefficient, where the adjustment coefficient can be 1.05 to 2. Figure 3 In the figure, the fourth data is represented by Data, and the first threshold is represented by DataOn / n.
[0067] In this way, the first threshold can be obtained according to the real-time data after different groups of people wear the device, thereby reducing the misjudgment of whether the spectral beauty device has fallen off.
[0068] Step S209: Acquire the actual data detected by the infrared sensor at the current moment to obtain first data.
[0069] Step S210: Determine whether the first data is less than a preset first threshold. When the first data is less than the first threshold, proceed to step S211; otherwise, set the first number to 0 and return to step S209.
[0070] That is, when the first data is greater than or equal to the first threshold, the process returns to step S209.
[0071] Step S211: obtain a first number of first data that is smaller than a first threshold value plus one.
[0072] Step S212: Determine whether the first number is greater than a preset second threshold. When the first number is greater than the second threshold, proceed to step S213; otherwise, return to step S210.
[0073] In this embodiment, when the first data is greater than the first threshold, by setting the first number to 0, it can be ensured that the first number of first data detected by the infrared sensor that is less than the first threshold is continuous, thereby accurately determining whether the spectral beauty instrument has fallen off, and eliminating the situation where the first data is occasionally less than the first threshold during normal use of the spectral beauty instrument.
[0074] Step S213: determining that the spectrum beauty instrument has fallen off, and turning off the light source on the spectrum beauty instrument.
[0075] Figure 5 Schematic diagram of infrared detection data changes when the spectral beauty instrument is worn and taken off according to an embodiment of the present invention. Figure 5 As shown, when the spectral beauty instrument is successfully worn and when it falls off, the detection data of the infrared sensor changes significantly, so the control method of the spectral beauty instrument provided in this embodiment has high accuracy.
[0076] The control method of the spectral beauty instrument provided in this embodiment has the following beneficial effects:
[0077] (1) After the spectral beauty instrument is successfully worn, by acquiring first data detected by the infrared sensor, the first data is compared with a preset first threshold value. When the first data is less than the first threshold value, a first number of times the first data is less than the first threshold value is compared with a second threshold value, so as to determine whether the spectral beauty instrument has fallen off, that is, whether the spectral beauty instrument needs to be temporarily removed during use. When the spectral beauty instrument needs to be temporarily removed during use, the power supply of the spectral beauty instrument can be automatically turned off, thereby solving the problem that when the spectral beauty instrument needs to be temporarily removed, the controller needs to be operated to turn off the light source in the spectral beauty instrument first, and the operation process is cumbersome, which affects the user experience.
[0078] (2) By comparing the second data with the third threshold, comparing the second data detected by the infrared sensor at the current moment with the third data detected by the infrared sensor at the previous moment, and comparing the difference between the second data and the third data with the fourth threshold, it is accurately determined whether the spectral beauty instrument is worn successfully, and the light source on the spectral beauty instrument is automatically turned on after the spectral beauty instrument is worn successfully, thereby improving the user experience.
[0079] (3) The first threshold value can be obtained based on real-time data after different groups of people wear the device, thereby reducing the misjudgment of whether the spectral beauty device has fallen off.
[0080] In this embodiment, a control method of a spectral beauty instrument is provided, which can be used in a computer device. Figure 6 FIG. 1 is a flow chart of another method for controlling a spectral beauty instrument according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:
[0081] Step S601: Obtain the current mode of the spectral beauty instrument.
[0082] Figure 7 is a second structural schematic diagram of the spectrum beauty instrument according to an embodiment of the present invention. Figure 7 As shown, the spectrum beauty instrument includes a hand controller, a mask control module, a sensor module and an LED module.
[0083] Step S602: Determine whether the current mode is the wearing detection mode. If the current mode is the wearing detection mode, proceed to step S603; otherwise, proceed to step S604.
[0084] Step S603: Execute the above steps S201 to S213.
[0085] Step S604: When the light source off instruction is obtained, the light source in the spectrum beauty instrument is turned off.
[0086] That is to say, the hand operator can enable the wearing detection function to be started or turned off. When the hand operator turns off the wearing detection function, the mask control module turns on or off the LED module according to the hand operator's power on and off instructions, without waiting for the wearing signal; when the hand operator turns on the wearing detection function, the mask control module turns off the LED module according to the hand operator's power off instructions or when the mask is not worn. The LED module is started only after the hand operator gives a power on instruction and the mask control module detects the wearing status.
[0087] Specifically, you can switch the wearing detection function on or off by pressing the mode key + the power key on the hand operator for more than 2 seconds. You can also control it by other key methods, which varies with different UI appearance designs.
[0088] The control method of the spectral beauty instrument provided in this embodiment can enable the spectral beauty instrument to automatically turn off the light source in a variety of working modes, thereby improving the user experience.
[0089] In this embodiment, a control device for a spectral beauty instrument is also provided, which is used to implement the above-mentioned embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0090] This embodiment provides a control device for a spectral beauty instrument, such as Figure 8 As shown, including:
[0091] The first acquisition module 801 is used to acquire the actual data detected by the infrared sensor at the current moment after the spectral beauty instrument is successfully worn, and obtain the first data;
[0092] A first judging module 802, used to judge whether the first data is less than a preset first threshold;
[0093] A second acquisition module 803 is used to acquire a first number of first data smaller than the first threshold value when the first data is smaller than the first threshold value;
[0094] The second judgment module 804 is used to judge that the spectrum beauty instrument has fallen off when the first number is greater than a preset second threshold;
[0095] The light source control module 805 is used to turn off the light source on the spectrum beauty instrument.
[0096] In some optional implementations, when the first data is greater than or equal to the first threshold, the second acquisition module 803 is further used to set the first quantity to 0, and the first acquisition module 801 is further used to continue to acquire actual data detected by the infrared sensor at the current moment to obtain the first data.
[0097] In some optional implementations, when the first number is less than or equal to the second threshold, the first acquisition module 801 is further configured to continue acquiring actual data detected by the infrared sensor at the current moment to obtain first data.
[0098] In some optional embodiments, the control device of the spectrum beauty instrument further includes a third acquisition module and a third judgment module. Among them, the first acquisition module 801 is also used to obtain the actual data detected by the infrared sensor at the current moment after receiving the power-on instruction to obtain the second data; the first judgment module 802 is also used to judge whether the second data is greater than the preset third threshold; the third acquisition module is used to obtain the actual data detected by the infrared sensor at the previous moment when the second data is greater than the third threshold to obtain the third data; the third judgment module is used to calculate the difference between the second data and the third data, and judge whether the difference is less than the preset fourth threshold; the second acquisition module 803 is also used to obtain the second number of differences less than the fourth threshold when the difference is less than the fourth threshold; the second judgment module 804 is also used to determine that the spectrum beauty instrument has been worn when the second number is greater than the preset fifth threshold; the light source control module 805 is also used to turn on the light source on the spectrum beauty instrument.
[0099] In some optional implementations, when the second data is less than or equal to the third threshold, the second acquisition module 803 is further used to set the second quantity to 0, and the first acquisition module 801 is further used to continue to acquire the actual data detected by the infrared sensor at the current moment to obtain the second data.
[0100] In some optional implementations, when the difference is greater than or equal to the fourth threshold, the second acquisition module 803 is further used to set the second quantity to 0, and the first acquisition module 801 is further used to continue to acquire actual data detected by the infrared sensor at the current moment to obtain second data.
[0101] In some optional implementations, when the second number is less than or equal to a preset fifth threshold, the first acquisition module 801 is further configured to acquire actual data detected by the infrared sensor at the current moment to obtain second data.
[0102] In some optional embodiments, the control device of the spectral beauty instrument further includes a fourth acquisition module and a first threshold determination module. The fourth acquisition module is used to obtain actual data detected by the infrared sensor at the current moment to obtain fourth data when determining that the spectral beauty instrument has been worn; and the first threshold determination module is used to determine the first threshold according to the fourth data.
[0103] In some optional implementations, the control device of the spectral beauty instrument further includes a fifth acquisition module. The fifth acquisition module is used to acquire the current mode of the spectral beauty instrument; when the current mode is the non-wearing detection mode, when the light source off instruction is acquired, the light source control module 805 is also used to turn off the light source in the spectral beauty instrument.
[0104] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0105] The control device of the spectral beauty instrument in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0106] The embodiment of the present invention also provides a computer device having the above Figure 8 The control device of the spectral beauty instrument shown.
[0107] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig. 9As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 9 A processor 10 is taken as an example.
[0108] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0109] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0110] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0111] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0112] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.
[0113] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0114] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0115] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0116] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A control method for a spectral beauty instrument, characterized in that: include: After the spectral beauty instrument is successfully worn, actual data detected by the infrared sensor at the current moment is obtained to obtain first data; Determine whether the first data is less than a preset first threshold; When the first data is less than the first threshold, obtaining a first number of the first data that is less than the first threshold; When the first number is greater than a preset second threshold, it is determined that the spectral beauty instrument has fallen off, and the light source on the spectral beauty instrument is turned off.
2. The method according to claim 1, characterized in that Also includes: When the first data is greater than or equal to the first threshold, the first number is set to 0, and the process returns to the step of obtaining the actual data detected by the infrared sensor at the current moment to obtain the first data; Alternatively, when the first number is less than or equal to the second threshold, the process returns to the step of acquiring actual data detected by the infrared sensor at the current moment to obtain first data.
3. The method according to claim 1 or 2, characterized in that: Also includes: After receiving the power-on instruction, obtaining the actual data detected by the infrared sensor at the current moment to obtain the second data; Determining whether the second data is greater than a preset third threshold; When the second data is greater than the third threshold, the actual data detected by the infrared sensor at the last moment is acquired to obtain the third data; Calculating a difference between the second data and the third data; Determining whether the difference is less than a preset fourth threshold; When the difference is less than the fourth threshold, obtaining a second number in which the difference is less than the fourth threshold; When the second number is greater than a preset fifth threshold, it is determined that the spectral beauty instrument has been worn, and the light source on the spectral beauty instrument is turned on.
4. The method according to claim 3, characterized in that: Also includes: When the second data is less than or equal to the third threshold, the second number is set to 0, and the process returns to the step of obtaining the actual data detected by the infrared sensor at the current moment to obtain the second data; Alternatively, when the difference is greater than or equal to the fourth threshold, the second number is set to 0, and the process returns to the step of obtaining the actual data detected by the infrared sensor at the current moment to obtain the second data; Alternatively, when the second number is less than or equal to a preset fifth threshold, return to the step of acquiring actual data detected by the infrared sensor at the current moment to obtain second data.
5. The method according to claim 3, characterized in that: Also includes: When it is determined that the spectral beauty instrument has been worn, actual data detected by the infrared sensor at the current moment is acquired to obtain fourth data; The first threshold is determined according to the fourth data.
6. The method according to claim 3, characterized in that Before obtaining the actual data detected by the infrared sensor at the current moment and obtaining the second data, the method further includes: Obtaining the current mode of the spectral beauty instrument; When the current mode is the wearing detection mode, acquiring actual data detected by the infrared sensor at the current moment to obtain second data; When the current mode is the non-wearing detection mode, when a light source turn-off instruction is obtained, the light source in the spectral beauty instrument is turned off.
7. A control device for a spectral beauty instrument, characterized in that: The device comprises: A first acquisition module is used to acquire actual data detected by the infrared sensor at the current moment after the spectral beauty instrument is successfully worn, so as to obtain first data; A first judging module, used to judge whether the first data is less than a preset first threshold; A second acquisition module, configured to acquire a first number of times that the first data is smaller than the first threshold when the first data is smaller than the first threshold; A second judgment module, configured to judge that the spectral beauty instrument has fallen off when the first number is greater than a preset second threshold; The light source control module is used to turn off the light source on the spectrum beauty instrument.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the control method of the spectral beauty instrument according to any one of claims 1 to 6 by executing the computer instructions.
9. A spectrum beauty instrument, characterized in that: include: A beauty mask, wherein an infrared sensor is provided on a side of the beauty mask that contacts the skin; The computer device of claim 8, wherein the computer device is communicatively connected to the infrared sensor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the control method of the spectral beauty instrument according to any one of claims 1 to 6.
11. A computer program product, characterized in that It comprises computer instructions, and the computer instructions are used to make a computer execute the control method of the spectral beauty instrument according to any one of claims 1 to 6.