{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import matplotlib.pyplot as plt\nfrom PIL import Image\nimport numpy as np\nimport pandas as pd\nimport glob\n\np = '/kaggle/input/vesuvius-challenge-ink-detection/'\ntrain = glob.glob(p+'train/**/**/**.tif')\ntrainm = glob.glob(p+'train/**/**.png')\ntest = glob.glob(p+'test/**/**/**.tif')\ntestm = glob.glob(p+'test/**/**.png')\nsub = pd.read_csv(p+'sample_submission.csv') #Id \tPredicted","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-03-15T20:01:26.860859Z","iopub.execute_input":"2023-03-15T20:01:26.861386Z","iopub.status.idle":"2023-03-15T20:01:26.886698Z","shell.execute_reply.started":"2023-03-15T20:01:26.861341Z","shell.execute_reply":"2023-03-15T20:01:26.885476Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.imshow(plt.imread( '/kaggle/input/vesuvius-challenge-ink-detection/train/2/mask.png'))","metadata":{"execution":{"iopub.status.busy":"2023-03-15T20:11:17.140260Z","iopub.execute_input":"2023-03-15T20:11:17.140844Z","iopub.status.idle":"2023-03-15T20:11:40.757243Z","shell.execute_reply.started":"2023-03-15T20:11:17.140769Z","shell.execute_reply":"2023-03-15T20:11:40.755695Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.imshow(plt.imread( '/kaggle/input/vesuvius-challenge-ink-detection/train/2/surface_volume/01.tif'))","metadata":{"execution":{"iopub.status.busy":"2023-03-15T20:08:35.442644Z","iopub.execute_input":"2023-03-15T20:08:35.444014Z","iopub.status.idle":"2023-03-15T20:08:45.640450Z","shell.execute_reply.started":"2023-03-15T20:08:35.443962Z","shell.execute_reply":"2023-03-15T20:08:45.639043Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import ipywidgets as widgets\nfrom ipywidgets import interact, interact_manual\nfrom IPython.display import display,clear_output\n%matplotlib inline\n%config InlineBackend.close_figures=False \n\nimg = plt.imread( '/kaggle/input/vesuvius-challenge-ink-detection/train/2/surface_volume/01.tif')\nprint(np.min(img), np.max(img))\n\n@interact\ndef show_img(x=np.max(img), y=np.max(img)):\n    img2 = img.copy()\n    img2[ img2 < x ] = 0\n    img2[ img2 > y ] = 0\n    clear_output(wait=True)\n    display(plt.imshow(img2).figure)\n    return ","metadata":{"execution":{"iopub.status.busy":"2023-03-15T20:37:03.160534Z","iopub.execute_input":"2023-03-15T20:37:03.161030Z","iopub.status.idle":"2023-03-15T20:37:13.383827Z","shell.execute_reply.started":"2023-03-15T20:37:03.160987Z","shell.execute_reply":"2023-03-15T20:37:13.382360Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Test Medical Imaging and Satellite Imaging approaches with soil depth and wrap around context on ink sharpening?","metadata":{},"execution_count":null,"outputs":[]}]}