title: Custom name for an opencv image (complex name)
body: <p>hi I want to take a frame from the camera and save it in a folder 'images', I want the image to have name + current timestamp+.jpg , I'm getting error for typing it like this:</p>
  <pre><code>cv2.imwrite(os.path.join(path2 , rn), img)
  </code></pre>
  <p>where <code>path2='images'</code>
  and <code>rn=str(rightnow.strftime(&quot;%I:%M:%p&quot;))</code>
  i get this error :<code> could not find a writer for the specified extension in function 'cv::imwrite_'</code></p>
  <p>how can I do it plz , I searched but didn't find an answer and I'm new to python, thanks in advance</p>