{"cells":[
 {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {
   "collapsed": false
  },
  "outputs": [],
  "source": "import cv2\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport glob, os\n    \nimage = cv2.imread(\"../input/train_sm/set160_1.jpeg\")\nplt.figure(figsize=(15,20))\nplt.imshow(image)\nplt.show()\n\n"
 },
 {
  "cell_type": "code",
  "execution_count": null,
  "metadata": {
   "collapsed": false
  },
  "outputs": [],
  "source": "# load the image and convert it to grayscale\nimage = cv2.imread(\"../input/train_sm/set160_1.jpeg\")\ngray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)\n \n# initialize the AKAZE descriptor, then detect keypoints and extract\n# local invariant descriptors from the image\ndetector = cv2.AKAZE_create()\n(kps, descs) = detector.detectAndCompute(gray, None)\nprint(\"keypoints: {}, descriptors: {}\".format(len(kps), descs.shape))\n \n# draw the keypoints and show the output image\ncv2.drawKeypoints(image, kps, image, (0, 255, 0))\nplt.figure(figsize=(15,20))\nplt.imshow(image)\nplt.show()"
 }
],"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"}}, "nbformat": 4, "nbformat_minor": 0}