gpt4 book ai didi

python - Opencv 命中和未命中行为

转载 作者:太空宇宙 更新时间:2023-11-03 22:47:47 25 4
gpt4 key购买 nike

我在内核中心元素设置为 0(不关心)的情况下运行形态学命中和失败:

cv2.morphologyEx(np.asarray([[0, 255, 0], [0, 0, 0], [0, 255, 0]], dtype=np.uint8), cv2.MORPH_HITMISS, np.asarray([[0, 1, 0], [0, 0, 0], [0, 1, 0]], dtype=np.int8))

我得到:[[0, 0, 0], [0, 0, 0], [0, 0, 0]]

虽然我期待得到:[[0, 0, 0], [0, 255, 0], [0, 0, 0]]

请解释此行为。

最佳答案

我认为这是 opencv 中的错误。我提交:https://github.com/opencv/opencv/issues/8957

关于python - Opencv 命中和未命中行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44680747/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com