Threading within a GUI and OpenCV

Discussion in 'Python' started by Sam Berry, Apr 3, 2013.

  1. Sam Berry

    Sam Berry Guest

    Hey,

    I'm fairly new to python, and have had no experience with threading.

    Iv made a small GUI App using the kivy module and OpenCV, i have currently got a button that when pressed runs a function that records from my webcam for 20 seconds.

    However i have two other buttons, that when pressed i want to stop the recording. However when the button to record has been pressed the App freezes until the recording function has finished.

    I have read that threading can be used to run a function as a deamon? so that other functions can be ran simultaneously?

    I was just wondering if this would be the way to go, or if there are alternative routes?

    A snippet from my code can be seen at (http://pastebin.com/9uFRjkgV) with a failed attempt of using threading!

    Any help would be appreciated.

    Thanks, Sam
    Sam Berry, Apr 3, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Claudio Grondi

    Python OpenCV wrapper

    Claudio Grondi, Sep 6, 2005, in forum: Python
    Replies:
    0
    Views:
    7,485
    Claudio Grondi
    Sep 6, 2005
  2. aneuryzma

    openCV and ogre3d

    aneuryzma, Jun 20, 2008, in forum: C++
    Replies:
    1
    Views:
    430
    red floyd
    Jun 20, 2008
  3. Mehdi Karamnejad

    openCV and ruby

    Mehdi Karamnejad, Apr 4, 2010, in forum: Ruby
    Replies:
    1
    Views:
    326
  4. Sam Berry

    OpenCV and WIFI IP Camera Issue

    Sam Berry, Feb 14, 2013, in forum: Python
    Replies:
    1
    Views:
    169
  5. Varsha Holla

    image processing in python and opencv

    Varsha Holla, Mar 9, 2014, in forum: Python
    Replies:
    2
    Views:
    96
    Mark H. Harris
    Mar 10, 2014
Loading...

Share This Page