修改的标签走队列模式

This commit is contained in:
Ivey Song
2026-06-15 11:34:43 +08:00
parent bfd3fa27b3
commit ababd644ab
4 changed files with 17 additions and 27 deletions

View File

@@ -331,7 +331,7 @@ class Decoder_main(threading.Thread):
pad_eeg_test[:, :int(self.sample_length * self.device_info['sample_rate'])] = data
choosenNum, features_2 = self.decoder.predict(pad_eeg_test)
if isinstance(choosenNum, np.ndarray):
choosenNum = choosenNum[0]
choosenNum = choosenNum[0]-1
algo_log(f"结果:{choosenNum}, rho: {sorted(features_2[0])[-1] - sorted(features_2[0])[-2]}", level="DEBUG")
self.zmqServer.broadcast_message('result', int(choosenNum))
algo_log("SSMVEP发送给界面完成。", level="DEBUG")