Click here to Skip to main content
15,867,453 members
Articles / Programming Languages / C#
Tip/Trick

Using Google Search By Image within your .NET Application

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
14 May 2012CPOL2 min read 19.9K   11   3
Using Google Search By Image within your .NET application

Introduction

This tip will illustrate the use of Google Search by Image functionality in your .NET Application.

Background

A couple of months ago, Google launched the new search by image service, the one that allows you actually to identify images just by dragging them to the search bar or simply attach a link for a specific image and the service will tell you what is going to be like, inside the image !

It seems to be a great concept, and it would be greater if Google made it available for the good of developers to help them implement stunning scenarios that leverage this service. I’ve been using Google search by image for quite good time, I started to investigate how this technology works, basically it “converts” your image to a hash and sends it to the server then the server replies to you back with a search query. This tutorial will present how to integrate this service into a desktop application (or mostly a Windows 8 application, in the future maybe) to build a Goggles-like where you can give it a URL then get a search query describing the image content and when your business will start!

This tutorial will not take you through how to use this service to build a mobile application although these sorts of scenarios should be prioritized first in such applications, but the fact that the helper still in its alpha release makes it limited to the kind of applications highlighted in this tutorial.

Still wondering what to do? Actually, you can implement identification scenarios, images classification and everything related to what would an image "say".

Okay, let’s start by the helper itself, SBI Sharp is a little class that helps you do all the above and it's available at Codeplex.

  1.  Add SBISharp.dll as a reference to your project:

    Add a reference

  2. Add the following code snippet:

    C#
    var result = SBISharp.SBIHelper.SearchByImage("YOUR IMAGE URL HERE");

I've tested it with this picture:

and it gave the following:

Now go ahead and check what you’re able to do with it !

The next tutorial will take you through the helper itself and the way it interacts with Google Search by image service.

Happy coding!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Algeria Algeria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
BugNot working Pin
Burkay Ozdemir2-Nov-14 23:41
Burkay Ozdemir2-Nov-14 23:41 
Questionhow helpful this can be from a developer point of view Pin
Sunny_Kumar_14-May-12 20:52
Sunny_Kumar_14-May-12 20:52 
AnswerRe: how helpful this can be from a developer point of view Pin
Mohamed Amine Aboura16-May-12 3:04
Mohamed Amine Aboura16-May-12 3:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.