Add File or directory src / asset / segmentation / horse.jpg on Julia

#1

add File or directory src / asset / segmentation / horse.jpg on Julia.

julia> using Images, ImageView

julia> img = load("src/assets/segmentation/horse.jpg")
Error encountered while loading "src/assets/segmentation/horse.jpg".
Fatal error:
ERROR: UnableToOpenBlob `src/assets/segmentation/horse.jpg': No such file or directory @ error/blob.c/OpenBlob/2873
Stacktrace:
 [1] handle_error(::ErrorException, ::File{DataFormat{:JPEG}}) at C:\Users\gerso\.julia\packages\FileIO\e8FNK\src\error_handling.jl:80
 [2] handle_exceptions(::Array{Any,1}, ::String) at C:\Users\gerso\.julia\packages\FileIO\e8FNK\src\error_handling.jl:75
 [3] #load#27(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::File{DataFormat{:JPEG}}) at C:\Users\gerso\.julia\packages\FileIO\e8FNK\src\loadsave.jl:193
 [4] load(::File{DataFormat{:JPEG}}) at C:\Users\gerso\.julia\packages\FileIO\e8FNK\src\loadsave.jl:172
 [5] #load#13(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String) at C:\Users\gerso\.julia\packages\FileIO\e8FNK\src\loadsave.jl:118
 [6] load(::String) at C:\Users\gerso\.julia\packages\FileIO\e8FNK\src\loadsave.jl:118
 [7] top-level scope at none:0
#2

Clearly, src/asset/segmentation/horse.jpg does not exist relative to your current working directory. What is the directory you’re running Julia in (run pwd() to find out), and where is horse.jpg (what is the full path to it)?

Also, in the future, please describe your problem with at least a brief sentence so that people don’t have to guess at what problem it is you’re trying to solve.

1 Like