background preloader

Python

Facebook Twitter

Bardecode. Due the lack of open source, cross platform and high quality barcode recognition offerings, ExactCODE developed an own, portable barcode recognition framework targeting highest recognition accuracy and fast processing.

Bardecode

To our knowledge ExactImage comes with the first (production quality) open source barcode recognition support ever. The following are real-world example images, selected from production systems to demonstrate some challenges: This example shows overlapping dot matrix printed barcodes as used by a German postal service. Not only are gaps in the code resulting from the rather huge dots compensated, even partial overlapping does usually not pose a problem.

For processing by ExactImage's barcode recognition the barcodes also neither have to be pure black and white. Even in low contrast images - here due to a rather saturated, dark background - the ExactImage library can still separate the barcode from the background. Using the command line frontend bardecode files/* Tutorial - pyftpdlib - Tutorial containing API reference and example usages - Python FTP server library. Disk usage. Welcome, guest | Sign In | My Account | Store | Cart ActiveState Code » Recipes Add a Recipe Languages Tags Authors Sets Disk usage (Python recipe) by Giampaolo Rodolà ActiveState Code ( 4 comments In Python 3, use GetDiskFreeSpaceExW (Unicode strings).

Disk usage

Fixed, thanks. that was what i was looking for. but the parameters of GetDiskFreeSpaceEx are ULARGE_INTEGER. so in line 28 ctypes.c_ulonglong() would be appropriate. at least it works like this for me with some drives larger than 4.3GByte Fixed. Add a comment Sign in to comment Tags ▶ Show machine tags (6) Required Modules (none specified) Other Information and Tasks. Log watcher (tail -f *.log) Basic usage same as: tail -F /var/log/*.log def callback(filename, lines): for line in lines: print(line) watcher = LogWatcher("/var/log/", callback)watcher.loop() Also read last N lines from files before start watching same as: tail -F /var/log/*.log -n 20.

Log watcher (tail -f *.log)

Python Programming Language – Official Website. 8.3. collections — High-performance container datatypes — Python v2.7.2 documentation. New in version 2.4.

8.3. collections — High-performance container datatypes — Python v2.7.2 documentation

Source code: Lib/collections.py and Lib/_abcoll.py This module implements specialized container datatypes providing alternatives to Python’s general purpose built-in containers, dict, list, set, and tuple. In addition to the concrete container classes, the collections module provides abstract base classes that can be used to test whether a class provides a particular interface, for example, whether it is hashable or a mapping. 17.1. subprocess — Subprocess management — Python v2.7.2 documentation. Execute a child program in a new process.

17.1. subprocess — Subprocess management — Python v2.7.2 documentation

On Unix, the class uses os.execvp()-like behavior to execute the child program. On Windows, the class uses the Windows CreateProcess() function. The arguments to Popen are as follows. args should be a sequence of program arguments or else a single string. By default, the program to execute is the first item in args if args is a sequence. On Unix, if args is a string, the string is interpreted as the name or path of the program to execute. Note shlex.split() can be useful when determining the correct tokenization for args, especially in complex cases: >>> import shlex, subprocess>>> command_line = raw_input()/bin/vikings -input eggs.txt -output "spam spam.txt" -cmd "echo '$MONEY'">>> args = shlex.split(command_line)>>> print args['/bin/vikings', '-input', 'eggs.txt', '-output', 'spam spam.txt', '-cmd', "echo '$MONEY'"]>>> p = subprocess.Popen(args) # Success!

On Unix with shell=True, the shell defaults to /bin/sh. Warning.