title: Python imread() don't work correctly with variable strings
body: <p>I want to make a program in python to manipulate an image. The problem is I want to get the image by user input on file dialog but when I use a variable string named <code>file_path</code> it does not read on <code>cv2.imread()</code> function.</p>
  
  <p>I suppose the problem is with the two slash problem on python. When we try to read an image path with one slash like <code>c:\XXX\X.png</code>, we get an error. The solution is <code>c:\\XXX\\X.png</code>, but with a string variable I cannot get solution?</p>
  
  <p>Is there a solution for this problem?</p>
  
  <pre><code>import cv2
  
  import tkinter as tk
  
  from tkinter import filedialog
  
  import numpy as np
  
  
  root = tk.Tk()
  root.withdraw()
  
  #where i get path of image
  file_path = filedialog.askopenfilenames(title = 'Select File', filetypes = [('image files', '.png;.jpg'), ('image files!', '*.png;*.jpg')])
  
  # i get bug here below. It does even not show error text
  image = cv2.imread(file_path)
  
  
  # ... REST OF CODE
  </code></pre>