{"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":"!git clone --single-branch --branch dev https://github.com/libjpeg-turbo/libjpeg-turbo \n!mkdir build\nimport os\nos.chdir(\"build\")\n!apt install nasm\n!apt install yasm\n!cmake -G\"Unix Makefiles\" -DLOSSLESS_SUPPORTED=1 -DCMAKE_ASM_NASM_COMPILER=/usr/bin/nasm ../libjpeg-turbo/ \n!make\n!make install\n","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-12-21T21:53:14.551738Z","iopub.execute_input":"2022-12-21T21:53:14.552933Z","iopub.status.idle":"2022-12-21T21:55:36.838646Z","shell.execute_reply.started":"2022-12-21T21:53:14.552803Z","shell.execute_reply":"2022-12-21T21:55:36.837217Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!time /opt/libjpeg-turbo/bin/djpeg \"/kaggle/input/rsnaimg/1_2_840_10008_1_2_4_70.jpg\" > /kaggle/working/out.pgm\nimport cv2, matplotlib.pyplot as plt\nplt.imshow(cv2.imread(\"/kaggle/working/out.pgm\", -1))","metadata":{"execution":{"iopub.status.busy":"2022-12-21T22:00:43.738383Z","iopub.execute_input":"2022-12-21T22:00:43.738876Z","iopub.status.idle":"2022-12-21T22:00:46.170421Z","shell.execute_reply.started":"2022-12-21T22:00:43.738837Z","shell.execute_reply":"2022-12-21T22:00:46.169097Z"},"trusted":true},"execution_count":null,"outputs":[]}]}