7 #ifndef __vtkPlusVirtualTextRecognizer_h 8 #define __vtkPlusVirtualTextRecognizer_h 10 #include "PlusConfigure.h" 11 #include "vtkPlusDataCollectionExport.h" 20 typedef struct Pix
PIX;
30 #ifdef PLUS_TEST_TextRecognizer 33 class TextFieldParameter
47 std::string LatestParameterValue;
49 vtkSmartPointer<vtkImageData> ScreenRegion;
51 std::string ParameterName;
53 std::array<int, 3> Origin;
55 std::array<int, 3> Size;
87 vtkSetStdStringMacro(Language);
88 vtkGetStdStringMacro(Language);
93 vtkSetStdStringMacro(TessdataDirectory);
94 vtkGetStdStringMacro(TessdataDirectory);
96 #ifdef PLUS_TEST_TextRecognizer 97 ChannelFieldListMap& GetRecognitionFields();
104 void ClearConfiguration();
107 void vtkImageDataToPix(igsioTrackedFrame& frame, TextFieldParameter* parameter);
110 PlusStatus FindOrQueryFrame(igsioTrackedFrame& frame, std::map<double, int>& queriedFramesIndexes, TextFieldParameter* parameter,
111 std::vector<igsioTrackedFrame*>& queriedFrames);
138 #endif //__vtkPlusVirtualTextRecognizer_h virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract interface for tracker and video devices.
std::vector< TextFieldParameter * > FieldList
std::string TessdataDirectory
ChannelFieldListMap::iterator ChannelFieldListMapIterator
virtual PlusStatus InternalConnect()
vtkPlusChannel * OutputChannel
Optional output channel to store recognized fields for broadcasting.
vtkIGSIOTrackedFrameList * TrackedFrames
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
FieldList::iterator FieldListIterator
Contains an optional timestamped circular buffer containing the video images and a number of timestam...
virtual bool IsVirtual() const
virtual PlusStatus NotifyConfigured()
ChannelFieldListMap RecognitionFields
Map of channels to fields so that we only have to grab an image once from the each source channel.
virtual PlusStatus InternalDisconnect()
tesseract::TessBaseAPI * TesseractAPI
Main entry point for the tesseract API.
std::map< vtkPlusChannel *, FieldList > ChannelFieldListMap
virtual bool IsTracker() const
virtual PlusStatus InternalUpdate()
static vtkPlusDevice * New()
std::string Language
Language used for detection.