{"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 numpy as np\nfrom PIL import Image\nimport matplotlib.pyplot as plt\n\ndef showRGBImageList(imagePath):\n    _, ax = plt.subplots(1, 4, figsize=(22,6))\n    \n    imageArray = np.array(Image.open(imagePath)).astype(np.uint8)\n    \n    ax[0].imshow(imageArray)\n    ax[0].set_title(\"Original\")\n    \n    channels = [\"Red\", \"Green\", \"Blue\"]\n    for i in range(3):\n        ax[i+1].imshow(imageArray[:, :, i])\n        ax[i+1].set_title(channels[i])","metadata":{"execution":{"iopub.status.busy":"2022-03-26T10:00:34.445155Z","iopub.execute_input":"2022-03-26T10:00:34.445481Z","iopub.status.idle":"2022-03-26T10:00:34.452718Z","shell.execute_reply.started":"2022-03-26T10:00:34.445450Z","shell.execute_reply":"2022-03-26T10:00:34.452032Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"TEST_IMAGE_PATH = \"../input/hotel-id-to-combat-human-trafficking-2022-fgvc9/test_images/abc.jpg\"\nshowRGBImageList(TEST_IMAGE_PATH)","metadata":{"execution":{"iopub.status.busy":"2022-03-26T10:00:34.555097Z","iopub.execute_input":"2022-03-26T10:00:34.555450Z","iopub.status.idle":"2022-03-26T10:00:35.746823Z","shell.execute_reply.started":"2022-03-26T10:00:34.555416Z","shell.execute_reply":"2022-03-26T10:00:35.745946Z"},"trusted":true},"execution_count":null,"outputs":[]}]}