問題タブ [houghlines]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - python、opencvで画像の行数を数える方法
紙を数えたいので、線検出を使おうと思います。Canny、HoughLines、FLD などの方法をいくつか試しました。しかし、私は処理された写真しか得られません。それを数える方法がわかりません。必要な線である小さな線分がいくつかあります。len(lines)
またはを使用しlen(contours)
ました。しかし、結果は私の期待とはかけ離れています。結果は百か千です。それで、誰かが良い考えを持っていますか?