当前位置:网站首页>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
边栏推荐
- 微信中金财富高端专区安全吗,证券如何开户呢
- Es error: request contains unrecognized parameter [ignore_throttled]
- selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
- 网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
- Tensorflow 2 basic operation dictionary
- JDBC database addition, deletion, query and modification tool class
- R语言使用timeROC包计算存在竞争风险情况下的生存资料多时间AUC值、使用cox模型、并添加协变量、R语言使用timeROC包的plotAUCcurve函数可视化多时间生存资料的AUC曲线
- CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
- Leetcode dynamic planning training camp (1-5 days)
- Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
猜你喜欢
Livego + ffmpeg + RTMP + flvjs to realize live video
Operation of numpy array
STM32 Basics
STM32基础知识
Latest investigation and progress of building intelligence based on sati
How to protect ECs from hacker attacks?
Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]
LeetCode动态规划训练营(1~5天)
Es error: request contains unrecognized parameter [ignore_throttled]
Mysql database backup scheme
随机推荐
Remote code execution in Win 11 using wpad / PAC and JScript
. Ren -- the intimate artifact in the field of vertical Recruitment!
LeetCode动态规划训练营(1~5天)
The second method of file upload in form form is implemented by fileitem class, servletfileupload class and diskfileitemfactory class.
selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
Mysql database and table building: the difference between utf8 and utf8mb4
JDBC database addition, deletion, query and modification tool class
DNS cloud school rising posture! Three advanced uses of authoritative DNS
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
【PTA】整除光棍
Local call feign interface message 404
NC basic usage 2
Automatically fill in body temperature and win10 task plan
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
論文寫作 19: 會議論文與期刊論文的區別
PCA based geometric feature calculation of PCL point cloud processing (52)
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
The R language uses the timeroc package to calculate the multi time AUC value of survival data without competitive risk, and uses the confint function to calculate the confidence interval value of mul
How can matlab obtain the truncated image in trainingimagelabeler
Unity 模型整体更改材质