Hacker Newsnew | comments | show | ask | jobs | submit login

Use a Hough transform on the edge detection to get the right lines (you only want the longest, straightest ones). Then apply the affine transform back.

It gets harder if the notebook doesn't lie flat, though.




Applications are open for YC Winter 2016

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: