Fix detect.py --view-img
for non-ASCII paths
#7093
Merged
detect.py --view-img
for non-ASCII paths
#7093