You are on page 1of 11

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/351912522

Performance Analysis of Bird Counting Techniques Using Digital Photograph

Conference Paper · May 2021


DOI: 10.1109/ICICCS51141.2021.9432265

CITATION READS

1 230

6 authors, including:

Spoorthy K M Vijetha Nrupathunga


Siddaganga Institute of Technology Siddaganga Institute of Technology
1 PUBLICATION   1 CITATION    1 PUBLICATION   1 CITATION   

SEE PROFILE SEE PROFILE

Keerthan Kumar T G Sushma Sa


National Institute of Technology Karnataka National Institute of Karnataka
17 PUBLICATIONS   90 CITATIONS    6 PUBLICATIONS   12 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Automated Agricultural FieldAnalysis and Monitoring System Using IOT View project

All content following this page was uploaded by Keerthan Kumar T G on 15 July 2021.

The user has requested enhancement of the downloaded file.


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

Performance Analysis of Bird Counting Techniques Using


Digital Photograph
Ms. Spoorthy K M[1], Ms. Suchetha G Hegde[2], Ms. Vijetha N[3],
Under Graduate Scholars, Department of Information Science & Engg,
Siddaganga Institute of Technology-Tumakuru-572103.

Dr. M S Rudramurthy[4],
Associate Professor, Department of Information Science & Engineering
Siddaganga Institute of Technology, Tumakuru-572103

Mr. Keerthan Kumar TG[5], Mrs. Sushma S A[6]


Assistant Professor, Department of Information Science and Engineering,
Siddaganga Institute of Technology, Tumakuru-572103

Abstract: Counting birds using digital photography is frequently encountered in biology, remote sensing and
an attractive method. There are different methods of surveillance data analysis.
counting objects suitable to both offline and online real
time situations. This research work has carried out a A. Objectives
performance analysis of various methods utilized for bird
census. This work is necessary to overcome some of the The Counting of each bird is an inspiring and difficult
limitations of bird counting techniques that uses digital task, as it can be difficult to count them manually. The
photography. It requires the study of existing techniques increase in population of birds is a strong marker that
for object counting in a given digital photograph and to shows fluctuation in the levels of pollution, variation in
suggest some methods to overcome one or more climate, loss of habitat, relocation timing, and another
limitations faced in traditional techniques. factor. There have been huge efforts to gather bird census
data; Annual events like the “Great Backyard Bird Count,
Counting techniques are most significant in various the Christmas Bird Count, Project Feeder Watch, and the
arenas of science and technology. The efficiency of Big Garden Bird watch” are various bird census
manual counting drops with the increase in the number of projects.Accepting our environment is of paramount
objects. Counting bird using digital photography is most significance during the period of fast urbanization, global
attractive, simple and less expensive. The manual warming, climate change and increased pollution levels.
counting techniques is the basic method. This method is Birds are crucial for the proper functioning of Earth’s
not efficient as it human errors due to the involvement of biodiversity, as they play an vital part in the food chain.
human individuals and also not suitable for large flock of Study of the bird's population and their behavior provides
birds as human individual may miss some birds or recount us some cues to understand our environment. The
the same bird. The proposed research work has explored protection and preservation of birds and other biological
new possibilities to overcome from the said problem by species in this universe is essential and significantly
the application of the techniques such as contouring, important. New studies have shown that the living
thresholding, template matching, and counting objects. species in the world impacted due to Global warming,
The results obtained from these studies are attractive and climate change, rise in pollution etc.
showed significant improvement over manual method of
carrying out census of birds using digital photography. B. Problem Specification
Counting one of the important operations in the field
Keywords: Bird counting, Thresholding, ImageJ, of medical, scientific, agriculture, factory i.e., it may be
Template matching, Contouring, Artificial intelligence, the count of cells, fruits, people, industrial products,
Image Processing. sanctuaries. Our project concentrates to overcome this
I. INTRODUCTION problem by using various methods for counting. It would
be easy to get the census with a better method that gets
The use of artificial intelligence and machine vision the more accurate results in counting. Manual work will
techniques to solve problems is gaining importance in be reduced hence to do so, digital cameras are installed in
most areas of science and engineering applications. One the areas which get the images. So by implementing these
significant challenge in most areas of science and methods, it will be easy to obtain the object count. Some
engineering is counting objects in digital photographs. of the methods of counting objects are,Image
Counting problems is the estimation of the number of Processing,Morphological Characteristics,Edge and
objects in a still image or a video frame. Counting Contour Detection,Template Matching,Converting the
instances of objects in crowded scenes is a tedious task, Object to Dots and Counting,Objects Counting by
Estimating a Density Map using Convolutional Neural

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1482


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

Networks.For now we have considered birds as the object Bibby, C.J. et al[6]. In the case of winter starling roost
of interest as the bird census plays an important role in site, the use of digital photograph of large concentrations
gauging the pollution, environmental changes.Many of passerines was studied by Juan M Perez-Garcia in[7].
surveys are done to count the number of birds .The survey Joseph M. Wunderle, Jr. at the United States Department
was done by BIRD COUNT INDIA according to them of Agriculture in the division of Forest service has
Nearly 12,000 lists from almost 1,500 birders clocking up considered different census methods for Caribbean Land
close to 8,000 hours birding and recording an impressive Birds.
825 species. The survey done by the state of Canada’s
birds 2019. They are more concentrated towards which Barbedo et al [8] reviewed methods for Automatic
species is making development in the population and Counting of Objects in Digital Images. The techniques
which species are reducing so that they can take presented are as follows.
precautions to save the bird.
Morphological Operations: Morphology is a huge set of
In our project we try to analyze the different methods image processing operations based on the following:
that can be used for counting. We also discuss the
circumstances we have to use which method. ● Dilation: The morphological operation dilation
We have implemented three methods, expands the edges of the object in the image by
1. Thresholding adding pixels according to the structuring of
2. Template matching elements.
3. Contour object counting ● Closing: The closing operation consists in a
From our project it will be useful to use the best dilation followed by erosion, using the same
method among them looking at different circumstances. structuring element.
● Opening: The opening operation is the dual
F. Challenges for estimating birds: operation of closing, consisting of an erosion
followed by dilation, using the same structuring
The Factors affecting the estimation of birds involves element.
depends on the situation. Assume the background of the
image is similar bird color, then it’s very tough to ● Hole filling: it is not usually classified as a
estimate the number of birds present. It also depends on morphological operation, hole filling acts over
the morphological characteristics of the image by
• The thickness of the flock removing parasitic holes that may arise from
other operations such as thresholding.
• The distance between the source (camera) and
the target flock of birds.
Filtering: The filtering is the process of convolving a
• Bird size.
kernel with an image. This operation will serve one of
three main objectives:
II. LITERATURE SURVEY
i) Smoothing means removal or reduction of noise
During the period of rapid urbanization, climate ii) Sharpening means improving contrast between
change and increasing global warming, it is contiguous regions.
paramount important to carryout census of migratory iii) Directional emphasis means aiming to highlight
birds in our bird sanctuaries and to carryout analysis objects and structures with a certain spatial orientation.
of the results obtained over a period of time. As birds
play a significant role of our Earth’s biodiversity, the Contrast Enhancement: Techniques to improve contrast
study of population through bird census provides us goal to improve the distinction between the rest of the
some cues to better understand our planet and its scene and required objects. This section consists of three
environment. Recent studies have shown that the living techniques.
species on the universe impacted due to Global warming,
climate change, rise in pollution etc. This can be Morphological Characteristics: The objects which have
manifested by the study of population of birds and other small differences can be counted using morphological
biological species of the universe. According to the characteristics. The different morphological
National Audubon Society (NAS), bird populations may characteristics are as follows
be facing serious threats and declines due to global
warming and climate change (Nijhuis, 2014)[1]. ● Transform means the other mathematical
Traditional technique of bird counting or bird census representation of an image, created from the
involves human volunteers to count or to carryout census traditional representation as a function of two
of birds manually. The volunteers generally underestimate spatial variables.
the size of large flock of birds and overestimate the size ● Hough Transform: Ballard proposed the
of small groups [2]. Glimer et al, showed the use of aerial generalized Hough transform that can detect any
photographs taken from the plane for manual counting of arbitrary shape. Transform has several necessary
birds [3]. The application of computer-aided procedure characteristics like it can be able to recognize
for counting waterfowl on aerial photographs was studied partially deformed shapes as well as highly
[4]. Later, application of different image processing deformed shapes.
techniques to facilitate bird census was studied [5]. The
first book on Bird Census Techniques was published by Edge and Contour Detection:

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1483


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

The main objective in object counting is to find the nearby patches to improve estimates of incorrect patches,
limits between the objects of interest and their thereby producing better estimates at the image level.
surroundings. On the other hand, edges are made of pixels
with derived values that exceed a certain threshold, that Lempitsky et al., [12] proposed a new supervised
is, its existence is based on a measurement for the learning framework for visual object counting tasks, such
discontinuity of the grayscale. The edge points which will as estimating the number of cells in a microscopic image
be connected into edge segments, which in turn may be or the number of humans in surveillance video frames.
connected in such a way they correspond to contours, but
this will be not the case. They tried to develop a simple and general discriminative
learning-based framework for counting objects in images.
Segmentation and Classification Techniques: This Similar to global regression methods, it also evades the
technique will aim to segment images in order to hard problem of detecting all object instances in the
discriminate between objects of interest and the remainder images. Bacterial cells in fluorescence-light microscopy
of the scene. In the case of classification techniques, images: Their first experiment was concerned with
besides segmenting, it is also necessary to label regions, synthetic images, emulating microscopic views of the
which is necessary when multiple types of objects need to colonies of bacterial cells. The following approaches were
be identified and counted. considered: The proposed density-based approach, The
counting-by-regression baseline, The counting-by-
Chan A.B. et al [9] presented a privacy-preserving detection baseline. It was concluded that during the
vision system for estimating the size of inhomogeneous learning their approach was optimizing the loss based on
crowds composed of pedestrians that travel in different the MESA-distance. This loss involved counting
directions. First, the crowd was segmented into accurately over multiple subarrays of the entire image.
components of homogeneous motion, using the mixture of
dynamic textures motion models. From each segmented Dr. S. Vijayarani et al.,[13] proposed template
region a set of simple general features was extracted, and matching technique for searching words in document
the correspondence between features and the number of images. In digital photography the template matching
people per segment was cultured with Gaussian Process technique is used to find the part of the image in the given
Regression. input image. When the image is given to find the template
is made for that image and processes ang gives the
Fiaschi et al [10] proposed to estimate the object number of images found as a total count as an
density map by averaging over structured, namely patch- output.Using template matching technique they found the
wise predictions. They computed dense features by text which is to be searched.they processed that text and
ordinary filter banks and proposed to use a regression found the total count.
forest to predict entire patches of the desired density
function. A regression random forest is an ensemble of III. Proposed System
regression trees. Each tree associates a continuous
prediction with each input. Those structured predictions A. Aim of the project
were averaged both across predictors in the ensemble and
across space. In a trial the tool bacterial cells microscopic In our project we are more interested in the census of
images composed of 200 images. Compare pixel to pixel the birds as they play an important role in nature. We are
regression prediction of entire patches further improved going to illustrate the three methods i.e., thresholding,
performance and reduced variability. The data consisted templatematching, contour methods where we analyze
of 2000 video frames. They split the data into four these methods and make conclusions.
different training and test sets: maximal, downscale,
upscale and minimal. They used 800 patches per image Bird population is a major and a complicated task to
and in order to compensate for the difference in training do.Manual counting is not efficient in a flock of birds as
set size. the person may miss some birds or recount the same bird.
So, we come across many methods which are used in
Idrees et al., [11] proposed to compute an estimate of different circumstances. In this project will help in
the number of individuals present in an extremely dense counting the bird or object efficiently which conserves the
crowd visible in a single image to leverage multiple time and reduces the error done during the manual count.
sources of information. They employed a global
B. Project modules
consistency constraint on counts using Markov Random
Field. They employed Fourier analysis along with head As we know whenever there is a counting process, it is
detections. concentrated in a particular field.So in our project we are
trying to generalize the image processing so that it is not
Theirs process provided two important pieces of confined to counting one type of object like finding
information: They estimated count per local region, and a number of people in an image, number of leaves in a tree,
measure of error relative to the original image. They pens in a stand, number of cans, number of cells, medical
combined the three sources, Fourier, interest points and region etc.
head Detection, with their respective confidences. It was IV. SYSTEM DESIGN
concluded that they fused information from three sources
in terms of counts, confidences and different measures at In this section we describe the system design and data
the patch level. They enforced smoothness constraint on flow of the techniques used in this project.

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1484


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

A. Flowchart
The image in which we must count the birds is given
as input. The given image is preprocessed to make
suitable processing of the image which makes the
counting of birds easy. The preprocessed image is later
analysed and applied suitable techniques to count the
birds. The count of birds is displayed as the result. This
process is represented in the flow chart as shown in figure
2.

Fig. 3. Use case diagram

Fig. 2. Flowchart

Use case diagram shows how the system works as


shown in figure 3. Actors are users and software
developers. User is the one who makes use of the
application developed by software developer. Initially the
camera gets the images of the region where it has been
installed. Those images are considered as the input for the Fig. 4. Data flow diagram of thresholding
analysis. Cropping all the features by the users. After that
the process of template matching occurs. It returns the The figure.5 shows the data flow diagram for Template
count of the ROI. Software developer develops an matching. The image for which you want to find the count
application which searches all the ROI and returns the of the object of interest has to read. Crop the ROI in the
count. image. Collect all the ROI.Set count initially to zero.
Once all the ROI are there it iteratively searches for
B. Data flow diagram templates from one end to another end of the image.
Whenever a match is found count is incremented.
In this section, a data flow diagram for three ways of
implementation is as shown. The figure 4 shows data flow
diagram of thresholding. In this technique, the input
image is read by the user. The image is converted to an 8-
bit grayscale image and later thresholding is applied to
that image and it is distinguished as background and
foreground using the initial value of T(threshold). Then
compute the average grayscale values and new threshold
values. Repeat this process until the difference between
successive iterations is less than T.

Fig. 5. Data Flow diagram of template matching

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1485


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

The image is completely processed by a set of pixels by Local thresholding: Local thresholding techniques adapt
pixels. When all the parts of the image are analyzed it the threshold value on each pixel to the local image
returns the count. The figure 6, Shows data Flow diagram characteristics.
of contouring. In This technique store the image by using
variable path and convert the image to grayscale then Global thresholding: Globalthresholding works by
based on the threshold value it assigns one value else the choosing a value cutoff, such that every pixel less than
other value. The same value which are connected forms as that value is considered one class, while every pixel
a single object.The curved formed becomes a contour.The greater than that value is considered the other class.
contours are a useful tool for shape analysis and object
detection and recognition.Contour area function can Multiband thresholding: Colour images can also be
calculate the contour area of the object. Here the object is thresholded. One approach is to define a separate
a bird. When it gets a bird, it will calculate the area and if threshold for each of the RGB components of the image
it satisfies the condition of minimum area to be counted as and then combine them using an AND operation.
a dot, then it will assign the value of its area to the list.
Automatic thresholding: Automatic thresholding
technique is a way to extract useful information which is
encoded as pixels while minimizing background noise.
This is obtained by utilizing a feedback loop which is
used to optimize the threshold value before converting the
original grayscale image to binary. The main intention is
to separate the image into two parts; the background and
foreground.

1. Assume some initial threshold value, typically


the mean 8-bit value of the original image.

2. Divide the original image into two portions.


i. Pixel values that are less than or equal to the
threshold; background
ii. Pixel values greater than the threshold;
foreground.
Fig. 6. Data Flow diagram of contouring.
3. Find the average mean values of the two images.
Finally, the count bird is calculated and the count of birds
in a given input image is given as the output. 4. Calculate the new threshold by averaging the two
means.
V. SYSTEM IMPLEMENTATION
5. If the difference between the previous threshold
We have three different methodologies to carry out our value and the new threshold value are below a specified
work of bird counting. They are thresholding, template limit, then that is the suitable threshold value. Otherwise
matching and contouring. Thresholding is implemented set the new threshold value to the original image and keep
using ImageJ open-source software. Template matching trying.
is implemented using Python and OpenCV. Contouring is
implemented using Python and Jupyter notebook. The The ImageJ software is used for implementation of
system working details are discussed below: thresholding technique on the image for bird counting.
Input the image of our interest for counting of birds.
A.Thresholding There are many kinds of birds in nature with a variety of
features, each differing from one another. The photograph
Thresholding is the simplest method of segmenting of birds may contain as few birds as one or as many birds
images. We can use Thresholding to create binary images as thousands. Our task is to count all the birds in the
from a grayscale image. Thresholding is a technique for image as accurately as possible. Initially input the image
dividing an image into two (or more) classes of pixels, of a bird. This image may be of any type like RGB image,
which are typically called "foreground" and grayscale image, Black & white image.
"background". The simplest thresholding methods replace
each and every pixel in an image with a black pixel if the It is appropriate to convert it into an 8-bit grayscale
image intensity is less than some fixed constant T image. Thus, each pixel in the image is an 8-bit integer
giving a range of possible values from 0 to 255. Usually,
(that is, ), or a white pixel if the image zero is taken to be black, and 255 is taken to be white.
intensity is greater than that fixed constant. There are The values in between make the different shades of gray.
different types of thresholding namely “local Now adjust the threshold thus the birds (region of
thresholding”, “global thresholding”, “multiband interest) are of similar pixel values and the region not
thresholding”, “automatic thresholding”. required to be considered is of similar pixel values. The
pixel values above the threshold will be made black and
below the threshold value will be made white. Sometimes,

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1486


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

due to polarity thresholding may be inverted. It is


appropriate to divide the entire image into background
and foreground. Usually, the foreground group contains
the birds. Now, count the foreground instances which
represent the birds in the image.

Following fig. 7 shows the image after applying the


thresholding technique. This threshold image is analyzed
by analyzing the particles based on its pixel size and
circularity. These particles are counted to get the count of
the birds in the image. The masking is applied to mark the
birds in the image as shown in fig. 8. The parameters like
total area, %area, average size and mean, of the particles Fig. 10. Area, mean, min and max pixel value of each
which are counted are summarized as shown in fig. 9 each particle.
particles’ area, mean, min and max pixel values are also The major difficulty in counting the birds arises when
displayed as the result of this entire process. This is the quality of the image is low, may be when the birds are
shown in fig. 10 . overlapped and may be overlapped, or they may be
similar to the objects the background or the background
itself. Thus, separating the birds from the image gets
difficult and increases the error in counting birds. To
minimize this error we may apply some techniques like
changing contrast, brightness, smoothing and blurring
techniques to eliminate the disturbances in the image and
make the birds in the image visible properly and are
differentiable from one another. Another disadvantage of
this technique is that the error is more when the birds are
very close and larger in size. Due to its large size, it
becomes difficult to consider the birds. This technique
may unknowingly separate the single bird into many birds
Fig. 7. Thresholding the image to separate birds from the when there exists a difference in the pixel values. Also
background. when the birds are similar to that of the background, the
pixel values of birds and background may be similar and
group these backgrounds also as the foreground birds and
count them. Thus increase in particles indirectly increases
the bird count in the image and gives inaccurate results.

B. Template matching

The method used for counting of Region Of Interest is


“Template Matching”. Template matching is a technique
or a method to the location of the template image in a
Fig. 8. Marking the birds by counting them. particular image.

This technique moves the template image over the


image and compares every part of the image.
The method we have used in our project uses
CV_TM_CCORR_NORMED type of template matching
in OpenCV. It uses the Equation (1) below,

Fig. 9. Summary of analysing the particles in the image. First, we have to read the image which we want to find
template images. Enter the number of features. Extract the
features and store in the folder. To extract the feature,
crop the ROI in the image and save it. Read all the
features required for the counting of template images.
Iteratively it searches for the template images. The
matched position is recorded, and a rectangle box is
drawn around the template images. Initially the count
which is zero is incremented whenever it encounters the
template images. The implementation includes for the
search of the identical regions with threshold. Here
threshold indicates the percentage of feature matching

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1487


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

with respect to template image and part of the image


found. Threshold indicates the accuracy in finding the
template image in the image. As the threshold increases
the function (template matching) tries to find the more
accurate part of the image.

If the size of the image is (W x H) and the template


image size is (w x h), then the output image will have a
size of (W-w+1, H-h+1). It is preferred to set a threshold
greater than or equal to 0.8. This method gives much
accuracy with a high rate of threshold.

The working of Template matching is that the template


image is slide over the image. Templates and parts of
images are compared. If the compared part is greater than Fig. 13. Birds marked when number of features is 2
the threshold then it is marked. In the function
cv2.matchTemplate(img_gray,template,cv2.TM_CCOEF After that read that image as a template image in the
F_NORMED) the first parameter is the original image, function and read the actual image as well. It iteratively
second parameter is the template image to be matched and searches for the template image. In the first image it has
third parameter is the method used for matching. The one feature the bird count is 9. Many birds do not pass the
problems faced while using this method is that the pattern feature test. With two features we get the majority of the
occurrences should preserve the orientation of the bird count i.e., 11. For three features the count rate
reference pattern image (template).It is not efficient if the decreases as remaining birds do not satisfy the feature
image is rotated, scaled, shaped, shear it will give false comparison positively. The bird count is only 12. From
output. The method becomes inefficient when image size this we get an idea that the bird count mainly depends on
increases like medium or large images and it is time the feature which is cropped for the search.
consuming. This method is efficient on its way. In this it
compares the template images with the image. It is one of
the methods used for the feature extraction and searching
it in the interested image.

First, we will be provided with an image. From it we


have to crop the Region of Interest (template image).

Fig. 14. Output showing count as 11

Fig. 11. Birds marked when number of features is 1

Fig. 15. Birds marked when number of features is 3

Fig. 12. Output showing count as 9

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1488


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

the blue box is similar to the bird selected as it is the


mirror image it is not considered for counting. Similarly
the bird in green box is scaled or enlarged even then it is
not recognized as template and count is not incremented.

C. Contouring

Contours can be described as a curve joining all the


continuous points having the identical color and intensity.
The contours are beneficial tools for shape analysis and
object detection and recognition. This work makes use of
threshold edge detection prior finding contours. The
function findContours( ) modifies the source image.
Objects to be found should be white and backgrounds
Fig. 16. Output showing count as 12 should be black or black and backgrounds should be
white. OpenCV has a find Contour function that helps in
We have to search for the most common feature among extracting the contours from the image. It works
the birds to get the maximum count from the feature. The accurately for binary images, so we should first apply
Different images indicate that it will be easy to find the thresholding techniques. Firstly, the image is taken as
count of birds, but the problem is with the feature input by taking the path variable. The image is to be
selection and the threshold selection. As the images may converted to grayscale using the function imread here the
have lost some of the pixels the threshold should be parameter 0 indicates that the image needs to be
decreased at that time. For high resolution images this converted into black and white, shades image composing
problem does not occur. by shades of gray.

We can see that the first feature covers most of the The function threshold works as, if the pixel value is
birds, but addition of the last feature does not make much higher than a threshold value, then it is assigned one value
difference as many birds do not have that feature. The with low pixel value like white, else it is assigned another
limitations with this method is that we cannot find the value with high pixel value like black. The arguments are
template image if it is enlarged, scaled, tilted etc. The the source image that is a grayscale image and threshold
threshold value depends on the image if there are any value which is used to classify the pixel values. For
losses in pixel or image features. It takes more time for threshold value, simply pass zero. Then the algorithm will
the large and high resolution pictures as the size is more Find the optimal threshold value and give the second
and iteration increases.This method can be used by many output. If the thresholding is not used, this is the same as
sophisticated users like in bird sanctuaries to keep the the threshold value you used. The same pixel values
census information that is migration of birds during which are connected from one object and by using the
seasons, scientists, zoologist, pathologist, in factories, in function image, contours, find Contours. It mainly
agricultural fields. It is also used in earth observation connects the black dots which are continuous and forms
data. This method can be developed with more as a single object. By using the function contourArea( ),
sophisticated features to overcome the limitations and we can calculate the contour areas. The minimum and
give an efficient output which will be useful in many maximum area of the bird is given. If the contour area is
fields.This method does give a uniform output due to in range, then it satisfies the condition it indicates the
feature matching but it does not give an efficient result as required region the bird is obtained. As the bird is
given by thresholding as there we convert an image to obtained count is incremented. Finally, the count of birds
binary and count the areas satisfying threshold property. is given as output.
It is easy to get the count of ROI but difficult to
This method will not give the accurate output if the
identify the proper ROI which gives maximum count.
birds are overlapped; differ in size, shape, dimensions and
structure. It is because the contour area combines with the
overlapped birds and it counts as a single object. If birds
differ in shape, it’s not considered to be in range
specified. Sometimes it considers the background image
as bird if the background images are in the range and it
satisfies the given condition. These drawbacks lead to less
accuracy in this method.

Fig. 17. Image showing disadvantage of Template


matching

In above Image we can observe that the selected object


gives the number of count as three even though the bird in

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1489


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

Template 17 12 29 Accurate The exact


matching and feature
expected should be
output. extracted
to get
correct
count.The
template
should
not be
scaled or
rotated

Contouring 17 17 0 Count Counting


the can be
Fig. 18. Output of Contouring. number affected
of dots. by
overlap
and loss
of pixel

The TABLE I describes the bird count, error in


percentage, advantage, disadvantage of all the techniques
used in this project.

VII. CONCLUSION

In this paper, we applied techniques of image


processing such as thresholding, template matching and
Fig. 19. Bird count obtained by applying contouring contouring to a digital photograph to estimate the birds in
VI. RESULTS AND DISCUSSION a given time instance. In thresholding, an attempt is made
to separate the image into two clusters, background and
These methods have their own feature and property. In foreground and tried to count the birds. In template
thresholding the counting for mass population is more matching, we created a template for the region of interest
efficient but sometimes it considers disturbances like (ROI) and counted the number of such instances in the
branches or leaves or stones hence we have to subtract the image. The contouring concept gives the correct count
background or sometimes the birds may overlap. If an value for images of flock of birds. There will be slight
image has lost some data, we have to retrieve it. We have error when overlapping is occurred in the image of birds.
to use some blur and filter concepts to overcome the Thus, we conclude that each technique has its own
noise. Template matching may be a better method than advantage, and they can be used in circumstances and
this as it will find the template image (Image which is situations such as populated areas, similar objects etc.
selected) all over the original image. The important point many factors depend on selection of the method.
to note is that features should be extracted carefully so it
can cover the maximum matches. One of the
disadvantages over thresholding is that for counting
templates which are scaled or rotated or inverted it is
unable to recognize. When there is a large set of birds, we
have to extract more features as feature increases error REFERENCES
decreases. Last method is contouring. In this method [1] Nijhuis, M., “A Gathering Storm for North American
counting is easier when compared. First it creates an edge Birds”, Audu-bon, 25-32. Volume 116, Sept., 2014.
and then counts the spots which are there. It gives good
output for a large population. It gives more error when the [2] Prater, A.J. 1979. Trends in accuracy of counting
objects are overlapped and if there are any disturbances as birds. Bird Study 26: 198–200.
described in thresholding.
[3] Gilmer, D.S., Brass, J.A., Strong, L.L. & Card, D.H.
TABLE I. Result and Comparison of all techniques 1988. Goose counts from aerial photographs using
an optical digitizer. Wildl. Soc. Bull. 16:204–206.
Method Manual Count From Error Pros Cons
Count Method (in %)
[4] Bajzak, D. & Piatt, J.F. 1990. Computer-aided
Thresholding 17 17 0 Easy for Counting procedure for counting waterfowl on aerial photographs.
a large affected Wildl. Soc. Bull. 18: 125–129.
number by noise.
of Threshold [5] Cunningham, D.J., Anderson, W.H. & Anthony,
objects. differs
from R.M. 1996. An image-processing program for automated
image to counting. Wildl. Soc. Bull. 24: 345–346.
image.

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1490


Proceedings of the Fifth International Conference on Intelligent Computing and Control Systems (ICICCS 2021)
IEEE Xplore Part Number: CFP21K74-ART; ISBN: 978-0-7381-1327-2

[6] Bibby, C.J., Burgess, N.D., Hill, D.A. & Mustoe,


S.H. 2000. Bird Census Techniques. 2nd Ed. London
: Academic Press.

[7] Juan M. Pérez-García,” The use of digital photography


in censuses of large concentrations of passerines: the case
of a winter starling roost-site, Revista Catalana
d’Ornitologia 28:28-33, 2012.

[8] Barbedo JGA. A review on methods for automatic


counting of objects in digital images. (2012).

[9] Chan, AB, Liang ZSJ, Vasconcelos N. Privacy


preserving crowd monitoring: Counting people without
people models or tracking. In: CVPR, (2008).

[10] Fiaschi L, Nair RK, Oethe U, Hamprechi F. Learning


to count with regression forest and structured labels. In
proc. ICPR (2012).

[12] Idrees HS, Aleemi I, Seibert C, Shah M. Multi


source, multi scale counting in extremely dense crowd
images. In: CVPR, (2013).

[13] Lempitsky V, Zisserman A. Learning to count


objects in images. In: NIPS, (2010).

[14] Dr. S.Vijayarani, Ms. A.Sakila.Template matching


technique for search words in document images.In:
IJCI,(2015).

978-0-7381-1327-2/21/$31.00 ©2021 IEEE 1491

View publication stats

You might also like