Month: November 2012

There are many scenarios where i tried to compare images but failed to compare them. Image comparison is a very deep concept where there involved lot many complex algorithms . In brief for Two images to be same we need to compare the two images pixel by pixel so i came across PixelGrabber class in java and started using it which gave a positive result, but not accurate.
The sample code for image comparision as follows:

Hi Guys, few weeks back one of my friends asked me on how to access the Google Calender api using Java. First i was stuck at many levels and came across excellent Google API which is a java wrapper guys below is the code snippet which is almost self explanatory. Follow the code comments.

After this i was self researching on all google APIs such as YouTube API,Google Translator API and lot more. but the translator api’s are paid one they only allow few Translation transactions as free(for test purpose). For Translator api’s to work we need to create a Google API Key, and below is the code to use Google Translator API. Follow the code comments carefully

Since Google Provides very less Translation Transactions i have searched for more Api’s which do the job for me and i came across Microsoft Translation Java wrapper Api which is paid but Translation Transactions are more so you can test for quite more than Google Api and the code is as below. For working with Microsoft Api we need to create ClientId and ClientSecret at MicrosoftsoftAzure Market Place. Follow the Code Comments carefully.

// Create your array of texts to be translated
// NOTE: The source language of all texts must be the same. For
// instance, I cannot translate
// a Spanish string, French string, and English string into German
// during a single call
String[] sourceTexts = { “This is a sentence, translate me.”,
“I would like to be translated”, “How are you doing today?” };

Form last few months i am trying to detect objects around me some thing like faces. i found a library called OpenCV which is called computer vision lib.with the functions available in OpenCV its easy to detect Faces around you your system can recognize faces behind you using webcam.

By downloading, copying, installing or using the software you agree to this license.
If you do not agree to this license, do not download, install,
copy or use the software.

Intel License Agreement
For Open Source Computer Vision Library

Copyright (C) 2000, Intel Corporation, all rights reserved.
Third party copyrights are property of their respective owners.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistribution’s of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

* Redistribution’s in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* The name of Intel Corporation may not be used to endorse or promote products
derived from this software without specific prior written permission.