@xuda.io/drive_module 1.1.963 → 1.1.965
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1734,7 +1734,7 @@ const ocr_drive_file = async function (app_id, doc) {
|
|
|
1734
1734
|
);
|
|
1735
1735
|
|
|
1736
1736
|
// Detect the language from the extracted text
|
|
1737
|
-
const detectedLang = franc(initialText);
|
|
1737
|
+
const detectedLang = franc.franc(initialText);
|
|
1738
1738
|
const tesseractLang = detectedLang || "eng";
|
|
1739
1739
|
ocr = await tesseract.recognize(target_file, tesseractLang);
|
|
1740
1740
|
|
|
@@ -1754,7 +1754,7 @@ const ocr_drive_file = async function (app_id, doc) {
|
|
|
1754
1754
|
);
|
|
1755
1755
|
|
|
1756
1756
|
// Detect the language from the extracted text
|
|
1757
|
-
const detectedLang = franc(initialText);
|
|
1757
|
+
const detectedLang = franc.franc(initialText);
|
|
1758
1758
|
const tesseractLang = detectedLang || "eng";
|
|
1759
1759
|
ocr += await tesseract.recognize(imageData.path, tesseractLang);
|
|
1760
1760
|
}
|