From d75f905648cf9aeef61d800c6387dc279388a66b Mon Sep 17 00:00:00 2001 From: Brainway Date: Wed, 9 Nov 2022 07:02:38 +0000 Subject: [PATCH] update ieemoo-ai-isempty.py. --- ieemoo-ai-isempty.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ieemoo-ai-isempty.py b/ieemoo-ai-isempty.py index 8f45b97..1d75946 100755 --- a/ieemoo-ai-isempty.py +++ b/ieemoo-ai-isempty.py @@ -160,10 +160,10 @@ def get_isempty(): result = predictor.normal_predict(img_data, result) # 1==empty, 0==nonEmpty riseresult = riseempty(img_data) - print(riseresult["rst_cls"]) + #print(riseresult["rst_cls"]) - if(result["rst_cls"]==1): - if(riseresult["rst_cls"]==1): + if(int(result["rst_cls"])==1): + if(int(riseresult["rst_cls"])==1): result = {} result["success"] = "true" result["rst_cls"] = 1