I’m very new to Julia.
Trying to read text from an image.
Using OCReract, tried the suggested code.
begin
using Images
using ImageMagick
using OCReract
img_path = "Q:\\Julia\\20.jpg"; #small jpg with just the text "20" (no quotes)
img = Images.load(img_path);
run_tesseract(img, psm=3, oem=1);
end
Gives an error in the PowerShell window:
Error: Error ocurred while running Tesseract! Base.IOError("could not spawn `tesseract '%temp%\\jl_hiMWotDCCe.png' '%temp%\\jl_zF2TaOBbHP.txt' --oem 1 --psm 3`: no such file or directory (ENOENT)", -4058)
@ OCReract %userprofile%\.julia\packages\OCReract\vBTZj\src\tesseract.jl:122
And an error in the browser:
SystemError: opening file "%temp%\\jl_zF2TaOBbHP.txt": No such file or directory
#systemerror#49(::Nothing, ::typeof(systemerror), ::String, ::Int32)@error.jl:168
#systemerror#48@error.jl:167[inlined]
systemerror@error.jl:167[inlined]
#open#542(::Bool, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::typeof(open), ::String)@iostream.jl:284
#open#543(::Bool, ::typeof(open), ::String, ::String)@iostream.jl:346
open(::String, ::String)@iostream.jl:346
#open#287(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(open), ::OCReract.var"#3#4", ::String, ::Vararg{String,N} where N)@io.jl:323
open@io.jl:323[inlined]
#run_tesseract#2(::Nothing, ::Int64, ::Int64, ::typeof(OCReract.run_tesseract), ::Array{ColorTypes.RGB{FixedPointNumbers.Normed{UInt8,8}},2})@tesseract.jl:202
top-level scope@Local: 8
Julia can read and write to disk, and all the folders exist.
What have I forgotten to do?
Thanks,
m.