gtk example camera with text: text is flipped and rotated

asked 2013-05-11 15:53:59 -0500

natebean gravatar image

I've been playing with the gtk-example-camera.py example.

I changed the process_image method to just show the image and add text.

def process_image(self): 
     #Start SimpleCV Code
      img = cam.getImage().rotate90()
      img.drawText("hello")
      img_with_text  = img.applyLayers()
      numpy_img = img_with_text.getNumpy()
      #End SimpleCV Code
      return numpy_img

The text is flipped and rotated. Any recommendations on getting the text horizontal and not flipped? example

Second question: Why are we using rotate90() ?

Thanks.

edit retag flag offensive close merge delete