eduardolundgren / tracking.js

A modern approach for Computer Vision on the web
http://trackingjs.com
Other
9.44k stars 1.45k forks source link

Hough lines? #138

Open alx-1 opened 8 years ago

alx-1 commented 8 years ago

Is there a way to detect lines in an image such as with Hough lines?

There's an example from the opencv pages : http://docs.opencv.org/_images/houghp.png

http://docs.opencv.org/modules/imgproc/doc/feature_detection.html?highlight=houghlines

Thank you for your work! a.

eduardolundgren commented 8 years ago

We don't have Hough lines utility yet. We do have Sobel for edges detection, http://trackingjs.com/docs.html#utilities.

alx-1 commented 8 years ago

Quick response! Do you think it would be possible to draw lines from the corners found by the Sobel edge detection?

eduardolundgren commented 8 years ago

@alx-1 It's possible to use the corners coordinates extracted from Soble to draw lines.