Hobbies

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.

One useful algorithm

There are many good algorithms solving many problems. But there is one algorithm which solves almost everything. I used this algorithm way before I knew that there are any algorithms. This algorithm is called Binary Search and many of you may know it. But did you know that with combination of regression it can solve almost any integer equation or problem ? Sometimes you don’t need to understand things to know the answers. You don’t need to solve equation if you can approximate solution and guess it on third try. Yes of course you need to at least think of the function…
Read more

Music I listen to

Hello guys, I don’t like pushing people into something but the thing I am about to show you is pure awesomeness and I highly recommend to listen to at least one of these songs. I honestly have to say I like songs from all genres of music. But the thing I enjoy the most is Epic music. Yeah this genre is relatively new. It combines many genres and uses various tempo. But the core is very rich experience. You can feel the shivers and chills all over your body while listening to these. The other thing about it is that…
Read more