Mini Project 1.matlab
Mini Project 1.matlab
The three major steps involved in this project are shown in Fig.
2. Base image can be in any colour and should be in tif, jpg or
png format. The image generated by the program retains
properties of the base image. Source code given here only
inserts text on the image. Data to be written can be in either .xls
or .xlsx format. MS Excel is preferred as it’s a powerful
mathematical and statistical tool. It allows data to be internally
computed and analysed within the file.
MATALAB CODE:-
Clc
%Clea
r
comma
nd
windo
w.
clear all %Clear variables and functions from
memory
close all % closes all the open figure windows
home % Send the cursor home
filename = 'Registration_Details.xls';
[num,txt] = xlsread(filename)
% Read Excel sheet containing details. Text is read
from the file
% seperately from numbers
len=length(txt)
% obtain length of text in excel or number of
certificates to be generated
% This code provides scalability
blankimage = imread('Certificate_Blank.tif');
% Read blank certificate image
for i=1:len
for j= 2:2
text_names(i,j)=txt(i,j)
end
end
% Obtain names from the txt variable which are in
2nd column
for i=1:len
for j= 3:3
text_topic(i,j)=txt(i,j)
end
end
% Obtain topics from the txt variable which are in
3rd column
%Ignore first row which is heading
for i=2:len
text_all=[text_names(i,2) text_topic(i,3)]
% combine names and topics
figure
imshow(RGB)
%Obtain and display figure in color
y=i-1
filename=['Certificate_Topic_' num2str(y)]
lastf=[filename '.tif']
saveas(gcf,lastf)
% generate and save files with .tif extension
end
RESULT:- Automatic Certificate is generated using this
source code.
We can just put the name over it using the excel sheet data.
Excel sheet data and blank certificate are tightly encapsulated to
each other.
Conclusion:-
Students database management:- The database of the students
present in the institution must be maintained in a well organized
way. It is required to send the certificates to the particular
students of the organization.
Certificate access:- The students will be able to access the
certificate online through the use of this system.
Login id:- There will be separate login id that will provide to
the people of the institutions as well as the students to upload
and access the certificates respectively.