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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user