Professional Documents
Culture Documents
net/publication/351912522
CITATION READS
1 230
6 authors, including:
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.
Dr. M S Rudramurthy[4],
Associate Professor, Department of Information Science & 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
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:
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.
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. 2. Flowchart
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.
B. Template matching
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
C. Contouring
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.
VII. CONCLUSION