检测评价函数 intersection-over-union ( IOU/IU )
来源:互联网 发布:微信看不到淘宝链接 编辑:程序博客网 时间:2024/04/30 13:51
1、概念
转载自http://blog.csdn.net/eddy_zheng/article/details/52126641在目标检测的评价体系中,有一个参数叫做IoU,简单来讲就是模型产生的目标窗口和原来标记窗口的交叠率。具体我们可以简单的理解为: 即检测结果(DetectionResult)与Ground Truth 的交集比上它们的并集,即为检测的准确率IoU :
如下图所示:GT = GroundTruth; DR = DetectionResult;
黄色边框框起来的是:
绿色框框起来的是:
应该够详细了,上幅图直观些。当然最理想的情况就是 DR 与 GT 完全重合,即
下面附上图例说明,及 IOU 的python实现,已经测试无误,自行取用。
原图:
# -*- coding: utf-8 -*-"""Created on Sun Aug 07 14:26:51 2016@author: Eddy_zheng"""def IOU(Reframe,GTframe): """ 自定义函数,计算两矩形 IOU,传入为均为矩形对角线,(x,y) 坐标。· """ x1 = Reframe[0]; y1 = Reframe[1]; width1 = Reframe[2]-Reframe[0]; height1 = Reframe[3]-Reframe[1]; x2 = GTframe[0]; y2 = GTframe[1]; width2 = GTframe[2]-GTframe[0]; height2 = GTframe[3]-GTframe[1]; endx = max(x1+width1,x2+width2); startx = min(x1,x2); width = width1+width2-(endx-startx); endy = max(y1+height1,y2+height2); starty = min(y1,y2); height = height1+height2-(endy-starty); if width <=0 or height <= 0: ratio = 0 # 重叠率为 0 else: Area = width*height; # 两矩形相交面积 Area1 = width1*height1; Area2 = width2*height2; ratio = Area*1./(Area1+Area2-Area); # return IOU return ratio,Reframe,GTframe
阅读全文
0 0
- 检测评价函数 intersection-over-union ( IOU/IU )
- IoU 检测评价函数 intersection-over-union
- 检测评价函数 intersection-over-union ( IOU )
- numpy实现 检测评价函数 intersection-over-union ( IOU )
- 检测评价函数 intersection-over-union ( IOU )
- 检测评价函数 intersection-over-union ( IOU )
- 深度学习中IU、IoU(Intersection over Union)的概念理解以及python程序实现
- Recall || Precision || Average_precision(AP) || Intersection-over-Union(IoU)||NMS
- 目标识别(object detection)中的 IoU(Intersection over Union)
- 目标检测之IoU(intersecton over union)标准
- 【YOLO学习】召回率(Recall),精确率(Precision),平均正确率(Average_precision(AP) ),交除并(Intersection-over-Union(IoU))
- 召回率(Recall),精确率(Precision),平均正确率(Average_precision(AP) ),交除并(Intersection-over-Union(IoU))
- 【YOLO学习】召回率(Recall),精确率(Precision),平均正确率(Average_precision(AP) ),交除并(Intersection-over-Union(IoU))
- 【YOLO学习】召回率(Recall),精确率(Precision),平均正确率(Average_precision(AP) ),交除并(Intersection-over-Union(IoU))
- 【YOLO学习】召回率(Recall),精确率(Precision),平均正确率(Average_precision(AP) ),交除并(Intersection-over-Union(IoU))
- IU
- IOU
- iou
- c++ DebugView 输出信息
- 第14周—Java集合框架上机练习题1
- GPS时间和UTC时间的区别,
- WPF学习笔记——编辑DataGrid单元格并实时更新到数据库
- JSON.stringify()
- 检测评价函数 intersection-over-union ( IOU/IU )
- 有点小开心!
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">是什么意思?
- Unity中修改相机各个Layer的照射视距
- 算法导论:c++快速排序
- Scala语言入门之环境配置
- 自定义圆角
- fabric.js图片圆角方法(测试)
- CodeForces