Jump to content


Photo

SimpleCV performance


  • Please log in to reply
No replies to this topic

#1 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 07:44 PM

I installed OpenCV using this Guide http://www.pcduino.com/?p=374

I sucessfully run this code to face detect, but its quite slow.
Did anybody know how to set resolution on Camera()
i cant find anything that work for me.

I using the Microsoft lifecam Hd3000
setting resolution should be supportet
i wanna run it like 320x240
 

Code: [Select]

from SimpleCV import Camera, Display
def main():
    cam  = Camera()
    disp = Display()
    while disp.isNotDone():
        img = cam.getImage()
        faces = img.findHaarFeatures("face.xml")
        if faces:
            for face in faces:
                face.draw()
        img.show()

if __name__ == "__main__":
    main()

Any other ideas, on how to improve performance?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users