Hi, I've a path from wx.FileDialog (getpath())
shows "c:\test.jpg"
which doesn't works with opencv cv.LoadImage()
which needs "\\"
or "/"
So, I've tried to use replace function for example:
s.replace("\","\\"[0:2]),s.replace("\\","\\\"[0:2])
but none those works.
And, this command s.replace("\\","/"[0:1])
returns the same path, I don't know why.
Could you help me solve this easy problem.
ps, I'm very new to python
thank you so much. sorry about my grammar