mirror of
https://github.com/NanjingForestryUniversity/supermachine-wood.git
synced 2025-11-08 10:13:53 +00:00
增加了改变模型路径和训练代码(未测试)
This commit is contained in:
parent
e327c538b0
commit
ba41005b24
@ -3,6 +3,7 @@ import numpy as np
|
||||
import cv2
|
||||
from classifer import WoodClass
|
||||
import time
|
||||
import os
|
||||
|
||||
|
||||
def main():
|
||||
@ -53,7 +54,12 @@ def main():
|
||||
detector.fit_pictures(data_path=r"C:\Users\FEIJINTI\PycharmProjects\wood_color")
|
||||
socket_send.send(b'G')
|
||||
elif (size_buff[4] == 2):
|
||||
pass
|
||||
str_size = size_buff[0] << 8 | size_buff[1]
|
||||
select_model = socket_receive.recv(str_size)
|
||||
model_path = os.path.join("models", select_model)
|
||||
detector = WoodClass(w=4096, h=1200, n=3000, debug_mode=False)
|
||||
detector.load(path=model_path)
|
||||
break
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user