Hobbies

Connecting your TRÅDFRI light bulbs and remote controller to Philips Hue Gateway

What you will need: Tradfri light bulb white spectrum / Tradfri light bulb RGB / Tradfri dimmable light bulb Philips hue gateway Hue android or IOS app and lampfinder on your computer (you will need Java Runtime Environment) Long enough power extension and LAN cable or small lamp with E27 socket Wall switch (optional) Tradfri remote control Connecting light bulbs to gateway 1. Turn off all other zigbee devices You will need to turn off all other lamps from power. Take all the remote controls and bring them as far as possible. Turn off all other zigbee devices. 2. Mount your light…
Read more

FacePreview on Android with native libraries

Android has its own face recognition and we don’t need OpenCV to find faces on pictures or while shooting with camera. In this example I used FaceDetector to find faces on Bitmap image which I had to create from Raw data. The biggest problem of this solution is the conversion. Since FaceDetector supports RGB_565 and many android cameras support only YUV. I tested this on my Huawei Honor 2 with NV21 bitmap image type. If your device supports other image format feel free to edit code and/or post your conversion function in comments or ask for help if needed. Second…
Read more

How to index your Book Library

Hello guys! I have pretty big book library and people tend to lend books and never return them. So I asked myself: What would be the best way to track my books ? Then it hit me. Smartphones can read barcodes and Google can recognize books by its barcode. I downloaded app for android called BookShelf. I created new shelf for every shelf I have and scanned all those barcodes. Then I created app in Java which reads xmls exported by BookShelf and uses Google API to recognize books. The I used my own API to manage database. [java collapse=”true”]package…
Read more