Skip to content

Module for Python. This Module will enable a user to use any flatbed scanner using python.

License

Notifications You must be signed in to change notification settings

Hardik-26/scanny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scanny

PyPI version License Downloads


Module for Python. This Module will enable a user to use any flatbed scanner using python.


Copyright (c) 2024 Hardik Shah.


Author : Hardik Shah.

License : GNU General Public License v3.0


Brief Description :

With this module you will be able to use your flatbed scanner using python.
This module uses PowerShell script to execute the scan command.
you can say that this module works as an API for Powershell which can communicate with the scanner using WIA (Windows Image Acquisition).


INSTRUCTIONS-

Make sure your flatbed scanner is pluged in and ready to scan
well thats it.


HOW TO USE-

import scanny

Scan A image-

>>> scanny.StartScan("Path"( where you want your image file to be saved) , "ImageName" ) 
Eg- scanny.StartScan('C:\\Users\\Admin\\Desktop','TestIamge')

Calibrate the scanner-

(Optional, only for backward compatibility purposes)-

>>> scanny.Calibrate()

Get Scanner Bed Size-

>>> scanny.size()

MISC-

>>> scanny._calibration
>>> scanny._pixel_len

Other Information-

Currently this python package only works for Windows 8 & Above.
Linux and MAC-OS compatibility comming soon in next version: 0.0.2.


Thank you. ☺

About

Module for Python. This Module will enable a user to use any flatbed scanner using python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published