(path, data)
| 352 | } |
| 353 | } |
| 354 | async function ocr(path, data) { |
| 355 | try { |
| 356 | let options = { |
| 357 | url: `http://ocr.onecc.cc${path}`, |
| 358 | headers: { |
| 359 | }, |
| 360 | body: `${data}` |
| 361 | } |
| 362 | //console.log(options); |
| 363 | let result = await httpRequest(options); |
| 364 | //console.log(result); |
| 365 | if (result) { |
| 366 | return result |
| 367 | } else { |
| 368 | } |
| 369 | } catch (e) { |
| 370 | console.log(e); |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | const BLOCK_SIZE = 16; |
| 375 |
no test coverage detected