background preloader

Python

Facebook Twitter

PyX / Gallery / index. An introduction to npyscreen — npyscreen 2 documentation. PyQtGraph - Scientific Graphics and GUI Library for Python. Python: Is there a way to determine the encoding of text file? Template Matching — OpenCV-Python Tutorials 1 documentation. Goals¶ In this chapter, you will learn To find objects in an image using Template MatchingYou will see these functions : cv2.matchTemplate(), cv2.minMaxLoc() Theory¶

Template Matching — OpenCV-Python Tutorials 1 documentation

AutoKey: Text Replacement And Hotkey Utility For Linux. Because I couldn't get Sikuli to work on Linux, I searched for an alternative and remembered about AutoKey which even though I've known for some time, I've never got to use.

AutoKey: Text Replacement And Hotkey Utility For Linux

AutoKey is a Linux application (the latest version comes with a GUI for both Gnome and KDE) somewhat similar to AutoHotkey for Windows, which allows you to manage a collection of phrases or other text, and assign abbreviations and hotkeys to these phrases allowing you to insert them on demand into whatever program you are using. Not only that, but starting with version 0.60 you can write Python scripts to automate virtually any task that can be accomplished via the keyboard. Unfortunately, the macros you may have created for previous AutoKey versions do not work with 0.60+.

AutoKey can be used for many things, it's up to you to decide for what you may need it. Don't worry about the password being visible, it's a test account and also the password has been changed. Sudo apt-get remove autokey. Python AHK - Python automation package - Automation made simple. Python is a beautiful programming language, anybody that is not convinced please read my python article to get convinced… But one thing is missing, a python automation module to help automating tasks like autohotkey.

Python AHK - Python automation package - Automation made simple

I wish there was a single python ahk module. Python and AHK I discovered autohotkey in 2007. It was rather simple to learn and I did program several scripts to help me in my everyday life at the computer in no time. As simple as it was too learn, I soon hit its limitations. Fortunately, I found python in 2009.

SendKeysCtypesPYHKwin32guipywinautomouse SendKeysCtype. Source Checkout - autokey - Desktop automation utility for Linux and X11. My favorites ▼ | Sign in Project Home Downloads Wiki Issues Source READ-ONLY: This project has been archived.

Source Checkout - autokey - Desktop automation utility for Linux and X11

For more information see this post. Command-line access Use this command to anonymously check out the latest project source code: Using OpenCV, Python and Template Matching to play "Where's Waldo?" This is a guest post by Adrian Rosebrock from PyImageSearch, a blog all about computer vision, image processing, and building image search engines.

Using OpenCV, Python and Template Matching to play "Where's Waldo?"

Figure 1: How long does it take you to find Waldo in this puzzle? Python - Finding a subimage inside a Numpy image. Python - Finding small image inside large (PIL + OpenCV) Diffusion de programmes PyQt4 autonomes sous Windows grâce à cx_Freeze. Faire un joli programme qui marche est une (bonne) chose, le diffuser en est une autre.

Diffusion de programmes PyQt4 autonomes sous Windows grâce à cx_Freeze

Il faut en effet que le PC du nouvel utilisateur dispose déjà des programmes nécessaires de Python, de PyQt4, etc., avec les bonnes versions, sans quoi votre programme ne fonctionnera pas (et vous porterez le chapeau…). Alors, il est important de pouvoir diffuser votre programme, accompagné de toutes les bibliothèques qui lui permettront de fonctionner correctement, même si l'utilisateur n'a rien installé ! C'est l'objet du présent tutoriel. On va utiliser le logiciel cx_Freeze pour cela. Il a l'avantage d'être multiplateforme (Windows-Linux). On va étudier ici l'utilisation de cx_Freeze sur Windows XP, Vista ou 7. Commentez : 4 commentaires. Accueil - Le site de Tyrtamos. Index — Matplotlib 1.4.3 documentation. Argparse – Command line option and argument parsing. The argparse module was added to Python 2.7 as a replacement for optparse.

argparse – Command line option and argument parsing.

The implementation of argparse supports features that would not have been easy to add to optparse, and that would have required backwards-incompatible API changes, so a new module was brought into the library instead. optparse is still supported, but is not likely to receive new features. Comparing with optparse The API for argparse is similar to the one provided by optparse, and in many cases argparse can be used as a straightforward replacement by updating the names of the classes and methods used.

There are a few places where direct compatibility could not be preserved as new features were added, however. You will have to decide whether to upgrade existing programs on a case-by-case basis. Web.media.mit. Snack Home Page. PyMedia - Python module for avi, mp3, dvd, wma, ogg processing - pymedia. Tuner: a python guitar tuner. Tuner is a python application that can be used to tune a music instrument.

Tuner: a python guitar tuner

It defaults to a guitar standard tuning, but I guess you could use it for any instrument. Tuner just emits sounds. It does not process the soundcard input to assess the tuning. To do that, you should look at greater applications such as gxTuner or Lingot. Tuner does not aim at being actually useful. Features Playback through internal speaker or via soundcard output. Configurable key set: Keys can be added or removed. Single note or all-notes-in-a-row playback. Adjustable note length. English (A, B C, D, E, F) and French (Do, Ré, Mi, Fa, Sol, La, Si) notestyles support. I18n : English and French supported. Distribuer facilement nos programmes Python avec cx_Freeze.

Traitement_images_1.pdf. Traitement_images_2.pdf. Python Imaging Library Handbook. Diffusion de programmes PyQt4 autonomes sous Linux grâce à cx_Freeze. Faire un joli programme qui marche est une (bonne) chose, le diffuser en est une autre.

Diffusion de programmes PyQt4 autonomes sous Linux grâce à cx_Freeze

Il faut en effet que le PC du nouvel utilisateur dispose déjà des programmes nécessaires de Python, de PyQt4, etc., avec les bonnes versions, sans quoi votre programme ne fonctionnera pas (et vous porterez le chapeau…). Alors, il est important de pouvoir diffuser votre programme, accompagné de toutes les bibliothèques qui lui permettront de fonctionner correctement, même si l'utilisateur n'a rien installé ! C'est l'objet du présent tutoriel. On va utiliser le logiciel cx_Freeze pour cela. Debugging in Python. PyQt Class Reference. PyQt By Example (Session 5) Since the log­ic form fac­tor for our ap­p’s win­dow is “tall and skin­ny”, it makes sense that the ed­i­tor will slide in from the bot­tom.

PyQt By Example (Session 5)

We will use our ed­i­tor wid­get as a “pro­mot­ed wid­get” in the main win­dow.