还原0.6 和 0.5的阈值参数
This commit is contained in:
parent
3a4ba72304
commit
60985d84bc
17
search.py
17
search.py
@ -473,8 +473,8 @@ if __name__ == "__main__":
|
||||
score += (1 - abs(tmp_sum_r - sum_r) / sub_roi_width) * 0.25
|
||||
score += (1 - abs(tmp_sum_theta - sum_theta) / 3.14) * 0.25
|
||||
|
||||
if score > 0.0: #????
|
||||
print("11111111111111111111", str(score))
|
||||
print("score=======", str(score))
|
||||
if score > 0.6: #????
|
||||
cartesian_points1 = polar_to_cartesian(np.asarray(tmp_polar_list))
|
||||
cartesian_points2 = polar_to_cartesian(np.asarray(polar_list))
|
||||
sc1 = compute_shape_context(cartesian_points1)
|
||||
@ -488,20 +488,17 @@ if __name__ == "__main__":
|
||||
param['match_score'] = match_score
|
||||
if min_match_score > match_score:
|
||||
min_match_score = match_score
|
||||
# rst_params.append(param)
|
||||
times += 1
|
||||
if times == 3:
|
||||
rst_params.append(param)
|
||||
break
|
||||
|
||||
rst_params.append(param)
|
||||
|
||||
# 预埋件匹配
|
||||
for i, param in enumerate(rst_params):
|
||||
score = param["score"]
|
||||
match_score = param["match_score"]
|
||||
print(f"[match_score] ====== [{match_score}]")
|
||||
|
||||
id = param["code"]
|
||||
# if min_match_score == match_score or match_score < 0.5: #????
|
||||
if True:
|
||||
if min_match_score == match_score or match_score < 0.5: #????
|
||||
# if True:
|
||||
index_list = []
|
||||
for j in range(len(param['effective_points'])):
|
||||
pt = param['effective_points'][j]
|
||||
|
Loading…
Reference in New Issue
Block a user