Unit - 5
Unit - 5
Singleton Pattern: Ensures that a class has only one instance and provides a global point of
access to it. Example: Database connection manager in a web application.
Observer Pattern: Defines a one-to-many dependency between objects so that when one
object changes state, all its dependents are notified and updated automatically.
Example: Event handling in graphical user interfaces.
Escher's Tessellations: Artistic patterns created by Dutch artist M.C. Escher, involving
intricate interlocking shapes.
QB503 (b) Analyze the process of Pattern Recognition and the components to attribute the
pattern recognition in detail.
Pattern recognition is the process of recognizing patterns by using machine learning algorithm.
Pattern recognition can be defined as the classification of data based on knowledge already
gained or on statistical information extracted from patterns and/or their representation. One of
the important aspects of the pattern recognition is its application potential.
• Pattern recognition system should recognize familiar pattern quickly and accurate
• Recognize and classify unfamiliar objects
• Accurately recognize shapes and objects from different angles
• Identify patterns and objects even when partly hidden
• Recognize patterns quickly with ease, and with automaticity
Pattern Recognition System:
Pattern is everything around in this digital world. A pattern can either be seen physically or it can
be observed mathematically by applying algorithms.
Algorithm: Pattern recognition algorithms generally aim to provide a reasonable answer for all
possible inputs and to perform “most likely” matching of the inputs, taking into account their
statistical variation.
There are typically four main phases in the pattern recognition process: preprocessing, training,
testing, and deployment. These phases involve a series of activities that are designed to develop
and evaluate a pattern recognition system.
Preprocessing: Preprocessing is the process of preparing the data for analysis. This may involve
cleaning the data, scaling the data, or transforming the data in some way to make it more suitable
for analysis.
Training: Training is the process of fitting a model to the data. This typically involves selecting
a model, choosing appropriate hyperparameters, and optimizing the model’s parameters to
minimize a loss function.
Testing: Testing is the process of evaluating the performance of the model on a held-out dataset.
This allows us to estimate the generalization performance of the model and to compare the
performance of different models.
Advantages:
• The advantage of segmenting a boundary using convex deficiency is that it is
independent of the size and orientation of the given region.
• The convex hull and its deficiency can also be used for describing a region and its
boundary.
Drawback:
• Factors like digitalization, noise and variations in segmentation may lead to irregular
boundaries of regions.
• Such boundaries produce convex deficiencies with small, meaningless components
scattered randomly throughout the boundary.
• This results in an inefficient decomposition process.
QC502 (a) Briefly explain in detail about the Visual Descriptors.
Visual descriptors
In computer vision, visual descriptors or image descriptors are descriptions of the visual features
of the contents in images, videos, algorithms, or applications that produce such descriptions.
They describe elementary characteristics such as the shape, the color, the texture or the motion,
among others.
Introduction (4 marks)
As a result of the new communication technologies and the massive use of Internet in our
society, the amount of audio-visual information available in digital format is increasing
considerably. Therefore, it has been necessary to design some systems that allow us to describe
the content of several types of multimedia information in order to search and classify them.
The audio-visual descriptors are in charge of the contents description. These descriptors have a
good knowledge of the objects and events found in a video, image or audio and they allow the
quick and efficient searches of the audio-visual content.
This system can be compared to the search engines for textual contents. Although it is
certain, that it is relatively easy to find text with a computer, is much more difficult to find
concrete audio and video parts. For instance, imagine somebody searching a scene a happy
person. The happiness is a feeling and it is not evident its shape, color and texture description in
images. The description of the audio-visual content is not a superficial task and it is essential for
the effective use of this type of archives. The standardization system that deals with audio-visual
descriptors is the MPEG-7 (Motion Picture Expert Group - 7).
Types of visual descriptors
Descriptors are the first step to find out the connection between pixels contained in a digital
image and what humans recall after having observed an image or a group of images after some
minutes. Visual descriptors are divided in two main groups:
• General information descriptors: they contain low level descriptors which give a
description about color, shape, regions, textures and motion.
• Specific domain information descriptors: they give information about objects and
events in the scene. A concrete example would be face recognition.