【发布时间】:2017-07-19 10:56:54
【问题描述】:
我正在尝试使用 HoughLines 来识别 this image, here it is after the thresholding and other operations shown in the code 中的水平线和垂直线,因此我可以将它们绘制成黑色并移除它们。到目前为止,这是我的代码:
)
src_no_bg = 255 - cv2.absdiff(src, bg)
maxValue = 255
thresh = 240
但是 HoughLines 代码行不断返回此错误
only length-1 arrays can be converted to Python scalars
【问题讨论】:
标签: python python-2.7 opencv