Skip to content

Commit

Permalink
Use the device_type to set the model for the new description macro
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Nov 14, 2024
1 parent e3be1f6 commit 1574d9d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,13 @@ def __init__(self, sensor: BaseCamera) -> None:
})

class AxisCameraDescription(CameraDescription):
IMAGE_WIDTH = 'image_width'
IMAGE_HEIGHT = 'image_height'
MODEL = 'model'

def __init__(self, sensor: AxisCamera) -> None:
super().__init__(sensor)

self.parameters.update({
self.IMAGE_HEIGHT: sensor.frame_height,
self.IMAGE_WIDTH: sensor.frame_width
self.MODEL: sensor.device_type
})

class IntelRealsenseDescription(CameraDescription):
Expand Down

0 comments on commit 1574d9d

Please sign in to comment.