- 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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user