|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectService
de.lmu.ifi.mfchords.utils.MFCRecognizer
public class MFCRecognizer
The MFCRecognizer is the link between the classifier and the hand model
Constructor Summary | |
---|---|
MFCRecognizer()
|
Method Summary | |
---|---|
void |
addMFCRecognizer(MFCListener toAdd)
register your view to receive MFC events |
void |
createClassifier()
create classifier when the calibration process is done. |
void |
feedClassifier(RelativeMeasurement rm,
java.lang.String name)
feed the RelativeMeasurements to the Classifier if you want to calibrate. |
java.lang.String |
getClassifiedMFC(RelativeMeasurement rm)
classifies the RelativeMeasurement using a KNN (N=3) |
HandModel |
getHandModel()
|
static MFCRecognizer |
getRecognizer()
Singleton: access to the recognizer |
boolean |
isClassifierBuilt()
|
IBinder |
onBind(Intent intent)
|
void |
onCreate()
|
int |
onStartCommand(Intent intent,
int flags,
int startId)
|
boolean |
onTouchEvent(MotionEvent event)
|
RelativeMeasurement |
processPoints(java.util.ArrayList<PointF> pointers,
boolean isTwoStepPosture)
processPoints turns an array of touch points (PointF) into a RelativeMeasurement to feed the classifier or to get it classified by the classifier. |
void |
readInCalibration()
builds classifier from calibration file (by default saved in external storage "defaultCalibration.txt"). |
void |
wantFeedforward(boolean b)
if set to 'true' it visualizes a feedforward of hovering fingers |
void |
writeCalibToFile()
writes calibration to file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MFCRecognizer()
Method Detail |
---|
public static MFCRecognizer getRecognizer()
public void addMFCRecognizer(MFCListener toAdd)
public void wantFeedforward(boolean b)
wantFeedForward
- set this to yes if you want to visualize feedforward
about the approximate finger positions of the hovering fingerspublic void onCreate()
public RelativeMeasurement processPoints(java.util.ArrayList<PointF> pointers, boolean isTwoStepPosture)
pointers
- ArrayList of PointF points from the touch events.isTwoStepPosture
- The information of the view if the timing between the two touches
of the basis and the third identifying touch is beyond threshold to
be interpreted as two-step posture
public boolean onTouchEvent(MotionEvent event)
public void createClassifier()
public void feedClassifier(RelativeMeasurement rm, java.lang.String name)
public java.lang.String getClassifiedMFC(RelativeMeasurement rm)
rm
- the relative measurement to classify
public HandModel getHandModel()
public void readInCalibration()
public IBinder onBind(Intent intent)
public int onStartCommand(Intent intent, int flags, int startId)
public boolean isClassifierBuilt()
public void writeCalibToFile()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |