Disclosure of Invention
The invention aims to provide a plant monitoring method and device based on planting equipment, so as to enrich monitoring pictures and improve monitoring experience of users.
A plant monitoring method based on planting equipment comprises the following steps:
in the process that a user monitors the growth condition of plants in planting equipment, if a virtual planting experience instruction sent by the user is received, outputting a first type of virtual icon at a preset first position of a monitoring picture;
and for each first-class virtual icon, if the operation of the user on the first-class virtual icon is detected, loading a preset animation corresponding to the first-class virtual icon on the monitoring picture.
In one embodiment of the present invention, the method further comprises:
loading a preset animation corresponding to the first type of virtual icon on the monitoring picture, and simultaneously generating a control instruction corresponding to the first type of virtual icon;
and sending the control instruction to the planting equipment to control the planting equipment to execute corresponding operation.
In an embodiment of the present invention, before the sending the control instruction to the planting device, the method further includes:
outputting prompt information aiming at the control instruction;
and if a determination instruction sent by the user according to the prompt message is received, executing the step of sending the control instruction to the planting equipment.
In a specific embodiment of the present invention, after receiving the virtual planting experience instruction sent by the user, the method further includes:
outputting a second type of virtual icon at a preset second position of the monitoring picture when a set time interval is reached;
and for each second type of virtual icon, if the operation of the user on the second type of virtual icon is detected, loading a preset animation corresponding to the second type of virtual icon on the monitoring picture.
In an embodiment of the present invention, the first type of virtual icons are icons with animation effects, and/or the second type of virtual icons are icons with animation effects.
A plant monitoring apparatus based on planting devices, comprising:
the first-class virtual icon output module is used for outputting a first-class virtual icon at a preset first position of a monitoring picture if a virtual planting experience instruction sent by a user is received in the process that the user monitors the growth condition of plants in the planting equipment;
and the animation first loading module is used for loading a preset animation corresponding to the first type of virtual icon on the monitoring picture if the operation of the user on the first type of virtual icon is detected for each first type of virtual icon.
In one embodiment of the present invention, the method further comprises:
the control instruction generating module is used for loading a preset animation corresponding to the first type of virtual icon on the monitoring picture and generating a control instruction corresponding to the first type of virtual icon;
and the control instruction sending module is used for sending the control instruction to the planting equipment so as to control the planting equipment to execute corresponding operation.
In one embodiment of the present invention, the method further comprises:
and the prompt information output module is used for outputting prompt information aiming at the control instruction before the control instruction is sent to the planting equipment, and triggering the control instruction sending module if a determined instruction sent by the user according to the prompt information is received.
In one embodiment of the present invention, the method further comprises:
the second type virtual icon output module is used for outputting a second type virtual icon at a preset second position of the monitoring picture when a set time interval is reached after the virtual planting experience instruction sent by the user is received;
and the animation second loading module is used for loading a preset animation corresponding to the second type of virtual icon on the monitoring picture if the operation of the user on the second type of virtual icon is detected for each second type of virtual icon.
In an embodiment of the present invention, the first type of virtual icons are icons with animation effects, and/or the second type of virtual icons are icons with animation effects.
By applying the technical scheme provided by the embodiment of the invention, in the process of monitoring the growth condition of the plants in the planting equipment by the user, if a virtual planting experience instruction sent by the user is received, the first-class virtual icons can be output at the preset first position of the monitoring picture, and for each first-class virtual icon, if the operation of the user on the first-class virtual icon is detected, the preset animation corresponding to the first-class virtual icon can be loaded on the monitoring picture. Therefore, the monitoring picture can be enriched, the pleasure of the user in the monitoring process is increased, and the monitoring experience of the user is improved.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an implementation of a plant monitoring method based on planting equipment according to an embodiment of the present invention is shown, where the method may include the following steps:
s110: in the process that a user monitors the growth condition of plants in the planting equipment, if a virtual planting experience instruction sent by the user is received, outputting a first type of virtual icon at a preset first position of a monitoring picture.
In the embodiment of the invention, the user can be an owner of the planting device and also can be a manager of the planting device. The planting equipment can be a planting box, a planting greenhouse or a planting bucket and the like. An image acquisition module can be arranged in the planting device.
In practical application, when a user has a demand for monitoring the growth condition of plants in the planting device, the user can send a monitoring instruction to the planting device through the terminal, and specifically, the user can send the monitoring instruction to the planting device through a client installed in the terminal. And after receiving the monitoring instruction, the planting equipment can continuously collect the pictures of the plants through the image collection module and return the pictures to the terminal. And the terminal generates a monitoring picture according to the picture of the plant and outputs the monitoring picture on a screen of the terminal. Therefore, the user can monitor the growth condition of the plants in the planting equipment through the terminal.
The terminal can provide a virtual planting experience button or icon for a user, and when the user clicks the virtual planting experience button or icon, the user can be regarded as sending a virtual planting experience instruction to the terminal.
In the process that a user monitors the growth condition of plants in the planting device, if a virtual planting experience instruction sent by the user is received, the first type of virtual icon can be output at a preset first position of a monitoring picture.
The first type of virtual icons may be static icons or icons with animation effects. Specifically, the icon may be a watering icon, a weeding icon, or the like. As shown in fig. 2, the icon 210 is a watering icon, the icon 220 is a weeding icon, and the positions of the icon 210 and the icon 220 are the preset first positions.
S120: and for each first-class virtual icon, if the operation of a user on the first-class virtual icon is detected, loading a preset animation corresponding to the first-class virtual icon on a monitoring picture.
In the embodiment of the present invention, there may be one or more first type virtual icons. For each first-class virtual icon, if the operation of a user on the first-class virtual icon is detected, loading a preset animation corresponding to the first-class virtual icon on a monitoring screen.
For example, the preset animation corresponding to the watering icon is a watering animation, and the preset animation corresponding to the weeding icon is a weeding animation.
Specifically, when the operation of the user on the first type of virtual icon is detected, the animation corresponding to the first type of virtual icon may be loaded on the corresponding area of the monitoring screen according to the operation type or the operation area.
Still taking fig. 2 as an example, if a drag operation of the icon 210 by the user is detected, a watering animation may be loaded in the drag area of the monitoring screen. Alternatively, when the user's click operation on the icon 210 is detected, the watering animation may be loaded in an area where plants are present in the monitoring screen. In addition, the speed of the watering animation can be adjusted according to the speed of the dragging speed, and a virtual water dew effect is loaded on the surface of the plant.
The weed icon may be output at the same time as the weed icon is output, or may be output when a set time interval is reached after the weed icon is output. If a drag operation of the icon 220 by the user is detected, a position to which the icon 220 is dragged, at which a weeding animation is loaded, such as causing a weed icon at the position to disappear, or the like, may be calculated through image processing.
It should be noted that the foregoing is merely an example, and in practical applications, a person skilled in the art may set other first type virtual icons, such as illumination icons, according to the idea of the foregoing example, and set corresponding animations, so that when a user operates the first type virtual icon, the corresponding animation may be loaded on the monitoring screen.
By applying the method provided by the embodiment of the invention, in the process of monitoring the growth condition of the plants in the planting equipment by the user, if the virtual planting experience instruction sent by the user is received, the first-class virtual icons can be output at the preset first position of the monitoring picture, and for each first-class virtual icon, if the operation of the user on the first-class virtual icon is detected, the preset animation corresponding to the first-class virtual icon can be loaded on the monitoring picture. Therefore, the monitoring picture can be enriched, the pleasure of the user in the monitoring process is increased, and the monitoring experience of the user is improved.
In one embodiment of the present invention, the method may further comprise the steps of:
the method comprises the following steps: loading a preset animation corresponding to the first type of virtual icon on a monitoring picture, and simultaneously generating a control instruction corresponding to the first type of virtual icon;
step two: and sending the control instruction to the planting equipment to control the planting equipment to execute corresponding operation.
For convenience of description, the above two steps are combined for illustration.
In step S120, when detecting an operation of a certain first type virtual icon by a user, the terminal loads a preset animation corresponding to the first type virtual icon on the monitoring screen. And the terminal can generate a control instruction corresponding to the first type of virtual icon while loading the animation.
For example, a watering control instruction may be generated for the watering icon, and an illumination on or off control instruction may be generated for the illumination icon.
The terminal can send the generated control instruction to the planting device to control the planting device to execute corresponding operation. Specifically, the terminal may directly send the control instruction to the planting device, and may also send the control instruction to the planting device through the server.
Therefore, when monitoring the growth condition of plants in the planting equipment, a user can determine whether to send a corresponding control instruction to the planting equipment according to the actual condition.
In a specific embodiment of the present invention, before sending the control instruction to the planting device, the terminal may output a prompt message for the control instruction to prompt the user that the control instruction is to be sent to the planting device currently. If a determination instruction sent by the user according to the prompt information is received, the operation of sending the control instruction to the planting equipment is executed, and if a cancel instruction sent by the user according to the prompt information is received, the operation of sending the control instruction to the planting equipment can not be continuously executed. Therefore, the situation that a wrong control instruction is sent to the planting equipment due to misoperation of a user can be avoided.
In an embodiment of the present invention, after receiving the virtual planting experience instruction sent by the user, the method may further include the following steps:
the first step is as follows: outputting a second type of virtual icon at a preset second position of the monitoring picture when a set time interval is reached;
the second step is that: and for each second type of virtual icon, if the operation of the user on the second type of virtual icon is detected, loading a preset animation corresponding to the second type of virtual icon on a monitoring picture.
For convenience of description, the above two steps are combined for illustration.
After receiving the virtual planting experience instruction sent by the user, the terminal can immediately output the second type of virtual icon at the preset second position of the monitoring picture, or output the second type of virtual icon at the preset second position of the monitoring picture when the set time interval is reached.
In the embodiment of the present invention, the second type of virtual icon may be a static icon or an icon with an animation effect. And may specifically be a pest icon. As shown in fig. 2, the icon 230 is a pest icon.
There may be one or more virtual icons of the second type. For each second-class virtual icon, if the operation of the user on the second-class virtual icon is detected, loading a preset animation corresponding to the second-class virtual icon on a monitoring screen.
For example, the preset animation corresponding to the pest icon is twisting, disappearing, and the like of the pest.
When the clicking operation or the dragging operation of a certain pest icon by a user is detected, the position of the pest icon can be determined, and the animation corresponding to the pest icon is loaded on the monitoring picture.
Therefore, the user can experience the fun of catching the insects, and the user experience is improved.
After the set time interval is reached, the second type of virtual icons such as pest icons can be output again, so that the user can repeat the operation.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a plant monitoring device based on a planting device, and a plant monitoring device based on a planting device described below and a plant monitoring method based on a planting device described above may be referred to correspondingly.
Referring to fig. 3, the apparatus may include the following modules:
the first-type virtual icon output module 310 is configured to, in the process that a user monitors the growth condition of plants in the planting device, output a first-type virtual icon at a preset first position of a monitoring picture if a virtual planting experience instruction sent by the user is received;
the animation first loading module 320 is configured to, for each first-class virtual icon, load a preset animation corresponding to the first-class virtual icon on the monitoring screen if an operation of the first-class virtual icon by the user is detected.
By applying the device provided by the embodiment of the invention, in the process of monitoring the growth condition of the plants in the planting equipment by the user, if a virtual planting experience instruction sent by the user is received, the first-class virtual icons can be output at the preset first position of the monitoring picture, and for each first-class virtual icon, if the operation of the user on the first-class virtual icon is detected, the preset animation corresponding to the first-class virtual icon can be loaded on the monitoring picture. Therefore, the monitoring picture can be enriched, the pleasure of the user in the monitoring process is increased, and the monitoring experience of the user is improved.
In one embodiment of the present invention, the method further comprises:
the control instruction generating module is used for loading a preset animation corresponding to the first type of virtual icon on a monitoring picture and generating a control instruction corresponding to the first type of virtual icon;
and the control instruction sending module is used for sending the control instruction to the planting equipment so as to control the planting equipment to execute corresponding operation.
In one embodiment of the present invention, the method further comprises:
and the prompt information output module is used for outputting prompt information aiming at the control instruction before the control instruction is sent to the planting equipment, and triggering the control instruction sending module if a determined instruction sent by a user according to the prompt information is received.
In one embodiment of the present invention, the method further comprises:
the second type virtual icon output module is used for outputting a second type virtual icon at a preset second position of the monitoring picture when a set time interval is reached after a virtual planting experience instruction sent by a user is received;
and the second animation loading module is used for loading preset animation corresponding to the second type of virtual icon on the monitoring picture if the operation of the user on the second type of virtual icon is detected for each second type of virtual icon.
In one embodiment of the present invention, the first type of virtual icons are icons with animation effects, and/or the second type of virtual icons are icons with animation effects.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.