4 Star 14 Fork 7

百温 / 人工智能车辆检测项目

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Accuracy.py 473 Bytes
一键复制 编辑 原始数据 按行查看 历史
百温 提交于 2019-03-17 07:42 . 加入Python QT界面
TextLine = []
Right = 0
Wrong = 0
Total = 0
with open('Result.text') as f:
for line in f:
TextLine.append(line)
Result = ""
for i in range(len(TextLine)):
Result = TextLine[i].split(",")[3]
Result = Result.split(':')[1]
if "正确" in Result:
Right +=1
else:
Wrong +=1
Total +=1
Accuracy = Right / Total
print("Right:{}".format(Right))
print("Total:{}".format(Total))
print("Accuracy:{0:.2f}".format(Accuracy))
Python
1
https://gitee.com/HundredReview/AICarDetectProject.git
git@gitee.com:HundredReview/AICarDetectProject.git
HundredReview
AICarDetectProject
人工智能车辆检测项目
master

搜索帮助