Android Tesseract App crashes on OCR Function
问题 I am trying to implement Tesseract into my android project but am getting a crash when trying to complete the OCR. Here is how I'm setting up Tesseract: TessBaseAPI baseApi = new TessBaseAPI(); baseApi.setDebug(true); baseApi.init(imagePath, "eng"); baseApi.setImage(bitmap); String recognizedText = baseApi.getUTF8Text(); baseApi.end(); This is how I'm setting up the image information to pass into the TesseractAPI: destination = new File(Environment.getExternalStorageDirectory(), name + ".png"