[mousetrap] Bug Fix
- From: Flavio Percoco <flaper src gnome org>
- To: svn-commits-list gnome org
- Subject: [mousetrap] Bug Fix
- Date: Thu, 4 Jun 2009 18:39:35 -0400 (EDT)
commit e58601839ea8d148272fe311a81990dc2aa3e246
Author: Flavio Percoco Premoli <flaper87 gmail com>
Date: Wed Jun 3 21:34:12 2009 +0200
Bug Fix
---
src/ocvfw/dev/camera.py | 1 -
src/ocvfw/idm/forehead.py | 2 ++
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/ocvfw/dev/camera.py b/src/ocvfw/dev/camera.py
index 643f95e..0e04a90 100644
--- a/src/ocvfw/dev/camera.py
+++ b/src/ocvfw/dev/camera.py
@@ -84,7 +84,6 @@ class Capture(object):
self.roi = None
- self.forehead = None
self.last_update = 0
self.last_duration = 0
diff --git a/src/ocvfw/idm/forehead.py b/src/ocvfw/idm/forehead.py
index 3372afc..76ccbe4 100644
--- a/src/ocvfw/idm/forehead.py
+++ b/src/ocvfw/idm/forehead.py
@@ -92,6 +92,7 @@ class Module(object):
returns self.cap.image()
"""
+
if not hasattr(self.cap, "forehead"):
self.get_forehead()
@@ -104,6 +105,7 @@ class Module(object):
Arguments:
- self: The main object pointer
"""
+
if hasattr(self.cap, "forehead"):
return self.cap.forehead
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]