当前位置:网站首页>bounding box iou
bounding box iou
2022-04-23 20:27: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://yzsam.com/2022/04/202204232022188212.html
边栏推荐
- Installation and use of NVM
- LeetCode 542、01 矩阵
- [PTA] l1-002 printing hourglass
- CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution
- [graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
- Use the rolling division method to find the maximum common divisor of two numbers
- Operation of numpy array
- LeetCode 116. 填充每个节点的下一个右侧节点指针
- ArcGIS JS version military landmark drawing (dovetail arrow, pincer arrow, assembly area) fan and other custom graphics
- Thirty What are VM and VC?
猜你喜欢
Matlab analytic hierarchy process to quickly calculate the weight
Imitation Baidu map realizes the three buttons to switch the map mode by automatically shrinking the bottom
Plato farm is one of the four largest online IEOS in metauniverse, and the transaction on the chain is quite high
JS arrow function user and processing method of converting arrow function into ordinary function
selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
2022dasctf APR x fat epidemic prevention challenge crypto easy_ real
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
Go zero framework database avoidance Guide
On BIM data redundancy theory
Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
随机推荐
SQL: query duplicate data and delete duplicate data
Mysql database and table building: the difference between utf8 and utf8mb4
內網滲透之DOS命令
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Fundamentals of network communication (LAN, Wan, IP address, port number, protocol, encapsulation and distribution)
Linux64Bit下安装MySQL5.6-不能修改root密码
Es error: request contains unrecognized parameter [ignore_throttled]
Recommend an open source free drawing software draw IO exportable vector graph
DNS cloud school rising posture! Three advanced uses of authoritative DNS
Historical track data reading of Holux m1200-e Bluetooth GPS track recorder
Introduction to link database function of cadence OrCAD capture CIS replacement components, graphic tutorial and video demonstration
bounding box iou
go-zero框架数据库方面避坑指南
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
Operation of numpy array
【PTA】L2-011 玩转二叉树
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
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
Monte Carlo py solves the area problem! (save pupils Series)
Zdns was invited to attend the annual conference of Tencent cloud basic resources and share the 2020 domain name industry development report