1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33: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
@@ -30,7 +30,7 @@ if __name__ == '__main__':
circles = cv2.HoughCircles(img, cv2.HOUGH_GRADIENT, 1, 10, np.array([]), 100, 30, 1, 30)
if circles != None: # Check if circles have been found and only then iterate over these and add them to the image
if circles is not None: # Check if circles have been found and only then iterate over these and add them to the image
a, b, c = circles.shape
for i in range(b):
cv2.circle(cimg, (circles[0][i][0], circles[0][i][1]), circles[0][i][2], (0, 0, 255), 3, cv2.LINE_AA)