Device control method and apparatus, and computer device and storage medium
By detecting the target object entering different spaces and obtaining its operating parameters, and automatically controlling the status of equipment such as air conditioners, the problem of cumbersome equipment operation in multi-room vehicle environments is solved, and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2023/141664
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-31
- Filing Date
- 2023-12-25
- Publication Date
- 2024-12-05
AI Technical Summary
In multi-room and vehicle environments, users need to frequently and manually operate equipment such as air conditioners in different spaces, resulting in cumbersome and repetitive operations, making it difficult to quickly change the equipment status.
By detecting that when the target object enters a different space, it obtains its identity information or image information, automatically obtains and applies its operating parameters, controls the corresponding device to turn on or off, and realizes automatic adjustment of the device status.
When the user is unaware, the device is automatically turned on and adjusted to the working state set by the user, improving the user experience and reducing frequent and repetitive operations.
Smart Images

Figure CN2023141664_05122024_PF_FP_ABST
Abstract
Description
Device control method, device, computer device and storage medium
[0001] This disclosure claims priority to a Chinese patent application filed with the Patent Office of China on May 31, 2023, with application number 202310642512.7 and invention name “Control method, device, computer device and storage medium of equipment”, the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0002] The embodiments of the present disclosure relate to the field of smart home technology, and more particularly to a device control method, apparatus, computer equipment, and storage medium. Background Art
[0003] With the widespread adoption of the Internet of Things (IoT), more and more home appliances are equipped with smart connectivity, allowing users to control their appliances with remote controls and smartphones. Air conditioners are essential in every household. In homes with multiple rooms and vehicles, each space may contain multiple air conditioners. Whenever users move between rooms, they need to search for the remote control to turn on the air conditioner and adjust the temperature and fan speed, making the process repetitive and frequent.
[0004] Therefore, how to quickly control the device when the user switches between different spaces has become an urgent problem to be solved.
[0005] Summary of the Invention
[0006] In view of this, in order to solve the above-mentioned technical problem of quickly controlling the device when the user switches between different spaces, the embodiments of the present disclosure provide a device control method, apparatus, computer device and storage medium.
[0007] In a first aspect, an embodiment of the present disclosure provides a method for controlling a device, including:
[0008] When the target object is detected in the first space, obtaining the operating parameters of the first device in the first space;
[0009] When the target object is detected in the second space, controlling the second device in the second space to turn on;
[0010] The second device is controlled according to the operating parameters.
[0011] In one possible implementation, when detecting the presence of the target object in the first space, obtaining the operating parameters of the first device in the first space includes:
[0012] When a target object is detected entering the first space, obtaining identity information of the target object;
[0013] When a first time period during which the target object stays in the first space is greater than a first threshold, controlling the first device to turn on;
[0014] Parameter information and an operating mode of the first device corresponding to the identity information are obtained as the operating parameters.
[0015] In one possible implementation, when detecting the target object in the second space, controlling the second device in the second space to turn on includes:
[0016] When detecting that a target object enters the second space, acquiring image information of the target object;
[0017] When the similarity between the image information and the preset image information is greater than a second threshold, it is determined that the target object is in a stationary state.
[0018] The first device is controlled to be turned off, and the second device is controlled to be turned on.
[0019] In one possible implementation, the method further includes:
[0020] When the similarity between the image information and the preset image information is less than or equal to a second threshold, it is determined that the target object is in a non-staying state;
[0021] When the second time period that the target object stays in the second space is greater than a third threshold, the first device is controlled to be turned off, and the second device is controlled to be turned on.
[0022] In one possible implementation, when it is detected that the first object and the second object exist in the first space, the method further includes:
[0023] Obtaining a first operating parameter corresponding to the first object and a first priority of the first operating parameter;
[0024] Obtaining a second operating parameter corresponding to the second object and a second priority of the second operating parameter;
[0025] The first device is controlled to be turned on, and the first device is controlled to operate according to the first operating parameter, the first priority being higher than the second priority.
[0026] In one possible implementation, the method further includes:
[0027] When it is detected that only the second object exists in the first space, and only the first object exists in the second space, controlling the first device to operate according to the second operating parameter;
[0028] The second device is controlled to start, and the second device is controlled to operate according to the first operating parameters.
[0029] In one possible implementation, when the operating parameters include operating time, the method further includes:
[0030] When it is detected that the target object leaves the first space, obtaining a third duration for which the first device has been running;
[0031] Determine a fourth duration remaining from the running time according to the running time and the third duration;
[0032] When the target object is detected to appear in the second space, the second device is controlled to be turned on, and the second device is controlled to operate according to the fourth duration and the operating parameters.
[0033] In a second aspect, an embodiment of the present disclosure provides a control device for a device, comprising:
[0034] an acquisition module, configured to acquire operating parameters of a first device in a first space when a target object is detected in the first space;
[0035] a control module configured to control a second device in the second space to turn on when detecting that the target object appears in the second space;
[0036] The control module is further configured to control the second device according to the operating parameters.
[0037] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a processor and a memory, wherein the processor is configured to execute a control program of the device stored in the memory to implement the control method of the device described in any one of the first aspects above.
[0038] In a fourth aspect, an embodiment of the present disclosure provides a storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the control method of the device described in any one of the first aspects above.
[0039] The control scheme of the device provided in the embodiment of the present disclosure obtains the operating parameters of the first device in the first space when the presence of a target object is detected in the first space; controls the second device in the second space to turn on when the target object is detected in the second space; and controls the second device according to the operating parameters. In this way, the device can be automatically turned on and adjusted to the working state set by the user without the user's perception, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] FIG1 is a schematic flow chart of a method for controlling a device according to an embodiment of the present disclosure;
[0041] FIG2 is a flow chart of another device control method provided by an embodiment of the present disclosure;
[0042] FIG3 is a flow chart of another device control method provided by an embodiment of the present disclosure;
[0043] FIG4 is a schematic structural diagram of a control device of a device provided by an embodiment of the present disclosure;
[0044] FIG5 is a schematic structural diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0046] To facilitate understanding of the embodiments of the present disclosure, further explanation will be given below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present disclosure.
[0047] FIG1 is a flow chart of a method for controlling a device according to an embodiment of the present disclosure. As shown in FIG1 , the method specifically includes:
[0048] S11. When a target object is detected in a first space, obtain operating parameters of a first device in the first space.
[0049] The device control method provided in the embodiments of the present disclosure is applied to a computer device, which may be a server, a smart home control system, etc. The controlled device is a smart home device, which can usually exist in multiple rooms in a home. The devices may include: air conditioners, humidifiers, televisions, smart lamps, etc. Specifically, by obtaining the operating parameters of a first device in a first space, the operating parameters are used to control a second device in a second space, so as to actively help the user turn on the device when the user enters a different space and adjust it to the operating state set by the user.
[0050] In this embodiment, the target object is usually a pre-set user, and the target object corresponds to multiple spaces. The multiple spaces can be multiple rooms in the user's home and the user's vehicle. Each space is equipped with the same type of equipment (for example, air conditioners, humidifiers, smart lamps, etc.). The first space is any room in the user's home or any vehicle of the user. The first device is in the first space. The first device in the user's home and car is connected to the Internet in advance. The identification and working mode of the first device can be transmitted to the server, and a usage relationship between the user, each space and the device is established. When the target object enters the first space, it is connected to the first space through the first space. When the human body sensing device detects that a target object has entered and remains in the first space, the target object can turn on and adjust the first device via the remote control. When the server detects that the first device is currently turned on, it obtains the current operating mode and parameter information of the first device as operating parameters (when the first device is an air conditioner, the operating mode may include: cooling, heating, etc., and the parameter information may include: air outlet temperature, wind speed, etc.; when the first device is a humidifier, the operating mode may include: standard mode, sleep mode, timed off mode, etc., and the parameter information may include: humidity, humidifier power, etc.), and stores the operating parameters of the first device in correspondence with the target object and the first space. The sensing device may be an infrared sensor, a camera, a radar sensor, a communicative sensor carried by the user, etc.
[0051] In one possible implementation, when an object is detected entering the first space, a facial image of the object is acquired and similarity is confirmed with a pre-stored facial image of a target object. When the similarity is greater than a set threshold, the object is determined to be the target object.
[0052] In one possible embodiment, the server may pre-store operating parameters corresponding to the target object. The operating parameters may be recorded and stored based on the target object's historical habits of using the first device, or actively input by the target object and stored in the server. When the target object is detected entering the first space, the operating parameters corresponding to the target object are obtained, and the air conditioner is turned on to control the air conditioner to operate according to the operating parameters.
[0053] S12: When the target object is detected in the second space, control the second device in the second space to turn on.
[0054] In this embodiment, the second space is any space corresponding to the target object, and a second device is provided in the second space. The second device and the first device are of the same type (for example, an air conditioner, a humidifier, a smart lamp, etc.). When the target object leaves the first space and enters the second space, the human body sensing device in the second space detects whether the target object appears in the second space. When the target object is detected, the server sends an opening instruction to the second device and controls the second device to turn on according to the opening instruction.
[0055] In one possible implementation, a facial image of an object entering the second space is acquired and similarity is confirmed with a pre-stored facial image of a target object. When the similarity is greater than a set threshold, the object is determined to be the target object.
[0056] S13. Control the second device according to the operating parameters.
[0057] In this embodiment, the server generates a control instruction based on the operating parameters of the first device, sends the control instruction to the second device, and controls the second device to operate according to the operating parameters of the first device according to the control instruction.
[0058] In one possible embodiment, when it is detected that the target object leaves the first space, the third duration that the first device has been running is obtained; the remaining fourth duration is determined based on the running duration and the third duration; when it is detected that the target object appears in the second space, the second device is controlled to turn on, and the second device is controlled to run according to the fourth duration and operating parameters.
[0059] Specifically, the running time is the total running time of the first device (for example, the user sets the air conditioner to automatically shut down after running for 1 hour). When the running parameters include the running time of the first device, when the target object leaves the first space, the third time that the current first device has been running is obtained, and the fourth time is obtained by subtracting the third time from the running time. When the target object is detected in the second space and the second device is controlled to turn on, the second device is controlled to run according to the fourth time and the running parameters.
[0060] For example, as shown in Figure 3, there is a flow chart of another device control method provided by an embodiment of the present disclosure, in which the first space is a bedroom, the second space is a vehicle, the first device is the air conditioner in the bedroom, and the second device is the air conditioner in the vehicle. First, all the air conditioners in the user's home and car are connected to the Internet, so that the network control of the air conditioner switch, temperature, wind speed, wind sweeping and other functions can be realized; when user A enters the bedroom, the facial image of user A is obtained through the camera and uploaded to the server, and is determined as the target object. At this time, user A clicks on the "AI Perception" function on the remote control or mobile phone APP. When the user presses this button, the parameters or switch status of the temperature, mode, wind speed, wind sweeping and other functions currently set by the user for the air conditioner will be automatically uploaded to the server as operating parameters; after a period of time, the user moves to the vehicle, which is equipped with an infrared sensor or camera. After detecting that user A has entered the vehicle, the air conditioner obtains the operating parameters set by the user in the cloud, and controls the air conditioner of the vehicle to turn on and operate according to the operating parameters, so as to achieve the consistency of the operating status of the air conditioner in the vehicle and the air conditioner in the bedroom. The infrared sensor on the bedroom air conditioner detects whether there is human activity in the room. If no human activity is detected, the air conditioner will shut down. If human activity is detected, the air conditioner will continue to operate in the original state until the sensor stops detecting and shuts down. If the user goes to another room or goes to the car, the air conditioner will continue to operate according to the above procedure. After turning on the "AI Perception" function, if the user changes the temperature, mode, wind speed, wind sweep and other operating parameters of any air conditioner, the changed information will be updated and uploaded to the server, and then transmitted to the other air conditioners, and the operating parameters of the other air conditioners will also change accordingly. After turning on the "AI Perception" function, if the user presses the "AI Perception" button again through a device such as a remote control or mobile phone app, the air conditioner will shut down this function and continue to operate in the current state, and will no longer affect other air conditioners.
[0061] The device control method provided by the embodiment of the present disclosure obtains the operating parameters of the first device in the first space when the presence of a target object is detected in the first space; controls the second device in the second space to turn on when the target object is detected in the second space; and controls the second device according to the operating parameters. In this way, the device can be automatically turned on and adjusted to the working state set by the user without the user's perception, thereby improving the user experience.
[0062] FIG2 is a flow chart of another device control method provided by an embodiment of the present disclosure. As shown in FIG2 , the method specifically includes:
[0063] S21. When a target object is detected entering the first space, identity information of the target object is obtained; when a first time length during which the target object stays in the first space is greater than a first threshold, the first device is controlled to turn on; and parameter information and an operating mode of the first device corresponding to the identity information are obtained as the operating parameters.
[0064] In this embodiment, the first device and the second device are described as air conditioners. An infrared sensor and a camera are provided in the first space. When the infrared sensor detects that an object has entered the first space, an image of the object is acquired. The image may be a facial image or a full-body image. The server pre-stores images corresponding to one or more target objects, as well as identity information corresponding to each target object, and operating parameters corresponding to each identity information (the identity information is user A, and the corresponding operating parameters are: upper and lower air sweeping, cooling at 26 degrees, and timed off for one hour). This generates a correspondence between the target object, identity information, and operating parameters. The operating parameters represent the habits of the target object corresponding to each identity information when using the air conditioner. They can be input by the target object itself, or the historical operating parameters of the target object when using the air conditioner can be obtained as the operating parameters corresponding to the target object's identity information. These parameters may include, but are not limited to, the temperature information, operating mode, temperature, air sweeping, wind speed, operating time, etc. of the air conditioner.
[0065] In some embodiments, the captured image is compared with an image of the target object pre-stored on the server for similarity. When the similarity exceeds a set threshold, the object is determined to be the target object, and the target object's identity information is determined from the corresponding relationship. The time when the target object enters the first space is obtained, and the duration of the target object's stay in the first space is calculated based on the current time as a first duration. When the first duration exceeds a first threshold, indicating that the target object will remain in the first space for an extended period of time, the server sends a power-on command to control the first device to power on and obtains operating parameters corresponding to the identity information.
[0066] In one possible implementation, a target operation of a target object is received; a first device is controlled to start and operate according to the target operation; and current parameter information and operating mode of the first device are obtained as the operating parameters.
[0067] Specifically, the air conditioner needs to be in a preset working state, such as the "AI perception" state. In this state, the step of obtaining the operating parameters will be triggered only after the target object enters the first space. The target operation is the control triggered by the target object through the remote control or mobile phone APP to turn on the first device and turn on the AI perception state of the first device, as well as the operation of adjusting the working mode of the air conditioner. When the target object enters the first space, the target operation is triggered, the first device is turned on and runs, and the server obtains the current parameter information and working mode of the first device as operating parameters, where the parameter information may include: the air outlet temperature, working power, working time, wind speed, etc. of the first device, and the working mode may include: the first device is currently cooling, heating, dehumidification or air supply, etc.
[0068] S22. When a target object is detected entering the second space, image information of the target object is obtained; when the similarity between the image information and the preset image information is greater than a second threshold, the target object is determined to be in a stationary state, the first device is controlled to be turned off, and the second device is controlled to be turned on.
[0069] In this embodiment, when the target object is not present in the second space, the second device is turned off. The second space is equipped with an infrared sensor and a camera. When the infrared sensor detects the entry of an object into the second space, a full-body image and facial image of the object are captured as image information. When the similarity between the facial image and the target object's facial image exceeds a set threshold, the object is determined to be the target object. In some embodiments, the full-body image is used to determine whether the target object is in a stationary state. The determination method is to determine whether the user's current posture is sitting, standing, or lying based on the full-body image. If the target object is in a sitting or lying position, the target object is determined to be in a stationary state. The stationary state indicates that the target object will be in the second space for an extended period of time, and the second device needs to be activated. If the target object is in a standing position, the target object is determined to be in a non-stationary state. The non-stationary state indicates that the target object will be in the second space for a short period of time, and the second device does not need to be activated. The judgment method may be to pre-set preset image information, which may be an image of the target object in a sitting or lying position, determine the similarity between the full-body image in the user's image information and the preset image information, and when the similarity is greater than a second threshold, determine that the target object is in a staying state, indicating that the target object moves from the first space to the second space and stays in the second space for a long time. At this time, the first device is controlled to be turned off, and the second device is controlled to be turned on.
[0070] In one possible embodiment, when the second space is a vehicle, it is possible to determine whether the door is closed or whether the vehicle is opened after the target object enters the vehicle. When it is determined that the door is not closed or the vehicle is not opened, the target object is determined to be in a non-stationary state. When it is determined that the door is closed and the vehicle is opened, the target object is determined to be in a stationary state. At this time, the first device is controlled to be closed, and the second device is controlled to be opened.
[0071] In one possible embodiment, when the similarity between the image information and the preset image information is less than or equal to a second threshold, it is determined that the target object is in a non-staying state; in some embodiments, a second duration of the target object's stay in the second space is obtained. When the second duration is greater than a third threshold, it indicates that the target object has changed from a non-staying state to a stay state, and the first device is controlled to be turned off, and the second device is controlled to be turned on.
[0072] S23. Control the second device according to the operating parameters.
[0073] This embodiment is similar to step S13. Please refer to the relevant description in FIG. 1 for details. For the sake of brevity, detailed description is omitted here.
[0074] In one possible embodiment, when the presence of a first object and a second object is detected in a first space, a first operating parameter corresponding to the first object and a first priority of the first operating parameter are obtained; a second operating parameter corresponding to the second object and a second priority of the second operating parameter are obtained; the first device is controlled to turn on, and the first device is controlled to operate according to the first operating parameter.
[0075] When it is detected that only the second object exists in the first space and only the first object exists in the second space, the first device is controlled to operate according to the second operating parameters; the second device is controlled to be turned on, and the second device is controlled to operate according to the first operating parameters.
[0076] Specifically, the server pre-stores operating parameters corresponding to each target object and the priority level of each operating parameter. When multiple target objects appear simultaneously in the first space, the air conditioner is controlled to operate according to the operating parameters with the highest priority level. When the multiple target objects are the first object and the second object, the server obtains the first operating parameter and the corresponding first priority level, and the second operating parameter and the corresponding second priority level, respectively, with the first priority level being higher than the second priority level. The server then controls the first device to turn on and operate according to the first operating parameter level.
[0077] When the first object is detected to have left the first space, and only the second object is present in the first space, the first device is controlled to operate according to the second operating parameters. When the first object is detected to have entered the second space, the second device is controlled to be turned on and to operate according to the first operating parameters. When the first object is detected to have re-entered the first space, the priority between the first and second objects is re-determined, and the first device is controlled to operate according to the first operating parameters.
[0078] The control method of the device provided by the embodiment of the present disclosure is as follows: when the target object is detected to enter the first space, the identity information of the target object is obtained; when the first time length of the target object's stay in the first space is greater than a first threshold, the first device is controlled to turn on; the parameter information and working mode of the first device corresponding to the identity information are obtained as operating parameters; when the target object is detected to enter the second space, the image information of the target object is obtained; when the similarity between the image information and the preset image information is greater than a second threshold, the target object is determined to be in a staying state, the first device is controlled to turn off, and the second device is controlled to turn on; the second device is controlled according to the operating parameters; thereby, the device can be automatically turned on and adjusted to the working state set by the user without the user's perception, without the user having to manually adjust the devices in different spaces, thereby improving the user experience.
[0079] FIG4 is a schematic diagram of the structure of a control device of a device provided by an embodiment of the present disclosure. As shown in FIG4 , the device specifically includes:
[0080] An acquisition module 41 is configured to acquire operating parameters of a first device in a first space when a target object is detected in the first space;
[0081] The control module 42 is configured to control the second device in the second space to turn on when the target object is detected in the second space;
[0082] The control module 42 is further configured to control the second device according to the operating parameters.
[0083] In a possible implementation, the acquisition module is specifically configured to acquire identity information of the target object when detecting that the target object enters the first space;
[0084] The control module is specifically configured to control the first device to turn on when a first time length during which the target object stays in the first space is greater than a first threshold;
[0085] The acquisition module is specifically configured to acquire parameter information and an operating mode of the first device corresponding to the identity information as the operating parameters;
[0086] A receiving module 43 is configured to receive a target operation of the target object;
[0087] The control module is specifically configured to control the first device to start and operate according to the target operation;
[0088] The acquisition module is specifically configured to acquire the current parameter information and working mode of the first device as the operating parameters.
[0089] In a possible implementation, the acquisition module is specifically configured to acquire image information of the target object when detecting that the target object enters the second space;
[0090] The determination module 44 is configured to determine that the target object is in a stationary state when the similarity between the image information and the preset image information is greater than a second threshold value,
[0091] The first device is controlled to be turned off, and the second device is controlled to be turned on.
[0092] In a possible implementation, the determining module is further configured to determine that the target object is in a non-staying state when the similarity between the image information and the preset image information is less than or equal to a second threshold;
[0093] The control module is further configured to control the first device to be turned off and the second device to be turned on when the second time period during which the target object stays in the second space is greater than a third threshold.
[0094] In a possible implementation, the acquisition module is further configured to acquire a first operating parameter corresponding to the first object and a first priority of the first operating parameter;
[0095] Obtaining a second operating parameter corresponding to the second object and a second priority of the second operating parameter;
[0096] The control module is further configured to control the first device to start up and control the first device to operate according to the first operating parameters, and the first priority is higher than the second priority.
[0097] In a possible implementation, the control module is further configured to control the first device to operate according to the second operating parameter when it is detected that only the second object exists in the first space and only the first object exists in the second space;
[0098] The second device is controlled to start, and the second device is controlled to operate according to the first operating parameters.
[0099] In a possible implementation, the acquisition module is further configured to acquire a third duration for which the first device has been running when it is detected that the target object leaves the first space;
[0100] The determining module is further configured to determine a fourth duration remaining from the running time according to the running time and the third duration;
[0101] The control module is further configured to control the second device to turn on and operate according to the fourth duration and the operating parameters when the target object is detected in the second space.
[0102] The device control device provided in this embodiment may be a device as shown in FIG4 , which can execute all steps of the control method of the device as shown in FIG1-3 , thereby achieving the technical effect of the control method of the device as shown in FIG1-3 . For details, please refer to the relevant description of FIG1 . For the sake of brevity, it will not be elaborated here.
[0103] FIG5 is a schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. The computer device 500 shown in FIG5 includes: at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in the computer device 500 are coupled together via a bus system 505. It will be understood that the bus system 505 is configured to enable connection and communication between these components. In addition to including a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in FIG5, all of the various buses are labeled as the bus system 505.
[0104] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen).
[0105] It is understood that the memory 502 in the embodiment of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0106] In some embodiments, the memory 502 stores the following elements, executable units, or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022 .
[0107] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, and a driver layer, and is configured to implement various basic services and handle hardware-based tasks. Application programs 5022 include various application programs, such as a media player and a browser, and are configured to implement various application services. Programs implementing the methods of the embodiments of the present disclosure may be included in application programs 5022.
[0108] In the embodiment of the present disclosure, by calling the program or instructions stored in the memory 502, specifically, the program or instructions stored in the application 5022, the processor 501 is configured to execute the method steps provided in each method embodiment, for example, including:
[0109] When the target object is detected in the first space, obtaining the operating parameters of the first device in the first space;
[0110] When the target object is detected in the second space, controlling the second device in the second space to turn on;
[0111] The second device is controlled according to the operating parameters.
[0112] In one possible implementation, when a target object is detected to enter the first space, identity information of the target object is acquired;
[0113] When a first time period during which the target object stays in the first space is greater than a first threshold, controlling the first device to turn on;
[0114] Parameter information and an operating mode of the first device corresponding to the identity information are obtained as the operating parameters.
[0115] In one possible implementation, when it is detected that a target object enters the second space, image information of the target object is acquired;
[0116] When the similarity between the image information and the preset image information is greater than a second threshold, it is determined that the target object is in a stationary state.
[0117] The first device is controlled to be turned off, and the second device is controlled to be turned on.
[0118] In a possible implementation, when the similarity between the image information and the preset image information is less than or equal to a second threshold, it is determined that the target object is in a non-staying state;
[0119] When the second time period that the target object stays in the second space is greater than a third threshold, the first device is controlled to be turned off, and the second device is controlled to be turned on.
[0120] In one possible implementation, obtaining a first operating parameter corresponding to the first object and a first priority of the first operating parameter;
[0121] Obtaining a second operating parameter corresponding to the second object and a second priority of the second operating parameter;
[0122] The first device is controlled to be turned on, and the first device is controlled to operate according to the first operating parameter, the first priority being higher than the second priority.
[0123] In one possible implementation, when it is detected that only the second object exists in the first space, and only the first object exists in the second space, the first device is controlled to operate according to the second operating parameter;
[0124] The second device is controlled to start, and the second device is controlled to operate according to the first operating parameters.
[0125] In a possible implementation, when it is detected that the target object leaves the first space, a third duration for which the first device has been running is acquired;
[0126] Determine a fourth duration remaining from the running time according to the running time and the third duration;
[0127] When the target object is detected to appear in the second space, the second device is controlled to be turned on, and the second device is controlled to operate according to the fourth duration and the operating parameters.
[0128] The methods disclosed in the above embodiments of the present disclosure can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 501 or by software instructions. The above processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of the present disclosure can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software units in the decoding processor. The software units can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 502 , and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0129] It is understood that the embodiments described herein may be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present disclosure, or a combination thereof.
[0130] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0131] The computer device provided in this embodiment may be a computer device as shown in FIG5 , which may execute all steps of the control method of the device as shown in FIG1-3 , thereby achieving the technical effect of the control method of the device as shown in FIG1-3 . For details, please refer to the relevant description of FIG1-3 . For the sake of brevity, it will not be elaborated here.
[0132] The present disclosure also provides a storage medium (computer-readable storage medium). The storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and the memory may also include a combination of the aforementioned types of memory.
[0133] When one or more programs in the storage medium can be executed by one or more processors, the control method of the device executed on the device side can be implemented.
[0134] The processor is configured to execute a device control program stored in the memory to implement the following steps of a device control method executed on the device side:
[0135] When the target object is detected in the first space, obtaining the operating parameters of the first device in the first space;
[0136] When the target object is detected in the second space, controlling the second device in the second space to turn on;
[0137] The second device is controlled according to the operating parameters.
[0138] In one possible implementation, when a target object is detected to enter the first space, identity information of the target object is acquired;
[0139] When a first time period during which the target object stays in the first space is greater than a first threshold, controlling the first device to turn on;
[0140] Parameter information and an operating mode of the first device corresponding to the identity information are obtained as the operating parameters.
[0141] In one possible implementation, when it is detected that a target object enters the second space, image information of the target object is acquired;
[0142] When the similarity between the image information and the preset image information is greater than a second threshold, it is determined that the target object is in a stationary state.
[0143] The first device is controlled to be turned off, and the second device is controlled to be turned on.
[0144] In a possible implementation, when the similarity between the image information and the preset image information is less than or equal to a second threshold, it is determined that the target object is in a non-staying state;
[0145] When the second time period that the target object stays in the second space is greater than a third threshold, the first device is controlled to be turned off, and the second device is controlled to be turned on.
[0146] In one possible implementation, obtaining a first operating parameter corresponding to the first object and a first priority of the first operating parameter;
[0147] Obtaining a second operating parameter corresponding to the second object and a second priority of the second operating parameter;
[0148] The first device is controlled to be turned on, and the first device is controlled to operate according to the first operating parameter, the first priority being higher than the second priority.
[0149] In one possible implementation, when it is detected that only the second object exists in the first space, and only the first object exists in the second space, the first device is controlled to operate according to the second operating parameter;
[0150] The second device is controlled to start, and the second device is controlled to operate according to the first operating parameters.
[0151] In a possible implementation, when it is detected that the target object leaves the first space, a third duration for which the first device has been running is acquired;
[0152] Determine a fourth duration remaining from the running time according to the running time and the third duration;
[0153] When the target object is detected to appear in the second space, the second device is controlled to be turned on, and the second device is controlled to operate according to the fourth duration and the operating parameters.
[0154] Professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.
[0155] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0156] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present disclosure in detail. It should be understood that the above description is only a specific implementation method of the present disclosure and is not intended to limit the scope of protection of the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A method for controlling a device, comprising: When the target object is detected in the first space, obtaining the operating parameters of the first device in the first space; When the target object is detected to appear in the second space, controlling the second device in the second space to turn on; The second device is controlled according to the operating parameter.
2. The method according to claim 1, wherein: When the target object is detected in the first space, obtaining the operating parameters of the first device in the first space includes: When a target object is detected to enter the first space, obtaining identity information of the target object; When a first time length during which the target object stays in the first space is greater than a first threshold, controlling the first device to turn on; Parameter information and an operating mode of the first device corresponding to the identity information are obtained as the operating parameters.
3. The method according to claim 2, wherein: When the target object is detected to appear in the second space, controlling the second device in the second space to turn on includes: When detecting that a target object enters the second space, acquiring image information of the target object; When the similarity between the image information and the preset image information is greater than a second threshold, it is determined that the target object is in a stationary state. The first device is controlled to be turned off, and the second device is controlled to be turned on.
4. The method according to claim 3, wherein: The method further comprises: When the similarity between the image information and the preset image information is less than or equal to a second threshold, determining that the target object is in a non-staying state; When the second time length of the target object staying in the second space is greater than a third threshold, The first device is controlled to be turned off, and the second device is controlled to be turned on.
5. The method according to claim 2, wherein: When it is detected that the first object and the second object exist in the first space, the method further includes: Acquire a first operating parameter corresponding to the first object and a first priority of the first operating parameter; Acquire a second operating parameter corresponding to the second object and a second priority of the second operating parameter; The first device is controlled to be turned on, and the first device is controlled to operate according to the first operating parameter, and the first priority is higher than the second priority.
6. The method according to claim 5, wherein: The method further comprises: When it is detected that only the second object exists in the first space, and only the first object exists in the second space, controlling the first device to operate according to the second operating parameter; The second device is controlled to start, and the second device is controlled to operate according to the first operating parameters.
7. The method according to claim 1, wherein: When the operating parameters include the operating time, the method further includes: When it is detected that the target object leaves the first space, obtaining a third time length that the first device has been running; Determine a fourth duration remaining of the running time according to the running time and the third duration; When the target object is detected to appear in the second space, the second device is controlled to turn on, and the second device is controlled to operate according to the fourth duration and the operating parameters.
8. A control device for an equipment, comprising: an acquisition module, configured to acquire an operating parameter of a first device in a first space when a target object is detected in the first space; The control module is configured to control the target object to appear in the second space when the target object is detected. The second device in the second space is turned on; The control module is further configured to control the second device according to the operating parameters.
9. A computer device comprising: A processor and a memory, wherein the processor is configured to execute a control program of the device stored in the memory to implement the control method of the device according to any one of claims 1 to 7.
10. A storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the control method of the device according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and apparatus for controlling temperature
CN106461260A
Air conditioner control method and device, storage medium and processor
CN108253588A
Air conditioner control method and device and air conditioner
CN108981109A
Air-conditioner control method, device and storage medium and electrical appliance equipment
CN110553361A
Equipment control method and device, computer equipment and storage medium
CN116520715A
