Initial commit: Vision scanner for shelf/pantry product extraction

This commit is contained in:
2026-03-29 21:58:07 -04:00
commit 5de44e7579
19 changed files with 3673 additions and 0 deletions

27
service-install.js Normal file
View File

@@ -0,0 +1,27 @@
const Service = require("node-windows").Service;
const path = require("path");
const svc = new Service({
name: "Vision Scanner Service",
description: "Standalone vision scanner service for shelf/pantry photo scanning",
script: path.join(__dirname, "dist", "server.js"),
nodeOptions: [],
env: [
{ name: "PATH", value: process.env.PATH },
],
});
svc.on("install", () => {
console.log("Service installed. Starting...");
svc.start();
});
svc.on("start", () => {
console.log("Service started!");
});
svc.on("error", (err) => {
console.error("Error:", err);
});
svc.install();