diff --git a/script/camtool.py b/script/camtool.py index f84d981..cc74a8b 100644 --- a/script/camtool.py +++ b/script/camtool.py @@ -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