Control method and device of intelligent device, storage medium and electronic device
By integrating recognition functions and adjusting control instruction technology into smart devices, the problem of low security prevention and control efficiency of smart devices in smart homes is solved, achieving higher security and interactivity, and improving user experience.
Patent Information
- Application Number
- CN202210228992.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-03-08
AI Technical Summary
Smart devices have low security prevention and control efficiency in smart home scenarios and cannot effectively interact with users, leading to potential safety hazards.
By implementing recognition functions in smart devices, including face recognition, voice recognition, image recognition and infrared recognition, determine device control events and object behavior events in the target area, adjust usage rights according to the preset mutually exclusive event set, and send adjustment controls directive to improve security.
It improves the security prevention and control efficiency of smart devices, enhances the ability to interact with users, reduces security risks, and meets the security experience needs of smart homes.
Smart Images

Figure CN114697369B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a control method and device for an intelligent device, a storage medium, and an electronic device. Background Art
[0002] At present, with the advancement of science and technology and the development of artificial intelligence, intelligent algorithms are increasingly being applied to daily life. For example, in the field of home appliances, in order to meet the urgent needs of users, the intelligence of smart home appliances is constantly improved. In traditional smart home scenarios, in order to provide safety protection for home appliances, each smart device is usually separated, and each home appliance fulfills its own responsibilities such as monitoring the safety of the home appliance and independently bears the problem of safety in use. However, this solution is limited by the placement and functional areas of home appliances, and cannot interact with free-moving users in real time, nor can it meet the user's smart experience in the smart home scenario, and it will also bring safety risks.
[0003] In the related technology, there is a problem of low security control efficiency of smart devices.
[0004] Regarding the problem of low security control efficiency of smart devices in related technologies, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a control method and device for a smart device, a storage medium, and an electronic device to at least solve the problem of low security control efficiency of smart devices in the related art.
[0006] According to an embodiment of the embodiments of the present application, a method for controlling a smart device is provided, including: determining a device control event of a first smart device running in a target area; when a first object is detected to enter the target area, performing object recognition on the first object through an identification function of the first smart device to determine an object behavior event of the first object with respect to the first smart device; when it is determined that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, sending an adjustment control instruction corresponding to the object behavior event of the first object to the first smart device to adjust the first object's permission to use the first smart device.
[0007] Further, in an exemplary embodiment, when a second object operates a first smart device in the target area, object recognition is performed on the second object through the recognition function of the smart device in the target area to determine a device control event of the first smart device; the smart device includes: the first smart device.
[0008] Further, in an exemplary embodiment, object recognition is performed on the second object through the recognition function of the smart device in the target area to determine the device control event of the first smart device, including: performing object recognition on the second object through the recognition function of the smart device in the target area to obtain a first recognition result; wherein the recognition function includes at least one of the following: face recognition function, voice recognition function, image recognition function, infrared recognition function; determining the location information of the target area, the device identification of the first smart device, the operating status of the first smart device, and the identification information of the second object from the first recognition result; wherein the device control event includes at least: the location information of the target area, the device identification of the first smart device, the operating status of the first smart device, and the identification information of the second object.
[0009] Further, in an exemplary embodiment, object recognition is performed on the first object through the recognition function of the first smart device to determine the object behavior event of the first object with respect to the first smart device, including: performing object recognition on the first object through the recognition function of the smart device to obtain a second recognition result; wherein the recognition function includes at least one of the following: face recognition function, voice recognition function, image recognition function, infrared recognition function; determining the location information of the target area, the device identification of the first smart device, the current state of the first object, and the identification information of the first object from the second recognition result; wherein the object behavior event includes at least: the location information of the target area, the device identification of the first smart device, the current state of the first object, and the identification information of the first object.
[0010] Furthermore, in an exemplary embodiment, before determining that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, the method also includes: obtaining historical usage records of the smart device; determining historical object behavior events that are mutually exclusive with the device control event according to the historical usage records, and determining the preset mutually exclusive event set according to the device control event and the historical object behavior event; or, determining the mutually exclusive events set for the target object as the preset mutually exclusive event set, wherein the target object includes the second object.
[0011] Further, in an exemplary embodiment, determining whether the device control event and the object behavior event are mutually exclusive is performed based on a preset mutually exclusive event set, including: determining the age value of the first object and the operation authority of the first object based on the recognition result of the first object; when it is determined that the age value of the first object is less than a first threshold, determining that the device control event and the object behavior event are mutually exclusive; when it is determined that the age value of the first object is greater than the first threshold and less than a second threshold, determining the current operation type of the first object based on the recognition result of the first object; when it is determined that the operation authority of the first object is inconsistent with the preset operation type of the first object, determining that the device control event and the object behavior event are mutually exclusive.
[0012] Further, in an exemplary embodiment, determining that the device control event and the object behavior event are mutually exclusive based on a mutually exclusive event set includes: obtaining an event pool of the smart device, wherein the event pool of the smart device is used to store the device control events and the object behavior events that have a mutually exclusive relationship; and in the case that an object behavior event that is mutually exclusive with the device control event is obtained from the event pool of the smart device, determining that the device control event and the object behavior event are mutually exclusive.
[0013] Further, in an exemplary embodiment, when it is determined that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, after sending an adjustment control instruction corresponding to the object behavior event of the first object to the first smart device, the method also includes: performing object recognition on the first object through the recognition function of the first smart device to obtain a third recognition result; determining the current position of the first object from the third recognition result; and when it is determined that the current position of the first object is within a safe area, determining that the first object is currently in a safe state.
[0014] According to another embodiment of the embodiments of the present application, a control device for an intelligent device is also provided, including: an operation module, used to determine a device control event of a first intelligent device running in a target area; an identification module, used to perform object identification on the first object through an identification function of the first intelligent device when a first object is detected to enter the target area, so as to determine an object behavior event of the first object with respect to the first intelligent device; an adjustment module, used to send an adjustment control instruction corresponding to the object behavior event of the first object to the first intelligent device when it is determined that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, so as to adjust the first object's permission to use the first intelligent device.
[0015] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the control method of the above-mentioned smart device when running.
[0016] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the control method of the smart device through the computer program.
[0017] In an embodiment of the present application, a device control event of a first smart device running in a target area is determined; when a first object is detected to enter the target area, the first object is identified by an identification function of the first smart device to determine an object behavior event of the first object with respect to the first smart device; when it is determined that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, an adjustment control instruction corresponding to the object behavior event of the first object is sent to the first smart device. By adopting the above technical solution, the problem of low security prevention and control efficiency of smart devices is solved, thereby improving the security prevention and control efficiency of smart devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 It is a hardware structure block diagram of a computer terminal of a control method of an intelligent device according to an embodiment of the present application;
[0020] Figure 2 is a flow chart of a control method of a smart device according to an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of a control principle of a smart device according to an embodiment of the present application;
[0022] Figure 4 is a structural block diagram of a control device of an intelligent device according to an embodiment of the present application (I);
[0023] Figure 5 This is a structural block diagram of a control device for an intelligent device according to an embodiment of the present application (II). DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal of a control method of an intelligent device in an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (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. In an exemplary embodiment, the computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.
[0027] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the smart device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0028] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as 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 wirelessly.
[0029] In this embodiment, a control method of an intelligent device is provided, which is applied to the above-mentioned computer terminal. Figure 2 : is a flow chart of a control method of a smart device according to an embodiment of the present application, the flow includes the following steps:
[0030] Step S202, determining a device control event of a first smart device running in a target area;
[0031] Step S204, when a first object is detected to enter the target area, object recognition is performed on the first object through the recognition function of the first smart device to determine an object behavior event of the first object with respect to the first smart device;
[0032] Step S206, when it is determined that the device control event and the object behavior event are mutually exclusive according to the preset mutually exclusive event set, an adjustment control instruction corresponding to the object behavior event of the first object is sent to the first smart device to adjust the first object's permission to use the first smart device.
[0033] In one embodiment, the above-mentioned object behavior event can be understood as a behavior event set according to the first object's usage permission for the first smart device. For example, the first object is a 10-year-old child, the first smart device is an air conditioner, and the 10-year-old child's usage permission for the air conditioner includes turning the air conditioner on and off. Then, the object behavior event according to the first object's usage permission for the first smart device is controlling the air conditioner switch.
[0034] Through the above steps, a device control event of the first smart device running in the target area is determined; when a first object is detected to enter the target area, the first object is identified by the identification function of the first smart device to determine the object behavior event of the first object with respect to the first smart device; when it is determined that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, an adjustment control instruction corresponding to the object behavior event of the first object is sent to the first smart device, which solves the problem of low security prevention and control efficiency of smart devices in related technologies, thereby improving the security prevention and control efficiency of smart devices.
[0035] Optionally, in an exemplary embodiment, in order to better understand how to determine the device control event of the first smart device running in the target area in the above step S202, when the second object operates the first smart device in the target area, the second object can be identified through the identification function of the smart device in the target area to determine the device control event of the first smart device, and the smart device includes: the first smart device.
[0036] It should be noted that the above-mentioned device control events may include control events pre-set for the smart device, wherein the device control events may be set according to the device type of the smart device. For example, if the device type of the smart device is a door lock, the control event of the door lock may be set to open the door lock or close the door lock, and if the device type of the smart device is a speaker, the control event of the speaker may be set to switch songs. Alternatively, the device control events may be set according to the device functions supported by the smart device. For example, if the smart device supports voice calls, the device control event of the smart device may be set to select a call partner.
[0037] Optionally, in an exemplary embodiment, in order to better understand how to perform object recognition on the second object through the recognition function of the smart device in the target area to determine the device control event of the first smart device, the second object can be recognized by the recognition function of the smart device in the target area to obtain a first recognition result; wherein the recognition function includes at least one of the following: face recognition function, voice recognition function, image recognition function, infrared recognition function; determine the location information of the target area, the device identification of the first smart device, the operating status of the first smart device, and the identification information of the second object from the first recognition result; wherein the device control event includes at least: the location information of the target area, the device identification of the first smart device, the operating status of the first smart device, and the identification information of the second object.
[0038] It should be noted that a recognition device is installed on the smart device corresponding to the recognition function of the smart device. For example, a face recognition function or an image recognition function can be realized by installing a camera device on the smart device, a voice recognition function can be realized by installing a voice device on the smart device, or an infrared recognition function can be realized by installing a sensor device on the smart device, and this application does not limit this. In this embodiment, the above-mentioned smart devices include but are not limited to smart home appliances.
[0039] Optionally, in an exemplary embodiment, in order to better understand how to perform object recognition on the first object through the recognition function of the first smart device in the above-mentioned step S204 to determine the object behavior event of the first object with respect to the first smart device, a technical solution is proposed, and the specific steps include: performing object recognition on the first object through the recognition function of the smart device to obtain a second recognition result; wherein the recognition function includes at least one of the following: face recognition function, voice recognition function, image recognition function, infrared recognition function; determining the location information of the target area, the device identification of the first smart device, the current state of the first object, and the identification information of the first object from the second recognition result; wherein the object behavior event includes at least: the location information of the target area, the device identification of the first smart device, the current state of the first object, and the identification information of the first object.
[0040] Through the above embodiments, multiple identification functions of smart devices are used to provide multiple ways of acquiring object behavior events and device control events, thereby improving the recognition accuracy of object behavior events and device control events.
[0041] Optionally, in an exemplary embodiment, before determining that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, a technical solution is also proposed, and the specific steps include: obtaining historical usage records of the smart device; determining historical object behavior events that are mutually exclusive with the device control event according to the historical usage records, and determining the preset mutually exclusive event set based on the device control event and the historical object behavior event; or, determining the mutually exclusive events set for the target object as the preset mutually exclusive event set, wherein the target object includes the second object.
[0042] Optionally, in an exemplary embodiment, in order to better understand how the above-mentioned step S206 determines whether the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, the age value of the first object and the operation authority of the first object can be determined based on the recognition result of the first object; when it is determined that the age value of the first object is less than a first threshold, it is determined that the device control event and the object behavior event are mutually exclusive; when it is determined that the age value of the first object is greater than the first threshold and less than a second threshold, the current operation type of the first object is determined based on the recognition result of the first object; when it is determined that the operation authority of the first object is inconsistent with the preset operation type of the first object, it is determined that the device control event and the object behavior event are mutually exclusive.
[0043] It should be noted that the first threshold, the second threshold and the preset operation right item of the second object can be directly set by the second object.
[0044] In an optional embodiment of the present application, when the age value of the child (equivalent to the above-mentioned first object) is determined to be 3, the child's preset operation authority is prohibited operation, and the above-mentioned first threshold is 5, if the child's current operation type is determined to be opening the refrigerator based on the recognition result of the child, then the object behavior event corresponding to the child and the device control event corresponding to opening the refrigerator are determined to be mutually exclusive events, and then an adjustment control instruction is sent to the refrigerator to instruct the refrigerator to adjust the child's permission to use the refrigerator according to the adjustment control instruction, for example, adjusting the child's permission to use the refrigerator to prohibited use.
[0045] Optionally, in an exemplary embodiment, in order to better understand how to determine whether the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set in the above step S206, a technical solution is also proposed, and the specific steps include: obtaining an event pool of the smart device, wherein the event pool of the smart device is used to store the device control events and the object behavior events that have a mutually exclusive relationship; in the case of obtaining an object behavior event that is mutually exclusive with the device control event from the event pool of the smart device, determining that the device control event and the object behavior event are mutually exclusive.
[0046] Optionally, in an exemplary embodiment, when it is determined that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, an adjustment control instruction corresponding to the object behavior event of the first object is sent to the first smart device to adjust the first object's permission to use the first smart device, and a technical solution is also proposed. The specific steps include: performing object recognition on the first object through the recognition function of the first smart device to obtain a third recognition result; determining the current position of the first object from the third recognition result; and determining that the first object is currently in a safe state when it is determined that the current position of the first object is within a safe area.
[0047] It should be noted that the above-mentioned safety area can be understood as the area where the above-mentioned first object is located and the first smart device cannot be operated. For example, when the above-mentioned first smart device is an oven placed in the kitchen, the safety area may include bathrooms, living rooms, dining rooms and other areas that are not kitchens. This application does not impose any restrictions on this.
[0048] Optionally, in an exemplary embodiment, in the presence of mutual exclusion, an adjustment control instruction corresponding to the object behavior event of the first object is sent to the first smart device to adjust the first object's permission to use the first smart device, and then a technical solution is proposed, the specific steps of which include: identifying the smart device through the identification function to obtain a fourth identification result; determining the operating status of the smart device from the fourth identification result; when it is determined that the operating status of the smart device is running and the current position of the first object is within a dangerous area, determining that the first object is currently in a dangerous state; and using a second smart device to issue a warning message to the second object, wherein the second smart device is the device closest to the second object.
[0049] It should be noted that the above-mentioned dangerous area can be understood as the area where the above-mentioned first object is located and can operate the first smart device. For example, when the above-mentioned first smart device is an air conditioner placed in the living room, the safe area may include the kitchen, bedroom, dining room and other areas that are not the living room. This application does not impose any restrictions on this.
[0050] In order to better understand the process of the control method of the above-mentioned smart device, the implementation method flow of the control of the above-mentioned smart device is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0051] Next, combine Figure 3 Explain how to control smart devices. Figure 3 It is a schematic diagram of the control principle of the smart device according to the embodiment of the present application. The present embodiment is based on a smart home security protection system of multimodal mutually exclusive events, and is mainly composed of two parts: smart devices distributed in various spaces of the home and a smart brain.
[0052] Among them, the home space type (equivalent to the location information of the above-mentioned target area) is set and represented by t, and the value range of t is [0, ∞].
[0053] For example, in one embodiment, t=0 indicates that the home space type is a balcony, and t=1 indicates that the home space type is a living room, but the present invention is not limited thereto.
[0054] The device type (equivalent to the device identification of the first smart device) is set to d, and the value range of d is [0, ∞].
[0055] For example, in one embodiment, d=0 indicates that the device type is a washing machine, d=1 indicates that the device type is a clothes drying rack, and d=2 indicates that the device type is a television, but the present invention is not limited thereto.
[0056] The device status type (equivalent to the operating status of the first intelligent device) is set to c, and the value range of c is [0, ∞].
[0057] For example, in one embodiment, when the device type is a washing machine, c=0 indicates that the device status type is running drying, and c=1 indicates that the device status type is washing clothes, but the present invention is not limited thereto.
[0058] The user behavior scenario (equivalent to the current state of the first object or the current state of the second object) is set to b, and the value range of b is [0, ∞].
[0059] For example, in one embodiment, b=0 indicates that the current state of the second object is sleeping, b=1 indicates that the current state of the second object is bathing, and b=3 indicates that the current state of the second object is away from home, but the present invention is not limited thereto.
[0060] The user ID (equivalent to the identification information of the second object or the identification information of the first object) is set to be represented by u, and the value range of u is [0, ∞].
[0061] For example, in one embodiment, u=0 indicates that the user corresponding to the identification information of the second object is the hostess, and u=1 indicates that the user corresponding to the identification information of the first object is the child, but the present invention is not limited thereto.
[0062] Then, the home appliance event (equivalent to the above-mentioned device control event) is defined as e i (t i , d i , c j ,u i ), the user behavior event (equivalent to the above object behavior event) is defined as m j (t j , d j ,u j , b j ), then we can use the decision plan s for mutually exclusive events j The mutually exclusive event set defined by the intelligent brain is {..., (e i , m j ,s j ), …}, where i, j are natural numbers.
[0063] Specifically, the workflow of this embodiment is as follows:
[0064] Step 1: Preset a multimodal set of mutually exclusive events through the intelligent brain.
[0065] Step 2: User u i In the family space i Trigger the device through voice, image, infrared, or manual i , device status c occurs i , generate and report device control events e i (t i , d i , c i ,u i ), according to the device control event e i The home space type, device type, device status type and user ID in the event pool are updated (equivalent to the event pool of the above-mentioned smart devices).
[0066] Step 3, user u i In the family space j Trigger devices by image, voice, infrared, or manual means j , identify user behavior b j , generate and report user event m j (tj , d j ,u j , b j ), then the event pool can be updated based on the home space type, device type, user ID, and user behavior scenario. For example, when a user passes through the entrance hall and opens the door to leave home, the user u detected by the internal screen camera of the entrance doorbell j The out-of-home behavior is the user event m j .
[0067] Step 4: The intelligent brain searches the event pool to determine whether there is any event in the event pool that is related to the user event m. j (t j , d j ,u j , b j ) mutually exclusive device control event, if any, is sent to device b j Send preset decision solutions j Otherwise, no data is sent to device b. j Send preset decision solutions j .
[0068] In an optional embodiment of the present application, the device control event "oven working" and the object behavior event "parents leaving home" can be defined as mutually exclusive events on the smart brain side, or the device control event "oven working" and the object behavior event "child entering the kitchen" can be defined as mutually exclusive events. Then, when the parent (equivalent to the second object mentioned above) operates the oven in the kitchen by voice to start baking food and leaves home, the doorbell camera located in the entrance detects the parent through face recognition. At this time, the doorbell camera will voice remind the parent "the oven is working, do you want to turn off the oven before leaving", which can reduce the probability of the oven burning food, improve the user experience, and reduce the safety hazards of the oven, and improve the safety of using the oven. If the child enters the kitchen when the parent leaves home without turning off the oven, the camera set on the oven detects that the child appears in the dangerous area near the oven, and the child is immediately alerted, and the oven is controlled to stop working, reducing the probability of the child being scalded.
[0069] This embodiment defines mutually exclusive object behavior events and device control events by integrating multimodal events such as face, image, voice, infrared, etc. in the smart brain, and when the smart brain captures the occurrence of a mutually exclusive event, sends an adjustment control instruction corresponding to the object behavior event of the first object to the smart device, thereby achieving security protection for the entire space of the smart home, solving the problem of low security prevention and control efficiency of smart devices, and improving the safety of use and security protection capabilities of smart devices.
[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0071] Figure 4 is a structural block diagram of a control device for an intelligent device according to an embodiment of the present application. Figure 4 As shown, including:
[0072] An operating module 42 is used to determine a device control event of a first smart device operating in a target area;
[0073] an identification module 44, configured to, when detecting that a first object enters the target area, perform object identification on the first object through an identification function of the first smart device to determine an object behavior event of the first object with respect to the first smart device;
[0074] The adjustment module 46 is used to send an adjustment control instruction corresponding to the object behavior event of the first object to the first smart device when it is determined that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, so as to adjust the first object's permission to use the first smart device.
[0075] In one embodiment, the above-mentioned object behavior event can be understood as a behavior event set according to the first object's usage permission for the first smart device. For example, the first object is a 10-year-old child, the first smart device is an air conditioner, and the 10-year-old child's usage permission for the air conditioner includes turning the air conditioner on and off. Then, the object behavior event according to the first object's usage permission for the first smart device is controlling the air conditioner switch.
[0076] Through the above-mentioned device, a device control event of a first smart device running in a target area is determined; when a first object is detected to enter the target area, the first object is identified by the identification function of the first smart device to determine an object behavior event of the first object with respect to the first smart device; when it is determined that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set, an adjustment control instruction corresponding to the object behavior event of the first object is sent to the first smart device, thereby solving the problem of low security prevention and control efficiency of smart devices in related technologies and improving the security prevention and control efficiency of smart devices.
[0077] Optionally, in an exemplary embodiment, the above-mentioned operating module is also used to, when a second object operates the first smart device in the target area, perform object recognition on the second object through the recognition function of the smart device in the target area to determine the device control event of the first smart device, and the smart device includes: the first smart device.
[0078] It should be noted that the above-mentioned device control events may include control events pre-set for the smart device, wherein the device control events may be set according to the device type of the smart device. For example, if the device type of the smart device is a door lock, the control event of the door lock may be set to open the door lock or close the door lock, and if the device type of the smart device is a speaker, the control event of the speaker may be set to switch songs. Alternatively, the device control events may be set according to the device functions supported by the smart device. For example, if the smart device supports voice calls, the device control event of the smart device may be set to select a call partner.
[0079] Optionally, in an exemplary embodiment, the above-mentioned operating module is also used to perform object recognition on the second object through the recognition function of the smart device in the target area to obtain a first recognition result; wherein the recognition function includes at least one of the following: face recognition function, voice recognition function, image recognition function, infrared recognition function; determine the location information of the target area, the device identification of the first smart device, the operating status of the first smart device, and the identification information of the second object from the first recognition result; wherein the device control event includes at least: the location information of the target area, the device identification of the first smart device, the operating status of the first smart device, and the identification information of the second object.
[0080] It should be noted that a recognition device is installed on the smart device corresponding to the recognition function of the smart device. For example, a face recognition function or an image recognition function can be realized by installing a camera device on the smart device, a voice recognition function can be realized by installing a voice device on the smart device, or an infrared recognition function can be realized by installing a sensor device on the smart device, and this application does not limit this.
[0081] Optionally, in an exemplary embodiment, the above-mentioned recognition module is also used to perform object recognition on the first object through the recognition function of the smart device to obtain a second recognition result; wherein the recognition function includes at least one of the following: face recognition function, voice recognition function, image recognition function, infrared recognition function; determine the location information of the target area, the device identification of the first smart device, the current state of the first object, and the identification information of the first object from the second recognition result; wherein the object behavior event includes at least: the location information of the target area, the device identification of the first smart device, the current state of the first object, and the identification information of the first object.
[0082] Through the above embodiments, multiple identification functions of smart devices are used to provide multiple ways of acquiring object behavior events and device control events, thereby improving the recognition accuracy of object behavior events and device control events.
[0083] Optionally, in an exemplary embodiment, the control device of the above-mentioned smart device also includes an acquisition module for acquiring historical usage records of the smart device; determining historical object behavior events that are mutually exclusive with the device control events based on the historical usage records, and determining the preset mutually exclusive event set based on the device control events and the historical object behavior events; or, determining the mutually exclusive events set for the target object as the preset mutually exclusive event set, wherein the target object includes the second object.
[0084] Optionally, in an exemplary embodiment, the adjustment module is also used to determine the age value of the first object and the operation authority of the first object based on the recognition result of the first object; when it is determined that the age value of the first object is less than a first threshold, determine that the device control event and the object behavior event are mutually exclusive; when it is determined that the age value of the first object is greater than the first threshold and less than a second threshold, determine the current operation type of the first object based on the recognition result of the first object; when it is determined that the operation authority of the first object is inconsistent with the preset operation type of the first object, determine that the device control event and the object behavior event are mutually exclusive.
[0085] It should be noted that the first threshold, the second threshold and the preset operation right item of the second object can be directly set by the second object.
[0086] In an optional embodiment of the present application, when the age value of the child (equivalent to the above-mentioned first object) is determined to be 3, the child's preset operation authority is prohibited operation, and the above-mentioned first threshold is 5, if the child's current operation type is determined to be opening the refrigerator based on the recognition result of the child, then the object behavior event corresponding to the child and the device control event corresponding to opening the refrigerator are determined to be mutually exclusive events, and then an adjustment control instruction is sent to the refrigerator to instruct the refrigerator to adjust the child's permission to use the refrigerator according to the adjustment control instruction, for example, adjusting the child's permission to use the refrigerator to prohibited use.
[0087] Optionally, in an exemplary embodiment, the above-mentioned adjustment module is also used to obtain an event pool of the smart device, wherein the event pool of the smart device is used to store the device control events and the object behavior events that have a mutually exclusive relationship; when an object behavior event that is mutually exclusive with the device control event is obtained from the event pool of the smart device, it is determined that the device control event and the object behavior event are mutually exclusive.
[0088] Figure 5 is a structural block diagram of a control device for an intelligent device according to an embodiment of the present application. Figure 5 As shown, the control device of the above-mentioned smart device includes an operation module 42 , an identification module 44 , an adjustment module 46 , a safety state determination module 52 and a danger state determination module 54 .
[0089] In an exemplary embodiment, the above-mentioned security status determination module is used to perform object recognition on the first object through the recognition function of the first smart device to obtain a third recognition result; determine the current position of the first object from the third recognition result; and when it is determined that the current position of the first object is within a safe area, determine that the first object is currently in a safe state.
[0090] It should be noted that the above-mentioned safety area can be understood as the area where the above-mentioned first object is located and the first smart device cannot be operated. For example, when the above-mentioned first smart device is an oven placed in the kitchen, the safety area may include bathrooms, living rooms, dining rooms and other areas that are not kitchens. This application does not impose any restrictions on this.
[0091] In an exemplary embodiment, the above-mentioned dangerous state determination module is used to identify the smart device through the identification function to obtain a fourth identification result; determine the operating state of the smart device from the fourth identification result; when it is determined that the operating state of the smart device is running and the current position of the first object is located in a dangerous area, determine that the first object is currently in a dangerous state; use a second smart device to issue a warning message to the second object, wherein the second smart device is the device closest to the second object.
[0092] It should be noted that the above-mentioned dangerous area can be understood as the area where the above-mentioned first object is located and can operate the first smart device. For example, when the above-mentioned first smart device is an air conditioner placed in the living room, the safe area may include the kitchen, bedroom, dining room and other areas that are not the living room. This application does not impose any restrictions on this.
[0093] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0094] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0095] S1, determining a device control event of a first smart device running in a target area;
[0096] S2, when a first object is detected to enter the target area, performing object recognition on the first object through a recognition function of the first smart device to determine an object behavior event of the first object with respect to the first smart device;
[0097] S3, when it is determined according to a preset mutually exclusive event set that the device control event and the object behavior event are mutually exclusive, sending an adjustment control instruction corresponding to the object behavior event of the first object to the first smart device to adjust the first object's permission to use the first smart device.
[0098] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0099] Optionally, the electronic device 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.
[0100] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0101] S1, determining a device control event of a first smart device running in a target area;
[0102] S2, when a first object is detected to enter the target area, performing object recognition on the first object through a recognition function of the first smart device to determine an object behavior event of the first object with respect to the first smart device;
[0103] S3, when it is determined according to a preset mutually exclusive event set that the device control event and the object behavior event are mutually exclusive, sending an adjustment control instruction corresponding to the object behavior event of the first object to the first smart device to adjust the first object's permission to use the first smart device.
[0104] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0105] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0106] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0107] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for an intelligent device, characterized in that: include: Determine a device control event of a first smart device running in a target area; When a first object is detected to enter the target area, performing object recognition on the first object through a recognition function of the first smart device to determine an object behavior event of the first object with respect to the first smart device; When it is determined according to the preset mutually exclusive event set that the device control event and the object behavior event are mutually exclusive, sending an adjustment control instruction corresponding to the object behavior event of the first object to the first smart device, so as to adjust the use permission of the first object to the first smart device; The step of determining a device control event of a first smart device running in a target area includes: In the case where the second object operates the first smart device in the target area, object recognition is performed on the second object through the recognition function of the smart device in the target area to determine a device control event of the first smart device, the smart device comprising: the first smart device, the device control event comprising: a device control event set according to a device type of the first smart device, and a device control event set according to a device function supported by the first smart device; Wherein, when it is determined that the device control event and the object behavior event are mutually exclusive according to the preset mutually exclusive event set, after sending an adjustment control instruction corresponding to the object behavior event of the first object to the first smart device, the method further includes: Identify the smart device using the identification function to obtain a fourth identification result; Determining the operating state of the smart device from the fourth recognition result; When it is determined that the operating state of the smart device is running and the current position of the first object is within a dangerous area, determining that the first object is currently in a dangerous state; A second smart device is used to issue a warning message to the second object, wherein the second smart device is a device closest to the second object.
2. The control method of the intelligent device according to claim 1, characterized in that: Performing object recognition on the second object by using the recognition function of the smart device in the target area to determine the device control event of the first smart device includes: Performing object recognition on the second object through the recognition function of the smart device in the target area to obtain a first recognition result; wherein the recognition function includes at least one of the following: face recognition function, voice recognition function, image recognition function, infrared recognition function; Determine the location information of the target area, the device identification of the first smart device, the operating status of the first smart device, and the identification information of the second object from the first recognition result; wherein the device control event includes at least: the location information of the target area, the device identification of the first smart device, the operating status of the first smart device, and the identification information of the second object.
3. The control method of the smart device according to claim 1, characterized in that: Performing object recognition on the first object through the recognition function of the first smart device to determine an object behavior event of the first object with respect to the first smart device includes: Performing object recognition on the first object through the recognition function of the smart device to obtain a second recognition result; wherein the recognition function includes at least one of the following: face recognition function, voice recognition function, image recognition function, infrared recognition function; Determine the location information of the target area, the device identification of the first smart device, the current state of the first object, and the identification information of the first object from the second recognition result; wherein the object behavior event at least includes: the location information of the target area, the device identification of the first smart device, the current state of the first object, and the identification information of the first object.
4. The control method of the intelligent device according to claim 1, characterized in that: Before determining that the device control event and the object behavior event are mutually exclusive according to the preset mutually exclusive event set, the method further includes: Obtaining historical usage records of the smart device; Determine, according to the historical usage record, a historical object behavior event that is mutually exclusive with the device control event, and determine the preset mutually exclusive event set according to the device control event and the historical object behavior event; Alternatively, mutually exclusive events set for a target object are determined as the preset mutually exclusive event set, wherein the target object includes the second object.
5. The control method of the intelligent device according to claim 4, characterized in that: Determining that the device control event and the object behavior event are mutually exclusive according to a preset mutually exclusive event set includes: determining the age value of the first object and the operation authority of the first object according to the recognition result of the first object; In a case where it is determined that the age value of the first object is less than a first threshold, determining that the device control event and the object behavior event are mutually exclusive; When it is determined that the age value of the first object is greater than the first threshold value and less than the second threshold value, determining the current operation type of the first object according to the recognition result of the first object; When it is determined that the current operation permission of the first object is inconsistent with the preset operation type of the first object, it is determined that the device control event and the object behavior event are mutually exclusive.
6. The control method of the intelligent device according to claim 4, characterized in that: Determining, according to the mutually exclusive event set, that the device control event and the object behavior event are mutually exclusive includes: Acquire an event pool of the smart device, wherein the event pool of the smart device is used to store the device control event and the object behavior event that have a mutually exclusive relationship; In the case where an object behavior event that is mutually exclusive with the device control event is acquired from the event pool of the smart device, it is determined that the device control event and the object behavior event are mutually exclusive.
7. The control method of the smart device according to claim 1, characterized in that: In the case where it is determined according to the preset mutually exclusive event set that the device control event and the object behavior event are mutually exclusive, after sending an adjustment control instruction corresponding to the object behavior event of the first object to the first smart device, the method further includes: Performing object recognition on the first object by using the recognition function of the first smart device to obtain a third recognition result; determining a current position of the first object from the third recognition result; In the case where it is determined that the current position of the first object is within the safety area, it is determined that the first object is currently in a safety state.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.
9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
