Update houghlines.py

Fix a code indent bug:   cv2.imshow("detected lines", cdst)
This commit is contained in:
Wei Hao 2017-11-27 14:36:51 +08:00 committed by GitHub
parent 807f5e33ad
commit f2b3e5f517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ if __name__ == '__main__':
pt2 = ( int(x0-1000*(-b)), int(y0-1000*(a)) ) pt2 = ( int(x0-1000*(-b)), int(y0-1000*(a)) )
cv2.line(cdst, pt1, pt2, (0, 0, 255), 3, cv2.LINE_AA) cv2.line(cdst, pt1, pt2, (0, 0, 255), 3, cv2.LINE_AA)
cv2.imshow("detected lines", cdst) cv2.imshow("detected lines", cdst)
cv2.imshow("source", src) cv2.imshow("source", src)
cv2.waitKey(0) cv2.waitKey(0)