This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE USER 'foo'@'localhost' IDENTIFIED WITH mysql_native_password BY 'bar' REQUIRE NONE; | |
| GRANT ALL PRIVILEGES ON *.* TO 'foo'@'localhost' WITH GRANT OPTION; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Test code is from Adrian Rosebrock's blog post @ https://www.pyimagesearch.com/2015/07/16/where-did-sift-and-surf-go-in-opencv-3/ | |
| import cv2 | |
| image = cv2.imread("test.png") | |
| gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
| # SIFT features | |
| sift = cv2.xfeatures2d.SIFT_create() | |
| (kps, descs) = sift.detectAndCompute(gray, None) | |
| print("# kps: {}, descriptors: {}".format(len(kps), descs.shape)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Code for showing webcam feed is from Adrian Rosebrock's tutorial @ | |
| # https://www.pyimagesearch.com/2015/05/25/basic-motion-detection-and-tracking-with-python-and-opencv/ | |
| import cv2 | |
| print('OpenCV version: {}'.format(cv2.__version__)) | |
| # Read test image and show it | |
| img = cv2.imread('test.png') | |
| cv2.imshow('Window', img) | |
| cv2.waitKey(0) |