opencv
mouseTrap 0.2 release
Submitted by flaper87 on Tue, 07/15/2008 - 08:21.
Hi all!!
Yes! It's true, I'm releasing the mouseTrap version 0.2 so it can be downloaded by anyone.
What offers mouseTrap version 0.2:
* Complete control of the mouse pointer via webcam.
* Mouse Movements
* Mouse Clicks events ( left, double, drag/drop, middle, right... Scroll Up/Down coming in the coming revisions )
* Compatibility with other Assistive technologies ( MouseTweaks, GOK)
* Multi Desktop Manager application ( Tested with: Gnome, E17 and OpenBox W.M )
* Complete Documentation for developers ( using --enable-pydoc and --enable-doxygen for building it )
* more......
The Code:
It is written in python using OpenCV library, and can be browsed from:
http://mousetrap.flaper87.org/trac/
Or downloaded using the subversion repository:
svn checkout http://svn.flaper87.org/mousetrap mousetrap
Installation:
MouseTrap uses the autotools for the installation process, so it is as easy as doing:
$ ./autogen.sh && make
AS ROOT:
# make install
Suggestions:
Read the README file :D
Coming on future versions:
* Eye tracking
* More Stability
* Different clicking methods.
* mouseTrap Art ( Icons, Images ) ( Any help needed!! )
Well, I really hope you like it and I'll be waiting for your feedback ( please write me to: flaper87 [at] flaper87 [dot] org )
Thanks all
Dibujando con MouseTrap / Drawing with mouseTrap / Disegnando con mouseTrap
Submitted by flaper87 on Mon, 07/14/2008 - 18:03.
Español:
Bueno acá dejo un vídeo realmente corto para demostrar el funcionamiento de mouseTrap con aplicaciones como OpenOffice Draw, el diseño que realizo es un simple cuadrado mostrando el uso del panel de click y específicamente el click Drag and Drop.
Disfrútenlo!!
English:
Well, Here's the video showing how to use mouseTrap for drawing in applications like OpenOffice Draw.The design is a simple square showing the use of the buttons click panel and specifically the Drag and Drop click method.
Enjoy!!
Italiano:
Ecco qua un piccolo video di come funziona mouseTrap con applicazioni stile OpenOffice Draw. Si fa vedere l'uso del panello di click e specificamente l'uso del click Drag and Drop.
Spero vi piaccia!!
Video: http://www.youtube.com/watch?v=_rjyEouT-Hw
mouseTrap First mouth click
Submitted by flaper87 on Mon, 06/09/2008 - 05:17.
Well Here's a short video showing the first mouseTrap mouth Click.
I hope you like it.
Acá les dejo un pequeño vídeo con el primer click ejecutado con mouseTrap.
Espero que les guste.
URL: http://www.youtube.com/watch?v=jfNRS1oSb34
Comenzando con OpenCV
Submitted by flaper87 on Fri, 05/30/2008 - 04:18.
OpenCv (Open Source Computer Vision Library) es una librería de funciones principalmente orientadas al procesamiento de imágenes en tiempo real.
En este post colocare un ejemplo de como utilizar OpenCV para realizar una simple captura y mostrarla en un frame.
import sys
from opencv import cv,highgui
if __name__ == '__main__':
#Iniciamos la captura del device 0. Ej: /dev/video
capture = highgui.cvCreateCameraCapture (0)
# Revisamos que este Capturando.
if not capture:
print "Error Abriendo el device /dev/video0"
sys.exit (1)
# Creamos las ventanas necesarias.
highgui.cvNamedWindow ("Ejemplo OpenCV", highgui.CV_WINDOW_AUTOSIZE)
while 1:
# Loop Infinito.
# 1. Capturamos la imagen actual
frame = highgui.cvQueryFrame (capture)
# 1.1 Si no hay captura salimos.
if frame is None:
break
# 2. Mostramos la imagen
highgui.cvShowImage ("Ejemplo OpenCV", frame)
# 3. Manejar Eventos. Esta función debe ser llamada periódicamente,
# por eso esta dentro del loop
c = highgui.cvWaitKey (10)
#Revisamos si alguna tecla de nuestro interés fue presionada
if c == '\x1b':
# Esc fue presionado, Salimos.
break
cvDestroyWindow( "Ejemplo OpenCV" );Como pueden apreciar los pasos son muy simples:
- Nos conectamos al device
- Comenzamos a capturar
- Mostramos la captura
- Capturamos teclas.
- Procesamos las capturas
Espero que les sirva como una pequeña introducción a opencv + python, seguire publicando otras formulas secretas :P para explicar pocas de las infinidades de cosas que se pueden hacer con esta combinacion :D
Feliz Día a todos!!
