my solution to this problem is
file path is correct, the image format is PNG, and the required format in the code is JPG, converting PNG to JPG will solve the problem.
my solution to this problem is
file path is correct, the image format is PNG, and the required format in the code is JPG, converting PNG to JPG will solve the problem.