Showing Video Image on Tkinter Window with OpenCV

This is an example of minimal tkinter application that shows video image on the window using OpenCV.   Prerequisites Python 3   Required Packages Install packages if not already. 1. Python Imaging Library (Pillow) pip install Pillow 2. OpenCV pip install opencv-python   Code  import tkinter as tk from PIL import Image, ImageTk import cv2… Continue reading “Showing Video Image on Tkinter Window with OpenCV”

Showing Album Cover Art Images for Bluetooth Audio

In the previous post, I was able to show song title, artist name, and album name of Bluetooth audio. Then, I thought it would be nice if the album cover art images could be displayed too. Specification wise, transferring cover art over Bluetooth is supported since AVRCP 1.6 [1], but unfortunately it’s not widely implemented… Continue reading “Showing Album Cover Art Images for Bluetooth Audio”

Enabling Python Autocomplete in VIM on Raspberry Pi

This post shows steps to enable Python autocomplete in vim editor [1] on Raspberry Pi. In this post, jedi-vim [2] and Vundle.vim [3] will be used for autocomplete plugin and plugin manager respectively. Also, even Raspbian Stretch has vim preinstalled, it’s a minimal version which is called “vim.tiny” and to use the plugin, we need… Continue reading “Enabling Python Autocomplete in VIM on Raspberry Pi”

Setting Up Bluetooth Serial Port Profile on Raspberry Pi using D-Bus API

This post shows steps to set up Bluetooth Serial Port Profile[1] (or SPP) on Raspberry Pi. The goal is to establish an SPP connection between Raspberry Pi 3 and Android phone, then send and receive texts using serial terminal applications on both ends. SPP is not available by default. There are two options to enable… Continue reading “Setting Up Bluetooth Serial Port Profile on Raspberry Pi using D-Bus API”

Controlling LEDs on Raspberry Pi using Voice with Amazon Echo

The goal of this post is to create an Alexa skill [1] that controls three LEDs (red, yellow, and green) connected to Raspberry Pi’s GPIO pins. The skill will enable to turn ON/OFF each LED by specifying the color of light and the ON/OFF status via voice command.   Prerequisites (parentheses indicate my environment) Raspberry Pi… Continue reading “Controlling LEDs on Raspberry Pi using Voice with Amazon Echo”