title: Use Multiprocessing for storing large images
body: <p>i write a application/Gui in PyQt5 and would like store large Images (>5000 RGB Images)</p>
  
  <p>Now, I have a function, which store every Picture with <strong>cv2.imwrite</strong>, but this process takes a lot of time. So i read here in Stackoverflow, that I can do this with multiprocessing. But I´m very new in python. </p>
  
  <p>My Multiprocessing Code: </p>
  
  <pre><code>def SaveImages(self):
      jobs = []
      for i in range(5):
          p = multiprocessing.Process(target = self.SaveAllImages, args=self)
          jobs.append(p)
          p.start()
  </code></pre>
  
  <p>In Function SaveAllImages are the basic Code for storing Images per Frame. If I run this Code - there are a Error: </p>
  
  <pre><code>p = multiprocessing.Process(target = SaveAllImages, args=self)
  NameError: name 'SaveAllImages' is not defined
  </code></pre>
  
  <p>But SaveAllImages are definied: <strong>def SaveAllImages(self)</strong></p>
  
  <p>So my Question are: </p>
  
  <ol>
  <li><p>Why i became this error</p></li>
  <li><p>How can I implement a very simply multiprocessing for storing Images</p></li>
  </ol>