title: OpenCV & Python - Real time image (frame) processing
body: <p>We're doing a project in school where we need to do basic image processing. Our goal is to use every video frame for the Raspberry Pi and do real time image processing.</p>
  <p>We've tried to include raspistill in our python-program but so far nothing has worked. The goal of our project is to design a RC-car which follows a blue/red/whatever coloured line with help from image processing.</p>
  <p>We thought it would be a good idea to make a python-program which does all image processing necessary, but we currently struggle with the idea of bringing recorded images into the python program. Is there a way to do this with picamera or should we try a different way?</p>
  <p>For anyone curious, this is how our program currently looks</p>
  <pre><code>while True:
      #camera = picamera.PiCamera()
      #camera.capture('image1.jpg')
      img = cv2.imread('image1.jpg')
      width = img.shape[1]
      height = img.shape[0]
      height=height-1
      for x in range (0,width):
              if x&gt;=0 and x&lt;(width//2):
                      blue  = img.item(height,x,0)
                      green = img.item(height,x,1)
                      red   = img.item(height,x,2)
                      if red&gt;green and red&gt;blue:
  </code></pre>