1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

supress numpy future warning with None comparison

This commit is contained in:
danil-tolkachev
2016-09-14 21:39:11 +03:00
parent 05b15943d6
commit 50d02b9f84
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ if __name__ == '__main__':
else: # HoughLines
lines = cv2.HoughLines(dst, 1, math.pi/180.0, 50, np.array([]), 0, 0)
if lines != None:
if lines is not None:
a,b,c = lines.shape
for i in range(a):
rho = lines[i][0][0]