- PiCameraPipeline: refactored interfaces

git-svn-id: http://moon:8086/svn/software/trunk/projects/opencv@332 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2016-10-22 08:22:07 +00:00
parent a572e2889e
commit a59fa57d9a
3 changed files with 75 additions and 57 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ if ("__main__" == __name__):
def __init__(self, name, resolution=(320, 240, 3), numEntries=2, next=None):
super(MyRgbProcess1, self).__init__(name, resolution, numEntries, next)
def process(self):
def onProcess(self):
data = self.read(1.0)
if data is not None:
gray = cv2.cvtColor(data,cv2.COLOR_BGR2GRAY)
@@ -29,7 +29,7 @@ if ("__main__" == __name__):
def __init__(self, name, resolution=(320, 240, 3), numEntries=2, next=None):
super(MyRgbProcess2, self).__init__(name, resolution, numEntries, next)
def process(self):
def onProcess(self):
data = self.read(1.0)
if data is not None:
gray = cv2.cvtColor(data,cv2.COLOR_BGR2GRAY)