Friday, January 29, 2016

Air Writing with Neural Gas Network Approach

Related Work

Following reveals the knowledge obtained from the research sphere related to our Air Writing approach with Leap Motion Device. This article is focusing on Neural Gas Methods for the recognition process.


Kinect Sensor with Neural Gas Network Approach 

MRA Heidari et al, “Writing in the Air Using Kinect and Growing Neural Gas Network”, Jurnal Teknologi Universiti Teknologi Malaysia, vol. 72, no. 5, 2014


Summery of the Approach

The proposed character recognition method has three main steps: preprocessing, training and recognition. Noise tolerance and removal of more outliers was a important factor for the success. The character recognition was based on Growing Neural Gas and multi-layer perceptron networks which are types of Artificial Neural Networks.

Detail : Normalization


Noises are categorized into three levels as follows.
  1. Mistaken strokes. (With purposefully or errors of tracking)
  2. Extra and unwanted movements. (unintentional jitters)
  3. Movements before the start point and after the end point are considered as useless data (Due to the continues streaming)
Eliminate such kind of useless  data from the obtained path has two steps.
  1. Constructing the region of interest; 
  2. Removing noisy data.

Constructing Region of Interest

A boundary is being determined so that the user can draw the character within this boundary. This boundary is a Tetrahedral with predefined measures.

Tetrahedral

Noise Reduction

For reducing the noisy data using this approach, a normalization technique with first derivation degree is used. First the first derivation of considered curve is being calculated which gives back the slope between the sampling points directly. The result is the amount of change in the direction of the curve in each moment. These results can help the system to delete the sampling points which have high amount of change in their location.

To omit the environment noises, the first derivation of the extracted path is being calculated to achieve the slope between sampling points. By use of the first deviation results, system computes the angle of changes.

In this technique, two thresholds are chosen then the calculated angles are being normalized and sit through 0 to 360. After that, all the sampling points which are located in defined thresholds will be eliminated.

By this normalization process, all the small environmental noises and breaks are eliminated.

In this technique, an interval will be defined by the user. If the angle between two lines be in the defined criteria, the sampling point, which connects these two lines, will be eliminated and the previous point will be connected to the current point.

In this normalization technique, the value of first deviation of extracted path which contains so many sampling points is calculated. So after calculating the first derivation, the slope between each two lines is available. In continue, the slopes will be investigated and the local angel for each sample point will be calculated.

In this technique, each achieved angel comparison with the previous angel. If the difference between them is lower than threshold, the calculated point will be eliminated and the previous point will connect to the next point.

After eliminating the noisy sample points, two steps need to be performed.
  1. Extracting the key-features
  2. Choosing limited numbers of key-features
Specifying the key-features helps the character recognition algorithm to detect the considered character and ignore processing the useless data. To find these key-features, a down-sampling algorithm based on growing neural gas technique is used.

The achieved sampling points from the noise reduction part are transferred as an input to down-sampling algorithm. Then the growing neural gas algorithm starts to add the key-features to the points and change their current position to the right position.

According to the congestion of the sampling points in different locations, the growing neural gas algorithm defines and locates the key-features.

Growing Neural Gas (GNG)

Growing neural gas is an unsupervised learning method. The growing neural gas also is able to recognize the number of neurons needed to describe an input dataset. In this algorithm, at first there are only two neurons in the system, then the input data are being feed to growing neural gas.

According to the location of input data, the location of neurons will be changed to reduce the errors of the system. After having specified number of input signals, a neuron will be added to system in order to reducing the average local errors of the system.


Character Recognition

After normalization part and gathering the key-features, now all the data to execute the character recognition part are available. In character recognition part, a multi-layer perceptron (MLP) neural network is used.

An MLP consist of at least 3 layers, an input layer, one or more hidden layer(s) and an output layer

The input layer is not considered a “true” layer because no computation is performed by it. It receives problem-specific inputs from the outside world.

An MLP contains one or more hidden layers, which receive inputs from preceding layers (input or hidden layers) and their outputs connect to the next layers (output or hidden layers). Each neuron in a hidden layer employs a nonlinear activation function that is differentiable.

Initially in the setup part, by the use of the defined dataset, the neural network is being trained to recognize the characters. There neural network receives the key-features as an input and defines the percentage of dependency of this set to each character. The character which has the highest dependency among other characters is chosen as the best candidate.

Warping Methods for Air Writing Character Recognition

Related Work

Following reveals the knowledge obtained from the research sphere related to our Air Writing approach with Leap Motion Device. This article is focusing on Warping Methods for the recognition process.

  • Kinect Sensor with DTW and SVM Approach

Chengzhang Qu et al, “Online Kinect Handwritten Digit Recognition Based on Dynamic Time Warping and Support Vector Machine”, Journal of Information & Computational Science, pp 413 - 422, January 2015

Summery of the Approach

First the movement of fingertip is tracked by the proposed tracking algorithm.

Then normalization and smoothing procedures were performed on the 3D trajectory of tracked points, which ensured the continuation of the trajectory and eliminated the jagged and noisy data.

After smoothing, the feature vectors in the form of time series were extracted from the smoothed data as online features, and these features were used to calculate the distance vector by an improved Dynamic Time Warping (DTW) algorithm.

The distance vector could be regarded as an input sample to recognize, and the samples represented by DTW distance vectors were finally trained and tested with binary Support Vector Machine (SVM) classifiers.

It should be noticed that the whole recognition for this natural interaction was a real-time process, so that it had potential capabilities in future application.

Detailed : Pre-processing

(Movement of fingertip tracking using a tracking algorithm is not important to us because it done by the Leap Motion Device itself)

After tracking procedure, they performed a normalization operation to transform all the raw 3D trajectories into a regular size. 

- First, they move the 3D trajectory to the original point(0, 0, 0). [Translate to Center]
- Second, they normalize each position such that it follows a normal Gaussian distribution N(0; 1) over all the 3D points in all recorded data. The normalized results (the blue curve) show raw 3D point which is highly jagged and noisy. 
- The trajectories is still highly jagged and noisy after normalization operation. To address this issue, they employed a standard Kalman filter algorithm to calculate a smoothed trajectory. The red
curve in shows the smoothing results.

Detailed : Feature Extraction

They extract 6 types of features from each point (each time frame) of 3D handwritten trajectory in x, y, z axis, respectively.. Thus, the feature of a trajectory is a temporal series data recording the feature in time order, which is considered to be better presentation for handwritten in space.

Following are the list of extracted features.
  1. 3D positions and Derivatives
  2. Velocities (the mean value of two adjoining distance between two trajectory points)
  3. Acceleration
  4. Slop Angle
  5. Path Angle (degree between two adjoining connections in 3D trajectory, which means the degree in 3D space.)
  6. Log radius of curvature
They also calculate 2D features for a comparison. The 2D features are projection of 3D trajectory in X-Y plane.
    Detailed : Recognition

    They proposed a joint recognition framework based on DTW and SVM where either same or different length of input vectors can be recognized as well.

    DTW - Dynamic Time Warping

    It is a well-known technique in time series data processing. DTW finds an optimal alignment
    between two given (time-dependent) sequences under following restrictions.
    1. Boundary Condition
    2. Monotonicity Condition
    3. Step size Condition
    Intuitively, the sequences are warped in a nonlinear fashion to match each other. It has the advantage on measuring various data, despite of their time contraction and stretch problems.

    Basically, the calculation of DTW distance is to find a warping path Q between vector M and N, where Warping path Q satisfies the restrictions mentioned above.

    In 3D handwritten interaction, person writing in the air would have its own order or preference. This order would not affect for Monotonicity condition, but for other two. So they have did a slight modification for those DTW restrictions.

    Detailed : Training

    They replaced the data features with the improved DTW distance vectors, build binary SVM classifier for each class upon them for recognition problem. This got a high accuracy on a very small training size.

    Wednesday, January 27, 2016

    Children's Songs on TV Yesterday Part 2 - ඒ කාලේ රූප පෙට්ටියේ ළමා සිංදු දෙවන කොටස

    This is the second part of the article series Children's Songs on TV Yesterday. Here are some more of the nostalgic memories, the golden years of the TV, 80s and 90s.


    Muhuda Lassanai By Lalith Kumara Dawundasekara
    මුහුද ලස්සනයි - ලලිත් කුමාර දවුන්දසේකර

    Unable to find the original video. But the original voice is here.




    Du Puthune Rata Apeya By Shalitha Abeywickrama
    දූ පුතුනේ රට අපේය - ශාලිත අබේවික්‍රම

    Sulange Lelenaa By Shalitha Abeywickrama
    සුළගේ ලෙළෙනා - ශාලිත අබේවික්‍රම


    Unable to find both the original songs. Get to know 'Du Puthune' was his 1st song contributed to the industry. It was the peak time of his singing life and I perfectly remember the mustache he had at that time as shown in the following video 'pipuna malaka' and now the mustache was removed. This video is somewhere in the middle of the original and the latest.



    Have no idea of the following video. But it's so lovely to see the kids in those days in TV shows who are matured and trained enough to perform in a audience without any angara dhagara (අඟර දඟර) and overloaded makeups.

    "Sinhala Lama gee written by Anuruddha Harischandra Weligamage to Childrens song Programmes telecasted by Sri Lanka Rupavahini Corporation during 1990-95"


    Udasanama Podi Api
    උදෑසනම පොඩි අපි


    Unable to find the original video telecasted in the TV. Original aired on radio was sung  by Lalith Sriwardana.


    Punchi Welenda By Ruvan Dalpadadu
    පුංචි වෙළෙන්දා - රුවන් දල්පදාදු

    පද රචනය - පැට්‍රික් දල්පදාදු,  ශ්‍රී කාන්ති හෙට්ටිආරච්චි
    සංගීතය - ජයන්ත හෙට්ටිඅර්ච්චි

    I didn't watch it when it was 1st aired in 80s because I was too small. I get into know about punchi velenda when Namayayi Paha Programme done by Hema Nalin Karunarathna refreshed the memory of this child singer Ruvan Dalpadadu when he was a youth,  telling he known number of languages. And now he's a well known medical doctor.


    Rambakida By Chandani Hettiarachchi & Peter Roziro
    රඹකිඳ - චාන්දනී හෙට්‌ටිආරච්චි සහ පීටර් රොසයිරෝ

    සංගීතය - සරත් ද අල්විස්‌

    This was a song where the lyrics of two popular kiddie folk songs were reversed. ටිකිරි ලියා & අම්බලමේ පිනා.





    Oba Sama Mithuran By Ruvan Dalpadadu
    ඔබ සැම මිතුරන් - රුවන් දල්පදාදු

    පද රචනය - පැට්‍රික් දල්පදාදු




    Ranpota  By Nimal Jayamanne
    රන්පොට - නිමල් ජයමාන්න

    This song includes few traditional folk songs with a new rhythm. I remember my brother got a cassette recorded of this song and very much cared and little me very much want to listen to it. Someday silly little me accidentally pressed the small red record button in the middle of the play button, when playing the song.. and gosh we lost the song thereafter. Remember those days Internet was never existed to download a song whenever you want.





    Lowe Sama Ekama Deye
    ලොවේ සැමා එකම දැයේ

    A peace song lead by Gypsies. 
    දැනට දිවයිනේ වැඩිම ගායක ගායිකා පිරිසක් දායකවූ එකම ගීතය වේ.

    පද - ආනන්ද පද්මසිරි සහ හේමසිරි හල්පිට
     





    Ru Rase Adina Lese by Susil Premarathna & Latha Walpola
    රූ රැසේ අඳිනා ලෙසේ - සුසිල් ප්‍රේමරත්න සහ ලතා වල්පොළ

    It was the only song which presented two creative talents at the same time in SL. I remember those days I was very confused, whether I should concentrate on the art or on the song. This song was very helpful to remember the peoms of Guththila Kavya for every student I guess. And it may be the only poem the people could remember from Guthtila Kavya even in nowadays.






    Friday, January 22, 2016

    ඒ කාලේ රූප පෙට්ටියේ ළමා සිංදු - Children's Songs on TV Yesterday

    This was the time before 'Hapan Padura' (හපන් පැදුර) generation, but after 'Lama Pitiya' (ළමා පිටිය) generation. Yup in the era of end of 80s and beginning of 90s. Thanks for the people who have recorded them as well as uploaded them on to the YouTube. Let's refresh the nostalgic memories.

    Chooti Kurullani, Chooti Batiththani By Priyanka Weerasekara
    චූටි කුරුල්ලනි චූටි බටිත්තනි - ප්‍රියංකා වීරසේකර




    Midule Weli Maligawa By Priyanka Weerasekara (Original Peshala Medis)
    මිදුලේ වැලි මාලිගාවෙ - ප්‍රියංකා වීරසේකර (මුල් ගැයුම - පේෂලා මෙන්ඩිස්)

    Lyrics : Kumaradasa Saputhanthri
    Music : Rohana Weerasinhe

    Katapolayakin Gal Kata Vidala - කැට පොලයකින් ගල් කැට විදලා

    I think 'Katapolayakin' was done by Muthuhara (මුතුහර) people on Rupavahini, SLRC. But unable to find any audio. It was heavily telecasted on those days.
    කැට පොලයකින් ගල් කැට විදලා
    ලේන් පැටිත්තෙක් බිම ඇද වැටිලා
    ඇයි ඔබ එහෙම කරන්නේ ....
    ලස්සන සුරතල් සතුන් මරන්නේ..

    Monawada Muththe Mokada Karanne - Rohana Weerasinghe & Anusha Nanayakkara
    මොනවද මුත්තේ මොකද කරන්නේ

    Lyrics : Ven. S. Mahinda (Tibetan)
    Music : Rohana Weerasinghe

    මේ ගීතය රචනා කරන ලද්දේ ටිබැට් ජාතික මහින්ද හිමියෝය. උන්වහන්සේ රචනා කල "ළමා කව් කළඹ" නැමති කවි සංග්‍රහයේ එන "යුතුකම"කවි පන්තියයි මේ. ගී පන්තිය නම් කොට ඇත්තේ අනාගත දායාදය යන නමිනි.

    The effect they used in the video is something new. I guess they tried to make it as a cartoon.



    Ha Ha Hari Haawa - Deepika Priyadarshani Peries
    හා හා හරි හාවා - දීපිකා ප්‍රියදර්ශනී පීරිස්


    It was the theme song of the dubbed cartoon which was popular among the 80s & 90s kids.



    Me Rata Mage Rata By Malani Bulathsinhala
    මේ රට මගෙ රට - මාලිනී බුලත්සිංහල

    I was unable to find the original video, but it was heavily telecasted on Rupavahini, SLRC in those days 90s.

    Lyrics : Ven. S. Mahinda (Tibetan)

    මේ රට මගෙ රට
    මා ඉපදුන රට
    හැදෙන වැඩෙන රට
    මගේම මව් රට

    සරු පස පොළොවෙන්
    වැහි බිඳු අහසෙන්
    මිණි කැට මුතු ඇට
    මගේ සිරි ලක ඇත

    මගේ සිරිලක ගැන
    ලොවට කියමි මම
    සුර පුරයක් වෙන
    ලොවේ මෙවැනි නැත

    එඩිතර කම ඇති
    කම්මැලි කම නැති
    ළමයින් සිටින රට
    මගේ මේ සිරිලක

    Unna Eka Gangawaka By Uresha Ravihari
    උන්නා එක ගංගාවක - උරේෂා රවිහාරි

    Movie: Malsara Dhoni



    Thith Thith Thith Muwanta By Latha Walpola & Milton Mallawarachchi
    තිත් තිත් තිත් තිත් මුවන්ට - ලතා වල්පොල සහ මිල්ටන් මල්ලවආරච්චි

    Unable to find the original video.

    තිත් තිත් තිත් තිත් මුවන්ට
    තිත් තිබුනේ නැතිලු පුතේ ඉස්සර කාලේ
    ඉස්සර කාලේ.....

    පුතා වගේ හරි හුරතල් මුව පැටියෙක් දවසක් දා
    දාන්ගලෙන් අම්මගෙන් කිරි බොනවාලූ.....

    අම්මාගේ කිරි බිඳු බිඳු ඉහිරී ඉහිරී ඇඟ පුරාම
    ඌ ලස්සන මුව පොවුවෙක් උනා පුතේ......
    පුතේ... තිත් මුව පොව්වෙක්...!
    තිත් මුව පොව්වෙක් අම්මා...!!

    එදා ඉඳන් සේරම මුව පැටව් එක වෙලා
    අම්මාවරු ලඟට ගිහින්
    තුරුල් වෙලා තුරුල් වෙලා
    කිරි පාටින් තිත් තියාන ලස්සන වෙනවා....
    පුතා වගේ දඟ නොකරන දරුවන් වෙනවා.....
    මං වගේ නේද අම්මා...!!

    තිත් තිත් තිත් තිත් මුවන්ට......
    තිත් තිබුනේ නැතිලු පුතේ ඉස්සර කාලේ
    ඉස්සර කාලේ.....
    පුතා වගේ හරි හුරතල් මුව පැටියෙක් දවසක් දා
    දාන්ගලෙන් අම්මගෙන් කිරි බොනවාලූ.....

    මද්දුම බණ්ඩාර කියා පුතෙක් එදා උන්නා
    පුංචි උනත් පුංචි කමට හරිම වීරයා
    අම්මා දුන් කරුණාවෙන්
    පියා දුන්නු වීර ගුණෙන්
    මද්දුම බණ්ඩාර පුත්තු තව උපදිනවා....
    රට පුරාම සුවඳ හමන
    රටක් වටිනා පුතෙක් වෙන්න
    පුතා දන්නවා.
    පුතා දන්නවා.


    Pahana Thiya Budhu Sadhuta By  Deepika Priyadarshani & Lelum Rathnayake.
    පහන තියා බුදු සාදුට - දීපිකා ප්‍රියදර්ශනී පීරිස් සහ ලෙලුම් රත්නායක

    From Amba Yahaluwo 'අඹ යහළුවෝ' Teledrama
    Lyrics : Bandula Nanayakkarawasam
    Music : Ananda Gamage



    Mal Pipei By Praveena Anurangi & Nelun Rathnayake
    මල් පිපෙයි - ප්‍රවීනා අනුරංගී සහ ලෙලුම් රත්නායක


    From Amba Yahaluwo 'අඹ යහළුවෝ' Teledrama
    Music: Suresh Maliyadde
    Lyrics: Airanganee Madduma Bandara





    Katu Akule By Edward Jayakody
    කටු අකුලේ - එඩ්වඩ් ජයකොඩි

    Theme song from Amba Yahaluwo 'අඹ යහළුවෝ' Teledrama
    Lyrics : Bandula Nanayakkarawasam
    Music : Ananda Gamage




    Muhuda Mage Godabimai By Gamunu Wijesooriya
    මුහුද මගේ ගොඩබිමයි - ගැමුණු විජේසුරිය.


    Lyrics : ප්‍රේමකීර්ති ද අල්විස්. 
    Music : සෝමසිරි ඉලේසිංහ සෝමපාල රත්නායක

    It was the theme song of famous dubbed cartoon Dosthara Honda Hitha (දොස්තර හොද හිත)  by Titus Thotawatte



    Ayanna Kiyanna By Nanda Malini

    Unable to find the original video, but it was as the same plot as the following song 'tharudha nidana maha raa' if the memory is correct. But I remember there were some kids around the piano for Ayanna Kiyanna.




    Nil Ahas Thale - Various Artists
    නිල් අහස් තලේ


    The first version of this song came with 'Mahagedara' film and it was sung by Morris Wijesinghe, Neela Wickramasinghe, Upali Ranjith and Chitra Somapala. Music directed by Sarath Fernando / Piano accompaniment by Chitra Malalasekera / Actors - Sriyani Amarasena, Vijaya Kumaratunga, Tissa Abeysekera. But for our generation Keerthi Pasquale version was peaked.



    There was another song done by ITN, I guess, with the lyrics "හොරෙන් හොරෙන් මල් රහස් කියනවා බුදු හාමුදුරුවෝ වැඩලාදෝ.......................... බුදුන් වඩින්නට යනවාදෝ". But unable to find any mentioning of it anywhere.


    Sinhala Teledramas Those Days - ඒ කාලේ බැලූ ටෙලි

    I was able to find in the Internet few of the sinhala teledramas telecasted in television on 80s and 90s, The days, which are the days!!!

    Some are fully now in the YouTube if you did a little bit of search. Anyway as I was a kid those days, I have a little bit of memory about them, here and there. So thanks to the violators, I refreshed it. Hope they  have the necessary permission.


    So far I watched Asalwasiyo, Ella Langa Walawwa, few parts of Wadiya and now watching Gamperaliya. So just mentioning what I got about them.

    අසල්වැසියෝ 



    "අසල්වැසියෝ බන්දුල විතානගේ මහතා විසින් අධ්‍යක්ෂණය කරන ලද ප්‍රහසන ටෙලිනාට්‍යයකි. 1989 වසරේ දී විකාශය වූ මෙම ටෙලිනාට්‍යය සඳහා එලන් සිල්වෙස්ටර්, හේමසිරි ලියනගේ, සුමින්ද සිරිසේන, ශ්‍රියන්ත මෙන්ඩිස්, ප්‍රියා රණසිංහ, සමන්තා ඈපාසිංහ, තමාලි පීරිස්, යශෝධා විමලධර්ම, ගුණරත්න රංහොටි ඇතුළු රංගන ශිල්පීන් ශිල්පිනියන් රැසක් රංගනයෙන් දායක වූහ. සංගීතය ආචාර්ය ප්‍රේමසිරි කේමදාසයන්ගෙනි."

    If you remember the slang "I know the law putha". Yep, this is that. Story going around a rented house. Elan Sylvester was the landlord having 3 daughters. Eldest daughter having some mental trouble, middle one keen on acting and the youngest, Thamali Peries who is still studying. Hemasiri Liyanage the retired lawyer or who say so, coming to live in that rented house with his two sons.

    I did not saw the original telecast as it was in 89, but may be in its 2nd or 3rd transmission. I was so keen to listen to the voice of Thamali Peries once again, because she was did a lot of dubbing in children's programs such like Hans Christian Anderson's stories which attracted kids those days. Her voice has a real unique smooth flow I still can remember. The other thing of Asalwasiyo is, you can refresh some of the social trends in those days. Such like tuition classes, cost of living, bombs, music, news papers, astrology, fashion...etc.


    ඇල්ල ළග වලව්ව


    "ශ්‍රී ලාංකීය ටෙලි නාට්‍ය ඉතිහාසයේ බිහි වූ අති විශිෂ්ඨ නිර්මාණයක් වන 'ඇල්ල ළග වලව්ව' ටෙලි වෘතාන්තය, ආචාර්ය ධර්මසේන පතිරාජයන්ගේ නිර්මාණයකි. තිර පිටපත මහාචාර්ය නිමල් සේනානායකයන්ගෙනි. සංගීතය ආචාර්ය ප්‍රේමසිරි කේමදාසයන්ගෙනි.

    සියවස් ගණනාවක් පැරණි පරපුරක උරුමය රැගත් ඇල්ල ළඟ වලව්වේ අවසාන උරුමක්කරුගේ අවසනාවන්ත ඉරණම ගැන කියවෙන මේ වෘතාන්තය, ත්‍රාසය, භීතිය, කුතුහලය සහ අනුකම්පාව කැටි කරගත් සම්පිණ්ඩනයකි.

    ජැක්සන් ඇන්තනී, සිරිල් වික්‍රමගේ, අයිරාංගනී සේරසිංහ, ලයනල් වික්‍රම, අචලා අලස්, රවීන්ද්‍ර රන්දෙණිය, සෝමලතා සුබසිංහ, දයා තෙන්නකෝන්, මංගලා කරුණාරත්න රංගනයෙන් දායක වන මේ ටෙලි නාට්‍යය 1988 වසරේ දී ජාතික රූපවාහිනියෙන් විකාශය විය."

    It may be poor taste compared into current standards of detective stories, but in those days such like 88, yes it's a something. Jackson Anthony was the only child of a high class traditional family and only remaining. He suddenly disappeared into abroad without saying anything to his relatives and his servant Cyril Wickramage taking care of his high class house confirming that he is abroad. His relative family containing Achala Alles come to his house to stay for few days with doubts that he was murdered. And all the focus is going around the servant because his secretive behavior and rumors spreading through the village. Ravindra Randeniya a relative of the family and someone who keen on paranormal subjects come to solve where is he. And at the end, it finally reveals he got leprosy (ලාදුරු) and was hiding all of those days and the servant took care of him all by himself like a person who given all of his life to the care of his master.

    I got the feeling of poor flow may be it's because I watched all the 14 episodes in such a short time where in those days it took at least 3 months. So not like these days which foreign drama episodes got 45 minutes, these contain only 15 to 20 minutes. So I got the feeling it didn't wait to reveal the truth until peak of the story. The trapping of the story around the servant was not heavily done, where it could earn more viewer confusion at the end when revealing the truth. But I'm sure it did earn in those days. And the last episode could consider as an extra episode, which shows only the cultural values that didn't goes with the curiosity and horror flow of the other episodes.



    වාඩිය

    There is nothing much to say about the story because it's a comedy. I think it was the time where MTV telecasted Sinhala dramas in 90s and Teleview got the circle and rectangle logo. There are lot of actors and actresses in here even Gypsies Sunil Perera. A story directed by Herbet Ranjith Peries if you can remember Appa Kade Kathawa.





    ගම්පෙරළිය



    "හෙළයේ මහා ගත්කරු මාර්ටින් වික්‍රමසිංහ ශූරීන්ගේ තුන් ඈඳුතු නවකථා ත්‍රිත්වයෙන් පළමුවැන්න වන ගම්පෙරළිය කෘතිය ඇසුරෙන් බර්ට්‍රම් නිහාල් විසින් අධ්‍යක්ෂණය කරන ලද ගම්පෙරළිය ටෙලිනාට්‍යය, 20 වන සියවස ආරම්භයේ මෙරට සමාජයේ ප්‍රභූ පැලැන්තියේ කඩාවැටීමත්, මධ්‍යම පාන්තිකයන්ගේ නැගිටීමත් අපූරුවට විදහා දක්වන්නකි.

    ජෝ අබේවික්‍රම, අයිරාංගනී සේරසිංහ, වසන්ත කොටුවැල්ල, මොරීන් චාරුනී, චාන්දනී සෙනෙවිරත්න, අමිත්ත වීරසිංහ, නවනන්දන විජේසිංහ, සෝමලතා සුබසිංහ, අනුලා බුලත්සිංහල, දයා අල්විස්, ජයලත් මනෝරත්න, ජේ. එච්. ජයවර්ධන, ජැක්සන් ඇන්තනී, ගාමිණී සමරකෝන් ඇතුළු රංගන ශිල්පීන් විශාල පිරිසක් මේ සඳහා දායක වී ඇත."

    Not going to talk about much about this, because it was repeatedly telecasted in Rupavahini national television, for each generation. A huge project covering number of locations and traditions and a big asset Rupavahini have. Just marking Wasantha Kotuwalla did a great job in reliving Piyal as well as Matara Haminey and Kathrina and everyone in the cast. I guess our generation was more touched with the Bertram Nihal's Gamperaliya rather than Lester Jame's Gamperaliya. It had a unique theme music that can get the attraction as well as a nice color combination that goes with the olden tradition.



    Monday, January 18, 2016

    Sri Lankan Legal Context Regarding Cyber Technology

    Following are few speech resources that could be found out in the web sphere regarding Sri Lankan legal context for Cyber Technology related issues.

    These research presentation speeches (of Dr Prathiba Mahanamahewa) are from Kothalawala Defence University (KDU) Research Symposiums from year 2012 to 2015.

    On-line Rights for On-line workers (2012)



    Cyber Army (2013)


    Q&A Session - 






    On-line Privacy (2014)

    Q&A Session - 



    Re-Examination of Existing Laws Relating to Posting Offensive Content on Facebook or Twitter (2015) 


    Q&A Session - 


             

    Monday, January 11, 2016

    Air Writing with Vision Cameras

    Rather than using Kinect or Leap Motion which are specifically for gesture, air writing also can be developed with cameras that could feed data to a computer seamlessly. A ordinary web cam is a typical example but needed hard effort. But it's seems like web cams are going to be (or already) replaced by 3D cameras such like Intel RealSense and Creative Senz3D. They can work as ordinary web cams while supporting lot of other requirements such like facial recognition and gesture.

    Following are few resources that can be found on web sphere which uses other kind of consumer vision sensor cameras apart from Leap Motion and Kinect.

    Writing-in-the-air System Based on Intel RealSense Camera
    By Kunpeng Li



    Microsoft Research TechFest: Write in The Air
    By Lei Ma et al





    A novel video based finger writing virtual character recognition system
    http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.486.2330&rep=rep1&type=pdf.
    By Lianwen Jin et al


    A HilbertWarping Method for Camera-based Finger-writing Recognition
    http://www.toriwaki.nuie.nagoya-u.ac.jp/publications/318-pdf.pdf.
    By Hiroyuki Ishida et al



    Video Based Handwritten Characters Recognition
    http://www.intechopen.com/books/characterrecognition/video-based-handwritten-characters-recognition
    By Chen-Chiung Hsieh



    Touchless Writer: Recognizing various Hand Gestures using Artificial Neural Network (ANN) through Webcam And Objects.
    http://www.ijafrc.org/Volume2/ncrtit2015/114.pdf.
    By Aditya G. Joshi et. al.
    This discusses much about using Kinect device on air writing.



    Ligature Modeling for Recognition of Characters Written in 3D Space
    https://hal.archives-ouvertes.fr/inria-00105116/document.
    By Dae Hwan Kim et al



    Gesture based Character Recognition
    http://web.cse.ohio-state.edu/~moharrer/PDFs/Moharreri_Tayal.pdf.
    By Kayhan Moharreri et al



    Novel Spatio-temporal Features for Fingertip Writing Recognition in Egocentric Viewpoint http://www.iis.ee.ic.ac.uk/icvl/doc/mva15.pdf.
    By Muhammad Zaid Hameed et al
    This uses Creative Senz3D Camera



    Hand Motion Tracking for Alphabet Recognition using ANN
    http://research.ijcaonline.org/volume83/number4/pxc3892580.pdf.
    By Shivganga Udhan et al



    Vision-Based Handwriting Recognition for Unrestricted Text Input in Mid-Air
    http://akme-a2.iosb.fraunhofer.de/EatThisGoogleScholar/d/2012_Vision-based%20handwriting%20recognition%20for%20unrestricted%20text%20input%20in%20mid-air.pdf.
    By Alexander Schick et al



    Touchless Writer: Object Tracking & Neural Network Recognition
    http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.598.1996&rep=rep1&type=pdf.
    Yang Wu et al

    Kinect for Air Writing


    Before the Leap Motion, Microsoft's Kinect was so used for air-writing experiments even though it focused on for full body motion.

    Here are few resources and demonstrations that could found on the web that related to air writing with Kinect.


    "Writing in the Air by Hands- Recognition of virtual handwritten characters using Kinect" - Prof. Lianwen JIN, South China University of Technology

    Research work can be found on 


    Kunpeng Li : A New Fingertip Detection and Tracking Algorithm and Its Application on Writing-in-the-air System. 
    http://vc.cs.nthu.edu.tw/home/paper/codfiles/ytchen/201504090458/



    Character recognition, using Kernel Discriminant Analysis, Support Vector Machine and $N algorithms drawn with Microsoft Kinect. - Pedro Leitão



    Hiragana writing on Kinect



    Online Kinect Handwritten Digit Recognition Based on Dynamic Time Warping and Support Vector Machine
    http://www.joics.com/publishedpapers/2015_12_1_413_422.pdf.
    By Chengzhang Qu et. al. His 'KinWrite: Handwriting-Based Authentication Using Kinect' also worth to refer.

    Writing in the Air Using Kinect and Growing Neural Gas Network
    By Mohammad Reza Aminian Heidari

    Hand Gesture and Character Recognition Based on Kinect Sensor
    http://www.hindawi.com/journals/ijdsn/2014/278460/
    By Tomoya Murata

    Finger Writing in Air using Kinect
    http://www.ijcsit.com/docs/Volume%205/vol5issue06/ijcsit20140506271.pdf.
    Utsav Jambusaria et al

    Continuous Recognition of One-Handed and Two-Handed Gestures using 3D Full-Body Motion Tracking Sensors
    https://aquigley.host.cs.st-andrews.ac.uk/downloads/KristenssonEtAlIUI2012.pdf.
    By Per Ola Kristensson et al

    Online Handwriting Recognition using Depth Sensors
    https://cvit.iiit.ac.in/papers/Rajat2015Online.pdf.
    Rajat Aggarwal et al


    Sunday, January 10, 2016

    Valipilla : වැලිපිල්ල

    Following are few thoughts about Sri Lankan Traditional Tool Valipilla - වැලිපිල්ල that can be found on in the web sphere.




    The Valipilla in Martin Wickremasinghe Museum [1].

    'පාසලට යන්න කලින් අපි අකුරු ලියන්න ඉගෙන ගත්තෙ ගල් ලෑල්ලෙ. ඊට කලින් දරුවො අකුරු ලිව්වෙ කොහේද? වැලිපිල්ලෙ. මාර්ටින් වික්‍රමසිංහ මහත්තයා මේ වැලිපිල්ල ගැන අපූරු සටහනක් තබා තිබෙනවා. ඒ ඔහුගේ උපන් දා සිට නම් වූ සිය ස්වයං චරිතාපදාන කෘතියේ.[2]'

    "මා ගුරු ගෙදරට ගොස් පාඩම් පොත් කියැවූයේ ආසාවෙනි. නොතේරෙන අංඩර දෙමළය ලෙස සැලකිය යුතු වදන් පවා මම සන්තෝෂයෙන් උගත්තෙමි. පුස්කොළ හෝඩිය හා වදන් කවි පොත ද කියැවීමෙන් හා වැලිපිල්ලේ ‘අයනු ආයනු’ ලිවීමෙන් ද මා විනෝදාස්වාදයක් ලැබුවෙමි."

    ------------------------------------------------------------------------------------------------------------------

    'පුරාණ කාලයේ දරුවකු මූලික අධ්‍යාපනය ආරම්භ කළ සැටි ආනන්ද කේ.කුමාරස්වාමි මහතා සිය මධ්‍ය කාලීන සිංහල කලාකෘතියේ (පරිවර්තනය එච්.ඇම්.සෝමරත්න) සටහන් කර තැබූ ආකාරය පහත වේ [3].'

    ”අකුරු උගත්තේ ගී තාලයට ශබ්ද නඟා පුන පුනා කීමෙනි. ශිෂ්‍යයා ගුරුවරයා ඉදිරියේ නැඟී සිට, වැසූ පොත නළල මත තබාගෙන, තම පාඩම කට පාඩමින් කීයේය. වැරැදීමක් හෝ ඇනහිටීමක් නොමැතිව හෝඩිය කට පාඩමින් කිය හැකි වන තාක් අන් කිසිවක් නූගන්වන ලදී. .....ලිවීම උගන්වන ලද්දේ මේ සවිස්තර පුන පුනා කීම හොඳ හැටි ඉගෙනගත් පසු පමණි. වැලි අතුරන ලද වැලි පිළ නම් වූ පටු ලෑල්ලක් මත (ලිවීමෙන්) ලිවීම ඉගෙන ගන්නා ලදී."

    ----------------------------------------------------------------------------------------------------------------------

    '1940 දී “අපේ ගම” කෘතිය ලියා පළ කළ වික්‍රමසිංහයන් සිය ජීවිතයේ හතළිස් වසරකට පමණ පෙර සිය මුල්ම අධ්‍යාපන පෙරහුරුව ලැබූ අයුරු සිහි කරන්නේ මෙලෙසිණි [3],[5].'

    මැදැඟිල්ල මත දබරැඟිල්ල තබාගෙන මැදැඟිල්ලෙන් වැලිපිල්ලේ ලොකු අකුරු ලියූ සැටි සිහිකරන විට මා තුළ ප්‍රීතිය පමණක් නොව අතීතයට එබී බලන්ට තුඩු දෙන කුතුහලයක් ද හට ගනියි..... 
    ඇඟිල්ලෙන් ලිවීම සඳහා මුහුදු වැලි අතුරන ලද කළුපාට ඵලකයට එකල වැලිපිල්ල යයි කියන ලදී.
    මුහුදු වැලි උඩ ඇඟිල්ලෙන් අකුරු ලියත් ම වැලි දෙපැත්තට වීමෙන් හෑරෙන අගලෙන් කළුපාට ලෑල්ල මතුªවී පෙනෙයි. එවිට වැලිපිල්ලේ ලියන ලද අකුරු දුර සිට බලන්නෙකුට පෙනෙනුයේ සුදු සායම් ගෑ ලෑල්ලක දැලි අඟුරෙන් ලියන ලද අකුරු ලෙසිනි....

    ගල්ලෑලි හා ගල්කූරු පාසලින් පැන්නූ නිසා තීන්ත පෑන් සහ ඇක්සයිස් පොත් බහුල වූ මෙකල ගම්බද ළමයකුට වුවද වැලිපිල්ල අමතක වූ උපකරණයකැයි සිතමි.... 
    කඩදාසියෙන් සාදන ලද කොපි පොතෙහි මා පිහාටු පෑනෙන් ලියන්ට පටන් ගත්තේ වැලිපිල්ලේ ලිවීමෙන් ටිකක් අත පුරුදු වුණු පසුය.

    -----------------------------------------------------------------------------------------------------------------------

    කි‍්‍ර.ව. 1348 දී ශ‍්‍රී ලංකාවට පැමිණි විදේශ සංචාරකයකු වූ මරිඤ්ඤොල්ලි මෙරට දරුවන් වැලිපිල්ලේ අකුරු ලියා උගෙන ගත් අයුරුත් උගතුන් පුස්කොළවල පන්හිඳෙන් ලියූ සැටිත් සිය සටහන්වල ලියා ඇත්තේ ය [5].

    ගණදෙවි හෑල්ලේ ඒ ගැන සඳහන් වනුයේ "සෝඩිය ද ගෙන’තිනේ – වැල්ලේ ද ලියමිනේ’" යනුවෙනි [5].

    වදන්කවි පොතේ ද "ලියා අකුරු වැල්ලේ ගෙඩි නො කා දැනා" යනුවෙන් වැලිපිල්ල ගැන සඳහනක් එයි  [5]. 

    වැලිපිල්ල හෙවත් ‘වැලිපිල’ මෑත කාලයක් වන තුරුම අකුරු උගැන්මට භාවිත වූ බව පෙනෙන්නට ඇත  [5]. 

    හිත්තටියේ ශ‍්‍රී උදිත නා හිමියන් සිය ‘භාරතීය ධර්මශාස්ත‍්‍ර සහ සිංහල සිරිත් විරිත් කෘතියේ ඒ ගැන සඳහන් කරනුයේ මෙලෙසිනි.  [5] : “..අතපොත් තැබීමෙන් පසු ව වැලිපිලේ අකුරු ලියවීම හෙළදිව පැරණි සිරිතකි. රියන් දෙකක් පමණ දිග රියනක් පමණ පළල, වැටේ ලෑලි පටි ගසා ආවරණය කොට, ඉතා සිහින් වැලි ඉස සකස් කළ ‘වැලිපිල’ මෑතක් වනතුරු ඇතැම් පැරණි පන්සල්වල විය... එදා සිරිතට අනුව වැලිපිලේ ලිවීමෙන් හා මේ ශතක පොත් කීමෙන් ලිවීමට හා කියවීමටත් මනා ව පුහුණුවක් ලත් සමහරු වෛද්‍ය, ගණිත, නක්ෂත‍්‍ර පිළිබඳ දැනුමක් පන්සල් අධ්‍යාපනයෙන් ම ලැබූහ."

    -----------------------------------------------------------------------------------------------------------
    'වැලිපිල්ල අපේ භාවමය උරුමයක්. අපි අකුරු ලීවේ ගල්ලෑල්ලේ. අපිට කලින් පරම්පරාව අකුරු ලිව්වේ වැලිපිල්ලේ. දැන් පරපුර ලියන්නේ touch system වල [4].

    'මැකීම කියන කාර්යය සඳහා අපි විවිධ තාක්‍ෂණික දේවල් භාවිතයට ගන්නවා. ගල්ලෑල්ලේ ලියන දෙයක් මැකුවේ අතින් හෝ රෙදි කෑල්ලකින්. පැන්සලින් ලියූ දෙයක් මැකුවේ මකනයෙන්. පෑනකින් ලියූ දෙයක් tippex භාවිතයෙන් මකා දැමුවා. වැලිපිල්ල තමයි මේ සියල්ල අතර ලිවීම සඳහා වගේම මැකීම සඳහා බාහිර උපකරණයක් භාවිත නොකළ නිෂ්පාදනය. එහි අද වනවිටත් දැනෙන්නේ අපූර්වත්වයක්. touch system වලත් ඒ තාක්‍ෂණය භාවිත වෙනවා. නමුත් touch screen කියන්නේ වැලිපිල්ලට නෙමෙයි. එය වැලිපිල්ලේ දියුණු අවස්ථාවක් [4].'

    'වැලිපිල්ල කියන්නේ ඉතිහාසයේ අකුරු කරන්නට භාවිතයට ගෙන තිබුණ උපකරණයක්. ඉතිහාසයේ තිබූ වැදගත් දේවල් අෑත් කරන අපිට අකුරු ඉගෙන ගත් තැන මතක් කිරීමක් මෙයින් සිදු කරනවා. අපි භාවිත කරන touch screen වල මුල් අවස්ථාව තමයි වැලිපිල්ල. මේවායේ තියෙන තාක්‍ෂණය සමානයි. වැලිපිල්ල පාවිච්චි කිරීමට විද්‍යාත්මක බවක් තියෙනවා. වැලි මත ඇඟිලි වදින විට මනස වර්ධනය වීමක් සිදුවෙනවා. ඒ නිසා වැලිපිල්ලේ අකුරු කරන්න හුරුවීම වැදගත් [4].'

    'වැලිපිල්ල භාවිත කිරීමෙන් දරුවන්ගේ නිර්මාණශීලීත්වයද වර්ධනය වීමක් සිද්ධ වෙනවා. පවතින ක්‍රමයේදී දරුවාට සිද්ධ වෙන්නෙ ඇඳලා තිබෙන චිත්‍රයක් පාට කිරීම පමණයි. එහිදී චිත්‍රයක් අඳින්න දරුවා ඉගෙන ගන්නේ නැහැ. ඒ නිසා දරුවගේ නිර්මාණශීලීත්වය අත්හදා බලන්න වැලිපිල්ල භාවිත කරන්න පුළුවන්. මේ අවශ්‍යතාව හඳුනාගෙන පැවැති වැලිපිල්ලට අලුත් අර්ථයක් දෙන්න Touch System වලට පුළුවන්.[4]'

    -----------------------------------------------------------------------------------------------------------------------


    Reference

    [1] ඉනෝකා සමරවික්‍රම(Inoka Samarawickrame), විමල් කරුණාතිලක (Wimal Karunathilake), ‘සිංහල ලකුණ’ සොයා මහ ගෙදරට ගිය ගමනක්', සිළුමිණ: රසඳුන, ලංකාවේ සීමාසහිත එක්සත් ප‍්‍රවෘත්ති පත‍්‍ර සමාගම, July 18, 2010 [Online]. Available: http://www.silumina.lk/2010/07/18/_art.asp?fn=av1007188&p=1 [Accessed Jan. 11, 2016].

    [2] සුමේධා නවරත්න(Sumedha Naverathne), 'එකෝමත් එක කාලෙක අපි කොහොමද පාසල් ගියේ?', සිළුමිණ: විශේෂාංග, ලංකාවේ සීමාසහිත එක්සත් ප‍්‍රවෘත්ති පත‍්‍ර සමාගම, Nov. 07, 2010 [Online]. Available: http://www.silumina.lk/2010/11/07/_art.asp?fn=af1011077 [Accessed Jan. 11, 2016].

    [3] සුමේධා නවරත්න(Sumedha Naverathne), 'සිතට තවම මිහිර ගෙනෙන එදා පළමු පාසල් ගමන?', සිළුමිණ: විශේෂාංග, ලංකාවේ සීමාසහිත එක්සත් ප‍්‍රවෘත්ති පත‍්‍ර සමාගම, Jan. 2, 2011 [Online]. Available: http://www.silumina.lk/2011/01/02/_art.asp?fn=af1101024&p=1 [Accessed Jan. 11, 2016].

    [4] 'Touch System හි කිරිකිත්තා වැලිපිල්ල', Ceylon Today: මව්බිම, Nov. 07, 2010 [Online]. Available: http://www.silumina.lk/2010/11/07/_art.asp?fn=af1011077 [Accessed Jan. 11, 2016].

    [5] ආචාර්ය ප්‍රේමදාස ශී‍්‍ර අලවත්තාගොඩ , ‘පැරණි සිංහල සමාජයේ අක්ෂර ඥානය සහ ශිල්ප ශාස්ත‍්‍ර අධ්‍යයනය', සිළුමිණ: පුන්කලස, ලංකාවේ සීමාසහිත එක්සත් ප‍්‍රවෘත්ති පත‍්‍ර සමාගම, Jan. 4, 2009 [Online]. Available: http://www.silumina.lk/punkalasa/20090104/_art.asp?fn=ar0901045 [Accessed Jan. 11, 2016].

    Leap Motion Air Writing Resources

    Few of the resources and demos that can be found from the web which uses Leap Motion for Air Writing.

    Most of the air writing demos contain a separate alphabet that is easy to write rather than the standard alphabet.






    What is Virtual Valipilla?

    The recent technological advances in vision based sensors are competent enough to capture the finger positions and movements. It allows computerized systems to capture air writing. This is a popular research area which combines both the fields of human computer interaction (HCI) and machine learning.

    Virtual Valipilla focuses on writing a single symbol and recognizing it.

    Virtual Valipilla included a virtual mouse, 2D virtual writing interface, commanding with static hand gestures and furthermore gesture written character recognition with a new type of user input called point cloud.

    ‘$P point cloud recognition framework’ is a template matcher which finds the point per point correspondence and uses simple geometric principles for matching. It is invariant to scale, number of strokes, stroke direction, stroke order and stroke type.

    Virtual Valipilla obtained the support of Leap Motion controller which is a low cost consumer vision sensor device ($ 99.99 -> Rs. 15,000.00) for hand and finger type motion gestures.


    Monday, January 4, 2016

    Falling Skies

    Finally witness the end of Falling Skies. Battle between Espheni is over. No more Mechs, Skitters and Overlords. Nice to be grown up with Masons from 2011 to 2015.


    Good thing about Hollywood Mega TV dramas are they never replaced characters, near to 1 hour without cutting out for breaks and keep the curiosity to the max for next episodes.


    Tom Mason (Noah Wyle) a History Professor who lead the 2nd Mass with Captain Dan Weaver. If it wasn't the Noah Wyle who also perfectly replaced Steve Jobs in Pirates of Silicon Valley, there wouldn't be any post for a memory and I'm sure I will not eager to see the end of Espheni.


    Mason boys - Hal the eldest, Ben who got the spikes and Matt the little soldier. Wow!! How they've grown all those years.



    Don't forget the people of 2nd Mass - Anne the Doc: Toms other half, Pope the arrogant with Sara: The John Pope, Maggie the toughest: Hals other half, Innocent Lourdes who cut out with the Lexi Ann+Toms incredible daughter.




    Guess who's here. Steven Spielberg the executive producer. Now you know from where the family flavor comes. Same as Terra Nova.



    Couldn't forget the Volm leader son Cochise, even he's a alien.


    Then and now Masons