import cv2
# Loop over all the masks in predict
for mask in predict:
# Display the mask for the first object in the list
cv2.imshow('Mask', (mask.masks.masks[0].numpy() * 255).astype("uint8"))
cv2.waitKey(0)
# Close all windows when done
cv2.destroyAllWindows()
1条答案
按热度按时间qmelpv7a1#
预测是一个对象列表吗?2如果是,这有帮助吗?