Vous êtes sur la page 1sur 10

SDM College of Engineering and

Technology

MINI
PROJECT
REPORT
SI No
1

Name
Abhishek D Jayakar

USN
2SD13CS006

2
3

Dhanya S Wajapey
Jishnu Rao

2SD13CS040
2SD13CS048

NaveenKumar
Yaragall

2SD13CS068

Project By

GUIDE CERTIFICATE

This is to certify that we, the students of


Computer Science department studying in
Semester V has successfully completed
the project on Image To Text Conversion
under the guidance of Prof. Shrihari M
Joshi.

Date: 08-03-16

Project Co-ordinator

Place: Dharwad

Prof.S.M.Joshi

ACKNOWLEDGEMENT

I forfeit my respect and sincere gratitude


to
Prof. Shrihari M Joshi, the mentor, for his
guidance and encouragement and also
for providing us the opportunity to do the
project work on IMAGE TO TEXT
CONVERSION.

IMAGE TO TEXT CONVERSION


The Image to Text Conversion is based on Optical
Character Recognition. Optical Character
Recognition, or OCR, is a technology that enables
the conversion of different types of documents,
such as scanned paper documents, PDF files or
images captured by a digital camera into editable
and searchable data.

OCR comprises of four components.


1) Optical Scanning.
2) Location and Segmentation.
3) Pre Processing.
4) Feature Extraction.

Optical Scanning in Java


In Java there are three operations that needs to be
carried out to achieve optical scanning.
1) Creating an Image

2) Loading an Image
3) Displaying an Image

Creating an Image:
In Java the image is painted on window. This is
done by creating an instance of Image. Image class
needs information about the environment to create
proper data format for screen. For this purpose
'createImage()' method is used.
Example: Image myImage =
createImage(280,100);
The above line creates an instance of Image with
width 280p and height 100p

Loading an Image
After creating an instance of Image class, the
required Image needs to be loaded to the created
object. This is done using the getImage() method.
Example: myImage =

getImage((getDocumentBase(),
"sample.png"));

The above line loads the required image into the


'myImage' object created before . Here the URL of
the image is specified by 'getDocumentBase()'
which returns the relative URL of the html file
containing the applet. The name of the image file is
passed as second argument.

Displaying an Image
After loading an image, it needs to be drawn on the
window. This is carried out using the 'drawImage()'
method.
Example: drawImage(myImage, 10,50,this);

Sample code for creating, loading and


displaying an image.
import java.awt.*;
import java.applet.*;
public class OpticalScanner extends Applet{
Image myImage = createImage(400,400 );
public void init(){

myImage = getImage(getDocumentBase(),
"sample.png");
}
public void paint(Graphics g){
g.drawImage(myImage,50,50,this);
}
}

Graphical User Interface(GUI)


The front end of the I2T (Image To Text) Application
is built in JAVA with the help of Android Studio.
Mainly the Application contains 3 frames connected
in sequence and the design for each of the frames
is shown below:
1)Frame 1

The I2T

2)Frame 2

The I2T

3)Frame 3

The I2T

Vous aimerez peut-être aussi