当前位置:网站首页>bounding box iou
bounding box iou
2022-04-23 20:22:00 【ujn20161222】
https://gist.github.com/meyerjo/dd3533edc97c81258898f60d8978eddc
def bb_intersection_over_union(boxA, boxB):
# determine the (x, y)-coordinates of the intersection rectangle
xA = max(boxA[0], boxB[0])
yA = max(boxA[1], boxB[1])
xB = min(boxA[2], boxB[2])
yB = min(boxA[3], boxB[3])
# compute the area of intersection rectangle
interArea = abs(max((xB - xA, 0)) * max((yB - yA), 0))
if interArea == 0:
return 0
# compute the area of both the prediction and ground-truth
# rectangles
boxAArea = abs((boxA[2] - boxA[0]) * (boxA[3] - boxA[1]))
boxBArea = abs((boxB[2] - boxB[0]) * (boxB[3] - boxB[1]))
# compute the intersection over union by taking the intersection
# area and dividing it by the sum of prediction + ground-truth
# areas - the interesection area
iou = interArea / float(boxAArea + boxBArea - interArea)
# return the intersection over union value
return iou
版权声明
本文为[ujn20161222]所创,转载请带上原文链接,感谢
https://blog.csdn.net/ujn20161222/article/details/124339748
边栏推荐
- Introduction to link database function of cadence OrCAD capture CIS replacement components, graphic tutorial and video demonstration
- Research on open source OCR engine
- 微信中金财富高端专区安全吗,证券如何开户呢
- 如何做产品创新?——产品创新方法论探索一
- 三十.什么是vm和vc?
- [graph theory brush question-4] force deduction 778 Swimming in a rising pool
- Paper writing 19: the difference between conference papers and journal papers
- How to protect ECs from hacker attacks?
- Recommend an open source free drawing software draw IO exportable vector graph
- Redis的安装(CentOS7命令行安装)
猜你喜欢

Leetcode dynamic planning training camp (1-5 days)

16MySQL之DCL 中 COMMIT和ROllBACK

Mysql database backup scheme

Matlab analytic hierarchy process to quickly calculate the weight

Five minutes to show you what JWT is

Installation and use of NVM

网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
![Es error: request contains unrecognized parameter [ignore_throttled]](/img/17/9131c3eb023b94b3e06b0e1a56a461.png)
Es error: request contains unrecognized parameter [ignore_throttled]

Zdns was invited to attend the annual conference of Tencent cloud basic resources and share the 2020 domain name industry development report

JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
随机推荐
2022DASCTF Apr X FATE 防疫挑战赛 CRYPTO easy_real
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
Confusion about thread blocking after calling the read () method of wrapper flow
DTMF dual tone multi frequency signal simulation demonstration system
三十一. `prototype`显示原型属性和`__proto__`隐式原型属性
R language ggplot2 visual facet_wrap, and use the lineheight parameter to customize the height of the facet icon tab (gray label bar)
Monte Carlo py solves the area problem! (save pupils Series)
Numpy - creation of data type and array
Installation and use of NVM
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
R language ggplot2 visualization: ggplot2 visualizes the scatter diagram and uses geom_ mark_ The ellipse function adds ellipses around data points of data clusters or data groups for annotation
Automatically fill in body temperature and win10 task plan
Linux64Bit下安装MySQL5.6-不能修改root密码
Computing the intersection of two planes in PCL point cloud processing (51)
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
Remote code execution in Win 11 using wpad / PAC and JScript 1
NC basic usage 1
On BIM data redundancy theory
Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
BMP JPEG 图片转换为矢量图像 ContourTrace