Пример #1
0
 private void Recoginze(Texture2D outputTexture)
 {
     ClearTextDisplay();
     AddToTextDisplay(_tesseractDriver.CheckTessVersion());
     _tesseractDriver.Setup();
     AddToTextDisplay(_tesseractDriver.Recognize(outputTexture));
     AddToTextDisplay(_tesseractDriver.GetErrorMessage(), true);
 }
    private void Recoginze(Texture2D outputTexture)
    {
        // Clear out the text
        ClearTextDisplay();

        // Add the Tesseract Version to the text to the Display
        AddToTextDisplay(_tesseractDriver.CheckTessVersion());

        // Start up the Tesseract Driver
        _tesseractDriver.Setup();

        // Add the Recognized Text to the Display
        AddToTextDisplay(_tesseractDriver.Recognize(outputTexture));

        // Add any error messages To the Display
        AddToTextDisplay(_tesseractDriver.GetErrorMessage(), true);
    }
Пример #3
0
 private void OnSetupCompleteRecognize()
 {
     AddToTextDisplay(_tesseractDriver.Recognize(_texture));
     AddToTextDisplay(_tesseractDriver.GetErrorMessage(), true);
     SetImageDisplay();
 }