edu.stanford.hci.r3.pen.handwriting
Class HandwritingRecognitionService

java.lang.Object
  extended by edu.stanford.hci.r3.pen.handwriting.HandwritingRecognitionService

public class HandwritingRecognitionService
extends java.lang.Object

Allows us to use the HWRecognition server (written in C#/.NET) from Java. This acts as a client that relays messagse to our Handwriting Recognition Server.

This software is distributed under the BSD License.


Method Summary
 void exitServer()
          Ask the server to exit....
 java.util.List<java.lang.String> getAlternatives()
           
static HandwritingRecognitionService getInstance()
           
 java.lang.String recognizeHandwriting(java.io.File xmlFile)
           
 java.lang.String recognizeHandwriting(java.lang.String xml)
          This recognize call should return as fast as possible...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HandwritingRecognitionService getInstance()
Returns:
access to the HWRec Server.

exitServer

public void exitServer()
Ask the server to exit.... You can only call this once!


getAlternatives

public java.util.List<java.lang.String> getAlternatives()
Returns:
ask the server to provide the top ten alternatives... The server will respond with a list, and terminate that list with a token [[endofalternatives]]

recognizeHandwriting

public java.lang.String recognizeHandwriting(java.io.File xmlFile)
Parameters:
xmlFile -
Returns:

recognizeHandwriting

public java.lang.String recognizeHandwriting(java.lang.String xml)
This recognize call should return as fast as possible... as an end user will experience this...

Parameters:
xml -
Returns:

Copyright 2006 Stanford University