Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tacamera.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tacamera.py')
-rw-r--r--TurtleArt/tacamera.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tacamera.py b/TurtleArt/tacamera.py
index f7e08ff..a4227ed 100644
--- a/TurtleArt/tacamera.py
+++ b/TurtleArt/tacamera.py
@@ -22,7 +22,7 @@
import gst, time
-def save_camera_input_to_file(imagepath):
+def save_camera_input_to_file(imagepath, pause=2.0):
""" Grab a frame from the video camera and save to a temporary file """
pipeline = gst.parse_launch(
@@ -30,6 +30,6 @@ def save_camera_input_to_file(imagepath):
pipeline.set_state(gst.STATE_PLAYING)
# Need to pause for pipeline to stablize
- time.sleep(2)
+ time.sleep(pause)
pipeline.set_state(gst.STATE_NULL)