From 63c1f5cf22c703f651e14da4f204364cbad638f0 Mon Sep 17 00:00:00 2001
From: "li.zhenye"
Date: Fri, 5 Aug 2022 09:08:30 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=BA=86=E4=B8=80=E6=AC=A1=E6=8F=90?=
=?UTF-8?q?=E5=89=8D=E9=A2=84=E6=B5=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/main.py b/main.py
index a9c3b45..841bb9f 100755
--- a/main.py
+++ b/main.py
@@ -11,6 +11,8 @@ def main(only_spec=False, only_color=False):
spec_detector = SpecDetector(blk_model_path=Config.blk_model_path, pixel_model_path=Config.pixel_model_path)
rgb_detector = RgbDetector(tobacco_model_path=Config.rgb_tobacco_model_path,
background_model_path=Config.rgb_background_model_path)
+ _, _ = spec_detector.predict(np.ones(Config.nRows, Config.nCols, Config.nBands)*0.4),\
+ rgb_detector.predict(np.ones(Config.nRgbRows, Config.nRgbCols, Config.nRgbBands)*0.4)
total_len = Config.nRows * Config.nCols * Config.nBands * 4 # float型变量, 4个字节
total_rgb = Config.nRgbRows * Config.nRgbCols * Config.nRgbBands * 1 # int型变量
if not os.access(img_fifo_path, os.F_OK):