Livestock and poultry quantity counting method and terminal
Patent Information
- Application Number
- CN202410921632.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-01
Smart Images

Figure CN118887583A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual recognition technology, and in particular to a livestock and poultry counting method and terminal. Background Art
[0002] Farms usually have scenarios where the number of livestock and poultry needs to be counted, such as the scene of pigs being slaughtered in a pig farm, or the scene of driving cows to milking in a cattle farm. In this process, the number of livestock and poultry entering and leaving needs to be counted. The existing technology generally requires manual counting, which is inefficient and inaccurate. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method and terminal for counting the number of livestock and poultry, which can effectively improve the efficiency and accuracy of the counting.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0005] A method for counting livestock and poultry, comprising the steps of:
[0006] Collecting videos of livestock and poultry entering and leaving the breeding area, and determining a virtual line in the videos of livestock and poultry entering and leaving the breeding area;
[0007] Using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtain the counting result;
[0008] The breeding area equipment is managed or breeding data is counted according to the inventory results.
[0009] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0010] A livestock and poultry counting terminal includes 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:
[0011] Collecting videos of livestock and poultry entering and leaving the breeding area, and determining a virtual line in the videos of livestock and poultry entering and leaving the breeding area;
[0012] Using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtain the counting result;
[0013] The breeding area equipment is managed or breeding data is counted according to the inventory results.
[0014] The beneficial effects of the present invention are as follows: a virtual line is determined in the collected video of livestock and poultry entering and exiting the breeding area, and visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and exiting the breeding area based on the virtual line and the preset passing direction to obtain the counting result, and the breeding area equipment is managed or the breeding data is counted according to the counting result. Compared with the manual counting method, the use of visual recognition technology combined with the determined virtual line and the preset passing direction can accurately and efficiently realize the counting of the number of livestock and poultry, thereby effectively improving the efficiency and accuracy of the counting. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of a method for counting the number of livestock and poultry according to an embodiment of the present invention;
[0016] Figure 2 The present invention is a schematic diagram of the structure of a livestock and poultry counting terminal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0018] Please refer to Figure 1 , a method for counting the number of livestock and poultry, comprising the steps of:
[0019] Collecting videos of livestock and poultry entering and leaving the breeding area, and determining a virtual line in the videos of livestock and poultry entering and leaving the breeding area;
[0020] Using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtain the counting result;
[0021] The breeding area equipment is managed or breeding data is counted according to the inventory results.
[0022] From the above description, it can be seen that the beneficial effects of the present invention are: determining a virtual line in the collected video of livestock and poultry entering and exiting the breeding area, using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and exiting the breeding area based on the virtual line and the preset passing direction, and obtaining the counting results, managing the breeding area equipment or statistical breeding data according to the counting results. Compared with the manual counting method, the use of visual recognition technology combined with the determined virtual line and the preset passing direction can accurately and efficiently realize the counting of the number of livestock and poultry, thereby effectively improving the efficiency and accuracy of the counting.
[0023] Furthermore, the visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include:
[0024] Initializing the count to a first preset value;
[0025] Identifying the head and tail of the livestock and poultry from the video of the livestock and poultry entering and leaving the breeding area;
[0026] If the head and tail of the livestock and poultry both pass through the virtual line according to the preset passing direction, the count is increased by one;
[0027] If the head and tail of the livestock and poultry pass through the virtual line in a direction opposite to the preset passing direction, the count is reduced by one;
[0028] The counts were taken as the counting results.
[0029] From the above description, it can be seen that when the head and tail of livestock and poultry pass through the virtual line in the preset direction, the count is increased by one. When the head and tail of livestock and poultry pass through the virtual line in the direction opposite to the preset direction, the count is reduced by one. This can avoid invalid counting caused by livestock and poultry not completely passing through the virtual line or returning after passing through the virtual line, thereby improving the accuracy of livestock and poultry counting.
[0030] Furthermore, the video of livestock and poultry entering and leaving the breeding area includes a video of pigs entering and leaving a pig farm;
[0031] The preset passing direction includes a preset exit direction;
[0032] The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include:
[0033] Using visual recognition technology to count the pigs in the video of the pigs entering and leaving the pig farm based on the virtual line and the preset slaughter direction, obtain the slaughter quantity, and determine the time interval corresponding to the slaughter quantity;
[0034] The counting of breeding data according to the counting result comprises:
[0035] A pig sales report is generated based on the number of pigs slaughtered in one day and the time interval.
[0036] From the above description, it can be seen that when applied in a pig farm, visual recognition technology is used to count the pigs in and out of the pig farm video based on the virtual line and the preset delivery direction, so as to obtain the delivery number and determine the corresponding time interval, so as to generate a pig sales report and count the sales of pigs within a day, so as to enable the staff to understand the sales of pigs more accurately and efficiently.
[0037] Furthermore, the video of livestock and poultry entering and leaving the breeding area includes a video of cows entering and leaving the cattle farm;
[0038] The preset passing direction includes a preset exit direction;
[0039] The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include:
[0040] Determine whether the current time is the milking time for the cows. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset exit direction to obtain the number of cows leaving the cow farm, and determine the time corresponding to the number of cows leaving the cow farm;
[0041] The equipment for managing the breeding area according to the inventory result includes:
[0042] According to the number of cows leaving the farm and the time corresponding to the number of cows leaving the farm, it is judged whether the number of cows in the farm is decreasing. If so, a shutdown command is sent to the sprinkler and fan in the farm.
[0043] It can be seen from the above description that the present invention can also be applied in cattle farms. Traditional dairy farms do not turn off the spraying device and the fan when the cows go out for milking. However, when it is milking time, the present invention uses visual recognition technology to count the cows in the video of the cows entering and leaving the cattle farm based on the virtual line and the preset exit direction, so as to obtain the number of cows leaving the cattle farm and determine the corresponding time. Then, when it is determined based on the two that the number of cows in the cattle farm is decreasing, the spraying device and the fan are controlled, and the accurate livestock and poultry inventory results can be effectively used to automatically shut down the equipment in the cattle farm, thereby saving water and electricity bills and reducing the breeding cost of the cattle farm.
[0044] Furthermore, the preset passing direction also includes a preset approach direction;
[0045] The method of using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtaining the counting result also includes:
[0046] Determine whether the current time is the time when the milking of the cows is completed. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset entry direction to obtain the number of cows returning to the cow farm, and determine the time corresponding to the number of cows returning to the cow farm;
[0047] The equipment for managing the breeding area according to the inventory result includes:
[0048] According to the number of cows returning to the farm and the time corresponding to the number of cows returning to the farm, it is judged whether the number of cows in the farm is increasing. If so, an opening instruction is sent to the sprinkler and fan in the farm.
[0049] From the above description, it can be seen that when the current time is the time when milking of cows is completed, visual recognition technology is used to count the cows in the video of entering and leaving the cattle farm based on the virtual line and the preset entry direction to obtain the number of cows returning to the cattle farm. If the number of cows in the cattle farm continues to increase, the spray device and the fan are controlled to start, thereby accurately realizing the automatic start-up of the spray device and the fan in the cattle farm.
[0050] Please refer to Figure 2 , a livestock and poultry counting terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0051] Collecting videos of livestock and poultry entering and leaving the breeding area, and determining a virtual line in the videos of livestock and poultry entering and leaving the breeding area;
[0052] Using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtain the counting result;
[0053] The breeding area equipment is managed or breeding data is counted according to the inventory results.
[0054] From the above description, it can be seen that the beneficial effects of the present invention are: determining a virtual line in the collected video of livestock and poultry entering and exiting the breeding area, using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and exiting the breeding area based on the virtual line and the preset passing direction, and obtaining the counting results, managing the breeding area equipment or statistical breeding data according to the counting results. Compared with the manual counting method, the use of visual recognition technology combined with the determined virtual line and the preset passing direction can accurately and efficiently realize the counting of the number of livestock and poultry, thereby effectively improving the efficiency and accuracy of the counting.
[0055] Furthermore, the visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include:
[0056] Initializing the count to a first preset value;
[0057] Identifying the head and tail of the livestock and poultry from the video of the livestock and poultry entering and leaving the breeding area;
[0058] If the head and tail of the livestock and poultry both pass through the virtual line according to the preset passing direction, the count is increased by one;
[0059] If the head and tail of the livestock and poultry pass through the virtual line in a direction opposite to the preset passing direction, the count is reduced by one;
[0060] The counts were taken as the counting results.
[0061] From the above description, it can be seen that when the head and tail of livestock and poultry pass through the virtual line in the preset direction, the count is increased by one. When the head and tail of livestock and poultry pass through the virtual line in the direction opposite to the preset direction, the count is reduced by one. This can avoid invalid counting caused by livestock and poultry not completely passing through the virtual line or returning after passing through the virtual line, thereby improving the accuracy of livestock and poultry counting.
[0062] Furthermore, the video of livestock and poultry entering and leaving the breeding area includes a video of pigs entering and leaving a pig farm;
[0063] The preset passing direction includes a preset exit direction;
[0064] The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include:
[0065] Using visual recognition technology to count the pigs in the video of the pigs entering and leaving the pig farm based on the virtual line and the preset slaughter direction, obtain the slaughter quantity, and determine the time interval corresponding to the slaughter quantity;
[0066] The counting of breeding data according to the counting result comprises:
[0067] A pig sales report is generated based on the number of pigs slaughtered in one day and the time interval.
[0068] From the above description, it can be seen that when applied in a pig farm, visual recognition technology is used to count the pigs in and out of the pig farm video based on the virtual line and the preset delivery direction, so as to obtain the delivery number and determine the corresponding time interval, so as to generate a pig sales report and count the sales of pigs within a day, so as to enable the staff to understand the sales of pigs more accurately and efficiently.
[0069] Furthermore, the video of livestock and poultry entering and leaving the breeding area includes a video of cows entering and leaving the cattle farm;
[0070] The preset passing direction includes a preset exit direction;
[0071] The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include:
[0072] Determine whether the current time is the milking time for the cows. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset exit direction to obtain the number of cows leaving the cow farm, and determine the time corresponding to the number of cows leaving the cow farm;
[0073] The equipment for managing the breeding area according to the inventory result includes:
[0074] According to the number of cows leaving the farm and the time corresponding to the number of cows leaving the farm, it is judged whether the number of cows in the farm is decreasing. If so, a shutdown command is sent to the sprinkler and fan in the farm.
[0075] It can be seen from the above description that the present invention can also be applied in cattle farms. Traditional dairy farms do not turn off the spraying device and the fan when the cows go out for milking. However, when it is milking time, the present invention uses visual recognition technology to count the cows in the video of the cows entering and leaving the cattle farm based on the virtual line and the preset exit direction, so as to obtain the number of cows leaving the cattle farm and determine the corresponding time. Then, when it is determined based on the two that the number of cows in the cattle farm is decreasing, the spraying device and the fan are controlled, and the accurate livestock and poultry inventory results can be effectively used to automatically shut down the equipment in the cattle farm, thereby saving water and electricity bills and reducing the breeding cost of the cattle farm.
[0076] Furthermore, the preset passing direction also includes a preset approach direction;
[0077] The method of using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtaining the counting result also includes:
[0078] Determine whether the current time is the time when the milking of the cows is completed. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset entry direction to obtain the number of cows returning to the cow farm, and determine the time corresponding to the number of cows returning to the cow farm;
[0079] The equipment for managing the breeding area according to the inventory result includes:
[0080] According to the number of cows returning to the farm and the time corresponding to the number of cows returning to the farm, it is judged whether the number of cows in the farm is increasing. If so, an opening instruction is sent to the sprinkler and fan in the farm.
[0081] From the above description, it can be seen that when the current time is the time when milking of cows is completed, visual recognition technology is used to count the cows in the video of entering and leaving the cattle farm based on the virtual line and the preset entry direction to obtain the number of cows returning to the cattle farm. If the number of cows in the cattle farm continues to increase, the spray device and the fan are controlled to start, thereby accurately realizing the automatic start-up of the spray device and the fan in the cattle farm.
[0082] The livestock and poultry counting method and terminal of the present invention can be applied to the scene where the livestock and poultry need to be counted in the farm, and the following is explained through specific implementation methods:
[0083] Please refer to Figure 1 , Embodiment 1 of the present invention is:
[0084] A method for counting livestock and poultry, comprising the steps of:
[0085] S1. Collect videos of livestock and poultry entering and leaving the breeding area, and determine a virtual line in the videos of livestock and poultry entering and leaving the breeding area.
[0086] S2, using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, to obtain the counting result, specifically including S21-S25:
[0087] S21. Initialize the count to a first preset value.
[0088] Among them, the first preset value is 0.
[0089] S22. Identify the head and tail of the livestock and poultry from the video of the livestock and poultry entering and leaving the breeding area.
[0090] S23. If the head and tail of the livestock and poultry both pass through the virtual line according to the preset passing direction, the count is increased by one.
[0091] The preset passing direction is the direction in which the livestock and poultry leave the farm.
[0092] S24. If the head and tail of the livestock and poultry pass through the virtual line in a direction opposite to the preset passing direction, the count is reduced by one.
[0093] S25. Use the count as the counting result.
[0094] In an optional embodiment, the video of livestock and poultry entering and exiting the breeding area includes a video of pigs entering and exiting a pig farm; the preset passing direction includes a preset exit direction; S2 is specifically:
[0095] Visual recognition technology is used to count the pigs in the video of the pigs entering and leaving the pig farm based on the virtual line and the preset slaughter direction, to obtain the slaughter number, and to determine the time interval corresponding to the slaughter number.
[0096] In another optional embodiment, the video of livestock and poultry entering and exiting the breeding area includes a video of cows entering and exiting a cattle farm; the preset passing direction includes a preset exit direction and a preset entry direction; S2 is specifically:
[0097] Determine whether the current time is the milking time for the cows. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset exit direction to obtain the number of cows leaving the cow farm, and determine the time corresponding to the number of cows leaving the cow farm;
[0098] Determine whether the current time is the time when milking of the cows is completed. If so, use visual recognition technology to count the cows in the video of entering and leaving the cow farm based on the virtual line and the preset entry direction to obtain the number of cows returning to the cow farm, and determine the time corresponding to the number of cows returning to the cow farm.
[0099] S3. Managing the breeding area equipment or collecting breeding data according to the counting results.
[0100] In an optional implementation manner, S3 specifically includes:
[0101] A pig sales report is generated according to the number of pigs sold in a day and the time interval, so that the number of pigs sold in a day can be accurately and efficiently counted, making it convenient for staff to understand the sales situation of pigs.
[0102] In another optional implementation, S3 is specifically:
[0103] According to the number of cows leaving the cow farm and the time corresponding to the number of cows leaving the cow farm, it is judged whether the number of cows in the cow farm is decreasing continuously, and if so, a shutdown instruction is sent to the sprinkler device and the fan in the cow farm;
[0104] According to the number of cows returning to the farm and the time corresponding to the number of cows returning to the farm, it is determined whether the number of cows in the farm is increasing. If so, a start instruction is sent to the spray device and the fan in the farm. In this way, the number of remaining cows in the farm can be accurately determined, and the spray device and the fan can be turned on and off by the increase and decrease in the number of cows identified. Since the farm usually has three milkings a day, the automatic opening and closing of the spray device and the fan effectively saves water and electricity costs and reduces the breeding costs of the farm.
[0105] Please refer to Figure 2 , Embodiment 2 of the present invention is:
[0106] A livestock and poultry counting terminal comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the livestock and poultry counting method in the first embodiment is implemented.
[0107] In summary, the present invention provides a livestock and poultry counting method and terminal, which determine a virtual line in the collected video of livestock and poultry entering and exiting a breeding area, use visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and exiting the breeding area based on the virtual line and a preset passing direction, and obtain the counting result, and manage the breeding area equipment or count the breeding data according to the counting result. Compared with the manual counting method, the use of visual recognition technology in combination with the determined virtual line and the preset passing direction can accurately and efficiently realize the livestock and poultry counting, thereby effectively improving the efficiency and accuracy of the counting; and when applied in a pig farm, the visual recognition technology is used to count the pigs in the video of pigs entering and exiting the pig farm based on the virtual line and the preset delivery direction to obtain the delivery number and determine the corresponding time interval, thereby generating a pig sales report and counting the sales of pigs in one day, so as to enable the staff to understand the sales of pigs more accurately and efficiently; at the same time, it can also be applied in cattle farms. Traditional dairy farms will not turn off the spraying device and the fan when the cows go out for milking, while the present invention uses visual recognition technology to count the cows in the video of the cows entering and leaving the cattle farm based on the virtual line and the preset exit direction when it is in the milking time, so as to obtain the number of cows leaving the cattle farm and determine the corresponding time, and then control the spraying device and the fan when the number of cows in the cattle farm is continuously decreasing according to the two, and can effectively use the accurate livestock and poultry inventory results to automatically shut down the equipment in the cattle farm, saving water and electricity bills and reducing the breeding cost of the cattle farm.
[0108] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for counting the number of livestock and poultry, characterized in that: Includes steps: Collecting videos of livestock and poultry entering and leaving the breeding area, and determining a virtual line in the videos of livestock and poultry entering and leaving the breeding area; Using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtain the counting result; The breeding area equipment is managed or breeding data is counted according to the inventory results.
2. A livestock and poultry counting method according to claim 1, characterized in that: The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include: Initialize the count to a first preset value; Identifying the head and tail of the livestock and poultry from the video of the livestock and poultry entering and leaving the breeding area; If the head and tail of the livestock and poultry both pass through the virtual line according to the preset passing direction, the count is increased by one; If the head and tail of the livestock and poultry pass through the virtual line in a direction opposite to the preset passing direction, the count is reduced by one; The counts were taken as the counting results.
3. A livestock and poultry counting method according to claim 1, characterized in that: The videos of livestock and poultry entering and leaving the breeding area include videos of pigs entering and leaving the pig farm; The preset passing direction includes a preset exit direction; The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include: Using visual recognition technology to count the pigs in the video of the pigs entering and leaving the pig farm based on the virtual line and the preset slaughter direction, obtain the slaughter quantity, and determine the time interval corresponding to the slaughter quantity; The counting of breeding data according to the counting result comprises: A pig sales report is generated based on the number of pigs slaughtered in one day and the time interval.
4. A livestock and poultry counting method according to claim 1, characterized in that: The video of livestock and poultry entering and leaving the breeding area includes the video of cows entering and leaving the cattle farm; The preset passing direction includes a preset exit direction; The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include: Determine whether the current time is the milking time for the cows. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset exit direction to obtain the number of cows leaving the cow farm, and determine the time corresponding to the number of cows leaving the cow farm; The equipment for managing the breeding area according to the inventory result includes: According to the number of cows leaving the farm and the time corresponding to the number of cows leaving the farm, it is judged whether the number of cows in the farm is decreasing. If so, a shutdown command is sent to the sprinkler and fan in the farm.
5. A livestock and poultry counting method according to claim 4, characterized in that: The preset passing direction also includes a preset approach direction; The method of using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtaining the counting result also includes: Determine whether the current time is the time when the milking of the cows is completed. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset entry direction to obtain the number of cows returning to the cow farm, and determine the time corresponding to the number of cows returning to the cow farm; The equipment for managing the breeding area according to the inventory result includes: According to the number of cows returning to the farm and the time corresponding to the number of cows returning to the farm, it is judged whether the number of cows in the farm is increasing. If so, an opening instruction is sent to the sprinkler and fan in the farm.
6. A livestock and poultry counting terminal, 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 following steps are implemented: Collecting videos of livestock and poultry entering and leaving the breeding area, and determining a virtual line in the videos of livestock and poultry entering and leaving the breeding area; Using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtain the counting result; The breeding area equipment is managed or breeding data is counted according to the inventory results.
7. A livestock and poultry counting terminal according to claim 6, characterized in that: The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include: Initialize the count to a first preset value; Identifying the head and tail of the livestock and poultry from the video of the livestock and poultry entering and leaving the breeding area; If the head and tail of the livestock and poultry both pass through the virtual line according to the preset passing direction, the count is increased by one; If the head and tail of the livestock and poultry pass through the virtual line in a direction opposite to the preset passing direction, the count is reduced by one; The counts were taken as the counting results.
8. The livestock and poultry counting terminal according to claim 6, characterized in that: The videos of livestock and poultry entering and leaving the breeding area include videos of pigs entering and leaving the pig farm; The preset passing direction includes a preset exit direction; The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include: Using visual recognition technology to count the pigs in the video of the pigs entering and leaving the pig farm based on the virtual line and the preset slaughter direction, obtain the slaughter quantity, and determine the time interval corresponding to the slaughter quantity; The counting of breeding data according to the counting result comprises: A pig sales report is generated based on the number of pigs slaughtered in one day and the time interval.
9. A livestock and poultry counting terminal according to claim 6, characterized in that: The video of livestock and poultry entering and leaving the breeding area includes the video of cows entering and leaving the cattle farm; The preset passing direction includes a preset exit direction; The visual recognition technology is used to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and the counting results obtained include: Determine whether the current time is the milking time for the cows. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset exit direction to obtain the number of cows leaving the cow farm, and determine the time corresponding to the number of cows leaving the cow farm; The equipment for managing the breeding area according to the inventory result includes: According to the number of cows leaving the farm and the time corresponding to the number of cows leaving the farm, it is judged whether the number of cows in the farm is decreasing. If so, a shutdown command is sent to the sprinkler and fan in the farm.
10. A livestock and poultry counting terminal according to claim 9, characterized in that: The preset passing direction also includes a preset approach direction; The method of using visual recognition technology to count the livestock and poultry in the video of livestock and poultry entering and leaving the breeding area based on the virtual line and the preset passing direction, and obtaining the counting result also includes: Determine whether the current time is the time when the milking of the cows is completed. If so, use visual recognition technology to count the cows in the video of the cows entering and leaving the cow farm based on the virtual line and the preset entry direction to obtain the number of cows returning to the cow farm, and determine the time corresponding to the number of cows returning to the cow farm; The equipment for managing the breeding area according to the inventory result includes: According to the number of cows returning to the farm and the time corresponding to the number of cows returning to the farm, it is judged whether the number of cows in the farm is increasing. If so, an opening instruction is sent to the sprinkler and fan in the farm.
