Disclosure of Invention
In view of the above, the present invention provides a method and a system for displaying the growth process of plants in a planting box.
In order to achieve the purpose, the invention provides the following technical scheme:
a display method for a plant growth process in a planting box is applied to a server, and comprises the following steps:
receiving an inquiry request aiming at a target plant in a planting box, which is sent by a terminal;
according to the query request, searching a growth model corresponding to the target plant from a preset growth model library, wherein the growth model library stores at least one growth model corresponding to the plant, and the growth model of each plant comprises the corresponding relation between the planting time and the growth stage of the plant;
determining the planting time of the target plant;
determining the current growth stage of the target plant according to the planting duration of the target plant and the growth model;
and sending the growth stages of the target plant growing to the current growth stage and the plant pictures matched with the growth stages to the terminal.
Preferably, the planting time period is as follows:
a time period from a time of planting the seeds of the target plant to a time of receiving the query request.
Preferably, when the target plant primarily planted in the planting box is a seedling, the time of planting the seed of the target plant is obtained by:
receiving the planting information of the target plant sent by the terminal;
and extracting the time of planting the seeds of the target plant from the planting information.
A display system for the growth process of plants in a planting box comprises a server, a terminal and the planting box, wherein the server is respectively in communication connection with the terminal and the planting box,
the terminal is used for sending a query request aiming at the target plant in the planting box to the server and receiving a plant picture returned by the server;
the server receives a query request aiming at the target plant in the planting box, which is sent by the terminal; according to the query request, searching a growth model corresponding to the target plant from a preset growth model library, wherein the growth model library stores at least one growth model corresponding to the plant, the growth model of each plant comprises the corresponding relation between the planting time and the growth stage of the plant, the planting time of the target plant is determined, the current growth stage of the target plant is determined according to the planting time and the growth model of the target plant, and plant pictures matched with the growth stages of the target plant from the growth stage to the current growth stage and the growth stages are sent to the terminal.
Preferably, the terminal is further configured to, after receiving the plant picture, output the current growth stage and the plant picture matched with the current growth stage on a display screen of the terminal.
Preferably, the terminal is further configured to output a progress bar on a display screen of the terminal, where the progress bar is used to display each growth stage of the target plant, and the plant picture is displayed at a corresponding position of the corresponding growth stage of the progress bar.
Preferably, the planting time period is as follows:
a time period from a time of planting the seeds of the target plant to a time of receiving the query request.
Preferably, the server is further configured to:
and when the target plant planted for the first time in the planting box is a seedling, receiving the planting information of the target plant sent by the terminal, and extracting the time of planting the seed of the target plant from the planting information.
According to the technical scheme provided by the embodiment of the invention, when a user needs to check the plants in the planting box, sending an inquiry request aiming at a target plant in a planting box to a server through a terminal, searching a growth model corresponding to the target plant from a preset growth model library by the server according to the inquiry request, determining the planting time of the target plant by the server, and determining the current growth stage of the target plant according to the planting time and the growth model, sending the growth stages of the target plant growing to the current growth stage and the plant pictures matched with the growth stages to the terminal by the server so that a user can know the shape of the plant according to different stages of the plant growth, even if the user can not check a certain growth stage of the plant in time, the growth characteristics of the plant can be known through the picture corresponding to the growth stage, and the planting experience of the user is improved.
Detailed Description
The embodiment of the invention discloses a method and a system for displaying the growth process of plants in a planting box, which are used for solving the problems that a user cannot know the growth stage of the plants in time and the planting experience of the user is poor.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The embodiment of the invention provides a method for displaying the growth process of plants in planting boxes, which is applied to a server, wherein the server can be in communication connection with a plurality of planting boxes, generally, a control module and a communication module can be arranged in each planting box, and the communication module is controlled by the control module to establish communication connection with the server.
The planting box in the embodiment of the invention is one of a plurality of planting boxes, and any one of the plurality of planting boxes can be used for displaying the growth process of the plants in the planting box by applying the method provided by the embodiment of the invention.
Referring to fig. 1, a schematic flow chart of a method for demonstrating a growth process of a plant in a planting box according to an embodiment of the present invention is shown, the method includes the following steps:
s11: and receiving an inquiry request aiming at the target plants in the planting box, which is sent by the terminal.
The user sends an inquiry request aiming at the target plant in the planting box to the server through the terminal, and the terminal can be a mobile phone, a tablet personal computer, a display and the like. Specifically, the terminal can be provided with a corresponding user interface, the terminal is connected with the server through the user interface, or the terminal is connected with the server through downloading a corresponding client, a corresponding control module can be arranged in the planting box and connected with the server, and the temperature, the humidity and the like in the planting box are adjusted through the control module.
S12: according to the query request, searching a growth model corresponding to the target plant from a preset growth model library, wherein the growth model library stores at least one growth model corresponding to the plant, and the growth model of each plant comprises the corresponding relation between the planting time and the growth stage of the plant;
the growth model library stores growth models of plants, the growth models include corresponding relations between planting time and growth stages of the plants, for example, when the planting time of the plants is 1 day, the corresponding growth stages are breeding stages, when the planting time is 30 days, the corresponding growth stages can be seedling or mature stages, the corresponding relations between the planting time and the growth stages are stored in the growth models of the plants, and specifically, the growth models can also include the amount of sunlight, temperature, humidity and the like required by the plants corresponding to each growth stage.
S13: determining the planting time of a target plant;
the planting time of the target plant can be recorded through a relevant interface of the terminal, can also be stored in the server in advance, and can be obtained by sending a query time request to the server, which is all within the protection scope of the invention.
S14: determining the current growth stage of the target plant according to the planting duration and the growth model of the target plant;
the server obtains the planting time of the target plant through the step S13, determines the current growth stage of the plant according to the growth model, determines the growth stage of the target plant according to the corresponding relation between the planting time and the growth stage, and performs corresponding operation according to the obtained growth stage.
S15: and sending the growth stages of the target plant growing to the current growth stage and the plant pictures matched with the growth stages to the terminal.
The server sends the growth stages where the target plant grows and is located at present and the plant pictures matched with the growth stages to the terminal, the server can search the plant pictures matched with the growth stages in a pre-stored plant picture library, and a corresponding judgment module can be set through the characteristics of the plant for searching.
According to the technical scheme provided by the embodiment of the invention, when a user needs to check the plants in the planting box, sending an inquiry request aiming at a target plant in a planting box to a server through a terminal, searching a growth model corresponding to the target plant from a preset growth model library by the server according to the inquiry request, determining the planting time of the target plant by the server, and determining the current growth stage of the target plant according to the planting time and the growth model, sending the growth stages of the target plant growing to the current growth stage and the plant pictures matched with the growth stages to the terminal by the server so that a user can know the shape of the plant according to different stages of the plant growth, even if the user can not check a certain growth stage of the plant in time, the growth characteristics of the plant can be known through the picture corresponding to the growth stage, and the planting experience of the user is improved.
Specifically, the planting time is as follows:
a time period from a time of planting the seed of the target plant to a time of receiving the query request.
When the plant is planted in the planting box, the plant can be bred through the seeds, and can also be planted in a seedling or transplanting mode, wherein the planting time is the time from the seed breeding time to the current query request time.
Further, when the target plant primarily planted in the planting box is a seedling, the time for planting the seed of the target plant is obtained by the following steps:
receiving planting information of a target plant sent by a terminal;
the time when the seeds of the target plant are planted is extracted from the planting information.
It can be understood that, when the target plant is planted for the first time as a non-seed, the time for planting the seed of the target plant needs to be recorded, and generally, the time can be obtained by inputting the planting information of the target plant through a terminal, or obtained through pre-stored planting information, so as to obtain the planting duration of the target plant, and determine which growth stage the target plant is in. The terminal can be provided with an information input module for inputting the planting information of the target plant, and the planting duration of the target plant is obtained by calculating according to the moment of the current query request and the moment of the seed of the target plant.
The present invention also provides a system for displaying the growth process of an implant in a planting box, which is described below, and the system for displaying the growth process of an implant in a planting box and the method for displaying the growth process of an implant in a planting box described above can be referred to in correspondence.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a display system for a plant growth process in a planting box according to an embodiment of the present invention. The system comprises a server 220, a terminal 230 and a planting box 210, wherein the server 220 is respectively connected with the terminal 230 and the planting box 210 in a communication way, wherein,
the terminal 230 is used for sending a query request for the target plants in the planting box 210 to the server 220 and receiving the plant pictures returned by the server 220;
the server 220 receives a query request for the target plants in the planting box 210, which is sent by the terminal 230; according to the query request, searching a growth model corresponding to the target plant from a preset growth model library, wherein the growth model library stores at least one growth model corresponding to the plant, and the growth model of each plant comprises the corresponding relation between the planting time and the growth stage of the plant; determining the planting time of a target plant; determining the current growth stage of the target plant according to the planting duration and the growth model of the target plant; and transmitting the growth stages of the target plant growing to the current growth stage and the plant pictures matched with the growth stages to the terminal 230.
By applying the technical scheme provided by the embodiment of the invention, when the terminal 230 needs to check the plants in the planting box 210, the server 220 receives an inquiry request aiming at the target plants in the planting box 210 sent by the terminal 230, and searches a growth model corresponding to the target plants from a preset growth model library, wherein the growth model library stores the growth model corresponding to at least one plant, the growth model of each plant comprises the corresponding relation between the planting time length and the growth stage of the plant, and the growth stage of the target plant is further determined by determining the planting time length of the target plant and according to the planting time length and the growth model of the target plant; the server 220 sends the target plant to the terminal 230 in each growth stage of the current growth stage and the plant picture matched with each growth stage, so that the user can know the plant shape according to different stages of plant growth, even if the user cannot know the growth characteristics of the plant in a certain growth stage of the plant in time, the user can know the growth characteristics of the plant through the picture corresponding to the growth stage, and the planting experience of the user is improved.
Preferably, the terminal 230 is further configured to output the current growth stage and the plant picture matching with the current growth stage on its own display screen after receiving the plant picture.
It can be understood that the terminal 230 may output the plant pictures at the current growth stage and matching with the current growth stage on its own screen, specifically, the plant pictures may be one or more, and the form of the target plant is specifically shown by different pictures.
Further, the terminal 230 is further configured to output a progress bar on its display screen, where the progress bar is used to display each growth stage of the target plant, and a plant picture is displayed at a corresponding position of the corresponding growth stage of the progress bar.
In order to display each growth stage of the target plant, a progress bar is output on a display screen of the terminal 230, the progress bar can display each growth stage of the target plant, and a plant picture is displayed at a corresponding position of each growth stage, so that a user can observe the form of each stage of the plant, which is a preferred embodiment.
On the basis of the above embodiments, the planting time is as follows:
a time period from a time of planting the seed of the target plant to a time of receiving the query request.
Still further, server 220 is also configured to:
when the target plant planted for the first time in the planting box 210 is a seedling, receiving the planting information of the target plant sent by the terminal 230; the time when the seeds of the target plant are planted is extracted from the planting information.
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 method and the system for displaying the growth process of the plants in the planting box provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. 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.