Python
#1

[attachment=10084]
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.
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.
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)
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.
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.
Reply
#2
[attachment=12320]
PYTHON
INTRODUCTION

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python's elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.
The first version was developed by GuidoVan Rossum in 1991
Why not Perl?
 When compared to Perl, Python programs are definitely simpler, clearer, easier to write and hence more understandable and maintainable.
 If you didn't know already, Perl is another extremely popular open source interpreted programming language.
Features of Python
 Simple
 Easy to Learn
 Free and Open Source
 High-level Language
 Portable
 Interpreted
 Object Oriented
 Extensible
 Embeddable
 Extensive Libraries
BASICS
 Literal Constants
 Numbers
1. Integers
2. floating point
3 . complex numbers
 Strings
Variables
 Identifier Naming
àRules
 Data Types
 Objects
 In PYTHON we doesnot declare variables we will just assign to them and go
Operators
 Note that you can evaluate the expressions given in the examples using the interpreter interactively. For example, to test the expression 2 + 3, use the interactive Python interpreter prompt:
>>> 2 + 3
5
>>> 3 * 5
15
>>>
 Operators mainly used
Control Structures
 The if statement
The if statement is used to check a condition: if the condition is true, we run a block of statements (called the if-block), else we process another block of statements (called the else-block). The else clause is optional
à elif(elseif)
 The while Statement
The while statement allows you to repeatedly execute a block of statements as long as a condition is true. A while statement is an example of what is called a looping statement. A while statement can have an optional else clause.
Control Sturctures
 The for loop
The for..in statement is another looping statement which iterates over a sequence of objects i.e. go through each item in a sequence
 Example
for i in range(1, 5):
print(i)
else:
print('The for loop is over')
Control Structures
 The break Statement
The break statement is used to break out of a loop statement i.e. stop the execution of a looping statement, even if the loop condition has not become False or the sequence of items has not been completely iterated over.
The continue Statement
The continue statement is used to tell Python to skip the rest of the statements in the current loop block and to continue to the next iteration of the loop.
Functions
 Functions are reusable pieces of programs. They allow you to give a name to a block of statements, allowing you to run that block using the specified name anywhere in your program and any number of times. This is known as calling the function. We have already used many built-in functions such as len and range.
 Functions are defined using the def keyword. After this keyword comes an identifier name for the function, followed by a pair of parentheses which may enclose some names of variables, and by the final colon that ends the line. Next follows the block of statements that are part of this function.
EXAMPLE FOR FUNCTION
 def sayHello():
print('Hello World!') # block belonging to the function
# End of function
sayHello() # call the function
FUNCTIONS
The return Statement
The return statement is used to return from a function i.e. break out of the function.
 Local variables
 Global variables
Data Structures
 There are four built-in data structures in Python
1.list,
2.tuple,
3.dictionary and
4.set.
CLASSES AND OBJECTS
 class Person:
pass # An empty block
p = Person()
 We create a new class using the class statement and the name of the class. This is followed by an indented block of statements which form the body of the class. In this case, we have an empty block which is indicated using the pass statement.
 Next, we create an object/instance of this class using the name of the class followed by a pair of parentheses.
OBJECT METHODS
 classes/objects can have methods just like functions except that we have an extra self variable
class Person:
def sayHi(self):
print('Hello, how are you?')
p = Person()
p.sayHi()
The __init__ method
 The __init__ method is run as soon as an object of a class is instantiated. The method is useful to do any initialization you want to do with your object.
class Person:
def __init__(self, name):
self.name = name
def sayHi(self):
print('Hello, my name is', self.name)
p = Person('Swaroop')
p.sayHi()
Input Output
 The input() function takes a string as argument and displays it to the user. Then it waits for the user to type something and press the return key. Once the user has entered, the input() function will then return that text
 Print() function helps you to output the text,values of variables
Files
 You can open and use files for reading or writing by creating an object of the file class and using its read, readline or write methods appropriately to read from or write to the file. The ability to read or write to the file depends on the mode you have specified for the file opening. Then finally, when you are finished with the file, you call the close method to tell Python that we are done using the file.
Example of File
 poem = '''\
Programming is fun
When the work is done if you wanna
make your work also fun:
use Python!
'''
f = open('poem.txt', 'w') # open for 'w'riting
f.write(poem) # write text to file
f.close() # close the file
f = open('poem.txt') # if no mode is specified, 'r'ead mode is assumed default
while True:
line = f.readline()
if len(line) == 0: # Zero length indicates EOF
break
print(line, end='')
f.close() # close the file
Handling Exceptions
 We can handle exceptions using the try..except statement. We basically put our usual statements within the try-block and put all our error handlers in the except-block.
 try:
text = input('Enter something --> ')
except EOFError:
print('Why did you do an EOF on me?')
except KeyboardInterrupt:
print('You cancelled the operation.')
else:
print('You entered {0}'.format(text))
Handling Exceptions
 Try .. Finally
Suppose you are reading a file in your program. How do you ensure that the file object is closed properly whether or not an exception was raised? This can be done using the finally block
 The with statement
Acquiring a resource in the try block and subsequently releasing the resource in the finally block is a common pattern. Hence, there is also a with statement
The difference here is that we are using the open function with the with statement - we leave the closing of the file to be done automatically by with open.
APPLICATIONS
 Web and Internet Development
àCGI scripts
 Database Access
àCustom and ODBC interfaces
 Desktop GUIs
 Scientific and Numeric
 Network Programming
àSocket interface
 Game and 3D Graphics
CONCLUSION
 A language will become wide spread if it is simple easy to use and also serves its purpose well ,As PYTHON has all the above mentioned features it is accepted by most of the programmers…
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: web crawling python, examples of computer science project python, abstract function python, python print dictionary for, python 2 6 2, related seminar topic on python, python opencv pupil detection,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump: