update ieemoo-ai-isempty.py.

This commit is contained in:
Brainway
2022-11-09 07:02:38 +00:00
committed by Gitee
parent d667de427a
commit d75f905648

View File

@ -160,10 +160,10 @@ def get_isempty():
result = predictor.normal_predict(img_data, result) # 1==empty, 0==nonEmpty result = predictor.normal_predict(img_data, result) # 1==empty, 0==nonEmpty
riseresult = riseempty(img_data) riseresult = riseempty(img_data)
print(riseresult["rst_cls"]) #print(riseresult["rst_cls"])
if(result["rst_cls"]==1): if(int(result["rst_cls"])==1):
if(riseresult["rst_cls"]==1): if(int(riseresult["rst_cls"])==1):
result = {} result = {}
result["success"] = "true" result["success"] = "true"
result["rst_cls"] = 1 result["rst_cls"] = 1