You are on page 1of 12

Python

Abstract:

Image processing is technique which involves different operation that can be performed
on image. Image processing plays vital role in photography, computer science and many other
fields. This project is mainly concerned with basic operations on image. So that user can get
required visual apperance.

Vision 2K9 Page 1


Python

Image Processor Using Python Library

Miss. Sumati Sanjeev Patil. W.C.E.Sangli.

Miss. Sharayu Kantilal Moholkar. W.C.E.Sangli.

Image processing is the use of computer algorithm to perform, improve or change some
quality of image. Now a days, it is important in different fields.

The Python Image Processing Libarary adds image processing capabilities to the Python
Interpreter. This library provides extensive file format , an efficient internal representation and
fairly powerful image processing tools. Actually the Image Library designed for fast access.The
Python Image Library is ideal for image archeival and batch processing application.

Here our project is providing an image processing tool through which user can give
desired effects to an image. It accepts input via mouse and keyboard and give output on screen.
So just one click by mouse,you will get the image with expected result.

Vision 2K9 Page 2


Python

Contents:

Sr.No. Title Page No.

1 Abstract 3

2 Introduction 4

3 Scope 5

4 Objectives 5

5 Implementation 6

6 Advantages 10

7 Application 11

8 Reference 11

Vision 2K9 Page 3


Python

INTRODUCTION:

Image processing is one form of signal processing for which the input is an image,
such as photographs or frames of video; the output of image processing can be either an image
or a set of characteristics or parameters related to the image. Most image-processing techniques
involve treating the image as a two-dimensional signal and applying standard signal-processing
techniques to it.

Image processing modifies pictures to improve them (enhancement, restoration), extract


information (analysis, recognition), and change their structure (composition, image editing).
Images can be processed by optical, photographic, and electronic means, but image processing
using digital computers is the most common method because digital methods are fast, flexible,
and precise.

In this project we are providing different image processing tool with GUI so it makes
easy for user to give desired effects to image. Here we have used Python Image Processing
Library. Python was invented by Python, Guido van Rossum Python is a interpreted ,
interactive,dynamic object-oriented programming language that can be used for many kinds of
software development. It offers strong support for integration with other languages and tools,
comes with extensive standard libraries, and can be learned in a few days. Many Python
programmers report substantial productivity gains and feel the language encourages the
development of higher quality, more maintainable code. Python runs on Windows, Linux/Unix,
Mac OS X, OS/2, Amiga, Palm Handhelds, and Nokia mobile phones. Python has also been
ported to the Java and .NET virtual machines.

The language comes with a large standard library that covers areas such as string
processing (regular expressions, Unicode, calculating differences between files), Internet
protocols (HTTP, FTP, SMTP, XML-RPC, POP, IMAP, CGI programming), software
engineering (unit testing, logging, profiling, parsing Python code), and operating system
interfaces (system calls, filesystems, TCP/IP sockets)

Vision 2K9 Page 4


Python

Probably tens of thousands of users, though it's difficult to obtain an exact count decided
to use the language Python.

Scope:
Image processing is blooming technology. Image processing has lot of application in
different fields like medical, computer science etc. In this project we have implemented some of
the image processing operations which will help the user to understand the concept of image
processing. Therefore the scope of this and such projects is increasing.

Objectives:

1. The purpose of this project is to allow users to explore how digitized images can be
processed using computer software.

2. The user will understand the practical and real world application of image processing and
image enhancement

3. GUI provides better interaction between user & system.

4. The user can manipulate the image with desired look.

Vision 2K9 Page 5


Python

Implementation:

This project uses Python Image Processing Library (PIL). The Python Imaging Library
adds image processing capabilities to Python interpreter. This library provides extensive file
format support, an efficient internal representation, and fairly powerful image processing
capabilities.The core image library is designed for fast access to data stored in a few basic pixel
formats. It should provide a solid foundation for a general image processing tool.The Python
Imaging Library is ideal for image archival and batch processing applications.The current
version identifies and reads a large number of formats. The current release includes
TkPhotoImage and BitmapImage interfaces, that can be used with PythonWin and other
Windows-based toolkits. Many other Graphics User Interface (GUI) toolkits come with some
kind of PIL support. There's a histogram method allowing you to pull some statistics out of an
image. This can be used for global statistical analysis.

The GUI uses TKinter module of PIL. The Tkinter module ("Tk interface") is the
standard Python interface to the Tk GUI toolkit from Scriptics (formerly developed by Sun
Labs).Both Tk and Tkinter are available on most Unix platforms, as well as on Windows and
Macintosh systems. Starting with the 8.0 release, Tk offers native look and feel on all platforms.
Tkinter consists of a number of modules. GUI has made computers much easier to work with
them.

By using Python Image Processing Library we can give different effects to images like
inversion, cropping, pasting rotating image, flipping image using different methods ,converting
image to different modes ,image filtering, image enhancement, drawing different geometrical
shapes on image, taking screen shots, converting image to mirror image, posterized , solarized
image, gray scale image, black and white image ,expanding equalizing deforming colorizing,
fitting image in frame, brightening, sharpening, darkening the image etc.

Vision 2K9 Page 6


Python

Here are some screen shots for different image processing operations :

1)Emboss effect:-

Before operation : After operation:

2)Gray scale effect:-

Before operation: After operation:

Vision 2K9 Page 7


Python

3)Flipping top_bottom effect:

Before operation: After operation:

4)Find Edge effect:

Before operation: After operation:

5)Draw Circle on image:

Vision 2K9 Page 8


Python

Before operation: After operation :

6)Multiplying two images:

Vision 2K9 Page 9


Python

Advantages:

1. Improving visual appearance of image to human viewer.

2. Preparing images for measurement of features & structure present.

3. User friendly software.

4. Typical reason to use the GUI tools are to save time and energy to get quick answer and

get your job done.

5.Photo manipulation is the application of image editing techniques to photographs in


order to create an illusion or deception (in contrast to mere enhancement or
correction), through analog or digital means.

6. Non photorealistic rendering focuses on enabling a wide variety of expressive styles for
digital art.

Vision 2K9 Page 10


Python

Application:
This project can be used in photography.

Reference:
Books:

1.bject Oriented Programming in Python

By Michael H.Goldoldwasser & David Letscher.

2. An Introduction To Python

By Guido Van Rossum & Fred L. Darke.

3. Core Python Programming

By Wesley J.Chun.

4.Learning Python

By Mark Lutz.

Websites:

www.python.org

www.pythonware.com

Vision 2K9 Page 11


Python

Vision 2K9 Page 12

You might also like