{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"none","dataSources":[{"sourceId":45867,"databundleVersionId":6924515,"sourceType":"competition"}],"dockerImageVersionId":30587,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import os\nos.environ[\"OPENCV_IO_MAX_IMAGE_PIXELS\"] = pow(2,40).__str__()\nimport cv2\nimport pandas as pd","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-12-04T22:59:48.438733Z","iopub.execute_input":"2023-12-04T22:59:48.440056Z","iopub.status.idle":"2023-12-04T22:59:48.445172Z","shell.execute_reply.started":"2023-12-04T22:59:48.440011Z","shell.execute_reply":"2023-12-04T22:59:48.444177Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"train_meta_path = \"/kaggle/input/UBC-OCEAN/train.csv\"\ntrain_df = pd.read_csv(train_meta_path)\nprint(train_df[train_df['image_id'] == 6281])","metadata":{"execution":{"iopub.status.busy":"2023-12-04T22:59:48.447116Z","iopub.execute_input":"2023-12-04T22:59:48.447965Z","iopub.status.idle":"2023-12-04T22:59:48.466048Z","shell.execute_reply.started":"2023-12-04T22:59:48.447929Z","shell.execute_reply":"2023-12-04T22:59:48.465148Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"test_img_path = \"/kaggle/input/UBC-OCEAN/train_images/6281.png\"\ntest_img = cv2.imread(test_img_path)\nprint(test_img.shape)","metadata":{"execution":{"iopub.status.busy":"2023-12-04T22:59:48.467405Z","iopub.execute_input":"2023-12-04T22:59:48.468771Z","iopub.status.idle":"2023-12-04T23:01:27.399376Z","shell.execute_reply.started":"2023-12-04T22:59:48.468739Z","shell.execute_reply":"2023-12-04T23:01:27.397667Z"},"trusted":true},"execution_count":null,"outputs":[]}]}