@@ -230,14 +230,14 @@ def handleKeypress(key, stereoDepthConfigInQueue):
230230 StereoConfigHandler .config .postProcessing .decimationFilter .decimationMode = nextDecimation
231231 if key == ord ('a' ):
232232 StereoConfigHandler .newConfig = True
233- aligmentSettings = [dai .StereoDepthConfig .AlgorithmControl .DepthAlign .RECTIFIED_RIGHT ,
233+ alignmentSettings = [dai .StereoDepthConfig .AlgorithmControl .DepthAlign .RECTIFIED_RIGHT ,
234234 dai .StereoDepthConfig .AlgorithmControl .DepthAlign .RECTIFIED_LEFT ,
235235 dai .StereoDepthConfig .AlgorithmControl .DepthAlign .CENTER ,
236236 ]
237- currentAligment = StereoConfigHandler .config .algorithmControl .depthAlign
238- nextAligment = aligmentSettings [( aligmentSettings .index (currentAligment )+ 1 ) % len (aligmentSettings )]
239- print (f"Changing aligment mode to { nextAligment .name } from { currentAligment .name } " )
240- StereoConfigHandler .config .algorithmControl .depthAlign = nextAligment
237+ currentAlignment = StereoConfigHandler .config .algorithmControl .depthAlign
238+ nextAlignment = alignmentSettings [( alignmentSettings .index (currentAlignment )+ 1 ) % len (alignmentSettings )]
239+ print (f"Changing alignment mode to { nextAlignment .name } from { currentAlignment .name } " )
240+ StereoConfigHandler .config .algorithmControl .depthAlign = nextAlignment
241241 elif key == ord ('c' ):
242242 StereoConfigHandler .newConfig = True
243243 censusSettings = [dai .StereoDepthConfig .CensusTransform .KernelSize .AUTO , dai .StereoDepthConfig .CensusTransform .KernelSize .KERNEL_5x5 , dai .StereoDepthConfig .CensusTransform .KernelSize .KERNEL_7x7 , dai .StereoDepthConfig .CensusTransform .KernelSize .KERNEL_7x9 ]
@@ -318,7 +318,7 @@ def __init__(self, config):
318318 print ("Control disparity search range using the 'd' key." )
319319 print ("Control disparity companding using the 'f' key." )
320320 print ("Control census transform mean mode using the 'v' key." )
321- print ("Control depth aligment using the 'a' key." )
321+ print ("Control depth alignment using the 'a' key." )
322322 print ("Control decimation algorithm using the 'a' key." )
323323 print ("Control temporal persistency mode using the 'r' key." )
324324 print ("Control spatial filter using the 'w' key." )
0 commit comments