=====================================================

Nama Mahasiswa : Yudha Pramana Putra

NIM : 220605110141

Kelas : B

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")
## Warning: package 'tesseract' was built under R version 4.2.3
library("magick")
## Warning: package 'magick' was built under R version 4.2.3
## 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("https://cdn.idntimes.com/content-images/community/2017/03/7-07ede0ba97641c0ee9a776de1196d5a6.png")
print(img)
##   format width height colorspace matte filesize density
## 1    PNG   472    365       sRGB FALSE    52114   72x72

Gunakan tools image_ocr()

cat(image_ocr(img))
## Let your love take me
## to the top of the sky,
## that even the birds envy,
## for they can't fly so high.
## -Akanksha Gulia