yuehouse

 

 

import matplotlib.pyplot as plt
import matplotlib.patches as mpatches

# draw rectangles on the original image
fig, ax = plt.subplots(ncols=1, nrows=1, figsize=(6, 6))
ax.imshow(img)
for x, y, w, h in candidates:
    print(x, y, w, h)
    rect = mpatches.Rectangle(
        (x, y), w, h, fill=False, edgecolor=\'red\', linewidth=1)
    ax.add_patch(rect)

分类:

技术点:

相关文章:

  • 2021-06-15
  • 2021-11-27
  • 2022-02-08
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-12-12
  • 2021-10-10
相关资源
相似解决方案