public JSONObject tableRecognizeToJson(String imgPath, long timeoutMiliseconds) {
        try {
            byte[] imgData = Util.readFileByBytes(imgPath);
            return tableRecognizeToJson(imgData, timeoutMiliseconds);
        } catch (IOException e) {
            e.printStackTrace();
            return AipError.IMAGE_READ_ERROR.toJsonResult();
        }
    }
public JSONObject tableRecognizeToJson ( String imgPath , long timeoutMiliseconds ) { try { byte [ ] imgData = Util . readFileByBytes ( imgPath ) ; return tableRecognizeToJson ( imgData , timeoutMiliseconds ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return AipError . IMAGE_READ_ERROR . toJsonResult ( ) ; } }
表格识别接口，返回json结果
@param imgPath 识别图片路径
@param timeoutMiliseconds 等待超时(ms)
@return json格式识别结果