23 #include <yarp/os/all.h>
24 #include <yarp/sig/all.h>
27 using namespace yarp::os;
28 using namespace yarp::sig;
31 class Classifier :
public RFModule
40 RpcClient rpcClassifier;
43 BufferedPort<ImageOf<PixelRgb> > imgInput;
44 BufferedPort<ImageOf<PixelRgb> > imgSIFTInput;
45 BufferedPort<ImageOf<PixelRgb> > imgSIFTOutput;
51 vector<Bottle> trainingFeature;
52 vector<Bottle> negativeFeature;
55 bool train(Bottle *locations, Bottle &reply);
56 void classify(Bottle *blobs, Bottle &reply);
57 bool getOPCList(Bottle &names);
58 bool updateObjDatabase();
61 bool configure(ResourceFinder &rf);
62 bool interruptModule();
64 bool respond(
const Bottle& command, Bottle& reply);