Configuration I2C sur raspbian

17 septembre 2016 Kartec 0

sudo apt–get install python–smbus sudo apt–get install i2c–tools sudo raspi-config select advanced options -> I2C -> enable arm ics, yes -> sudo reboot sudo nano […]

Interface graphique python Tkinter

29 mars 2016 Kartec 0

http://apprendre-python.com/page-tkinter-interface-graphique-python-tutoriel     from Tkinter import * class Application(Frame): def say_hi(self): print « hi there, everyone! » def createWidgets(self): self.QUIT = Button(self) self.QUIT[« text »] = « QUIT » self.QUIT[« fg »] = […]

Autorun Python script at desktop start

26 mars 2016 Kartec 0

BASH OK + AutoStart: sudo nano ~/.config/lxsession/LXDE-pi/autostart @lxpanel –profile LXDE-pi @pcmanfm –desktop –profile LXDE-pi #@xscreensaver -no-splash @xset s off @xset -dpms @xset s noblank @lxterminal […]

Text To Speech TTS on Raspberry Pi with Python

23 mars 2016 Kartec 0

Play a sound : Download a WAV sound ( http://kartec.fr/free/music/pcm-wav/Star-Wars-R2D2.wav ) : wget http://kartec.fr/free/music/pcm-wav/Star-Wars-R2D2.wav play a sound : aplay Star-Wars-R2D2.wav Text To Speech : Install « espeak » […]

OpenCV Face Recognition

14 mars 2016 Kartec 0

Haar-cascade Detection in OpenCV # import the necessary packages #import numpy as np from picamera.array import PiRGBArray from picamera import PiCamera import time import cv2 […]