A kind of control method, device, equipment and storage mediumTechnical field
The present embodiments relate to intelligent terminal technologies more particularly to a kind of control method, device, equipment and storage to be situated betweenMatter.
Background technique
Currently, being all to point just by the tinkle of bells set, volume and mode carry out prompting use because of the characteristic of quarter-bellFamily, quarter-bell is once set, if would not be varied without changing manually.
In actual use, as soon as will appear one when needing to add a quarter-bell at night for reminding oneself to sleepA problem will be than the estimated time later, so being typically all setting one if jingle bell is slept again to point every timeTime must sleep to this time.But in fact, when many time is all more early than this time, just onBed is slept, but has arrived the time of this alarm clock setting, and alarm clock is rung again, and people is mixed it, and closes open this dailyAlarm clock is very troublesome, if user forgets, will appear user and has been in sleep, but the sleep alarm clock set is again by userIt wakes up with a start, reduces the usage experience of user, bring inconvenience to the life of user.
Summary of the invention
The embodiment of the present invention provides a kind of control method, device, equipment and storage medium, is in sleep in user to realizeWhen state, the related reminding alarm clock with sleep is automatically closed, promotes the usage experience of user.
In a first aspect, the embodiment of the invention provides a kind of control methods, comprising:
When detecting that terminal device is provided with sleep reminding alarm clock, obtain infrared in room locating for the terminal deviceThe image information of camera acquisition;
It obtains and is in the corresponding target image information of dormant user in described image information;
Target image information pre-set image information corresponding with target user is matched;
If successful match, controls the sleep reminding alarm clock and close.
Further, it obtains in described image information and includes: in the corresponding target image information of dormant user
According to the posture of at least one user of described image acquisition of information;
Judge whether at least one described user is in sleep state according to the posture of at least one user;
The corresponding target image information of dormant user is in if so, obtaining.
Further, further includes:
If non-successful match, the corresponding sleep prompting message of sleep reminding alarm clock is obtained;
The sleep prompting message is sent to the corresponding intelligent wearable device of the target user, so that the intelligence is wornIt wears equipment and carries out sleep prompting.
Further, the intelligent wearable device includes: at least one of Intelligent bracelet, smartwatch, intelligent jewelry.
Second aspect, the embodiment of the invention also provides a kind of control device, which includes:
First obtains module, for obtaining the terminal and setting when detecting that terminal device is provided with sleep reminding alarm clockThe image information of infrared camera acquisition in standby locating room;
Second obtains module, for obtaining in described image information in the corresponding target image letter of dormant userBreath;
Matching module, for matching target image information pre-set image information corresponding with target user;
Control module controls the sleep reminding alarm clock and closes if being used for successful match.
Further, the second acquisition module is specifically used for:
According to the posture of at least one user of described image acquisition of information;
Judge whether at least one described user is in sleep state according to the posture of at least one user;
The corresponding target image information of dormant user is in if so, obtaining.
Further, further includes:
Third obtains module, if being used for non-successful match, obtains the corresponding sleep prompting message of sleep reminding alarm clock;
Reminding module, for the sleep prompting message to be sent to the corresponding intelligent wearable device of the target user,So that the intelligent wearable device carries out sleep prompting.
Further, the intelligent wearable device includes: at least one of Intelligent bracelet, smartwatch, intelligent jewelry.
The third aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored inOn memory and the computer program that can run on a processor, the processor are realized when executing described program as the present invention is realApply any control method in example.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computerProgram realizes the control method as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention is by obtaining the terminal device when detecting that terminal device is provided with sleep reminding alarm clockThe image information of infrared camera acquisition in locating room;It obtains corresponding in dormant user in described image informationTarget image information;Target image information pre-set image information corresponding with target user is matched;If matchingSuccess then controls the sleep reminding alarm clock and closes, can be realized when user is in sleep state, being automatically closed has with sleepThe reminding alarm clock of pass promotes the usage experience of user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attachedFigure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pairThe restriction of range for those of ordinary skill in the art without creative efforts, can also be according to thisA little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow chart of one of the embodiment of the present invention one control method;
Fig. 2 is the flow chart of one of the embodiment of the present invention two control method;
Fig. 3 is the structural schematic diagram of one of the embodiment of the present invention three control device;
Fig. 4 is the structural schematic diagram of one of the embodiment of the present invention four computer equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to justOnly the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang YiIt is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the inventionIn description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Embodiment one
Fig. 1 is a kind of flow chart for control method that the embodiment of the present invention one provides, and the present embodiment is applicable to controlSituation, this method can be executed by the control device in the embodiment of the present invention, which can be used the side of software and/or hardwareFormula is realized, as shown in Figure 1, this method specifically comprises the following steps:
S110 is obtained red in room locating for terminal device when detecting that terminal device is provided with sleep reminding alarm clockThe image information of outer camera acquisition.
Wherein, the terminal device can be smart phone, or smartwatch can also be the intelligence such as Intelligent braceletEnergy wearable device, it is not limited by the embodiments of the present invention.
Wherein, the sleep reminding alarm clock is used to that user to be reminded to sleep, such as can be, and sleep set by user is reminded noisyClock is 11:00 in afternoon, then 11:00 reminds user that should sleep in the afternoon.
Wherein, the setting position of the infrared camera is the position that can acquire the complete image information in room,It can be the position that can acquire the complete image information in room on bed, it is not limited by the embodiments of the present invention.
Wherein, the infrared camera can be one, or it is multiple, it can be set according to the demand of userIt is fixed.
Wherein, room locating for the terminal device can be bedroom, or parlor, the embodiment of the present invention to this not intoRow limitation.
Specifically, when detecting that terminal device is provided with sleep reminding alarm clock, when acquisition sleep reminding alarm clock is correspondingBetween, obtain the infrared camera acquisition in room locating for the terminal device of sleep reminding alarm clock corresponding time for the previous periodImage information.
Specifically, determining that the mode in room locating for terminal device can acquire to obtain the locating module built in terminal deviceLocation information, according to location information determine terminal device locating for room, can also establish in terminal device and each roomInfrared camera bluetooth connection, the intensity of the Bluetooth signal received according to terminal device determines room locating for terminal deviceBetween.It is not limited by the embodiments of the present invention.
Specifically, being obtained in room locating for terminal device when detecting that terminal device is provided with sleep reminding alarm clockThe image information of infrared camera acquisition.Such as can be, detect terminal device be provided with 11:00 in afternoon sleep remind it is noisyClock establishes the bluetooth connection of terminal device and the infrared camera in each room, is believed according to the bluetooth that terminal device receivesNumber intensity determine room locating for terminal device, obtain the image letter of the infrared camera acquisition in room locating for terminal deviceBreath.
S120 is obtained and is in the corresponding target image information of dormant user in image information.
Wherein, described image information can be raw video image, or pass through pretreated video image, thisInventive embodiments are not limited this.
Wherein, the acquisition modes in the corresponding target image information of dormant user can be extraction image informationIn character image information, analysis character image information obtain the corresponding posture of character image information, according to character image informationCorresponding posture determines whether in sleep state, such as can be, when the corresponding posture of character image information is sleep stateCorresponding posture, it is determined that be in sleep state.
Wherein, the target image information can be head portrait, or other can characterize the image of user identity, thisInventive embodiments are not limited this.
It is in the corresponding target image information of dormant user in image information specifically, obtaining, such as can be,The character image information in image information is extracted, character image information is analyzed, is determined whether based on the analysis results in sleep shapeState obtains if being in sleep state and is in the corresponding head portrait of dormant user.
S130 matches target image information pre-set image information corresponding with target user.
Wherein, the target user is the corresponding user of terminal device.
Wherein, the corresponding pre-set image of the target user can be the target user couple being pre-stored in terminal deviceThe head portrait answered, or pre-stored other can characterize the image of user identity, the embodiment of the present invention to this withoutLimitation.
Specifically, target image information pre-set image information corresponding with target user, which is carried out matched mode, to beCalculate the similarity of target image information pre-set image information corresponding with target user.
S140 controls sleep reminding alarm clock and closes if successful match.
Wherein, successful match can be big for the similarity of target image information pre-set image information corresponding with target userIn preset threshold, then successful match, or target image information pre-set image information corresponding with target user is determined asThe same person, then successful match, it is not limited by the embodiments of the present invention.
Specifically, if successful match, control sleep reminding alarm clock and close, such as can be, if target image information withThe corresponding pre-set image information of target user is determined as the same person, then controls sleep reminding alarm clock and close.
The technical solution of the present embodiment, by when detecting that terminal device is provided with sleep reminding alarm clock, described in acquisitionThe image information of infrared camera acquisition in room locating for terminal device;It obtains in described image information in dormantThe corresponding target image information of user;By target image information pre-set image information progress corresponding with target userMatch;If successful match, controls the sleep reminding alarm clock and close, can be realized when user is in sleep state, it is automatic to closeThe related reminding alarm clock with sleep is closed, the usage experience of user is promoted.
Embodiment two
Fig. 2 is the flow chart of one of the embodiment of the present invention two control method, and the present embodiment is using above-described embodiment as basePlinth optimizes, and in the present embodiment, obtains in described image information in the corresponding target image letter of dormant userBreath includes: the posture according at least one user of described image acquisition of information;Judged according to the posture of at least one userWhether at least one described user is in sleep state;The corresponding target image of dormant user is in if so, obtainingInformation.
As shown in Fig. 2, the method for the present embodiment specifically comprises the following steps:
S210 is obtained red in room locating for terminal device when detecting that terminal device is provided with sleep reminding alarm clockThe image information of outer camera acquisition.
S220, according to the posture of at least one user of image information acquisition.
Wherein, at least one described user is the user in the room locating for the terminal device, that is, is believed according to imageCease at least one determining user.
Specifically, according to the posture of at least one user of image information acquisition, such as can be, according to image information acquisitionCharacter image information determines at least one user and the corresponding posture of at least one user according to character image information.
S230 judges whether at least one user is in sleep state according to the posture of at least one user;If so, holdingRow S240, if it is not, then executing S250.
Specifically, judging whether at least one user is in sleep state according to the posture of at least one user, such as canTo be, judge whether the posture of at least one user is the corresponding posture of sleep state according to the posture of at least one user, intoAnd judge whether at least one user is in sleep state.
S240 is obtained and is in the corresponding target image information of dormant user.
S250 is done nothing.
S260 matches target image information pre-set image information corresponding with target user.
S270 controls sleep reminding alarm clock and closes if successful match.
Optionally, further includes:
If non-successful match, the corresponding sleep prompting message of sleep reminding alarm clock is obtained;
The sleep prompting message is sent to the corresponding intelligent wearable device of the target user, so that the intelligence is wornIt wears equipment and carries out sleep prompting.
Specifically, non-successful match then illustrates that the owner of terminal device is not in sleep state, then obtains sleep and mentionPrompting message is sent to Intelligent bracelet, the smartwatch, intelligent jewelry of target user by the awake corresponding sleep prompting message of alarm clockAt least one of in mentioned so that at least one of the Intelligent bracelet of target user, smartwatch, intelligent jewelry carry out sleepIt wakes up.
It should be noted that the sleep prompting message is sent to the corresponding intelligent wearable device of the target userBefore, it is also necessary to judge the wearing state of intelligent wearable device, if intelligent wearable device is in wearing state, and be in and use shapeThe sleep prompting message is then sent to the corresponding intelligent wearable device of the target user by state.
Optionally, the intelligent wearable device includes: at least one of Intelligent bracelet, smartwatch, intelligent jewelry.
In a specific example, image information is acquired by the infrared camera in room, and then believe according to imageIt ceases whether the people in confirmation room is in sleep state, and obtains and be in the corresponding head portrait of dormant people, judgement, which is in, sleepsThe people of dormancy state is the owner of terminal device, if owner does not sleep, but other people sleep, then information is pushed toOn the mobile phone of owner, wrist-watch or TV, the current behavior of the owner of terminal device is detected, is pushed in relevant equipment.It is logicalThe camera of family and the position of infrared camera confirmation people are crossed, specific people is reminded, it is ensured that receive prompting messageWhile, and other people will not be bothered.
The technical solution of the present embodiment, by when detecting that terminal device is provided with sleep reminding alarm clock, described in acquisitionThe image information of infrared camera acquisition in room locating for terminal device;It obtains in described image information in dormantThe corresponding target image information of user;By target image information pre-set image information progress corresponding with target userMatch;If successful match, controls the sleep reminding alarm clock and close, can be realized when user is in sleep state, it is automatic to closeThe related reminding alarm clock with sleep is closed, the usage experience of user is promoted.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for control device that the embodiment of the present invention three provides.The present embodiment is applicable to controlThe case where processed, the mode which can be used software and/or hardware realize that the device can be integrated in any function of providing and controlEquipment in, as shown in figure 3, the control device specifically includes: first obtain module 310, second obtain module 320, matchingModule 330 and control module 340.
Wherein, first module 310 is obtained, for obtaining institute when detecting that terminal device is provided with sleep reminding alarm clockState the image information of the infrared camera acquisition in room locating for terminal device;
Second obtains module 320, for obtaining in described image information in the corresponding target figure of dormant userAs information;
Matching module 330 is used for target image information pre-set image information progress corresponding with target userMatch;
Control module 340 controls the sleep reminding alarm clock and closes if being used for successful match.
Optionally, the second acquisition module is specifically used for:
According to the posture of at least one user of described image acquisition of information;
Judge whether at least one described user is in sleep state according to the posture of at least one user;
The corresponding target image information of dormant user is in if so, obtaining.
Optionally, further includes:
Third obtains module, if being used for non-successful match, obtains the corresponding sleep prompting message of sleep reminding alarm clock;
Reminding module, for the sleep prompting message to be sent to the corresponding intelligent wearable device of the target user,So that the intelligent wearable device carries out sleep prompting.
Optionally, the intelligent wearable device includes: at least one of Intelligent bracelet, smartwatch, intelligent jewelry.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution methodAnd beneficial effect.
The technical solution of the present embodiment, by when detecting that terminal device is provided with sleep reminding alarm clock, described in acquisitionThe image information of infrared camera acquisition in room locating for terminal device;It obtains in described image information in dormantThe corresponding target image information of user;By target image information pre-set image information progress corresponding with target userMatch;If successful match, controls the sleep reminding alarm clock and close, can be realized when user is in sleep state, it is automatic to closeThe related reminding alarm clock with sleep is closed, the usage experience of user is promoted.
Example IV
Fig. 4 is the structural schematic diagram of one of the embodiment of the present invention four computer equipment.Fig. 4, which is shown, to be suitable for being used in factThe block diagram of the exemplary computer device 12 of existing embodiment of the present invention.The computer equipment 12 that Fig. 4 is shown is only one and showsExample, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 4, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be withIncluding but not limited to: one or more processor or processing unit 16, system storage 28 connect different system componentsThe bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It liftsFor example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be byThe usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary accessMemory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can notMobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing notMovably, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").It although not shown in fig 4, can be withThe disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to movingThe CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each drivingDevice can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program producesProduct, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention eachThe function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programsIt may include the realization of network environment in module and program data, each of these examples or certain combination.Program mouldBlock 42 usually executes function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with makeThe computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other calculating equipmentAdjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.In addition, the calculating in the present embodimentMachine equipment 12, display 24 exist not as independent individual, but are embedded in mirror surface, not aobvious in the display surface of display 24When showing, the display surface of display 24 visually combines together with mirror surface.Also, computer equipment 12 can also be suitable by networkOrchestration 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet)Communication.As shown, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.It should be understood that the greatest extentPipe is not shown in the figure, and other hardware and/or software module can be used in conjunction with computer equipment 12, including but not limited to: micro- generationCode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are depositedStorage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application andData processing, such as realize control method provided by the embodiment of the present invention: it is reminded in detecting that terminal device is provided with to sleepWhen alarm clock, the image information of the infrared camera acquisition in room locating for the terminal device is obtained;Obtain described image informationIn be in the corresponding target image information of dormant user;The target image information is corresponding with target user defaultImage information is matched;If successful match, controls the sleep reminding alarm clock and close.
Embodiment five
The embodiment of the present invention five provides a kind of computer readable storage medium, is stored thereon with computer program, the journeyThe control method provided such as all inventive embodiments of the application is realized when sequence is executed by processor: in detecting that terminal device is arrangedWhen having sleep reminding alarm clock, the image information of the infrared camera acquisition in room locating for the terminal device is obtained;Obtain instituteIt states in image information in the corresponding target image information of dormant user;By the target image information and target userCorresponding pre-set image information is matched;If successful match, controls the sleep reminding alarm clock and close.
It can be using any combination of one or more computer-readable media.Computer-readable medium can be calculatingMachine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimitedIn system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculatesThe more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes: electrical connection with one or more conducting wires, justTaking formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storageDevice (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,Or above-mentioned any appropriate combination.In this document, computer readable storage medium can be it is any include or storage journeyThe tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- butIt is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also beAny computer-readable medium other than computer readable storage medium, which can send, propagate orTransmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimitedIn --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereofProgram code, described program design language include object oriented program language-such as Java, Smalltalk, C++,It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be withIt fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portionDivide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) orWide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet serviceIt is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art thatThe invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present inventionIt is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, alsoIt may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.