bakeup
This commit is contained in:
@ -325,7 +325,7 @@ def one2n_deleted(all_list):
|
||||
|
||||
|
||||
|
||||
def one2n_return(all_list, basepath):
|
||||
def one2n_return(all_list):
|
||||
corrpairs, corr_similarity, errpairs, err_similarity = [], [], [], []
|
||||
|
||||
for s_list in all_list:
|
||||
@ -410,7 +410,7 @@ def test_rpath_return():
|
||||
savepath = r'D:\DetectTracking\contrast\result'
|
||||
|
||||
all_list = read_returnGoods_file(return_bfile)
|
||||
corrpairs, errpairs, _, _ = one2n_return(all_list, basepath)
|
||||
corrpairs, errpairs, _, _ = one2n_return(all_list)
|
||||
for corrpair in corrpairs:
|
||||
GetoutPath = os.path.join(basepath, corrpair[0])
|
||||
InputPath = os.path.join(basepath, corrpair[1])
|
||||
@ -435,7 +435,7 @@ def test_one2n():
|
||||
savepath: pr曲线保存路径
|
||||
'''
|
||||
# fpath = r'\\192.168.1.28\share\测试_202406\deletedBarcode\other' # deletedBarcode.txt
|
||||
fpath = r'\\192.168.1.28\share\测试_202406\returnGoods\all' # returnGoods.txt
|
||||
fpath = r'\\192.168.1.28\share\测试_202406\1108_展厅模型v800测试' # returnGoods.txt
|
||||
savepath = r'\\192.168.1.28\share\测试_202406\deletedBarcode\illustration'
|
||||
|
||||
if os.path.isdir(fpath):
|
||||
@ -476,9 +476,9 @@ def test_one2n():
|
||||
plt1.savefig(os.path.join(savepath, file+'_pr.png'))
|
||||
# plt1.close()
|
||||
|
||||
# plt2 = showHist(err_similarity, correct_similarity)
|
||||
# plt2.show()
|
||||
# plt2.savefig(os.path.join(savepath, file+'_hist.png'))
|
||||
plt2 = showHist(err_similarity, correct_similarity)
|
||||
plt2.show()
|
||||
plt2.savefig(os.path.join(savepath, file+'_hist.png'))
|
||||
# plt.close()
|
||||
|
||||
|
||||
@ -486,7 +486,7 @@ def test_one2n():
|
||||
if __name__ == '__main__':
|
||||
# test_one2n()
|
||||
test_rpath_return() # returnGoods.txt
|
||||
test_rpath_deleted() # deleteBarcode.txt
|
||||
# test_rpath_deleted() # deleteBarcode.txt
|
||||
|
||||
|
||||
# try:
|
||||
|
Reference in New Issue
Block a user