Animal Intrusion Detection Using ESP32 Cam and Open CV
Animal Intrusion Detection Using ESP32 Cam and Open CV
ISSN No:-2456-2165
Abstract – In forest and agricultural field human and extreme cases they lose their life, so the field or zone is
animal conflict is a major problem where enormous continuously monitored to prevent entry of animals are any
amount if resources are lost and human and animal life other unwanted intrusion. The animal intrusion detection
are endangered. Due to this animal lives are endangered. system uses a camera and a remote server to detect animals.
People lose their crops, cattle and in some extreme cases ESP32 is a cost-efficient camera module used to stream
they lose their lives. In current era of continuously live footage to the server via wifi. Arduino IDE is used to
developing IOT sensors and cloud technology, Image upload the firmware to the module. The firmware contains
processing in remote areas became easy and cheap. To the configuration details like picture quality. Object
tackle this problem, we have developed a system with detection algorithm based on yolov5 is used for object
cameras and remote cloud server to capture live footage detection. The algorithm is pre-trained with thousands of
of area to be protected and processing the footage in a annotated images multiple times to achieve maximum
live server to detect animal intrusion. For hardware accuracy. The camera module is placed in multiple places in
components, we have used ESP32 camera module with the field to achieve maximum coverage. The captured live
Wifi to capture live footages. The captured footage is footage is sent to a cloud server using wifi and it is
sent to a remote server or PC for further processing. A processed using pre-trained algorithm. The objects in the
yolov5 based pre-trained algorithm is used for object video are detected and classified based on their similarities.
detection. To achieve maximum accuracy the algorithm Based on the animal detected on the footage an alert is sent
is trained with thousands of animal photos multiple to the farmer.
times until desired accuracy is reached (~98%). The
footage is processed and based on the type of animal II. RELATED WORKS
detected a message or alert is sent to the farmer or forest
department from the server and a speaker can be used to Priya Sharma et al., [1] introduced a system designed
scare the animals. to safeguard crops from potential threats posed by animals.
Their innovative solution relies on a combination of a
Keywords:- Animal Detection, ESP32 CAM, Yolov5. Raspberry Pi and a PIR sensor. The PIR sensor serves to
detect any motion made by animals, prompting the camera
I. INTRODUCTION to activate and capture images. These captured images are
subsequently transmitted to the Raspberry Pi for analysis
India is a global agricultural powerhouse. It is the and classification of the detected animal. Based on this
world’s largest producer of milk, pulses, and spices, and has classification, the system takes appropriate actions to protect
the world’s largest cattle herd, as well as the largest area the crops.
under wheat, rice and cotton. Most of these lands are located
in rural and forest area. Animal intrusion is unavoidable in Prajna. P et. al. [2] have developed a field monitoring
these areas. As humans started to change forests into fields system. This system begins by utilizing a sensor to identify
and residential area wild animals are forced to enter into any encroachments around the field, followed by activating
these areas for food and water. Elephants or wild boar tramp a camera to capture an image of the intruder. Subsequently,
the vegetation in farm land in need of nutritious food. it employs image processing techniques to categorize the
Human-Elephant is more frequent in south Asia and in intruder, and based on this classification, it takes suitable
Africa. This leads to conflict between humans and animals measures to address the intrusion. Finally, the system sends
and in some cases endangerment of animal species. In recent a notification to the farm owner to keep them informed.
times the number of these kinds of these kinds of conflicts
are increasing. People lose their crops and cattle and in some