A processing method, device and medium for determining tobacco seedling pruning path
By predicting the growth information and temperature information of tobacco seedlings, determining the pruning path that meets the conditions, and giving priority to sending paths with high priority, the problem of poor pruning timeliness is solved and more efficient pruning management is achieved.
Patent Information
- Application Number
- CN202411668731.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-11-21
AI Technical Summary
In large tobacco seedling cultivation bases, due to the inaccurate pruning time of manual observation, the pruning time is poor, and the actual pruning time of some tobacco seedlings may lag seriously behind the target pruning time.
By obtaining the historical tobacco growth information and temperature information of each specified sub-region in the target area, and combining the prediction model to predict the latest pruning time, a pruning path that meets the preset conditions is obtained, and priority is determined based on the path length and pruning area proportion deviation, and a pruning path with a higher priority is sent to the user.
It improves the timeliness of tobacco seedlings pruning, ensures that the tobacco seedlings in each designated sub-region are pruned before the latest pruning time, reduces human resource consumption, and improves the efficiency of pruning path selection.
Smart Images

Figure CN119168184B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a processing method, equipment and medium for determining a tobacco seedling pruning path. Background Art
[0002] During the tobacco seedling raising process, it is very important to prune the tobacco seedlings. There are generally three pruning operations in the process. The first pruning operation is to subtract half of the leaves when the leaves cover the seedling tray. The second pruning operation is to subtract half of the leaves when the leaves cover the seedling tray again. The third pruning operation is to prune the leaves about a week before transplanting. Different types of tobacco seedlings have different growth rates, and different cultivation environments (such as temperature and soil fertility) will also have a greater impact on the growth rate of tobacco seedlings. Therefore, the pruning times corresponding to different types of tobacco seedlings are often different, and the pruning times of the same type of tobacco seedlings in different cultivation environments will also be different. In the prior art, whether tobacco seedlings need to be pruned is usually determined by manual observation. However, for large-scale tobacco seedling nurseries, the area is large, the number of nurseries is large, the number of tobacco seedlings planted is also large, and the types of tobacco seedlings, cultivation environments and sowing times are usually different. Judging whether tobacco seedlings need to be pruned by manual observation will bring a large workload to the manual labor. In the case of limited human resources for tobacco seedling pruning, the pruning workload in large-scale tobacco seedling nurseries is large and the pruning work often lasts for a long time, which leads to large differences in the pruning time of tobacco seedlings corresponding to different pruning paths. It may happen that the actual pruning time of some tobacco seedlings in the tobacco seedling nursery base seriously lags behind the corresponding target pruning time, resulting in poor pruning timeliness. Summary of the invention
[0003] The object of the present invention is to provide a processing method, device and medium for determining the path for pruning tobacco seedlings, so as to determine the path for pruning tobacco seedlings in each designated sub-area in the target area, avoid the situation where the actual pruning time of tobacco seedlings in some designated sub-areas seriously lags behind the corresponding target pruning time, and improve the timeliness of pruning tobacco seedlings in the target area.
[0004] According to a first aspect of the present invention, a method for determining a tobacco seedling pruning path is provided, the method comprising the following steps:
[0005] The historical tobacco seedling growth information, center position coordinates and temperature information within a target historical time period are obtained for each designated sub-area in the target area; the target area includes several designated sub-areas; the historical tobacco seedling growth information includes the tobacco seedling area ratio corresponding to each preset sampling time point within the target historical time period, and the tobacco seedling area ratio is the ratio of the area of the tobacco seedlings to the area of the corresponding designated sub-area; the target historical time period is before the first pruning time of the tobacco seedlings in the target area.
[0006] The latest first pruning time of each designated sub-area in the target area is predicted based on the historical tobacco seedling growth information of each designated sub-area in the target area, the temperature information in the target historical time period and the temperature information in the target future time period.
[0007] All pruning paths that meet the first preset condition are obtained based on the latest first pruning time of each designated sub-area in the target area, the pruning duration of each designated sub-area in the target area and the preset unit pruning duration; the first preset condition includes: passing through each designated sub-area in the target area, the number of times passing through any designated sub-area in the target area is 1, and the time for pruning the tobacco seedlings in each designated sub-area in the target area is no later than the latest first pruning time of the corresponding designated sub-area.
[0008] The length of each trimming path that meets the first preset condition is obtained according to the center position coordinates of each designated sub-area in the target area.
[0009] The priority of each pruning path that meets the first preset condition is determined according to the length of each pruning path that meets the first preset condition and the corresponding total pruning area ratio deviation, and the pruning paths of the first target number with the highest priority are sent to the target user end in order of priority from large to small; the total pruning area ratio deviation is the sum of the pruning area ratio deviations corresponding to all designated sub-areas in the target area, and the pruning area ratio deviation corresponding to any designated sub-area is the absolute value of the difference between the actual tobacco seedling area ratio when the designated sub-area is pruned and the corresponding target tobacco seedling area ratio.
[0010] Further, predicting the latest first pruning time of each designated sub-area in the target area according to the historical tobacco seedling growth information of each designated sub-area in the target area, the temperature information in the target historical time period, and the temperature information in the target future time period includes:
[0011] The tobacco seedling area ratio of the target designated sub-region corresponding to each preset sampling time point in the historical time period is obtained according to the historical tobacco seedling growth information of the target designated sub-region; the target designated sub-region is any designated sub-region.
[0012] The effective accumulated temperature corresponding to each preset sampling time point in the target designated sub-area during the historical time period is obtained according to the temperature information during the target historical time period; the effective accumulated temperature corresponding to any preset sampling time point is the relative temperature cumulative value from the sowing time of the tobacco seedlings to the preset sampling time point.
[0013] The target relationship corresponding to the target designated sub-area is obtained according to the area ratio of the tobacco seedlings and the corresponding effective accumulated temperature corresponding to each preset sampling time point in the target designated sub-area within the historical time period; the target relationship is the relationship between the area ratio of the tobacco seedlings and the effective accumulated temperature.
[0014] The time when the area ratio of tobacco seedlings in the target designated sub-region within the target future time period reaches the first area ratio is obtained according to the target relationship corresponding to the target designated sub-region, the temperature information within the target future time period and the first area ratio corresponding to the target designated sub-region.
[0015] The time when the area ratio of tobacco seedlings in the target designated sub-region reaches the first area ratio is determined as the latest first pruning time of the target designated sub-region.
[0016] Further, according to the target relationship corresponding to the target designated sub-region, the temperature information in the target future time period and the first area proportion corresponding to the target designated sub-region, obtaining the time when the area proportion of tobacco seedlings in the target designated sub-region reaches the first area proportion includes:
[0017] The effective accumulated temperature corresponding to each preset judgment time point in the target future time period is obtained according to the temperature information in the target future time period; the effective accumulated temperature corresponding to any preset judgment time point is the relative temperature cumulative value from the sowing time of the tobacco seedlings to the preset judgment time point.
[0018] The percentage of tobacco seedling area corresponding to each preset judgment time point in the target future time period is obtained based on the target relationship corresponding to the effective accumulated temperature at each preset judgment time point in the target future time period and the target designated sub-area.
[0019] In chronological order, determine whether the smoke seedling area ratio corresponding to each preset judgment time point in the target future time period is greater than or equal to the first area ratio corresponding to the target designated sub-area, and determine the first corresponding smoke seedling area ratio is greater than or equal to the first area ratio corresponding to the target designated sub-area as the time when the smoke seedling area ratio in the target designated sub-area reaches the first area ratio.
[0020] Furthermore, the length of the target pruning path is negatively correlated with the priority of the target pruning path, and the total pruning area ratio deviation corresponding to the target pruning path is negatively correlated with the priority of the target pruning path; the target pruning path is any pruning path that meets the first preset condition.
[0021] Further, determining the priority of each pruning path that meets the first preset condition according to the length of each pruning path that meets the first preset condition and the corresponding total pruning area ratio deviation includes:
[0022] The length of the target pruning path is normalized to obtain a normalized length of the target pruning path.
[0023] The total trimming area ratio deviation corresponding to the target trimming path is normalized to obtain the normalized total trimming area ratio deviation corresponding to the target trimming path.
[0024] The priority of the target pruning path is determined according to a preset first weight, a normalized length of the target pruning path, a preset second weight, and a normalized total pruning area ratio deviation corresponding to the target pruning path.
[0025] Furthermore, the process of obtaining the total pruning area ratio deviation corresponding to the target pruning path includes:
[0026] The trimming time corresponding to each designated sub-region when trimming according to the target trimming path is obtained according to the trimming sequence number of each designated sub-region in the target trimming path, the trimming duration of each designated sub-region in the target region and the preset unit trimming duration.
[0027] The effective accumulated temperature before each designated sub-area is pruned when pruning according to the target pruning path is obtained according to the pruning time corresponding to each designated sub-area and the temperature information in the target future time period when pruning according to the target pruning path.
[0028] According to the effective accumulated temperature before each designated sub-area is pruned when pruning according to the target pruning path and the target relationship corresponding to each designated sub-area, the pruning area ratio deviation corresponding to each designated sub-area when pruning according to the target pruning path is obtained; the target relationship corresponding to any designated sub-area is the relationship between the tobacco seedling area ratio and the effective accumulated temperature in the designated sub-area.
[0029] The sum of the trimming area ratio deviations corresponding to all designated sub-areas in the target area is determined as the total trimming area ratio deviation corresponding to the target trimming path.
[0030] Furthermore, the process of obtaining the tobacco seedling area ratio corresponding to any designated sub-area at any preset sampling time point includes:
[0031] The leaf area of each tobacco seedling included in a plurality of seedling trays in the designated sub-area at the preset sampling time point is obtained.
[0032] The average leaf area of each tobacco seedling in the designated sub-area is obtained according to the leaf area of each tobacco seedling included in a plurality of seedling trays in the designated sub-area at the preset sampling time point.
[0033] The product of the average leaf area of each tobacco seedling in the designated sub-region and the number of tobacco seedlings included in the designated sub-region is determined as the total leaf area of the tobacco seedlings in the designated sub-region.
[0034] The ratio of the total leaf area of the tobacco seedlings in the designated sub-region to the area of the designated sub-region is determined as the tobacco seedling area proportion of the designated sub-region corresponding to the preset sampling time point.
[0035] Furthermore, the leaf area of any tobacco seedling at any preset sampling time point is the sum of the leaf areas of all leaves of the tobacco seedling at the preset sampling time point, and the leaf area of any leaf at the preset sampling time point is the product of the leaf length, leaf width and preset proportional coefficient of the leaf at the preset sampling time point.
[0036] According to a second aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned processing method for determining a tobacco seedling pruning path when executing the computer program.
[0037] According to a third aspect of the present invention, there is provided a computer-readable storage medium storing a computer program, which implements the above-mentioned processing method for determining a tobacco seedling pruning path when executed by a processor.
[0038] Compared with the prior art, the present invention has at least the following beneficial effects:
[0039] The present invention predicts the latest first pruning time of each designated sub-area according to the historical tobacco seedling growth information of each designated sub-area in the target area, the temperature information in the target historical time period, and the temperature information in the target future time period, so that it is not necessary to judge whether the tobacco seedlings need to be pruned by manual observation, thereby reducing the consumption of human resources; and, according to the pruning time of each designated sub-area and the preset unit pruning time, the present invention obtains all pruning paths that can meet the first preset condition, and any pruning path that meets the first preset condition can make the tobacco seedlings in each designated sub-area be pruned at the corresponding latest first pruning time, which can avoid the situation that the actual pruning time of tobacco seedlings in some designated sub-areas lags behind the corresponding latest first pruning time, thereby improving the timeliness of pruning tobacco seedlings in the target area. Moreover, according to the length of each pruning path that meets the first preset condition and the corresponding total pruning area proportion deviation, the present invention obtains the priority of each pruning path that meets the first preset condition, and sends the pruning paths of the target number with higher priority to the target user end in descending order of priority, so that the user can select the pruning path according to the order of the pruning paths received by the target user end. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A flowchart of a method for determining a tobacco seedling pruning path provided in Embodiment 1 of the present invention;
[0042] Figure 2 A flow chart of a process for obtaining the percentage of tobacco seedling area provided in the first embodiment of the present invention;
[0043] Figure 3 A flowchart of the steps of predicting the latest first pruning time of each designated sub-area in the target area provided in the first embodiment of the present invention;
[0044] Figure 4 A flowchart of the steps of obtaining the time when the area ratio of tobacco seedlings in a target designated sub-area reaches a first area ratio within a target future time period provided in the first embodiment of the present invention;
[0045] Figure 5 A flowchart of a process for obtaining a total trimming area ratio deviation corresponding to a target trimming path provided in the first embodiment of the present invention;
[0046] Figure 6 A flowchart of the steps of determining the priority of each pruning path that meets the first preset condition provided in the first embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0048] Embodiment 1:
[0049] According to this embodiment, Figure 1 As shown, a processing method for determining a tobacco seedling pruning path is provided, and the processing method comprises the following steps:
[0050] S100, obtaining historical tobacco seedling growth information, center position coordinates and temperature information within a target historical time period for each designated sub-area in the target area; the target area includes a number of designated sub-areas; the historical tobacco seedling growth information includes a tobacco seedling area ratio corresponding to each preset sampling time point within the target historical time period, and the tobacco seedling area ratio is the ratio of the tobacco seedling area to the area of the corresponding designated sub-area; the target historical time period is before the first pruning time of the tobacco seedlings in the target area.
[0051] In this embodiment, the target area is the area for tobacco seedling pruning path planning, and the target area is a large area with a large area; the target historical time period is a preset historical time period for tobacco seedling analysis in a designated sub-area, and the length of the target historical time period is an empirical value. All tobacco seedlings in the target area in the target historical time period have not been pruned for the first time; the temperature information within the target historical time period includes the temperature information of each designated sub-area sampled at preset time intervals within the target historical time period. Optionally, the preset time length is 1 hour.
[0052] In this embodiment, different designated sub-areas differ at least in the types of tobacco seedlings to be cultivated, the cultivation environment (including temperature and soil fertility, etc.) or the sowing time of the tobacco seedlings.
[0053] In this embodiment, for a certain designated sub-region, the tobacco seedling area ratio of the designated sub-region is the ratio of the area of the tobacco seedlings in the designated sub-region to the area of the designated sub-region; it should be understood that before the first pruning, the tobacco seedling area ratio of the designated sub-region gradually increases. As a specific implementation method, Figure 2 As shown, the process of obtaining the tobacco seedling area ratio corresponding to any designated sub-area at any preset sampling time point includes:
[0054] S110, obtaining the leaf area of each tobacco seedling included in a plurality of seedling trays in the designated sub-area at a preset sampling time point.
[0055] In this embodiment, any designated sub-area includes a large number of seedling trays, and each seedling tray can cultivate a fixed number of tobacco seedlings; preferably, several seedling trays are randomly selected from the designated sub-area to measure the leaf area of the tobacco seedlings, and the number of seedling trays selected is an empirical value, thereby reducing the workload of obtaining the total leaf area of the tobacco seedlings in the designated sub-area.
[0056] In this embodiment, the leaf area of any tobacco seedling at any preset sampling time point is the sum of the leaf areas of all leaves of the tobacco seedling at the preset sampling time point, and the leaf area of any leaf at the preset sampling time point is the product of the leaf length and leaf width of the leaf at the preset sampling time point and a preset proportional coefficient. Optionally, the preset proportional coefficient is 0.6345.
[0057] S120, obtaining an average leaf area of each tobacco seedling in the designated sub-region according to the leaf area of each tobacco seedling included in a plurality of seedling trays in the designated sub-region at the preset sampling time point.
[0058] In this embodiment, the sum of the leaf areas of each tobacco seedling included in a number of seedling trays in the designated sub-area at the preset sampling time point is first obtained, and then the sum of the leaf areas is divided by the number of tobacco seedlings cultivated in the number of seedling trays, and the obtained value is determined as the average leaf area of each tobacco seedling in the designated sub-area.
[0059] S130: Determine the product of the average leaf area of each tobacco seedling in the designated sub-region and the number of tobacco seedlings included in the designated sub-region as the total leaf area of the tobacco seedlings in the designated sub-region.
[0060] In this embodiment, the number of seedling trays included in the designated sub-area is known, and the number of tobacco seedlings included in the designated sub-area is obtained by multiplying the number of seedling trays included in the designated sub-area by the number of tobacco seedlings cultivated in a single seedling tray.
[0061] S140, determining the ratio of the total leaf area of the tobacco seedlings in the designated sub-region to the area of the designated sub-region as the tobacco seedling area proportion of the designated sub-region corresponding to the preset sampling time point.
[0062] Based on S110 - S140 , this embodiment can obtain the tobacco seedling area ratio corresponding to any designated sub-area at any preset sampling time point.
[0063] S200, predicting the latest first pruning time for each designated sub-area in the target area according to the historical tobacco seedling growth information of each designated sub-area in the target area, the temperature information in the target historical time period, and the temperature information in the target future time period.
[0064] In this embodiment, the target future time period is a preset future time period for the first pruning of the tobacco seedlings in all designated sub-areas. The length of the target future time period is an empirical value, and the tobacco seedlings in all designated sub-areas can complete the first pruning within the target future time period.
[0065] In this embodiment, the temperature information in the target future time period includes the temperature information of each designated sub-area in the target future time period, and the temperature information of any designated sub-area in the future time period is obtained based on the temperature information of the designated sub-area at the same time point in several years in history; as a specific implementation method, the average temperature at the same time point in the three years in history is used as the temperature at the same time point in the target future time period.
[0066] As a preferred embodiment, Figure 3 As shown, S200 includes:
[0067] S210, obtaining the tobacco seedling area ratio of the target designated sub-region corresponding to each preset sampling time point in the historical time period according to the historical tobacco seedling growth information of the target designated sub-region; the target designated sub-region is any designated sub-region.
[0068] As a specific implementation, the time interval between any two adjacent preset sampling time points is 1 day.
[0069] S220, obtaining the effective accumulated temperature corresponding to each preset sampling time point in the target designated sub-area within the historical time period according to the temperature information within the target historical time period; the effective accumulated temperature corresponding to any preset sampling time point is the relative temperature cumulative value from the sowing time of the tobacco seedlings to the preset sampling time point.
[0070] In this embodiment, the relative temperature is the difference between the actual temperature and a preset temperature threshold. Optionally, the preset temperature threshold is an empirical value.
[0071] As a specific implementation, when obtaining the relative temperature cumulative value between any two times, accumulation is performed at intervals of 1 hour. For example, the tobacco seedling sowing time corresponding to the target designated sub-area is 8 o'clock on the first day, and a preset sampling time point is 8 o'clock on the second day. Then the relative temperature cumulative value from the sowing time of the tobacco seedlings to the preset sampling time point is the sum of the relative temperature at 9 o'clock on the first day, the relative temperature at 10 o'clock on the first day, ..., the relative temperature at 7 o'clock on the second day and the relative temperature at 8 o'clock on the second day.
[0072] S230, obtaining a target relationship corresponding to the target designated sub-area according to the area ratio of tobacco seedlings and the corresponding effective accumulated temperature of the target designated sub-area corresponding to each preset sampling time point in the historical time period; the target relationship is the relationship between the area ratio of tobacco seedlings and the effective accumulated temperature.
[0073] In this embodiment, the tobacco seedling area ratio is used as the dependent variable, and the effective accumulated temperature is used as the independent variable; the tobacco seedling area ratio and the corresponding effective accumulated temperature corresponding to a preset sampling time point are used as a sample point, and the relationship between the tobacco seedling area ratio and the effective accumulated temperature is obtained by a fitting method. Those skilled in the art know that any fitting method in the prior art falls within the protection scope of the present invention.
[0074] S240, obtaining the time when the area ratio of tobacco seedlings in the target designated sub-region within the target future time period reaches the first area ratio according to the target relationship corresponding to the target designated sub-region, the temperature information within the target future time period and the first area ratio corresponding to the target designated sub-region.
[0075] As a preferred embodiment, Figure 4 As shown, S240 includes:
[0076] S241, obtaining the effective accumulated temperature corresponding to each preset judgment time point in the target future time period according to the temperature information in the target future time period; the effective accumulated temperature corresponding to any preset judgment time point is the relative temperature cumulative value from the sowing time of the tobacco seedlings to the preset judgment time point.
[0077] S242, obtaining the tobacco seedling area ratio corresponding to each preset judgment time point in the target future time period according to the target relationship corresponding to each preset judgment time point in the target future time period and the target designated sub-area.
[0078] In this embodiment, the effective accumulated temperature in the target relationship corresponding to the target specified sub-area is the independent variable, and the proportion of the tobacco seedling area is the dependent variable; when the effective accumulated temperature corresponding to each preset judgment time point is known, the effective accumulated temperature corresponding to each preset judgment time point is substituted into the target relationship to obtain the proportion of the tobacco seedling area corresponding to each preset judgment time point in the target future time period.
[0079] S243, judge in chronological order whether the smoke seedling area ratio corresponding to each preset judgment time point in the target future time period is greater than or equal to the first area ratio corresponding to the target designated sub-area, and determine the first preset judgment time point when the corresponding smoke seedling area ratio is greater than or equal to the first area ratio corresponding to the target designated sub-area as the time when the smoke seedling area ratio in the target designated sub-area reaches the first area ratio.
[0080] In this embodiment, the first area ratio corresponding to the target designated sub-area is an empirical value, which corresponds to the area ratio of the tobacco seedlings in the target designated sub-area when the tobacco seedlings are pruned for the first time at the latest; if the tobacco seedlings area ratio of the target designated sub-area is greater than the corresponding first area ratio and the tobacco seedlings have not been pruned for the first time, it is determined that the tobacco seedlings in the target designated sub-area are seriously lagging behind the corresponding target first pruning time; the first area ratios corresponding to different designated sub-areas may be the same or different.
[0081] Based on S241-S243, this embodiment relatively accurately obtains the time when the area ratio of the tobacco seedlings in the target designated sub-area reaches the first area ratio.
[0082] S250: Determine the time when the area ratio of the tobacco seedlings in the target designated sub-region reaches the first area ratio as the latest first pruning time of the target designated sub-region.
[0083] Based on S210 - S250 , this embodiment relatively accurately obtains the latest first trimming time of the target designated sub-area.
[0084] S300, obtaining all pruning paths that meet the first preset condition according to the latest first pruning time of each designated sub-area in the target area, the pruning duration of each designated sub-area in the target area and the preset unit pruning duration; the first preset condition includes: passing through each designated sub-area in the target area, the number of times passing through any designated sub-area in the target area is 1, and the time for pruning the tobacco seedlings in each designated sub-area in the target area is no later than the latest first pruning time of the corresponding designated sub-area.
[0085] In this embodiment, the designated sub-areas included in the target area are sorted. If the number of designated sub-areas included in the target area is n, then there are n factorial ways to sort the designated sub-areas included in the target. For any sorting method, it is determined whether the corresponding pruning path meets the first preset condition, and then all pruning paths that meet the first preset condition are obtained. It should be understood that if the sequence number of the first designated sub-area in a certain sorting method is less than the sequence number of the second designated sub-area, it means that the tobacco seedlings in the first designated sub-area are pruned first, and then the tobacco seedlings in the second designated sub-area are pruned.
[0086] In this embodiment, if the first designated sub-area is numbered i (the value range of i is 1 to n) in a pruning path that meets the first preset condition, then when pruning is performed according to the pruning path that meets the first preset condition, the time for pruning the tobacco seedlings in the first designated sub-area is obtained according to the pruning time of the designated sub-areas with a number less than i in the pruning path that meets the first preset condition and the preset unit pruning time, wherein the pruning time and the preset unit pruning time of any designated sub-area are both empirical values. As a specific implementation method, the first designated sub-area is numbered 5 in a pruning path, and the preset unit pruning time is 8 hours (i.e., there are 8 hours of pruning time in 1 day). The pruning times of the designated sub-areas numbered 1, 2, 3 and 4 in the pruning path are 3, 2, 4 and 1 hour respectively. Then, the time for pruning the tobacco seedlings in the first designated sub-area is the 3rd hour of the next day.
[0087] S400: Obtain the length of each trimming path that meets a first preset condition according to the center position coordinates of each designated sub-region in the target region.
[0088] In this embodiment, the distance between a designated sub-region with a sequence number of j and a designated sub-region with a sequence number of j+1 in a certain trimming path is first obtained (j=1, 2, ..., n-1), and then all the obtained distances are added together to obtain the length of the trimming path; wherein, the distance between a designated sub-region with a sequence number of j and a designated sub-region with a sequence number of j+1 is the distance between the center position of the designated sub-region with a sequence number of j and the center position of the designated sub-region with a sequence number of j+1.
[0089] S500, determine the priority of each pruning path that meets the first preset condition according to the length of each pruning path that meets the first preset condition and the corresponding total pruning area ratio deviation, and send the pruning paths of the top target number with the highest priority to the target user end in order of priority from large to small; the total pruning area ratio deviation is the sum of the pruning area ratio deviations corresponding to all designated sub-areas in the target area, and the pruning area ratio deviation corresponding to any designated sub-area is the absolute value of the difference between the actual tobacco seedling area ratio when the designated sub-area is pruned and the corresponding target tobacco seedling area ratio.
[0090] In this embodiment, the target number is an empirical value, and optionally, the target number is 3 or 5.
[0091] In this embodiment, the length of the target trimming path is negatively correlated with the priority of the target trimming path; the total trimming area ratio deviation corresponding to the target trimming path is used to characterize the degree of deviation between the actual tobacco seedling area ratio when trimming the tobacco seedlings in the specified sub-area and the corresponding target tobacco seedling area ratio. The target tobacco seedling area ratio corresponding to any specified sub-area is the tobacco seedling area ratio when the leaves of the tobacco seedlings in the specified sub-area cover the seedling tray, and the target tobacco seedling area ratio corresponding to any specified sub-area is less than the first area ratio of the specified sub-area; the total trimming area ratio deviation corresponding to the target trimming path is negatively correlated with the priority of the target trimming path; the target trimming path is any trimming path that meets the first preset condition.
[0092] As a specific implementation, Figure 5 As shown in FIG. 1 , the process of obtaining the total trimming area ratio deviation corresponding to the target trimming path includes:
[0093] S501, obtaining the trimming time corresponding to each designated sub-region when trimming according to the target trimming path according to the trimming sequence number of each designated sub-region in the target region, the trimming duration of each designated sub-region in the target region and the preset unit trimming duration.
[0094] In this embodiment, if the serial number of a certain designated sub-region in the target pruning path is i, then when pruning is performed according to the target pruning path, the pruning time corresponding to the designated sub-region is obtained according to the pruning time of the designated sub-region with a serial number less than i in the target pruning path and the preset unit pruning time. For example, if the serial number of a certain designated sub-region in the target pruning path is 4, the preset unit pruning time is 8 hours (i.e., there are 8 hours of pruning time in 1 day), and the pruning time of the designated sub-regions with serial numbers 1, 2, and 3 in the target pruning path is 2, 4, and 3 hours respectively, then the time for pruning the tobacco seedlings in the designated sub-region is the second hour of the next day.
[0095] S502, obtaining the effective accumulated temperature of each designated sub-region before being pruned when pruning according to the target pruning path according to the pruning time corresponding to each designated sub-region and the temperature information in the target future time period.
[0096] In this embodiment, the effective accumulated temperature before each designated sub-area is pruned according to the target pruning path is the relative temperature accumulation value of each designated sub-area from the sowing time of the tobacco seedlings to the corresponding pruning time when pruning is performed according to the target pruning path.
[0097] S503, according to the effective accumulated temperature before each designated sub-region is pruned when pruning according to the target pruning path and the target relationship corresponding to each designated sub-region, obtain the pruning area ratio deviation corresponding to each designated sub-region when pruning according to the target pruning path; the target relationship corresponding to any designated sub-region is the relationship between the tobacco seedling area ratio and the effective accumulated temperature in the designated sub-region.
[0098] In this embodiment, the effective accumulated temperature of a designated sub-region before being pruned when pruning according to the target pruning path is substituted into the target relationship corresponding to the designated sub-region, and the tobacco seedling area ratio of the designated sub-region when pruning according to the target pruning path can be obtained. The target tobacco seedling area ratio of the designated sub-region is subtracted from the area ratio and the absolute value is calculated to obtain the pruning area ratio deviation corresponding to the designated sub-region. The smaller the pruning area ratio deviation corresponding to a designated sub-region is, the smaller the deviation between the pruning time of the designated sub-region and the target first pruning time of the designated sub-region is, and the better the pruning time is.
[0099] S504: Determine the sum of the cropping area ratio deviations corresponding to all designated sub-regions in the target region as the total cropping area ratio deviation corresponding to the target cropping path.
[0100] In this embodiment, the total trimming area ratio deviation corresponding to the target trimming path can reflect the difference between the overall trimming time of all designated sub-areas and the target first trimming time when trimming according to the target trimming path. The smaller the total trimming area ratio deviation, the better the corresponding trimming time and the greater the priority of the target trimming path.
[0101] As a specific implementation, Figure 6 As shown, determining the priority of each trimming path that meets the first preset condition according to the length of each trimming path that meets the first preset condition and the corresponding total trimming area ratio deviation includes:
[0102] S510, normalizing the length of the target pruning path to obtain the normalized length of the target pruning path.
[0103] Those skilled in the art know that any normalization method in the prior art falls within the protection scope of the present invention.
[0104] S520, normalizing the total trimming area ratio deviation corresponding to the target trimming path to obtain the normalized total trimming area ratio deviation corresponding to the target trimming path.
[0105] Those skilled in the art know that any normalization method in the prior art falls within the protection scope of the present invention.
[0106] S530: Determine the priority of the target trimming path according to a preset first weight, a normalized length of the target trimming path, a preset second weight, and a normalized total trimming area ratio deviation corresponding to the target trimming path.
[0107] In this embodiment, the preset first weight and the preset second weight are both empirical values. Optionally, the preset first weight and the preset second weight are both greater than 0 and less than 1, and the sum of the preset first weight and the preset second weight is 1.
[0108] As a preferred specific implementation, the priority of the target pruning path is y, y=1-w1×L'-w2×c', w1 and w2 are respectively a preset first weight and a preset second weight, L' is the normalized length of the target pruning path, and c' is the normalized total pruning area ratio deviation corresponding to the target pruning path.
[0109] This embodiment predicts the latest first pruning time of each designated sub-area in the target area based on the historical tobacco seedling growth information of each designated sub-area in the target area, the temperature information in the target historical time period, and the temperature information in the target future time period. It is not necessary to judge whether the tobacco seedlings need to be pruned by manual observation, which reduces the consumption of human resources. In addition, this embodiment obtains all pruning paths that can meet the first preset condition based on the pruning time of each designated sub-area and the preset unit pruning time. Any pruning path that meets the first preset condition can make the tobacco seedlings in each designated sub-area be pruned at the corresponding latest first pruning time, which can avoid the situation where the actual pruning time of tobacco seedlings in some designated sub-areas lags behind the corresponding latest first pruning time, thereby improving the timeliness of pruning tobacco seedlings in the target area. In addition, this embodiment also obtains the priority of each pruning path that meets the first preset condition based on the length of each pruning path that meets the first preset condition and the corresponding total pruning area ratio deviation, and sends the pruning paths of the target number with higher priority to the target user end in order from large to small priority, so that the user can select the pruning path according to the order of the pruning paths received by the target user end.
[0110] Embodiment 2:
[0111] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0112] The historical tobacco seedling growth information, center position coordinates and temperature information within a target historical time period are obtained for each designated sub-area in the target area; the target area includes several designated sub-areas; the historical tobacco seedling growth information includes the tobacco seedling area ratio corresponding to each preset sampling time point within the target historical time period, and the tobacco seedling area ratio is the ratio of the area of the tobacco seedlings to the area of the corresponding designated sub-area; the target historical time period is before the first pruning time of the tobacco seedlings in the target area.
[0113] The latest first pruning time of each designated sub-area in the target area is predicted based on the historical tobacco seedling growth information of each designated sub-area in the target area, the temperature information in the target historical time period and the temperature information in the target future time period.
[0114] All pruning paths that meet the first preset condition are obtained based on the latest first pruning time of each designated sub-area in the target area, the pruning duration of each designated sub-area in the target area and the preset unit pruning duration; the first preset condition includes: passing through each designated sub-area in the target area, the number of times passing through any designated sub-area in the target area is 1, and the time for pruning the tobacco seedlings in each designated sub-area in the target area is no later than the latest first pruning time of the corresponding designated sub-area.
[0115] The length of each trimming path that meets the first preset condition is obtained according to the center position coordinates of each designated sub-area in the target area.
[0116] The priority of each pruning path that meets the first preset condition is determined according to the length of each pruning path that meets the first preset condition and the corresponding total pruning area ratio deviation, and the pruning paths of the first target number with the highest priority are sent to the target user end in order of priority from large to small; the total pruning area ratio deviation is the sum of the pruning area ratio deviations corresponding to all designated sub-areas in the target area, and the pruning area ratio deviation corresponding to any designated sub-area is the absolute value of the difference between the actual tobacco seedling area ratio when the designated sub-area is pruned and the corresponding target tobacco seedling area ratio.
[0117] Embodiment three:
[0118] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0119] The historical tobacco seedling growth information, center position coordinates and temperature information within a target historical time period are obtained for each designated sub-area in the target area; the target area includes several designated sub-areas; the historical tobacco seedling growth information includes the tobacco seedling area ratio corresponding to each preset sampling time point within the target historical time period, and the tobacco seedling area ratio is the ratio of the area of the tobacco seedlings to the area of the corresponding designated sub-area; the target historical time period is before the first pruning time of the tobacco seedlings in the target area.
[0120] The latest first pruning time of each designated sub-area in the target area is predicted based on the historical tobacco seedling growth information of each designated sub-area in the target area, the temperature information in the target historical time period and the temperature information in the target future time period.
[0121] All pruning paths that meet the first preset condition are obtained based on the latest first pruning time of each designated sub-area in the target area, the pruning duration of each designated sub-area in the target area and the preset unit pruning duration; the first preset condition includes: passing through each designated sub-area in the target area, the number of times passing through any designated sub-area in the target area is 1, and the time for pruning the tobacco seedlings in each designated sub-area in the target area is no later than the latest first pruning time of the corresponding designated sub-area.
[0122] The length of each trimming path that meets the first preset condition is obtained according to the center position coordinates of each designated sub-area in the target area.
[0123] The priority of each pruning path that meets the first preset condition is determined according to the length of each pruning path that meets the first preset condition and the corresponding total pruning area ratio deviation, and the pruning paths of the first target number with the highest priority are sent to the target user end in order of priority from large to small; the total pruning area ratio deviation is the sum of the pruning area ratio deviations corresponding to all designated sub-areas in the target area, and the pruning area ratio deviation corresponding to any designated sub-area is the absolute value of the difference between the actual tobacco seedling area ratio when the designated sub-area is pruned and the corresponding target tobacco seedling area ratio.
[0124] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented 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 memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0125] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A method for determining a tobacco seedling pruning path, characterized in that: The processing method comprises the following steps: Obtaining historical tobacco seedling growth information, center position coordinates, and temperature information within a target historical time period for each designated sub-area in a target area; the target area includes a plurality of designated sub-areas; the historical tobacco seedling growth information includes a tobacco seedling area ratio corresponding to each preset sampling time point within the target historical time period, and the tobacco seedling area ratio is a ratio of the tobacco seedling area to the area of the corresponding designated sub-area; the target historical time period is before the first pruning time of the tobacco seedlings in the target area; Predicting the latest first pruning time for each designated sub-area in the target area based on historical tobacco seedling growth information of each designated sub-area in the target area, temperature information in a target historical time period, and temperature information in a target future time period; All pruning paths that meet the first preset condition are obtained according to the latest first pruning time of each designated sub-area in the target area, the pruning time of each designated sub-area in the target area, and the preset unit pruning time; the first preset condition includes: passing through each designated sub-area in the target area, the number of times passing through any designated sub-area in the target area is 1, and the time for pruning the tobacco seedlings in each designated sub-area in the target area is not later than the latest first pruning time of the corresponding designated sub-area; the unit pruning time is the number of hours that can be used for tobacco seedling pruning in 1 day; Obtaining the length of each trimming path that meets the first preset condition according to the center position coordinates of each designated sub-area in the target area; The priority of each pruning path that meets the first preset condition is determined according to the length of each pruning path that meets the first preset condition and the corresponding total pruning area ratio deviation, and the pruning paths of the first target number with the highest priority are sent to the target user end in order of priority from large to small; the total pruning area ratio deviation is the sum of the pruning area ratio deviations corresponding to all designated sub-areas in the target area, and the pruning area ratio deviation corresponding to any designated sub-area is the absolute value of the difference between the actual tobacco seedling area ratio when the designated sub-area is pruned and the corresponding target tobacco seedling area ratio.
2. The method for determining the tobacco seedling pruning path according to claim 1, characterized in that: The latest first pruning time of each designated sub-area in the target area is predicted based on the historical tobacco seedling growth information of each designated sub-area in the target area, the temperature information in the target historical time period, and the temperature information in the target future time period, including: According to the historical tobacco seedling growth information of the target designated sub-region, the tobacco seedling area ratio corresponding to each preset sampling time point in the target designated sub-region within the historical time period is obtained; the target designated sub-region is any designated sub-region; The effective accumulated temperature corresponding to each preset sampling time point in the target designated sub-area in the historical time period is obtained according to the temperature information in the target historical time period; the effective accumulated temperature corresponding to any preset sampling time point is the relative temperature accumulation value from the sowing time of the tobacco seedlings to the preset sampling time point; Obtaining a target relationship corresponding to the target designated sub-area according to the area ratio of tobacco seedlings and the corresponding effective accumulated temperature at each preset sampling time point in the target designated sub-area within the historical time period; the target relationship is the relationship between the area ratio of tobacco seedlings and the effective accumulated temperature; Obtain the time when the area ratio of tobacco seedlings in the target designated sub-region within the target future time period reaches the first area ratio according to the target relationship corresponding to the target designated sub-region, the temperature information within the target future time period, and the first area ratio corresponding to the target designated sub-region; The time when the area ratio of tobacco seedlings in the target designated sub-region reaches the first area ratio is determined as the latest first pruning time of the target designated sub-region.
3. The method for determining the tobacco seedling pruning path according to claim 2, characterized in that: The time when the area ratio of tobacco seedlings in the target designated sub-region reaches the first area ratio is obtained according to the target relationship corresponding to the target designated sub-region, the temperature information in the target future time period, and the first area ratio corresponding to the target designated sub-region, including: The effective accumulated temperature corresponding to each preset judgment time point in the target future time period is obtained according to the temperature information in the target future time period; the effective accumulated temperature corresponding to any preset judgment time point is the relative temperature accumulation value from the sowing time of the tobacco seedlings to the preset judgment time point; According to the effective accumulated temperature corresponding to each preset judgment time point in the target future time period and the target relationship corresponding to the target designated sub-area, the proportion of the tobacco seedling area corresponding to each preset judgment time point in the target future time period is obtained; In chronological order, determine whether the smoke seedling area ratio corresponding to each preset judgment time point in the target future time period is greater than or equal to the first area ratio corresponding to the target designated sub-area, and determine the first corresponding smoke seedling area ratio is greater than or equal to the first area ratio corresponding to the target designated sub-area as the time when the smoke seedling area ratio in the target designated sub-area reaches the first area ratio.
4. The method for determining a tobacco seedling pruning path according to claim 1, characterized in that: The length of the target pruning path is negatively correlated with the priority of the target pruning path, and the total pruning area ratio deviation corresponding to the target pruning path is negatively correlated with the priority of the target pruning path; the target pruning path is any pruning path that meets the first preset condition.
5. The method for determining the tobacco seedling pruning path according to claim 4, characterized in that: Determining the priority of each trimming path that meets the first preset condition according to the length of each trimming path that meets the first preset condition and the corresponding total trimming area ratio deviation includes: Normalizing the length of the target pruning path to obtain a normalized length of the target pruning path; Normalizing the total trimming area ratio deviation corresponding to the target trimming path to obtain the normalized total trimming area ratio deviation corresponding to the target trimming path; The priority of the target pruning path is determined according to a preset first weight, a normalized length of the target pruning path, a preset second weight, and a normalized total pruning area ratio deviation corresponding to the target pruning path.
6. The method for determining a tobacco seedling pruning path according to claim 4, characterized in that: The process of obtaining the total trimming area ratio deviation corresponding to the target trimming path includes: According to the pruning sequence number of each designated sub-region in the target pruning path, the pruning duration of each designated sub-region in the target region and the preset unit pruning duration, the pruning time corresponding to each designated sub-region when pruning according to the target pruning path is obtained; According to the pruning time and temperature information in the target future time period corresponding to each designated sub-area when pruning according to the target pruning path, the effective accumulated temperature before each designated sub-area is pruned when pruning according to the target pruning path is obtained; According to the effective accumulated temperature before each designated sub-region is pruned when pruning according to the target pruning path, the target relationship corresponding to each designated sub-region is used to obtain the pruning area ratio deviation corresponding to each designated sub-region when pruning according to the target pruning path; the target relationship corresponding to any designated sub-region is the relationship between the tobacco seedling area ratio and the effective accumulated temperature in the designated sub-region; The sum of the trimming area ratio deviations corresponding to all designated sub-areas in the target area is determined as the total trimming area ratio deviation corresponding to the target trimming path.
7. The method for determining a tobacco seedling pruning path according to claim 1, characterized in that: The process of obtaining the percentage of tobacco seedling area corresponding to any designated sub-area at any preset sampling time point includes: Obtaining the leaf area of each tobacco seedling included in a plurality of seedling trays in the designated sub-area at the preset sampling time point; Obtaining the average leaf area of each tobacco seedling in the designated sub-region according to the leaf area of each tobacco seedling included in a plurality of seedling trays in the designated sub-region at the preset sampling time point; The product of the average leaf area of each tobacco seedling in the designated sub-region and the number of tobacco seedlings in the designated sub-region is determined as the total leaf area of the tobacco seedlings in the designated sub-region; The ratio of the total leaf area of the tobacco seedlings in the designated sub-region to the area of the designated sub-region is determined as the tobacco seedling area proportion of the designated sub-region corresponding to the preset sampling time point.
8. The method for determining a tobacco seedling pruning path according to claim 7, characterized in that: The leaf area of any tobacco seedling at any preset sampling time point is the sum of the leaf areas of all leaves of the tobacco seedling at the preset sampling time point, and the leaf area of any leaf at the preset sampling time point is the product of the leaf length, leaf width and preset proportional coefficient of the leaf at the preset sampling time point.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for determining the tobacco seedling pruning path as described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processing method for determining the tobacco seedling pruning path as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Working route generation method and obtaining method
CN115470978A
Critical Path Scheduling with Primacy
US20160098656A1