enzo hace 2 semanas
padre
commit
f3d9f15b64
Se han modificado 3 ficheros con 6 adiciones y 5 borrados
  1. 2 2
      CLAUDE.md
  2. 2 2
      README.md
  3. 2 1
      src/main.ts

+ 2 - 2
CLAUDE.md

@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
 
 ## What This Is
 
-NestJS backend optimized for ARM/Android (Termux) deployment. Provides server-side YOLOv8 ONNX inference via WASM (single-threaded, no native bindings), SQLite history persistence (sql.js + disk image archiving), a unified FIS-protocol WebSocket gateway, n8n chat proxying, and a process surveillance monitor.
+NestJS backend optimized for ARM/Android (Termux) deployment. Provides server-side YOLO26 ONNX inference via WASM (single-threaded, no native bindings), SQLite history persistence (sql.js + disk image archiving), a unified FIS-protocol WebSocket gateway, n8n chat proxying, and a process surveillance monitor.
 
 Detection classes: `Ripe`, `Unripe`, `Underripe`, `Overripe`, `Abnormal`, `Empty_Bunch` (MPOB standard, indices 0–5).
 
@@ -143,7 +143,7 @@ interface AnalysisResponse {
 
 ### Required Files
 
-- `best.onnx` — YOLOv8 ONNX model in **project root** (not `src/`). Loaded at startup.
+- `best.onnx` — YOLO26 (NMS-free) ONNX model in **project root** (not `src/`). Loaded at startup.
 - `cert/127.0.0.1+1-key.pem` and `cert/127.0.0.1+1.pem` — TLS certificates. HTTPS is always on (no HTTP fallback).
 - `archive/` — Auto-created by `PalmOilService` on first write.
 - `tflite/` — TFLite model files (present but not loaded by current server code).

+ 2 - 2
README.md

@@ -6,7 +6,7 @@ A **NestJS** backend API that uses an **ONNX-based YOLOv26 model** to perform re
 
 ## 🚀 Features
 
-- **AI Inference via ONNX Runtime** — Runs a custom-trained YOLOv8 model (`best.onnx`) using `onnxruntime-node` for zero-dependency, high-performance server-side inference.
+- **AI Inference via ONNX Runtime** — Runs a custom-trained YOLO26 (NMS-free) model (`best.onnx`) using `onnxruntime-node` for zero-dependency, high-performance server-side inference.
 - **MPOB-Standard Classification** — Detects and classifies palm oil bunches into 6 industry-standard grades:
   | Class | Description |
   |---|---|
@@ -175,7 +175,7 @@ Each history record stores:
 
 | File | Purpose |
 |---|---|
-| `best.onnx` | YOLOv8 ONNX inference model (must be in project root) |
+| `best.onnx` | YOLO26 (NMS-free) ONNX inference model (must be in project root) |
 | `palm_history.db` | SQLite scan history database (auto-created) |
 | `src/palm-oil/constants/mpob-standards.ts` | MPOB class definitions, colors, and health alert flags |
 | `src/palm-oil/providers/scanner.provider.ts` | Core AI inference pipeline |

+ 2 - 1
src/main.ts

@@ -17,7 +17,8 @@ async function bootstrap() {
   const app = await NestFactory.create(AppModule, { httpsOptions });
 
   app.enableCors({
-    origin: process.env.ALLOWED_ORIGINS?.split(','),
+    // TODO: revert to process.env.ALLOWED_ORIGINS?.split(',') once cross-device testing is done.
+    origin: true,
     credentials: true,
   });