CN110658727A - Equipment control method and device based on operating system - Google Patents
Equipment control method and device based on operating system Download PDFInfo
- Publication number
- CN110658727A CN110658727A CN201910947200.0A CN201910947200A CN110658727A CN 110658727 A CN110658727 A CN 110658727A CN 201910947200 A CN201910947200 A CN 201910947200A CN 110658727 A CN110658727 A CN 110658727A
- Authority
- CN
- China
- Prior art keywords
- target object
- behavior
- target
- control
- change data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000008859 change Effects 0.000 claims abstract description 69
- 238000012544 monitoring process Methods 0.000 claims abstract description 14
- 230000004044 response Effects 0.000 claims abstract description 7
- 230000006399 behavior Effects 0.000 claims description 137
- 238000004590 computer program Methods 0.000 claims description 18
- 238000005516 engineering process Methods 0.000 abstract description 10
- 230000009471 action Effects 0.000 description 14
- 230000006870 function Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000033001 locomotion Effects 0.000 description 5
- 230000036544 posture Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000006698 induction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000000474 nursing effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000005452 bending Methods 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000002329 infrared spectrum Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
- G05B19/4183—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by data acquisition, e.g. workpiece identification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/20—Movements or behaviour, e.g. gesture recognition
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/178—Human faces, e.g. facial parts, sketches or expressions estimating age from face image; using age information for improving recognition
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Automation & Control Theory (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Manufacturing & Machinery (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Psychiatry (AREA)
- Social Psychology (AREA)
- Selective Calling Equipment (AREA)
- Safety Devices In Control Systems (AREA)
Abstract
The invention provides a power supply equipment control method and a power supply equipment control device based on an operating system, wherein the method comprises the following steps: monitoring the behavior of a target object to acquire behavior change data of the target object; determining location information of the target object based on the behavior change data; when the target object is within the first preset range of the target device, the control key of the target device is controlled to refuse response control operation, the problem that the power supply device has great potential safety hazard due to unpredictable behavior of a special group in the related technology can be solved, the switches of all the power supply devices near the user position are controlled in time according to the behavior change of the user, the safety of the user is guaranteed, and the user experience degree is improved.
Description
Technical Field
The invention relates to the field of intelligent household appliances, in particular to an equipment control method and device based on an operating system.
Background
At present, for household appliances, sockets and other power utilization or conversion equipment, it is common to manually control the on-off of a power supply, and especially for household sockets (power strip, converter), the management of power output is realized by setting a switch module, and a user can switch the on-off state of the equipment through a key of the switch module, or switch the on-off state of a switch through voice or bluetooth/Wi-Fi wireless control. However, with the current method, control and management of the switching behavior frequently operated by the user cannot be realized. Users include different roles for each household, and for children and other users who lack safety awareness, it is very dangerous to try to touch various electrical devices and sockets, when the family is not at home or away from home.
The intelligent home is characterized in that a home is used as a platform, facilities related to furniture life are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and an audio and video technology, an efficient management system of home facilities and family schedule affairs is constructed, home safety, convenience, comfortableness and artistry are improved, and an environment-friendly and energy-saving living environment is realized. The intelligent home connects various devices (such as audio and video devices, lighting systems, curtain control, air conditioner control, digital cinema systems, security systems and the like) in the home through the Internet of things technology, and provides multiple functions and means such as household appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment regulation and control and the like.
For example, a user uses a mobile phone terminal to remotely control the power supply usage management of home equipment, or the user directly inputs a specific instruction through voice to control the power supply, the user sets different control instructions in the smart home system in advance, and after receiving the corresponding instruction, the system analyzes the instruction and executes the corresponding operation.
The problem in the prior art is that for household power supply equipment controlled by a traditional switch, a voice instruction or a mobile phone terminal remotely, a child uses a parent mobile phone privately to perform error operation, or performs abnormal switching operation on household electrical appliances frequently, so that the electrical appliances are damaged or circuits are abnormal due to frequent power on/off of the electrical appliances. Meanwhile, the behaviors of children at home are unpredictable, the change frequency of the behaviors is very high, and the children can watch television seriously in the previous second and run to the socket switch to press the switch in the next second, so that great potential safety hazards exist.
Aiming at the problem that power supply equipment has great potential safety hazard due to unpredictable behavior of special groups in the related technology, no solution is provided.
Disclosure of Invention
The embodiment of the invention provides an equipment control method and device based on an operating system, which are used for at least solving the problem that power supply equipment has great potential safety hazard due to unpredictable behavior of special groups in the related art.
According to an embodiment of the present invention, there is provided an operating system-based device control method including:
monitoring the behavior of a target object to acquire behavior change data of the target object;
determining location information of the target object based on the behavior change data;
and when the target object is within a first preset range of the target equipment, controlling a control key of the target equipment to refuse to respond to the control operation.
Optionally, the monitoring the behavior of the target object to obtain the behavior change data of the target object includes:
acquiring video data containing the target object through one or more cameras;
and acquiring behavior change data of the target object with the change of the body state in a preset time period from the video data.
Optionally, the method comprises:
carrying out face recognition on the video data to obtain face features;
and matching the face features with face features stored in advance so as to identify the target object.
Optionally, determining the position information of the target object based on the behavior change data includes:
determining the predicted behavior of the target object according to the behavior change data;
and acquiring the position information of the target object under the condition that the predicted behavior meets a preset condition.
Optionally, determining the predicted behavior of the target object according to the behavior change data includes:
judging whether the behavior change data indicate that the distance between the target object and the preset equipment is changed from a first distance to a second distance, wherein the first distance is greater than the second distance;
if the judgment result is yes, determining that the predicted behavior of the target object is a positive trend behavior;
and under the condition that the judgment result is negative, determining that the predicted behavior of the target object is negative trend behavior.
Optionally, after determining the position information of the target object based on the behavior change data, the method further includes:
determining the target device within a second predetermined range of the location information.
Optionally, when the target object is within a first predetermined range of a target device, the control key controlling the target device to reject the response control operation includes:
controlling to start an infrared sensor arranged on the target equipment;
determining, by the infrared sensor, that the target object is within a first predetermined range of the target device;
and controlling a control key of the target equipment to refuse to respond to the control operation.
Optionally, the control key for controlling the target device to reject the response control operation includes:
and sending a control instruction to the target device, wherein the control instruction is used for instructing the target device to refuse to respond to the operation control when the operation control is received.
According to still another embodiment of the present invention, there is also provided an operating system-based device control apparatus including:
the acquisition module is used for monitoring the behavior of a target object so as to acquire the behavior change data of the target object;
a first determination module, configured to determine location information of the target object based on the behavior change data;
and the control module is used for controlling a control key of the target equipment to refuse to respond to the control operation when the target object is in a first preset range of the target equipment.
Optionally, the obtaining module includes:
the acquisition submodule is used for acquiring video data containing the target object through one or more cameras;
the first obtaining sub-module is used for obtaining behavior change data of the target object, of which the body state changes in a preset time period, from the video data.
Optionally, the apparatus comprises:
the recognition submodule is used for carrying out face recognition on the video data to obtain face features;
and the first determining submodule is used for matching the face features with the face features stored in advance so as to identify the target object.
Optionally, the first determining module includes:
the second determining submodule is used for determining the predicted behavior of the target object according to the behavior change data;
and the second obtaining submodule is used for obtaining the position information of the target object under the condition that the predicted behavior meets a preset condition.
Optionally, the second determining sub-module includes:
a judging unit, configured to judge whether the behavior change data indicates that a distance between the target object and a predetermined device changes from a first distance to a second distance, where the first distance is greater than the second distance;
a first determination unit configured to determine that the predicted behavior of the target object is a positive trend behavior if the determination result is yes;
and the second determination unit is used for determining that the predicted behavior of the target object is negative trend behavior under the condition that the judgment result is negative.
Optionally, the apparatus further comprises:
a second determining module for determining the target device within a second predetermined range of the location information.
Optionally, the control module comprises:
the first control submodule is used for controlling to start an infrared sensor arranged on the target equipment;
a third determining submodule for determining that the target object is within a first predetermined range of the target device through the infrared sensor;
and the second control submodule is used for controlling the control key of the target equipment to refuse to respond to the control operation.
Optionally, the control module is further used for
And sending a control instruction to the target device, wherein the control instruction is used for instructing the target device to refuse to respond to the operation control when the operation control is received.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the behavior of the target object is monitored to obtain the behavior change data of the target object; determining location information of the target object based on the behavior change data; when the target object is within the first preset range of the target device, the control key of the target device is controlled to refuse response control operation, the problem that the power supply device has great potential safety hazard due to unpredictable behavior of a special group in the related technology can be solved, the switches of all the power supply devices near the user position are controlled in time according to the behavior change of the user, the safety of the user is guaranteed, and the user experience degree is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to an operating system-based device control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for operating system based device control according to an embodiment of the present invention;
fig. 3 is a flowchart of power supply apparatus control according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating home wiring in the smart home operating system according to an embodiment of the present invention;
fig. 5 is a block diagram of an operating system based device control apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of an operating system-based device control method according to an embodiment of the present invention, and as shown in fig. 1, a mobile terminal 10 may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the message receiving method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio FrequeNcy (RF) module, which is used to communicate with the internet in a wireless manner.
Based on the above architecture, in this embodiment, an operating system-based device control method is provided, and fig. 2 is a flowchart of an operating system-based device control method according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, monitoring the behavior of a target object to acquire behavior change data of the target object;
the step S202 may specifically include: acquiring video data containing the target object through one or more cameras; and acquiring behavior change data of the target object with the change of the body state in a preset time period from the video data.
Further, performing face recognition on the video data acquired by the one or more cameras to obtain face features; and under the condition that the human face features are matched with the pre-stored human face features of the target object, the identity of the target object is identified, and behavior change data of the target object with the changed body state in a preset time period are obtained.
Step S204, determining the position information of the target object based on the behavior change data;
the step S204 may specifically include: determining the predicted behavior of the target object according to the behavior change data; and acquiring the position information of the target object under the condition that the predicted behavior meets a preset condition.
Further, the predicted behavior of the target object may be determined from the behavior change data by: judging whether the behavior change data indicate that the distance between the target object and a preset household appliance is changed from a first distance to a second distance, wherein the first distance is greater than the second distance, and the preset household appliance is a household appliance within a first preset range from a power supply device; if the judgment result is yes, determining that the predicted behavior of the target object is a positive trend behavior; and under the condition that the judgment result is negative, determining that the predicted behavior of the target object is negative trend behavior.
By pre-judging the user behavior, the behavior trend of the user is obtained, and the power supply equipment needing to be controlled is determined by combining the activity position of the user, so that the control scheme of the power supply equipment according to the user behavior is realized.
Specifically, when the predicted behavior is a positive trend behavior, the position information of the target object is acquired, where the position information includes a room identifier, and a lateral distance and a longitudinal distance from a predetermined coordinate position in the room identifier.
In the embodiment of the present invention, after the position of the target object is determined, the target device may be determined according to the position of the target object, the power supply device within the second predetermined range of the position information is determined to be the target device, then a control instruction may be sent to the target device, the infrared sensor provided on the target device is controlled to be turned on by the control instruction, and when the target object enters the sensing range of the infrared sensor, the target object is determined to be within a first preset range of the target device, where the first preset range in the embodiment of the present invention is smaller than the second preset range.
Furthermore, the power supply equipment is provided with an infrared monitoring module, corresponding information of the power supply equipment needing to be controlled is determined through user behavior to start the extracted infrared sensing function of the power supply equipment, and then the operation effectiveness of the power supply equipment on/off is accurately controlled through detecting the information close to the human body. The variability and unpredictable performance of user behaviors are fully considered.
The opening time of the infrared sensor can be determined according to the current position and the action speed of the user, and unreasonable effect caused by too long or too short opening time can be avoided.
Step S206, when the target object is in a first preset range of target equipment, controlling a control key of the target equipment to refuse to respond to control operation, wherein the target equipment is power supply equipment in a second preset range of the position information.
Through the steps S202 to S206, the behavior of the target object is monitored to obtain the behavior change data of the target object; determining location information of the target object based on the behavior change data; when the target object is in a first preset range of target equipment, the control key of the target equipment is controlled to refuse response control operation, wherein the target equipment is power supply equipment in a second preset range of the position information, the problem that the power supply equipment has great potential safety hazard due to unpredictable behavior of a special group in the related technology can be solved, the switches of all the power supply equipment near the position of the user are controlled in time according to behavior change of the user, safety of the user is guaranteed, and user experience is improved.
In an optional embodiment, the step S206 may specifically include:
controlling to start an infrared sensor arranged on the target equipment;
judging whether the target object enters the sensing range of the infrared sensor or not;
if the judgment result is yes, determining that the target object is in a first preset range of the target device;
and controlling a control key of the target equipment to refuse to respond to the control operation.
In another optional embodiment, the step S206 may further include:
and sending a control instruction to the target device, wherein the control instruction is used for instructing the target device to refuse to respond to the operation control when the operation control is received.
In the embodiment of the present invention, there are various ways to control turning off the target power supply device, and in an optional embodiment, an infrared sensor disposed on the target power supply device is controlled to be turned on; judging whether the target object enters the sensing range of the infrared sensor or not; and controlling to close the target power supply equipment under the condition that the judgment result is yes.
In another optional embodiment, a control instruction for turning off a switch of the target power supply for controlling power on and off is sent to the target power supply device, where the control instruction is used to instruct the target power supply device to turn off the switch.
According to the embodiment of the invention, the switches of all power supply equipment near the user position can be controlled in time according to the behavior change of the user, the safety of the user is ensured, more accurate control can be realized in an infrared induction mode, and the reduction of the service life of electrical equipment caused by high-frequency power supply switching is avoided. The scheme provides a very ideal scheme for household power consumption safety protection, and convenience and operability are provided for household nursing of children. Fig. 3 is a flowchart of the control of the power supply apparatus according to the embodiment of the present invention, as shown in fig. 3, mainly including the following steps:
s301, collecting image information of a user and acquiring behavior data of the user;
through one or more camera devices in the smart home system, the action condition of the user in the home is monitored and shot in real time, and the image data is uploaded to the cloud control platform.
In a set time, the cloud control platform acquires image data of a user, and when the user is determined to belong to an adult or a child through face recognition, the image data containing user actions in the period of time is extracted to form behavior data of the user, wherein the user actions can include all body behaviors which can represent changes of body states of the user, such as changes of body postures, body positions and body part positions of the user.
For example, after step S301 is executed, the system acquires the image data of the user 3 within the last 15 minutes (10: 00-10: 15), determines that the actions of the user 3 occur respectively (10:05, 10:10, 10:11, 10:12, 10:14), and extracts the corresponding image data of the user 3 at these times to form the behavior data of the user.
Step S302, analyzing the action change of the main body part and predicting the user behavior;
the motion change of the main part of the user is analyzed with respect to the user behavior data acquired in step S301, for example, the motion change of the main part of the user is obtained by analyzing the image data of the user 3 at the time (10:05, 10:10, 10:11, 10:12, 10:14) based on the execution result of step S301, and the user behavior can be predicted and judged based on the series of motion changes. According to the change of the body actions (such as the outward extending action of hands, the left and right feet off the ground and the like) of the main parts of the user, the user behavior can be uniquely determined.
Specifically, the step of analyzing the change of the body action of the user comprises the following steps:
1) extracting image data which can represent that the body state is remarkably changed in the user behavior data to obtain action change data;
the body state changes significantly, which means that the change range of the limbs of the user is greater than a certain set threshold, for example, the arm of the user changes from the first posture to the second posture, the arm angle between the two postures is greater than 30 degrees, and the displacement of the whole trunk of the user is greater than 1 m.
2) Analyzing the action change data, comparing the sequence difference of the actions of the same limb part, and outputting a pre-judgment result of the user behavior.
For example, analyzing the motion change data to obtain the sequential differences of the same limb: the ' body changes from ' sitting on a sofa, being immobile ' into ' rising, facing to the refrigerator and moving '; or "the leg changes from 'bending' to 'the two legs regularly forward transform lifting'," etc. From this difference, the likely behavior of the user can be predicted: the user has a tendency to approach/move away from the refrigerator.
In the scheme, the analysis result of the behavior data of the user can be specifically divided into a positive trend behavior and a negative trend behavior so as to represent different behavior trends of the user. When the analysis result is a positive trend behavior, the next step S303 is required, and when the analysis result is a negative trend behavior, the operation is not required. It should be noted that the positive and negative behaviors are relatively determined, the positive trend behavior refers to the possibility that the user may operate the power switch of the target device, and the negative trend behavior refers to the possibility that the change of the action does not cause the user to operate the target power device.
In the above example, the change of the physical state of the user from 'sitting on the sofa without movement' to 'getting up to the refrigerator' indicates that the user may operate the target power supply device, i.e. the positive trend behavior; the change from 'going to the refrigerator' to 'far away from the refrigerator' indicates that the user does not operate the power supply device of the refrigerator, i.e., the negative trend behavior. Therefore, the judgment of each action change is determined based on the target equipment in the current environment according to the intelligent household equipment existing in the family as the judgment basis. The output of the analysis result is determined according to the target device. In the system, the preset target devices are used as analysis targets, the result of the user behavior can be judged in advance, the behavior trend result of the user is obtained, the behavior intention of the user can be predicted, the intention possibly having safety risks can be judged in advance and intervened, and an effective prevention effect is achieved.
The pre-judging result can be specifically a positive trend behavior and a negative trend behavior, if the pre-judging result is the positive trend behavior, the next step is executed, and if the pre-judging result is the negative trend behavior, the process is ended.
Step S303, acquiring position information of a user (child) to determine power supply equipment (socket/power strip) in a specific range around the position;
according to the output result in step S302, if the result is a positive trend, the smart home operating system obtains the current location information of the user, which may be set in the format of (H, x, y), where H is the room name, x is the x-direction distance from the set coordinate origin (e.g., the coordinate origin at the entrance/exit of each room), and y is the y-direction distance from the set coordinate origin, for example, (living room, 2 meters, 1 meter). When the user position information is obtained, the time when the user is located at the current position can be recorded at the same time.
According to the user position information acquired in real time, searching for the power supply equipment around the position, wherein the specific search range can be determined in the following manner: and searching power supply equipment in a set path length range by taking the obtained current position of the user as a search origin, wherein the path length can be set to different values according to the difference of the room sizes and the arrangement density of the sockets.
For example, for a living room and a kitchen, the room and the kitchen should be a space with centralized power supply equipment arrangement, a television power supply switch, a water dispenser power supply switch, an air conditioner power supply switch and the like are usually arranged in the living room, and the switches may be distributed at different direction positions, so that the living room space is relatively large (the living room is 20-30 m2), and the search path length can be set to be 2 m; in the kitchen, because the electric appliances are concentrated, and because the use area is small, the length of the searching diameter can be set to be 1 m.
In the smart home operating system, the power supply devices (sockets) are managed by wiring, and main relevant information of all sockets, such as socket numbers, models, negative electricity intensities, position information of the sockets in a room floor plan coordinate system of a room where the sockets are located, and the like, is stored. According to the obtained real-time position of the user, the system can quickly match socket information in a position range.
For the result of the lookup, there may be two cases:
there are 1 or more outlet devices;
the absence of a socket device;
when the result is 1), extracting the information data of the corresponding power supply device and performing monitoring operation on the information data, namely executing the step S304;
when the result is 2), it can be determined that the current position where the user is located is a safe area, and the monitoring operation may not be performed.
Fig. 4 is a schematic diagram of home wiring in the smart home operating system according to the embodiment of the invention, as shown in fig. 4, a power bus is reasonably distributed to different outlet outputs of different rooms, and each branch line is independently controlled, so that flexible control over smart home devices can be conveniently realized.
And step S304, starting the infrared sensing function of the power supply equipment determined in the step S303, and controlling to close the switch control of the determined power supply equipment according to the sensing result of the infrared sensor.
In the scheme, wisdom family operating system has all set up the infrared sensing function to all power supply unit, can be close to near accurate monitoring power supply unit whether the human body is close to through infrared sensing, when the user is close to power supply unit (get into induction range), the infrared sensor can detect the change of the infrared spectrum that arouses by the human body, when detecting that power supply unit department has the user to be close to, can generate and close the on-off control to this power supply unit's power break-make.
Through the operation of step S303, it can be known whether there is a power supply device in the setting area of the current location of the user, and when it is determined that there are 1 or more power supply devices, information of the corresponding power supply devices is extracted.
In step S304, after the device information is acquired, the smart home operating system controls to turn on the infrared sensing function of the power devices. The power supply equipment with the infrared sensing function is started, whether a human body exists can be monitored in real time, if the human body is sensed, the infrared sensor can transmit signals to the smart home operating system, and the system can send and close a control instruction of a switch on the power supply equipment for controlling the on-off of the power supply after receiving the sensing signals, so that the control of the output of the power supply is quickly blocked. And if the infrared sensor does not sense the human body information, the switch on the power supply equipment is not closed to control the power supply of the power supply equipment.
Furthermore, in order to ensure normal use of the household appliance, the opening time of the infrared sensor can be set, so that the phenomenon that the use of a user is influenced due to the fact that misjudgment is caused when other users in a house normally use power supply equipment such as adults can be avoided.
By the embodiment of the invention, the problem of family nursing of children can be effectively solved, the power supply is controlled in real time according to the behaviors of the children, and the danger of electricity utilization of the children is avoided. The parents only need open the nurse mode when children's nurse is inconvenient, and wisdom family operating system just can realize automatic management and control to power equipment to guarantee children's safety.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, an apparatus control device based on an operating system is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of which has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of an operating system-based device control apparatus according to an embodiment of the present invention, as shown in fig. 5, including:
an obtaining module 52, configured to monitor a behavior of a target object to obtain behavior change data of the target object;
a first determining module 54, configured to determine location information of the target object based on the behavior change data;
and the control module 56 is used for controlling a control key of the target device to refuse to respond to the control operation when the target object is within a first preset range of the target device.
Optionally, the obtaining module 52 includes:
the acquisition submodule is used for acquiring video data containing the target object through one or more cameras;
the first obtaining sub-module is used for obtaining behavior change data of the target object, of which the body state changes in a preset time period, from the video data.
Optionally, the apparatus comprises:
the recognition submodule is used for carrying out face recognition on the video data to obtain face features;
and the first determining submodule is used for matching the face features with the face features stored in advance so as to identify the target object.
Optionally, the first determining module 54 includes:
the second determining submodule is used for determining the predicted behavior of the target object according to the behavior change data;
and the second obtaining submodule is used for obtaining the position information of the target object under the condition that the predicted behavior meets a preset condition.
Optionally, the second determining sub-module includes:
a judging unit, configured to judge whether the behavior change data indicates that a distance between the target object and a predetermined device changes from a first distance to a second distance, where the first distance is greater than the second distance;
a first determination unit configured to determine that the predicted behavior of the target object is a positive trend behavior if the determination result is yes;
and the second determination unit is used for determining that the predicted behavior of the target object is negative trend behavior under the condition that the judgment result is negative.
Optionally, the apparatus further comprises:
a second determining module for determining the target device within a second predetermined range of the location information.
Optionally, the control module 56 includes:
the first control submodule is used for controlling to start an infrared sensor arranged on the target equipment;
a third determining submodule, configured to determine that the target object is within a first predetermined range of the target device according to the infrared sensor;
and the second control submodule is used for controlling the control key of the target equipment to refuse to respond to the control operation.
Optionally, the control module 56 is further configured to
And sending a control instruction to the target device, wherein the control instruction is used for instructing the target device to refuse to respond to the operation control when the operation control is received.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s11, monitoring the behavior of the target object to acquire the behavior change data of the target object;
s12, determining the position information of the target object based on the behavior change data;
and S13, when the target object is in the first preset range of the target device, controlling the control key of the target device to refuse to respond to the control operation.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a RaNdom Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store computer programs.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s11, monitoring the behavior of the target object to acquire the behavior change data of the target object;
s12, determining the position information of the target object based on the behavior change data;
and S13, when the target object is in the first preset range of the target device, controlling the control key of the target device to refuse to respond to the control operation.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (11)
1. An operating system-based device control method, comprising:
monitoring the behavior of a target object to acquire behavior change data of the target object;
determining location information of the target object based on the behavior change data;
and when the target object is within a first preset range of the target equipment, controlling a control key of the target equipment to refuse to respond to the control operation.
2. The method of claim 1, wherein monitoring the behavior of the target object to obtain behavior change data of the target object comprises:
acquiring video data containing the target object through one or more cameras;
and acquiring behavior change data of the target object with the change of the body state in a preset time period from the video data.
3. The method of claim 2, wherein the method comprises:
carrying out face recognition on the video data to obtain face features;
and matching the face features with face features stored in advance so as to identify the target object.
4. The method of claim 1, wherein determining the location information of the target object based on the behavior change data comprises:
determining the predicted behavior of the target object according to the behavior change data;
and acquiring the position information of the target object under the condition that the predicted behavior meets a preset condition.
5. The method of claim 4, wherein determining the predicted behavior of the target object from the behavior change data comprises:
judging whether the behavior change data indicate that the distance between the target object and the preset equipment is changed from a first distance to a second distance, wherein the first distance is greater than the second distance;
if the judgment result is yes, determining that the predicted behavior of the target object is a positive trend behavior;
and under the condition that the judgment result is negative, determining that the predicted behavior of the target object is negative trend behavior.
6. The method of claim 1, wherein after determining the location information of the target object based on the behavior change data, the method further comprises:
determining the target device within a second predetermined range of the location information.
7. The method according to any one of claims 1 to 6, wherein when the target object is within a first predetermined range of the target device, the control key controlling the target device to reject a response control operation comprises:
controlling to start an infrared sensor arranged on the target equipment;
determining, by the infrared sensor, that the target object is within a first predetermined range of the target device;
and controlling a control key of the target equipment to refuse to respond to the control operation.
8. The method according to any one of claims 1 to 6, wherein controlling a control key rejection response control operation of the target device comprises:
and sending a control instruction to the target device, wherein the control instruction is used for instructing the target device to refuse to respond to the operation control when the operation control is received.
9. An operating system-based device control apparatus, comprising:
the acquisition module is used for monitoring the behavior of a target object so as to acquire the behavior change data of the target object;
a first determination module, configured to determine location information of the target object based on the behavior change data;
and the control module is used for controlling a control key of the target equipment to refuse to respond to the control operation when the target object is in a first preset range of the target equipment.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 8 when executed.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910947200.0A CN110658727B (en) | 2019-09-30 | 2019-09-30 | Equipment control method and device based on operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910947200.0A CN110658727B (en) | 2019-09-30 | 2019-09-30 | Equipment control method and device based on operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110658727A true CN110658727A (en) | 2020-01-07 |
CN110658727B CN110658727B (en) | 2022-09-06 |
Family
ID=69038548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910947200.0A Active CN110658727B (en) | 2019-09-30 | 2019-09-30 | Equipment control method and device based on operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110658727B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113495490A (en) * | 2020-04-07 | 2021-10-12 | 深圳爱根斯通科技有限公司 | Device control method, device, electronic device and storage medium |
CN113932419A (en) * | 2020-06-29 | 2022-01-14 | 广东美的制冷设备有限公司 | Control method and device of air conditioner and air conditioner |
CN114434200A (en) * | 2021-12-27 | 2022-05-06 | 重庆长安新能源汽车科技有限公司 | High-safety-risk mechanical equipment safety protection method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105839353A (en) * | 2016-04-29 | 2016-08-10 | 海信(山东)冰箱有限公司 | Washing machine control method and washing machine |
CN106401301A (en) * | 2016-08-29 | 2017-02-15 | 珠海格力电器股份有限公司 | Child lock control method and device for household appliance and household appliance |
CN109901539A (en) * | 2019-03-27 | 2019-06-18 | 辽东学院 | A kind of man-machine interactive system and its control method applied to smart home |
CN110245480A (en) * | 2019-05-06 | 2019-09-17 | 特斯联(北京)科技有限公司 | A kind of wired home personnel management methods and system based on recognition of face |
-
2019
- 2019-09-30 CN CN201910947200.0A patent/CN110658727B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105839353A (en) * | 2016-04-29 | 2016-08-10 | 海信(山东)冰箱有限公司 | Washing machine control method and washing machine |
CN106401301A (en) * | 2016-08-29 | 2017-02-15 | 珠海格力电器股份有限公司 | Child lock control method and device for household appliance and household appliance |
CN109901539A (en) * | 2019-03-27 | 2019-06-18 | 辽东学院 | A kind of man-machine interactive system and its control method applied to smart home |
CN110245480A (en) * | 2019-05-06 | 2019-09-17 | 特斯联(北京)科技有限公司 | A kind of wired home personnel management methods and system based on recognition of face |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113495490A (en) * | 2020-04-07 | 2021-10-12 | 深圳爱根斯通科技有限公司 | Device control method, device, electronic device and storage medium |
CN113932419A (en) * | 2020-06-29 | 2022-01-14 | 广东美的制冷设备有限公司 | Control method and device of air conditioner and air conditioner |
CN113932419B (en) * | 2020-06-29 | 2023-03-24 | 广东美的制冷设备有限公司 | Control method and device of air conditioner and air conditioner |
CN114434200A (en) * | 2021-12-27 | 2022-05-06 | 重庆长安新能源汽车科技有限公司 | High-safety-risk mechanical equipment safety protection method and system |
Also Published As
Publication number | Publication date |
---|---|
CN110658727B (en) | 2022-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110658727B (en) | Equipment control method and device based on operating system | |
US9892605B2 (en) | Method, apparatus, and system for controlling smart home environment using LED lighting device | |
CN105005291B (en) | A kind of intelligent home furnishing control method, control device and control system | |
CN103529778A (en) | Smart home control method, device and system | |
CN105137781A (en) | Triggering method and system for smart home mode | |
CN104135408A (en) | System for intelligent home wireless control and method using the system | |
CN108174501B (en) | Scene linkage control intelligent wall switch | |
CN204028661U (en) | Based on the Intelligent home monitoring system of cloud computing | |
Zhang et al. | Design of smart home control system based on Cortex-A8 and ZigBee | |
CN105527848A (en) | Communication apparatus and method of controlling the same | |
CN104914730A (en) | Novel intelligent household operation interface automatic switching control system and method | |
CN203872292U (en) | Wireless cloud monitor with infrared forwarding function | |
CN108429097A (en) | A kind of intelligent air condition socket | |
CN205429324U (en) | Supply socket automatic control system and intelligent supply socket based on infrared discernment | |
CN107817687A (en) | A kind of Split type intelligent house control system and control method | |
CN205450601U (en) | Intelligent home control system | |
CN208299149U (en) | A kind of intelligent air condition socket | |
CN107065655A (en) | A kind of intelligent multichannel on-off control system and control method based on Lora technologies | |
CN207969042U (en) | Scene coordinated signals Intelligent wall switch | |
CN105024236A (en) | Automatic code matching intelligent socket and automatic code matching method thereof | |
CN105159356A (en) | Smart equipment control method and device | |
CN107479392A (en) | A kind of intelligent domestic system based on Zigbee controlled in wireless | |
CN208172531U (en) | Household electrical appliances operation monitoring system based on Internet of Things | |
CN207440599U (en) | A kind of gesture recognition system based on ZigBee gateways | |
CN204795448U (en) | Take projection virtual keyboard's intelligent TV remote controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |