相关疑难解决方法(0)

在2d数组中填充边界框

我有一个2D numpy数组,看起来像

array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 1., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
       [0., 0., 1., …
Run Code Online (Sandbox Code Playgroud)

python arrays numpy bounding-box numpy-ndarray

17
推荐指数
2
解决办法
1175
查看次数

标签 统计

arrays ×1

bounding-box ×1

numpy ×1

numpy-ndarray ×1

python ×1