java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
脚本代码如下:
let src = images.captureScreen();
let left = 300,
top = 1200,
right = 700,
bottom = 1600,
width = right - left,
height = bottom - top;
let img = images.clip(src, left, top, width, height);
let results = ocr.detect(img);
java.lang.IllegalArgumentException: y + height must be <= bitmap.height() 脚本代码如下: let src = images.captureScreen(); let left = 300, top = 1200, right = 700, bottom = 1600, width = right - left, height = bottom - top; let img = images.clip(src, left, top, width, height); let results = ocr.detect(img);