Dr-Swopt hai 1 semana
pai
achega
2b0175b00c
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      README.md
  2. 2 2
      src/palm-oil/providers/scanner.provider.ts

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # 🌴 Palm Oil Ripeness Detection Service
 
-A **NestJS** backend API that uses an **ONNX-based YOLOv8 model** to perform real-time ripeness classification of oil palm fresh fruit bunches (FFB). Detection results are mapped against **MPOB (Malaysian Palm Oil Board) grading standards**, persisted to a local SQLite database, and served via a REST API.
+A **NestJS** backend API that uses an **ONNX-based YOLOv26 model** to perform real-time ripeness classification of oil palm fresh fruit bunches (FFB). Detection results are mapped against **MPOB (Malaysian Palm Oil Board) grading standards**, persisted to a local SQLite database, and served via a REST API.
 
 ---
 

+ 2 - 2
src/palm-oil/providers/scanner.provider.ts

@@ -1,13 +1,13 @@
 import { Injectable, OnModuleInit } from '@nestjs/common';
 import * as onnx from 'onnxruntime-node';
-import * as sharp from 'sharp';
+import sharp from 'sharp';
 import * as path from 'path';
 import { MPOB_CLASSES, HEALTH_ALERT_CLASSES } from '../constants/mpob-standards';
 import { DetectionResult } from '../interfaces/palm-analysis.interface';
 
 @Injectable()
 export class ScannerProvider implements OnModuleInit {
-  private session: onnx.InferenceSession;
+  private session!: onnx.InferenceSession;
   private readonly modelPath = path.join(process.cwd(), 'best.onnx');
 
   async onModuleInit() {