Hello All,
I am trying to read an .PNG image and need to extract the text from that image.
I used tesseract and magick packages but output is weird.Please find the below the source as well as the output ,please let me know what should be done to solve it.
NOTE:M rookie in R programming
Source:
C:\Users\Prasanna.Mathivanan1>echo PRASANNA,Mani& echo.ALJHU,Bala& echo.SUDJOS,SU& echo.SUDJOS1,SU
PRASANNA,Mani
ALJHU,Bala
SUDJOS,SU
SUDJOS1,SU
Output:
image_read("C:/Users/Prasanna.Mathivanan1/Desktop/Image_Processing/git.PNG") %>%
+ image_resize("1000x") %>%
+ image_convert(type = 'grayscale') %>%
+ image_ocr() %>%
+ cat()
C:\Users\Prasanna.Mathivanan1>echo PRASANNA,Mani& echo.ALJHU,Bala& echo.SUDJOS,SU& echo.SUDJOS1,SU
CUCU WEEE
Nia)
UPL ee
ese)
tesseract::ocr("C:/Users/Prasanna.Mathivanan1/Desktop/Image_Processing/git.PNG", engine = tesseract("eng"), HOCR = FALSE)
[1] "ANU NT UCB PRU es ele re Ea Lee UCB) a Led ELLOS Lose ee\nAOU MICuEe\n\nALIJHU, Bala\n\nTee]\n\nTse ee)\n"