07 2023 档案
摘要:转:python数学建模之用optimize.linear_sum_assignment解决模型优化之指派问题_嗨,紫玉灵神熊的博客-CSDN博客
阅读全文
摘要:import torch box = torch.tensor([ # 边界框的坐标,(x1, y1, x2, y2). box'shape: (3, 4) [0.1, 0.2, 0.5, 0.3], [0.6, 0.6, 0.9, 0.9], [0.1, 0.1, 0.2, 0.2] ]) whw
阅读全文
摘要:两个boxes之间的iou计算: import numpy as np def iou(box1, box2): x1, y1, x2, y2 = box1 w1, h1, w2, h2 = box2 left_max = max(x1, w1) right_min = min(x2, w2) to
阅读全文
摘要:本文摘自: (三十六)通俗易懂理解——ROI Align的基本原理及rpn与rcnn head锚框标签制作 - 知乎 (zhihu.com) 双线性插值(超级易懂的)_双线性内插法计算公式举例-CSDN博客
阅读全文
摘要:python 在图像上画矩形框并保存的几种方式 使用opencv画框的方法: img_path = './test.jpg' img = cv.imread(img_path) # rectangle 坐标的参数格式为左上角(x1, y1),右下角(x2, y2),所有坐标必须是整型。 cv.rec
阅读全文
摘要:例如: i = 12 s = str(i).zfill(4) print(s) # 输出:0012
阅读全文