Corners detection – OpenCV 3.4 with python 3 Tutorial 22

Corners detection image: [python] import cv2 import numpy as np img = cv2.imread("squares.jpg") gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) corners = cv2.goodFeaturesToTrack(gray, 150, 0.8, 50) corners = np.int0(corners) for corner in corners: x, y = corner.ravel() cv2.circle(img, (x, y), 5, (0, 0, 255), -1) cv2.imshow("img", img) cv2.waitKey(0) cv2.destroyAllWindows() [/python]   Corners detection Video real time: [python] import […]