Path: blob/master/notebooks/misc/convert_image_formats.ipynb
1192 views
Kernel: Python 3
In [1]:
Out[1]:
Collecting pdf2image
Downloading pdf2image-1.16.0-py3-none-any.whl (10 kB)
Requirement already satisfied: pillow in /usr/local/lib/python3.7/dist-packages (from pdf2image) (7.1.2)
Installing collected packages: pdf2image
Successfully installed pdf2image-1.16.0
In [2]:
In [3]:
Out[3]:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libnvidia-common-460
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
poppler-utils
0 upgraded, 1 newly installed, 0 to remove and 40 not upgraded.
Need to get 154 kB of archives.
After this operation, 613 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 poppler-utils amd64 0.62.0-2ubuntu2.12 [154 kB]
Fetched 154 kB in 1s (271 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 1.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Selecting previously unselected package poppler-utils.
(Reading database ... 148489 files and directories currently installed.)
Preparing to unpack .../poppler-utils_0.62.0-2ubuntu2.12_amd64.deb ...
Unpacking poppler-utils (0.62.0-2ubuntu2.12) ...
Setting up poppler-utils (0.62.0-2ubuntu2.12) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
In [4]:
Out[4]:
Mounted at /content/drive
In [5]:
In [6]:
Out[6]:
/content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemoRVM.pdf
/content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemologregL2.pdf
/content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemologregL1.pdf
/content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemoSVM.pdf
['kernelBinaryClassifDemoRVM.pdf', 'kernelBinaryClassifDemologregL2.pdf', 'kernelBinaryClassifDemologregL1.pdf', 'kernelBinaryClassifDemoSVM.pdf']
In [7]:
Out[7]:
!converting /content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemoRVM.pdf to /content/drive/MyDrive/MLAPA/book-images-cmyk-100/kernelBinaryClassifDemoRVM.jpg
converting /content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemoRVM.pdf to /content/drive/MyDrive/MLAPA/book-images-original/tempkernelBinaryClassifDemoRVM
converting /content/drive/MyDrive/MLAPA/book-images-original/tempkernelBinaryClassifDemoRVM.png to /content/drive/MyDrive/MLAPA/book-images-cmyk-100/kernelBinaryClassifDemoRVM.jpg
!converting /content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemologregL2.pdf to /content/drive/MyDrive/MLAPA/book-images-cmyk-100/kernelBinaryClassifDemologregL2.jpg
converting /content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemologregL2.pdf to /content/drive/MyDrive/MLAPA/book-images-original/tempkernelBinaryClassifDemologregL2
converting /content/drive/MyDrive/MLAPA/book-images-original/tempkernelBinaryClassifDemologregL2.png to /content/drive/MyDrive/MLAPA/book-images-cmyk-100/kernelBinaryClassifDemologregL2.jpg
!converting /content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemologregL1.pdf to /content/drive/MyDrive/MLAPA/book-images-cmyk-100/kernelBinaryClassifDemologregL1.jpg
converting /content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemologregL1.pdf to /content/drive/MyDrive/MLAPA/book-images-original/tempkernelBinaryClassifDemologregL1
converting /content/drive/MyDrive/MLAPA/book-images-original/tempkernelBinaryClassifDemologregL1.png to /content/drive/MyDrive/MLAPA/book-images-cmyk-100/kernelBinaryClassifDemologregL1.jpg
!converting /content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemoSVM.pdf to /content/drive/MyDrive/MLAPA/book-images-cmyk-100/kernelBinaryClassifDemoSVM.jpg
converting /content/drive/MyDrive/MLAPA/book-images-original/kernelBinaryClassifDemoSVM.pdf to /content/drive/MyDrive/MLAPA/book-images-original/tempkernelBinaryClassifDemoSVM
converting /content/drive/MyDrive/MLAPA/book-images-original/tempkernelBinaryClassifDemoSVM.png to /content/drive/MyDrive/MLAPA/book-images-cmyk-100/kernelBinaryClassifDemoSVM.jpg
In [8]:
Out[8]:
kernelBinaryClassifDemologregL1.pdf kernelBinaryClassifDemoRVM.pdf
kernelBinaryClassifDemologregL2.pdf kernelBinaryClassifDemoSVM.pdf
In [9]:
Out[9]:
ae_mnist_conv_20d_linear.jpg svmCvSurf.jpg
ae_mnist_conv_20d_samples.jpg vae_mnist_conv_20d_linear.jpg
largeMarginPrinciple2.jpg vae_mnist_conv_20d_samples.jpg
separable-conv2d.jpg
In [10]:
Out[10]:
ae_mnist_conv_20d_linear.jpg largeMarginPrinciple2.jpg
ae_mnist_conv_20d_samples.jpg separable-conv2d.jpg
kernelBinaryClassifDemologregL1.jpg svmCvSurf.jpg
kernelBinaryClassifDemologregL2.jpg vae_mnist_conv_20d_linear.jpg
kernelBinaryClassifDemoRVM.jpg vae_mnist_conv_20d_samples.jpg
kernelBinaryClassifDemoSVM.jpg
In [ ]: