I have multiple excel files with pictures in one of the sheets. Is there a way to extract the image (image path) into R to then be placed into the tesseract ocr.
Previously I used the openxlsx package's function loadWorkbook:
wb <- openxlsx::loadWorkbook("C:/Users/.../test_file.xlsx")
when you output wb:
A Workbook object.
Worksheets:
Sheet 1: "Sheet1"
Images:
Image 1: "C:/Users/..../AppData/Local/Temp/RtmpuUQZm7//file41e..._openxlsx_loadworkbook/xl/media/image1.png"
Worksheet write order: 1
Is there anyway to get this image path? The type variable is a workbook object and when you do type of it is "S4" so it appears that I can't convert it to a character and pull out the path.
