March 2020
Intermediate to advanced
366 pages
9h 8m
English
The GUI is a customized version of the generic BaseLayout:
class CameraCalibration(BaseLayout):
The layout consists of only the current camera frame and a single button below it. This button allows us to start the calibration process:
def augment_layout(self): pnl = wx.Panel(self, -1) self.button_calibrate = wx.Button(pnl, label='Calibrate Camera') self.Bind(wx.EVT_BUTTON, self._on_button_calibrate) hbox = wx.BoxSizer(wx.HORIZONTAL) hbox.Add(self.button_calibrate) pnl.SetSizer(hbox)
For these changes to take effect, pnl needs to be added to the list of existing panels:
self.panels_vertical.Add(pnl, flag=wx.EXPAND | wx.BOTTOM | wx.TOP, border=1)
The rest of the visualization pipeline is handled by the ...