Segmentation fault when reading image

welcome.

you need to provide more information. what is the picture (upload it)? what are the contents of the image_path variable? what is the rest of the code leading up to that line? please reduce the code to the bare minimum that reproduces the issue.