Search
Project Description
.NET C# wrapper around Numenta Web Services API (image recognition and computer vision).
See http://www.numenta.com/vision/webservices.php.
DEPRECATED AND OBSOLETE
"Numenta is creating a new type of computing technology modeled on the structure and operation of the neocortex. The technology is called Hierarchical Temporal Memory, or HTM, and is applicable to a broad class of problems from machine vision, to fraud detection, to semantic analysis of text."

Deprecated and obsolete http://www.numenta.com/legacysoftware.php.
Source is here http://numentaclient.googlecode.com/svn/trunk/

Usage

To run tests and sample applications You have to provide path to YOUR license keys. See "NumentaClient/NumentaClientTestProject/ReadMe.txt" for details
            // read keys from file
            Keys keys;
            using (var stream = new FileStream(@"../../../TestData/Private/license.cfg", FileMode.Open, FileAccess.Read))
            {
                keys = Keys.Import(stream);
            }

            // create function which converts base 64 string image raw data to Your image type
            // (see ToolkitApp for real example)
            var converter = new Func<string, string>(x => x);

            // create parametrized client (or inherit from NumentaHttpClient)
            var client = new FuncNumentaHttpClient<string>(converter);

            //get list of networks
            var networks = client.List(
                keys.ApiKey,
                InfoRequests.Id | InfoRequests.Title | InfoRequests.CategoryNames
                );
            
            //showing networks' titles
            Console.WriteLine("Available networks:");
            foreach (var network in networks)
                Console.WriteLine(network.Title);
            Console.WriteLine();

            // read image to stream
            using (var imageData = new FileStream(@"../../../TestData/chair.png", FileMode.Open, FileAccess.Read))
            {
                // infer
                var infernceResult = client.Infer(keys.ApiKey, networks[0].Id, imageData);

                //write categories and possibilities that image is in each of the category
                foreach (var category in networks[0].CategoryNames)
                {
                 Console.Write(String.Format("'{0}' ",category));
                }
                Console.WriteLine();
                foreach (var output in infernceResult.CategoryOutputs)
                {
                    Console.Write(String.Format("'{0}' ", output));
                }
            }
Available networks:
Golden Retriever Puppies
Furniture
Corporate Logos
Indoor Outdoor
Car Logos
Parking Spot

'Golden puppy' 'Not puppy' 
'0.0112477' '0.988752'


TookitApp.png

Release

Targets .NET Framework 3.5 SP1.
If You need Silverlight or 'Compact Framework' or without 'Code Contracts' releases then vote.

Public interface of NumentaClient.dll:
ClassDiagram.png

Development

IDE - Visual Studio 2008 SP1
NumentaClient - core assembly. Uses "Code Contracts" and "WCF REST Starter Kit Preview 2".
SampleInfoApp, SampleClassifyApp - samples application on F#.
ToolkitApp - sample WPF on C#.
NumentaClientTestProject - using NUnit.
Last edited Feb 3 2011 at 5:32 PM by asdandRizzo, version 38
Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.1.11.18365