gnmmarechal / RSTools

RuneScape 3 toolkit. Includes loot warning and low health warning systems.
3 stars 0 forks source link

Make the OCR more generic #26

Open gnmmarechal opened 5 years ago

gnmmarechal commented 5 years ago

Instead of calling Tesseract directly, write a class that manages OCR. It'd be used like:

OCR ocrEngine = new OCR(); // uses the default OCR engine OCR ocrEngine2 = new OCR("Tesseract"); // Specifies the OCR engine

Bitmap b = new Bitmap("test.bmp"); string ocrText = ocrEngine.PerformOCR(b);

Maybe add support for OCR plugins ?