Human Age and Gender Prediction Management System Project Report
Human Age and Gender Prediction Management System Project Report
INTERNSHIP REPORT
ON
HUMAN AGE AND GENDER PREDICTION
SYSTEM REPORT
BY
KAMAL ACHARYA
(Tribhuvan University)
Date: 2023/12/12
1|P ag e
Human Age and Gender Prediction
ABSTRACT
2|P ag e
CHAPTER-1
1. INTRODUCTION
3|P ag e
CHAPTER-2
2. SYSTEM ANALYSIS
2.1.1 DISADVANTAGES
2.2.1 ADVANTAGES
1. Saving time
2. Advanced security
3. Low cost
4. Open CV is free Source.
4|P ag e
CHAPTER-3
INTRODUCTION
5|P ag e
CLASSIFICATION OF IMAGES:
Binary Image
Gray Scale Image
Color Image
BINARY IMAGE:
A binary image is a digital image that has only two possible
values for each pixel Typically the two colors used for a binary image
are black and white though any two colors can be used. The color used
for the object(s) in the image is the foreground color while the rest of
the image is the background color.
6|P ag e
GRAY SCALE IMAGE
COLOUR IMAGE:
7|P ag e
giving the decomposition of the color in the three primary colors Red,
Green and Blue. Any color visible to human eye can be represented this
way. The decomposition of a color in the three primary colors is
quantified by a number between 0 and 255. For example, white will be
coded as R = 255, G = 255, B = 255; black will be known as (R,G,B)
= (0,0,0); and say, bright pink will be : (255,0,255).
8|P ag e
Fig.1
9|P ag e
BASIC OF IMAGE PROCESSING
1.1 IMAGE
An image is a two-dimensional picture, which has a similar
appearance to some subject usually a physical object or a person.
The word image is also used in the broader sense of any two-
dimensional figure such as a map, a graph, a pie chart, or an abstract
painting. In this wider sense, images can also be rendered manually,
such as by drawing, painting, carving, rendered automatically by
printing or computer graphics technology, or developed by a
combination of methods, especially in a pseudo-photograph.
10 | P a g e
An image is a rectangular grid of pixels. It has a definite height
and a definite width counted in pixels. Each pixel is square and has a
fixed size on a given display. However different computer monitors
may use different sized pixels. The pixels that constitute an image are
ordered as a grid (columns and rows); each pixel consists of numbers
representing magnitudes of brightness and color.
Each pixel has a color. The color is a 32-bit integer. The first eight
bits determine the redness of the pixel, the next eight bits the greenness,
the next eight bits the blueness, and the remaining eight bits the
transparency of the pixel.
Fig
11 | P a g e
1.2 IMAGE FILE SIZES:
Image file size is expressed as the number of bytes that increases with
the number of pixels composing an image, and the color depth of the
pixels. The greater the number of rows and columns, the greater the
image resolution, and the larger the file. Also, each pixel of an image
increases in size when its color depth increases, an 8-bit pixel (1 byte)
stores 256 colors, a 24-bit pixel (3 bytes) stores 16 million colors, the
latter known as true color.
12 | P a g e
1.3 IMAGE FILE FORMATS:
13 | P a g e
IMAGE PROCESSING:
14 | P a g e
3.2 FUNDAMENTAL STEPS IN DIGITAL IMAGE
PROCESSING:
Fig
Fig
15 | P a g e
Scanner produces a two-dimensional image. If the output of the
camera or other imaging sensor is not in digital form, an analog to
digital converter digitizes it. The nature of the sensor and the image it
produces are determined by the application.
Fig
Image Enhancement:
Fig
16 | P a g e
1.5.3 Image restoration:
17 | P a g e
Fig
Segmentation:
Fig
18 | P a g e
Digital image is defined as a two dimensional function f(x, y),
where x and y are spatial (plane) coordinates, and the amplitude of f at
any pair of coordinates (x, y) is called intensity or grey level of the
image at that point. The field of digital image processing refers to
processing digital images by means of a digital computer. The digital
image is composed of a finite number of elements, each of which has a
particular location and value. The elements are referred to as picture
elements, image elements, pels, and pixels. Pixel is the term most
widely used.
Image Compression
19 | P a g e
=
20 | P a g e
Image Compression Types
Compression ratio:
21 | P a g e
lossy compressed images is usually faster than decoding lossless
compressed images.
22 | P a g e
drawbacks of JPEG are the missing lossless compression and the often
missing progressive decoding. Fig. 4 depicts the average rate-distortion
behavior for the images in the Kodak test set when fixed (i.e.,
nonprogressive) lossy compression is used. The PSNR of PGF is on
average 3% smaller than the PSNR of JPEG 2000, but 3% better than
JPEG.
These results are also qualitative valid for our PGF test set and
they are characteristic for aerial ortho-photos and natural images.
Because of the design of PGF we already know that PGF does not reach
the compression efficiency of JPEG 2000. However, we are interested
in the trade-off between compression efficiency and runtime. To report
this trade-off we show in Table 4 a comparison between JPEG 2000
and PGF and in Fig. 5 (on page 8) we show for the same test series as
in Fig. 4 the corresponding average decoding times in relation to
compression ratios.
23 | P a g e
For six of seven ratios the PSNR difference between JPEG 2000
and PGF is within 3% of the PSNR of JPEG 2000. Only in the first row
is the difference larger (21%), but because a PSNR of 50 corresponds
to an almost perfect image quality the large PSNR difference
corresponds with an almost undiscoverable visual difference. The price
they pay in JPEG 2000 for the 3% more PSNR is very high. The
creation of a PGF is five to twenty times faster than the creation of a
corresponding JPEG 2000 file, and the decoding of the created PGF is
still five to ten times faster than the decoding of the JPEG 2000 file.
This gain in speed is remarkable, especially in areas where time is more
important than quality, maybe for instance in real-time computation.
24 | P a g e
In Fig. 5 we see that the price we pay in PGF for the 3% more PSNR
than JPEG is low: for small compression ratios (< 9) decoding in PGF
takes two times longer than JPEG and for higher compression ratios (>
30) it takes only ten percent longer than JPEG. These test results are
characteristic for both natural images and aerial ortho-photos. Again,
in the third test series we only use the ‘Lena’ image. We run our lossy
coder with six different quantization parameters and measure the PSNR
in relation to the resulting compression ratios. The results (ratio: PSNR)
are:
25 | P a g e
relatively independent operations: (1) devising an alternative
representation of the image in which its interpixel redundancies are
reduced and (2) coding the representation to eliminate coding
redundancies.
26 | P a g e
LS. PGF performs between 0.5% (woman) and 21.3% (logo) worse
than JPEG 2000. On average it is almost 15% worse. The two
exceptions to the general trend are the ‘compound’ and the ‘logo’
images. Both images contain for the most part black text on a white
background. For this type of images, JPEG-LS and in particular
WinZip and PNG provide much larger compression ratios. However,
in average PNG performs the best, which is also reported in [SEA+00].
27 | P a g e
Table 3 shows the encoding (enc) and decoding (dec) times
(measured in seconds) for the same algorithms and images as in Table
2. JPEG 2000 and PGF are both symmetric algorithms, while WinZip,
JPEG-LS and in particular PNG are asymmetric with a clearly shorter
decoding than encoding time. JPEG 2000, the slowest in encoding and
decoding, takes more than four times longer than PGF. This speed gain
is due to the simpler coding phase of PGF. JPEG-LS is slightly slower
than PGF during encoding, but slightly faster in decoding images.
WinZip and PNG decode even more faster than JPEG-LS, but
their encoding times are also worse. PGF seems to be the best
compromise between encoding and decoding times. Our PGF test set
clearly shows that PGF in lossless mode is best suited for natural
images and aerial orthophotos. PGF is the only algorithm that encodes
the three MByte large aerial ortho-photo in less than second without a
real loss of compression efficiency. For this particular image the
efficiency loss is less than three percent compared to the best. These
results should be underlined with our second test set, the Kodak test set.
28 | P a g e
Fig. 3 shows the averages of the compression ratios (ratio),
encoding (enc), and decoding (dec) times over all eight images. JPEG
2000 shows in this test set the best compression efficiency followed by
PGF, JPEG-LS, PNG, and WinZip. In average PGF is eight percent
worse than JPEG 2000. The fact that JPEG 2000 has a better lossless
compression ratio than PGF does not surprise, because JPEG 2000 is
more quality driven than PGF.
There are many methods available for lossy and lossless, image
compression. The efficiency of these coding standardized by some
Organizations. The International Standardization Organization (ISO)
and Consultative Committee of the International Telephone and
29 | P a g e
Telegraph (CCITT) are defined the image compression standards for
both binary and continuous tone (monochrome and Colour) images.
Some of the Image Compression Standards are
1. JBIG1
2. JBIG2
3. JPEG-LS
30 | P a g e
digital photography, medical imaging, remote sensing, and desktop
publishing.
The preceding points led to several key objectives for the new standard,
namely that it should: 1) allow efficient lossy and lossless compression
within a single unified coding framework, 2) provide superior image
quality, both objectively and subjectively, at low bit rates, support
additional features such as region of interest coding, and a more flexible
file format, 4) avoid excessive computational and memory complexity.
Undoubtedly, much of the success of the original JPEG standard can
be attributed to its royalty-free nature. Consequently, considerable
effort has been made to ensure that minimally-compliant JPEG- 2000
codec can be implemented free of royalties.
31 | P a g e
BLCOK DIAGRAM
OPEN CV
32 | P a g e
in Python, Java and MATLAB. The API for these interfaces can be
found in the online documentation. Wrappers in several programming
languages have been developed to encourage adoption by a wider
audience.
33 | P a g e
CHAPTER-4
34 | P a g e
the first layer (the input layer), to the last layer (the output
layer), possibly after traversing the layers multiple times.
35 | P a g e
outputs of the final output neurons of the neural
net accomplish the task, such as recognizing an object in an
image.
36 | P a g e
Propagation function
The propagation function computes the input to a
neuron from the outputs of its predecessor neurons and their
connections as a weighted sum. A bias term can be added to
the result of the propagation.
Organization
37 | P a g e
between neurons in the same or previous layers are known
as recurrent networks.
Cost function
While it is possible to define a cost function ad
hoc, frequently the choice is determined by the function's
desirable properties (such as convexity) or because it arises
from the model (e.g. in a probabilistic model the
model's posterior probability can be used as an inverse cost).
Backpropagation
Backpropagation is a method used to adjust the
connection weights to compensate for each error found during
learning. The error amount is effectively divided among the
connections. Technically, back prop calculates the gradient of
the cost function associated with a given state with respect to
the weights. The weight updates can be done via stochastic
gradient descent or other methods, such as Extreme Learning
Machines, "No-prop" networks, training without backtracking,
"weightless" networks and non-connectionist neural networks.
38 | P a g e
4.4 SYSTEM IMPLEMENTATION
APPLICATIONS
39 | P a g e
black-box models in geoscience: hydrology, ocean modelling
and coastal engineering, and geomorphology.
40 | P a g e
TIME
The Python time() function retrieves the current time. The time is
represented as the number of seconds since January 1, 1970. This is the
point at which UNIX time starts, also called the “epoch.”
MATH
In this article, we learn about the math module from basics to advance
using the help of a huge dataset containing functions explained with
the help of good examples.
41 | P a g e
Argparse
Python
42 | P a g e
Python's other implementations. Python and CPython are managed by
the non-profit Python Software Foundation.
Indentation
43 | P a g e
is copied into an allocated storage location for which the (left-
hand) variable name is the symbolic address. The memory allocated
to the variable is large enough (potentially quite large) for the
declared type. In the simplest case of Python assignment, using the
same example, x = 2, translates to "(generic) name x receives
a reference to a separate, dynamically allocated object of numeric
(int) type of value 2." This is termed binding the name to the object.
Since the name's storage location doesn't contain the indicated
value, it is improper to call it a variable. Names may be subsequently
rebound at any time to objects of greatly varying types, including
strings, procedures, complex objects with data and methods, etc.
Successive assignments of a common value to multiple names,
e.g., x = 2; y = 2; z = 2 result in allocating storage to (at most) three
names and one numeric object, to which all three names are bound.
Since a name is a generic reference holder it is unreasonable to
associate a fixed data type with it. However at a given time a name
will be bound to some object, which will have a type; thus there
is dynamic typing.
The if statement, which conditionally executes a block of code,
along with else and elif (a contraction of else-if).
The for statement, which iterates over an iterable object, capturing
each element to a local variable for use by the attached block.
The while statement, which executes a block of code as long as its
condition is true.
44 | P a g e
The try statement, which allows exceptions raised in its attached
code block to be caught and handled by except clauses; it also
ensures that clean-up code in a finally block will always be run
regardless of how the block exits.
The raise statement, used to raise a specified exception or re-raise a
caught exception.
The class statement, which executes a block of code and attaches its
local namespace to a class, for use in object-oriented programming.
The def statement, which defines a function or method.
The with statement, from Python 2.5 released on September
2006, which encloses a code block within a context manager (for
example, acquiring a lock before the block of code is run and
releasing the lock afterwards, or opening a file and then closing it),
allowing Resource Acquisition Is Initialization (RAII)-like
behavior and replaces a common try/finally idiom.
The pass statement, which serves as a NOP. It is syntactically
needed to create an empty code block.
The assert statement, used during debugging to check for conditions
that ought to apply.
The yield statement, which returns a value from
a generator function. From Python 2.5, yield is also an operator.
This form is used to implement co routines.
The import statement, which is used to import modules whose
functions or variables can be used in the current program. There are
three ways of using import: import <module name> [as
45 | P a g e
<alias>] or from <module name> import * or from <module name>
import <definition 1> [as <alias 1>], <definition 2> [as <alias 2>],
....
The print statement was changed to the print() function in Python 3
46 | P a g e
CONCLUSION
47 | P a g e
REFERENCES
1. Kamal Acharya. School management system project report. Authorea. August 01,
2024. DOI: https://doi.org/10.22541/au.172254873.34023165/v1
48 | P a g e
15. Acharya, Kamal, Online Job Portal Management System (May 5, 2024). Available at
SSRN: https://ssrn.com/abstract=4817534 or http://dx.doi.org/10.2139/ssrn.4817534
16. Acharya, Kamal, Employee leave management system. (May 7, 2024). Available at
SSRN: https://ssrn.com/abstract=4819626 or http://dx.doi.org/10.2139/ssrn.4819626
17. Acharya, Kamal, Online electricity billing project report. (May 7, 2024). Available at
SSRN: https://ssrn.com/abstract=4819630 or http://dx.doi.org/10.2139/ssrn.4819630
19. Acharya, Kamal, Online job placement system project report. (January 10, 2023).
Available at
SSRN: https://ssrn.com/abstract=4831638 or http://dx.doi.org/10.2139/ssrn.4831638
20. Acharya, Kamal, Software testing for project report. (May 16, 2023). Available at
SSRN: https://ssrn.com/abstract=4831028 or http://dx.doi.org/10.2139/ssrn.4831028
21. Acharya, Kamal, ONLINE CRIME REPORTING SYSTEM PROJECT. (August 10,
2022). Available at
SSRN: https://ssrn.com/abstract=4831015 or http://dx.doi.org/10.2139/ssrn.4831015
22. Acharya, Kamal, Burger ordering system project report. (October 10, 2022).
Available at
SSRN: https://ssrn.com/abstract=4832704 or http://dx.doi.org/10.2139/ssrn.4832704
23. Acharya, Kamal, Teachers Record Management System Project Report (December
10, 2023). Available at
SSRN: https://ssrn.com/abstract=4833821 or http://dx.doi.org/10.2139/ssrn.4833821
24. Acharya, Kamal, Dairy Management System Project Report (December 20, 2020).
Available at
SSRN: https://ssrn.com/abstract=4835231 or http://dx.doi.org/10.2139/ssrn.4835231
25. Acharya, Kamal, Electrical Shop Management System Project (December 10, 2019).
Available at
SSRN: https://ssrn.com/abstract=4835238 or http://dx.doi.org/10.2139/ssrn.4835238
26. Acharya, Kamal, Online book store management system project report. (Febuary 10,
2020). Available at
SSRN: https://ssrn.com/abstract=4835277 or http://dx.doi.org/10.2139/ssrn.4835277
27. Acharya, Kamal, Paint shop management system project report. (January 10, 2019).
Available at
SSRN: https://ssrn.com/abstract=4835441 or http://dx.doi.org/10.2139/ssrn.4835441
49 | P a g e
28. Acharya, Kamal, Supermarket billing system project report. (August 10, 2021).
Available at
SSRN: https://ssrn.com/abstract=4835474 or http://dx.doi.org/10.2139/ssrn.4835474
29. Acharya, Kamal, Online taxi booking system project report. (March 10, 2022).
Available at
SSRN: https://ssrn.com/abstract=4837729 or http://dx.doi.org/10.2139/ssrn.4837729
30. Acharya, Kamal, Online car servicing system project report. (March 10, 2023).
Available at
SSRN: https://ssrn.com/abstract=4837832 or http://dx.doi.org/10.2139/ssrn.4837832
31. Acharya, Kamal, School management system project report. (July 10, 2021).
Available at
SSRN: https://ssrn.com/abstract=4837837 or http://dx.doi.org/10.2139/ssrn.4837837
32. Acharya, Kamal, Furniture Showroom Management System Project Report (March
21, 2021). Available at
SSRN: https://ssrn.com/abstract=4839422 or http://dx.doi.org/10.2139/ssrn.4839422
33. Acharya, Kamal, Online Vehicle Rental System Project Report (March 21, 2019).
Available at
SSRN: https://ssrn.com/abstract=4839429 or http://dx.doi.org/10.2139/ssrn.4839429
34. Acharya, Kamal, Fruit Shop Management System Project Report (August 10, 2023).
Available at
SSRN: https://ssrn.com/abstract=4841048 or http://dx.doi.org/10.2139/ssrn.4841048
35. Acharya, Kamal, Hall Booking Management System Project Report (December 21,
2023). Available at
SSRN: https://ssrn.com/abstract=4841055 or http://dx.doi.org/10.2139/ssrn.4841055
36. Acharya, Kamal, Lundry Management System Project Report (October 21, 2023).
Available at
SSRN: https://ssrn.com/abstract=4841059 or http://dx.doi.org/10.2139/ssrn.4841059
50 | P a g e
40. Acharya, Kamal, ONLINE RESUME BUILDER MANAGEMENT SYSTEM PROJECT
REPORT. (April 25, 2021). Available at
SSRN: https://ssrn.com/abstract=4842071 or http://dx.doi.org/10.2139/ssrn.4842071
41. Acharya, Kamal, TOLL TEX MANAGEMENT SYSTEM PROJECT REPORT (August
21, 2023). Available at
SSRN: https://ssrn.com/abstract=4842082 or http://dx.doi.org/10.2139/ssrn.4842082
42. Acharya, Kamal, Chat Application Through Client Server Management System
Project Report (June 25, 2023). Available at
SSRN: https://ssrn.com/abstract=4842761 or http://dx.doi.org/10.2139/ssrn.4842761
43. Acharya, Kamal, Web Chatting Application Management System Project Report
(April 25, 2022). Available at
SSRN: https://ssrn.com/abstract=4842771 or http://dx.doi.org/10.2139/ssrn.4842771
44. Acharya, Kamal, Automobile management system project report (May 25, 2022).
Available at
SSRN: https://ssrn.com/abstract=4846917 or http://dx.doi.org/10.2139/ssrn.4846917
45. Acharya, Kamal, College bus management system project report (April 25, 2023).
Available at
SSRN: https://ssrn.com/abstract=4846920 or http://dx.doi.org/10.2139/ssrn.4846920
46. Acharya, Kamal, Courier management system project report (May 25, 2023).
Available at
SSRN: https://ssrn.com/abstract=4846922 or http://dx.doi.org/10.2139/ssrn.4846922
47. Acharya, Kamal, Event management system project report (April 25, 2021). Available
at
SSRN: https://ssrn.com/abstract=4846927 or http://dx.doi.org/10.2139/ssrn.4846927
48. Acharya, Kamal, Library management system project report II (May 25, 2020).
Available at
SSRN: https://ssrn.com/abstract=4848857 or http://dx.doi.org/10.2139/ssrn.4848857
51 | P a g e