Look from the error message is a null pointer errors Call getWidth when acquiring the width of bitmap wrong Estimates that there is no corresponding android library or library is not compatible, OCR is expected to use some of the opencv library, opencv library depends on the CPU, so not compatible is a common problem, is expected to be recompiled packaged libraries
CodePudding user response:
Tooltip says that on a null object call getWidth () method Is probably the bitmap is load success, to obtain the image size without identifying the See the code after loading the images to test the success