@xuda.io/drive_module 1.1.962 → 1.1.964
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -27,9 +27,6 @@ const unzipper = require("unzipper");
|
|
|
27
27
|
const fs = require("fs");
|
|
28
28
|
const tesseract = require("node-tesseract-ocr");
|
|
29
29
|
|
|
30
|
-
import { createRequire } from "module";
|
|
31
|
-
const require = createRequire(import.meta.url);
|
|
32
|
-
const franc = require("franc");
|
|
33
30
|
////////////////////////////////////////////
|
|
34
31
|
|
|
35
32
|
[
|
|
@@ -1727,6 +1724,7 @@ const ocr_drive_file = async function (app_id, doc) {
|
|
|
1727
1724
|
|
|
1728
1725
|
var ocr = "";
|
|
1729
1726
|
const generalConfig = { lang: "eng", oem: 1, psm: 3 };
|
|
1727
|
+
const franc = await import("franc");
|
|
1730
1728
|
|
|
1731
1729
|
switch (doc.mime.split("/")[0]) {
|
|
1732
1730
|
case "image": {
|