{"cells":[{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"e84c80c9-ad7e-4a80-e4d9-b60af55c4995"},"outputs":[],"source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load in \n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the \"../input/\" directory.\n# For example, running this (by clicking run or pressing Shift+Enter) will list the files in the input directory\n\nfrom subprocess import check_output\nprint(check_output([\"ls\", \"../input\"]).decode(\"utf8\"))\n\n# Any results you write to the current directory are saved as output."},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"282b9352-55cb-16d9-acf0-3c63ef2c3417"},"outputs":[],"source":"import glob\nglob.glob('../input/Train/*')[0:10]"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"a8df86e9-727a-9823-06ed-f0d99269f06a"},"outputs":[],"source":"import cv2"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"121363e8-7f2c-361e-b5f4-fbf58172382e"},"outputs":[],"source":"%matplotlib inline\n\nfile_list = glob.glob('../input/Train/*')\nimg = cv2.imread(file_list[0])\nimport  matplotlib.pyplot as plt\nplt.imshow(img)\nplt.show()"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"6b500016-86e5-eb70-2a54-a5b1b092ca5c"},"outputs":[],"source":"file_list = glob.glob('../input/Train/*')\ndotfile_list = glob.glob('../input/TrainDotted/*')\n\nfid = 0\nimg=cv2.imread(file_list[fid])\ndotimg = cv2.imread(dotfile_list[fid])\n\nimport numpy as np"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"f4c5d20e-ed3c-052a-2d40-4411c7fac047"},"outputs":[],"source":"diffimg = np.abs(dotimg - img)\nplt.imshow(dotimg)\nplt.show()"},{"cell_type":"code","execution_count":null,"metadata":{"_cell_guid":"d3dcf0f6-74e5-0a55-d4b2-90ceef73d57c"},"outputs":[],"source":""}],"metadata":{"_change_revision":0,"_is_fork":false,"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.6.0"}},"nbformat":4,"nbformat_minor":0}