Skip to content

Commit

Permalink
adding dlls
Browse files Browse the repository at this point in the history
  • Loading branch information
willwade committed Oct 30, 2024
1 parent 2f6f4f7 commit 477daaf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 29 deletions.
Binary file added nodejs/sender-monitor/libs/System.Runtime.dll
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions nodejs/sender-monitor/ocr.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const edge = require("electron-edge-js");
const Tesseract = require("tesseract.js");
const path = require("path");
const { app } = require("electron");

const libsPath = app.isPackaged ? path.join(process.resourcesPath, "libs") : path.join(__dirname, "libs");

console.log("Using DLL path:", path.join(libsPath, "System.Runtime.dll"));

const ocrImageEdge = edge.func({
source: function () {/*
Expand Down Expand Up @@ -42,6 +44,7 @@ const ocrImageEdge = edge.func({
]
});


// Main OCR function that switches based on config
async function performOCR(filePath, useEdgeForOCR) {
if (useEdgeForOCR) {
Expand Down
34 changes: 5 additions & 29 deletions nodejs/sender-monitor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 477daaf

Please sign in to comment.