skip to navigation
skip to content

twain 1.0.5

TWAIN API for accessing scanners, cameras, etc on Windows

The Python TWAIN module provides an interface to scanners, digital cameras and
other devices which implement TWAIN, for the Windows platform. It provides the
functionality to allow a Python application to connect to the scanner/camera and
to retrieve images from that device.

The Python TWAIN module supports 32bit Windows only. It does not run on Apple
Computer Platforms or on UNIX based Platforms.

Example: Retrieve an image from a scanner

import twain
sm = twain.SourceManager(0)
ss = sm.OpenSource()
rv = ss.XferImageNatively()
if rv:
(handle, count) = rv
twain.DIBToBMFile(handle, 'image.bmp')  
File Type Py Version Uploaded on Size
twain-1.0.5.win32-py2.6.exe (md5) MS Windows installer 2.6 2010-06-10 228KB
twain-1.0.5.win32-py2.7.exe (md5) MS Windows installer 2.7 2010-06-10 228KB