I want to run some image processing code on a Linux server.
The code is located in
/q/w/e/r/t
The images are located in
/abc/d/e/f/g # the images are in the g folder
This is the code I'm using:
path = "/abc/d/e/f"
new_path = os.path.join(path, 'g', '001.png')
img1= cv2.imread(new_path)
However, this is the error I'm getting:
[ WARN:0@"a number"] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread_('/abc/d/e/f/g/001.png'): can't open/read file: check file path/integrity
How can I solve the problem?
from Problem on adressing nested relative directories in server
No comments:
Post a Comment