Script execution
This commit is contained in:
+4
-4
@@ -7,8 +7,8 @@ class CamToolImage(ReadableMatrix):
|
||||
def __init__(self, camtool):
|
||||
self.camtool = camtool
|
||||
shape = camtool.cam_shape.read()
|
||||
self.width = shape[1] #len(camtool.profile_x.read())
|
||||
self.height = shape[0] #len(camtool.(profile_y.read())
|
||||
self._width = shape[1] #len(camtool.profile_x.read())
|
||||
self._height = shape[0] #len(camtool.(profile_y.read())
|
||||
|
||||
def read(self):
|
||||
raw = self.camtool.cam_data.read()
|
||||
@@ -16,10 +16,10 @@ class CamToolImage(ReadableMatrix):
|
||||
#return mono_to_bidi(raw, self.getWidth(), self.getHeight())
|
||||
|
||||
def getWidth(self):
|
||||
return self.width
|
||||
return self._width
|
||||
|
||||
def getHeight(self):
|
||||
return self.height
|
||||
return self._height
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user