Method, device, storage medium and electronic device for determining animal throwing behavior
By analyzing the motion information of thrown objects and the state of the animal, combined with the neural network model to determine whether the animal is in a stress state, the problem of false positives and false negatives in the detection of throwing animal behavior in the existing technology is solved, and the detection accuracy is improved.
Patent Information
- Application Number
- CN202410980762.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The accuracy of detecting the behavior of throwing animals in the existing technology is low, and there are problems of false positives and false negatives.
By obtaining the movement information of the objects thrown by the target object, combined with the state analysis of the target animal, it is judged whether the animal is in a state of stress, thereby determining the throwing behavior. Video and audio data are collected using cameras and pickups, and input into the neural network model for analysis and judgment. Animal movements and vocal states.
The accuracy of detection of throwing animal behavior is improved, false positives and false negatives are reduced, and the ability to monitor throwing behavior in the zoo is enhanced.
Smart Images

Figure CN118521944B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a method, device, storage medium, electronic device and computer program product for determining animal throwing behavior. Background Art
[0002] Motion recognition is an important field of computer vision. In related technologies, the detection methods for the operation of monitoring equipment in zoos have low accuracy in detecting the behavior of throwing animals, and there are problems of false alarms and missed alarms. Currently, no effective solutions have been proposed for the above problems in related technologies. Summary of the invention
[0003] Embodiments of the present invention provide a method, device, storage medium, electronic device and computer program product for determining animal throwing behavior, so as to at least solve the problem of low accuracy of the animal throwing behavior detection method in the related art.
[0004] According to one embodiment of the present invention, there is provided a method for determining an animal throwing behavior, comprising: upon detecting that a target object has a throwing behavior towards a target area, obtaining first motion information of a target object thrown by the target object, wherein the target area includes an activity area of an animal; upon determining that a projection angle of the target object included in the first motion information is within a target angle range, a projection speed of the target object included in the first motion information is within a target speed range, and a landing position of the target object included in the first motion information is within a target range, determining that the target object has a target behavior; upon determining that the target object has the target behavior and a target animal exists in the target area, determining whether the target animal is in a stress state caused by the target behavior by analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs; upon determining that the target animal is in the stress state, determining that the target object has an animal throwing behavior.
[0005] In an exemplary embodiment, when it is detected that the target object has thrown a target area, before obtaining the first motion information of the target object thrown by the target object, the method also includes: obtaining in real time the video data collected by the camera and the audio data collected by the microphone, wherein the collection range of the camera and the microphone includes the target area and the sightseeing area where the target object is located; and determining the state of the target animal in the target area and the state of the target object in the sightseeing area based on the video data and the audio data.
[0006] In an exemplary embodiment, the method of determining whether the target animal is in a stress state caused by the target behavior by analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs includes: inputting target video data into a first neural network model for analysis to obtain a target action state of the target animal output by the first neural network model; and inputting target audio data into a second neural network model for analysis to obtain a target sound state of the target animal output by the second neural network model; determining whether the target animal is in the stress state based on the target action state and the target sound state; wherein the target video data is data collected after the target behavior included in the video data occurs, and the target audio data is data collected after the target behavior included in the audio data occurs.
[0007] In an exemplary embodiment, when it is detected that the target object has a throwing behavior towards a target area, obtaining the first motion information of the target item thrown by the target object includes: when it is detected that the target object exists in the target area and the target object has a throwing behavior, determining the attribute information of the target item thrown by the target object; when it is determined that the attribute of the target item is food, obtaining the first motion information of the target item.
[0008] In an exemplary embodiment, the method further includes: determining the attribute information of the target item thrown by the target object when it is detected that the target object exists in the target area and the target object has thrown the item; and determining that the attribute of the target item is a non-food attribute and there is an animal in the target area, determining that the target object has thrown the animal.
[0009] In an exemplary embodiment, the method further includes: when it is determined that the target object has the animal throwing behavior, storing video data and audio data containing the target behavior and used to record the target animal in the stress state, and outputting an alarm.
[0010] In an exemplary embodiment, the analysis of the animal behavior of the target animal in the target area collected after the target behavior occurs to determine whether the target animal is in a stress state caused by the target behavior includes at least one of the following: determining whether the target animal is in the stress state by judging whether the target animal has one or more fast running behaviors; determining whether the target animal is in the stress state by judging whether the target animal has one or more roaring behaviors.
[0011] According to another embodiment of the present invention, there is provided a device for determining animal throwing behavior, comprising: a first acquisition module, for acquiring first motion information of a target object thrown by the target object when it is detected that the target object has a throwing behavior to a target area, wherein the target area includes an activity area of the animal; a first determination module, for determining that the target object has a target behavior when it is determined that the projection angle of the target object included in the first motion information is within a target angle range, the projection speed of the target object included in the first motion information is within a target speed range, and the landing position of the target object included in the first motion information is within a target range; a second determination module, for determining whether the target animal is in a stress state caused by the target behavior by analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs when it is determined that the target object has the target behavior and a target animal exists in the target area; a third determination module, for determining that the target object has an animal throwing behavior when it is determined that the target animal is in the stress state.
[0012] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0013] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0014] According to yet another embodiment of the present invention, a computer program product is provided. The computer program product is configured to execute the steps in any of the above method embodiments.
[0015] Through the present invention, since the throwing behavior of tourists and whether it causes animal stress are combined as the judgment standard for determining whether tourists have thrown animal behavior, the problems of false alarms and missed alarms in the detection of animal throwing behavior in the related technology can be solved, thereby achieving the effect of improving the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a hardware structure block diagram of a mobile terminal according to a method for determining animal throwing behavior according to an embodiment of the present invention;
[0017] Figure 2 is one of the flow charts of the method for determining the throwing animal behavior according to an embodiment of the present invention;
[0018] Figure 3 is a schematic diagram of an animal throwing behavior according to an embodiment of the present invention;
[0019] Figure 4 is a second flow chart of a method for determining animal throwing behavior according to an embodiment of the present invention;
[0020] Figure 5 4 is a structural block diagram of a device for determining animal throwing behavior according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a method for determining animal throwing behavior according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the throwing animal behavior in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] In this embodiment, a method is provided which is run on a camera device, a sound pickup device or other device capable of implementing similar functions. Figure 2 is one of the flow charts of the method for determining the throwing animal behavior according to an embodiment of the present invention, Figure 3 is a schematic diagram of the behavior of throwing an animal according to an embodiment of the present invention, such as Figure 2 As shown, the process includes the following steps:
[0027] Step S202, when it is detected that the target object has a throwing behavior towards the target area, obtaining first motion information of the target object thrown by the target object, wherein the target area includes the activity area of the animal;
[0028] Step S204, determining that the target object has a target behavior when it is determined that the projectile angle of the target object included in the first motion information is within a target angle range, the projectile speed of the target object included in the first motion information is within a target speed range, and the landing point position of the target object included in the first motion information is within a target range;
[0029] Step S206, when it is determined that the target object has the target behavior and there is a target animal in the target area, by analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs, determining whether the target animal is in a stress state caused by the target behavior;
[0030] Step S208: when it is determined that the target animal is in the stress state, it is determined that the target object has an animal throwing behavior.
[0031] In step S202, the camera analyzes the action of the target object in the acquired real-time video to detect whether the action of the target object is the throwing action. Exemplarily, when it is detected that the target object picks up an object and throws it in the direction of the animal in a throwing posture, it is determined that the target object has a throwing behavior to the target area, and the target area includes but is not limited to: a tourist tour area, etc. The target area can be set. Since there are differences in the structure of each zoo area in the actual application scenario, the throwing behavior can be defined in combination with the actual scenario. For example, different throwing action recognition conditions can be set for different parks in the zoo. For example, the algorithm is trained using possible throwing behaviors. Through training, the algorithm can more accurately judge the throwing behavior and reduce the occurrence of missed reports. For example, when the target object stands at a high place and throws the target animal at a low place, the throwing behavior may be an action of throwing from top to bottom with the palm facing down. When the target object stands at a low place and throws the target animal at a high place, the throwing behavior may be an action of throwing from bottom to top with the palm facing up.
[0032] In step S204, the first motion information includes but is not limited to: the projectile angle, projectile speed, landing position, projectile direction, motion trajectory, highest point, landing speed, projectile time, etc. of the target object. When the target object moves, the position and trajectory of the target object can be detected by an algorithm. If the camera captures suspicious behavior of the target object, the video can be replayed and analyzed in detail to analyze the trajectory, speed, landing point and other information of the target object to further confirm whether the target behavior exists; since the target object in the behavior of throwing animals generally has a larger initial speed and a smaller projectile angle, the motion trajectory of the target object is generally a shorter and steeper parabola. If it is feeding an animal, the target object will generally have a smaller speed and a larger projectile angle, and the motion trajectory is generally a longer and gentle trajectory. By analyzing the motion trajectory of the target object through video, a parabola that fits the motion trajectory can be obtained, and the projectile angle can be detected. For example, when the target animal is in the water of the target object, When the target animal is at a higher position, the target angle range can be set to between 20 and 45 degrees. The target angle range can be set in combination with the actual application scenario. In the behavior of throwing animals, since the purpose is generally to hit the animal, the projectile speed of the target object is generally large. The suspected throwing behavior is analyzed through the video. By analyzing the change in the object position and the time difference between consecutive frames, the speed and acceleration of the object can be calculated. For example, if the projectile speed of the target object is greater than or equal to 15m / s, it is considered that the target object may have the target behavior. The landing point position of the target object in the throwing behavior for the purpose of throwing animals is generally more precise, while the landing point position of feeding animal food is more scattered, usually throwing food into an area rather than accurately hitting a certain point. Therefore, if the landing point position of the target object falls within a radius of 2 meters of the animal, it is considered that the target object may have the target behavior.
[0033] In step 206, the actions that the target animal may take under stress include but are not limited to: running away from the original position quickly, making calls, roaring, etc. For example, since the frequency of the target animal's screams when injured is generally different from the frequency, volume, and tone of the screams under normal circumstances, various types of calls in the daily habitat activities of the target animal can be collected in advance, and the calls made by the target animal can be compared with the various types of calls to determine whether the target animal is in a stress state. For example, the frequency range of the fox's call under normal conditions is between 500 Hz and 3000 Hz. If the fox screams under injury or panic, the frequency will be higher, generally exceeding 3000 Hz. If the fox screams at a frequency exceeding 3000 Hz , it is considered that the fox may be in a state of stress; illustratively, when the target animal is detected running fast, it is considered that the target animal may be in a state of stress; in addition, the abnormal posture of the target animal in the video can be analyzed to determine that the target animal may have stress behavior. For example, when an animal is injured or in pain, its movement speed will slow down, and therefore, it may show an abnormal posture or gait (for example, slowed movement, shaking body, staggering, etc.). The method of analyzing the abnormal posture of the target animal in the video includes but is not limited to: analyzing the gait of the target animal by integrating a ground vibration sensor, and distinguishing the abnormal state of the animal by collecting different vibration patterns generated when the animal walks normally and abnormally.
[0034] Through the above steps, since the throwing behavior of tourists and whether it causes animal stress are combined as the judgment standard for whether tourists have thrown animals, the problem of false positives and missed positives in the detection of animal throwing behavior in related technologies is solved, and the detection accuracy is improved.
[0035] The execution subject of the above steps may be a camera device, a sound pickup device or other devices that can realize similar functions, but is not limited thereto.
[0036] In an optional embodiment, when it is detected that the target object has a throwing behavior towards the target area, before obtaining the first motion information of the target object thrown by the target object, the method also includes: obtaining in real time the video data collected by the camera and the audio data collected by the microphone, wherein the collection range of the camera and the microphone includes the target area and the sightseeing area where the target object is located; and determining the state of the target animal in the target area and the state of the target object in the sightseeing area based on the video data and the audio data.
[0037] In the above steps, by analyzing the pixel changes of the video data collected by the camera, the moving parts in the picture can be identified. If these movements match the specific behavior patterns of the target animal, it can be determined that the target animal is present. At night, in low light, and with limited vision, the thermal radiation of the animal can be detected by an integrated infrared sensor to determine whether the target animal exists. Deep learning can also be used to help identify the type of the target animal in the real-time video. The camera can also integrate other functional sensors to provide more comprehensive data to help identify and monitor the target animal. For example, a ground vibration sensor can be used to sense the vibration frequency of the ground when the animal moves, thereby detecting the target animal. Gait analysis, different types and sizes of the target animals generally produce different vibration patterns when walking, and by analyzing the frequency, duration and intensity of these vibrations, different types of the target animals can be distinguished; when the target animals are aquatic organisms, the water quality monitor can measure and analyze various parameters in the water (for example, pH value, dissolved oxygen, organic matter content, turbidity, etc., but not limited to this). For example, fish excrement can make the water acidic, the aquatic organisms will consume dissolved oxygen, the activities of the aquatic organisms will increase the content of organic matter in the water, and the aquatic organisms will also stir up the bottom mud to cause the turbidity of the water body to change. At this time, if the various parameters are monitored to change significantly, it indicates that the aquatic animals are active in the water. The state of the target animal includes but is not limited to: stress state, normal habitat state, etc., and the state of the target object includes but is not limited to: throwing animal state, feeding animal state, sightseeing state, etc.
[0038] In an optional embodiment, the method of determining whether the target animal is in a stress state caused by the target behavior by analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs includes: inputting target video data into a first neural network model for analysis to obtain a target action state of the target animal output by the first neural network model; and inputting target audio data into a second neural network model for analysis to obtain a target sound state of the target animal output by the second neural network model; determining whether the target animal is in the stress state based on the target action state and the target sound state; wherein the target video data is data collected after the target behavior included in the video data occurs, and the target audio data is data collected after the target behavior included in the audio data occurs.
[0039] In an optional embodiment, when it is detected that the target object has a throwing behavior towards the target area, obtaining the first motion information of the target object thrown by the target object includes: when it is detected that the target object exists in the target area and the target object has a throwing behavior, determining the attribute information of the target object thrown by the target object; when it is determined that the attribute of the target object is food, obtaining the first motion information of the target object.
[0040] In the above steps, exemplarily, if the target object thrown by the target object is food, and the throwing angle of the target object is high, the throwing speed is low, and the landing position is far away from the target animal and is relatively scattered, then in a scenario where tourists are allowed to feed animals, the throwing behavior of the target object can generally be considered as feeding the animal.
[0041] In an optional embodiment, the method further includes: when it is detected that the target object exists in the target area and the target object has a throwing behavior, determining the attribute information of the target item thrown by the target object; when it is determined that the attribute of the target item is a non-food attribute and there is an animal in the target area, determining that the target object has a throwing animal behavior.
[0042] In the above steps, illustratively, if the target object thrown by the target object is not food, it is generally believed that the throwing behavior of the target object is an act of throwing an animal.
[0043] In an optional embodiment, the method further includes: when it is determined that the target object has the animal throwing behavior, storing video data and audio data containing the target behavior and used to record the target animal in the stress state, and outputting an alarm.
[0044] In the above steps, the method of outputting the alarm includes but is not limited to: sending an alarm message to the mobile communication device of the zoo keeper, reminding the target object to stop the animal throwing behavior through the audio equipment in the zoo, etc.
[0045] In an optional embodiment, the analysis of the animal behavior of the target animal in the target area collected after the target behavior occurs to determine whether the target animal is in a stress state caused by the target behavior includes at least one of the following: determining whether the target animal is in the stress state by judging whether the target animal has one or more fast running behaviors; determining whether the target animal is in the stress state by judging whether the target animal has one or more roaring behaviors.
[0046] In the above steps, for example, in actual application, when a tourist feeds the target animal for the first time, the target animal may also quickly escape or roar. If the target animal only quickly escapes or roars once, and then returns to the original position to eat the food fed by the target object, it is generally not considered that the target animal is in a state of stress.
[0047] The present invention is described as a whole below in conjunction with specific embodiments:
[0048] Figure 4 The process of the method for determining the throwing animal behavior of the specific embodiment of the present invention is Figure 2 , wherein the method comprises:
[0049] Step S402, collecting audio and video data;
[0050] Step S404, judging whether the person has a throwing action, if yes, jumping to step S406, if no, jumping to step S402;
[0051] Step S406, judging whether there is an animal and determining the animal type, if yes, jumping to step S408 and step S410, if no, jumping to step S402;
[0052] Step S408, audio detection and recognition determines whether there are words related to animal roars, if yes, jump to step S412;
[0053] Step S410, video detection determines whether there is an animal moving quickly, if yes, jump to step S412;
[0054] Step S412, determine whether the loop is greater than or equal to two times, if yes, jump to step S414, if no, jump to step S402;
[0055] Step S414, reporting the throwing detection result.
[0056] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0057] In this embodiment, a device for determining the behavior of throwing animals is also provided, and the device is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0058] Figure 5 is a structural block diagram of a device for determining animal throwing behavior according to an embodiment of the present invention, such as Figure 5 As shown, the device includes: a first acquisition module 52, which is used to acquire first motion information of a target object thrown by the target object when it is detected that the target object has a throwing behavior to a target area, wherein the target area includes an activity area of an animal; a first determination module 54, which is used to determine that the target object has a target behavior when it is determined that the projection angle of the target object included in the first motion information is within the target angle range, the projection speed of the target object included in the first motion information is within the target speed range, and the landing position of the target object included in the first motion information is within the target range; a second determination module 56, which is used to determine whether the target animal is in a stress state caused by the target behavior by analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs when it is determined that the target object has the target behavior and there is a target animal in the target area; a third determination module 58, which is used to determine that the target object has the animal throwing behavior when it is determined that the target animal is in the stress state.
[0059] In an optional embodiment, the device also includes: a second acquisition module, which is used to acquire video data collected by a camera and audio data collected by a microphone in real time before acquiring first motion information of a target object thrown by the target object when it is detected that the target object has a throwing behavior towards the target area, wherein the acquisition range of the camera and the microphone includes the target area and the sightseeing area where the target object is located; and a fourth determination module, which is used to determine the state of the target animal in the target area and the state of the target object in the sightseeing area based on the video data and the audio data.
[0060] In an optional embodiment, the second determination module includes: a first input unit, used to input the target video data into the first neural network model for analysis, and obtain the target action state of the target animal output by the first neural network model; and, a second input unit, used to input the target audio data into the second neural network model for analysis, and obtain the target sound state of the target animal output by the second neural network model; a first determination unit, used to determine whether the target animal is in the stress state based on the target action state and the target sound state; wherein the target video data is data collected after the target behavior included in the video data occurs, and the target audio data is data collected after the target behavior included in the audio data occurs.
[0061] In an optional embodiment, the first acquisition module includes: a second determination unit, used to determine the attribute information of the target object thrown by the target object when it is detected that the target object exists in the target area and the target object has a throwing behavior; an acquisition unit, used to acquire the first motion information of the target object when it is determined that the attribute of the target object is a food attribute.
[0062] In an optional embodiment, the device also includes: a fifth determination module, which is used to determine the attribute information of the target object thrown by the target object when it is detected that the target object exists in the target area and the target object has thrown the object; and a sixth determination module, which is used to determine that the target object has thrown the animal when it is determined that the attribute of the target object is a non-food attribute and there is an animal in the target area.
[0063] In an optional embodiment, the device further includes: a storage module for storing video data and audio data containing the target behavior and recording the target animal in the stress state, and outputting an alarm when it is determined that the target object has the animal throwing behavior.
[0064] In an optional embodiment, the second determination module includes at least one of the following: a third determination unit, used to determine whether the target animal is in the stress state by determining whether the target animal has one or more fast running behaviors; a fourth determination unit, used to determine whether the target animal is in the stress state by determining whether the target animal has one or more roaring behaviors.
[0065] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0066] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0067] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0068] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0069] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0070] An embodiment of the present invention further provides a computer program product, which is configured to execute the steps in any of the above method embodiments.
[0071] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0072] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0073] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for determining an animal throwing behavior, characterized in that: include: When it is detected that the target object has a throwing behavior towards the target area, obtaining first motion information of the target object thrown by the target object, wherein the target area includes an activity area of the animal; When it is determined that the projectile angle of the target object included in the first motion information is within the target angle range, the projectile speed of the target object included in the first motion information is within the target speed range, and the landing point position of the target object included in the first motion information is within the target range, it is determined that the target object has a target behavior; When it is determined that the target object has the target behavior and there is a target animal in the target area, determining whether the target animal is in a stress state caused by the target behavior by analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs; In the case where it is determined that the target animal is in the stress state, it is determined that the target object has an animal throwing behavior.
2. The method according to claim 1, characterized in that In the case where it is detected that the target object has a throwing behavior towards the target area, before obtaining the first motion information of the target object thrown by the target object, the method further includes: Acquire video data collected by a camera and audio data collected by a microphone in real time, wherein the collection range of the camera and the microphone includes the target area and the sightseeing area where the target object is located; The state of the target animal in the target area and the state of the target object in the sightseeing area are determined based on the video data and the audio data.
3. The method according to claim 2, characterized in that The step of analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs to determine whether the target animal is in a stress state caused by the target behavior includes: Inputting the target video data into a first neural network model for analysis, and obtaining a target action state of the target animal output by the first neural network model; and, inputting the target audio data into a second neural network model for analysis to obtain a target sound state of the target animal output by the second neural network model; determining whether the target animal is in the stress state based on the target action state and the target sound state; The target video data is data collected after the target behavior included in the video data occurs, and the target audio data is data collected after the target behavior included in the audio data occurs.
4. The method according to claim 1, characterized in that: In the case where it is detected that the target object has a throwing behavior towards the target area, obtaining first motion information of the target object thrown by the target object includes: In the case where it is detected that the target object exists in the target area and the target object has a throwing behavior, determining the attribute information of the target object thrown by the target object; When it is determined that the attribute of the target object is food, the first movement information of the target object is acquired.
5. The method according to claim 1, characterized in that The method further comprises: In the case where it is detected that the target object exists in the target area and the target object has a throwing behavior, determining the attribute information of the target object thrown by the target object; When it is determined that the attribute of the target object is a non-food attribute and there is an animal in the target area, it is determined that the target object has an animal throwing behavior.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When it is determined that the target object has the animal throwing behavior, the video data and audio data containing the target behavior and used to record the target animal in the stress state are stored, and an alarm is output.
7. The method according to any one of claims 1 to 5, characterized in that The step of analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs to determine whether the target animal is in a stress state caused by the target behavior includes at least one of the following: Determining whether the target animal is in the stress state by judging whether the target animal has one or more fast running behaviors; Whether the target animal is in the stress state is determined by judging whether the target animal has one or more roaring behaviors.
8. A device for determining the behavior of throwing an animal, characterized in that: include: A first acquisition module is used to acquire first motion information of a target object thrown by the target object when it is detected that the target object has a throwing behavior towards a target area, wherein the target area includes an activity area of an animal; a first determination module, configured to determine that the target object has a target behavior when it is determined that the projectile angle of the target object included in the first motion information is within a target angle range, the projectile speed of the target object included in the first motion information is within a target speed range, and the landing point position of the target object included in the first motion information is within a target range; A second determination module is used to determine whether the target animal is in a stress state caused by the target behavior by analyzing the animal behavior of the target animal in the target area collected after the target behavior occurs, when it is determined that the target object has the target behavior and there is a target animal in the target area; The third determination module is used to determine that the target object has an animal throwing behavior when it is determined that the target animal is in the stress state.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. 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 steps of the method described in any one of claims 1 to 7 are implemented.
11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
