Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
需要检测图片中的直线,但是直线的颜色会经常变化,而且可能存在多种颜色的直线,对于不同的直线,可能有时需要检测红色的直线,有时需要检测绿色的直线,有没有办法通过IO按键或者其他别的方式能够动态调整检测直线的阈值
当然可以。 阈值也是变量,你在循环里if 检车io电平就行。