=====================================================
Nama Mahasiswa : Muhammad Mumtaz Syahrie Jahidy
NIM : 220605110072
Kelas : C
Mata Kuliah : Linear Algebra
Dosen Pengampuh : Prof.Dr.Suhartono,M.Kom
Jurusan : Teknik Informatika
Universitas : UIN Maulana Malik Ibrahim Malang
=====================================================
Memanggil package “tesseract”
library("tesseract")
library("magick")
## Linking to ImageMagick 6.9.12.3
## Enabled features: cairo, freetype, fftw, ghostscript, heic, lcms, pango, raw, rsvg, webp
## Disabled features: fontconfig, x11
Membuat objek “baru”img” berupa gambar dari internet
img <- image_read("http://jeroen.github.io/images/testocr.png")
print(img)
## format width height colorspace matte filesize density
## 1 PNG 640 480 sRGB TRUE 23359 72x72
Gunakan tools image_ocr()
cat(image_ocr(img))
## This is a lot of 12 point text to test the
## ocr code and see if it works on all types
## of file format.
##
## The quick brown dog jumped over the
## lazy fox. The quick brown dog jumped
## over the lazy fox. The quick brown dog
## jumped over the lazy fox. The quick
## brown dog jumped over the lazy fox.