Control method, system and device of intelligent equipment and electronic equipment
By detecting target events in the smart camera and adjusting the monitoring mode in advance, the problem of day and night mode switching delay of the smart camera is solved, and the mode switching intelligence and image quality are improved.
Patent Information
- Application Number
- CN202411107473.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-12-06
AI Technical Summary
When the smart camera automatically switches in day and night mode, it relies on photosensitive detection, resulting in delayed switching of image processing parameters, affecting image quality, and low intelligence in mode switching.
By detecting target events in the target space, adjusting the monitoring mode in advance to match it with the upcoming environmental state, avoiding delayed switching, and improving the intelligence of mode switching.
It effectively improves the intelligence of smart device mode switching, reduces image color changes, and improves video viewing effect.
Smart Images

Figure CN119087852A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a control method, device, electronic device, computer-readable storage medium and computer program product for an intelligent device. Background Art
[0002] With the rise of Internet of Things technology, more and more smart devices are being deployed in the Internet of Things. For example, smart cameras can be deployed in the Internet of Things to monitor the space so that users can understand the on-site situation of the space in real time.
[0003] Automatic switching of day and night modes is one of the functions of smart cameras. In the related art, smart cameras automatically switch between day and night modes after detecting changes in ambient light based on their own light-sensitive sensors.
[0004] However, this method of switching after detecting changes in ambient light through photosensitivity will cause a delay in switching the camera's image processing parameters, resulting in a large change in the color of the image provided by the smart camera, affecting the quality of the image provided by the smart camera.
[0005] Therefore, there is a problem in the related art that the mode switching of smart devices is relatively low in intelligence. Summary of the invention
[0006] Based on this, it is necessary to provide a control method, device, electronic device, computer-readable storage medium and computer program product for an intelligent device that can improve the intelligence of mode switching of the intelligent device in response to the above technical problems.
[0007] In a first aspect, the present application provides a control method for a smart device, comprising:
[0008] If it is detected that a target event in the automation scheme under the target space is triggered, the monitoring mode of the target device is adjusted according to the triggered target event; the triggered target event is used to instruct the controlled device in the automation scheme to perform a target action; the target action is used to change the environmental state in the target space.
[0009] In a second aspect, the present application also provides a control system for an intelligent device, the system comprising a target device and a trigger device connected to the target device;
[0010] The trigger device is used to report the target event to the target device when detecting that a target event in the automation solution under the target space is triggered;
[0011] The target device is used to execute the control method of the smart device as described above.
[0012] In a third aspect, the present application also provides a control device for an intelligent device, comprising:
[0013] An adjustment module is used to adjust the monitoring mode of the target device according to the triggered target event if it is detected that a target event in the automation scheme under the target space is triggered; the triggered target event is used to instruct the controlled device in the automation scheme to perform a target action; the target action is used to change the environmental state in the target space.
[0014] In one of the embodiments, the adjustment module is specifically used to control the target device to switch to a monitoring mode that matches the changed environmental state in the target space according to the triggered target event.
[0015] In one embodiment, the monitoring mode includes a first mode; the adjustment module is specifically used to control the target device to switch to the first mode when the target action is to turn on the controlled device in the target space; the first mode is a monitoring mode that matches the changed environmental state in the target space after turning on the controlled device.
[0016] In one of the embodiments, the adjustment module is specifically used to obtain the current ambient brightness value of the target space when the target action is to turn on the controlled device in the target space; and control the target device to switch to the first mode when the current ambient brightness value is lower than a preset brightness threshold.
[0017] In one of the embodiments, the adjustment module is specifically used to control the target device to switch from the current image processing parameter to the first image processing parameter before the environmental state in the target space changes when the target action is to turn on the controlled device in the target space; the first image processing parameter is an image processing parameter that matches the first mode.
[0018] In one embodiment, the monitoring mode includes a second mode; the adjustment module is further specifically used to obtain the current ambient brightness value of the target space when the target device is in the first mode for a preset time; when the current ambient brightness value is lower than a preset brightness threshold, control the target device to switch from the first mode to the second mode; the second mode is a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned off.
[0019] In one embodiment, the monitoring mode includes a second mode; the adjustment module is specifically used to control the target device to switch to the second mode when the target action is to turn off the controlled device in the target space; the second mode is a monitoring mode that matches the changed environmental state in the target space after turning off the controlled device.
[0020] In one of the embodiments, the adjustment module is specifically used to obtain the current ambient brightness value of the target space when the target action is to turn off the controlled device in the target space; and control the target device to switch to the second mode when the current ambient brightness value is higher than a preset brightness threshold.
[0021] In one of the embodiments, the device also includes: a query module, which is used to search for an automation plan associated with the event in an automation list in response to an event currently detected in the target space; and if the target action exists in the automation plan associated with the event, determine that the event is the target event.
[0022] In a fourth aspect, the present application further provides an electronic device, wherein the electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0023] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.
[0024] In a sixth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0025] The control method, device, system, electronic device, computer-readable storage medium and computer program product of the above-mentioned intelligent device, if the target event in the automation scheme under the target space is detected to be triggered, the monitoring mode of the target device is adjusted according to the triggered target event; the triggered target event is used to instruct the controlled device in the automation scheme to perform the target action; the target action is used to change the environmental state in the target space. In this way, the time when the target device of the present application switches the monitoring mode is earlier than the time when the environmental state of the target space changes in the related art, that is, after the target action is executed, and then the photosensitive detection is triggered to automatically switch. The present application can adjust the monitoring mode of the target device in the target space for the target space whose environmental state is about to change at the moment when the target event is triggered. This method of switching the monitoring mode before the target action is executed can avoid the delay in switching the monitoring mode of the target device due to the switching of the monitoring mode after the environmental state changes, thereby causing a large change in the image color of the target device at the moment after the environmental state changes, affecting the video viewing effect of the target device. Therefore, the scheme of switching the monitoring mode in advance based on the triggered target event in the present application effectively improves the intelligence of the mode switching of the intelligent device. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 An application environment diagram of a control method for an intelligent device in an embodiment;
[0028] Figure 2 A schematic diagram of a flow chart of a control method of an intelligent device in an embodiment;
[0029] FIG3 (a) is an image captured in chronological order when switching from night mode to day mode in one embodiment;
[0030] FIG3( b ) is another image captured in chronological order when switching from night mode to day mode in one embodiment;
[0031] FIG3( c ) is another image captured in chronological order when switching from night mode to day mode in an embodiment;
[0032] Figure 4 A schematic diagram of a flow chart of a control method of a smart device in an embodiment;
[0033] Figure 5 A structural block diagram of a control system of an intelligent monitoring device in an embodiment;
[0034] Figure 6 A structural block diagram of a control device of an intelligent device in an embodiment;
[0035] FIG. 7 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0038] Figure 1 FIG. 1 is a schematic diagram of an implementation environment involved in a control method for an intelligent device. Figure 1 As shown, the implementation environment includes a user terminal 110, a smart device 130, a gateway 150, a server 170, and a routing device 190. In the implementation environment, the gateway 150 is responsible for connecting the smart device 130 deployed in the gateway 150 to the network through the routing device 190, so that the smart device 130 can respond to the control of the user terminal 110.
[0039] Specifically, the user terminal 110, which can also be considered as a user end or terminal, can deploy (also understood as install) the client associated with the smart device 130. This user terminal 110 can be a smart phone, tablet computer, laptop computer, desktop computer and other electronic smart devices, which are not limited here.
[0040] Among them, the client is associated with the smart device 130, which essentially means that the user registers an account in the client and configures the smart device 130 in the client. For example, the configuration includes adding a device identification to the smart device 130, so that when the client is run in the user terminal 110, it can provide the user with functions such as device control of the smart device 130. This client can be in the form of an application or a web page. Accordingly, the interface for displaying the device identification on the client can be in the form of a program window or a web page, which is not limited here.
[0041] The smart device 130 is deployed in the gateway 150, and communicates with the gateway 150 through its own configured communication module, and is then controlled by the gateway 150. It should be understood that the smart device 130 generally refers to one of the multiple smart devices 130, and the embodiment of the present application only takes the smart device 130 as an example, that is, the embodiment of the present application does not limit the number and device type of smart devices deployed in the gateway 150. In an application scenario, the smart device 130 accesses the gateway 150 through a local area network, and is thus deployed in the gateway 150. The process of the smart device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the smart device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150. This local area network includes, but is not limited to: ZIGBEE or Bluetooth. Among them, the smart device 130 can be a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart door lock, a smart light, and can also be an electronic device such as a human body sensor, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall sticker switch, a magic cube controller, a curtain motor, etc. equipped with a communication module.
[0042] The interaction between the user terminal 110 and the smart device 130 can be achieved through a local area network or a wide area network. In one application scenario, the user terminal 110 establishes a communication connection between the routing device 190 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to WIFI, so that the user terminal 110 and the gateway 150 are deployed in the same local area network, so that the user terminal 110 can interact with the smart device 130 through the local area network path. In another application scenario, the user terminal 110 establishes a communication connection between the server 170 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to 2G, 3G, 4G, 5G, WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, so that the user terminal 110 can interact with the smart device 130 through the wide area network path.
[0043] The server end 170 may also be considered as a cloud, a cloud platform, a platform end, a service end, etc. The server end 170 may be a server, a server cluster consisting of multiple servers, or a cloud computing center consisting of multiple servers, so as to better provide background services to a large number of user terminals 110. For example, the background services include control services for smart devices.
[0044] In an application scenario, a user can configure an automation solution using the user terminal 110. According to the automation solution configured by the user terminal 110, the control of the smart devices 130 within the scope of the local area network can be realized. Automation refers to a linkage application built between the gateway 150 or the smart devices 130 connected to the gateway 150; the automation solution is configured with trigger conditions and execution actions, and the devices that realize the automation scene control include a trigger device and a controlled device (or execution device), and the two are connected to each other through the gateway 150. When the trigger device meets the trigger condition, the gateway 150 controls the controlled device to perform the corresponding execution action.
[0045] The trigger device refers to an intelligent device used to monitor the environmental conditions of the target space, and the controlled device refers to an intelligent device that performs actions in the target space. The trigger device can be various environmental sensing devices such as pressure sensors, temperature sensors, humidity sensors, door and window sensors, or smoke sensors. The controlled device can be various switches, sockets, etc.
[0046] As one way, the user terminal 110 can upload the automation plan to the server 170, so that when the triggering condition of the automation plan is met, the server 170 can find the controlled device corresponding to the execution action in the automation plan according to the stored automation plan, so as to notify the controlled device to perform the execution action. As another way, the server 170 can also send the automation plan to the gateway 150, and the gateway 150 can find the controlled device corresponding to the execution action in the automation plan according to the stored automation plan. At the same time, the gateway 150 can feed back the execution status of the controlled device to the server 170.
[0047] Assume that a user sets an automation scheme to control turning on the light when the door is opened. The trigger condition in this automation is that the door is opened, and the execution action is that the smart switch controls the light to turn on. Based on this application scenario, smart devices such as door magnetic sensors and smart door locks can be set as trigger devices, and smart switches connected to the light can be set as controlled devices. The specific execution principle is: if the automation is performed locally on the gateway 150 through the LAN path, the door magnetic sensors, smart door locks and other smart devices will sense that the door is open and report this event to the gateway 150. After the gateway 150 receives the door opening event, it finds the corresponding controlled device for the execution action according to the stored automation scheme, which is the smart switch in this embodiment, and notifies the smart switch to turn on the light, thereby realizing an automation scheme of "automatically turning on the light when the door is opened".
[0048] Under the wide area network path, the server 170 performs automation execution, and the door magnetic sensor, smart door lock and other smart devices sense that the door is open, and report this event to the gateway 150. After receiving the door opening event, the gateway 150 reports the event to the server 170. The server 170 finds the corresponding controlled device that performs the action according to the stored automation scheme, which is the smart switch in this embodiment, and notifies the smart switch to turn on the light through the gateway 150, thereby realizing an automation scheme of "automatically turning on the light when the door is opened". Among them, when the server 170 receives the event, if it is determined that the event is used to instruct the controlled device in the automation scheme to perform a target action that changes the environmental state in the target space, the event is used as the target event. Before the controlled device performs the target action, the monitoring mode of the target device is adjusted according to the triggered target event, so that the monitoring mode of the target device matches the changed environmental state in the target space.
[0049] In a control method of a smart device provided in the present application, the smart device 130 may also include a target device, which may be a smart monitoring device, which may be a device that performs real-time monitoring and analysis of a specific area or object. For example, the smart monitoring device may be a smart camera, a smart video camera, etc.
[0050] In order to facilitate the understanding of those skilled in the art, Figure 2 A flow chart of a method for controlling an intelligent device is provided, and the method is applied to an electronic device as an example for explanation. The electronic device may be Figure 1 The gateway 150, the server 170 or the smart device 130 as the target device in the method includes:
[0051] Step S210: If it is detected that a target event in the automation solution under the target space is triggered, the monitoring mode of the target device is adjusted according to the triggered target event.
[0052] The triggered target event is used to instruct the controlled device in the automation solution to perform the target action.
[0053] The target action is used to change the environmental state in the target space.
[0054] It is understandable that the target space refers to the space that needs to be monitored. The target space can be a relatively large open space, such as an office space, lecture hall, cinema, etc., or a relatively small closed space, such as a living room, bedroom, etc. in a house. The area of the target space is not limited here. In practical applications, the target space can be pre-configured with an automation solution to achieve control of the smart devices in the target space.
[0055] Among them, the target event can be an event currently occurring in the target space. When the trigger device detects the event currently occurring in the target space, it can be used to instruct the controlled device in the automation solution to perform a target action that changes the environmental state in the target space, and the event is then used as the target event.
[0056] The environmental state in the target space refers to various environmental parameters and features contained in the target space, which are used to describe the environmental characteristics and conditions of the target space. For example, the environmental state may include illumination and light conditions.
[0057] The change in the environmental state in the target space may refer to a change in the environmental parameters and / or features in the target space. For example, a change in the lighting environment of the target space may be understood as a change in the environmental state.
[0058] Among them, the lighting environment of the target space may include aspects such as light brightness, color temperature, light distribution and lighting effects.
[0059] The change in lighting environment may refer to a change in at least one aspect of the brightness, illumination, color temperature, light distribution and lighting effect of the light in the target space. For example, an increase in the brightness of the target space may be understood as a change in the lighting environment; a decrease in the illumination of the target space may also be understood as a change in the lighting environment.
[0060] In an application scenario, taking the electronic device as gateway 150 as an example, when the trigger device in the target space detects that a target event in the automation scheme under the target space is triggered, the target event can be reported to the gateway 150, so that the gateway 150 can respond to the detection of the target event being triggered. If the target event is used to instruct the controlled device in the automation scheme to perform a target action that changes the environmental state in the target space, the monitoring mode of the target device is adjusted according to the triggered target event.
[0061] The monitoring mode may refer to the specific manner and method adopted by the target device during the monitoring process. Different monitoring modes may be selected according to monitoring requirements and specific scenarios. For example, different monitoring modes may be selected according to different environmental conditions in the target space.
[0062] Specifically, in a local area network path, the gateway 150 can respond to the detection of a target event in the automation scheme under the target space being triggered. If the target event is used to instruct the controlled device in the automation scheme to perform a target action that changes the environmental state in the target space, the gateway 150 can notify the target device to adjust the monitoring mode. In a wide area network path, after receiving the target event, the gateway 150 can respond to the detection of the target event being triggered and report the target event to the server 170. If the target event is used to instruct the controlled device in the automation scheme to perform a target action that changes the environmental state in the target space, the server 170 notifies the target device to adjust the monitoring mode through the gateway 150.
[0063] In another application scenario, the electronic device is taken as the server 170 as an example. Under the wide area network path, when the trigger device in the target space detects that the target event in the automation scheme under the target space is triggered, the target event can be reported to the gateway 150. After receiving the target event, the gateway 150 reports the target event to the server 170. In response to detecting that the target event is triggered, the server 170 controls the target device in the target space to adjust the monitoring mode when the target event is used to instruct the controlled device in the automation scheme to perform a target action that changes the environmental state in the target space. Specifically, the server 170 can notify the target device to adjust the monitoring mode through the gateway 150.
[0064] In another application scenario, an electronic device is used as a target device for example. The target device may have a smart gateway function, and in this case, there is no need to use a separate gateway 150. When the trigger device in the target space detects that a target event in the automation solution is triggered, the target event may be reported to the target device. In response to detecting that the target event is triggered, the target device adjusts the monitoring mode when the target event is used to instruct the controlled device in the automation solution to perform a target action that changes the environmental state in the target space.
[0065] In some embodiments provided by the present application, the target event is used to instruct the controlled device in the automation solution to perform a target action that changes the environmental state in the target space. In this case, the monitoring mode of the target device is adjusted in advance before the environmental state of the target space changes, so as to achieve early switching of the monitoring mode, instead of adjusting the monitoring mode of the target device after the environmental state of the target space changes (i.e., the target space is already in the changed environmental state).
[0066] For example, if the target action will increase the illumination of the target space, then before the illumination of the target space increases, the target device is controlled in advance to switch to a monitoring mode that matches the lighting environment where the target space will be after the illumination increases.
[0067] In the control method of the above-mentioned intelligent device, if the target event in the automation scheme under the target space is detected to be triggered, the monitoring mode of the target device is adjusted according to the triggered target event; the triggered target event is used to instruct the controlled device in the automation scheme to perform the target action; the target action is used to change the environmental state in the target space. In this way, the time when the target device of the present application switches the monitoring mode is earlier than the time when the environmental state of the target space changes in the related art, that is, after the target action is executed, and then the photosensitive detection is triggered to automatically switch. The present application can adjust the monitoring mode of the target device in the target space for the target space whose environmental state is about to change at the moment when the target event is triggered. This method of switching the monitoring mode before the target action is executed can avoid the delay in switching the monitoring mode of the target device due to the switching of the monitoring mode after the environmental state changes, thereby causing a large change in the image color of the target device at the moment after the environmental state changes, affecting the video viewing effect of the target device. Therefore, the scheme of switching the monitoring mode in advance based on the triggered target event in the present application effectively improves the intelligence of the mode switching of the intelligent device.
[0068] In one embodiment, adjusting the monitoring mode of the target device according to the triggered target event includes: according to the triggered target event, controlling the target device to switch to a monitoring mode that matches the changed environmental state in the target space.
[0069] In a specific implementation, when the electronic device adjusts the monitoring mode of the target device according to the triggered target event, it can control the target device to switch to a monitoring mode that matches the changed environmental state in the target space according to the triggered target event.
[0070] For example, if the target action causes the lighting environment of the target space to change, the target device is controlled to switch to a monitoring mode that matches the changed lighting environment.
[0071] In this way, if the target event is used to instruct the controlled device in the automation solution to execute the target action that changes the environmental state in the target space, then before the environmental state in the target space changes, the target device is controlled to switch to the monitoring mode that matches the changed environmental state in advance to achieve early switching of the monitoring mode. Instead of switching the target device to the monitoring mode that matches the changed environmental state after the environmental state in the target space changes (that is, the target space is already in the changed environmental state). This method of switching the monitoring mode before the target action is executed can avoid the delay in switching the monitoring mode of the target device due to switching the monitoring mode after the environmental state changes, thereby causing a large change in the image color of the target device at the moment the environmental state changes, affecting the video viewing effect of the target device.
[0072] In one embodiment, the monitoring mode includes a first mode; according to the triggered target event, the target device is controlled to switch to a monitoring mode that matches the changed environmental state in the target space, including: when the target action is to turn on the controlled device in the target space, the target device is controlled to switch to the first mode.
[0073] Among them, the first mode is a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned on.
[0074] In a specific implementation, when the electronic device controls the target device to switch to a monitoring mode that matches the changed environmental state in the target space according to a triggered target event, the electronic device can control the target device to switch to a first mode when the target action is to turn on the controlled device in the target space. The first mode can be a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned on.
[0075] In some embodiments, the target action of turning on the controlled device in the target space can increase the brightness of the target space. For example, the controlled device can be a lighting device, and the target action can be turning on the light in the target space, or the controlled device can be an electronic curtain device, and the target action can be opening the electronic curtain in the target space. Accordingly, the first mode can be a daytime mode suitable for the target space in a lighting environment with a high illuminance value.
[0076] In some embodiments, the target device may include two monitoring modes: day mode and night mode.
[0077] The day mode is suitable for target spaces in lighting environments with high illuminance values, while the night mode is suitable for target spaces in lighting environments with low illuminance values. The day mode and night mode can correspond to different Image Signal Processor (ISP) parameters. The ISP parameters of the day mode will focus more on bright colors and obvious contrast, while the night mode will focus more on brightness enhancement and noise reduction to meet the monitoring needs under different light conditions.
[0078] In some embodiments, when the target action is to turn on the controlled device in the target space, the electronic device can control the target device to switch from the second mode to the first mode. The second mode can be a night mode.
[0079] In this way, the electronic device can control the target device to switch to the first mode when the target action of turning on the controlled device in the target space is found in the automation scheme associated with the target event. Thus, the target device is switched to the first mode in advance before the controlled device in the target space is turned on, avoiding the situation where the color of the image provided by the target device changes greatly due to the monitoring mode switching after the controlled device is turned on, which affects the viewing effect of the monitoring video.
[0080] In one embodiment, when the target action is to turn on the controlled device in the target space, controlling the target device to switch to the first mode includes: when the target action is to turn on the controlled device in the target space, before the environmental state in the target space changes, controlling the target device to switch from the current image processing parameters to the first image processing parameters.
[0081] The first image processing parameter is an image processing parameter matching the first mode.
[0082] In a specific implementation, when the target action is to turn on the controlled device in the target space, the electronic device controls the target device to switch to the first mode. When the target action is to turn on the controlled device in the target space, the electronic device can control the target device to switch from the current image processing parameters to the first image processing parameters before the environmental state in the target space changes.
[0083] In some embodiments, when the target action is to turn on the controlled device in the target space, the electronic device can control the target device to switch from the second mode to the first mode. Accordingly, the current image processing parameter can be the image processing parameter corresponding to the second mode. In practical applications, the image processing parameter corresponding to the second mode can be named the second image processing parameter.
[0084] Among them, the second mode can be a night mode, and the first mode can be a day mode. In the process of controlling the target device to switch from night mode to day mode, the electronic device can control the target device to switch from the ISP parameters corresponding to the night mode to the ISP parameters corresponding to the day mode.
[0085] Among them, ISP parameters may include but are not limited to at least one parameter such as image IQ parameters (resolution, contrast, sharpness, dynamic range, etc.), frame rate, white balance, image enhancement, color correction, etc.
[0086] In this way, when the trigger device detects the target event and the target event is used to instruct the controlled device in the automation scheme to perform the target action that changes the environmental state in the target space, the electronic device can control the target device to adjust the ISP parameters. At the moment the target event is triggered, the ISP parameters of the target device can be switched to a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned on, so that the image processing parameters are switched before the environmental state in the target space changes. The time for switching the ISP parameters in this way is earlier than the time in the related art when the environmental detection is triggered to automatically switch the ISP parameters after the controlled device is turned on. After the controlled device is turned on, the target device can obtain a color image, avoiding the situation where the image color is switched due to the ISP parameter switching after the controlled device is turned on, which affects the video viewing effect.
[0087] Taking the target action used to increase the brightness of the target space as an example, when the electronic device determines that the target event is used to instruct the controlled device in the automation solution to execute the action to increase the brightness of the target space, the electronic device can control the target device to adjust the ISP parameters. At the moment the target event is triggered, the ISP parameters of the target device can be adjusted from night mode to day mode, so that before the brightness in the target space increases, the image processing parameters have been switched to the first image processing parameters that match the day mode. The time for switching ISP parameters in this way is earlier than the time in the related art when the photosensitive detection is triggered to automatically switch ISP parameters after the controlled device is turned on. After the controlled device is turned on, the target device can obtain a color image, avoiding the situation where the image color is switched due to the ISP parameter switching after the controlled device is turned on, which affects the video viewing effect.
[0088] For example, in the related art, the light sensor of the target device is used to judge the intensity of the ambient light in the target space to determine whether the day mode or the night mode is needed, so as to automatically switch the ISP parameters when it is determined that the mode should be changed. However, at night, in scenes such as turning on the lights at home, the ISP parameters are switched after the illumination detection by the light sensor, which will cause the ISP parameter switching delay of the target device, resulting in a large change in the image color of the target device at the moment when the target event is triggered (for example, the target event is a door opening event, and the door opening event occurs in the target space), resulting in poor video viewing effect. For example, Figure 3 (a), Figure 3 (b) and Figure 3 (c) provide images captured in chronological order from night mode to day mode. It can be seen from Figure 3 (a), Figure 3 (b) and Figure 3 (c) that when switching to color mode (day mode), it takes a certain response time for the image collected by the target device to converge to the normal image effect. That is, the monitoring mode switching method of the target device in the related art has the problem of monitoring mode switching delay, which affects the video viewing effect.
[0089] In one embodiment, when the target action is to turn on the controlled device in the target space, the target device is controlled to switch to the first mode, including: when the target action is to turn on the controlled device in the target space, obtaining the current ambient brightness value of the target space; when the current ambient brightness value is lower than a preset brightness threshold, controlling the target device to switch to the first mode.
[0090] The current environment brightness value is the current environment brightness value of the target space. The environment brightness value is used to characterize the current brightness of the target space. In some embodiments, the environment brightness value may include an illumination value. That is, the current environment brightness value may include a current illumination value.
[0091] In a specific implementation, when the target action is to turn on the controlled device in the target space, while the electronic device is controlling the target device to switch to the first mode, the electronic device may obtain the current ambient brightness value of the target space when the target action is to turn on the controlled device in the target space; and control the target device to switch to the first mode when the current ambient brightness value is lower than a preset brightness threshold.
[0092] Among them, if it is determined that the current ambient brightness value of the target space is lower than the preset brightness threshold, it can be determined that the current brightness of the target space is low, the controlled device is not turned on, the target device is currently in the second mode, and the target action associated with the target event will be executed. Therefore, the electronic device will control the target device to switch from the second mode to the first mode.
[0093] In some embodiments, when the target action is to turn on a controlled device in a target space, the electronic device can obtain the current illumination value of the target space, compare the current illumination value with a preset illumination threshold, and control the target device to switch from night mode to day mode when the current illumination value is lower than the preset illumination threshold.
[0094] Specifically, when the target action is to turn on the controlled device in the target space, if it is determined that the current illumination value of the target space is lower than the preset illumination threshold, it can be determined that the controlled device in the target space is not currently turned on, and the target device is currently in night mode. The target execution action associated with the target event will be executed. Therefore, the electronic device will control the target device to switch from night mode to day mode.
[0095] The illuminance value of the target space can be measured by an illuminance sensor, which can be set on the target device. It is understandable that the illuminance sensor can be omitted and an image sensor can be used to detect the illuminance value through an algorithm to save hardware costs. It should be noted that the illuminance sensor can also be set in the target space so that the target device with the intelligent gateway function can obtain the illuminance value.
[0096] The technical solution of this embodiment is to obtain the current ambient brightness value of the target space when the target action is to turn on the controlled device in the target space; and to control the target device to switch to the first mode when the current ambient brightness value is lower than a preset brightness threshold. In this way, when the target action is to turn on the controlled device in the target space, the current ambient brightness value of the target space is further obtained. When the current ambient brightness value is lower than the preset illumination threshold, it can be determined that the controlled device in the target space is not currently turned on, and the target device is not currently in the first mode that matches the changed environmental state in the target space after the controlled device is turned on, so that the target device can be controlled to switch to the first mode in advance, effectively improving the intelligence of the monitoring mode switching of the target device.
[0097] In one embodiment, the monitoring mode includes a second mode, and after the step of controlling the target device to switch to the first mode, the method also includes: when the target device is in the first mode for a preset time, obtaining the current ambient brightness value of the target space; when the current ambient brightness value is lower than a preset brightness threshold, controlling the target device to switch from the first mode to the second mode.
[0098] Among them, the preset duration can be set according to actual conditions and is not specifically limited here.
[0099] Among them, the second mode is a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned off.
[0100] In a specific implementation, after controlling the target device to switch to the first mode, the electronic device can monitor the time the target device maintains the first mode, and when the time the first mode is maintained is a preset time, obtain the current ambient brightness value of the target space; if the current ambient brightness value is lower than the preset brightness threshold, the target device is controlled to switch from the first mode to the second mode.
[0101] In some embodiments, the current ambient brightness value may include a current illuminance value. When the target device is in the first mode for a preset period of time, the electronic device can obtain the current illuminance value of the target space; when the current illuminance value is lower than a preset illuminance threshold, the target device is controlled to switch from the first mode to the second mode.
[0102] Among them, the second mode can be a night mode suitable for the target space in a lighting environment with a low illuminance value, and the first mode can be a day mode suitable for the target space in a lighting environment with a high illuminance value. In some embodiments, when the target device maintains the day mode for a preset time, if the current environment brightness value is lower than the preset brightness threshold, it may indicate that the controlled device in the target space is turned off, or that the controlled device fails to execute the target action associated with the target event (i.e., automation failure). At this time, the lighting environment of the target space is at a low brightness value and the day mode is not applicable. Therefore, the target device needs to be switched from the day mode to the night mode to adapt to the current lighting environment of the target space to obtain a better video viewing effect.
[0103] It is understandable that the above is only an example of a specific embodiment of restoring the target device to another monitoring mode. The user can also set other ways to restore the target device to another monitoring mode on the user terminal.
[0104] The technical solution of this embodiment is to obtain the current environment brightness value of the target space when the target device is in the first mode for a preset time; when the current environment brightness value is lower than the preset brightness threshold, control the target device to switch from the first mode to the second mode; the second mode is a monitoring mode that matches the changed environment state in the target space after the controlled device is turned off. In this way, after the target device switches to the first mode for a certain period of time, by detecting whether the current environment brightness value of the target space is lower than the preset brightness threshold, it can be determined whether the controlled device in the target space is turned off, or whether the target action fails to execute, so that when the controlled device in the target space is turned off, or the target action fails to execute (i.e., automation fails), that is, when the environment state of the target space is not applicable to the first mode, the target device can be switched from the first mode to the second mode to adapt to the current environment state of the target space, so as to obtain a better video viewing effect.
[0105] In one embodiment, the monitoring mode includes a second mode; according to the triggered target event, the target device is controlled to switch to a monitoring mode that matches the changed environmental state in the target space, including: when the target action is to turn off the controlled device in the target space, the target device is controlled to switch to the second mode.
[0106] Among them, the second mode is a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned off.
[0107] In a specific implementation, when the electronic device controls the target device to switch to a monitoring mode that matches the changed environmental state in the target space according to a triggered target event, the electronic device can control the target device to switch to a second mode when the target action is to turn off the controlled device in the target space. The second mode can be a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned off.
[0108] The technical solution of this embodiment controls the target device to switch to the second mode when the target action is to turn off the controlled device in the target space; the second mode is a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned off. In this way, before the controlled device in the target space is turned off, the target device is switched in advance to the second mode that matches the changed environmental state in the target space after the controlled device is turned off, avoiding the situation where the monitoring mode switching of the target device is delayed due to the switching of the monitoring mode after the controlled device is turned off, which affects the viewing effect of the monitoring video, and effectively improves the intelligent switching of the monitoring mode of the target device.
[0109] In some embodiments, the target action of turning off the controlled device in the target space can reduce the brightness of the target space. For example, the controlled device can be a lighting device, and the target action can be turning off the light in the target space, or the controlled device can be an electronic curtain device, and the target action can be closing the electronic curtain in the target space. Accordingly, the second mode can be a night mode suitable for the target space in a lighting environment with a low illumination value.
[0110] Further, when the target action is to turn off the controlled device in the target space, controlling the target device to switch to the second mode includes: when the target action is to turn off the controlled device in the target space, before the environmental state in the target space changes, controlling the target device to switch from the current image processing parameter to the second image processing parameter, wherein the second image processing parameter is an image processing parameter that matches the second mode.
[0111] In some embodiments, when the target action is to turn off the controlled device in the target space, before the environmental state in the target space changes, the electronic device can control the target device to switch from the first mode to the second mode. Accordingly, the current image processing parameter can be the image processing parameter corresponding to the first mode. In practical applications, the image processing parameter corresponding to the first mode can be named the first image processing parameter.
[0112] Among them, the second mode can be a night mode, and the first mode can be a day mode. In the process of controlling the target device to switch from day mode to night mode, the electronic device can control the target device to switch from the ISP parameters corresponding to the day mode to the ISP parameters corresponding to the night mode.
[0113] In this way, when the target action of turning off the controlled device in the target space will reduce the brightness of the target space, the electronic device can control the target device to switch from the day mode to the night mode before the environmental state in the target space changes. Thus, before the controlled device in the target space is turned off, the target device is switched to the night mode in advance, so that at the moment the controlled device in the target space is turned off, the target device is already in the night mode, which can ensure that the target device can still provide a clear monitoring picture under low light conditions, avoiding the occurrence of screen flickering or dimming when switching modes due to switching the monitoring mode after the controlled device is turned off, thereby effectively improving the video picture quality.
[0114] In one embodiment, when the target action is to turn off the controlled device in the target space, the target device is controlled to switch to the second mode, including: when the target action is to turn off the controlled device in the target space, obtaining the current ambient brightness value of the target space; when the current ambient brightness value is higher than a preset brightness threshold, controlling the target device to switch to the second mode.
[0115] In a specific implementation, when the target action is to turn off the controlled device in the target space, while the electronic device is controlling the target device to switch to the second mode, the electronic device may obtain the current ambient brightness value of the target space when the target action is to turn off the controlled device in the target space; and control the target device to switch to the second mode when the current ambient brightness value is higher than a preset brightness threshold.
[0116] Among them, if it is determined that the current ambient brightness value of the target space is higher than the preset brightness threshold, it can be determined that the current brightness of the target space is high, the controlled device is not turned off, the target device is currently in the first mode, and the target action associated with the target event will be executed. Therefore, the electronic device will control the target device to switch from the first mode to the second mode.
[0117] In some embodiments, the current ambient brightness value includes the current illuminance value, the first mode may be a day mode, and the second mode may be a night mode. When the target action is to turn off the controlled device in the target space, the electronic device may obtain the current illuminance value of the target space, and compare the current illuminance value with a preset illuminance threshold. When the current illuminance value is higher than the preset illuminance threshold, the target device may be controlled to switch from day mode to night mode.
[0118] The technical solution of this embodiment is to obtain the current ambient brightness value of the target space when the target action is to turn off the controlled device in the target space; and to control the target device to switch to the second mode when the current ambient brightness value is higher than the preset brightness threshold. In this way, when the target action is to turn off the controlled device in the target space, the current ambient brightness value of the target space is further obtained. When the current ambient brightness value is higher than the preset illumination threshold, it can be determined that the controlled device in the target space is not currently turned off, and the target device is not currently in the second mode that matches the changed environmental state in the target space after the controlled device is turned off, so that the target device can be controlled to switch to the second mode in advance, effectively improving the intelligence of the monitoring mode switching of the target device.
[0119] In one embodiment, the method further includes: in response to the event currently detected in the target space, searching for an automation solution associated with the event in an automation list; and determining that the event is a target event when there is a target action in the automation solution associated with the event.
[0120] The automation list stores a variety of pre-set automation plans, such as "turn on the light automatically when the door is opened", "turn on the air conditioner when the temperature is higher than 30 degrees", "turn on the light when someone passes by the living room", and other automation plans.
[0121] In a specific implementation, the electronic device can respond to an event currently detected in the target space by searching the automation list for an automation solution associated with the event; determine whether the automation solution associated with the event has a target action; and determine that the event is a target event if a target action exists in the automation solution associated with the event.
[0122] For example, if the event currently detected in the target space is "someone passes by the living room", and the automation plan associated with the event is found in the automation list as "turn on the lights when someone passes by the living room", since the action in the automation plan associated with the event "someone passes by the living room" is "turn on the lights", the action of "turning on the lights" is a target action that will change the environmental state in the target space (increase the illumination of the target space), therefore, the event "someone passes by the living room" can be determined as the target event.
[0123] Taking the electronic device as gateway 150 as an example, in a local area network path, gateway 150 can respond to the event currently detected in the target space, and gateway 150 can search for the automation scheme associated with the event in the stored automation list, and if there is a target action in the automation scheme associated with the event, determine that the event is a target event, and gateway 150 notifies the target device in the target space to adjust the monitoring mode. In a wide area network path, after receiving the event currently detected in the target space reported by the triggering device, gateway 150 can respond to the event currently detected in the target space and report the event to server 170. Server 170 searches for the automation scheme associated with the event in the stored automation list, and if there is a target action in the automation scheme associated with the event, determine that the event is a target event, and notify the target device in the target space to adjust the monitoring mode.
[0124] Taking the electronic device as a target device with an intelligent gateway function as an example, in the process of determining whether the event currently detected in the target space is a target event, the target device can implement the steps performed by the gateway 150 and the target device under the local area network path and under the wide area network path in the above embodiment taking the electronic device as the gateway 150 as an example.
[0125] The technical solution of this embodiment is to search for the automation scheme associated with the event in the automation list in response to the event currently detected in the target space; and determine that the event is a target event when there is a target action in the automation scheme associated with the event. In this way, after detecting the event currently occurring in the target space, by searching for the automation scheme associated with the event in the automation list, and by determining whether there is a target action in the automation scheme associated with the event, it is possible to accurately determine whether the detected event is a target event, and thus, based on whether the event is a target event, it is possible to accurately determine whether to switch the target device in advance to a monitoring mode that matches the changed environmental state.
[0126] The present application also provides an application scenario, and the application scenario applies the control method of the above-mentioned smart device. Specifically, the control method of the smart device in the application scenario is as follows: Figure 4 As shown, Figure 4 A flow chart of another control method of an intelligent device is provided. Figure 4As shown, taking the target device as an intelligent monitoring device as an example, for a trigger device whose corresponding trigger condition is the door opening in the target space, when the trigger device detects the door opening event in the target space, the door opening event can be reported to the electronic device, so that the electronic device determines that there is an event of a living body entering the target space from the outdoors, and then the automation scheme associated with the door opening event can be found in the automation list. If the electronic device finds that there is an automation scheme "when the door in the target space is opened, turn on the light in the target space" in the automation list, since the action in the automation scheme associated with the event "the door in the target space is opened" is "turn on the light in the target space", the action of "turning on the light in the target space" is a target action that will change the environmental state in the target space (will increase the illumination of the target space), therefore, it can be determined that the event "the door in the target space is opened" is the target event. Then, accordingly, the electronic device will control the intelligent monitoring device to switch to the ISP parameters corresponding to the day mode.
[0127] Among them, the trigger device may be a door magnet, a smart door lock, etc. The door opening event may be detected by the door magnet or the smart door lock. The smart monitoring device may be a smart camera, a smart video camera, etc. The electronic device may be a smart monitoring device with a gateway function, or a separate gateway device. When the electronic device is a smart monitoring device with a gateway function, the smart monitoring device directly performs the ISP parameter switching process when the electronic device controls the smart monitoring device to switch to the ISP parameters corresponding to the daytime mode; when the electronic device is a separate gateway device, the gateway device notifies the smart monitoring device through the network to perform the ISP parameter switching process when the electronic device controls the smart monitoring device to switch to the ISP parameters corresponding to the daytime mode.
[0128] In this way, when the target space is configured with an automation solution that automatically turns on the light when the door is opened, on this basis, when a door opening event is detected, the smart monitoring device is controlled to switch the ISP parameters. At the moment the door opening event is triggered, the ISP parameters of the smart monitoring device can be switched from the ISP parameters corresponding to the night mode to the ISP parameters corresponding to the day mode, so that the ISP parameters are switched in advance before the light-on action is executed. The time of this ISP parameter switching is earlier than the time when the light-sensitive detection is triggered to automatically switch the ISP parameters after the light is turned on. After turning on the light, the smart monitoring device can capture color images, avoiding the situation where the ISP parameters are switched after the light is turned on, which causes the image color to switch, and can effectively improve the video viewing effect.
[0129] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0130] Based on the same inventive concept, the embodiment of the present application also provides a control system for an intelligent device for implementing the control method of the intelligent device involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations in the control system embodiments of one or more intelligent devices provided below can refer to the limitations of the control method of the intelligent device above, and will not be repeated here.
[0131] In an exemplary embodiment, a control system for a smart device is provided. The system includes a target device and a trigger device connected to the target device.
[0132] The trigger device is used to report the target event to the target device when it is detected that a target event in the automation solution in the target space is triggered.
[0133] Wherein, the target device is used to execute the control method of a smart device as described above.
[0134] The target device may be an intelligent monitoring device. Further, the intelligent monitoring device may be an intelligent monitoring device with a gateway function.
[0135] In order to facilitate the understanding of those skilled in the art, Figure 5 A block diagram of the control system of an intelligent monitoring device is provided. In practical applications, when the automation scheme associated with the target event is "turning on the light when the door is opened", the IoT device can be a door magnetic device, and the controlled device can be an intelligent switch for controlling the lamp. Among them, the intelligent gateway can be a separate gateway device or an intelligent gateway device integrated with the intelligent monitoring device. The gateway device is connected to the routing device via WIFI.
[0136] Based on the same inventive concept, the embodiment of the present application also provides a control device for an intelligent device for implementing the control method of the intelligent device involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the control device embodiments of one or more intelligent devices provided below can refer to the limitations of the control method of the intelligent device above, and will not be repeated here.
[0137] In an exemplary embodiment, Figure 6 As shown, a control device for a smart device is provided, including: an adjustment module 610, wherein:
[0138] The control module 610 is used to adjust the monitoring mode of the target device according to the triggered target event if it is detected that the target event in the automation scheme under the target space is triggered; the triggered target event is used to instruct the controlled device in the automation scheme to perform a target action; the target action is used to change the environmental state in the target space.
[0139] In one of the embodiments, the adjustment module 610 is specifically configured to control the target device to switch to a monitoring mode that matches the changed environmental state in the target space according to the triggered target event.
[0140] In one embodiment, the monitoring mode includes a first mode; the adjustment module 610 is specifically used to control the target device to switch to the first mode when the target action is to turn on the controlled device in the target space; the first mode is a monitoring mode that matches the changed environmental state in the target space after turning on the controlled device.
[0141] In one of the embodiments, the adjustment module 610 is specifically used to obtain the current ambient brightness value of the target space when the target action is to turn on the controlled device in the target space; when the current ambient brightness value is lower than a preset brightness threshold, control the target device to switch to the first mode.
[0142] In one embodiment, the adjustment module 610 is specifically used to control the target device to switch from the current image processing parameter to the first image processing parameter before the environmental state in the target space changes when the target action is to turn on the controlled device in the target space; the first image processing parameter is an image processing parameter that matches the first mode.
[0143] In one embodiment, the monitoring mode includes a second mode; the adjustment module 610 is further specifically used to obtain the current ambient brightness value of the target space when the target device is in the first mode for a preset time; when the current ambient brightness value is lower than a preset brightness threshold, control the target device to switch from the first mode to the second mode; the second mode is a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned off.
[0144] In one embodiment, the monitoring mode includes a second mode; the adjustment module 610 is specifically used to control the target device to switch to the second mode when the target action is to turn off the controlled device in the target space; the second mode is a monitoring mode that matches the changed environmental state in the target space after turning off the controlled device.
[0145] In one of the embodiments, the adjustment module 610 is specifically used to obtain the current ambient brightness value of the target space when the target action is to turn off the controlled device in the target space; and control the target device to switch to the second mode when the current ambient brightness value is higher than a preset brightness threshold.
[0146] In one of the embodiments, the device also includes: a query module, which is used to search for an automation plan associated with the event in an automation list in response to an event currently detected in the target space; and if the target action exists in the automation plan associated with the event, determine that the event is the target event.
[0147] Each module in the control device of the above-mentioned intelligent device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0148] In an exemplary embodiment, an electronic device is provided, which may be a server, and its internal structure diagram may be shown in FIG7. The electronic device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store automation list data. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a control method of an intelligent device is implemented.
[0149] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0150] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0151] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0152] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0153] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0154] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A control method for an intelligent device, characterized in that: The method comprises: If it is detected that a target event in the automation scheme under the target space is triggered, the monitoring mode of the target device is adjusted according to the triggered target event; the triggered target event is used to instruct the controlled device in the automation scheme to perform a target action; the target action is used to change the environmental state in the target space.
2. The method according to claim 1, characterized in that The step of adjusting the monitoring mode of the target device according to the triggered target event includes: According to the triggered target event, the target device is controlled to switch to a monitoring mode that matches the changed environmental state in the target space.
3. The method according to claim 2, characterized in that The monitoring mode includes a first mode; According to the triggered target event, controlling the target device to switch to a monitoring mode that matches the changed environmental state in the target space includes: When the target action is to turn on the controlled device in the target space, the target device is controlled to switch to the first mode; the first mode is a monitoring mode that matches the changed environmental state in the target space after the controlled device is turned on.
4. The method according to claim 3, characterized in that When the target action is to turn on the controlled device in the target space, controlling the target device to switch to the first mode includes: When the target action is to turn on the controlled device in the target space, before the environmental state in the target space changes, the target device is controlled to switch from the current image processing parameter to the first image processing parameter; the first image processing parameter is an image processing parameter that matches the first mode.
5. The method according to claim 3, characterized in that: When the target action is to turn on the controlled device in the target space, controlling the target device to switch to the first mode includes: When the target action is to turn on the controlled device in the target space, obtaining a current ambient brightness value of the target space; When the current environment brightness value is lower than a preset brightness threshold, the target device is controlled to switch to the first mode.
6. The method according to claim 3, characterized in that The monitoring mode includes a second mode; after the step of controlling the target device to switch to the first mode, the method further includes: When the target device is in the first mode for a preset time period, obtaining a current ambient brightness value of the target space; When the current ambient brightness value is lower than a preset brightness threshold, the target device is controlled to switch from the first mode to the second mode; the second mode is a monitoring mode that matches the changed ambient state in the target space after the controlled device is turned off.
7. The method according to claim 2, characterized in that: The monitoring mode includes a second mode; and according to the triggered target event, controlling the target device to switch to a monitoring mode that matches the changed environmental state in the target space includes: When the target action is to turn off the controlled device in the target space, the target device is controlled to switch to the second mode; the second mode is a monitoring mode that matches the changed environmental state in the target space after turning off the controlled device.
8. The method according to claim 7, characterized in that When the target action is to turn off the controlled device in the target space, controlling the target device to switch to the second mode includes: When the target action is to turn off the controlled device in the target space, obtaining a current ambient brightness value of the target space; When the current environment brightness value is higher than a preset brightness threshold, the target device is controlled to switch to the second mode.
9. The method according to claim 1, characterized in that: The method further comprises: In response to an event currently detected in the target space, searching an automation plan associated with the event in an automation list; In the case that the target action exists in the automation solution associated with the event, the event is determined to be the target event.
10. A control system for an intelligent device, characterized in that: The system includes a target device and a trigger device connected to the target device; The trigger device is used to report the target event to the target device when detecting that a target event in the automation solution under the target space is triggered; The target device is used to execute the control method of the smart device according to any one of claims 1 to 9.
11. A control device for an intelligent device, characterized in that: The device comprises: An adjustment module is used to adjust the monitoring mode of the target device according to the triggered target event if it is detected that a target event in the automation scheme under the target space is triggered; the triggered target event is used to instruct the controlled device in the automation scheme to perform a target action; the target action is used to change the environmental state in the target space.
12. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
