MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / ocr

Function ocr

backup/sysxc.js:354–372  ·  view source on GitHub ↗
(path, data)

Source from the content-addressed store, hash-verified

352 }
353}
354async 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
374const BLOCK_SIZE = 16;
375

Callers 1

getVcodeMethod · 0.70

Calls 2

httpRequestFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected