Alexander Alekhin
04fad57fc1
samples: fix python samples compatibility with demo.py
6 years ago
Alexander Alekhin
c371df4aa2
samples: use findFile() in "python"
6 years ago
Alexander Alekhin
5560db73bf
python: 'cv2.' -> 'cv.' via 'import cv2 as cv'
7 years ago
Wei Hao
f2b3e5f517
Update houghlines.py
...
Fix a code indent bug: cv2.imshow("detected lines", cdst)
7 years ago
danil-tolkachev
50d02b9f84
supress numpy future warning with `None` comparison
8 years ago
Alexander Alekhin
bb5e25ba7c
migration: github.com/opencv/opencv
8 years ago
Aleksandar Atanasov
0637ca21dc
Update houghlines.py
9 years ago
Aleksandar Atanasov
445349dd7d
Same fix as with the houghcircles
...
Moved second `imshow()` inside the if-statement to prevent error when no lines have been found and the function is called with an empty `cdst`.
9 years ago
Aleksandar Atanasov
14deab252b
Fix houghlines.py when no lines found
...
In the C++ equivalent of this example a check is made whether the vector (here in Python we have a list) actually has any lines in it that is whether the Hough lines function has managed to find any in the given image. This check is missing for the Python example and if no lines are found the application breaks.
9 years ago
Alexander Alekhin
a8e2922467
rename samples/{python2 -> python}
9 years ago
flp
0c5d9e18d1
Removed outdated tutorial link
9 years ago
flp
b6ce4a527e
added docstring to python files
9 years ago
Adam Gibson
b57be28920
Various Python samples updated for Python 2/3 compatibility.
9 years ago
Adam Geitgey
e976c448b7
Prevent grabcut, houghcircles and houghlines python2 demos from running automatically while browsing demos in the demo list viewer
9 years ago
berak
c83044d45a
fix houghlines.py sample and tutorial
...
fix whitespace
10 years ago
Dmitriy Anisimov
1007c06d44
initial commit
10 years ago
Andrey Kamaev
f886651cf0
Drop old python samples and tests
12 years ago
Siva Prasad Varma
3b0ce8e132
Add HoughTransform examples python2
...
houghlines.py for HoughLinesP() and HoughLines()
houghcircles.py for HoughCircles()
12 years ago