AITS Journal
Published in

AITS Journal

Sheep Detection

Photo by Süha Eryaşar on Dribbble

The main use of this application is to detect sheep from the image, which can then be used for many purposes like counting sheep and keeping track of the sheep in the yard.
It will help farms to maintain a proper record of there sheep too.

So, Lets get started

Dataset: https://www.kaggle.com/intelecai/sheep-detection

This dataset contains 203 images of sheep. Mainly, Sheep images with bounding box annotations in Pascal VOC format

Now lets have a look at the necessary imports

Since we are not having many images we need to apply data augmentation

Data augmentation helps us by duplicating images while applying tilt, rotations and other methods which does not tamper with the main object but changes it a bit thereby keeping the main goal intact.

Lets have a look at the samples

Model

Resulting Model

This model is then trained using binary cross entropy using Adam with the learning rate of 0.0001. Also callbacks are used to introduce early stopping. With the help of early stopping we stop the model from further training by monitoring defined parameters.

Result

As you can see you the model has reached more than 90% accuracy allowing us to predict whether the sheep is in the image on not.

Predictions

Lets have a look at the predictions

Notebook Link : Here

Credit: vishal yadav

--

--

--

AI content from AITS associates with 💝. AITS is a deep learning company and lead developer of open source deep learning compiler.

Recommended from Medium

Projects in Medical Imaging with TensorFlow 2.X and Keras

Improved Naïve Bayes Classifier to Solve Text Classification Problems.

In-depth look into PRL — the new reinforcement learning framework in Python

Why you should learn Computer Vision and how you can get started

How Computer Vision is becoming more accurate with synthetic data.

GAN — it is an approach to training a deep convolutional neural network for image-to-image…

“At What Price I Should Sell This Item For?”

Open Set Classification

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
AI Technology & Systems

AI Technology & Systems

Simplifying AI development for EDGE devices

More from Medium

Types of Edge detection algorithms

Parking Violation Detection System using Computer Vision

Object Detection with OpenCV

Video Resolution Upscaling Using Neural Networks